@salla.sa/twilight-components 2.14.402 → 2.14.403

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (521) hide show
  1. package/dist/cjs/calendar-D-PUoCDH.js +13 -0
  2. package/dist/cjs/{cancel-De6vslRA.js → cancel-B5SbMYEk.js} +2 -2
  3. package/dist/cjs/cart2-B98PSAFN.js +13 -0
  4. package/dist/cjs/{check-x3w3-gpj.js → check-BnVBPQNp.js} +2 -2
  5. package/dist/cjs/{filepond-PWJcd3M3.js → filepond-CHgj_x6Q.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-file-poster-Bt4qeA2f.js → filepond-plugin-file-poster-BM8akyHG.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-file-validate-size-C-9PDDsS.js → filepond-plugin-file-validate-size-COf4Mbms.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-file-validate-type-tA2SP9JO.js → filepond-plugin-file-validate-type-Mc6-vU_9.js} +1 -1
  9. package/dist/cjs/{filepond-plugin-image-edit-jcfxLe8v.js → filepond-plugin-image-edit-Cegsph-w.js} +1 -1
  10. package/dist/cjs/{filepond-plugin-image-exif-orientation-DVDjcytZ.js → filepond-plugin-image-exif-orientation-Ca7MqBpy.js} +1 -1
  11. package/dist/cjs/{filepond-plugin-image-preview-CenIamTW.js → filepond-plugin-image-preview-C58SPQ5e.js} +1 -1
  12. package/dist/cjs/functions-DyPV5TVV.js +74 -0
  13. package/dist/{esm/gift-BChI23pG.js → cjs/gift-DbNivqYO.js} +4 -2
  14. package/dist/cjs/gift-sharing-BE0uszUm.js +13 -0
  15. package/dist/cjs/{index-ZlRhYmjA.js → index-DagepTOF.js} +1 -1
  16. package/dist/cjs/{index-Cuq57q32.js → index-DdhkQnYm.js} +61 -26
  17. package/dist/cjs/iphone-x-qC21wCLj.js +13 -0
  18. package/dist/cjs/loader.cjs.js +2 -2
  19. package/dist/cjs/{mail-CO8cFZH7.js → mail-Bgvt2hc9.js} +2 -2
  20. package/dist/cjs/percentage-Fs83gq6Q.js +21 -0
  21. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-accordion_6.cjs.entry.js +5 -5
  23. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +5 -5
  24. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-alert_2.cjs.entry.js +3 -3
  26. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-badge.cjs.entry.js +95 -0
  29. package/dist/cjs/salla-booking-field_7.cjs.entry.js +20 -26
  30. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +2 -2
  31. package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
  32. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +4 -4
  33. package/dist/cjs/salla-comment-form_8.cjs.entry.js +11 -11
  34. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
  36. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-count-down.cjs.entry.js +2 -2
  38. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-edit-order-button.cjs.entry.js +65 -0
  41. package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
  42. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  43. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-gifting.cjs.entry.js +7 -13
  45. package/dist/cjs/salla-hook.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-list-tile.cjs.entry.js +2 -2
  49. package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
  50. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +69 -0
  52. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +239 -0
  53. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +103 -0
  54. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
  55. package/dist/cjs/salla-loyalty-program.cjs.entry.js +108 -64
  56. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +54 -0
  57. package/dist/cjs/salla-loyalty.cjs.entry.js +3 -3
  58. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +3 -3
  59. package/dist/cjs/salla-map.cjs.entry.js +4 -4
  60. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
  63. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
  64. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
  65. package/dist/cjs/salla-notification-item.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-offer-modal.cjs.entry.js +5 -16
  68. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
  72. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-summary.cjs.entry.js +4 -4
  75. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  78. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  79. package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
  80. package/dist/cjs/{salla-product-card.cjs.entry.js → salla-product-card_2.cjs.entry.js} +120 -6
  81. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  82. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-quick-order.cjs.entry.js +6 -12
  85. package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -3
  86. package/dist/cjs/salla-reward-action_4.cjs.entry.js +243 -0
  87. package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
  88. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  89. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-social-share.cjs.entry.js +5 -5
  92. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  94. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  96. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-user-menu.cjs.entry.js +5 -5
  98. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  100. package/dist/cjs/salla-verify.cjs.entry.js +3 -3
  101. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  102. package/dist/cjs/shipping-CPYcgyCL.js +13 -0
  103. package/dist/cjs/tag-D-PcUR33.js +12 -0
  104. package/dist/cjs/tracked-promise-6pAeDi6L.js +31 -0
  105. package/dist/cjs/translations-DMwpLvqi.js +294 -0
  106. package/dist/cjs/twilight.cjs.js +2 -2
  107. package/dist/cjs/user-add-BCGrddZS.js +13 -0
  108. package/dist/cjs/{vanilla-picker-C8OtoDdM.js → vanilla-picker-BMBx7QVh.js} +1 -1
  109. package/dist/collection/assets/images/prize-image.svg +1 -0
  110. package/dist/collection/collection-manifest.json +11 -0
  111. package/dist/collection/components/salla-badge/salla-badge.css +0 -0
  112. package/dist/collection/components/salla-badge/salla-badge.js +117 -0
  113. package/dist/collection/components/salla-booking-field/salla-booking-field.js +1 -1
  114. package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +2 -2
  115. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +1 -1
  116. package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +1 -1
  117. package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
  118. package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
  119. package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
  120. package/dist/collection/components/salla-comments/salla-comment-item.js +3 -3
  121. package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
  122. package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
  123. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
  124. package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.css +3 -0
  125. package/dist/collection/components/salla-edit-order-button/salla-edit-order-button.js +99 -0
  126. package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
  127. package/dist/collection/components/salla-filters/salla-filters.js +1 -1
  128. package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
  129. package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
  130. package/dist/collection/components/salla-hook/salla-hook.js +1 -1
  131. package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
  132. package/dist/collection/components/salla-loading/salla-loading.js +1 -1
  133. package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
  134. package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
  135. package/dist/collection/components/salla-loyalty-program/functions.js +53 -0
  136. package/dist/collection/components/salla-loyalty-program/interfaces.js +8 -1
  137. package/dist/collection/components/salla-loyalty-program/salla-loyalty-banner.js +69 -0
  138. package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +87 -0
  139. package/dist/collection/components/salla-loyalty-program/salla-loyalty-panel.js +171 -0
  140. package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +219 -0
  141. package/dist/collection/components/salla-loyalty-program/salla-loyalty-program.js +104 -65
  142. package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +166 -0
  143. package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +93 -0
  144. package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +92 -0
  145. package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +206 -0
  146. package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +109 -0
  147. package/dist/collection/components/salla-loyalty-program/translations.js +290 -0
  148. package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
  149. package/dist/collection/components/salla-map/salla-map.js +3 -3
  150. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
  151. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
  152. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
  153. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
  154. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
  155. package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
  156. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  157. package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
  158. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  159. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  160. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  161. package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
  162. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  163. package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
  164. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  165. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  166. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
  167. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  168. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  169. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  170. package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
  171. package/dist/collection/components/salla-search/salla-search.js +5 -5
  172. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  173. package/dist/collection/components/salla-social/salla-social.js +1 -1
  174. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  175. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  176. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  177. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  178. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  179. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  180. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  181. package/dist/components/calendar.js +11 -0
  182. package/dist/components/cart2.js +11 -0
  183. package/dist/components/functions.js +68 -0
  184. package/dist/components/gift-sharing.js +11 -0
  185. package/dist/components/index.js +2 -2
  186. package/dist/components/iphone-x.js +11 -0
  187. package/dist/components/percentage.js +18 -0
  188. package/dist/components/salla-badge.d.ts +11 -0
  189. package/dist/components/salla-badge.js +9 -0
  190. package/dist/components/salla-badge2.js +112 -0
  191. package/dist/components/salla-booking-field2.js +3 -9
  192. package/dist/components/salla-bottom-alert.js +2 -2
  193. package/dist/components/salla-bullet-delivery.js +1 -1
  194. package/dist/components/salla-cart-coupons.js +1 -1
  195. package/dist/components/salla-cart-summary.js +1 -1
  196. package/dist/components/salla-color-picker2.js +1 -1
  197. package/dist/components/salla-comment-form2.js +1 -1
  198. package/dist/components/salla-comment-item2.js +3 -3
  199. package/dist/components/salla-conditional-fields2.js +1 -1
  200. package/dist/components/salla-count-down2.js +1 -1
  201. package/dist/components/salla-datetime-picker2.js +1 -1
  202. package/dist/components/salla-edit-order-button.d.ts +11 -0
  203. package/dist/components/salla-edit-order-button.js +99 -0
  204. package/dist/components/salla-file-upload2.js +2 -2
  205. package/dist/components/salla-filters-widget2.js +2 -2
  206. package/dist/components/salla-filters.js +1 -1
  207. package/dist/components/salla-gifting.js +4 -10
  208. package/dist/components/salla-hook.js +1 -1
  209. package/dist/components/salla-list-tile2.js +1 -1
  210. package/dist/components/salla-loading2.js +1 -1
  211. package/dist/components/salla-localization-modal.js +1 -1
  212. package/dist/components/salla-loyalty-banner.d.ts +11 -0
  213. package/dist/components/salla-loyalty-banner.js +103 -0
  214. package/dist/components/salla-loyalty-hero.d.ts +11 -0
  215. package/dist/components/salla-loyalty-hero.js +9 -0
  216. package/dist/components/salla-loyalty-hero2.js +43 -0
  217. package/dist/components/salla-loyalty-panel.d.ts +11 -0
  218. package/dist/components/salla-loyalty-panel.js +250 -0
  219. package/dist/components/salla-loyalty-point.d.ts +11 -0
  220. package/dist/components/salla-loyalty-point.js +9 -0
  221. package/dist/components/salla-loyalty-point2.js +259 -0
  222. package/dist/components/salla-loyalty-prize-item.js +1 -1
  223. package/dist/components/salla-loyalty-program.js +233 -70
  224. package/dist/components/salla-loyalty-reward.d.ts +11 -0
  225. package/dist/components/salla-loyalty-reward.js +80 -0
  226. package/dist/components/salla-maintenance-alert.js +1 -1
  227. package/dist/components/salla-map2.js +3 -3
  228. package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
  229. package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
  230. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
  231. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  232. package/dist/components/salla-multiple-bundle-product.js +1 -1
  233. package/dist/components/salla-notification-item2.js +1 -1
  234. package/dist/components/salla-offer-modal.js +3 -14
  235. package/dist/components/salla-order-details.js +1 -1
  236. package/dist/components/salla-order-summary.js +1 -1
  237. package/dist/components/salla-payments.js +2 -2
  238. package/dist/components/salla-placeholder2.js +1 -1
  239. package/dist/components/salla-price-range2.js +2 -2
  240. package/dist/components/salla-product-availability2.js +1 -1
  241. package/dist/components/salla-product-card2.js +5 -5
  242. package/dist/components/salla-product-size-guide.js +2 -2
  243. package/dist/components/salla-quantity-input2.js +1 -1
  244. package/dist/components/salla-quick-buy2.js +1 -1
  245. package/dist/components/salla-quick-order.js +1 -7
  246. package/dist/components/salla-review-card2.js +1 -1
  247. package/dist/components/salla-reviews-page.js +1 -1
  248. package/dist/components/salla-reviews.js +1 -1
  249. package/dist/components/salla-reward-action.d.ts +11 -0
  250. package/dist/components/salla-reward-action.js +9 -0
  251. package/dist/components/salla-reward-action2.js +56 -0
  252. package/dist/components/salla-reward-card.d.ts +11 -0
  253. package/dist/components/salla-reward-card.js +9 -0
  254. package/dist/components/salla-reward-card2.js +44 -0
  255. package/dist/components/salla-reward-details.d.ts +11 -0
  256. package/dist/components/salla-reward-details.js +9 -0
  257. package/dist/components/salla-reward-details2.js +266 -0
  258. package/dist/components/salla-reward-exchange.d.ts +11 -0
  259. package/dist/components/salla-reward-exchange.js +9 -0
  260. package/dist/components/salla-reward-exchange2.js +81 -0
  261. package/dist/components/salla-scopes.js +1 -1
  262. package/dist/components/salla-search.js +5 -5
  263. package/dist/components/salla-skeleton2.js +1 -1
  264. package/dist/components/salla-social-share.js +1 -1
  265. package/dist/components/salla-social.js +1 -1
  266. package/dist/components/salla-tab-content2.js +1 -1
  267. package/dist/components/salla-tab-header2.js +1 -1
  268. package/dist/components/salla-tabs2.js +1 -1
  269. package/dist/components/salla-tel-input2.js +1 -1
  270. package/dist/components/salla-tooltip2.js +1 -1
  271. package/dist/components/salla-user-settings.js +1 -1
  272. package/dist/components/shipping.js +11 -0
  273. package/dist/components/tag.js +10 -0
  274. package/dist/components/tracked-promise.js +29 -0
  275. package/dist/components/translations.js +292 -0
  276. package/dist/esm/calendar-BkmanTR_.js +11 -0
  277. package/dist/esm/{cancel-BsLF_HK7.js → cancel-8Tsmrwno.js} +2 -2
  278. package/dist/esm/cart2-D1s2kXqL.js +11 -0
  279. package/dist/esm/{check-BsXh13x8.js → check-BZp0rKEO.js} +2 -2
  280. package/dist/esm/{filepond-kua7JWt0.js → filepond-DSnpVe64.js} +1 -1
  281. package/dist/esm/{filepond-plugin-file-poster-D9ZjwPcg.js → filepond-plugin-file-poster-CIjT2DkD.js} +1 -1
  282. package/dist/esm/{filepond-plugin-file-validate-size-BVMhUXTI.js → filepond-plugin-file-validate-size-DfnQ9yTM.js} +1 -1
  283. package/dist/esm/{filepond-plugin-file-validate-type-CkwmRCJd.js → filepond-plugin-file-validate-type-BFqVzf03.js} +1 -1
  284. package/dist/esm/{filepond-plugin-image-edit-YEt9I2Ff.js → filepond-plugin-image-edit-CFSURdY1.js} +1 -1
  285. package/dist/esm/{filepond-plugin-image-exif-orientation-B5Q7AlDn.js → filepond-plugin-image-exif-orientation-Df4vxbTN.js} +1 -1
  286. package/dist/esm/{filepond-plugin-image-preview-B3J-p8BK.js → filepond-plugin-image-preview-BP5v9jJo.js} +1 -1
  287. package/dist/esm/functions-B0QFNVX_.js +68 -0
  288. package/dist/{cjs/gift-CJ-3Yw_x.js → esm/gift-CXRKXFgT.js} +2 -4
  289. package/dist/esm/gift-sharing-0-eTJXSD.js +11 -0
  290. package/dist/esm/{index-BYCfehfD.js → index-Noi8jmqR.js} +61 -27
  291. package/dist/esm/{index-Qfjn4tFb.js → index-dal1uM4i.js} +1 -1
  292. package/dist/esm/iphone-x-CciN5Q_x.js +11 -0
  293. package/dist/esm/loader.js +3 -3
  294. package/dist/esm/{mail-DmgxDvXL.js → mail-DLNIOD9t.js} +2 -2
  295. package/dist/esm/percentage-Bs6JxDkg.js +18 -0
  296. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  297. package/dist/esm/salla-accordion_6.entry.js +5 -5
  298. package/dist/esm/salla-add-product-button_4.entry.js +5 -5
  299. package/dist/esm/salla-advertisement.entry.js +1 -1
  300. package/dist/esm/salla-alert_2.entry.js +3 -3
  301. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  302. package/dist/esm/salla-apps-icons.entry.js +1 -1
  303. package/dist/esm/salla-badge.entry.js +93 -0
  304. package/dist/esm/salla-booking-field_7.entry.js +20 -26
  305. package/dist/esm/salla-bullet-delivery.entry.js +2 -2
  306. package/dist/esm/salla-cart-coupons.entry.js +2 -2
  307. package/dist/esm/salla-cart-item-offers_2.entry.js +4 -4
  308. package/dist/esm/salla-comment-form_8.entry.js +11 -11
  309. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  310. package/dist/esm/salla-contacts.entry.js +3 -3
  311. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  312. package/dist/esm/salla-count-down.entry.js +2 -2
  313. package/dist/esm/salla-custom-fields.entry.js +1 -1
  314. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  315. package/dist/esm/salla-edit-order-button.entry.js +63 -0
  316. package/dist/esm/salla-filters-widget.entry.js +3 -3
  317. package/dist/esm/salla-filters.entry.js +2 -2
  318. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  319. package/dist/esm/salla-gifting.entry.js +7 -13
  320. package/dist/esm/salla-hook.entry.js +2 -2
  321. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  322. package/dist/esm/salla-installment.entry.js +1 -1
  323. package/dist/esm/salla-list-tile.entry.js +2 -2
  324. package/dist/esm/salla-localization-modal.entry.js +2 -2
  325. package/dist/esm/salla-login-modal.entry.js +1 -1
  326. package/dist/esm/salla-loyalty-banner.entry.js +67 -0
  327. package/dist/esm/salla-loyalty-hero_2.entry.js +236 -0
  328. package/dist/esm/salla-loyalty-panel.entry.js +101 -0
  329. package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
  330. package/dist/esm/salla-loyalty-program.entry.js +108 -64
  331. package/dist/esm/salla-loyalty-reward.entry.js +52 -0
  332. package/dist/esm/salla-loyalty.entry.js +3 -3
  333. package/dist/esm/salla-maintenance-alert.entry.js +3 -3
  334. package/dist/esm/salla-map.entry.js +4 -4
  335. package/dist/esm/salla-menu.entry.js +1 -1
  336. package/dist/esm/salla-metadata.entry.js +1 -1
  337. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
  338. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
  339. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  340. package/dist/esm/salla-notification-item.entry.js +2 -2
  341. package/dist/esm/salla-notifications.entry.js +1 -1
  342. package/dist/esm/salla-offer-modal.entry.js +5 -16
  343. package/dist/esm/salla-offer.entry.js +1 -1
  344. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  345. package/dist/esm/salla-order-details-options.entry.js +1 -1
  346. package/dist/esm/salla-order-details.entry.js +2 -2
  347. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  348. package/dist/esm/salla-order-edit.entry.js +1 -1
  349. package/dist/esm/salla-order-summary.entry.js +4 -4
  350. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  351. package/dist/esm/salla-orders.entry.js +1 -1
  352. package/dist/esm/salla-payments.entry.js +3 -3
  353. package/dist/esm/salla-placeholder.entry.js +2 -2
  354. package/dist/esm/salla-price-range.entry.js +3 -3
  355. package/dist/esm/{salla-product-card.entry.js → salla-product-card_2.entry.js} +120 -7
  356. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  357. package/dist/esm/salla-products-list.entry.js +1 -1
  358. package/dist/esm/salla-progress-bar.entry.js +1 -1
  359. package/dist/esm/salla-quick-order.entry.js +6 -12
  360. package/dist/esm/salla-rating-modal.entry.js +3 -3
  361. package/dist/esm/salla-reward-action_4.entry.js +238 -0
  362. package/dist/esm/salla-scopes.entry.js +2 -2
  363. package/dist/esm/salla-search.entry.js +6 -6
  364. package/dist/esm/salla-skeleton.entry.js +2 -2
  365. package/dist/esm/salla-slider.entry.js +1 -1
  366. package/dist/esm/salla-social-share.entry.js +5 -5
  367. package/dist/esm/salla-social.entry.js +2 -2
  368. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  369. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  370. package/dist/esm/salla-tooltip.entry.js +2 -2
  371. package/dist/esm/salla-trust-badges.entry.js +1 -1
  372. package/dist/esm/salla-user-menu.entry.js +5 -5
  373. package/dist/esm/salla-user-profile.entry.js +1 -1
  374. package/dist/esm/salla-user-settings.entry.js +2 -2
  375. package/dist/esm/salla-verify.entry.js +3 -3
  376. package/dist/esm/salla-wallet.entry.js +1 -1
  377. package/dist/esm/shipping-CZRcMGA9.js +11 -0
  378. package/dist/esm/tag-cgSL_BIo.js +10 -0
  379. package/dist/esm/tracked-promise-CjeRn_A-.js +29 -0
  380. package/dist/esm/translations-B-Rj6b9M.js +292 -0
  381. package/dist/esm/twilight.js +3 -3
  382. package/dist/esm/user-add-QpH8MU22.js +11 -0
  383. package/dist/esm/{vanilla-picker-B4glVCCp.js → vanilla-picker-DRn4hnB9.js} +1 -1
  384. package/dist/twilight/p-0-eTJXSD.js +4 -0
  385. package/dist/twilight/{p-5fe6bb62.entry.js → p-024459e9.entry.js} +1 -1
  386. package/dist/twilight/{p-2edec63c.entry.js → p-04d8a7e5.entry.js} +1 -1
  387. package/dist/twilight/p-0a91929a.entry.js +4 -0
  388. package/dist/twilight/{p-24b86104.entry.js → p-0ad91621.entry.js} +1 -1
  389. package/dist/twilight/{p-1819894b.entry.js → p-0dce57b2.entry.js} +1 -1
  390. package/dist/twilight/{p-28fba512.entry.js → p-145858ca.entry.js} +1 -1
  391. package/dist/twilight/p-1613629f.entry.js +4 -0
  392. package/dist/twilight/{p-ec873193.entry.js → p-1762cd5c.entry.js} +1 -1
  393. package/dist/twilight/p-246bb9c3.entry.js +4 -0
  394. package/dist/twilight/{p-97aad44a.entry.js → p-2502deb6.entry.js} +1 -1
  395. package/dist/twilight/{p-3df24aaf.entry.js → p-256bd7e3.entry.js} +1 -1
  396. package/dist/twilight/{p-65928570.entry.js → p-2f27a79c.entry.js} +1 -1
  397. package/dist/twilight/{p-64fe6c2f.entry.js → p-301bdc8d.entry.js} +1 -1
  398. package/dist/twilight/{p-5871fc28.entry.js → p-3317da8e.entry.js} +1 -1
  399. package/dist/twilight/{p-15d44ede.entry.js → p-36e2d55f.entry.js} +1 -1
  400. package/dist/twilight/{p-2a19f553.entry.js → p-394e59f9.entry.js} +1 -1
  401. package/dist/twilight/{p-e5ccdc1d.entry.js → p-39595f4a.entry.js} +1 -1
  402. package/dist/twilight/{p-09fcfe8f.entry.js → p-3f6e4760.entry.js} +1 -1
  403. package/dist/twilight/{p-156660b7.entry.js → p-40936925.entry.js} +1 -1
  404. package/dist/twilight/{p-887c9a29.entry.js → p-40ac70b9.entry.js} +1 -1
  405. package/dist/twilight/{p-5ca700cd.entry.js → p-425ca86a.entry.js} +1 -1
  406. package/dist/twilight/p-426919ba.entry.js +4 -0
  407. package/dist/twilight/p-46e0817d.entry.js +4 -0
  408. package/dist/twilight/{p-4797dab5.entry.js → p-4886611c.entry.js} +1 -1
  409. package/dist/twilight/p-4bacc97f.entry.js +4 -0
  410. package/dist/twilight/{p-90045f50.entry.js → p-503a7446.entry.js} +1 -1
  411. package/dist/twilight/{p-ba128435.entry.js → p-55585695.entry.js} +1 -1
  412. package/dist/twilight/{p-60aa25f0.entry.js → p-56b2316e.entry.js} +1 -1
  413. package/dist/twilight/p-57fc6135.entry.js +4 -0
  414. package/dist/twilight/p-589db188.entry.js +4 -0
  415. package/dist/twilight/{p-62b949f1.entry.js → p-594a2cfc.entry.js} +1 -1
  416. package/dist/twilight/p-5b134612.entry.js +4 -0
  417. package/dist/twilight/{p-cd9f175a.entry.js → p-5d101927.entry.js} +1 -1
  418. package/dist/twilight/{p-b80c87f3.entry.js → p-5f05afcf.entry.js} +1 -1
  419. package/dist/twilight/{p-ee14a23d.entry.js → p-6b402aa3.entry.js} +1 -1
  420. package/dist/twilight/{p-3ed67200.entry.js → p-6ec4bce3.entry.js} +1 -1
  421. package/dist/twilight/{p-2f060d69.entry.js → p-779aaac4.entry.js} +1 -1
  422. package/dist/twilight/p-78a7f098.entry.js +4 -0
  423. package/dist/twilight/{p-140f5001.entry.js → p-78cc7185.entry.js} +1 -1
  424. package/dist/twilight/{p-f8183098.entry.js → p-79db938f.entry.js} +1 -1
  425. package/dist/twilight/{p-955aab42.entry.js → p-7cff302c.entry.js} +1 -1
  426. package/dist/twilight/{p-f8527980.entry.js → p-7f1e3e62.entry.js} +1 -1
  427. package/dist/twilight/{p-8d9b1865.entry.js → p-82785312.entry.js} +1 -1
  428. package/dist/twilight/{p-af6a34af.entry.js → p-83d63cf3.entry.js} +1 -1
  429. package/dist/twilight/{p-e23cc9c1.entry.js → p-8740d9b0.entry.js} +1 -1
  430. package/dist/twilight/{p-BsLF_HK7.js → p-8Tsmrwno.js} +1 -1
  431. package/dist/twilight/{p-72487957.entry.js → p-8bef56d7.entry.js} +1 -1
  432. package/dist/twilight/{p-d93e90fb.entry.js → p-8c95bcba.entry.js} +1 -1
  433. package/dist/twilight/{p-0cfd333a.entry.js → p-91005fdc.entry.js} +1 -1
  434. package/dist/twilight/{p-67f20b74.entry.js → p-96e09525.entry.js} +1 -1
  435. package/dist/twilight/{p-6cf0e5f0.entry.js → p-9a1dbe0b.entry.js} +1 -1
  436. package/dist/twilight/p-9ab9e4fe.entry.js +4 -0
  437. package/dist/twilight/{p-f4c6434f.entry.js → p-9ff6dbba.entry.js} +1 -1
  438. package/dist/twilight/p-B-Rj6b9M.js +4 -0
  439. package/dist/twilight/{p-D2bKqo2L.js → p-BCRhp4ZP.js} +1 -1
  440. package/dist/twilight/{p-DPak7cFa.js → p-BOikoFVU.js} +1 -1
  441. package/dist/twilight/{p-Wts3eSQu.js → p-BVmlhqyN.js} +1 -1
  442. package/dist/twilight/p-BX5898Au.js +4 -0
  443. package/dist/twilight/{p-BsXh13x8.js → p-BZp0rKEO.js} +1 -1
  444. package/dist/twilight/{p-DtXQ785R.js → p-Bdj8c3JN.js} +1 -1
  445. package/dist/twilight/p-BkmanTR_.js +4 -0
  446. package/dist/twilight/{p-a8mIwFp8.js → p-BlpVxOSF.js} +1 -1
  447. package/dist/twilight/p-Bs6JxDkg.js +4 -0
  448. package/dist/twilight/{p-BChI23pG.js → p-CXRKXFgT.js} +1 -1
  449. package/dist/twilight/p-CZRcMGA9.js +4 -0
  450. package/dist/twilight/p-CciN5Q_x.js +4 -0
  451. package/dist/twilight/p-D1s2kXqL.js +4 -0
  452. package/dist/twilight/{p-C45ROGL4.js → p-DIVFpxqq.js} +1 -1
  453. package/dist/twilight/{p-DmgxDvXL.js → p-DLNIOD9t.js} +1 -1
  454. package/dist/twilight/{p-Dx9FGzIq.js → p-D_bFmrB0.js} +1 -1
  455. package/dist/twilight/{p-CVG84YNJ.js → p-DbwYqKTo.js} +1 -1
  456. package/dist/twilight/p-DnvK1zqm.js +4 -0
  457. package/dist/twilight/{p-BYCfehfD.js → p-Noi8jmqR.js} +2 -2
  458. package/dist/twilight/p-QpH8MU22.js +4 -0
  459. package/dist/twilight/p-a139776f.entry.js +4 -0
  460. package/dist/twilight/p-a23e6051.entry.js +4 -0
  461. package/dist/twilight/p-a34a0037.entry.js +4 -0
  462. package/dist/twilight/{p-4e941f6a.entry.js → p-b9bc75ad.entry.js} +1 -1
  463. package/dist/twilight/{p-32a21d3e.entry.js → p-bb02c0fd.entry.js} +1 -1
  464. package/dist/twilight/{p-d112b260.entry.js → p-c3418320.entry.js} +1 -1
  465. package/dist/twilight/{p-011ff091.entry.js → p-c5214df3.entry.js} +1 -1
  466. package/dist/twilight/{p-5381a86d.entry.js → p-cc8b8f84.entry.js} +1 -1
  467. package/dist/twilight/p-cgSL_BIo.js +4 -0
  468. package/dist/twilight/p-d4a62692.entry.js +4 -0
  469. package/dist/twilight/{p-d130f149.entry.js → p-d6d0a9b8.entry.js} +1 -1
  470. package/dist/twilight/{p-ebb782d3.entry.js → p-d8389555.entry.js} +1 -1
  471. package/dist/twilight/{p-63778992.entry.js → p-d8d5d1f4.entry.js} +1 -1
  472. package/dist/twilight/{p-7c78c1a5.entry.js → p-da642a9a.entry.js} +1 -1
  473. package/dist/twilight/{p-f68e2787.entry.js → p-dce9ced4.entry.js} +1 -1
  474. package/dist/twilight/{p-f136e41b.entry.js → p-df8e08af.entry.js} +1 -1
  475. package/dist/twilight/{p-30695c34.entry.js → p-e0619a5d.entry.js} +1 -1
  476. package/dist/twilight/p-e25aaae6.entry.js +4 -0
  477. package/dist/twilight/{p-99aa0a59.entry.js → p-e270154b.entry.js} +1 -1
  478. package/dist/twilight/{p-f4060b10.entry.js → p-e3da6c85.entry.js} +1 -1
  479. package/dist/twilight/{p-ea0c19be.entry.js → p-e5a47190.entry.js} +1 -1
  480. package/dist/twilight/{p-6f0a262a.entry.js → p-ec5b3bd6.entry.js} +1 -1
  481. package/dist/twilight/p-f294b1e5.entry.js +4 -0
  482. package/dist/twilight/p-f2ed8e2a.entry.js +4 -0
  483. package/dist/twilight/{p-c5ab5c1b.entry.js → p-f4c1f034.entry.js} +1 -1
  484. package/dist/twilight/{p-0b265c17.entry.js → p-fbfe1cf4.entry.js} +1 -1
  485. package/dist/twilight/{p-ac973857.entry.js → p-fe4d55ce.entry.js} +1 -1
  486. package/dist/twilight/{p-c5a12dde.entry.js → p-feacde76.entry.js} +1 -1
  487. package/dist/twilight/{p-d9b8aa69.entry.js → p-ff3ae289.entry.js} +1 -1
  488. package/dist/twilight/{p-164ae46f.entry.js → p-ff47b12d.entry.js} +1 -1
  489. package/dist/twilight/{p-9XUl8eNt.js → p-iornn-Hi.js} +1 -1
  490. package/dist/twilight/twilight.esm.js +1 -1
  491. package/dist/types/components/salla-badge/salla-badge.d.ts +15 -0
  492. package/dist/types/components/salla-edit-order-button/salla-edit-order-button.d.ts +25 -0
  493. package/dist/types/components/salla-loyalty-program/functions.d.ts +67 -0
  494. package/dist/types/components/salla-loyalty-program/interfaces.d.ts +125 -0
  495. package/dist/types/components/salla-loyalty-program/salla-loyalty-banner.d.ts +20 -0
  496. package/dist/types/components/salla-loyalty-program/salla-loyalty-hero.d.ts +15 -0
  497. package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +45 -0
  498. package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +11 -0
  499. package/dist/types/components/salla-loyalty-program/salla-loyalty-program.d.ts +25 -8
  500. package/dist/types/components/salla-loyalty-program/salla-loyalty-reward.d.ts +13 -0
  501. package/dist/types/components/salla-loyalty-program/salla-reward-action.d.ts +9 -0
  502. package/dist/types/components/salla-loyalty-program/salla-reward-card.d.ts +17 -0
  503. package/dist/types/components/salla-loyalty-program/salla-reward-details.d.ts +22 -0
  504. package/dist/types/components/salla-loyalty-program/salla-reward-exchange.d.ts +11 -0
  505. package/dist/types/components/salla-loyalty-program/translations.d.ts +1 -0
  506. package/dist/types/components.d.ts +341 -0
  507. package/package.json +6 -5
  508. package/dist/cjs/salla-products-slider.cjs.entry.js +0 -121
  509. package/dist/esm/salla-products-slider.entry.js +0 -119
  510. package/dist/twilight/p-078c884b.entry.js +0 -4
  511. package/dist/twilight/p-336f0f06.entry.js +0 -4
  512. package/dist/twilight/p-39ad489e.entry.js +0 -4
  513. package/dist/twilight/p-470433cb.entry.js +0 -4
  514. package/dist/twilight/p-52192d08.entry.js +0 -4
  515. package/dist/twilight/p-54c7e570.entry.js +0 -4
  516. package/dist/twilight/p-a0171740.entry.js +0 -4
  517. package/dist/twilight/p-c65832b1.entry.js +0 -4
  518. package/dist/twilight/p-d3a119aa.entry.js +0 -4
  519. package/dist/twilight/p-d4f3797c.entry.js +0 -4
  520. package/dist/twilight/p-fa3ceb7c.entry.js +0 -4
  521. package/dist/twilight/p-fa44f874.entry.js +0 -4
@@ -5,6 +5,7 @@ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/clien
5
5
  import { a as anime } from './anime.es.js';
6
6
  import { I as IconArrowLeft } from './arrow-left.js';
7
7
  import { C as Cancel } from './cancel.js';
8
+ import { S as SIGiftSharing } from './gift-sharing.js';
8
9
  import { d as defineCustomElement$b } from './salla-button2.js';
9
10
  import { d as defineCustomElement$a } from './salla-datetime-picker2.js';
10
11
  import { d as defineCustomElement$9 } from './salla-file-upload2.js';
@@ -22,13 +23,6 @@ var Images = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" h
22
23
  </svg>
23
24
  `;
24
25
 
25
- var GiftSharing = `<!-- Generated by IcoMoon.io -->
26
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
27
- <title>gift-sharing</title>
28
- <path d="M5 32h-4c-0.552 0-1-0.448-1-1v0-14c0-0.552 0.448-1 1-1v0h4c0.552 0 1 0.448 1 1v0 14c0 0.552-0.448 1-1 1v0zM2 30h2v-12h-2zM19.32 30h-14.32v-2h14.32c0.693-0.005 1.329-0.242 1.837-0.637l-0.007 0.005 8.45-6.568c0.216-0.16 0.365-0.402 0.399-0.679l0-0.005c0.005-0.036 0.007-0.077 0.007-0.119 0-0.226-0.078-0.434-0.209-0.599l0.002 0.002c-0.16-0.216-0.401-0.364-0.677-0.399l-0.005-0.001c-0.034-0.004-0.073-0.007-0.113-0.007-0.227 0-0.436 0.078-0.601 0.208l0.002-0.002-7.126 5.526c-1.003 0.793-2.285 1.273-3.68 1.274h-6.6v-2h6.6c0.926-0.001 1.777-0.32 2.45-0.852l-0.008 0.006 7.126-5.526c0.492-0.39 1.122-0.625 1.807-0.625 0.135 0 0.268 0.009 0.398 0.027l-0.015-0.002c0.824 0.102 1.534 0.524 2.011 1.137l0.005 0.007c0.39 0.494 0.625 1.127 0.625 1.814 0 0.136-0.009 0.27-0.027 0.402l0.002-0.015c-0.106 0.819-0.529 1.523-1.141 1.995l-0.007 0.005-8.458 6.578c-0.834 0.649-1.894 1.043-3.047 1.050h-0.002zM11 26c-0.552 0-1-0.448-1-1s0.448-1 1-1v0c2.406-0.004 4.415-1.703 4.894-3.967l0.006-0.033h-10.9c-0.552 0-1-0.448-1-1s0.448-1 1-1v0h12c0.552 0 1 0.448 1 1v0c0 3.866-3.134 7-7 7v0zM24 12h-16c-1.105 0-2-0.895-2-2v0-2c0-1.105 0.895-2 2-2v0h16c1.105 0 2 0.895 2 2v0 2c0 1.105-0.895 2-2 2v0zM24 10v0zM8 8v2h16v-2zM23 18c-0.552 0-1-0.448-1-1v0-6c0-0.552 0.448-1 1-1s1 0.448 1 1v0 6c0 0.552-0.448 1-1 1v0zM9 16c-0.552 0-1-0.448-1-1v0-4c0-0.552 0.448-1 1-1s1 0.448 1 1v0 4c0 0.552-0.448 1-1 1v0zM16 16c-0.552 0-1-0.448-1-1v0-8c0-0.552 0.448-1 1-1s1 0.448 1 1v0 8c0 0.552-0.448 1-1 1v0zM16 8c-0.552-0-1-0.448-1-1 0-0.077 0.009-0.151 0.025-0.223l-0.001 0.007c0.314-1.849 0.963-3.5 1.887-4.961l-0.033 0.055c0.539-0.521 1.274-0.842 2.084-0.842 1.657 0 3 1.343 3 3 0 0.81-0.321 1.545-0.843 2.085l0.001-0.001c-1.405 0.891-3.056 1.541-4.824 1.845l-0.080 0.011c-0.065 0.015-0.139 0.024-0.216 0.024h-0zM19 3c-0.001 0-0.001 0-0.002 0-0.276 0-0.525 0.112-0.706 0.292l0-0c-0.391 0.669-0.703 1.444-0.897 2.264l-0.011 0.058c0.878-0.205 1.653-0.517 2.363-0.93l-0.041 0.022c0.18-0.181 0.292-0.43 0.292-0.706 0-0.551-0.446-0.999-0.998-1h-0zM16 8c-0.077-0-0.151-0.009-0.223-0.025l0.007 0.001c-1.848-0.315-3.499-0.965-4.959-1.888l0.055 0.032c-0.521-0.539-0.842-1.274-0.842-2.084 0-1.657 1.343-3 3-3 0.81 0 1.545 0.321 2.085 0.843l-0.001-0.001c0.891 1.405 1.541 3.056 1.845 4.824l0.011 0.080c0.015 0.066 0.024 0.141 0.024 0.218 0 0.552-0.448 1-1 1-0.001 0-0.001 0-0.002 0h0zM13 3c-0.001 0-0.001 0-0.002 0-0.552 0-1 0.448-1 1 0 0.277 0.112 0.527 0.294 0.708l0 0c0.669 0.391 1.444 0.703 2.264 0.897l0.058 0.011c-0.205-0.878-0.517-1.653-0.93-2.363l0.022 0.041c-0.181-0.181-0.43-0.293-0.706-0.294h-0z"></path>
29
- </svg>
30
- `;
31
-
32
26
  var Alert = `<!-- Generated by IcoMoon.io -->
33
27
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
34
28
  <title>alert</title>
@@ -571,11 +565,11 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
571
565
  }
572
566
  render() {
573
567
  return [
574
- h("div", { key: 'ea8b7581fc816b2984ec7a8c9f0d5bfb30710577' }, h("salla-list-tile", { key: '44e4b948c467ecbec4934f894af3e88a01567338', class: this.generateClass() }, h("div", { key: 'c36ccc48ff4209d2aad05123981c8efad4de8642', slot: "title" }, this.vertical ? h("span", { innerHTML: GiftSharing }) : '', h("h3", { key: 'd5cfd335582f2af620ef50ae92b431b3fdf84b71' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '9623168820eefb63c833dd14c68c1dc20afe1cd1', slot: "subtitle" }, h("div", { key: 'e2fda7dc68054c0f382f61d74a578589b565a544' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'e888e024772c0ef848e4a4113b218bb4e05d78db', slot: "action" }, h("salla-button", { key: 'd443bfd1f5925299a4e0510fae8fc175d390b55a', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '8df23b83891ee2abf644cde76675ca6bb796db79', name: "widget-btn-content" }, h("div", { key: '6b5153a1f1b9d5e127093c3fcc96e2a0fa4954f4', class: "s-gifting-widget-action-content" }, h("span", { key: '41a7f2e88c8046d7211abf5d7fc9d3f533c02292', innerHTML: GiftSharing }), " \u00A0", h("span", { key: '45ea8eac19ca9cccf37cd34d8f84211e6172cd45' }, this.sectionBtnText)))))), h("salla-modal", { key: '5bd076c54c4d072886671653e536c649763785b1', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '378d12f388bd0627355af5b4e57929c00ae28044', slot: "loading" }, h("div", { key: '1b738d4b461a9ebe3a5184f4de727bb1b4b45890', class: "s-gifting-skeleton" }, h("div", { key: '660c901f477536e68d2a3bacd028438c9726b968', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '46f8e45a0a38c10784fc5f3505092e65ed2bba3a', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '09b3356d736e5eb46bb51df2e2fa539dc9d8c99f', class: "s-gifting-modal-title" }, h("div", { key: 'cc8cb7dece64c65d5891e32e49588316e9009f6c', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '41b30274a655babdd0c9e26e74dc3f0bdd4a2aea', height: '15px', width: '150px' })))), h("div", { key: 'b241162827a085279f646452a151d6483a37cc8e', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '5ac15a8e94b50ea03cd033375b08f9e4406a7e17', height: '10px', width: '150px' }), h("salla-skeleton", { key: '697e157e475df0cb71b79e3752019f522ed847a3', height: '230px' }), h("salla-skeleton", { key: '8a5e586c059b765f6425d7060a18e8d799be3c4f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'e1ee17daef6904b8302b0f4437e99b221bd6b236', height: '30px' }), h("salla-skeleton", { key: '9dfbca00f18a37348eb83021ef4fec073685fe7d', height: '40px' })))), h("slot", { key: 'da2c687a186ed115acee04cc683eff3a6a73168f', name: "header" }), !!this.hasError ?
568
+ h("div", { key: 'f20cc2c84e987b34bb862f72a8f639894ed4150e' }, h("salla-list-tile", { key: 'c52aa5e975f9ed1707c3175fa66109f447749ee7', class: this.generateClass() }, h("div", { key: '2bf7065f32132dde95dacfdea44e34c08cc4e61c', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: '7a9a70b6841a708c322f5bb729e940e4da823261' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'c346f2baa8e6a1adf9b0f89e9b50d236e65116cb', slot: "subtitle" }, h("div", { key: '26c908af9687b0c77554054212f5c8251dc45bf3' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'f91bf3811c383773425af74941a2067e2f62dbb7', slot: "action" }, h("salla-button", { key: '0639c4b9cc4d81f300f6b087e1c10815b1610c75', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '06567fa7406ae6502e8f3211ecab6161c4a7e397', name: "widget-btn-content" }, h("div", { key: 'f895900d17947b006f6aef4695b855eba4737ed2', class: "s-gifting-widget-action-content" }, h("span", { key: 'bd3170b8efa2a0c95f61718afd69e5473adae20a', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: 'cdc3d1df35ad0e7334bc289f9fff2d312d709724' }, this.sectionBtnText)))))), h("salla-modal", { key: 'a98b913100edfa92156baeee766f6141818ebd8b', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '6b438c581e600cbcfeb5260bae8371a1fbefa29c', slot: "loading" }, h("div", { key: 'ada9e9bb0355755eade9ff7846334cb5ae093e6f', class: "s-gifting-skeleton" }, h("div", { key: '11d2e41b6acb933f5b006cc9f0b0b46470892c6a', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '141be7d6aa83fed682f8ab6a3708597dbb4dba11', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '65eba6244b5507397c8e50ef40f695e7eebe0b96', class: "s-gifting-modal-title" }, h("div", { key: '0f2488d19d2de0a728377b9f475b70073f6f196a', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: 'b648340418099246c8b83b308f116412fdb6cbc9', height: '15px', width: '150px' })))), h("div", { key: '8255e53b49f572ef3c4485cf7e84540dac019f89', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '0b05db8e76a9a53032b1643d8c4e223b8b641e30', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'c585bf04433e46ce8e89d9bfc3402faf4cfbb21a', height: '230px' }), h("salla-skeleton", { key: '0c09063b73e3aecb6a1879cdc93b60a6bcb9b2cc', height: '10px', width: '150px' }), h("salla-skeleton", { key: '88f55e5ffded2f784002b44e49f3ab2d22a7c067', height: '30px' }), h("salla-skeleton", { key: '6e1edd3b031f051ec24149ec690d2e4f04f9c557', height: '40px' })))), h("slot", { key: 'bff6a067b10a31c39f22e18c6bdf5a60f56ef116', name: "header" }), !!this.hasError ?
575
569
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
576
570
  :
577
571
  [
578
- h("div", { class: "s-gifting-modal-header" }, h("span", { class: "s-gifting-modal-icon" }, h("span", { innerHTML: GiftSharing })), h("h2", { class: "s-gifting-modal-title" }, h("div", { class: "s-gifting-modal-badge-wrapper" }, h("div", { class: "s-gifting-modal-badge" }, h("span", null, h("span", null, this.currentStep), "/2")), h("span", null, this.giftDetails)))),
572
+ h("div", { class: "s-gifting-modal-header" }, h("span", { class: "s-gifting-modal-icon" }, h("span", { innerHTML: SIGiftSharing })), h("h2", { class: "s-gifting-modal-title" }, h("div", { class: "s-gifting-modal-badge-wrapper" }, h("div", { class: "s-gifting-modal-badge" }, h("span", null, h("span", null, this.currentStep), "/2")), h("span", null, this.giftDetails)))),
579
573
  h("div", { class: "s-gifting-steps-wrapper " + this.parentClass, ref: el => this.stepsWrapper = el }, h("div", { class: "s-gifting-step-one gift-step-1", ref: el => this.step1Elems = el }, h("div", { class: "s-gifting-modal-uploader-title anime-item" }, this.selectImageForYourGift), h("div", { class: "s-gifting-modal-uploader anime-item", ref: el => this.uploader = el }, h("span", { class: "s-gifting-remove-preview", onClick: () => this.removePreview(), innerHTML: Cancel }), this.selectImageOrUpload && h("salla-file-upload", { "instant-upload": true, name: "image_url", url: salla.url.api(salla.product.api.getUrl('giftImage')), onUploaded: event => this.handleUploadImage(event.detail), labelIdle: this.getFilepondPlaceholder(), onRemoved: () => this.handleRemoveImage() })), h("div", { class: "anime-item" }, !this.uploadedImage && !!this.gift && !!this.gift.gift_images && this.gift.gift_images.length > 0 ?
580
574
  h("salla-slider", { id: "gifting-slider", loop: false, "controls-outer": true, class: "s-gifting-slider", type: "carousel" }, h("div", { slot: "items" }, this.gift && this.gift.gift_images ?
581
575
  this.gift?.gift_images.map((item) => h("a", { class: "s-gifting-clickable s-gifting-image", onClick: () => this.setPreview(item) }, h("img", { style: { "width": "120px" }, src: item.url, alt: `${item.id}` }))) : ''))
@@ -591,7 +585,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
591
585
  h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), h("select", { name: "city", "aria-label": salla.lang.get('blocks.buy_as_gift.select_city'), class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId) }, h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
592
586
  h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
593
587
  h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo)), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
594
- ], h("slot", { key: '20793a5a50c708c93be79df033e43a36e615d075', name: "footer" })))
588
+ ], h("slot", { key: '4cad8b174ab427e6f75b77357efc20e54d791ba4', name: "footer" })))
595
589
  ];
596
590
  }
597
591
  static get style() { return sallaGiftingCss; }
@@ -17,7 +17,7 @@ const SallaHook$1 = /*@__PURE__*/ proxyCustomElement(class SallaHook extends HTM
17
17
  this.host.before(element);
18
18
  }
19
19
  render() {
20
- return h(Host, { key: '618467f6911198a5cbf4270694544575e585af27' });
20
+ return h(Host, { key: '2aa8c92dee7e62785fa0f45d967912ae8d6f96c0' });
21
21
  }
22
22
  async componentDidLoad() {
23
23
  // 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: 'e1528afcea1eda05a5ce206e95791e7611d24dd0' }, h("a", { key: '749a73c76d68ad36f1a6609ada69778662d56566', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: '7bfd448f86790b2afe0b7a5b8a5460c3b2be66ee', class: "s-list-tile-item-icon" }, h("slot", { key: '383e28a8832483e8ecc61e4f48a3ff1fe5db1038', name: 'icon' })), h("div", { key: 'c42bf126a9ff4014a4e2d85ff12b41d1a88a0e03', class: "s-list-tile-item-content" }, h("div", { key: '18a4a9ebd39e3a710f70dc33554d24e3c2850e53', class: "s-list-tile-item-title" }, h("slot", { key: '7211d627511bf2448cf161f40cc82b1822dd1e7a', name: 'title' })), h("div", { key: '044a7d76e05841f484387c7ed299107f33c9bc21', class: "s-list-tile-item-subtitle" }, h("slot", { key: 'df131034f1c5434722543e25552caed142794d55', name: "subtitle" }))), h("div", { key: '37abe0abab720da11cd55660578ec256c062e763', class: "s-list-tile-item-action" }, h("slot", { key: 'fcac02da17981ef4c6fa3cea50c551e3010352d9', name: 'action' })))));
28
+ return (h(Host, { key: '1f5e8a06d1c1aa0df00b09eec0c0a1efbf590748' }, h("a", { key: 'f9b772a03f745b07e2456cd74c73ab695f3754ff', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: 'e90d46a29df8ea298489deba9b88bc6f84ebd5aa', class: "s-list-tile-item-icon" }, h("slot", { key: 'a5c40e495d05b5d45bae8ed133eca034f439368d', name: 'icon' })), h("div", { key: '2ded5a53f567c8eddb05d24a5f59875d3a7ac1ac', class: "s-list-tile-item-content" }, h("div", { key: '80e6962e698223c893b40a4a62d8ce67aa3ab27c', class: "s-list-tile-item-title" }, h("slot", { key: '87f95d3ae826904a55e0e4724340f55344371789', name: 'title' })), h("div", { key: '7fc838f33b9e65ca8c9f11bce4b506aad7d7ecb1', class: "s-list-tile-item-subtitle" }, h("slot", { key: 'f936a3770d59d3b56287927a447df9c8fa697310', name: "subtitle" }))), h("div", { key: 'e974fd4591921468f4a882370303709718ef6e64', class: "s-list-tile-item-action" }, h("slot", { key: '9d2adb70f0c75b18474f0f05c99000327e081ce8', name: 'action' })))));
29
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: '64a270526fd172b66a0671749bf36acee7cc8de1', class: "s-loading-container" }, h("svg", { key: '380bae806d8aa39e3ac07fba3daf181cfe040f70', "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: 'c531098ed793fcd2ec90f10bfb470bcc4543b346', 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: 'cc6b89a57e8168937ee13b5ccdc25aa024e05223', 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: 'bd9a1150a24f8a62d42437c669613ffa4e67b14f', class: "s-loading-container" }, h("svg", { key: '460c614d5d205ed9283d63f5ebebdb5639b8246e', "aria-hidden": "true", style: { width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }, class: "s-loading", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '13c50eee8a0f2342cc876e9dbbcc84d418e314bc', d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }), h("path", { key: '08888ea6c15d6be5d4225ec22bb2586e410793e8', d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));
31
31
  }
32
32
  static get style() { return sallaLoadingCss; }
33
33
  }, [0, "salla-loading", {
@@ -213,7 +213,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
213
213
  this.showTrigger
214
214
  ? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
215
215
  : '',
216
- h("salla-modal", { key: '8b26a4e0224a049aee503c06ec288eb2dcbd00db', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: 'b28c8375f6491ad8fab684dab4d203a9d23fd417', slot: 'loading' }, h("div", { key: '26967b5d8accc26b75aa0a361506341b00cc1ef7', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: 'a97f5ceee4c1173030ec29781ee6571c50e02865', width: '25%', height: '15px' }), h("div", { key: '51edca3871e46c692b89651281e94b1716f3cade', 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: '5e8e3fb5c956be5a681025c7cfce59648dcc75e7', width: '25%', height: '15px' }), h("div", { key: 'd16e6d8bed9300337f84bad366e2731799363fb2', 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: '952633850a514afbf702d8e6afe30470ff201673', height: '40px', width: '100%' }))), !!this.hasError ?
216
+ h("salla-modal", { key: '13b805dc33b57d433d4c35ad8217adef60b99ad5', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: 'b30239d0a20d15baccb6a5017493d91ae96c350c', slot: 'loading' }, h("div", { key: '94f7df4044f94612413f4818b110abae3c251075', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '63008e2fd90cfa4ce9ddbf313ffe718c520853ce', width: '25%', height: '15px' }), h("div", { key: '97f64f98e99c3cc2f099fa02469a2000c7eefc4c', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '230480a6cfaddab7fbe70a16041cf5fb8903c64a', width: '25%', height: '15px' }), h("div", { key: 'caf3e79cdbd04d5374365173212792abfe3d465b', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'b48d02c6e7febad77dbd0d37e540d02d26265e8b', height: '40px', width: '100%' }))), !!this.hasError ?
217
217
  h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
218
218
  h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
219
219
  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 ?
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaLoyaltyBanner extends Components.SallaLoyaltyBanner, HTMLElement {}
4
+ export const SallaLoyaltyBanner: {
5
+ prototype: SallaLoyaltyBanner;
6
+ new (): SallaLoyaltyBanner;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,103 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
5
+ import { s as setTranslations } from './translations.js';
6
+ import { l as loyaltyProgramIcon } from './gift.js';
7
+ import { T as TrackedPromise } from './tracked-promise.js';
8
+ import { d as defineCustomElement$4 } from './salla-loading2.js';
9
+ import { d as defineCustomElement$3 } from './salla-modal2.js';
10
+ import { d as defineCustomElement$2 } from './salla-reward-exchange2.js';
11
+
12
+ const sallaLoyaltyProgramCss = "";
13
+
14
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
17
+ r = Reflect.decorate(decorators, target, key, desc);
18
+ else
19
+ for (var i = decorators.length - 1; i >= 0; i--)
20
+ if (d = decorators[i])
21
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ const SallaLoyaltyBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyBanner extends HTMLElement {
25
+ constructor() {
26
+ super();
27
+ this.__registerHost();
28
+ }
29
+ /**
30
+ * Get product ID from data attribute or fallback to page.id
31
+ */
32
+ get productId() {
33
+ return this.host.dataset.productId || salla.config.get('page.id');
34
+ }
35
+ componentWillLoad() {
36
+ return salla.onReady()
37
+ .then(() => salla.lang.onLoaded())
38
+ .then(() => setTranslations())
39
+ .then(() => this.prize())
40
+ .catch(error => salla.logger.error(error));
41
+ }
42
+ handleClick() {
43
+ if (salla.config.isGuest()) {
44
+ salla.event.dispatch('login::open');
45
+ return;
46
+ }
47
+ this.exchangeModal.open();
48
+ }
49
+ render() {
50
+ if (this.prize.status !== 'success' || !this.productId) {
51
+ return null;
52
+ }
53
+ return (h("div", { class: "s-loyalty-program-banner-container" }, h("div", null, h("p", { class: "s-loyalty-program-banner-container-banner-title" }, salla.lang.get('pages.loyalty_program.want_to_redeem_free_product')), h("p", { class: "s-loyalty-program-banner-container-banner-subtitle" }, salla.lang.get('pages.loyalty_program.exchange_points_for_free_product', { points: this.prize.data.cost_points }))), h("button", { onClick: () => this.handleClick() }, h("span", { innerHTML: loyaltyProgramIcon }), h("span", null, salla.lang.get('pages.loyalty_program.exchange_points'))), h("salla-modal", { ref: modal => this.exchangeModal = modal, width: "sm" }, !this.prize.data ? '' : h("salla-reward-exchange", { productId: Number(this.productId), prize: this.prize.data }))));
54
+ }
55
+ get host() { return this; }
56
+ static get style() { return sallaLoyaltyProgramCss; }
57
+ }, [0, "salla-loyalty-banner"]);
58
+ __decorate([
59
+ TrackedPromise(async function () {
60
+ if (!(salla.config.get('store.features') || []).includes('loyalty-system')) {
61
+ return Promise.reject('Loyalty system is not enabled for merchant');
62
+ }
63
+ const { loyalty_prize } = await salla.product.api.getDetails(this.productId);
64
+ if (!loyalty_prize) {
65
+ return Promise.reject('no loyalty prize for this product');
66
+ }
67
+ return loyalty_prize;
68
+ })
69
+ ], SallaLoyaltyBanner$1.prototype, "prize", void 0);
70
+ function defineCustomElement$1() {
71
+ if (typeof customElements === "undefined") {
72
+ return;
73
+ }
74
+ const components = ["salla-loyalty-banner", "salla-loading", "salla-modal", "salla-reward-exchange"];
75
+ components.forEach(tagName => { switch (tagName) {
76
+ case "salla-loyalty-banner":
77
+ if (!customElements.get(tagName)) {
78
+ customElements.define(tagName, SallaLoyaltyBanner$1);
79
+ }
80
+ break;
81
+ case "salla-loading":
82
+ if (!customElements.get(tagName)) {
83
+ defineCustomElement$4();
84
+ }
85
+ break;
86
+ case "salla-modal":
87
+ if (!customElements.get(tagName)) {
88
+ defineCustomElement$3();
89
+ }
90
+ break;
91
+ case "salla-reward-exchange":
92
+ if (!customElements.get(tagName)) {
93
+ defineCustomElement$2();
94
+ }
95
+ break;
96
+ } });
97
+ }
98
+ defineCustomElement$1();
99
+
100
+ const SallaLoyaltyBanner = SallaLoyaltyBanner$1;
101
+ const defineCustomElement = defineCustomElement$1;
102
+
103
+ export { SallaLoyaltyBanner, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaLoyaltyHero extends Components.SallaLoyaltyHero, HTMLElement {}
4
+ export const SallaLoyaltyHero: {
5
+ prototype: SallaLoyaltyHero;
6
+ new (): SallaLoyaltyHero;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { S as SallaLoyaltyHero$1, d as defineCustomElement$1 } from './salla-loyalty-hero2.js';
5
+
6
+ const SallaLoyaltyHero = SallaLoyaltyHero$1;
7
+ const defineCustomElement = defineCustomElement$1;
8
+
9
+ export { SallaLoyaltyHero, defineCustomElement };
@@ -0,0 +1,43 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
+
6
+ const sallaLoyaltyProgramCss = "";
7
+
8
+ const SallaLoyaltyHero = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyHero extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ }
13
+ render() {
14
+ return (h(Host, { key: '71421d1a559f9d0b8b9a2023e3015847dd4be7fb' }, h("section", { key: '914ae35d2e038a4f0f358eb3d61352cf263f4c7b', class: "s-loyalty-program-hero-container" }, h("div", { key: '93353d9f4dcc7d41e4c714f93ee84899b799633e', class: "s-loyalty-program-hero-background", style: {
15
+ backgroundImage: `url(${this.image})`,
16
+ } }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '6f62cb4aadbb81f91549b60177f15e8791e6aa51', class: {
17
+ 's-loyalty-program-hero-content': true,
18
+ 's-loyalty-program-hero-white': !!this.image,
19
+ 's-loyalty-program-hero-gray': !this.image,
20
+ } }, h("div", { key: '11794269898ee42023cac29e49c17463fe90781b' }, h("h1", { key: '95435290b38fce9dbc6a580d8452e7189074773b', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: '02fbbae525a5973d65bb98626dbe5712374495c4', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: 'e482ab6a067d54b9c274208a43b286e07a8e471c', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '2fc2ea5a732e473b2c26d3b885a699b57f7df0c1', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: 'd548c168c97849abd583b510c7b1d6c4370daa1c', name: "action" }))), h("div", { key: '2423ee04e5e126eabcbfec20ad6c82a8d2593d2a', class: "s-loyalty-program-hero-footer" }, h("div", { key: '25ee4e74c9ea3c0ea420a09858c45b83b454bd40', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '11a7147bc142914ccfa08b099826a4a2805100aa', name: "crosspoint" }))))));
21
+ }
22
+ static get style() { return sallaLoyaltyProgramCss; }
23
+ }, [4, "salla-loyalty-hero", {
24
+ "image": [1],
25
+ "name": [1],
26
+ "description": [1]
27
+ }]);
28
+ function defineCustomElement() {
29
+ if (typeof customElements === "undefined") {
30
+ return;
31
+ }
32
+ const components = ["salla-loyalty-hero"];
33
+ components.forEach(tagName => { switch (tagName) {
34
+ case "salla-loyalty-hero":
35
+ if (!customElements.get(tagName)) {
36
+ customElements.define(tagName, SallaLoyaltyHero);
37
+ }
38
+ break;
39
+ } });
40
+ }
41
+ defineCustomElement();
42
+
43
+ export { SallaLoyaltyHero as S, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaLoyaltyPanel extends Components.SallaLoyaltyPanel, HTMLElement {}
4
+ export const SallaLoyaltyPanel: {
5
+ prototype: SallaLoyaltyPanel;
6
+ new (): SallaLoyaltyPanel;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,250 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
5
+ import { s as setTranslations } from './translations.js';
6
+ import { n as normalizeLoyaltyData, c as closeModals } from './functions.js';
7
+ import { R as Rate } from './star2.js';
8
+ import { C as Cancel } from './cancel.js';
9
+ import { S as SIPercentage, a as SILayoutGrid } from './percentage.js';
10
+ import { S as SIShipping } from './shipping.js';
11
+ import { C as Cart2 } from './cart2.js';
12
+ import { T as TrackedPromise } from './tracked-promise.js';
13
+ import { d as defineCustomElement$m } from './salla-add-product-button2.js';
14
+ import { d as defineCustomElement$l } from './salla-badge2.js';
15
+ import { d as defineCustomElement$k } from './salla-button2.js';
16
+ import { d as defineCustomElement$j } from './salla-count-down2.js';
17
+ import { d as defineCustomElement$i } from './salla-list-tile2.js';
18
+ import { d as defineCustomElement$h } from './salla-loading2.js';
19
+ import { d as defineCustomElement$g } from './salla-modal2.js';
20
+ import { d as defineCustomElement$f } from './salla-product-availability2.js';
21
+ import { d as defineCustomElement$e } from './salla-product-card2.js';
22
+ import { d as defineCustomElement$d } from './salla-products-slider2.js';
23
+ import { d as defineCustomElement$c } from './salla-progress-bar2.js';
24
+ import { d as defineCustomElement$b } from './salla-quick-buy2.js';
25
+ import { d as defineCustomElement$a } from './salla-reward-action2.js';
26
+ import { d as defineCustomElement$9 } from './salla-reward-card2.js';
27
+ import { d as defineCustomElement$8 } from './salla-reward-details2.js';
28
+ import { d as defineCustomElement$7 } from './salla-reward-exchange2.js';
29
+ import { d as defineCustomElement$6 } from './salla-slider2.js';
30
+ import { d as defineCustomElement$5 } from './salla-tab-content2.js';
31
+ import { d as defineCustomElement$4 } from './salla-tab-header2.js';
32
+ import { d as defineCustomElement$3 } from './salla-tabs2.js';
33
+ import { d as defineCustomElement$2 } from './salla-tel-input2.js';
34
+
35
+ var PrizeImage = `<svg xmlns="http://www.w3.org/2000/svg" width="77" height="77" fill="none" viewBox="0 0 57 57"><rect width="56.3" height="55.9" x=".4" y=".2" fill="#FFF5E5" rx="27.9"/><g clip-path="url(#a)"><path fill="#EE9D0D" d="M16.7 27.5h17.5v12.2a1 1 0 0 1-1 1H17.7a1 1 0 0 1-1-1V27.5Z"/><path fill="#C7830B" d="M34.2 27.8v6l-6.8-6.3H34l.3.3Z"/><path fill="#C7830B" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EA2B2D" d="m29.9 15.8-.3.1a2.4 2.4 0 0 0-1.4 1.5l-.2.8-.4.2a2.4 2.4 0 0 0-1.1 1.4l4.2 3.9L33 21l.2-2.9a2.4 2.4 0 0 0-3.3-2.4ZM41.1 26.3v.2a2.4 2.4 0 0 1-1.5 1.6l-.7.3-.2.3a2.4 2.4 0 0 1-1.3 1.3l-4.2-4 2.4-2.5 2.9-.3a2.4 2.4 0 0 1 2.6 3.1Z"/><path fill="#CB2527" d="M23.7 27.5h3.5v13.1h-3.5V27.5Z"/><path fill="#EA2B2D" d="M16.7 32.3h17.5v3.5H16.7v-3.5Z"/><path fill="#CB2527" d="M34.2 32.3v1.5l-1.6-1.5h1.6Z"/><path fill="#EE9D0D" d="M25.3 18.7 38.6 31a1 1 0 0 1 0 1.4l-2.3 2.4-14.7-13.7 2.3-2.5a1 1 0 0 1 1.4 0Z"/><path fill="#CB2527" d="m30.3 23.4 3.2 3-3 3.2-3.2-3 3-3.2ZM31.8 22.8a.4.4 0 0 1-.3-.1l-.3-.4A5.9 5.9 0 0 1 30 18a.4.4 0 0 1 .9 0 5 5 0 0 0 1 3.7l.3.3a.4.4 0 0 1-.4.7Z"/><path fill="#EA2B2D" d="M30.7 23.7c-1.9.7-3.8 1-5.7.9h-1.1l1.9 1.7-.6 1.9 1.8-.6c1.7-.5 3.2-1.4 4.6-2.5l.3-.2-1.2-1.2Z"/><path fill="#CB2527" d="M37.8 26.4c-1.1 0-2.3-.3-3.2-1l-.4-.2a.4.4 0 0 1 0-.8.4.4 0 0 1 .5 0l.3.3a5 5 0 0 0 3.7.7.4.4 0 1 1 .2 1 6 6 0 0 1-1 0Z"/><path fill="#EA2B2D" d="M33.2 26c-.5 2-.7 3.9-.5 5.8l.1 1.1-1.9-1.8-1.8.7.4-1.8c.4-1.7 1.2-3.3 2.2-4.8l.2-.3 1.3 1.2Z"/><path fill="#6699CE" d="M21.5 17.4a.9.9 0 1 0 0-1.7.9.9 0 0 0 0 1.7Z"/><path fill="#FAA6B2" d="M16.7 27.5a.9.9 0 1 0 0-1.8.9.9 0 0 0 0 1.8Z"/><path fill="#A6DEFF" d="M18.4 17.9a.4.4 0 0 1-.4-.3v-.1a1.4 1.4 0 0 0-1.3-1 .4.4 0 0 1-.2-.8h.2a2.3 2.3 0 0 1 2.1 1.5.4.4 0 0 1-.4.7ZM20.6 25.6h-.2v-.1a1 1 0 0 0-1.1 0 .4.4 0 0 1-.5-.8 1.8 1.8 0 0 1 2 0 .4.4 0 0 1-.2.9Z"/><path fill="#EEB436" d="m17.6 18.6 1.3 1.2 1.8-.4-.7 1.7.9 1.6-1.8-.2-1.2 1.3-.4-1.8-1.7-.7 1.6-.9.2-1.8ZM23 26.6l-.5 1.8 1.2 1.3-1.8.2-1 1.5-.6-1.7-1.8-.4 1.4-1.1-.2-1.9 1.6 1 1.6-.7Z"/><path fill="#F72D2F" d="m33.2 26-2.5-2.3L33 21a4 4 0 0 1 2.6 2.4l-2.4 2.6Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M15.8 15.7h25.4v25H15.8z"/></clipPath></defs></svg>`;
36
+
37
+ const sallaLoyaltyProgramCss = "";
38
+
39
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
40
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
41
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
42
+ r = Reflect.decorate(decorators, target, key, desc);
43
+ else
44
+ for (var i = decorators.length - 1; i >= 0; i--)
45
+ if (d = decorators[i])
46
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
47
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
48
+ };
49
+ const sicons = {
50
+ all: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SILayoutGrid }),
51
+ free_shipping: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SIShipping }),
52
+ coupon_discount: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: SIPercentage }),
53
+ free_product: h("span", { class: "s-loyalty-program-rewards-tab-icon", innerHTML: Cart2 }),
54
+ };
55
+ const SallaLoyaltyPanel$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyPanel extends HTMLElement {
56
+ constructor() {
57
+ super();
58
+ this.__registerHost();
59
+ /**
60
+ * prize to show in details or exchange modals
61
+ */
62
+ this.currentPrize = null;
63
+ this.handleExchangeSucceeded = () => window.location.reload();
64
+ this.handleResetSucceeded = () => window.location.reload();
65
+ }
66
+ componentWillLoad() {
67
+ return salla.onReady()
68
+ .then(() => salla.lang.onLoaded())
69
+ .then(() => setTranslations())
70
+ .then(() => {
71
+ salla.event.on('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
72
+ salla.event.on('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
73
+ // Fetch points if user is logged in
74
+ if (!salla.config.isGuest()) {
75
+ this.points();
76
+ }
77
+ })
78
+ .catch((error) => salla.logger.error(error));
79
+ }
80
+ disconnectedCallback() {
81
+ salla.event.off('loyalty::exchange.succeeded', this.handleExchangeSucceeded);
82
+ salla.event.off('loyalty::exchange-reset.succeeded', this.handleResetSucceeded);
83
+ }
84
+ render() {
85
+ const prizesGroups = this.program.data.prizes;
86
+ const prizesCount = this.program.data.prizes_count;
87
+ const isLoadingPoints = this.points.status === 'pending' && this.points.data === null && !this.customerPoints;
88
+ const customerPoints = isLoadingPoints ? '---' : (this.points.data ?? this.customerPoints ?? 0);
89
+ if (this.prizeTitle && this.prizePoints) {
90
+ return (h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, h("salla-list-tile", { class: "s-loyalty-program-after-exchange" }, h("div", { slot: "title", class: "s-loyalty-program-after-exchange-title" }, this.prizeTitle, " \u00A0 - \u00A0 ", this.prizePoints, " ", salla.lang.get('pages.loyalty_program.point')), h("div", { slot: "action", class: "s-loyalty-program-after-exchange-action" }, h("salla-button", { class: "s-loyalty-program-after-exchange-reset", shape: "icon", fill: 'outline', color: "danger", size: "small", onClick: () => salla.loyalty.reset() }, h("span", { innerHTML: Cancel }))))));
91
+ }
92
+ return (h("div", { class: "" }, h("div", { class: "s-loyalty-program-panel-exchange-wrapper" }, h("salla-list-tile", { class: 's-loyalty-program-panel-widget' }, h("div", { slot: "icon", class: "s-loyalty-program-panel-widget-icon", innerHTML: Rate }), h("div", { slot: "subtitle" }, salla.lang.get('pages.loyalty_program.cart_total_point_summary', { "balance": customerPoints }), h("salla-button", { shape: "link", color: "primary", onClick: () => {
93
+ if (['error', 'idle'].includes(this.program.status)) {
94
+ this.program();
95
+ }
96
+ this.rewardsModal.open();
97
+ } }, customerPoints !== '---' && customerPoints ? salla.lang.get('pages.loyalty_program.cart_point_exchange_now') : salla.lang.get('blocks.header.login'))))), h("salla-modal", { id: "loyalty-rewards-modal", isLoading: this.program.status === 'pending', ref: modal => this.rewardsModal = modal, class: "s-loyalty-program-rewards-cart s-loyalty-program-modal", width: "lg", noPadding: true }, h("div", { slot: "loading" }, h("salla-loading", null)), this.program.status === 'success' ? h("div", { class: "s-loyalty-program-rewards-container-cart" }, h("div", { class: "s-loyalty-program-rewards-cart-header" }, h("div", { innerHTML: PrizeImage }), h("div", { class: "s-loyalty-program-panel-content" }, h("h1", null, this.program.data.prize_promotion_title), h("p", null, this.program.data.prize_promotion_description))), h("div", { class: {
98
+ 's-loyalty-program-slider-arrows': true,
99
+ 's-loyalty-program-tabs-hider': prizesGroups.length < 2 || prizesCount < 2,
100
+ } }, h("salla-tabs", null, prizesGroups.map((group) => (h("salla-tab-header", { slot: "header", name: group.type }, sicons[group.type], h("span", null, group.title)))), prizesGroups.map((group) => (h("salla-tab-content", { slot: "content", name: group.type }, h("salla-slider", { id: group.type, type: "default", "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":12,"breakpoints":{"768":{"slidesPerView":3,"spaceBetween":24,"freeMode":false,"speed":300}}}' }, h("div", { slot: "items" }, group.items.map((prize) => h("salla-reward-card", { prize: prize, onAreaClick: () => {
101
+ this.currentPrize = prize;
102
+ closeModals(() => this.detailsModal.open());
103
+ }, onActionClick: () => {
104
+ this.currentPrize = prize;
105
+ closeModals(() => this.detailsModal.open());
106
+ } })))))))))) : ''), h("salla-modal", { ref: modal => this.detailsModal = modal, class: "s-loyalty-program-modal", width: "md", noPadding: true }, !this.currentPrize ? '' : h("salla-reward-details", { onActionClick: () => closeModals(() => this.exchangeModal.open()), prize: this.currentPrize })), h("salla-modal", { ref: modal => this.exchangeModal = modal, class: "s-loyalty-program-modal", width: "sm" }, !this.currentPrize ? '' : h("salla-reward-exchange", { prize: this.currentPrize }))));
107
+ }
108
+ static get style() { return sallaLoyaltyProgramCss; }
109
+ }, [0, "salla-loyalty-panel", {
110
+ "prizePoints": [1544, "prize-points"],
111
+ "customerPoints": [1538, "customer-points"],
112
+ "prizeTitle": [1537, "prize-title"],
113
+ "currentPrize": [32]
114
+ }]);
115
+ __decorate([
116
+ TrackedPromise(async () => {
117
+ const { data } = await salla.loyalty.getProgram();
118
+ return normalizeLoyaltyData(data);
119
+ }, { initialData: { prizes: [], prizes_count: 0 } })
120
+ ], SallaLoyaltyPanel$1.prototype, "program", void 0);
121
+ __decorate([
122
+ TrackedPromise(async () => {
123
+ const { data } = await salla.loyalty.getPoints();
124
+ return data.points;
125
+ }, { initialData: null })
126
+ ], SallaLoyaltyPanel$1.prototype, "points", void 0);
127
+ function defineCustomElement$1() {
128
+ if (typeof customElements === "undefined") {
129
+ return;
130
+ }
131
+ const components = ["salla-loyalty-panel", "salla-add-product-button", "salla-badge", "salla-button", "salla-count-down", "salla-list-tile", "salla-loading", "salla-modal", "salla-product-availability", "salla-product-card", "salla-products-slider", "salla-progress-bar", "salla-quick-buy", "salla-reward-action", "salla-reward-card", "salla-reward-details", "salla-reward-exchange", "salla-slider", "salla-tab-content", "salla-tab-header", "salla-tabs", "salla-tel-input"];
132
+ components.forEach(tagName => { switch (tagName) {
133
+ case "salla-loyalty-panel":
134
+ if (!customElements.get(tagName)) {
135
+ customElements.define(tagName, SallaLoyaltyPanel$1);
136
+ }
137
+ break;
138
+ case "salla-add-product-button":
139
+ if (!customElements.get(tagName)) {
140
+ defineCustomElement$m();
141
+ }
142
+ break;
143
+ case "salla-badge":
144
+ if (!customElements.get(tagName)) {
145
+ defineCustomElement$l();
146
+ }
147
+ break;
148
+ case "salla-button":
149
+ if (!customElements.get(tagName)) {
150
+ defineCustomElement$k();
151
+ }
152
+ break;
153
+ case "salla-count-down":
154
+ if (!customElements.get(tagName)) {
155
+ defineCustomElement$j();
156
+ }
157
+ break;
158
+ case "salla-list-tile":
159
+ if (!customElements.get(tagName)) {
160
+ defineCustomElement$i();
161
+ }
162
+ break;
163
+ case "salla-loading":
164
+ if (!customElements.get(tagName)) {
165
+ defineCustomElement$h();
166
+ }
167
+ break;
168
+ case "salla-modal":
169
+ if (!customElements.get(tagName)) {
170
+ defineCustomElement$g();
171
+ }
172
+ break;
173
+ case "salla-product-availability":
174
+ if (!customElements.get(tagName)) {
175
+ defineCustomElement$f();
176
+ }
177
+ break;
178
+ case "salla-product-card":
179
+ if (!customElements.get(tagName)) {
180
+ defineCustomElement$e();
181
+ }
182
+ break;
183
+ case "salla-products-slider":
184
+ if (!customElements.get(tagName)) {
185
+ defineCustomElement$d();
186
+ }
187
+ break;
188
+ case "salla-progress-bar":
189
+ if (!customElements.get(tagName)) {
190
+ defineCustomElement$c();
191
+ }
192
+ break;
193
+ case "salla-quick-buy":
194
+ if (!customElements.get(tagName)) {
195
+ defineCustomElement$b();
196
+ }
197
+ break;
198
+ case "salla-reward-action":
199
+ if (!customElements.get(tagName)) {
200
+ defineCustomElement$a();
201
+ }
202
+ break;
203
+ case "salla-reward-card":
204
+ if (!customElements.get(tagName)) {
205
+ defineCustomElement$9();
206
+ }
207
+ break;
208
+ case "salla-reward-details":
209
+ if (!customElements.get(tagName)) {
210
+ defineCustomElement$8();
211
+ }
212
+ break;
213
+ case "salla-reward-exchange":
214
+ if (!customElements.get(tagName)) {
215
+ defineCustomElement$7();
216
+ }
217
+ break;
218
+ case "salla-slider":
219
+ if (!customElements.get(tagName)) {
220
+ defineCustomElement$6();
221
+ }
222
+ break;
223
+ case "salla-tab-content":
224
+ if (!customElements.get(tagName)) {
225
+ defineCustomElement$5();
226
+ }
227
+ break;
228
+ case "salla-tab-header":
229
+ if (!customElements.get(tagName)) {
230
+ defineCustomElement$4();
231
+ }
232
+ break;
233
+ case "salla-tabs":
234
+ if (!customElements.get(tagName)) {
235
+ defineCustomElement$3();
236
+ }
237
+ break;
238
+ case "salla-tel-input":
239
+ if (!customElements.get(tagName)) {
240
+ defineCustomElement$2();
241
+ }
242
+ break;
243
+ } });
244
+ }
245
+ defineCustomElement$1();
246
+
247
+ const SallaLoyaltyPanel = SallaLoyaltyPanel$1;
248
+ const defineCustomElement = defineCustomElement$1;
249
+
250
+ export { SallaLoyaltyPanel, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SallaLoyaltyPoint extends Components.SallaLoyaltyPoint, HTMLElement {}
4
+ export const SallaLoyaltyPoint: {
5
+ prototype: SallaLoyaltyPoint;
6
+ new (): SallaLoyaltyPoint;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { S as SallaLoyaltyPoint$1, d as defineCustomElement$1 } from './salla-loyalty-point2.js';
5
+
6
+ const SallaLoyaltyPoint = SallaLoyaltyPoint$1;
7
+ const defineCustomElement = defineCustomElement$1;
8
+
9
+ export { SallaLoyaltyPoint, defineCustomElement };