@salla.sa/twilight-components 2.14.418 → 2.14.419

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 (374) hide show
  1. package/dist/cjs/{filepond-C1_8U7ht.js → filepond-BiRMqsJc.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C2QZkcu0.js → filepond-plugin-file-poster-LU25G59n.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CbVRd24w.js → filepond-plugin-file-validate-size-J3-riOvN.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-63RP4vcL.js → filepond-plugin-file-validate-type-DMawm6j5.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CjWMhhkZ.js → filepond-plugin-image-edit-QXtHYcEz.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CJxStqYG.js → filepond-plugin-image-exif-orientation-C0VBHQjd.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview--RTa59Q8.js → filepond-plugin-image-preview-xG9m-vgD.js} +1 -1
  8. package/dist/cjs/{functions-T48FHZw8.js → functions-CZrHAX2r.js} +1 -1
  9. package/dist/cjs/helpers-BJ2rnhxz.js +197 -0
  10. package/dist/cjs/{index-DO_QXaSt.js → index-Ce-Twd7-.js} +10 -6
  11. package/dist/cjs/{index-CQ4zjhzH.js → index-DE1iYzD2.js} +1 -1
  12. package/dist/cjs/interfaces-Bh7W0bEU.js +33 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +36 -58
  17. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
  23. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-item.cjs.entry.js +28 -29
  66. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +41 -0
  67. package/dist/cjs/salla-order-edit.cjs.entry.js +339 -40
  68. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  69. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  72. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  73. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  74. package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
  75. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  76. package/dist/cjs/salla-products-list.cjs.entry.js +38 -15
  77. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  81. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  82. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  83. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  88. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  96. package/dist/cjs/{tracked-promise-BnNAgCN_.js → tracked-promise-DChUtH5B.js} +1 -1
  97. package/dist/cjs/twilight.cjs.js +2 -2
  98. package/dist/cjs/{vanilla-picker-wbE79zwn.js → vanilla-picker-ivACsPLJ.js} +1 -1
  99. package/dist/collection/collection-manifest.json +1 -0
  100. package/dist/collection/components/salla-order-edit/helpers.js +181 -0
  101. package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +3 -0
  102. package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +42 -30
  103. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.css +4 -0
  104. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +93 -0
  105. package/dist/collection/components/salla-order-edit/salla-order-edit.css +3 -0
  106. package/dist/collection/components/salla-order-edit/salla-order-edit.js +353 -39
  107. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  108. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  109. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  110. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  111. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  112. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  113. package/dist/collection/components/salla-product-options/salla-product-options.js +28 -0
  114. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  115. package/dist/collection/components/salla-products-list/salla-products-list.js +54 -14
  116. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  117. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  118. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  119. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  120. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  121. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  122. package/dist/collection/components/salla-search/salla-search.js +5 -5
  123. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  124. package/dist/collection/components/salla-social/salla-social.js +1 -1
  125. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  126. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  127. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  128. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  129. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  130. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  131. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  132. package/dist/components/index.js +2 -2
  133. package/dist/components/salla-order-edit-item2.js +207 -30
  134. package/dist/components/salla-order-edit-product-card.d.ts +11 -0
  135. package/dist/components/salla-order-edit-product-card.js +59 -0
  136. package/dist/components/salla-order-edit.js +378 -65
  137. package/dist/components/salla-order-summary.js +1 -1
  138. package/dist/components/salla-payments.js +2 -2
  139. package/dist/components/salla-placeholder2.js +1 -1
  140. package/dist/components/salla-price-range2.js +2 -2
  141. package/dist/components/salla-product-availability2.js +1 -1
  142. package/dist/components/salla-product-card2.js +5 -5
  143. package/dist/components/salla-product-options2.js +8 -1
  144. package/dist/components/salla-product-size-guide.js +2 -2
  145. package/dist/components/salla-products-list2.js +39 -15
  146. package/dist/components/salla-quantity-input2.js +1 -1
  147. package/dist/components/salla-quick-buy2.js +1 -1
  148. package/dist/components/salla-review-card2.js +1 -1
  149. package/dist/components/salla-reviews-page.js +1 -1
  150. package/dist/components/salla-reviews.js +1 -1
  151. package/dist/components/salla-scopes.js +1 -1
  152. package/dist/components/salla-search.js +5 -5
  153. package/dist/components/salla-skeleton2.js +1 -1
  154. package/dist/components/salla-social-share.js +1 -1
  155. package/dist/components/salla-social.js +1 -1
  156. package/dist/components/salla-tab-content2.js +1 -1
  157. package/dist/components/salla-tab-header2.js +1 -1
  158. package/dist/components/salla-tabs2.js +1 -1
  159. package/dist/components/salla-tel-input2.js +1 -1
  160. package/dist/components/salla-tooltip2.js +1 -1
  161. package/dist/components/salla-user-settings.js +1 -1
  162. package/dist/esm/{filepond-BaqNYv3C.js → filepond-0Pvy36B6.js} +1 -1
  163. package/dist/esm/{filepond-plugin-file-poster-nENZqIRv.js → filepond-plugin-file-poster-DV7OW1XJ.js} +1 -1
  164. package/dist/esm/{filepond-plugin-file-validate-size-DGOq4RG8.js → filepond-plugin-file-validate-size-DEya24r_.js} +1 -1
  165. package/dist/esm/{filepond-plugin-file-validate-type-DwM-3UO7.js → filepond-plugin-file-validate-type-DiFvVzC6.js} +1 -1
  166. package/dist/esm/{filepond-plugin-image-edit-BCqDiFWK.js → filepond-plugin-image-edit-DGBw5KRt.js} +1 -1
  167. package/dist/esm/{filepond-plugin-image-exif-orientation-DiuxhjrQ.js → filepond-plugin-image-exif-orientation-BbpZAlI-.js} +1 -1
  168. package/dist/esm/{filepond-plugin-image-preview-DbFvPPQQ.js → filepond-plugin-image-preview-CjRkn0jY.js} +1 -1
  169. package/dist/esm/{functions-JPNAXx4d.js → functions-BcJ4xDKw.js} +1 -1
  170. package/dist/esm/helpers-DR_vlSvU.js +184 -0
  171. package/dist/esm/{index-DElBWCVR.js → index-313k5SuU.js} +1 -1
  172. package/dist/esm/{index-BwsreBbG.js → index-CfaNNoM2.js} +10 -6
  173. package/dist/esm/interfaces-CoQJOPRz.js +33 -0
  174. package/dist/esm/loader.js +3 -3
  175. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  176. package/dist/esm/salla-accordion_6.entry.js +1 -1
  177. package/dist/esm/salla-add-product-button_5.entry.js +10 -32
  178. package/dist/esm/salla-advertisement.entry.js +1 -1
  179. package/dist/esm/salla-alert_2.entry.js +1 -1
  180. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  181. package/dist/esm/salla-apps-icons.entry.js +1 -1
  182. package/dist/esm/salla-badge.entry.js +1 -1
  183. package/dist/esm/salla-booking-field_7.entry.js +12 -12
  184. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  185. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  186. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  187. package/dist/esm/salla-comment-form_8.entry.js +4 -4
  188. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  189. package/dist/esm/salla-contacts.entry.js +1 -1
  190. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  191. package/dist/esm/salla-count-down.entry.js +1 -1
  192. package/dist/esm/salla-custom-fields.entry.js +1 -1
  193. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  194. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  195. package/dist/esm/salla-filters-widget.entry.js +1 -1
  196. package/dist/esm/salla-filters.entry.js +1 -1
  197. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  198. package/dist/esm/salla-gifting.entry.js +1 -1
  199. package/dist/esm/salla-hook.entry.js +1 -1
  200. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  201. package/dist/esm/salla-installment.entry.js +1 -1
  202. package/dist/esm/salla-list-tile.entry.js +1 -1
  203. package/dist/esm/salla-localization-modal.entry.js +1 -1
  204. package/dist/esm/salla-login-modal.entry.js +1 -1
  205. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  206. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  207. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  208. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  209. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  210. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  211. package/dist/esm/salla-loyalty.entry.js +1 -1
  212. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  213. package/dist/esm/salla-map.entry.js +1 -1
  214. package/dist/esm/salla-menu.entry.js +1 -1
  215. package/dist/esm/salla-metadata.entry.js +1 -1
  216. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  217. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  218. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  219. package/dist/esm/salla-notification-item.entry.js +1 -1
  220. package/dist/esm/salla-notifications.entry.js +1 -1
  221. package/dist/esm/salla-offer-modal.entry.js +1 -1
  222. package/dist/esm/salla-offer.entry.js +1 -1
  223. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  224. package/dist/esm/salla-order-details-options.entry.js +1 -1
  225. package/dist/esm/salla-order-details.entry.js +1 -1
  226. package/dist/esm/salla-order-edit-item.entry.js +28 -29
  227. package/dist/esm/salla-order-edit-product-card.entry.js +39 -0
  228. package/dist/esm/salla-order-edit.entry.js +339 -40
  229. package/dist/esm/salla-order-summary.entry.js +2 -2
  230. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  231. package/dist/esm/salla-orders.entry.js +1 -1
  232. package/dist/esm/salla-payments.entry.js +3 -3
  233. package/dist/esm/salla-placeholder.entry.js +2 -2
  234. package/dist/esm/salla-price-range.entry.js +3 -3
  235. package/dist/esm/salla-product-card_2.entry.js +6 -6
  236. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  237. package/dist/esm/salla-products-list.entry.js +38 -15
  238. package/dist/esm/salla-progress-bar.entry.js +1 -1
  239. package/dist/esm/salla-quick-order.entry.js +1 -1
  240. package/dist/esm/salla-rating-modal.entry.js +1 -1
  241. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  242. package/dist/esm/salla-scopes.entry.js +2 -2
  243. package/dist/esm/salla-search.entry.js +6 -6
  244. package/dist/esm/salla-skeleton.entry.js +2 -2
  245. package/dist/esm/salla-slider.entry.js +1 -1
  246. package/dist/esm/salla-social-share.entry.js +2 -2
  247. package/dist/esm/salla-social.entry.js +2 -2
  248. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  249. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  250. package/dist/esm/salla-tooltip.entry.js +2 -2
  251. package/dist/esm/salla-trust-badges.entry.js +1 -1
  252. package/dist/esm/salla-user-menu.entry.js +1 -1
  253. package/dist/esm/salla-user-profile.entry.js +1 -1
  254. package/dist/esm/salla-user-settings.entry.js +2 -2
  255. package/dist/esm/salla-verify.entry.js +1 -1
  256. package/dist/esm/salla-wallet.entry.js +1 -1
  257. package/dist/esm/{tracked-promise-BD-FZk2P.js → tracked-promise-xD-AZOwt.js} +1 -1
  258. package/dist/esm/twilight.js +3 -3
  259. package/dist/esm/{vanilla-picker-CqoFxJJE.js → vanilla-picker-Bu8PG2Le.js} +1 -1
  260. package/dist/twilight/{p-ce588635.entry.js → p-02600ee1.entry.js} +1 -1
  261. package/dist/twilight/{p-c5e18341.entry.js → p-02608fcd.entry.js} +1 -1
  262. package/dist/twilight/{p-f73c7b43.entry.js → p-029f9bfd.entry.js} +1 -1
  263. package/dist/twilight/p-073536c3.entry.js +4 -0
  264. package/dist/twilight/{p-ceb9458e.entry.js → p-0d4afc4b.entry.js} +1 -1
  265. package/dist/twilight/{p-edaba475.entry.js → p-11da9c5a.entry.js} +1 -1
  266. package/dist/twilight/{p-7d3722ad.entry.js → p-13b1dae0.entry.js} +1 -1
  267. package/dist/twilight/{p-ab5e0aef.entry.js → p-13f019f5.entry.js} +1 -1
  268. package/dist/twilight/{p-069485ec.entry.js → p-15be9e7a.entry.js} +1 -1
  269. package/dist/twilight/{p-d9c4d2ed.entry.js → p-1bce06bf.entry.js} +1 -1
  270. package/dist/twilight/{p-0bf11f89.entry.js → p-1fe827c7.entry.js} +1 -1
  271. package/dist/twilight/{p-fec6b08b.entry.js → p-22d12f28.entry.js} +1 -1
  272. package/dist/twilight/{p-b737dbcb.entry.js → p-2afe64d1.entry.js} +1 -1
  273. package/dist/twilight/{p-3f50a52d.entry.js → p-2bb796b3.entry.js} +1 -1
  274. package/dist/twilight/{p-f653f2bb.entry.js → p-2f1cb6da.entry.js} +1 -1
  275. package/dist/twilight/{p-f88806d7.entry.js → p-3252277a.entry.js} +1 -1
  276. package/dist/twilight/{p-4110e600.entry.js → p-3539d2a1.entry.js} +1 -1
  277. package/dist/twilight/{p-167f5262.entry.js → p-3bda095b.entry.js} +1 -1
  278. package/dist/twilight/{p-61215f22.entry.js → p-3d286589.entry.js} +1 -1
  279. package/dist/twilight/{p-5ac81ffe.entry.js → p-410f0149.entry.js} +1 -1
  280. package/dist/twilight/{p-57451f00.entry.js → p-42bf8cc1.entry.js} +1 -1
  281. package/dist/twilight/p-43c4c857.entry.js +4 -0
  282. package/dist/twilight/{p-ff90dbf0.entry.js → p-4550de2d.entry.js} +1 -1
  283. package/dist/twilight/{p-fbe07d2d.entry.js → p-4752dc2c.entry.js} +1 -1
  284. package/dist/twilight/{p-9d8e4e7c.entry.js → p-48aba4cd.entry.js} +1 -1
  285. package/dist/twilight/p-49e28ca2.entry.js +4 -0
  286. package/dist/twilight/{p-10884e6e.entry.js → p-4a7cbe49.entry.js} +1 -1
  287. package/dist/twilight/{p-46088f51.entry.js → p-51252013.entry.js} +1 -1
  288. package/dist/twilight/{p-29fc145b.entry.js → p-53e63007.entry.js} +1 -1
  289. package/dist/twilight/{p-dcc65eb2.entry.js → p-57a4f3d2.entry.js} +1 -1
  290. package/dist/twilight/{p-a96ec635.entry.js → p-5dbb89d5.entry.js} +1 -1
  291. package/dist/twilight/p-5dd07559.entry.js +4 -0
  292. package/dist/twilight/{p-ac008da7.entry.js → p-5dd75357.entry.js} +1 -1
  293. package/dist/twilight/p-5e4e45be.entry.js +4 -0
  294. package/dist/twilight/{p-d0cf9b68.entry.js → p-5f174a3e.entry.js} +1 -1
  295. package/dist/twilight/{p-695e3211.entry.js → p-625218f7.entry.js} +1 -1
  296. package/dist/twilight/{p-03c39b2d.entry.js → p-654a0990.entry.js} +1 -1
  297. package/dist/twilight/{p-d739ae41.entry.js → p-654b9857.entry.js} +1 -1
  298. package/dist/twilight/{p-60878c2e.entry.js → p-65ff0bf4.entry.js} +1 -1
  299. package/dist/twilight/{p-aaff5603.entry.js → p-665aa4d1.entry.js} +1 -1
  300. package/dist/twilight/{p-5b371b1f.entry.js → p-69bec0e3.entry.js} +1 -1
  301. package/dist/twilight/{p-2bd83486.entry.js → p-6b02b118.entry.js} +1 -1
  302. package/dist/twilight/{p-44db7163.entry.js → p-72d4121c.entry.js} +1 -1
  303. package/dist/twilight/{p-993bdcbe.entry.js → p-74cd506d.entry.js} +1 -1
  304. package/dist/twilight/{p-b6ac7a22.entry.js → p-75f26291.entry.js} +1 -1
  305. package/dist/twilight/{p-1c3e0dbc.entry.js → p-7ce1dff1.entry.js} +1 -1
  306. package/dist/twilight/{p-7d492d3c.entry.js → p-7d08def1.entry.js} +1 -1
  307. package/dist/twilight/{p-ad762138.entry.js → p-7f6c6d8a.entry.js} +1 -1
  308. package/dist/twilight/{p-0a786447.entry.js → p-82d776ae.entry.js} +1 -1
  309. package/dist/twilight/{p-d469525b.entry.js → p-87e78adc.entry.js} +1 -1
  310. package/dist/twilight/{p-b6dce61a.entry.js → p-891e4b61.entry.js} +1 -1
  311. package/dist/twilight/{p-91d74168.entry.js → p-8bdd9c9b.entry.js} +1 -1
  312. package/dist/twilight/{p-19e82de2.entry.js → p-8d0b4049.entry.js} +1 -1
  313. package/dist/twilight/{p-9134d94d.entry.js → p-8dbff2c8.entry.js} +1 -1
  314. package/dist/twilight/{p-9c73e42a.entry.js → p-944b02ec.entry.js} +1 -1
  315. package/dist/twilight/{p-af1474dd.entry.js → p-9693310b.entry.js} +1 -1
  316. package/dist/twilight/{p-c1d4db6f.entry.js → p-9dcc291b.entry.js} +1 -1
  317. package/dist/twilight/{p-Dw7mGaHj.js → p-B6bkY5-l.js} +1 -1
  318. package/dist/twilight/{p-BuNOvMeU.js → p-BCWPIsso.js} +1 -1
  319. package/dist/twilight/p-BLehGhpL.js +4 -0
  320. package/dist/twilight/{p-CTyl0UJE.js → p-BN2EOPT0.js} +1 -1
  321. package/dist/twilight/{p-DlGhggDp.js → p-BeZ-z3uX.js} +1 -1
  322. package/dist/twilight/{p-GgHo6Cr_.js → p-Bu7ZSFM5.js} +1 -1
  323. package/dist/twilight/{p-CEuTw3-D.js → p-C0UBM1r0.js} +1 -1
  324. package/dist/twilight/{p-Cw0Ky-u0.js → p-C1ReTfKT.js} +1 -1
  325. package/dist/twilight/p-C8xwacGT.js +4 -0
  326. package/dist/twilight/{p-DPgASjJ8.js → p-CX1cQxmm.js} +1 -1
  327. package/dist/twilight/{p-BwsreBbG.js → p-CfaNNoM2.js} +1 -1
  328. package/dist/twilight/p-CoQJOPRz.js +4 -0
  329. package/dist/twilight/{p-LWKLIOwS.js → p-P9Uquv6J.js} +1 -1
  330. package/dist/twilight/p-a132e9dc.entry.js +4 -0
  331. package/dist/twilight/{p-a3a0bafa.entry.js → p-a22ab12e.entry.js} +1 -1
  332. package/dist/twilight/{p-4807586a.entry.js → p-a5093858.entry.js} +1 -1
  333. package/dist/twilight/{p-4edf67be.entry.js → p-a5483eab.entry.js} +1 -1
  334. package/dist/twilight/{p-57e0b11b.entry.js → p-ab922196.entry.js} +1 -1
  335. package/dist/twilight/{p-2f833767.entry.js → p-adf1ff1f.entry.js} +1 -1
  336. package/dist/twilight/{p-4c57de7b.entry.js → p-b075bdd3.entry.js} +1 -1
  337. package/dist/twilight/{p-b9062150.entry.js → p-b6446ed0.entry.js} +1 -1
  338. package/dist/twilight/{p-25104b13.entry.js → p-bd29fa58.entry.js} +1 -1
  339. package/dist/twilight/{p-b4fd50ef.entry.js → p-c0a96a41.entry.js} +1 -1
  340. package/dist/twilight/{p-b9c9c487.entry.js → p-c0da03a4.entry.js} +1 -1
  341. package/dist/twilight/{p-1c1ac203.entry.js → p-ce4823e8.entry.js} +1 -1
  342. package/dist/twilight/{p-af84c7b8.entry.js → p-cef8dfa8.entry.js} +1 -1
  343. package/dist/twilight/p-d737a90e.entry.js +4 -0
  344. package/dist/twilight/p-d7e404d1.entry.js +4 -0
  345. package/dist/twilight/{p-a00015ec.entry.js → p-d95fad47.entry.js} +1 -1
  346. package/dist/twilight/{p-201926a3.entry.js → p-dacc7681.entry.js} +1 -1
  347. package/dist/twilight/{p-580441f5.entry.js → p-e15ceaae.entry.js} +1 -1
  348. package/dist/twilight/p-e692fd88.entry.js +4 -0
  349. package/dist/twilight/{p-59657a19.entry.js → p-ee5afe29.entry.js} +1 -1
  350. package/dist/twilight/{p-681953ef.entry.js → p-f248ce38.entry.js} +1 -1
  351. package/dist/twilight/{p-c968dab0.entry.js → p-f6468e0f.entry.js} +1 -1
  352. package/dist/twilight/{p-cd6fc43c.entry.js → p-f9e89a30.entry.js} +1 -1
  353. package/dist/twilight/{p-e5325563.entry.js → p-fdd2d95e.entry.js} +1 -1
  354. package/dist/twilight/{p-0654ccca.entry.js → p-ff0d8f2b.entry.js} +1 -1
  355. package/dist/twilight/{p-CbukOCNI.js → p-nj3fF7xi.js} +1 -1
  356. package/dist/twilight/twilight.esm.js +1 -1
  357. package/dist/types/components/salla-order-edit/helpers.d.ts +25 -0
  358. package/dist/types/components/salla-order-edit/interfaces.d.ts +22 -25
  359. package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +7 -5
  360. package/dist/types/components/salla-order-edit/salla-order-edit-product-card.d.ts +11 -0
  361. package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +56 -4
  362. package/dist/types/components/salla-product-options/salla-product-options.d.ts +4 -0
  363. package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
  364. package/dist/types/components.d.ts +51 -4
  365. package/package.json +5 -5
  366. package/dist/twilight/p-36048354.entry.js +0 -4
  367. package/dist/twilight/p-60d875cc.entry.js +0 -4
  368. package/dist/twilight/p-7a33e83b.entry.js +0 -4
  369. package/dist/twilight/p-86cfa253.entry.js +0 -4
  370. package/dist/twilight/p-c0b690b2.entry.js +0 -4
  371. package/dist/twilight/p-e07f938a.entry.js +0 -4
  372. package/dist/twilight/p-f-qXMnue.js +0 -4
  373. package/dist/twilight/p-f2815da9.entry.js +0 -4
  374. package/dist/twilight/p-f7b21078.entry.js +0 -4
@@ -159,9 +159,9 @@ const SallaPriceRange = /*@__PURE__*/ proxyCustomElement(class SallaPriceRange e
159
159
  this.maxPrice = value === undefined ? '' : value;
160
160
  }
161
161
  render() {
162
- return (h(Host, { key: '996f527f5a36ea273b0d8c195e35dc3efbdf62f2' }, this.filterValues.map((filterValue, index) => {
162
+ return (h(Host, { key: '343fd7a54f3a7d32c6709019fb168c7a8a1ca5f1' }, this.filterValues.map((filterValue, index) => {
163
163
  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) }));
164
- }), h("div", { key: 'bfa8f970eb1e9c5d2b9678e5271aa04208b39289', class: "flex justify-center items-center" }, h("div", { key: '59cd51f388f36a38e2bd036d27b7abe001fed9d0', class: "relative max-w-xl w-full" }, h("div", { key: '226bd18705572502c7da11022a8ce02dc08d4d21', class: "s-price-range-inputs" }, h("div", { key: '0ebfdced114308e82075cd153bef0020daa15bf6', class: "s-price-range-relative" }, h("div", { key: 'c3dacef6133e2b05eca8d643d1c8ce3f5b991548', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'b2451e091d93f85f268fc80e30e24f5f71c2628c', 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: '00c07380972b65eac5fac5688b99d21277f65d39', class: "s-price-range-gray-text" }, " -"), h("div", { key: '403e98ad682f08946ccd191715ff37401a376722', class: "s-price-range-relative" }, h("div", { key: 'a1b0729fc40c17b9be68dd2c76a3afa1e99d8a62', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '5f5e5a202f4b11cde88ae954fa352b71886fe30e', 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: 'dd4899512e03f10c18e74f4d2434406dc6922a50', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '98d023ccfe7e26278259bf690a1d7a4323a704fc', innerHTML: this.isRTL ? IconArrowLeft : arrowRight })))))));
164
+ }), h("div", { key: '99b72a90eb7c99fd0a061f3ae6fdb7a16f4a6cb5', class: "flex justify-center items-center" }, h("div", { key: '90234fcadbfd931e1ccbd8006f47219196b7d958', class: "relative max-w-xl w-full" }, h("div", { key: 'eb284df7b56929fa0b6b31f029024a48ba0528b5', class: "s-price-range-inputs" }, h("div", { key: '43adbda7a9dd480690a678e0efc7aeed889fb81f', class: "s-price-range-relative" }, h("div", { key: '16277456eb7fc08357ff91daef4af1944e79b762', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '9af2548117afe8389b786621d9e26e8f441c9fa6', 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: '5f5a45e86632b6183e0b85a5c1489d311b72c9b1', class: "s-price-range-gray-text" }, " -"), h("div", { key: '80198c67b69613cd09f0aa03faaf7f162a432478', class: "s-price-range-relative" }, h("div", { key: '5b84faee68142be3f18215b6f916eb1cd245c74c', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'a813df6ce1645b5e3d414a13879f9c4172bb6f4f', 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: '34644f25fbd11238f27f3de0343ef5b65d192c16', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '07f5f1d7faad2ad05ea8538076b73b14a8f3137c', innerHTML: this.isRTL ? IconArrowLeft : arrowRight })))))));
165
165
  }
166
166
  componentDidLoad() {
167
167
  this.isReady = true;
@@ -140,7 +140,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
140
140
  field.nextElementSibling['innerText'] = '* ' + errorMsg;
141
141
  }
142
142
  render() {
143
- return (h(Host, { key: '65f3dc76d08ee3ba1745b6bbf885fdd9c4f6bae6', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
143
+ return (h(Host, { key: 'ab09bce8ed269e8c3fd7cd263acdc9b5094cf3a9', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
144
144
  ? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
145
145
  :
146
146
  h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
@@ -122,14 +122,14 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
122
122
  's-product-card-out-of-stock': this.productData?.is_out_of_stock,
123
123
  };
124
124
  const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
125
- return (h(Host, { key: 'e0981508ab81f2a0bed4b763829d25792e55a692', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: '8ed3f18aa60f4c63fcd8a5603683f76c6ec247a8', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: 'e412236f624d180312a7361c0bb43f4af05ac868', ...hrefProp }, h("img", { key: 'a8517f1f3c5c2d15489aa5509bb667fb3ce98ca6', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
125
+ return (h(Host, { key: '9587bcb7fa6abdf1ec9cea621004e7e7077c2fd6', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: 'f2d3c72f55d302e85a2da4e478d294f1ff7a155b', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '932e6defeeec23cda564e80a55f90260d51a1996', ...hrefProp }, h("img", { key: 'f1a82c5dab197fff512d5ab220a34acea82fd6d0', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
126
126
  ? 'contain'
127
127
  : this.fitImageHeight
128
128
  ? this.fitImageHeight
129
- : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '9b0841267856eeaf8fd3f44df9e11a2e82ea2554', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
130
- h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: 'f027bc5aa8d3e46eeff5e0c2f22c33f06298884c', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
129
+ : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '40eb012054592e5c65309a4fcbe6fd4f3512197e', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
130
+ h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '91c99ae52ff1da64dfe69812ccfb26e91590f105', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
131
131
  h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
132
- : '', h("div", { key: '942aed0114c9155a7b397261032ec3d5f3bbf983', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '82e874903e2391cbda7df6cdbb41422341f66476', class: "s-product-card-content-title" }, h("a", { key: 'be7e564d2341c97d8431fa49e6a176548183929c', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
132
+ : '', h("div", { key: '630f6fdafccb0a6d5db2eb9399f5ba7c02ffde4b', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '0c366496893811cec16c67b4c28c8ac6a40bd191', class: "s-product-card-content-title" }, h("a", { key: 'f9ba0a3655e8058b3a10c16016e7e5f3d85a6e8a', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
133
133
  h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
134
134
  : ''), this.productData?.donation && !this.minimal && !this.fullImage ?
135
135
  [h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
@@ -138,7 +138,7 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
138
138
  this.addBtn.donatingAmount = e.target.value;
139
139
  }, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
140
140
  : '')]
141
- : '', h("div", { key: 'f565ee76394a00c047cdf3abacacdc351565ba1d', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
141
+ : '', h("div", { key: 'd67416c75a6fb7daa507e2d578c11f5dc1ecff2f', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
142
142
  h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Rate }), h("span", null, this.productData.rating.stars))
143
143
  : ''), this.isSpecial && this.productData.discount_ends
144
144
  ? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
@@ -174,6 +174,12 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
174
174
  .map(sku => that.outSkus.push(Number(sku[0])));
175
175
  });
176
176
  }
177
+ /**
178
+ * Get the current options state, including selected values/details.
179
+ */
180
+ async getOptionsData() {
181
+ return this.optionsData;
182
+ }
177
183
  /**
178
184
  * Get the id's of the selected options.
179
185
  * */
@@ -950,6 +956,7 @@ const SallaProductOptions = /*@__PURE__*/ proxyCustomElement(class SallaProductO
950
956
  "userInitiatedValidation": [32],
951
957
  "isCartMode": [32],
952
958
  "setOptionsData": [64],
959
+ "getOptionsData": [64],
953
960
  "getSelectedOptionsData": [64],
954
961
  "reportValidity": [64],
955
962
  "hasOutOfStockOption": [64],
@@ -1024,4 +1031,4 @@ function defineCustomElement() {
1024
1031
  }
1025
1032
  defineCustomElement();
1026
1033
 
1027
- export { SallaProductOptions as S, defineCustomElement as d };
1034
+ export { DisplayType as D, SallaProductOptions as S, defineCustomElement as d };
@@ -59,11 +59,11 @@ const SallaProductSizeGuide$1 = /*@__PURE__*/ proxyCustomElement(class SallaProd
59
59
  return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
60
60
  }
61
61
  render() {
62
- return (h("salla-modal", { key: 'eeb477f6cd7831f06fb2b716e2391d684ae4e93c', 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: '48f9e18ebfec9999dc856fe3c7bca7854e4f53b3', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '9fc445cfb72dfdd5d0d306419041aa9f3acafb66', slot: "loading" }, h("div", { key: 'f5dbfb1560940a691f891e7d41eca22977693d79', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'c6790017016fc8b471601bf093051f80183645c9', height: '15px', width: '25%' }), h("div", { key: 'ba72c67c7b26e62ed4548444ba9083f83816f59e', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '4fd934c7bf103bcd937028bacda524915a40f76a', height: '40px' }), h("salla-skeleton", { key: '3754ae6eca3938380261e221f6941b2ef2a381dd', height: '40px' }), h("salla-skeleton", { key: 'a2007afe625ce45713b3a2f64a62cf0da101c1e9', height: '40px' }), h("salla-skeleton", { key: '7ed982fa2c6c862bf724fa1b1dc059db2f5dbc41', height: '40px' })), h("div", { key: '3914b9dde80d2257a55b0aa156f61df5936f1bb5', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '51b96df249504517e4c3fe1098be2937cbaeef63', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'd5844e3c91eddc4821b97cc9991a2441dd0bb117', height: '10px', width: '75%' }), h("salla-skeleton", { key: '976e70a0aa160dd9b4dbe4d0f9f0675f5c3308ea', height: '10px', width: '50%' }), h("salla-skeleton", { key: '1baf5286915a708ea68850c9c82e7970c6521c86', height: '10px', width: '75%' }), h("salla-skeleton", { key: '8ecc89a3defd83637936023b0d0841c55c6799cd', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'eb90ea350d6947596688595bb898a8c3a8dcac39', height: '10px', width: '25%' }), h("salla-skeleton", { key: '282d747e764c2761aa4b68f145467371acd66f32', height: '10px', width: '60%' }), h("salla-skeleton", { key: '610491fa3769027ceebec2ab46e7166d0bfac9f2', height: '10px', width: '45%' }), h("salla-skeleton", { key: '8162ba3bec487efe6fa1c0adf2355bd175d8310a', height: '10px', width: '30%' })))), h("slot", { key: 'b55b29cfeb52e41c0c56a79bded075fda7f49fab', name: "header" }), !this.hasError && !!this.guides ?
62
+ return (h("salla-modal", { key: '890b39170a64cbe054d9abfeafde2304560848d7', 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: '5989a906d9d0e843142374c202aa5276731282e8', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: 'a87674a01f544d91a16303cf96111633ca4438a3', slot: "loading" }, h("div", { key: 'f1e2f05860bb25796752283af36515432803ca9a', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'e579db557854a2b7903f5c435977c8d410a9157a', height: '15px', width: '25%' }), h("div", { key: '0b6e56e41efeebfe5215afb17e69b465f5a9992a', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'fbc7b34bdb2cf914b7d197432132065a4d1c4152', height: '40px' }), h("salla-skeleton", { key: '8045c64a63a469f70f87f686ec986d0c6f5aa1c5', height: '40px' }), h("salla-skeleton", { key: '0abd35f5af325ca1f2208659a9fb1f2ca284adfd', height: '40px' }), h("salla-skeleton", { key: 'd444ac5dd6391b9c902e17f98c0d3c35a939e678', height: '40px' })), h("div", { key: '1a217120cd307a4b837175b3eace97788a4195e4', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: 'a47510c2ba3357066fe2452f8dbf899bda36177f', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'e097a5097938fc4fda820d753c42c08d06dabbea', height: '10px', width: '75%' }), h("salla-skeleton", { key: '16267e9b3f7a21aa384d8a8a59ff05473aebfe97', height: '10px', width: '50%' }), h("salla-skeleton", { key: '904842b7bde12557b9a72dc48bdeb6ebd3c65ed4', height: '10px', width: '75%' }), h("salla-skeleton", { key: '4286e18b5198144636f9f4ad8a2445ca41673918', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'b1483afcb842489b5c6997216bc7e8c24437f16f', height: '10px', width: '25%' }), h("salla-skeleton", { key: '140f19a164bbb547c844a8483efcd86f18336a20', height: '10px', width: '60%' }), h("salla-skeleton", { key: '23475f824cb98b0a776b5ae2b3715a14b9413d4b', height: '10px', width: '45%' }), h("salla-skeleton", { key: '75d3bcd58f50886ffad02b329d5153b0ae41d46e', height: '10px', width: '30%' })))), h("slot", { key: '836b93fd9084ee2f19077333ac31e1629a5ad118', name: "header" }), !this.hasError && !!this.guides ?
63
63
  [
64
64
  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 }))))
65
65
  ]
66
- : this.showPlaceholder(), h("slot", { key: '6e37eb73078f786ce5dda8cf9ed6bae16eb3acfc', name: "footer" })));
66
+ : this.showPlaceholder(), h("slot", { key: 'ac635b008e11b61918efb43ba6489c4130831a32', name: "footer" })));
67
67
  }
68
68
  get host() { return this; }
69
69
  static get style() { return sallaProductSizeGuideCss; }
@@ -96,7 +96,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
96
96
  async reload() {
97
97
  !this.autoload && this.loadMoreWrapper && (this.loadMoreWrapper.style.display = 'none');
98
98
  this.hasInfiniteScroll && salla.infiniteScroll.destroy(this.infiniteScroll);
99
- this.buildNextPageUrl();
99
+ await this.buildNextPageUrl();
100
100
  // TODO: this is problematic in testing, for the time being it's been resolved like this
101
101
  this.wrapper.innerHTML = '';
102
102
  if (this.hasInfiniteScroll) {
@@ -132,7 +132,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
132
132
  },
133
133
  });
134
134
  }
135
- initBaseNextPageUrl(source) {
135
+ async initBaseNextPageUrl(source) {
136
136
  this.nextPage = salla.url.api(`products?source=${source}`);
137
137
  if (this.includes?.length) {
138
138
  this.nextPage += `&includes[]=${this.includes.join('&includes[]=')}`;
@@ -161,8 +161,9 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
161
161
  }
162
162
  }
163
163
  }
164
+ this.nextPage = await this.applyBeforeBuildListUrl(this.nextPage);
164
165
  }
165
- buildNextPageUrl() {
166
+ async buildNextPageUrl() {
166
167
  let source = this.getSource();
167
168
  if (source === 'json') {
168
169
  return;
@@ -174,7 +175,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
174
175
  return;
175
176
  }
176
177
  }
177
- this.initBaseNextPageUrl(source);
178
+ await this.initBaseNextPageUrl(source);
178
179
  if (this.isSourceWithoutValue()) {
179
180
  return;
180
181
  }
@@ -494,7 +495,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
494
495
  if (this.includes) {
495
496
  await this.injectAndProcessData(response);
496
497
  }
497
- const items = this.handleResponse(response);
498
+ const items = await this.handleResponse(response);
498
499
  this.infiniteScroll.appendItems(items);
499
500
  if (this.infiniteScroll.pageIndex === 2) {
500
501
  if (!this.autoload && this.nextPage) {
@@ -549,6 +550,25 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
549
550
  this.infiniteScroll.loadNextPage();
550
551
  }
551
552
  }
553
+ async applyBeforeBuildListUrl(url) {
554
+ try {
555
+ const ctx = { component: this, url };
556
+ await salla.hooks.call('salla-products-list', 'beforeBuildListUrl', ctx);
557
+ return ctx.url;
558
+ }
559
+ catch (e) {
560
+ salla.logger.warn('beforeBuildListUrl hook failed', e?.message);
561
+ return url;
562
+ }
563
+ }
564
+ async resolveNextPageFromCursor(response) {
565
+ if (!response.cursor) {
566
+ return this.nextPage;
567
+ }
568
+ return response.cursor.next
569
+ ? await this.applyBeforeBuildListUrl(response.cursor.next)
570
+ : response.cursor.next;
571
+ }
552
572
  async injectAndProcessData(response) {
553
573
  try {
554
574
  await Helper.injectExtraFieldsToResponse(response);
@@ -575,18 +595,21 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
575
595
  //for the first page we need to inject the dom after the load, see @method componentDidLoad
576
596
  if (!this.firstPageResponse) {
577
597
  this.firstPageResponse = response;
578
- this.nextPage = response.cursor ? response.cursor.next : this.nextPage;
598
+ this.nextPage = await this.resolveNextPageFromCursor(response);
579
599
  return;
580
600
  }
581
- this.handleResponse(response).forEach(card => this.wrapper.append(card));
601
+ (await this.handleResponse(response)).forEach(card => this.wrapper.append(card));
582
602
  }));
583
603
  }
604
+ /**
605
+ * Load the next products page.
606
+ */
584
607
  async loadMore() {
585
608
  this.infiniteScroll?.loadNextPage();
586
609
  }
587
610
  componentWillLoad() {
588
611
  return salla.onReady()
589
- .then(() => {
612
+ .then(async () => {
590
613
  this.hasCustomComponent = !!customElements.get(this.productCardComponent);
591
614
  this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
592
615
  this.hasInfiniteScroll = !['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource()) && !this.limit;
@@ -601,7 +624,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
601
624
  catch (e) {
602
625
  salla.logger.warn('failed to get filters from url', e.message);
603
626
  }
604
- this.buildNextPageUrl();
627
+ await this.buildNextPageUrl();
605
628
  this.isReady = true;
606
629
  const snapshot = sessionStorage.getItem(this.infiniteScrollStateKey);
607
630
  if (!!snapshot) {
@@ -653,9 +676,9 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
653
676
  }
654
677
  else if (!this.firstPageResponse && this.switchToNormalBehavior) {
655
678
  this.getInitialData()
656
- .then(() => {
679
+ .then(async () => {
657
680
  if (this.firstPageResponse) {
658
- this.handleResponse(this.firstPageResponse, false).forEach(card => {
681
+ (await this.handleResponse(this.firstPageResponse, false)).forEach(card => {
659
682
  this.wrapper.append(card);
660
683
  });
661
684
  setTimeout(() => {
@@ -674,7 +697,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
674
697
  });
675
698
  }
676
699
  else {
677
- this.firstPageResponse && this.handleResponse(this.firstPageResponse, false).forEach(card => this.wrapper.append(card));
700
+ this.firstPageResponse && (await this.handleResponse(this.firstPageResponse, false)).forEach(card => this.wrapper.append(card));
678
701
  }
679
702
  }
680
703
  canRender() {
@@ -700,7 +723,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
700
723
  this.initiateInfiniteScroll();
701
724
  this.loading();
702
725
  }
703
- handleResponse(response, shouldBuildNextPage = true) {
726
+ async handleResponse(response, shouldBuildNextPage = true) {
704
727
  //todo:: check why it reach here undfined one time🤔
705
728
  if (!response) {
706
729
  return [];
@@ -750,7 +773,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
750
773
  }
751
774
  //because: this.nextPage is state we don't need to touch it after the build, to avoid the re-rendering
752
775
  if (shouldBuildNextPage) {
753
- this.nextPage = response.cursor ? response.cursor.next : this.nextPage;
776
+ this.nextPage = await this.resolveNextPageFromCursor(response);
754
777
  }
755
778
  this.loading(false);
756
779
  this.placeholderLoader && this.placeholderLoader.remove();
@@ -795,7 +818,8 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
795
818
  "parsedFilters": [32],
796
819
  "filtersSnapshot": [32],
797
820
  "setFilters": [64],
798
- "reload": [64]
821
+ "reload": [64],
822
+ "loadMore": [64]
799
823
  }]);
800
824
  function defineCustomElement() {
801
825
  if (typeof customElements === "undefined") {
@@ -95,7 +95,7 @@ const SallaQuantityInput = /*@__PURE__*/ proxyCustomElement(class SallaQuantityI
95
95
  if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
96
96
  inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
97
97
  }
98
- return (h(Host, { key: '97cfd53bacd63cfd819d733f25055fd6befcb46a', class: "s-quantity-input" }, h("div", { key: 'fbe95d268cfb58eac1cf751d39695fb1abb76de1', class: "s-quantity-input-container" }, h("button", { key: '511ee9299a053f3853b1e68783ec345523bf3dc2', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: '104cad1ffb95e0213ee1ce3e215213d1ad346bdc', name: "increment-button" })), h("input", { key: '60d3114d8d7ca3a4923761041b4b02218fc903ce', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: '554b02f7b85cbd026431adf2573efa1cbb0564bb', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '8028a32c8c83a4205e093e8ad5ccf5d8e9fd019b', name: "decrement-button" })))));
98
+ return (h(Host, { key: '0d455d7f718123741aaf8d11056526c6c5916565', class: "s-quantity-input" }, h("div", { key: 'c47dc0592e1c4abb724b9dfad352718a2379faf7', class: "s-quantity-input-container" }, h("button", { key: 'c1d67cc3c1df4ee33a34b62e92bbc20f00b6f22e', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: '802445a97219921692f9c0bcd0ca8e8ebf547b89', name: "increment-button" })), h("input", { key: 'ff93aa47a0dd6d102f39c28a77cae6282645e873', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: '568ad4da47ba3b52e197566c7f23cf540fc8423f', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '202303a0a7370e5d6cb54442dd6cc768646f18e8', name: "decrement-button" })))));
99
99
  }
100
100
  get host() { return this; }
101
101
  static get watchers() { return {
@@ -1141,7 +1141,7 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
1141
1141
  });
1142
1142
  }
1143
1143
  render() {
1144
- return h(Host, { key: '7c5e3ce5d5a6fdd01565cf0f96c56aad11b8f4ba' }, this.quickBuyButton());
1144
+ return h(Host, { key: '6a161249c65a797bc7e9b61549b3b1f6ad1e39fa' }, this.quickBuyButton());
1145
1145
  }
1146
1146
  quickBuyButton() {
1147
1147
  return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
@@ -172,7 +172,7 @@ const SallaReviewCard = /*@__PURE__*/ proxyCustomElement(class SallaReviewCard e
172
172
  return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
173
173
  }
174
174
  render() {
175
- return h("div", { key: '18de38dbba7c660404090a488ff40bebb3b5cfb9', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'cb01e59c058d9ac64cd16e66e2f2d90859680c17', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '63bf8afb138423ea10a0e689b126c462b623e462', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
175
+ return h("div", { key: '47efb35fefb0c57657c2e8f6707d4821f6c1c1a0', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'eb624b4a9aa51b9053a5824818490dcf91594489', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: 'f7bc3da7f0ef59c08789942d76e309e0d07a161a', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
176
176
  }
177
177
  get el() { return this; }
178
178
  static get style() { return sallaReviewCardCss; }
@@ -685,7 +685,7 @@ const SallaReviewsPage$1 = /*@__PURE__*/ proxyCustomElement(class SallaReviewsPa
685
685
  return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
686
686
  }
687
687
  render() {
688
- return (h("host", { key: 'c0980c4458788ec29d9da4a60caf9eb420805abd' }, h("div", { key: '802681314a0f74c98d92c6227e35a9aa6e53105c', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'f533920b6ccf80377af688cf88a3273ca0d5b8ea', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'e5d13f7d4529c066d64fc142137dd52bdd54d106', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: 'ddf2fc71aa2d099d3db2a1219c4777448304575c', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '7c7ba82fa5157dab64776ac80ae890f5334bfa39', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'ee1fbe63384ad7d5220511d0d919d374e9a78dd9', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
688
+ return (h("host", { key: 'fcd0bc80f69825de03feab75422aef2dabcca93b' }, h("div", { key: '4d50dbde8eecf0a597717971dee990d01bae1f7c', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'ff2c3e971cb6c480ae6388308abaa40a90ccd1cd', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'a8f550f07d5826d701036ca94c8535188cd29dc5', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: 'a2e0465af025a4c695462a1ea223d7a554e582de', class: "s-reviews-page-filter-wrapper" }, h("label", { key: 'e333ae7128cb24e15d18dca25f6af3456f0648ec', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '7ed58196ce8319d3ff3d7f9f38f7ecdf371e4856', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
689
689
  this.wrapper = el;
690
690
  } }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
691
691
  : h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
@@ -98,7 +98,7 @@ const SallaReviews$1 = /*@__PURE__*/ proxyCustomElement(class SallaReviews exten
98
98
  });
99
99
  }
100
100
  render() {
101
- return (h("div", { key: '9bf5e2e2e0050844eae92fffbf4d908825000cff', class: "s-reviews-container" }, h("div", { key: '4a12a82e0c79cb72acc348ceb971cbab45f1923d', class: "s-reviews-header-wrapper" }, h("h1", { key: 'eb59728207a75bb4b2ec6a77b94b6899b01b8906', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '258d5dd3049b51725f08a66f2baf9e9f62c8a9e1', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: 'e2b66faec336425bc4fddeb00681c0e24ed9dce7', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
101
+ return (h("div", { key: 'a714c729b160349bb72976bc0b9910c2ddfee5bb', class: "s-reviews-container" }, h("div", { key: '5aadfe6203a6bfc70bd242914ad63de05b374a22', class: "s-reviews-header-wrapper" }, h("h1", { key: 'a7dcdfbb38a9eb069f8b3c46d065638b659fb891', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: 'cbb4ae4e75bbef6d5716287d096863de9631a3e2', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: '78ca0d0848ccba77a926b3142954d1a5ffe99a9b', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
102
102
  }
103
103
  static get style() { return sallaReviewsCss; }
104
104
  }, [0, "salla-reviews", {
@@ -165,7 +165,7 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
165
165
  return salla.onReady();
166
166
  }
167
167
  render() {
168
- return (h(Host, { key: '496e4e55483fee5b91818a760adb95d606b0d146' }, h("salla-modal", { key: '2e0e7c2967a0a05068aad712774cd089984fb957', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
168
+ return (h(Host, { key: '743fc37aec29a2ec15deb00c7463b51d0edcc29e' }, h("salla-modal", { key: '4b98493956bf34f97217d384d194a21d69ec011f', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
169
169
  h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
170
170
  :
171
171
  [h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
@@ -132,10 +132,10 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
132
132
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
133
133
  }
134
134
  render() {
135
- const searchContent = (h("div", { key: 'c1ac55ddb93b42cb84c30c0248be8949afef39df', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '6bdecb7d3511a5c97b4bb52860dcd050dc943573', class: "s-search-input-wrapper" }, h("span", { key: '93a0cd39aef09955e72657ba32a7ac1d4c6bdb7b', class: "s-search-icon-wrap" }, h("span", { key: '435ca7f22ba4d93eafe9fde32a7e62a55340e6a8', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '0acb71b9b5fe6681d33e7838ff14bbdee6159ccc', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
135
+ const searchContent = (h("div", { key: '6d47849faffad8faa82bfb8368ea2ad9e2aced49', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '6c6330e985c6505b1cf8c78e5ab95cb3b22844c9', class: "s-search-input-wrapper" }, h("span", { key: 'e01360120e50a316881569d19e455ccb998e50ab', class: "s-search-icon-wrap" }, h("span", { key: 'f9d9e717638271402ba445d59ec8b5315d542a16', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '4abd6b3c6647ccfd411463aa2c9610c8428efd17', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
136
136
  height: this.height + 'px',
137
137
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
138
- } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '9fc770575d0deeafda11f85aeb420a66cc2c2f64', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
138
+ } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '1a28e1cef5a6785ed45cef1beb1e177c174aca0c', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
139
139
  's-search-product': true,
140
140
  's-search-product-not-available': !product.is_available,
141
141
  }, innerHTML: this.productSlot
@@ -144,9 +144,9 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
144
144
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
145
145
  ? salla.money(product.regular_price)
146
146
  : '')
147
- .replace(/\{image\}/g, product.image.url) }))), h("p", { key: '31de1c46ae9ea8dce146f7a5e3b10eb61781a5e9', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
148
- const modalContent = (h("salla-modal", { key: '14efe319f3f844b2f3a1759a7f860b4dc3652570', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
149
- const placeholderContent = (h("div", { key: 'affda57d4ae84ea36e215bc17bc328b9f1a5a8de', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '51f3e2afd425459365887b4e7c1ef2da4433dbe8', class: "s-search-input-wrapper" }, h("span", { key: '79ed8316f06548aecb3a76384835e64e72330917', class: "s-search-icon-wrap" }, h("span", { key: 'ba690f7b674dac90062ed2328c6396933c4ac872', class: "s-search-icon", innerHTML: Search })), h("button", { key: 'ac57df999004b21e1469978f9963aceded386d9d', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
147
+ .replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'df6eb433971ec24b64de09de7f5d861fe7d26c7e', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
148
+ const modalContent = (h("salla-modal", { key: '37af042080e667919d94197c9ac16496a716bc9e', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
149
+ const placeholderContent = (h("div", { key: 'ce1fa4591a9c61563344a8bc48ed3e09d1ad6796', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: 'f42ee11b614068bcbde12e6e82034b8b3b22bfaa', class: "s-search-input-wrapper" }, h("span", { key: '8b775e814e03a3de5c24bbe4e252e3e78fa82988', class: "s-search-icon-wrap" }, h("span", { key: '69cfca5e26fe366e2544e95e9b468aba28b32e55', class: "s-search-icon", innerHTML: Search })), h("button", { key: '998a6aa2efd5003e413d7d467ca4e78b0f97bbe1', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
150
150
  height: this.height + 'px',
151
151
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
152
152
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -27,7 +27,7 @@ const SallaSkeleton = /*@__PURE__*/ proxyCustomElement(class SallaSkeleton exten
27
27
  's-skeleton-item': true,
28
28
  's-skeleton-item-circular': this.type == 'circle',
29
29
  };
30
- return (h(Host, { key: '8f574f21608fb5177c8a5d7e0d84d1c1065e49a4', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '6c86b14ec10c5ccea8f336ab87fb433c49104149', class: classes }, "\u00A0")));
30
+ return (h(Host, { key: '9f9448d939ba69f60eca8dc6ea2ff98a047d6770', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '3b43bb472316b5541a90081a5f3cb6ef91558212', class: classes }, "\u00A0")));
31
31
  }
32
32
  static get style() { return sallaSkeletonCss; }
33
33
  }, [0, "salla-skeleton", {
@@ -150,7 +150,7 @@ const SallaSocialShare$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocialSha
150
150
  window.a2a?.init('page');
151
151
  }
152
152
  render() {
153
- return (h("div", { key: '49da8d5e8066550792640f4677eb43f762fbecbe', class: "s-social-share-wrapper" }, h("slot", { key: 'ee7ef614fe373217829caa31f0eb9526e6695d93', name: 'widget' }, h("salla-button", { key: '53c41b4185b19a08cdadc4ce30baed08dd95d638', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'dae3c709e895a8e023bfc8aff490e52ea0e8e19a', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '64fda7434bbe22a0cbae61273b61a67528c441c7', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
153
+ return (h("div", { key: 'b3e61354de13c16f9bce1dd4cd397375d9a42da9', class: "s-social-share-wrapper" }, h("slot", { key: 'ef44d8cda6967977a59a0fe85777add8a73ffa59', name: 'widget' }, h("salla-button", { key: '243916c3a241c9dceb11a406faabe033c71820d2', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'a6fd2be4e2990f285960308cfd985d37e464d205', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '27fa3a6ae2306cb61d97e71bb6591dd3614b5977', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
154
154
  return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
155
155
  if (icon.name === platform) {
156
156
  return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
@@ -56,7 +56,7 @@ const SallaSocial$1 = /*@__PURE__*/ proxyCustomElement(class SallaSocial extends
56
56
  }
57
57
  render() {
58
58
  const linksArray = this.getLinksArray();
59
- return (h(Host, { key: 'a0b31aa06db07b8b4018b8d178dc27726eddb43e' }, h("ul", { key: 'b758199092ddf7c0e0b384f3f118d00c239104dd', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
59
+ return (h(Host, { key: '27639596a37f52686c1ac4b1a825fa143747216c' }, h("ul", { key: '9f6a6c96fe124fda09d2b879e3825ef73ec29c2c', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
60
60
  .replace(/\{icon\}/g, this.iconsList[link.type])
61
61
  .replace(/\{type\}/g, link.type)
62
62
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -32,7 +32,7 @@ const SallaTabContent = /*@__PURE__*/ proxyCustomElement(class SallaTabContent e
32
32
  's-tabs-content': true,
33
33
  's-tabs-content-selected': this.isSelected
34
34
  };
35
- return (h("div", { key: 'f2deb9c1508aafe3aff5352094cccc97bdcd42ef', class: classes }, h("slot", { key: '460588864047444acdb06e757a7124d28935c24b' })));
35
+ return (h("div", { key: '8678e860af6640f0ff1a92593fbe624416412b49', class: classes }, h("slot", { key: '10951e5230f9c5fbfbd5959d3773d44b66e85315' })));
36
36
  }
37
37
  static get style() { return sallaTabContentCss; }
38
38
  }, [4, "salla-tab-content", {
@@ -58,7 +58,7 @@ const SallaTabHeader = /*@__PURE__*/ proxyCustomElement(class SallaTabHeader ext
58
58
  's-tabs-active': this.isSelected,
59
59
  };
60
60
  return [
61
- h("div", { key: '153247ab5a7c73819ccc506a45e60b9c084c391c', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '417a3ae0c0aec8a965b5d3be9a4f917f290d2109' })),
61
+ h("div", { key: '02bd540222ec3bd4adac0dd08132c366e29c6d9d', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '9e6de884cb209d499e4bbd055e40c525680a7c37' })),
62
62
  ];
63
63
  }
64
64
  static get style() { return sallaTabHeaderCss; }
@@ -51,7 +51,7 @@ const SallaTabs = /*@__PURE__*/ proxyCustomElement(class SallaTabs extends HTMLE
51
51
  }
52
52
  render() {
53
53
  return [
54
- h("div", { key: 'ae50836f68ee92459720fa9bf00d73848d849627', class: "s-tabs" }, h("div", { key: '55e8186e80381902269f9bad5738d9a555f71d37', class: "s-tabs-header" }, h("slot", { key: '46ce3e1ea75f92165b3d5ee7c16f19f8693f6d31', name: "header" })), h("div", { key: '3669e643abb37ed2edca73fc0577822a3f7fbb90', class: "s-tabs-content-wrapper" }, h("slot", { key: '2cf8b79f44630e21103991325ceff2cd3a4019ba', name: "content" })))
54
+ h("div", { key: 'ecbcdc11af92d35afe933b11676bcf4769d19162', class: "s-tabs" }, h("div", { key: 'fa4fdecbc995dded92e3d64bf770d6375ad53fd2', class: "s-tabs-header" }, h("slot", { key: '730c1a278e95b7fa98da29956fee23dcd06e641d', name: "header" })), h("div", { key: '9721096ba8e1236500855a80f569e6ea8a4c1c32', class: "s-tabs-content-wrapper" }, h("slot", { key: 'ce82c43fd21bd1f28a7658b927646d0ff6052ea7', name: "content" })))
55
55
  ];
56
56
  }
57
57
  get host() { return this; }
@@ -129,7 +129,7 @@ const SallaTelInput = /*@__PURE__*/ proxyCustomElement(class SallaTelInput exten
129
129
  }
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: '278424c0918dc3c4b6aac8da5817376d784995ac', class: "s-tel-input" }, h("input", { key: '00ff8ed40ff9aabe9bea6cfd43c41f5b2cfc5529', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '68e791d4d1b6490a84a3ef31c75f41be90ac5bb6', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '415e6521c2ef756ebabbeb4610c06158e255320d', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
132
+ return (h(Host, { key: '0ed711498e5b2987a4299bd36bebb6963a5082ea', class: "s-tel-input" }, h("input", { key: '8beb06377cefe6b4e02ca82f04941025949ea304', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '90295738a19bae3c61f4cb149c162ae8e3e1b08c', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'a15b9f99bbae0be5af7bd00335a4174e9609d507', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
133
133
  }
134
134
  componentDidLoad() {
135
135
  this.initTelInput();
@@ -32,7 +32,7 @@ const SallaTooltip = /*@__PURE__*/ proxyCustomElement(class SallaTooltip extends
32
32
  }
33
33
  render() {
34
34
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
35
- return (h("div", { key: 'e5e8f78265e0abb1d4130fd084573c6cff1ecb2c', class: "s-tooltip-container" }, h("div", { key: '4dc98906dfd28c6e2d97b51329c07046eb15179c', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
35
+ return (h("div", { key: '789e7e8e0653d68b5387b2199e05f287c8b91c92', class: "s-tooltip-container" }, h("div", { key: '0342a96fa7c3d316cfc9f5435dc7321920044a12', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
36
36
  }
37
37
  get el() { return this; }
38
38
  static get style() { return sallaTooltipCss; }
@@ -83,7 +83,7 @@ const SallaUserSettings$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserSett
83
83
  await salla.profile.delete().finally(() => this.confirmationModal.close());
84
84
  }
85
85
  render() {
86
- return (h(Host, { key: 'b37f8e7cd7fe59dfd4f4e1efe455e74d33d4b91e', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '7cf5f1ed489159ef1c754fc8368b390d35cc273d', class: "s-user-settings-section" }, h("salla-list-tile", { key: '961843ff5de245febf4b5d9d4a96d47b44aeaff3' }, h("div", { key: 'bdfa266ee2694e410ff2bc8d6ec31b5210e7bf08', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '8ff08646cb3b3ba8d157f07cb4d54a6f515409a7', innerHTML: UserCancel })), h("div", { key: '8030d07722d9ad730676dafd1323b93a361f91da', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'f4c524dfe45418f0dd7395e998b1c16aa951a5f9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '74569032acb01ff1037104dcaf46f13c18c16803', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '6002a8368a587dbd8d3fd3fc1231e52ee44ebbbe', class: "s-toggle" }, h("input", { key: '2e9a622f9a670ef0f314c6183c57c851334a7df5', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'ca57daef65f550d53c1f947b41d3fb488bd38a95', class: "s-toggle-switcher" }))))), h("div", { key: 'b81a0200e08c0eca176060362792a45d9d7ad41e', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'ebcdac4056d21cbbd218b246cdd6c5bfa7bc2ac3' }, h("div", { key: 'df3a675745a0945498f3f45e11016f9f9c71ce6d', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'b5accc798ca95bd803f9c721f96fe62ca27e8ecf', innerHTML: Bullhorn })), h("div", { key: 'fe82c42f7586ba892f14ed7b1d2f85e19c508e8c', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'ec35e1a363a0802ab14a92b4bc8b858b9bf79c72', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'cc0d65144cfffc7fc795f3b1dde9ae6d75e827ec', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '945d030759a2ab27b9e9379d96f879d299b0a444', class: "s-toggle" }, h("input", { key: '6dd35723f4e049263193d50d1488a300e26a166e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '1f529a32b220a0a5ba673fe41573786450e4f1b8', class: "s-toggle-switcher" }))))), h("div", { key: '9973aa99cd3944ced8e87da05a3711b9cde5faa4', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '97ea806a1c5bc6e7f08ab04cdf555173d7e2c268' }, h("div", { key: 'fa98419cd6e11598c6e230ad462501f3dd66b975', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '9bb7192d2bcdd942974a2a6e405878998e090f3c', innerHTML: UserOff })), h("div", { key: '9e79bfd50311f2ec272bc6d90224d2f81c736d8e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '805696292b1354bf57b0f0252eabd031dc4ac5db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '4984f94d2eef4870036d1bea837cbe16e9978d84', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: '7be1eaf49fdb3df86b953a14879695c0c2eae838', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '55608c2fbfd01c328f923316aa203ebd6539ef86', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '247bb5555b3aa936ab4815f16ec332f6d922ab49', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: 'd8499d470dd0cce984687c9f6842970467b832a9', class: "s-user-settings-confirmation" }, h("div", { key: 'c4d98f4dc7591c53a0f4ab71fc1c7e0d446cebfc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: 'abebad572dab06b497451fff00a405e4c9db5652', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'bfde878cc657d975154f6e8b73220786b3898dbf', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'b3334a9b6fda2aa6de6f66f610efbba8ae95910f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
86
+ return (h(Host, { key: '09c239e885ba9e52e21ce17706c9296f99518c80', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: 'ae1d8057c8bc4a1d355300f4be87b8a33091f694', class: "s-user-settings-section" }, h("salla-list-tile", { key: '93a7aec26398f466f350defd6f1878b89dc85351' }, h("div", { key: '2e89f6967972d7b95fe43ad735a2180409d234dd', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '622a59eff6171b5b1bb86d8482142df673cbf794', innerHTML: UserCancel })), h("div", { key: 'ce73e774974ea08605635a8443d068c73fd20129', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '000e5e933e8d6a1f1d4742b0441d86c8403d6cb5', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '498fc6ec63be3a7bc0a78b208a48a824af5c38df', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '707181396eddd29d85826a48fb74a7119cfed2d6', class: "s-toggle" }, h("input", { key: 'a2188b266c8abe95a94affb128611074f8889405', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '1d50965f07763ba23f1675736f7d676a2e3300b9', class: "s-toggle-switcher" }))))), h("div", { key: '303f5388b3cb3954dc574dd8ac2c5f3981e870ce', class: "s-user-settings-section" }, h("salla-list-tile", { key: '6c751eafd2a3547fa7adaaf165230857c22820d4' }, h("div", { key: 'aaf770f0e43798c73d6fb7c5e0a71b7e03f812b8', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '3e5bbc36ed00b1c99816557314d82a5c51ceefac', innerHTML: Bullhorn })), h("div", { key: '9dce63894704b419536b9f7afec474b90bf047a8', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'd1df5e80e9ee8b8512cfe334b3032d64a61b9dc2', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'a57e08a44055a8859b4f3f2fd4ee8e7d3abf8e46', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '6289b221064d45fd944bbed843350f4183d32e7e', class: "s-toggle" }, h("input", { key: '545e32938c4f1da231486b20be8f220108c20019', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'efa1680c2fbbdcc280330ffa3d83379e96b0e755', class: "s-toggle-switcher" }))))), h("div", { key: '86e21a0171941aa0f1ddf008f479101a707c7e00', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '55f0b6d0b72ff1f91ff4ba09d28e8962e7f445b3' }, h("div", { key: '2d8ff66a76c3c8bf6a3c0e5222c142c0402b1c75', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'e59a4224af4f355679e2e163ca97c0f03b121ac7', innerHTML: UserOff })), h("div", { key: '59d4a4d841ab40f782f5a6a258c5e91211376d22', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: 'b51a3eedf67d2635ebbf15eb7e39289866b92481', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '0871a013df31afcacad1f3e3f2a37a80668fffa0', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'c42688b4aa87c5cbeb2145246327271cbc7561b5', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'eaf3dbc98dc2483d2251fa5858bf77d698d24d66', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: 'e7403e420404a68db65c1efa8edfa7ce8095ed82', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '1625698c6e2d8058177b51b5565adcf3fb92115f', class: "s-user-settings-confirmation" }, h("div", { key: '97a28f55f8dd76f15caa25148021501fe6447ddc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: '8454d3da817db426934ff49b535f82e9e0711eb9', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '9227e5eb5854e0415c0280c752340a526c2d19fb', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '3788d8ebbfe73e4bd085c942a9a651e22e4585e1', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
87
87
  }
88
88
  static get style() { return sallaUserSettingsCss; }
89
89
  }, [0, "salla-user-settings", {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BwsreBbG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CfaNNoM2.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BwsreBbG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CfaNNoM2.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BwsreBbG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CfaNNoM2.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BwsreBbG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CfaNNoM2.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BwsreBbG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CfaNNoM2.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-BwsreBbG.js';
4
+ import { d as getDefaultExportFromCjs } from './index-CfaNNoM2.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {