@salla.sa/twilight-components 2.14.513 → 2.14.515
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.
- package/dist/cjs/{filepond-DSrgwpzK.js → filepond-CVj_FqFB.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DEOTlJYL.js → filepond-plugin-file-poster-CNRWcC74.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Dc_zfcTe.js → filepond-plugin-file-validate-size-DlfLmhaz.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-JvR9uq17.js → filepond-plugin-file-validate-type-Gs14UNR4.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CWDepouD.js → filepond-plugin-image-edit-BLD0HuEI.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Cyg7v_yS.js → filepond-plugin-image-exif-orientation-B0_NszlZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CCs51Cvw.js → filepond-plugin-image-preview-CCQF7g3M.js} +1 -1
- package/dist/cjs/{functions-C9VeGGtc.js → functions-DsZD7p7u.js} +1 -1
- package/dist/cjs/{index-DRMcfCjr.js → index-BGRw55pa.js} +1 -1
- package/dist/cjs/{index-YRAaUE2y.js → index-D914ULy1.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +28 -5
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +32 -2
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-V-X0-JMA.js → tracked-promise-Dtog6yPv.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-Dk9Srx1k.js → vanilla-picker-BouFZQAD.js} +1 -1
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +27 -4
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +33 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-summary-card.js +27 -4
- package/dist/components/salla-user-menu.js +33 -1
- package/dist/esm/{filepond-CYFJip5W.js → filepond-CK9q9uI5.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D8SbffqX.js → filepond-plugin-file-poster-DXhCkWZ4.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-D9vxvngy.js → filepond-plugin-file-validate-size-CYvxLy_i.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BZ0qYsNB.js → filepond-plugin-file-validate-type-BB26jfS6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DLRxxm4O.js → filepond-plugin-image-edit-CgfXMrMp.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DO--Ii9a.js → filepond-plugin-image-exif-orientation-D4vDRRio.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BHkUOulr.js → filepond-plugin-image-preview-Di_RI-gj.js} +1 -1
- package/dist/esm/{functions-kgIrvYAh.js → functions-BtI-HmLK.js} +1 -1
- package/dist/esm/{index-BwaCIsMe.js → index-BzORW2vE.js} +1 -1
- package/dist/esm/{index-CGxZTQ-T.js → index-QZhHbShe.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +28 -5
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +32 -2
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/{tracked-promise-3JUA8rNo.js → tracked-promise-hD1fyqOd.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CNOsDnVN.js → vanilla-picker-DNpGny9J.js} +1 -1
- package/dist/twilight/{p-fb02a3f2.entry.js → p-0031d5f1.entry.js} +1 -1
- package/dist/twilight/{p-4492fe51.entry.js → p-03fd10a6.entry.js} +1 -1
- package/dist/twilight/{p-b9f78098.entry.js → p-0502ca67.entry.js} +1 -1
- package/dist/twilight/{p-7918e5a3.entry.js → p-0914d9da.entry.js} +1 -1
- package/dist/twilight/{p-e8c0c3f4.entry.js → p-10e6e0d1.entry.js} +1 -1
- package/dist/twilight/{p-ba1fc04b.entry.js → p-1259e760.entry.js} +1 -1
- package/dist/twilight/{p-4e87a5e7.entry.js → p-160ffdbd.entry.js} +1 -1
- package/dist/twilight/{p-d1801517.entry.js → p-1627d6dd.entry.js} +1 -1
- package/dist/twilight/{p-cf460695.entry.js → p-17d33532.entry.js} +1 -1
- package/dist/twilight/{p-d4665c21.entry.js → p-18766bb3.entry.js} +1 -1
- package/dist/twilight/{p-eaf50f68.entry.js → p-1ad4e2ff.entry.js} +1 -1
- package/dist/twilight/{p-93ad12c1.entry.js → p-1d7a50d6.entry.js} +1 -1
- package/dist/twilight/{p-6a666403.entry.js → p-21c2a841.entry.js} +1 -1
- package/dist/twilight/{p-64078378.entry.js → p-2331f752.entry.js} +1 -1
- package/dist/twilight/{p-4edfd7d4.entry.js → p-23b136b7.entry.js} +1 -1
- package/dist/twilight/{p-2289c40f.entry.js → p-274603d5.entry.js} +1 -1
- package/dist/twilight/{p-a30b5998.entry.js → p-2a9e1278.entry.js} +1 -1
- package/dist/twilight/{p-f9df24ee.entry.js → p-337271b9.entry.js} +1 -1
- package/dist/twilight/{p-a43c8045.entry.js → p-3afb2296.entry.js} +1 -1
- package/dist/twilight/{p-f619959f.entry.js → p-3fa6deab.entry.js} +1 -1
- package/dist/twilight/{p-dd16b913.entry.js → p-42be1772.entry.js} +1 -1
- package/dist/twilight/{p-836b800a.entry.js → p-46f7483c.entry.js} +1 -1
- package/dist/twilight/{p-389b0d34.entry.js → p-48861ce9.entry.js} +1 -1
- package/dist/twilight/{p-a942e4a4.entry.js → p-4c33acaa.entry.js} +1 -1
- package/dist/twilight/{p-878ff233.entry.js → p-50b7a678.entry.js} +1 -1
- package/dist/twilight/{p-d9942e8f.entry.js → p-5a65e1c4.entry.js} +1 -1
- package/dist/twilight/{p-4477c4a0.entry.js → p-616329e6.entry.js} +1 -1
- package/dist/twilight/{p-4a5f9ad3.entry.js → p-63015387.entry.js} +1 -1
- package/dist/twilight/{p-2a0b6d9f.entry.js → p-65e248fd.entry.js} +1 -1
- package/dist/twilight/{p-f14b7c98.entry.js → p-66aabae2.entry.js} +1 -1
- package/dist/twilight/p-6af9dab6.entry.js +4 -0
- package/dist/twilight/{p-bd58dc50.entry.js → p-6b13bd96.entry.js} +1 -1
- package/dist/twilight/{p-ff5cf896.entry.js → p-6f6a13f9.entry.js} +1 -1
- package/dist/twilight/{p-3ae46976.entry.js → p-6fc47c05.entry.js} +1 -1
- package/dist/twilight/{p-f1f73f22.entry.js → p-71dcae20.entry.js} +1 -1
- package/dist/twilight/p-7344af04.entry.js +4 -0
- package/dist/twilight/{p-9778041a.entry.js → p-7361a28b.entry.js} +1 -1
- package/dist/twilight/{p-50122b98.entry.js → p-74e761cb.entry.js} +1 -1
- package/dist/twilight/{p-dc548c4c.entry.js → p-77e64eca.entry.js} +1 -1
- package/dist/twilight/{p-3eae9bb5.entry.js → p-79daa9ed.entry.js} +1 -1
- package/dist/twilight/{p-65435ccc.entry.js → p-7acc7363.entry.js} +1 -1
- package/dist/twilight/{p-df8d792b.entry.js → p-81c8bb8f.entry.js} +1 -1
- package/dist/twilight/{p-a978176a.entry.js → p-82f24b3a.entry.js} +1 -1
- package/dist/twilight/{p-7f236925.entry.js → p-83b66f44.entry.js} +1 -1
- package/dist/twilight/{p-0ed598c3.entry.js → p-859e5350.entry.js} +1 -1
- package/dist/twilight/{p-4e1cd5df.entry.js → p-86577b81.entry.js} +1 -1
- package/dist/twilight/{p-51822597.entry.js → p-8859d9de.entry.js} +1 -1
- package/dist/twilight/{p-27b60bbe.entry.js → p-8866ccc4.entry.js} +1 -1
- package/dist/twilight/{p-ca59caae.entry.js → p-8934c2db.entry.js} +1 -1
- package/dist/twilight/{p-c6cd9aa7.entry.js → p-8a928a13.entry.js} +1 -1
- package/dist/twilight/{p-c4e505e5.entry.js → p-8b1444f7.entry.js} +1 -1
- package/dist/twilight/{p-37eb1493.entry.js → p-8d502048.entry.js} +1 -1
- package/dist/twilight/{p-5fb31267.entry.js → p-8f0ca823.entry.js} +1 -1
- package/dist/twilight/{p-d8528737.entry.js → p-92b38261.entry.js} +1 -1
- package/dist/twilight/{p-3813b060.entry.js → p-92ce4b04.entry.js} +1 -1
- package/dist/twilight/{p-5d19ca2b.entry.js → p-95aefd7c.entry.js} +1 -1
- package/dist/twilight/{p-6ac87b82.entry.js → p-9911886e.entry.js} +1 -1
- package/dist/twilight/{p-ccfb0936.entry.js → p-997db2f0.entry.js} +1 -1
- package/dist/twilight/{p-9176a550.entry.js → p-99a6fd0c.entry.js} +1 -1
- package/dist/twilight/{p-f98e58f8.entry.js → p-9b26ebe4.entry.js} +1 -1
- package/dist/twilight/{p-9b937788.entry.js → p-9ea3f606.entry.js} +1 -1
- package/dist/twilight/{p-ULRGH207.js → p-BPWUhIgV.js} +1 -1
- package/dist/twilight/{p-CAETK-48.js → p-Bi1iEGIy.js} +1 -1
- package/dist/twilight/{p-LYR7OIgx.js → p-Bl-ZqhCs.js} +1 -1
- package/dist/twilight/{p-CBPMn35h.js → p-C2iSYmWD.js} +1 -1
- package/dist/twilight/{p-BVQbLZNT.js → p-CNfUD2Lp.js} +1 -1
- package/dist/twilight/{p-wHhSOVwa.js → p-Cgy7Vs6R.js} +1 -1
- package/dist/twilight/{p-CuiQZ5n7.js → p-CkQwQhBc.js} +2 -2
- package/dist/twilight/{p-ruiIgPGS.js → p-DHVxRx2_.js} +1 -1
- package/dist/twilight/{p-BD5RN_kF.js → p-DQ1gl4-i.js} +1 -1
- package/dist/twilight/{p-OxcD-fkQ.js → p-DygdQI6W.js} +1 -1
- package/dist/twilight/{p-BBt-k9Tl.js → p-DyiOh59c.js} +1 -1
- package/dist/twilight/{p-CGxZTQ-T.js → p-QZhHbShe.js} +1 -1
- package/dist/twilight/{p-d0b0f85c.entry.js → p-a029227c.entry.js} +1 -1
- package/dist/twilight/{p-b0c3d5c1.entry.js → p-a03e10c6.entry.js} +1 -1
- package/dist/twilight/{p-69efcc70.entry.js → p-a2169d85.entry.js} +1 -1
- package/dist/twilight/{p-9e102996.entry.js → p-aa83eaf5.entry.js} +1 -1
- package/dist/twilight/{p-4fa0791a.entry.js → p-ace70fb4.entry.js} +1 -1
- package/dist/twilight/{p-cd9871e0.entry.js → p-bc7be4b8.entry.js} +1 -1
- package/dist/twilight/{p-d1200ef9.entry.js → p-bccef7db.entry.js} +1 -1
- package/dist/twilight/{p-ee901efb.entry.js → p-c23401f3.entry.js} +1 -1
- package/dist/twilight/{p-6c29f1a7.entry.js → p-c7e83e87.entry.js} +1 -1
- package/dist/twilight/{p-3fc5bc22.entry.js → p-c8cac0b5.entry.js} +1 -1
- package/dist/twilight/{p-52506725.entry.js → p-cb562b64.entry.js} +1 -1
- package/dist/twilight/{p-bd76e1cd.entry.js → p-cbbf0cd2.entry.js} +1 -1
- package/dist/twilight/{p-d3a0034e.entry.js → p-cbda9969.entry.js} +1 -1
- package/dist/twilight/{p-78bd079a.entry.js → p-cfdb23a8.entry.js} +1 -1
- package/dist/twilight/{p-cf7b0f87.entry.js → p-cfea1c56.entry.js} +1 -1
- package/dist/twilight/{p-87475284.entry.js → p-d1201e47.entry.js} +1 -1
- package/dist/twilight/{p-825ce23e.entry.js → p-d702480e.entry.js} +1 -1
- package/dist/twilight/{p-e7de1dbd.entry.js → p-d993ef90.entry.js} +1 -1
- package/dist/twilight/{p-60836677.entry.js → p-da7fee75.entry.js} +1 -1
- package/dist/twilight/{p-bb921eea.entry.js → p-de44ac22.entry.js} +1 -1
- package/dist/twilight/{p-9eaeb2c3.entry.js → p-df5df28d.entry.js} +1 -1
- package/dist/twilight/{p-48f379f5.entry.js → p-e165cbdf.entry.js} +1 -1
- package/dist/twilight/{p-e035d769.entry.js → p-e566b0a2.entry.js} +1 -1
- package/dist/twilight/{p-644ed286.entry.js → p-ee8eb134.entry.js} +1 -1
- package/dist/twilight/{p-8899e3ec.entry.js → p-f1894a3d.entry.js} +1 -1
- package/dist/twilight/{p-bad284c5.entry.js → p-f341d622.entry.js} +1 -1
- package/dist/twilight/{p-bab8c3cc.entry.js → p-f4f3bd65.entry.js} +1 -1
- package/dist/twilight/{p-2ac4b88a.entry.js → p-f8c7cfd0.entry.js} +1 -1
- package/dist/twilight/{p-5645288d.entry.js → p-f8e0c903.entry.js} +1 -1
- package/dist/twilight/{p-60a461fb.entry.js → p-fb6f2a38.entry.js} +1 -1
- package/dist/twilight/{p-6085b81b.entry.js → p-fb9d304f.entry.js} +1 -1
- package/dist/twilight/{p-d3f2dd7f.entry.js → p-fdce0f61.entry.js} +1 -1
- package/dist/twilight/{p-21fd58ce.entry.js → p-fe75606e.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-summary-card/salla-cart-summary-card.d.ts +3 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +4 -0
- package/package.json +5 -5
- package/dist/twilight/p-8e7943b0.entry.js +0 -4
- package/dist/twilight/p-949ba8b6.entry.js +0 -4
|
@@ -47,6 +47,17 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
47
47
|
'cart::coupon.deleted',
|
|
48
48
|
];
|
|
49
49
|
this.cartEventHandler = (payload) => this.applyCartData(this.extractCart(payload));
|
|
50
|
+
// Failed submit → release the pinned loading right away instead of waiting
|
|
51
|
+
// out the 10s safety timeout next to the error toast.
|
|
52
|
+
this.releaseSubmitLoading = () => {
|
|
53
|
+
this.submitObserver?.disconnect();
|
|
54
|
+
this.submitObserver = null;
|
|
55
|
+
if (this.submitObserverTimeout) {
|
|
56
|
+
clearTimeout(this.submitObserverTimeout);
|
|
57
|
+
this.submitObserverTimeout = undefined;
|
|
58
|
+
}
|
|
59
|
+
this.host.querySelector('#s-cart-summary-card-submit')?.removeAttribute?.('loading');
|
|
60
|
+
};
|
|
50
61
|
this.toggleSheet = () => {
|
|
51
62
|
if (!this.isDesktop)
|
|
52
63
|
this.isOpen = !this.isOpen;
|
|
@@ -66,7 +77,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
66
77
|
return;
|
|
67
78
|
}
|
|
68
79
|
const btn = this.host.querySelector('#s-cart-summary-card-submit');
|
|
69
|
-
if (
|
|
80
|
+
if (btn) {
|
|
70
81
|
btn.load?.();
|
|
71
82
|
// Pin loading across re-renders; auto-clear after 10s so a failed submit
|
|
72
83
|
// doesn't lock the button forever.
|
|
@@ -85,8 +96,8 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
85
96
|
}, 10000);
|
|
86
97
|
}
|
|
87
98
|
salla.cart?.submit?.();
|
|
88
|
-
// Release after submit kicks off: success navigates away
|
|
89
|
-
//
|
|
99
|
+
// Release after submit kicks off: success navigates away. Short delay
|
|
100
|
+
// blocks the double-tap race without a long lock.
|
|
90
101
|
window.setTimeout(() => { this.isSubmitting = false; }, 1500);
|
|
91
102
|
};
|
|
92
103
|
}
|
|
@@ -106,6 +117,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
106
117
|
this.loadTranslations();
|
|
107
118
|
// 'cart::updated' is in cartEventNames — don't also use onUpdated (it leaks, no off()).
|
|
108
119
|
this.cartEventNames.forEach(name => salla.event.on(name, this.cartEventHandler));
|
|
120
|
+
salla.event.on('cart::submit.failed', this.releaseSubmitLoading);
|
|
109
121
|
this.fetchCart();
|
|
110
122
|
}
|
|
111
123
|
loadTranslations() {
|
|
@@ -222,6 +234,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
222
234
|
}
|
|
223
235
|
this.mediaQueryList = null;
|
|
224
236
|
this.cartEventNames.forEach(name => salla.event.off(name, this.cartEventHandler));
|
|
237
|
+
salla.event.off('cart::submit.failed', this.releaseSubmitLoading);
|
|
225
238
|
});
|
|
226
239
|
}
|
|
227
240
|
fetchCart() {
|
|
@@ -301,6 +314,16 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
301
314
|
}
|
|
302
315
|
return isValid;
|
|
303
316
|
}
|
|
317
|
+
decimalPlaces(v) {
|
|
318
|
+
const s = String(v);
|
|
319
|
+
const i = s.indexOf('.');
|
|
320
|
+
return i === -1 || s.includes('e') ? 0 : s.length - i - 1;
|
|
321
|
+
}
|
|
322
|
+
roundToCurrency(value) {
|
|
323
|
+
const decimals = Math.min(Math.max(2, this.decimalPlaces(this.cartTotal), this.decimalPlaces(this.cartTotalDiscount)), 4);
|
|
324
|
+
const factor = Math.pow(10, decimals);
|
|
325
|
+
return Math.round(value * factor) / factor;
|
|
326
|
+
}
|
|
304
327
|
money(value) {
|
|
305
328
|
try {
|
|
306
329
|
if (typeof salla !== 'undefined' && typeof salla.money === 'function') {
|
|
@@ -342,7 +365,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
342
365
|
} }, h("div", { class: {
|
|
343
366
|
's-cart-summary-card-sheet-wrap': true,
|
|
344
367
|
's-cart-summary-card-sheet-wrap--open': this.isOpen,
|
|
345
|
-
}, "aria-hidden": this.isOpen ? 'false' : 'true' }, h("div", { class: "s-cart-summary-card-sheet", style: sheetStyle }, h("header", { class: "s-cart-summary-card-sheet-header" }, h("h3", { class: "s-cart-summary-card-sheet-title" }, this.summaryLabel)), h("div", { class: "s-cart-summary-card-line" }, h("span", null, subTotalLabel), h("b", { innerHTML: this.money(this.cartSubTotal) })), this.cartOptionsTotal > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.optionsTotalLabel), h("b", { innerHTML: this.money(this.cartOptionsTotal) }))), this.cartHasShipping && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.shippingCostLabel), h("b", { innerHTML: this.money(this.cartShippingCost) }))), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.vatTaxLabel), h("b", { innerHTML: this.money(this.cartTaxAmount) }))), showSavings && (h("div", { class: "s-cart-summary-card-line s-cart-summary-card-line--discount" }, h("span", null, this.savedLabel), h("b", null, "\u2212 ", h("span", { innerHTML: this.money(this.cartTotalDiscount) })))))), h("div", { class: "s-cart-summary-card-bar" }, h("div", { class: "s-cart-summary-card-bar-label" }, h("div", { class: "s-cart-summary-card-bar-label-main" }, h("span", { class: "s-cart-summary-card-bar-label-text" }, this.finalTotalLabel), h("span", { class: "s-cart-summary-card-bar-count" }, this.getItemsLabel())), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-bar-label-sub" }, this.pricesTaxedLabel))), h("div", { class: "s-cart-summary-card-bar-totals" }, h("div", { class: "s-cart-summary-card-bar-totals-row" }, showSavings && (h("s", { class: "s-cart-summary-card-bar-original" }, salla.helpers.number(this.cartTotal + this.cartTotalDiscount))), h("b", { class: "s-cart-summary-card-bar-total", innerHTML: this.money(this.cartTotal) }), !this.isDesktop && (h("button", { type: "button", class: "s-cart-summary-card-chevron", "aria-label": this.isOpen ? this.closeSummaryLabel : this.openSummaryLabel, "aria-expanded": this.isOpen ? 'true' : 'false', onClick: this.toggleSheet }, h("i", { class: "sicon-keyboard_arrow_up s-cart-summary-card-chevron-icon" })))), showSavings && (h("div", { class: "s-cart-summary-card-bar-savings-badge" }, h("span", { "aria-hidden": "true" }, "\uD83C\uDF89"), h("span", null, this.discountBadge, " ", h("span", { innerHTML: this.money(this.cartTotalDiscount) })))))), h("div", { class: "s-cart-summary-card-action" }, h("salla-button", { id: "s-cart-summary-card-submit", width: "wide", "loader-position": "center", onClick: this.handleSubmit }, this.completeOrderLabel))));
|
|
368
|
+
}, "aria-hidden": this.isOpen ? 'false' : 'true' }, h("div", { class: "s-cart-summary-card-sheet", style: sheetStyle }, h("header", { class: "s-cart-summary-card-sheet-header" }, h("h3", { class: "s-cart-summary-card-sheet-title" }, this.summaryLabel)), h("div", { class: "s-cart-summary-card-line" }, h("span", null, subTotalLabel), h("b", { innerHTML: this.money(this.cartSubTotal) })), this.cartOptionsTotal > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.optionsTotalLabel), h("b", { innerHTML: this.money(this.cartOptionsTotal) }))), this.cartHasShipping && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.shippingCostLabel), h("b", { innerHTML: this.money(this.cartShippingCost) }))), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-line" }, h("span", null, this.vatTaxLabel), h("b", { innerHTML: this.money(this.cartTaxAmount) }))), showSavings && (h("div", { class: "s-cart-summary-card-line s-cart-summary-card-line--discount" }, h("span", null, this.savedLabel), h("b", null, "\u2212 ", h("span", { innerHTML: this.money(this.cartTotalDiscount) })))))), h("div", { class: "s-cart-summary-card-bar" }, h("div", { class: "s-cart-summary-card-bar-label" }, h("div", { class: "s-cart-summary-card-bar-label-main" }, h("span", { class: "s-cart-summary-card-bar-label-text" }, this.finalTotalLabel), h("span", { class: "s-cart-summary-card-bar-count" }, this.getItemsLabel())), this.cartTaxAmount > 0 && (h("div", { class: "s-cart-summary-card-bar-label-sub" }, this.pricesTaxedLabel))), h("div", { class: "s-cart-summary-card-bar-totals" }, h("div", { class: "s-cart-summary-card-bar-totals-row" }, showSavings && (h("s", { class: "s-cart-summary-card-bar-original" }, salla.helpers.number(this.roundToCurrency(this.cartTotal + this.cartTotalDiscount)))), h("b", { class: "s-cart-summary-card-bar-total", innerHTML: this.money(this.cartTotal) }), !this.isDesktop && (h("button", { type: "button", class: "s-cart-summary-card-chevron", "aria-label": this.isOpen ? this.closeSummaryLabel : this.openSummaryLabel, "aria-expanded": this.isOpen ? 'true' : 'false', onClick: this.toggleSheet }, h("i", { class: "sicon-keyboard_arrow_up s-cart-summary-card-chevron-icon" })))), showSavings && (h("div", { class: "s-cart-summary-card-bar-savings-badge" }, h("span", { "aria-hidden": "true" }, "\uD83C\uDF89"), h("span", null, this.discountBadge, " ", h("span", { innerHTML: this.money(this.cartTotalDiscount) })))))), h("div", { class: "s-cart-summary-card-action" }, h("salla-button", { id: "s-cart-summary-card-submit", width: "wide", "loader-position": "center", onClick: this.handleSubmit }, this.completeOrderLabel))));
|
|
346
369
|
}
|
|
347
370
|
get host() { return this; }
|
|
348
371
|
}, [0, "salla-cart-summary-card", {
|
|
@@ -75,6 +75,10 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
75
75
|
pending_orders: salla.helpers.number(salla.storage.get('user.pending_orders') || 0),
|
|
76
76
|
};
|
|
77
77
|
this.sallaAccountEnabled = false;
|
|
78
|
+
this.walletBalance = '';
|
|
79
|
+
this.walletBalanceLoading = false;
|
|
80
|
+
// Fetched once per page load; resets on remount (page refresh), not on open.
|
|
81
|
+
this.walletBalanceLoaded = false;
|
|
78
82
|
this.hasBadges = Number(salla.storage.get('user.pending_orders')) > 0 ||
|
|
79
83
|
Number(salla.storage.get('user.notifications')) > 0;
|
|
80
84
|
/**
|
|
@@ -154,6 +158,28 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
154
158
|
this.loyalty_points = Salla.lang.get('pages.loyalty_program.loyalty_points');
|
|
155
159
|
this.logout = Salla.lang.get('blocks.header.logout');
|
|
156
160
|
}
|
|
161
|
+
async loadWalletBalance() {
|
|
162
|
+
// Live balance instead of the cached (stale) config; light skips transactions.
|
|
163
|
+
if (Salla.config.isGuest())
|
|
164
|
+
return;
|
|
165
|
+
this.walletBalanceLoading = true;
|
|
166
|
+
try {
|
|
167
|
+
// withoutNotifier: a failed background fetch must not toast the shopper.
|
|
168
|
+
const resp = await salla.api.withoutNotifier(() => salla.api.request('/balance/wallet?light=1'));
|
|
169
|
+
const balance = Number(resp?.data?.balance) || 0;
|
|
170
|
+
// Currency stays from config — it doesn't go stale like the amount.
|
|
171
|
+
this.walletBalance = balance
|
|
172
|
+
? Salla.money({ amount: Number(balance.toFixed(2)), currency: Salla.config.get('user.currency_code') })
|
|
173
|
+
: '';
|
|
174
|
+
this.walletBalanceLoaded = true; // cache for the rest of this page load
|
|
175
|
+
}
|
|
176
|
+
catch {
|
|
177
|
+
// keep the last value on failure (retries on next open)
|
|
178
|
+
}
|
|
179
|
+
finally {
|
|
180
|
+
this.walletBalanceLoading = false;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
157
183
|
initiate() {
|
|
158
184
|
if (Salla.config.isGuest()) {
|
|
159
185
|
return this.autoMountLoginModal();
|
|
@@ -215,6 +241,10 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
215
241
|
this.opened = !this.opened;
|
|
216
242
|
e.stopPropagation();
|
|
217
243
|
if (this.opened) {
|
|
244
|
+
// Fetch once per page load; reuse the cached value on later opens.
|
|
245
|
+
if (window.can_access_wallet && !this.walletBalanceLoaded && !this.walletBalanceLoading) {
|
|
246
|
+
this.loadWalletBalance();
|
|
247
|
+
}
|
|
218
248
|
window.addEventListener('click', this.onClickOutside);
|
|
219
249
|
}
|
|
220
250
|
}
|
|
@@ -257,7 +287,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
257
287
|
return (h("li", { class: {
|
|
258
288
|
's-user-menu-dropdown-item': true,
|
|
259
289
|
's-user-menu-dropdown-item-logout': i + 1 === Object.entries(this.items).length,
|
|
260
|
-
} }, h("a", { ...this.getItemAnchorLinkAttrs(itemKey), class: "s-user-menu-dropdown-item-link", onClick: event => this.menuItemClicked(event, itemKey) }, h("i", { class: "s-user-menu-dropdown-item-prefix", innerHTML: itemValue }), h("span", { class: "s-user-menu-dropdown-item-title" }, this[itemKey]), !['٠', '0', undefined].includes(this.badges[itemKey]) ? (h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[itemKey])) : (''))));
|
|
290
|
+
} }, h("a", { ...this.getItemAnchorLinkAttrs(itemKey), class: "s-user-menu-dropdown-item-link", onClick: event => this.menuItemClicked(event, itemKey) }, h("i", { class: "s-user-menu-dropdown-item-prefix", innerHTML: itemValue }), h("span", { class: "s-user-menu-dropdown-item-title" }, this[itemKey]), itemKey === 'wallet' && !this.inline && (this.walletBalance || this.walletBalanceLoading) ? (h("span", { class: "s-user-menu-dropdown-item-balance", style: { display: 'inline-flex', alignItems: 'center', gap: '4px' } }, this.walletBalance ? h("span", { innerHTML: this.walletBalance }) : '', this.walletBalanceLoading ? h("salla-loading", { size: "14" }) : '')) : (''), !['٠', '0', undefined].includes(this.badges[itemKey]) ? (h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[itemKey])) : (''))));
|
|
261
291
|
}
|
|
262
292
|
componentShouldUpdate() {
|
|
263
293
|
if (!this.opened) {
|
|
@@ -310,6 +340,8 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
310
340
|
"is_loggedIn": [32],
|
|
311
341
|
"badges": [32],
|
|
312
342
|
"sallaAccountEnabled": [32],
|
|
343
|
+
"walletBalance": [32],
|
|
344
|
+
"walletBalanceLoading": [32],
|
|
313
345
|
"hasBadges": [32],
|
|
314
346
|
"profileUrl": [32],
|
|
315
347
|
"OrderUpdate": [32]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-QZhHbShe.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|