@salla.sa/twilight-components 2.14.557 → 2.14.558

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 (361) hide show
  1. package/dist/{esm/cart-DY4LZmNP.js → cjs/cart-DSvlJXCH.js} +4 -2
  2. package/dist/cjs/{filepond-B0WltAUU.js → filepond-LS8ytqmE.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-poster-CY6apY0i.js → filepond-plugin-file-poster-DexU9y97.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-size-D4ROC-Be.js → filepond-plugin-file-validate-size-BJJ_spY7.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-type-6lBH-fIm.js → filepond-plugin-file-validate-type-BYz_biwv.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-edit-zEOX3Sjw.js → filepond-plugin-image-edit-C3R9xG9P.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-exif-orientation-y0OgGNND.js → filepond-plugin-image-exif-orientation-DC7e2K9l.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-preview-C-amHd3H.js → filepond-plugin-image-preview-DLbo1P7r.js} +1 -1
  9. package/dist/cjs/{index-CyKUnNvM.js → index-BkcJlC9S.js} +10 -14
  10. package/dist/cjs/{intlTelInput-CTwMzcpE.js → intlTelInput-DvZz7cvU.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +9 -4
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +11 -11
  21. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +5 -5
  24. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +3 -3
  26. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-comment-form_9.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  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 +1 -1
  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 +1 -1
  53. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/{salla-slider.cjs.entry.js → salla-map_3.cjs.entry.js} +829 -1
  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 +1 -1
  62. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  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-shipments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-card.cjs.entry.js +48 -13
  81. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-search.cjs.entry.js +279 -33
  91. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  95. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  97. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-user-menu.cjs.entry.js +3 -3
  99. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  101. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
  104. package/dist/cjs/twilight.cjs.js +2 -2
  105. package/dist/cjs/{vanilla-picker-B_r1mvJW.js → vanilla-picker-COagKVR0.js} +1 -1
  106. package/dist/collection/components/salla-modal/salla-modal.css +34 -16
  107. package/dist/collection/components/salla-modal/salla-modal.js +27 -2
  108. package/dist/collection/components/salla-product-card/salla-product-card.css +22 -2
  109. package/dist/collection/components/salla-product-card/salla-product-card.js +106 -11
  110. package/dist/collection/components/salla-search/interfaces.js +1 -0
  111. package/dist/collection/components/salla-search/salla-search.css +324 -14
  112. package/dist/collection/components/salla-search/salla-search.js +179 -32
  113. package/dist/collection/components/salla-search/utils.js +111 -0
  114. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  115. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  116. package/dist/collection/components/salla-social/salla-social.js +1 -1
  117. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  118. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  119. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  120. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  121. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  122. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  123. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  124. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
  125. package/dist/components/index.js +2 -2
  126. package/dist/components/salla-modal2.js +9 -3
  127. package/dist/components/salla-product-card2.js +50 -12
  128. package/dist/components/salla-search.js +392 -39
  129. package/dist/components/salla-searchable-dropdown2.js +4 -4
  130. package/dist/components/salla-skeleton2.js +1 -1
  131. package/dist/components/salla-social-share2.js +1 -1
  132. package/dist/components/salla-social.js +1 -1
  133. package/dist/components/salla-tab-content2.js +1 -1
  134. package/dist/components/salla-tab-header2.js +1 -1
  135. package/dist/components/salla-tabs2.js +1 -1
  136. package/dist/components/salla-tel-input2.js +1 -1
  137. package/dist/components/salla-tooltip2.js +1 -1
  138. package/dist/components/salla-user-settings.js +1 -1
  139. package/dist/components/salla-wishlist-actions.js +1 -1
  140. package/dist/{cjs/cart-s-x1Fshk.js → esm/cart-gFG8By9O.js} +2 -4
  141. package/dist/esm/{filepond-B9wUqRiS.js → filepond-D5Fnwsco.js} +1 -1
  142. package/dist/esm/{filepond-plugin-file-poster-Cms0jrkz.js → filepond-plugin-file-poster-BfePPO64.js} +1 -1
  143. package/dist/esm/{filepond-plugin-file-validate-size-B2gy-nn6.js → filepond-plugin-file-validate-size-CVpLCDVB.js} +1 -1
  144. package/dist/esm/{filepond-plugin-file-validate-type-D_AqfbaS.js → filepond-plugin-file-validate-type-BhzMnQfH.js} +1 -1
  145. package/dist/esm/{filepond-plugin-image-edit-ChS3tv_T.js → filepond-plugin-image-edit-Bvj3qwXE.js} +1 -1
  146. package/dist/esm/{filepond-plugin-image-exif-orientation-iLQFxzEc.js → filepond-plugin-image-exif-orientation-NlBBLgPL.js} +1 -1
  147. package/dist/esm/{filepond-plugin-image-preview-Dm1gYrYZ.js → filepond-plugin-image-preview-CA1k8ex-.js} +1 -1
  148. package/dist/esm/{index-BLzx0e6P.js → index-B6Lo-Jz2.js} +10 -14
  149. package/dist/esm/{intlTelInput-BTOzA2B4.js → intlTelInput-nu7FH85H.js} +1 -1
  150. package/dist/esm/loader.js +3 -3
  151. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  152. package/dist/esm/salla-accordion_6.entry.js +9 -4
  153. package/dist/esm/salla-add-product-button_5.entry.js +3 -3
  154. package/dist/esm/salla-advertisement.entry.js +1 -1
  155. package/dist/esm/salla-alert_2.entry.js +3 -3
  156. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  157. package/dist/esm/salla-applied-filters.entry.js +1 -1
  158. package/dist/esm/salla-apps-icons.entry.js +1 -1
  159. package/dist/esm/salla-attachment-view_9.entry.js +11 -11
  160. package/dist/esm/salla-badge.entry.js +1 -1
  161. package/dist/esm/salla-basket-gap.entry.js +1 -1
  162. package/dist/esm/salla-bullet-delivery_3.entry.js +5 -5
  163. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  164. package/dist/esm/salla-cart-item-offers_2.entry.js +3 -3
  165. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  166. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  167. package/dist/esm/salla-comment-factors.entry.js +1 -1
  168. package/dist/esm/salla-comment-form_9.entry.js +1 -1
  169. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  170. package/dist/esm/salla-contacts.entry.js +1 -1
  171. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  172. package/dist/esm/salla-count-down_2.entry.js +1 -1
  173. package/dist/esm/salla-custom-fields.entry.js +1 -1
  174. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  175. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  176. package/dist/esm/salla-filters-widget.entry.js +1 -1
  177. package/dist/esm/salla-filters.entry.js +1 -1
  178. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  179. package/dist/esm/salla-gifting.entry.js +1 -1
  180. package/dist/esm/salla-hook.entry.js +1 -1
  181. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  182. package/dist/esm/salla-installment.entry.js +1 -1
  183. package/dist/esm/salla-list-tile.entry.js +1 -1
  184. package/dist/esm/salla-localization-modal.entry.js +1 -1
  185. package/dist/esm/salla-login-modal.entry.js +1 -1
  186. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  187. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  188. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  189. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  190. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  191. package/dist/esm/salla-loyalty.entry.js +1 -1
  192. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  193. package/dist/esm/{salla-slider.entry.js → salla-map_3.entry.js} +828 -2
  194. package/dist/esm/salla-menu.entry.js +1 -1
  195. package/dist/esm/salla-metadata.entry.js +1 -1
  196. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  197. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  198. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  199. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  200. package/dist/esm/salla-notification-item_2.entry.js +1 -1
  201. package/dist/esm/salla-offer-modal.entry.js +1 -1
  202. package/dist/esm/salla-offer.entry.js +1 -1
  203. package/dist/esm/salla-order-branch.entry.js +1 -1
  204. package/dist/esm/salla-order-cancel.entry.js +1 -1
  205. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  206. package/dist/esm/salla-order-details-options.entry.js +1 -1
  207. package/dist/esm/salla-order-details.entry.js +1 -1
  208. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  209. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  210. package/dist/esm/salla-order-edit.entry.js +1 -1
  211. package/dist/esm/salla-order-shipments.entry.js +1 -1
  212. package/dist/esm/salla-order-summary.entry.js +1 -1
  213. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  214. package/dist/esm/salla-orders.entry.js +1 -1
  215. package/dist/esm/salla-payments.entry.js +1 -1
  216. package/dist/esm/salla-placeholder.entry.js +1 -1
  217. package/dist/esm/salla-price-range.entry.js +1 -1
  218. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  219. package/dist/esm/salla-product-card.entry.js +48 -13
  220. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  221. package/dist/esm/salla-products-list.entry.js +1 -1
  222. package/dist/esm/salla-products-slider.entry.js +1 -1
  223. package/dist/esm/salla-quick-order.entry.js +1 -1
  224. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  225. package/dist/esm/salla-rating-modal.entry.js +1 -1
  226. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  227. package/dist/esm/salla-review-order-item.entry.js +1 -1
  228. package/dist/esm/salla-scopes.entry.js +1 -1
  229. package/dist/esm/salla-search.entry.js +279 -33
  230. package/dist/esm/salla-skeleton.entry.js +2 -2
  231. package/dist/esm/salla-social-share.entry.js +2 -2
  232. package/dist/esm/salla-social.entry.js +2 -2
  233. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  234. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  235. package/dist/esm/salla-tooltip.entry.js +2 -2
  236. package/dist/esm/salla-trust-badges.entry.js +1 -1
  237. package/dist/esm/salla-user-menu.entry.js +3 -3
  238. package/dist/esm/salla-user-profile.entry.js +1 -1
  239. package/dist/esm/salla-user-settings.entry.js +2 -2
  240. package/dist/esm/salla-verify.entry.js +1 -1
  241. package/dist/esm/salla-wallet.entry.js +1 -1
  242. package/dist/esm/salla-wishlist-actions.entry.js +2 -2
  243. package/dist/esm/twilight.js +3 -3
  244. package/dist/esm/{vanilla-picker-CbIzx8P3.js → vanilla-picker-Dn7Q0By-.js} +1 -1
  245. package/dist/twilight/{p-d1ba8e6e.entry.js → p-00f3dc2a.entry.js} +1 -1
  246. package/dist/twilight/{p-7d86bc77.entry.js → p-051740db.entry.js} +1 -1
  247. package/dist/twilight/{p-595bfef8.entry.js → p-05f65278.entry.js} +1 -1
  248. package/dist/twilight/{p-c9d10c9f.entry.js → p-0e9845d3.entry.js} +1 -1
  249. package/dist/twilight/{p-46ba098a.entry.js → p-0ea66288.entry.js} +1 -1
  250. package/dist/twilight/{p-3b4b1f29.entry.js → p-0f9d25c2.entry.js} +1 -1
  251. package/dist/twilight/{p-6866b3d6.entry.js → p-100cb969.entry.js} +1 -1
  252. package/dist/twilight/{p-96a13e17.entry.js → p-11234d66.entry.js} +1 -1
  253. package/dist/twilight/{p-365745de.entry.js → p-1546f64d.entry.js} +1 -1
  254. package/dist/twilight/{p-c0fc7756.entry.js → p-191b4fa6.entry.js} +1 -1
  255. package/dist/twilight/{p-5cbd36fb.entry.js → p-19607f60.entry.js} +1 -1
  256. package/dist/twilight/p-1d1bbac7.entry.js +4 -0
  257. package/dist/twilight/{p-932e3bff.entry.js → p-1d220636.entry.js} +1 -1
  258. package/dist/twilight/{p-eb10186c.entry.js → p-1d9aa36c.entry.js} +1 -1
  259. package/dist/twilight/{p-53285f66.entry.js → p-257717f5.entry.js} +1 -1
  260. package/dist/twilight/{p-4cabeff6.entry.js → p-289574f0.entry.js} +1 -1
  261. package/dist/twilight/{p-f276a319.entry.js → p-28aeea5d.entry.js} +1 -1
  262. package/dist/twilight/{p-6ea62f2b.entry.js → p-29a9ff44.entry.js} +1 -1
  263. package/dist/twilight/{p-7767f3a7.entry.js → p-2cb160a8.entry.js} +1 -1
  264. package/dist/twilight/{p-0416a2a8.entry.js → p-2dc5f115.entry.js} +1 -1
  265. package/dist/twilight/{p-8d8c84d8.entry.js → p-2de7945d.entry.js} +1 -1
  266. package/dist/twilight/{p-9ef91e6b.entry.js → p-2ebe428c.entry.js} +1 -1
  267. package/dist/twilight/{p-2a5b180a.entry.js → p-31c017ae.entry.js} +1 -1
  268. package/dist/twilight/p-344e7a53.entry.js +4 -0
  269. package/dist/twilight/{p-59ccfd64.entry.js → p-3661b790.entry.js} +1 -1
  270. package/dist/twilight/{p-47597499.entry.js → p-3c312812.entry.js} +1 -1
  271. package/dist/twilight/{p-7ffa452c.entry.js → p-3f12a3a2.entry.js} +1 -1
  272. package/dist/twilight/{p-8e2f52b2.entry.js → p-400c631e.entry.js} +1 -1
  273. package/dist/twilight/{p-a4175383.entry.js → p-44f20e64.entry.js} +1 -1
  274. package/dist/twilight/{p-738ec366.entry.js → p-4604590c.entry.js} +1 -1
  275. package/dist/twilight/{p-07b67ef6.entry.js → p-4c422a3d.entry.js} +1 -1
  276. package/dist/twilight/{p-c428c44b.entry.js → p-4f645457.entry.js} +1 -1
  277. package/dist/twilight/{p-86cd2898.entry.js → p-529a60e2.entry.js} +1 -1
  278. package/dist/twilight/{p-cd86c231.entry.js → p-5a2150e8.entry.js} +1 -1
  279. package/dist/twilight/{p-de3b3e41.entry.js → p-5d6db148.entry.js} +1 -1
  280. package/dist/twilight/{p-fa459971.entry.js → p-5d6f9c3e.entry.js} +1 -1
  281. package/dist/twilight/{p-1bfb9675.entry.js → p-5dcf8a71.entry.js} +1 -1
  282. package/dist/twilight/{p-bba884dc.entry.js → p-5f4331f0.entry.js} +1 -1
  283. package/dist/twilight/{p-06c1c936.entry.js → p-5ffdb544.entry.js} +1 -1
  284. package/dist/twilight/{p-fa7966bd.entry.js → p-63b48fb1.entry.js} +1 -1
  285. package/dist/twilight/{p-eb9fca37.entry.js → p-647a1b63.entry.js} +1 -1
  286. package/dist/twilight/{p-cb7bc39f.entry.js → p-6840449d.entry.js} +1 -1
  287. package/dist/twilight/{p-5bb8c263.entry.js → p-747fdf8c.entry.js} +1 -1
  288. package/dist/twilight/{p-7f077279.entry.js → p-7512638e.entry.js} +1 -1
  289. package/dist/twilight/{p-f602c556.entry.js → p-75ba562a.entry.js} +1 -1
  290. package/dist/twilight/{p-3a97face.entry.js → p-7639c5a8.entry.js} +1 -1
  291. package/dist/twilight/{p-6d8b0678.entry.js → p-778f38ce.entry.js} +1 -1
  292. package/dist/twilight/{p-7c859f0c.entry.js → p-785ac87d.entry.js} +1 -1
  293. package/dist/twilight/{p-34f2d378.entry.js → p-78cba566.entry.js} +1 -1
  294. package/dist/twilight/{p-ed3fc3bb.entry.js → p-7a78cbcd.entry.js} +1 -1
  295. package/dist/twilight/{p-96ded4cf.entry.js → p-7b286e8d.entry.js} +1 -1
  296. package/dist/twilight/{p-ada5f9db.entry.js → p-8284d68b.entry.js} +1 -1
  297. package/dist/twilight/{p-6af36173.entry.js → p-86622485.entry.js} +1 -1
  298. package/dist/twilight/{p-67caf54b.entry.js → p-8ca39b58.entry.js} +1 -1
  299. package/dist/twilight/{p-a51931ba.entry.js → p-8e10a9a9.entry.js} +1 -1
  300. package/dist/twilight/{p-98e83214.entry.js → p-8ee698cc.entry.js} +1 -1
  301. package/dist/twilight/{p-a7801576.entry.js → p-8f11c556.entry.js} +1 -1
  302. package/dist/twilight/{p-18d0c69f.entry.js → p-91ab3a03.entry.js} +1 -1
  303. package/dist/twilight/{p-iB9dUe00.js → p-9L0Aq4PZ.js} +1 -1
  304. package/dist/twilight/{p-BLzx0e6P.js → p-B6Lo-Jz2.js} +1 -1
  305. package/dist/twilight/{p-BBCmWsAH.js → p-Ble2-eBI.js} +1 -1
  306. package/dist/twilight/{p-BTjFfROl.js → p-BopTxsQ2.js} +1 -1
  307. package/dist/twilight/{p-Bi7BjntU.js → p-CMHD60jb.js} +1 -1
  308. package/dist/twilight/{p-oVUukCva.js → p-CUuXQJdT.js} +1 -1
  309. package/dist/twilight/{p-BQGQ9tVS.js → p-CvrBhStg.js} +1 -1
  310. package/dist/twilight/{p-CBW4kczX.js → p-DexDAAf1.js} +1 -1
  311. package/dist/twilight/{p-C_G6bYCk.js → p-Dgq6RHqV.js} +1 -1
  312. package/dist/twilight/{p-BqaOIJsE.js → p-VJGJYEfb.js} +1 -1
  313. package/dist/twilight/{p-ee463cf9.entry.js → p-a1035984.entry.js} +1 -1
  314. package/dist/twilight/{p-61b6c754.entry.js → p-a50073b5.entry.js} +1 -1
  315. package/dist/twilight/{p-1420e962.entry.js → p-a82db499.entry.js} +1 -1
  316. package/dist/twilight/{p-c69e0669.entry.js → p-a8d3ae7e.entry.js} +1 -1
  317. package/dist/twilight/{p-bc0bc63f.entry.js → p-a8d90638.entry.js} +1 -1
  318. package/dist/twilight/{p-0c80fbcf.entry.js → p-abce7e02.entry.js} +1 -1
  319. package/dist/twilight/{p-7a19cb93.entry.js → p-ad12ab8c.entry.js} +1 -1
  320. package/dist/twilight/{p-fad4aa22.entry.js → p-adb31a76.entry.js} +1 -1
  321. package/dist/twilight/{p-9ddcdf20.entry.js → p-b5a68a1a.entry.js} +1 -1
  322. package/dist/twilight/{p-407a73f4.entry.js → p-b695db2e.entry.js} +1 -1
  323. package/dist/twilight/{p-f87ba34e.entry.js → p-ba941354.entry.js} +1 -1
  324. package/dist/twilight/{p-3ba22519.entry.js → p-bb94c4e4.entry.js} +1 -1
  325. package/dist/twilight/{p-33e0d7b8.entry.js → p-bbfaf5ac.entry.js} +1 -1
  326. package/dist/twilight/{p-809a0076.entry.js → p-be292e0b.entry.js} +1 -1
  327. package/dist/twilight/{p-b36ca739.entry.js → p-be34bd30.entry.js} +1 -1
  328. package/dist/twilight/{p-5f6c10d6.entry.js → p-bf2f2a36.entry.js} +1 -1
  329. package/dist/twilight/{p-2b7ca018.entry.js → p-bfa7a257.entry.js} +1 -1
  330. package/dist/twilight/{p-be424137.entry.js → p-c39c8112.entry.js} +1 -1
  331. package/dist/twilight/{p-99a757ac.entry.js → p-c56e1aa1.entry.js} +1 -1
  332. package/dist/twilight/{p-d84a11b8.entry.js → p-c8c09f5c.entry.js} +1 -1
  333. package/dist/twilight/{p-a0c97ac9.entry.js → p-c8c34286.entry.js} +1 -1
  334. package/dist/twilight/{p-5cc80969.entry.js → p-d41903f9.entry.js} +1 -1
  335. package/dist/twilight/{p-c4f963ea.entry.js → p-d55b86b5.entry.js} +1 -1
  336. package/dist/twilight/{p-3cc1a9b8.entry.js → p-d72e0350.entry.js} +1 -1
  337. package/dist/twilight/{p-2c0870cb.entry.js → p-d96bc0c1.entry.js} +1 -1
  338. package/dist/twilight/{p-81f8537a.entry.js → p-db9f8104.entry.js} +2 -2
  339. package/dist/twilight/{p-45706908.entry.js → p-dd734bcb.entry.js} +1 -1
  340. package/dist/twilight/p-df9d5f85.entry.js +4 -0
  341. package/dist/twilight/{p-05490b44.entry.js → p-e3a45456.entry.js} +1 -1
  342. package/dist/twilight/{p-2bd06384.entry.js → p-e5169250.entry.js} +1 -1
  343. package/dist/twilight/{p-a4b7ee47.entry.js → p-ea606acc.entry.js} +1 -1
  344. package/dist/twilight/{p-8b81811b.entry.js → p-effc8ceb.entry.js} +1 -1
  345. package/dist/twilight/{p-894fdcdd.entry.js → p-f2fb1121.entry.js} +1 -1
  346. package/dist/twilight/{p-210095ee.entry.js → p-fa7c358f.entry.js} +1 -1
  347. package/dist/twilight/{p-DY4LZmNP.js → p-gFG8By9O.js} +1 -1
  348. package/dist/twilight/twilight.esm.js +1 -1
  349. package/dist/types/components/salla-modal/salla-modal.d.ts +5 -0
  350. package/dist/types/components/salla-product-card/salla-product-card.d.ts +18 -0
  351. package/dist/types/components/salla-search/interfaces.d.ts +21 -0
  352. package/dist/types/components/salla-search/salla-search.d.ts +40 -2
  353. package/dist/types/components/salla-search/utils.d.ts +19 -0
  354. package/dist/types/components.d.ts +40 -0
  355. package/package.json +5 -5
  356. package/dist/cjs/salla-map_2.cjs.entry.js +0 -835
  357. package/dist/esm/salla-map_2.entry.js +0 -832
  358. package/dist/twilight/p-05b66ce1.entry.js +0 -4
  359. package/dist/twilight/p-56b2f8d7.entry.js +0 -4
  360. package/dist/twilight/p-8a7bb785.entry.js +0 -4
  361. package/dist/twilight/p-a8b41edc.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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host } from './index-B6Lo-Jz2.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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host } from './index-B6Lo-Jz2.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
 
7
7
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -1,21 +1,147 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BLzx0e6P.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-B6Lo-Jz2.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
+ import { C as Cancel } from './cancel-BsLF_HK7.js';
7
+ import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
8
  import { H as Helper } from './Helper-Cql-WbqR.js';
7
9
  import './anime.es-CgtvEd63.js';
8
10
 
9
- const sallaSearchCss = "/*!twlt*/.s-search-placeholder-wrapper{position:relative;display:inline-block}.s-search-input-wrapper{position:relative}.s-search-placeholder-trigger{cursor:pointer;appearance:none;text-align:start}.block{display:block}.inline{display:inline}.border{border-width:1px}.s-search-container{position:relative;z-index:99;max-height:14rem;border-radius:0.375rem;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:150ms}.s-search-oval{border-radius:20px}.s-search-inline{min-width:220px}.s-search-container-open{max-height:24rem;border-radius:0px !important}.s-search-container-open .s-search-input{border-top-left-radius:0.375rem !important;border-top-right-radius:0.375rem !important;border-bottom-right-radius:0px !important;border-bottom-left-radius:0px !important;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-search-no-results .s-search-input{border-bottom-right-radius:0px;border-bottom-left-radius:0px;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-search-input{height:2.5rem;width:100%;border-radius:0.375rem;--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-top:0px;padding-bottom:0.125rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-search-input:focus{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-color:transparent}.s-search-input:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:2.5rem}.s-search-input:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:2.5rem}.s-search-icon-wrap{position:absolute;top:50%;--tw-translate-y:-50%;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));line-height:1;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-icon-wrap:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:1rem}.s-search-icon-wrap:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:1rem}.s-search-icon svg{height:1rem;width:1rem;fill:#9ca3af}.s-search-spinner-loader{display:block;height:1rem;width:1rem}@keyframes spin{to{transform:rotate(360deg)}}.s-search-spinner-loader{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));border-right-color:var(--color-primary)}.s-search-results{position:absolute;margin:auto;max-height:24rem;width:100%;max-width:100%;overflow-y:auto;border-bottom-right-radius:0.375rem;border-bottom-left-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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-search-no-results{border-bottom-right-radius:0px !important;border-bottom-left-radius:0px !important}.s-search-no-results-placeholder{padding:1rem;text-align:center;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-product{display:flex;height:100%;justify-content:space-around;overflow:hidden;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1));background-color:transparent;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;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-search-product:last-child{border-bottom-width:0px}.s-search-product:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 480px){.s-search-product{padding-left:1.25rem;padding-right:1.25rem}}.s-search-product-image-container{position:relative;height:3.5rem;width:5rem;overflow:hidden;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-search-product-image{position:relative;height:100%;width:100%;object-fit:cover;font-size:0px}.s-search-product-image::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-search-product-details{flex:1 1 0%;padding-top:0.25rem}.s-search-product-details:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:1rem}@media (min-width: 480px){.s-search-product-details:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:1.25rem}}.s-search-product-details:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:1rem}@media (min-width: 480px){.s-search-product-details:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:1.25rem}}.s-search-product-title{margin-bottom:0.375rem;display:flex;flex-direction:column;align-items:baseline;justify-content:flex-start;font-size:0.875rem;font-weight:700;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-search-product-price{display:flex;width:100%;align-items:center;font-size:0.875rem;line-height:1.25rem;font-weight:700;color:var(--color-primary)}.s-search-product-regular-price{padding-left:0.75rem;padding-right:0.75rem;font-weight:500;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-search-product-not-available{--tw-grayscale:grayscale(100%);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-search-action{position:absolute;height:100%}.s-search-action:where([dir=\"ltr\"],[dir=\"ltr\"] *){right:0px}.s-search-action:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0px;border-top-right-radius:0px;border-bottom-right-radius:0px}.s-search-action-oval:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-right-radius:9999px;border-bottom-right-radius:9999px}.s-search-action-oval:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-left-radius:9999px;border-bottom-left-radius:9999px}.s-search-input-wrapper{position:relative;display:flex;flex-grow:1;align-items:center}.s-search-modal .s-modal-wrapper{align-items:flex-start;padding:0}.s-search-modal .s-modal-spacer{display:inline}.s-search-modal .s-modal-body{padding:0;width:700px;max-width:90%;margin-top:3.2rem;border-radius:0.5rem;background:transparent;overflow:visible;position:relative !important}.s-search-modal .s-modal-close{top:50%;transform:translateY(-50%)}";
11
+ const NEW_SEARCH_FEATURE_FLAG = 'new-search-ui-enabled';
12
+ const SEARCH_HISTORY_KEY = 'salla::search-history';
13
+ const SEARCH_HISTORY_LIMIT = 10;
14
+ // Multi-market stores scope search history per market via the `scope` query param.
15
+ function getSearchHistoryKey() {
16
+ if (typeof window === 'undefined') {
17
+ return SEARCH_HISTORY_KEY;
18
+ }
19
+ const scope = new URLSearchParams(window.location.search).get('scope');
20
+ return scope ? `${SEARCH_HISTORY_KEY}-${scope}` : SEARCH_HISTORY_KEY;
21
+ }
22
+ const DEFAULT_LABELS = {
23
+ searchPlaceholder: '',
24
+ noOptions: '',
25
+ outOfStock: '',
26
+ close: '',
27
+ back: '',
28
+ remove: '',
29
+ searchHistory: '',
30
+ trendingCategories: '',
31
+ mostSearched: '',
32
+ searchSuggestions: '',
33
+ categories: '',
34
+ searchResults: '',
35
+ searchViewAllTemplate: '',
36
+ };
37
+ // Labels not yet in the central translation files - seeded via addBulk only when missing.
38
+ const TRANSLATION_DEFAULTS = {
39
+ 'common.elements.search_history': { ar: 'آخر ما تم البحث عنه', en: 'Recently Searched' },
40
+ 'common.elements.trending_categories': {
41
+ ar: 'التصنيفات الأكثر بحثاً',
42
+ en: 'Trending categories',
43
+ },
44
+ 'common.elements.most_searched': { ar: 'الأكثر بحثاً', en: 'Most searched' },
45
+ 'common.elements.search_suggestions': { ar: 'اقتراحات البحث', en: 'Search suggestions' },
46
+ 'common.elements.categories': { ar: 'التصنيفات', en: 'Categories' },
47
+ 'common.elements.search_results': { ar: 'نتائج البحث', en: 'Search results' },
48
+ 'common.elements.search_view_all': {
49
+ ar: 'عرض كل النتائج لـ ":word"',
50
+ en: 'View all results for ":word"',
51
+ },
52
+ };
53
+ function isNewSearchFeatureEnabled() {
54
+ const flag = salla.storage.get(NEW_SEARCH_FEATURE_FLAG, false);
55
+ return flag === true || flag === 'true';
56
+ }
57
+ function getSearchResultsUrl(term) {
58
+ return salla.url.get('search?q=' + encodeURI(term));
59
+ }
60
+ function loadSearchHistory() {
61
+ const key = getSearchHistoryKey();
62
+ const stored = salla.storage.get(key, []);
63
+ return Array.isArray(stored) ? stored.filter(term => typeof term === 'string') : [];
64
+ }
65
+ function saveSearchHistory(history) {
66
+ const key = getSearchHistoryKey();
67
+ salla.storage.set(key, history);
68
+ }
69
+ function addToSearchHistory(history, term) {
70
+ const trimmed = term.trim();
71
+ if (!trimmed) {
72
+ return history;
73
+ }
74
+ const withoutDuplicate = history.filter(existing => existing.toLowerCase() !== trimmed.toLowerCase());
75
+ return [trimmed, ...withoutDuplicate].slice(0, SEARCH_HISTORY_LIMIT);
76
+ }
77
+ function registerTranslationDefaults() {
78
+ if (!salla?.lang?.addBulk) {
79
+ return;
80
+ }
81
+ const missing = Object.entries(TRANSLATION_DEFAULTS).reduce((acc, [key, value]) => {
82
+ if (salla.lang.get(key) === key) {
83
+ acc[key] = value;
84
+ }
85
+ return acc;
86
+ }, {});
87
+ if (Object.keys(missing).length) {
88
+ salla.lang.addBulk(missing);
89
+ }
90
+ }
91
+ function loadLabels() {
92
+ return {
93
+ searchPlaceholder: salla.lang.get('blocks.header.search_placeholder'),
94
+ noOptions: salla.lang.get('common.elements.no_options'),
95
+ outOfStock: salla.lang.get('pages.products.out_of_stock'),
96
+ close: salla.lang.get('common.elements.close'),
97
+ back: salla.lang.get('common.elements.back'),
98
+ remove: salla.lang.get('common.elements.remove'),
99
+ searchHistory: salla.lang.get('common.elements.search_history'),
100
+ trendingCategories: salla.lang.get('common.elements.trending_categories'),
101
+ mostSearched: salla.lang.get('common.elements.most_searched'),
102
+ searchSuggestions: salla.lang.get('common.elements.search_suggestions'),
103
+ categories: salla.lang.get('common.elements.categories'),
104
+ searchResults: salla.lang.get('common.elements.search_results'),
105
+ searchViewAllTemplate: salla.lang.get('common.elements.search_view_all'),
106
+ };
107
+ }
108
+ function getDefaultProductSlot() {
109
+ return ('<div class="s-search-product-image-container">' +
110
+ ' <img class="s-search-product-image" src="{image}" alt="{name}"/>' +
111
+ '</div>' +
112
+ '<div class="s-search-product-details">' +
113
+ ' <div class="s-search-product-title">{name}</div> <div class="s-search-product-price">{price} <span class="s-search-product-regular-price">{regular_price}</span></div>' +
114
+ '</div>');
115
+ }
116
+
117
+ const sallaSearchCss = "/*!twlt*/.s-search-placeholder-wrapper{position:relative;display:inline-block}.s-search-input-wrapper{position:relative}.s-search-placeholder-trigger{cursor:pointer;appearance:none;text-align:start}.visible{visibility:visible}.block{display:block}.inline{display:inline}.hidden{display:none}.border{border-width:1px}.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-search-container{position:relative;z-index:99;max-height:14rem;border-radius:0.375rem;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:150ms}.s-search-oval{border-radius:20px}.s-search-inline{min-width:220px}.s-search-container-open{max-height:24rem;border-radius:0px !important}.s-search-container-open .s-search-input{border-top-left-radius:0.375rem !important;border-top-right-radius:0.375rem !important;border-bottom-right-radius:0px !important;border-bottom-left-radius:0px !important;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-search-no-results .s-search-input{border-bottom-right-radius:0px;border-bottom-left-radius:0px;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-search-input{height:2.5rem;width:100%;border-radius:0.375rem;--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-top:0px;padding-bottom:0.125rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-search-input:focus{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-color:transparent}.s-search-input:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:2.5rem}.s-search-input:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:2.5rem}.s-search-modal-new .s-search-input{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-search-icon-wrap{position:absolute;top:50%;--tw-translate-y:-50%;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));line-height:1;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-icon-wrap:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:1rem}.s-search-icon-wrap:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:1rem}.s-search-icon svg{height:1rem;width:1rem;fill:#9ca3af}.s-search-spinner-loader{display:block;height:1rem;width:1rem}@keyframes spin{to{transform:rotate(360deg)}}.s-search-spinner-loader{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));border-right-color:var(--color-primary)}.s-search-results{position:absolute;margin:auto;max-height:24rem;width:100%;max-width:100%;overflow-y:auto;border-bottom-right-radius:0.375rem;border-bottom-left-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-shadow:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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-search-no-results{border-bottom-right-radius:0px !important;border-bottom-left-radius:0px !important}.s-search-no-results-placeholder{grid-column:1 / -1;padding:1rem;text-align:center;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-product{display:flex;height:100%;justify-content:space-around;overflow:hidden;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1));background-color:transparent;padding-left:1rem;padding-right:1rem;padding-top:0.75rem;padding-bottom:0.75rem;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;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-search-product:last-child{border-bottom-width:0px}.s-search-product:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 480px){.s-search-product{padding-left:1.25rem;padding-right:1.25rem}}.s-search-product-image-container{position:relative;height:3.5rem;width:5rem;overflow:hidden;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-search-product-image{position:relative;height:100%;width:100%;object-fit:cover;font-size:0px}.s-search-product-image::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-search-product-details{flex:1 1 0%;padding-top:0.25rem}.s-search-product-details:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:1rem}@media (min-width: 480px){.s-search-product-details:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:1.25rem}}.s-search-product-details:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:1rem}@media (min-width: 480px){.s-search-product-details:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:1.25rem}}.s-search-product-title{margin-bottom:0.375rem;display:flex;flex-direction:column;align-items:baseline;justify-content:flex-start;font-size:0.875rem;font-weight:700;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-search-product-price{display:flex;width:100%;align-items:center;font-size:0.875rem;line-height:1.25rem;font-weight:700;color:var(--color-primary)}.s-search-product-regular-price{padding-left:0.75rem;padding-right:0.75rem;font-weight:500;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-search-product-not-available{--tw-grayscale:grayscale(100%);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-search-action{position:absolute;height:100%}.s-search-action:where([dir=\"ltr\"],[dir=\"ltr\"] *){right:0px}.s-search-action:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0px;border-top-right-radius:0px;border-bottom-right-radius:0px}.s-search-action-oval:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-right-radius:9999px;border-bottom-right-radius:9999px}.s-search-action-oval:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-left-radius:9999px;border-bottom-left-radius:9999px}.s-search-input-row{display:flex;align-items:center;gap:0.25rem}.s-search-back-btn{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0.25rem;line-height:1;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-search-back-btn:hover{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.s-search-back-btn{display:none}}.s-search-back-btn svg{height:1.5rem;width:1.5rem;fill:#6b7280}.s-search-input-wrapper{position:relative;display:flex;flex-grow:1;align-items:center}.s-search-input-clearable:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-right:2.25rem}.s-search-input-clearable:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:2.25rem}.s-search-input-clearable::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.s-search-clear-icon{position:absolute;top:50%;--tw-translate-y:-50%;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));padding:0.25rem;line-height:1;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-clear-icon:hover{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-search-clear-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){right:0.75rem}.s-search-clear-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0.75rem}.s-search-clear-icon svg{height:1rem;width:1rem;fill:#9ca3af}.s-search-panel{display:flex;flex-direction:column;gap:0.75rem;padding:0px}@media (min-width: 640px){.s-search-panel{padding:1rem}}.s-search-results-body{display:flex;max-height:24rem;gap:0.75rem;overflow-y:auto}.s-search-results-grid-wrap{min-width:0px;flex:1 1 0%}.s-search-results-grid{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));align-content:flex-start;column-gap:0.75rem;row-gap:0.25rem}@media (min-width: 640px){.s-search-results-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}.s-search-grid-item{cursor:pointer;border-radius:0.375rem;padding:0.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:300ms}.s-search-grid-item:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.s-search-grid-item .s-product-card-out-badge{--tw-bg-opacity:1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1));--tw-text-opacity:1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.s-search-view-all{display:flex;flex-shrink:0;align-items:center;justify-content:center;gap:0.25rem;border-top-width:1px;--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1));padding-top:0.75rem;text-align:center;font-size:0.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-search-view-all:hover{text-decoration-line:underline}.s-search-view-all-icon{line-height:1}.s-search-view-all-icon svg{height:1rem;width:1rem;fill:#6b7280}.s-search-sidebar{width:7rem;flex-shrink:0}.s-search-sidebar>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.s-search-sidebar{--tw-border-opacity:1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}@media (min-width: 480px){.s-search-sidebar{width:8rem}}.s-search-sidebar:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-right-width:1px;padding-right:0.75rem}.s-search-sidebar:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-left-width:1px;padding-left:0.75rem}.s-search-idle-panel{max-height:24rem;min-height:6rem}.s-search-idle-panel>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.s-search-idle-panel{overflow-y:auto}.s-search-idle-section-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-history-list{display:flex;flex-wrap:wrap;gap:0.5rem}.s-search-history-chip{display:inline-flex;align-items:center;gap:0.375rem;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding-top:0.375rem;padding-bottom:0.375rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-search-history-chip:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:0.75rem;padding-right:0.5rem}.s-search-history-chip:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:0.75rem;padding-left:0.5rem}.s-search-history-chip-term{line-height:1}.s-search-history-chip-remove svg{height:0.625rem;width:0.625rem;fill:#9ca3af}.s-search-idle-categories-list{display:flex;flex-wrap:wrap;gap:0.5rem}.s-search-idle-category-chip{display:inline-flex;align-items:center;gap:0.25rem;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));padding-left:0.75rem;padding-right:0.75rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-search-idle-category-chip:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-search-idle-category-count{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-search-most-searched-list{display:flex;flex-direction:column}.s-search-most-searched-item{display:flex;width:100%;align-items:center;gap:0.5rem;padding-top:0.375rem;padding-bottom:0.375rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-search-most-searched-item:hover{color:var(--color-primary)}.s-search-most-searched-icon svg{height:0.875rem;width:0.875rem;fill:#9ca3af}@media (min-width: 640px){.s-search-modal .s-modal-wrapper{align-items:flex-start;padding:0}.s-search-modal .s-modal-spacer{display:inline}}@media (max-width: 639px){.s-search-modal .s-modal-body{height:100dvh;max-height:100dvh !important}}@media (min-width: 640px){.s-search-modal .s-modal-body{padding:0;width:700px;max-width:90%;margin-top:3.2rem;border-radius:0.5rem;background:transparent;overflow:visible;position:relative !important}}.s-search-modal .s-modal-close{top:50%;transform:translateY(-50%)}@media (min-width: 640px){.s-search-modal.s-search-modal-new .s-modal-body{background:white;overflow:hidden;width:1100px;max-width:95%}}";
10
118
 
11
119
  const SallaSearch = class {
12
120
  constructor(hostRef) {
13
121
  registerInstance(this, hostRef);
122
+ this.newSearchEnabled = isNewSearchFeatureEnabled();
14
123
  this.inputValue = '';
124
+ this.hasTrackedFocus = false;
15
125
  this.translationLoaded = false;
126
+ this.labels = DEFAULT_LABELS;
16
127
  this.loading = false;
17
128
  this.typing = false;
18
129
  this.debounce = setTimeout(() => '', 1000);
130
+ this.search_term = '';
131
+ this.hasInputValue = false;
132
+ this.searchHistory = loadSearchHistory();
133
+ /**
134
+ * Most-searched categories to surface before the customer types a query.
135
+ * Not wired to a live endpoint yet - stays empty (and hidden) until a future
136
+ * story populates it.
137
+ */
138
+ this.trendingCategories = [];
139
+ /**
140
+ * Most-searched terms, reused both as the pre-search "most searched" list and
141
+ * as the results-view "search suggestions" sidebar. Same not-wired-yet status
142
+ * as trendingCategories.
143
+ */
144
+ this.mostSearchedTerms = [];
19
145
  /**
20
146
  * Set the component to display as a placeholder (button) that will open the modal. Defaults to `false`
21
147
  */
@@ -40,37 +166,72 @@ const SallaSearch = class {
40
166
  * Show submit action buttons at the end.
41
167
  */
42
168
  this.showAction = false;
169
+ this.tracking = {
170
+ searchFocus: () => {
171
+ if (this.hasTrackedFocus) {
172
+ return;
173
+ }
174
+ this.hasTrackedFocus = true;
175
+ salla.event.emit('salla-search::input.focused');
176
+ },
177
+ productClick: (product, position) => {
178
+ salla.event.emit('salla-search::product.clicked', [{ product, position }]);
179
+ },
180
+ recommendationClick: (term, source) => {
181
+ salla.event.emit('salla-search::recommendation.clicked', { term, source });
182
+ },
183
+ };
43
184
  this.productSlot =
44
- this.host.querySelector('[slot="product"]')?.innerHTML || this.getDefaultProductSlot();
185
+ this.host?.querySelector('[slot="product"]')?.innerHTML || getDefaultProductSlot();
45
186
  salla.event.on('search::open', () => this.open());
46
- salla.lang.onLoaded(() => {
47
- this.translationLoaded = true;
48
- });
49
187
  salla.event.on('modalClosed', () => this.onModalClose());
50
188
  }
51
189
  async open() {
52
- if (!this.inline) {
53
- await this.modal.open().then(() => setTimeout(() => this.searchInput.focus(), 300));
190
+ if (this.newSearchEnabled || !this.inline) {
191
+ await this.modal?.open().then(() => setTimeout(() => this.searchInput?.focus(), 300));
54
192
  }
55
193
  }
56
194
  onModalClose() {
57
- this.searchInput.value = '';
195
+ if (this.searchInput) {
196
+ this.searchInput.value = '';
197
+ }
58
198
  this.results = undefined;
199
+ this.hasInputValue = false;
59
200
  this.afterSearching();
60
- this.container.classList.remove('s-search-no-results');
201
+ this.container?.classList.remove('s-search-no-results');
61
202
  }
62
203
  handleKeyDown(ev) {
63
204
  if (ev.key === 'Enter' && this.search_term?.length) {
64
- window.location.href = salla.url.get('search?q=' + encodeURI(this.search_term));
205
+ window.location.href = getSearchResultsUrl(this.search_term);
206
+ }
207
+ }
208
+ clearSearch() {
209
+ if (this.searchInput) {
210
+ this.searchInput.value = '';
211
+ }
212
+ this.hasInputValue = false;
213
+ this.search_term = '';
214
+ this.searchInput?.focus();
215
+ }
216
+ removeFromSearchHistory(term) {
217
+ this.searchHistory = this.searchHistory.filter(existing => existing !== term);
218
+ saveSearchHistory(this.searchHistory);
219
+ this.afterSearching(!this.results);
220
+ }
221
+ applySuggestedTerm(term, source) {
222
+ this.tracking.recommendationClick(term, source);
223
+ if (this.searchInput) {
224
+ this.searchInput.value = term;
65
225
  }
226
+ this.hasInputValue = true;
227
+ this.search_term = term;
228
+ this.searchInput?.focus();
66
229
  }
67
- getDefaultProductSlot() {
68
- return ('<div class="s-search-product-image-container">' +
69
- ' <img class="s-search-product-image" src="{image}" alt="{name}"/>' +
70
- '</div>' +
71
- '<div class="s-search-product-details">' +
72
- ' <div class="s-search-product-title">{name}</div> <div class="s-search-product-price">{price} <span class="s-search-product-regular-price">{regular_price}</span></div>' +
73
- '</div>');
230
+ async componentWillLoad() {
231
+ await salla.lang.onLoaded();
232
+ registerTranslationDefaults();
233
+ this.labels = loadLabels();
234
+ this.translationLoaded = true;
74
235
  }
75
236
  debounceSearch(event) {
76
237
  this.typing = true;
@@ -82,10 +243,13 @@ const SallaSearch = class {
82
243
  }
83
244
  limitWordsAndSearch(event) {
84
245
  let value = event.target.value;
246
+ this.hasInputValue = value.length > 0;
85
247
  const words = value.trim().split(/\s+/);
86
248
  if (words.length > this.maxWords) {
87
249
  const truncatedInput = words.slice(0, this.maxWords).join(' ');
88
- this.searchInput.value = truncatedInput;
250
+ if (this.searchInput) {
251
+ this.searchInput.value = truncatedInput;
252
+ }
89
253
  }
90
254
  this.debounceSearch(event);
91
255
  }
@@ -109,7 +273,7 @@ const SallaSearch = class {
109
273
  }
110
274
  }
111
275
  search(val) {
112
- this.noResults.style.display = 'none';
276
+ this.noResults && (this.noResults.style.display = 'none');
113
277
  //run loading spinner or stop it
114
278
  this.loading = true;
115
279
  salla.product
@@ -117,22 +281,29 @@ const SallaSearch = class {
117
281
  .then(response => {
118
282
  this.results = response;
119
283
  salla.event.emit('Products Searched', val);
284
+ if (this.newSearchEnabled) {
285
+ this.searchHistory = addToSearchHistory(this.searchHistory, val);
286
+ saveSearchHistory(this.searchHistory);
287
+ }
120
288
  })
121
289
  .catch(err => (err !== 'Query is same as previous one!' ? (this.results = undefined) : null))
122
290
  .finally(() => this.afterSearching(/*isEmpty*/ false));
123
291
  }
124
292
  afterSearching(isEmpty = true) {
125
- this.noResults.style.display = isEmpty || this.results?.data.length > 0 ? 'none' : 'block';
126
- Helper.toggleElementClassIf(this.container, 's-search-container-open', 's-search-no-results', () => this.results?.data.length);
293
+ if (this.noResults) {
294
+ this.noResults.style.display = isEmpty || !!this.results?.data?.length ? 'none' : 'block';
295
+ }
296
+ // The new search experience is always a fully-visible modal panel (no collapsed/expanded
297
+ // input trick needed), so this open/no-results cosmetic toggle only applies to the legacy UI.
298
+ if (!this.newSearchEnabled) {
299
+ Helper.toggleElementClassIf(this.container, 's-search-container-open', 's-search-no-results', () => this.results?.data.length);
300
+ }
127
301
  this.loading = false;
128
302
  salla.product.api.previousQuery = ''; //avoid having error 'Query is same as previous one!' after reopen modal;
129
- this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
303
+ this.inputValue.length < 3 ? this.container?.classList.remove('s-search-no-results') : '';
130
304
  }
131
- render() {
132
- const searchContent = (h("div", { key: 'ca8dec5eb90cd0893a1a3364df34ba0ee4d60891', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '212f8180ecca220a8b89231311dec6cdf3ef0b06', class: "s-search-input-wrapper" }, h("span", { key: '51fb0f9a2e342afd35eb82b57f55471aa9e1519f', class: "s-search-icon-wrap" }, h("span", { key: 'e75117068c51c6d200e8e20fa0f00ca02ed0c61d', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '442b1704b75a33e8c9e02da8200151a1d8e8db72', 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: {
133
- height: this.height + 'px',
134
- borderRadius: this.oval ? this.height / 2 + 'px' : '',
135
- } }), 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: 'f3b40ce4ec24678f6d8421f3da8ac9e1bd631c3a', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
305
+ renderLegacyResults() {
306
+ return (h("div", { class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
136
307
  's-search-product': true,
137
308
  's-search-product-not-available': !product.is_available,
138
309
  }, innerHTML: this.productSlot
@@ -141,12 +312,83 @@ const SallaSearch = class {
141
312
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
142
313
  ? salla.money(product.regular_price)
143
314
  : '')
144
- .replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'fdbb21061c599a59c6d828eec80e8d591a708cca', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
145
- const modalContent = (h("salla-modal", { key: 'ca90aea3fb92d1ba7d8270c26e2ecd82d5018784', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
146
- const placeholderContent = (h("div", { key: '73333ce51cabadc4963a9fe9d1372bb7d63925c8', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '77a66e9bba504557160c8c50d91f1216cc68f253', class: "s-search-input-wrapper" }, h("span", { key: '18fb5ce6e3e72874e76dd1ef2c6db8718a68f778', class: "s-search-icon-wrap" }, h("span", { key: '63b9e9af1c51647df734cc4d5cf7a825b922ce38', class: "s-search-icon", innerHTML: Search })), h("button", { key: 'b70169ed2d80ec2ad6b09952ad104824610212df', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
315
+ .replace(/\{image\}/g, product.image.url) }))), h("p", { ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, this.labels.noOptions)));
316
+ }
317
+ renderCategoriesSection(title) {
318
+ if (!this.trendingCategories.length) {
319
+ return null;
320
+ }
321
+ return (h("div", null, h("p", { class: "s-search-idle-section-title" }, title), h("div", { class: "s-search-idle-categories-list" }, this.trendingCategories.map(category => (h("a", { class: "s-search-idle-category-chip", href: category.url, onClick: () => this.tracking.recommendationClick(category.name, 'category') }, category.name, category.count ? (h("span", { class: "s-search-idle-category-count" }, category.count)) : null))))));
322
+ }
323
+ renderTermsSection(title, source) {
324
+ if (!this.mostSearchedTerms.length) {
325
+ return null;
326
+ }
327
+ return (h("div", null, h("p", { class: "s-search-idle-section-title" }, title), h("ul", { class: "s-search-most-searched-list" }, this.mostSearchedTerms.map(term => (h("li", null, h("button", { type: "button", class: "s-search-most-searched-item", onClick: () => this.applySuggestedTerm(term, source) }, h("span", { class: "s-search-most-searched-icon", innerHTML: Search }), term)))))));
328
+ }
329
+ renderSearchHistorySection() {
330
+ // Only in the empty/zero state - hidden as soon as there's input text or results.
331
+ if (!this.searchHistory.length || this.hasInputValue) {
332
+ return null;
333
+ }
334
+ return (h("div", null, h("p", { class: "s-search-idle-section-title" }, this.labels.searchHistory), h("div", { class: "s-search-history-list" }, this.searchHistory.map(term => (h("span", { class: "s-search-history-chip" }, h("button", { type: "button", class: "s-search-history-chip-term", onClick: () => this.applySuggestedTerm(term, 'history') }, term), h("button", { type: "button", class: "s-search-history-chip-remove", "aria-label": this.labels.remove, onClick: () => this.removeFromSearchHistory(term) }, h("span", { innerHTML: Cancel }))))))));
335
+ }
336
+ renderIdlePanel() {
337
+ // Always renders - even with nothing in history/trending yet - so the panel opens as a
338
+ // visible (if empty) container rather than disappearing until there's something to show.
339
+ return (h("div", { class: "s-search-idle-panel" }, this.renderSearchHistorySection(), this.renderCategoriesSection(this.labels.trendingCategories), this.renderTermsSection(this.labels.mostSearched, 'trending')));
340
+ }
341
+ renderResultsBody() {
342
+ // Search history never shows here (only in the empty/zero state), so the sidebar's
343
+ // visibility depends only on categories/terms - not the full idle-panel content check.
344
+ const hasSidebarContent = this.trendingCategories.length > 0 || this.mostSearchedTerms.length > 0;
345
+ return (h("div", { class: "s-search-results-body" }, hasSidebarContent ? (h("div", { class: "s-search-sidebar" }, this.renderTermsSection(this.labels.searchSuggestions, 'suggestion'), this.renderCategoriesSection(this.labels.categories))) : null, h("div", { class: "s-search-results-grid-wrap" }, h("p", { class: "s-search-idle-section-title" }, this.labels.searchResults), h("div", { class: "s-search-results-grid" }, this.results?.data.map((product, position) => (h("div", { class: "s-search-grid-item", onClick: () => this.tracking.productClick(product, position) }, h("salla-product-card", { product: { ...product, url: product.url + '?from=search-bar' }, horizontal: true, compact: true, "show-quantity": !product.is_available, "show-out-of-stock-beside-price": true, hideAddBtn: true })))), this.results?.data.length === 0 ? (h("p", { class: "s-search-no-results-placeholder" }, this.labels.noOptions)) : null))));
346
+ }
347
+ renderViewAllLink() {
348
+ if (!this.results?.data.length) {
349
+ return null;
350
+ }
351
+ return (h("a", { class: "s-search-view-all", href: getSearchResultsUrl(this.search_term) }, this.labels.searchViewAllTemplate.replace(':word', this.search_term), h("span", { class: "s-search-view-all-icon", innerHTML: salla.config.get('theme.is_rtl', true) ? ArrowLeftIcon : ArrowRightIcon })));
352
+ }
353
+ renderDropdown() {
354
+ if (!this.newSearchEnabled) {
355
+ return this.renderLegacyResults();
356
+ }
357
+ return this.results ? this.renderResultsBody() : this.renderIdlePanel();
358
+ }
359
+ renderInputWrapper() {
360
+ const inputWrapper = (h("div", { class: "s-search-input-wrapper" }, h("span", { class: "s-search-icon-wrap" }, h("span", { class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { type: "search", enterkeyhint: "search", autocomplete: "off", class: { 's-search-input': true, 's-search-input-clearable': this.newSearchEnabled }, placeholder: this.labels.searchPlaceholder, onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.newSearchEnabled && this.tracking.searchFocus(), ref: input => (this.searchInput = input), style: {
147
361
  height: this.height + 'px',
148
362
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
149
- } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
363
+ } }), this.newSearchEnabled && this.hasInputValue ? (h("button", { type: "button", class: "s-search-clear-icon", "aria-label": this.labels.close, onClick: () => this.clearSearch() }, h("span", { innerHTML: Cancel }))) : null, 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));
364
+ if (!this.newSearchEnabled) {
365
+ return inputWrapper;
366
+ }
367
+ return (h("div", { class: "s-search-input-row" }, h("button", { type: "button", class: "s-search-back-btn", "aria-label": this.labels.back, onClick: () => this.modal?.close() }, h("span", { innerHTML: salla.config.get('theme.is_rtl', true)
368
+ ? ArrowRightIcon
369
+ : ArrowLeftIcon })), inputWrapper));
370
+ }
371
+ renderPlaceholderTrigger() {
372
+ return (h("div", { class: "s-search-input-wrapper" }, h("span", { class: "s-search-icon-wrap" }, h("span", { class: "s-search-icon", innerHTML: Search })), h("button", { type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
373
+ height: this.height + 'px',
374
+ borderRadius: this.oval ? this.height / 2 + 'px' : '',
375
+ } }, this.labels.searchPlaceholder)));
376
+ }
377
+ /**
378
+ * The new search UI is always a modal opened from a placeholder trigger (never inline,
379
+ * never a bare/self-triggering modal), with its own padded panel layout - the input and
380
+ * dropdown content share one bordered card instead of the legacy floating-dropdown look.
381
+ */
382
+ renderNewSearchExperience() {
383
+ return (h("div", { class: "s-search-placeholder-wrapper s-search-inline" }, this.renderPlaceholderTrigger(), h("salla-modal", { position: "top", class: "s-search-modal s-search-modal-new", "hide-close-button": true, ref: modal => (this.modal = modal) }, h("div", { class: "s-search-panel", ref: container => (this.container = container) }, this.renderInputWrapper(), this.renderDropdown(), this.renderViewAllLink()))));
384
+ }
385
+ render() {
386
+ if (this.newSearchEnabled) {
387
+ return this.renderNewSearchExperience();
388
+ }
389
+ const searchContent = (h("div", { class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, this.renderInputWrapper(), this.renderDropdown()));
390
+ const modalContent = (h("salla-modal", { position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
391
+ const placeholderContent = (h("div", { class: "s-search-placeholder-wrapper s-search-inline" }, this.renderPlaceholderTrigger(), modalContent));
150
392
  return this.placeholder ? (placeholderContent) : this.inline ? (h("div", { class: "s-search-modal" }, searchContent)) : (modalContent);
151
393
  }
152
394
  /**
@@ -154,7 +396,11 @@ const SallaSearch = class {
154
396
  */
155
397
  componentDidLoad() {
156
398
  this.afterSearching();
157
- this.searchInput.value = this.getQueryParam('q');
399
+ const initialQuery = this.getQueryParam('q');
400
+ if (initialQuery && this.searchInput) {
401
+ this.searchInput.value = initialQuery;
402
+ this.hasInputValue = true;
403
+ }
158
404
  }
159
405
  get host() { return getElement(this); }
160
406
  static get watchers() { return {
@@ -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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host } from './index-B6Lo-Jz2.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
 
@@ -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: '7b36da96585cfefe9aa96df6262be14f6a03c585', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '568ae1bc0aeae182bb32468b19601c0245e9617d', class: classes }, "\u00A0")));
29
+ return (h(Host, { key: '363b803ca0428a575313a96b569ddab7f67b3703', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: 'bd1e4607e4753ef8b148a125b8d9bc60ca20dc72', 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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-B6Lo-Jz2.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';
@@ -381,7 +381,7 @@ const SallaSocialShare = class {
381
381
  })));
382
382
  }
383
383
  render() {
384
- return (h("div", { key: 'cd2d10a50c7d07fb261471e7ca8e81891bc489e9', class: "s-social-share-wrapper" }, h("slot", { key: '94627cdb3aa11d3844c984d8890b13dc7e1f0e3c', name: "widget" }, h("salla-button", { key: '3b5ea25966484669a935e62ccbc3d383078337d8', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '3de3ea0b6f4843a24eeab1f7d6f0be3c8f85de41', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
384
+ return (h("div", { key: '4de560059da2e2dd232bbcd693cd8ad937da9c8e', class: "s-social-share-wrapper" }, h("slot", { key: '7ab0a6d03088e0c741c5f432c6c8991db1f0e7b8', name: "widget" }, h("salla-button", { key: '574fc864d8552114ead6061740581d72521fd38d', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'c8456382fec13bf8b9a429ca199780b242d7992e', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
385
385
  }
386
386
  get host() { return getElement(this); }
387
387
  static get watchers() { return {
@@ -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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-B6Lo-Jz2.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 -->
@@ -55,7 +55,7 @@ const SallaSocial = class {
55
55
  }
56
56
  render() {
57
57
  const linksArray = this.getLinksArray();
58
- return (h(Host, { key: 'e7d69dbae46ef54588471875ada751103d14d393' }, h("ul", { key: 'ff4b15127e6664cca17fa7f6f49e4cda25829d74', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
58
+ return (h(Host, { key: 'd084cee5461e8e68ca735b86b6d453fe761280ad' }, h("ul", { key: 'e83912816c1b2f2ec1f00f1991b2ca1afd21ffe5', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
59
59
  .replace(/\{icon\}/g, this.iconsList[link.type])
60
60
  .replace(/\{type\}/g, link.type)
61
61
  .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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-B6Lo-Jz2.js';
5
5
 
6
6
  const sallaTabContentCss = "";
7
7
 
@@ -31,7 +31,7 @@ const SallaTabContent = class {
31
31
  's-tabs-content': true,
32
32
  's-tabs-content-selected': this.isSelected
33
33
  };
34
- return (h("div", { key: 'f5cfa9676bc8314149cb78e103b9ef580c0d7559', class: classes }, h("slot", { key: '1b86591377c09f1acb25cda20024b3af9c6a874d' })));
34
+ return (h("div", { key: '12884a255f05baac9d70e8b0d2144a369fdd3cfc', class: classes }, h("slot", { key: '331d86d51ec576614e69e7190ab3cd9c31ed9117' })));
35
35
  }
36
36
  };
37
37
  SallaTabContent.style = sallaTabContentCss;
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
90
90
  's-tabs-active': this.isSelected,
91
91
  };
92
92
  return [
93
- h("div", { key: 'a9548ed2a74d30e6fcf365dbe26aa5f7fdab2468', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '547edd40aab5843c6035bd3c36a34d9449dc12d3' })),
93
+ h("div", { key: 'd9f961d47da1347b5b5f4677b3a3905f073b7b63', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '056593968bd13d806fa34a481e5ab773e23e8084' })),
94
94
  ];
95
95
  }
96
96
  };
@@ -143,7 +143,7 @@ const SallaTabs = class {
143
143
  }
144
144
  render() {
145
145
  return [
146
- h("div", { key: 'e9054cb114c2bd66940b6afa98d7c7c230353a74', class: "s-tabs" }, h("div", { key: 'd245f64aef9b7fd77c9c51eb1d86ddfd9202e5fb', class: "s-tabs-header" }, h("slot", { key: 'f1b9a982cd746d637db5d514cb691f188af0cb7e', name: "header" })), h("div", { key: '0ba8441707b087a8c4d068b1a72bf10c8efb41cc', class: "s-tabs-content-wrapper" }, h("slot", { key: 'afcee28724a5a9ce263fcc3a38d624a631069945', name: "content" })))
146
+ h("div", { key: '84647185ccebd52494bfff8cf9468a833dfda468', class: "s-tabs" }, h("div", { key: 'bfec0faae20e236920197fc9a518cb3fae7e820e', class: "s-tabs-header" }, h("slot", { key: '51c0297a5c75395e867e7621780fd030253393dc', name: "header" })), h("div", { key: 'b3c155ba7de23b62de2f23d0b3ac4232937f7a57', class: "s-tabs-content-wrapper" }, h("slot", { key: '2d1d90a7bed705c01efb05a8ab1ea5be543d71dc', name: "content" })))
147
147
  ];
148
148
  }
149
149
  get host() { return getElement(this); }
@@ -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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host } from './index-B6Lo-Jz2.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-B6Lo-Jz2.js';
5
5
 
6
6
  const sallaTooltipCss = "/*!twlt*/.s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--color-primary) transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}.block{display:block}.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)}";
7
7
 
@@ -31,7 +31,7 @@ const SallaTooltip = class {
31
31
  }
32
32
  render() {
33
33
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
34
- return (h("div", { key: '84dfb23d4eb2689ff71b65c4a8b24dd36f8cb6ca', class: "s-tooltip-container" }, h("div", { key: '59d3bac320e20f99de1c4bf49531a61962190efc', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
34
+ return (h("div", { key: 'c2172752ccc5634d2223042d359571d4ba4e6816', class: "s-tooltip-container" }, h("div", { key: 'b37b92c725bdad1ff3fc10caedd2fe98b506f5e7', 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
35
  }
36
36
  get el() { return getElement(this); }
37
37
  };
@@ -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-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host } from './index-B6Lo-Jz2.js';
5
5
 
6
6
  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
7
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BLzx0e6P.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-B6Lo-Jz2.js';
5
5
  import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
6
6
  import { B as BellRing } from './bell-ring-D3mWkc-3.js';
7
- import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
7
+ import { C as Cart } from './cart-gFG8By9O.js';
8
8
  import { S as Star } from './star-CeFAfcTv.js';
9
9
  import { C as Cancel } from './cancel-BsLF_HK7.js';
10
10
  import { S as Star$1 } from './star2-D4oPi1Ov.js';
@@ -106,7 +106,7 @@ const SallaUserMenu = class {
106
106
  this.items = {
107
107
  notifications: BellRing,
108
108
  orders: OrderIcon,
109
- pending_orders: PendingOrdersIcon,
109
+ pending_orders: Cart,
110
110
  wishlist: Star,
111
111
  wallet: WalletIcon,
112
112
  loyalty_points: loyaltyProgramIcon,