@salla.sa/twilight-components 2.14.418 → 2.14.420

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 (383) hide show
  1. package/dist/cjs/{filepond-C1_8U7ht.js → filepond-CTL5dLDP.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C2QZkcu0.js → filepond-plugin-file-poster-B-C_VVcX.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CbVRd24w.js → filepond-plugin-file-validate-size-CzKg3e_q.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-63RP4vcL.js → filepond-plugin-file-validate-type-vnM88Tws.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CjWMhhkZ.js → filepond-plugin-image-edit-DI2Woa_n.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CJxStqYG.js → filepond-plugin-image-exif-orientation-DfOieqsR.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview--RTa59Q8.js → filepond-plugin-image-preview-BnoA6sXp.js} +1 -1
  8. package/dist/cjs/{functions-T48FHZw8.js → functions-DlISHrKx.js} +1 -1
  9. package/dist/cjs/helpers-BJ2rnhxz.js +197 -0
  10. package/dist/cjs/{index-CQ4zjhzH.js → index-tOrYNNsf.js} +1 -1
  11. package/dist/cjs/{index-DO_QXaSt.js → index-vstkdqRz.js} +10 -6
  12. package/dist/cjs/interfaces-Bh7W0bEU.js +33 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +36 -58
  17. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
  23. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +8 -6
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +14 -3
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-item.cjs.entry.js +28 -29
  66. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +41 -0
  67. package/dist/cjs/salla-order-edit.cjs.entry.js +339 -40
  68. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  69. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  72. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  73. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  74. package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
  75. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  76. package/dist/cjs/salla-products-list.cjs.entry.js +38 -15
  77. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-reward-action_4.cjs.entry.js +15 -8
  81. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  82. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  83. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  88. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  96. package/dist/cjs/{tracked-promise-BnNAgCN_.js → tracked-promise-BJe1J-1V.js} +1 -1
  97. package/dist/cjs/twilight.cjs.js +2 -2
  98. package/dist/cjs/{vanilla-picker-wbE79zwn.js → vanilla-picker-nnRs4Y1U.js} +1 -1
  99. package/dist/collection/collection-manifest.json +1 -0
  100. package/dist/collection/components/salla-loyalty/salla-loyalty.js +24 -2
  101. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +5 -3
  102. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +12 -5
  103. package/dist/collection/components/salla-order-edit/helpers.js +181 -0
  104. package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +3 -0
  105. package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +42 -30
  106. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.css +4 -0
  107. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +93 -0
  108. package/dist/collection/components/salla-order-edit/salla-order-edit.css +3 -0
  109. package/dist/collection/components/salla-order-edit/salla-order-edit.js +353 -39
  110. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  111. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  112. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  113. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  114. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  115. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  116. package/dist/collection/components/salla-product-options/salla-product-options.js +28 -0
  117. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  118. package/dist/collection/components/salla-products-list/salla-products-list.js +54 -14
  119. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  120. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  121. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  122. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  123. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  124. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  125. package/dist/collection/components/salla-search/salla-search.js +5 -5
  126. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  127. package/dist/collection/components/salla-social/salla-social.js +1 -1
  128. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  129. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  130. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  131. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  132. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  133. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  134. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  135. package/dist/components/index.js +2 -2
  136. package/dist/components/salla-loyalty-panel.js +5 -3
  137. package/dist/components/salla-loyalty.js +16 -3
  138. package/dist/components/salla-order-edit-item2.js +207 -30
  139. package/dist/components/salla-order-edit-product-card.d.ts +11 -0
  140. package/dist/components/salla-order-edit-product-card.js +59 -0
  141. package/dist/components/salla-order-edit.js +378 -65
  142. package/dist/components/salla-order-summary.js +1 -1
  143. package/dist/components/salla-payments.js +2 -2
  144. package/dist/components/salla-placeholder2.js +1 -1
  145. package/dist/components/salla-price-range2.js +2 -2
  146. package/dist/components/salla-product-availability2.js +1 -1
  147. package/dist/components/salla-product-card2.js +5 -5
  148. package/dist/components/salla-product-options2.js +8 -1
  149. package/dist/components/salla-product-size-guide.js +2 -2
  150. package/dist/components/salla-products-list2.js +39 -15
  151. package/dist/components/salla-quantity-input2.js +1 -1
  152. package/dist/components/salla-quick-buy2.js +1 -1
  153. package/dist/components/salla-review-card2.js +1 -1
  154. package/dist/components/salla-reviews-page.js +1 -1
  155. package/dist/components/salla-reviews.js +1 -1
  156. package/dist/components/salla-reward-details2.js +12 -5
  157. package/dist/components/salla-scopes.js +1 -1
  158. package/dist/components/salla-search.js +5 -5
  159. package/dist/components/salla-skeleton2.js +1 -1
  160. package/dist/components/salla-social-share.js +1 -1
  161. package/dist/components/salla-social.js +1 -1
  162. package/dist/components/salla-tab-content2.js +1 -1
  163. package/dist/components/salla-tab-header2.js +1 -1
  164. package/dist/components/salla-tabs2.js +1 -1
  165. package/dist/components/salla-tel-input2.js +1 -1
  166. package/dist/components/salla-tooltip2.js +1 -1
  167. package/dist/components/salla-user-settings.js +1 -1
  168. package/dist/esm/{filepond-BaqNYv3C.js → filepond-DcrhDD5e.js} +1 -1
  169. package/dist/esm/{filepond-plugin-file-poster-nENZqIRv.js → filepond-plugin-file-poster-meDD1pU1.js} +1 -1
  170. package/dist/esm/{filepond-plugin-file-validate-size-DGOq4RG8.js → filepond-plugin-file-validate-size-Ta6h96xm.js} +1 -1
  171. package/dist/esm/{filepond-plugin-file-validate-type-DwM-3UO7.js → filepond-plugin-file-validate-type-PVDX_x_z.js} +1 -1
  172. package/dist/esm/{filepond-plugin-image-edit-BCqDiFWK.js → filepond-plugin-image-edit-BR1HO3-K.js} +1 -1
  173. package/dist/esm/{filepond-plugin-image-exif-orientation-DiuxhjrQ.js → filepond-plugin-image-exif-orientation-CEWqrOc9.js} +1 -1
  174. package/dist/esm/{filepond-plugin-image-preview-DbFvPPQQ.js → filepond-plugin-image-preview-6ACW1Nfe.js} +1 -1
  175. package/dist/esm/{functions-JPNAXx4d.js → functions-DqpTrGHa.js} +1 -1
  176. package/dist/esm/helpers-DR_vlSvU.js +184 -0
  177. package/dist/esm/{index-DElBWCVR.js → index-COvJOSNr.js} +1 -1
  178. package/dist/esm/{index-BwsreBbG.js → index-Cb4NFvMH.js} +10 -6
  179. package/dist/esm/interfaces-CoQJOPRz.js +33 -0
  180. package/dist/esm/loader.js +3 -3
  181. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  182. package/dist/esm/salla-accordion_6.entry.js +1 -1
  183. package/dist/esm/salla-add-product-button_5.entry.js +10 -32
  184. package/dist/esm/salla-advertisement.entry.js +1 -1
  185. package/dist/esm/salla-alert_2.entry.js +1 -1
  186. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  187. package/dist/esm/salla-apps-icons.entry.js +1 -1
  188. package/dist/esm/salla-badge.entry.js +1 -1
  189. package/dist/esm/salla-booking-field_7.entry.js +12 -12
  190. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  191. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  192. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  193. package/dist/esm/salla-comment-form_8.entry.js +4 -4
  194. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  195. package/dist/esm/salla-contacts.entry.js +1 -1
  196. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  197. package/dist/esm/salla-count-down.entry.js +1 -1
  198. package/dist/esm/salla-custom-fields.entry.js +1 -1
  199. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  200. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  201. package/dist/esm/salla-filters-widget.entry.js +1 -1
  202. package/dist/esm/salla-filters.entry.js +1 -1
  203. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  204. package/dist/esm/salla-gifting.entry.js +1 -1
  205. package/dist/esm/salla-hook.entry.js +1 -1
  206. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  207. package/dist/esm/salla-installment.entry.js +1 -1
  208. package/dist/esm/salla-list-tile.entry.js +1 -1
  209. package/dist/esm/salla-localization-modal.entry.js +1 -1
  210. package/dist/esm/salla-login-modal.entry.js +1 -1
  211. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  212. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  213. package/dist/esm/salla-loyalty-panel.entry.js +8 -6
  214. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  215. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  216. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  217. package/dist/esm/salla-loyalty.entry.js +14 -3
  218. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  219. package/dist/esm/salla-map.entry.js +1 -1
  220. package/dist/esm/salla-menu.entry.js +1 -1
  221. package/dist/esm/salla-metadata.entry.js +1 -1
  222. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  223. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  224. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  225. package/dist/esm/salla-notification-item.entry.js +1 -1
  226. package/dist/esm/salla-notifications.entry.js +1 -1
  227. package/dist/esm/salla-offer-modal.entry.js +1 -1
  228. package/dist/esm/salla-offer.entry.js +1 -1
  229. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  230. package/dist/esm/salla-order-details-options.entry.js +1 -1
  231. package/dist/esm/salla-order-details.entry.js +1 -1
  232. package/dist/esm/salla-order-edit-item.entry.js +28 -29
  233. package/dist/esm/salla-order-edit-product-card.entry.js +39 -0
  234. package/dist/esm/salla-order-edit.entry.js +339 -40
  235. package/dist/esm/salla-order-summary.entry.js +2 -2
  236. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  237. package/dist/esm/salla-orders.entry.js +1 -1
  238. package/dist/esm/salla-payments.entry.js +3 -3
  239. package/dist/esm/salla-placeholder.entry.js +2 -2
  240. package/dist/esm/salla-price-range.entry.js +3 -3
  241. package/dist/esm/salla-product-card_2.entry.js +6 -6
  242. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  243. package/dist/esm/salla-products-list.entry.js +38 -15
  244. package/dist/esm/salla-progress-bar.entry.js +1 -1
  245. package/dist/esm/salla-quick-order.entry.js +1 -1
  246. package/dist/esm/salla-rating-modal.entry.js +1 -1
  247. package/dist/esm/salla-reward-action_4.entry.js +15 -8
  248. package/dist/esm/salla-scopes.entry.js +2 -2
  249. package/dist/esm/salla-search.entry.js +6 -6
  250. package/dist/esm/salla-skeleton.entry.js +2 -2
  251. package/dist/esm/salla-slider.entry.js +1 -1
  252. package/dist/esm/salla-social-share.entry.js +2 -2
  253. package/dist/esm/salla-social.entry.js +2 -2
  254. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  255. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  256. package/dist/esm/salla-tooltip.entry.js +2 -2
  257. package/dist/esm/salla-trust-badges.entry.js +1 -1
  258. package/dist/esm/salla-user-menu.entry.js +1 -1
  259. package/dist/esm/salla-user-profile.entry.js +1 -1
  260. package/dist/esm/salla-user-settings.entry.js +2 -2
  261. package/dist/esm/salla-verify.entry.js +1 -1
  262. package/dist/esm/salla-wallet.entry.js +1 -1
  263. package/dist/esm/{tracked-promise-BD-FZk2P.js → tracked-promise-Dl5Y2VO1.js} +1 -1
  264. package/dist/esm/twilight.js +3 -3
  265. package/dist/esm/{vanilla-picker-CqoFxJJE.js → vanilla-picker-CuBrX87l.js} +1 -1
  266. package/dist/twilight/p-03c91b77.entry.js +4 -0
  267. package/dist/twilight/{p-af84c7b8.entry.js → p-0bb36191.entry.js} +1 -1
  268. package/dist/twilight/{p-a3a0bafa.entry.js → p-0c0df6f7.entry.js} +1 -1
  269. package/dist/twilight/p-142ed3d7.entry.js +4 -0
  270. package/dist/twilight/{p-CbukOCNI.js → p-14uV0Dqq.js} +1 -1
  271. package/dist/twilight/{p-46088f51.entry.js → p-15c3ec6b.entry.js} +1 -1
  272. package/dist/twilight/{p-7d3722ad.entry.js → p-15f015b1.entry.js} +1 -1
  273. package/dist/twilight/{p-ce588635.entry.js → p-213cee5f.entry.js} +1 -1
  274. package/dist/twilight/{p-c5e18341.entry.js → p-2726ea01.entry.js} +1 -1
  275. package/dist/twilight/{p-57451f00.entry.js → p-28208f79.entry.js} +1 -1
  276. package/dist/twilight/{p-b6dce61a.entry.js → p-293fa7ae.entry.js} +1 -1
  277. package/dist/twilight/{p-993bdcbe.entry.js → p-29f8baaa.entry.js} +1 -1
  278. package/dist/twilight/{p-60878c2e.entry.js → p-324dc99a.entry.js} +1 -1
  279. package/dist/twilight/p-3383da76.entry.js +4 -0
  280. package/dist/twilight/{p-d9c4d2ed.entry.js → p-38ae0da1.entry.js} +1 -1
  281. package/dist/twilight/{p-0a786447.entry.js → p-3bd864fe.entry.js} +1 -1
  282. package/dist/twilight/p-3e6f7773.entry.js +4 -0
  283. package/dist/twilight/p-408ed55f.entry.js +4 -0
  284. package/dist/twilight/{p-695e3211.entry.js → p-40a41577.entry.js} +1 -1
  285. package/dist/twilight/{p-aaff5603.entry.js → p-4105a9cd.entry.js} +1 -1
  286. package/dist/twilight/{p-91d74168.entry.js → p-45f138dd.entry.js} +1 -1
  287. package/dist/twilight/{p-0654ccca.entry.js → p-4a788634.entry.js} +1 -1
  288. package/dist/twilight/{p-ad762138.entry.js → p-4c3d17a1.entry.js} +1 -1
  289. package/dist/twilight/{p-4c57de7b.entry.js → p-52f5ccfe.entry.js} +1 -1
  290. package/dist/twilight/p-59a083e4.entry.js +4 -0
  291. package/dist/twilight/{p-1c1ac203.entry.js → p-5b7970ef.entry.js} +1 -1
  292. package/dist/twilight/{p-ab5e0aef.entry.js → p-5e62a40f.entry.js} +1 -1
  293. package/dist/twilight/{p-b9c9c487.entry.js → p-5fbf4640.entry.js} +1 -1
  294. package/dist/twilight/{p-9c73e42a.entry.js → p-6135ad16.entry.js} +1 -1
  295. package/dist/twilight/{p-2f833767.entry.js → p-628a8e24.entry.js} +1 -1
  296. package/dist/twilight/{p-167f5262.entry.js → p-65c18d39.entry.js} +1 -1
  297. package/dist/twilight/{p-ff90dbf0.entry.js → p-686eecd6.entry.js} +1 -1
  298. package/dist/twilight/{p-fec6b08b.entry.js → p-68f21f26.entry.js} +1 -1
  299. package/dist/twilight/{p-3f50a52d.entry.js → p-691c3a17.entry.js} +1 -1
  300. package/dist/twilight/{p-9134d94d.entry.js → p-6cb4a60b.entry.js} +1 -1
  301. package/dist/twilight/{p-44db7163.entry.js → p-6f2edfae.entry.js} +1 -1
  302. package/dist/twilight/{p-edaba475.entry.js → p-6fb7d4f8.entry.js} +1 -1
  303. package/dist/twilight/{p-dcc65eb2.entry.js → p-72e169bd.entry.js} +1 -1
  304. package/dist/twilight/{p-681953ef.entry.js → p-73ba81cc.entry.js} +1 -1
  305. package/dist/twilight/{p-f88806d7.entry.js → p-7444a1ed.entry.js} +1 -1
  306. package/dist/twilight/{p-10884e6e.entry.js → p-752f162a.entry.js} +1 -1
  307. package/dist/twilight/{p-b737dbcb.entry.js → p-772b766c.entry.js} +1 -1
  308. package/dist/twilight/{p-03c39b2d.entry.js → p-774461b2.entry.js} +1 -1
  309. package/dist/twilight/p-7cba634a.entry.js +4 -0
  310. package/dist/twilight/p-7d37007a.entry.js +4 -0
  311. package/dist/twilight/{p-2bd83486.entry.js → p-7e47c403.entry.js} +1 -1
  312. package/dist/twilight/{p-ac008da7.entry.js → p-7ec0ac91.entry.js} +1 -1
  313. package/dist/twilight/{p-57e0b11b.entry.js → p-825cc1f7.entry.js} +1 -1
  314. package/dist/twilight/{p-f73c7b43.entry.js → p-85a15cc1.entry.js} +1 -1
  315. package/dist/twilight/p-8e96221d.entry.js +4 -0
  316. package/dist/twilight/{p-5ac81ffe.entry.js → p-95f3620c.entry.js} +1 -1
  317. package/dist/twilight/{p-29fc145b.entry.js → p-95ff1eb1.entry.js} +1 -1
  318. package/dist/twilight/{p-cd6fc43c.entry.js → p-96343e93.entry.js} +1 -1
  319. package/dist/twilight/{p-a00015ec.entry.js → p-96b64fd6.entry.js} +1 -1
  320. package/dist/twilight/{p-580441f5.entry.js → p-9a6dfcde.entry.js} +1 -1
  321. package/dist/twilight/{p-f653f2bb.entry.js → p-9b865b2c.entry.js} +1 -1
  322. package/dist/twilight/{p-5b371b1f.entry.js → p-9ba89557.entry.js} +1 -1
  323. package/dist/twilight/{p-Dw7mGaHj.js → p-B9znPMU0.js} +1 -1
  324. package/dist/twilight/{p-Cw0Ky-u0.js → p-BCTUg3S2.js} +1 -1
  325. package/dist/twilight/{p-LWKLIOwS.js → p-BII4XUuF.js} +1 -1
  326. package/dist/twilight/{p-GgHo6Cr_.js → p-BIai7zYt.js} +1 -1
  327. package/dist/twilight/p-C8xwacGT.js +4 -0
  328. package/dist/twilight/{p-DPgASjJ8.js → p-CBJQc5Lg.js} +1 -1
  329. package/dist/twilight/{p-BwsreBbG.js → p-Cb4NFvMH.js} +1 -1
  330. package/dist/twilight/{p-BuNOvMeU.js → p-Ch9nMk63.js} +1 -1
  331. package/dist/twilight/p-CoQJOPRz.js +4 -0
  332. package/dist/twilight/{p-CEuTw3-D.js → p-DQjeyM6u.js} +1 -1
  333. package/dist/twilight/{p-DlGhggDp.js → p-DXTkDRjS.js} +1 -1
  334. package/dist/twilight/{p-f-qXMnue.js → p-DvkL8Ozv.js} +1 -1
  335. package/dist/twilight/{p-4807586a.entry.js → p-acf5c683.entry.js} +1 -1
  336. package/dist/twilight/{p-9d8e4e7c.entry.js → p-aec7b53d.entry.js} +1 -1
  337. package/dist/twilight/{p-e5325563.entry.js → p-b495fd3a.entry.js} +1 -1
  338. package/dist/twilight/{p-d739ae41.entry.js → p-b5b0d57a.entry.js} +1 -1
  339. package/dist/twilight/{p-d0cf9b68.entry.js → p-b8d87ece.entry.js} +1 -1
  340. package/dist/twilight/{p-af1474dd.entry.js → p-bc8070a0.entry.js} +1 -1
  341. package/dist/twilight/{p-19e82de2.entry.js → p-befbbd96.entry.js} +1 -1
  342. package/dist/twilight/{p-b9062150.entry.js → p-c4c7efc7.entry.js} +1 -1
  343. package/dist/twilight/{p-7d492d3c.entry.js → p-c4f7d697.entry.js} +1 -1
  344. package/dist/twilight/{p-b6ac7a22.entry.js → p-cb70fe7f.entry.js} +1 -1
  345. package/dist/twilight/{p-0bf11f89.entry.js → p-d4b7ef45.entry.js} +1 -1
  346. package/dist/twilight/{p-fbe07d2d.entry.js → p-d4d61e9d.entry.js} +1 -1
  347. package/dist/twilight/{p-59657a19.entry.js → p-d6cfb7cf.entry.js} +1 -1
  348. package/dist/twilight/p-dfad4e49.entry.js +4 -0
  349. package/dist/twilight/{p-4edf67be.entry.js → p-e30f5be9.entry.js} +1 -1
  350. package/dist/twilight/{p-d469525b.entry.js → p-e64af075.entry.js} +1 -1
  351. package/dist/twilight/{p-c1d4db6f.entry.js → p-e7fd1dab.entry.js} +1 -1
  352. package/dist/twilight/{p-ceb9458e.entry.js → p-e85f1f4a.entry.js} +1 -1
  353. package/dist/twilight/{p-201926a3.entry.js → p-e9251839.entry.js} +1 -1
  354. package/dist/twilight/{p-1c3e0dbc.entry.js → p-e94f7e62.entry.js} +1 -1
  355. package/dist/twilight/p-ebc19788.entry.js +4 -0
  356. package/dist/twilight/{p-b4fd50ef.entry.js → p-f6bc9645.entry.js} +1 -1
  357. package/dist/twilight/p-f6da3fad.entry.js +4 -0
  358. package/dist/twilight/{p-a96ec635.entry.js → p-fbfa12cf.entry.js} +1 -1
  359. package/dist/twilight/{p-069485ec.entry.js → p-fca860eb.entry.js} +1 -1
  360. package/dist/twilight/{p-61215f22.entry.js → p-fd4eec62.entry.js} +1 -1
  361. package/dist/twilight/{p-CTyl0UJE.js → p-pyjmoRFm.js} +1 -1
  362. package/dist/twilight/twilight.esm.js +1 -1
  363. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +3 -0
  364. package/dist/types/components/salla-order-edit/helpers.d.ts +25 -0
  365. package/dist/types/components/salla-order-edit/interfaces.d.ts +22 -25
  366. package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +7 -5
  367. package/dist/types/components/salla-order-edit/salla-order-edit-product-card.d.ts +11 -0
  368. package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +56 -4
  369. package/dist/types/components/salla-product-options/salla-product-options.d.ts +4 -0
  370. package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
  371. package/dist/types/components.d.ts +51 -4
  372. package/package.json +5 -5
  373. package/dist/twilight/p-25104b13.entry.js +0 -4
  374. package/dist/twilight/p-36048354.entry.js +0 -4
  375. package/dist/twilight/p-4110e600.entry.js +0 -4
  376. package/dist/twilight/p-60d875cc.entry.js +0 -4
  377. package/dist/twilight/p-7a33e83b.entry.js +0 -4
  378. package/dist/twilight/p-86cfa253.entry.js +0 -4
  379. package/dist/twilight/p-c0b690b2.entry.js +0 -4
  380. package/dist/twilight/p-c968dab0.entry.js +0 -4
  381. package/dist/twilight/p-e07f938a.entry.js +0 -4
  382. package/dist/twilight/p-f2815da9.entry.js +0 -4
  383. package/dist/twilight/p-f7b21078.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-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.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, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
6
6
  import { S as SIMail } from './mail-DLNIOD9t.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaCookiesBarCss = ":host{display:block;overflow:visible}.s-cookies-bar{box-shadow:0 0 20px 4px rgba(0, 0, 0, 0.15)}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaCountDownCss = ".s-count-down-horizontal{background-color:rgba(0, 0, 0, 0.06);background-color:color-mix(in srgb, var(--color-primary) 10%, transparent)}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h } from './index-Cb4NFvMH.js';
5
5
  import { C as CameraIcon } from './camera-C6jIkM-X.js';
6
6
  import { F as FormFieldTypes } from './interfaces-OF8QcbMM.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const DEBUG_KEY = 'salla-delivery-promise-debug';
7
7
  function log(message, data) {
@@ -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-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaEditOrderButtonCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { F as FilterOptionTypes } from './interfaces-DL4h2bc3.js';
6
6
  import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const SallaFulfillmentMethods = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h } from './index-Cb4NFvMH.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
7
7
  import { S as SICancel } from './cancel-8Tsmrwno.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const SallaHook = class {
7
7
  constructor(hostRef) {
@@ -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-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaInstallmentCss = "salla-installment:empty{display:none}#tabbyPromoWrapper{background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);margin-bottom:20px;border:unset !important;font-weight:500}.salla-y #tabbyPromoWrapper{border:1px solid var(--color-grey-dark);border-radius:12px}#tabbyPromoWrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}#tabbyPromoWrapper #tabbyPromo *{font-family:var(--font-main)}#tabbyPromoWrapper #tabbyPromo>div>div{max-width:none;box-shadow:none;border:none}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet{max-width:100%;min-height:100px;padding:18px 20px;border:none !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__text,#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-size:var(--font-sm);color:var(--color-text) !important}#tabbyPromoWrapper #tabbyPromo .tabby-promo-snippet__link{font-weight:bold}.tabby-promo-wrapper #tabby-promo{font-family:var(--font-main) !important}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-title{font-size:var(--font-md)}.tabby-promo-wrapper #tabby-promo .tabby-promo__feature-desc{font-size:var(--font-sm);line-height:20px}.tamara-product-widget{margin-bottom:20px}.tamara-product-widget,.spotii-wrapper{min-height:100px;position:relative;color:var(--main-text-color);font-size:var(--font-sm);line-height:1.25;padding:20px 20px 20px 115px !important;background:white;border-radius:0.375rem;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);border:unset !important;font-family:inherit !important;font-weight:500}.salla-y .tamara-product-widget,.salla-y .spotii-wrapper{border-radius:12px;border:1px solid var(--color-grey-dark)}.tamara-product-widget:hover,.spotii-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.tamara-product-widget .spotii-logo,.spotii-wrapper .spotii-logo{float:left;margin:0 0 0 -75px}.ltr .tamara-product-widget,.ltr .spotii-wrapper{text-align:left;padding:18px 100px 18px 20px !important}.ltr .tamara-product-widget .spotii-logo,.ltr .spotii-wrapper .spotii-logo{float:right;margin:0 -75px 0 0}.ltr .tamara-product-widget .spotii-product-widget,.ltr .spotii-wrapper .spotii-product-widget{text-align:left !important}.spotii-wrapper{margin-bottom:20px}.spotii-wrapper .spotii-promo{font-size:var(--font-md)}.spotii-wrapper .spotii-product-widget{font-size:var(--font-sm) !important;margin-top:10px}.tamara-product-widget .tamara-logo{position:absolute;left:20px !important;top:35px !important;margin:0 !important;height:24px !important}.ltr .tamara-product-widget .tamara-logo{right:20px !important;left:auto !important}.tamara-product-widget span{font-family:var(--font-main);font-size:var(--font-sm);color:var(--color-text)}.tamara-product-widget span:last-child{display:block;position:relative;margin-top:8px}.tamara-popup__wrap{overflow:auto !important}.s-installment-mispay-wrapper,.s-installment-madfu-wrapper,.s-installment-emkan-wrapper,.s-installment-rajehi-wrapper{font-size:14px;text-align:right;padding:20px;gap:42px;line-height:22px;color:rgb(0, 0, 0);min-width:100%;box-sizing:border-box;position:relative;background-color:white;border-radius:10px;margin:15px 0;display:flex;transition:box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1)}.s-installment-mispay-wrapper:hover,.s-installment-madfu-wrapper:hover,.s-installment-emkan-wrapper:hover,.s-installment-rajehi-wrapper:hover{box-shadow:0 0 rgba(0, 0, 0, 0), 0 0 rgba(0, 0, 0, 0), 5px 10px 30px rgba(43, 45, 52, 0.0509803922)}.s-installment-mispay-content,.s-installment-madfu-content,.s-installment-emkan-content,.s-installment-rajehi-content{display:flex;flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center;gap:1rem}.s-installment-mispay-content-text,.s-installment-madfu-content-text,.s-installment-emkan-content-text,.s-installment-rajehi-content-text{color:var(--main-text-color);font-size:14px;font-weight:500;margin:0 16px 0 0;width:80%;left:14px;text-align:left}.s-installment-mispay-content img,.s-installment-madfu-content img,.s-installment-emkan-content img,.s-installment-rajehi-content img{height:28px;width:70px;display:inline-block;max-height:100%;vertical-align:middle;fill:none;stroke:unset;width:auto}.rtl .s-installment-mispay-content-text,.rtl .s-installment-madfu-content-text,.rtl .s-installment-emkan-content-text,.rtl .s-installment-rajehi-content-text{right:14px;text-align:right;margin:0 0 0 16px}.rtl .s-installment-mispay-content img,.rtl .s-installment-madfu-content img,.rtl .s-installment-emkan-content img,.rtl .s-installment-rajehi-content img{left:14px !important}.ltr .s-installment-mispay-content img,.ltr .s-installment-madfu-content img,.ltr .s-installment-emkan-content img,.ltr .s-installment-rajehi-content img{right:14px !important}.s-installment-rajehi-content img{width:70px !important;height:40px !important}.s-installment-emkan-content img{height:35px !important}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaListTileCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const SallaLocalizationModal = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, F as Fragment, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaLoginModalCss = "iframe{-moz-transition:height 0.3s;-ms-transition:height 0.3s;-o-transition:height 0.3s;-webkit-transition:height 0.3s;transition:height 0.3s;width:100%}";
7
7
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { s as setTranslations } from './translations-B-Rj6b9M.js';
6
6
  import { S as SIGift } from './gift-CXRKXFgT.js';
7
- import { T as TrackedPromise } from './tracked-promise-BD-FZk2P.js';
7
+ import { T as TrackedPromise } from './tracked-promise-Dl5Y2VO1.js';
8
8
 
9
9
  const sallaLoyaltyProgramCss = "";
10
10
 
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BwsreBbG.js';
5
- import { c as closeModals, f as formattedPointsJsx } from './functions-JPNAXx4d.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
+ import { c as closeModals, f as formattedPointsJsx } from './functions-DqpTrGHa.js';
6
6
  import { S as SIGift } from './gift-CXRKXFgT.js';
7
7
  import { S as SICart2 } from './cart2-D1s2kXqL.js';
8
8
  import { S as SIUserAdd } from './user-add-QpH8MU22.js';
@@ -1,15 +1,15 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { h, r as registerInstance } from './index-BwsreBbG.js';
4
+ import { h, r as registerInstance } from './index-Cb4NFvMH.js';
5
5
  import { s as setTranslations } from './translations-B-Rj6b9M.js';
6
- import { n as normalizeLoyaltyData, c as closeModals } from './functions-JPNAXx4d.js';
6
+ import { n as normalizeLoyaltyData, c as closeModals } from './functions-DqpTrGHa.js';
7
7
  import { S as Star } from './star2-D4oPi1Ov.js';
8
8
  import { S as SICancel } from './cancel-8Tsmrwno.js';
9
9
  import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
10
10
  import { S as SIShipping } from './shipping-CZRcMGA9.js';
11
11
  import { S as SICart2 } from './cart2-D1s2kXqL.js';
12
- import { T as TrackedPromise } from './tracked-promise-BD-FZk2P.js';
12
+ import { T as TrackedPromise } from './tracked-promise-Dl5Y2VO1.js';
13
13
 
14
14
  var PrizeImage = `<svg xmlns="http://www.w3.org/2000/svg" width="77" height="77" fill="none" viewBox="0 0 57 57"><rect width="56.3" height="55.9" x=".4" y=".2" fill="#FFF5E5" rx="27.9"/><g clip-path="url(#a)"><path fill="#EE9D0D" d="M16.7 27.5h17.5v12.2a1 1 0 0 1-1 1H17.7a1 1 0 0 1-1-1V27.5Z"/><path fill="#C7830B" d="M34.2 27.8v6l-6.8-6.3H34l.3.3Z"/><path fill="#C7830B" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EA2B2D" d="m29.9 15.8-.3.1a2.4 2.4 0 0 0-1.4 1.5l-.2.8-.4.2a2.4 2.4 0 0 0-1.1 1.4l4.2 3.9L33 21l.2-2.9a2.4 2.4 0 0 0-3.3-2.4ZM41.1 26.3v.2a2.4 2.4 0 0 1-1.5 1.6l-.7.3-.2.3a2.4 2.4 0 0 1-1.3 1.3l-4.2-4 2.4-2.5 2.9-.3a2.4 2.4 0 0 1 2.6 3.1Z"/><path fill="#CB2527" d="M23.7 27.5h3.5v13.1h-3.5V27.5Z"/><path fill="#EA2B2D" d="M16.7 32.3h17.5v3.5H16.7v-3.5Z"/><path fill="#CB2527" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EE9D0D" d="M25.3 18.7 38.6 31a1 1 0 0 1 0 1.4l-2.3 2.4-14.7-13.7 2.3-2.5a1 1 0 0 1 1.4 0Z"/><path fill="#CB2527" d="m30.3 23.4 3.2 3-3 3.2-3.2-3 3-3.2ZM31.8 22.8a.4.4 0 0 1-.3-.1l-.3-.4A5.9 5.9 0 0 1 30 18a.4.4 0 0 1 .9 0 5 5 0 0 0 1 3.7l.3.3a.4.4 0 0 1-.4.7Z"/><path fill="#EA2B2D" d="M30.7 23.7c-1.9.7-3.8 1-5.7.9h-1.1l1.9 1.7-.6 1.9 1.8-.6c1.7-.5 3.2-1.4 4.6-2.5l.3-.2-1.2-1.2Z"/><path fill="#CB2527" d="M37.8 26.4c-1.1 0-2.3-.3-3.2-1l-.4-.2a.4.4 0 0 1 0-.8.4.4 0 0 1 .5 0l.3.3a5 5 0 0 0 3.7.7.4.4 0 1 1 .2 1 6 6 0 0 1-1 0Z"/><path fill="#EA2B2D" d="M33.2 26c-.5 2-.7 3.9-.5 5.8l.1 1.1-1.9-1.8-1.8.7.4-1.8c.4-1.7 1.2-3.3 2.2-4.8l.2-.3 1.3 1.2Z"/><path fill="#6699CE" d="M21.5 17.4a.9.9 0 1 0 0-1.7.9.9 0 0 0 0 1.7Z"/><path fill="#FAA6B2" d="M16.7 27.5a.9.9 0 1 0 0-1.8.9.9 0 0 0 0 1.8Z"/><path fill="#A6DEFF" d="M18.4 17.9a.4.4 0 0 1-.4-.3v-.1a1.4 1.4 0 0 0-1.3-1 .4.4 0 0 1-.2-.8h.2a2.3 2.3 0 0 1 2.1 1.5.4.4 0 0 1-.4.7ZM20.6 25.6h-.2v-.1a1 1 0 0 0-1.1 0 .4.4 0 0 1-.5-.8 1.8 1.8 0 0 1 2 0 .4.4 0 0 1-.2.9Z"/><path fill="#EEB436" d="m17.6 18.6 1.3 1.2 1.8-.4-.7 1.7.9 1.6-1.8-.2-1.2 1.3-.4-1.8-1.7-.7 1.6-.9.2-1.8ZM23 26.6l-.5 1.8 1.2 1.3-1.8.2-1 1.5-.6-1.7-1.8-.4 1.4-1.1-.2-1.9 1.6 1 1.6-.7Z"/><path fill="#F72D2F" d="m33.2 26-2.5-2.3L33 21a4 4 0 0 1 2.6 2.4l-2.4 2.6Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M15.8 15.7h25.4v25H15.8z"/></clipPath></defs></svg>`;
15
15
 
@@ -62,17 +62,19 @@ const SallaLoyaltyPanel = class {
62
62
  render() {
63
63
  const prizesGroups = this.program.data.prizes;
64
64
  const prizesCount = this.program.data.prizes_count;
65
- const isLoadingPoints = this.points.status === 'pending' && this.points.data === null && !this.customerPoints;
66
- const customerPoints = isLoadingPoints ? '---' : (this.points.data ?? this.customerPoints ?? 0);
65
+ const customerPoints = (this.points.data ?? this.customerPoints ?? 0);
67
66
  if (this.prizeTitle && this.prizePoints) {
68
67
  return (h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, h("salla-list-tile", { class: "s-loyalty-program-after-exchange" }, h("div", { slot: "title", class: "s-loyalty-program-after-exchange-title" }, this.prizeTitle, " \u00A0 - \u00A0 ", this.prizePoints, " ", salla.lang.get('pages.loyalty_program.point')), h("div", { slot: "action", class: "s-loyalty-program-after-exchange-action" }, h("salla-button", { class: "s-loyalty-program-after-exchange-reset", shape: "icon", fill: 'outline', color: "danger", size: "small", onClick: () => salla.loyalty.reset() }, h("span", { innerHTML: SICancel }))))));
69
68
  }
69
+ if (!customerPoints || customerPoints === 0) {
70
+ return null;
71
+ }
70
72
  return (h("div", { class: "" }, h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, h("salla-list-tile", { class: 's-loyalty-program-panel-widget' }, h("div", { slot: "icon", class: "s-loyalty-program-panel-widget-icon", innerHTML: Star }), h("div", { slot: "subtitle" }, salla.lang.get('pages.loyalty_program.cart_total_point_summary', { "balance": customerPoints }), h("salla-button", { shape: "link", color: "primary", onClick: () => {
71
73
  if (['error', 'idle'].includes(this.program.status)) {
72
74
  this.program();
73
75
  }
74
76
  this.rewardsModal.open();
75
- } }, customerPoints !== '---' && customerPoints ? salla.lang.get('pages.loyalty_program.cart_point_exchange_now') : salla.lang.get('blocks.header.login'))))), h("salla-modal", { id: "loyalty-rewards-modal", isLoading: this.program.status === 'pending', ref: modal => this.rewardsModal = modal, class: "s-loyalty-program-rewards-cart s-loyalty-program-modal", width: "lg", noPadding: true }, h("div", { slot: "loading" }, h("salla-loading", null)), this.program.status === 'success' ? h("div", { class: "s-loyalty-program-rewards-container-cart" }, h("div", { class: "s-loyalty-program-rewards-cart-header" }, h("div", { innerHTML: PrizeImage }), h("div", { class: "s-loyalty-program-panel-content" }, h("h1", null, this.program.data.prize_promotion_title), h("p", null, this.program.data.prize_promotion_description))), h("div", { class: {
77
+ } }, salla.lang.get('pages.loyalty_program.cart_point_exchange_now'))))), h("salla-modal", { id: "loyalty-rewards-modal", isLoading: this.program.status === 'pending', ref: modal => this.rewardsModal = modal, class: "s-loyalty-program-rewards-cart s-loyalty-program-modal", width: "lg", noPadding: true }, h("div", { slot: "loading" }, h("salla-loading", null)), this.program.status === 'success' ? h("div", { class: "s-loyalty-program-rewards-container-cart" }, h("div", { class: "s-loyalty-program-rewards-cart-header" }, h("div", { innerHTML: PrizeImage }), h("div", { class: "s-loyalty-program-panel-content" }, h("h1", null, this.program.data.prize_promotion_title), h("p", null, this.program.data.prize_promotion_description))), h("div", { class: {
76
78
  's-loyalty-program-slider-arrows': true,
77
79
  's-loyalty-program-tabs-hider': prizesGroups.length < 2 || prizesCount < 2,
78
80
  } }, h("salla-tabs", null, prizesGroups.map((group) => (h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], h("span", null, group.title)))), prizesGroups.map((group) => (h("salla-tab-content", { slot: "content", name: group.type }, h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":3,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, h("div", { slot: "items" }, group.items.map((prize) => h("salla-reward-card", { prize: prize, onAreaClick: () => {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaLoyaltyPrizeItemCss = "salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";
7
7
 
@@ -1,16 +1,16 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { h, r as registerInstance } from './index-BwsreBbG.js';
4
+ import { h, r as registerInstance } from './index-Cb4NFvMH.js';
5
5
  import { s as setTranslations } from './translations-B-Rj6b9M.js';
6
- import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-JPNAXx4d.js';
6
+ import { n as normalizeLoyaltyData, a as nearestLowerMultiple, c as closeModals } from './functions-DqpTrGHa.js';
7
7
  import { S as SIPercentage, a as SILayoutGrid } from './percentage-Bs6JxDkg.js';
8
8
  import { S as SIShipping } from './shipping-CZRcMGA9.js';
9
9
  import { S as SICart2 } from './cart2-D1s2kXqL.js';
10
10
  import { S as SIUserAdd } from './user-add-QpH8MU22.js';
11
11
  import { S as SIGiftSharing } from './gift-sharing-0-eTJXSD.js';
12
12
  import { S as SIGift } from './gift-CXRKXFgT.js';
13
- import { T as TrackedPromise } from './tracked-promise-BD-FZk2P.js';
13
+ import { T as TrackedPromise } from './tracked-promise-Dl5Y2VO1.js';
14
14
  import { a as anime } from './anime.es-CgtvEd63.js';
15
15
 
16
16
  var SICartUpload = `<!-- Generated by IcoMoon.io -->
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h } from './index-BwsreBbG.js';
5
- import { c as closeModals } from './functions-JPNAXx4d.js';
4
+ import { r as registerInstance, c as createEvent, h } from './index-Cb4NFvMH.js';
5
+ import { c as closeModals } from './functions-DqpTrGHa.js';
6
6
  import { S as SIGift } from './gift-CXRKXFgT.js';
7
7
 
8
8
  const sallaLoyaltyProgramCss = "";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h } from './index-Cb4NFvMH.js';
5
5
  import { S as Star } from './star2-D4oPi1Ov.js';
6
6
  import { S as SICancel } from './cancel-8Tsmrwno.js';
7
7
 
@@ -62,6 +62,8 @@ const sallaLoyaltyCss = "";
62
62
  const SallaLoyalty = class {
63
63
  constructor(hostRef) {
64
64
  registerInstance(this, hostRef);
65
+ this.activeTabType = '';
66
+ this.tabsKey = 0;
65
67
  this.selectedItem = undefined;
66
68
  /**
67
69
  * Does the merchant allow to login using email
@@ -92,6 +94,11 @@ const SallaLoyalty = class {
92
94
  this.customerPoints = cart.loyalty.customer_points || this.customerPoints;
93
95
  });
94
96
  }
97
+ onTabSelected(event) {
98
+ const prize = this.loyaltyProgram?.prizes.find(p => p.title === event.detail?.name);
99
+ if (prize)
100
+ this.activeTabType = prize.type;
101
+ }
95
102
  setSelectedPrizeItem(item) {
96
103
  if (!this.selectedItem || this.selectedItem?.id != item.id) {
97
104
  this.selectedItem = item;
@@ -132,6 +139,8 @@ const SallaLoyalty = class {
132
139
  return await salla.loyalty.getProgram()
133
140
  .then(response => {
134
141
  this.loyaltyProgram = response.data;
142
+ this.activeTabType = this.loyaltyProgram.prizes[0]?.type || '';
143
+ this.tabsKey++;
135
144
  })
136
145
  .catch(e => {
137
146
  this.hasError = true;
@@ -197,8 +206,10 @@ const SallaLoyalty = class {
197
206
  h("salla-modal", { isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("div", { slot: "loading" }, h("div", { class: "s-loyalty-skeleton" }, h("salla-list-tile", { class: "s-loyalty-header" }, h("div", { slot: "icon", class: "s-loyalty-header-icon" }, h("salla-skeleton", { type: "circle", height: '6rem', width: '6rem' })), h("div", { slot: "title", class: "s-loyalty-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-loyalty-skeleton-cards" }, [...Array(3)].map(() => h("div", { class: "s-loyalty-prize-item swiper-slide" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-loyalty-prize-item-title" }, h("salla-skeleton", { height: '15px', width: '75%' })), h("div", { class: "s-loyalty-prize-item-subtitle" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-loyalty-prize-item-points" }, h("salla-skeleton", { height: '15px', width: '100px' }), h("div", { class: "s-loyalty-prize-item-check" }, h("salla-skeleton", { height: '1rem', width: '1rem', type: 'circle' })))))))), !this.hasError && !!this.loyaltyProgram ?
198
207
  [
199
208
  h("salla-list-tile", { id: 's-loyalty-header', class: "s-loyalty-header" }, h("div", { slot: "icon", class: "s-loyalty-header-icon", innerHTML: GiftImg }), h("div", { slot: "title", class: "s-loyalty-header-title" }, this.loyaltyProgram.prize_promotion_title), h("div", { slot: "subtitle", class: "s-loyalty-header-subtitle" }, this.loyaltyProgram.prize_promotion_description)),
200
- h("salla-tabs", null, this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title }, h("span", null, prize.title))), this.loyaltyProgram.prizes.map((prize, index) => h("salla-tab-content", { slot: "content", name: prize.title }, h("salla-slider", { class: "s-loyalty-slider", loop: false, "controls-outer": true, id: 'loyalty-popup-slider-' + index, type: "carousel" }, h("div", { slot: 'items' }, prize.items.map((item) => this.prizeItem(item))))))),
201
- h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, salla.lang.get('pages.loyalty_program.exchange_points')),
209
+ h("salla-tabs", { key: this.tabsKey }, this.loyaltyProgram.prizes.map((prize) => h("salla-tab-header", { slot: "header", name: prize.title }, h("span", null, prize.title))), this.loyaltyProgram.prizes.map((prize, index) => h("salla-tab-content", { slot: "content", name: prize.title }, h("salla-slider", { class: "s-loyalty-slider", loop: false, "controls-outer": true, id: 'loyalty-popup-slider-' + index, type: "carousel" }, h("div", { slot: 'items' }, prize.items.map((item) => this.prizeItem(item))))))),
210
+ this.activeTabType?.toUpperCase() === 'FREE_PRODUCT'
211
+ ? h("a", { href: salla.url.get(''), class: "s-loyalty-program-redeem-btn s-button-element s-button-btn s-button-solid s-button-wide s-button-primary s-button-wrap" }, salla.lang.get('pages.loyalty_program.shop_now'))
212
+ : h("salla-button", { disabled: !this.selectedItem, width: "wide", class: "s-loyalty-program-redeem-btn", onClick: () => this.openConfirmation() }, salla.lang.get('pages.loyalty_program.exchange_points')),
202
213
  ]
203
214
  : h("salla-placeholder", { class: "s-loyalty-placeholder", alignment: "center" }, !!this.errorMessage ? h("span", { slot: "description" }, this.errorMessage) : '')),
204
215
  ];
@@ -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-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { S as SICancel } from './cancel-8Tsmrwno.js';
6
6
 
7
7
  const sallaMaintenanceAlertCss = ".s-maintenance-alert-wrapper{display:flex;min-height:40px;width:100%;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(26, 38, 61, var(--tw-bg-opacity));padding:0.25rem 0.5rem;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-wrapper a{transition:0.35s cubic-bezier(0.2, 1, 0.3, 1)}.s-maintenance-alert-wrapper *{color:inherit}@media (min-width: 640px){.s-maintenance-alert-wrapper{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-content{margin-top:1rem;margin-bottom:1rem;display:flex;width:100%;align-items:center;justify-content:space-between}@media (min-width: 640px){.s-maintenance-alert-content{padding-left:2rem;padding-right:2rem}}.s-maintenance-alert-container{display:flex;align-items:center}.s-maintenance-alert-icon{margin-right:1.25rem;display:none}@media (min-width: 640px){.s-maintenance-alert-icon{display:block}}.s-maintenance-alert-text h2{margin-bottom:0.5rem;font-size:0.875rem;font-weight:700;line-height:1.4}@media (min-width: 640px){.s-maintenance-alert-text h2{font-size:1.5rem;line-height:2rem}}.s-maintenance-alert-text p{margin:0px;text-align:right;font-size:10px;line-height:1.2}@media (min-width: 640px){.s-maintenance-alert-text p{text-align:center;font-size:0.75rem;line-height:1}}.s-maintenance-alert-btn{position:relative;margin-left:4px;margin-right:4px;display:inline-block;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;border-radius:0.125rem;border-width:1px;--tw-border-opacity:1;border-color:rgba(93, 213, 196, var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(93, 213, 196, var(--tw-bg-opacity));padding:0.5rem;text-align:center;vertical-align:middle;font-size:0.875rem;font-weight:400;line-height:1.4;--tw-text-opacity:1;color:rgba(255, 255, 255, var(--tw-text-opacity))}.s-maintenance-alert-btn:hover{--tw-bg-opacity:1;background-color:rgba(53, 203, 181, var(--tw-bg-opacity))}.s-maintenance-alert-btn *{pointer-events:none}[dir=rtl] .s-maintenance-alert-btn{margin-left:1.25rem;margin-right:0}@media (min-width: 640px){.s-maintenance-alert-btn{padding:0.5rem 1rem}}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { L as Location } from './location-BO5AoBAP.js';
6
6
 
7
7
  var Edit = `<!-- Generated by IcoMoon.io -->
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, F as Fragment } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaMenuCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaMetadataCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaMultipleBundleProductCartCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
6
 
7
7
  const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
@@ -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-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaMultipleBundleProductCss = ":host{display:block}";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaNotificationsCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { H as Helper } from './Helper-DFMXF2_h.js';
6
6
  import './anime.es-CgtvEd63.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-Cb4NFvMH.js';
5
5
  import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
6
6
  import { S as SITag } from './tag-cgSL_BIo.js';
7
7
  import { S as SICart2 } from './cart2-D1s2kXqL.js';
@@ -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-BwsreBbG.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-Cb4NFvMH.js';
5
5
 
6
6
  var PageType;
7
7
  (function (PageType) {
@@ -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-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaOrderDetailsMultipleBundleProductCss = "";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  var copyIcon = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, H as Host } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, h, F as Fragment, H as Host } from './index-Cb4NFvMH.js';
5
5
 
6
6
  const sallaOrderDetailsCss = "";
7
7
 
@@ -1,15 +1,19 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BwsreBbG.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-Cb4NFvMH.js';
5
+ import { a as getOrderEditProductMaxQuantity } from './helpers-DR_vlSvU.js';
6
+ import './interfaces-CoQJOPRz.js';
5
7
 
6
- const sallaOrderEditItemCss = "";
8
+ const sallaOrderEditItemCss = ":host{display:block}";
7
9
 
8
10
  const SallaOrderEditItem = class {
9
11
  constructor(hostRef) {
10
12
  registerInstance(this, hostRef);
11
13
  this.orderItemUpdated = createEvent(this, "orderItemUpdated");
12
14
  this.orderItemRemoved = createEvent(this, "orderItemRemoved");
15
+ this.quantityInput = null;
16
+ this.productOptions = null;
13
17
  this.handleQuantityChange = (event) => {
14
18
  const detail = event.detail;
15
19
  const newQuantity = detail?.quantity ?? parseInt(event.target.value, 10);
@@ -27,38 +31,30 @@ const SallaOrderEditItem = class {
27
31
  componentWillLoad() {
28
32
  this.quantity = this.item?.quantity || 1;
29
33
  }
30
- componentDidLoad() {
31
- const quantityEl = this.host.querySelector('salla-quantity-input');
32
- if (quantityEl) {
33
- quantityEl.addEventListener('change', this.handleQuantityChange);
34
- }
35
- const optionsEl = this.host.querySelector('salla-product-options');
36
- if (optionsEl) {
37
- optionsEl.addEventListener('change', this.handleOptionsChange);
38
- }
39
- }
40
- disconnectedCallback() {
41
- const quantityEl = this.host.querySelector('salla-quantity-input');
42
- if (quantityEl) {
43
- quantityEl.removeEventListener('change', this.handleQuantityChange);
44
- }
45
- const optionsEl = this.host.querySelector('salla-product-options');
46
- if (optionsEl) {
47
- optionsEl.removeEventListener('change', this.handleOptionsChange);
48
- }
34
+ handleItemChange(newItem) {
35
+ const newQuantity = newItem?.quantity || 1;
36
+ if (newQuantity === this.quantity)
37
+ return;
38
+ this.quantity = newQuantity;
39
+ this.quantityInput?.setValue?.(newQuantity, false);
49
40
  }
50
41
  get hasOptions() {
51
- const options = this.item.product?.options;
52
- return options && options.length > 0;
42
+ return (this.item.product?.options?.length || 0) > 0;
53
43
  }
54
44
  async getSelectedOptions() {
55
- const optionsEl = this.host.querySelector(`salla-product-options[product-id="${this.item.product?.id}"]`);
56
- return (await optionsEl?.getSelectedOptionsData()) || {};
45
+ return (await this.productOptions?.getSelectedOptionsData?.()) || {};
46
+ }
47
+ async getOptionsData() {
48
+ return (await this.productOptions?.getOptionsData?.()) || this.item.product?.options || [];
57
49
  }
58
50
  async emitUpdate(quantity) {
59
- const detail = { itemId: this.item?.id, quantity };
51
+ const itemId = this.item?.id;
52
+ if (itemId == null)
53
+ return;
54
+ const detail = { itemId, quantity };
60
55
  if (this.hasOptions) {
61
56
  detail.options = await this.getSelectedOptions();
57
+ detail.optionDefinitions = await this.getOptionsData();
62
58
  }
63
59
  this.orderItemUpdated.emit(detail);
64
60
  }
@@ -77,16 +73,19 @@ const SallaOrderEditItem = class {
77
73
  const imageAlt = product?.image?.alt || productName;
78
74
  const productUrl = product?.url || '#';
79
75
  const price = product?.price;
80
- const maxQuantity = product?.max_quantity;
76
+ const maxQuantity = getOrderEditProductMaxQuantity(product);
81
77
  const weightLabel = product?.weight_label;
82
78
  const options = this.item.product?.options;
79
+ const optionsInstanceKey = `order-edit-item-${this.item.id}-${product?.id}`;
83
80
  const quantityAttrs = { value: this.quantity };
84
81
  if (maxQuantity) {
85
82
  quantityAttrs.max = maxQuantity;
86
83
  }
87
- return (h(Host, null, h("div", null, h("div", { class: "s-order-edit-item-header" }, h("div", { class: "s-order-edit-item-media" }, imageUrl && (h("a", { href: productUrl }, h("img", { src: imageUrl, alt: imageAlt, class: "s-order-edit-item-image" }))), h("div", { class: "s-order-edit-item-details" }, h("h2", { class: "s-order-edit-item-name" }, h("a", { href: productUrl, class: "s-order-edit-item-link" }, productName)), price != null && (h("span", { class: "s-order-edit-item-price", innerHTML: salla.money(price) })), weightLabel && (h("p", { class: "s-order-edit-item-weight" }, salla.lang.getWithDefault('pages.products.weight', 'الوزن'), " ", weightLabel)))), h("salla-button", { type: "button", shape: "icon", size: "small", color: "danger", "aria-label": salla.lang.getWithDefault('common.elements.delete', 'حذف'), onClick: () => this.removeItem() }, h("i", { class: "sicon-cancel" }))), h("div", { class: "s-order-edit-item-quantity" }, h("h3", { class: "s-order-edit-item-quantity-label" }, salla.lang.getWithDefault('common.elements.quantity', 'الكمية')), h("div", { class: "s-order-edit-item-quantity-input" }, h("salla-quantity-input", { ...quantityAttrs }))), this.hasOptions && (h("form", { onSubmit: e => e.preventDefault() }, h("salla-product-options", { "product-id": product.id, options: JSON.stringify(options), key: `${product.id}-order-edit-item-options` }))))));
84
+ return (h(Host, null, h("div", null, h("div", { class: "s-order-edit-item-header" }, h("div", { class: "s-order-edit-item-media" }, imageUrl && (h("a", { href: productUrl }, h("img", { src: imageUrl, alt: imageAlt, class: "s-order-edit-item-image" }))), h("div", { class: "s-order-edit-item-details" }, h("h2", { class: "s-order-edit-item-name" }, h("a", { href: productUrl, class: "s-order-edit-item-link" }, productName)), price != null && (h("span", { class: "s-order-edit-item-price", innerHTML: salla.money(price) })), weightLabel && (h("p", { class: "s-order-edit-item-weight" }, salla.lang.getWithDefault('pages.products.weight', 'الوزن'), " ", weightLabel)))), h("salla-button", { type: "button", shape: "icon", size: "small", color: "danger", "aria-label": salla.lang.getWithDefault('common.elements.delete', 'حذف'), onClick: () => this.removeItem() }, h("i", { class: "sicon-cancel" }))), h("div", { class: "s-order-edit-item-quantity" }, h("h3", { class: "s-order-edit-item-quantity-label" }, salla.lang.getWithDefault('common.elements.quantity', 'الكمية')), h("div", { class: "s-order-edit-item-quantity-input" }, h("salla-quantity-input", { ref: el => (this.quantityInput = el), ...quantityAttrs, onChange: this.handleQuantityChange }))), this.hasOptions && (h("form", { class: "s-order-edit-item-options", onSubmit: e => e.preventDefault() }, h("salla-product-options", { ref: el => (this.productOptions = el), onChange: this.handleOptionsChange, "product-id": product.id, "unique-key": optionsInstanceKey, options: JSON.stringify(options), key: `${optionsInstanceKey}-options` }))))));
88
85
  }
89
- get host() { return getElement(this); }
86
+ static get watchers() { return {
87
+ "item": ["handleItemChange"]
88
+ }; }
90
89
  };
91
90
  SallaOrderEditItem.style = sallaOrderEditItemCss;
92
91