@salla.sa/twilight-components 2.14.596 → 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 (541) hide show
  1. package/dist/cjs/{filepond-MMeFYRaC.js → filepond-Dw1N5qBB.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-Dd1aobB-.js → filepond-plugin-file-poster-C1ipzdpz.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-Be46s5wp.js → filepond-plugin-file-validate-size-DbTJ1H8k.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-Cf3OjTHE.js → filepond-plugin-file-validate-type-CDOD2WKz.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BDX5qgng.js → filepond-plugin-image-edit-CP7JkpKx.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-ilZNc8J4.js → filepond-plugin-image-exif-orientation-Bm5i6zMO.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-C9c7tVEB.js → filepond-plugin-image-preview-INllb63L.js} +1 -1
  8. package/dist/cjs/{index-zv0p1Eys.js → index-DIEWuq3M.js} +2 -2
  9. package/dist/cjs/{intlTelInput-C8hiSJ_i.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 +50 -36
  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 +44 -23
  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-DRrOfZz0.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 +9 -3
  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.js +8 -4
  126. package/dist/collection/components/salla-filters/salla-filters.js +10 -5
  127. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +6 -3
  128. package/dist/collection/components/salla-gifting/salla-gifting.js +11 -6
  129. package/dist/collection/components/salla-hook/salla-hook.js +5 -1
  130. package/dist/collection/components/salla-infinite-scroll/salla-infinite-scroll.js +6 -1
  131. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +15 -2
  132. package/dist/collection/components/salla-loyalty/salla-loyalty.js +12 -5
  133. package/dist/collection/components/salla-map/salla-map.js +12 -7
  134. package/dist/collection/components/salla-notifications/salla-notifications.js +6 -1
  135. package/dist/collection/components/salla-offer/salla-offer.js +12 -7
  136. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +13 -6
  137. package/dist/collection/components/salla-order-branch/salla-order-branch.css +35 -0
  138. package/dist/collection/components/salla-order-branch/salla-order-branch.js +40 -2
  139. package/dist/collection/components/salla-order-summary/salla-order-summary.js +6 -3
  140. package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +1 -1
  141. package/dist/collection/components/salla-orders/salla-orders.js +9 -5
  142. package/dist/collection/components/salla-placeholder/salla-placeholder.js +10 -3
  143. package/dist/collection/components/salla-price-range/salla-price-range.js +6 -3
  144. package/dist/collection/components/salla-product-availability/salla-product-availability.js +16 -7
  145. package/dist/collection/components/salla-product-card/salla-product-card.js +22 -17
  146. package/dist/collection/components/salla-product-options/salla-product-options.js +9 -6
  147. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +8 -3
  148. package/dist/collection/components/salla-products-list/salla-products-list.js +4 -3
  149. package/dist/collection/components/salla-progress-bar/salla-progress-bar.js +20 -4
  150. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +6 -1
  151. package/dist/collection/components/salla-quick-order/salla-quick-order.js +6 -1
  152. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +8 -2
  153. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +16 -16
  154. package/dist/collection/components/salla-review-card/salla-review-card.js +5 -1
  155. package/dist/collection/components/salla-reviews/salla-reviews.js +6 -1
  156. package/dist/collection/components/salla-scopes/salla-scopes.js +9 -2
  157. package/dist/collection/components/salla-skeleton/salla-skeleton.js +10 -10
  158. package/dist/collection/components/salla-slider/salla-slider.js +6 -3
  159. package/dist/collection/components/salla-social/salla-social.js +7 -2
  160. package/dist/collection/components/salla-tabs/salla-tab-header.js +3 -3
  161. package/dist/collection/components/salla-tel-input/salla-tel-input.js +24 -19
  162. package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +6 -1
  163. package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +7 -3
  164. package/dist/collection/components/salla-user-menu/salla-user-menu.js +6 -0
  165. package/dist/collection/components/salla-user-profile/salla-user-profile.js +6 -2
  166. package/dist/collection/components/salla-user-settings/salla-user-settings.js +7 -2
  167. package/dist/collection/components/salla-verify/salla-verify.js +13 -6
  168. package/dist/components/index.js +2 -2
  169. package/dist/components/salla-add-product-button2.js +7 -2
  170. package/dist/components/salla-alert.js +2 -2
  171. package/dist/components/salla-apps-icons.js +6 -1
  172. package/dist/components/salla-booking-field2.js +10 -4
  173. package/dist/components/salla-bottom-alert.js +23 -17
  174. package/dist/components/salla-bullet-delivery.js +1 -1
  175. package/dist/components/salla-button2.js +9 -17
  176. package/dist/components/salla-cart-item-offers.js +10 -3
  177. package/dist/components/salla-cart-summary.js +1 -1
  178. package/dist/components/salla-comment-form2.js +10 -5
  179. package/dist/components/salla-comment-item2.js +8 -2
  180. package/dist/components/salla-comments.js +9 -3
  181. package/dist/components/salla-contacts.js +9 -2
  182. package/dist/components/salla-count-down2.js +16 -11
  183. package/dist/components/salla-file-upload2.js +8 -4
  184. package/dist/components/salla-filters-widget2.js +6 -3
  185. package/dist/components/salla-filters.js +9 -4
  186. package/dist/components/salla-gifting.js +11 -6
  187. package/dist/components/salla-hook.js +1 -1
  188. package/dist/components/salla-infinite-scroll.js +6 -1
  189. package/dist/components/salla-localization-modal.js +15 -2
  190. package/dist/components/salla-loyalty.js +12 -5
  191. package/dist/components/salla-map2.js +12 -7
  192. package/dist/components/salla-notifications.js +6 -1
  193. package/dist/components/salla-offer-modal.js +13 -6
  194. package/dist/components/salla-offer.js +12 -7
  195. package/dist/components/salla-order-branch.js +41 -3
  196. package/dist/components/salla-order-summary.js +6 -3
  197. package/dist/components/salla-order-totals-card.js +1 -1
  198. package/dist/components/salla-orders.js +9 -5
  199. package/dist/components/salla-placeholder2.js +10 -3
  200. package/dist/components/salla-price-range2.js +6 -3
  201. package/dist/components/salla-product-availability2.js +16 -7
  202. package/dist/components/salla-product-card2.js +13 -8
  203. package/dist/components/salla-product-options2.js +9 -6
  204. package/dist/components/salla-product-size-guide.js +8 -3
  205. package/dist/components/salla-products-list2.js +4 -3
  206. package/dist/components/salla-progress-bar2.js +20 -4
  207. package/dist/components/salla-quick-buy2.js +6 -1
  208. package/dist/components/salla-quick-order.js +6 -1
  209. package/dist/components/salla-rating-modal2.js +8 -2
  210. package/dist/components/salla-rating-stars2.js +10 -10
  211. package/dist/components/salla-review-card2.js +1 -1
  212. package/dist/components/salla-reviews.js +6 -1
  213. package/dist/components/salla-scopes.js +9 -2
  214. package/dist/components/salla-skeleton2.js +7 -7
  215. package/dist/components/salla-slider2.js +6 -3
  216. package/dist/components/salla-social.js +7 -2
  217. package/dist/components/salla-tab-header2.js +3 -3
  218. package/dist/components/salla-tel-input2.js +24 -19
  219. package/dist/components/salla-tiered-offer.js +6 -1
  220. package/dist/components/salla-trust-badges.js +7 -3
  221. package/dist/components/salla-user-menu.js +6 -0
  222. package/dist/components/salla-user-profile.js +6 -2
  223. package/dist/components/salla-user-settings.js +7 -2
  224. package/dist/components/salla-verify.js +13 -6
  225. package/dist/components/translate.js +37 -1
  226. package/dist/docs.json +44 -44
  227. package/dist/esm/{filepond-okemUEVJ.js → filepond-DfLkIBAw.js} +1 -1
  228. package/dist/esm/{filepond-plugin-file-poster-He-1QDcm.js → filepond-plugin-file-poster-D3ie06bz.js} +1 -1
  229. package/dist/esm/{filepond-plugin-file-validate-size-BoQ9OZHK.js → filepond-plugin-file-validate-size-C_S_eFQe.js} +1 -1
  230. package/dist/esm/{filepond-plugin-file-validate-type-BVxE-7xU.js → filepond-plugin-file-validate-type-BE7nqQRE.js} +1 -1
  231. package/dist/esm/{filepond-plugin-image-edit-DJnNmArQ.js → filepond-plugin-image-edit-C6jDcMnX.js} +1 -1
  232. package/dist/esm/{filepond-plugin-image-exif-orientation-CgkqV9g5.js → filepond-plugin-image-exif-orientation-nKXdF-ae.js} +1 -1
  233. package/dist/esm/{filepond-plugin-image-preview-DxbixTNR.js → filepond-plugin-image-preview-Dzl44GI1.js} +1 -1
  234. package/dist/esm/{index-C1mBhG6Z.js → index-BmRQjBRH.js} +2 -2
  235. package/dist/esm/{intlTelInput-wxpsRy0u.js → intlTelInput-dGrU4Iu9.js} +1 -1
  236. package/dist/esm/loader.js +3 -3
  237. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  238. package/dist/esm/salla-accordion_6.entry.js +10 -18
  239. package/dist/esm/salla-add-product-button_5.entry.js +37 -15
  240. package/dist/esm/salla-advertisement.entry.js +1 -1
  241. package/dist/esm/salla-alert_2.entry.js +26 -20
  242. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  243. package/dist/esm/salla-applied-filters.entry.js +1 -1
  244. package/dist/esm/salla-apps-icons.entry.js +7 -2
  245. package/dist/esm/salla-attachment-view_9.entry.js +50 -36
  246. package/dist/esm/salla-badge.entry.js +1 -1
  247. package/dist/esm/salla-basket-gap.entry.js +1 -1
  248. package/dist/esm/salla-bullet-delivery_3.entry.js +2 -2
  249. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  250. package/dist/esm/salla-cart-item-offers_2.entry.js +12 -5
  251. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  252. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  253. package/dist/esm/salla-comment-factors.entry.js +1 -1
  254. package/dist/esm/salla-comment-form_9.entry.js +44 -23
  255. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  256. package/dist/esm/salla-contacts.entry.js +10 -3
  257. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  258. package/dist/esm/salla-count-down.entry.js +17 -12
  259. package/dist/esm/salla-custom-fields.entry.js +1 -1
  260. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  261. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  262. package/dist/esm/salla-filters-widget.entry.js +7 -4
  263. package/dist/esm/salla-filters.entry.js +10 -5
  264. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  265. package/dist/esm/salla-gift-card-redeem_2.entry.js +1 -1
  266. package/dist/esm/salla-gifting.entry.js +12 -7
  267. package/dist/esm/salla-hook.entry.js +2 -2
  268. package/dist/esm/salla-infinite-scroll.entry.js +7 -2
  269. package/dist/esm/salla-installment.entry.js +1 -1
  270. package/dist/esm/salla-list-tile.entry.js +1 -1
  271. package/dist/esm/salla-localization-modal.entry.js +14 -2
  272. package/dist/esm/salla-login-modal.entry.js +1 -1
  273. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  274. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  275. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  276. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  277. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  278. package/dist/esm/salla-loyalty.entry.js +12 -5
  279. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  280. package/dist/esm/salla-map_3.entry.js +39 -15
  281. package/dist/esm/salla-menu.entry.js +1 -1
  282. package/dist/esm/salla-metadata.entry.js +1 -1
  283. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  284. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  285. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  286. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  287. package/dist/esm/salla-notification-item_2.entry.js +7 -2
  288. package/dist/esm/salla-offer-modal.entry.js +14 -7
  289. package/dist/esm/salla-offer.entry.js +14 -9
  290. package/dist/esm/salla-order-branch.entry.js +42 -4
  291. package/dist/esm/salla-order-cancel.entry.js +1 -1
  292. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  293. package/dist/esm/salla-order-details-options.entry.js +1 -1
  294. package/dist/esm/salla-order-details.entry.js +1 -1
  295. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  296. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  297. package/dist/esm/salla-order-edit.entry.js +1 -1
  298. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  299. package/dist/esm/salla-order-shipments.entry.js +1 -1
  300. package/dist/esm/salla-order-summary.entry.js +7 -4
  301. package/dist/esm/salla-order-totals-card.entry.js +2 -2
  302. package/dist/esm/salla-orders.entry.js +10 -6
  303. package/dist/esm/salla-payments.entry.js +1 -1
  304. package/dist/esm/salla-placeholder.entry.js +10 -3
  305. package/dist/esm/salla-price-range.entry.js +7 -4
  306. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  307. package/dist/esm/salla-product-card.entry.js +14 -9
  308. package/dist/esm/salla-product-size-guide.entry.js +9 -4
  309. package/dist/esm/salla-products-list.entry.js +5 -4
  310. package/dist/esm/salla-products-slider.entry.js +1 -1
  311. package/dist/esm/salla-quick-order.entry.js +7 -2
  312. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  313. package/dist/esm/salla-rating-modal.entry.js +9 -3
  314. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  315. package/dist/esm/salla-review-order-item.entry.js +1 -1
  316. package/dist/esm/salla-scopes.entry.js +9 -2
  317. package/dist/esm/salla-search-product-card.entry.js +1 -1
  318. package/dist/esm/salla-search.entry.js +1 -1
  319. package/dist/esm/salla-skeleton.entry.js +8 -8
  320. package/dist/esm/salla-social-share.entry.js +1 -1
  321. package/dist/esm/salla-social.entry.js +8 -3
  322. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  323. package/dist/esm/salla-tiered-offer.entry.js +7 -2
  324. package/dist/esm/salla-trust-badges.entry.js +8 -4
  325. package/dist/esm/salla-user-menu.entry.js +7 -1
  326. package/dist/esm/salla-user-profile.entry.js +7 -3
  327. package/dist/esm/salla-user-settings.entry.js +8 -3
  328. package/dist/esm/salla-verify.entry.js +13 -6
  329. package/dist/esm/salla-wallet.entry.js +1 -1
  330. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  331. package/dist/esm/salla-wishlist-summary.entry.js +1 -1
  332. package/dist/esm/translate-CxrJQ3Jf.js +54 -0
  333. package/dist/esm/twilight.js +3 -3
  334. package/dist/esm/{vanilla-picker-CQEJbE9K.js → vanilla-picker-DRghK0RD.js} +1 -1
  335. package/dist/twilight/p-00e1f5fd.entry.js +4 -0
  336. package/dist/twilight/{p-da9bd7f6.entry.js → p-12338d19.entry.js} +1 -1
  337. package/dist/twilight/p-1557d0ca.entry.js +4 -0
  338. package/dist/twilight/{p-160476f0.entry.js → p-15ab81d6.entry.js} +1 -1
  339. package/dist/twilight/p-182d7bab.entry.js +4 -0
  340. package/dist/twilight/p-1908ab44.entry.js +4 -0
  341. package/dist/twilight/p-19592be3.entry.js +4 -0
  342. package/dist/twilight/{p-c82f46a9.entry.js → p-1a8c7481.entry.js} +1 -1
  343. package/dist/twilight/p-1c8bf883.entry.js +4 -0
  344. package/dist/twilight/{p-d6d72996.entry.js → p-1c8dde1a.entry.js} +1 -1
  345. package/dist/twilight/p-1f2844db.entry.js +4 -0
  346. package/dist/twilight/{p-3a465851.entry.js → p-2cf7eb3b.entry.js} +1 -1
  347. package/dist/twilight/p-2de4c351.entry.js +4 -0
  348. package/dist/twilight/{p-fd787b30.entry.js → p-2de666d8.entry.js} +1 -1
  349. package/dist/twilight/p-33e769b3.entry.js +4 -0
  350. package/dist/twilight/{p-f8aa1b23.entry.js → p-3745be6d.entry.js} +1 -1
  351. package/dist/twilight/p-39a16468.entry.js +4 -0
  352. package/dist/twilight/{p-8eb75cf8.entry.js → p-3a996401.entry.js} +1 -1
  353. package/dist/twilight/{p-81596b48.entry.js → p-3bf933f6.entry.js} +1 -1
  354. package/dist/twilight/p-3d1842e4.entry.js +4 -0
  355. package/dist/twilight/p-3f373f1e.entry.js +4 -0
  356. package/dist/twilight/{p-b3abf071.entry.js → p-3f66f717.entry.js} +1 -1
  357. package/dist/twilight/p-3fdaf198.entry.js +4 -0
  358. package/dist/twilight/p-41248f5f.entry.js +4 -0
  359. package/dist/twilight/{p-ca7593c0.entry.js → p-4235b3c2.entry.js} +1 -1
  360. package/dist/twilight/{p-caee5b0d.entry.js → p-4aa07eca.entry.js} +1 -1
  361. package/dist/twilight/{p-1080831a.entry.js → p-4b111d7a.entry.js} +1 -1
  362. package/dist/twilight/{p-d75157e0.entry.js → p-51694dd2.entry.js} +1 -1
  363. package/dist/twilight/{p-8513fec2.entry.js → p-55b5158c.entry.js} +1 -1
  364. package/dist/twilight/{p-e4589779.entry.js → p-5617656f.entry.js} +1 -1
  365. package/dist/twilight/{p-ac20a6de.entry.js → p-58dcc966.entry.js} +1 -1
  366. package/dist/twilight/p-5f35b46a.entry.js +4 -0
  367. package/dist/twilight/{p-62653d93.entry.js → p-60e1fb1a.entry.js} +1 -1
  368. package/dist/twilight/{p-7ac91ace.entry.js → p-61956814.entry.js} +1 -1
  369. package/dist/twilight/p-6854e982.entry.js +4 -0
  370. package/dist/twilight/{p-fac4da2b.entry.js → p-68919916.entry.js} +1 -1
  371. package/dist/twilight/p-6b0d6b9b.entry.js +4 -0
  372. package/dist/twilight/p-71cbf7a4.entry.js +4 -0
  373. package/dist/twilight/{p-c28395c6.entry.js → p-730101ff.entry.js} +1 -1
  374. package/dist/twilight/p-737b93c2.entry.js +4 -0
  375. package/dist/twilight/p-74ccf675.entry.js +4 -0
  376. package/dist/twilight/{p-f47a1351.entry.js → p-7aa15258.entry.js} +1 -1
  377. package/dist/twilight/{p-d6508494.entry.js → p-7c7648d7.entry.js} +1 -1
  378. package/dist/twilight/p-7dfe99e6.entry.js +4 -0
  379. package/dist/twilight/{p-54bc613c.entry.js → p-7e724019.entry.js} +1 -1
  380. package/dist/twilight/p-8248cecd.entry.js +4 -0
  381. package/dist/twilight/p-844ebeb6.entry.js +4 -0
  382. package/dist/twilight/{p-8ec0fc03.entry.js → p-87cedb04.entry.js} +1 -1
  383. package/dist/twilight/p-8b21158b.entry.js +4 -0
  384. package/dist/twilight/{p-844176cb.entry.js → p-8c10cb85.entry.js} +1 -1
  385. package/dist/twilight/p-8e2488fe.entry.js +4 -0
  386. package/dist/twilight/{p-c89282b0.entry.js → p-9108e712.entry.js} +1 -1
  387. package/dist/twilight/p-91326a74.entry.js +4 -0
  388. package/dist/twilight/{p-60d06105.entry.js → p-96f9eb1f.entry.js} +1 -1
  389. package/dist/twilight/p-99463d58.entry.js +4 -0
  390. package/dist/twilight/p-9e196eb0.entry.js +4 -0
  391. package/dist/twilight/{p-CtcjG32v.js → p-B4fbRnFh.js} +1 -1
  392. package/dist/twilight/{p-BB23a2fo.js → p-BIToxPOg.js} +1 -1
  393. package/dist/twilight/{p-C1mBhG6Z.js → p-BmRQjBRH.js} +1 -1
  394. package/dist/twilight/{p-E2n9kJc8.js → p-C1XjCBHg.js} +1 -1
  395. package/dist/twilight/{p-DiU9tYvl.js → p-C48Rktr4.js} +1 -1
  396. package/dist/twilight/{p-Bm1ywp6t.js → p-CWismw4I.js} +1 -1
  397. package/dist/twilight/p-CxrJQ3Jf.js +4 -0
  398. package/dist/twilight/{p-CJPWrlxL.js → p-DYEGhE1O.js} +1 -1
  399. package/dist/twilight/{p-Gxv67UlH.js → p-DnZfyhH5.js} +1 -1
  400. package/dist/twilight/{p-pzi0Osm7.js → p-OCGvfvVA.js} +1 -1
  401. package/dist/twilight/{p-672a709e.entry.js → p-a80acba3.entry.js} +1 -1
  402. package/dist/twilight/{p-474997dd.entry.js → p-ab1d320f.entry.js} +1 -1
  403. package/dist/twilight/{p-dbc1e40c.entry.js → p-ac7d45b6.entry.js} +1 -1
  404. package/dist/twilight/{p-e43c49e9.entry.js → p-aeafb519.entry.js} +1 -1
  405. package/dist/twilight/p-b5499627.entry.js +4 -0
  406. package/dist/twilight/{p-e98835e3.entry.js → p-b5829615.entry.js} +1 -1
  407. package/dist/twilight/p-b6c5435e.entry.js +4 -0
  408. package/dist/twilight/{p-5e426c78.entry.js → p-baaa3e72.entry.js} +1 -1
  409. package/dist/twilight/{p-5e099f96.entry.js → p-bfdde3db.entry.js} +1 -1
  410. package/dist/twilight/p-c22ea75b.entry.js +4 -0
  411. package/dist/twilight/{p-1a5d0b25.entry.js → p-c3d33aee.entry.js} +1 -1
  412. package/dist/twilight/{p-f130c67f.entry.js → p-c5d4f71c.entry.js} +1 -1
  413. package/dist/twilight/{p-a11b77df.entry.js → p-cc46f297.entry.js} +1 -1
  414. package/dist/twilight/p-cca10a34.entry.js +4 -0
  415. package/dist/twilight/p-cdbb6758.entry.js +4 -0
  416. package/dist/twilight/{p-f643bf2f.entry.js → p-cf1cc0d1.entry.js} +1 -1
  417. package/dist/twilight/{p-67d3ee58.entry.js → p-d034a3ba.entry.js} +1 -1
  418. package/dist/twilight/{p-dcb5ceda.entry.js → p-d307d40a.entry.js} +1 -1
  419. package/dist/twilight/p-d37e6c2f.entry.js +4 -0
  420. package/dist/twilight/{p-21ba0eac.entry.js → p-d3be7885.entry.js} +1 -1
  421. package/dist/twilight/{p-9d434410.entry.js → p-d542e647.entry.js} +1 -1
  422. package/dist/twilight/{p-f3985cfd.entry.js → p-db9994c2.entry.js} +1 -1
  423. package/dist/twilight/p-dd4bcce0.entry.js +4 -0
  424. package/dist/twilight/{p-de55326d.entry.js → p-de3c5f91.entry.js} +1 -1
  425. package/dist/twilight/{p-342b31ba.entry.js → p-e2d1d888.entry.js} +1 -1
  426. package/dist/twilight/{p-6602a61a.entry.js → p-e6bc3cf4.entry.js} +1 -1
  427. package/dist/twilight/{p-12a2b743.entry.js → p-e8d94147.entry.js} +1 -1
  428. package/dist/twilight/{p-e00ed6c9.entry.js → p-e9319448.entry.js} +1 -1
  429. package/dist/twilight/{p-4bde9c4e.entry.js → p-ec1589cf.entry.js} +1 -1
  430. package/dist/twilight/{p-58058ae9.entry.js → p-ece1fecd.entry.js} +1 -1
  431. package/dist/twilight/{p-97bb12a6.entry.js → p-f0180034.entry.js} +1 -1
  432. package/dist/twilight/{p-4b0eaa16.entry.js → p-f348601d.entry.js} +1 -1
  433. package/dist/twilight/{p-c28c53c3.entry.js → p-f5afeed8.entry.js} +1 -1
  434. package/dist/twilight/p-f70fa2e9.entry.js +4 -0
  435. package/dist/twilight/{p-80699771.entry.js → p-f76349b3.entry.js} +1 -1
  436. package/dist/twilight/{p-5babb989.entry.js → p-fa600113.entry.js} +1 -1
  437. package/dist/twilight/p-fde4cf31.entry.js +4 -0
  438. package/dist/twilight/{p-cb770a9e.entry.js → p-fe3645b0.entry.js} +1 -1
  439. package/dist/twilight/{p-8bdb7f71.entry.js → p-feb068a2.entry.js} +1 -1
  440. package/dist/twilight/{p-C57CqqgQ.js → p-imI5he7m.js} +1 -1
  441. package/dist/twilight/twilight.esm.js +1 -1
  442. package/dist/types/Helpers/translate.d.ts +17 -0
  443. package/dist/types/components/salla-add-product-button/salla-add-product-button.d.ts +2 -1
  444. package/dist/types/components/salla-alert/salla-alert.d.ts +3 -3
  445. package/dist/types/components/salla-apps-icons/salla-apps-icons.d.ts +3 -0
  446. package/dist/types/components/salla-booking-field/salla-booking-field.d.ts +3 -0
  447. package/dist/types/components/salla-bottom-alert/salla-bottom-alert.d.ts +3 -1
  448. package/dist/types/components/salla-button/salla-button.d.ts +10 -18
  449. package/dist/types/components/salla-cart-item-offers/salla-cart-item-offers.d.ts +3 -0
  450. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +2 -2
  451. package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +3 -0
  452. package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -1
  453. package/dist/types/components/salla-comments/salla-comments.d.ts +3 -0
  454. package/dist/types/components/salla-contacts/salla-contacts.d.ts +4 -0
  455. package/dist/types/components/salla-count-down/salla-count-down.d.ts +17 -14
  456. package/dist/types/components/salla-custom-fields/salla-custom-fields.d.ts +4 -0
  457. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +2 -0
  458. package/dist/types/components/salla-filters/salla-filters.d.ts +4 -1
  459. package/dist/types/components/salla-filters-widget/salla-filters-widget.d.ts +2 -0
  460. package/dist/types/components/salla-gifting/salla-gifting.d.ts +3 -0
  461. package/dist/types/components/salla-hook/salla-hook.d.ts +4 -0
  462. package/dist/types/components/salla-infinite-scroll/salla-infinite-scroll.d.ts +3 -0
  463. package/dist/types/components/salla-localization-modal/salla-localization-modal.d.ts +4 -0
  464. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +3 -0
  465. package/dist/types/components/salla-map/salla-map.d.ts +3 -0
  466. package/dist/types/components/salla-notifications/salla-notifications.d.ts +3 -1
  467. package/dist/types/components/salla-offer/salla-offer.d.ts +3 -0
  468. package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +3 -0
  469. package/dist/types/components/salla-order-branch/interfaces.d.ts +1 -0
  470. package/dist/types/components/salla-order-branch/salla-order-branch.d.ts +10 -1
  471. package/dist/types/components/salla-order-summary/salla-order-summary.d.ts +2 -0
  472. package/dist/types/components/salla-order-totals-card/interfaces.d.ts +1 -0
  473. package/dist/types/components/salla-orders/salla-orders.d.ts +3 -1
  474. package/dist/types/components/salla-placeholder/salla-placeholder.d.ts +3 -1
  475. package/dist/types/components/salla-price-range/salla-price-range.d.ts +2 -0
  476. package/dist/types/components/salla-product-availability/salla-product-availability.d.ts +4 -0
  477. package/dist/types/components/salla-product-card/salla-product-card.d.ts +12 -9
  478. package/dist/types/components/salla-product-options/salla-product-options.d.ts +2 -0
  479. package/dist/types/components/salla-product-size-guide/salla-product-size-guide.d.ts +3 -0
  480. package/dist/types/components/salla-products-list/salla-products-list.d.ts +1 -0
  481. package/dist/types/components/salla-progress-bar/salla-progress-bar.d.ts +5 -0
  482. package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +3 -1
  483. package/dist/types/components/salla-quick-order/salla-quick-order.d.ts +3 -0
  484. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +3 -0
  485. package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +14 -14
  486. package/dist/types/components/salla-review-card/salla-review-card.d.ts +4 -0
  487. package/dist/types/components/salla-reviews/salla-reviews.d.ts +3 -0
  488. package/dist/types/components/salla-scopes/salla-scopes.d.ts +3 -0
  489. package/dist/types/components/salla-skeleton/salla-skeleton.d.ts +6 -6
  490. package/dist/types/components/salla-slider/salla-slider.d.ts +2 -0
  491. package/dist/types/components/salla-social/salla-social.d.ts +3 -0
  492. package/dist/types/components/salla-tabs/salla-tab-header.d.ts +2 -2
  493. package/dist/types/components/salla-tel-input/salla-tel-input.d.ts +3 -1
  494. package/dist/types/components/salla-tiered-offer/salla-tiered-offer.d.ts +3 -1
  495. package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +3 -1
  496. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +3 -0
  497. package/dist/types/components/salla-user-profile/salla-user-profile.d.ts +3 -1
  498. package/dist/types/components/salla-user-settings/salla-user-settings.d.ts +3 -0
  499. package/dist/types/components/salla-verify/salla-verify.d.ts +3 -0
  500. package/dist/types/components.d.ts +128 -80
  501. package/package.json +5 -5
  502. package/dist/cjs/translate-BeU1QX_r.js +0 -20
  503. package/dist/esm/translate-CrSV-tno.js +0 -18
  504. package/dist/twilight/p-020eb2a1.entry.js +0 -4
  505. package/dist/twilight/p-06799084.entry.js +0 -4
  506. package/dist/twilight/p-0a3abfd4.entry.js +0 -4
  507. package/dist/twilight/p-0ef388be.entry.js +0 -4
  508. package/dist/twilight/p-1f99db23.entry.js +0 -4
  509. package/dist/twilight/p-232c39e9.entry.js +0 -4
  510. package/dist/twilight/p-305ed224.entry.js +0 -4
  511. package/dist/twilight/p-3a4cf66c.entry.js +0 -4
  512. package/dist/twilight/p-3c4702bb.entry.js +0 -4
  513. package/dist/twilight/p-3dcb5129.entry.js +0 -4
  514. package/dist/twilight/p-43d0c80e.entry.js +0 -4
  515. package/dist/twilight/p-50bbbd18.entry.js +0 -4
  516. package/dist/twilight/p-51c26ce7.entry.js +0 -4
  517. package/dist/twilight/p-54054ab9.entry.js +0 -4
  518. package/dist/twilight/p-5c1a36ab.entry.js +0 -4
  519. package/dist/twilight/p-5cf3929c.entry.js +0 -4
  520. package/dist/twilight/p-8028be6f.entry.js +0 -4
  521. package/dist/twilight/p-82939afe.entry.js +0 -4
  522. package/dist/twilight/p-85cff524.entry.js +0 -4
  523. package/dist/twilight/p-8dfdd6c9.entry.js +0 -4
  524. package/dist/twilight/p-92f6aa52.entry.js +0 -4
  525. package/dist/twilight/p-CrSV-tno.js +0 -4
  526. package/dist/twilight/p-a4aac112.entry.js +0 -4
  527. package/dist/twilight/p-a52bfa57.entry.js +0 -4
  528. package/dist/twilight/p-a9aadc0b.entry.js +0 -4
  529. package/dist/twilight/p-bc26490f.entry.js +0 -4
  530. package/dist/twilight/p-bef93c52.entry.js +0 -4
  531. package/dist/twilight/p-c30bfc0b.entry.js +0 -4
  532. package/dist/twilight/p-cbcca1ff.entry.js +0 -4
  533. package/dist/twilight/p-d81bcfb3.entry.js +0 -4
  534. package/dist/twilight/p-e67b2aa8.entry.js +0 -4
  535. package/dist/twilight/p-e9ce8dec.entry.js +0 -4
  536. package/dist/twilight/p-eb718f6b.entry.js +0 -4
  537. package/dist/twilight/p-ec361a66.entry.js +0 -4
  538. package/dist/twilight/p-f32de457.entry.js +0 -4
  539. package/dist/twilight/p-f626ef96.entry.js +0 -4
  540. package/dist/twilight/p-f6df7f8a.entry.js +0 -4
  541. package/dist/twilight/p-fd3bb3f2.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-C1mBhG6Z.js';
4
+ import { r as registerInstance, f as forceUpdate, h, H as Host } from './index-BmRQjBRH.js';
5
5
 
6
6
  var Inbox = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -28,10 +28,17 @@ const SallaPlaceholder = class {
28
28
  * The size of the icon. Defaults to [`md`] = 45px for font icon & width/height: 3.5rem for svg icon
29
29
  */
30
30
  this.iconSize = 'md';
31
- salla.lang.onLoaded(() => {
31
+ }
32
+ connectedCallback() {
33
+ this.langUnsubscribe = salla.lang.subscribe(() => {
32
34
  this.translationLoaded = true;
35
+ // translationLoaded is already true on later calls, so force the render that refreshes the labels read in render()
36
+ forceUpdate(this);
33
37
  });
34
38
  }
39
+ disconnectedCallback() {
40
+ this.langUnsubscribe?.();
41
+ }
35
42
  alignmentClass() {
36
43
  return {
37
44
  's-placeholder-wrapper': true,
@@ -41,7 +48,7 @@ const SallaPlaceholder = class {
41
48
  };
42
49
  }
43
50
  render() {
44
- return (h(Host, { key: '7680e249ef9627c8c53c1fcbd02bb942d3f650a4', class: this.alignmentClass() }, h("div", { key: '17df509f27879794ea37172826489033ddb85045', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '117de24add832359f0a046a5e67b16748e25572d', class: "s-placeholder-title" }, h("slot", { key: '3bc517f00c6427a1103f859b58e9763f10851f4d', name: 'title' }, h("span", { key: '17615872d9b5e03d9b33d01fde5e1753f5f7a97e' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '962eafb62268b4ae3e25610a0dec6734ac58378a', class: "s-placeholder-description" }, h("slot", { key: '6326fdee550361c7cf6be95f1da2baf5616bd0f4', name: 'description' }, h("span", { key: '179fbe8c4352fad27a88b39baa6d858075006bfe' }, salla.lang.get('common.errors.empty_results'))))));
51
+ return (h(Host, { key: 'e0ddbbcae1f1770e0aa1fde820b80f010b837c70', class: this.alignmentClass() }, h("div", { key: '42aaa39f4b5ff6e854d8752fd8b7f51967a61640', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '89b58694c6e8e52df2a6cfcf53f928e8e1be65cc', class: "s-placeholder-title" }, h("slot", { key: '810a0cbc0338a430f48e0478d855baef78368d30', name: 'title' }, h("span", { key: '29f370d5460607afd3ad8971afb8387e3ab8ccd7' }, salla.lang.get('common.elements.no_options')))), h("div", { key: 'daabc9a39c770605c2b0a18a8e32c9b77cd28387', class: "s-placeholder-description" }, h("slot", { key: 'b318ca5417191c0e78eaab5e814dbc393679b416', name: 'description' }, h("span", { key: '1f616f82f63bbe79d7f88ae83544ce0ab97aa9fb' }, salla.lang.get('common.errors.empty_results'))))));
45
52
  }
46
53
  };
47
54
  SallaPlaceholder.style = sallaPlaceholderCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-C1mBhG6Z.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-BmRQjBRH.js';
5
5
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
6
6
  import { a as arrowRight } from './arrow-right-B9q7ymSg.js';
7
7
 
@@ -27,7 +27,7 @@ const SallaPriceRange = class {
27
27
  this.minPrice = this.filtersData.price.min;
28
28
  this.maxPrice = this.filtersData.price.max;
29
29
  }
30
- salla.lang.onLoaded(() => {
30
+ this.langUnsubscribe = salla.lang.subscribe(() => {
31
31
  this.moreThanLabel = salla.lang.getWithDefault('common.elements.more_than', this.moreThanLabel);
32
32
  this.lessThanLabel = salla.lang.getWithDefault('common.elements.less_than', this.lessThanLabel);
33
33
  this.toLabel = salla.lang.getWithDefault('common.elements.to', this.toLabel);
@@ -54,6 +54,9 @@ const SallaPriceRange = class {
54
54
  // do whatever
55
55
  }
56
56
  }
57
+ disconnectedCallback() {
58
+ this.langUnsubscribe?.();
59
+ }
57
60
  /**
58
61
  * reset the price range inputs
59
62
  */
@@ -151,9 +154,9 @@ const SallaPriceRange = class {
151
154
  this.maxPrice = value === undefined ? '' : value;
152
155
  }
153
156
  render() {
154
- return (h(Host, { key: '582547be2a058bd2ab9c8567b5925f25711e1aff' }, this.filterValues.map((filterValue, index) => {
157
+ return (h(Host, { key: '58b6733af46dcfc2f58f6096a3054512aea0f13a' }, this.filterValues.map((filterValue, index) => {
155
158
  return h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index}`, key: index }, h("input", { id: `${this.option.key}-${index}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), h("span", { innerHTML: this.getPriceLabel(filterValue) }));
156
- }), h("div", { key: '36dea18b1f8f9b9c11a235328d6019cdb0ea5d9d', class: "flex justify-center items-center" }, h("div", { key: '765c5a4eca4cb39b47cba341e8c8f7b7888f0072', class: "relative max-w-xl w-full" }, h("div", { key: '24c54bcec699865a391f198d701abcdcf40bd438', class: "s-price-range-inputs" }, h("div", { key: '962c157d0d7df4f096eed09b51618f3bdadaa347', class: "s-price-range-relative" }, h("div", { key: 'e39123015563b93553be0498673245311644f178', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '4dadf22dc8ad4a982a07acdbb5b62b28b46aa49a', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: '1aea9954befb49f6c9f3f0b1d20ce04defa352b9', class: "s-price-range-gray-text" }, " -"), h("div", { key: 'c4ed3a532ab1c780e69bcadd96ed9581e0a69a85', class: "s-price-range-relative" }, h("div", { key: '3489752cc4de7fb82e758bf877959d7c34094d28', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '9f06151e1156553f0a45283c0db0af92c269c110', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: '1496f0eb951492d3eaad51c90bc1234d746d748c', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '9efb20a46dae252c5e82bb52f0bcb57c8e030c99', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
159
+ }), h("div", { key: 'ffac46ec70c43e8e6866c27e7885700d8b84e02e', class: "flex justify-center items-center" }, h("div", { key: 'a44f86c833a9311fdbd043bacab3c8e39a3798a3', class: "relative max-w-xl w-full" }, h("div", { key: '58da7b0ff0bd6599660ddf2aa2b6f1c06fbd4e3a', class: "s-price-range-inputs" }, h("div", { key: 'f6cc6ea7bc4fa74b962adc29fd0f496a81ff7f98', class: "s-price-range-relative" }, h("div", { key: 'c5dcb135e50a0eafb9662deb3adde895ea997fa9', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'ddc438e870e21a030984ba5422d686ee0d756b9a', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: '713b4a7ba19e6c00a57b20978813dbd250acec6d', class: "s-price-range-gray-text" }, " -"), h("div", { key: '8a87cb916d418b898747b7dfe63d770419892ec1', class: "s-price-range-relative" }, h("div", { key: 'fb1790fdc5494925560a4ce8be907f980090ceff', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '164c84322ccf6fdddc2cb93f40440e4ddab9c164', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: 'cfb8f9d06b1b66170bddfebcd5bc0fea6bdcb9ff', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '1c1251cc2becb339ee3f286d3be50acc5ea159c0', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
157
160
  }
158
161
  componentDidLoad() {
159
162
  this.isReady = true;
@@ -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-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
 
6
6
  const sallaProductCardEmbedCss = "/*!twlt*/@charset \"UTF-8\";:host{display:inline-block;vertical-align:top;max-width:12rem}:host([align=left]){float:inline-start;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host([align=right]){float:inline-end;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host([align=center]){display:block;clear:both;margin-block:1em;margin-inline:auto}.s-product-card-embed-card{display:block}.visible{visibility:visible}.block{display:block}.flow-root{display:flow-root}.s-product-card-embed-card{display:block;max-width:12rem;shape-outside:margin-box}.s-product-card-embed-card custom-salla-product-card{--tw-shadow:0 0 28px 0px rgba(0 0 0 / .1);--tw-shadow-colored:0 0 28px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-product-card-embed-card-align-center{margin-left:auto;margin-right:auto}.s-product-card-embed-card-align-left{float:left;margin-right:1ch}.s-product-card-embed-card-align-right{float:right;margin-left:1ch}.s-product-card-embed-fallback{display:block}article:has(salla-product-card-embed)::after{clear:both;display:block;--tw-content:'';content:var(--tw-content)}";
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-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { H as Heart } from './heart-00vBRoH3.js';
6
6
  import { S as Star } from './star2-D4oPi1Ov.js';
7
7
  import { C as Cart } from './cart-gFG8By9O.js';
@@ -36,14 +36,6 @@ const SallaProductCard = class {
36
36
  salla.wishlist.event.onRemoved((_res, id) => this.toggleFavoriteIcon(false, id));
37
37
  this.placeholder = salla.url.asset(salla.config.get('theme.settings.placeholder'));
38
38
  });
39
- // Language
40
- salla.lang.onLoaded(() => {
41
- this.remained = salla.lang.get('pages.products.remained');
42
- this.donationAmount = salla.lang.get('pages.products.donation_amount');
43
- this.startingPrice = salla.lang.get('pages.products.starting_price');
44
- this.addToCart = salla.lang.get('pages.cart.add_to_cart');
45
- this.outOfStock = salla.lang.get('pages.products.out_of_stock');
46
- });
47
39
  // Parse product data
48
40
  if (!this.product) {
49
41
  return;
@@ -55,6 +47,19 @@ const SallaProductCard = class {
55
47
  salla.log('Bad json passed via product prop');
56
48
  }
57
49
  }
50
+ connectedCallback() {
51
+ // Language
52
+ this.langUnsubscribe = salla.lang.subscribe(() => {
53
+ this.remained = salla.lang.get('pages.products.remained');
54
+ this.donationAmount = salla.lang.get('pages.products.donation_amount');
55
+ this.startingPrice = salla.lang.get('pages.products.starting_price');
56
+ this.addToCart = salla.lang.get('pages.cart.add_to_cart');
57
+ this.outOfStock = salla.lang.get('pages.products.out_of_stock');
58
+ });
59
+ }
60
+ disconnectedCallback() {
61
+ this.langUnsubscribe?.();
62
+ }
58
63
  // Private Methods
59
64
  initCircleBar() {
60
65
  let qty = this.productData.quantity, total = this.productData.quantity > 100 ? this.productData.quantity * 2 : 100, roundPercent = (qty / total) * 100, bar = this.pie.querySelector('.s-product-card-content-pie-svg-bar'), strokeDashOffsetValue = 100 - roundPercent;
@@ -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-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-BmRQjBRH.js';
5
5
 
6
6
  var PencilRuler = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -17,12 +17,17 @@ const SallaProductSizeGuide = class {
17
17
  registerInstance(this, hostRef);
18
18
  this.hasError = false;
19
19
  salla.event.on('size-guide::open', (product_id) => this.open(product_id));
20
- salla.lang.onLoaded(() => {
20
+ }
21
+ connectedCallback() {
22
+ this.langUnsubscribe = salla.lang.subscribe(() => {
21
23
  this.placeholder_title = salla.lang.get('pages.products.size_guide_placeholder');
22
24
  this.placeholder_description = salla.lang.get('pages.products.size_guide_placeholder_info');
23
25
  this.modal_title = salla.lang.get('pages.products.size_guides');
24
26
  });
25
27
  }
28
+ disconnectedCallback() {
29
+ this.langUnsubscribe?.();
30
+ }
26
31
  /**
27
32
  * Show the size-guide modal window
28
33
  */
@@ -51,11 +56,11 @@ const SallaProductSizeGuide = class {
51
56
  return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
52
57
  }
53
58
  render() {
54
- return (h("salla-modal", { key: 'de368aff05a19d87eb4e99f4e1d7eee36155f435', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: 'c4ab31b3e6ef2751761ca2db27554f7f5bf057fc', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '17cfceb5ccb0546928f87f956267e9d0c11017ac', slot: "loading" }, h("div", { key: '4f4e20a62396d7825315203ffd22a72030e821b1', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'd9132b26634ae1997dad9f1229b248c2cd76fff0', height: '15px', width: '25%' }), h("div", { key: '1b6a236851eef6e7caf7b7a0e84e591824b4e4ef', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'bae06741881b57b4eb853f1256a22f9393d9cea4', height: '40px' }), h("salla-skeleton", { key: 'fdeb75a853f89df154b69dbd48fc8e233561af59', height: '40px' }), h("salla-skeleton", { key: 'd0be70bc141f04fd24adc86c56eec3a5e896f2d4', height: '40px' }), h("salla-skeleton", { key: 'c5146addbf2d5b9bda05170a9743cad0e08d8674', height: '40px' })), h("div", { key: '04dbbffe2de708c984c5d0966aa2b86c0051bd14', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '320fb33a2e5d9ee1f4b87c18b3f3dd13de180d4f', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'f06aeac8e2f8ea86ec9b1c5c6f2b31172f23209f', height: '10px', width: '75%' }), h("salla-skeleton", { key: '1accf852a34edcac77a77151ebf67ba8e05cc729', height: '10px', width: '50%' }), h("salla-skeleton", { key: '42d4c3364779a6ee130339e37affe2e0c590e6a7', height: '10px', width: '75%' }), h("salla-skeleton", { key: '13064a231460414b4a0abd19dda41b01ac1ee04f', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'd5a50f96ca3bab125503f836cd883cfb98ca135d', height: '10px', width: '25%' }), h("salla-skeleton", { key: '11cd2ed36d9754c32173f14cd7d5ea99fc2b5577', height: '10px', width: '60%' }), h("salla-skeleton", { key: 'a5b3a192d0e38dc13a025b8b8e0aba767f35611b', height: '10px', width: '45%' }), h("salla-skeleton", { key: 'dddcb26038e180fb5b686b29d286316d4314909f', height: '10px', width: '30%' })))), h("slot", { key: '43a08b9b6e64955b726b832f0849617ac31d4c25', name: "header" }), !this.hasError && !!this.guides ?
59
+ return (h("salla-modal", { key: '587dbc28fa828df2a47a4db1c124df032fe719fa', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '822224aa89fb065c7262abf2f24914ed1fa3d8bb', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '84e14a400f9417aa9be851a07f0203348a560aec', slot: "loading" }, h("div", { key: '5cbdbcf560f08279543c4d25fd21416ce2da1314', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'e3139f2898256adc2c20fbb86e96a9f5d008a677', height: '15px', width: '25%' }), h("div", { key: '961f482bf358c5a4ca0d980561bafdcd7489fa68', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '1754361211a771952be69eeda9a4c9788aaff0e6', height: '40px' }), h("salla-skeleton", { key: '2ea3578f8751a2526947d5c067392ef95e3bcf44', height: '40px' }), h("salla-skeleton", { key: '32bba195c5f6a60ce9837b4d4cbfa302d6ddfb07', height: '40px' }), h("salla-skeleton", { key: '9888b01cd47c5acdc0a159ad49db228efd630d75', height: '40px' })), h("div", { key: 'd86e706b2393b17301f9f28b4b303f00bf743363', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '02e0330958fd73288d5c654fce7169470cdf47cd', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'cccb8bc372c6ccfdf707621190bba4bc38aecb99', height: '10px', width: '75%' }), h("salla-skeleton", { key: '95f8e83b3b1a54a52da1ff2e61a866239575cf7b', height: '10px', width: '50%' }), h("salla-skeleton", { key: '4880b1d82cea617cae837ad2d6dd4d627fe8d9e3', height: '10px', width: '75%' }), h("salla-skeleton", { key: '38980cc41e7388b41e35015ceed72d025bd82980', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'bb1ad6a995e9e27b851007cae2c1f7204f3c2d91', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'fc5cd1e7adafca96e00b9284123bb3eb9f892c9c', height: '10px', width: '60%' }), h("salla-skeleton", { key: '89bbd77ec6da0c8e03dd2fb9f60c929f49415c83', height: '10px', width: '45%' }), h("salla-skeleton", { key: '0666ce266b9411913ae4db64c61d3cfa44cf4245', height: '10px', width: '30%' })))), h("slot", { key: '31a338bdc12e2a4ea1f80ea4bd700e293020b840', name: "header" }), !this.hasError && !!this.guides ?
55
60
  [
56
61
  h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
57
62
  ]
58
- : this.showPlaceholder(), h("slot", { key: '5ae0956ca1f9313b5ef3d01dbdcab32f2e975e05', name: "footer" })));
63
+ : this.showPlaceholder(), h("slot", { key: '887b97cd58b442db20dad02db8ace42847bcef75', name: "footer" })));
59
64
  }
60
65
  get host() { return getElement(this); }
61
66
  };
@@ -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-C1mBhG6Z.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
7
7
  import { H as Helper } from './Helper-BQ-wOE14.js';
@@ -109,14 +109,14 @@ const SallaProductsList = class {
109
109
  this.includes = null;
110
110
  }
111
111
  Helper.setIncludes(this.includes);
112
- salla.lang.onLoaded(() => {
112
+ }
113
+ connectedCallback() {
114
+ this.langUnsubscribe = salla.lang.subscribe(() => {
113
115
  this.placeholderText = salla.lang.get('pages.categories.no_products');
114
116
  this.endOfText = salla.lang.get('common.elements.end_of_content');
115
117
  this.failedLoadMore = salla.lang.get('common.elements.failed_to_load_more');
116
118
  this.currentPage = salla.config.get('page');
117
119
  });
118
- }
119
- connectedCallback() {
120
120
  //Override browser scroll restoration default behaviour
121
121
  if ('scrollRestoration' in history)
122
122
  history.scrollRestoration = 'manual';
@@ -127,6 +127,7 @@ const SallaProductsList = class {
127
127
  salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
128
128
  }
129
129
  disconnectedCallback() {
130
+ this.langUnsubscribe?.();
130
131
  window.removeEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
131
132
  window.removeEventListener('scroll', this.boundHandleScroll);
132
133
  salla.event.off('wishlist::removed', this.onWishlistItemRemoved);
@@ -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-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { H as Helper } from './Helper-BQ-wOE14.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-C1mBhG6Z.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { I as IphoneXIcon } from './iphone-x-Z7udRKSZ.js';
6
6
  import { M as MailIcon } from './mail-DmgxDvXL.js';
7
7
  import { C as Cancel } from './cancel-BsLF_HK7.js';
@@ -70,7 +70,9 @@ const SallaQuickOrder = class {
70
70
  salla.onReady(() => {
71
71
  this.productId = this.productId || salla.config.get('page.id');
72
72
  });
73
- salla.lang.onLoaded(() => {
73
+ }
74
+ connectedCallback() {
75
+ this.langUnsubscribe = salla.lang.subscribe(() => {
74
76
  this.placeHolderEmail = salla.lang.get('common.elements.email');
75
77
  this.emailOptional = salla.lang.get('common.elements.optional');
76
78
  this.agreementShowText = salla.lang.get('pages.checkout.show_full_agreement');
@@ -78,6 +80,9 @@ const SallaQuickOrder = class {
78
80
  this.userNameLabel = salla.lang.get('pages.products.your_name');
79
81
  });
80
82
  }
83
+ disconnectedCallback() {
84
+ this.langUnsubscribe?.();
85
+ }
81
86
  getBtnColor() {
82
87
  return this.quickOrderStyle === 'default' ? 'light' : 'primary';
83
88
  }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-C1mBhG6Z.js';
4
+ import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { S as ShippingFast, a as Star } from './star-cq6TcfoH.js';
6
6
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
7
  import { H as Helper } from './Helper-BQ-wOE14.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-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-BmRQjBRH.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
7
7
  import { I as ImageIcon } from './image-C-tzSDxw.js';
@@ -9,6 +9,7 @@ import { M as MailIcon } from './mail-DmgxDvXL.js';
9
9
  import { S as ShippingFast, a as Star } from './star-cq6TcfoH.js';
10
10
  import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
11
11
  import { H as Helper } from './Helper-BQ-wOE14.js';
12
+ import { s as setTranslationDefault } from './translate-CxrJQ3Jf.js';
12
13
 
13
14
  const sallaRatingModalCss = "/*!twlt*/.s-rating-modal-uploader{overflow:visible}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible;pointer-events:auto !important;margin-bottom:1rem}.s-rating-modal-uploader .s-file-upload-gallery{overflow:visible}.s-rating-modal-edit-wrapper,.s-rating-modal-wrapper{transition:height 0.15s ease}.s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{position:absolute !important;inset:0;display:block;width:100% !important;max-width:100% !important;height:100% !important;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-loyalty-points-note-container{display:flex;align-items:center;gap:0.625rem;width:100%;margin-top:1.5rem;margin-bottom:0.75rem;padding:0.75rem;border-radius:0.5rem;background-color:#E6F4EA}.s-rating-modal-loyalty-points-note-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;color:#1B7F5C}.s-rating-modal-loyalty-points-note-icon svg{width:1.5rem;height:1.5rem;fill:currentColor}.s-rating-modal-loyalty-points-note-text{flex:1;margin:0;font-size:0.875rem;line-height:1.25rem;color:#1f2937}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{position:relative;width:5rem !important;min-width:5rem !important;max-width:5rem !important;height:3.5rem !important;flex-shrink:0 !important;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.mt-0{margin-top:0px}.block{display:block}.hidden{display:none}.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}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-comments-item-like-btn{margin-top:0.5rem}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-comments-item-like-btn span svg{height:0.75rem;width:0.75rem}.s-rating-modal-wrapper{margin-bottom:1.5rem;transition-property:all;transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.s-rating-modal-edit-wrapper{margin-top:0.625rem}.s-rating-modal-footer{position:relative;display:flex;align-items:center;justify-content:space-between}.s-rating-modal-footer salla-button button{padding-left:1rem !important;padding-right:1rem !important;font-size:0.75rem !important}.s-rating-modal-btn{height:2.5rem;padding-left:1rem;padding-right:1rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;color:var(--color-primary);transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-rating-modal-btn:hover{color:var(--color-primary-dark)}.s-rating-modal-dots{display:flex;flex-shrink:0;flex-grow:1;justify-content:center}.s-rating-modal-dots>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.375rem * var(--tw-space-x-reverse));margin-left:calc(0.375rem * calc(1 - var(--tw-space-x-reverse)))}.s-rating-modal-dots{text-align:center}.s-rating-modal-dots:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-rating-modal-step-dot{height:0.625rem;width:0.625rem;border-radius:9999px;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}.s-rating-modal-step{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}.s-rating-modal-active{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}.s-rating-modal-unactive{--tw-translate-x:0.75rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0}.s-rating-modal-hidden{display:none !important}.s-rating-modal-unvisiable{pointer-events:none;opacity:0}.s-rating-modal-step-wrap{position:relative;display:flex;flex-direction:column;align-items:center;padding-bottom:1rem}.s-rating-modal-product-details{position:relative;display:flex;flex:1 1 0%;flex-direction:column;padding-bottom:1rem}.s-rating-modal-product-details-main{display:flex;align-items:flex-start;justify-content:space-between}.s-rating-modal-product-details-main .s-rating-stars-wrapper{margin-bottom:0.375rem;flex-direction:column;align-items:center}@media (min-width: 640px){.s-rating-modal-product-details-main .s-rating-stars-wrapper{margin-bottom:0px;flex-direction:row;gap:0px}}.s-rating-modal-rounded-icon{position:relative;margin-bottom:0.25rem;display:flex;height:6rem;width:6rem;align-items:center;justify-content:center;overflow:hidden;border-radius:9999px;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-rating-modal-title{margin-bottom:0.25rem;font-size:1.125rem;line-height:1.75rem;font-weight:700}.s-rating-modal-subtitle{margin-bottom:0.25rem;padding-left:0.5rem;padding-right:0.5rem;text-align:center;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-rating-modal-store-logo{width:4rem;object-fit:contain}.s-rating-modal-shipping-logo{height:100%;width:100%;object-fit:contain}.s-rating-modal-shipping-icon{font-size:3rem;line-height:1;color:var(--color-primary)}.s-rating-modal-comment{margin-bottom:0.5rem;height:5rem !important;width:100%;border-radius:0.375rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding:0.75rem;font-size:0.875rem;line-height:1.25rem;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:150ms}.s-rating-modal-comment:focus{border-color:var(--color-primary)}.s-rating-modal-comment: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))}.s-rating-modal-validation-msg{margin-top:-3px;line-height:1rem;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-rating-modal-product{margin-bottom:1.5rem}.s-rating-modal-product:last-child{margin-bottom:0px}.s-rating-modal-product .rating-outer-form{display:flex}.s-rating-modal-product .rating-outer-form>: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)))}@media (min-width: 640px){.s-rating-modal-product .rating-outer-form>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}}.s-rating-modal-product .rating-outer-form:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-rating-modal-product-img-wrap{height:3.5rem;width:auto;overflow:hidden;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.s-rating-modal-product-img-wrap{width:5rem}}.s-rating-modal-product-img{position:relative;height:100%;width:100%;object-fit:cover;font-size:0px}.s-rating-modal-product-img::before{position:absolute;top:0px;left:0px;height:100%;width:100%;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1));--tw-content:'';content:var(--tw-content)}.s-rating-modal-product-title{margin-bottom:0.375rem;font-size:0.875rem;font-weight:700;line-height:1.25rem}.s-rating-modal-thanks{padding-left:2rem;padding-right:2rem;text-align:center;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}.s-rating-modal-icon{display:inline-flex;height:5rem;width:5rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));color:var(--color-primary)}.s-rating-modal-icon svg{height:1.75rem;width:1.75rem;fill:var(--color-primary)}.s-rating-modal-thanks-title{margin-top:1rem;font-weight:700}.s-rating-modal-thanks-msg{margin-bottom:1.5rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-rating-modal-thanks-btn{height:2.5rem;flex:none;display:inline-flex;flex:1 1 0%;align-items:center;justify-content:center;white-space:nowrap;border-radius:0.375rem;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-rating-modal-thanks-btn:hover{opacity:0.8}.s-rating-modal-thanks-btn{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-rating-modal-thanks-time{margin-top:0.75rem;display:block;height:1.5rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-rating-modal-product-factors-card{margin-bottom:1rem;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));padding:1rem}.s-rating-modal-product-factors-heading{margin-bottom:0.75rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-rating-modal-stars-company{margin-bottom:1.25rem}.s-rating-modal-stars-company .s-rating-stars-wrapper{flex-direction:column;align-items:center;justify-content:center;gap:0.5rem}.s-rating-modal-stars-product .s-rating-stars-wrapper{flex-direction:column;align-items:center;justify-content:center}.s-rating-modal-upload-count{font-size:0.875rem;line-height:1.25rem;font-weight:500}.s-rating-modal-bg-gray{--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-rating-modal-bg-primary{background-color:var(--color-primary)}unicode{unicode-bidi:plaintext}.s-rating-modal-wrap .s-modal-body{position:relative !important}.s-rating-modal-skeleton{display:flex;flex-direction:column;align-items:center;justify-content:center}.s-rating-modal-skeleton salla-skeleton:nth-child(1){margin-bottom:1.25rem}.s-rating-modal-skeleton salla-skeleton:nth-child(2){margin-bottom:0.75rem}.s-rating-modal-skeleton salla-skeleton:nth-child(3){margin-bottom:1.25rem}.s-rating-modal-skeleton salla-skeleton:nth-child(4){margin-bottom:2rem}.s-rating-modal-skeleton-footer{margin-top:1.5rem;display:flex;width:100%;justify-content:flex-end}.s-rating-modal-skeleton-footer salla-skeleton{margin-bottom:0px !important}.s-rating-modal-skeleton-stars{margin-bottom:0.75rem;display:flex;align-items:center}.s-rating-modal-skeleton-stars>: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-rating-modal-skeleton-stars:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-rating-modal-skeleton-stars div svg{width:25px;fill:currentColor;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-rating-modal-uploader{height:0px;opacity:0;transition-property:all;transition-duration:100ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.s-rating-modal-uploader.is-opened{margin-bottom:1.5rem;overflow:visible}.s-rating-modal-uploader.is-closed{pointer-events:none;z-index:0}.s-rating-modal-uploader .filepond--drop-label{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-rating-modal-uploader .filepond--file-status .filepond--file-status-main{font-size:11px}.s-rating-modal-uploader .filepond--file-info-main{font-size:11px}.s-rating-modal-uploader li[data-filepond-item-state='load-invalid'] .filepond--file-info{display:none}.s-rating-modal-filepond-placeholder-text{font-size:0.75rem !important;line-height:1rem !important}.s-rating-modal-filepond-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center}.s-rating-modal-filepond-placeholder-icon{margin-bottom:0.25rem}.s-rating-modal-filepond-placeholder-icon svg{height:1.5rem;width:1.5rem;fill:#7c8082}.s-rating-modal-contact{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding:0.5rem}.s-rating-modal-contact p{font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-rating-modal-contact-icons{display:flex;align-items:center;gap:0.5rem}.s-rating-modal-contact-icons span{display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:0.375rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.375rem}.s-rating-modal-contact-icons span svg{height:1rem;width:1rem;fill:var(--color-primary)}.s-rating-modal-footer-end{justify-content:flex-end}.s-rating-modal-delete-wrapper{text-align:center}.s-rating-modal-delete-wrapper h3{margin-top:1.25rem;font-size:1.125rem;line-height:1.75rem;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-rating-modal-delete-wrapper p{margin-top:1.25rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-rating-modal-delete-actions{margin-top:1.25rem;display:flex;align-items:center;gap:0.625rem}.s-rating-modal-delete-actions salla-button{width:100%}.s-rating-modal-delete-actions salla-button button{width:100%}";
14
15
 
@@ -88,11 +89,13 @@ const SallaRatingModal = class {
88
89
  salla.onReady(() => {
89
90
  this.orderId = salla.config.get('page.id');
90
91
  });
91
- salla.lang.onLoaded(() => {
92
+ }
93
+ connectedCallback() {
94
+ this.langUnsubscribe = salla.lang.subscribe(() => {
92
95
  this.contactUsLabel = salla.lang.get('blocks.footer.social');
93
96
  const setNestedAsync = (lang, key, value) => {
94
97
  return new Promise((resolve) => {
95
- salla.helpers.setNested(salla.lang.messages[lang], key, value);
98
+ setTranslationDefault(lang, key, value);
96
99
  resolve(true);
97
100
  });
98
101
  };
@@ -142,6 +145,9 @@ const SallaRatingModal = class {
142
145
  setTranslations();
143
146
  });
144
147
  }
148
+ disconnectedCallback() {
149
+ this.langUnsubscribe?.();
150
+ }
145
151
  getV2Ref() {
146
152
  return this.v2Ref ?? this.host.querySelector('salla-rating-modal-v2');
147
153
  }
@@ -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-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { f as fetchOrder, r as resolveReviewFactors } from './helpers-DqXpn47Z.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-C1mBhG6Z.js';
4
+ import { r as registerInstance, h, H as Host } from './index-BmRQjBRH.js';
5
5
  import { f as fetchOrder, g as getProductRatings } from './helpers-DqXpn47Z.js';
6
6
 
7
7
  const SallaReviewOrderItem = class {
@@ -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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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-C1mBhG6Z.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', 'السجل التجاري');