@salla.sa/twilight-components 2.14.418 → 2.14.420

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. package/dist/cjs/{filepond-C1_8U7ht.js → filepond-CTL5dLDP.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C2QZkcu0.js → filepond-plugin-file-poster-B-C_VVcX.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-CbVRd24w.js → filepond-plugin-file-validate-size-CzKg3e_q.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-63RP4vcL.js → filepond-plugin-file-validate-type-vnM88Tws.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-CjWMhhkZ.js → filepond-plugin-image-edit-DI2Woa_n.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CJxStqYG.js → filepond-plugin-image-exif-orientation-DfOieqsR.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview--RTa59Q8.js → filepond-plugin-image-preview-BnoA6sXp.js} +1 -1
  8. package/dist/cjs/{functions-T48FHZw8.js → functions-DlISHrKx.js} +1 -1
  9. package/dist/cjs/helpers-BJ2rnhxz.js +197 -0
  10. package/dist/cjs/{index-CQ4zjhzH.js → index-tOrYNNsf.js} +1 -1
  11. package/dist/cjs/{index-DO_QXaSt.js → index-vstkdqRz.js} +10 -6
  12. package/dist/cjs/interfaces-Bh7W0bEU.js +33 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +36 -58
  17. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-booking-field_7.cjs.entry.js +12 -12
  23. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-form_8.cjs.entry.js +4 -4
  27. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +8 -6
  47. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
  49. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-loyalty.cjs.entry.js +14 -3
  51. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-edit-item.cjs.entry.js +28 -29
  66. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +41 -0
  67. package/dist/cjs/salla-order-edit.cjs.entry.js +339 -40
  68. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  69. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  72. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  73. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  74. package/dist/cjs/salla-product-card_2.cjs.entry.js +6 -6
  75. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  76. package/dist/cjs/salla-products-list.cjs.entry.js +38 -15
  77. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-reward-action_4.cjs.entry.js +15 -8
  81. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  82. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  83. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  87. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  88. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  96. package/dist/cjs/{tracked-promise-BnNAgCN_.js → tracked-promise-BJe1J-1V.js} +1 -1
  97. package/dist/cjs/twilight.cjs.js +2 -2
  98. package/dist/cjs/{vanilla-picker-wbE79zwn.js → vanilla-picker-nnRs4Y1U.js} +1 -1
  99. package/dist/collection/collection-manifest.json +1 -0
  100. package/dist/collection/components/salla-loyalty/salla-loyalty.js +24 -2
  101. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +5 -3
  102. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +12 -5
  103. package/dist/collection/components/salla-order-edit/helpers.js +181 -0
  104. package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +3 -0
  105. package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +42 -30
  106. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.css +4 -0
  107. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +93 -0
  108. package/dist/collection/components/salla-order-edit/salla-order-edit.css +3 -0
  109. package/dist/collection/components/salla-order-edit/salla-order-edit.js +353 -39
  110. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  111. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  112. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  113. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  114. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  115. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  116. package/dist/collection/components/salla-product-options/salla-product-options.js +28 -0
  117. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  118. package/dist/collection/components/salla-products-list/salla-products-list.js +54 -14
  119. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  120. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  121. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  122. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  123. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  124. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  125. package/dist/collection/components/salla-search/salla-search.js +5 -5
  126. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  127. package/dist/collection/components/salla-social/salla-social.js +1 -1
  128. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  129. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  130. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  131. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  132. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  133. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  134. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  135. package/dist/components/index.js +2 -2
  136. package/dist/components/salla-loyalty-panel.js +5 -3
  137. package/dist/components/salla-loyalty.js +16 -3
  138. package/dist/components/salla-order-edit-item2.js +207 -30
  139. package/dist/components/salla-order-edit-product-card.d.ts +11 -0
  140. package/dist/components/salla-order-edit-product-card.js +59 -0
  141. package/dist/components/salla-order-edit.js +378 -65
  142. package/dist/components/salla-order-summary.js +1 -1
  143. package/dist/components/salla-payments.js +2 -2
  144. package/dist/components/salla-placeholder2.js +1 -1
  145. package/dist/components/salla-price-range2.js +2 -2
  146. package/dist/components/salla-product-availability2.js +1 -1
  147. package/dist/components/salla-product-card2.js +5 -5
  148. package/dist/components/salla-product-options2.js +8 -1
  149. package/dist/components/salla-product-size-guide.js +2 -2
  150. package/dist/components/salla-products-list2.js +39 -15
  151. package/dist/components/salla-quantity-input2.js +1 -1
  152. package/dist/components/salla-quick-buy2.js +1 -1
  153. package/dist/components/salla-review-card2.js +1 -1
  154. package/dist/components/salla-reviews-page.js +1 -1
  155. package/dist/components/salla-reviews.js +1 -1
  156. package/dist/components/salla-reward-details2.js +12 -5
  157. package/dist/components/salla-scopes.js +1 -1
  158. package/dist/components/salla-search.js +5 -5
  159. package/dist/components/salla-skeleton2.js +1 -1
  160. package/dist/components/salla-social-share.js +1 -1
  161. package/dist/components/salla-social.js +1 -1
  162. package/dist/components/salla-tab-content2.js +1 -1
  163. package/dist/components/salla-tab-header2.js +1 -1
  164. package/dist/components/salla-tabs2.js +1 -1
  165. package/dist/components/salla-tel-input2.js +1 -1
  166. package/dist/components/salla-tooltip2.js +1 -1
  167. package/dist/components/salla-user-settings.js +1 -1
  168. package/dist/esm/{filepond-BaqNYv3C.js → filepond-DcrhDD5e.js} +1 -1
  169. package/dist/esm/{filepond-plugin-file-poster-nENZqIRv.js → filepond-plugin-file-poster-meDD1pU1.js} +1 -1
  170. package/dist/esm/{filepond-plugin-file-validate-size-DGOq4RG8.js → filepond-plugin-file-validate-size-Ta6h96xm.js} +1 -1
  171. package/dist/esm/{filepond-plugin-file-validate-type-DwM-3UO7.js → filepond-plugin-file-validate-type-PVDX_x_z.js} +1 -1
  172. package/dist/esm/{filepond-plugin-image-edit-BCqDiFWK.js → filepond-plugin-image-edit-BR1HO3-K.js} +1 -1
  173. package/dist/esm/{filepond-plugin-image-exif-orientation-DiuxhjrQ.js → filepond-plugin-image-exif-orientation-CEWqrOc9.js} +1 -1
  174. package/dist/esm/{filepond-plugin-image-preview-DbFvPPQQ.js → filepond-plugin-image-preview-6ACW1Nfe.js} +1 -1
  175. package/dist/esm/{functions-JPNAXx4d.js → functions-DqpTrGHa.js} +1 -1
  176. package/dist/esm/helpers-DR_vlSvU.js +184 -0
  177. package/dist/esm/{index-DElBWCVR.js → index-COvJOSNr.js} +1 -1
  178. package/dist/esm/{index-BwsreBbG.js → index-Cb4NFvMH.js} +10 -6
  179. package/dist/esm/interfaces-CoQJOPRz.js +33 -0
  180. package/dist/esm/loader.js +3 -3
  181. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  182. package/dist/esm/salla-accordion_6.entry.js +1 -1
  183. package/dist/esm/salla-add-product-button_5.entry.js +10 -32
  184. package/dist/esm/salla-advertisement.entry.js +1 -1
  185. package/dist/esm/salla-alert_2.entry.js +1 -1
  186. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  187. package/dist/esm/salla-apps-icons.entry.js +1 -1
  188. package/dist/esm/salla-badge.entry.js +1 -1
  189. package/dist/esm/salla-booking-field_7.entry.js +12 -12
  190. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  191. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  192. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  193. package/dist/esm/salla-comment-form_8.entry.js +4 -4
  194. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  195. package/dist/esm/salla-contacts.entry.js +1 -1
  196. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  197. package/dist/esm/salla-count-down.entry.js +1 -1
  198. package/dist/esm/salla-custom-fields.entry.js +1 -1
  199. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  200. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  201. package/dist/esm/salla-filters-widget.entry.js +1 -1
  202. package/dist/esm/salla-filters.entry.js +1 -1
  203. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  204. package/dist/esm/salla-gifting.entry.js +1 -1
  205. package/dist/esm/salla-hook.entry.js +1 -1
  206. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  207. package/dist/esm/salla-installment.entry.js +1 -1
  208. package/dist/esm/salla-list-tile.entry.js +1 -1
  209. package/dist/esm/salla-localization-modal.entry.js +1 -1
  210. package/dist/esm/salla-login-modal.entry.js +1 -1
  211. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  212. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  213. package/dist/esm/salla-loyalty-panel.entry.js +8 -6
  214. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  215. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  216. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  217. package/dist/esm/salla-loyalty.entry.js +14 -3
  218. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  219. package/dist/esm/salla-map.entry.js +1 -1
  220. package/dist/esm/salla-menu.entry.js +1 -1
  221. package/dist/esm/salla-metadata.entry.js +1 -1
  222. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  223. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  224. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  225. package/dist/esm/salla-notification-item.entry.js +1 -1
  226. package/dist/esm/salla-notifications.entry.js +1 -1
  227. package/dist/esm/salla-offer-modal.entry.js +1 -1
  228. package/dist/esm/salla-offer.entry.js +1 -1
  229. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  230. package/dist/esm/salla-order-details-options.entry.js +1 -1
  231. package/dist/esm/salla-order-details.entry.js +1 -1
  232. package/dist/esm/salla-order-edit-item.entry.js +28 -29
  233. package/dist/esm/salla-order-edit-product-card.entry.js +39 -0
  234. package/dist/esm/salla-order-edit.entry.js +339 -40
  235. package/dist/esm/salla-order-summary.entry.js +2 -2
  236. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  237. package/dist/esm/salla-orders.entry.js +1 -1
  238. package/dist/esm/salla-payments.entry.js +3 -3
  239. package/dist/esm/salla-placeholder.entry.js +2 -2
  240. package/dist/esm/salla-price-range.entry.js +3 -3
  241. package/dist/esm/salla-product-card_2.entry.js +6 -6
  242. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  243. package/dist/esm/salla-products-list.entry.js +38 -15
  244. package/dist/esm/salla-progress-bar.entry.js +1 -1
  245. package/dist/esm/salla-quick-order.entry.js +1 -1
  246. package/dist/esm/salla-rating-modal.entry.js +1 -1
  247. package/dist/esm/salla-reward-action_4.entry.js +15 -8
  248. package/dist/esm/salla-scopes.entry.js +2 -2
  249. package/dist/esm/salla-search.entry.js +6 -6
  250. package/dist/esm/salla-skeleton.entry.js +2 -2
  251. package/dist/esm/salla-slider.entry.js +1 -1
  252. package/dist/esm/salla-social-share.entry.js +2 -2
  253. package/dist/esm/salla-social.entry.js +2 -2
  254. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  255. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  256. package/dist/esm/salla-tooltip.entry.js +2 -2
  257. package/dist/esm/salla-trust-badges.entry.js +1 -1
  258. package/dist/esm/salla-user-menu.entry.js +1 -1
  259. package/dist/esm/salla-user-profile.entry.js +1 -1
  260. package/dist/esm/salla-user-settings.entry.js +2 -2
  261. package/dist/esm/salla-verify.entry.js +1 -1
  262. package/dist/esm/salla-wallet.entry.js +1 -1
  263. package/dist/esm/{tracked-promise-BD-FZk2P.js → tracked-promise-Dl5Y2VO1.js} +1 -1
  264. package/dist/esm/twilight.js +3 -3
  265. package/dist/esm/{vanilla-picker-CqoFxJJE.js → vanilla-picker-CuBrX87l.js} +1 -1
  266. package/dist/twilight/p-03c91b77.entry.js +4 -0
  267. package/dist/twilight/{p-af84c7b8.entry.js → p-0bb36191.entry.js} +1 -1
  268. package/dist/twilight/{p-a3a0bafa.entry.js → p-0c0df6f7.entry.js} +1 -1
  269. package/dist/twilight/p-142ed3d7.entry.js +4 -0
  270. package/dist/twilight/{p-CbukOCNI.js → p-14uV0Dqq.js} +1 -1
  271. package/dist/twilight/{p-46088f51.entry.js → p-15c3ec6b.entry.js} +1 -1
  272. package/dist/twilight/{p-7d3722ad.entry.js → p-15f015b1.entry.js} +1 -1
  273. package/dist/twilight/{p-ce588635.entry.js → p-213cee5f.entry.js} +1 -1
  274. package/dist/twilight/{p-c5e18341.entry.js → p-2726ea01.entry.js} +1 -1
  275. package/dist/twilight/{p-57451f00.entry.js → p-28208f79.entry.js} +1 -1
  276. package/dist/twilight/{p-b6dce61a.entry.js → p-293fa7ae.entry.js} +1 -1
  277. package/dist/twilight/{p-993bdcbe.entry.js → p-29f8baaa.entry.js} +1 -1
  278. package/dist/twilight/{p-60878c2e.entry.js → p-324dc99a.entry.js} +1 -1
  279. package/dist/twilight/p-3383da76.entry.js +4 -0
  280. package/dist/twilight/{p-d9c4d2ed.entry.js → p-38ae0da1.entry.js} +1 -1
  281. package/dist/twilight/{p-0a786447.entry.js → p-3bd864fe.entry.js} +1 -1
  282. package/dist/twilight/p-3e6f7773.entry.js +4 -0
  283. package/dist/twilight/p-408ed55f.entry.js +4 -0
  284. package/dist/twilight/{p-695e3211.entry.js → p-40a41577.entry.js} +1 -1
  285. package/dist/twilight/{p-aaff5603.entry.js → p-4105a9cd.entry.js} +1 -1
  286. package/dist/twilight/{p-91d74168.entry.js → p-45f138dd.entry.js} +1 -1
  287. package/dist/twilight/{p-0654ccca.entry.js → p-4a788634.entry.js} +1 -1
  288. package/dist/twilight/{p-ad762138.entry.js → p-4c3d17a1.entry.js} +1 -1
  289. package/dist/twilight/{p-4c57de7b.entry.js → p-52f5ccfe.entry.js} +1 -1
  290. package/dist/twilight/p-59a083e4.entry.js +4 -0
  291. package/dist/twilight/{p-1c1ac203.entry.js → p-5b7970ef.entry.js} +1 -1
  292. package/dist/twilight/{p-ab5e0aef.entry.js → p-5e62a40f.entry.js} +1 -1
  293. package/dist/twilight/{p-b9c9c487.entry.js → p-5fbf4640.entry.js} +1 -1
  294. package/dist/twilight/{p-9c73e42a.entry.js → p-6135ad16.entry.js} +1 -1
  295. package/dist/twilight/{p-2f833767.entry.js → p-628a8e24.entry.js} +1 -1
  296. package/dist/twilight/{p-167f5262.entry.js → p-65c18d39.entry.js} +1 -1
  297. package/dist/twilight/{p-ff90dbf0.entry.js → p-686eecd6.entry.js} +1 -1
  298. package/dist/twilight/{p-fec6b08b.entry.js → p-68f21f26.entry.js} +1 -1
  299. package/dist/twilight/{p-3f50a52d.entry.js → p-691c3a17.entry.js} +1 -1
  300. package/dist/twilight/{p-9134d94d.entry.js → p-6cb4a60b.entry.js} +1 -1
  301. package/dist/twilight/{p-44db7163.entry.js → p-6f2edfae.entry.js} +1 -1
  302. package/dist/twilight/{p-edaba475.entry.js → p-6fb7d4f8.entry.js} +1 -1
  303. package/dist/twilight/{p-dcc65eb2.entry.js → p-72e169bd.entry.js} +1 -1
  304. package/dist/twilight/{p-681953ef.entry.js → p-73ba81cc.entry.js} +1 -1
  305. package/dist/twilight/{p-f88806d7.entry.js → p-7444a1ed.entry.js} +1 -1
  306. package/dist/twilight/{p-10884e6e.entry.js → p-752f162a.entry.js} +1 -1
  307. package/dist/twilight/{p-b737dbcb.entry.js → p-772b766c.entry.js} +1 -1
  308. package/dist/twilight/{p-03c39b2d.entry.js → p-774461b2.entry.js} +1 -1
  309. package/dist/twilight/p-7cba634a.entry.js +4 -0
  310. package/dist/twilight/p-7d37007a.entry.js +4 -0
  311. package/dist/twilight/{p-2bd83486.entry.js → p-7e47c403.entry.js} +1 -1
  312. package/dist/twilight/{p-ac008da7.entry.js → p-7ec0ac91.entry.js} +1 -1
  313. package/dist/twilight/{p-57e0b11b.entry.js → p-825cc1f7.entry.js} +1 -1
  314. package/dist/twilight/{p-f73c7b43.entry.js → p-85a15cc1.entry.js} +1 -1
  315. package/dist/twilight/p-8e96221d.entry.js +4 -0
  316. package/dist/twilight/{p-5ac81ffe.entry.js → p-95f3620c.entry.js} +1 -1
  317. package/dist/twilight/{p-29fc145b.entry.js → p-95ff1eb1.entry.js} +1 -1
  318. package/dist/twilight/{p-cd6fc43c.entry.js → p-96343e93.entry.js} +1 -1
  319. package/dist/twilight/{p-a00015ec.entry.js → p-96b64fd6.entry.js} +1 -1
  320. package/dist/twilight/{p-580441f5.entry.js → p-9a6dfcde.entry.js} +1 -1
  321. package/dist/twilight/{p-f653f2bb.entry.js → p-9b865b2c.entry.js} +1 -1
  322. package/dist/twilight/{p-5b371b1f.entry.js → p-9ba89557.entry.js} +1 -1
  323. package/dist/twilight/{p-Dw7mGaHj.js → p-B9znPMU0.js} +1 -1
  324. package/dist/twilight/{p-Cw0Ky-u0.js → p-BCTUg3S2.js} +1 -1
  325. package/dist/twilight/{p-LWKLIOwS.js → p-BII4XUuF.js} +1 -1
  326. package/dist/twilight/{p-GgHo6Cr_.js → p-BIai7zYt.js} +1 -1
  327. package/dist/twilight/p-C8xwacGT.js +4 -0
  328. package/dist/twilight/{p-DPgASjJ8.js → p-CBJQc5Lg.js} +1 -1
  329. package/dist/twilight/{p-BwsreBbG.js → p-Cb4NFvMH.js} +1 -1
  330. package/dist/twilight/{p-BuNOvMeU.js → p-Ch9nMk63.js} +1 -1
  331. package/dist/twilight/p-CoQJOPRz.js +4 -0
  332. package/dist/twilight/{p-CEuTw3-D.js → p-DQjeyM6u.js} +1 -1
  333. package/dist/twilight/{p-DlGhggDp.js → p-DXTkDRjS.js} +1 -1
  334. package/dist/twilight/{p-f-qXMnue.js → p-DvkL8Ozv.js} +1 -1
  335. package/dist/twilight/{p-4807586a.entry.js → p-acf5c683.entry.js} +1 -1
  336. package/dist/twilight/{p-9d8e4e7c.entry.js → p-aec7b53d.entry.js} +1 -1
  337. package/dist/twilight/{p-e5325563.entry.js → p-b495fd3a.entry.js} +1 -1
  338. package/dist/twilight/{p-d739ae41.entry.js → p-b5b0d57a.entry.js} +1 -1
  339. package/dist/twilight/{p-d0cf9b68.entry.js → p-b8d87ece.entry.js} +1 -1
  340. package/dist/twilight/{p-af1474dd.entry.js → p-bc8070a0.entry.js} +1 -1
  341. package/dist/twilight/{p-19e82de2.entry.js → p-befbbd96.entry.js} +1 -1
  342. package/dist/twilight/{p-b9062150.entry.js → p-c4c7efc7.entry.js} +1 -1
  343. package/dist/twilight/{p-7d492d3c.entry.js → p-c4f7d697.entry.js} +1 -1
  344. package/dist/twilight/{p-b6ac7a22.entry.js → p-cb70fe7f.entry.js} +1 -1
  345. package/dist/twilight/{p-0bf11f89.entry.js → p-d4b7ef45.entry.js} +1 -1
  346. package/dist/twilight/{p-fbe07d2d.entry.js → p-d4d61e9d.entry.js} +1 -1
  347. package/dist/twilight/{p-59657a19.entry.js → p-d6cfb7cf.entry.js} +1 -1
  348. package/dist/twilight/p-dfad4e49.entry.js +4 -0
  349. package/dist/twilight/{p-4edf67be.entry.js → p-e30f5be9.entry.js} +1 -1
  350. package/dist/twilight/{p-d469525b.entry.js → p-e64af075.entry.js} +1 -1
  351. package/dist/twilight/{p-c1d4db6f.entry.js → p-e7fd1dab.entry.js} +1 -1
  352. package/dist/twilight/{p-ceb9458e.entry.js → p-e85f1f4a.entry.js} +1 -1
  353. package/dist/twilight/{p-201926a3.entry.js → p-e9251839.entry.js} +1 -1
  354. package/dist/twilight/{p-1c3e0dbc.entry.js → p-e94f7e62.entry.js} +1 -1
  355. package/dist/twilight/p-ebc19788.entry.js +4 -0
  356. package/dist/twilight/{p-b4fd50ef.entry.js → p-f6bc9645.entry.js} +1 -1
  357. package/dist/twilight/p-f6da3fad.entry.js +4 -0
  358. package/dist/twilight/{p-a96ec635.entry.js → p-fbfa12cf.entry.js} +1 -1
  359. package/dist/twilight/{p-069485ec.entry.js → p-fca860eb.entry.js} +1 -1
  360. package/dist/twilight/{p-61215f22.entry.js → p-fd4eec62.entry.js} +1 -1
  361. package/dist/twilight/{p-CTyl0UJE.js → p-pyjmoRFm.js} +1 -1
  362. package/dist/twilight/twilight.esm.js +1 -1
  363. package/dist/types/components/salla-loyalty/salla-loyalty.d.ts +3 -0
  364. package/dist/types/components/salla-order-edit/helpers.d.ts +25 -0
  365. package/dist/types/components/salla-order-edit/interfaces.d.ts +22 -25
  366. package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +7 -5
  367. package/dist/types/components/salla-order-edit/salla-order-edit-product-card.d.ts +11 -0
  368. package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +56 -4
  369. package/dist/types/components/salla-product-options/salla-product-options.d.ts +4 -0
  370. package/dist/types/components/salla-products-list/salla-products-list.d.ts +5 -0
  371. package/dist/types/components.d.ts +51 -4
  372. package/package.json +5 -5
  373. package/dist/twilight/p-25104b13.entry.js +0 -4
  374. package/dist/twilight/p-36048354.entry.js +0 -4
  375. package/dist/twilight/p-4110e600.entry.js +0 -4
  376. package/dist/twilight/p-60d875cc.entry.js +0 -4
  377. package/dist/twilight/p-7a33e83b.entry.js +0 -4
  378. package/dist/twilight/p-86cfa253.entry.js +0 -4
  379. package/dist/twilight/p-c0b690b2.entry.js +0 -4
  380. package/dist/twilight/p-c968dab0.entry.js +0 -4
  381. package/dist/twilight/p-e07f938a.entry.js +0 -4
  382. package/dist/twilight/p-f2815da9.entry.js +0 -4
  383. package/dist/twilight/p-f7b21078.entry.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  var PencilRuler = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -53,11 +53,11 @@ const SallaProductSizeGuide = class {
53
53
  return index.h("salla-placeholder", { alignment: "center", iconSize: "xl" }, index.h("div", { slot: "title" }, this.placeholder_title), index.h("div", { slot: "description" }, this.placeholder_description));
54
54
  }
55
55
  render() {
56
- return (index.h("salla-modal", { key: 'eeb477f6cd7831f06fb2b716e2391d684ae4e93c', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, index.h("span", { key: '48f9e18ebfec9999dc856fe3c7bca7854e4f53b3', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), index.h("div", { key: '9fc445cfb72dfdd5d0d306419041aa9f3acafb66', slot: "loading" }, index.h("div", { key: 'f5dbfb1560940a691f891e7d41eca22977693d79', class: "s-product-size-guide-skeleton" }, index.h("salla-skeleton", { key: 'c6790017016fc8b471601bf093051f80183645c9', height: '15px', width: '25%' }), index.h("div", { key: 'ba72c67c7b26e62ed4548444ba9083f83816f59e', class: "s-product-size-guide-skeleton-header" }, index.h("salla-skeleton", { key: '4fd934c7bf103bcd937028bacda524915a40f76a', height: '40px' }), index.h("salla-skeleton", { key: '3754ae6eca3938380261e221f6941b2ef2a381dd', height: '40px' }), index.h("salla-skeleton", { key: 'a2007afe625ce45713b3a2f64a62cf0da101c1e9', height: '40px' }), index.h("salla-skeleton", { key: '7ed982fa2c6c862bf724fa1b1dc059db2f5dbc41', height: '40px' })), index.h("div", { key: '3914b9dde80d2257a55b0aa156f61df5936f1bb5', class: "s-product-size-guide-skeleton-content" }, index.h("salla-skeleton", { key: '51b96df249504517e4c3fe1098be2937cbaeef63', height: '15px', width: '25%' }), index.h("salla-skeleton", { key: 'd5844e3c91eddc4821b97cc9991a2441dd0bb117', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '976e70a0aa160dd9b4dbe4d0f9f0675f5c3308ea', height: '10px', width: '50%' }), index.h("salla-skeleton", { key: '1baf5286915a708ea68850c9c82e7970c6521c86', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '8ecc89a3defd83637936023b0d0841c55c6799cd', height: '10px', width: '100%' }), index.h("salla-skeleton", { key: 'eb90ea350d6947596688595bb898a8c3a8dcac39', height: '10px', width: '25%' }), index.h("salla-skeleton", { key: '282d747e764c2761aa4b68f145467371acd66f32', height: '10px', width: '60%' }), index.h("salla-skeleton", { key: '610491fa3769027ceebec2ab46e7166d0bfac9f2', height: '10px', width: '45%' }), index.h("salla-skeleton", { key: '8162ba3bec487efe6fa1c0adf2355bd175d8310a', height: '10px', width: '30%' })))), index.h("slot", { key: 'b55b29cfeb52e41c0c56a79bded075fda7f49fab', name: "header" }), !this.hasError && !!this.guides ?
56
+ return (index.h("salla-modal", { key: '890b39170a64cbe054d9abfeafde2304560848d7', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, index.h("span", { key: '5989a906d9d0e843142374c202aa5276731282e8', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), index.h("div", { key: 'a87674a01f544d91a16303cf96111633ca4438a3', slot: "loading" }, index.h("div", { key: 'f1e2f05860bb25796752283af36515432803ca9a', class: "s-product-size-guide-skeleton" }, index.h("salla-skeleton", { key: 'e579db557854a2b7903f5c435977c8d410a9157a', height: '15px', width: '25%' }), index.h("div", { key: '0b6e56e41efeebfe5215afb17e69b465f5a9992a', class: "s-product-size-guide-skeleton-header" }, index.h("salla-skeleton", { key: 'fbc7b34bdb2cf914b7d197432132065a4d1c4152', height: '40px' }), index.h("salla-skeleton", { key: '8045c64a63a469f70f87f686ec986d0c6f5aa1c5', height: '40px' }), index.h("salla-skeleton", { key: '0abd35f5af325ca1f2208659a9fb1f2ca284adfd', height: '40px' }), index.h("salla-skeleton", { key: 'd444ac5dd6391b9c902e17f98c0d3c35a939e678', height: '40px' })), index.h("div", { key: '1a217120cd307a4b837175b3eace97788a4195e4', class: "s-product-size-guide-skeleton-content" }, index.h("salla-skeleton", { key: 'a47510c2ba3357066fe2452f8dbf899bda36177f', height: '15px', width: '25%' }), index.h("salla-skeleton", { key: 'e097a5097938fc4fda820d753c42c08d06dabbea', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '16267e9b3f7a21aa384d8a8a59ff05473aebfe97', height: '10px', width: '50%' }), index.h("salla-skeleton", { key: '904842b7bde12557b9a72dc48bdeb6ebd3c65ed4', height: '10px', width: '75%' }), index.h("salla-skeleton", { key: '4286e18b5198144636f9f4ad8a2445ca41673918', height: '10px', width: '100%' }), index.h("salla-skeleton", { key: 'b1483afcb842489b5c6997216bc7e8c24437f16f', height: '10px', width: '25%' }), index.h("salla-skeleton", { key: '140f19a164bbb547c844a8483efcd86f18336a20', height: '10px', width: '60%' }), index.h("salla-skeleton", { key: '23475f824cb98b0a776b5ae2b3715a14b9413d4b', height: '10px', width: '45%' }), index.h("salla-skeleton", { key: '75d3bcd58f50886ffad02b329d5153b0ae41d46e', height: '10px', width: '30%' })))), index.h("slot", { key: '836b93fd9084ee2f19077333ac31e1629a5ad118', name: "header" }), !this.hasError && !!this.guides ?
57
57
  [
58
58
  index.h("salla-tabs", null, this.guides.map((guide) => index.h("salla-tab-header", { slot: "header", name: guide.name }, index.h("span", null, guide.name))), this.guides.map((guide) => index.h("salla-tab-content", { slot: "content", name: guide.name }, index.h("div", { innerHTML: guide.description }))))
59
59
  ]
60
- : this.showPlaceholder(), index.h("slot", { key: '6e37eb73078f786ce5dda8cf9ed6bae16eb3acfc', name: "footer" })));
60
+ : this.showPlaceholder(), index.h("slot", { key: 'ac635b008e11b61918efb43ba6489c4130831a32', name: "footer" })));
61
61
  }
62
62
  get host() { return index.getElement(this); }
63
63
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
9
9
  var Helper = require('./Helper-CU4Xuiki.js');
@@ -97,7 +97,7 @@ const SallaProductsList = class {
97
97
  async reload() {
98
98
  !this.autoload && this.loadMoreWrapper && (this.loadMoreWrapper.style.display = 'none');
99
99
  this.hasInfiniteScroll && salla.infiniteScroll.destroy(this.infiniteScroll);
100
- this.buildNextPageUrl();
100
+ await this.buildNextPageUrl();
101
101
  // TODO: this is problematic in testing, for the time being it's been resolved like this
102
102
  this.wrapper.innerHTML = '';
103
103
  if (this.hasInfiniteScroll) {
@@ -133,7 +133,7 @@ const SallaProductsList = class {
133
133
  },
134
134
  });
135
135
  }
136
- initBaseNextPageUrl(source) {
136
+ async initBaseNextPageUrl(source) {
137
137
  this.nextPage = salla.url.api(`products?source=${source}`);
138
138
  if (this.includes?.length) {
139
139
  this.nextPage += `&includes[]=${this.includes.join('&includes[]=')}`;
@@ -162,8 +162,9 @@ const SallaProductsList = class {
162
162
  }
163
163
  }
164
164
  }
165
+ this.nextPage = await this.applyBeforeBuildListUrl(this.nextPage);
165
166
  }
166
- buildNextPageUrl() {
167
+ async buildNextPageUrl() {
167
168
  let source = this.getSource();
168
169
  if (source === 'json') {
169
170
  return;
@@ -175,7 +176,7 @@ const SallaProductsList = class {
175
176
  return;
176
177
  }
177
178
  }
178
- this.initBaseNextPageUrl(source);
179
+ await this.initBaseNextPageUrl(source);
179
180
  if (this.isSourceWithoutValue()) {
180
181
  return;
181
182
  }
@@ -495,7 +496,7 @@ const SallaProductsList = class {
495
496
  if (this.includes) {
496
497
  await this.injectAndProcessData(response);
497
498
  }
498
- const items = this.handleResponse(response);
499
+ const items = await this.handleResponse(response);
499
500
  this.infiniteScroll.appendItems(items);
500
501
  if (this.infiniteScroll.pageIndex === 2) {
501
502
  if (!this.autoload && this.nextPage) {
@@ -550,6 +551,25 @@ const SallaProductsList = class {
550
551
  this.infiniteScroll.loadNextPage();
551
552
  }
552
553
  }
554
+ async applyBeforeBuildListUrl(url) {
555
+ try {
556
+ const ctx = { component: this, url };
557
+ await salla.hooks.call('salla-products-list', 'beforeBuildListUrl', ctx);
558
+ return ctx.url;
559
+ }
560
+ catch (e) {
561
+ salla.logger.warn('beforeBuildListUrl hook failed', e?.message);
562
+ return url;
563
+ }
564
+ }
565
+ async resolveNextPageFromCursor(response) {
566
+ if (!response.cursor) {
567
+ return this.nextPage;
568
+ }
569
+ return response.cursor.next
570
+ ? await this.applyBeforeBuildListUrl(response.cursor.next)
571
+ : response.cursor.next;
572
+ }
553
573
  async injectAndProcessData(response) {
554
574
  try {
555
575
  await Helper.Helper.injectExtraFieldsToResponse(response);
@@ -576,18 +596,21 @@ const SallaProductsList = class {
576
596
  //for the first page we need to inject the dom after the load, see @method componentDidLoad
577
597
  if (!this.firstPageResponse) {
578
598
  this.firstPageResponse = response;
579
- this.nextPage = response.cursor ? response.cursor.next : this.nextPage;
599
+ this.nextPage = await this.resolveNextPageFromCursor(response);
580
600
  return;
581
601
  }
582
- this.handleResponse(response).forEach(card => this.wrapper.append(card));
602
+ (await this.handleResponse(response)).forEach(card => this.wrapper.append(card));
583
603
  }));
584
604
  }
605
+ /**
606
+ * Load the next products page.
607
+ */
585
608
  async loadMore() {
586
609
  this.infiniteScroll?.loadNextPage();
587
610
  }
588
611
  componentWillLoad() {
589
612
  return salla.onReady()
590
- .then(() => {
613
+ .then(async () => {
591
614
  this.hasCustomComponent = !!customElements.get(this.productCardComponent);
592
615
  this.sourceValueIsValid = !!(this.getSourceValue() || this.isSourceWithoutValue());
593
616
  this.hasInfiniteScroll = !['json', 'selected', 'related', 'landing-page', 'recently'].includes(this.getSource()) && !this.limit;
@@ -602,7 +625,7 @@ const SallaProductsList = class {
602
625
  catch (e) {
603
626
  salla.logger.warn('failed to get filters from url', e.message);
604
627
  }
605
- this.buildNextPageUrl();
628
+ await this.buildNextPageUrl();
606
629
  this.isReady = true;
607
630
  const snapshot = sessionStorage.getItem(this.infiniteScrollStateKey);
608
631
  if (!!snapshot) {
@@ -654,9 +677,9 @@ const SallaProductsList = class {
654
677
  }
655
678
  else if (!this.firstPageResponse && this.switchToNormalBehavior) {
656
679
  this.getInitialData()
657
- .then(() => {
680
+ .then(async () => {
658
681
  if (this.firstPageResponse) {
659
- this.handleResponse(this.firstPageResponse, false).forEach(card => {
682
+ (await this.handleResponse(this.firstPageResponse, false)).forEach(card => {
660
683
  this.wrapper.append(card);
661
684
  });
662
685
  setTimeout(() => {
@@ -675,7 +698,7 @@ const SallaProductsList = class {
675
698
  });
676
699
  }
677
700
  else {
678
- this.firstPageResponse && this.handleResponse(this.firstPageResponse, false).forEach(card => this.wrapper.append(card));
701
+ this.firstPageResponse && (await this.handleResponse(this.firstPageResponse, false)).forEach(card => this.wrapper.append(card));
679
702
  }
680
703
  }
681
704
  canRender() {
@@ -701,7 +724,7 @@ const SallaProductsList = class {
701
724
  this.initiateInfiniteScroll();
702
725
  this.loading();
703
726
  }
704
- handleResponse(response, shouldBuildNextPage = true) {
727
+ async handleResponse(response, shouldBuildNextPage = true) {
705
728
  //todo:: check why it reach here undfined one time🤔
706
729
  if (!response) {
707
730
  return [];
@@ -751,7 +774,7 @@ const SallaProductsList = class {
751
774
  }
752
775
  //because: this.nextPage is state we don't need to touch it after the build, to avoid the re-rendering
753
776
  if (shouldBuildNextPage) {
754
- this.nextPage = response.cursor ? response.cursor.next : this.nextPage;
777
+ this.nextPage = await this.resolveNextPageFromCursor(response);
755
778
  }
756
779
  this.loading(false);
757
780
  this.placeholderLoader && this.placeholderLoader.remove();
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  const sallaProgressBarCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var iphoneX = require('./iphone-x-qC21wCLj.js');
8
8
  var mail = require('./mail-Bgvt2hc9.js');
9
9
  var cancel = require('./cancel-B5SbMYEk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var star = require('./star-DGcH7Yso.js');
8
8
  var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
9
9
  var Helper = require('./Helper-CU4Xuiki.js');
@@ -3,13 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
7
- var functions = require('./functions-T48FHZw8.js');
6
+ var index = require('./index-vstkdqRz.js');
7
+ var functions = require('./functions-DlISHrKx.js');
8
8
  var gift = require('./gift-DbNivqYO.js');
9
9
  var tag = require('./tag-D-PcUR33.js');
10
10
  var check = require('./check-BnVBPQNp.js');
11
11
  var cancel = require('./cancel-B5SbMYEk.js');
12
- var trackedPromise = require('./tracked-promise-BnNAgCN_.js');
12
+ var trackedPromise = require('./tracked-promise-BJe1J-1V.js');
13
13
 
14
14
  const sallaLoyaltyProgramCss$3 = "";
15
15
 
@@ -110,10 +110,17 @@ const SallaRewardDetails = class {
110
110
  return [];
111
111
  const brands = this.brand.data;
112
112
  const categories = this.category.data;
113
- return brands.concat(categories).filter(i => ids.includes(i.id));
113
+ // id_ is the numeric ID from the API (e.g. 740744759); id is a string hash (e.g. "zEVZGx"). included_category_ids/included_brand_ids are number[], so id_ is correct here.
114
+ return brands.concat(categories).filter(i => ids.includes(i.id_));
114
115
  }
115
116
  getIncludedItems(items, ids) {
116
- return items?.length ? items : this.findItems(ids);
117
+ if (items?.length) {
118
+ return items;
119
+ }
120
+ if (ids?.length) {
121
+ return this.findItems(ids);
122
+ }
123
+ return [];
117
124
  }
118
125
  getProductIds(ids) {
119
126
  return ids || [];
@@ -157,11 +164,11 @@ const SallaRewardDetails = class {
157
164
  }
158
165
  render() {
159
166
  const termsAndConditions = this.getTermsAndConditions();
160
- return (index.h("div", { key: '3140551c4bcc64429a2f820ae9f915f19f6d3a77', class: "s-loyalty-program-reward-modal" }, index.h("div", { key: 'b193833caee8153c71b6c9f6af95358503afa103', class: "s-loyalty-program-points-modal-header" }, index.h("h1", { key: '0567985c10193a8eba6570bda8abf4aefa75657a', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
167
+ return (index.h("div", { key: '17b29a9098873643557786c9d9515b6245e2d773', class: "s-loyalty-program-reward-modal" }, index.h("div", { key: 'bd5411918a07a8e2dc1eb8ef7b1e06e82403d280', class: "s-loyalty-program-points-modal-header" }, index.h("h1", { key: '9e6d884e3e70c0ff3dbb005f61d48c1d1fa2ee65', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
161
168
  : index.h("button", { class: "s-loyalty-program-back-btn", onClick: () => functions.closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, index.h("span", { class: {
162
169
  'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
163
170
  'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
164
- } })), this.prize.name)), index.h("div", { key: '66bb25eadb6c640b4c661b6b3e227b4b8ef4f40d', class: "s-loyalty-program-modal-scrollable-content" }, index.h("div", { key: '1cc1c1c121240fab3ccd32bce176deec378ef3fd', class: "s-loyalty-program-reward-details-header" }, index.h("div", { key: '81f43a0c61ed0889810efa2cf4447477c2b08094', class: "s-loyalty-program-aspect-container" }, index.h("img", { key: 'eb09214a175e8484dfc6c870492e49e3e28cbe42', src: this.prize.image, alt: this.prize.name })), index.h("salla-badge", { key: '2ce3001371ab69c73453957f6dfb066710d88edd', size: "sm", bg: "light" }, index.h("span", { key: '459b58a09e6f59314c83f7d1a5baf6c559f02bd1', innerHTML: gift.SIGift }), index.h("span", { key: '1cd0a85c1d2b9cdf1430e90bd12bbe83f1b05813', class: "s-loyalty-program-points-badge-points" }, functions.formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : index.h("div", { class: "s-loyalty-program-terms-and-conditions" }, index.h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), index.h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (index.h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), index.h("div", { key: 'a25d46f6a961844efd8f920bf5e4e1fd836cb460', class: "s-loyalty-program-reward-info-message" }, index.h("h1", { key: '4cf3e9e123993f6be8fb67df243156996b2a6fdd', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), index.h("p", { key: 'd658e9aea4384bc89a7a4cae956e90844092894a', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : index.h("div", { class: "s-loyalty-program-reward-details" }, index.h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
171
+ } })), this.prize.name)), index.h("div", { key: '09d716d984701a251a3a759acbf112883fd0cf8f', class: "s-loyalty-program-modal-scrollable-content" }, index.h("div", { key: 'f7e2c8d017ba4dab380d08e0c7a5f1e49416b1f4', class: "s-loyalty-program-reward-details-header" }, index.h("div", { key: '369bb4e9a1b8d8dde62de1236b4d836fd3d6841f', class: "s-loyalty-program-aspect-container" }, index.h("img", { key: '3ed20feecdcd1c7433ec465364ae62639824ee6d', src: this.prize.image, alt: this.prize.name })), index.h("salla-badge", { key: '2bba4702e75d05622b719fa796efccda0520ce69', size: "sm", bg: "light" }, index.h("span", { key: '837afff2bdf9a390e8ca373f31dddbd84d7c6a91', innerHTML: gift.SIGift }), index.h("span", { key: 'c3631a877062d69947928b1beee2ae4932910eec', class: "s-loyalty-program-points-badge-points" }, functions.formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : index.h("div", { class: "s-loyalty-program-terms-and-conditions" }, index.h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), index.h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (index.h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), index.h("div", { key: '872bfd776acf67910a5cdeafdb48e2c7afd5d71c', class: "s-loyalty-program-reward-info-message" }, index.h("h1", { key: '253e6f58946e911ba2b74ef18ebcee0eae0bb514', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), index.h("p", { key: 'ce4b30fab9f1fae89fd956ae3eb20e5750fcea09', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : index.h("div", { class: "s-loyalty-program-reward-details" }, index.h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
165
172
  index.h("salla-tab-header", { slot: "header", name: "included", style: {
166
173
  display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
167
174
  } }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: check.SICheck }), index.h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
@@ -171,7 +178,7 @@ const SallaRewardDetails = class {
171
178
  display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
172
179
  } }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: cancel.SICancel }), index.h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
173
180
  index.h("salla-tab-content", { slot: "content", name: "excluded" }, index.h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
174
- ]))), index.h("salla-reward-action", { key: '3b355609aa30f12d0fae5a95681d19b62193113d', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
181
+ ]))), index.h("salla-reward-action", { key: '4055a99cf9dd6a30448848544d302e929afb5f06', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
175
182
  }
176
183
  static get watchers() { return {
177
184
  "prize": ["handlePrizeChange"]
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
 
9
9
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -160,7 +160,7 @@ const SallaScopees = class {
160
160
  return salla.onReady();
161
161
  }
162
162
  render() {
163
- return (index.h(index.Host, { key: '496e4e55483fee5b91818a760adb95d606b0d146' }, index.h("salla-modal", { key: '2e0e7c2967a0a05068aad712774cd089984fb957', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
163
+ return (index.h(index.Host, { key: '743fc37aec29a2ec15deb00c7463b51d0edcc29e' }, index.h("salla-modal", { key: '4b98493956bf34f97217d384d194a21d69ec011f', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
164
164
  index.h("div", { slot: "loading" }, index.h("div", { class: "s-scopes-skeleton" }, index.h("salla-list-tile", { class: "s-scopes-header" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon" }, index.h("salla-skeleton", { type: "circle" })), index.h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, index.h("salla-skeleton", { height: '15px', width: '50%' })), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, index.h("salla-skeleton", { height: '10px' }), index.h("salla-skeleton", { height: '10px', width: '75%' }))), index.h("div", { class: "s-scopes-skeleton-search" }, index.h("salla-skeleton", { height: '10px', width: '50%' }), index.h("salla-skeleton", { height: '30px', width: '100%' })), index.h("div", { class: "s-scopes-skeleton-scopes" }, index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' })), index.h("div", { class: "s-scopes-skeleton-btn" }, index.h("salla-skeleton", { height: '40px', width: '100%' }))))
165
165
  :
166
166
  [index.h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index.h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && index.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
  var Helper = require('./Helper-CU4Xuiki.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -131,10 +131,10 @@ const SallaSearch = class {
131
131
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
132
132
  }
133
133
  render() {
134
- const searchContent = (index.h("div", { key: 'c1ac55ddb93b42cb84c30c0248be8949afef39df', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, index.h("div", { key: '6bdecb7d3511a5c97b4bb52860dcd050dc943573', class: "s-search-input-wrapper" }, index.h("span", { key: '93a0cd39aef09955e72657ba32a7ac1d4c6bdb7b', class: "s-search-icon-wrap" }, index.h("span", { key: '435ca7f22ba4d93eafe9fde32a7e62a55340e6a8', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.h("input", { key: '0acb71b9b5fe6681d33e7838ff14bbdee6159ccc', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
134
+ const searchContent = (index.h("div", { key: '6d47849faffad8faa82bfb8368ea2ad9e2aced49', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, index.h("div", { key: '6c6330e985c6505b1cf8c78e5ab95cb3b22844c9', class: "s-search-input-wrapper" }, index.h("span", { key: 'e01360120e50a316881569d19e455ccb998e50ab', class: "s-search-icon-wrap" }, index.h("span", { key: 'f9d9e717638271402ba445d59ec8b5315d542a16', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.h("input", { key: '4abd6b3c6647ccfd411463aa2c9610c8428efd17', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
135
135
  height: this.height + 'px',
136
136
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
137
- } }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '9fc770575d0deeafda11f85aeb420a66cc2c2f64', class: "s-search-results" }, this.results?.data.map(product => (index.h("a", { href: product.url + '?from=search-bar', class: {
137
+ } }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '1a28e1cef5a6785ed45cef1beb1e177c174aca0c', class: "s-search-results" }, this.results?.data.map(product => (index.h("a", { href: product.url + '?from=search-bar', class: {
138
138
  's-search-product': true,
139
139
  's-search-product-not-available': !product.is_available,
140
140
  }, innerHTML: this.productSlot
@@ -143,9 +143,9 @@ const SallaSearch = class {
143
143
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
144
144
  ? salla.money(product.regular_price)
145
145
  : '')
146
- .replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: '31de1c46ae9ea8dce146f7a5e3b10eb61781a5e9', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
147
- const modalContent = (index.h("salla-modal", { key: '14efe319f3f844b2f3a1759a7f860b4dc3652570', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
148
- const placeholderContent = (index.h("div", { key: 'affda57d4ae84ea36e215bc17bc328b9f1a5a8de', class: "s-search-placeholder-wrapper s-search-inline" }, index.h("div", { key: '51f3e2afd425459365887b4e7c1ef2da4433dbe8', class: "s-search-input-wrapper" }, index.h("span", { key: '79ed8316f06548aecb3a76384835e64e72330917', class: "s-search-icon-wrap" }, index.h("span", { key: 'ba690f7b674dac90062ed2328c6396933c4ac872', class: "s-search-icon", innerHTML: search.Search })), index.h("button", { key: 'ac57df999004b21e1469978f9963aceded386d9d', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
146
+ .replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: 'df6eb433971ec24b64de09de7f5d861fe7d26c7e', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
147
+ const modalContent = (index.h("salla-modal", { key: '37af042080e667919d94197c9ac16496a716bc9e', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
148
+ const placeholderContent = (index.h("div", { key: 'ce1fa4591a9c61563344a8bc48ed3e09d1ad6796', class: "s-search-placeholder-wrapper s-search-inline" }, index.h("div", { key: 'f42ee11b614068bcbde12e6e82034b8b3b22bfaa', class: "s-search-input-wrapper" }, index.h("span", { key: '8b775e814e03a3de5c24bbe4e252e3e78fa82988', class: "s-search-icon-wrap" }, index.h("span", { key: '69cfca5e26fe366e2544e95e9b468aba28b32e55', class: "s-search-icon", innerHTML: search.Search })), index.h("button", { key: '998a6aa2efd5003e413d7d467ca4e78b0f97bbe1', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
149
149
  height: this.height + 'px',
150
150
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
151
151
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  const sallaSkeletonCss = ":host{display:block}";
9
9
 
@@ -28,7 +28,7 @@ const SallaSkeleton = class {
28
28
  's-skeleton-item': true,
29
29
  's-skeleton-item-circular': this.type == 'circle',
30
30
  };
31
- return (index.h(index.Host, { key: '8f574f21608fb5177c8a5d7e0d84d1c1065e49a4', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '6c86b14ec10c5ccea8f336ab87fb433c49104149', class: classes }, "\u00A0")));
31
+ return (index.h(index.Host, { key: '9f9448d939ba69f60eca8dc6ea2ff98a047d6770', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '3b43bb472316b5541a90081a5f3cb6ef91558212', class: classes }, "\u00A0")));
32
32
  }
33
33
  };
34
34
  SallaSkeleton.style = sallaSkeletonCss;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var facebook = require('./facebook-DbXua6B9.js');
9
9
  var mail = require('./mail-Bgvt2hc9.js');
@@ -150,7 +150,7 @@ const SallaSocialShare = class {
150
150
  window.a2a?.init('page');
151
151
  }
152
152
  render() {
153
- return (index.h("div", { key: '49da8d5e8066550792640f4677eb43f762fbecbe', class: "s-social-share-wrapper" }, index.h("slot", { key: 'ee7ef614fe373217829caa31f0eb9526e6695d93', name: 'widget' }, index.h("salla-button", { key: '53c41b4185b19a08cdadc4ce30baed08dd95d638', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: 'dae3c709e895a8e023bfc8aff490e52ea0e8e19a', innerHTML: this.opened ? cancel.SICancel : ShareAlt }))), index.h("ul", { key: '64fda7434bbe22a0cbae61273b61a67528c441c7', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
153
+ return (index.h("div", { key: 'b3e61354de13c16f9bce1dd4cd397375d9a42da9', class: "s-social-share-wrapper" }, index.h("slot", { key: 'ef44d8cda6967977a59a0fe85777add8a73ffa59', name: 'widget' }, index.h("salla-button", { key: '243916c3a241c9dceb11a406faabe033c71820d2', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: 'a6fd2be4e2990f285960308cfd985d37e464d205', innerHTML: this.opened ? cancel.SICancel : ShareAlt }))), index.h("ul", { key: '27fa3a6ae2306cb61d97e71bb6591dd3614b5977', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
154
154
  return (index.h("li", null, index.h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
155
155
  if (icon.name === platform) {
156
156
  return index.h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var facebook = require('./facebook-DbXua6B9.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -57,7 +57,7 @@ const SallaSocial = class {
57
57
  }
58
58
  render() {
59
59
  const linksArray = this.getLinksArray();
60
- return (index.h(index.Host, { key: 'a0b31aa06db07b8b4018b8d178dc27726eddb43e' }, index.h("ul", { key: 'b758199092ddf7c0e0b384f3f118d00c239104dd', class: "s-social-list" }, linksArray.map((link) => (index.h("li", { class: "s-social-link" }, index.h("div", { id: "social-slot", innerHTML: this.socialSlot
60
+ return (index.h(index.Host, { key: '27639596a37f52686c1ac4b1a825fa143747216c' }, index.h("ul", { key: '9f6a6c96fe124fda09d2b879e3825ef73ec29c2c', class: "s-social-list" }, linksArray.map((link) => (index.h("li", { class: "s-social-link" }, index.h("div", { id: "social-slot", innerHTML: this.socialSlot
61
61
  .replace(/\{icon\}/g, this.iconsList[link.type])
62
62
  .replace(/\{type\}/g, link.type)
63
63
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  const sallaTabContentCss = "";
9
9
 
@@ -33,7 +33,7 @@ const SallaTabContent = class {
33
33
  's-tabs-content': true,
34
34
  's-tabs-content-selected': this.isSelected
35
35
  };
36
- return (index.h("div", { key: 'f2deb9c1508aafe3aff5352094cccc97bdcd42ef', class: classes }, index.h("slot", { key: '460588864047444acdb06e757a7124d28935c24b' })));
36
+ return (index.h("div", { key: '8678e860af6640f0ff1a92593fbe624416412b49', class: classes }, index.h("slot", { key: '10951e5230f9c5fbfbd5959d3773d44b66e85315' })));
37
37
  }
38
38
  };
39
39
  SallaTabContent.style = sallaTabContentCss;
@@ -92,7 +92,7 @@ const SallaTabHeader = class {
92
92
  's-tabs-active': this.isSelected,
93
93
  };
94
94
  return [
95
- index.h("div", { key: '153247ab5a7c73819ccc506a45e60b9c084c391c', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: '417a3ae0c0aec8a965b5d3be9a4f917f290d2109' })),
95
+ index.h("div", { key: '02bd540222ec3bd4adac0dd08132c366e29c6d9d', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: '9e6de884cb209d499e4bbd055e40c525680a7c37' })),
96
96
  ];
97
97
  }
98
98
  };
@@ -145,7 +145,7 @@ const SallaTabs = class {
145
145
  }
146
146
  render() {
147
147
  return [
148
- index.h("div", { key: 'ae50836f68ee92459720fa9bf00d73848d849627', class: "s-tabs" }, index.h("div", { key: '55e8186e80381902269f9bad5738d9a555f71d37', class: "s-tabs-header" }, index.h("slot", { key: '46ce3e1ea75f92165b3d5ee7c16f19f8693f6d31', name: "header" })), index.h("div", { key: '3669e643abb37ed2edca73fc0577822a3f7fbb90', class: "s-tabs-content-wrapper" }, index.h("slot", { key: '2cf8b79f44630e21103991325ceff2cd3a4019ba', name: "content" })))
148
+ index.h("div", { key: 'ecbcdc11af92d35afe933b11676bcf4769d19162', class: "s-tabs" }, index.h("div", { key: 'fa4fdecbc995dded92e3d64bf770d6375ad53fd2', class: "s-tabs-header" }, index.h("slot", { key: '730c1a278e95b7fa98da29956fee23dcd06e641d', name: "header" })), index.h("div", { key: '9721096ba8e1236500855a80f569e6ea8a4c1c32', class: "s-tabs-content-wrapper" }, index.h("slot", { key: 'ce82c43fd21bd1f28a7658b927646d0ff6052ea7', name: "content" })))
149
149
  ];
150
150
  }
151
151
  get host() { return index.getElement(this); }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
9
9
 
@@ -33,7 +33,7 @@ const SallaTooltip = class {
33
33
  }
34
34
  render() {
35
35
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
36
- return (index.h("div", { key: 'e5e8f78265e0abb1d4130fd084573c6cff1ecb2c', class: "s-tooltip-container" }, index.h("div", { key: '4dc98906dfd28c6e2d97b51329c07046eb15179c', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
36
+ return (index.h("div", { key: '789e7e8e0653d68b5387b2199e05f287c8b91c92', class: "s-tooltip-container" }, index.h("div", { key: '0342a96fa7c3d316cfc9f5435dc7321920044a12', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
37
37
  }
38
38
  get el() { return index.getElement(this); }
39
39
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
8
8
  var bellRing = require('./bell-ring-BfKPinNo.js');
9
9
  var cart = require('./cart-s-x1Fshk.js');
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var interfaces = require('./interfaces-CRqrf5RX.js');
8
8
 
9
9
  const sallaUserProfileCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -80,7 +80,7 @@ const SallaUserSettings = class {
80
80
  await salla.profile.delete().finally(() => this.confirmationModal.close());
81
81
  }
82
82
  render() {
83
- return (index.h(index.Host, { key: 'b37f8e7cd7fe59dfd4f4e1efe455e74d33d4b91e', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: '7cf5f1ed489159ef1c754fc8368b390d35cc273d', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '961843ff5de245febf4b5d9d4a96d47b44aeaff3' }, index.h("div", { key: 'bdfa266ee2694e410ff2bc8d6ec31b5210e7bf08', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '8ff08646cb3b3ba8d157f07cb4d54a6f515409a7', innerHTML: UserCancel })), index.h("div", { key: '8030d07722d9ad730676dafd1323b93a361f91da', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: 'f4c524dfe45418f0dd7395e998b1c16aa951a5f9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '74569032acb01ff1037104dcaf46f13c18c16803', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '6002a8368a587dbd8d3fd3fc1231e52ee44ebbbe', class: "s-toggle" }, index.h("input", { key: '2e9a622f9a670ef0f314c6183c57c851334a7df5', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: 'ca57daef65f550d53c1f947b41d3fb488bd38a95', class: "s-toggle-switcher" }))))), index.h("div", { key: 'b81a0200e08c0eca176060362792a45d9d7ad41e', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: 'ebcdac4056d21cbbd218b246cdd6c5bfa7bc2ac3' }, index.h("div", { key: 'df3a675745a0945498f3f45e11016f9f9c71ce6d', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'b5accc798ca95bd803f9c721f96fe62ca27e8ecf', innerHTML: Bullhorn })), index.h("div", { key: 'fe82c42f7586ba892f14ed7b1d2f85e19c508e8c', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: 'ec35e1a363a0802ab14a92b4bc8b858b9bf79c72', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: 'cc0d65144cfffc7fc795f3b1dde9ae6d75e827ec', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '945d030759a2ab27b9e9379d96f879d299b0a444', class: "s-toggle" }, index.h("input", { key: '6dd35723f4e049263193d50d1488a300e26a166e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: '1f529a32b220a0a5ba673fe41573786450e4f1b8', class: "s-toggle-switcher" }))))), index.h("div", { key: '9973aa99cd3944ced8e87da05a3711b9cde5faa4', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '97ea806a1c5bc6e7f08ab04cdf555173d7e2c268' }, index.h("div", { key: 'fa98419cd6e11598c6e230ad462501f3dd66b975', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '9bb7192d2bcdd942974a2a6e405878998e090f3c', innerHTML: UserOff })), index.h("div", { key: '9e79bfd50311f2ec272bc6d90224d2f81c736d8e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: '805696292b1354bf57b0f0252eabd031dc4ac5db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: '4984f94d2eef4870036d1bea837cbe16e9978d84', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: '7be1eaf49fdb3df86b953a14879695c0c2eae838', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: '55608c2fbfd01c328f923316aa203ebd6539ef86', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: '247bb5555b3aa936ab4815f16ec332f6d922ab49', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: 'd8499d470dd0cce984687c9f6842970467b832a9', class: "s-user-settings-confirmation" }, index.h("div", { key: 'c4d98f4dc7591c53a0f4ab71fc1c7e0d446cebfc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: 'abebad572dab06b497451fff00a405e4c9db5652', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: 'bfde878cc657d975154f6e8b73220786b3898dbf', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: 'b3334a9b6fda2aa6de6f66f610efbba8ae95910f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
83
+ return (index.h(index.Host, { key: '09c239e885ba9e52e21ce17706c9296f99518c80', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: 'ae1d8057c8bc4a1d355300f4be87b8a33091f694', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '93a7aec26398f466f350defd6f1878b89dc85351' }, index.h("div", { key: '2e89f6967972d7b95fe43ad735a2180409d234dd', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '622a59eff6171b5b1bb86d8482142df673cbf794', innerHTML: UserCancel })), index.h("div", { key: 'ce73e774974ea08605635a8443d068c73fd20129', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: '000e5e933e8d6a1f1d4742b0441d86c8403d6cb5', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '498fc6ec63be3a7bc0a78b208a48a824af5c38df', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '707181396eddd29d85826a48fb74a7119cfed2d6', class: "s-toggle" }, index.h("input", { key: 'a2188b266c8abe95a94affb128611074f8889405', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: '1d50965f07763ba23f1675736f7d676a2e3300b9', class: "s-toggle-switcher" }))))), index.h("div", { key: '303f5388b3cb3954dc574dd8ac2c5f3981e870ce', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '6c751eafd2a3547fa7adaaf165230857c22820d4' }, index.h("div", { key: 'aaf770f0e43798c73d6fb7c5e0a71b7e03f812b8', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '3e5bbc36ed00b1c99816557314d82a5c51ceefac', innerHTML: Bullhorn })), index.h("div", { key: '9dce63894704b419536b9f7afec474b90bf047a8', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: 'd1df5e80e9ee8b8512cfe334b3032d64a61b9dc2', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: 'a57e08a44055a8859b4f3f2fd4ee8e7d3abf8e46', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '6289b221064d45fd944bbed843350f4183d32e7e', class: "s-toggle" }, index.h("input", { key: '545e32938c4f1da231486b20be8f220108c20019', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: 'efa1680c2fbbdcc280330ffa3d83379e96b0e755', class: "s-toggle-switcher" }))))), index.h("div", { key: '86e21a0171941aa0f1ddf008f479101a707c7e00', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '55f0b6d0b72ff1f91ff4ba09d28e8962e7f445b3' }, index.h("div", { key: '2d8ff66a76c3c8bf6a3c0e5222c142c0402b1c75', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'e59a4224af4f355679e2e163ca97c0f03b121ac7', innerHTML: UserOff })), index.h("div", { key: '59d4a4d841ab40f782f5a6a258c5e91211376d22', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: 'b51a3eedf67d2635ebbf15eb7e39289866b92481', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: '0871a013df31afcacad1f3e3f2a37a80668fffa0', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: 'c42688b4aa87c5cbeb2145246327271cbc7561b5', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: 'eaf3dbc98dc2483d2251fa5858bf77d698d24d66', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: 'e7403e420404a68db65c1efa8edfa7ce8095ed82', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: '1625698c6e2d8058177b51b5565adcf3fb92115f', class: "s-user-settings-confirmation" }, index.h("div", { key: '97a28f55f8dd76f15caa25148021501fe6447ddc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: '8454d3da817db426934ff49b535f82e9e0711eb9', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: '9227e5eb5854e0415c0280c752340a526c2d19fb', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: '3788d8ebbfe73e4bd085c942a9a651e22e4585e1', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
84
84
  }
85
85
  };
86
86
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
  var mail = require('./mail-Bgvt2hc9.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-DO_QXaSt.js');
6
+ var index = require('./index-vstkdqRz.js');
7
7
 
8
8
  function TrackedPromise(fn, options = {}) {
9
9
  options = Object.assign({ initialData: undefined, initialStatus: 'idle' }, options);