@salla.sa/twilight-components 2.14.426 → 2.14.428

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 (443) hide show
  1. package/dist/cjs/{filepond-510sQtuo.js → filepond-D_s3HvDq.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-z-1MNuz4.js → filepond-plugin-file-poster-C4iOlG0w.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-EWd1gmbO.js → filepond-plugin-file-validate-size-tdAA3isk.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-BCBt19mU.js → filepond-plugin-file-validate-type-D9weHJX2.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-iNAVaPwf.js → filepond-plugin-image-edit-Cue4gd69.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-DiM84jbH.js → filepond-plugin-image-exif-orientation-DtvYPP0B.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-sigbMp9v.js → filepond-plugin-image-preview-CCEpCBgC.js} +1 -1
  8. package/dist/cjs/{functions-B5bzFKvW.js → functions-DXx6pLur.js} +1 -1
  9. package/dist/cjs/{index-Caamiwh6.js → index-CJ1hA4la.js} +6 -6
  10. package/dist/cjs/{index-Lg5EBRS3.js → index-Dotxdipd.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +17 -17
  21. package/dist/cjs/{salla-bullet-delivery.cjs.entry.js → salla-bullet-delivery_2.cjs.entry.js} +635 -140
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +2 -2
  24. package/dist/cjs/salla-comment-form_8.cjs.entry.js +8 -8
  25. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-count-down.cjs.entry.js +2 -2
  29. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-delivery-promise.cjs.entry.js +43 -17
  31. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
  33. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  34. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +2 -2
  35. package/dist/cjs/salla-gifting.cjs.entry.js +3 -3
  36. package/dist/cjs/salla-hook.cjs.entry.js +2 -2
  37. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
  41. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +8 -8
  44. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  45. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  47. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
  48. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-map.cjs.entry.js +4 -4
  51. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
  54. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
  55. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
  56. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +4 -2
  57. package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
  58. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
  60. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
  64. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  68. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  71. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  72. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  73. package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
  74. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  75. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-reward-action_4.cjs.entry.js +11 -11
  80. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  81. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  82. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  83. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  85. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  87. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  88. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  89. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  95. package/dist/cjs/{tracked-promise-DMAN9eMT.js → tracked-promise-CXsGcQwa.js} +1 -1
  96. package/dist/cjs/twilight.cjs.js +2 -2
  97. package/dist/cjs/{vanilla-picker-JE6Ow90L.js → vanilla-picker-BSVxRBEK.js} +1 -1
  98. package/dist/collection/collection-manifest.json +7 -0
  99. package/dist/collection/components/salla-bullet-delivery/api-service.js +80 -13
  100. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +5 -0
  101. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +344 -120
  102. package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +1 -1
  103. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
  104. package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
  105. package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
  106. package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
  107. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
  108. package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
  109. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
  110. package/dist/collection/components/salla-delivery-promise/delivery-promise-api.js +4 -5
  111. package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +40 -12
  112. package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
  113. package/dist/collection/components/salla-filters/salla-filters.js +1 -1
  114. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
  115. package/dist/collection/components/salla-fulfillment-methods/salla-fulfillment-methods.js +1 -1
  116. package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
  117. package/dist/collection/components/salla-hook/salla-hook.js +1 -1
  118. package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
  119. package/dist/collection/components/salla-loading/salla-loading.js +1 -1
  120. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
  121. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
  122. package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
  123. package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +3 -3
  124. package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
  125. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +1 -1
  126. package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
  127. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
  128. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +3 -3
  129. package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
  130. package/dist/collection/components/salla-map/salla-map.js +3 -3
  131. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
  132. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
  133. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
  134. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
  135. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
  136. package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +3 -1
  137. package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
  138. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  139. package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
  140. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
  141. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  142. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  143. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  144. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  145. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  146. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  147. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  148. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  149. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  150. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  151. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  152. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  153. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  154. package/dist/collection/components/salla-search/salla-search.js +5 -5
  155. package/dist/collection/components/salla-searchable-dropdown/interfaces.js +1 -0
  156. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +566 -0
  157. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  158. package/dist/collection/components/salla-social/salla-social.js +1 -1
  159. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  160. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  161. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  162. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  163. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  164. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  165. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  166. package/dist/components/index.js +2 -2
  167. package/dist/components/salla-bullet-delivery.js +445 -148
  168. package/dist/components/salla-cart-coupons.js +1 -1
  169. package/dist/components/salla-cart-summary.js +1 -1
  170. package/dist/components/salla-color-picker2.js +1 -1
  171. package/dist/components/salla-comment-form2.js +1 -1
  172. package/dist/components/salla-comment-item2.js +3 -3
  173. package/dist/components/salla-conditional-fields2.js +1 -1
  174. package/dist/components/salla-count-down2.js +1 -1
  175. package/dist/components/salla-datetime-picker2.js +1 -1
  176. package/dist/components/salla-delivery-promise.js +42 -16
  177. package/dist/components/salla-file-upload2.js +2 -2
  178. package/dist/components/salla-filters-widget2.js +2 -2
  179. package/dist/components/salla-filters.js +1 -1
  180. package/dist/components/salla-fulfillment-methods.js +1 -1
  181. package/dist/components/salla-gifting.js +2 -2
  182. package/dist/components/salla-hook.js +1 -1
  183. package/dist/components/salla-list-tile2.js +1 -1
  184. package/dist/components/salla-loading2.js +1 -1
  185. package/dist/components/salla-localization-modal.js +1 -1
  186. package/dist/components/salla-loyalty-hero2.js +3 -3
  187. package/dist/components/salla-loyalty-point2.js +3 -3
  188. package/dist/components/salla-loyalty-prize-item.js +1 -1
  189. package/dist/components/salla-loyalty-reward.js +2 -2
  190. package/dist/components/salla-maintenance-alert.js +1 -1
  191. package/dist/components/salla-map2.js +3 -3
  192. package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
  193. package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
  194. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
  195. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  196. package/dist/components/salla-multiple-bundle-product.js +1 -1
  197. package/dist/components/salla-next-order-coupon.js +3 -1
  198. package/dist/components/salla-notification-item2.js +1 -1
  199. package/dist/components/salla-offer-modal.js +1 -1
  200. package/dist/components/salla-order-details.js +1 -1
  201. package/dist/components/salla-order-edit-product-card.js +1 -1
  202. package/dist/components/salla-order-summary.js +1 -1
  203. package/dist/components/salla-payments.js +2 -2
  204. package/dist/components/salla-placeholder2.js +1 -1
  205. package/dist/components/salla-price-range2.js +2 -2
  206. package/dist/components/salla-product-availability2.js +1 -1
  207. package/dist/components/salla-product-card2.js +5 -5
  208. package/dist/components/salla-product-size-guide.js +2 -2
  209. package/dist/components/salla-quantity-input2.js +1 -1
  210. package/dist/components/salla-quick-buy2.js +1 -1
  211. package/dist/components/salla-review-card2.js +1 -1
  212. package/dist/components/salla-reviews-page.js +1 -1
  213. package/dist/components/salla-reviews.js +1 -1
  214. package/dist/components/salla-reward-action2.js +1 -1
  215. package/dist/components/salla-reward-card2.js +1 -1
  216. package/dist/components/salla-reward-details2.js +3 -3
  217. package/dist/components/salla-reward-exchange2.js +3 -3
  218. package/dist/components/salla-scopes.js +1 -1
  219. package/dist/components/salla-search.js +5 -5
  220. package/dist/components/salla-searchable-dropdown.d.ts +11 -0
  221. package/dist/components/salla-searchable-dropdown.js +9 -0
  222. package/dist/components/salla-searchable-dropdown2.js +255 -0
  223. package/dist/components/salla-skeleton2.js +1 -1
  224. package/dist/components/salla-social-share.js +1 -1
  225. package/dist/components/salla-social.js +1 -1
  226. package/dist/components/salla-tab-content2.js +1 -1
  227. package/dist/components/salla-tab-header2.js +1 -1
  228. package/dist/components/salla-tabs2.js +1 -1
  229. package/dist/components/salla-tel-input2.js +1 -1
  230. package/dist/components/salla-tooltip2.js +1 -1
  231. package/dist/components/salla-user-settings.js +1 -1
  232. package/dist/esm/{filepond-Dsmh37s8.js → filepond-EbHhfQ2h.js} +1 -1
  233. package/dist/esm/{filepond-plugin-file-poster-D_DbNtTu.js → filepond-plugin-file-poster-NI3abP58.js} +1 -1
  234. package/dist/esm/{filepond-plugin-file-validate-size-TmlZBEB7.js → filepond-plugin-file-validate-size-B6y95YaS.js} +1 -1
  235. package/dist/esm/{filepond-plugin-file-validate-type-CsP3KOU8.js → filepond-plugin-file-validate-type-DFmkHdVr.js} +1 -1
  236. package/dist/esm/{filepond-plugin-image-edit-CUu5Zp6h.js → filepond-plugin-image-edit-pwPBfksJ.js} +1 -1
  237. package/dist/esm/{filepond-plugin-image-exif-orientation-BOQOVJ6l.js → filepond-plugin-image-exif-orientation-jJpoA9Lm.js} +1 -1
  238. package/dist/esm/{filepond-plugin-image-preview-DHbbDW9K.js → filepond-plugin-image-preview-ClEFsrPa.js} +1 -1
  239. package/dist/esm/{functions-DcLenERt.js → functions-CGUgaH8t.js} +1 -1
  240. package/dist/esm/{index-BO4PufG1.js → index-D36ugbw7.js} +6 -6
  241. package/dist/esm/{index-D2X1w3bP.js → index-zaYTVmuU.js} +1 -1
  242. package/dist/esm/loader.js +3 -3
  243. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  244. package/dist/esm/salla-accordion_6.entry.js +2 -2
  245. package/dist/esm/salla-add-product-button_5.entry.js +3 -3
  246. package/dist/esm/salla-advertisement.entry.js +1 -1
  247. package/dist/esm/salla-alert_2.entry.js +1 -1
  248. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  249. package/dist/esm/salla-apps-icons.entry.js +1 -1
  250. package/dist/esm/salla-badge.entry.js +1 -1
  251. package/dist/esm/salla-booking-field_7.entry.js +17 -17
  252. package/dist/esm/{salla-bullet-delivery.entry.js → salla-bullet-delivery_2.entry.js} +635 -141
  253. package/dist/esm/salla-cart-coupons.entry.js +2 -2
  254. package/dist/esm/salla-cart-item-offers_2.entry.js +2 -2
  255. package/dist/esm/salla-comment-form_8.entry.js +8 -8
  256. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  257. package/dist/esm/salla-contacts.entry.js +1 -1
  258. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  259. package/dist/esm/salla-count-down.entry.js +2 -2
  260. package/dist/esm/salla-custom-fields.entry.js +1 -1
  261. package/dist/esm/salla-delivery-promise.entry.js +43 -17
  262. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  263. package/dist/esm/salla-filters-widget.entry.js +3 -3
  264. package/dist/esm/salla-filters.entry.js +2 -2
  265. package/dist/esm/salla-fulfillment-methods.entry.js +2 -2
  266. package/dist/esm/salla-gifting.entry.js +3 -3
  267. package/dist/esm/salla-hook.entry.js +2 -2
  268. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  269. package/dist/esm/salla-installment.entry.js +1 -1
  270. package/dist/esm/salla-list-tile.entry.js +2 -2
  271. package/dist/esm/salla-localization-modal.entry.js +2 -2
  272. package/dist/esm/salla-login-modal.entry.js +1 -1
  273. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  274. package/dist/esm/salla-loyalty-hero_2.entry.js +8 -8
  275. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  276. package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
  277. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  278. package/dist/esm/salla-loyalty-reward.entry.js +4 -4
  279. package/dist/esm/salla-loyalty.entry.js +1 -1
  280. package/dist/esm/salla-maintenance-alert.entry.js +2 -2
  281. package/dist/esm/salla-map.entry.js +4 -4
  282. package/dist/esm/salla-menu.entry.js +1 -1
  283. package/dist/esm/salla-metadata.entry.js +1 -1
  284. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
  285. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
  286. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  287. package/dist/esm/salla-next-order-coupon.entry.js +4 -2
  288. package/dist/esm/salla-notification-item.entry.js +2 -2
  289. package/dist/esm/salla-notifications.entry.js +1 -1
  290. package/dist/esm/salla-offer-modal.entry.js +2 -2
  291. package/dist/esm/salla-offer.entry.js +1 -1
  292. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  293. package/dist/esm/salla-order-details-options.entry.js +1 -1
  294. package/dist/esm/salla-order-details.entry.js +2 -2
  295. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  296. package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
  297. package/dist/esm/salla-order-edit.entry.js +1 -1
  298. package/dist/esm/salla-order-summary.entry.js +2 -2
  299. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  300. package/dist/esm/salla-orders.entry.js +1 -1
  301. package/dist/esm/salla-payments.entry.js +3 -3
  302. package/dist/esm/salla-placeholder.entry.js +2 -2
  303. package/dist/esm/salla-price-range.entry.js +3 -3
  304. package/dist/esm/salla-product-card_2.entry.js +6 -6
  305. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  306. package/dist/esm/salla-products-list.entry.js +1 -1
  307. package/dist/esm/salla-progress-bar.entry.js +1 -1
  308. package/dist/esm/salla-quick-order.entry.js +1 -1
  309. package/dist/esm/salla-rating-modal.entry.js +1 -1
  310. package/dist/esm/salla-reward-action_4.entry.js +11 -11
  311. package/dist/esm/salla-scopes.entry.js +2 -2
  312. package/dist/esm/salla-search.entry.js +6 -6
  313. package/dist/esm/salla-skeleton.entry.js +2 -2
  314. package/dist/esm/salla-slider.entry.js +1 -1
  315. package/dist/esm/salla-social-share.entry.js +2 -2
  316. package/dist/esm/salla-social.entry.js +2 -2
  317. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  318. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  319. package/dist/esm/salla-tooltip.entry.js +2 -2
  320. package/dist/esm/salla-trust-badges.entry.js +1 -1
  321. package/dist/esm/salla-user-menu.entry.js +1 -1
  322. package/dist/esm/salla-user-profile.entry.js +1 -1
  323. package/dist/esm/salla-user-settings.entry.js +2 -2
  324. package/dist/esm/salla-verify.entry.js +1 -1
  325. package/dist/esm/salla-wallet.entry.js +1 -1
  326. package/dist/esm/{tracked-promise-lbX3p7Ew.js → tracked-promise-27t68d0-.js} +1 -1
  327. package/dist/esm/twilight.js +3 -3
  328. package/dist/esm/{vanilla-picker-Cv5WcsNp.js → vanilla-picker-9f5m-cXz.js} +1 -1
  329. package/dist/twilight/{p-707cbf67.entry.js → p-00d6d5a7.entry.js} +1 -1
  330. package/dist/twilight/{p-0590b074.entry.js → p-06cc942b.entry.js} +1 -1
  331. package/dist/twilight/{p-3b116cce.entry.js → p-09428ac3.entry.js} +1 -1
  332. package/dist/twilight/p-09f1e7a3.entry.js +4 -0
  333. package/dist/twilight/{p-130f9860.entry.js → p-0e95604c.entry.js} +1 -1
  334. package/dist/twilight/{p-01af13c0.entry.js → p-11e4f88a.entry.js} +1 -1
  335. package/dist/twilight/{p-bb3be480.entry.js → p-1485beda.entry.js} +1 -1
  336. package/dist/twilight/{p-b18ef799.entry.js → p-18200aa4.entry.js} +1 -1
  337. package/dist/twilight/{p-235fe9c8.entry.js → p-19d93cc0.entry.js} +1 -1
  338. package/dist/twilight/{p-f99e1d01.entry.js → p-1ce63a18.entry.js} +1 -1
  339. package/dist/twilight/{p-dbaf2730.entry.js → p-1e06982a.entry.js} +1 -1
  340. package/dist/twilight/{p-e3b22019.entry.js → p-1f81ad02.entry.js} +1 -1
  341. package/dist/twilight/{p-e7c672a0.entry.js → p-204c0e9d.entry.js} +1 -1
  342. package/dist/twilight/{p-cd7fe259.entry.js → p-2286b9bd.entry.js} +1 -1
  343. package/dist/twilight/{p-b809a1c4.entry.js → p-2da26159.entry.js} +1 -1
  344. package/dist/twilight/{p-2cadcc9c.entry.js → p-2eac3905.entry.js} +1 -1
  345. package/dist/twilight/{p-98667c47.entry.js → p-338919cf.entry.js} +1 -1
  346. package/dist/twilight/{p-1ffac611.entry.js → p-38fb52dd.entry.js} +1 -1
  347. package/dist/twilight/{p-53fb98d5.entry.js → p-406d9fb5.entry.js} +1 -1
  348. package/dist/twilight/{p-7f12b845.entry.js → p-40a195c9.entry.js} +1 -1
  349. package/dist/twilight/p-41cd57e8.entry.js +4 -0
  350. package/dist/twilight/{p-bd1b9a48.entry.js → p-430c9160.entry.js} +1 -1
  351. package/dist/twilight/{p-a8ab7c46.entry.js → p-434aac8a.entry.js} +1 -1
  352. package/dist/twilight/{p-0a3e12b2.entry.js → p-4383e32a.entry.js} +1 -1
  353. package/dist/twilight/{p-05dc2f10.entry.js → p-45594bda.entry.js} +1 -1
  354. package/dist/twilight/p-49df1e46.entry.js +4 -0
  355. package/dist/twilight/{p-53d1424f.entry.js → p-4b7bba26.entry.js} +1 -1
  356. package/dist/twilight/{p-33708f2c.entry.js → p-4f7f6ada.entry.js} +1 -1
  357. package/dist/twilight/p-502acc91.entry.js +4 -0
  358. package/dist/twilight/{p-39280ec0.entry.js → p-54343a8e.entry.js} +1 -1
  359. package/dist/twilight/{p-a679c3b3.entry.js → p-5a6a4e59.entry.js} +1 -1
  360. package/dist/twilight/{p-448d8f41.entry.js → p-5bfa1bb7.entry.js} +1 -1
  361. package/dist/twilight/{p-6f08afa5.entry.js → p-5de03536.entry.js} +1 -1
  362. package/dist/twilight/{p-d9a7a0f6.entry.js → p-5dede492.entry.js} +1 -1
  363. package/dist/twilight/{p-cc629d48.entry.js → p-67218c7a.entry.js} +1 -1
  364. package/dist/twilight/{p-cf1789e5.entry.js → p-6a3e7c04.entry.js} +1 -1
  365. package/dist/twilight/{p-0e8d9d0f.entry.js → p-6da10576.entry.js} +1 -1
  366. package/dist/twilight/{p-e5bb3294.entry.js → p-6e1cdc82.entry.js} +1 -1
  367. package/dist/twilight/{p-BvUtr46H.js → p-7ETNA5wV.js} +1 -1
  368. package/dist/twilight/{p-b5663539.entry.js → p-7b663a9e.entry.js} +1 -1
  369. package/dist/twilight/p-7c620aae.entry.js +4 -0
  370. package/dist/twilight/p-7ef82df0.entry.js +4 -0
  371. package/dist/twilight/{p-c01fad3c.entry.js → p-7f19448e.entry.js} +1 -1
  372. package/dist/twilight/p-845c79a1.entry.js +4 -0
  373. package/dist/twilight/{p-a4e30480.entry.js → p-88c5737c.entry.js} +1 -1
  374. package/dist/twilight/{p-c04393ca.entry.js → p-895d6644.entry.js} +1 -1
  375. package/dist/twilight/{p-3582127a.entry.js → p-897d98b8.entry.js} +1 -1
  376. package/dist/twilight/{p-6e296143.entry.js → p-8fd38f8d.entry.js} +1 -1
  377. package/dist/twilight/{p-14903d46.entry.js → p-92d2ddb2.entry.js} +1 -1
  378. package/dist/twilight/{p-8ef579f8.entry.js → p-946b77c0.entry.js} +1 -1
  379. package/dist/twilight/{p-c1317994.entry.js → p-96292e66.entry.js} +1 -1
  380. package/dist/twilight/{p-890c1a92.entry.js → p-9a404557.entry.js} +1 -1
  381. package/dist/twilight/{p-80804925.entry.js → p-9a5f0f9d.entry.js} +1 -1
  382. package/dist/twilight/{p-46971762.entry.js → p-9a860c81.entry.js} +1 -1
  383. package/dist/twilight/{p-c37b818b.entry.js → p-9cc9e423.entry.js} +1 -1
  384. package/dist/twilight/{p-DDuo_I0r.js → p-BB7A2YQb.js} +1 -1
  385. package/dist/twilight/{p-D2dA64xR.js → p-BQPueUNn.js} +1 -1
  386. package/dist/twilight/{p-DjuY9Jnz.js → p-Bt0u20rl.js} +1 -1
  387. package/dist/twilight/{p-B86BGqoz.js → p-CFB0tgem.js} +1 -1
  388. package/dist/twilight/{p-LERSCyEP.js → p-CgXDyb0S.js} +1 -1
  389. package/dist/twilight/{p-BO4PufG1.js → p-D36ugbw7.js} +1 -1
  390. package/dist/twilight/{p-qKfSvDcI.js → p-DB4vHa_X.js} +1 -1
  391. package/dist/twilight/{p-2wfOtzjM.js → p-DLc4JI_x.js} +1 -1
  392. package/dist/twilight/{p-BspFf4Kn.js → p-DTXdHzRd.js} +1 -1
  393. package/dist/twilight/{p-ff880134.entry.js → p-a5d068e0.entry.js} +1 -1
  394. package/dist/twilight/{p-918ff81e.entry.js → p-a61cb79d.entry.js} +1 -1
  395. package/dist/twilight/p-a7c808b6.entry.js +4 -0
  396. package/dist/twilight/{p-d78e892c.entry.js → p-a9b9d4db.entry.js} +1 -1
  397. package/dist/twilight/p-abe816ab.entry.js +4 -0
  398. package/dist/twilight/{p-b7a8d181.entry.js → p-acc58cef.entry.js} +1 -1
  399. package/dist/twilight/{p-f793dbbd.entry.js → p-ad77def2.entry.js} +1 -1
  400. package/dist/twilight/{p-4ea85ab2.entry.js → p-aeaefc51.entry.js} +1 -1
  401. package/dist/twilight/{p-4d13a6df.entry.js → p-b0d6e0dd.entry.js} +1 -1
  402. package/dist/twilight/{p-39373cca.entry.js → p-b582862d.entry.js} +1 -1
  403. package/dist/twilight/{p-fb227bbc.entry.js → p-b7e1dedf.entry.js} +1 -1
  404. package/dist/twilight/p-b852909a.entry.js +4 -0
  405. package/dist/twilight/{p-41d1f2e9.entry.js → p-bf91ba77.entry.js} +1 -1
  406. package/dist/twilight/{p-3c8180cd.entry.js → p-d4fd8316.entry.js} +1 -1
  407. package/dist/twilight/{p-03c6a8bb.entry.js → p-d7b03f6f.entry.js} +1 -1
  408. package/dist/twilight/{p-50062444.entry.js → p-d8fdf8ab.entry.js} +1 -1
  409. package/dist/twilight/{p-870f473c.entry.js → p-dfaa2d2f.entry.js} +1 -1
  410. package/dist/twilight/{p-0e185c70.entry.js → p-e416b6e5.entry.js} +1 -1
  411. package/dist/twilight/{p-227164b2.entry.js → p-e51d3f9d.entry.js} +1 -1
  412. package/dist/twilight/{p-a7350994.entry.js → p-e5605bd2.entry.js} +1 -1
  413. package/dist/twilight/{p-bd318fd3.entry.js → p-e5695c64.entry.js} +1 -1
  414. package/dist/twilight/{p-ab401a6c.entry.js → p-e73ab17f.entry.js} +1 -1
  415. package/dist/twilight/p-e78c99c3.entry.js +4 -0
  416. package/dist/twilight/{p-86fb7a69.entry.js → p-eca295a4.entry.js} +1 -1
  417. package/dist/twilight/{p-abce7f63.entry.js → p-edbd5f07.entry.js} +1 -1
  418. package/dist/twilight/{p-a5d5b2d7.entry.js → p-f6058fee.entry.js} +1 -1
  419. package/dist/twilight/{p-315a4d3b.entry.js → p-f74ac87f.entry.js} +1 -1
  420. package/dist/twilight/{p-19251e7b.entry.js → p-f97d12f4.entry.js} +1 -1
  421. package/dist/twilight/{p-0b0b6963.entry.js → p-fd75e7df.entry.js} +1 -1
  422. package/dist/twilight/{p-BNErtjcV.js → p-mGTS4AOS.js} +1 -1
  423. package/dist/twilight/{p-jl56eEwg.js → p-puXyXCsy.js} +1 -1
  424. package/dist/twilight/twilight.esm.js +1 -1
  425. package/dist/types/components/salla-bullet-delivery/api-service.d.ts +6 -5
  426. package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +38 -6
  427. package/dist/types/components/salla-delivery-promise/delivery-promise-api.d.ts +1 -1
  428. package/dist/types/components/salla-delivery-promise/salla-delivery-promise.d.ts +2 -0
  429. package/dist/types/components/salla-searchable-dropdown/interfaces.d.ts +5 -0
  430. package/dist/types/components/salla-searchable-dropdown/salla-searchable-dropdown.d.ts +47 -0
  431. package/dist/types/components.d.ts +135 -0
  432. package/package.json +5 -5
  433. package/dist/twilight/p-06a2c350.entry.js +0 -4
  434. package/dist/twilight/p-3823e4e9.entry.js +0 -4
  435. package/dist/twilight/p-40156b58.entry.js +0 -4
  436. package/dist/twilight/p-572ef0b9.entry.js +0 -4
  437. package/dist/twilight/p-7f6f712b.entry.js +0 -4
  438. package/dist/twilight/p-8a8ebb7a.entry.js +0 -4
  439. package/dist/twilight/p-93b869f8.entry.js +0 -4
  440. package/dist/twilight/p-b7146f11.entry.js +0 -4
  441. package/dist/twilight/p-cb254a12.entry.js +0 -4
  442. package/dist/twilight/p-e6b3b54f.entry.js +0 -4
  443. package/dist/twilight/p-feb4e5ed.entry.js +0 -4
@@ -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: '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))))))));
239
+ return (h(Host, { key: '06e285be96e1b3cb5f30768bbde2799ba3877301' }, h("div", { key: '5eafc2657a6ac40069b6770cad0254ce818ca2a0', class: "s-cart-coupons-wrapper" }, h("div", { key: 'baffec795f630d009a64ba4fa5b8b8e95c997964', class: "s-cart-coupons-input-section" }, h("label", { key: '45abf5b292725af1543d32257a965404f8d30f36', htmlFor: "coupon-input", class: "s-cart-coupons-coupon-label" }, salla.lang.get('pages.cart.have_coupon')), h("div", { key: '144676d26effbf19c34008cdb14f20fa7c227e70', class: "s-cart-coupons-coupon-input-container" }, h("input", { key: 'b398928219e33171f32412bb2d41b0d9700c3369', 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: 'f6ea624d4ac233c1ecd26a3c8d11ba84bc07b940', 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: '31a5f1b35fe53207706831284a2b8ea7b7384b4a', class: "s-cart-coupons-coupon-error" }, this.couponError))), this.availableCoupons && this.availableCoupons.length > 0 && (h("salla-slider", { key: 'e0201b153738446fcda9d28d4ad1bab7d69c950e', type: "carousel", showControls: false, class: "s-cart-coupons-slider" }, h("div", { key: 'd60bfa116bef42a2a25806703e05d18d0084d466', 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: '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) })))));
105
+ return (h(Host, { key: '14e724a96abab2d16444b94e4e13964fb970c39a' }, h("a", { key: '91095f9e7e119a9a512a0f3b7c9ac5130f8224c6', class: "s-cart-summary-wrapper", href: this.getCartLink() }, h("div", { key: '6aeeea8c529abd02c012a36c9d4bda66f7e1f64d', id: "s-cart-icon" }, h("slot", { key: 'a9de44b9c24c779905ce2a72055378632b80bb70', name: "icon" }, h("i", { key: 'c82466e218ba8602b7f7cccee1874c52a94a3e3e', class: "s-cart-summary-icon", innerHTML: CartIcon }))), h("span", { key: '37c8068bd685f1d64dcc646369134a3302f2164c', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '7880ea8fe28b197d0874d2fbe2dc44f52ea4b364', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '1a6e2a3a26b7d23a82ede015fd660e98c03f8e86', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: 'ddce63b92173cc9adff16bc2805e7b154d3e5d90', 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: '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) })));
201
+ return (h(Host, { key: 'f1c244ae30b02bed79b8d4de1adf667d697e1f82', class: "s-color-picker-main" }, h("slot", { key: '9fd1e6d787b6768364d6784d8728c815dc597fc4', name: "widget" }, h("div", { key: '3717b7e1d2ff9e07172570c67397c7b9fc223195', class: "s-color-picker-widget" }, h("div", { key: 'df43c0be157d3546b5b53e8290412df2c55a2bbf', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: '879d020f9b3d0a6e3c4899948611fa76a2fa2324', innerHTML: ArrowDown }))), h("input", { key: 'b4b13cc56691dca5756c4828d6ba96b670ddff2f', 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: '2203b9f365e0658a3bc40fb0274ba9ddc0d1e040' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
41
+ return (h(Host, { key: 'a9caa6cb393989ab534471f5fabed599ec0a8a66' }, !!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: '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 ?
124
+ return (h(Host, { key: 'f17a6ca5a30774c5e1717a2dd38ea60c7f6d115f', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { key: '5aaee8d0d106b7ab13d7ee6d5faeca62d1a63e5a', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { key: '5a4a64b66ca042659fc1cea7ccdd5817d880591d', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { key: '2a26096e1d38747c230353c8c88de8eea5f3cec8', class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { key: '6862b2147ddf33832f91d297bc5d8903cef65f3e', class: "s-comments-item-avatar" }, h("img", { key: '13e3856709d1a714e324ad164fe6cc8ac4602a69', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { key: '376665b2687ace024833109874642a144083a15e', class: "s-comments-flex-1" }, h("div", { key: 'b18b0cddaca195565a14685e48896c3f832f1c75', class: "s-comments-item-user-wrapper" }, h("div", { key: '87e199f5c0c3cae12072d082042274a6e00fcdf2', class: "s-comments-item-user-info" }, h("h3", { key: '730741d83523f9798e795655206958ba8bd06de7', 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: '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 ?
130
+ : null), h("p", { key: '0ed20c109de0bdbe61344327a633b72e3881b6ce', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '922b11bc062c1ce6e53e997a2a5708f545e92c2a', 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: '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 ?
132
+ : null), h("div", { key: '288ed655c6c223ec54f84da46088b57734524839', class: "s-comments-item-content" }, h("p", { key: '6ac007441490d1b1479811d6bcdc6841b181fa95', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: '2046daf302f3813482bc2736e5b942cc13a704c8', 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: '61326b451d2275514510b599e97a94e8a38a18f5', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '4496ed68e88120e30ccbb3daf9d11dccd56dcce5', 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: 'ea919a2d8717378d56b9c541e635a932f8b8a1ff', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: 'af0aa4798aa0a1ab126799120f5bce6b2cbee777', 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 }));
@@ -129,7 +129,7 @@ export class SallaConditionalFields {
129
129
  });
130
130
  }
131
131
  render() {
132
- return (h(Host, { key: 'a7314ccb4aaccc58db6c24db7a0f57e53087fdac' }, h("slot", { key: '0f192d2fd0670c8ba0e3d94dc84fed81123373b2' })));
132
+ return (h(Host, { key: 'e43af073570c2862ec8365297aa40f3ff4319d18' }, h("slot", { key: '0c3577eb4f4c287eb99fe1df054785cbbfbf8dbc' })));
133
133
  }
134
134
  static get is() { return "salla-conditional-fields"; }
135
135
  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: '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()));
231
+ return (h(Host, { key: '9e2372c96dde6479f39d197c29b8edbc7be1b2e4', 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: '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 }));
207
+ return h("div", { key: '1ab467a6f2e4459d0bdfbd72149fb468fcad4ccb', class: "s-datetime-picker" }, h("input", { key: '7d5a567c0d9f0c4a945a95c342c0f9e3a79a00c3', 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
@@ -2,7 +2,7 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  const DEBUG_KEY = 'salla-delivery-promise-debug';
5
- function log(message, data) {
5
+ export function log(message, data) {
6
6
  if (localStorage.getItem(DEBUG_KEY)) {
7
7
  data !== undefined ? console.log(message, data) : console.log(message);
8
8
  }
@@ -13,11 +13,10 @@ export async function fetchCities(productId) {
13
13
  const response = await salla.api.request(salla.url.api(`products/${productId}/delivery-promises/cities`));
14
14
  if (!response.success || !Array.isArray(response.data) || response.data.length === 0) {
15
15
  log('fetchCities: no data', { response });
16
- return { cities: [], preselected: undefined };
16
+ return { cities: [] };
17
17
  }
18
- const preselected = response.data.find((c) => c.is_selected);
19
- log('fetchCities success', { count: response.data.length, preselected });
20
- return { cities: response.data, preselected };
18
+ log('fetchCities success', { count: response.data.length });
19
+ return { cities: response.data };
21
20
  }
22
21
  /** Fetch the delivery promise message for a given city or branch. */
23
22
  export async function fetchDeliveryMessage(productId, id, optionType, isLoginCycleEnabled) {
@@ -6,6 +6,8 @@ import { fetchCities, fetchDeliveryMessage } from "./delivery-promise-api";
6
6
  import { filterCitiesForModal } from "./delivery-promise-city-filter";
7
7
  import { buildBulletOpenPayload, resolveIntent } from "./delivery-promise-intent";
8
8
  import { DEFAULT_LABELS, getCityDisplayName, loadLabels } from "./delivery-promise-labels";
9
+ import { log } from "./delivery-promise-api";
10
+ const OVERRIDE_IP_KEY = 'salla-bullet-delivery-override-ip';
9
11
  /**
10
12
  * @name SallaDeliveryPromise
11
13
  * @description Displays delivery promise message (from BE) with city selection
@@ -76,9 +78,7 @@ export class SallaDeliveryPromise {
76
78
  return;
77
79
  }
78
80
  if (this.isLoginCycleEnabled) {
79
- this.applyBulletIntent();
80
- this.canRender = true;
81
- window.addEventListener('bulletDeliveryConfirmed', this.onBulletDeliveryConfirmed);
81
+ await this.initLoginCycleFlow();
82
82
  }
83
83
  else {
84
84
  this.selectedLabel = `${this.labels.deliveryTo} ${this.labels.selectCity}`;
@@ -88,6 +88,26 @@ export class SallaDeliveryPromise {
88
88
  disconnectedCallback() {
89
89
  window.removeEventListener('bulletDeliveryConfirmed', this.onBulletDeliveryConfirmed);
90
90
  }
91
+ getIPDeliveryLocation() {
92
+ const configPath = "store.shipping.delivery_location";
93
+ const ipAddress = {
94
+ cityId: salla.config.get(`${configPath}.city_id`),
95
+ cityName: salla.config.get(`${configPath}.city_name`),
96
+ };
97
+ return localStorage.getItem(OVERRIDE_IP_KEY) ?
98
+ JSON.parse(localStorage.getItem(OVERRIDE_IP_KEY)) : ipAddress;
99
+ }
100
+ async initLoginCycleFlow() {
101
+ const hasIntent = this.applyBulletIntent();
102
+ const { cityId, cityName } = this.getIPDeliveryLocation();
103
+ log("delivery promise login cycle flow getIPDeliveryLocation", this.getIPDeliveryLocation());
104
+ if (cityId && cityName && !hasIntent) {
105
+ this.selectedLabel = `${this.labels.deliveryTo} ${cityName}`;
106
+ await this.loadDeliveryMessage(cityId, 'city');
107
+ }
108
+ this.canRender = true;
109
+ window.addEventListener('bulletDeliveryConfirmed', this.onBulletDeliveryConfirmed);
110
+ }
91
111
  applyBulletIntent() {
92
112
  const resolved = resolveIntent();
93
113
  if (!resolved) {
@@ -95,7 +115,7 @@ export class SallaDeliveryPromise {
95
115
  this.selectedCityLoginCycle = null;
96
116
  this.selectedBranchLoginCycle = null;
97
117
  this.deliveryMessage = null;
98
- return;
118
+ return false;
99
119
  }
100
120
  if (resolved.type === 'address') {
101
121
  this.selectedCityLoginCycle = resolved.option;
@@ -109,6 +129,7 @@ export class SallaDeliveryPromise {
109
129
  this.selectedLabel = `${this.labels.pickupFromBranch} ${resolved.option.name}`;
110
130
  void this.loadDeliveryMessage(resolved.option.id, 'branch');
111
131
  }
132
+ return true;
112
133
  }
113
134
  openBulletDeliveryModal() {
114
135
  salla.event.emit('salla::bullet-delivery.modal.open.requested', buildBulletOpenPayload());
@@ -119,19 +140,27 @@ export class SallaDeliveryPromise {
119
140
  async loadCities() {
120
141
  this.isLoadingCities = true;
121
142
  this.hasError = false;
143
+ const { cityId, cityName } = this.getIPDeliveryLocation();
144
+ log("delivery promise standard flow getIPDeliveryLocation", this.getIPDeliveryLocation());
122
145
  try {
123
- const { cities, preselected } = await fetchCities(this.productId);
124
- if (cities.length === 0) {
146
+ const { cities } = await fetchCities(this.productId);
147
+ if (!cities.length) {
125
148
  this.canRender = false;
126
149
  return;
127
150
  }
128
151
  this.cities = cities;
129
- if (preselected) {
130
- this.selectedCity = preselected;
131
- this.selectedLabel = `${this.labels.deliveryTo} ${getCityDisplayName(preselected)}`;
132
- await this.loadDeliveryMessage(preselected.id, 'city');
133
- }
134
152
  this.canRender = true;
153
+ // get delivery message for the IP location
154
+ if (cityId && cityName) {
155
+ this.selectedLabel = `${this.labels.deliveryTo} ${cityName}`;
156
+ const autoCity = this.cities.find(c => String(c.id) === String(cityId));
157
+ if (autoCity) {
158
+ log("delivery promise standard flow autoCity found", autoCity);
159
+ this.selectedCity = autoCity;
160
+ this.modalSearchQuery = getCityDisplayName(autoCity);
161
+ }
162
+ await this.loadDeliveryMessage(cityId, 'city');
163
+ }
135
164
  }
136
165
  catch (error) {
137
166
  this.hasError = true;
@@ -167,7 +196,6 @@ export class SallaDeliveryPromise {
167
196
  if (!this.cityModalRef)
168
197
  return;
169
198
  this.cityPendingSelection = null;
170
- this.modalSearchQuery = '';
171
199
  this.isCityPopoverOpen = false;
172
200
  await this.cityModalRef.setTitle(this.labels.changeCityTitle);
173
201
  await this.cityModalRef.open();
@@ -307,11 +307,11 @@ export class SallaFileUpload {
307
307
  }
308
308
  }
309
309
  render() {
310
- return (h(Host, { key: '9291bd55eba4dd8f7fdac0440821341b4b833ace', class: {
310
+ return (h(Host, { key: '416c7205e55d1d7aad1528839aee2eb59c49b0b1', 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: '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 })));
314
+ } }, h("input", { key: 'c769a40fe1debf22173492e2039dd9416645cdb7', 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: '745f7690cfdf1dd4bd7d1c6282d2d716488ac653', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
315
315
  }
316
316
  async componentDidLoad() {
317
317
  await Salla.onReady();
@@ -187,7 +187,7 @@ export class SallaFilters {
187
187
  this.applyFilters();
188
188
  }
189
189
  render() {
190
- return h(Host, { key: 'b41c36d8512dcac97dbe3a75e5c1e0373673913d' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
190
+ return h(Host, { key: '61351c8402dc63b0b122c2e83d0fc6fe989febf3' }, 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: '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
166
+ return (h(Host, { key: '8a76246f5c11a950c79565c54579f23429d6aac7', class: "s-filters-widget-container" }, h("h3", { key: '77e5d39e32759bba2f4709843d799ca59f75aba0', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: '9384511282a144b0f15e35c21b7fcc44db1b2acd' }, this.option.label), h("span", { key: 'd6582ecb12ed8dfa8077878617b44067b6647453', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '2bc04d2d6e7cc0adf38e66522e06eef5db3ed5b3', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: '49177c27ab9dec258cf73f20464359a73db90556', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: 'e2870973d51a1ef9ab843c4c90242fe973b3c398', 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: 'fceb876a7c16ecd45da92d8cffe8afc8a8b66964', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: '72c7212d72c11f592a076a6ee9a4e985857332b1' }), 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: '005eedbbf498d86eb735231b754a8abf0aca77b5', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
171
+ h("a", { key: '81704b05fb989d0c88388a2e277832cb94dd73aa', 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() {
@@ -15,7 +15,7 @@ export class SallaFulfillmentMethods {
15
15
  async componentDidLoad() {
16
16
  await Salla.onReady();
17
17
  await Salla.lang.onLoaded();
18
- if (!Salla.config.get('store.support_pickup'))
18
+ if (!Salla.config.get('store.shipping.support_pickup'))
19
19
  return;
20
20
  this.shouldRender = true;
21
21
  this.setLabels();
@@ -542,7 +542,7 @@ export class SallaGifting {
542
542
  }
543
543
  render() {
544
544
  return [
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 ?
545
+ h("div", { key: '9eab09a8d191d1f268aa6c70b1cca83ed8e6bbbc' }, h("salla-list-tile", { key: 'c56c0c1430286a492fb7afaba27af031057d9112', class: this.generateClass() }, h("div", { key: 'e072712d90b16f10a5fb94cdf2590f702f519052', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '11ce3fb3d72e3533ca5d3ab6b24c848f854ca074' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'dbaaf141723d74ab0bc8953cd16b5693d155de88', slot: "subtitle" }, h("div", { key: '9496550746b51da10964afd16f0b14d1098e5963' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'a74eea478aedecd9f6db0e3f28ace121771d1e5b', slot: "action" }, h("salla-button", { key: '53db44ebad2924d8a785a658421c58d108f98c13', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: 'a1ad93eb3612332f0464735b20aa879268a6da66', name: "widget-btn-content" }, h("div", { key: '7f7cff081a3d8d5d53e29a7c65d2a9cf9ac897a5', class: "s-gifting-widget-action-content" }, h("span", { key: 'dd3beac6683c84511ec4ba048791fa019e1ea4af', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '4a1d029a931e051928565cec9ad821d041420a37' }, this.sectionBtnText)))))), h("salla-modal", { key: 'cddcacea4ba99a97286718a8fd2f9739393b73cf', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '252f2f5fe2848ca26fe9b6050bc47c96400d93ea', slot: "loading" }, h("div", { key: 'e8b933882138ed9c06a5ee31fc7a80f0f22857cb', class: "s-gifting-skeleton" }, h("div", { key: '587f61dc4e26b9cd7a634d37e638d59a4b32428d', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '6986dd5bb120de2e0a56e6a11566be8517a7de31', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: 'fa0dfd4b1faa9ce7c0e6a048a37fcc0edd209ef5', class: "s-gifting-modal-title" }, h("div", { key: '13d13831a3d3cf55e785fdc4153fd7f3ad4c818e', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '48a8933d1bef7c5a8e6c16f9ddd1ff2e95f1ac1f', height: '15px', width: '150px' })))), h("div", { key: '44686a2a7638c528fcd58855269b89af4d495a8d', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '45564ae54508c7f60332bcfc0b379bb4f35db9d4', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'ce4c13cb00ed12ee044932b2be4c11bb55067828', height: '230px' }), h("salla-skeleton", { key: '6682e113a5a1a5fdaf526b3003dc3d45698a4d61', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'cbaa18a09272ed058af2e4e8baa954fafd28508b', height: '30px' }), h("salla-skeleton", { key: '830b4ae7d3b1772b143dbf651baeecd211f880b7', height: '40px' })))), h("slot", { key: 'e7375a013b2dff74646ce289896dc340b0f5da9a', 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: '4cad8b174ab427e6f75b77357efc20e54d791ba4', name: "footer" })))
565
+ ], h("slot", { key: '123248e38585fd933c0221a9a3edc5601a4e0860', 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: '2aa8c92dee7e62785fa0f45d967912ae8d6f96c0' });
14
+ return h(Host, { key: 'db4241e10923c84d9d15a816e6a080475be6a17d' });
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: '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' })))));
29
+ return (h(Host, { key: '0ac9ef86306a47377537bed3808b85212f9a291b' }, h("a", { key: '6913bab0f3df27f14c626b0dd97bd5a226b59408', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: 'b3eaea89b404802c9329be50f3172d29510af001', class: "s-list-tile-item-icon" }, h("slot", { key: 'd0e4b9b46ebe037eb7b937317eb1796dfe522105', name: 'icon' })), h("div", { key: 'd04c5a302dfc33f8107505d7037a22f892297b51', class: "s-list-tile-item-content" }, h("div", { key: '4d5610aaf77eff322ddd296f62840d6927625f0d', class: "s-list-tile-item-title" }, h("slot", { key: 'b9890a0fde7261a3cb60b7daeb3810dd72a3ef41', name: 'title' })), h("div", { key: '60ab7f2e78b8c0da2e1d8dd38aa50692906c7e3f', class: "s-list-tile-item-subtitle" }, h("slot", { key: 'a3a92374c4147c8795a7de8e6e9563fb27001293', name: "subtitle" }))), h("div", { key: '81732affeff85090c3084200d8d64c3231c9a123', class: "s-list-tile-item-action" }, h("slot", { key: '78d44f5dbadf156805d8b7ea3e484b7b250a1aa2', name: 'action' })))));
30
30
  }
31
31
  static get is() { return "salla-list-tile"; }
32
32
  static get originalStyleUrls() {
@@ -22,7 +22,7 @@ export class SallaLoading {
22
22
  this.bgColor = "#e5e7eb";
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: 'bd9a1150a24f8a62d42437c669613ffa4e67b14f', class: "s-loading-container" }, h("svg", { key: '460c614d5d205ed9283d63f5ebebdb5639b8246e', "aria-hidden": "true", style: { width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }, class: "s-loading", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '13c50eee8a0f2342cc876e9dbbcc84d418e314bc', d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }), h("path", { key: '08888ea6c15d6be5d4225ec22bb2586e410793e8', d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));
25
+ return (h(Host, { key: 'dcab48026f2c056fa38cb3f636ff93689c05b42d', class: "s-loading-container" }, h("svg", { key: '69eb9c41f5c1187517d3221acf8a6c116e542e3b', "aria-hidden": "true", style: { width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }, class: "s-loading", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '319cb6008b73e8dafc363da589459c64c14ab8a3', d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }), h("path", { key: '489b5ace91f8463a95f51d9cf4a856b2dad5ab17', d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));
26
26
  }
27
27
  static get is() { return "salla-loading"; }
28
28
  static get originalStyleUrls() {
@@ -211,7 +211,7 @@ export class SallaLocalizationModal {
211
211
  this.showTrigger
212
212
  ? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
213
213
  : '',
214
- h("salla-modal", { key: '13b805dc33b57d433d4c35ad8217adef60b99ad5', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: 'b30239d0a20d15baccb6a5017493d91ae96c350c', slot: 'loading' }, h("div", { key: '94f7df4044f94612413f4818b110abae3c251075', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '63008e2fd90cfa4ce9ddbf313ffe718c520853ce', width: '25%', height: '15px' }), h("div", { key: '97f64f98e99c3cc2f099fa02469a2000c7eefc4c', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '230480a6cfaddab7fbe70a16041cf5fb8903c64a', width: '25%', height: '15px' }), h("div", { key: 'caf3e79cdbd04d5374365173212792abfe3d465b', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'b48d02c6e7febad77dbd0d37e540d02d26265e8b', height: '40px', width: '100%' }))), !!this.hasError ?
214
+ h("salla-modal", { key: '8011ed27b369f621fd5892e80490a9702042c636', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '17c5aaf641a668e4c8f7f625a4bb16bbea692b03', slot: 'loading' }, h("div", { key: 'b3eac7d8561777d746749154fb144d07596f619e', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '881169d3ec98c4d425f1d4e6a07561f6cade2858', width: '25%', height: '15px' }), h("div", { key: '7ccb921af00f96eca06ad59eb4c0051c02ed694d', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'ecbaea165f7dda315386c4ab8cdca46e1525a76a', width: '25%', height: '15px' }), h("div", { key: '5dcd81dd3e2017214e2139bbdc2602a970bdd5af', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '3d549108228ad0541e96dec40f072ba6f105fbd6', height: '40px', width: '100%' }))), !!this.hasError ?
215
215
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
216
216
  h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
217
217
  h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
@@ -7,7 +7,7 @@ export class SallaLoyaltyPrizeItem {
7
7
  this.prizeItemSelected.emit(this.item);
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'd3b79cbf7e67281d4c42c83084b2d1f0f59fd77d' }, h("div", { key: '11d71896f19eef94434fa8d9d074c98ce3e6de5b', onClick: this.onPrizeItemClick.bind(this) }, h("img", { key: 'c8d254e77a7af0559c5336aca9d7d57593814d0a', class: "s-loyalty-prize-item-image", src: this.item.image, alt: this.item.name }), h("div", { key: '5946e1d5ce94ef8bfcbab95ab2f2e8733145b7f2', class: "s-loyalty-prize-item-title" }, this.item.name), h("div", { key: 'c565935591c84ce475767b8a863323023fabae31', class: "s-loyalty-prize-item-subtitle" }, this.item.description), h("div", { key: '225c7c594cb1942a56a6966ab8289a4dfb7f0d71', class: "s-loyalty-prize-item-points" }, this.item.cost_points, " ", salla.lang.get('pages.loyalty_program.point')))));
10
+ return (h(Host, { key: '8d159caa306052a9d8cd67b37e01fc2b0a0cec20' }, h("div", { key: '8b75d8d82e51169ef974e0cafee27c2694577be5', onClick: this.onPrizeItemClick.bind(this) }, h("img", { key: 'a7c160952e10abf1845c807ed690a929b9be6933', class: "s-loyalty-prize-item-image", src: this.item.image, alt: this.item.name }), h("div", { key: '343e73d9952312e2989f8cc4150ad0894ae62dad', class: "s-loyalty-prize-item-title" }, this.item.name), h("div", { key: '4d2d46f2a21d82fd3426cd7278e2e3a38c9e4093', class: "s-loyalty-prize-item-subtitle" }, this.item.description), h("div", { key: '99852f67e857017dc2bb2b1a7173e94a37c0e776', class: "s-loyalty-prize-item-points" }, this.item.cost_points, " ", salla.lang.get('pages.loyalty_program.point')))));
11
11
  }
12
12
  static get is() { return "salla-loyalty-prize-item"; }
13
13
  static get originalStyleUrls() {
@@ -4,13 +4,13 @@
4
4
  import { Host, h } from "@stencil/core";
5
5
  export class SallaLoyaltyHero {
6
6
  render() {
7
- return (h(Host, { key: '71421d1a559f9d0b8b9a2023e3015847dd4be7fb' }, h("section", { key: '914ae35d2e038a4f0f358eb3d61352cf263f4c7b', class: "s-loyalty-program-hero-container" }, h("div", { key: '93353d9f4dcc7d41e4c714f93ee84899b799633e', class: "s-loyalty-program-hero-background", style: {
7
+ return (h(Host, { key: '574e4baec7792ba00a7671cc9054f7645ec58368' }, h("section", { key: 'ee765ae29fe9d655eb1034e0f1621d762d7023e4', class: "s-loyalty-program-hero-container" }, h("div", { key: '4846d52e25447e4eff6e0ab4d788a51ede38ae60', class: "s-loyalty-program-hero-background", style: {
8
8
  backgroundImage: `url(${this.image})`,
9
- } }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '6f62cb4aadbb81f91549b60177f15e8791e6aa51', class: {
9
+ } }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: 'b1a7edcc79c55c4e472e2733e961b2969de3dee9', class: {
10
10
  's-loyalty-program-hero-content': true,
11
11
  's-loyalty-program-hero-white': !!this.image,
12
12
  's-loyalty-program-hero-gray': !this.image,
13
- } }, h("div", { key: '11794269898ee42023cac29e49c17463fe90781b' }, h("h1", { key: '95435290b38fce9dbc6a580d8452e7189074773b', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: '02fbbae525a5973d65bb98626dbe5712374495c4', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: 'e482ab6a067d54b9c274208a43b286e07a8e471c', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '2fc2ea5a732e473b2c26d3b885a699b57f7df0c1', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: 'd548c168c97849abd583b510c7b1d6c4370daa1c', name: "action" }))), h("div", { key: '2423ee04e5e126eabcbfec20ad6c82a8d2593d2a', class: "s-loyalty-program-hero-footer" }, h("div", { key: '25ee4e74c9ea3c0ea420a09858c45b83b454bd40', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '11a7147bc142914ccfa08b099826a4a2805100aa', name: "crosspoint" }))))));
13
+ } }, h("div", { key: 'b9ce57574292320f5cee464fb9d6c4ab2bb5df9b' }, h("h1", { key: '1f989c4c4cd516199cd962b10b15195c88b72e2c', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: 'df3a3b07a14a2a02e244b11f37e424e9dbed436e', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '7a0b24bda40ca8a6bfc326474593a26a2a1eeb62', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: 'f6d155a42c76bd4befd0a9628306bdb2a6f1c38c', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: 'e437cdec345487a8ea8df05b39c1b7c8bee1d5fd', name: "action" }))), h("div", { key: '3e7e2edd1e7b8e06ea0ce6ae8de479ad3595e880', class: "s-loyalty-program-hero-footer" }, h("div", { key: '8b53882fcf2d8779fc8fdd8f895e782444eaab96', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '4e32a1377a54ce20fc890276646774e42f011a1b', name: "crosspoint" }))))));
14
14
  }
15
15
  static get is() { return "salla-loyalty-hero"; }
16
16
  static get originalStyleUrls() {
@@ -151,7 +151,7 @@ export class SallaLoyaltyPoint {
151
151
  }
152
152
  }
153
153
  render() {
154
- return (h("div", { key: 'e48e7e3f5e8327b840c3d85685e0b71bffefd855' }, h("div", { key: 'bf0defb51f62aeb2830261d5daed101c55f84d7b', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: '0e6121e7f7daeec3a96bdaaa2427978f4215fb16', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '8422ec6e483f05d514170df5916436a9126d4237', class: this.point.icon })), h("div", { key: '928d8ed9a8442dd20b218a7713ad6e493d88bc7d', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: '35fc26961a50c707d29a726405a2f2c48c5a296f', size: "xs", bg: "transparent" }, h("span", { key: 'd2b06eceeec70a9561d3612f337035dbc404bf2d', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: '9ca25c5c22d499bee7bd03c83b221deecaa385c7', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: 'bbf54dcce2af313a735de53f3297911b0a28433f', size: "sm", bg: "transparent" }, h("span", { key: '6832cb1bf6bf23e1c3e221e0e853b87bdf059b76', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: '0dab348c2d73b95d2a7054130dd8c4414b588a42', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
154
+ return (h("div", { key: '4bcf0abcc5d1939f8938e327584e66903e22f79d' }, h("div", { key: 'a29f5a0a057232c37e0a7490e7b7407b7fb295a0', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: 'a96a576336378a79065c01ed8e62ff44c3ecb115', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: '3aeb40f1c09cd988b83ce824edb6bcd87aa02448', class: this.point.icon })), h("div", { key: '09b3a389bef31e01d7446371c600d32b5225a090', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: '642db1f7ffda27c29ff6d9daf254aec6ff759b1b', size: "xs", bg: "transparent" }, h("span", { key: 'd1c81d95859c1831b158f343154c9f07d7e0a07b', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: '5f9537ba047f01161a8e55c181fd4dceef699014', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: '4bf17a6713ffb79a1716787ca0e48bc841c028b1', size: "sm", bg: "transparent" }, h("span", { key: '8bda2271cc91f2bd44c1bcacaa95a72c74dc058c', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: '22ccbd4b841756274bedd74c2dc7a3484d133be2', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
155
155
  h("a", { class: {
156
156
  's-loyalty-program-points-action': true,
157
157
  's-loyalty-program-points-action-completed': this.point.is_completed,
@@ -161,7 +161,7 @@ export class SallaLoyaltyPoint {
161
161
  's-loyalty-program-points-action': true,
162
162
  's-loyalty-program-points-action-completed': this.point.is_completed,
163
163
  's-loyalty-program-points-action-incomplete': !this.point.is_completed,
164
- } }, this.point.description)), h("salla-modal", { key: '209bd22b0a09f173dd74a79b0ab2dcf0c41b98d1', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: 'adf4dc82940f41c943f095519e43e029602554e0', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '88d0babfddde45978760c71825ad01e81b9d7b70', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '387201fe515701d3e39595569cd5dd858dbe41e2', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '8460fd33cedcd3c78d299fd1f4f9dfb2d817663e', class: "s-loyalty-program-points-modal-main" }, h("div", { key: 'dc5840eb12f44f395fac4b2fa41616897ce3b804', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'dab41d922110962182ff4a1ec53a7f01fde7400c', class: this.point.icon })), h("salla-badge", { key: 'e7947363e9dacb42eb03b97532ed1b6b3a606d73', size: "sm", bg: "light" }, h("span", { key: 'f567bdf3fb75d7bc28d9eb78a6b11dcc74f7e608', innerHTML: SIGift }), h("span", { key: 'd8fc1f40a225001a90ad6213f924520f3a3fbebc', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), h("div", { key: '12e2bf5a9aab51c3bf1c0ec10395751beaf846a3', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '17dc3ff458f8cfea3028a47e54df522310cc0b1d', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '4b1b0700e1d260a57fe7093421cb8faa8e68d024', class: "s-loyalty-program-points-chain-list" }, !!this.point.steps && Object.keys(this.point.steps).length > 0
164
+ } }, this.point.description)), h("salla-modal", { key: '241bd67cc5f3c73b9e9db478b5073e76b4a97e89', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: 'dbf0cea774661341fa43430a24c50384a117b8af', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '2514e59cc871c0c1b8100d0ea0e21d2b2491be8c', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '591a36344c31a238504d4ec8eb3f8365739cf184', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'c7d2ccd94cb239ee0965e0e7d584db0d533b49d0', class: "s-loyalty-program-points-modal-main" }, h("div", { key: '34cd7ea59321d7df8c3a5e301c9b006e0649868e', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'bbc3444c8b6fa80bec0219405228c0769719343f', class: this.point.icon })), h("salla-badge", { key: '7dd0700b0f843c18545cbc4b1edc658b3ce8e92d', size: "sm", bg: "light" }, h("span", { key: 'ad1fbe6dde136d61e51ae03b9beff237aa458e68', innerHTML: SIGift }), h("span", { key: '996bbdc669c934c2c43a2a010e768600df6cd096', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), h("div", { key: '3704f41b41307e3d01cd7e432eecc5027555279b', class: "s-loyalty-program-points-modal-details" }, h("div", { key: '11267d879f2486f16f61fdc277af704509de57ff', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '9c020f4ce4db1329b8070cc734c7ff3d243b8743', class: "s-loyalty-program-points-chain-list" }, !!this.point.steps && Object.keys(this.point.steps).length > 0
165
165
  ? Object.values(this.point.steps).map((step, idx) => {
166
166
  const stepsArray = Object.values(this.point.steps);
167
167
  const isLastItem = idx === stepsArray.length - 1;
@@ -170,7 +170,7 @@ export class SallaLoyaltyPoint {
170
170
  : this.point.conditions?.map((condition, idx) => {
171
171
  const isLastItem = idx === this.point.conditions.length - 1;
172
172
  return (h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key]), !isLastItem && h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: SIGift }), formattedPointsJsx(condition.points ?? 0)), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name))));
173
- }))), this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: '8984c9e7f20a766c70c25a85b752a2f61fd9c490', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '6ee995bf10cd3f9efac2baac8413e7405981389f', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
173
+ }))), this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: 'eb0886c9891c16960f560d2a8951dfe944081802', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '87270bb4253c974f6285ce549c6f75590faac46f', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
174
174
  's-loyalty-program-points-action': true,
175
175
  's-loyalty-program-points-action-completed': this.point.is_completed,
176
176
  's-loyalty-program-points-action-incomplete': !this.point.is_completed,
@@ -31,10 +31,10 @@ export class SallaLoyaltyReward {
31
31
  };
32
32
  }
33
33
  render() {
34
- return (h("div", { key: '38c63e250c45badf03516c87496619152b9a0af8', class: {
34
+ return (h("div", { key: '54384ca42e9df4619db3a53c26580e9ed1f4aef2', class: {
35
35
  's-loyalty-program-reward-container': true,
36
36
  's-loyalty-program-reward-xs': this.size === 'xs',
37
- } }, h("div", { key: '93e11a5c458aa3112b00bea4bc845733d8bf4415', onClick: this.handleActionArea, role: "button" }, h("div", { key: '67f5cfe1a3551832548d95bda9c6bcc6cdd26119', class: "s-loyalty-program-reward-img" }, h("img", { key: '36f6dc13da2b7c844d2318d4e9bafeb96d960f11', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'c953cfeebaabdad22fba498903936e170aadcebe', class: "s-loyalty-program-reward-content" }, h("div", { key: '68f33aba783ffaef38ea9e4a3f9063b2f68bb2b1', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'bdac8babbf1bbabeec37e92053c4c7eab178a06f', size: "xs" }, h("span", { key: '367f3f154a6079781cece4018337b09996229001', innerHTML: SIGift }), h("span", { key: 'fd8cdd6bafe8a8f5f45f7a4e6df2f074ab2b5961', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '84f6dbc80ecaa12ab9dacf48ec289bb3f5bdfc84', class: "s-loyalty-program-reward-title" }, h("span", { key: '1505f38884417eee9f266ab3ddb2f57096f6d0da' }, this.group)), h("div", { key: '82ced1df7118958153868c15c193ac03783dc383', class: "s-loyalty-program-reward-name" }, h("div", { key: 'a853fc37628c02ffe064608f6e52725d664fc259', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '584d6db1edfafc846eb8908d2762483d5e590296', class: "p-4" }, h("button", { key: 'ac0962db5b5d3121b4c6197c4c378db76a963950', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
37
+ } }, h("div", { key: 'a140ecf01f341d7cec64091742f9aa3d152639c8', onClick: this.handleActionArea, role: "button" }, h("div", { key: 'f08852a3d5d6dee3d1babb1b0acb6425d2a84ca2', class: "s-loyalty-program-reward-img" }, h("img", { key: 'a90692f4210e015724ee682d8024f61ad7d9b708', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: 'c3c96618b42af8186834011a23fc4f325bb4da6a', class: "s-loyalty-program-reward-content" }, h("div", { key: '66a5a15721a6281ca6f507032731065e370893ae', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'be379a44b8efb51d2631042aef52a2e4265c384b', size: "xs" }, h("span", { key: '02adb9ccdfbe13344ec9ade9f3eecb556554302a', innerHTML: SIGift }), h("span", { key: '7f493ccca3dd7bb9f5acf87dcecc19675d5e992a', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: 'c452602c937589aafea344ccc34d57f3088877a1', class: "s-loyalty-program-reward-title" }, h("span", { key: '77a0959d44d7d6ddbb97d3c565fba17c050b7dd1' }, this.group)), h("div", { key: 'd988fac7ae21964d2226d0d203282a85191d1ac3', class: "s-loyalty-program-reward-name" }, h("div", { key: 'da84c90edbaa3e34f63b92477a284c9a47c35aa3', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '42f1cbd48cd986367a93546ed87d9fb8b7974d3e', class: "p-4" }, h("button", { key: 'ecf4ea01afbbc2c1a608d5daa54d60ab0d7a22ac', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
38
38
  's-loyalty-program-rewards-action-base': true,
39
39
  's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
40
40
  's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
@@ -20,7 +20,7 @@ export class SallaRewardAction {
20
20
  };
21
21
  }
22
22
  render() {
23
- return (h("div", { key: '0d02cecaae79cf166555514890fbf6192e1cd438', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
23
+ return (h("div", { key: '475f3ee96420af61ec3ed127367a224fa86f7c34', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
24
24
  's-loyalty-program-rewards-action-base': true,
25
25
  's-loyalty-program-rewards-action-on': true,
26
26
  } }, salla.lang.get('pages.loyalty_program.shop_now'))) : (h("button", { onClick: this.handleClick, class: {
@@ -5,7 +5,7 @@ import { h, Host } from "@stencil/core";
5
5
  import SIGift from "../../assets/svg/gift.svg";
6
6
  export class SallaRewardCard {
7
7
  render() {
8
- return (h(Host, { key: '0bd68f7cab478d78db8b083ea11c2090d02aab59', class: "s-loyalty-program-reward-host" }, h("div", { key: 'ef4e857bc55a12e50434c1dda2160674ead3b4e6', class: "s-loyalty-program-reward-container" }, h("div", { key: 'a6a7ccdf50ee296b48c05a01f241192c0f77f30c', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: 'e4f55cda0d9f36af95ce101c987819d30b9ad143', class: "s-loyalty-program-reward-img" }, h("img", { key: '450fe8914dcf809005d4707074cb305a59990e81', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: '7828210caf948e057055c53dc64af45426d7977d', class: "s-loyalty-program-reward-content" }, h("div", { key: '2f39695bd03884f6988b44de68964cdfdb75e0bb', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'e9e1dda91aa414d58caaff52a4bb667a1fc1b96f', size: "xs" }, h("span", { key: '7baa15af74cde5a6e744667566377417233d0848', innerHTML: SIGift }), h("span", { key: '6bd7f77ec736a6f0fd9de0c69907cc05e87829b0', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '269da0571a6533ca6621792a3891f4b9d132d337', class: "s-loyalty-program-reward-title" }, h("span", { key: '06c40cc994031777565d43c5259eefb3311dea98' }, this.prize.group_title)), h("div", { key: 'e81936c993e83f96f4143278ec82391135778383', class: "s-loyalty-program-reward-name" }, h("div", { key: '752e5e6fbc5de60f7047913d6b8bf79e597fd407', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: 'a83282f66ab42ee0fa055cf9bf7802af1615e8f0', class: "p-4" }, h("slot", { key: '7186f03318c907b3e8ec15e30322d8bf787d74f8', name: "action" }, h("button", { key: '7b1a13734d2c230dd32d744a42e82fdb1c148660', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
8
+ return (h(Host, { key: '0c53ae71f95b242db839dd897d7288b2d95b8a64', class: "s-loyalty-program-reward-host" }, h("div", { key: '758426d1813b9dcc47b9c8a4d739d523e9572fff', class: "s-loyalty-program-reward-container" }, h("div", { key: 'f7f5819d9fb48c40fb44cf01d28593103fc62593', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: '5b51e12b977e17ca4b0c981ea8c1e275e72fd32e', class: "s-loyalty-program-reward-img" }, h("img", { key: 'bcb3279ef5c20f1bdfefc56e75879f5b186ee81f', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: '72c3f61805cf30c54e41db61f559e82d56441e7b', class: "s-loyalty-program-reward-content" }, h("div", { key: '0da8285d5913727d662d7d8d42b20c757291db38', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'd2938a93d63abe2ccf9da4bd6f9c5fab902dae49', size: "xs" }, h("span", { key: '6a5d953b0c67edca8f2b74d5fab9de28e14c5b74', innerHTML: SIGift }), h("span", { key: 'a7f50ef7c770fd6e8f729b5e90c38f8e552dbdca', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '52038fccca9e9a725000cff0f09ae27c1df84070', class: "s-loyalty-program-reward-title" }, h("span", { key: 'b584757e9514318eaf12c391055bebf1ef3cc3d3' }, this.prize.group_title)), h("div", { key: 'e07cf257344b9c5885b0e0cbfefd8140d6695689', class: "s-loyalty-program-reward-name" }, h("div", { key: 'b7ee859bdefce896e6aa8edaa33c61fef91a9188', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: '7316be44d9e00d7031a70067100430d283b1a729', class: "p-4" }, h("slot", { key: '5ac564614b3ff5420e7cc74d5e3d3ec4130d38b8', name: "action" }, h("button", { key: '4b8f3d3b3497b842c26be65657b623a1d4f1f6d7', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
9
9
  }
10
10
  static get is() { return "salla-reward-card"; }
11
11
  static get originalStyleUrls() {