@salla.sa/twilight-components 2.14.370 → 2.14.372

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 (377) hide show
  1. package/dist/cjs/{filepond-DNoOQ518.js → filepond-D6hNdSue.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CX52qbRW.js → filepond-plugin-file-poster-DOSqy8V3.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-Dxk9m3Lt.js → filepond-plugin-file-validate-size-l4VLpkoL.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-DQMxc1IT.js → filepond-plugin-file-validate-type-KYY5p5gt.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BLW3ytTq.js → filepond-plugin-image-edit-BzaiZ8lY.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BgndLkUA.js → filepond-plugin-image-exif-orientation-Dp_AVLHw.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-z85khFfc.js → filepond-plugin-image-preview-Cu_XtCoc.js} +1 -1
  8. package/dist/cjs/{index-BNCWtQwH.js → index-BmCJSRO7.js} +1 -1
  9. package/dist/cjs/{index-Uv2p8S16.js → index-D2SICJqL.js} +6 -2
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/location-DIyESLuI.js +16 -0
  12. package/dist/cjs/salla-accordion-body_3.cjs.entry.js +5 -11
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  14. package/dist/cjs/salla-add-product-button_4.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-booking-field_7.cjs.entry.js +17 -17
  20. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1980 -0
  21. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +17 -5
  22. package/dist/cjs/salla-comment-form_8.cjs.entry.js +8 -8
  23. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cookies-bar.cjs.entry.js +12 -7
  26. package/dist/cjs/salla-count-down_2.cjs.entry.js +7 -7
  27. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
  29. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  30. package/dist/cjs/salla-gifting.cjs.entry.js +3 -3
  31. package/dist/cjs/salla-hook.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
  35. package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
  36. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
  38. package/dist/cjs/salla-loyalty-program.cjs.entry.js +2 -2
  39. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
  41. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
  44. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
  45. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
  53. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  54. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  57. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  58. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  59. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  60. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-search.cjs.entry.js +4 -4
  67. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  68. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  70. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  71. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  72. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  74. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  78. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  80. package/dist/cjs/twilight.cjs.js +2 -2
  81. package/dist/cjs/{vanilla-picker-CnB9AyA4.js → vanilla-picker-W3JKfO-o.js} +1 -1
  82. package/dist/collection/assets/svg/get-directions.svg +6 -0
  83. package/dist/collection/assets/svg/gps.svg +17 -0
  84. package/dist/collection/assets/svg/location.svg +8 -4
  85. package/dist/collection/assets/svg/marker.svg +28 -0
  86. package/dist/collection/assets/svg/mini-google-map.svg +33 -0
  87. package/dist/collection/assets/svg/mini-map.svg +31 -0
  88. package/dist/collection/assets/svg/store3.svg +12 -0
  89. package/dist/collection/collection-manifest.json +1 -0
  90. package/dist/collection/components/salla-bullet-delivery/api-service.js +135 -0
  91. package/dist/collection/components/salla-bullet-delivery/helpers.js +125 -0
  92. package/dist/collection/components/salla-bullet-delivery/interfaces.js +1 -0
  93. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +23 -0
  94. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +1827 -0
  95. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +16 -4
  96. package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
  97. package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
  98. package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
  99. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
  100. package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +16 -69
  101. package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
  102. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
  103. package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
  104. package/dist/collection/components/salla-filters/salla-filters.js +1 -1
  105. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
  106. package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
  107. package/dist/collection/components/salla-hook/salla-hook.js +1 -1
  108. package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
  109. package/dist/collection/components/salla-loading/salla-loading.js +1 -1
  110. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
  111. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
  112. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +1 -1
  113. package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
  114. package/dist/collection/components/salla-map/salla-map.js +3 -3
  115. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
  116. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
  117. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
  118. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
  119. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
  120. package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
  121. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  122. package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
  123. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  124. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  125. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  126. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  127. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  128. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  129. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  130. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  131. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  132. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  133. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  134. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  135. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  136. package/dist/collection/components/salla-search/salla-search.js +3 -3
  137. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  138. package/dist/collection/components/salla-social/salla-social.js +1 -1
  139. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  140. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  141. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  142. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  143. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  144. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  145. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  146. package/dist/components/index.js +2 -2
  147. package/dist/components/location.js +14 -0
  148. package/dist/components/salla-bullet-delivery.d.ts +11 -0
  149. package/dist/components/salla-bullet-delivery.js +2060 -0
  150. package/dist/components/salla-cart-summary.js +16 -4
  151. package/dist/components/salla-color-picker2.js +1 -1
  152. package/dist/components/salla-comment-form2.js +1 -1
  153. package/dist/components/salla-comment-item2.js +3 -3
  154. package/dist/components/salla-conditional-fields2.js +1 -1
  155. package/dist/components/salla-cookies-bar.js +15 -9
  156. package/dist/components/salla-count-down2.js +1 -1
  157. package/dist/components/salla-datetime-picker2.js +1 -1
  158. package/dist/components/salla-file-upload2.js +2 -2
  159. package/dist/components/salla-filters-widget2.js +2 -2
  160. package/dist/components/salla-filters.js +1 -1
  161. package/dist/components/salla-gifting.js +2 -2
  162. package/dist/components/salla-hook.js +1 -1
  163. package/dist/components/salla-list-tile2.js +1 -1
  164. package/dist/components/salla-loading2.js +1 -1
  165. package/dist/components/salla-localization-modal.js +1 -1
  166. package/dist/components/salla-loyalty-prize-item.js +1 -1
  167. package/dist/components/salla-loyalty-program.js +1 -1
  168. package/dist/components/salla-maintenance-alert.js +1 -1
  169. package/dist/components/salla-map2.js +4 -10
  170. package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
  171. package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
  172. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
  173. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  174. package/dist/components/salla-multiple-bundle-product.js +1 -1
  175. package/dist/components/salla-notification-item2.js +1 -1
  176. package/dist/components/salla-offer-modal.js +1 -1
  177. package/dist/components/salla-order-details.js +1 -1
  178. package/dist/components/salla-order-summary.js +1 -1
  179. package/dist/components/salla-payments.js +2 -2
  180. package/dist/components/salla-placeholder2.js +1 -1
  181. package/dist/components/salla-price-range2.js +2 -2
  182. package/dist/components/salla-product-availability2.js +1 -1
  183. package/dist/components/salla-product-card2.js +5 -5
  184. package/dist/components/salla-product-size-guide.js +2 -2
  185. package/dist/components/salla-quantity-input.js +1 -1
  186. package/dist/components/salla-quick-buy2.js +1 -1
  187. package/dist/components/salla-review-card2.js +1 -1
  188. package/dist/components/salla-reviews-page.js +1 -1
  189. package/dist/components/salla-reviews.js +1 -1
  190. package/dist/components/salla-scopes.js +1 -1
  191. package/dist/components/salla-search.js +3 -3
  192. package/dist/components/salla-skeleton2.js +1 -1
  193. package/dist/components/salla-social-share.js +1 -1
  194. package/dist/components/salla-social.js +1 -1
  195. package/dist/components/salla-tab-content2.js +1 -1
  196. package/dist/components/salla-tab-header2.js +1 -1
  197. package/dist/components/salla-tabs2.js +1 -1
  198. package/dist/components/salla-tel-input2.js +1 -1
  199. package/dist/components/salla-tooltip2.js +1 -1
  200. package/dist/components/salla-user-settings.js +1 -1
  201. package/dist/esm/{filepond-BhRqbCAg.js → filepond-CVt8gG7K.js} +1 -1
  202. package/dist/esm/{filepond-plugin-file-poster-Czu5ACER.js → filepond-plugin-file-poster-ByDhiu8k.js} +1 -1
  203. package/dist/esm/{filepond-plugin-file-validate-size-BZbSUj1B.js → filepond-plugin-file-validate-size-C46KRc5n.js} +1 -1
  204. package/dist/esm/{filepond-plugin-file-validate-type-DKYfoXoT.js → filepond-plugin-file-validate-type-7wK_W1ju.js} +1 -1
  205. package/dist/esm/{filepond-plugin-image-edit-WuB5nx6B.js → filepond-plugin-image-edit-BbFosret.js} +1 -1
  206. package/dist/esm/{filepond-plugin-image-exif-orientation-noX6t0j9.js → filepond-plugin-image-exif-orientation-DXsWsxNp.js} +1 -1
  207. package/dist/esm/{filepond-plugin-image-preview-Czg9NDfH.js → filepond-plugin-image-preview-BZoHvyw-.js} +1 -1
  208. package/dist/esm/{index-De4u_OiV.js → index-SkTHIgsP.js} +6 -2
  209. package/dist/esm/{index-Dtrxto6J.js → index-x1gUeQbQ.js} +1 -1
  210. package/dist/esm/loader.js +3 -3
  211. package/dist/esm/location-BO5AoBAP.js +14 -0
  212. package/dist/esm/salla-accordion-body_3.entry.js +5 -11
  213. package/dist/esm/salla-accordion_6.entry.js +2 -2
  214. package/dist/esm/salla-add-product-button_4.entry.js +3 -3
  215. package/dist/esm/salla-advertisement.entry.js +1 -1
  216. package/dist/esm/salla-alert_2.entry.js +1 -1
  217. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  218. package/dist/esm/salla-apps-icons.entry.js +1 -1
  219. package/dist/esm/salla-booking-field_7.entry.js +17 -17
  220. package/dist/esm/salla-bullet-delivery.entry.js +1978 -0
  221. package/dist/esm/salla-cart-item-offers_2.entry.js +17 -5
  222. package/dist/esm/salla-comment-form_8.entry.js +8 -8
  223. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  224. package/dist/esm/salla-contacts.entry.js +1 -1
  225. package/dist/esm/salla-cookies-bar.entry.js +12 -7
  226. package/dist/esm/salla-count-down_2.entry.js +7 -7
  227. package/dist/esm/salla-custom-fields.entry.js +1 -1
  228. package/dist/esm/salla-filters-widget.entry.js +3 -3
  229. package/dist/esm/salla-filters.entry.js +2 -2
  230. package/dist/esm/salla-gifting.entry.js +3 -3
  231. package/dist/esm/salla-hook.entry.js +2 -2
  232. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  233. package/dist/esm/salla-installment.entry.js +1 -1
  234. package/dist/esm/salla-list-tile.entry.js +2 -2
  235. package/dist/esm/salla-localization-modal.entry.js +2 -2
  236. package/dist/esm/salla-login-modal.entry.js +1 -1
  237. package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
  238. package/dist/esm/salla-loyalty-program.entry.js +2 -2
  239. package/dist/esm/salla-loyalty.entry.js +1 -1
  240. package/dist/esm/salla-maintenance-alert.entry.js +2 -2
  241. package/dist/esm/salla-menu.entry.js +1 -1
  242. package/dist/esm/salla-metadata.entry.js +1 -1
  243. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
  244. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
  245. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  246. package/dist/esm/salla-notification-item.entry.js +2 -2
  247. package/dist/esm/salla-notifications.entry.js +1 -1
  248. package/dist/esm/salla-offer-modal.entry.js +2 -2
  249. package/dist/esm/salla-offer.entry.js +1 -1
  250. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  251. package/dist/esm/salla-order-details-options.entry.js +1 -1
  252. package/dist/esm/salla-order-details.entry.js +2 -2
  253. package/dist/esm/salla-order-summary.entry.js +2 -2
  254. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  255. package/dist/esm/salla-orders.entry.js +1 -1
  256. package/dist/esm/salla-payments.entry.js +3 -3
  257. package/dist/esm/salla-placeholder.entry.js +2 -2
  258. package/dist/esm/salla-price-range.entry.js +3 -3
  259. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  260. package/dist/esm/salla-products-list.entry.js +1 -1
  261. package/dist/esm/salla-products-slider.entry.js +1 -1
  262. package/dist/esm/salla-progress-bar.entry.js +1 -1
  263. package/dist/esm/salla-quick-order.entry.js +1 -1
  264. package/dist/esm/salla-rating-modal.entry.js +1 -1
  265. package/dist/esm/salla-scopes.entry.js +2 -2
  266. package/dist/esm/salla-search.entry.js +4 -4
  267. package/dist/esm/salla-skeleton.entry.js +2 -2
  268. package/dist/esm/salla-slider.entry.js +1 -1
  269. package/dist/esm/salla-social-share.entry.js +2 -2
  270. package/dist/esm/salla-social.entry.js +2 -2
  271. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  272. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  273. package/dist/esm/salla-tooltip.entry.js +2 -2
  274. package/dist/esm/salla-trust-badges.entry.js +1 -1
  275. package/dist/esm/salla-user-menu.entry.js +1 -1
  276. package/dist/esm/salla-user-profile.entry.js +1 -1
  277. package/dist/esm/salla-user-settings.entry.js +2 -2
  278. package/dist/esm/salla-verify.entry.js +1 -1
  279. package/dist/esm/salla-wallet.entry.js +1 -1
  280. package/dist/esm/twilight.js +3 -3
  281. package/dist/esm/{vanilla-picker-rbpgRFmW.js → vanilla-picker-CBzZiD3g.js} +1 -1
  282. package/dist/twilight/{p-40ff5179.entry.js → p-001b7ef6.entry.js} +1 -1
  283. package/dist/twilight/{p-eaa6e008.entry.js → p-07fdc902.entry.js} +1 -1
  284. package/dist/twilight/{p-d0c47c31.entry.js → p-0ad3a828.entry.js} +1 -1
  285. package/dist/twilight/{p-09feb665.entry.js → p-0b53d638.entry.js} +1 -1
  286. package/dist/twilight/{p-8006c4fb.entry.js → p-13b496e7.entry.js} +1 -1
  287. package/dist/twilight/{p-7f3f771a.entry.js → p-18e52d0e.entry.js} +1 -1
  288. package/dist/twilight/{p-c3706c8f.entry.js → p-1e8fbd9f.entry.js} +1 -1
  289. package/dist/twilight/{p-dfadafad.entry.js → p-236372e3.entry.js} +1 -1
  290. package/dist/twilight/{p-5654e5ee.entry.js → p-27e70f37.entry.js} +1 -1
  291. package/dist/twilight/{p-884cb4c5.entry.js → p-2820ce1d.entry.js} +1 -1
  292. package/dist/twilight/{p-6ff50966.entry.js → p-2ab48cac.entry.js} +1 -1
  293. package/dist/twilight/{p-295915a0.entry.js → p-2f692fcf.entry.js} +1 -1
  294. package/dist/twilight/{p-69c58d83.entry.js → p-301c2f68.entry.js} +1 -1
  295. package/dist/twilight/{p-bac83103.entry.js → p-3243737f.entry.js} +1 -1
  296. package/dist/twilight/{p-8edd8051.entry.js → p-35024791.entry.js} +1 -1
  297. package/dist/twilight/{p-11408fba.entry.js → p-3bf9141e.entry.js} +1 -1
  298. package/dist/twilight/{p-5744d83c.entry.js → p-3eaa8925.entry.js} +1 -1
  299. package/dist/twilight/{p-67840827.entry.js → p-3fe97989.entry.js} +1 -1
  300. package/dist/twilight/{p-55447584.entry.js → p-409f7136.entry.js} +1 -1
  301. package/dist/twilight/{p-5e1573ea.entry.js → p-463e4f76.entry.js} +1 -1
  302. package/dist/twilight/{p-f86cd123.entry.js → p-4cf58a9c.entry.js} +1 -1
  303. package/dist/twilight/{p-b5dc631b.entry.js → p-4fa45c6a.entry.js} +1 -1
  304. package/dist/twilight/p-504b5014.entry.js +4 -0
  305. package/dist/twilight/{p-4a76e050.entry.js → p-511ca10b.entry.js} +1 -1
  306. package/dist/twilight/{p-0dd6679c.entry.js → p-51de8331.entry.js} +1 -1
  307. package/dist/twilight/{p-d3680fb2.entry.js → p-53b2e08f.entry.js} +1 -1
  308. package/dist/twilight/{p-ab3aa0c4.entry.js → p-53cc3cef.entry.js} +1 -1
  309. package/dist/twilight/{p-bcc2be67.entry.js → p-5905a86a.entry.js} +1 -1
  310. package/dist/twilight/{p-db533685.entry.js → p-59db4c52.entry.js} +1 -1
  311. package/dist/twilight/{p-a2b26070.entry.js → p-5b9bc272.entry.js} +1 -1
  312. package/dist/twilight/{p-f63ba8ce.entry.js → p-5bf0ced8.entry.js} +1 -1
  313. package/dist/twilight/{p-Db-E_0Rj.js → p-5dujJcuF.js} +1 -1
  314. package/dist/twilight/{p-55789c14.entry.js → p-6036b492.entry.js} +1 -1
  315. package/dist/twilight/p-6837da63.entry.js +4 -0
  316. package/dist/twilight/{p-7f999201.entry.js → p-75769c80.entry.js} +1 -1
  317. package/dist/twilight/p-7d72642b.entry.js +4 -0
  318. package/dist/twilight/p-861be114.entry.js +4 -0
  319. package/dist/twilight/p-86982850.entry.js +4 -0
  320. package/dist/twilight/p-8b505e2a.entry.js +4 -0
  321. package/dist/twilight/{p-a63d0e39.entry.js → p-8e97544e.entry.js} +1 -1
  322. package/dist/twilight/{p-8eaf241e.entry.js → p-94f73964.entry.js} +1 -1
  323. package/dist/twilight/{p-d6536ce3.entry.js → p-9d497735.entry.js} +1 -1
  324. package/dist/twilight/{p-6a0df26c.entry.js → p-9ebe9909.entry.js} +1 -1
  325. package/dist/twilight/{p-Btrb7IoM.js → p-BF4uw95J.js} +1 -1
  326. package/dist/twilight/p-BO5AoBAP.js +4 -0
  327. package/dist/twilight/{p-Wi2aT09S.js → p-BgZuVAWD.js} +1 -1
  328. package/dist/twilight/{p-B-3IShme.js → p-Cp0TiBtU.js} +1 -1
  329. package/dist/twilight/{p-B9mALQjv.js → p-DICe9yRT.js} +1 -1
  330. package/dist/twilight/{p-BcUTU-HF.js → p-DPmKuJIj.js} +2 -2
  331. package/dist/twilight/{p-CbQiaV8S.js → p-D_zRqCzR.js} +1 -1
  332. package/dist/twilight/{p-BFLhXraR.js → p-DcBxzAOm.js} +2 -2
  333. package/dist/twilight/{p-C4_JENkr.js → p-Dr5NxBjb.js} +1 -1
  334. package/dist/twilight/{p-De4u_OiV.js → p-SkTHIgsP.js} +1 -1
  335. package/dist/twilight/p-a473108d.entry.js +4 -0
  336. package/dist/twilight/{p-0d942f6b.entry.js → p-a9e61f29.entry.js} +1 -1
  337. package/dist/twilight/p-acc5aba0.entry.js +4 -0
  338. package/dist/twilight/{p-0743ad3f.entry.js → p-afb92112.entry.js} +1 -1
  339. package/dist/twilight/{p-0f8d378c.entry.js → p-b3fad8c9.entry.js} +1 -1
  340. package/dist/twilight/{p-3190dbfb.entry.js → p-b8b9c8c0.entry.js} +1 -1
  341. package/dist/twilight/{p-810d7f34.entry.js → p-bc174ca1.entry.js} +1 -1
  342. package/dist/twilight/{p-b7047136.entry.js → p-bdb38d1b.entry.js} +1 -1
  343. package/dist/twilight/{p-b1aaa74b.entry.js → p-c1bdca57.entry.js} +1 -1
  344. package/dist/twilight/{p-a1588d0d.entry.js → p-c9179f5b.entry.js} +1 -1
  345. package/dist/twilight/{p-948e44b1.entry.js → p-d100ac0c.entry.js} +1 -1
  346. package/dist/twilight/{p-fba6d1c9.entry.js → p-d45adf75.entry.js} +1 -1
  347. package/dist/twilight/{p-edec367c.entry.js → p-d5c633e3.entry.js} +1 -1
  348. package/dist/twilight/{p-0361337c.entry.js → p-d95a2fee.entry.js} +1 -1
  349. package/dist/twilight/{p-ad9f616f.entry.js → p-d969b269.entry.js} +1 -1
  350. package/dist/twilight/{p-f894c79f.entry.js → p-db479d0a.entry.js} +1 -1
  351. package/dist/twilight/{p-77bd2500.entry.js → p-e100b798.entry.js} +1 -1
  352. package/dist/twilight/{p-72941677.entry.js → p-e1222500.entry.js} +1 -1
  353. package/dist/twilight/{p-cc9f3079.entry.js → p-e452b815.entry.js} +1 -1
  354. package/dist/twilight/{p-665ea882.entry.js → p-e5758e7c.entry.js} +1 -1
  355. package/dist/twilight/p-e975235b.entry.js +4 -0
  356. package/dist/twilight/{p-96d0ca21.entry.js → p-ebb88e7b.entry.js} +1 -1
  357. package/dist/twilight/{p-e7a71145.entry.js → p-ec8e267b.entry.js} +1 -1
  358. package/dist/twilight/{p-619fdc7f.entry.js → p-f0ad1125.entry.js} +1 -1
  359. package/dist/twilight/{p-4bdf1e1b.entry.js → p-f64f5502.entry.js} +1 -1
  360. package/dist/twilight/{p-16cdf1aa.entry.js → p-f89add85.entry.js} +1 -1
  361. package/dist/twilight/twilight.esm.js +1 -1
  362. package/dist/types/components/salla-bullet-delivery/api-service.d.ts +61 -0
  363. package/dist/types/components/salla-bullet-delivery/helpers.d.ts +39 -0
  364. package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +297 -0
  365. package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +202 -0
  366. package/dist/types/components/salla-cart-summary/salla-cart-summary.d.ts +2 -1
  367. package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +5 -9
  368. package/dist/types/components.d.ts +57 -26
  369. package/package.json +5 -5
  370. package/dist/twilight/p-4970483c.entry.js +0 -4
  371. package/dist/twilight/p-4e52bc62.entry.js +0 -4
  372. package/dist/twilight/p-61619fec.entry.js +0 -4
  373. package/dist/twilight/p-a90a0bb7.entry.js +0 -4
  374. package/dist/twilight/p-b9dfbb9f.entry.js +0 -4
  375. package/dist/twilight/p-c8aa07fd.entry.js +0 -4
  376. package/dist/twilight/p-fae39494.entry.js +0 -4
  377. package/dist/twilight/p-fde5d559.entry.js +0 -4
@@ -76,26 +76,38 @@ const SallaCartSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartSumma
76
76
  return new Promise(resolve => salla.onReady(resolve));
77
77
  }
78
78
  /**
79
- * Compute cart href with scope parameter if available
79
+ * Compute cart href with scope + allocation parameters.
80
+ * Uses storage (not config) so allocation_type/allocation_id set by bullet-delivery are included.
80
81
  */
81
82
  getCartLink() {
82
83
  let cartUrl = salla.url.get('cart');
83
- const scope = salla.config.get('store.scope', salla.storage.get('scope'));
84
+ // Prefer storage over config: storage holds allocation_type/allocation_id, config only has type+id
85
+ const scope = salla.storage.get('scope') || salla.config.get('store.scope');
84
86
  if (scope && scope.id) {
85
87
  try {
86
88
  const url = new URL(cartUrl);
87
89
  url.searchParams.set('scope', scope.id);
90
+ if (scope.allocation_type)
91
+ url.searchParams.set('allocation_type', scope.allocation_type);
92
+ if (scope.allocation_id)
93
+ url.searchParams.set('allocation_id', scope.allocation_id);
88
94
  return url.toString();
89
95
  }
90
96
  catch (e) {
91
97
  const delimiter = cartUrl.includes('?') ? '&' : '?';
92
- return `${cartUrl}${delimiter}scope=${encodeURIComponent(scope.id)}`;
98
+ const params = new URLSearchParams();
99
+ params.set('scope', String(scope.id));
100
+ if (scope.allocation_type)
101
+ params.set('allocation_type', scope.allocation_type);
102
+ if (scope.allocation_id)
103
+ params.set('allocation_id', scope.allocation_id);
104
+ return `${cartUrl}${delimiter}${params.toString()}`;
93
105
  }
94
106
  }
95
107
  return cartUrl;
96
108
  }
97
109
  render() {
98
- return (h(Host, { key: 'f22c9fc5b6ad2c7b7f026a7b9ad2510a3c27c281' }, h("a", { key: 'b329fa512839a8dd6d8a1b175e254308c22a9fb0', class: "s-cart-summary-wrapper", href: this.getCartLink() }, h("div", { key: 'fbe89bcca0f38393a23016cf45358d38a53e5f8f', id: "s-cart-icon" }, h("slot", { key: 'f2668edcc903f0a8fd112c6449d8cda9113e2ffa', name: "icon" }, h("i", { key: 'f4a2c742903302b2676c4628961a90a7bcfe43eb', class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), h("span", { key: '49678efeaae684b2da2c238382b014390516db8d', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '9a399f82fc90e6c974022b65ea75c3f556f67221', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '879348fe4998f2eb3f26e4bebe486877bc733bff', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: '237d3ee6ebed4203752b6f5c4e2cb962c03cc087', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
110
+ return (h(Host, { key: '4ceefb3809e2e7c1d00bb47b3d9ed58fa0e48c7b' }, h("a", { key: '3e4f3ab42958fb12647e53cf0a7a95e780d5727f', class: "s-cart-summary-wrapper", href: this.getCartLink() }, h("div", { key: '496573ce91987c25b0cd5e16d5bb95be610f5db6', id: "s-cart-icon" }, h("slot", { key: '53c290cc7e7e5b9d911e1ba430038e0b7ef21dc5', name: "icon" }, h("i", { key: 'b9281b127f798e1738e9c59f4e0413e2852271a8', class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), h("span", { key: 'aa7b03b0f1ca2155034b15420e8c5fac7e440ae1', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '4e8111bba613de3aaefc9a22fbbd6a57e5b9ca6f', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '86a8b09624647bcd715aefaf0afae43b0b8f991e', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: '426d8bf03af7a8f96793bda0ebe593b1b1eebf63', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
99
111
  }
100
112
  get host() { return this; }
101
113
  static get style() { return sallaCartSummaryCss; }
@@ -208,7 +208,7 @@ const SallaColorPicker = /*@__PURE__*/ proxyCustomElement(class SallaColorPicker
208
208
  });
209
209
  }
210
210
  render() {
211
- return (h(Host, { key: 'dc90f101197031b0ec17939dc940b527cbb42764', class: "s-color-picker-main" }, h("slot", { key: '504a93f8bba3130a953dbfc1e03420d622247c0f', name: "widget" }, h("div", { key: '7eb60d1353d1fa6edefc400d7851499d083c3000', class: "s-color-picker-widget" }, h("div", { key: '01361959e0beeecd5c4b9ba0210931f3864b9273', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: '4091ba421758a3af182e7224ffbd74c5ca58166a', innerHTML: ArrowDown }))), h("input", { key: '5302b4da7dc9beaec6ab469175dee79d5b8c5dc5', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
211
+ return (h(Host, { key: '1da3853e7ba946b680f99ec07040035086cdf383', class: "s-color-picker-main" }, h("slot", { key: '16812a7f96d476deab7b0fe4b59f29595cc9f302', name: "widget" }, h("div", { key: 'a2820835ad0ed81022871d76fada51885f2cd144', class: "s-color-picker-widget" }, h("div", { key: 'e65430e20d893fc372449c933a619cceec98b7db', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: 'f5cfd889738260dcdb1de6da426c673b4685cffe', innerHTML: ArrowDown }))), h("input", { key: '073754e72beaae864bce94a4de29eee7d0c189ba', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
212
212
  }
213
213
  componentDidLoad() {
214
214
  if (this.canvas)
@@ -32,7 +32,7 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
32
32
  .finally(() => this.submitBtn.stop);
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: 'fbea28507c188a338ee066b5198bcf93de2fbda2' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
35
+ return (h(Host, { key: '1c2cdcb7dea3afa14a9fbe7700b05241c6e36770' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
36
36
  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))))) : ''));
37
37
  }
38
38
  static get style() { return sallaCommentFormCss; }
@@ -143,15 +143,15 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
143
143
  }
144
144
  render() {
145
145
  let isAdmin = this.comment.type == 'admin';
146
- return (h(Host, { key: '05979122884df06d634ab4f75f61d12cee93b228', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { key: 'd3be984afb159d8d6a1d4c0daf0bb72c97136a3a', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { key: '29a48174434b634e4afa5a1f2339b04705ea9f90', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { key: 'b2536843c0549b2eb24759a09f51a97b68e36654', class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { key: '553ad8fd8a3ada5cbca3c744f8b80a259ae7d2c2', class: "s-comments-item-avatar" }, h("img", { key: '57d429fa1dc545d3fe16c1f4713b960d1d7ef9f8', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { key: '8b2a3206dfa97c41a731baf18794e44ce096876f', class: "s-comments-flex-1" }, h("div", { key: '95ebefb4d82bb66d7cbc567554d0b9da2e4b416a', class: "s-comments-item-user-wrapper" }, h("div", { key: '1e6091d08973e5fc2ae8a982e6b09e5d349fede3', class: "s-comments-item-user-info" }, h("h3", { key: 'ee5ea0ea457fc43ee49cae033097297ab8358f76', 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 ?
146
+ return (h(Host, { key: '93d39f2ef35c0cfdcd6333e58e6a836845b4fe12', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { key: 'c160b10f946149c293cb0daeaf96aa7b06ba095e', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { key: '60728bde4f0293cf419b589759b6621c5f0a519a', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { key: 'aac6a394aa6460756c4c54d0a0c671078d1dddd6', class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { key: 'cdca36fac4f23720084477ee889325942d25341e', class: "s-comments-item-avatar" }, h("img", { key: '07e8e17f7470d87607c8aaa8f15e283b129ca070', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { key: '6ef14e9b64d8300a24d886c081cc66ec621fd2a6', class: "s-comments-flex-1" }, h("div", { key: '4f72cfb690978fae30d8ef7c957e6adf53a2872d', class: "s-comments-item-user-wrapper" }, h("div", { key: '413840281c0050521a8ae4fd60e502ed821f4260', class: "s-comments-item-user-info" }, h("h3", { key: '814c32cefc6b62585022ab3e1cdb59965553f1d2', 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 ?
147
147
  h("div", { class: "s-comments-item-pinned-icon-with-margin" }, this.PinnedIcon())
148
148
  : null, (this.comment.has_order || !!this.comment.rating) && !this.comment.is_pending && !this.hideBought ?
149
149
  h("div", { class: "s-comments-flex" }, this.comment.has_order ?
150
150
  [h("span", { class: "s-comments-item-has-order-check-icon", innerHTML: IconVerified }), h("span", { class: "s-comments-item-has-order-check-text" }, this.has_bought_trans, " ", this.comment.rating ? ', ' : '')] : null, !!this.comment.rating ?
151
151
  h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
152
- : null), h("p", { key: '80c430d77b6ae3e959db9bc089fd7fe834e56bd2', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '49a1b26309490d6252f0fbd53b50374cbf10071d', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
152
+ : null), h("p", { key: '7c6745073e250e100c8a613e4fd94d751042fb7f', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '011cfc88b9702e14f6ea9d8ded0fa6f8678adb18', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
153
153
  h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
154
- : null), h("div", { key: '780bee1166000b296e6956921c71cfd4f48e8153', class: "s-comments-item-content" }, h("p", { key: '9ff2a32cbd551ff911300ce6cfa1065770117a18', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'f47022f4916c3d4e0641273612b4a5f7c69a4595', 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: '8e70ec00301d369bbed5c1f11a1887a0498e2b0c', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '65cb35fd60869f64780fbb5bfc61fbc3cddc49c9', 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: 'bb0cf465f99ecfe9ee10dfb96949cd7b5793da90', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: 'e195759f1df5a87b761478ac4a379411f284785c', 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 && 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 ?
154
+ : null), h("div", { key: '044599867529f9526306ac258981a15e4c43e369', class: "s-comments-item-content" }, h("p", { key: 'd3d082f84a154205bb6eedb0d14c2bb9a83387ee', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'c475b4911834163084ede77e2c1f289ea9efddca', 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: '384d4555813e8e9c4bf7c6ad626def802f8f6f5a', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: 'a2be6511ff82555b87196183c6f463f4582c18c4', 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: 'c6029d94bdddf9958758fbd8c3dbca3e40ad1c01', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: 'b5febbea6d46ce3b920f5bc15866eebb54f440e4', 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 && 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 ?
155
155
  h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
156
156
  this.getReplies().map((reply) => {
157
157
  return h("div", null, h("salla-comment-item", { comment: reply }));
@@ -118,7 +118,7 @@ const SallaConditionalFields = /*@__PURE__*/ proxyCustomElement(class SallaCondi
118
118
  });
119
119
  }
120
120
  render() {
121
- return (h(Host, { key: 'af75ffed0725edefeb9e6fcd2f95bf9209f63dd0' }, h("slot", { key: 'b28f91555071a31d967d85ba7d693e16266bcc6c' })));
121
+ return (h(Host, { key: 'f10107a1f25a518a71fe009caf40baabff9dbdc7' }, h("slot", { key: '7fef4fea8387956cc13583759dc3920c4881f389' })));
122
122
  }
123
123
  get host() { return this; }
124
124
  }, [4, "salla-conditional-fields", undefined, [[0, "change", "changeHandler"], [0, "input", "changeHandler"]]]);
@@ -20,16 +20,21 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
20
20
  this.isMobile = false;
21
21
  this.mobileBreakpoint = 768;
22
22
  this.mobileQueryHandler = (e) => (this.isMobile = e.matches);
23
- /**
24
- * The message displayed in the cookies bar.
25
- */
26
- this.message = 'We use cookies to improve your experience on our site. By continuing to browse, you agree to our use of cookies.';
27
23
  }
28
- componentWillLoad() {
24
+ async componentWillLoad() {
25
+ await Salla.onReady();
26
+ await Salla.lang.onLoaded();
27
+ this.loadTranslations();
29
28
  if (Salla.storage.get('cookies-consent')) {
30
29
  this.isVisible = false;
31
30
  }
32
31
  }
32
+ loadTranslations() {
33
+ this.messageLabel = Salla.lang.get('common.cookies.message');
34
+ this.linkLabel = Salla.lang.get('common.cookies.link');
35
+ this.acceptLabel = Salla.lang.get('common.cookies.accept');
36
+ this.rejectLabel = Salla.lang.get('common.cookies.reject');
37
+ }
33
38
  componentDidLoad() {
34
39
  this.mobileQuery = window.matchMedia(`(max-width: ${this.mobileBreakpoint - 1}px)`);
35
40
  this.isMobile = this.mobileQuery.matches;
@@ -65,16 +70,17 @@ const SallaCookiesBar$1 = /*@__PURE__*/ proxyCustomElement(class SallaCookiesBar
65
70
  if (!this.isVisible) {
66
71
  return h(Host, null);
67
72
  }
68
- return (h(Host, null, h("div", { dir: this.isRtl() ? 'rtl' : 'ltr', class: "s-cookies-bar fixed bottom-0 inset-x-0 z-50 bg-white p-4" }, h("div", { class: "s-cookies-bar-content flex flex-col justify-center gap-6 max-w-screen-xl mx-auto px-4" }, h("p", { class: "s-cookies-bar-message text-sm font-medium leading-relaxed text-gray-500 m-0" }, this.message || Salla.lang.get('common.cookies.message'), Salla.config.get('policy_url') && (h("a", { href: Salla.config.get('policy_url'), target: "_blank", class: "s-cookies-bar-link text-primary ms-1" }, Salla.lang.get('common.cookies.link')))), h("div", { class: "s-cookies-bar-actions flex flex-row gap-2 shrink-0" }, h("salla-button", { class: "s-cookies-bar-btn--accept", color: "primary", fill: "solid", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.accept() }, this.acceptLabel || Salla.lang.get('common.cookies.accept')), h("salla-button", { class: "s-cookies-bar-btn--reject", fill: "outline", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.reject() }, this.rejectLabel || Salla.lang.get('common.cookies.reject')))))));
73
+ return (h(Host, null, h("div", { dir: this.isRtl() ? 'rtl' : 'ltr', class: "s-cookies-bar fixed bottom-0 inset-x-0 z-50 bg-white p-4" }, h("div", { class: "s-cookies-bar-content flex flex-col justify-center gap-6 max-w-screen-xl mx-auto px-4" }, h("p", { class: "s-cookies-bar-message text-sm font-medium leading-relaxed text-gray-500 m-0" }, this.messageLabel, Salla.config.get('policy_url') && (h("a", { href: Salla.config.get('policy_url'), target: "_blank", class: "s-cookies-bar-link text-primary ms-1" }, this.linkLabel))), h("div", { class: "s-cookies-bar-actions flex flex-row gap-2 shrink-0" }, h("salla-button", { class: "s-cookies-bar-btn--accept", color: "primary", fill: "solid", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.accept() }, this.acceptLabel), h("salla-button", { class: "s-cookies-bar-btn--reject", fill: "outline", type: "button", size: this.isMobile ? 'small' : 'medium', onClick: () => this.reject() }, this.rejectLabel))))));
69
74
  }
70
75
  get host() { return this; }
71
76
  static get style() { return sallaCookiesBarCss; }
72
77
  }, [0, "salla-cookies-bar", {
73
- "message": [1],
74
- "acceptLabel": [1, "accept-label"],
75
- "rejectLabel": [1, "reject-label"],
76
78
  "isVisible": [32],
77
79
  "isMobile": [32],
80
+ "messageLabel": [32],
81
+ "linkLabel": [32],
82
+ "acceptLabel": [32],
83
+ "rejectLabel": [32],
78
84
  "accept": [64],
79
85
  "reject": [64]
80
86
  }]);
@@ -158,7 +158,7 @@ const SallaCountDown = /*@__PURE__*/ proxyCustomElement(class SallaCountDown ext
158
158
  return this.renderCountDown();
159
159
  }
160
160
  render() {
161
- return (h(Host, { key: '11e7cf7cf77bbde82d990107b7ccda8f1fc9ad6f', 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.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
161
+ return (h(Host, { key: 'de0e93d1c6bcf24dc3b07705786fb9c204bfa625', 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.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
162
162
  }
163
163
  static get style() { return sallaCountDownCss; }
164
164
  }, [0, "salla-count-down", {
@@ -211,7 +211,7 @@ const SallaDatetimePicker = /*@__PURE__*/ proxyCustomElement(class SallaDatetime
211
211
  }
212
212
  }
213
213
  render() {
214
- return h("div", { key: 'f619b5fa5fdb68b3cc8562be43496dabb1d78f37', class: "s-datetime-picker" }, h("input", { key: 'dc9b5d0680cd31109a2b82fcf435b8b68d5fbb8d', 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 }));
214
+ return h("div", { key: 'a10e37bc3c3d5e13006fefd3569f2fb7660543bd', class: "s-datetime-picker" }, h("input", { key: '1e838ac042a0ca43e7d6a871eee2d6f2840434a0', 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 }));
215
215
  }
216
216
  async componentDidLoad() {
217
217
  // Load flatpickr before initializing
@@ -316,11 +316,11 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class SallaFileUpload e
316
316
  }
317
317
  }
318
318
  render() {
319
- return (h(Host, { key: '45383bff9bc408ef0328e888751827e6fc70038d', class: {
319
+ return (h(Host, { key: 'b33365d20c42081e38ebf7c8b63bc0580807bc4e', class: {
320
320
  "s-file-upload": true,
321
321
  "s-file-upload-profile-image": this.profileImage,
322
322
  "s-file-upload-multiple": this.allowMultiple,
323
- } }, h("input", { key: '323e469923868db4e322d67c1dd8a7efc245fe5f', 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: '42458ac28b13ba4e6c6dc80a30054e0e567a9366', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
323
+ } }, h("input", { key: '6e4458218bbeae75c21db781c85a376b29d5b11b', 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: 'f06888dc84c34236d11c7b2ad7250bb41d8b9bfe', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
324
324
  }
325
325
  componentDidLoad() {
326
326
  let files = this.getFiles();
@@ -190,12 +190,12 @@ const SallaFiltersWidget = /*@__PURE__*/ proxyCustomElement(class SallaFiltersWi
190
190
  return h("span", { class: "s-filters-option-name" }, label);
191
191
  }
192
192
  render() {
193
- return (h(Host, { key: '077daba99bcd27c940a4e4efaf1bfee325952b9f', class: "s-filters-widget-container" }, h("h3", { key: '2ad33389bea9078357d8feabda3d1d813cc57887', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: '8084e6e7032fde8a71c962db8025a17e22a0e017' }, this.option.label), h("span", { key: '56fa918f5391b3cfe6e58ffff2a5178515c49679', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '6935232082047b6147f24c332d48f0b8e6b028ba', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: '1dc3c9aa881bcc2998d6460b296e92fb9dbeccc9', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: '296e9b6356ec5f646ecb7e255e79f9302b73b94a', 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: 'de9f573e83242f244a0f700e95913ce5701aba6c', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: 'af9a5e720b01c69a5da1f9fa0c5e24fd811f7606' }), this.option.type !== FilterOptionTypes.RANGE
193
+ return (h(Host, { key: 'aaa423868d5ecd62a1d3dbb05a5143f7983e15ab', class: "s-filters-widget-container" }, h("h3", { key: '444a72e027f870fcd3f2fb01d8a52d642b1d6fab', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: '1813e58218aefebecdd0b2d8af9ce89ce5c17b9f' }, this.option.label), h("span", { key: '11926f6d1343095b29c93f010b99cfc07152918a', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '24f151541c5da697d157f6f110fb640b316ad533', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: '12b4adb00888f657f9d67f84b377634190e0cedd', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: 'b14ff87ad64e594c3120be3b5e5d102c8d74cd98', 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: '9a9f76a9ca1a9ae7e474dcf771e0a58936dee7d7', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: '020b614afb9c6ca5aadfccafe748e73e8f2fa77a' }), this.option.type !== FilterOptionTypes.RANGE
194
194
  ? this.renderFilterOption(this.option)
195
195
  : h("salla-price-range", { onChanged: (event) => {
196
196
  this.changed.emit(event.detail);
197
197
  }, ref: price => this.priceRange = price, filtersData: this.filtersData, option: this.option })), this.withLoadMore && (!this.searchQuery || this.filteredCount > this.initialItemCount) &&
198
- h("a", { key: '0d849529f9fe7d9543f63cc3a035850ec5578b2c', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
198
+ h("a", { key: '4d03eccbc3b357444e27d61c647b09d435ceb1be', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
199
199
  }
200
200
  get host() { return this; }
201
201
  static get style() { return sallaFiltersWidgetCss; }
@@ -196,7 +196,7 @@ const SallaFilters$1 = /*@__PURE__*/ proxyCustomElement(class SallaFilters exten
196
196
  this.applyFilters();
197
197
  }
198
198
  render() {
199
- return h(Host, { key: 'cee91d1495df18bbdbd71625ff85f582fe93f90a' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
199
+ return h(Host, { key: '3b38160573591da8249606b8c12b72b58d03551d' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
200
200
  this.handleOptionChange(event, option, value);
201
201
  } })), this.filters?.length ? h("div", { class: "s-filters-footer" }, h("salla-button", { color: 'gray', fill: 'outline', onClick: () => this.resetFilters() }, this.reset)) : '');
202
202
  }
@@ -472,7 +472,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
472
472
  }
473
473
  render() {
474
474
  return [
475
- h("div", { key: '69f449221a2abf8e4d9264b46ab023eb7baca314' }, h("salla-list-tile", { key: '0072bab6171c9b11e54f0c6655c408b12d554e24', class: this.generateClass() }, h("div", { key: '38aa5f8decf6d9c97253c3c16b80a478d623985e', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '37fddbe7a80f38b3acca42220028208cab52ba15' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'b3bf6bff40b60a3fbace637ed69f6aa72853c04b', slot: "subtitle" }, h("div", { key: '46643b7cd897524ca42c41da24e657401f85ab28' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '5129acfd67425ccfad68b3770843f11c9fa55b18', slot: "action" }, h("salla-button", { key: '0e93efc647444a26198e4631614b8590f75f122e', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: 'b88d95a25308cebc29b796bb2b0c25e4fa230406', name: "widget-btn-content" }, h("div", { key: '4cdbaaeb2bc67f056ea348755ffbdfbc831a1a5b', class: "s-gifting-widget-action-content" }, h("span", { key: '7dfec389970416df9be46c8ae5f0904dd64e17ad', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '768f3621011bc3c984dce13ce83b3fb6cceb0171' }, this.sectionBtnText)))))), h("salla-modal", { key: 'b3c94ef80f955b42baecd963f5550f17a80c6fb4', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: 'c09e12eabff63ba1a781c8980b449f854affc164', slot: "loading" }, h("div", { key: 'dbafa39345c573eae0d045a7d23e346f7068ec0b', class: "s-gifting-skeleton" }, h("div", { key: 'ff247ea5c79b87ca1c76e6035813d7ecb2caeff2', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '1e67bea2f1f957744c4f6f0af83ded347799916e', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '6486434a702624358211c22e7a6b48be16d96c42', class: "s-gifting-modal-title" }, h("div", { key: '688854d37e5ca46fcaa7957d3e72a52d7c706f8d', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '9fcbb2086aa25b02effdc873bbfd45087e673de6', height: '15px', width: '150px' })))), h("div", { key: '1b9bf709a01b20e87d68f92f3cb93600214460cd', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: 'ba6b0c87442412398c360da1f6e8b5094812900f', height: '10px', width: '150px' }), h("salla-skeleton", { key: '6583783ace4e2668705c47c4bcac2a33b346a72b', height: '230px' }), h("salla-skeleton", { key: 'c76b038f100072d56a7cedd0438eeacc98bf7b42', height: '10px', width: '150px' }), h("salla-skeleton", { key: '1d331e7be7cd88ea5c108f331626dddc74699ed2', height: '30px' }), h("salla-skeleton", { key: '5cc3d1b8d67b7bf199219099af909591b8a8a869', height: '40px' })))), h("slot", { key: '9dc4c6f3a717e16e3527f9651b05a74ca1a6212c', name: "header" }), !!this.hasError ?
475
+ h("div", { key: '9574380f66316cf6334d4256e410e39f3817eb59' }, h("salla-list-tile", { key: '651a29e6178f9a1fe47722fe76f4f703ca141c30', class: this.generateClass() }, h("div", { key: '82827e1d3a102ef23256e2eb157149b22f5a998a', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: '15e0b153ed7fe76a6ee55f1bde19c8421ceded59' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'f1de0351fd585fb1cfc80692575c1ba8ab6ce54b', slot: "subtitle" }, h("div", { key: 'e2bab5f3573295b4196bc5fa8bb93621d4b0b10c' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: '2c51262f9d0915199654cbe47b402933b2088709', slot: "action" }, h("salla-button", { key: 'eb98eb7a087f992db8cabb3d73540b97691c8a8a', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: 'fad4f36f0dac45b19216790fb895b37d1cc5559e', name: "widget-btn-content" }, h("div", { key: '5a450e7c43a871ebb774a993b2aa8c5995263f85', class: "s-gifting-widget-action-content" }, h("span", { key: '3ab35c8fbcdf0297e9955b3272a7253a6c4268eb', innerHTML: GiftSharing }), " \u00A0", h("span", { key: 'be874da9ec1226a0ef72797bb57202e0dd1760cd' }, this.sectionBtnText)))))), h("salla-modal", { key: '857ff6f56962093dc896fd2dc7172be29522a96e', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '03a8f004c81a6a2a89b6de2c47f3353aae11e5e8', slot: "loading" }, h("div", { key: '38ea94f80df85e8d4d5275f0e732343097bd21a6', class: "s-gifting-skeleton" }, h("div", { key: '33af109db7645e322a3208756ae2a5293d4d1456', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '2246cec7f9e041ffdb7d7fd649e81a0675801150', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '83f5633bc7141e2c42c485db361771820c4c0650', class: "s-gifting-modal-title" }, h("div", { key: '200855ddf40a5f04f44dd654d86811d524920b2e', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '968cf1ae36607c0a5d3b1ce09710cbba42655bc5', height: '15px', width: '150px' })))), h("div", { key: '4a345dee6aac2dc9bad6ef95801e18c58d90f2f8', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '11239cd329c61e72fd7ae33a987917ed7a036c9b', height: '10px', width: '150px' }), h("salla-skeleton", { key: '62e22fe7f980e2e9ff0b36897cc14b04810c1b77', height: '230px' }), h("salla-skeleton", { key: '497135a7babcedf738553b10eb8b45eeb4ce029c', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'a5661d473a1ef369115c5087bc3ee48a10e37ebf', height: '30px' }), h("salla-skeleton", { key: '08c21713c79c518dcf955ebc677de46382e7bb6f', height: '40px' })))), h("slot", { key: 'b6b3ac52af5dac166b3965ee903c5db14c63250f', name: "header" }), !!this.hasError ?
476
476
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
477
477
  :
478
478
  [
@@ -488,7 +488,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
488
488
  h("div", null, h("div", { class: this.errors && this.errors['receiver.country'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, h("label", { class: "s-form-label" }, this.receiverCountryFieldLabel), h("select", { name: "country", class: "s-form-control", onChange: (event) => this.handleCountryChange(event), required: true }, h("option", { value: "" }, this.selectCountry), this.gift?.countries?.map((country) => (h("option", { value: country.id }, country.name)))), this.errors && this.errors['receiver.country'] ?
489
489
  h("span", { class: "s-gifting-error" }, this.errors['receiver.country']) : ''), h("div", { class: this.errors && this.errors['receiver.city_id'] ? "s-form-group s-form-has-error anime-item opacity-0" : "s-form-group anime-item opacity-0" }, 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 }, 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'] ?
490
490
  h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), h("div", { class: "s-gifting-info anime-item opacity-0" }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo))), !this.physicalProducts && h("div", { class: "anime-item opacity-0" }, 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: "s-gifting-step-two-footer anime-item opacity-0" }, h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
491
- ], h("slot", { key: '2ca6746edd5e72c996633b6d0b3ccdc5009198c4', name: "footer" })))
491
+ ], h("slot", { key: '04b96695999357ab1b4b0cf16f853c0f5dc2d402', name: "footer" })))
492
492
  ];
493
493
  }
494
494
  static get style() { return sallaGiftingCss; }
@@ -13,7 +13,7 @@ const SallaHook$1 = /*@__PURE__*/ proxyCustomElement(class SallaHook extends HTM
13
13
  this.host.before(element);
14
14
  }
15
15
  render() {
16
- return h(Host, { key: '189812f50392c4713c5d178b7ca17934b6407eac' });
16
+ return h(Host, { key: '61a0a169011899bd7c2bcc0e1ddd1376da071d1d' });
17
17
  }
18
18
  async componentDidLoad() {
19
19
  // Register this component for hooks system, already on it logic to run componentDidLoad trigger
@@ -25,7 +25,7 @@ const SallaListTile = /*@__PURE__*/ proxyCustomElement(class SallaListTile exten
25
25
  };
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '1e84d5e259adbf61502fbe1ee771ce948c87f218' }, h("a", { key: '5e28c64a0f1c62e6749a32859180e705f99af27e', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: 'ace3fdaae7332c4c23ab411f0b97cb0699c26ec2', class: "s-list-tile-item-icon" }, h("slot", { key: 'f8790cd45f2004691b156ef96d12a0f003d99899', name: 'icon' })), h("div", { key: 'a788d022e2afe3cd383c321f4100dafbae84f844', class: "s-list-tile-item-content" }, h("div", { key: 'a07afce13d054e11236ffb282901de9db3d23923', class: "s-list-tile-item-title" }, h("slot", { key: '43c23495cfb026ddba8739dcc1a619ec25fe98e0', name: 'title' })), h("div", { key: 'db5e2767a4220ee5d658b3b9384c28d0e105febb', class: "s-list-tile-item-subtitle" }, h("slot", { key: '245f602055419b1f32fa943805a72c6a207eea3f', name: "subtitle" }))), h("div", { key: '394a2d1402d3e8346cbc1ebd8d410405ed568c77', class: "s-list-tile-item-action" }, h("slot", { key: '6086eb6b1f9894f5a3a77ca484c74dd06f0d468f', name: 'action' })))));
28
+ return (h(Host, { key: 'c66af50f4293094425640dd48246a973a240687b' }, h("a", { key: '5f2969fa28b312b2df0aa8f4ea93476f3d46f415', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: '4b92b66742957d2cb1d0961f78912ee28fd156d2', class: "s-list-tile-item-icon" }, h("slot", { key: '8593c413f0f7ed60d5f5b2e80a1e10880b6fd063', name: 'icon' })), h("div", { key: '469efd30ddfd208c1b73b6fc4485ae7fae11f914', class: "s-list-tile-item-content" }, h("div", { key: 'e5bebc43345b3921597d73020948ed5f913974e8', class: "s-list-tile-item-title" }, h("slot", { key: '306e82cccd99c6a8341c23fc5f8f35c5a656a088', name: 'title' })), h("div", { key: 'b148fbbc417ff3e174833a91c8b852525f6cacc1', class: "s-list-tile-item-subtitle" }, h("slot", { key: '44ef5d6b3aae8a7b511244be00c12700605c596a', name: "subtitle" }))), h("div", { key: '8cfd1fa5145a3b2adf7eb1da27f1cf96d7d96780', class: "s-list-tile-item-action" }, h("slot", { key: '47db71ae396cfc1cbdeb9fd7fd643afefd1af5db', name: 'action' })))));
29
29
  }
30
30
  static get style() { return sallaListTileCss; }
31
31
  }, [4, "salla-list-tile", {
@@ -27,7 +27,7 @@ const SallaLoading = /*@__PURE__*/ proxyCustomElement(class SallaLoading extends
27
27
  this.bgColor = "#e5e7eb";
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: '2592e9504b03cb78f212d57e51c19075172fadd0', class: "s-loading-container" }, h("svg", { key: '4d495370551559a59423d5b672a3f1b4ed6bd7e3', "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: 'aedf2f6df87ac1dc82c32180cbf11dcf925a2267', 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: 'db02a829fe6142c41f43f4c6d3d07695b1fa41f9', 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" }))));
30
+ return (h(Host, { key: '4e2a9d729f0b716566b0d5c71aef6aae23e7fc4b', class: "s-loading-container" }, h("svg", { key: '87f13687b423e1e07489a2c97da5a9ba06baf370', "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: '695143716aa79350944941eda892618ae5e0565a', 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: '7a37e9b42f4d9f7ee7848f9af78b50307d7dcd79', 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" }))));
31
31
  }
32
32
  static get style() { return sallaLoadingCss; }
33
33
  }, [0, "salla-loading", {
@@ -110,7 +110,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
110
110
  });
111
111
  }
112
112
  render() {
113
- return (h("salla-modal", { key: '8f37a27df315cdc0c28e3294dc91209c852be37f', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: 'f12693b51bd57a866dd5eb40dedfb824262d69c9', slot: 'loading' }, h("div", { key: 'cf40e4ae38a9bffe76b63688b59638a534dfbfeb', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: 'b58668b0c16863b7998832c4be120636b32e4b05', width: '25%', height: '15px' }), h("div", { key: '2277672008dd8895791954ad3f8ac0bf090095cd', 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: 'e22fe136879a706972c05b2b9ea8ab85be57b82f', width: '25%', height: '15px' }), h("div", { key: '8800d040033db851d2903c05fe0ce947072aae2e', 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: '3248a10d8023fa2c8b411294da1072d4209e9a87', height: '40px', width: '100%' }))), !!this.hasError ?
113
+ return (h("salla-modal", { key: 'f879ba9acb191ca879d56e8dfc2b6770c3840f98', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: 'd740c5b855c8fce282a2825463934de5b229bbfe', slot: 'loading' }, h("div", { key: '089b25c5e823158a4b52e094650bdb6c7316e527', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: 'a2fc0521bfc24bbe28506f2d39879d794de7a861', width: '25%', height: '15px' }), h("div", { key: 'f04667dc28710e1885d156b13e014d6ada7a804d', 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: '94fe914dfa3927931dabd2f7bf2fdce7c28a78d2', width: '25%', height: '15px' }), h("div", { key: '1c9d8fbbfe76089646ab6da1b2e6f6f1bf90031c', 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: '70e81e3e906a4f53572cff5191d64e0168d1c3b8', height: '40px', width: '100%' }))), !!this.hasError ?
114
114
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
115
115
  h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
116
116
  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 ?
@@ -15,7 +15,7 @@ const SallaLoyaltyPrizeItem$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoya
15
15
  this.prizeItemSelected.emit(this.item);
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '6aad4c3c2052fc29cb04aafc307831ae92c9caf7' }, h("div", { key: 'aec0459249272685c12b451dce725857d514dcc9', onClick: this.onPrizeItemClick.bind(this) }, h("img", { key: '0bd6790bdb8f8e0c2f630801b370564d2b2f0ee4', class: "s-loyalty-prize-item-image", src: this.item.image, alt: this.item.name }), h("div", { key: '5f96c2b7b091b943044f1765d205dd4315227b56', class: "s-loyalty-prize-item-title" }, this.item.name), h("div", { key: 'd1124db21faf13b3275064b63f54f4119ff62f54', class: "s-loyalty-prize-item-subtitle" }, this.item.description), h("div", { key: 'fb6ca5f5d7994721c3ab36729a1cf07b494ac91a', class: "s-loyalty-prize-item-points" }, this.item.cost_points, " ", salla.lang.get('pages.loyalty_program.point')))));
18
+ return (h(Host, { key: '41df19345e2a4ed6a38eb7ee1fa7a409d19fa89d' }, h("div", { key: '2e8fadde2fe4aefbf640fd7025b4ff807739f547', onClick: this.onPrizeItemClick.bind(this) }, h("img", { key: '30342789e4dc4c65756205a928cb1011a6c3e9b3', class: "s-loyalty-prize-item-image", src: this.item.image, alt: this.item.name }), h("div", { key: 'afc2880c949c32b7acd03fafb7e67c913543e476', class: "s-loyalty-prize-item-title" }, this.item.name), h("div", { key: 'f59c157c72b18d5bc678882c0ba2619e15cea629', class: "s-loyalty-prize-item-subtitle" }, this.item.description), h("div", { key: 'a68e7ae92728ce8a17025e8ed462686c70653748', class: "s-loyalty-prize-item-points" }, this.item.cost_points, " ", salla.lang.get('pages.loyalty_program.point')))));
19
19
  }
20
20
  static get style() { return sallaLoyaltyPrizeItemCss; }
21
21
  }, [0, "salla-loyalty-prize-item", {
@@ -79,7 +79,7 @@ const SallaWalletTable = /*@__PURE__*/ proxyCustomElement(class SallaWalletTable
79
79
  }
80
80
  }
81
81
  render() {
82
- return (h(Host, { key: '9beb3c0146ba1e0d5dc1c60a09c7d38af391bdc6' }, h("div", { key: 'a6ce757cb30de9b2e4d2c7e224b62452b9ce26e9' }, this.isLoadingLoyalty ? (h("salla-loading", null)) : (h("div", null, this.loyaltyPointsArray.length > 0 ? (h("div", null, h("table", { class: "s-loyalty-program-table" }, h("thead", { class: "s-loyalty-program-table-head" }, h("tr", { class: "s-loyalty-program-table-head-tr" }, h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('pages.wallet.points')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('pages.wallet.date')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('pages.wallet.expiry_date')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('common.elements.note')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('common.elements.status')))), h("tbody", { class: "s-loyalty-program-table-tbody" }, this.loyaltyPointsArray.map(point => (h("tr", { class: "s-loyalty-program-table-tbody-tr" }, h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, point?.type === 'plus' ? '+' : '', point?.points || '', " ", salla.lang.get('pages.loyalty_program.point')), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, formatDate(point?.created_at ? Number(point.created_at) * 1000 : undefined)), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, formatDate(point?.points_expire_date)), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, translateKey(point?.key)), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, translateKey(point?.status_key))))))), h("div", { class: "s-infinite-scroll-wrapper" }, !!this.nextPageUrlLoyalty && (h("salla-button", { onClick: this.handleClick, loading: this.isLoadingLoyalty }, salla.lang.get('common.elements.load_more')))))) : (h("div", null, h("div", { class: "s-loyalty-program-table-empty-state" }, h("span", { innerHTML: loyaltyProgramIcon }), h("div", { class: "s-loyalty-program-table-placeholder-title" }, salla.lang.get('pages.loyalty_program.no_loyality_points_title')), h("div", { class: "s-loyalty-program-table-placeholder-sub-title" }, salla.lang.get('pages.loyalty_program.no_loyality_points_sub_title'))))))))));
82
+ return (h(Host, { key: '8db94d6959cdbfa850f64d6c37471a78e9b36fb8' }, h("div", { key: 'e7d4eeef9079ac87ea4d4359c6833dce82bfa11e' }, this.isLoadingLoyalty ? (h("salla-loading", null)) : (h("div", null, this.loyaltyPointsArray.length > 0 ? (h("div", null, h("table", { class: "s-loyalty-program-table" }, h("thead", { class: "s-loyalty-program-table-head" }, h("tr", { class: "s-loyalty-program-table-head-tr" }, h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('pages.wallet.points')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('pages.wallet.date')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('pages.wallet.expiry_date')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('common.elements.note')), h("th", { scope: "col", class: "s-loyalty-program-table-head-tr-th" }, salla.lang.get('common.elements.status')))), h("tbody", { class: "s-loyalty-program-table-tbody" }, this.loyaltyPointsArray.map(point => (h("tr", { class: "s-loyalty-program-table-tbody-tr" }, h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, point?.type === 'plus' ? '+' : '', point?.points || '', " ", salla.lang.get('pages.loyalty_program.point')), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, formatDate(point?.created_at ? Number(point.created_at) * 1000 : undefined)), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, formatDate(point?.points_expire_date)), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, translateKey(point?.key)), h("td", { class: "s-loyalty-program-table-tbody-tr-td" }, translateKey(point?.status_key))))))), h("div", { class: "s-infinite-scroll-wrapper" }, !!this.nextPageUrlLoyalty && (h("salla-button", { onClick: this.handleClick, loading: this.isLoadingLoyalty }, salla.lang.get('common.elements.load_more')))))) : (h("div", null, h("div", { class: "s-loyalty-program-table-empty-state" }, h("span", { innerHTML: loyaltyProgramIcon }), h("div", { class: "s-loyalty-program-table-placeholder-title" }, salla.lang.get('pages.loyalty_program.no_loyality_points_title')), h("div", { class: "s-loyalty-program-table-placeholder-sub-title" }, salla.lang.get('pages.loyalty_program.no_loyality_points_sub_title'))))))))));
83
83
  }
84
84
  static get style() { return sallaLoyaltyProgramCss; }
85
85
  }, [0, "salla-loyalty-program", {
@@ -23,7 +23,7 @@ const SallaMaintenanceAlert$1 = /*@__PURE__*/ proxyCustomElement(class SallaMain
23
23
  this.host.style.display = 'none';
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: '109e687d7d6ba48ddf89cd3631f5a852d50688fd', class: "s-maintenance-alert-wrapper" }, h("button", { key: 'd70e7e53acc699336e1611589ca3bdfc704504c2', class: "s-maintenance-alert-close", innerHTML: Cancel, onClick: () => this.closeAlert() }), h("div", { key: 'b816c1a9635828c206c792d68203ccfbe8e8235b', class: "s-maintenance-alert-content" }, h("div", { key: '61e91088a5613d943b6f662f5ed44093ecf99237', class: "s-maintenance-alert-container" }, h("div", { key: '1ca223334f52bc5097677dd23433107080567894', class: "s-maintenance-alert-icon" }, h("img", { key: '22e07c7a104267cda2bed74929307d039018698d', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), h("div", { key: '64d37700bc1454f5afadb55b49512bbd5b412d9c', class: "s-maintenance-alert-text" }, h("h2", { key: '7651dcd09a0ba07f14ed744758598015d4b45ecd' }, this.title), h("p", { key: '1f8d057af072466f34d0f3a13396de5144bc967f' }, this.message))), h("div", { key: '34f8471b855011b499c2038b1ac9dd24cc5e2e8b' }, h("a", { key: 'd9c4f4a9fb80ab90c13dc1dde69adcb7c4cd7e9f', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
26
+ return (h(Host, { key: '01c89bdfb43cf8167a80c3b534db99c2b065b470', class: "s-maintenance-alert-wrapper" }, h("button", { key: 'f0fec5518de00e00302f157b99c38c645b5c1b7b', class: "s-maintenance-alert-close", innerHTML: Cancel, onClick: () => this.closeAlert() }), h("div", { key: 'e1f17c022bf2c7f375c07f39f6d30e55895d8dac', class: "s-maintenance-alert-content" }, h("div", { key: '511254633626bb8a2b1ce31941cc738d67a90d78', class: "s-maintenance-alert-container" }, h("div", { key: '2d9383e29fdfb9af904e2892801518c6d6f880eb', class: "s-maintenance-alert-icon" }, h("img", { key: '4937284ac2ded08930bed981895ad66f08c6c6c3', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), h("div", { key: 'faf22e77325fc231bc03f5e78116a53110cd5b76', class: "s-maintenance-alert-text" }, h("h2", { key: 'a0bb82c477b0b7f2bfe096a7a1496b05649ece8f' }, this.title), h("p", { key: '6120b9c1029eb13b75829d4e87398b245f7e6f8c' }, this.message))), h("div", { key: '33513f0620a097f742dbb0c42a0612e7d25e9ac1' }, h("a", { key: 'de397335279f2ac6127e591599d9562029bfb462', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
27
27
  }
28
28
  componentDidLoad() {
29
29
  //auto-hide the alert if close button is clicked before one hour
@@ -2,17 +2,11 @@
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
4
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
5
+ import { L as Location } from './location.js';
5
6
  import { d as defineCustomElement$3 } from './salla-button2.js';
6
7
  import { d as defineCustomElement$2 } from './salla-loading2.js';
7
8
  import { d as defineCustomElement$1 } from './salla-modal2.js';
8
9
 
9
- var Location = `<!-- Generated by IcoMoon.io -->
10
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
11
- <title>location</title>
12
- <path d="M16.001 0c-7.879 0-12.001 6.204-12.001 12.333 0 5.813 9.853 17.833 10.976 19.185 0.253 0.305 0.629 0.481 1.025 0.481s0.772-0.176 1.027-0.481c1.121-1.352 10.972-13.372 10.972-19.185 0-6.129-4.121-12.333-11.999-12.333zM16.001 28.549c-3.32-4.184-9.335-12.527-9.335-16.216 0-4.656 2.92-9.667 9.335-9.667 6.412 0 9.332 5.011 9.332 9.667 0 3.689-6.013 12.032-9.332 16.216zM16 6.667c-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333 5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM16 14.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>
13
- </svg>
14
- `;
15
-
16
10
  var Edit = `<!-- Generated by IcoMoon.io -->
17
11
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
18
12
  <title>edit</title>
@@ -708,11 +702,11 @@ const SallaMap = /*@__PURE__*/ proxyCustomElement(class SallaMap extends HTMLEle
708
702
  }
709
703
  // render
710
704
  render() {
711
- return (h(Host, { key: 'f3b0f4e444e266a4f9c60782bea7920a1b4c34b4', class: "s-map-wrapper" }, h("salla-modal", { key: '5066a0f19b59509656350bd0a02bc8ff8bb3d9d7', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
705
+ return (h(Host, { key: '7d4c5c9abf034d5568ab037dcb58e7fbeb98212c', class: "s-map-wrapper" }, h("salla-modal", { key: '58b5cc9ec4377a9206485a435c198c30390982c4', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
712
706
  this.locationModal = modal;
713
- } }, this.getLocationModal()), h("slot", { key: '884266b42b7c5532486c4e8bd1aba8b0e6bf2f89', name: "button" }, h("salla-button", { key: '32b96c45aca7589681a3819d165b38e8f9ee036e', onClick: () => {
707
+ } }, this.getLocationModal()), h("slot", { key: 'c32c39e9361dcbe8c0bc4830614aa98e00a76663', name: "button" }, h("salla-button", { key: '0dda0709bb35f23d99394215aaf8c8b5344c641e', onClick: () => {
714
708
  this.open();
715
- }, color: "primary", class: "s-map-location-button" }, h("span", { key: 'd73a9837cb6a6df740300a4f52c35dd7f9499e73', class: "s-map-location-icon", innerHTML: this.formattedAddress ? Edit : Location }), this.formattedAddress ? (h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.formattedAddress))) : (this.locateButtonTitle))), h("input", { key: '77a53ca7c0b51268813238d80db56a9b9449c3f9', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
709
+ }, color: "primary", class: "s-map-location-button" }, h("span", { key: '367337f317474cf49665a14b5aca50f3daf6c6f8', class: "s-map-location-icon", innerHTML: this.formattedAddress ? Edit : Location }), this.formattedAddress ? (h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.formattedAddress))) : (this.locateButtonTitle))), h("input", { key: 'f3a1561cd74f089de4a09d2d9a72b73f1ebcfc13', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
716
710
  }
717
711
  get host() { return this; }
718
712
  static get style() { return sallaMapCss; }
@@ -48,7 +48,7 @@ const SallaMultipleBundleProductCart = /*@__PURE__*/ proxyCustomElement(class Sa
48
48
  return (h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, h("div", { class: "s-multiple-bundle-product-cart-header-content" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, h("span", null, salla.lang.get('pages.products.number_of_pieces')), h("span", null, product?.quantity_in_group))))), !hasOptions && (h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
49
49
  }
50
50
  render() {
51
- return (h(Host, { key: '34b9ae8c08eccee16d15f5ebff73b1d27f636e79', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '2f8d0bf68e67aa3bc21206d7282113fbfa67560b', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
51
+ return (h(Host, { key: '7f3424f8320337bad8af0fbb6aa5c72045e97b9c', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: '6b4150c73d5296043f216f3f48f9289e2ce10aa7', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
52
52
  return section.products.map(product => {
53
53
  const bundleContext = {
54
54
  sectionId: section.id,
@@ -179,10 +179,10 @@ const SallaMultipleBundleProductDetails = /*@__PURE__*/ proxyCustomElement(class
179
179
  }
180
180
  }
181
181
  render() {
182
- return (h(Host, { key: '2a7a27e8bfc7325575fec782139828333590eb9f', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'affcb43ee67e329a9a87d6234bb91b5494a69a35', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
182
+ return (h(Host, { key: 'c6e5ac7da584c20126ed35cfd971085a95a89cbe', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'f4047046f55c4aa5b8bab84983d16a7326fae8b0', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
183
183
  const selectedCount = this.selectedProducts[section.id]?.size || 0;
184
184
  return (h("salla-accordion", { key: section.id, collapsed: index === 0 ? false : true }, h("salla-accordion-head", null, this.renderAccordionHeader(section, selectedCount)), h("salla-accordion-body", null, h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index, selectedProducts: this.selectedProducts, onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
185
- })), h("salla-multiple-bundle-product-options-modal", { key: '6b9065e8f7872da72166979fc9ce61efaad21c0a' })));
185
+ })), h("salla-multiple-bundle-product-options-modal", { key: '8dc76d11e8876456b11b987c512cdaaca37eb562' })));
186
186
  }
187
187
  get host() { return this; }
188
188
  static get style() { return sallaMultipleBundleProductDetailsCss; }
@@ -476,7 +476,7 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
476
476
  const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
477
477
  const resetToken = this.optionsResetTokens[cacheKey] || 0;
478
478
  const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
479
- return (h(Host, { key: '28786c060499c9bfbacf025b75f21d0e8a2d6ab1' }, h("salla-modal", { key: '6322c0542ca2769f50ed6fc616c6d5c72d456c9c', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: '812707c4108b5bdefa97e1ff7537998083e2403b', slot: "loading" }, h("salla-skeleton", { key: 'e82b875495873b66414ee4a75d845823373b4914', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'f1f3545637b182257f9107972a819ae9819de137', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
479
+ return (h(Host, { key: 'd5a4e884d29cd964b27042ca0d0c664cbf6bc511' }, h("salla-modal", { key: '674c32ce9a987aac09d192c10692947c16464072', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: 'ab3a01faa218da40362c75f25d051938db784e35', slot: "loading" }, h("salla-skeleton", { key: '25c625ef2090e6cdb556e494b29670091ef1fa9e', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '1d1962bba5311141a83dadd51536b7fb7bac2b70', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
480
480
  centeredSlides: true,
481
481
  centeredSlidesBounds: true,
482
482
  slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
@@ -484,13 +484,13 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
484
484
  watchSlidesProgress: true,
485
485
  direction: 'vertical',
486
486
  spaceBetween: 10,
487
- } }, h("div", { key: '97b50195903a01376e057bc99ddb353fd3dfdb2b', slot: "items" }, this.product?.images &&
487
+ } }, h("div", { key: 'e6ca00bd18b6c0a911c00dad57e0ac4fd5f0a769', slot: "items" }, this.product?.images &&
488
488
  this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
489
489
  e.target.style.display = 'none';
490
- } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: 'ff943c9c8f175ff1c0374a13153b33889c468dda', slot: "thumbs" }, this.product?.images &&
490
+ } }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '08481d15b20bb0b522a619e0d223019ff9ee76ac', slot: "thumbs" }, this.product?.images &&
491
491
  this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
492
492
  e.target.style.display = 'none';
493
- } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '7555836d26018f6405bc54a1cd735b4030d4bdf1', slot: "footer" }, h("div", { key: 'a7ee5f19a4c11a1c61e4dc026fa8673e0ab74c3f', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '1da19964053766f3a1339ea0e77ab7aaa4d8a003', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
493
+ } })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '8aa9b8173e758821960f37093555227024b3190f', slot: "footer" }, h("div", { key: '7324d3b90689871d779ae0a95a8a4ce4e5c18fe7', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: '2205ab886613aaa5426f117efb56b7e1ae103049', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
494
494
  ? salla.lang.get('common.elements.saving')
495
495
  : salla.lang.get('common.elements.save')))))));
496
496
  }
@@ -93,7 +93,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
93
93
  return `bundle[${sectionId}][${productIndex}][id]`;
94
94
  }
95
95
  render() {
96
- return (h(Host, { key: 'a1e7d56d8a50d1c31ba102d3246b0251516e0a73' }, h("salla-slider", { key: '8308576a46ec71f557a3d686d59cd0109d5bef0f', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '3ea742119ab77f129b8c60bbcc0f8c0f7bd3e97d', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
96
+ return (h(Host, { key: '07af0a15e38a4c00450bf132a7f91c647dc7ba04' }, h("salla-slider", { key: '6a34d8659c90d6ed485149f96ad7c706122f4949', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '2aef73459325f4be492791d045b67520d210ddf7', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
97
97
  const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
98
98
  const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
99
99
  const optionsButtonLabel = hasSavedOptions
@@ -77,7 +77,7 @@ const SallaMultipleBundleProduct$1 = /*@__PURE__*/ proxyCustomElement(class Sall
77
77
  this.parseProducts(this.bundleSections);
78
78
  }
79
79
  render() {
80
- return (h(Host, { key: '91666a9a9d0302d7f93f001b39d06160f2dc6960', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
80
+ return (h(Host, { key: '05c5e7d3b7d18f23e66f3d95a04f16ab266e99a1', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
81
81
  }
82
82
  static get watchers() { return {
83
83
  "bundleSections": ["parseProducts"]
@@ -11,7 +11,7 @@ const SallaNotificationItem = /*@__PURE__*/ proxyCustomElement(class SallaNotifi
11
11
  this.__registerHost();
12
12
  }
13
13
  render() {
14
- return h("a", { key: '3eebe833efbc8110fe1c4cdd8f2f19cb9af5c0a4', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, h("span", { key: 'a7aa7033c2ec4d5dee948ffb417ca8ca02b4f73f', class: "s-notifications-item-icon" }, h("i", { key: 'c7fbc7610abb1d98b30789daa11663cb354ba407', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: '61abbf927872b32b7036c7c2dfc71814c6348ecc', class: "s-notifications-item-content" }, h("div", { key: '01412cc63786c56cfaa342de3dfc381649e8db22', class: "s-notifications-item-content-leading" }, h("h4", { key: '9b32ebdf75c612df75feead00340bba8ff4b520a' }, this.notification.title), h("p", { key: 'd04f93b82e384845cd62c931bc48a0093541746d' }, this.notification.sub_title)), h("span", { key: '20ff569fdf0e473add87a30c96f5af018949508b', class: "s-notifications-item-content-trailing" }, h("i", { key: '1b24f570a592d7bc840b9ad447a8414bd1bccce9', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: '379990c2b53929d6c14ee2ef4049e35de255fe27' }, this.notification.date))));
14
+ return h("a", { key: '63f74fac3cc9933dd0f4808ba55852dfd7bddb62', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, h("span", { key: '29c5ed5f2c13e17ad27e534806e59f8c316f4543', class: "s-notifications-item-icon" }, h("i", { key: '2d3da9b6b8f06d0f9af0841bcf9fe3a6ad4ebca1', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: 'ccb51c53e1584e72eb69120b7e68322f1e1abdb3', class: "s-notifications-item-content" }, h("div", { key: '2ea640668fbd6616f7968e5585a3ae5b0d6fb17e', class: "s-notifications-item-content-leading" }, h("h4", { key: '00d91ee1b4d9aa6b3a51cb7a6dcada8c601017c5' }, this.notification.title), h("p", { key: '8ff6803d1df5128cf9d815e5645d739fcf11d975' }, this.notification.sub_title)), h("span", { key: '3f4e6b5b0bdc3e669307dc1ec6bba315e86e3fea', class: "s-notifications-item-content-trailing" }, h("i", { key: 'e2777150fad76083f8673457e4f2b90b23885974', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: '80fb3b5c1d28c4cfbd84d2354c10776ccc209883' }, this.notification.date))));
15
15
  }
16
16
  static get style() { return sallaNotificationsCss; }
17
17
  }, [0, "salla-notification-item", {
@@ -218,7 +218,7 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
218
218
  // '</div>';
219
219
  // }
220
220
  render() {
221
- return h("salla-modal", { key: '630ede1c6ac0df4aa55bd36597eb846df901d94e', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: 'd467615c5aaefc38cec4e40e4e5a7282466937d3', slot: 'loading' }, h("div", { key: 'ff17d657a94dcfe8d744e1317d8f73cab6063d11', class: "s-offer-modal-skeleton" }, h("div", { key: '81bf28f2785c0beb1ef1d4997ce064983e2211ec', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: 'acd8aa8be556821b4039d1b5fb6e46ef4155ac67', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '0c6855f5423a5e5bf1caf54da4f608b95b7d3f08', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'e313bac8052684ede353852821a51befb73f52b7', height: '10px', width: '30%' })), h("div", { key: '4c6a675e9c07e8e2986debd8dbecc346890ce0ca', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '226951e15be9aede559c4d24ba6f6690fac80e13', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '86ae2c54c01b3e58fd31729bc6d263dfa078f7ba', height: '15px', width: '50%' }), h("salla-skeleton", { key: '32f30f4f5bb11405901359267ab6311604f352ed', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
221
+ return h("salla-modal", { key: 'bf6b6ebffa1fff9faf744913029ae4eb6f5ce499', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: '4198a24f336464f9d17170385e4f2e07c66821de', slot: 'loading' }, h("div", { key: '7d59e8a5f9ee1bd4467d2b463c5901b1f01a11c2', class: "s-offer-modal-skeleton" }, h("div", { key: '8139ef78f0d1f5dfe3ca4e00018f27ec7918944b', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '173e58027399d3b3f73dadc2d7a0e7373de62e75', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '77b033d9834f5e9a35f94bd050a5fcb2147419a1', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'cdce462a5437dfc804582b115a1464ebfc6026dc', height: '10px', width: '30%' })), h("div", { key: 'd9add56d0af01e12636f3bbf048a9b143c2874d0', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: 'd146a40cd8eedf5243fc40f713f19247fa7c7bbc', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: 'bcfd8d24a7a920f1a47751b1520f717fcbc954c4', height: '15px', width: '50%' }), h("salla-skeleton", { key: '04abbbe40c1c0fcafe3d3a287d556ea9258cfbd4', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
222
222
  ? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
223
223
  h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
224
224
  : '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
@@ -47,7 +47,7 @@ const SallaOrderDetails$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderDet
47
47
  ];
48
48
  }
49
49
  render() {
50
- return h(Host, { key: '7ae1f566d2594d047e2a9a6a9bed860aa3896ccc', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
50
+ return h(Host, { key: '7cfbdb28ff84c96aadda4992eb99ae54cd211937', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
51
51
  }
52
52
  static get watchers() { return {
53
53
  "orderDetails": ["parseOrderDetailsData"]