@salla.sa/twilight-components 2.14.514 → 2.14.516

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 (347) hide show
  1. package/dist/cjs/{filepond-BrMz9lwQ.js → filepond-BVk_qugj.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CXLsx8it.js → filepond-plugin-file-poster-CevD4HdD.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-mSUTf-UR.js → filepond-plugin-file-validate-size-i7np7XCz.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CPCUe4I9.js → filepond-plugin-file-validate-type-Gacna2VA.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-DCJZTAIe.js → filepond-plugin-image-edit-0x2DeM-H.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-B6tPPpp4.js → filepond-plugin-image-exif-orientation-Dmm3eMMZ.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DSdtEzNX.js → filepond-plugin-image-preview-BSb1jOWO.js} +1 -1
  8. package/dist/cjs/{functions-DVR8KL8Z.js → functions-DfrV6G5_.js} +1 -1
  9. package/dist/cjs/{index-B1gojaKP.js → index-B6RWhkkR.js} +6 -2
  10. package/dist/cjs/{index-DbnRXAWJ.js → index-J4xGG6Hq.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 +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +17 -4
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
  48. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  50. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  54. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-shipments.cjs.entry.js +76 -0
  77. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  86. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  87. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-menu.cjs.entry.js +32 -2
  102. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  105. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  106. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  107. package/dist/cjs/{tracked-promise-Co7zKJiC.js → tracked-promise-DfLohMkv.js} +1 -1
  108. package/dist/cjs/twilight.cjs.js +2 -2
  109. package/dist/cjs/{vanilla-picker-eIkf_cyq.js → vanilla-picker-FxKjXhjJ.js} +1 -1
  110. package/dist/collection/collection-manifest.json +1 -0
  111. package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +16 -3
  112. package/dist/collection/components/salla-order-shipments/interfaces.js +1 -0
  113. package/dist/collection/components/salla-order-shipments/salla-order-shipments.css +3 -0
  114. package/dist/collection/components/salla-order-shipments/salla-order-shipments.js +115 -0
  115. package/dist/collection/components/salla-user-menu/salla-user-menu.js +33 -1
  116. package/dist/components/index.js +2 -2
  117. package/dist/components/salla-cart-summary-card.js +16 -3
  118. package/dist/components/salla-order-shipments.d.ts +11 -0
  119. package/dist/components/salla-order-shipments.js +97 -0
  120. package/dist/components/salla-user-menu.js +33 -1
  121. package/dist/esm/{filepond-CuccuSQc.js → filepond-Bk0gHKob.js} +1 -1
  122. package/dist/esm/{filepond-plugin-file-poster--NsZeC2o.js → filepond-plugin-file-poster-YSUKdGOX.js} +1 -1
  123. package/dist/esm/{filepond-plugin-file-validate-size-Bkbx98ju.js → filepond-plugin-file-validate-size-pjLAQAWV.js} +1 -1
  124. package/dist/esm/{filepond-plugin-file-validate-type-DTdnbkr6.js → filepond-plugin-file-validate-type-DrrN5Zs4.js} +1 -1
  125. package/dist/esm/{filepond-plugin-image-edit-Cl4KCy_a.js → filepond-plugin-image-edit-CWWdz9kB.js} +1 -1
  126. package/dist/esm/{filepond-plugin-image-exif-orientation-C8MwhzVz.js → filepond-plugin-image-exif-orientation-gUQtWcgV.js} +1 -1
  127. package/dist/esm/{filepond-plugin-image-preview-DsaHYKNd.js → filepond-plugin-image-preview-D5Nm8BIl.js} +1 -1
  128. package/dist/esm/{functions-MpYGQOQD.js → functions-BWx2LhvF.js} +1 -1
  129. package/dist/esm/{index-Crijf68j.js → index-CDoLIl29.js} +6 -2
  130. package/dist/esm/{index-BzdDNQAg.js → index-CqOF4yoZ.js} +1 -1
  131. package/dist/esm/loader.js +3 -3
  132. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  133. package/dist/esm/salla-accordion_6.entry.js +1 -1
  134. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  135. package/dist/esm/salla-advertisement.entry.js +1 -1
  136. package/dist/esm/salla-alert_2.entry.js +1 -1
  137. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  138. package/dist/esm/salla-apps-icons.entry.js +1 -1
  139. package/dist/esm/salla-badge.entry.js +1 -1
  140. package/dist/esm/salla-basket-gap.entry.js +1 -1
  141. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  142. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  143. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  144. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  145. package/dist/esm/salla-cart-summary-card.entry.js +17 -4
  146. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  147. package/dist/esm/salla-comment-factors.entry.js +1 -1
  148. package/dist/esm/salla-comment-form_8.entry.js +1 -1
  149. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  150. package/dist/esm/salla-contacts.entry.js +1 -1
  151. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  152. package/dist/esm/salla-count-down_2.entry.js +1 -1
  153. package/dist/esm/salla-custom-fields.entry.js +1 -1
  154. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  155. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  156. package/dist/esm/salla-filters-widget.entry.js +1 -1
  157. package/dist/esm/salla-filters.entry.js +1 -1
  158. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  159. package/dist/esm/salla-gifting.entry.js +1 -1
  160. package/dist/esm/salla-hook.entry.js +1 -1
  161. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  162. package/dist/esm/salla-installment.entry.js +1 -1
  163. package/dist/esm/salla-list-tile.entry.js +1 -1
  164. package/dist/esm/salla-localization-modal.entry.js +1 -1
  165. package/dist/esm/salla-login-modal.entry.js +1 -1
  166. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  167. package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
  168. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  169. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  170. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  171. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  172. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  173. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  174. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  175. package/dist/esm/salla-loyalty.entry.js +1 -1
  176. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  177. package/dist/esm/salla-map_2.entry.js +1 -1
  178. package/dist/esm/salla-menu.entry.js +1 -1
  179. package/dist/esm/salla-metadata.entry.js +1 -1
  180. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  181. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  182. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  183. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  184. package/dist/esm/salla-notification-item.entry.js +1 -1
  185. package/dist/esm/salla-notifications.entry.js +1 -1
  186. package/dist/esm/salla-offer-modal.entry.js +1 -1
  187. package/dist/esm/salla-offer.entry.js +1 -1
  188. package/dist/esm/salla-order-branch.entry.js +1 -1
  189. package/dist/esm/salla-order-cancel.entry.js +1 -1
  190. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  191. package/dist/esm/salla-order-details-options.entry.js +1 -1
  192. package/dist/esm/salla-order-details.entry.js +1 -1
  193. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  194. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  195. package/dist/esm/salla-order-edit.entry.js +1 -1
  196. package/dist/esm/salla-order-shipments.entry.js +74 -0
  197. package/dist/esm/salla-order-summary.entry.js +1 -1
  198. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  199. package/dist/esm/salla-orders.entry.js +1 -1
  200. package/dist/esm/salla-payments.entry.js +1 -1
  201. package/dist/esm/salla-placeholder.entry.js +1 -1
  202. package/dist/esm/salla-price-range.entry.js +1 -1
  203. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  204. package/dist/esm/salla-product-card_2.entry.js +1 -1
  205. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  206. package/dist/esm/salla-products-list.entry.js +1 -1
  207. package/dist/esm/salla-quick-order.entry.js +1 -1
  208. package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
  209. package/dist/esm/salla-rating-modal.entry.js +1 -1
  210. package/dist/esm/salla-review-factors-tags.entry.js +1 -1
  211. package/dist/esm/salla-scopes.entry.js +1 -1
  212. package/dist/esm/salla-search.entry.js +1 -1
  213. package/dist/esm/salla-skeleton.entry.js +1 -1
  214. package/dist/esm/salla-slider.entry.js +1 -1
  215. package/dist/esm/salla-social-share.entry.js +1 -1
  216. package/dist/esm/salla-social.entry.js +1 -1
  217. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  218. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  219. package/dist/esm/salla-tooltip.entry.js +1 -1
  220. package/dist/esm/salla-trust-badges.entry.js +1 -1
  221. package/dist/esm/salla-user-menu.entry.js +32 -2
  222. package/dist/esm/salla-user-profile.entry.js +1 -1
  223. package/dist/esm/salla-user-settings.entry.js +1 -1
  224. package/dist/esm/salla-verify.entry.js +1 -1
  225. package/dist/esm/salla-wallet.entry.js +1 -1
  226. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  227. package/dist/esm/{tracked-promise-2_p0LVES.js → tracked-promise-B3rJfj6D.js} +1 -1
  228. package/dist/esm/twilight.js +3 -3
  229. package/dist/esm/{vanilla-picker-kYXU8Uvu.js → vanilla-picker-B0XMZPNF.js} +1 -1
  230. package/dist/twilight/{p-0de6624b.entry.js → p-029acfba.entry.js} +1 -1
  231. package/dist/twilight/{p-76f91b56.entry.js → p-0414245a.entry.js} +1 -1
  232. package/dist/twilight/{p-95c4740b.entry.js → p-073ae9d0.entry.js} +1 -1
  233. package/dist/twilight/{p-455eb768.entry.js → p-08dce1ce.entry.js} +1 -1
  234. package/dist/twilight/{p-5ab98967.entry.js → p-0a441ec3.entry.js} +1 -1
  235. package/dist/twilight/{p-772867ce.entry.js → p-0a6e70de.entry.js} +1 -1
  236. package/dist/twilight/{p-087c9b34.entry.js → p-0b8bc1b8.entry.js} +1 -1
  237. package/dist/twilight/{p-be0c7a2c.entry.js → p-0e143834.entry.js} +1 -1
  238. package/dist/twilight/{p-e1c914a2.entry.js → p-0f54049f.entry.js} +1 -1
  239. package/dist/twilight/{p-aed022fb.entry.js → p-133422b1.entry.js} +1 -1
  240. package/dist/twilight/{p-4ef1d5a2.entry.js → p-1351493b.entry.js} +1 -1
  241. package/dist/twilight/{p-1e488c9d.entry.js → p-1505d5c0.entry.js} +1 -1
  242. package/dist/twilight/{p-1734962f.entry.js → p-153729e1.entry.js} +1 -1
  243. package/dist/twilight/{p-b4dc0e25.entry.js → p-185da5d3.entry.js} +1 -1
  244. package/dist/twilight/{p-3c47611b.entry.js → p-1a40876f.entry.js} +1 -1
  245. package/dist/twilight/{p-3aa8cb71.entry.js → p-1cac4e8c.entry.js} +1 -1
  246. package/dist/twilight/{p-63689f46.entry.js → p-22ac4488.entry.js} +1 -1
  247. package/dist/twilight/{p-21baa6de.entry.js → p-295e29ba.entry.js} +1 -1
  248. package/dist/twilight/{p-d3ecdf0c.entry.js → p-2a5baa1c.entry.js} +1 -1
  249. package/dist/twilight/{p-21522361.entry.js → p-2d97e204.entry.js} +1 -1
  250. package/dist/twilight/{p-200a53c6.entry.js → p-2df8a90f.entry.js} +1 -1
  251. package/dist/twilight/{p-efbfe361.entry.js → p-2e0c4aba.entry.js} +1 -1
  252. package/dist/twilight/{p-a62c906d.entry.js → p-3081cb55.entry.js} +1 -1
  253. package/dist/twilight/{p-8370fbc8.entry.js → p-377578be.entry.js} +1 -1
  254. package/dist/twilight/{p-70bec3a4.entry.js → p-385698a7.entry.js} +1 -1
  255. package/dist/twilight/{p-8ae95976.entry.js → p-39261863.entry.js} +1 -1
  256. package/dist/twilight/{p-f07f0b62.entry.js → p-39ed61d1.entry.js} +1 -1
  257. package/dist/twilight/{p-a9e09e6d.entry.js → p-3ab079ee.entry.js} +1 -1
  258. package/dist/twilight/{p-a9438d40.entry.js → p-3ab2c131.entry.js} +1 -1
  259. package/dist/twilight/{p-3c8cc7b5.entry.js → p-3b0dcbcb.entry.js} +1 -1
  260. package/dist/twilight/{p-e50a4840.entry.js → p-3c77ac19.entry.js} +1 -1
  261. package/dist/twilight/{p-bfcbd8fd.entry.js → p-43cdcb03.entry.js} +1 -1
  262. package/dist/twilight/{p-705c5caf.entry.js → p-4acb81b8.entry.js} +1 -1
  263. package/dist/twilight/{p-5050358e.entry.js → p-4d725c13.entry.js} +1 -1
  264. package/dist/twilight/{p-e48ec124.entry.js → p-515699ab.entry.js} +1 -1
  265. package/dist/twilight/{p-1f9d9730.entry.js → p-58f8109b.entry.js} +1 -1
  266. package/dist/twilight/{p-559f69c1.entry.js → p-5aa34e28.entry.js} +1 -1
  267. package/dist/twilight/{p-76089609.entry.js → p-5b75d7a7.entry.js} +1 -1
  268. package/dist/twilight/p-5be1c192.entry.js +4 -0
  269. package/dist/twilight/{p-696435b9.entry.js → p-5d44bc7c.entry.js} +1 -1
  270. package/dist/twilight/{p-2240ca58.entry.js → p-624897fa.entry.js} +1 -1
  271. package/dist/twilight/{p-d359fa2d.entry.js → p-6af0d2ca.entry.js} +1 -1
  272. package/dist/twilight/{p-32d45913.entry.js → p-6b70c316.entry.js} +1 -1
  273. package/dist/twilight/{p-49c75e82.entry.js → p-772aed9b.entry.js} +1 -1
  274. package/dist/twilight/{p-e4dc59db.entry.js → p-7cd4f855.entry.js} +1 -1
  275. package/dist/twilight/{p-4dcd11f6.entry.js → p-7ef7e64b.entry.js} +1 -1
  276. package/dist/twilight/{p-6a205626.entry.js → p-852fd338.entry.js} +1 -1
  277. package/dist/twilight/{p-13f0e9a6.entry.js → p-86678003.entry.js} +1 -1
  278. package/dist/twilight/{p-4f956c6f.entry.js → p-8cb30cca.entry.js} +1 -1
  279. package/dist/twilight/{p-ded95666.entry.js → p-917e46be.entry.js} +1 -1
  280. package/dist/twilight/{p-902e9028.entry.js → p-938afc60.entry.js} +1 -1
  281. package/dist/twilight/{p-6eca5aed.entry.js → p-984013c3.entry.js} +1 -1
  282. package/dist/twilight/{p-feadc0c9.entry.js → p-98ec6e04.entry.js} +1 -1
  283. package/dist/twilight/{p-4349783f.entry.js → p-9c63ee4e.entry.js} +1 -1
  284. package/dist/twilight/{p-CyTaLJo3.js → p-B2F0YSfq.js} +1 -1
  285. package/dist/twilight/p-BN-W7MPg.js +4 -0
  286. package/dist/twilight/{p-C36yOeFI.js → p-BRjoSniA.js} +1 -1
  287. package/dist/twilight/{p-C2FQvIq0.js → p-BqtdPtV1.js} +1 -1
  288. package/dist/twilight/{p-Bjl1PEUS.js → p-C2UWOjWB.js} +1 -1
  289. package/dist/twilight/{p-Crijf68j.js → p-CDoLIl29.js} +2 -2
  290. package/dist/twilight/{p-D97pUIlk.js → p-CMHTSC6o.js} +1 -1
  291. package/dist/twilight/{p-D-_uPomU.js → p-CUPXifBZ.js} +1 -1
  292. package/dist/twilight/{p-CdQOKISG.js → p-CVw6aBvl.js} +1 -1
  293. package/dist/twilight/{p-Ba2rQmJW.js → p-DMLBy1NO.js} +1 -1
  294. package/dist/twilight/{p-88e4d404.entry.js → p-a4469aa0.entry.js} +1 -1
  295. package/dist/twilight/{p-f31cac68.entry.js → p-a4a2465c.entry.js} +1 -1
  296. package/dist/twilight/p-ac0254de.entry.js +4 -0
  297. package/dist/twilight/{p-ad2dff14.entry.js → p-ac428bc4.entry.js} +1 -1
  298. package/dist/twilight/{p-8e3ea4e7.entry.js → p-ac9a1a33.entry.js} +1 -1
  299. package/dist/twilight/{p-dac7d5b1.entry.js → p-ad3ae322.entry.js} +1 -1
  300. package/dist/twilight/{p-51bee591.entry.js → p-b3662c2a.entry.js} +1 -1
  301. package/dist/twilight/{p-926db077.entry.js → p-b3cabdb3.entry.js} +1 -1
  302. package/dist/twilight/{p-720034f2.entry.js → p-b578a997.entry.js} +1 -1
  303. package/dist/twilight/{p-88d2a8aa.entry.js → p-b66fe08b.entry.js} +1 -1
  304. package/dist/twilight/{p-7d86d46a.entry.js → p-bafeade1.entry.js} +1 -1
  305. package/dist/twilight/{p-29e299b8.entry.js → p-bcd0be09.entry.js} +1 -1
  306. package/dist/twilight/{p-5bd9401a.entry.js → p-bcf9d2a2.entry.js} +1 -1
  307. package/dist/twilight/{p-3356808f.entry.js → p-bd8d866d.entry.js} +1 -1
  308. package/dist/twilight/{p-a7656ecb.entry.js → p-c0bf2216.entry.js} +1 -1
  309. package/dist/twilight/{p-6ae9fc35.entry.js → p-c37406c2.entry.js} +1 -1
  310. package/dist/twilight/{p-fcbf208b.entry.js → p-c7ae5ce3.entry.js} +1 -1
  311. package/dist/twilight/{p-f4050df2.entry.js → p-cf63495e.entry.js} +1 -1
  312. package/dist/twilight/{p-4c30d956.entry.js → p-d222cefc.entry.js} +1 -1
  313. package/dist/twilight/{p-b1c4b976.entry.js → p-d250c573.entry.js} +1 -1
  314. package/dist/twilight/{p-89691a0a.entry.js → p-d279cb22.entry.js} +1 -1
  315. package/dist/twilight/{p-5da7e2ad.entry.js → p-d2906cde.entry.js} +1 -1
  316. package/dist/twilight/{p-0935d707.entry.js → p-d2e2db87.entry.js} +1 -1
  317. package/dist/twilight/{p-3c885439.entry.js → p-d345c7b2.entry.js} +1 -1
  318. package/dist/twilight/{p-57f9e1e1.entry.js → p-d37ceff0.entry.js} +1 -1
  319. package/dist/twilight/{p-573aafb0.entry.js → p-d58195a2.entry.js} +1 -1
  320. package/dist/twilight/{p-ef990719.entry.js → p-d6ba436b.entry.js} +1 -1
  321. package/dist/twilight/{p-b7cef4bd.entry.js → p-d70f3b34.entry.js} +1 -1
  322. package/dist/twilight/{p-2012b777.entry.js → p-dc1adf40.entry.js} +1 -1
  323. package/dist/twilight/p-e4be3123.entry.js +4 -0
  324. package/dist/twilight/{p-e5063b7f.entry.js → p-e81fcaf5.entry.js} +1 -1
  325. package/dist/twilight/{p-d6ee8aec.entry.js → p-ec3aedf8.entry.js} +1 -1
  326. package/dist/twilight/{p-32774ff0.entry.js → p-f2011a00.entry.js} +1 -1
  327. package/dist/twilight/{p-7fa23855.entry.js → p-f47a06bf.entry.js} +1 -1
  328. package/dist/twilight/{p-60e74f7f.entry.js → p-f7e080d7.entry.js} +1 -1
  329. package/dist/twilight/{p-ce2cef62.entry.js → p-f8bb7a1b.entry.js} +1 -1
  330. package/dist/twilight/p-f9ec6fd3.entry.js +4 -0
  331. package/dist/twilight/{p-eeccd9c0.entry.js → p-fcf42564.entry.js} +1 -1
  332. package/dist/twilight/{p-41387dee.entry.js → p-fd4f51b0.entry.js} +1 -1
  333. package/dist/twilight/{p-1a2b7660.entry.js → p-fdbedc30.entry.js} +1 -1
  334. package/dist/twilight/{p-2d6cb58e.entry.js → p-ff8b92fe.entry.js} +1 -1
  335. package/dist/twilight/{p-CLi67lW6.js → p-gBZJcPA-.js} +1 -1
  336. package/dist/twilight/{p-D35nGmrk.js → p-hRifplWF.js} +1 -1
  337. package/dist/twilight/twilight.esm.js +1 -1
  338. package/dist/types/components/salla-cart-summary-card/salla-cart-summary-card.d.ts +1 -0
  339. package/dist/types/components/salla-order-shipments/interfaces.d.ts +15 -0
  340. package/dist/types/components/salla-order-shipments/salla-order-shipments.d.ts +20 -0
  341. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +4 -0
  342. package/dist/types/components.d.ts +45 -0
  343. package/package.json +5 -5
  344. package/dist/twilight/p-1fd7917d.entry.js +0 -4
  345. package/dist/twilight/p-422798b3.entry.js +0 -4
  346. package/dist/twilight/p-D5YJIW7-.js +0 -4
  347. package/dist/twilight/p-b3848ba3.entry.js +0 -4
@@ -2074,6 +2074,18 @@ export namespace Components {
2074
2074
  */
2075
2075
  "open": (payload: { orderOptions: any[]; basePrice?: number; paymentMode?: "default" | "apple-pay"; onSubmit?: (orderOptions: OrderOptionEntry[], total: number) => void; }) => Promise<{ orderOptions: OrderOptionEntry[]; }>;
2076
2076
  }
2077
+ /**
2078
+ * @salla /ui-components
2079
+ * The `salla-order-shipments` component renders a per-shipment tracking breakdown
2080
+ * on the thank-you page for orders fulfilled as split shipments (2+ shipments).
2081
+ * It renders nothing for single-shipment orders.
2082
+ */
2083
+ interface SallaOrderShipments {
2084
+ /**
2085
+ * Override the order id; defaults to the current page's order id.
2086
+ */
2087
+ "orderId"?: string | number;
2088
+ }
2077
2089
  interface SallaOrderSummary {
2078
2090
  /**
2079
2091
  * The order ID to fetch items from
@@ -4476,6 +4488,18 @@ declare global {
4476
4488
  prototype: HTMLSallaOrderOptionsModalElement;
4477
4489
  new (): HTMLSallaOrderOptionsModalElement;
4478
4490
  };
4491
+ /**
4492
+ * @salla /ui-components
4493
+ * The `salla-order-shipments` component renders a per-shipment tracking breakdown
4494
+ * on the thank-you page for orders fulfilled as split shipments (2+ shipments).
4495
+ * It renders nothing for single-shipment orders.
4496
+ */
4497
+ interface HTMLSallaOrderShipmentsElement extends Components.SallaOrderShipments, HTMLStencilElement {
4498
+ }
4499
+ var HTMLSallaOrderShipmentsElement: {
4500
+ prototype: HTMLSallaOrderShipmentsElement;
4501
+ new (): HTMLSallaOrderShipmentsElement;
4502
+ };
4479
4503
  interface HTMLSallaOrderSummaryElement extends Components.SallaOrderSummary, HTMLStencilElement {
4480
4504
  }
4481
4505
  var HTMLSallaOrderSummaryElement: {
@@ -5045,6 +5069,7 @@ declare global {
5045
5069
  "salla-order-edit-item": HTMLSallaOrderEditItemElement;
5046
5070
  "salla-order-edit-product-card": HTMLSallaOrderEditProductCardElement;
5047
5071
  "salla-order-options-modal": HTMLSallaOrderOptionsModalElement;
5072
+ "salla-order-shipments": HTMLSallaOrderShipmentsElement;
5048
5073
  "salla-order-summary": HTMLSallaOrderSummaryElement;
5049
5074
  "salla-order-totals-card": HTMLSallaOrderTotalsCardElement;
5050
5075
  "salla-orders": HTMLSallaOrdersElement;
@@ -7045,6 +7070,18 @@ declare namespace LocalJSX {
7045
7070
  */
7046
7071
  interface SallaOrderOptionsModal {
7047
7072
  }
7073
+ /**
7074
+ * @salla /ui-components
7075
+ * The `salla-order-shipments` component renders a per-shipment tracking breakdown
7076
+ * on the thank-you page for orders fulfilled as split shipments (2+ shipments).
7077
+ * It renders nothing for single-shipment orders.
7078
+ */
7079
+ interface SallaOrderShipments {
7080
+ /**
7081
+ * Override the order id; defaults to the current page's order id.
7082
+ */
7083
+ "orderId"?: string | number;
7084
+ }
7048
7085
  interface SallaOrderSummary {
7049
7086
  /**
7050
7087
  * The order ID to fetch items from
@@ -8312,6 +8349,7 @@ declare namespace LocalJSX {
8312
8349
  "salla-order-edit-item": SallaOrderEditItem;
8313
8350
  "salla-order-edit-product-card": SallaOrderEditProductCard;
8314
8351
  "salla-order-options-modal": SallaOrderOptionsModal;
8352
+ "salla-order-shipments": SallaOrderShipments;
8315
8353
  "salla-order-summary": SallaOrderSummary;
8316
8354
  "salla-order-totals-card": SallaOrderTotalsCard;
8317
8355
  "salla-orders": SallaOrders;
@@ -8565,6 +8603,13 @@ declare module "@stencil/core" {
8565
8603
  * // orderOptions = [{ id, value }, ...] — ready to send as `order_options`.
8566
8604
  */
8567
8605
  "salla-order-options-modal": LocalJSX.SallaOrderOptionsModal & JSXBase.HTMLAttributes<HTMLSallaOrderOptionsModalElement>;
8606
+ /**
8607
+ * @salla /ui-components
8608
+ * The `salla-order-shipments` component renders a per-shipment tracking breakdown
8609
+ * on the thank-you page for orders fulfilled as split shipments (2+ shipments).
8610
+ * It renders nothing for single-shipment orders.
8611
+ */
8612
+ "salla-order-shipments": LocalJSX.SallaOrderShipments & JSXBase.HTMLAttributes<HTMLSallaOrderShipmentsElement>;
8568
8613
  "salla-order-summary": LocalJSX.SallaOrderSummary & JSXBase.HTMLAttributes<HTMLSallaOrderSummaryElement>;
8569
8614
  "salla-order-totals-card": LocalJSX.SallaOrderTotalsCard & JSXBase.HTMLAttributes<HTMLSallaOrderTotalsCardElement>;
8570
8615
  "salla-orders": LocalJSX.SallaOrders & JSXBase.HTMLAttributes<HTMLSallaOrdersElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.14.514",
3
+ "version": "2.14.516",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -81,9 +81,9 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@googlemaps/markerclusterer": "2.6.2",
84
- "@salla.sa/applepay": "2.14.514",
85
- "@salla.sa/twilight": "2.14.514",
86
- "@salla.sa/twilight-tailwind-theme": "2.14.514",
84
+ "@salla.sa/applepay": "2.14.516",
85
+ "@salla.sa/twilight": "2.14.516",
86
+ "@salla.sa/twilight-tailwind-theme": "2.14.516",
87
87
  "@salla.sa/ui-address-autocomplete-widget": "1.2.1",
88
88
  "@salla.sa/ui-google-map-render": "1.2.1",
89
89
  "@types/node": "^20.4.8",
@@ -104,5 +104,5 @@
104
104
  "vanilla-lazyload": "^17.8.5",
105
105
  "vanilla-picker": "^2.12.2"
106
106
  },
107
- "gitHead": "8b203240030ac04160ff1f776c7bb682ed5c106d"
107
+ "gitHead": "00bec9d26b4954d75099534933f3d19c47a3c11f"
108
108
  }
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as t,H as e,a as i}from"./p-Crijf68j.js";import{A as l}from"./p-DCZbpt2a.js";import{B as a}from"./p-D3mWkc-3.js";import{P as o}from"./p-DY4LZmNP.js";import{S as n}from"./p-CeFAfcTv.js";import{S as r}from"./p-8Tsmrwno.js";import{S as c}from"./p-D4oPi1Ov.js";import{S as h}from"./p-CXRKXFgT.js";var m='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>user-circle</title>\n<path d="M16 22.964c-4.525 0-8.447 1.713-9.993 4.365-0.371 0.636-0.156 1.452 0.48 1.823s1.453 0.156 1.823-0.48c0.855-1.465 3.624-3.041 7.689-3.041s6.835 1.576 7.689 3.041c0.249 0.424 0.696 0.661 1.155 0.661 0.228 0 0.459-0.059 0.669-0.181 0.637-0.371 0.852-1.187 0.48-1.823-1.545-2.652-5.467-4.365-9.992-4.365zM22.667 13.631c0-3.676-2.991-6.667-6.667-6.667s-6.667 2.991-6.667 6.667 2.991 6.667 6.667 6.667 6.667-2.992 6.667-6.667zM12 13.631c0-2.205 1.795-4 4-4s4 1.795 4 4-1.795 4-4 4-4-1.795-4-4zM16 0.297c-8.823 0-16 7.177-16 16 0 2.941 0.821 5.831 2.373 8.357 0.252 0.411 0.689 0.636 1.137 0.636 0.239 0 0.479-0.064 0.696-0.197 0.628-0.385 0.824-1.207 0.439-1.833-1.295-2.108-1.979-4.516-1.979-6.963 0-7.352 5.981-13.333 13.333-13.333s13.333 5.981 13.333 13.333c0 2.448-0.684 4.856-1.979 6.961-0.385 0.628-0.189 1.448 0.437 1.835 0.627 0.384 1.448 0.189 1.835-0.437 1.553-2.527 2.373-5.416 2.373-8.359 0-8.823-7.177-16-16-16z"></path>\n</svg>\n';const u=class{constructor(t){s(this,t),this.accountLoading=!1,this.opened=!1,this.notifications=salla.lang.get("common.titles.notifications"),this.orders=salla.lang.get("common.titles.orders"),this.pending_orders=salla.lang.get("common.titles.pending_orders"),this.wishlist=salla.lang.get("common.titles.wishlist"),this.profile=salla.lang.get("common.titles.profile"),this.rating=salla.lang.get("common.titles.rating"),this.wallet=salla.lang.get("common.titles.wallet"),this.settings=salla.lang.get("common.titles.settings"),this.loyalty_points=salla.lang.get("pages.loyalty_program.loyalty_points"),this.logout=salla.lang.get("blocks.header.logout"),this.hello=salla.lang.get("pages.checkout.hello"),this.first_name=salla.storage.get("user.first_name")||"",this.last_name=salla.storage.get("user.last_name")||"",this.avatar=salla.storage.get("user.avatar")||salla.url.cdn("images/avatar.png",40,40),this.badges={notifications:salla.helpers.number(salla.storage.get("user.notifications")||0),pending_orders:salla.helpers.number(salla.storage.get("user.pending_orders")||0)},this.sallaAccountEnabled=!1,this.hasBadges=Number(salla.storage.get("user.pending_orders"))>0||Number(salla.storage.get("user.notifications"))>0,this.inline=!1,this.avatarOnly=!1,this.showHeader=!1,this.relativeDropdown=!1,this.showTrigger=!1,this.onClickOutside=()=>{this.opened=!1},this.OrderUpdate=0,this.accountPrefixedKeys=["orders","pending_orders","wallet","notifications","rating","profile","wishlist","settings"],this.items={notifications:a,orders:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>box-bankers</title>\n<path d="M28 1.333h-24c-2.205 0-4 1.795-4 4v5.333c0 0.736 0.597 1.333 1.333 1.333v14.667c0 2.205 1.795 4 4 4h21.333c2.205 0 4-1.795 4-4v-14.667c0.736 0 1.333-0.597 1.333-1.333v-5.333c0-2.205-1.795-4-4-4zM28 26.667c0 0.735-0.599 1.333-1.333 1.333h-21.333c-0.735 0-1.333-0.599-1.333-1.333v-14.667h5.333v2.667c0 1.471 1.196 2.667 2.667 2.667h8c1.471 0 2.667-1.196 2.667-2.667v-2.667h5.333zM12 14.667v-2.667h8v2.667zM29.333 9.333h-26.667v-4c0-0.735 0.599-1.333 1.333-1.333h24c0.735 0 1.333 0.599 1.333 1.333z"></path>\n</svg>\n',pending_orders:o,wishlist:n,wallet:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>wallet</title>\n<path d="M28 6.667h-24c-0.736 0-1.333-0.597-1.333-1.333s0.597-1.333 1.333-1.333h24c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-24c-2.204 0-3.999 1.793-4 3.997v18.669c0 3.676 2.991 6.667 6.667 6.667h21.333c2.205 0 4-1.795 4-4v-16c0-2.205-1.795-4-4-4zM29.333 26.667c0 0.736-0.597 1.333-1.333 1.333h-21.333c-2.205 0-4-1.795-4-4v-14.895c0.416 0.147 0.865 0.228 1.333 0.228h24c0.736 0 1.333 0.597 1.333 1.333zM22.667 14.667c-2.205 0-4 1.795-4 4s1.795 4 4 4 4-1.795 4-4-1.795-4-4-4zM22.667 20c-0.736 0-1.333-0.597-1.333-1.333s0.597-1.333 1.333-1.333 1.333 0.597 1.333 1.333-0.597 1.333-1.333 1.333z"></path>\n</svg>\n',loyalty_points:h,profile:m}}async componentWillLoad(){await salla.onReady(),await salla.lang.onLoaded(),this.loadTranslations(),this.initiate(),Salla.event.on("api::token.injected",(s=>this.profileUrl=this.buildProfileUrl(s))),this.sallaAccountEnabled=Salla.config.get("store.features")?.includes("salla-account"),this.items=this.sallaAccountEnabled?{...this.items,settings:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>settings</title>\n<path d="M29.717 19.037l-1.817-1.499c0.067-0.512 0.1-1.028 0.1-1.539s-0.033-1.027-0.1-1.54l1.817-1.499c1.177-0.969 1.479-2.633 0.716-3.956l-1.159-2.009c-0.761-1.324-2.349-1.895-3.784-1.359l-2.212 0.829c-0.817-0.627-1.704-1.139-2.649-1.535l-0.388-2.332c-0.251-1.507-1.54-2.6-3.067-2.6h-2.319c-1.525 0-2.815 1.093-3.065 2.6l-0.388 2.332c-0.945 0.396-1.833 0.909-2.649 1.535l-2.212-0.829c-1.428-0.533-3.021 0.036-3.783 1.359l-1.16 2.011c-0.763 1.323-0.46 2.985 0.716 3.955l1.817 1.499c-0.067 0.513-0.1 1.029-0.1 1.54s0.033 1.027 0.1 1.539l-1.819 1.5c-1.176 0.971-1.476 2.635-0.715 3.955l1.159 2.011c0.763 1.324 2.356 1.899 3.784 1.36l2.212-0.831c0.816 0.625 1.703 1.139 2.649 1.535l0.388 2.332c0.251 1.507 1.54 2.6 3.067 2.6h2.319c1.527 0 2.816-1.093 3.065-2.6l0.389-2.332c0.947-0.396 1.833-0.909 2.649-1.535l2.212 0.831c1.432 0.539 3.023-0.035 3.783-1.36l1.16-2.011c0.76-1.32 0.459-2.984-0.717-3.956zM28.123 21.663l-1.16 2.011c-0.108 0.188-0.336 0.267-0.536 0.193l-2.931-1.1c-0.459-0.173-0.979-0.079-1.349 0.248-0.923 0.811-1.979 1.423-3.139 1.819-0.464 0.157-0.804 0.559-0.885 1.043l-0.515 3.087c-0.033 0.215-0.216 0.371-0.433 0.371h-2.319c-0.217 0-0.4-0.156-0.436-0.371l-0.513-3.087c-0.080-0.484-0.42-0.884-0.885-1.043-1.16-0.396-2.216-1.008-3.139-1.819-0.248-0.217-0.561-0.332-0.88-0.332-0.157 0-0.316 0.028-0.469 0.084l-2.931 1.1c-0.199 0.079-0.428-0.004-0.537-0.193l-1.159-2.011c-0.109-0.191-0.067-0.428 0.101-0.568l2.409-1.985c0.379-0.312 0.555-0.807 0.46-1.288-0.119-0.605-0.179-1.219-0.179-1.821 0-0.604 0.060-1.217 0.181-1.823 0.095-0.481-0.081-0.976-0.46-1.288l-2.409-1.985c-0.168-0.139-0.211-0.376-0.101-0.567l1.16-2.011c0.107-0.188 0.332-0.268 0.536-0.193l2.931 1.1c0.459 0.172 0.979 0.079 1.348-0.247 0.924-0.812 1.98-1.424 3.139-1.817 0.465-0.159 0.805-0.559 0.885-1.044l0.513-3.088c0.036-0.215 0.219-0.371 0.436-0.371h2.319c0.217 0 0.4 0.156 0.436 0.371l0.515 3.088c0.081 0.484 0.42 0.885 0.885 1.044 1.157 0.393 2.213 1.005 3.139 1.817 0.371 0.325 0.889 0.42 1.349 0.247l2.929-1.099c0.203-0.076 0.428 0.005 0.537 0.193l1.159 2.009c0.109 0.191 0.067 0.428-0.101 0.567l-2.409 1.985c-0.379 0.312-0.555 0.807-0.46 1.288 0.119 0.605 0.179 1.219 0.179 1.823 0 0.603-0.060 1.216-0.181 1.821-0.095 0.48 0.081 0.975 0.46 1.288l2.408 1.984c0.169 0.141 0.212 0.379 0.103 0.569zM16.016 10.667c-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333 5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM16.016 18.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>\n</svg>\n'}:this.items,this.host.hasAttribute("with-rating")&&(this.items.rating=c),this.items.logout='\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>send-out</title>\n<path d="M16 26.667h-9.333c-0.736 0-1.333-0.597-1.333-1.333v-18.667c0-0.736 0.597-1.333 1.333-1.333h9.333c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333h-9.333c-2.205 0-4 1.795-4 4v18.667c0 2.205 1.795 4 4 4h9.333c0.737 0 1.333-0.596 1.333-1.333s-0.596-1.333-1.333-1.333zM29.231 15.491c-0.068-0.164-0.167-0.312-0.289-0.436l-5.332-5.332c-0.521-0.521-1.364-0.521-1.885 0s-0.521 1.364 0 1.885l3.057 3.059h-12.781c-0.737 0-1.333 0.596-1.333 1.333s0.596 1.333 1.333 1.333h12.781l-3.057 3.057c-0.521 0.521-0.521 1.364 0 1.885 0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l5.332-5.332c0.124-0.123 0.221-0.271 0.289-0.435 0.135-0.325 0.135-0.693 0-1.019z"></path>\n</svg>\n';let s=Salla.storage.get("token");s||(s=""),this.profileUrl=this.buildProfileUrl(s);const t=this.host.querySelector('[slot="trigger"]');this.triggerSlot='<div class="s-user-menu-trigger"><div class="s-user-menu-avatar-wrap"><img class="s-user-menu-trigger-avatar" src="{avatar}" alt="{first_name}{last_name}" /></div><div class="s-user-menu-trigger-content"><span class="s-user-menu-trigger-hello">{hello}</span><p class="s-user-menu-trigger-name">{first_name} {last_name}</p></div> <i class="s-user-menu-trigger-icon">{icon}</i></div>',t&&(this.triggerSlot=t.innerHTML,t.innerHTML=this.replaceParams(t.innerHTML))}loadTranslations(){this.notifications=Salla.lang.get("common.titles.notifications"),this.orders=Salla.lang.get("common.titles.orders"),this.pending_orders=Salla.lang.get("common.titles.pending_orders"),this.wishlist=Salla.lang.get("common.titles.wishlist"),this.profile=Salla.lang.get("common.titles.profile"),this.hello=Salla.lang.get("pages.checkout.hello"),this.rating=Salla.lang.get("common.titles.rating"),this.wallet=Salla.lang.get("common.titles.wallet"),this.settings=Salla.lang.get("common.titles.settings"),this.loyalty_points=Salla.lang.get("pages.loyalty_program.loyalty_points"),this.logout=Salla.lang.get("blocks.header.logout")}initiate(){return Salla.config.isGuest()?this.autoMountLoginModal():(this.is_loggedIn=!0,!this.inline&&(salla.url.is_page("customer.notifications")||salla.url.is_page("customer.orders.index.pending")||salla.url.is_page("customer.profile")||(Date.now()-(salla.storage.get("user.fetched_at")||0))/1e3/60>30)?this.fetchFreshProfile():void salla.event.on("profile::info.fetched",(s=>{this.updateProfileState(s)})))}autoMountLoginModal(){this.showTrigger&&(document.querySelector("salla-login-modal")||Salla.hooks.mount("body:end",document.createElement("salla-login-modal")))}fetchFreshProfile(){salla.api.token?salla.profile.api.info().then((s=>{this.updateProfileState(s)})):salla.log("trying to fetchFreshProfile before injected the token!!")}updateProfileState(s){this.badges={notifications:salla.helpers.number(s.data.notifications||0),pending_orders:salla.helpers.number(s.data.pending_orders||0)},this.hasBadges=Number(s.data.pending_orders)>0||Number(s.data.notifications)>0,this.first_name=s.data.first_name,this.last_name=s.data.last_name,this.avatar=s.data.avatar||salla.url.cdn("images/avatar.png",40,40)}async open(s){this.opened=!this.opened,s.stopPropagation(),this.opened&&window.addEventListener("click",this.onClickOutside)}menuItemClicked(s,t){"logout"===t&&(s.preventDefault(),salla.auth.logout("sall-user-menu"))}replaceParams(s){return s.replace(/\{hello\}/g,this.hello).replace(/\{first_name\}/g,this.first_name).replace(/\{last_name\}/g,this.last_name).replace(/\{avatar\}/g,this.avatar).replace(/\{icon\}/g,l)}getTheHeader(){return t("div",{class:{"s-user-menu-trigger-slot":!0,"s-user-menu-red-dot":this.hasBadges,"s-user-menu-trigger-avatar-only":this.avatarOnly},id:"trigger-slot",onClick:s=>this.open(s),onKeyUp:s=>this.open(s),innerHTML:this.replaceParams(this.triggerSlot)})}getItemAnchorLinkAttrs(s){if("profile"===s&&this.profileUrl&&this.sallaAccountEnabled)return{href:this.profileUrl,target:"_blank",rel:"noopener noreferrer"};const t="loyalty_points"===s?"loyalty":s,e=this.accountPrefixedKeys.includes(t)?`account/${t}`:t;return{href:Salla.url.get(e)}}getMenuItem([s,e],i){if(("wallet"!==s||window.can_access_wallet)&&("loyalty_points"!==s||Salla.config.get("store.features").includes("loyalty-system")))return t("li",{class:{"s-user-menu-dropdown-item":!0,"s-user-menu-dropdown-item-logout":i+1===Object.entries(this.items).length}},t("a",{...this.getItemAnchorLinkAttrs(s),class:"s-user-menu-dropdown-item-link",onClick:t=>this.menuItemClicked(t,s)},t("i",{class:"s-user-menu-dropdown-item-prefix",innerHTML:e}),t("span",{class:"s-user-menu-dropdown-item-title"},this[s]),["٠","0",void 0].includes(this.badges[s])?"":t("span",{class:"s-user-menu-dropdown-item-badge"},this.badges[s])))}componentShouldUpdate(){this.opened||window.removeEventListener("click",this.onClickOutside)}render(){return t(e,null,this.is_loggedIn?this.inline?t("ul",{class:"s-user-menu-inline"},Object.entries(this.items).map(((s,t)=>this.getMenuItem(s,t)))):t("div",{class:{"s-user-menu-wrapper":!0,"s-user-menu-relative-dropdown":this.relativeDropdown}},this.getTheHeader(),t("div",{class:{"s-user-menu-toggler":!0,opened:this.opened}},t("div",{class:"s-user-menu-dropdown",onClick:s=>s.stopPropagation(),onKeyUp:s=>s.stopPropagation()},this.showHeader?t("div",{class:"s-user-menu-dropdown-header"},t("img",{src:this.avatar,alt:`${this.first_name} ${this.last_name}`}),t("div",{class:"s-user-menu-dropdown-header-content"},t("span",null,this.hello),t("p",null,this.first_name," ",this.last_name)),t("button",{type:"button",class:"s-user-menu-dropdown-header-close",innerHTML:r,onClick:()=>{this.opened=!1}})):"",t("ul",{class:"s-user-menu-dropdown-list"},Object.entries(this.items).map(((s,t)=>this.getMenuItem(s,t))))))):t("slot",{name:"login-btn"},t("button",{type:"button",class:"s-user-menu-login-btn",onClick:()=>salla.event.dispatch("login::open"),innerHTML:m})))}async componentDidLoad(){await Salla.hooks.registerComponent("salla-user-menu",this),document.lazyLoadInstance?.update(this.host.querySelectorAll(".lazy"))}buildProfileUrl(s){return`${Salla.config.get("account.url","https://accounts.salla.com")}/${salla.config.get("user.language_code")}/user?store=${Salla.config.get("store.id")}&info=${encodeURIComponent(s)}`}get host(){return i(this)}};u.style="";export{u as salla_user_menu}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as t,H as e,a as i}from"./p-Crijf68j.js";const a=class{constructor(t){s(this,t),this.isVisible=!0,this.isMobile=!1,this.mobileBreakpoint=768,this.mobileQueryHandler=s=>this.isMobile=s.matches,this.openRequestedHandler=()=>this.open(),this.selectedConsent="rejected"}async componentWillLoad(){await Salla.onReady(),await Salla.lang.onLoaded(),this.loadTranslations(),this.selectedConsent=this.getStoredConsentChoice(),Salla.event.on("salla-cookies-bar::open",this.openRequestedHandler),this.unregisterAfterFetchMenuItemsHook=Salla.hooks.registerHook("salla-menu","afterFetchMenuItems",(s=>this.appendCookiesSettingsLink(s))),Salla.storage.get("cookies-consent")&&(this.isVisible=!1)}loadTranslations(){this.messageLabel=Salla.lang.get("common.cookies.message"),this.linkLabel=Salla.lang.get("common.cookies.link"),this.acceptLabel=Salla.lang.get("common.cookies.accept"),this.rejectLabel=Salla.lang.get("common.cookies.reject")}componentDidLoad(){this.mobileQuery=window.matchMedia(`(max-width: ${this.mobileBreakpoint-1}px)`),this.isMobile=this.mobileQuery.matches,this.mobileQuery.addEventListener("change",this.mobileQueryHandler)}disconnectedCallback(){this.mobileQuery?.removeEventListener("change",this.mobileQueryHandler),Salla.event.off("salla-cookies-bar::open",this.openRequestedHandler),this.unregisterAfterFetchMenuItemsHook?.(),this.unregisterAfterFetchMenuItemsHook=void 0}async accept(){return this.selectedConsent="accepted",this.isVisible=!1,Salla.event.emit("salla-cookies-bar::accepted"),Salla.storage.set("cookies-consent","accepted"),this.host}async reject(){return this.selectedConsent="rejected",this.isVisible=!1,Salla.event.emit("salla-cookies-bar::rejected"),Salla.storage.set("cookies-consent","rejected"),this.host}async open(){return this.selectedConsent=this.getStoredConsentChoice(),this.isVisible=!0,this.host}getStoredConsentChoice(){const s=Salla.storage.get("cookies-consent");return"accepted"===s||"rejected"===s?s:"rejected"}isRtl(){return Salla.config.get("theme.is_rtl",!0)}appendCookiesSettingsLink(s){const t=Salla.config.get("store.features")?.includes("website-cookies");if(!t||!s?.withCookiePreferences||"footer"!==s?.source)return;const e="#cookies-settings",i=s?.menus.some((s=>s?.url===e));i||(s.menus=[...s.menus,{id:"cookies-settings",order:null,title:Salla.lang.get("common.cookies.settings"),url:e,target:"_self",is_by_form_builder:!1,children:[],image:null,callback:()=>Salla.event.emit("salla-cookies-bar::open")}])}render(){return this.isVisible?t(e,null,t("div",{dir:this.isRtl()?"rtl":"ltr",class:"s-cookies-bar fixed bottom-0 inset-x-0 z-50 bg-white p-4"},t("div",{class:"s-cookies-bar-content flex flex-col justify-center gap-6 max-w-screen-xl mx-auto px-4"},t("p",{class:"s-cookies-bar-message text-sm font-medium leading-relaxed text-gray-500 m-0"},this.messageLabel,Salla.config.get("policy_url")&&t("a",{href:Salla.config.get("policy_url"),target:"_blank",class:"s-cookies-bar-link text-primary ms-1"},this.linkLabel)),t("div",{class:"s-cookies-bar-actions flex flex-row gap-2 shrink-0"},t("salla-button",{class:"s-cookies-bar-btn--accept "+("rejected"===this.selectedConsent?"s-cookies-bar-btn--active":""),color:"primary",fill:"rejected"===this.selectedConsent?"solid":"outline",type:"button",size:this.isMobile?"small":"medium",onClick:()=>this.accept()},this.acceptLabel),t("salla-button",{class:"s-cookies-bar-btn--reject "+("accepted"===this.selectedConsent?"s-cookies-bar-btn--active":""),color:"accepted"===this.selectedConsent?"primary":void 0,fill:"accepted"===this.selectedConsent?"solid":"outline",type:"button",size:this.isMobile?"small":"medium",onClick:()=>this.reject()},this.rejectLabel))))):t(e,null)}get host(){return i(this)}};a.style=":host{display:block;overflow:visible}.s-cookies-bar{box-shadow:0 0 20px 4px rgba(0, 0, 0, 0.15)}.s-cookies-bar-btn--active{box-shadow:0 0 0 2px rgba(0, 0, 0, 0.08)}";export{a as salla_cookies_bar}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{f as t}from"./p-Crijf68j.js";function r(r,s={}){return s=Object.assign({initialData:void 0,initialStatus:"idle"},s),(i,e)=>{const o=Object.assign((function(...s){const i=r=>{Object.assign(this[e],r),t(this)};return i({status:"pending",error:void 0}),r.call(this,...s).then((t=>(i({status:"success",data:t,error:void 0}),t)),(t=>(i({status:"error",error:t}),Promise.reject(t))))}),{status:s.initialStatus,data:s.initialData,error:void 0});Object.defineProperty(i,e,{value:o})}}export{r as T}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Crafted with ❤ by Salla
3
- */
4
- import{r as s,h as t,H as a,a as i}from"./p-Crijf68j.js";const r=[{label:"100px",value:"56px"},{label:"72px",value:"64px"},{label:"96px",value:"48px"}],h=class{constructor(t){s(this,t),this.validateForms=!0,this.cartCount=0,this.cartTotal=0,this.cartTotalDiscount=0,this.cartSubTotal=0,this.cartOptionsTotal=0,this.cartShippingCost=0,this.cartTaxAmount=0,this.cartHasShipping=!1,this.isOpen=!1,this.isDesktop=!1,this.isLoading=!0,this.originalParent=null,this.originalNextSibling=null,this.bodyObserver=null,this.mediaQueryList=null,this.submitObserver=null,this.isSubmitting=!1,this.mqlChangeHandler=s=>{this.isDesktop=s.matches,this.applyMode()},this.cartEventNames=["cart::details.fetched","cart::updated","cart::latest.fetched","cart::coupon.added","cart::coupon.deleted"],this.cartEventHandler=s=>this.applyCartData(this.extractCart(s)),this.toggleSheet=()=>{this.isDesktop||(this.isOpen=!this.isOpen)},this.handleSubmit=async s=>{if(this.isSubmitting)return void s.preventDefault();if(this.isSubmitting=!0,this.validateForms&&!await this.validateCartForms())return s.preventDefault(),salla.notify?.error?.(salla.lang?.get?.("common.messages.required_fields")),void(this.isSubmitting=!1);const t=this.host.querySelector("#s-cart-summary-card-submit");"undefined"!=typeof salla&&"guest"!==salla.config?.get?.("user.type")&&t&&(t.load?.(),this.submitObserver?.disconnect(),this.submitObserverTimeout&&clearTimeout(this.submitObserverTimeout),this.submitObserver=new MutationObserver((()=>{t.hasAttribute("loading")||t.setAttribute("loading","")})),this.submitObserver.observe(t,{attributes:!0,attributeFilter:["loading"]}),this.submitObserverTimeout=window.setTimeout((()=>{this.submitObserver?.disconnect(),this.submitObserver=null,t.removeAttribute?.("loading")}),1e4)),salla.cart?.submit?.(),window.setTimeout((()=>{this.isSubmitting=!1}),1500)}}componentWillLoad(){this.mediaQueryList=window.matchMedia(this.desktopMediaQuery()),this.isDesktop=this.mediaQueryList.matches,this.isDesktop&&(this.isOpen=!0),this.init()}async init(){await salla.onReady(),await salla.lang.onLoaded(),this.loadTranslations(),this.cartEventNames.forEach((s=>salla.event.on(s,this.cartEventHandler))),this.fetchCart()}loadTranslations(){this.summaryLabel=salla.lang.get("pages.cart.summary"),this.itemsTotalLabel=salla.lang.get("pages.cart.items_total"),this.itemsTotalNoTaxLabel=salla.lang.get("pages.cart.items_total_without_tax"),this.optionsTotalLabel=salla.lang.get("pages.cart.order_options_total"),this.shippingCostLabel=salla.lang.get("pages.cart.shipping_cost"),this.vatTaxLabel=salla.lang.get("pages.cart.VAT_tax_amount"),this.savedLabel=salla.lang.get("pages.cart.discount"),this.discountBadge=salla.lang.get("pages.cart.saved"),this.finalTotalLabel=salla.lang.get("pages.cart.final_total"),this.pricesTaxedLabel=salla.lang.get("pages.cart.prices_taxed"),this.completeOrderLabel=salla.lang.get("pages.cart.complete_order"),this.openSummaryLabel=salla.lang.get("pages.cart.open_summary"),this.closeSummaryLabel=salla.lang.get("pages.cart.close_summary"),this.itemsCountTemplate=salla.lang.get("pages.cart.items_with_count")}num(s){if(null==s)return 0;if("number"==typeof s)return isFinite(s)?s:0;if("string"==typeof s)return parseFloat(s)||0;if("object"==typeof s){if("amount"in s)return this.num(s.amount);if("value"in s)return this.num(s.value);if("formatted"in s)return this.num(s.formatted)}return 0}breakpointPx(){return 1024}desktopMediaQuery(){return`(min-width: ${this.breakpointPx()}px)`}componentDidLoad(){this.originalParent=this.host.parentElement,this.originalNextSibling=this.host.nextSibling,this.mediaQueryList||(this.mediaQueryList=window.matchMedia(this.desktopMediaQuery()),this.isDesktop=this.mediaQueryList.matches),this.applyMode(),this.mediaQueryList.addEventListener?this.mediaQueryList.addEventListener("change",this.mqlChangeHandler):this.mediaQueryList.addListener(this.mqlChangeHandler)}applyMode(){this.isDesktop?(this.isOpen=!0,this.bodyObserver?.disconnect(),this.bodyObserver=null,this.originalParent&&this.host.parentElement!==this.originalParent&&this.originalParent.insertBefore(this.host,this.originalNextSibling?.parentNode===this.originalParent?this.originalNextSibling:null)):this.pinToBodyEnd()}pinToBodyEnd(){this.host.parentElement===document.body&&document.body.lastElementChild===this.host||document.body.appendChild(this.host),this.bodyObserver||(this.bodyObserver=new MutationObserver((()=>{this.isDesktop||document.body.lastElementChild===this.host||document.body.appendChild(this.host)})),this.bodyObserver.observe(document.body,{childList:!0}))}disconnectedCallback(){Promise.resolve().then((()=>{this.host.isConnected||(this.bodyObserver?.disconnect(),this.submitObserver?.disconnect(),this.submitObserverTimeout&&(clearTimeout(this.submitObserverTimeout),this.submitObserverTimeout=void 0),this.mediaQueryList?.removeEventListener?this.mediaQueryList.removeEventListener("change",this.mqlChangeHandler):this.mediaQueryList?.removeListener(this.mqlChangeHandler),this.mediaQueryList=null,this.cartEventNames.forEach((s=>salla.event.off(s,this.cartEventHandler))))}))}fetchCart(){const s=salla.config?.get?.("page.id"),t=salla.cart?.api?.details?.(s);t&&"function"==typeof t.then?t.then((s=>this.applyCartData(this.extractCart(s)))).catch((()=>this.applyCachedSummary())):this.applyCachedSummary()}applyCachedSummary(){const s=salla.storage?.get?.("cart.summary");s&&"object"==typeof s&&this.applyCartData(s),this.isLoading=!1}extractCart(s){return s?s.data?.cart?s.data.cart:s.cart?s.cart:s:null}applyCartData(s){if(!s)return;this.isLoading=!1,void 0!==s.count&&(this.cartCount=this.num(s.count)),void 0!==s.total&&(this.cartTotal=this.num(s.total));const t=s.total_discount??s.discount;void 0!==t&&(this.cartTotalDiscount=this.num(t)),void 0!==s.sub_total&&(this.cartSubTotal=this.num(s.sub_total)),void 0!==s.options_total&&(this.cartOptionsTotal=this.num(s.options_total)),void 0!==s.tax_amount&&(this.cartTaxAmount=this.num(s.tax_amount));const a=!!s.free_shipping_bar?.has_free_shipping;void 0!==s.shipping_cost?this.cartShippingCost=this.num(s.shipping_cost):void 0!==s.real_shipping_cost&&(this.cartShippingCost=a?0:this.num(s.real_shipping_cost)),this.cartHasShipping=this.cartShippingCost>0||!!s.has_shipping}async validateCartForms(){let s=!0;document.querySelectorAll('form[id^="item-"]').forEach((t=>{t.reportValidity()||(s=!1)}));const t=Array.from(document.querySelectorAll('form[id^="item-"] salla-product-options'));for(const a of t)"function"!=typeof a.reportValidity||await a.reportValidity()||(s=!1);return s}decimalPlaces(s){const t=String(s),a=t.indexOf(".");return-1===a||t.includes("e")?0:t.length-a-1}roundToCurrency(s){const t=Math.min(Math.max(2,this.decimalPlaces(this.cartTotal),this.decimalPlaces(this.cartTotalDiscount)),4),a=Math.pow(10,t);return Math.round(s*a)/a}money(s){try{if("undefined"!=typeof salla&&"function"==typeof salla.money)return salla.money(s)}catch(s){}return String(s??0)}getItemsLabel(){return this.itemsCountTemplate?.replace(":count",String(this.cartCount))??""}renderSkeleton(){return t(a,{class:{"s-cart-summary-card":!0,"s-cart-summary-card--loading":!0,"s-cart-summary-card--desktop":this.isDesktop,"s-cart-summary-card--mobile":!this.isDesktop}},this.isDesktop&&t("div",{class:"s-cart-summary-card-sheet-wrap s-cart-summary-card-sheet-wrap--open"},t("div",{class:"s-cart-summary-card-sheet"},t("header",{class:"s-cart-summary-card-sheet-header"},t("h3",{class:"s-cart-summary-card-sheet-title"},t("salla-skeleton",{width:"140px",height:"16px"}))),r.map((({label:s,value:a},i)=>t("div",{class:"s-cart-summary-card-line",key:i},t("salla-skeleton",{width:s,height:"16px"}),t("salla-skeleton",{width:a,height:"16px"})))))),t("div",{class:"s-cart-summary-card-bar"},t("div",{class:"s-cart-summary-card-bar-label"},t("div",{class:"s-cart-summary-card-bar-label-main"},t("salla-skeleton",{width:"90px",height:"16px"}),t("salla-skeleton",{width:"48px",height:"12px"}))),t("div",{class:"s-cart-summary-card-bar-totals"},t("div",{class:"s-cart-summary-card-bar-totals-row"},t("salla-skeleton",{width:"80px",height:"20px"})))),t("div",{class:"s-cart-summary-card-action"},t("salla-skeleton",{width:"100%",height:"44px"})))}render(){if(this.isLoading)return this.renderSkeleton();const s=this.cartTotalDiscount>0,i=this.cartTaxAmount?this.itemsTotalNoTaxLabel:this.itemsTotalLabel;return t(a,{class:{"s-cart-summary-card":!0,"s-cart-summary-card--open":this.isOpen,"s-cart-summary-card--desktop":this.isDesktop,"s-cart-summary-card--mobile":!this.isDesktop}},t("div",{class:{"s-cart-summary-card-sheet-wrap":!0,"s-cart-summary-card-sheet-wrap--open":this.isOpen},"aria-hidden":this.isOpen?"false":"true"},t("div",{class:"s-cart-summary-card-sheet",style:this.isDesktop?{}:{transform:this.isOpen?"translateY(0)":"translateY(100%)",transition:"transform 0.4s cubic-bezier(0.32, 0.72, 0, 1)"}},t("header",{class:"s-cart-summary-card-sheet-header"},t("h3",{class:"s-cart-summary-card-sheet-title"},this.summaryLabel)),t("div",{class:"s-cart-summary-card-line"},t("span",null,i),t("b",{innerHTML:this.money(this.cartSubTotal)})),this.cartOptionsTotal>0&&t("div",{class:"s-cart-summary-card-line"},t("span",null,this.optionsTotalLabel),t("b",{innerHTML:this.money(this.cartOptionsTotal)})),this.cartHasShipping&&t("div",{class:"s-cart-summary-card-line"},t("span",null,this.shippingCostLabel),t("b",{innerHTML:this.money(this.cartShippingCost)})),this.cartTaxAmount>0&&t("div",{class:"s-cart-summary-card-line"},t("span",null,this.vatTaxLabel),t("b",{innerHTML:this.money(this.cartTaxAmount)})),s&&t("div",{class:"s-cart-summary-card-line s-cart-summary-card-line--discount"},t("span",null,this.savedLabel),t("b",null,"− ",t("span",{innerHTML:this.money(this.cartTotalDiscount)}))))),t("div",{class:"s-cart-summary-card-bar"},t("div",{class:"s-cart-summary-card-bar-label"},t("div",{class:"s-cart-summary-card-bar-label-main"},t("span",{class:"s-cart-summary-card-bar-label-text"},this.finalTotalLabel),t("span",{class:"s-cart-summary-card-bar-count"},this.getItemsLabel())),this.cartTaxAmount>0&&t("div",{class:"s-cart-summary-card-bar-label-sub"},this.pricesTaxedLabel)),t("div",{class:"s-cart-summary-card-bar-totals"},t("div",{class:"s-cart-summary-card-bar-totals-row"},s&&t("s",{class:"s-cart-summary-card-bar-original"},salla.helpers.number(this.roundToCurrency(this.cartTotal+this.cartTotalDiscount))),t("b",{class:"s-cart-summary-card-bar-total",innerHTML:this.money(this.cartTotal)}),!this.isDesktop&&t("button",{type:"button",class:"s-cart-summary-card-chevron","aria-label":this.isOpen?this.closeSummaryLabel:this.openSummaryLabel,"aria-expanded":this.isOpen?"true":"false",onClick:this.toggleSheet},t("i",{class:"sicon-keyboard_arrow_up s-cart-summary-card-chevron-icon"}))),s&&t("div",{class:"s-cart-summary-card-bar-savings-badge"},t("span",{"aria-hidden":"true"},"🎉"),t("span",null,this.discountBadge," ",t("span",{innerHTML:this.money(this.cartTotalDiscount)}))))),t("div",{class:"s-cart-summary-card-action"},t("salla-button",{id:"s-cart-summary-card-submit",width:"wide","loader-position":"center",onClick:this.handleSubmit},this.completeOrderLabel)))}get host(){return i(this)}};export{h as salla_cart_summary_card}