@salla.sa/twilight-components 2.14.402 → 2.14.404

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 (524) 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-BGeIVPOk.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-file-poster-Bt4qeA2f.js → filepond-plugin-file-poster-Dj0y59Ov.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-file-validate-size-C-9PDDsS.js → filepond-plugin-file-validate-size-B8XJT5tN.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-file-validate-type-tA2SP9JO.js → filepond-plugin-file-validate-type-wrMrxOn7.js} +1 -1
  9. package/dist/cjs/{filepond-plugin-image-edit-jcfxLe8v.js → filepond-plugin-image-edit-D3Iapkhv.js} +1 -1
  10. package/dist/cjs/{filepond-plugin-image-exif-orientation-DVDjcytZ.js → filepond-plugin-image-exif-orientation-BbEM_vMd.js} +1 -1
  11. package/dist/cjs/{filepond-plugin-image-preview-CenIamTW.js → filepond-plugin-image-preview-Bz-ITSEo.js} +1 -1
  12. package/dist/cjs/functions-DVMonIet.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-Cuq57q32.js → index-B3JuQExz.js} +61 -26
  16. package/dist/cjs/{index-ZlRhYmjA.js → index-B587wk8w.js} +1 -1
  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 +7 -6
  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-Ef3pfQOZ.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-BgPOS3MC.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-menu/salla-user-menu.js +2 -1
  181. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  182. package/dist/components/calendar.js +11 -0
  183. package/dist/components/cart2.js +11 -0
  184. package/dist/components/functions.js +68 -0
  185. package/dist/components/gift-sharing.js +11 -0
  186. package/dist/components/index.js +2 -2
  187. package/dist/components/iphone-x.js +11 -0
  188. package/dist/components/percentage.js +18 -0
  189. package/dist/components/salla-badge.d.ts +11 -0
  190. package/dist/components/salla-badge.js +9 -0
  191. package/dist/components/salla-badge2.js +112 -0
  192. package/dist/components/salla-booking-field2.js +3 -9
  193. package/dist/components/salla-bottom-alert.js +2 -2
  194. package/dist/components/salla-bullet-delivery.js +1 -1
  195. package/dist/components/salla-cart-coupons.js +1 -1
  196. package/dist/components/salla-cart-summary.js +1 -1
  197. package/dist/components/salla-color-picker2.js +1 -1
  198. package/dist/components/salla-comment-form2.js +1 -1
  199. package/dist/components/salla-comment-item2.js +3 -3
  200. package/dist/components/salla-conditional-fields2.js +1 -1
  201. package/dist/components/salla-count-down2.js +1 -1
  202. package/dist/components/salla-datetime-picker2.js +1 -1
  203. package/dist/components/salla-edit-order-button.d.ts +11 -0
  204. package/dist/components/salla-edit-order-button.js +99 -0
  205. package/dist/components/salla-file-upload2.js +2 -2
  206. package/dist/components/salla-filters-widget2.js +2 -2
  207. package/dist/components/salla-filters.js +1 -1
  208. package/dist/components/salla-gifting.js +4 -10
  209. package/dist/components/salla-hook.js +1 -1
  210. package/dist/components/salla-list-tile2.js +1 -1
  211. package/dist/components/salla-loading2.js +1 -1
  212. package/dist/components/salla-localization-modal.js +1 -1
  213. package/dist/components/salla-loyalty-banner.d.ts +11 -0
  214. package/dist/components/salla-loyalty-banner.js +103 -0
  215. package/dist/components/salla-loyalty-hero.d.ts +11 -0
  216. package/dist/components/salla-loyalty-hero.js +9 -0
  217. package/dist/components/salla-loyalty-hero2.js +43 -0
  218. package/dist/components/salla-loyalty-panel.d.ts +11 -0
  219. package/dist/components/salla-loyalty-panel.js +250 -0
  220. package/dist/components/salla-loyalty-point.d.ts +11 -0
  221. package/dist/components/salla-loyalty-point.js +9 -0
  222. package/dist/components/salla-loyalty-point2.js +259 -0
  223. package/dist/components/salla-loyalty-prize-item.js +1 -1
  224. package/dist/components/salla-loyalty-program.js +233 -70
  225. package/dist/components/salla-loyalty-reward.d.ts +11 -0
  226. package/dist/components/salla-loyalty-reward.js +80 -0
  227. package/dist/components/salla-maintenance-alert.js +1 -1
  228. package/dist/components/salla-map2.js +3 -3
  229. package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
  230. package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
  231. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
  232. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  233. package/dist/components/salla-multiple-bundle-product.js +1 -1
  234. package/dist/components/salla-notification-item2.js +1 -1
  235. package/dist/components/salla-offer-modal.js +3 -14
  236. package/dist/components/salla-order-details.js +1 -1
  237. package/dist/components/salla-order-summary.js +1 -1
  238. package/dist/components/salla-payments.js +2 -2
  239. package/dist/components/salla-placeholder2.js +1 -1
  240. package/dist/components/salla-price-range2.js +2 -2
  241. package/dist/components/salla-product-availability2.js +1 -1
  242. package/dist/components/salla-product-card2.js +5 -5
  243. package/dist/components/salla-product-size-guide.js +2 -2
  244. package/dist/components/salla-quantity-input2.js +1 -1
  245. package/dist/components/salla-quick-buy2.js +1 -1
  246. package/dist/components/salla-quick-order.js +1 -7
  247. package/dist/components/salla-review-card2.js +1 -1
  248. package/dist/components/salla-reviews-page.js +1 -1
  249. package/dist/components/salla-reviews.js +1 -1
  250. package/dist/components/salla-reward-action.d.ts +11 -0
  251. package/dist/components/salla-reward-action.js +9 -0
  252. package/dist/components/salla-reward-action2.js +56 -0
  253. package/dist/components/salla-reward-card.d.ts +11 -0
  254. package/dist/components/salla-reward-card.js +9 -0
  255. package/dist/components/salla-reward-card2.js +44 -0
  256. package/dist/components/salla-reward-details.d.ts +11 -0
  257. package/dist/components/salla-reward-details.js +9 -0
  258. package/dist/components/salla-reward-details2.js +266 -0
  259. package/dist/components/salla-reward-exchange.d.ts +11 -0
  260. package/dist/components/salla-reward-exchange.js +9 -0
  261. package/dist/components/salla-reward-exchange2.js +81 -0
  262. package/dist/components/salla-scopes.js +1 -1
  263. package/dist/components/salla-search.js +5 -5
  264. package/dist/components/salla-skeleton2.js +1 -1
  265. package/dist/components/salla-social-share.js +1 -1
  266. package/dist/components/salla-social.js +1 -1
  267. package/dist/components/salla-tab-content2.js +1 -1
  268. package/dist/components/salla-tab-header2.js +1 -1
  269. package/dist/components/salla-tabs2.js +1 -1
  270. package/dist/components/salla-tel-input2.js +1 -1
  271. package/dist/components/salla-tooltip2.js +1 -1
  272. package/dist/components/salla-user-menu.js +2 -1
  273. package/dist/components/salla-user-settings.js +1 -1
  274. package/dist/components/shipping.js +11 -0
  275. package/dist/components/tag.js +10 -0
  276. package/dist/components/tracked-promise.js +29 -0
  277. package/dist/components/translations.js +292 -0
  278. package/dist/esm/calendar-BkmanTR_.js +11 -0
  279. package/dist/esm/{cancel-BsLF_HK7.js → cancel-8Tsmrwno.js} +2 -2
  280. package/dist/esm/cart2-D1s2kXqL.js +11 -0
  281. package/dist/esm/{check-BsXh13x8.js → check-BZp0rKEO.js} +2 -2
  282. package/dist/esm/{filepond-kua7JWt0.js → filepond-TQwRQEj7.js} +1 -1
  283. package/dist/esm/{filepond-plugin-file-poster-D9ZjwPcg.js → filepond-plugin-file-poster-D6Scyf7M.js} +1 -1
  284. package/dist/esm/{filepond-plugin-file-validate-size-BVMhUXTI.js → filepond-plugin-file-validate-size-DmV95X-a.js} +1 -1
  285. package/dist/esm/{filepond-plugin-file-validate-type-CkwmRCJd.js → filepond-plugin-file-validate-type-BxcIYCpF.js} +1 -1
  286. package/dist/esm/{filepond-plugin-image-edit-YEt9I2Ff.js → filepond-plugin-image-edit-C_dhSLv3.js} +1 -1
  287. package/dist/esm/{filepond-plugin-image-exif-orientation-B5Q7AlDn.js → filepond-plugin-image-exif-orientation-C0v1CD3U.js} +1 -1
  288. package/dist/esm/{filepond-plugin-image-preview-B3J-p8BK.js → filepond-plugin-image-preview-DjsC29px.js} +1 -1
  289. package/dist/esm/functions-CsHz6jUn.js +68 -0
  290. package/dist/{cjs/gift-CJ-3Yw_x.js → esm/gift-CXRKXFgT.js} +2 -4
  291. package/dist/esm/gift-sharing-0-eTJXSD.js +11 -0
  292. package/dist/esm/{index-Qfjn4tFb.js → index-C_WMBvxX.js} +1 -1
  293. package/dist/esm/{index-BYCfehfD.js → index-aDXaoBqI.js} +61 -27
  294. package/dist/esm/iphone-x-CciN5Q_x.js +11 -0
  295. package/dist/esm/loader.js +3 -3
  296. package/dist/esm/{mail-DmgxDvXL.js → mail-DLNIOD9t.js} +2 -2
  297. package/dist/esm/percentage-Bs6JxDkg.js +18 -0
  298. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  299. package/dist/esm/salla-accordion_6.entry.js +5 -5
  300. package/dist/esm/salla-add-product-button_4.entry.js +5 -5
  301. package/dist/esm/salla-advertisement.entry.js +1 -1
  302. package/dist/esm/salla-alert_2.entry.js +3 -3
  303. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  304. package/dist/esm/salla-apps-icons.entry.js +1 -1
  305. package/dist/esm/salla-badge.entry.js +93 -0
  306. package/dist/esm/salla-booking-field_7.entry.js +20 -26
  307. package/dist/esm/salla-bullet-delivery.entry.js +2 -2
  308. package/dist/esm/salla-cart-coupons.entry.js +2 -2
  309. package/dist/esm/salla-cart-item-offers_2.entry.js +4 -4
  310. package/dist/esm/salla-comment-form_8.entry.js +11 -11
  311. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  312. package/dist/esm/salla-contacts.entry.js +3 -3
  313. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  314. package/dist/esm/salla-count-down.entry.js +2 -2
  315. package/dist/esm/salla-custom-fields.entry.js +1 -1
  316. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  317. package/dist/esm/salla-edit-order-button.entry.js +63 -0
  318. package/dist/esm/salla-filters-widget.entry.js +3 -3
  319. package/dist/esm/salla-filters.entry.js +2 -2
  320. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  321. package/dist/esm/salla-gifting.entry.js +7 -13
  322. package/dist/esm/salla-hook.entry.js +2 -2
  323. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  324. package/dist/esm/salla-installment.entry.js +1 -1
  325. package/dist/esm/salla-list-tile.entry.js +2 -2
  326. package/dist/esm/salla-localization-modal.entry.js +2 -2
  327. package/dist/esm/salla-login-modal.entry.js +1 -1
  328. package/dist/esm/salla-loyalty-banner.entry.js +67 -0
  329. package/dist/esm/salla-loyalty-hero_2.entry.js +236 -0
  330. package/dist/esm/salla-loyalty-panel.entry.js +101 -0
  331. package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
  332. package/dist/esm/salla-loyalty-program.entry.js +108 -64
  333. package/dist/esm/salla-loyalty-reward.entry.js +52 -0
  334. package/dist/esm/salla-loyalty.entry.js +3 -3
  335. package/dist/esm/salla-maintenance-alert.entry.js +3 -3
  336. package/dist/esm/salla-map.entry.js +4 -4
  337. package/dist/esm/salla-menu.entry.js +1 -1
  338. package/dist/esm/salla-metadata.entry.js +1 -1
  339. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
  340. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
  341. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  342. package/dist/esm/salla-notification-item.entry.js +2 -2
  343. package/dist/esm/salla-notifications.entry.js +1 -1
  344. package/dist/esm/salla-offer-modal.entry.js +5 -16
  345. package/dist/esm/salla-offer.entry.js +1 -1
  346. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  347. package/dist/esm/salla-order-details-options.entry.js +1 -1
  348. package/dist/esm/salla-order-details.entry.js +2 -2
  349. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  350. package/dist/esm/salla-order-edit.entry.js +1 -1
  351. package/dist/esm/salla-order-summary.entry.js +4 -4
  352. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  353. package/dist/esm/salla-orders.entry.js +1 -1
  354. package/dist/esm/salla-payments.entry.js +3 -3
  355. package/dist/esm/salla-placeholder.entry.js +2 -2
  356. package/dist/esm/salla-price-range.entry.js +3 -3
  357. package/dist/esm/{salla-product-card.entry.js → salla-product-card_2.entry.js} +120 -7
  358. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  359. package/dist/esm/salla-products-list.entry.js +1 -1
  360. package/dist/esm/salla-progress-bar.entry.js +1 -1
  361. package/dist/esm/salla-quick-order.entry.js +6 -12
  362. package/dist/esm/salla-rating-modal.entry.js +3 -3
  363. package/dist/esm/salla-reward-action_4.entry.js +238 -0
  364. package/dist/esm/salla-scopes.entry.js +2 -2
  365. package/dist/esm/salla-search.entry.js +6 -6
  366. package/dist/esm/salla-skeleton.entry.js +2 -2
  367. package/dist/esm/salla-slider.entry.js +1 -1
  368. package/dist/esm/salla-social-share.entry.js +5 -5
  369. package/dist/esm/salla-social.entry.js +2 -2
  370. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  371. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  372. package/dist/esm/salla-tooltip.entry.js +2 -2
  373. package/dist/esm/salla-trust-badges.entry.js +1 -1
  374. package/dist/esm/salla-user-menu.entry.js +7 -6
  375. package/dist/esm/salla-user-profile.entry.js +1 -1
  376. package/dist/esm/salla-user-settings.entry.js +2 -2
  377. package/dist/esm/salla-verify.entry.js +3 -3
  378. package/dist/esm/salla-wallet.entry.js +1 -1
  379. package/dist/esm/shipping-CZRcMGA9.js +11 -0
  380. package/dist/esm/tag-cgSL_BIo.js +10 -0
  381. package/dist/esm/tracked-promise-DftQnHNU.js +29 -0
  382. package/dist/esm/translations-B-Rj6b9M.js +292 -0
  383. package/dist/esm/twilight.js +3 -3
  384. package/dist/esm/user-add-QpH8MU22.js +11 -0
  385. package/dist/esm/{vanilla-picker-B4glVCCp.js → vanilla-picker-D_u7k2C7.js} +1 -1
  386. package/dist/twilight/p-0-eTJXSD.js +4 -0
  387. package/dist/twilight/{p-5381a86d.entry.js → p-00a64a38.entry.js} +1 -1
  388. package/dist/twilight/p-0930f5b4.entry.js +4 -0
  389. package/dist/twilight/p-0d660e1f.entry.js +4 -0
  390. package/dist/twilight/p-14210f63.entry.js +4 -0
  391. package/dist/twilight/{p-65928570.entry.js → p-18e842b3.entry.js} +1 -1
  392. package/dist/twilight/p-196754b9.entry.js +4 -0
  393. package/dist/twilight/p-19801f8a.entry.js +4 -0
  394. package/dist/twilight/{p-90045f50.entry.js → p-19b2712e.entry.js} +1 -1
  395. package/dist/twilight/{p-d9b8aa69.entry.js → p-1d9285ce.entry.js} +1 -1
  396. package/dist/twilight/{p-f8527980.entry.js → p-1ef01404.entry.js} +1 -1
  397. package/dist/twilight/{p-6cf0e5f0.entry.js → p-205a52b1.entry.js} +1 -1
  398. package/dist/twilight/p-20b32fe8.entry.js +4 -0
  399. package/dist/twilight/{p-0cfd333a.entry.js → p-225fe66e.entry.js} +1 -1
  400. package/dist/twilight/p-24b05b1a.entry.js +4 -0
  401. package/dist/twilight/{p-62b949f1.entry.js → p-25b36736.entry.js} +1 -1
  402. package/dist/twilight/{p-5871fc28.entry.js → p-27d8eddd.entry.js} +1 -1
  403. package/dist/twilight/{p-64fe6c2f.entry.js → p-29bc5464.entry.js} +1 -1
  404. package/dist/twilight/{p-ac973857.entry.js → p-36e9a803.entry.js} +1 -1
  405. package/dist/twilight/{p-6f0a262a.entry.js → p-3b0558c4.entry.js} +1 -1
  406. package/dist/twilight/{p-ebb782d3.entry.js → p-41df3651.entry.js} +1 -1
  407. package/dist/twilight/{p-5ca700cd.entry.js → p-44369f67.entry.js} +1 -1
  408. package/dist/twilight/{p-30695c34.entry.js → p-444a8a35.entry.js} +1 -1
  409. package/dist/twilight/{p-15d44ede.entry.js → p-4d27be11.entry.js} +1 -1
  410. package/dist/twilight/{p-60aa25f0.entry.js → p-4f25c507.entry.js} +1 -1
  411. package/dist/twilight/{p-af6a34af.entry.js → p-4feac98b.entry.js} +1 -1
  412. package/dist/twilight/{p-97aad44a.entry.js → p-5863784a.entry.js} +1 -1
  413. package/dist/twilight/p-59e8585a.entry.js +4 -0
  414. package/dist/twilight/{p-3df24aaf.entry.js → p-59eab6b7.entry.js} +1 -1
  415. package/dist/twilight/p-5aabe849.entry.js +4 -0
  416. package/dist/twilight/{p-d112b260.entry.js → p-5e24d043.entry.js} +1 -1
  417. package/dist/twilight/p-61358d11.entry.js +4 -0
  418. package/dist/twilight/{p-ee14a23d.entry.js → p-63d277c4.entry.js} +1 -1
  419. package/dist/twilight/{p-f68e2787.entry.js → p-6752ef5e.entry.js} +1 -1
  420. package/dist/twilight/p-6c573616.entry.js +4 -0
  421. package/dist/twilight/{p-f4060b10.entry.js → p-6d0a0866.entry.js} +1 -1
  422. package/dist/twilight/{p-ea0c19be.entry.js → p-6dfb4b36.entry.js} +1 -1
  423. package/dist/twilight/{p-164ae46f.entry.js → p-7ab5a0a3.entry.js} +1 -1
  424. package/dist/twilight/{p-d130f149.entry.js → p-7bcced89.entry.js} +1 -1
  425. package/dist/twilight/{p-4797dab5.entry.js → p-7e04b708.entry.js} +1 -1
  426. package/dist/twilight/{p-3ed67200.entry.js → p-7ee3d2ce.entry.js} +1 -1
  427. package/dist/twilight/{p-ec873193.entry.js → p-7f5d2abb.entry.js} +1 -1
  428. package/dist/twilight/{p-e5ccdc1d.entry.js → p-81b539fc.entry.js} +1 -1
  429. package/dist/twilight/{p-2a19f553.entry.js → p-8237cece.entry.js} +1 -1
  430. package/dist/twilight/{p-887c9a29.entry.js → p-83880a8d.entry.js} +1 -1
  431. package/dist/twilight/{p-BsLF_HK7.js → p-8Tsmrwno.js} +1 -1
  432. package/dist/twilight/p-8a55874d.entry.js +4 -0
  433. package/dist/twilight/{p-b80c87f3.entry.js → p-8bc3feef.entry.js} +1 -1
  434. package/dist/twilight/{p-011ff091.entry.js → p-8c8c7d88.entry.js} +1 -1
  435. package/dist/twilight/{p-f8183098.entry.js → p-8e5c7dad.entry.js} +1 -1
  436. package/dist/twilight/{p-2edec63c.entry.js → p-913dfdeb.entry.js} +1 -1
  437. package/dist/twilight/{p-9XUl8eNt.js → p-9VcxoAaz.js} +1 -1
  438. package/dist/twilight/p-B-Rj6b9M.js +4 -0
  439. package/dist/twilight/{p-DtXQ785R.js → p-BAAK-Wog.js} +1 -1
  440. package/dist/twilight/{p-Dx9FGzIq.js → p-BVp3vitI.js} +1 -1
  441. package/dist/twilight/{p-BsXh13x8.js → p-BZp0rKEO.js} +1 -1
  442. package/dist/twilight/{p-DPak7cFa.js → p-BaM5mo9g.js} +1 -1
  443. package/dist/twilight/{p-D2bKqo2L.js → p-BhnvZDje.js} +1 -1
  444. package/dist/twilight/p-BkmanTR_.js +4 -0
  445. package/dist/twilight/p-Bs6JxDkg.js +4 -0
  446. package/dist/twilight/{p-a8mIwFp8.js → p-BvzXDYao.js} +1 -1
  447. package/dist/twilight/{p-CVG84YNJ.js → p-Bzuww4Jp.js} +1 -1
  448. package/dist/twilight/p-CVVRdz9l.js +4 -0
  449. package/dist/twilight/{p-BChI23pG.js → p-CXRKXFgT.js} +1 -1
  450. package/dist/twilight/p-CZRcMGA9.js +4 -0
  451. package/dist/twilight/p-CciN5Q_x.js +4 -0
  452. package/dist/twilight/p-D1s2kXqL.js +4 -0
  453. package/dist/twilight/{p-DmgxDvXL.js → p-DLNIOD9t.js} +1 -1
  454. package/dist/twilight/{p-C45ROGL4.js → p-DboJwcoy.js} +1 -1
  455. package/dist/twilight/{p-Wts3eSQu.js → p-Jii8QiXD.js} +1 -1
  456. package/dist/twilight/p-QpH8MU22.js +4 -0
  457. package/dist/twilight/p-UAJe1KFk.js +4 -0
  458. package/dist/twilight/{p-BYCfehfD.js → p-aDXaoBqI.js} +2 -2
  459. package/dist/twilight/{p-1819894b.entry.js → p-ae8d11a1.entry.js} +1 -1
  460. package/dist/twilight/p-b955177d.entry.js +4 -0
  461. package/dist/twilight/{p-f4c6434f.entry.js → p-bb588e20.entry.js} +1 -1
  462. package/dist/twilight/{p-7c78c1a5.entry.js → p-bbb92919.entry.js} +1 -1
  463. package/dist/twilight/{p-4e941f6a.entry.js → p-bd7963b8.entry.js} +1 -1
  464. package/dist/twilight/p-beb851a0.entry.js +4 -0
  465. package/dist/twilight/{p-32a21d3e.entry.js → p-c5ca258f.entry.js} +1 -1
  466. package/dist/twilight/{p-8d9b1865.entry.js → p-c5ff4012.entry.js} +1 -1
  467. package/dist/twilight/p-c84796ed.entry.js +4 -0
  468. package/dist/twilight/{p-28fba512.entry.js → p-ccde5f93.entry.js} +1 -1
  469. package/dist/twilight/{p-e23cc9c1.entry.js → p-cf65581e.entry.js} +1 -1
  470. package/dist/twilight/{p-99aa0a59.entry.js → p-cfa7e6f8.entry.js} +1 -1
  471. package/dist/twilight/p-cgSL_BIo.js +4 -0
  472. package/dist/twilight/{p-0b265c17.entry.js → p-d19423c8.entry.js} +1 -1
  473. package/dist/twilight/{p-c5a12dde.entry.js → p-d1b2e25d.entry.js} +1 -1
  474. package/dist/twilight/p-d39a4239.entry.js +4 -0
  475. package/dist/twilight/{p-156660b7.entry.js → p-d5d04465.entry.js} +1 -1
  476. package/dist/twilight/p-d79993a2.entry.js +4 -0
  477. package/dist/twilight/{p-67f20b74.entry.js → p-dd732fd5.entry.js} +1 -1
  478. package/dist/twilight/{p-140f5001.entry.js → p-e0da92db.entry.js} +1 -1
  479. package/dist/twilight/{p-63778992.entry.js → p-eadcfa35.entry.js} +1 -1
  480. package/dist/twilight/p-eb4c87d2.entry.js +4 -0
  481. package/dist/twilight/{p-d93e90fb.entry.js → p-ec130506.entry.js} +1 -1
  482. package/dist/twilight/{p-ba128435.entry.js → p-ee7d1c8c.entry.js} +1 -1
  483. package/dist/twilight/{p-c5ab5c1b.entry.js → p-f180a4d2.entry.js} +1 -1
  484. package/dist/twilight/{p-955aab42.entry.js → p-f32d462e.entry.js} +1 -1
  485. package/dist/twilight/{p-5fe6bb62.entry.js → p-f414c3e8.entry.js} +1 -1
  486. package/dist/twilight/{p-72487957.entry.js → p-f5a225fb.entry.js} +1 -1
  487. package/dist/twilight/{p-24b86104.entry.js → p-f6f154f2.entry.js} +1 -1
  488. package/dist/twilight/{p-2f060d69.entry.js → p-f6f860d3.entry.js} +1 -1
  489. package/dist/twilight/{p-09fcfe8f.entry.js → p-fd486a62.entry.js} +1 -1
  490. package/dist/twilight/{p-cd9f175a.entry.js → p-fdebb964.entry.js} +1 -1
  491. package/dist/twilight/{p-f136e41b.entry.js → p-fe008cc5.entry.js} +1 -1
  492. package/dist/twilight/twilight.esm.js +1 -1
  493. package/dist/types/components/salla-badge/salla-badge.d.ts +15 -0
  494. package/dist/types/components/salla-edit-order-button/salla-edit-order-button.d.ts +25 -0
  495. package/dist/types/components/salla-loyalty-program/functions.d.ts +67 -0
  496. package/dist/types/components/salla-loyalty-program/interfaces.d.ts +125 -0
  497. package/dist/types/components/salla-loyalty-program/salla-loyalty-banner.d.ts +20 -0
  498. package/dist/types/components/salla-loyalty-program/salla-loyalty-hero.d.ts +15 -0
  499. package/dist/types/components/salla-loyalty-program/salla-loyalty-panel.d.ts +45 -0
  500. package/dist/types/components/salla-loyalty-program/salla-loyalty-point.d.ts +11 -0
  501. package/dist/types/components/salla-loyalty-program/salla-loyalty-program.d.ts +25 -8
  502. package/dist/types/components/salla-loyalty-program/salla-loyalty-reward.d.ts +13 -0
  503. package/dist/types/components/salla-loyalty-program/salla-reward-action.d.ts +9 -0
  504. package/dist/types/components/salla-loyalty-program/salla-reward-card.d.ts +17 -0
  505. package/dist/types/components/salla-loyalty-program/salla-reward-details.d.ts +22 -0
  506. package/dist/types/components/salla-loyalty-program/salla-reward-exchange.d.ts +11 -0
  507. package/dist/types/components/salla-loyalty-program/translations.d.ts +1 -0
  508. package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -1
  509. package/dist/types/components.d.ts +341 -0
  510. package/package.json +6 -5
  511. package/dist/cjs/salla-products-slider.cjs.entry.js +0 -121
  512. package/dist/esm/salla-products-slider.entry.js +0 -119
  513. package/dist/twilight/p-078c884b.entry.js +0 -4
  514. package/dist/twilight/p-336f0f06.entry.js +0 -4
  515. package/dist/twilight/p-39ad489e.entry.js +0 -4
  516. package/dist/twilight/p-470433cb.entry.js +0 -4
  517. package/dist/twilight/p-52192d08.entry.js +0 -4
  518. package/dist/twilight/p-54c7e570.entry.js +0 -4
  519. package/dist/twilight/p-a0171740.entry.js +0 -4
  520. package/dist/twilight/p-c65832b1.entry.js +0 -4
  521. package/dist/twilight/p-d3a119aa.entry.js +0 -4
  522. package/dist/twilight/p-d4f3797c.entry.js +0 -4
  523. package/dist/twilight/p-fa3ceb7c.entry.js +0 -4
  524. package/dist/twilight/p-fa44f874.entry.js +0 -4
@@ -0,0 +1,238 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-aDXaoBqI.js';
5
+ import { c as closeModals, b as brand_path, f as formattedPointsJsx } from './functions-CsHz6jUn.js';
6
+ import { S as SIGift } from './gift-CXRKXFgT.js';
7
+ import { S as SITag } from './tag-cgSL_BIo.js';
8
+ import { S as SICheck } from './check-BZp0rKEO.js';
9
+ import { S as SICancel } from './cancel-8Tsmrwno.js';
10
+ import { T as TrackedPromise } from './tracked-promise-DftQnHNU.js';
11
+
12
+ const sallaLoyaltyProgramCss$3 = "";
13
+
14
+ const SallaRewardAction = class {
15
+ constructor(hostRef) {
16
+ registerInstance(this, hostRef);
17
+ this.actionClick = createEvent(this, "actionClick");
18
+ this.isShopNow = (prize) => {
19
+ if (!(salla.config.get('store.features') || []).includes('loyalty-system-v2')) {
20
+ return false;
21
+ }
22
+ return prize.key?.toLowerCase() === 'free_product';
23
+ };
24
+ this.handleClick = (e) => {
25
+ if (salla.config.isGuest()) {
26
+ closeModals(() => salla.event.dispatch('login::open'));
27
+ return;
28
+ }
29
+ this.actionClick.emit(e);
30
+ };
31
+ }
32
+ render() {
33
+ return (h("div", { key: '0d02cecaae79cf166555514890fbf6192e1cd438', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
34
+ 's-loyalty-program-rewards-action-base': true,
35
+ 's-loyalty-program-rewards-action-on': true,
36
+ } }, salla.lang.get('pages.loyalty_program.shop_now'))) : (h("button", { onClick: this.handleClick, class: {
37
+ 's-loyalty-program-rewards-action-base': true,
38
+ 's-loyalty-program-rewards-action-on': true,
39
+ } }, salla.lang.get('pages.loyalty_program.redeem_reward')))));
40
+ }
41
+ };
42
+ SallaRewardAction.style = sallaLoyaltyProgramCss$3;
43
+
44
+ const sallaLoyaltyProgramCss$2 = "";
45
+
46
+ const SallaRewardCard = class {
47
+ constructor(hostRef) {
48
+ registerInstance(this, hostRef);
49
+ this.areaClick = createEvent(this, "areaClick");
50
+ this.actionClick = createEvent(this, "actionClick");
51
+ }
52
+ render() {
53
+ return (h(Host, { key: '0bd68f7cab478d78db8b083ea11c2090d02aab59', class: "s-loyalty-program-reward-host" }, h("div", { key: 'ef4e857bc55a12e50434c1dda2160674ead3b4e6', class: "s-loyalty-program-reward-container" }, h("div", { key: 'a6a7ccdf50ee296b48c05a01f241192c0f77f30c', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: 'e4f55cda0d9f36af95ce101c987819d30b9ad143', class: "s-loyalty-program-reward-img" }, h("img", { key: '450fe8914dcf809005d4707074cb305a59990e81', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: '7828210caf948e057055c53dc64af45426d7977d', class: "s-loyalty-program-reward-content" }, h("div", { key: '2f39695bd03884f6988b44de68964cdfdb75e0bb', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'e9e1dda91aa414d58caaff52a4bb667a1fc1b96f', size: "xs" }, h("span", { key: '7baa15af74cde5a6e744667566377417233d0848', innerHTML: SIGift }), h("span", { key: '6bd7f77ec736a6f0fd9de0c69907cc05e87829b0', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '269da0571a6533ca6621792a3891f4b9d132d337', class: "s-loyalty-program-reward-title" }, h("span", { key: '06c40cc994031777565d43c5259eefb3311dea98' }, this.prize.group_title)), h("div", { key: 'e81936c993e83f96f4143278ec82391135778383', class: "s-loyalty-program-reward-name" }, h("div", { key: '752e5e6fbc5de60f7047913d6b8bf79e597fd407', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: 'a83282f66ab42ee0fa055cf9bf7802af1615e8f0', class: "p-4" }, h("slot", { key: '7186f03318c907b3e8ec15e30322d8bf787d74f8', name: "action" }, h("button", { key: '7b1a13734d2c230dd32d744a42e82fdb1c148660', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
54
+ }
55
+ };
56
+ SallaRewardCard.style = sallaLoyaltyProgramCss$2;
57
+
58
+ const sallaLoyaltyProgramCss$1 = "";
59
+
60
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
61
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
62
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
63
+ r = Reflect.decorate(decorators, target, key, desc);
64
+ else
65
+ for (var i = decorators.length - 1; i >= 0; i--)
66
+ if (d = decorators[i])
67
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
68
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
69
+ };
70
+ const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
71
+ const SallaRewardDetails = class {
72
+ constructor(hostRef) {
73
+ registerInstance(this, hostRef);
74
+ this.actionClick = createEvent(this, "actionClick");
75
+ this.refreshKey = Date.now();
76
+ }
77
+ handlePrizeChange() {
78
+ this.refreshKey = Date.now();
79
+ }
80
+ componentWillLoad() {
81
+ if (this.category.status === 'idle') {
82
+ this.category();
83
+ }
84
+ if (this.brand.status === 'idle') {
85
+ this.brand();
86
+ }
87
+ }
88
+ getTermsAndConditions() {
89
+ const minimumAmount = Number((this.prize.order_minimum_amount || '0').split('.')[0]) || 0;
90
+ const maximumAmount = Number((this.prize.coupon_maximum_amount || '0').split('.')[0]) || 0;
91
+ const termsAndConditions = [];
92
+ if (minimumAmount) {
93
+ termsAndConditions.push([
94
+ salla.lang.get('pages.loyalty_program.order_minimum_amount'),
95
+ `${minimumAmount} ${salla.lang.get(`currency.${(salla.config.get('user.currency_code') || '').toLowerCase()}`)}`,
96
+ ]);
97
+ }
98
+ if (maximumAmount) {
99
+ termsAndConditions.push([
100
+ salla.lang.get('pages.loyalty_program.coupon_maximum_amount'),
101
+ `${maximumAmount} ${salla.lang.get(`currency.${(salla.config.get('user.currency_code') || '').toLowerCase()}`)}`,
102
+ ]);
103
+ }
104
+ return termsAndConditions;
105
+ }
106
+ findItems(ids) {
107
+ if (!ids?.length)
108
+ return [];
109
+ const brands = this.brand.data;
110
+ const categories = this.category.data;
111
+ return brands.concat(categories).filter(i => ids.includes(i.id));
112
+ }
113
+ getIncludedItems(items, ids) {
114
+ return items?.length ? items : this.findItems(ids);
115
+ }
116
+ getProductIds(ids) {
117
+ return ids || [];
118
+ }
119
+ getItemsMarkers(key) {
120
+ if (key === 'both') {
121
+ return this.getItemsMarkers('included') + this.getItemsMarkers('excluded');
122
+ }
123
+ return [
124
+ this.prize[`${key}_product_ids`]?.length || 0,
125
+ this.prize[`${key}_brand_ids`]?.length || 0,
126
+ this.prize[`${key}_category_ids`]?.length || 0,
127
+ ].map(Boolean).map(Number).join('');
128
+ }
129
+ getItemsMarkersText() {
130
+ // Check if prize type is free_shipping
131
+ if (this.prize.key === 'FREE_SHIPPING') {
132
+ return salla.lang.get('pages.loyalty_program.redeem_for_free_shipping');
133
+ }
134
+ switch (this.getItemsMarkers('included')) {
135
+ case '001':
136
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_products');
137
+ case '010':
138
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_brands');
139
+ case '100':
140
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_categories');
141
+ case '000':
142
+ return salla.lang.get('pages.loyalty_program.redeem_on_all_products');
143
+ default:
144
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_products');
145
+ }
146
+ }
147
+ getCategoriesJsx(items, title) {
148
+ return !items.length ? '' : h("div", { class: c('reward-details-categories-wrapper') }, h("div", { class: c('reward-details-categories') }, h("h2", { class: c('reward-details-categories-heading') }, title), h("ul", { class: c('reward-details-categories-list') }, items.map((category) => (h("li", null, h("a", { href: category.url || category.lingual_urls?.[0], class: c('reward-details-categories-item') }, h("span", { innerHTML: SITag }), h("span", { class: c('reward-details-categories-item-content') }, category.name))))))));
149
+ }
150
+ getBrandsJsx(items, title) {
151
+ return !items.length ? '' : h("div", { class: c('reward-details-items-brands', 'slider-arrows-edges') }, h("div", null, h("h2", null, title), h("salla-slider", { id: `brands-${items.map(({ id }) => id).join('-')}`, "slider-config": '{"loop":false,"slidesPerView":"auto","spaceBetween":10}' }, h("div", { slot: "items" }, items.map((brand) => (h("a", { href: salla.url.get(brand_path(brand)), class: c('reward-brand-item') }, h("img", { src: brand.logo || salla.url.cdn('images/s-empty.png'), alt: "" }))))))));
152
+ }
153
+ getProductsJsx(items, title) {
154
+ return !items?.length ? '' : h("div", { class: "s-loyalty-program-reward-details-items-products s-loyalty-program-slider-arrows-edges" }, h("h2", null, title), h("salla-products-slider", { source: "selected", sourceValue: JSON.stringify(items), "slider-config": '{"loop":false,"slidesPerView":"auto","freeMode":true,"spaceBetween":0,"breakpoints":{"768":{"slidesPerView":3,"freeMode":false,"speed":300}}}' }));
155
+ }
156
+ render() {
157
+ const termsAndConditions = this.getTermsAndConditions();
158
+ return (h("div", { key: '3140551c4bcc64429a2f820ae9f915f19f6d3a77', class: "s-loyalty-program-reward-modal" }, h("div", { key: 'b193833caee8153c71b6c9f6af95358503afa103', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '0567985c10193a8eba6570bda8abf4aefa75657a', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
159
+ : h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
160
+ 'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
161
+ 'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
162
+ } })), this.prize.name)), h("div", { key: '66bb25eadb6c640b4c661b6b3e227b4b8ef4f40d', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '1cc1c1c121240fab3ccd32bce176deec378ef3fd', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '81f43a0c61ed0889810efa2cf4447477c2b08094', class: "s-loyalty-program-aspect-container" }, h("img", { key: 'eb09214a175e8484dfc6c870492e49e3e28cbe42', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: '2ce3001371ab69c73453957f6dfb066710d88edd', size: "sm", bg: "light" }, h("span", { key: '459b58a09e6f59314c83f7d1a5baf6c559f02bd1', innerHTML: SIGift }), h("span", { key: '1cd0a85c1d2b9cdf1430e90bd12bbe83f1b05813', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: 'a25d46f6a961844efd8f920bf5e4e1fd836cb460', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '4cf3e9e123993f6be8fb67df243156996b2a6fdd', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: 'd658e9aea4384bc89a7a4cae956e90844092894a', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
163
+ h("salla-tab-header", { slot: "header", name: "included", style: {
164
+ display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
165
+ } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICheck }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
166
+ h("salla-tab-content", { slot: "content", name: "included" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.categories, this.prize.included_category_ids), salla.lang.get('pages.loyalty_program.included_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.brands, this.prize.included_brand_ids), salla.lang.get('pages.loyalty_program.included_brands')), this.getProductsJsx(this.getProductIds(this.prize.included_product_ids), salla.lang.get('pages.loyalty_program.included_products')))),
167
+ ], this.getItemsMarkers('excluded') === '000' ? '' : [
168
+ h("salla-tab-header", { slot: "header", name: "excluded", style: {
169
+ display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
170
+ } }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
171
+ h("salla-tab-content", { slot: "content", name: "excluded" }, 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')))),
172
+ ]))), h("salla-reward-action", { key: '3b355609aa30f12d0fae5a95681d19b62193113d', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
173
+ }
174
+ static get watchers() { return {
175
+ "prize": ["handlePrizeChange"]
176
+ }; }
177
+ };
178
+ __decorate$1([
179
+ TrackedPromise(async () => {
180
+ return (await salla.product.api.categories()).data;
181
+ }, { initialData: [] })
182
+ ], SallaRewardDetails.prototype, "category", void 0);
183
+ __decorate$1([
184
+ TrackedPromise(async () => {
185
+ return (await salla.api.request('/brands')).data;
186
+ }, { initialData: [] })
187
+ ], SallaRewardDetails.prototype, "brand", void 0);
188
+ SallaRewardDetails.style = sallaLoyaltyProgramCss$1;
189
+
190
+ const sallaLoyaltyProgramCss = "";
191
+
192
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
193
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
194
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
195
+ r = Reflect.decorate(decorators, target, key, desc);
196
+ else
197
+ for (var i = decorators.length - 1; i >= 0; i--)
198
+ if (d = decorators[i])
199
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
200
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
201
+ };
202
+ const SallaRewardExchange = class {
203
+ constructor(hostRef) {
204
+ registerInstance(this, hostRef);
205
+ this.productId = null;
206
+ }
207
+ reset(timeout = 0) {
208
+ setTimeout(() => {
209
+ closeModals();
210
+ }, timeout);
211
+ }
212
+ async handleConfirm() {
213
+ try {
214
+ await this.exchange(this.prize.id, null, this.productId);
215
+ this.reset(300);
216
+ }
217
+ catch (error) {
218
+ salla.logger.error(error);
219
+ // Do NOT close the modal; let the error state render so the user sees feedback.
220
+ }
221
+ }
222
+ handleCancel() {
223
+ this.reset(0);
224
+ }
225
+ render() {
226
+ return (h(Host, { key: 'b5b9a966f28520c30917887621e2358fdb9530be' }, h("div", { key: '4e87e3d0530a7fca6db1bf09fd1b059b85e56f10', class: "s-loyalty-program-exchange-heading" }, h("div", { key: '73b9aa3106336e8cdc81ce78371b3efc47b5c569', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '0e6c488afa39784a40bfed2f1d180fc48664a81a', innerHTML: SIGift })), h("h2", { key: '7740e27318379264905ff695e0c0cf13b54800d0' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '81a7ba841e3e26c7c9fc1054745ad163cc347db7' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: '0f5d68dbe2de661c2aad02d237d3098349e94120' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: '1daa10a1843938166c6834d0369edfe7e06dd54e' }, "(", this.prize.name, ")"))), h("div", { key: '42384b2df2cbb3775ccc6f7a017d9ef9f770baf5', class: "s-loyalty-program-exchange-btns" }, h("button", { key: 'b90b95adae80a9bcb47c0d039ea8bd9399ee5bc5', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: 'c108973d9729265fb35a0d0fa781d525388a4c12', style: {
227
+ opacity: this.exchange.status !== 'pending' ? '1' : '0',
228
+ } }, salla.lang.get('common.elements.confirm')), h("span", { key: '302a31b9095d153b4662ada13d45cdb6b15664ad', class: "s-loyalty-program-exchange-loading", style: {
229
+ opacity: this.exchange.status === 'pending' ? '1' : '0',
230
+ } }, h("salla-loading", { key: '3e305da32d469f6ec874c128a1fd68356280dc69', color: "primary", size: 24 }))), h("button", { key: '466f8cfea3e370bce9466e9571f4567fb5a7966d', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
231
+ }
232
+ };
233
+ __decorate([
234
+ TrackedPromise(async (...args) => await salla.loyalty.exchange(...args))
235
+ ], SallaRewardExchange.prototype, "exchange", void 0);
236
+ SallaRewardExchange.style = sallaLoyaltyProgramCss;
237
+
238
+ export { SallaRewardAction as salla_reward_action, SallaRewardCard as salla_reward_card, SallaRewardDetails as salla_reward_details, SallaRewardExchange as salla_reward_exchange };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host } from './index-aDXaoBqI.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
 
7
7
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -158,7 +158,7 @@ const SallaScopees = class {
158
158
  return salla.onReady();
159
159
  }
160
160
  render() {
161
- return (h(Host, { key: '0f85dc5ec5bed28a4087226cff76eb63c70b83a4' }, h("salla-modal", { key: 'cdb992873dfac3920a9884ab088679687833118a', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
161
+ return (h(Host, { key: '496e4e55483fee5b91818a760adb95d606b0d146' }, 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 ?
162
162
  h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
163
163
  :
164
164
  [h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-aDXaoBqI.js';
5
5
  import { S as Search } from './search-BscTeWDc.js';
6
6
  import { H as Helper } from './Helper-DFMXF2_h.js';
7
7
  import './anime.es-CgtvEd63.js';
@@ -129,10 +129,10 @@ const SallaSearch = class {
129
129
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
130
130
  }
131
131
  render() {
132
- const searchContent = (h("div", { key: 'a403e7257b398cce5c26c61f55e143775575bb7b', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '3c3d523d181ec1c7b4e9d9e05988d1d2a4e0362d', class: "s-search-input-wrapper" }, h("span", { key: '86a8bcf0ab96c8818fc940d7ed4cfd70429ee2c1', class: "s-search-icon-wrap" }, h("span", { key: '0bacbc11b2b9c63c2167e79f46c73cb80804869a', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: '766e7ae8ce9c2bdcf984d76c47a234ba5dc60d43', 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: {
132
+ const searchContent = (h("div", { key: 'c1ac55ddb93b42cb84c30c0248be8949afef39df', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: '6bdecb7d3511a5c97b4bb52860dcd050dc943573', class: "s-search-input-wrapper" }, h("span", { key: '93a0cd39aef09955e72657ba32a7ac1d4c6bdb7b', class: "s-search-icon-wrap" }, h("span", { key: '435ca7f22ba4d93eafe9fde32a7e62a55340e6a8', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), 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: {
133
133
  height: this.height + 'px',
134
134
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
135
- } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '307c8fc64860af188bf1f1ba6eea480c357ac46d', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
135
+ } }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '9fc770575d0deeafda11f85aeb420a66cc2c2f64', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
136
136
  's-search-product': true,
137
137
  's-search-product-not-available': !product.is_available,
138
138
  }, innerHTML: this.productSlot
@@ -141,9 +141,9 @@ const SallaSearch = class {
141
141
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
142
142
  ? salla.money(product.regular_price)
143
143
  : '')
144
- .replace(/\{image\}/g, product.image.url) }))), h("p", { key: 'b0971a0eb27a98f2e4e53da6462b0a8fa1b7fa42', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
145
- const modalContent = (h("salla-modal", { key: '9394500f337c06afad44d5202e8e84dc2feb317f', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
146
- const placeholderContent = (h("div", { key: 'f092b80ca35842209eae7b1ef143619d2a718229', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '020d98faaa926578057e49734d7f11077a0b933b', class: "s-search-input-wrapper" }, h("span", { key: '44b6f78b74952d562efcb6dcd652432b5b1a7053', class: "s-search-icon-wrap" }, h("span", { key: 'd4e4166510cc4d38e53668f0f4f3995861a65d24', class: "s-search-icon", innerHTML: Search })), h("button", { key: '615e5dd776936c182fa7f50efaebbe5fa0fb7c61', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
144
+ .replace(/\{image\}/g, product.image.url) }))), h("p", { key: '31de1c46ae9ea8dce146f7a5e3b10eb61781a5e9', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
145
+ const modalContent = (h("salla-modal", { key: '14efe319f3f844b2f3a1759a7f860b4dc3652570', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
146
+ const placeholderContent = (h("div", { key: 'affda57d4ae84ea36e215bc17bc328b9f1a5a8de', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '51f3e2afd425459365887b4e7c1ef2da4433dbe8', class: "s-search-input-wrapper" }, h("span", { key: '79ed8316f06548aecb3a76384835e64e72330917', class: "s-search-icon-wrap" }, h("span", { key: 'ba690f7b674dac90062ed2328c6396933c4ac872', class: "s-search-icon", innerHTML: Search })), h("button", { key: 'ac57df999004b21e1469978f9963aceded386d9d', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
147
147
  height: this.height + 'px',
148
148
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
149
149
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host } from './index-aDXaoBqI.js';
5
5
 
6
6
  const sallaSkeletonCss = ":host{display:block}";
7
7
 
@@ -26,7 +26,7 @@ const SallaSkeleton = class {
26
26
  's-skeleton-item': true,
27
27
  's-skeleton-item-circular': this.type == 'circle',
28
28
  };
29
- return (h(Host, { key: '366d9fcd96b22edc9b5cdc07f8d8367fdbc5c574', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: 'b4ad9adc7d8ce69aeaeaa1cf287726fa69018730', class: classes }, "\u00A0")));
29
+ return (h(Host, { key: '8f574f21608fb5177c8a5d7e0d84d1c1065e49a4', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '6c86b14ec10c5ccea8f336ab87fb433c49104149', class: classes }, "\u00A0")));
30
30
  }
31
31
  };
32
32
  SallaSkeleton.style = sallaSkeletonCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-aDXaoBqI.js';
5
5
  import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
6
6
 
7
7
  /**
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-aDXaoBqI.js';
5
5
  import { a as anime } from './anime.es-CgtvEd63.js';
6
6
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
7
- import { M as MailIcon } from './mail-DmgxDvXL.js';
8
- import { C as Cancel } from './cancel-BsLF_HK7.js';
7
+ import { S as SIMail } from './mail-DLNIOD9t.js';
8
+ import { S as SICancel } from './cancel-8Tsmrwno.js';
9
9
 
10
10
  var copy_link = `<!-- Generated by IcoMoon.io -->
11
11
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -47,7 +47,7 @@ const SallaSocialShare = class {
47
47
  this.platformIcons = [{ icon: whatsapp, name: Socials.WHATSAPP }, {
48
48
  icon: facebook,
49
49
  name: Socials.FACEBOOK
50
- }, { icon: twitter, name: Socials.TWITTER }, { icon: MailIcon, name: Socials.EMAIL }, {
50
+ }, { icon: twitter, name: Socials.TWITTER }, { icon: SIMail, name: Socials.EMAIL }, {
51
51
  icon: copy_link,
52
52
  name: Socials.COPY_LINK
53
53
  }];
@@ -148,7 +148,7 @@ const SallaSocialShare = class {
148
148
  window.a2a?.init('page');
149
149
  }
150
150
  render() {
151
- return (h("div", { key: 'e9f050078f7be9b5b000d4703e0e2f2394c7860c', class: "s-social-share-wrapper" }, h("slot", { key: 'aec685219966868f2332a9060b94346fa361b53c', name: 'widget' }, h("salla-button", { key: '4daf053aa6594659c17df827555633e0f95f8007', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '1d85fcea2fbc80c2b9c7d70cfc86263dcd109a82', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: '42cf458f62c4eac7509f66ba3a8a4e209698c392', 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 => {
151
+ return (h("div", { key: '49da8d5e8066550792640f4677eb43f762fbecbe', class: "s-social-share-wrapper" }, h("slot", { key: 'ee7ef614fe373217829caa31f0eb9526e6695d93', name: 'widget' }, h("salla-button", { key: '53c41b4185b19a08cdadc4ce30baed08dd95d638', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'dae3c709e895a8e023bfc8aff490e52ea0e8e19a', innerHTML: this.opened ? SICancel : ShareAlt }))), 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 => {
152
152
  return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
153
153
  if (icon.name === platform) {
154
154
  return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-aDXaoBqI.js';
5
5
  import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
6
6
 
7
7
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -55,7 +55,7 @@ const SallaSocial = class {
55
55
  }
56
56
  render() {
57
57
  const linksArray = this.getLinksArray();
58
- return (h(Host, { key: '68bd517787b0ebddf10cc44d9dd8b21c4185ca24' }, h("ul", { key: '77fcfb2b61014f53880bd8f833780eaaac9db5d7', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
58
+ return (h(Host, { key: 'a0b31aa06db07b8b4018b8d178dc27726eddb43e' }, h("ul", { key: 'b758199092ddf7c0e0b384f3f118d00c239104dd', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
59
59
  .replace(/\{icon\}/g, this.iconsList[link.type])
60
60
  .replace(/\{type\}/g, link.type)
61
61
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, c as createEvent, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, c as createEvent, a as getElement } from './index-aDXaoBqI.js';
5
5
 
6
6
  const sallaTabContentCss = "";
7
7
 
@@ -31,7 +31,7 @@ const SallaTabContent = class {
31
31
  's-tabs-content': true,
32
32
  's-tabs-content-selected': this.isSelected
33
33
  };
34
- return (h("div", { key: '13737e2a7a7bce59e8ddc38b3b4d5159a4aa67be', class: classes }, h("slot", { key: '56dbae26f78adaf732311a06ec7f9f70e3d4eb2d' })));
34
+ return (h("div", { key: 'f2deb9c1508aafe3aff5352094cccc97bdcd42ef', class: classes }, h("slot", { key: '460588864047444acdb06e757a7124d28935c24b' })));
35
35
  }
36
36
  };
37
37
  SallaTabContent.style = sallaTabContentCss;
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
90
90
  's-tabs-active': this.isSelected,
91
91
  };
92
92
  return [
93
- h("div", { key: '4c2cba9724d8f130fbf44e50f4dcb27e5a2b4a7c', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: 'e03cda2c201eef0f33ea21e99144b70beee4c998' })),
93
+ h("div", { key: '153247ab5a7c73819ccc506a45e60b9c084c391c', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '417a3ae0c0aec8a965b5d3be9a4f917f290d2109' })),
94
94
  ];
95
95
  }
96
96
  };
@@ -143,7 +143,7 @@ const SallaTabs = class {
143
143
  }
144
144
  render() {
145
145
  return [
146
- h("div", { key: '49df0b08c12cc094afbcbdc106b02a9766a5b8e4', class: "s-tabs" }, h("div", { key: '02979fdfce4e6ada2caafd6a165b241b885e05b0', class: "s-tabs-header" }, h("slot", { key: '9919372225fd8be367648689337476f9dacc4ca4', name: "header" })), h("div", { key: '021f811beb02ebb93c788f989dfc39d994261caa', class: "s-tabs-content-wrapper" }, h("slot", { key: '5a5670d0be835306dfc29771b58d022bd092d057', name: "content" })))
146
+ h("div", { key: 'ae50836f68ee92459720fa9bf00d73848d849627', class: "s-tabs" }, h("div", { key: '55e8186e80381902269f9bad5738d9a555f71d37', class: "s-tabs-header" }, h("slot", { key: '46ce3e1ea75f92165b3d5ee7c16f19f8693f6d31', name: "header" })), h("div", { key: '3669e643abb37ed2edca73fc0577822a3f7fbb90', class: "s-tabs-content-wrapper" }, h("slot", { key: '2cf8b79f44630e21103991325ceff2cd3a4019ba', name: "content" })))
147
147
  ];
148
148
  }
149
149
  get host() { return getElement(this); }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host } from './index-aDXaoBqI.js';
5
5
 
6
6
  var DiscountType;
7
7
  (function (DiscountType) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, a as getElement } from './index-aDXaoBqI.js';
5
5
 
6
6
  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}";
7
7
 
@@ -31,7 +31,7 @@ const SallaTooltip = class {
31
31
  }
32
32
  render() {
33
33
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
34
- return (h("div", { key: '45009eb13b1d0a1eb045b3af83c951e0710f2ec7', class: "s-tooltip-container" }, h("div", { key: 'd0f004819d8d235e79544d5bd55dc58f5991decd', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
34
+ return (h("div", { key: 'e5e8f78265e0abb1d4130fd084573c6cff1ecb2c', class: "s-tooltip-container" }, h("div", { key: '4dc98906dfd28c6e2d97b51329c07046eb15179c', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
35
35
  }
36
36
  get el() { return getElement(this); }
37
37
  };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host } from './index-aDXaoBqI.js';
5
5
 
6
6
  const sallaTrustBadgesCss = "";
7
7
 
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host, a as getElement } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host, a as getElement } from './index-aDXaoBqI.js';
5
5
  import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
6
6
  import { B as BellRing } from './bell-ring-D3mWkc-3.js';
7
7
  import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
8
8
  import { W as WishListIcon } from './star-ZT7ehBBk.js';
9
- import { C as Cancel } from './cancel-BsLF_HK7.js';
9
+ import { S as SICancel } from './cancel-8Tsmrwno.js';
10
10
  import { S as Star } from './star2-D4oPi1Ov.js';
11
- import { l as loyaltyProgramIcon } from './gift-BChI23pG.js';
11
+ import { S as SIGift } from './gift-CXRKXFgT.js';
12
12
 
13
13
  var OrderIcon = `<!-- Generated by IcoMoon.io -->
14
14
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -103,7 +103,7 @@ const SallaUserMenu = class {
103
103
  pending_orders: PendingOrdersIcon,
104
104
  wishlist: WishListIcon,
105
105
  wallet: WalletIcon,
106
- loyalty_program: loyaltyProgramIcon,
106
+ loyalty_program: SIGift,
107
107
  profile: UserCircle
108
108
  };
109
109
  }
@@ -268,9 +268,10 @@ const SallaUserMenu = class {
268
268
  return (h(Host, null, h("div", { class: {
269
269
  's-user-menu-wrapper': true,
270
270
  's-user-menu-relative-dropdown': this.relativeDropdown,
271
- } }, this.getTheHeader(), h("div", { class: { 's-user-menu-toggler': true, opened: this.opened } }, h("div", { class: "s-user-menu-dropdown", onClick: e => e.stopPropagation(), onKeyUp: e => e.stopPropagation() }, this.showHeader ? (h("div", { class: "s-user-menu-dropdown-header" }, h("img", { src: this.avatar, alt: `${this.first_name} ${this.last_name}` }), h("div", { class: "s-user-menu-dropdown-header-content" }, h("span", null, this.hello), h("p", null, this.first_name, " ", this.last_name)), h("button", { type: 'button', class: "s-user-menu-dropdown-header-close", innerHTML: Cancel, onClick: () => { this.opened = false; } }))) : (''), h("ul", { class: "s-user-menu-dropdown-list" }, Object.entries(this.items).map((item, i) => this.getMenuItem(item, i))))))));
271
+ } }, this.getTheHeader(), h("div", { class: { 's-user-menu-toggler': true, opened: this.opened } }, h("div", { class: "s-user-menu-dropdown", onClick: e => e.stopPropagation(), onKeyUp: e => e.stopPropagation() }, this.showHeader ? (h("div", { class: "s-user-menu-dropdown-header" }, h("img", { src: this.avatar, alt: `${this.first_name} ${this.last_name}` }), h("div", { class: "s-user-menu-dropdown-header-content" }, h("span", null, this.hello), h("p", null, this.first_name, " ", this.last_name)), h("button", { type: 'button', class: "s-user-menu-dropdown-header-close", innerHTML: SICancel, onClick: () => { this.opened = false; } }))) : (''), h("ul", { class: "s-user-menu-dropdown-list" }, Object.entries(this.items).map((item, i) => this.getMenuItem(item, i))))))));
272
272
  }
273
- componentDidLoad() {
273
+ async componentDidLoad() {
274
+ await Salla.hooks.registerComponent('salla-user-menu', this);
274
275
  document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
275
276
  }
276
277
  buildProfileUrl(token) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h } from './index-aDXaoBqI.js';
5
5
  import { G as Genders } from './interfaces-OF8QcbMM.js';
6
6
 
7
7
  const sallaUserProfileCss = ":host{display:block}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host } from './index-aDXaoBqI.js';
5
5
 
6
6
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
7
7
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -78,7 +78,7 @@ const SallaUserSettings = class {
78
78
  await salla.profile.delete().finally(() => this.confirmationModal.close());
79
79
  }
80
80
  render() {
81
- return (h(Host, { key: '35629ae7a818db4d058b5de6a4ad7a2410fd769a', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '088ff650127df0e6e4fda37dc9769ebe7a050cfa', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'dc71e681761440cb875d3de11b3d1a13def55a5c' }, h("div", { key: '44b1c2e02b981712467b5d494e1d8e8c30cefc5d', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'cb4f89d7f81526be268ac7ac7cf407f458eee32a', innerHTML: UserCancel })), h("div", { key: '2be07d40cd1b2082e08f391d43f6fb292e707c51', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'ab4702331a6b59f974794e1c6f95505541273db7', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '92615b95a6f669e4925a17b6a11ef9146d182d62', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: 'd99cd97d0baf75c75fc8e2ba6fd403109295658f', class: "s-toggle" }, h("input", { key: '52997c851e7ffff021d267d9cc839d19a1b940b9', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'f2418d8595800b8e2af231aab82714137bad4e5c', class: "s-toggle-switcher" }))))), h("div", { key: 'ca9641927d0c2e09345078a16e06445f1961d05d', class: "s-user-settings-section" }, h("salla-list-tile", { key: '55075a73c15fda0fb94291e41d528b066d2a808d' }, h("div", { key: '20e5894110f485f2ed75fdc6f0d54b647d1d4a48', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'c616fe981cd2a7ceb8090c44fe353b5504f5b0e1', innerHTML: Bullhorn })), h("div", { key: 'c1dc47211d07cc1ea25e2ce284f460c2eb6d4f7b', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '185e058888078b556a359acb6cc1ae080f01ad81', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'f54597f7f3c9126c57d34a5aba3ccd84752efbea', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '3386b76fc2d590b3a3734716429a8317a80fcc0b', class: "s-toggle" }, h("input", { key: 'd2d9ce3f8e3110715d84e9b407b878e341567fc6', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '267b474fb32cbabdf53ff8fd2fe69df87875819d', class: "s-toggle-switcher" }))))), h("div", { key: '80d86e89c87bceddddd461faeede4dfc8f4b3301', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: 'b95c175905cde9d4fae8487d1a85329db890873f' }, h("div", { key: '1e32b08bceb6bf299ea1e59545d7c539cb2ddce1', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'f1322819a6f07dff92f9956c0149b173f283407e', innerHTML: UserOff })), h("div", { key: '5d2ddaf6c03c8809f7e86b33fa421e73d048957e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '0578e54cc49334ad081641b2ccd5b98d81e547ed', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '30d6697be785def178352999d437f67798a03ed5', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'b0ecec87180902892081999d0c96da33cda58d26', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'b2015afb2f495f080d6757a57408ccd3e823b1ed', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: 'e9391b722fe6c23853664cd5558c289e7fff427a', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: 'fffaa51055598f66f479e90676649eac4a06148c', class: "s-user-settings-confirmation" }, h("div", { key: '2d7044a63ada034d44de97a875903967de4fa7f0', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: 'f79c44b10a20b187c4f5a849b7e40c3c71eb0194', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'b41c685894464f38f8a590482532a46851702ee7', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: '3520e6c0bd7475a6ad3b004ec0a20c3993ebb45f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
81
+ return (h(Host, { key: 'b37f8e7cd7fe59dfd4f4e1efe455e74d33d4b91e', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '7cf5f1ed489159ef1c754fc8368b390d35cc273d', class: "s-user-settings-section" }, h("salla-list-tile", { key: '961843ff5de245febf4b5d9d4a96d47b44aeaff3' }, h("div", { key: 'bdfa266ee2694e410ff2bc8d6ec31b5210e7bf08', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '8ff08646cb3b3ba8d157f07cb4d54a6f515409a7', innerHTML: UserCancel })), h("div", { key: '8030d07722d9ad730676dafd1323b93a361f91da', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'f4c524dfe45418f0dd7395e998b1c16aa951a5f9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '74569032acb01ff1037104dcaf46f13c18c16803', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '6002a8368a587dbd8d3fd3fc1231e52ee44ebbbe', class: "s-toggle" }, h("input", { key: '2e9a622f9a670ef0f314c6183c57c851334a7df5', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'ca57daef65f550d53c1f947b41d3fb488bd38a95', class: "s-toggle-switcher" }))))), h("div", { key: 'b81a0200e08c0eca176060362792a45d9d7ad41e', class: "s-user-settings-section" }, h("salla-list-tile", { key: 'ebcdac4056d21cbbd218b246cdd6c5bfa7bc2ac3' }, h("div", { key: 'df3a675745a0945498f3f45e11016f9f9c71ce6d', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'b5accc798ca95bd803f9c721f96fe62ca27e8ecf', innerHTML: Bullhorn })), h("div", { key: 'fe82c42f7586ba892f14ed7b1d2f85e19c508e8c', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: 'ec35e1a363a0802ab14a92b4bc8b858b9bf79c72', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'cc0d65144cfffc7fc795f3b1dde9ae6d75e827ec', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '945d030759a2ab27b9e9379d96f879d299b0a444', class: "s-toggle" }, h("input", { key: '6dd35723f4e049263193d50d1488a300e26a166e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '1f529a32b220a0a5ba673fe41573786450e4f1b8', class: "s-toggle-switcher" }))))), h("div", { key: '9973aa99cd3944ced8e87da05a3711b9cde5faa4', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '97ea806a1c5bc6e7f08ab04cdf555173d7e2c268' }, h("div", { key: 'fa98419cd6e11598c6e230ad462501f3dd66b975', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '9bb7192d2bcdd942974a2a6e405878998e090f3c', innerHTML: UserOff })), h("div", { key: '9e79bfd50311f2ec272bc6d90224d2f81c736d8e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '805696292b1354bf57b0f0252eabd031dc4ac5db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '4984f94d2eef4870036d1bea837cbe16e9978d84', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: '7be1eaf49fdb3df86b953a14879695c0c2eae838', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: '55608c2fbfd01c328f923316aa203ebd6539ef86', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '247bb5555b3aa936ab4815f16ec332f6d922ab49', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: 'd8499d470dd0cce984687c9f6842970467b832a9', class: "s-user-settings-confirmation" }, h("div", { key: 'c4d98f4dc7591c53a0f4ab71fc1c7e0d446cebfc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: 'abebad572dab06b497451fff00a405e4c9db5652', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: 'bfde878cc657d975154f6e8b73220786b3898dbf', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'b3334a9b6fda2aa6de6f66f610efbba8ae95910f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
82
82
  }
83
83
  };
84
84
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BYCfehfD.js';
5
- import { M as MailIcon } from './mail-DmgxDvXL.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-aDXaoBqI.js';
5
+ import { S as SIMail } from './mail-DLNIOD9t.js';
6
6
 
7
7
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
8
8
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -245,7 +245,7 @@ const SallaVerify = class {
245
245
  }
246
246
  render() {
247
247
  return this.display == 'inline' ? h(Host, null, this.myBody()) :
248
- h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon : MailIcon }), this.myBody());
248
+ h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon : SIMail }), this.myBody());
249
249
  }
250
250
  myBody() {
251
251
  return (h("div", { class: "s-verify-body", ref: body => this.body = body }, h("div", { class: "s-verify-message", innerHTML: salla.lang.get('pages.profile.verify_message') }), h("slot", { name: "mobile" }), h("slot", { name: "email" }), h("input", { type: "hidden", name: "code", maxlength: "4", required: true, ref: code => this.code = code }), h("div", { class: { "s-verify-codes": true, "has-error": this.hasError }, dir: "ltr" }, [1, 2, 3, 4].map((i) => h("input", { type: "number", autocomplete: "one-time-code", pattern: "[0-9]*", inputmode: "numeric", maxlength: "1", value: "", id: `otp-${i}`, class: { "s-verify-input": true, "s-has-error": this.hasError }, onInput: e => this.handleInput(e), onPaste: e => this.handlePaste(e), onKeyUp: e => this.handleKeyUp(e), onFocus: e => this.handleFocus(e), required: true }))), this.hasError && this.errorMessage ? h("span", { class: "s-verify-error-message" }, this.errorMessage) : '', h("div", { slot: "footer", class: "s-verify-footer" }, h("salla-button", { class: "s-verify-submit", "loader-position": 'center', disabled: true, onClick: () => this.submit(), ref: b => this.btn = b }, salla.lang.get('pages.profile.verify')), h("p", { class: "s-verify-resend-message", ref: el => this.resendMessage = el }, salla.lang.get('blocks.header.resend_after'), h("b", { class: "s-verify-timer", ref: el => this.timer = el })), h("a", { href: "#", class: "s-verify-resend", onClick: () => this.resendCode(), ref: el => this.resend = el }, salla.lang.get('blocks.comments.submit'))), h("slot", { name: "after-footer" })));
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-BYCfehfD.js';
4
+ import { r as registerInstance, h, H as Host } from './index-aDXaoBqI.js';
5
5
 
6
6
  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}";
7
7