@salla.sa/twilight-components 3.0.19 → 3.0.21

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 (466) hide show
  1. package/dist/cjs/{Helper-DqKJCL8G.js → Helper-8GCn2Wfh.js} +1 -1
  2. package/dist/cjs/delivery-promise-intent-5WTKLkFZ.js +71 -0
  3. package/dist/cjs/{filepond-Byu0lc8z.js → filepond-DyDRgSW7.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-poster-qwx7lYZ-.js → filepond-plugin-file-poster-BbEyrQ24.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-file-validate-size-C-n0P4TT.js → filepond-plugin-file-validate-size-dIjgIAJz.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-file-validate-type-C8VOOXdT.js → filepond-plugin-file-validate-type-MITfI2m0.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-edit-B9KG763Y.js → filepond-plugin-image-edit-B0vevlWn.js} +1 -1
  8. package/dist/cjs/{filepond-plugin-image-exif-orientation-Czt4pYzU.js → filepond-plugin-image-exif-orientation-C8fbY4tU.js} +1 -1
  9. package/dist/cjs/{filepond-plugin-image-preview-BFm1Zl0o.js → filepond-plugin-image-preview-pu-ILH6g.js} +1 -1
  10. package/dist/cjs/{helpers-NV7wgP50.js → helpers-wRMwEkLy.js} +25 -0
  11. package/dist/cjs/{index-CFW798jX.js → index-DjzCGoSW.js} +14 -10
  12. package/dist/cjs/{intlTelInput-CLa2B89b.js → intlTelInput-mRDdvd3r.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
  16. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +120 -6
  17. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  19. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-applied-filters.cjs.entry.js +2 -2
  21. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-attachment-view_9.cjs.entry.js +13 -13
  23. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +12 -17
  26. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-comment-form_9.cjs.entry.js +4 -4
  32. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-delivery-promise.cjs.entry.js +5 -65
  38. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
  40. package/dist/cjs/salla-filters.cjs.entry.js +2 -2
  41. package/dist/cjs/salla-free-shipping-banner.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-free-shipping-tag.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-gift-card-redeem_2.cjs.entry.js +2 -2
  45. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
  48. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-map_3.cjs.entry.js +1 -1
  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-mobile-update-modal.cjs.entry.js +188 -0
  63. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
  64. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
  65. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
  66. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-notification-item_2.cjs.entry.js +3 -3
  68. package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
  69. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
  75. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
  77. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-order-items.cjs.entry.js +2 -2
  79. package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-order-payment.cjs.entry.js +2 -2
  81. package/dist/cjs/salla-order-rewards.cjs.entry.js +2 -2
  82. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
  84. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-orders.cjs.entry.js +2 -2
  86. package/dist/cjs/salla-payments.cjs.entry.js +3 -3
  87. package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
  88. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
  90. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
  92. package/dist/cjs/salla-products-list.cjs.entry.js +2 -2
  93. package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +33 -7
  96. package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
  97. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
  98. package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-search-product-card.cjs.entry.js +3 -3
  101. package/dist/cjs/salla-search.cjs.entry.js +2 -2
  102. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  103. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  104. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  105. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  106. package/dist/cjs/salla-thank-you-header.cjs.entry.js +2 -2
  107. package/dist/cjs/salla-thank-you-page.cjs.entry.js +2 -2
  108. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  109. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  110. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  111. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  112. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  113. package/dist/cjs/salla-verify.cjs.entry.js +3 -3
  114. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  115. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
  116. package/dist/cjs/salla-wishlist-summary.cjs.entry.js +2 -2
  117. package/dist/cjs/twilight.cjs.js +2 -2
  118. package/dist/cjs/{vanilla-picker-Vx_7G7bs.js → vanilla-picker-DTt0qsPz.js} +1 -1
  119. package/dist/collection/collection-manifest.json +1 -0
  120. package/dist/collection/components/salla-bullet-delivery/helpers.js +23 -0
  121. package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +7 -12
  122. package/dist/collection/components/salla-mobile-update-modal/salla-mobile-update-modal.css +43 -0
  123. package/dist/collection/components/salla-mobile-update-modal/salla-mobile-update-modal.js +235 -0
  124. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
  125. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
  126. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
  127. package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
  128. package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
  129. package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
  130. package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
  131. package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
  132. package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
  133. package/dist/collection/components/salla-order-items/salla-order-items.js +1 -1
  134. package/dist/collection/components/salla-order-payment/salla-order-payment.js +1 -1
  135. package/dist/collection/components/salla-order-rewards/salla-order-rewards.js +1 -1
  136. package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
  137. package/dist/collection/components/salla-payments/salla-payments.js +2 -2
  138. package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
  139. package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
  140. package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
  141. package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
  142. package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
  143. package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +47 -1
  144. package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +31 -5
  145. package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
  146. package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +1 -1
  147. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  148. package/dist/collection/components/salla-search-product-card/salla-search-product-card.js +2 -2
  149. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  150. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  151. package/dist/collection/components/salla-social/salla-social.js +1 -1
  152. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  153. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  154. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  155. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  156. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  157. package/dist/collection/components/salla-thank-you-header/salla-thank-you-header.js +1 -1
  158. package/dist/collection/components/salla-thank-you-page/salla-thank-you-page.js +1 -1
  159. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  160. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  161. package/dist/collection/components/salla-verify/salla-verify.js +48 -2
  162. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
  163. package/dist/components/delivery-promise-intent.js +67 -0
  164. package/dist/components/helpers.js +24 -1
  165. package/dist/components/index.js +2 -2
  166. package/dist/components/mail.js +2 -2
  167. package/dist/components/salla-bullet-delivery.js +7 -12
  168. package/dist/components/salla-contacts.js +2 -2
  169. package/dist/components/salla-delivery-promise.js +1 -62
  170. package/dist/components/salla-loyalty-point2.js +2 -2
  171. package/dist/components/salla-mobile-update-modal.d.ts +11 -0
  172. package/dist/components/salla-mobile-update-modal.js +241 -0
  173. package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
  174. package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
  175. package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
  176. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  177. package/dist/components/salla-multiple-bundle-product.js +1 -1
  178. package/dist/components/salla-notification-item2.js +1 -1
  179. package/dist/components/salla-offer-modal.js +1 -1
  180. package/dist/components/salla-order-details.js +1 -1
  181. package/dist/components/salla-order-edit-product-card.js +1 -1
  182. package/dist/components/salla-order-items2.js +1 -1
  183. package/dist/components/salla-order-payment.js +1 -1
  184. package/dist/components/salla-order-rewards.js +1 -1
  185. package/dist/components/salla-order-summary.js +1 -1
  186. package/dist/components/salla-payments.js +2 -2
  187. package/dist/components/salla-placeholder2.js +1 -1
  188. package/dist/components/salla-product-availability2.js +1 -1
  189. package/dist/components/salla-product-card-embed.js +1 -1
  190. package/dist/components/salla-product-size-guide.js +2 -2
  191. package/dist/components/salla-quantity-input2.js +1 -1
  192. package/dist/components/salla-quick-buy2.js +117 -3
  193. package/dist/components/salla-quick-order.js +2 -2
  194. package/dist/components/salla-rating-modal-v22.js +33 -7
  195. package/dist/components/salla-rating-modal2.js +2 -2
  196. package/dist/components/salla-review-card2.js +1 -1
  197. package/dist/components/salla-review-factors-tags2.js +1 -1
  198. package/dist/components/salla-reviews-page.js +1 -1
  199. package/dist/components/salla-search-product-card2.js +2 -2
  200. package/dist/components/salla-searchable-dropdown2.js +4 -4
  201. package/dist/components/salla-skeleton2.js +1 -1
  202. package/dist/components/salla-social-share2.js +4 -4
  203. package/dist/components/salla-social.js +1 -1
  204. package/dist/components/salla-tab-content2.js +1 -1
  205. package/dist/components/salla-tab-header2.js +1 -1
  206. package/dist/components/salla-tabs2.js +1 -1
  207. package/dist/components/salla-tel-input2.js +1 -1
  208. package/dist/components/salla-thank-you-header.js +1 -1
  209. package/dist/components/salla-thank-you-page.js +1 -1
  210. package/dist/components/salla-tooltip2.js +1 -1
  211. package/dist/components/salla-user-settings.js +1 -1
  212. package/dist/components/salla-verify.js +1 -321
  213. package/dist/components/salla-verify2.js +328 -0
  214. package/dist/components/salla-wishlist-actions.js +1 -1
  215. package/dist/docs.json +158 -2
  216. package/dist/esm/{Helper-I0CAizv1.js → Helper-DZKYnNWb.js} +1 -1
  217. package/dist/esm/delivery-promise-intent-C6pZjRut.js +67 -0
  218. package/dist/esm/{filepond-DTUYXV0J.js → filepond-Th5h_x_y.js} +1 -1
  219. package/dist/esm/{filepond-plugin-file-poster-DydZjneT.js → filepond-plugin-file-poster-CH6jw-Ue.js} +1 -1
  220. package/dist/esm/{filepond-plugin-file-validate-size-nbsCU2t9.js → filepond-plugin-file-validate-size-Q-NzkoIy.js} +1 -1
  221. package/dist/esm/{filepond-plugin-file-validate-type-Cl5B_DIy.js → filepond-plugin-file-validate-type-CbY5K7RZ.js} +1 -1
  222. package/dist/esm/{filepond-plugin-image-edit-bzskFyFR.js → filepond-plugin-image-edit-JietW24Z.js} +1 -1
  223. package/dist/esm/{filepond-plugin-image-exif-orientation-MBDuxLaX.js → filepond-plugin-image-exif-orientation-FoYRnhuB.js} +1 -1
  224. package/dist/esm/{filepond-plugin-image-preview-N6wzEryW.js → filepond-plugin-image-preview-DVAxXbSQ.js} +1 -1
  225. package/dist/esm/{helpers-Cnh7Qptl.js → helpers-BVaKfTMx.js} +24 -1
  226. package/dist/esm/{index-C9zdeQFI.js → index-C9GauqTa.js} +14 -10
  227. package/dist/esm/{intlTelInput-B5L9nYtO.js → intlTelInput-BVoDutQ9.js} +1 -1
  228. package/dist/esm/loader.js +3 -3
  229. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  230. package/dist/esm/salla-accordion_6.entry.js +2 -2
  231. package/dist/esm/salla-add-product-button_5.entry.js +120 -6
  232. package/dist/esm/salla-advertisement.entry.js +1 -1
  233. package/dist/esm/salla-alert_2.entry.js +1 -1
  234. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  235. package/dist/esm/salla-applied-filters.entry.js +2 -2
  236. package/dist/esm/salla-apps-icons.entry.js +1 -1
  237. package/dist/esm/salla-attachment-view_9.entry.js +13 -13
  238. package/dist/esm/salla-badge.entry.js +1 -1
  239. package/dist/esm/salla-basket-gap.entry.js +1 -1
  240. package/dist/esm/salla-bullet-delivery_3.entry.js +12 -17
  241. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  242. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  243. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  244. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  245. package/dist/esm/salla-comment-factors.entry.js +1 -1
  246. package/dist/esm/salla-comment-form_9.entry.js +4 -4
  247. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  248. package/dist/esm/salla-contacts.entry.js +1 -1
  249. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  250. package/dist/esm/salla-count-down.entry.js +1 -1
  251. package/dist/esm/salla-custom-fields.entry.js +1 -1
  252. package/dist/esm/salla-delivery-promise.entry.js +3 -63
  253. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  254. package/dist/esm/salla-filters-widget.entry.js +2 -2
  255. package/dist/esm/salla-filters.entry.js +2 -2
  256. package/dist/esm/salla-free-shipping-banner.entry.js +1 -1
  257. package/dist/esm/salla-free-shipping-tag.entry.js +1 -1
  258. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  259. package/dist/esm/salla-gift-card-redeem_2.entry.js +2 -2
  260. package/dist/esm/salla-gifting.entry.js +1 -1
  261. package/dist/esm/salla-hook.entry.js +1 -1
  262. package/dist/esm/salla-infinite-scroll.entry.js +2 -2
  263. package/dist/esm/salla-installment.entry.js +1 -1
  264. package/dist/esm/salla-list-tile.entry.js +1 -1
  265. package/dist/esm/salla-localization-modal.entry.js +1 -1
  266. package/dist/esm/salla-login-modal.entry.js +1 -1
  267. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  268. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  269. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  270. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  271. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  272. package/dist/esm/salla-loyalty.entry.js +1 -1
  273. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  274. package/dist/esm/salla-map_3.entry.js +1 -1
  275. package/dist/esm/salla-menu.entry.js +1 -1
  276. package/dist/esm/salla-metadata.entry.js +1 -1
  277. package/dist/esm/salla-mobile-update-modal.entry.js +186 -0
  278. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
  279. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
  280. package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
  281. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  282. package/dist/esm/salla-notification-item_2.entry.js +3 -3
  283. package/dist/esm/salla-offer-modal.entry.js +2 -2
  284. package/dist/esm/salla-offer.entry.js +1 -1
  285. package/dist/esm/salla-order-branch.entry.js +1 -1
  286. package/dist/esm/salla-order-cancel.entry.js +1 -1
  287. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  288. package/dist/esm/salla-order-details-options.entry.js +1 -1
  289. package/dist/esm/salla-order-details.entry.js +2 -2
  290. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  291. package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
  292. package/dist/esm/salla-order-edit.entry.js +1 -1
  293. package/dist/esm/salla-order-items.entry.js +2 -2
  294. package/dist/esm/salla-order-options-modal.entry.js +1 -1
  295. package/dist/esm/salla-order-payment.entry.js +2 -2
  296. package/dist/esm/salla-order-rewards.entry.js +2 -2
  297. package/dist/esm/salla-order-shipments.entry.js +1 -1
  298. package/dist/esm/salla-order-summary.entry.js +2 -2
  299. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  300. package/dist/esm/salla-orders.entry.js +2 -2
  301. package/dist/esm/salla-payments.entry.js +3 -3
  302. package/dist/esm/salla-placeholder.entry.js +2 -2
  303. package/dist/esm/salla-price-range.entry.js +1 -1
  304. package/dist/esm/salla-product-card-embed.entry.js +2 -2
  305. package/dist/esm/salla-product-card.entry.js +1 -1
  306. package/dist/esm/salla-product-size-guide.entry.js +3 -3
  307. package/dist/esm/salla-products-list.entry.js +2 -2
  308. package/dist/esm/salla-products-slider.entry.js +2 -2
  309. package/dist/esm/salla-quick-order.entry.js +1 -1
  310. package/dist/esm/salla-rating-modal-v2.entry.js +33 -7
  311. package/dist/esm/salla-rating-modal.entry.js +2 -2
  312. package/dist/esm/salla-review-factors-tags.entry.js +2 -2
  313. package/dist/esm/salla-review-order-item.entry.js +1 -1
  314. package/dist/esm/salla-scopes.entry.js +1 -1
  315. package/dist/esm/salla-search-product-card.entry.js +3 -3
  316. package/dist/esm/salla-search.entry.js +2 -2
  317. package/dist/esm/salla-skeleton.entry.js +2 -2
  318. package/dist/esm/salla-social-share.entry.js +2 -2
  319. package/dist/esm/salla-social.entry.js +2 -2
  320. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  321. package/dist/esm/salla-thank-you-header.entry.js +2 -2
  322. package/dist/esm/salla-thank-you-page.entry.js +2 -2
  323. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  324. package/dist/esm/salla-trust-badges.entry.js +1 -1
  325. package/dist/esm/salla-user-menu.entry.js +1 -1
  326. package/dist/esm/salla-user-profile.entry.js +1 -1
  327. package/dist/esm/salla-user-settings.entry.js +2 -2
  328. package/dist/esm/salla-verify.entry.js +3 -3
  329. package/dist/esm/salla-wallet.entry.js +1 -1
  330. package/dist/esm/salla-wishlist-actions.entry.js +2 -2
  331. package/dist/esm/salla-wishlist-summary.entry.js +2 -2
  332. package/dist/esm/twilight.js +3 -3
  333. package/dist/esm/{vanilla-picker-CAeu4f87.js → vanilla-picker-DF1Nq4hd.js} +1 -1
  334. package/dist/twilight/{p-4070f808.entry.js → p-0166f79c.entry.js} +1 -1
  335. package/dist/twilight/{p-0213fde4.entry.js → p-018826eb.entry.js} +1 -1
  336. package/dist/twilight/{p-74285af9.entry.js → p-043d73d9.entry.js} +1 -1
  337. package/dist/twilight/{p-825c5b73.entry.js → p-04aa3b60.entry.js} +1 -1
  338. package/dist/twilight/{p-90a59027.entry.js → p-0532a824.entry.js} +1 -1
  339. package/dist/twilight/{p-a55b5c44.entry.js → p-05918c61.entry.js} +1 -1
  340. package/dist/twilight/{p-c5e2c781.entry.js → p-062fc545.entry.js} +1 -1
  341. package/dist/twilight/{p-3b7a45ec.entry.js → p-08369cba.entry.js} +1 -1
  342. package/dist/twilight/{p-6d572fe0.entry.js → p-0d0f83be.entry.js} +1 -1
  343. package/dist/twilight/{p-982e9124.entry.js → p-0e68d32e.entry.js} +1 -1
  344. package/dist/twilight/{p-32d9da31.entry.js → p-115e4d6f.entry.js} +1 -1
  345. package/dist/twilight/{p-c2df20f8.entry.js → p-116ba74d.entry.js} +1 -1
  346. package/dist/twilight/{p-0add41ce.entry.js → p-12486655.entry.js} +1 -1
  347. package/dist/twilight/{p-30d64bd1.entry.js → p-1344006a.entry.js} +1 -1
  348. package/dist/twilight/{p-ade9a68c.entry.js → p-149eb28d.entry.js} +1 -1
  349. package/dist/twilight/{p-ce1e45a3.entry.js → p-172f2a77.entry.js} +1 -1
  350. package/dist/twilight/{p-386b3dcd.entry.js → p-173677bd.entry.js} +1 -1
  351. package/dist/twilight/{p-e20d5e75.entry.js → p-175aa116.entry.js} +1 -1
  352. package/dist/twilight/{p-e455709f.entry.js → p-1ad63304.entry.js} +1 -1
  353. package/dist/twilight/{p-db3efb27.entry.js → p-1c820b97.entry.js} +1 -1
  354. package/dist/twilight/{p-7fa4d0b6.entry.js → p-1c878907.entry.js} +1 -1
  355. package/dist/twilight/{p-a0bfedad.entry.js → p-1e675e56.entry.js} +1 -1
  356. package/dist/twilight/{p-8262e669.entry.js → p-283d55a9.entry.js} +1 -1
  357. package/dist/twilight/{p-9a0218a6.entry.js → p-28a3838d.entry.js} +1 -1
  358. package/dist/twilight/{p-b5e0065a.entry.js → p-2ac25f71.entry.js} +1 -1
  359. package/dist/twilight/{p-cb54adac.entry.js → p-2bf7cbe6.entry.js} +1 -1
  360. package/dist/twilight/{p-17bcbf9b.entry.js → p-2e5c4855.entry.js} +1 -1
  361. package/dist/twilight/{p-c64b2b22.entry.js → p-2e805b61.entry.js} +1 -1
  362. package/dist/twilight/{p-e921b2d1.entry.js → p-33c586a7.entry.js} +1 -1
  363. package/dist/twilight/{p-8948b58c.entry.js → p-35ec8259.entry.js} +1 -1
  364. package/dist/twilight/{p-8eb3fd92.entry.js → p-39cf245a.entry.js} +1 -1
  365. package/dist/twilight/{p-7db8d545.entry.js → p-39e19e3e.entry.js} +1 -1
  366. package/dist/twilight/{p-8b8cf457.entry.js → p-405a0719.entry.js} +1 -1
  367. package/dist/twilight/{p-6f84c662.entry.js → p-4514bfbc.entry.js} +1 -1
  368. package/dist/twilight/{p-d57b49ff.entry.js → p-45b91895.entry.js} +1 -1
  369. package/dist/twilight/p-45d6ae74.entry.js +4 -0
  370. package/dist/twilight/{p-e223beca.entry.js → p-466b7d90.entry.js} +1 -1
  371. package/dist/twilight/p-46848a79.entry.js +4 -0
  372. package/dist/twilight/{p-ad00021e.entry.js → p-4a1d812a.entry.js} +1 -1
  373. package/dist/twilight/{p-e3991836.entry.js → p-4f323370.entry.js} +1 -1
  374. package/dist/twilight/{p-aabcd09f.entry.js → p-54a0fabd.entry.js} +1 -1
  375. package/dist/twilight/{p-5aee5e44.entry.js → p-5ed309ee.entry.js} +1 -1
  376. package/dist/twilight/{p-0b0d4942.entry.js → p-624c2b99.entry.js} +1 -1
  377. package/dist/twilight/{p-8c2992e7.entry.js → p-628ae902.entry.js} +1 -1
  378. package/dist/twilight/{p-a22d9931.entry.js → p-62bf84fd.entry.js} +1 -1
  379. package/dist/twilight/{p-99cb3dba.entry.js → p-63247bfb.entry.js} +1 -1
  380. package/dist/twilight/{p-ec356e5a.entry.js → p-638e0139.entry.js} +1 -1
  381. package/dist/twilight/p-6c4555b2.entry.js +4 -0
  382. package/dist/twilight/{p-a5fc8358.entry.js → p-709b4ab5.entry.js} +1 -1
  383. package/dist/twilight/{p-01d5cd61.entry.js → p-70ce472b.entry.js} +1 -1
  384. package/dist/twilight/{p-036fbfc0.entry.js → p-7117fe09.entry.js} +1 -1
  385. package/dist/twilight/{p-eeefc285.entry.js → p-76141be4.entry.js} +1 -1
  386. package/dist/twilight/{p-9e429047.entry.js → p-7618a6df.entry.js} +1 -1
  387. package/dist/twilight/{p-252748d9.entry.js → p-77c477bd.entry.js} +1 -1
  388. package/dist/twilight/{p-20f9c62f.entry.js → p-7a1cdcc7.entry.js} +1 -1
  389. package/dist/twilight/{p-412fb721.entry.js → p-7d97513e.entry.js} +1 -1
  390. package/dist/twilight/{p-3b766a79.entry.js → p-7f30e00b.entry.js} +1 -1
  391. package/dist/twilight/{p-d0f903ac.entry.js → p-8722a50c.entry.js} +1 -1
  392. package/dist/twilight/{p-3bb0e184.entry.js → p-882d7c08.entry.js} +1 -1
  393. package/dist/twilight/{p-faf00404.entry.js → p-89c62a00.entry.js} +1 -1
  394. package/dist/twilight/{p-a3959219.entry.js → p-8ef15ba6.entry.js} +1 -1
  395. package/dist/twilight/{p-550ad1a6.entry.js → p-91473544.entry.js} +1 -1
  396. package/dist/twilight/{p-7db6ccfe.entry.js → p-931cc451.entry.js} +1 -1
  397. package/dist/twilight/{p-d0acd7ff.entry.js → p-93a088e7.entry.js} +1 -1
  398. package/dist/twilight/{p-32495dd2.entry.js → p-95758bdd.entry.js} +1 -1
  399. package/dist/twilight/{p-995b898f.entry.js → p-95f7c99b.entry.js} +1 -1
  400. package/dist/twilight/{p-45e0a5d0.entry.js → p-970e99cd.entry.js} +1 -1
  401. package/dist/twilight/{p-f83efc62.entry.js → p-979d0918.entry.js} +1 -1
  402. package/dist/twilight/{p-703b9253.entry.js → p-99765200.entry.js} +1 -1
  403. package/dist/twilight/{p-9683535f.entry.js → p-99b6d180.entry.js} +1 -1
  404. package/dist/twilight/{p-9e542951.entry.js → p-9b6f559e.entry.js} +1 -1
  405. package/dist/twilight/{p-777d28f6.entry.js → p-9e73b459.entry.js} +1 -1
  406. package/dist/twilight/{p-JGEddAgs.js → p-BTPANJIN.js} +1 -1
  407. package/dist/twilight/{p-Cnh7Qptl.js → p-BVaKfTMx.js} +1 -1
  408. package/dist/twilight/{p-Bgu5gtOF.js → p-C0zPqHmm.js} +1 -1
  409. package/dist/twilight/{p-C9zdeQFI.js → p-C9GauqTa.js} +2 -2
  410. package/dist/twilight/{p-Cfz9xit3.js → p-CFzrPKbi.js} +1 -1
  411. package/dist/twilight/{p-Dav_R_d2.js → p-CSsOnp68.js} +1 -1
  412. package/dist/twilight/{p-CmYSalnM.js → p-Cc1dNnp_.js} +1 -1
  413. package/dist/twilight/{p-Xgbueas7.js → p-DRtbu0JQ.js} +1 -1
  414. package/dist/twilight/{p-CSGj1pY-.js → p-DibVuHKp.js} +1 -1
  415. package/dist/twilight/{p-RflSBQNB.js → p-DuCmj2_U.js} +1 -1
  416. package/dist/twilight/{p-CWWgpQ8Q.js → p-Y0yMZUbe.js} +2 -2
  417. package/dist/twilight/{p-619c709c.entry.js → p-a91ddfb4.entry.js} +1 -1
  418. package/dist/twilight/{p-2b930157.entry.js → p-aa5d0b21.entry.js} +1 -1
  419. package/dist/twilight/{p-4d615f9f.entry.js → p-aff0942e.entry.js} +1 -1
  420. package/dist/twilight/{p-427c13b6.entry.js → p-b8238390.entry.js} +1 -1
  421. package/dist/twilight/{p-f3b12754.entry.js → p-bb05be17.entry.js} +1 -1
  422. package/dist/twilight/{p-5009f654.entry.js → p-bddfcbc8.entry.js} +1 -1
  423. package/dist/twilight/{p-9d1a5007.entry.js → p-ca329334.entry.js} +1 -1
  424. package/dist/twilight/{p-50853b76.entry.js → p-cf211a8c.entry.js} +1 -1
  425. package/dist/twilight/{p-194ff38c.entry.js → p-d0691020.entry.js} +1 -1
  426. package/dist/twilight/{p-c92cc92f.entry.js → p-d6d86cb3.entry.js} +1 -1
  427. package/dist/twilight/p-d9b6090b.entry.js +4 -0
  428. package/dist/twilight/{p-e37da59f.entry.js → p-da4b0896.entry.js} +1 -1
  429. package/dist/twilight/{p-db73d0bf.entry.js → p-da548ddf.entry.js} +1 -1
  430. package/dist/twilight/{p-fa622715.entry.js → p-de273a21.entry.js} +1 -1
  431. package/dist/twilight/{p-290ce0bc.entry.js → p-df317844.entry.js} +1 -1
  432. package/dist/twilight/{p-3cc6ca6c.entry.js → p-dff32c76.entry.js} +1 -1
  433. package/dist/twilight/{p-4d7fc363.entry.js → p-e233642f.entry.js} +1 -1
  434. package/dist/twilight/{p-73dea22d.entry.js → p-e353ad86.entry.js} +1 -1
  435. package/dist/twilight/{p-32f100f8.entry.js → p-e54ad603.entry.js} +1 -1
  436. package/dist/twilight/{p-bbb09d92.entry.js → p-e5741ee6.entry.js} +1 -1
  437. package/dist/twilight/{p-2e4e15c5.entry.js → p-e6d4feeb.entry.js} +1 -1
  438. package/dist/twilight/p-ea175728.entry.js +4 -0
  439. package/dist/twilight/p-ea31904b.entry.js +4 -0
  440. package/dist/twilight/{p-a070cce0.entry.js → p-ea7218bf.entry.js} +1 -1
  441. package/dist/twilight/{p-575014c4.entry.js → p-eae77b32.entry.js} +1 -1
  442. package/dist/twilight/{p-8712f7c7.entry.js → p-eb60fbbe.entry.js} +1 -1
  443. package/dist/twilight/{p-c4274188.entry.js → p-ed1ab1ad.entry.js} +1 -1
  444. package/dist/twilight/p-ee344577.entry.js +4 -0
  445. package/dist/twilight/{p-f6279a13.entry.js → p-f72cbb2e.entry.js} +1 -1
  446. package/dist/twilight/{p-1867f7d4.entry.js → p-fa881be4.entry.js} +1 -1
  447. package/dist/twilight/p-fad39687.entry.js +4 -0
  448. package/dist/twilight/p-q5NJ0uS-.js +4 -0
  449. package/dist/twilight/{p-BcT9tEVW.js → p-tNwFaykp.js} +1 -1
  450. package/dist/twilight/twilight.esm.js +1 -1
  451. package/dist/types/components/salla-bullet-delivery/helpers.d.ts +7 -0
  452. package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +4 -0
  453. package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +0 -2
  454. package/dist/types/components/salla-mobile-update-modal/salla-mobile-update-modal.d.ts +44 -0
  455. package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +12 -0
  456. package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +4 -0
  457. package/dist/types/components/salla-verify/salla-verify.d.ts +8 -0
  458. package/dist/types/components.d.ts +50 -0
  459. package/package.json +5 -5
  460. package/dist/twilight/p-2e6537a3.entry.js +0 -4
  461. package/dist/twilight/p-3a4e86d1.entry.js +0 -4
  462. package/dist/twilight/p-86d55a6b.entry.js +0 -4
  463. package/dist/twilight/p-8c548259.entry.js +0 -4
  464. package/dist/twilight/p-908716fb.entry.js +0 -4
  465. package/dist/twilight/p-9cf31ff4.entry.js +0 -4
  466. package/dist/twilight/p-a3ca61af.entry.js +0 -4
@@ -0,0 +1,328 @@
1
+ /*!
2
+ * Crafted with ❤ by Salla
3
+ */
4
+ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
5
+ import { e as email } from './mail.js';
6
+ import { d as defineCustomElement$3 } from './salla-button2.js';
7
+ import { d as defineCustomElement$2 } from './salla-loading2.js';
8
+ import { d as defineCustomElement$1 } from './salla-modal2.js';
9
+
10
+ var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
11
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
12
+ <title>android-phone</title>
13
+ <path d="M22.667 0h-13.333c-2.941 0-5.333 2.392-5.333 5.333v21.333c0 2.941 2.392 5.333 5.333 5.333h13.333c2.941 0 5.333-2.392 5.333-5.333v-21.333c0-2.941-2.392-5.333-5.333-5.333zM25.333 26.667c0 1.471-1.196 2.667-2.667 2.667h-13.333c-1.471 0-2.667-1.196-2.667-2.667v-2.667h18.667zM25.333 21.333h-18.667v-16c0-1.471 1.196-2.667 2.667-2.667h13.333c1.471 0 2.667 1.196 2.667 2.667zM13.333 28h5.333c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"></path>
14
+ </svg>
15
+ `;
16
+
17
+ const sallaVerifyCss = "/*!twlt*/salla-verify{display:block}.s-verify-input{}.s-verify-input::-webkit-outer-spin-button,.s-verify-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.s-verify-input[type=number]{-moz-appearance:textfield}.visible{visibility:visible}.block{display:block}.inline{display:inline}.hidden{display:none}.s-has-error{--tw-border-opacity:1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.s-has-error:focus{--tw-border-opacity:1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.btn{display:inline-flex;flex:1 1 0%;align-items:center;justify-content:center;white-space:nowrap;border-radius:0.375rem;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.btn:hover{opacity:0.8}.has-error .s-form-label{color:#ff443a}.has-error .s-form-control,.has-error .s-tel-input-control,.has-error .s-datetime-picker-input{border-color:#ff443a;color:#ff443a}.s-has-error{--tw-border-opacity:1 !important;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1)) !important;--tw-text-opacity:1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1)) !important}.s-verify-message{text-align:center;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-verify-label{margin-bottom:1rem;display:block;text-align:center;font-size:0.875rem;line-height:1.25rem}.s-verify-codes{margin-left:-0.25rem;margin-right:-0.25rem;margin-bottom:1.25rem;display:flex;justify-content:space-between}.s-verify-codes.has-error{margin-bottom:0px}.s-verify-input{margin-left:0.25rem;margin-right:0.25rem;height:2.5rem;width:100%;border-radius:var(--s-radius, 0.25rem);border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-left:0.5rem;padding-right:0.5rem;text-align:center;font-size:1.125rem;line-height:1.75rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-verify-input:focus{border-color:var(--color-primary)}.s-verify-input:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.s-verify-footer{text-align:center}.s-verify-submit{margin-bottom:1.25rem;width:100%}.s-verify-header-icon{display:inline-flex;height:3rem;width:3rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}@media (min-width: 640px){.s-verify-header-icon{margin-left:auto;margin-right:auto;margin-bottom:1rem;height:5rem;width:5rem}}.s-verify-header-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}@media (min-width: 640px){.s-verify-header-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0px}}.s-verify-header-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}@media (min-width: 640px){.s-verify-header-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0px}}.s-verify-resend-message{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-verify-error-message{margin-bottom:1.25rem;display:block;height:1.75rem;padding-top:0.75rem;text-align:center;font-size:0.75rem;line-height:1rem;--tw-border-opacity:1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.s-verify-error-message:focus{--tw-border-opacity:1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.s-verify-error-message{--tw-border-opacity:1 !important;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1)) !important;--tw-text-opacity:1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1)) !important}.s-verify-timer{margin-left:0.25rem;margin-right:0.25rem;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.s-verify-resend{text-align:center;font-size:0.875rem;line-height:1.25rem;color:var(--color-primary)}.s-verify-back{position:absolute;left:10px;top:10px;display:flex;height:2rem;width:2rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));font-size:1.125rem;line-height:1.75rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-verify-back:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.s-verify-back:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:unset;right:10px}.s-verify-back svg{height:18px;width:18px}[dir='ltr'] .s-verify-back{transform:scale(-1)}";
18
+
19
+ const SallaVerify = /*@__PURE__*/ proxyCustomElement(class SallaVerify extends HTMLElement {
20
+ constructor() {
21
+ super();
22
+ this.__registerHost();
23
+ this.verified = createEvent(this, "verified", 7);
24
+ this.translationLoaded = false;
25
+ /**
26
+ * Should render component without modal
27
+ */
28
+ this.display = 'modal';
29
+ /**
30
+ * Verifying method
31
+ */
32
+ this.type = 'mobile';
33
+ /**
34
+ * should auto reloading the page after success verification
35
+ */
36
+ this.autoReload = true;
37
+ /**
38
+ * Once the api verify success, it will be login the customer in web pages
39
+ */
40
+ this.supportWebAuth = true;
41
+ this.resendAfter = 30;
42
+ /**
43
+ * to use: `salla.api.auth.verify` or `salla.profile.verify`
44
+ */
45
+ this.isProfileVerify = false;
46
+ if (this.display == 'inline') {
47
+ this.modal = { open: () => '', close: () => '', setTitle: () => '' };
48
+ return;
49
+ }
50
+ //todo:: change this way, now we fire the event from the backend, we should listen to salla.profile.event.onUpdated
51
+ this.profileVerificationListener = data => {
52
+ let payload = Array.isArray(data) ? data[0] : data;
53
+ // Account-deletion OTP is owned by <salla-user-settings>; opening this modal
54
+ // (and auto-reloading) would break that flow. Prefer payload.request_type when
55
+ // present; fall back to the delete modal being open.
56
+ const isDeleteRequest = payload?.request_type === 'delete_account'
57
+ || document.getElementById('salla-user-settings-delete-modal')?.hasAttribute('visible');
58
+ if (isDeleteRequest) {
59
+ return;
60
+ }
61
+ this.isProfileVerify = true;
62
+ this.open(payload);
63
+ this.title = salla.lang.get('pages.profile.verify_title') + salla.lang.get('common.elements.' + payload.type);
64
+ this.modal?.setTitle(this.title);
65
+ };
66
+ this.modalClosedListener = () => {
67
+ this.resendAfter = 0;
68
+ this.timer.innerHTML = '30 : 00';
69
+ };
70
+ }
71
+ connectedCallback() {
72
+ if (this.profileVerificationListener) {
73
+ salla.event.on('profile::verification', this.profileVerificationListener);
74
+ salla.event.on('modalClosed', this.modalClosedListener);
75
+ }
76
+ this.langUnsubscribe = salla.lang.subscribe(() => {
77
+ this.translationLoaded = true;
78
+ this.title = salla.lang.get('pages.profile.verify_title') + salla.lang.get('common.elements.' + this.type);
79
+ this.modal?.setTitle(this.title);
80
+ // translationLoaded is already true on later calls, so force the render that refreshes the labels read in render()
81
+ forceUpdate(this);
82
+ });
83
+ }
84
+ disconnectedCallback() {
85
+ if (this.profileVerificationListener) {
86
+ salla.event.off('profile::verification', this.profileVerificationListener);
87
+ salla.event.off('modalClosed', this.modalClosedListener);
88
+ }
89
+ this.langUnsubscribe?.();
90
+ }
91
+ splitNumber(e) {
92
+ this.resetError();
93
+ let data = e.data || e.target.value; // Chrome doesn't get the e.data, it's always empty, fallback to value then.
94
+ if (!data)
95
+ return; // Shouldn't happen, just in case.
96
+ if (data.length === 1)
97
+ return; // Here is a normal behavior, not a paste action.
98
+ this.modifyNext(e.target, data);
99
+ }
100
+ modifyNext(el, data) {
101
+ el.value = data[0]; // Apply first item to first input
102
+ data = data.substring(1); // remove the first char.
103
+ if (el.nextElementSibling && data.length) {
104
+ // Do the same with the next element and next data
105
+ this.modifyNext(el.nextElementSibling, data);
106
+ }
107
+ else if (!el.nextElementSibling && data.length === 0) {
108
+ el.focus();
109
+ }
110
+ else if (el.nextElementSibling && data.length === 0) {
111
+ el.nextElementSibling.focus();
112
+ }
113
+ }
114
+ checkAllInputs() {
115
+ let allFilled = true;
116
+ for (let i = 0; i < this.otpInputs.length; i++) {
117
+ if (this.otpInputs[i].value === '') {
118
+ allFilled = false;
119
+ }
120
+ }
121
+ return allFilled;
122
+ }
123
+ handleKeyUp(ev) {
124
+ this.resetError();
125
+ if (['Alt', 'Shift', 'Control', 'AltGraph', 'Ctrl'].includes(ev.key)) {
126
+ return;
127
+ }
128
+ let key = ev.keyCode || ev.charCode;
129
+ if (ev.target.value) {
130
+ ev.target.nextElementSibling?.focus();
131
+ ev.target.nextElementSibling?.select();
132
+ }
133
+ else if ([8, 46].includes(key)) {
134
+ ev.target.previousElementSibling?.focus();
135
+ ev.target.previousElementSibling?.select();
136
+ }
137
+ // If the target is populated to quickly, value length can be > 1
138
+ if (ev.target.value.length > 1) {
139
+ this.splitNumber(ev);
140
+ }
141
+ }
142
+ handlePaste(ev) {
143
+ this.resetError();
144
+ const clipboardText = salla.helpers.number(ev.clipboardData.getData('text')) || '';
145
+ let text = clipboardText.replace(/[^0-9]/g, '');
146
+ text = text.substring(0, this.otpInputs.length);
147
+ this.otpInputs.forEach(input => input.value = '');
148
+ this.modifyNext(this.otpInputs[0], text);
149
+ }
150
+ handleInput(ev) {
151
+ this.resetError();
152
+ salla.helpers.inputDigitsOnly(ev.target);
153
+ // check if all otpInputs has values then send the request
154
+ if (this.checkAllInputs()) {
155
+ setTimeout(() => {
156
+ this.toggleOTPSubmit();
157
+ }, 100);
158
+ }
159
+ }
160
+ resetError() {
161
+ this.hasError = false;
162
+ this.errorMessage = '';
163
+ }
164
+ handleFocus(ev) {
165
+ // If the focus element is the first one, do nothing
166
+ if (ev.target === this.firstOtpInput)
167
+ return;
168
+ // If value of input 1 is empty, focus it.
169
+ if (this.firstOtpInput?.value == '') {
170
+ this.firstOtpInput.focus();
171
+ }
172
+ // If value of a previous input is empty, focus it.
173
+ // To remove if you don't wanna force user respecting the fields order.
174
+ if (ev.target.previousElementSibling.value == '') {
175
+ ev.target.previousElementSibling.focus();
176
+ }
177
+ }
178
+ /**
179
+ * Get current code
180
+ * @return {string}
181
+ */
182
+ async getCode() {
183
+ return this.code.value;
184
+ }
185
+ /**
186
+ * Open verifying modal
187
+ * @param data
188
+ */
189
+ async open(data) {
190
+ this.data = data;
191
+ this.data.type = this.data.type || this.type;
192
+ this.type = this.data.type;
193
+ this.resendTimer();
194
+ this.otpInputs = this.body.querySelectorAll('.s-verify-input');
195
+ this.firstOtpInput = this.body.querySelector('#otp-1');
196
+ this.reset();
197
+ this.resetError();
198
+ this.display == 'modal' && this.modal?.setTitle(this.title);
199
+ this.modal.open();
200
+ this.firstOtpInput?.addEventListener('input', e => this.splitNumber(e));
201
+ // focus the first input after opening the modal
202
+ setTimeout(() => this.otpInputs[0].focus(), 100);
203
+ }
204
+ toggleOTPSubmit() {
205
+ let otp = [];
206
+ this.otpInputs.forEach(input => input.value && otp.push(input.value));
207
+ this.code.value = otp.join('');
208
+ if (otp.length === 4) {
209
+ this.btn.disable();
210
+ this.btn.click();
211
+ return;
212
+ }
213
+ this.btn.enable();
214
+ }
215
+ reset() {
216
+ this.otpInputs.forEach((input) => input.value = '');
217
+ this.code.value = '';
218
+ this.otpInputs[0].focus();
219
+ }
220
+ resendTimer() {
221
+ this.resendMessage.style.display = 'block';
222
+ this.resend.style.display = 'none';
223
+ this.resendAfter = 30;
224
+ let timerId = setInterval(() => {
225
+ if (this.resendAfter <= 0) {
226
+ clearInterval(timerId);
227
+ this.resend.style.display = 'block';
228
+ this.resendMessage.style.display = 'none';
229
+ }
230
+ else {
231
+ this.timer.innerHTML = `${this.resendAfter >= 10 ? this.resendAfter : '0' + this.resendAfter} : 00`;
232
+ this.resendAfter--;
233
+ }
234
+ }, 1000);
235
+ }
236
+ resendCode() {
237
+ return this.btn.stop()
238
+ .then(() => this.btn.disable())
239
+ .then(() => {
240
+ this.otpInputs.forEach(input => input.value = '');
241
+ this.otpInputs[0].focus();
242
+ })
243
+ .then(() => this.resendHandler ? this.resendHandler(this.data) : salla.api.auth.resend(this.data))
244
+ .finally(() => this.resendTimer());
245
+ }
246
+ submit() {
247
+ //if code not 4 digits, focus on the after filled input,
248
+ if (this.code.value.length < 4) {
249
+ this.otpInputs[this.code.value.length].focus();
250
+ salla.log('Trying to submit without 4 digits!');
251
+ return;
252
+ }
253
+ let data = { code: this.code.value, ...this.data };
254
+ return this.btn.load()
255
+ .then(() => this.btn.disable())
256
+ .then(() => this.verifyHandler ? this.verifyHandler(data) : this.isProfileVerify ? salla.profile.verify(data) : salla.auth.verify(data, this.supportWebAuth))
257
+ .then(response => this.verified.emit(response))
258
+ .then(() => this.btn.stop() && this.btn.disable())
259
+ .then(() => this.modal.close())
260
+ .then(() => this.autoReload && window.location.reload())
261
+ .catch((error) => {
262
+ this.hasError = true;
263
+ this.errorMessage = error.response?.data?.error?.message || salla.lang.get('common.errors.error_occurred');
264
+ if (!error.response) {
265
+ console.log('Unexpected error', error);
266
+ }
267
+ else {
268
+ salla.logger.error(error);
269
+ }
270
+ this.btn.stop() && this.btn.enable() && this.reset();
271
+ });
272
+ }
273
+ render() {
274
+ return this.display == 'inline' ? h(Host, null, this.myBody()) :
275
+ 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 : email }), this.myBody());
276
+ }
277
+ myBody() {
278
+ 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" })));
279
+ }
280
+ get host() { return this; }
281
+ static get style() { return sallaVerifyCss; }
282
+ }, [4, "salla-verify", {
283
+ "display": [1],
284
+ "type": [1025],
285
+ "autoReload": [4, "auto-reload"],
286
+ "supportWebAuth": [4, "support-web-auth"],
287
+ "verifyHandler": [16, "verify-handler"],
288
+ "resendHandler": [16, "resend-handler"],
289
+ "translationLoaded": [32],
290
+ "title": [32],
291
+ "resendAfter": [32],
292
+ "hasError": [32],
293
+ "errorMessage": [32],
294
+ "isProfileVerify": [32],
295
+ "getCode": [64],
296
+ "open": [64]
297
+ }]);
298
+ function defineCustomElement() {
299
+ if (typeof customElements === "undefined") {
300
+ return;
301
+ }
302
+ const components = ["salla-verify", "salla-button", "salla-loading", "salla-modal"];
303
+ components.forEach(tagName => { switch (tagName) {
304
+ case "salla-verify":
305
+ if (!customElements.get(tagName)) {
306
+ customElements.define(tagName, SallaVerify);
307
+ }
308
+ break;
309
+ case "salla-button":
310
+ if (!customElements.get(tagName)) {
311
+ defineCustomElement$3();
312
+ }
313
+ break;
314
+ case "salla-loading":
315
+ if (!customElements.get(tagName)) {
316
+ defineCustomElement$2();
317
+ }
318
+ break;
319
+ case "salla-modal":
320
+ if (!customElements.get(tagName)) {
321
+ defineCustomElement$1();
322
+ }
323
+ break;
324
+ } });
325
+ }
326
+ defineCustomElement();
327
+
328
+ export { SallaVerify as S, defineCustomElement as d };
@@ -320,7 +320,7 @@ const SallaWishlistActions$1 = /*@__PURE__*/ proxyCustomElement(class SallaWishl
320
320
  }
321
321
  }
322
322
  render() {
323
- return (h(Host, { key: '6329ecd00f2d08cd0fc485c371e98fe7984502d0' }, h("div", { key: '6e24cd1109ae290196337fe3e1e05cfd074966a9', class: "s-wishlist-actions" }, h("div", { key: '82c29d5b203368059c7883272c36576b19bdfd2d', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '3f85ad6a6e72308b71d506d2fc8687672b00ea7a', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: '56c109a338bc9fa06aebdadb041b6587440fa71a', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'f0cf0dc66dd8ce00ac878481bbf21662d1853eba', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '3b97ef84df832a0bc1198319cc63b753da915b37', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'e8c626812dad32a5fc3165b58ce76a5c39586f09', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, h("svg", { key: '731093a2d4393fe53d63e96ecc48fcb4c4a360d2', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'af87c9481389b4b1e544e0ab2eac43db6c164aac', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '62ce5ade389fb563d2548fd94939f697dbc03d8a', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: '7cb443687290ce4c7144b71140b68c020bb52dd4' }, h("button", { key: 'd55410bb2f164d267a9c21af2648fbef3fdc1928', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'f921f5241b0e7b7ebb228049f84dfe3996081d92' }, h("button", { key: 'dbc903542086266571c21ada73d54dab62f5a3e2', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: '0e3aec575c1b4aa4cdd5bb2c61f3cc3e90687f23', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: 'bafce0670b980b583398b3d1a997020298e35bed', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: '216cd3409541b0f93b26e2f2bfe256a36d0ff37b', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: '4bf9a1cc508bfc87c229f69a7134bdefae0f9535', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: 'fbc39c6513eec5f4b1f281046b509c642ddce3db', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '02ba3b818ecb802d8976734738c8042163b6cdae', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '447df46aa76c1ecb165b7680465ff6c6dfcc967d', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: '36a6360b83dd07d20ca7763e2f12dc93f169c645', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '3aa46bcd91bf605f7715fcaa5692e4ca0e8f199e', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
323
+ return (h(Host, { key: 'ed2bb2b4e6db13b5dc2a8ceb47d0abb4b91da7ea' }, h("div", { key: '9a368503611af6ccce78d35b76ec17bd3ddd296b', class: "s-wishlist-actions" }, h("div", { key: 'a9dc9b280bd46673892d6c72ffc535eb443beb0f', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '90d6ea21a46becdeffca1a9b722a3a20eb3ed341', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: '9edc9eeea5282fc61d48fce5b29ed095793265cf', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'a5a30a3676d304614ec2e8b14172694d00f2e28c', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '6842723fa0aa1f12fba6b91ddc6095a1e8da20af', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'c7aa82770d3ce0a04240ee4ab44b8a4f0cf2d8b3', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, h("svg", { key: '08c44a8306ba2b183aa0549fac2da24c64f3b285', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: '216163cc1b84ceb0b9035c23ef002b80c69ab9bf', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '57f73a8af50dc9280efde259d639bf3d41434fed', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: 'd3b5fc449eef1b2af914dcae0dea0b67af599b84' }, h("button", { key: 'e3689eb4db62ff5ee42122819faa28500c555479', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'ad40221d90b2ca52ad9544e8d19324ef8af812c4' }, h("button", { key: '9fde093db8640855d4871972b02e3282e9aed6ad', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: '91287b112e76c9039170ebe54fcbfe7bfcb2dfb1', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: 'e97a4249a046a17d65f214e5c2ecbca2ff21358c', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: '50ba30cc24e590986b6031a373f9334e3d8c97a7', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: '5dbb40eed9828355189d6242131dd07343d19603', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: '5bb2571ed6e9d074739fe130d3b3b3bbe77a2393', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '60853767d68f23affc964822e41f19fb93b2f380', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '5d4cab056b372ff6c2d9de0dfa32e1f1870b536a', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: '2ef6d0388714b348ce2e039662c704d0ea9c3afa', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '0077c263a4eea12fc0b2b1316d4195916d771417', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
324
324
  }
325
325
  get host() { return this; }
326
326
  static get style() { return sallaWishlistActionsCss; }
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2026-11-02T03:54:55",
2
+ "timestamp": "2026-11-02T09:05:30",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.35.1",
@@ -3235,6 +3235,7 @@
3235
3235
  "salla-loyalty-points-history",
3236
3236
  "salla-loyalty-program",
3237
3237
  "salla-map",
3238
+ "salla-mobile-update-modal",
3238
3239
  "salla-modal",
3239
3240
  "salla-multiple-bundle-product-cart",
3240
3241
  "salla-multiple-bundle-product-options-modal",
@@ -3337,6 +3338,9 @@
3337
3338
  "salla-map": [
3338
3339
  "salla-button"
3339
3340
  ],
3341
+ "salla-mobile-update-modal": [
3342
+ "salla-button"
3343
+ ],
3340
3344
  "salla-modal": [
3341
3345
  "salla-button"
3342
3346
  ],
@@ -14841,6 +14845,89 @@
14841
14845
  "dependencies": [],
14842
14846
  "dependencyGraph": {}
14843
14847
  },
14848
+ {
14849
+ "filePath": "src/components/salla-mobile-update-modal/salla-mobile-update-modal.tsx",
14850
+ "encapsulation": "none",
14851
+ "tag": "salla-mobile-update-modal",
14852
+ "readme": "# salla-mobile-update-modal\n\n\n",
14853
+ "docs": "Makes a customer flagged as a duplicate confirm the current mobile number or replace it, verified by a code.\nOpened by `salla.mobileUpdate`, which mounts it on any theme when the order submit is blocked.",
14854
+ "docsTags": [],
14855
+ "usage": {},
14856
+ "props": [],
14857
+ "methods": [
14858
+ {
14859
+ "name": "open",
14860
+ "returns": {
14861
+ "type": "Promise<void>",
14862
+ "docs": ""
14863
+ },
14864
+ "complexType": {
14865
+ "signature": "(data?: { options?: string[]; }) => Promise<void>",
14866
+ "parameters": [
14867
+ {
14868
+ "name": "data",
14869
+ "type": "{ options?: string[]; }",
14870
+ "docs": "`options` is the list the backend returned: `new_number`, and `same_number` for an unresolved duplicate"
14871
+ }
14872
+ ],
14873
+ "references": {
14874
+ "Promise": {
14875
+ "location": "global",
14876
+ "id": "global::Promise"
14877
+ },
14878
+ "Mode": {
14879
+ "location": "global",
14880
+ "id": "global::Mode"
14881
+ }
14882
+ },
14883
+ "return": "Promise<void>"
14884
+ },
14885
+ "signature": "open(data?: { options?: string[]; }) => Promise<void>",
14886
+ "parameters": [
14887
+ {
14888
+ "name": "data",
14889
+ "type": "{ options?: string[]; }",
14890
+ "docs": "`options` is the list the backend returned: `new_number`, and `same_number` for an unresolved duplicate"
14891
+ }
14892
+ ],
14893
+ "docs": "Open the popup",
14894
+ "docsTags": [
14895
+ {
14896
+ "name": "param",
14897
+ "text": "data `options` is the list the backend returned: `new_number`, and `same_number` for an unresolved duplicate"
14898
+ }
14899
+ ]
14900
+ }
14901
+ ],
14902
+ "events": [],
14903
+ "listeners": [],
14904
+ "styles": [],
14905
+ "slots": [],
14906
+ "parts": [],
14907
+ "dependents": [],
14908
+ "dependencies": [
14909
+ "salla-button",
14910
+ "salla-tel-input",
14911
+ "salla-verify",
14912
+ "salla-modal"
14913
+ ],
14914
+ "dependencyGraph": {
14915
+ "salla-mobile-update-modal": [
14916
+ "salla-button",
14917
+ "salla-tel-input",
14918
+ "salla-verify",
14919
+ "salla-modal"
14920
+ ],
14921
+ "salla-verify": [
14922
+ "salla-modal",
14923
+ "salla-button"
14924
+ ],
14925
+ "salla-modal": [
14926
+ "salla-loading",
14927
+ "salla-button"
14928
+ ]
14929
+ }
14930
+ },
14844
14931
  {
14845
14932
  "filePath": "src/components/salla-modal/salla-modal.tsx",
14846
14933
  "encapsulation": "none",
@@ -15523,6 +15610,7 @@
15523
15610
  "salla-loyalty-point",
15524
15611
  "salla-loyalty-program",
15525
15612
  "salla-map",
15613
+ "salla-mobile-update-modal",
15526
15614
  "salla-multiple-bundle-product-options-modal",
15527
15615
  "salla-offer-modal",
15528
15616
  "salla-order-cancel",
@@ -15591,6 +15679,9 @@
15591
15679
  "salla-map": [
15592
15680
  "salla-modal"
15593
15681
  ],
15682
+ "salla-mobile-update-modal": [
15683
+ "salla-modal"
15684
+ ],
15594
15685
  "salla-multiple-bundle-product-options-modal": [
15595
15686
  "salla-modal"
15596
15687
  ],
@@ -29556,6 +29647,7 @@
29556
29647
  "parts": [],
29557
29648
  "dependents": [
29558
29649
  "salla-gifting",
29650
+ "salla-mobile-update-modal",
29559
29651
  "salla-product-availability",
29560
29652
  "salla-quick-order",
29561
29653
  "salla-user-profile"
@@ -29565,6 +29657,9 @@
29565
29657
  "salla-gifting": [
29566
29658
  "salla-tel-input"
29567
29659
  ],
29660
+ "salla-mobile-update-modal": [
29661
+ "salla-tel-input"
29662
+ ],
29568
29663
  "salla-product-availability": [
29569
29664
  "salla-tel-input"
29570
29665
  ],
@@ -30478,6 +30573,34 @@
30478
30573
  "getter": false,
30479
30574
  "setter": false
30480
30575
  },
30576
+ {
30577
+ "name": "resendHandler",
30578
+ "type": "(data: any) => Promise<any>",
30579
+ "complexType": {
30580
+ "original": "(data: any) => Promise<any>",
30581
+ "resolved": "(data: any) => Promise<any>",
30582
+ "references": {
30583
+ "Promise": {
30584
+ "location": "global",
30585
+ "id": "global::Promise"
30586
+ }
30587
+ }
30588
+ },
30589
+ "mutable": false,
30590
+ "attr": "resend-handler",
30591
+ "reflectToAttr": false,
30592
+ "docs": "Replaces the resend request, for flows with their own endpoint. Receives the data passed to `open()`",
30593
+ "docsTags": [],
30594
+ "values": [
30595
+ {
30596
+ "type": "(data: any) => Promise<any>"
30597
+ }
30598
+ ],
30599
+ "optional": true,
30600
+ "required": false,
30601
+ "getter": false,
30602
+ "setter": false
30603
+ },
30481
30604
  {
30482
30605
  "name": "supportWebAuth",
30483
30606
  "type": "boolean",
@@ -30540,6 +30663,34 @@
30540
30663
  "required": false,
30541
30664
  "getter": false,
30542
30665
  "setter": false
30666
+ },
30667
+ {
30668
+ "name": "verifyHandler",
30669
+ "type": "(data: any) => Promise<any>",
30670
+ "complexType": {
30671
+ "original": "(data: any) => Promise<any>",
30672
+ "resolved": "(data: any) => Promise<any>",
30673
+ "references": {
30674
+ "Promise": {
30675
+ "location": "global",
30676
+ "id": "global::Promise"
30677
+ }
30678
+ }
30679
+ },
30680
+ "mutable": false,
30681
+ "attr": "verify-handler",
30682
+ "reflectToAttr": false,
30683
+ "docs": "Replaces the verify request, for flows with their own endpoint. Receives `{code, ...data}`",
30684
+ "docsTags": [],
30685
+ "values": [
30686
+ {
30687
+ "type": "(data: any) => Promise<any>"
30688
+ }
30689
+ ],
30690
+ "optional": true,
30691
+ "required": false,
30692
+ "getter": false,
30693
+ "setter": false
30543
30694
  }
30544
30695
  ],
30545
30696
  "methods": [
@@ -30644,7 +30795,9 @@
30644
30795
  }
30645
30796
  ],
30646
30797
  "parts": [],
30647
- "dependents": [],
30798
+ "dependents": [
30799
+ "salla-mobile-update-modal"
30800
+ ],
30648
30801
  "dependencies": [
30649
30802
  "salla-modal",
30650
30803
  "salla-button"
@@ -30657,6 +30810,9 @@
30657
30810
  "salla-modal": [
30658
30811
  "salla-loading",
30659
30812
  "salla-button"
30813
+ ],
30814
+ "salla-mobile-update-modal": [
30815
+ "salla-verify"
30660
30816
  ]
30661
30817
  }
30662
30818
  },
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import './index-C9zdeQFI.js';
4
+ import './index-C9GauqTa.js';
5
5
 
6
6
  var FilterOptionTypes;
7
7
  (function (FilterOptionTypes) {