@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,243 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ 'use strict';
5
+
6
+ var index = require('./index-B3JuQExz.js');
7
+ var functions = require('./functions-DVMonIet.js');
8
+ var gift = require('./gift-DbNivqYO.js');
9
+ var tag = require('./tag-D-PcUR33.js');
10
+ var check = require('./check-BnVBPQNp.js');
11
+ var cancel = require('./cancel-B5SbMYEk.js');
12
+ var trackedPromise = require('./tracked-promise-Ef3pfQOZ.js');
13
+
14
+ const sallaLoyaltyProgramCss$3 = "";
15
+
16
+ const SallaRewardAction = class {
17
+ constructor(hostRef) {
18
+ index.registerInstance(this, hostRef);
19
+ this.actionClick = index.createEvent(this, "actionClick");
20
+ this.isShopNow = (prize) => {
21
+ if (!(salla.config.get('store.features') || []).includes('loyalty-system-v2')) {
22
+ return false;
23
+ }
24
+ return prize.key?.toLowerCase() === 'free_product';
25
+ };
26
+ this.handleClick = (e) => {
27
+ if (salla.config.isGuest()) {
28
+ functions.closeModals(() => salla.event.dispatch('login::open'));
29
+ return;
30
+ }
31
+ this.actionClick.emit(e);
32
+ };
33
+ }
34
+ render() {
35
+ return (index.h("div", { key: '0d02cecaae79cf166555514890fbf6192e1cd438', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (index.h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
36
+ 's-loyalty-program-rewards-action-base': true,
37
+ 's-loyalty-program-rewards-action-on': true,
38
+ } }, salla.lang.get('pages.loyalty_program.shop_now'))) : (index.h("button", { onClick: this.handleClick, class: {
39
+ 's-loyalty-program-rewards-action-base': true,
40
+ 's-loyalty-program-rewards-action-on': true,
41
+ } }, salla.lang.get('pages.loyalty_program.redeem_reward')))));
42
+ }
43
+ };
44
+ SallaRewardAction.style = sallaLoyaltyProgramCss$3;
45
+
46
+ const sallaLoyaltyProgramCss$2 = "";
47
+
48
+ const SallaRewardCard = class {
49
+ constructor(hostRef) {
50
+ index.registerInstance(this, hostRef);
51
+ this.areaClick = index.createEvent(this, "areaClick");
52
+ this.actionClick = index.createEvent(this, "actionClick");
53
+ }
54
+ render() {
55
+ return (index.h(index.Host, { key: '0bd68f7cab478d78db8b083ea11c2090d02aab59', class: "s-loyalty-program-reward-host" }, index.h("div", { key: 'ef4e857bc55a12e50434c1dda2160674ead3b4e6', class: "s-loyalty-program-reward-container" }, index.h("div", { key: 'a6a7ccdf50ee296b48c05a01f241192c0f77f30c', onClick: (e) => this.areaClick.emit(e), role: "button" }, index.h("div", { key: 'e4f55cda0d9f36af95ce101c987819d30b9ad143', class: "s-loyalty-program-reward-img" }, index.h("img", { key: '450fe8914dcf809005d4707074cb305a59990e81', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), index.h("div", { key: '7828210caf948e057055c53dc64af45426d7977d', class: "s-loyalty-program-reward-content" }, index.h("div", { key: '2f39695bd03884f6988b44de68964cdfdb75e0bb', class: "s-loyalty-program-reward-points" }, index.h("salla-badge", { key: 'e9e1dda91aa414d58caaff52a4bb667a1fc1b96f', size: "xs" }, index.h("span", { key: '7baa15af74cde5a6e744667566377417233d0848', innerHTML: gift.SIGift }), index.h("span", { key: '6bd7f77ec736a6f0fd9de0c69907cc05e87829b0', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), index.h("div", { key: '269da0571a6533ca6621792a3891f4b9d132d337', class: "s-loyalty-program-reward-title" }, index.h("span", { key: '06c40cc994031777565d43c5259eefb3311dea98' }, this.prize.group_title)), index.h("div", { key: 'e81936c993e83f96f4143278ec82391135778383', class: "s-loyalty-program-reward-name" }, index.h("div", { key: '752e5e6fbc5de60f7047913d6b8bf79e597fd407', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), index.h("div", { key: 'a83282f66ab42ee0fa055cf9bf7802af1615e8f0', class: "p-4" }, index.h("slot", { key: '7186f03318c907b3e8ec15e30322d8bf787d74f8', name: "action" }, index.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')))))));
56
+ }
57
+ };
58
+ SallaRewardCard.style = sallaLoyaltyProgramCss$2;
59
+
60
+ const sallaLoyaltyProgramCss$1 = "";
61
+
62
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
63
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
64
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
65
+ r = Reflect.decorate(decorators, target, key, desc);
66
+ else
67
+ for (var i = decorators.length - 1; i >= 0; i--)
68
+ if (d = decorators[i])
69
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
70
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
71
+ };
72
+ const c = (...args) => args.map(i => 's-loyalty-program-' + i).join(' ');
73
+ const SallaRewardDetails = class {
74
+ constructor(hostRef) {
75
+ index.registerInstance(this, hostRef);
76
+ this.actionClick = index.createEvent(this, "actionClick");
77
+ this.refreshKey = Date.now();
78
+ }
79
+ handlePrizeChange() {
80
+ this.refreshKey = Date.now();
81
+ }
82
+ componentWillLoad() {
83
+ if (this.category.status === 'idle') {
84
+ this.category();
85
+ }
86
+ if (this.brand.status === 'idle') {
87
+ this.brand();
88
+ }
89
+ }
90
+ getTermsAndConditions() {
91
+ const minimumAmount = Number((this.prize.order_minimum_amount || '0').split('.')[0]) || 0;
92
+ const maximumAmount = Number((this.prize.coupon_maximum_amount || '0').split('.')[0]) || 0;
93
+ const termsAndConditions = [];
94
+ if (minimumAmount) {
95
+ termsAndConditions.push([
96
+ salla.lang.get('pages.loyalty_program.order_minimum_amount'),
97
+ `${minimumAmount} ${salla.lang.get(`currency.${(salla.config.get('user.currency_code') || '').toLowerCase()}`)}`,
98
+ ]);
99
+ }
100
+ if (maximumAmount) {
101
+ termsAndConditions.push([
102
+ salla.lang.get('pages.loyalty_program.coupon_maximum_amount'),
103
+ `${maximumAmount} ${salla.lang.get(`currency.${(salla.config.get('user.currency_code') || '').toLowerCase()}`)}`,
104
+ ]);
105
+ }
106
+ return termsAndConditions;
107
+ }
108
+ findItems(ids) {
109
+ if (!ids?.length)
110
+ return [];
111
+ const brands = this.brand.data;
112
+ const categories = this.category.data;
113
+ return brands.concat(categories).filter(i => ids.includes(i.id));
114
+ }
115
+ getIncludedItems(items, ids) {
116
+ return items?.length ? items : this.findItems(ids);
117
+ }
118
+ getProductIds(ids) {
119
+ return ids || [];
120
+ }
121
+ getItemsMarkers(key) {
122
+ if (key === 'both') {
123
+ return this.getItemsMarkers('included') + this.getItemsMarkers('excluded');
124
+ }
125
+ return [
126
+ this.prize[`${key}_product_ids`]?.length || 0,
127
+ this.prize[`${key}_brand_ids`]?.length || 0,
128
+ this.prize[`${key}_category_ids`]?.length || 0,
129
+ ].map(Boolean).map(Number).join('');
130
+ }
131
+ getItemsMarkersText() {
132
+ // Check if prize type is free_shipping
133
+ if (this.prize.key === 'FREE_SHIPPING') {
134
+ return salla.lang.get('pages.loyalty_program.redeem_for_free_shipping');
135
+ }
136
+ switch (this.getItemsMarkers('included')) {
137
+ case '001':
138
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_products');
139
+ case '010':
140
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_brands');
141
+ case '100':
142
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_categories');
143
+ case '000':
144
+ return salla.lang.get('pages.loyalty_program.redeem_on_all_products');
145
+ default:
146
+ return salla.lang.get('pages.loyalty_program.redeem_on_specific_products');
147
+ }
148
+ }
149
+ getCategoriesJsx(items, title) {
150
+ return !items.length ? '' : index.h("div", { class: c('reward-details-categories-wrapper') }, index.h("div", { class: c('reward-details-categories') }, index.h("h2", { class: c('reward-details-categories-heading') }, title), index.h("ul", { class: c('reward-details-categories-list') }, items.map((category) => (index.h("li", null, index.h("a", { href: category.url || category.lingual_urls?.[0], class: c('reward-details-categories-item') }, index.h("span", { innerHTML: tag.SITag }), index.h("span", { class: c('reward-details-categories-item-content') }, category.name))))))));
151
+ }
152
+ getBrandsJsx(items, title) {
153
+ return !items.length ? '' : index.h("div", { class: c('reward-details-items-brands', 'slider-arrows-edges') }, index.h("div", null, index.h("h2", null, title), index.h("salla-slider", { id: `brands-${items.map(({ id }) => id).join('-')}`, "slider-config": '{"loop":false,"slidesPerView":"auto","spaceBetween":10}' }, index.h("div", { slot: "items" }, items.map((brand) => (index.h("a", { href: salla.url.get(functions.brand_path(brand)), class: c('reward-brand-item') }, index.h("img", { src: brand.logo || salla.url.cdn('images/s-empty.png'), alt: "" }))))))));
154
+ }
155
+ getProductsJsx(items, title) {
156
+ return !items?.length ? '' : index.h("div", { class: "s-loyalty-program-reward-details-items-products s-loyalty-program-slider-arrows-edges" }, index.h("h2", null, title), index.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}}}' }));
157
+ }
158
+ render() {
159
+ const termsAndConditions = this.getTermsAndConditions();
160
+ return (index.h("div", { key: '3140551c4bcc64429a2f820ae9f915f19f6d3a77', class: "s-loyalty-program-reward-modal" }, index.h("div", { key: 'b193833caee8153c71b6c9f6af95358503afa103', class: "s-loyalty-program-points-modal-header" }, index.h("h1", { key: '0567985c10193a8eba6570bda8abf4aefa75657a', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
161
+ : index.h("button", { class: "s-loyalty-program-back-btn", onClick: () => functions.closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, index.h("span", { class: {
162
+ 'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
163
+ 'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
164
+ } })), this.prize.name)), index.h("div", { key: '66bb25eadb6c640b4c661b6b3e227b4b8ef4f40d', class: "s-loyalty-program-modal-scrollable-content" }, index.h("div", { key: '1cc1c1c121240fab3ccd32bce176deec378ef3fd', class: "s-loyalty-program-reward-details-header" }, index.h("div", { key: '81f43a0c61ed0889810efa2cf4447477c2b08094', class: "s-loyalty-program-aspect-container" }, index.h("img", { key: 'eb09214a175e8484dfc6c870492e49e3e28cbe42', src: this.prize.image, alt: this.prize.name })), index.h("salla-badge", { key: '2ce3001371ab69c73453957f6dfb066710d88edd', size: "sm", bg: "light" }, index.h("span", { key: '459b58a09e6f59314c83f7d1a5baf6c559f02bd1', innerHTML: gift.SIGift }), index.h("span", { key: '1cd0a85c1d2b9cdf1430e90bd12bbe83f1b05813', class: "s-loyalty-program-points-badge-points" }, functions.formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : index.h("div", { class: "s-loyalty-program-terms-and-conditions" }, index.h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), index.h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (index.h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), index.h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), index.h("div", { key: 'a25d46f6a961844efd8f920bf5e4e1fd836cb460', class: "s-loyalty-program-reward-info-message" }, index.h("h1", { key: '4cf3e9e123993f6be8fb67df243156996b2a6fdd', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), index.h("p", { key: 'd658e9aea4384bc89a7a4cae956e90844092894a', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : index.h("div", { class: "s-loyalty-program-reward-details" }, index.h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
165
+ index.h("salla-tab-header", { slot: "header", name: "included", style: {
166
+ display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
167
+ } }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: check.SICheck }), index.h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
168
+ index.h("salla-tab-content", { slot: "content", name: "included" }, index.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')))),
169
+ ], this.getItemsMarkers('excluded') === '000' ? '' : [
170
+ index.h("salla-tab-header", { slot: "header", name: "excluded", style: {
171
+ display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
172
+ } }, index.h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: cancel.SICancel }), index.h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
173
+ index.h("salla-tab-content", { slot: "content", name: "excluded" }, index.h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
174
+ ]))), index.h("salla-reward-action", { key: '3b355609aa30f12d0fae5a95681d19b62193113d', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
175
+ }
176
+ static get watchers() { return {
177
+ "prize": ["handlePrizeChange"]
178
+ }; }
179
+ };
180
+ __decorate$1([
181
+ trackedPromise.TrackedPromise(async () => {
182
+ return (await salla.product.api.categories()).data;
183
+ }, { initialData: [] })
184
+ ], SallaRewardDetails.prototype, "category", void 0);
185
+ __decorate$1([
186
+ trackedPromise.TrackedPromise(async () => {
187
+ return (await salla.api.request('/brands')).data;
188
+ }, { initialData: [] })
189
+ ], SallaRewardDetails.prototype, "brand", void 0);
190
+ SallaRewardDetails.style = sallaLoyaltyProgramCss$1;
191
+
192
+ const sallaLoyaltyProgramCss = "";
193
+
194
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
195
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
196
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
197
+ r = Reflect.decorate(decorators, target, key, desc);
198
+ else
199
+ for (var i = decorators.length - 1; i >= 0; i--)
200
+ if (d = decorators[i])
201
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
202
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
203
+ };
204
+ const SallaRewardExchange = class {
205
+ constructor(hostRef) {
206
+ index.registerInstance(this, hostRef);
207
+ this.productId = null;
208
+ }
209
+ reset(timeout = 0) {
210
+ setTimeout(() => {
211
+ functions.closeModals();
212
+ }, timeout);
213
+ }
214
+ async handleConfirm() {
215
+ try {
216
+ await this.exchange(this.prize.id, null, this.productId);
217
+ this.reset(300);
218
+ }
219
+ catch (error) {
220
+ salla.logger.error(error);
221
+ // Do NOT close the modal; let the error state render so the user sees feedback.
222
+ }
223
+ }
224
+ handleCancel() {
225
+ this.reset(0);
226
+ }
227
+ render() {
228
+ return (index.h(index.Host, { key: 'b5b9a966f28520c30917887621e2358fdb9530be' }, index.h("div", { key: '4e87e3d0530a7fca6db1bf09fd1b059b85e56f10', class: "s-loyalty-program-exchange-heading" }, index.h("div", { key: '73b9aa3106336e8cdc81ce78371b3efc47b5c569', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, index.h("span", { key: '0e6c488afa39784a40bfed2f1d180fc48664a81a', innerHTML: gift.SIGift })), index.h("h2", { key: '7740e27318379264905ff695e0c0cf13b54800d0' }, salla.lang.get('pages.loyalty_program.redeem_reward')), index.h("p", { key: '81a7ba841e3e26c7c9fc1054745ad163cc347db7' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", index.h("span", { key: '0f5d68dbe2de661c2aad02d237d3098349e94120' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", index.h("span", { key: '1daa10a1843938166c6834d0369edfe7e06dd54e' }, "(", this.prize.name, ")"))), index.h("div", { key: '42384b2df2cbb3775ccc6f7a017d9ef9f770baf5', class: "s-loyalty-program-exchange-btns" }, index.h("button", { key: 'b90b95adae80a9bcb47c0d039ea8bd9399ee5bc5', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, index.h("span", { key: 'c108973d9729265fb35a0d0fa781d525388a4c12', style: {
229
+ opacity: this.exchange.status !== 'pending' ? '1' : '0',
230
+ } }, salla.lang.get('common.elements.confirm')), index.h("span", { key: '302a31b9095d153b4662ada13d45cdb6b15664ad', class: "s-loyalty-program-exchange-loading", style: {
231
+ opacity: this.exchange.status === 'pending' ? '1' : '0',
232
+ } }, index.h("salla-loading", { key: '3e305da32d469f6ec874c128a1fd68356280dc69', color: "primary", size: 24 }))), index.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')))));
233
+ }
234
+ };
235
+ __decorate([
236
+ trackedPromise.TrackedPromise(async (...args) => await salla.loyalty.exchange(...args))
237
+ ], SallaRewardExchange.prototype, "exchange", void 0);
238
+ SallaRewardExchange.style = sallaLoyaltyProgramCss;
239
+
240
+ exports.salla_reward_action = SallaRewardAction;
241
+ exports.salla_reward_card = SallaRewardCard;
242
+ exports.salla_reward_details = SallaRewardDetails;
243
+ exports.salla_reward_exchange = SallaRewardExchange;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
 
9
9
  var StoreAlt = `<!-- Generated by IcoMoon.io -->
@@ -160,7 +160,7 @@ const SallaScopees = class {
160
160
  return salla.onReady();
161
161
  }
162
162
  render() {
163
- return (index.h(index.Host, { key: '0f85dc5ec5bed28a4087226cff76eb63c70b83a4' }, index.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 ?
163
+ return (index.h(index.Host, { key: '496e4e55483fee5b91818a760adb95d606b0d146' }, index.h("salla-modal", { key: '2e0e7c2967a0a05068aad712774cd089984fb957', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
164
164
  index.h("div", { slot: "loading" }, index.h("div", { class: "s-scopes-skeleton" }, index.h("salla-list-tile", { class: "s-scopes-header" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon" }, index.h("salla-skeleton", { type: "circle" })), index.h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, index.h("salla-skeleton", { height: '15px', width: '50%' })), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, index.h("salla-skeleton", { height: '10px' }), index.h("salla-skeleton", { height: '10px', width: '75%' }))), index.h("div", { class: "s-scopes-skeleton-search" }, index.h("salla-skeleton", { height: '10px', width: '50%' }), index.h("salla-skeleton", { height: '30px', width: '100%' })), index.h("div", { class: "s-scopes-skeleton-scopes" }, index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("salla-skeleton", { height: '10px', width: '25%' })), index.h("div", { class: "s-scopes-skeleton-btn" }, index.h("salla-skeleton", { height: '40px', width: '100%' }))))
165
165
  :
166
166
  [index.h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, index.h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), index.h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), index.h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), index.h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && index.h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var search = require('./search-c7Aa7lM9.js');
8
8
  var Helper = require('./Helper-CU4Xuiki.js');
9
9
  require('./anime.es-BqW8JHZi.js');
@@ -131,10 +131,10 @@ const SallaSearch = class {
131
131
  this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
132
132
  }
133
133
  render() {
134
- const searchContent = (index.h("div", { key: 'a403e7257b398cce5c26c61f55e143775575bb7b', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, index.h("div", { key: '3c3d523d181ec1c7b4e9d9e05988d1d2a4e0362d', class: "s-search-input-wrapper" }, index.h("span", { key: '86a8bcf0ab96c8818fc940d7ed4cfd70429ee2c1', class: "s-search-icon-wrap" }, index.h("span", { key: '0bacbc11b2b9c63c2167e79f46c73cb80804869a', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.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: {
134
+ const searchContent = (index.h("div", { key: 'c1ac55ddb93b42cb84c30c0248be8949afef39df', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, index.h("div", { key: '6bdecb7d3511a5c97b4bb52860dcd050dc943573', class: "s-search-input-wrapper" }, index.h("span", { key: '93a0cd39aef09955e72657ba32a7ac1d4c6bdb7b', class: "s-search-icon-wrap" }, index.h("span", { key: '435ca7f22ba4d93eafe9fde32a7e62a55340e6a8', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.h("input", { key: '0acb71b9b5fe6681d33e7838ff14bbdee6159ccc', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
135
135
  height: this.height + 'px',
136
136
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
137
- } }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '307c8fc64860af188bf1f1ba6eea480c357ac46d', class: "s-search-results" }, this.results?.data.map(product => (index.h("a", { href: product.url + '?from=search-bar', class: {
137
+ } }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '9fc770575d0deeafda11f85aeb420a66cc2c2f64', class: "s-search-results" }, this.results?.data.map(product => (index.h("a", { href: product.url + '?from=search-bar', class: {
138
138
  's-search-product': true,
139
139
  's-search-product-not-available': !product.is_available,
140
140
  }, innerHTML: this.productSlot
@@ -143,9 +143,9 @@ const SallaSearch = class {
143
143
  .replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
144
144
  ? salla.money(product.regular_price)
145
145
  : '')
146
- .replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: 'b0971a0eb27a98f2e4e53da6462b0a8fa1b7fa42', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
147
- const modalContent = (index.h("salla-modal", { key: '9394500f337c06afad44d5202e8e84dc2feb317f', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
148
- const placeholderContent = (index.h("div", { key: 'f092b80ca35842209eae7b1ef143619d2a718229', class: "s-search-placeholder-wrapper s-search-inline" }, index.h("div", { key: '020d98faaa926578057e49734d7f11077a0b933b', class: "s-search-input-wrapper" }, index.h("span", { key: '44b6f78b74952d562efcb6dcd652432b5b1a7053', class: "s-search-icon-wrap" }, index.h("span", { key: 'd4e4166510cc4d38e53668f0f4f3995861a65d24', class: "s-search-icon", innerHTML: search.Search })), index.h("button", { key: '615e5dd776936c182fa7f50efaebbe5fa0fb7c61', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
146
+ .replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: '31de1c46ae9ea8dce146f7a5e3b10eb61781a5e9', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
147
+ const modalContent = (index.h("salla-modal", { key: '14efe319f3f844b2f3a1759a7f860b4dc3652570', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
148
+ const placeholderContent = (index.h("div", { key: 'affda57d4ae84ea36e215bc17bc328b9f1a5a8de', class: "s-search-placeholder-wrapper s-search-inline" }, index.h("div", { key: '51f3e2afd425459365887b4e7c1ef2da4433dbe8', class: "s-search-input-wrapper" }, index.h("span", { key: '79ed8316f06548aecb3a76384835e64e72330917', class: "s-search-icon-wrap" }, index.h("span", { key: 'ba690f7b674dac90062ed2328c6396933c4ac872', class: "s-search-icon", innerHTML: search.Search })), index.h("button", { key: 'ac57df999004b21e1469978f9963aceded386d9d', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
149
149
  height: this.height + 'px',
150
150
  borderRadius: this.oval ? this.height / 2 + 'px' : '',
151
151
  } }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
 
8
8
  const sallaSkeletonCss = ":host{display:block}";
9
9
 
@@ -28,7 +28,7 @@ const SallaSkeleton = class {
28
28
  's-skeleton-item': true,
29
29
  's-skeleton-item-circular': this.type == 'circle',
30
30
  };
31
- return (index.h(index.Host, { key: '366d9fcd96b22edc9b5cdc07f8d8367fdbc5c574', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: 'b4ad9adc7d8ce69aeaeaa1cf287726fa69018730', class: classes }, "\u00A0")));
31
+ return (index.h(index.Host, { key: '8f574f21608fb5177c8a5d7e0d84d1c1065e49a4', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '6c86b14ec10c5ccea8f336ab87fb433c49104149', class: classes }, "\u00A0")));
32
32
  }
33
33
  };
34
34
  SallaSkeleton.style = sallaSkeletonCss;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var keyboard_arrow_right = require('./keyboard_arrow_right-BayM_Il2.js');
8
8
 
9
9
  /**
@@ -3,11 +3,11 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var anime_es = require('./anime.es-BqW8JHZi.js');
8
8
  var facebook = require('./facebook-DbXua6B9.js');
9
- var mail = require('./mail-CO8cFZH7.js');
10
- var cancel = require('./cancel-De6vslRA.js');
9
+ var mail = require('./mail-Bgvt2hc9.js');
10
+ var cancel = require('./cancel-B5SbMYEk.js');
11
11
 
12
12
  var copy_link = `<!-- Generated by IcoMoon.io -->
13
13
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -49,7 +49,7 @@ const SallaSocialShare = class {
49
49
  this.platformIcons = [{ icon: whatsapp, name: Socials.WHATSAPP }, {
50
50
  icon: facebook.facebook,
51
51
  name: Socials.FACEBOOK
52
- }, { icon: facebook.twitter, name: Socials.TWITTER }, { icon: mail.MailIcon, name: Socials.EMAIL }, {
52
+ }, { icon: facebook.twitter, name: Socials.TWITTER }, { icon: mail.SIMail, name: Socials.EMAIL }, {
53
53
  icon: copy_link,
54
54
  name: Socials.COPY_LINK
55
55
  }];
@@ -150,7 +150,7 @@ const SallaSocialShare = class {
150
150
  window.a2a?.init('page');
151
151
  }
152
152
  render() {
153
- return (index.h("div", { key: 'e9f050078f7be9b5b000d4703e0e2f2394c7860c', class: "s-social-share-wrapper" }, index.h("slot", { key: 'aec685219966868f2332a9060b94346fa361b53c', name: 'widget' }, index.h("salla-button", { key: '4daf053aa6594659c17df827555633e0f95f8007', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: '1d85fcea2fbc80c2b9c7d70cfc86263dcd109a82', innerHTML: this.opened ? cancel.Cancel : ShareAlt }))), index.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 => {
153
+ return (index.h("div", { key: '49da8d5e8066550792640f4677eb43f762fbecbe', class: "s-social-share-wrapper" }, index.h("slot", { key: 'ee7ef614fe373217829caa31f0eb9526e6695d93', name: 'widget' }, index.h("salla-button", { key: '53c41b4185b19a08cdadc4ce30baed08dd95d638', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: 'dae3c709e895a8e023bfc8aff490e52ea0e8e19a', innerHTML: this.opened ? cancel.SICancel : ShareAlt }))), index.h("ul", { key: '64fda7434bbe22a0cbae61273b61a67528c441c7', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
154
154
  return (index.h("li", null, index.h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
155
155
  if (icon.name === platform) {
156
156
  return index.h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var facebook = require('./facebook-DbXua6B9.js');
8
8
 
9
9
  var instagram = `<!-- Generated by IcoMoon.io -->
@@ -57,7 +57,7 @@ const SallaSocial = class {
57
57
  }
58
58
  render() {
59
59
  const linksArray = this.getLinksArray();
60
- return (index.h(index.Host, { key: '68bd517787b0ebddf10cc44d9dd8b21c4185ca24' }, index.h("ul", { key: '77fcfb2b61014f53880bd8f833780eaaac9db5d7', class: "s-social-list" }, linksArray.map((link) => (index.h("li", { class: "s-social-link" }, index.h("div", { id: "social-slot", innerHTML: this.socialSlot
60
+ return (index.h(index.Host, { key: 'a0b31aa06db07b8b4018b8d178dc27726eddb43e' }, index.h("ul", { key: 'b758199092ddf7c0e0b384f3f118d00c239104dd', class: "s-social-list" }, linksArray.map((link) => (index.h("li", { class: "s-social-link" }, index.h("div", { id: "social-slot", innerHTML: this.socialSlot
61
61
  .replace(/\{icon\}/g, this.iconsList[link.type])
62
62
  .replace(/\{type\}/g, link.type)
63
63
  .replace(/\{link\}/g, link.value.toString()) })))))));
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
 
8
8
  const sallaTabContentCss = "";
9
9
 
@@ -33,7 +33,7 @@ const SallaTabContent = class {
33
33
  's-tabs-content': true,
34
34
  's-tabs-content-selected': this.isSelected
35
35
  };
36
- return (index.h("div", { key: '13737e2a7a7bce59e8ddc38b3b4d5159a4aa67be', class: classes }, index.h("slot", { key: '56dbae26f78adaf732311a06ec7f9f70e3d4eb2d' })));
36
+ return (index.h("div", { key: 'f2deb9c1508aafe3aff5352094cccc97bdcd42ef', class: classes }, index.h("slot", { key: '460588864047444acdb06e757a7124d28935c24b' })));
37
37
  }
38
38
  };
39
39
  SallaTabContent.style = sallaTabContentCss;
@@ -92,7 +92,7 @@ const SallaTabHeader = class {
92
92
  's-tabs-active': this.isSelected,
93
93
  };
94
94
  return [
95
- index.h("div", { key: '4c2cba9724d8f130fbf44e50f4dcb27e5a2b4a7c', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: 'e03cda2c201eef0f33ea21e99144b70beee4c998' })),
95
+ index.h("div", { key: '153247ab5a7c73819ccc506a45e60b9c084c391c', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: '417a3ae0c0aec8a965b5d3be9a4f917f290d2109' })),
96
96
  ];
97
97
  }
98
98
  };
@@ -145,7 +145,7 @@ const SallaTabs = class {
145
145
  }
146
146
  render() {
147
147
  return [
148
- index.h("div", { key: '49df0b08c12cc094afbcbdc106b02a9766a5b8e4', class: "s-tabs" }, index.h("div", { key: '02979fdfce4e6ada2caafd6a165b241b885e05b0', class: "s-tabs-header" }, index.h("slot", { key: '9919372225fd8be367648689337476f9dacc4ca4', name: "header" })), index.h("div", { key: '021f811beb02ebb93c788f989dfc39d994261caa', class: "s-tabs-content-wrapper" }, index.h("slot", { key: '5a5670d0be835306dfc29771b58d022bd092d057', name: "content" })))
148
+ index.h("div", { key: 'ae50836f68ee92459720fa9bf00d73848d849627', class: "s-tabs" }, index.h("div", { key: '55e8186e80381902269f9bad5738d9a555f71d37', class: "s-tabs-header" }, index.h("slot", { key: '46ce3e1ea75f92165b3d5ee7c16f19f8693f6d31', name: "header" })), index.h("div", { key: '3669e643abb37ed2edca73fc0577822a3f7fbb90', class: "s-tabs-content-wrapper" }, index.h("slot", { key: '2cf8b79f44630e21103991325ceff2cd3a4019ba', name: "content" })))
149
149
  ];
150
150
  }
151
151
  get host() { return index.getElement(this); }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
 
8
8
  var DiscountType;
9
9
  (function (DiscountType) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
 
8
8
  const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-39%);background-color:#baf3e6;color:#004d5a;bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#baf3e6 transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
9
9
 
@@ -33,7 +33,7 @@ const SallaTooltip = class {
33
33
  }
34
34
  render() {
35
35
  const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
36
- return (index.h("div", { key: '45009eb13b1d0a1eb045b3af83c951e0710f2ec7', class: "s-tooltip-container" }, index.h("div", { key: 'd0f004819d8d235e79544d5bd55dc58f5991decd', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
36
+ return (index.h("div", { key: 'e5e8f78265e0abb1d4130fd084573c6cff1ecb2c', class: "s-tooltip-container" }, index.h("div", { key: '4dc98906dfd28c6e2d97b51329c07046eb15179c', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
37
37
  }
38
38
  get el() { return index.getElement(this); }
39
39
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
 
8
8
  const sallaTrustBadgesCss = "";
9
9
 
@@ -3,14 +3,14 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
8
8
  var bellRing = require('./bell-ring-BfKPinNo.js');
9
9
  var cart = require('./cart-s-x1Fshk.js');
10
10
  var star = require('./star-DGcH7Yso.js');
11
- var cancel = require('./cancel-De6vslRA.js');
11
+ var cancel = require('./cancel-B5SbMYEk.js');
12
12
  var star2 = require('./star2-R146a27p.js');
13
- var gift = require('./gift-CJ-3Yw_x.js');
13
+ var gift = require('./gift-DbNivqYO.js');
14
14
 
15
15
  var OrderIcon = `<!-- Generated by IcoMoon.io -->
16
16
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -105,7 +105,7 @@ const SallaUserMenu = class {
105
105
  pending_orders: cart.PendingOrdersIcon,
106
106
  wishlist: star.WishListIcon,
107
107
  wallet: WalletIcon,
108
- loyalty_program: gift.loyaltyProgramIcon,
108
+ loyalty_program: gift.SIGift,
109
109
  profile: UserCircle
110
110
  };
111
111
  }
@@ -270,9 +270,10 @@ const SallaUserMenu = class {
270
270
  return (index.h(index.Host, null, index.h("div", { class: {
271
271
  's-user-menu-wrapper': true,
272
272
  's-user-menu-relative-dropdown': this.relativeDropdown,
273
- } }, this.getTheHeader(), index.h("div", { class: { 's-user-menu-toggler': true, opened: this.opened } }, index.h("div", { class: "s-user-menu-dropdown", onClick: e => e.stopPropagation(), onKeyUp: e => e.stopPropagation() }, this.showHeader ? (index.h("div", { class: "s-user-menu-dropdown-header" }, index.h("img", { src: this.avatar, alt: `${this.first_name} ${this.last_name}` }), index.h("div", { class: "s-user-menu-dropdown-header-content" }, index.h("span", null, this.hello), index.h("p", null, this.first_name, " ", this.last_name)), index.h("button", { type: 'button', class: "s-user-menu-dropdown-header-close", innerHTML: cancel.Cancel, onClick: () => { this.opened = false; } }))) : (''), index.h("ul", { class: "s-user-menu-dropdown-list" }, Object.entries(this.items).map((item, i) => this.getMenuItem(item, i))))))));
273
+ } }, this.getTheHeader(), index.h("div", { class: { 's-user-menu-toggler': true, opened: this.opened } }, index.h("div", { class: "s-user-menu-dropdown", onClick: e => e.stopPropagation(), onKeyUp: e => e.stopPropagation() }, this.showHeader ? (index.h("div", { class: "s-user-menu-dropdown-header" }, index.h("img", { src: this.avatar, alt: `${this.first_name} ${this.last_name}` }), index.h("div", { class: "s-user-menu-dropdown-header-content" }, index.h("span", null, this.hello), index.h("p", null, this.first_name, " ", this.last_name)), index.h("button", { type: 'button', class: "s-user-menu-dropdown-header-close", innerHTML: cancel.SICancel, onClick: () => { this.opened = false; } }))) : (''), index.h("ul", { class: "s-user-menu-dropdown-list" }, Object.entries(this.items).map((item, i) => this.getMenuItem(item, i))))))));
274
274
  }
275
- componentDidLoad() {
275
+ async componentDidLoad() {
276
+ await Salla.hooks.registerComponent('salla-user-menu', this);
276
277
  document.lazyLoadInstance?.update(this.host.querySelectorAll('.lazy'));
277
278
  }
278
279
  buildProfileUrl(token) {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
  var interfaces = require('./interfaces-CRqrf5RX.js');
8
8
 
9
9
  const sallaUserProfileCss = ":host{display:block}";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
6
+ var index = require('./index-B3JuQExz.js');
7
7
 
8
8
  var Bullhorn = `<!-- Generated by IcoMoon.io -->
9
9
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -80,7 +80,7 @@ const SallaUserSettings = class {
80
80
  await salla.profile.delete().finally(() => this.confirmationModal.close());
81
81
  }
82
82
  render() {
83
- return (index.h(index.Host, { key: '35629ae7a818db4d058b5de6a4ad7a2410fd769a', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: '088ff650127df0e6e4fda37dc9769ebe7a050cfa', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: 'dc71e681761440cb875d3de11b3d1a13def55a5c' }, index.h("div", { key: '44b1c2e02b981712467b5d494e1d8e8c30cefc5d', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'cb4f89d7f81526be268ac7ac7cf407f458eee32a', innerHTML: UserCancel })), index.h("div", { key: '2be07d40cd1b2082e08f391d43f6fb292e707c51', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: 'ab4702331a6b59f974794e1c6f95505541273db7', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '92615b95a6f669e4925a17b6a11ef9146d182d62', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: 'd99cd97d0baf75c75fc8e2ba6fd403109295658f', class: "s-toggle" }, index.h("input", { key: '52997c851e7ffff021d267d9cc839d19a1b940b9', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: 'f2418d8595800b8e2af231aab82714137bad4e5c', class: "s-toggle-switcher" }))))), index.h("div", { key: 'ca9641927d0c2e09345078a16e06445f1961d05d', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '55075a73c15fda0fb94291e41d528b066d2a808d' }, index.h("div", { key: '20e5894110f485f2ed75fdc6f0d54b647d1d4a48', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'c616fe981cd2a7ceb8090c44fe353b5504f5b0e1', innerHTML: Bullhorn })), index.h("div", { key: 'c1dc47211d07cc1ea25e2ce284f460c2eb6d4f7b', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: '185e058888078b556a359acb6cc1ae080f01ad81', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: 'f54597f7f3c9126c57d34a5aba3ccd84752efbea', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '3386b76fc2d590b3a3734716429a8317a80fcc0b', class: "s-toggle" }, index.h("input", { key: 'd2d9ce3f8e3110715d84e9b407b878e341567fc6', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: '267b474fb32cbabdf53ff8fd2fe69df87875819d', class: "s-toggle-switcher" }))))), index.h("div", { key: '80d86e89c87bceddddd461faeede4dfc8f4b3301', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: 'b95c175905cde9d4fae8487d1a85329db890873f' }, index.h("div", { key: '1e32b08bceb6bf299ea1e59545d7c539cb2ddce1', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'f1322819a6f07dff92f9956c0149b173f283407e', innerHTML: UserOff })), index.h("div", { key: '5d2ddaf6c03c8809f7e86b33fa421e73d048957e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: '0578e54cc49334ad081641b2ccd5b98d81e547ed', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: '30d6697be785def178352999d437f67798a03ed5', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: 'b0ecec87180902892081999d0c96da33cda58d26', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: 'b2015afb2f495f080d6757a57408ccd3e823b1ed', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: 'e9391b722fe6c23853664cd5558c289e7fff427a', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: 'fffaa51055598f66f479e90676649eac4a06148c', class: "s-user-settings-confirmation" }, index.h("div", { key: '2d7044a63ada034d44de97a875903967de4fa7f0', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: 'f79c44b10a20b187c4f5a849b7e40c3c71eb0194', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: 'b41c685894464f38f8a590482532a46851702ee7', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: '3520e6c0bd7475a6ad3b004ec0a20c3993ebb45f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
83
+ return (index.h(index.Host, { key: 'b37f8e7cd7fe59dfd4f4e1efe455e74d33d4b91e', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: '7cf5f1ed489159ef1c754fc8368b390d35cc273d', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '961843ff5de245febf4b5d9d4a96d47b44aeaff3' }, index.h("div", { key: 'bdfa266ee2694e410ff2bc8d6ec31b5210e7bf08', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '8ff08646cb3b3ba8d157f07cb4d54a6f515409a7', innerHTML: UserCancel })), index.h("div", { key: '8030d07722d9ad730676dafd1323b93a361f91da', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: 'f4c524dfe45418f0dd7395e998b1c16aa951a5f9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '74569032acb01ff1037104dcaf46f13c18c16803', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '6002a8368a587dbd8d3fd3fc1231e52ee44ebbbe', class: "s-toggle" }, index.h("input", { key: '2e9a622f9a670ef0f314c6183c57c851334a7df5', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: 'ca57daef65f550d53c1f947b41d3fb488bd38a95', class: "s-toggle-switcher" }))))), index.h("div", { key: 'b81a0200e08c0eca176060362792a45d9d7ad41e', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: 'ebcdac4056d21cbbd218b246cdd6c5bfa7bc2ac3' }, index.h("div", { key: 'df3a675745a0945498f3f45e11016f9f9c71ce6d', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: 'b5accc798ca95bd803f9c721f96fe62ca27e8ecf', innerHTML: Bullhorn })), index.h("div", { key: 'fe82c42f7586ba892f14ed7b1d2f85e19c508e8c', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: 'ec35e1a363a0802ab14a92b4bc8b858b9bf79c72', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: 'cc0d65144cfffc7fc795f3b1dde9ae6d75e827ec', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '945d030759a2ab27b9e9379d96f879d299b0a444', class: "s-toggle" }, index.h("input", { key: '6dd35723f4e049263193d50d1488a300e26a166e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: '1f529a32b220a0a5ba673fe41573786450e4f1b8', class: "s-toggle-switcher" }))))), index.h("div", { key: '9973aa99cd3944ced8e87da05a3711b9cde5faa4', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '97ea806a1c5bc6e7f08ab04cdf555173d7e2c268' }, index.h("div", { key: 'fa98419cd6e11598c6e230ad462501f3dd66b975', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '9bb7192d2bcdd942974a2a6e405878998e090f3c', innerHTML: UserOff })), index.h("div", { key: '9e79bfd50311f2ec272bc6d90224d2f81c736d8e', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: '805696292b1354bf57b0f0252eabd031dc4ac5db', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: '4984f94d2eef4870036d1bea837cbe16e9978d84', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: '7be1eaf49fdb3df86b953a14879695c0c2eae838', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: '55608c2fbfd01c328f923316aa203ebd6539ef86', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: '247bb5555b3aa936ab4815f16ec332f6d922ab49', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: 'd8499d470dd0cce984687c9f6842970467b832a9', class: "s-user-settings-confirmation" }, index.h("div", { key: 'c4d98f4dc7591c53a0f4ab71fc1c7e0d446cebfc', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: 'abebad572dab06b497451fff00a405e4c9db5652', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: 'bfde878cc657d975154f6e8b73220786b3898dbf', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: 'b3334a9b6fda2aa6de6f66f610efbba8ae95910f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
84
84
  }
85
85
  };
86
86
  SallaUserSettings.style = sallaUserSettingsCss;
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-Cuq57q32.js');
7
- var mail = require('./mail-CO8cFZH7.js');
6
+ var index = require('./index-B3JuQExz.js');
7
+ var mail = require('./mail-Bgvt2hc9.js');
8
8
 
9
9
  var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
10
10
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
@@ -247,7 +247,7 @@ const SallaVerify = class {
247
247
  }
248
248
  render() {
249
249
  return this.display == 'inline' ? index.h(index.Host, null, this.myBody()) :
250
- index.h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, index.h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon : mail.MailIcon }), this.myBody());
250
+ index.h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, index.h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon : mail.SIMail }), this.myBody());
251
251
  }
252
252
  myBody() {
253
253
  return (index.h("div", { class: "s-verify-body", ref: body => this.body = body }, index.h("div", { class: "s-verify-message", innerHTML: salla.lang.get('pages.profile.verify_message') }), index.h("slot", { name: "mobile" }), index.h("slot", { name: "email" }), index.h("input", { type: "hidden", name: "code", maxlength: "4", required: true, ref: code => this.code = code }), index.h("div", { class: { "s-verify-codes": true, "has-error": this.hasError }, dir: "ltr" }, [1, 2, 3, 4].map((i) => index.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 ? index.h("span", { class: "s-verify-error-message" }, this.errorMessage) : '', index.h("div", { slot: "footer", class: "s-verify-footer" }, index.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')), index.h("p", { class: "s-verify-resend-message", ref: el => this.resendMessage = el }, salla.lang.get('blocks.header.resend_after'), index.h("b", { class: "s-verify-timer", ref: el => this.timer = el })), index.h("a", { href: "#", class: "s-verify-resend", onClick: () => this.resendCode(), ref: el => this.resend = el }, salla.lang.get('blocks.comments.submit'))), index.h("slot", { name: "after-footer" })));