@salla.sa/twilight-components 2.14.401 → 2.14.403

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 (523) hide show
  1. package/dist/cjs/calendar-D-PUoCDH.js +13 -0
  2. package/dist/cjs/{cancel-De6vslRA.js → cancel-B5SbMYEk.js} +2 -2
  3. package/dist/cjs/cart2-B98PSAFN.js +13 -0
  4. package/dist/cjs/{check-x3w3-gpj.js → check-BnVBPQNp.js} +2 -2
  5. package/dist/cjs/{filepond-Cyf8KBGp.js → filepond-CHgj_x6Q.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-file-poster--yUgJ7UK.js → filepond-plugin-file-poster-BM8akyHG.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-file-validate-size-uHtguPuy.js → filepond-plugin-file-validate-size-COf4Mbms.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-file-validate-type-COz5Ivmq.js → filepond-plugin-file-validate-type-Mc6-vU_9.js} +1 -1
  9. package/dist/cjs/{filepond-plugin-image-edit-CHInCcL8.js → filepond-plugin-image-edit-Cegsph-w.js} +1 -1
  10. package/dist/cjs/{filepond-plugin-image-exif-orientation-CIh1qmKb.js → filepond-plugin-image-exif-orientation-Ca7MqBpy.js} +1 -1
  11. package/dist/cjs/{filepond-plugin-image-preview-C2lHZO0J.js → filepond-plugin-image-preview-C58SPQ5e.js} +1 -1
  12. package/dist/cjs/functions-DyPV5TVV.js +74 -0
  13. package/dist/{esm/gift-BChI23pG.js → cjs/gift-DbNivqYO.js} +4 -2
  14. package/dist/cjs/gift-sharing-BE0uszUm.js +13 -0
  15. package/dist/cjs/{index-CnTFTuui.js → index-DagepTOF.js} +1 -1
  16. package/dist/cjs/{index-CsHE7up1.js → index-DdhkQnYm.js} +61 -26
  17. package/dist/cjs/iphone-x-qC21wCLj.js +13 -0
  18. package/dist/cjs/loader.cjs.js +2 -2
  19. package/dist/cjs/{mail-CO8cFZH7.js → mail-Bgvt2hc9.js} +2 -2
  20. package/dist/cjs/percentage-Fs83gq6Q.js +21 -0
  21. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-accordion_6.cjs.entry.js +5 -5
  23. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +5 -5
  24. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
  26. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-badge.cjs.entry.js +95 -0
  29. package/dist/cjs/salla-booking-field_7.cjs.entry.js +20 -26
  30. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +18 -4
  31. package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +4 -4
  33. package/dist/cjs/salla-comment-form_8.cjs.entry.js +11 -11
  34. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
  36. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-count-down.cjs.entry.js +2 -2
  38. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-edit-order-button.cjs.entry.js +65 -0
  41. package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
  42. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-gifting.cjs.entry.js +7 -13
  45. package/dist/cjs/salla-hook.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +69 -0
  52. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +239 -0
  53. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +103 -0
  54. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-loyalty-program.cjs.entry.js +108 -64
  56. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +54 -0
  57. package/dist/cjs/salla-loyalty.cjs.entry.js +3 -3
  58. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +3 -3
  59. package/dist/cjs/salla-map.cjs.entry.js +4 -4
  60. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
  63. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
  64. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
  65. package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-offer-modal.cjs.entry.js +5 -16
  68. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
  72. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-summary.cjs.entry.js +4 -4
  75. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  78. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  79. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  80. package/dist/cjs/{salla-product-card.cjs.entry.js → salla-product-card_2.cjs.entry.js} +120 -6
  81. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  82. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-quick-order.cjs.entry.js +6 -12
  85. package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -3
  86. package/dist/cjs/salla-reward-action_4.cjs.entry.js +243 -0
  87. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  88. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  89. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-social-share.cjs.entry.js +5 -5
  92. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  94. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  96. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-menu.cjs.entry.js +5 -5
  98. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  100. package/dist/cjs/salla-verify.cjs.entry.js +3 -3
  101. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  102. package/dist/cjs/shipping-CPYcgyCL.js +13 -0
  103. package/dist/cjs/tag-D-PcUR33.js +12 -0
  104. package/dist/cjs/tracked-promise-6pAeDi6L.js +31 -0
  105. package/dist/cjs/translations-DMwpLvqi.js +294 -0
  106. package/dist/cjs/twilight.cjs.js +2 -2
  107. package/dist/cjs/user-add-BCGrddZS.js +13 -0
  108. package/dist/cjs/{vanilla-picker-DYNK0WJo.js → vanilla-picker-BMBx7QVh.js} +1 -1
  109. package/dist/collection/assets/images/prize-image.svg +1 -0
  110. package/dist/collection/collection-manifest.json +11 -0
  111. package/dist/collection/components/salla-badge/salla-badge.css +0 -0
  112. package/dist/collection/components/salla-badge/salla-badge.js +117 -0
  113. package/dist/collection/components/salla-booking-field/salla-booking-field.js +1 -1
  114. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +2 -2
  115. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +17 -3
  116. package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +1 -1
  117. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
  118. package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
  119. package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
  120. package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
  121. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
  122. package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
  123. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
  124. package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.css +3 -0
  125. package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.js +99 -0
  126. package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
  127. package/dist/collection/components/salla-filters/salla-filters.js +1 -1
  128. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
  129. package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
  130. package/dist/collection/components/salla-hook/salla-hook.js +1 -1
  131. package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
  132. package/dist/collection/components/salla-loading/salla-loading.js +1 -1
  133. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
  134. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
  135. package/dist/collection/components/salla-loyalty-program/functions.js +53 -0
  136. package/dist/collection/components/salla-loyalty-program/interfaces.js +8 -1
  137. package/dist/collection/components/salla-loyalty-program/salla-loyalty-banner.js +69 -0
  138. package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +87 -0
  139. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +171 -0
  140. package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +219 -0
  141. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +104 -65
  142. package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +166 -0
  143. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +93 -0
  144. package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +92 -0
  145. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +206 -0
  146. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +109 -0
  147. package/dist/collection/components/salla-loyalty-program/translations.js +290 -0
  148. package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
  149. package/dist/collection/components/salla-map/salla-map.js +3 -3
  150. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
  151. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
  152. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
  153. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
  154. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
  155. package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
  156. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  157. package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
  158. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  159. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  160. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  161. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  162. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  163. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  164. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  165. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  166. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  167. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  168. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  169. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  170. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  171. package/dist/collection/components/salla-search/salla-search.js +5 -5
  172. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  173. package/dist/collection/components/salla-social/salla-social.js +1 -1
  174. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  175. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  176. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  177. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  178. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  179. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  180. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  181. package/dist/components/calendar.js +11 -0
  182. package/dist/components/cart2.js +11 -0
  183. package/dist/components/functions.js +68 -0
  184. package/dist/components/gift-sharing.js +11 -0
  185. package/dist/components/index.js +2 -2
  186. package/dist/components/iphone-x.js +11 -0
  187. package/dist/components/percentage.js +18 -0
  188. package/dist/components/salla-badge.d.ts +11 -0
  189. package/dist/components/salla-badge.js +9 -0
  190. package/dist/components/salla-badge2.js +112 -0
  191. package/dist/components/salla-booking-field2.js +3 -9
  192. package/dist/components/salla-bottom-alert.js +2 -2
  193. package/dist/components/salla-bullet-delivery.js +17 -3
  194. package/dist/components/salla-cart-coupons.js +1 -1
  195. package/dist/components/salla-cart-summary.js +1 -1
  196. package/dist/components/salla-color-picker2.js +1 -1
  197. package/dist/components/salla-comment-form2.js +1 -1
  198. package/dist/components/salla-comment-item2.js +3 -3
  199. package/dist/components/salla-conditional-fields2.js +1 -1
  200. package/dist/components/salla-count-down2.js +1 -1
  201. package/dist/components/salla-datetime-picker2.js +1 -1
  202. package/dist/components/salla-edit-order-button.d.ts +11 -0
  203. package/dist/components/salla-edit-order-button.js +99 -0
  204. package/dist/components/salla-file-upload2.js +2 -2
  205. package/dist/components/salla-filters-widget2.js +2 -2
  206. package/dist/components/salla-filters.js +1 -1
  207. package/dist/components/salla-gifting.js +4 -10
  208. package/dist/components/salla-hook.js +1 -1
  209. package/dist/components/salla-list-tile2.js +1 -1
  210. package/dist/components/salla-loading2.js +1 -1
  211. package/dist/components/salla-localization-modal.js +1 -1
  212. package/dist/components/salla-loyalty-banner.d.ts +11 -0
  213. package/dist/components/salla-loyalty-banner.js +103 -0
  214. package/dist/components/salla-loyalty-hero.d.ts +11 -0
  215. package/dist/components/salla-loyalty-hero.js +9 -0
  216. package/dist/components/salla-loyalty-hero2.js +43 -0
  217. package/dist/components/salla-loyalty-panel.d.ts +11 -0
  218. package/dist/components/salla-loyalty-panel.js +250 -0
  219. package/dist/components/salla-loyalty-point.d.ts +11 -0
  220. package/dist/components/salla-loyalty-point.js +9 -0
  221. package/dist/components/salla-loyalty-point2.js +259 -0
  222. package/dist/components/salla-loyalty-prize-item.js +1 -1
  223. package/dist/components/salla-loyalty-program.js +233 -70
  224. package/dist/components/salla-loyalty-reward.d.ts +11 -0
  225. package/dist/components/salla-loyalty-reward.js +80 -0
  226. package/dist/components/salla-maintenance-alert.js +1 -1
  227. package/dist/components/salla-map2.js +3 -3
  228. package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
  229. package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
  230. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
  231. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  232. package/dist/components/salla-multiple-bundle-product.js +1 -1
  233. package/dist/components/salla-notification-item2.js +1 -1
  234. package/dist/components/salla-offer-modal.js +3 -14
  235. package/dist/components/salla-order-details.js +1 -1
  236. package/dist/components/salla-order-summary.js +1 -1
  237. package/dist/components/salla-payments.js +2 -2
  238. package/dist/components/salla-placeholder2.js +1 -1
  239. package/dist/components/salla-price-range2.js +2 -2
  240. package/dist/components/salla-product-availability2.js +1 -1
  241. package/dist/components/salla-product-card2.js +5 -5
  242. package/dist/components/salla-product-size-guide.js +2 -2
  243. package/dist/components/salla-quantity-input2.js +1 -1
  244. package/dist/components/salla-quick-buy2.js +1 -1
  245. package/dist/components/salla-quick-order.js +1 -7
  246. package/dist/components/salla-review-card2.js +1 -1
  247. package/dist/components/salla-reviews-page.js +1 -1
  248. package/dist/components/salla-reviews.js +1 -1
  249. package/dist/components/salla-reward-action.d.ts +11 -0
  250. package/dist/components/salla-reward-action.js +9 -0
  251. package/dist/components/salla-reward-action2.js +56 -0
  252. package/dist/components/salla-reward-card.d.ts +11 -0
  253. package/dist/components/salla-reward-card.js +9 -0
  254. package/dist/components/salla-reward-card2.js +44 -0
  255. package/dist/components/salla-reward-details.d.ts +11 -0
  256. package/dist/components/salla-reward-details.js +9 -0
  257. package/dist/components/salla-reward-details2.js +266 -0
  258. package/dist/components/salla-reward-exchange.d.ts +11 -0
  259. package/dist/components/salla-reward-exchange.js +9 -0
  260. package/dist/components/salla-reward-exchange2.js +81 -0
  261. package/dist/components/salla-scopes.js +1 -1
  262. package/dist/components/salla-search.js +5 -5
  263. package/dist/components/salla-skeleton2.js +1 -1
  264. package/dist/components/salla-social-share.js +1 -1
  265. package/dist/components/salla-social.js +1 -1
  266. package/dist/components/salla-tab-content2.js +1 -1
  267. package/dist/components/salla-tab-header2.js +1 -1
  268. package/dist/components/salla-tabs2.js +1 -1
  269. package/dist/components/salla-tel-input2.js +1 -1
  270. package/dist/components/salla-tooltip2.js +1 -1
  271. package/dist/components/salla-user-settings.js +1 -1
  272. package/dist/components/shipping.js +11 -0
  273. package/dist/components/tag.js +10 -0
  274. package/dist/components/tracked-promise.js +29 -0
  275. package/dist/components/translations.js +292 -0
  276. package/dist/esm/calendar-BkmanTR_.js +11 -0
  277. package/dist/esm/{cancel-BsLF_HK7.js → cancel-8Tsmrwno.js} +2 -2
  278. package/dist/esm/cart2-D1s2kXqL.js +11 -0
  279. package/dist/esm/{check-BsXh13x8.js → check-BZp0rKEO.js} +2 -2
  280. package/dist/esm/{filepond-DR4SNVzz.js → filepond-DSnpVe64.js} +1 -1
  281. package/dist/esm/{filepond-plugin-file-poster-D5SixGgC.js → filepond-plugin-file-poster-CIjT2DkD.js} +1 -1
  282. package/dist/esm/{filepond-plugin-file-validate-size-DsOh2L9N.js → filepond-plugin-file-validate-size-DfnQ9yTM.js} +1 -1
  283. package/dist/esm/{filepond-plugin-file-validate-type-B4O62KoP.js → filepond-plugin-file-validate-type-BFqVzf03.js} +1 -1
  284. package/dist/esm/{filepond-plugin-image-edit-Clnx4Mv4.js → filepond-plugin-image-edit-CFSURdY1.js} +1 -1
  285. package/dist/esm/{filepond-plugin-image-exif-orientation-BN-eLjue.js → filepond-plugin-image-exif-orientation-Df4vxbTN.js} +1 -1
  286. package/dist/esm/{filepond-plugin-image-preview-CYK3uEyM.js → filepond-plugin-image-preview-BP5v9jJo.js} +1 -1
  287. package/dist/esm/functions-B0QFNVX_.js +68 -0
  288. package/dist/{cjs/gift-CJ-3Yw_x.js → esm/gift-CXRKXFgT.js} +2 -4
  289. package/dist/esm/gift-sharing-0-eTJXSD.js +11 -0
  290. package/dist/esm/{index-BlBuuMQp.js → index-Noi8jmqR.js} +61 -27
  291. package/dist/esm/{index-D6k2MP-W.js → index-dal1uM4i.js} +1 -1
  292. package/dist/esm/iphone-x-CciN5Q_x.js +11 -0
  293. package/dist/esm/loader.js +3 -3
  294. package/dist/esm/{mail-DmgxDvXL.js → mail-DLNIOD9t.js} +2 -2
  295. package/dist/esm/percentage-Bs6JxDkg.js +18 -0
  296. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  297. package/dist/esm/salla-accordion_6.entry.js +5 -5
  298. package/dist/esm/salla-add-product-button_4.entry.js +5 -5
  299. package/dist/esm/salla-advertisement.entry.js +1 -1
  300. package/dist/esm/salla-alert_2.entry.js +3 -3
  301. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  302. package/dist/esm/salla-apps-icons.entry.js +1 -1
  303. package/dist/esm/salla-badge.entry.js +93 -0
  304. package/dist/esm/salla-booking-field_7.entry.js +20 -26
  305. package/dist/esm/salla-bullet-delivery.entry.js +18 -4
  306. package/dist/esm/salla-cart-coupons.entry.js +2 -2
  307. package/dist/esm/salla-cart-item-offers_2.entry.js +4 -4
  308. package/dist/esm/salla-comment-form_8.entry.js +11 -11
  309. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  310. package/dist/esm/salla-contacts.entry.js +3 -3
  311. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  312. package/dist/esm/salla-count-down.entry.js +2 -2
  313. package/dist/esm/salla-custom-fields.entry.js +1 -1
  314. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  315. package/dist/esm/salla-edit-order-button.entry.js +63 -0
  316. package/dist/esm/salla-filters-widget.entry.js +3 -3
  317. package/dist/esm/salla-filters.entry.js +2 -2
  318. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  319. package/dist/esm/salla-gifting.entry.js +7 -13
  320. package/dist/esm/salla-hook.entry.js +2 -2
  321. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  322. package/dist/esm/salla-installment.entry.js +1 -1
  323. package/dist/esm/salla-list-tile.entry.js +2 -2
  324. package/dist/esm/salla-localization-modal.entry.js +2 -2
  325. package/dist/esm/salla-login-modal.entry.js +1 -1
  326. package/dist/esm/salla-loyalty-banner.entry.js +67 -0
  327. package/dist/esm/salla-loyalty-hero_2.entry.js +236 -0
  328. package/dist/esm/salla-loyalty-panel.entry.js +101 -0
  329. package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
  330. package/dist/esm/salla-loyalty-program.entry.js +108 -64
  331. package/dist/esm/salla-loyalty-reward.entry.js +52 -0
  332. package/dist/esm/salla-loyalty.entry.js +3 -3
  333. package/dist/esm/salla-maintenance-alert.entry.js +3 -3
  334. package/dist/esm/salla-map.entry.js +4 -4
  335. package/dist/esm/salla-menu.entry.js +1 -1
  336. package/dist/esm/salla-metadata.entry.js +1 -1
  337. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
  338. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
  339. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  340. package/dist/esm/salla-notification-item.entry.js +2 -2
  341. package/dist/esm/salla-notifications.entry.js +1 -1
  342. package/dist/esm/salla-offer-modal.entry.js +5 -16
  343. package/dist/esm/salla-offer.entry.js +1 -1
  344. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  345. package/dist/esm/salla-order-details-options.entry.js +1 -1
  346. package/dist/esm/salla-order-details.entry.js +2 -2
  347. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  348. package/dist/esm/salla-order-edit.entry.js +1 -1
  349. package/dist/esm/salla-order-summary.entry.js +4 -4
  350. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  351. package/dist/esm/salla-orders.entry.js +1 -1
  352. package/dist/esm/salla-payments.entry.js +3 -3
  353. package/dist/esm/salla-placeholder.entry.js +2 -2
  354. package/dist/esm/salla-price-range.entry.js +3 -3
  355. package/dist/esm/{salla-product-card.entry.js → salla-product-card_2.entry.js} +120 -7
  356. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  357. package/dist/esm/salla-products-list.entry.js +1 -1
  358. package/dist/esm/salla-progress-bar.entry.js +1 -1
  359. package/dist/esm/salla-quick-order.entry.js +6 -12
  360. package/dist/esm/salla-rating-modal.entry.js +3 -3
  361. package/dist/esm/salla-reward-action_4.entry.js +238 -0
  362. package/dist/esm/salla-scopes.entry.js +2 -2
  363. package/dist/esm/salla-search.entry.js +6 -6
  364. package/dist/esm/salla-skeleton.entry.js +2 -2
  365. package/dist/esm/salla-slider.entry.js +1 -1
  366. package/dist/esm/salla-social-share.entry.js +5 -5
  367. package/dist/esm/salla-social.entry.js +2 -2
  368. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  369. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  370. package/dist/esm/salla-tooltip.entry.js +2 -2
  371. package/dist/esm/salla-trust-badges.entry.js +1 -1
  372. package/dist/esm/salla-user-menu.entry.js +5 -5
  373. package/dist/esm/salla-user-profile.entry.js +1 -1
  374. package/dist/esm/salla-user-settings.entry.js +2 -2
  375. package/dist/esm/salla-verify.entry.js +3 -3
  376. package/dist/esm/salla-wallet.entry.js +1 -1
  377. package/dist/esm/shipping-CZRcMGA9.js +11 -0
  378. package/dist/esm/tag-cgSL_BIo.js +10 -0
  379. package/dist/esm/tracked-promise-CjeRn_A-.js +29 -0
  380. package/dist/esm/translations-B-Rj6b9M.js +292 -0
  381. package/dist/esm/twilight.js +3 -3
  382. package/dist/esm/user-add-QpH8MU22.js +11 -0
  383. package/dist/esm/{vanilla-picker-oVvgrx3f.js → vanilla-picker-DRn4hnB9.js} +1 -1
  384. package/dist/twilight/p-0-eTJXSD.js +4 -0
  385. package/dist/twilight/{p-28d735dc.entry.js → p-024459e9.entry.js} +1 -1
  386. package/dist/twilight/{p-bcbdff6d.entry.js → p-04d8a7e5.entry.js} +1 -1
  387. package/dist/twilight/p-0a91929a.entry.js +4 -0
  388. package/dist/twilight/{p-11c02cc2.entry.js → p-0ad91621.entry.js} +1 -1
  389. package/dist/twilight/{p-6e47537d.entry.js → p-0dce57b2.entry.js} +1 -1
  390. package/dist/twilight/{p-864d29b3.entry.js → p-145858ca.entry.js} +1 -1
  391. package/dist/twilight/p-1613629f.entry.js +4 -0
  392. package/dist/twilight/{p-9bd7d9f5.entry.js → p-1762cd5c.entry.js} +1 -1
  393. package/dist/twilight/p-246bb9c3.entry.js +4 -0
  394. package/dist/twilight/{p-1caa8d6e.entry.js → p-2502deb6.entry.js} +1 -1
  395. package/dist/twilight/{p-32ab498a.entry.js → p-256bd7e3.entry.js} +1 -1
  396. package/dist/twilight/{p-2768932b.entry.js → p-2f27a79c.entry.js} +1 -1
  397. package/dist/twilight/{p-45f1b946.entry.js → p-301bdc8d.entry.js} +1 -1
  398. package/dist/twilight/{p-345807de.entry.js → p-3317da8e.entry.js} +1 -1
  399. package/dist/twilight/p-36e2d55f.entry.js +4 -0
  400. package/dist/twilight/{p-3b3b6cd6.entry.js → p-394e59f9.entry.js} +1 -1
  401. package/dist/twilight/{p-f60646dc.entry.js → p-39595f4a.entry.js} +1 -1
  402. package/dist/twilight/{p-25123930.entry.js → p-3f6e4760.entry.js} +1 -1
  403. package/dist/twilight/{p-0901a25d.entry.js → p-40936925.entry.js} +1 -1
  404. package/dist/twilight/{p-26ce4274.entry.js → p-40ac70b9.entry.js} +1 -1
  405. package/dist/twilight/{p-9d9338c9.entry.js → p-425ca86a.entry.js} +1 -1
  406. package/dist/twilight/p-426919ba.entry.js +4 -0
  407. package/dist/twilight/p-46e0817d.entry.js +4 -0
  408. package/dist/twilight/{p-ef7c452b.entry.js → p-4886611c.entry.js} +1 -1
  409. package/dist/twilight/p-4bacc97f.entry.js +4 -0
  410. package/dist/twilight/{p-22790492.entry.js → p-503a7446.entry.js} +1 -1
  411. package/dist/twilight/{p-e17e30a7.entry.js → p-55585695.entry.js} +1 -1
  412. package/dist/twilight/{p-209a2ef7.entry.js → p-56b2316e.entry.js} +1 -1
  413. package/dist/twilight/p-57fc6135.entry.js +4 -0
  414. package/dist/twilight/p-589db188.entry.js +4 -0
  415. package/dist/twilight/{p-9972c1f3.entry.js → p-594a2cfc.entry.js} +1 -1
  416. package/dist/twilight/p-5b134612.entry.js +4 -0
  417. package/dist/twilight/{p-dc846049.entry.js → p-5d101927.entry.js} +1 -1
  418. package/dist/twilight/{p-48b8b9b0.entry.js → p-5f05afcf.entry.js} +1 -1
  419. package/dist/twilight/{p-727a8316.entry.js → p-6b402aa3.entry.js} +1 -1
  420. package/dist/twilight/{p-acf4f50d.entry.js → p-6ec4bce3.entry.js} +1 -1
  421. package/dist/twilight/{p-c6358810.entry.js → p-779aaac4.entry.js} +1 -1
  422. package/dist/twilight/p-78a7f098.entry.js +4 -0
  423. package/dist/twilight/{p-56ad6447.entry.js → p-78cc7185.entry.js} +1 -1
  424. package/dist/twilight/{p-d8d3dfcd.entry.js → p-79db938f.entry.js} +1 -1
  425. package/dist/twilight/{p-a9e4b4a9.entry.js → p-7cff302c.entry.js} +1 -1
  426. package/dist/twilight/{p-372ce435.entry.js → p-7f1e3e62.entry.js} +1 -1
  427. package/dist/twilight/{p-9b68df5a.entry.js → p-82785312.entry.js} +1 -1
  428. package/dist/twilight/{p-c86dde05.entry.js → p-83d63cf3.entry.js} +1 -1
  429. package/dist/twilight/{p-14d50b4c.entry.js → p-8740d9b0.entry.js} +1 -1
  430. package/dist/twilight/{p-BsLF_HK7.js → p-8Tsmrwno.js} +1 -1
  431. package/dist/twilight/{p-1426be48.entry.js → p-8bef56d7.entry.js} +1 -1
  432. package/dist/twilight/{p-aba6b3a8.entry.js → p-8c95bcba.entry.js} +1 -1
  433. package/dist/twilight/{p-2835ba4b.entry.js → p-91005fdc.entry.js} +1 -1
  434. package/dist/twilight/{p-b606c9a2.entry.js → p-96e09525.entry.js} +1 -1
  435. package/dist/twilight/{p-f58c722c.entry.js → p-9a1dbe0b.entry.js} +1 -1
  436. package/dist/twilight/p-9ab9e4fe.entry.js +4 -0
  437. package/dist/twilight/{p-b3ac5838.entry.js → p-9ff6dbba.entry.js} +1 -1
  438. package/dist/twilight/p-B-Rj6b9M.js +4 -0
  439. package/dist/twilight/{p-BG4uFEWi.js → p-BCRhp4ZP.js} +1 -1
  440. package/dist/twilight/{p-C9FzKstV.js → p-BOikoFVU.js} +1 -1
  441. package/dist/twilight/{p-FrOTq2f2.js → p-BVmlhqyN.js} +1 -1
  442. package/dist/twilight/p-BX5898Au.js +4 -0
  443. package/dist/twilight/{p-BsXh13x8.js → p-BZp0rKEO.js} +1 -1
  444. package/dist/twilight/{p-D_gOsznU.js → p-Bdj8c3JN.js} +1 -1
  445. package/dist/twilight/p-BkmanTR_.js +4 -0
  446. package/dist/twilight/{p-Duj4y93z.js → p-BlpVxOSF.js} +1 -1
  447. package/dist/twilight/p-Bs6JxDkg.js +4 -0
  448. package/dist/twilight/{p-BChI23pG.js → p-CXRKXFgT.js} +1 -1
  449. package/dist/twilight/p-CZRcMGA9.js +4 -0
  450. package/dist/twilight/p-CciN5Q_x.js +4 -0
  451. package/dist/twilight/p-D1s2kXqL.js +4 -0
  452. package/dist/twilight/{p-CwzEvhrD.js → p-DIVFpxqq.js} +1 -1
  453. package/dist/twilight/{p-DmgxDvXL.js → p-DLNIOD9t.js} +1 -1
  454. package/dist/twilight/{p-DI03hbOx.js → p-D_bFmrB0.js} +1 -1
  455. package/dist/twilight/{p-EaMy8k6o.js → p-DbwYqKTo.js} +1 -1
  456. package/dist/twilight/p-DnvK1zqm.js +4 -0
  457. package/dist/twilight/{p-BlBuuMQp.js → p-Noi8jmqR.js} +2 -2
  458. package/dist/twilight/p-QpH8MU22.js +4 -0
  459. package/dist/twilight/p-a139776f.entry.js +4 -0
  460. package/dist/twilight/p-a23e6051.entry.js +4 -0
  461. package/dist/twilight/p-a34a0037.entry.js +4 -0
  462. package/dist/twilight/{p-f2488a50.entry.js → p-b9bc75ad.entry.js} +1 -1
  463. package/dist/twilight/{p-8d4c052f.entry.js → p-bb02c0fd.entry.js} +1 -1
  464. package/dist/twilight/{p-c0239486.entry.js → p-c3418320.entry.js} +1 -1
  465. package/dist/twilight/{p-c0822f39.entry.js → p-c5214df3.entry.js} +1 -1
  466. package/dist/twilight/{p-d2816142.entry.js → p-cc8b8f84.entry.js} +1 -1
  467. package/dist/twilight/p-cgSL_BIo.js +4 -0
  468. package/dist/twilight/p-d4a62692.entry.js +4 -0
  469. package/dist/twilight/{p-7d6b0477.entry.js → p-d6d0a9b8.entry.js} +1 -1
  470. package/dist/twilight/{p-f4e96119.entry.js → p-d8389555.entry.js} +1 -1
  471. package/dist/twilight/{p-d4dcdcc5.entry.js → p-d8d5d1f4.entry.js} +1 -1
  472. package/dist/twilight/{p-8f67c4cb.entry.js → p-da642a9a.entry.js} +1 -1
  473. package/dist/twilight/{p-6b5c8369.entry.js → p-dce9ced4.entry.js} +1 -1
  474. package/dist/twilight/{p-a63e2bd1.entry.js → p-df8e08af.entry.js} +1 -1
  475. package/dist/twilight/{p-091fe74b.entry.js → p-e0619a5d.entry.js} +1 -1
  476. package/dist/twilight/p-e25aaae6.entry.js +4 -0
  477. package/dist/twilight/{p-8f73276d.entry.js → p-e270154b.entry.js} +1 -1
  478. package/dist/twilight/{p-6324f2ca.entry.js → p-e3da6c85.entry.js} +1 -1
  479. package/dist/twilight/{p-fe4a504b.entry.js → p-e5a47190.entry.js} +1 -1
  480. package/dist/twilight/{p-9e85bac1.entry.js → p-ec5b3bd6.entry.js} +1 -1
  481. package/dist/twilight/p-f294b1e5.entry.js +4 -0
  482. package/dist/twilight/p-f2ed8e2a.entry.js +4 -0
  483. package/dist/twilight/{p-7a15e1a1.entry.js → p-f4c1f034.entry.js} +1 -1
  484. package/dist/twilight/{p-8290d5fc.entry.js → p-fbfe1cf4.entry.js} +1 -1
  485. package/dist/twilight/{p-15aa6772.entry.js → p-fe4d55ce.entry.js} +1 -1
  486. package/dist/twilight/{p-dfdb0e7c.entry.js → p-feacde76.entry.js} +1 -1
  487. package/dist/twilight/{p-78d7eb5c.entry.js → p-ff3ae289.entry.js} +1 -1
  488. package/dist/twilight/{p-3d2bdf94.entry.js → p-ff47b12d.entry.js} +1 -1
  489. package/dist/twilight/{p-GweAdjGj.js → p-iornn-Hi.js} +1 -1
  490. package/dist/twilight/twilight.esm.js +1 -1
  491. package/dist/types/components/salla-badge/salla-badge.d.ts +15 -0
  492. package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +5 -0
  493. package/dist/types/components/salla-edit-order-button/salla-edit-order-button.d.ts +25 -0
  494. package/dist/types/components/salla-loyalty-program/functions.d.ts +67 -0
  495. package/dist/types/components/salla-loyalty-program/interfaces.d.ts +125 -0
  496. package/dist/types/components/salla-loyalty-program/salla-loyalty-banner.d.ts +20 -0
  497. package/dist/types/components/salla-loyalty-program/salla-loyalty-hero.d.ts +15 -0
  498. package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +45 -0
  499. package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +11 -0
  500. package/dist/types/components/salla-loyalty-program/salla-loyalty-program.d.ts +25 -8
  501. package/dist/types/components/salla-loyalty-program/salla-loyalty-reward.d.ts +13 -0
  502. package/dist/types/components/salla-loyalty-program/salla-reward-action.d.ts +9 -0
  503. package/dist/types/components/salla-loyalty-program/salla-reward-card.d.ts +17 -0
  504. package/dist/types/components/salla-loyalty-program/salla-reward-details.d.ts +22 -0
  505. package/dist/types/components/salla-loyalty-program/salla-reward-exchange.d.ts +11 -0
  506. package/dist/types/components/salla-loyalty-program/translations.d.ts +1 -0
  507. package/dist/types/components.d.ts +341 -0
  508. package/package.json +6 -5
  509. package/dist/cjs/salla-products-slider.cjs.entry.js +0 -121
  510. package/dist/esm/salla-products-slider.entry.js +0 -119
  511. package/dist/twilight/p-084e2131.entry.js +0 -4
  512. package/dist/twilight/p-08582b06.entry.js +0 -4
  513. package/dist/twilight/p-35b7c465.entry.js +0 -4
  514. package/dist/twilight/p-505504bf.entry.js +0 -4
  515. package/dist/twilight/p-546f8eb7.entry.js +0 -4
  516. package/dist/twilight/p-5f3d4e2c.entry.js +0 -4
  517. package/dist/twilight/p-65129aa6.entry.js +0 -4
  518. package/dist/twilight/p-6f8ce4cc.entry.js +0 -4
  519. package/dist/twilight/p-79dd8455.entry.js +0 -4
  520. package/dist/twilight/p-958e5868.entry.js +0 -4
  521. package/dist/twilight/p-9c58f3c0.entry.js +0 -4
  522. package/dist/twilight/p-9cf29ddb.entry.js +0 -4
  523. package/dist/twilight/p-d38bd02b.entry.js +0 -4
@@ -0,0 +1 @@
1
+ <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>
@@ -9,6 +9,7 @@
9
9
  "components/salla-alert/salla-alert.js",
10
10
  "components/salla-app-install-alert/salla-app-install-alert.js",
11
11
  "components/salla-apps-icons/salla-apps-icons.js",
12
+ "components/salla-badge/salla-badge.js",
12
13
  "components/salla-booking-field/salla-booking-field.js",
13
14
  "components/salla-bottom-alert/salla-bottom-alert.js",
14
15
  "components/salla-breadcrumb/salla-breadcrumb.js",
@@ -30,6 +31,7 @@
30
31
  "components/salla-datetime-picker/salla-datetime-picker.js",
31
32
  "components/salla-delivery-promise/salla-delivery-promise.js",
32
33
  "components/salla-drawer/salla-drawer.js",
34
+ "components/salla-edit-order-button/salla-edit-order-button.js",
33
35
  "components/salla-file-upload/salla-file-upload.js",
34
36
  "components/salla-filters/salla-filters.js",
35
37
  "components/salla-filters-widget/salla-filters-widget.js",
@@ -44,7 +46,16 @@
44
46
  "components/salla-login-modal/salla-login-modal.js",
45
47
  "components/salla-loyalty/salla-loyalty-prize-item.js",
46
48
  "components/salla-loyalty/salla-loyalty.js",
49
+ "components/salla-loyalty-program/salla-loyalty-banner.js",
50
+ "components/salla-loyalty-program/salla-loyalty-hero.js",
51
+ "components/salla-loyalty-program/salla-loyalty-panel.js",
52
+ "components/salla-loyalty-program/salla-loyalty-point.js",
47
53
  "components/salla-loyalty-program/salla-loyalty-program.js",
54
+ "components/salla-loyalty-program/salla-loyalty-reward.js",
55
+ "components/salla-loyalty-program/salla-reward-action.js",
56
+ "components/salla-loyalty-program/salla-reward-card.js",
57
+ "components/salla-loyalty-program/salla-reward-details.js",
58
+ "components/salla-loyalty-program/salla-reward-exchange.js",
48
59
  "components/salla-maintenance-alert/salla-maintenance-alert.js",
49
60
  "components/salla-map/salla-map.js",
50
61
  "components/salla-menu/salla-menu.js",
@@ -0,0 +1,117 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { h } from "@stencil/core";
5
+ import { cva } from "class-variance-authority";
6
+ const badge = cva('s-badge-base', {
7
+ variants: {
8
+ size: {
9
+ xs: 's-badge-xs',
10
+ sm: 's-badge-sm',
11
+ md: 's-badge-md',
12
+ },
13
+ bg: {
14
+ transparent: 's-badge-transparent',
15
+ light: 's-badge-light',
16
+ 'primary-100': 's-badge-primary-100',
17
+ },
18
+ color: {
19
+ black: 's-badge-black',
20
+ 'primary-900': 's-badge-color-primary-900',
21
+ },
22
+ },
23
+ });
24
+ export class SallaBadge {
25
+ constructor() {
26
+ /**
27
+ * The size of the badge
28
+ */
29
+ this.size = 'sm';
30
+ /**
31
+ * The text color of the badge
32
+ */
33
+ this.color = 'black';
34
+ /**
35
+ * The background color of the badge
36
+ */
37
+ this.bg = 'light';
38
+ }
39
+ render() {
40
+ return (h("div", { key: '9d81a7c592a57a533e2b8a48f015e2f9e796be51', class: badge({ size: this.size, bg: this.bg, color: this.color }) }, h("slot", { key: '999e75ec14a8346d84dbfc5122c448999d4fc481' })));
41
+ }
42
+ static get is() { return "salla-badge"; }
43
+ static get originalStyleUrls() {
44
+ return {
45
+ "$": ["salla-badge.scss"]
46
+ };
47
+ }
48
+ static get styleUrls() {
49
+ return {
50
+ "$": ["salla-badge.css"]
51
+ };
52
+ }
53
+ static get properties() {
54
+ return {
55
+ "size": {
56
+ "type": "string",
57
+ "attribute": "size",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "'xs' | 'sm' | 'md'",
61
+ "resolved": "\"md\" | \"sm\" | \"xs\"",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": "The size of the badge"
69
+ },
70
+ "getter": false,
71
+ "setter": false,
72
+ "reflect": false,
73
+ "defaultValue": "'sm'"
74
+ },
75
+ "color": {
76
+ "type": "string",
77
+ "attribute": "color",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "'black' | 'primary-900'",
81
+ "resolved": "\"black\" | \"primary-900\"",
82
+ "references": {}
83
+ },
84
+ "required": false,
85
+ "optional": false,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": "The text color of the badge"
89
+ },
90
+ "getter": false,
91
+ "setter": false,
92
+ "reflect": false,
93
+ "defaultValue": "'black'"
94
+ },
95
+ "bg": {
96
+ "type": "string",
97
+ "attribute": "bg",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "'transparent' | 'light' | 'primary-100'",
101
+ "resolved": "\"light\" | \"primary-100\" | \"transparent\"",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "The background color of the badge"
109
+ },
110
+ "getter": false,
111
+ "setter": false,
112
+ "reflect": false,
113
+ "defaultValue": "'light'"
114
+ }
115
+ };
116
+ }
117
+ }
@@ -148,7 +148,7 @@ export class SallaBookingField {
148
148
  return (h("span", { class: "s-booking-field-reservations-time" }, h("i", { class: "s-booking-field-reservations-icon", innerHTML: TimeIcon }), h("span", null, reservation.from_timestamp, " - ", reservation.to_timestamp)));
149
149
  }
150
150
  render() {
151
- return (h(Host, { key: '04c9e3dc3dc825bd6905221d858c260f7ca34748' }, h("div", { key: '07ec38cec1bd1798640dd7ea9592bb3b17d945c6', class: "s-booking-field-main" }, this.option.required || this.reservations.length > 0 ? h("div", { class: "s-booking-field-price" }, h("span", { innerHTML: salla.money(this.option.price) })) : '', h("salla-button", { key: '6b71889cfc0429d15c466a6f194df31549f09786', class: "s-booking-field-book-now", size: "small", loaderPosition: "center", fill: "outline", onClick: event => this.openBookingModal(event, false) }, h("span", { key: 'a16f8db6f52c7751ea605efcae04057ca0dc5b61', class: "s-booking-field-book-now-content" }, h("span", { key: '95f6086a599bcc620c87ece6c6ae9620dba15581', innerHTML: BookingTime }), this.reservations.length ? this.editLabel : this.bookNowLabel))), this.reservations.length > 0 && (h("div", { key: 'b3615100bbfff3d98d0ac99145aaf53449790c94', class: "s-booking-field-reservations" }, this.reservations.map((reservation, index) => (h("div", { key: index, class: "s-booking-field-reservations-item" }, this.renderReservationDate(reservation), this.renderReservationTime(reservation)))))), h("input", { key: '126f14f2e520b8696bc7450e209bad30b267878b', class: "s-hidden", name: this.option.name, required: this.option.required, value: JSON.stringify(this.reservations) === '[]' ? '' : JSON.stringify(this.reservations), ref: reservations => this.reservationsInput = reservations }), this.iframeReady && this.bookingModal()));
151
+ return (h(Host, { key: '9a65e86d8c731ea7538ae930d73c63a0fba342d6' }, h("div", { key: 'fbac1a9dfdf76f36405db4dff611fd9baa47870b', class: "s-booking-field-main" }, this.option.required || this.reservations.length > 0 ? h("div", { class: "s-booking-field-price" }, h("span", { innerHTML: salla.money(this.option.price) })) : '', h("salla-button", { key: '190495f3a42496aa9d14da129363e6ff83e788ac', class: "s-booking-field-book-now", size: "small", loaderPosition: "center", fill: "outline", onClick: event => this.openBookingModal(event, false) }, h("span", { key: '7db20f2888bc865d87545804a2f609f7d07e4dc2', class: "s-booking-field-book-now-content" }, h("span", { key: '05f6f331e311f79e5a61a7b6e197e24334bdb5d4', innerHTML: BookingTime }), this.reservations.length ? this.editLabel : this.bookNowLabel))), this.reservations.length > 0 && (h("div", { key: 'f54c13f40c3109f5d3249361ac299451151909cf', class: "s-booking-field-reservations" }, this.reservations.map((reservation, index) => (h("div", { key: index, class: "s-booking-field-reservations-item" }, this.renderReservationDate(reservation), this.renderReservationTime(reservation)))))), h("input", { key: '5d147e4832a2b14ed614152efefa35769e0c52ba', class: "s-hidden", name: this.option.name, required: this.option.required, value: JSON.stringify(this.reservations) === '[]' ? '' : JSON.stringify(this.reservations), ref: reservations => this.reservationsInput = reservations }), this.iframeReady && this.bookingModal()));
152
152
  }
153
153
  static get is() { return "salla-booking-field"; }
154
154
  static get originalStyleUrls() {
@@ -124,9 +124,9 @@ export class SallaBottomAlert {
124
124
  }
125
125
  render() {
126
126
  const hasTemplate = this.template && typeof this.template === 'object' && Object.keys(this.template).length > 0;
127
- return (h(Host, { key: 'e5f273d72875760e30d99d419b247137583bc450', class: `s-bottom-alert-wrapper ${hasTemplate ? 's-bottom-alert-wrapper-with-template' : ''}` }, hasTemplate && (h("div", { key: '1db37d7c67aae449f41a9a3ed83489b2a0653cef', class: "s-bottom-alert-logo-section" }, h("img", { key: '18701cd3d807042b4d852f283d43a6855282f791', src: "https://cdn.salla.network/images/logo/logo-light.svg", alt: "Salla", class: "s-bottom-alert-logo" }), h("span", { key: '66bb3f9b3c00aee5c2694d5ddb142e753ae7fa1a', class: "s-bottom-alert-logo-text" }, this.readyStores))), h("div", { key: '01d47c9ec38370b83bdb3fdc29291f55e1b3aa42', class: "s-bottom-alert-content" }, h("div", { key: '5380873bf9d393c0fa18da196e1bfb675a8c9c9b', class: "flex items-center gap-2" }, h("div", { key: '882382de35a7c9a767e2eb90305c8a973d01ac21', class: "s-bottom-alert-icon" }, this.icon ? h("i", { class: this.icon }) : h("i", { innerHTML: infoIcon })), h("div", { key: 'dfbaa427fd4e8b755a479e0b5459422e44a95f59', class: "s-bottom-alert-message" }, this.message ? (this.message) : hasTemplate ? (h("span", { class: "flex flex-wrap items-center gap-1" }, this.defaultMessage, h("span", { class: {
127
+ return (h(Host, { key: 'fd021792f85aa7bb528909614dcb5c3b12d6d00a', class: `s-bottom-alert-wrapper ${hasTemplate ? 's-bottom-alert-wrapper-with-template' : ''}` }, hasTemplate && (h("div", { key: '7b7adc3efe5c3b50d468c280d8b5bedddb73bb4b', class: "s-bottom-alert-logo-section" }, h("img", { key: '1dbfdc8baefb71635772bdad548fb626bae7627b', src: "https://cdn.salla.network/images/logo/logo-light.svg", alt: "Salla", class: "s-bottom-alert-logo" }), h("span", { key: 'b4b372c13427f9753023ff642c38489d724e6820', class: "s-bottom-alert-logo-text" }, this.readyStores))), h("div", { key: '8cef155a60f7d3a5847da0b4ef090bb8fc8ae928', class: "s-bottom-alert-content" }, h("div", { key: '106ba8bcfcc56d3042d78bd102888b10bf70587d', class: "flex items-center gap-2" }, h("div", { key: '718695a0f5d376bcc056747074f006ceccf1f98b', class: "s-bottom-alert-icon" }, this.icon ? h("i", { class: this.icon }) : h("i", { innerHTML: infoIcon })), h("div", { key: '465bee0bb124482ec169925917fd15f3ce472fba', class: "s-bottom-alert-message" }, this.message ? (this.message) : hasTemplate ? (h("span", { class: "flex flex-wrap items-center gap-1" }, this.defaultMessage, h("span", { class: {
128
128
  's-bottom-alert-message-highlight': true,
129
- }, "aria-label": "Developer" }, this.salla), h("span", { innerHTML: salla.money(this.template.price) }))) : (this.defaultMessage))), this.type !== 'banner' && (h("div", { key: '327ef4b5ecdab7d994418c033a78c2531eb28de5', class: hasTemplate ? 's-bottom-alert-actions-group' : 's-bottom-alert-action' }, hasTemplate ? (this.loading ? (h("salla-loading", { size: "20" })) : (h("div", { class: "s-bottom-alert-actions-group-container" }, h("a", { class: "s-bottom-alert-action-link", onClick: () => this.handleAction() }, this.actionLabel || this.moreDetailsLabel), this.templateData?.link ? (h("button", { type: "button", class: "s-bottom-alert-action-purchase-button", onClick: () => window.open(this.templateData?.link, '_blank') }, this.buyTheTemplate)) : null))) : (h("salla-button", { href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel || this.defaultActionLabel)))), this.type === 'popup' && this.popup())));
129
+ }, "aria-label": "Developer" }, this.salla), h("span", { innerHTML: salla.money(this.template.price) }))) : (this.defaultMessage))), this.type !== 'banner' && (h("div", { key: 'd860b7fba86b1273a0d257c3ec082d44f01340cc', class: hasTemplate ? 's-bottom-alert-actions-group' : 's-bottom-alert-action' }, hasTemplate ? (this.loading ? (h("salla-loading", { size: "20" })) : (h("div", { class: "s-bottom-alert-actions-group-container" }, h("a", { class: "s-bottom-alert-action-link", onClick: () => this.handleAction() }, this.actionLabel || this.moreDetailsLabel), this.templateData?.link ? (h("button", { type: "button", class: "s-bottom-alert-action-purchase-button", onClick: () => window.open(this.templateData?.link, '_blank') }, this.buyTheTemplate)) : null))) : (h("salla-button", { href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel || this.defaultActionLabel)))), this.type === 'popup' && this.popup())));
130
130
  }
131
131
  static get is() { return "salla-bottom-alert"; }
132
132
  static get originalStyleUrls() {
@@ -224,6 +224,9 @@ export class SallaBulletDelivery {
224
224
  * Closes the bullet delivery modal
225
225
  */
226
226
  async close() {
227
+ if (this.shouldForceNonClosable() && !this.confirming) {
228
+ return;
229
+ }
227
230
  // If submit flow is waiting and user dismissed the modal, release the pending gate.
228
231
  if (this.cartSubmitConfirmationPending && !this.confirming) {
229
232
  this.resolvePendingCartSubmit();
@@ -321,6 +324,17 @@ export class SallaBulletDelivery {
321
324
  return !!intent.branch_id;
322
325
  return false;
323
326
  }
327
+ /**
328
+ * Authenticated users on the cart page must select/confirm an address before
329
+ * they can dismiss the modal.
330
+ */
331
+ shouldForceNonClosable() {
332
+ if (this.isGuestUser())
333
+ return false;
334
+ if (!Salla.url.is_page("cart"))
335
+ return false;
336
+ return !this.hasCompleteIntentForLoggedInUser();
337
+ }
324
338
  shouldPromptIncompleteIntentThisSession() {
325
339
  const storage = this.getShownStorage();
326
340
  return (this.hasIncompleteUserAddressIntent() &&
@@ -1498,7 +1512,7 @@ export class SallaBulletDelivery {
1498
1512
  const activeTabView = this.activeTab === "branch" && this.supportsPickup
1499
1513
  ? this.renderPickupTab()
1500
1514
  : this.renderDeliveryTab();
1501
- return (h("div", null, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, Salla.lang.get("blocks.home.select_the_receiving_method")), h("p", { class: "s-bullet-delivery-subtitle" }, Salla.lang.get("pages.checkout.delivery_pickup_availability_hint"))), this.renderTabs(), this.showCartWillBeClearedBanner &&
1515
+ return (h("div", null, h("div", { class: "s-bullet-delivery-header" }, h("h2", { class: "s-bullet-delivery-title" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.add_address_for_order_delivery') : Salla.lang.get('blocks.home.how_prefer_to_receive_order')), h("p", { class: "s-bullet-delivery-subtitle" }, this.activeTab === 'address' ? Salla.lang.get('blocks.home.products_available_for_delivery_shown_while_shopping') : Salla.lang.get('blocks.home.products_available_for_delivery_or_pickup_shown_while_shopping'))), this.renderTabs(), this.showCartWillBeClearedBanner &&
1502
1516
  this.renderAlert(Salla.lang.get("blocks.scope.empty_cart_warning")), this.allocationOutOfCoverageMessage &&
1503
1517
  this.renderAllocationOutOfCoverageAlert(), activeTabView, !isAddressEmptyState && this.renderFooter()));
1504
1518
  }
@@ -1623,9 +1637,9 @@ export class SallaBulletDelivery {
1623
1637
  }
1624
1638
  }
1625
1639
  render() {
1626
- return (h(Host, { key: '751566707c28202b5ccf4ecde28bfb09550ae886', class: "s-bullet-delivery" }, h("salla-modal", { key: '25a18755aa4aa85b55f08bb73829e30833ca5328', ref: (modal) => {
1640
+ return (h(Host, { key: 'cf0925eb55a712125e446547e211224815a00efe', class: "s-bullet-delivery" }, h("salla-modal", { key: '5f9a14196b4f15cf6a6ed738253cb1e0f52d6dee', ref: (modal) => {
1627
1641
  this.modal = modal;
1628
- }, isClosable: !this.isRequired, class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
1642
+ }, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", isLoading: this.loading, width: "sm" }, this.loading ? (this.renderSkeleton()) : (h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm())))));
1629
1643
  }
1630
1644
  componentDidLoad() {
1631
1645
  // Mark component as ready
@@ -236,7 +236,7 @@ export class SallaCartCoupons {
236
236
  : `${salla.lang.get('pages.cart.expires_after')} ${coupon.remaining_days} ${salla.lang.get('pages.cart.day')}`)), coupon.minimum_amount && parseFloat(coupon.minimum_amount.amount) > 0 && (h("div", { class: "s-cart-coupons-minimum" }, salla.lang.get('pages.cart.minimum'), " ", h("span", { innerHTML: salla.money(coupon.minimum_amount.amount, coupon.minimum_amount.currency) })))), h("div", { class: "s-cart-coupons-action" }, isEligible ? salla.lang.get('pages.cart.save_coupon') : salla.lang.get('pages.cart.coupon_not_compatible'))))));
237
237
  }
238
238
  render() {
239
- return (h(Host, { key: 'f3f3d943ab2c1a6488a1da02d2cc031dbc88b482' }, h("div", { key: 'abf88828017041b19a6c54ba2f99e6c246bd8d04', class: "s-cart-coupons-wrapper" }, h("div", { key: 'c2946579a7cca935722997229f50ede603acb8b2', class: "s-cart-coupons-input-section" }, h("label", { key: '50042d827c86daf853babd4e41ba3a920aceda9d', htmlFor: "coupon-input", class: "s-cart-coupons-coupon-label" }, salla.lang.get('pages.cart.have_coupon')), h("div", { key: '4b01047727bd3a83f6cfbac37221e7732076248f', class: "s-cart-coupons-coupon-input-container" }, h("input", { key: '555108f68b7a60c618d9a904905ef321cd274c7a', type: "text", id: "coupon-input", name: "coupon", class: `form-input ${this.couponError ? 's-coupon-input-error' : ''}`, placeholder: salla.lang.get('pages.cart.coupon_placeholder'), value: this.couponInputValue, disabled: !!this.currentCoupon || this.isApplying, ref: el => this.couponInputRef = el, "aria-label": salla.lang.get('pages.cart.apply_coupon') }), h("salla-button", { key: '0416bbaf029f7d8951ca6a419cdc676ae50ee792', ref: el => this.couponButtonRef = el, class: `s-cart-coupons-coupon-button ${this.currentCoupon ? 's-cart-coupons-coupon-button-remove' : 's-cart-coupons-coupon-button-apply'}`, color: this.currentCoupon ? 'danger' : 'primary', loading: this.isApplying, "loader-position": "center", onClick: () => this.handleCouponButtonClick() }, this.currentCoupon ? (h("i", { class: "sicon-cancel" })) : (h("span", null, salla.lang.get('pages.cart.save_coupon'))))), this.couponError && (h("span", { key: 'f7c77e8676cb07b4820b571dbd8ee25dca79a1b1', class: "s-cart-coupons-coupon-error" }, this.couponError))), this.availableCoupons && this.availableCoupons.length > 0 && (h("salla-slider", { key: 'daee9c6705de734d5f81ff86d92ad6952b5a7332', type: "carousel", showControls: false, class: "s-cart-coupons-slider" }, h("div", { key: '5d5ef30a6ff7f7c2b406cc5cec6622c2f028d17e', slot: "items" }, this.availableCoupons.map(coupon => this.renderCouponCard(coupon))))))));
239
+ return (h(Host, { key: '95e65153874488ea19570a11d82eca2a054dd12f' }, h("div", { key: '1bbcebf392b3cbe9a771d2fead982c6d467920a2', class: "s-cart-coupons-wrapper" }, h("div", { key: 'f43ff91fbe2661f7c533d1ded01910bf9cdd04bc', class: "s-cart-coupons-input-section" }, h("label", { key: '47b768adf09859842a329174ed670e0ed6eb38e5', htmlFor: "coupon-input", class: "s-cart-coupons-coupon-label" }, salla.lang.get('pages.cart.have_coupon')), h("div", { key: '0119d436bd813f0aed13b15178644f393f23c448', class: "s-cart-coupons-coupon-input-container" }, h("input", { key: '48daad1665830075e676843c96f99af147a7272c', type: "text", id: "coupon-input", name: "coupon", class: `form-input ${this.couponError ? 's-coupon-input-error' : ''}`, placeholder: salla.lang.get('pages.cart.coupon_placeholder'), value: this.couponInputValue, disabled: !!this.currentCoupon || this.isApplying, ref: el => this.couponInputRef = el, "aria-label": salla.lang.get('pages.cart.apply_coupon') }), h("salla-button", { key: '9e01ec3c8bd3a28b5dd00d028fd8d0b29a1f0f63', ref: el => this.couponButtonRef = el, class: `s-cart-coupons-coupon-button ${this.currentCoupon ? 's-cart-coupons-coupon-button-remove' : 's-cart-coupons-coupon-button-apply'}`, color: this.currentCoupon ? 'danger' : 'primary', loading: this.isApplying, "loader-position": "center", onClick: () => this.handleCouponButtonClick() }, this.currentCoupon ? (h("i", { class: "sicon-cancel" })) : (h("span", null, salla.lang.get('pages.cart.save_coupon'))))), this.couponError && (h("span", { key: '0b46e12e0ece78bb96180004a30154cf5229c930', class: "s-cart-coupons-coupon-error" }, this.couponError))), this.availableCoupons && this.availableCoupons.length > 0 && (h("salla-slider", { key: '6df6dc30d63f8e158ce65392ae682f03d09ee014', type: "carousel", showControls: false, class: "s-cart-coupons-slider" }, h("div", { key: 'adc4343bc2f217bdcf03a769b19363a363ca1ccb', slot: "items" }, this.availableCoupons.map(coupon => this.renderCouponCard(coupon))))))));
240
240
  }
241
241
  static get is() { return "salla-cart-coupons"; }
242
242
  static get originalStyleUrls() {
@@ -102,7 +102,7 @@ export class SallaCartSummary {
102
102
  return cartUrl;
103
103
  }
104
104
  render() {
105
- return (h(Host, { key: '918f027fd28cd25d653b8419f97223daaf22d428' }, h("a", { key: 'b74a2724ada356a01b915044d56dfb0f9953338e', class: "s-cart-summary-wrapper", href: this.getCartLink() }, h("div", { key: 'b9332fe1b66b895c1e9950efaa548f04eb053d46', id: "s-cart-icon" }, h("slot", { key: '2b5c1cf8dea4ca23a54beeb83cfad44538ca3ab7', name: "icon" }, h("i", { key: 'f3145ed4a994762441d925280a3234d78c378bef', class: "s-cart-summary-icon", innerHTML: CartIcon }))), h("span", { key: '26a78adf9b279019504e995216ea5373b6866876', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '60ad091221ed5cd3e2ac0d27ebc53ec9917ccd64', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '66819086b9ed7f6f21be2cd5e8baf0bc88021e40', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: 'a07c85971e50add3cdd5b51942e642d4daf19d82', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
105
+ return (h(Host, { key: '4d80eb7d5ea545740fd4c631b98297164e4afded' }, h("a", { key: 'f32a160c33514e98a35067eb8dc07aa15b7ddb9b', class: "s-cart-summary-wrapper", href: this.getCartLink() }, h("div", { key: 'b8ab102d86c3448d03403bade826d42c2fcee681', id: "s-cart-icon" }, h("slot", { key: '2dae30fcc74ef4c6e74d25f745aea0893cdb87c9', name: "icon" }, h("i", { key: 'df69ad3f3e7affe12ce26d6e16aa2e9e4670f2fc', class: "s-cart-summary-icon", innerHTML: CartIcon }))), h("span", { key: '98927818c1f6b6e7138a8f818da96054c2d44b62', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '71a40df1d13608e4c9a988ee927ae5ebf1482635', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '9e8e2c66c3784ccebfc4bfba5ab2554a927b172c', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: 'bbc35cf2a4e793c3cf4d1a637740683569fd306d', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
106
106
  }
107
107
  static get is() { return "salla-cart-summary"; }
108
108
  static get originalStyleUrls() {
@@ -198,7 +198,7 @@ export class SallaColorPicker {
198
198
  });
199
199
  }
200
200
  render() {
201
- return (h(Host, { key: '2f142fd64afd5571574a7e1c40de3be16ede62e6', class: "s-color-picker-main" }, h("slot", { key: '92acdf14b2f42ac52d0a632ba6840a5dcebfa4d4', name: "widget" }, h("div", { key: '7ba074040299a91802109d0e1d2e78604e39d3a8', class: "s-color-picker-widget" }, h("div", { key: 'a6272207f79fd28e33b66e415a3e05b969ace983', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: 'e6fed242bb84fae6221cdec525658b68f7514ce7', innerHTML: ArrowDown }))), h("input", { key: '9eb1673f44e663f939124da45fec79c401736203', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
201
+ return (h(Host, { key: '673ad2953168ffcb211a32177caf0e3ab0ef4081', class: "s-color-picker-main" }, h("slot", { key: 'e28235c30c4f5a6dd89037b1554baadc9f2f8375', name: "widget" }, h("div", { key: '23e35c42e462e4787f04960bef97f4a870496779', class: "s-color-picker-widget" }, h("div", { key: 'f196109b149e326b48121a9a265bdb35fcb9128d', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: 'b30c1542e13e7bc43d6557d997cfa5dc7656203b', innerHTML: ArrowDown }))), h("input", { key: 'd8e26156ed9cfe589200e01afb5dadbcf38227ef', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
202
202
  }
203
203
  componentDidLoad() {
204
204
  if (this.canvas)
@@ -38,7 +38,7 @@ export class SallaCommentForm {
38
38
  .finally(() => this.submitBtn.stop());
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: '0ec765c8dd7cf28d23c4305c234cec5efd3daae1' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
41
+ return (h(Host, { key: '2203b9f365e0658a3bc40fb0274ba9ddc0d1e040' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
42
42
  h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', h("div", { class: "s-comment-form-content" }, h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), h("br", null), h("div", { class: "s-comment-form-action" }, h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
43
43
  }
44
44
  static get is() { return "salla-comment-form"; }
@@ -121,15 +121,15 @@ export class SallaCommentItem {
121
121
  }
122
122
  render() {
123
123
  let isAdmin = this.comment.type == 'admin';
124
- return (h(Host, { key: '3f9d4b98cff2dd49259d3386b4996b905f92d7db', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { key: '1348f11b2e553be483f60c5c558d3e800f050700', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { key: '0587afd7ae1fc27b12fc4fd2c9ef4bf9e919d04a', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { key: '40009b2b3b9af60481d0e40d5fb919076ab43b10', class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { key: '8f0563811445046ecf5ce3abe6ee6d7d1ec4a235', class: "s-comments-item-avatar" }, h("img", { key: '5f82bb9d3a5c4c340f37b8e48af3edce42c133f8', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { key: '34581ee9fddaa2f79ee933efb65c2e354010f37a', class: "s-comments-flex-1" }, h("div", { key: 'e03fc074d5ac8ddf183e3b081001e73dd62a7116', class: "s-comments-item-user-wrapper" }, h("div", { key: '6ea5e07eb9fa35d7673019628e6fde4605b74e0c', class: "s-comments-item-user-info" }, h("h3", { key: '18d7cf8c8b8125138a544bd10027ae7503f2f3a6', class: this.comment.is_pinned ? "s-comments-item-user-info-name" : "s-comments-item-user-info-name-with-margin" }, this.comment?.name), this.comment.is_pinned ?
124
+ return (h(Host, { key: '05b9da17f0e07e1115c87c671998e8123b8b0bb4', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { key: '49552e9efab0aa751db6d7051318f626f9124e5a', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { key: 'e795f238ee0a562675843e6da0f495512abf550c', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { key: '05270553da039c8cdf611d7a1a0ac1ff9d5d88f2', class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { key: 'be2ca109e89c83691d3a0a7a9e03f6e1b94fb09e', class: "s-comments-item-avatar" }, h("img", { key: '402cff5a2003bf385ae8f9f7890555ef2886de87', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { key: 'af7992ad18ed3d756594cf678d01c1fdd2af6cca', class: "s-comments-flex-1" }, h("div", { key: 'b11dc77d96bf83c0dddd1edaa5fb57286b5b6f55', class: "s-comments-item-user-wrapper" }, h("div", { key: 'f899a929d3e67c7898d22cf7abc56891cdf0fa7c', class: "s-comments-item-user-info" }, h("h3", { key: '9968169cbd69eb6d1d7e0b0498db03a0431d2a16', class: this.comment.is_pinned ? "s-comments-item-user-info-name" : "s-comments-item-user-info-name-with-margin" }, this.comment?.name), this.comment.is_pinned ?
125
125
  h("div", { class: "s-comments-item-pinned-icon-with-margin" }, this.PinnedIcon())
126
126
  : null, (this.comment.has_order || !!this.comment.rating) && !this.comment.is_pending && !this.hideBought ?
127
127
  h("div", { class: "s-comments-flex" }, this.comment.has_order ?
128
128
  [h("span", { class: "s-comments-item-has-order-check-icon", innerHTML: CheckIcon }), h("span", { class: "s-comments-item-has-order-check-text" }, this.has_bought_trans, " ", this.comment.rating ? ', ' : '')] : null, !!this.comment.rating ?
129
129
  h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
130
- : null), h("p", { key: '694c2079d3379966994af7040fe4542481a53e66', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '734ca2eb6bf846c661007a1b9c41f22c47923b27', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
130
+ : null), h("p", { key: 'cafa0be66307c6b377f90033745b939da66344c8', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '608db7108242f10e4d649bb23d1382f49227aeb8', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
131
131
  h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
132
- : null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
132
+ : null), h("div", { key: '9b86497c3791f7e890b560207068de4ca38d6e60', class: "s-comments-item-content" }, h("p", { key: '82433f42c6b0ee29cdd42725ce1aba4dd62e67d8', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: '9a1bd14eb18f637588f152b8842d4637b9a6e7c1', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'be260096b68a1a58889bed09c68b3a2c75adefa6', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '8f78ee0ab370e4f99eb68fe1afa4491c4a6a0b80', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: 'eea6149852a409f2e25b8f9ec4375087e1c9beb8', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '9f693fcd5afc5e443e0ff590d6e7e386746e2a98', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
133
133
  h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
134
134
  this.getReplies().map((reply) => {
135
135
  return h("div", null, h("salla-comment-item", { comment: reply }));
@@ -117,7 +117,7 @@ export class SallaConditionalFields {
117
117
  });
118
118
  }
119
119
  render() {
120
- return (h(Host, { key: '92e48eb8f628ef8a2cde7e0480bbfe8fbb36f139' }, h("slot", { key: '439b9056ff00196e8e8b89ee8251afd4db7e2b64' })));
120
+ return (h(Host, { key: 'eb080f6f4321fbdfdb8a1aca7a8c7d877de54cca' }, h("slot", { key: 'b898259ac1a7fc5a89844f9228bd0f4a3f86d867' })));
121
121
  }
122
122
  static get is() { return "salla-conditional-fields"; }
123
123
  static get elementRef() { return "host"; }
@@ -228,7 +228,7 @@ export class SallaCountDown {
228
228
  return this.renderCountDown();
229
229
  }
230
230
  render() {
231
- return (h(Host, { key: '5061e1fab03966fc62e46d4529c4ee07ed01df35', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''} ${this.horizontal ? 's-count-down-horizontal' : ''} ${this.withButton ? 's-count-down-with-button' : ''} ${this.offerEnded ? 's-count-down-ended' : ''}` }, this.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
231
+ return (h(Host, { key: '16f2244e2e1b828cd80a186528726a089146acff', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''} ${this.horizontal ? 's-count-down-horizontal' : ''} ${this.withButton ? 's-count-down-with-button' : ''} ${this.offerEnded ? 's-count-down-ended' : ''}` }, this.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
232
232
  }
233
233
  static get is() { return "salla-count-down"; }
234
234
  static get originalStyleUrls() {
@@ -204,7 +204,7 @@ export class SallaDatetimePicker {
204
204
  }
205
205
  }
206
206
  render() {
207
- return h("div", { key: '184743feaf2af9f31cd3b5a864a86f1a561c12fd', class: "s-datetime-picker" }, h("input", { key: '1736e88363b379f872490641168f49090e976e03', type: "datetime", name: this.name, value: this.value, required: this.required, disabled: this.disabled, placeholder: this.placeholder, class: "s-datetime-picker-input", ref: (el) => this.dateInput = el }));
207
+ return h("div", { key: 'cc5f2ca3d3915e90dad91d56b8d18bbdf7be56ce', class: "s-datetime-picker" }, h("input", { key: '05789794f19e151956ceebbfd0419c268c552d5a', type: "datetime", name: this.name, value: this.value, required: this.required, disabled: this.disabled, placeholder: this.placeholder, class: "s-datetime-picker-input", ref: (el) => this.dateInput = el }));
208
208
  }
209
209
  async componentDidLoad() {
210
210
  // Load flatpickr before initializing
@@ -0,0 +1,99 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { h, Host } from "@stencil/core";
5
+ export class SallaEditOrderButton {
6
+ constructor() {
7
+ this.order = null;
8
+ this.loading = true;
9
+ }
10
+ async componentWillLoad() {
11
+ await salla.onReady();
12
+ await this.loadOrder();
13
+ }
14
+ async onOrderIdChange() {
15
+ this.loading = true;
16
+ this.order = null;
17
+ await this.loadOrder();
18
+ }
19
+ get paymentUrl() {
20
+ return this.order?.customer_editing?.payment_url;
21
+ }
22
+ async loadOrder() {
23
+ const orderId = this.orderId || salla.config.get('page.id');
24
+ if (!orderId) {
25
+ this.loading = false;
26
+ return;
27
+ }
28
+ try {
29
+ const response = await salla.order.api.getDetails(orderId);
30
+ this.order = response?.data ?? response ?? null;
31
+ }
32
+ catch (error) {
33
+ salla.logger?.warn?.('[salla-edit-order-button] failed to fetch order details', error);
34
+ this.order = null;
35
+ }
36
+ finally {
37
+ this.loading = false;
38
+ }
39
+ }
40
+ renderEditButton() {
41
+ return (h("salla-count-down", { prefixText: salla.lang.getWithDefault('pages.orders.edit_within', 'يمكنك التعديل خلال'), buttonHref: this.order?.edit_url, buttonText: salla.lang.getWithDefault('pages.orders.edit_order', 'تعديل الطلب'), buttonIcon: "sicon-edit", date: this.order?.editable_until, horizontal: true, autoSegments: true, withButton: true, labeled: false, size: "sm", color: "primary" }));
42
+ }
43
+ render() {
44
+ if (this.loading || !this.order)
45
+ return null;
46
+ if (this.order?.is_editable) {
47
+ return h(Host, null, this.renderEditButton());
48
+ }
49
+ if (!this.paymentUrl)
50
+ return null;
51
+ return (h(Host, null, h("salla-button", { href: this.paymentUrl, color: "primary", size: "small" }, h("i", { class: "sicon-wallet" }), salla.lang.getWithDefault('pages.orders.pay_difference', 'دفع فارق المبلغ'))));
52
+ }
53
+ static get is() { return "salla-edit-order-button"; }
54
+ static get originalStyleUrls() {
55
+ return {
56
+ "$": ["salla-edit-order-button.scss"]
57
+ };
58
+ }
59
+ static get styleUrls() {
60
+ return {
61
+ "$": ["salla-edit-order-button.css"]
62
+ };
63
+ }
64
+ static get properties() {
65
+ return {
66
+ "orderId": {
67
+ "type": "any",
68
+ "attribute": "order-id",
69
+ "mutable": false,
70
+ "complexType": {
71
+ "original": "string | number",
72
+ "resolved": "number | string",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": true,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": "The order ID to fetch details for. Falls back to the current page order ID."
80
+ },
81
+ "getter": false,
82
+ "setter": false,
83
+ "reflect": false
84
+ }
85
+ };
86
+ }
87
+ static get states() {
88
+ return {
89
+ "order": {},
90
+ "loading": {}
91
+ };
92
+ }
93
+ static get watchers() {
94
+ return [{
95
+ "propName": "orderId",
96
+ "methodName": "onOrderIdChange"
97
+ }];
98
+ }
99
+ }
@@ -307,11 +307,11 @@ export class SallaFileUpload {
307
307
  }
308
308
  }
309
309
  render() {
310
- return (h(Host, { key: '978e89fe8713e6b3db913ed8fb3c5d09f6caf705', class: {
310
+ return (h(Host, { key: '9291bd55eba4dd8f7fdac0440821341b4b833ace', class: {
311
311
  "s-file-upload": true,
312
312
  "s-file-upload-profile-image": this.profileImage,
313
313
  "s-file-upload-multiple": this.allowMultiple,
314
- } }, h("input", { key: 'acf6197d43b79a80e7a69219afda29271a86d4eb', type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept }), this.allowMultiple && this.showMaxCountHint ? h("div", { class: "s-file-upload-hint s-hidden" }, this.max_count_hint(this.maxFilesCount)) : '', h("input", { key: 'b8624b0fcaba14f14640acce0a28c12feb78701b', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
314
+ } }, h("input", { key: 'd203f426a3e4ac253ed6e6f96fd495620a87ee47', type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept }), this.allowMultiple && this.showMaxCountHint ? h("div", { class: "s-file-upload-hint s-hidden" }, this.max_count_hint(this.maxFilesCount)) : '', h("input", { key: '865690093e0d86e01a801a50a0d32263ab6adc29', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
315
315
  }
316
316
  componentDidLoad() {
317
317
  let files = this.getFiles();
@@ -187,7 +187,7 @@ export class SallaFilters {
187
187
  this.applyFilters();
188
188
  }
189
189
  render() {
190
- return h(Host, { key: 'f3c454fc20472dca6fe646c9121028a2c045808f' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
190
+ return h(Host, { key: 'b41c36d8512dcac97dbe3a75e5c1e0373673913d' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
191
191
  this.handleOptionChange(event, option, value);
192
192
  } })), this.filters?.length ? h("div", { class: "s-filters-footer" }, h("salla-button", { color: 'gray', fill: 'outline', onClick: () => this.resetFilters() }, this.reset)) : '');
193
193
  }
@@ -163,12 +163,12 @@ export class SallaFiltersWidget {
163
163
  return h("span", { class: "s-filters-option-name" }, label);
164
164
  }
165
165
  render() {
166
- return (h(Host, { key: 'e93cfb9f1f6daeb8a2121ccb36a3cf135a55e902', class: "s-filters-widget-container" }, h("h3", { key: 'd5ef45d78e0119e2ac997ded417e310c0a797c34', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: 'fe4df56fad0d290395d78588456fb7d00a20ed43' }, this.option.label), h("span", { key: 'c961f86b5e06437dfdd145e164da5fe326500032', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '7cf1ed1b562bf16acc481f682965567d8bc1813c', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: '275427371f48fdfc8ef8b80b9d3e11fa247f7d7a', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: '473c082ed9f7415beba445d36a121027eaadbbe1', type: "text", class: "s-filters-widget-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder') || 'بحث...', value: this.searchQuery, onInput: (e) => this.searchQuery = e.target.value }))), h("div", { key: 'e45654731cdd801345acc5b3311d9ddab3020035', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: '5ae673157a4b579a000901b04db8e375a52565e7' }), this.option.type !== FilterOptionTypes.RANGE
166
+ return (h(Host, { key: '033902f6f4ac283b8b501a175b6fdec7c585d68a', class: "s-filters-widget-container" }, h("h3", { key: '3f50c5d20c5563d291979dea0db9f69c72750d3f', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: '4e7f263fc35260f641fb9d0291b26c09f9743a36' }, this.option.label), h("span", { key: '6658e86d8a637ac537f285a210d3d8f0e9279f9f', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '3a172b737bb88d2db6b43391cce2b02198fce61e', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: '91f8f4a00dfd05086ed8a385117dfc1d8eabea4c', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: '87a25343561917b823b3b258aa9b8c8a1cb2a71a', type: "text", class: "s-filters-widget-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder') || 'بحث...', value: this.searchQuery, onInput: (e) => this.searchQuery = e.target.value }))), h("div", { key: '282b6b78bd7659134151aad4ec94c4cc2838c01c', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: 'fae3cf9b337d658bb6a9bee553cb487ecbd1be5f' }), this.option.type !== FilterOptionTypes.RANGE
167
167
  ? this.renderFilterOption(this.option)
168
168
  : h("salla-price-range", { onChanged: (event) => {
169
169
  this.changed.emit(event.detail);
170
170
  }, ref: price => this.priceRange = price, filtersData: this.filtersData, option: this.option })), this.withLoadMore && (!this.searchQuery || this.filteredCount > this.initialItemCount) &&
171
- h("a", { key: '8ec08429d8fb31b338e6f9f9cf455b5ba2155cb8', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
171
+ h("a", { key: '005eedbbf498d86eb735231b754a8abf0aca77b5', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
172
172
  }
173
173
  static get is() { return "salla-filters-widget"; }
174
174
  static get originalStyleUrls() {
@@ -542,7 +542,7 @@ export class SallaGifting {
542
542
  }
543
543
  render() {
544
544
  return [
545
- h("div", { key: 'ea8b7581fc816b2984ec7a8c9f0d5bfb30710577' }, h("salla-list-tile", { key: '44e4b948c467ecbec4934f894af3e88a01567338', class: this.generateClass() }, h("div", { key: 'c36ccc48ff4209d2aad05123981c8efad4de8642', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: 'd5cfd335582f2af620ef50ae92b431b3fdf84b71' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '9623168820eefb63c833dd14c68c1dc20afe1cd1', slot: "subtitle" }, h("div", { key: 'e2fda7dc68054c0f382f61d74a578589b565a544' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'e888e024772c0ef848e4a4113b218bb4e05d78db', slot: "action" }, h("salla-button", { key: 'd443bfd1f5925299a4e0510fae8fc175d390b55a', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '8df23b83891ee2abf644cde76675ca6bb796db79', name: "widget-btn-content" }, h("div", { key: '6b5153a1f1b9d5e127093c3fcc96e2a0fa4954f4', class: "s-gifting-widget-action-content" }, h("span", { key: '41a7f2e88c8046d7211abf5d7fc9d3f533c02292', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '45ea8eac19ca9cccf37cd34d8f84211e6172cd45' }, this.sectionBtnText)))))), h("salla-modal", { key: '5bd076c54c4d072886671653e536c649763785b1', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '378d12f388bd0627355af5b4e57929c00ae28044', slot: "loading" }, h("div", { key: '1b738d4b461a9ebe3a5184f4de727bb1b4b45890', class: "s-gifting-skeleton" }, h("div", { key: '660c901f477536e68d2a3bacd028438c9726b968', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '46f8e45a0a38c10784fc5f3505092e65ed2bba3a', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '09b3356d736e5eb46bb51df2e2fa539dc9d8c99f', class: "s-gifting-modal-title" }, h("div", { key: 'cc8cb7dece64c65d5891e32e49588316e9009f6c', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '41b30274a655babdd0c9e26e74dc3f0bdd4a2aea', height: '15px', width: '150px' })))), h("div", { key: 'b241162827a085279f646452a151d6483a37cc8e', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '5ac15a8e94b50ea03cd033375b08f9e4406a7e17', height: '10px', width: '150px' }), h("salla-skeleton", { key: '697e157e475df0cb71b79e3752019f522ed847a3', height: '230px' }), h("salla-skeleton", { key: '8a5e586c059b765f6425d7060a18e8d799be3c4f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'e1ee17daef6904b8302b0f4437e99b221bd6b236', height: '30px' }), h("salla-skeleton", { key: '9dfbca00f18a37348eb83021ef4fec073685fe7d', height: '40px' })))), h("slot", { key: 'da2c687a186ed115acee04cc683eff3a6a73168f', name: "header" }), !!this.hasError ?
545
+ h("div", { key: 'f20cc2c84e987b34bb862f72a8f639894ed4150e' }, h("salla-list-tile", { key: 'c52aa5e975f9ed1707c3175fa66109f447749ee7', class: this.generateClass() }, h("div", { key: '2bf7065f32132dde95dacfdea44e34c08cc4e61c', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '7a9a70b6841a708c322f5bb729e940e4da823261' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'c346f2baa8e6a1adf9b0f89e9b50d236e65116cb', slot: "subtitle" }, h("div", { key: '26c908af9687b0c77554054212f5c8251dc45bf3' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'f91bf3811c383773425af74941a2067e2f62dbb7', slot: "action" }, h("salla-button", { key: '0639c4b9cc4d81f300f6b087e1c10815b1610c75', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '06567fa7406ae6502e8f3211ecab6161c4a7e397', name: "widget-btn-content" }, h("div", { key: 'f895900d17947b006f6aef4695b855eba4737ed2', class: "s-gifting-widget-action-content" }, h("span", { key: 'bd3170b8efa2a0c95f61718afd69e5473adae20a', innerHTML: GiftSharing }), " \u00A0", h("span", { key: 'cdc3d1df35ad0e7334bc289f9fff2d312d709724' }, this.sectionBtnText)))))), h("salla-modal", { key: 'a98b913100edfa92156baeee766f6141818ebd8b', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '6b438c581e600cbcfeb5260bae8371a1fbefa29c', slot: "loading" }, h("div", { key: 'ada9e9bb0355755eade9ff7846334cb5ae093e6f', class: "s-gifting-skeleton" }, h("div", { key: '11d2e41b6acb933f5b006cc9f0b0b46470892c6a', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '141be7d6aa83fed682f8ab6a3708597dbb4dba11', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '65eba6244b5507397c8e50ef40f695e7eebe0b96', class: "s-gifting-modal-title" }, h("div", { key: '0f2488d19d2de0a728377b9f475b70073f6f196a', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: 'b648340418099246c8b83b308f116412fdb6cbc9', height: '15px', width: '150px' })))), h("div", { key: '8255e53b49f572ef3c4485cf7e84540dac019f89', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '0b05db8e76a9a53032b1643d8c4e223b8b641e30', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'c585bf04433e46ce8e89d9bfc3402faf4cfbb21a', height: '230px' }), h("salla-skeleton", { key: '0c09063b73e3aecb6a1879cdc93b60a6bcb9b2cc', height: '10px', width: '150px' }), h("salla-skeleton", { key: '88f55e5ffded2f784002b44e49f3ab2d22a7c067', height: '30px' }), h("salla-skeleton", { key: '6e1edd3b031f051ec24149ec690d2e4f04f9c557', height: '40px' })))), h("slot", { key: 'bff6a067b10a31c39f22e18c6bdf5a60f56ef116', name: "header" }), !!this.hasError ?
546
546
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
547
547
  :
548
548
  [
@@ -562,7 +562,7 @@ export class SallaGifting {
562
562
  h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), h("select", { name: "city", "aria-label": salla.lang.get('blocks.buy_as_gift.select_city'), class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId) }, h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
563
563
  h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
564
564
  h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo)), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, h("a", { href: "#!", innerHTML: LeftArrow, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
565
- ], h("slot", { key: '20793a5a50c708c93be79df033e43a36e615d075', name: "footer" })))
565
+ ], h("slot", { key: '4cad8b174ab427e6f75b77357efc20e54d791ba4', name: "footer" })))
566
566
  ];
567
567
  }
568
568
  static get is() { return "salla-gifting"; }
@@ -11,7 +11,7 @@ export class SallaHook {
11
11
  this.host.before(element);
12
12
  }
13
13
  render() {
14
- return h(Host, { key: '618467f6911198a5cbf4270694544575e585af27' });
14
+ return h(Host, { key: '2aa8c92dee7e62785fa0f45d967912ae8d6f96c0' });
15
15
  }
16
16
  async componentDidLoad() {
17
17
  // Register this component for hooks system, already on it logic to run componentDidLoad trigger
@@ -26,7 +26,7 @@ export class SallaListTile {
26
26
  };
27
27
  }
28
28
  render() {
29
- return (h(Host, { key: 'e1528afcea1eda05a5ce206e95791e7611d24dd0' }, h("a", { key: '749a73c76d68ad36f1a6609ada69778662d56566', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: '7bfd448f86790b2afe0b7a5b8a5460c3b2be66ee', class: "s-list-tile-item-icon" }, h("slot", { key: '383e28a8832483e8ecc61e4f48a3ff1fe5db1038', name: 'icon' })), h("div", { key: 'c42bf126a9ff4014a4e2d85ff12b41d1a88a0e03', class: "s-list-tile-item-content" }, h("div", { key: '18a4a9ebd39e3a710f70dc33554d24e3c2850e53', class: "s-list-tile-item-title" }, h("slot", { key: '7211d627511bf2448cf161f40cc82b1822dd1e7a', name: 'title' })), h("div", { key: '044a7d76e05841f484387c7ed299107f33c9bc21', class: "s-list-tile-item-subtitle" }, h("slot", { key: 'df131034f1c5434722543e25552caed142794d55', name: "subtitle" }))), h("div", { key: '37abe0abab720da11cd55660578ec256c062e763', class: "s-list-tile-item-action" }, h("slot", { key: 'fcac02da17981ef4c6fa3cea50c551e3010352d9', name: 'action' })))));
29
+ return (h(Host, { key: '1f5e8a06d1c1aa0df00b09eec0c0a1efbf590748' }, h("a", { key: 'f9b772a03f745b07e2456cd74c73ab695f3754ff', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: 'e90d46a29df8ea298489deba9b88bc6f84ebd5aa', class: "s-list-tile-item-icon" }, h("slot", { key: 'a5c40e495d05b5d45bae8ed133eca034f439368d', name: 'icon' })), h("div", { key: '2ded5a53f567c8eddb05d24a5f59875d3a7ac1ac', class: "s-list-tile-item-content" }, h("div", { key: '80e6962e698223c893b40a4a62d8ce67aa3ab27c', class: "s-list-tile-item-title" }, h("slot", { key: '87f95d3ae826904a55e0e4724340f55344371789', name: 'title' })), h("div", { key: '7fc838f33b9e65ca8c9f11bce4b506aad7d7ecb1', class: "s-list-tile-item-subtitle" }, h("slot", { key: 'f936a3770d59d3b56287927a447df9c8fa697310', name: "subtitle" }))), h("div", { key: 'e974fd4591921468f4a882370303709718ef6e64', class: "s-list-tile-item-action" }, h("slot", { key: '9d2adb70f0c75b18474f0f05c99000327e081ce8', name: 'action' })))));
30
30
  }
31
31
  static get is() { return "salla-list-tile"; }
32
32
  static get originalStyleUrls() {