@salla.sa/twilight-components 3.0.24 → 3.0.26
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/{Helper-sq6ztayx.js → Helper-Di1G8EnP.js} +1 -1
- package/dist/cjs/{filepond-BMxlEH8M.js → filepond-DU_-t59i.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DVSz4StJ.js → filepond-plugin-file-poster-CYpSqb6i.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CXJiLSzt.js → filepond-plugin-file-validate-size-a_tUhUBx.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DWK85msl.js → filepond-plugin-file-validate-type-D_X7irXu.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BHttJI5X.js → filepond-plugin-image-edit-BRP3GZ31.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DTKIO2zE.js → filepond-plugin-image-exif-orientation-CiHIpg-4.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BaRxwhFa.js → filepond-plugin-image-preview-CKT6x8T1.js} +1 -1
- package/dist/cjs/{index-BJ3-fFSF.js → index-BLPUgwXq.js} +6 -6
- package/dist/cjs/info-Do5bVPmK.js +13 -0
- package/dist/cjs/{intlTelInput-DNoOb73M.js → intlTelInput-CyL5UDfU.js} +1 -1
- 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 +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +3 -9
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-applied-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +11 -11
- 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-bullet-delivery_3.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 +5 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +120 -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_9.cjs.entry.js +2 -2
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +628 -19
- 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.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 +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-free-shipping-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-free-shipping-tag.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gift-card-redeem_2.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 +2 -2
- 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_10.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- 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.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_3.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-mobile-update-modal.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 +8 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
- 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-items.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-payment.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-rewards.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.cjs.entry.js +2 -11
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +27 -6
- package/dist/cjs/salla-orders.cjs.entry.js +2 -2
- 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.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 +2 -2
- package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +2 -2
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.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-thank-you-header.cjs.entry.js +1 -1
- package/dist/cjs/salla-thank-you-page.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.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 +1 -1
- 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/salla-wishlist-summary.cjs.entry.js +2 -2
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CceY3g8c.js → vanilla-picker-C9AVuYe1.js} +1 -1
- package/dist/collection/components/salla-cart-item-offers/salla-cart-item-offers.js +4 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.css +152 -59
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +123 -4
- package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.css +139 -0
- package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.js +568 -14
- package/dist/collection/components/salla-next-order-coupon/salla-next-order-coupon.js +7 -0
- package/dist/collection/components/salla-order-shipments/salla-order-shipments.js +1 -10
- package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.css +3 -0
- package/dist/collection/components/salla-order-totals-card/salla-order-totals-card.js +25 -4
- package/dist/collection/shared/cart-free-gifts.js +42 -1
- package/dist/collection/shared/offer-stages.js +22 -3
- package/dist/components/index.js +2 -2
- package/dist/components/info.js +11 -0
- package/dist/components/salla-bottom-alert.js +2 -8
- package/dist/components/salla-cart-item-offers.js +4 -0
- package/dist/components/salla-cart-summary-card.js +124 -5
- package/dist/components/salla-conditional-offer.js +631 -18
- package/dist/components/salla-next-order-coupon.js +7 -0
- package/dist/components/salla-order-shipments.js +1 -10
- package/dist/components/salla-order-totals-card.js +26 -5
- package/dist/docs.json +4 -4
- package/dist/esm/{Helper-BwzPfwZJ.js → Helper-CFEqaSN-.js} +1 -1
- package/dist/esm/{filepond-JNV-1zqR.js → filepond-BfW_OXid.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-nFqNHCag.js → filepond-plugin-file-poster-CsMiL-wZ.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-P3KmOTH8.js → filepond-plugin-file-validate-size-BuxVUFKn.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BV0Ctr7U.js → filepond-plugin-file-validate-type-Dq94isoe.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-D62rKlfH.js → filepond-plugin-image-edit-CEVstXlA.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DerapxIk.js → filepond-plugin-image-exif-orientation-BhViRs-X.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BlRd2Ble.js → filepond-plugin-image-preview-BrscXNqJ.js} +1 -1
- package/dist/esm/{index-CtoXzf1y.js → index-g-_4am8C.js} +6 -6
- package/dist/esm/info-OdOOjQZO.js +11 -0
- package/dist/esm/{intlTelInput-BZz-u5_w.js → intlTelInput-PsSXBr__.js} +1 -1
- 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 +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +2 -2
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +3 -9
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-applied-filters.entry.js +2 -2
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-attachment-view_9.entry.js +11 -11
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +5 -1
- package/dist/esm/salla-cart-summary-card.entry.js +120 -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_9.entry.js +2 -2
- package/dist/esm/salla-conditional-offer.entry.js +628 -19
- 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.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 +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-free-shipping-banner.entry.js +1 -1
- package/dist/esm/salla-free-shipping-tag.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gift-card-redeem_2.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 +2 -2
- 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_10.entry.js +1 -1
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- 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.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_3.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-mobile-update-modal.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 +8 -1
- package/dist/esm/salla-notification-item_2.entry.js +2 -2
- 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-items.entry.js +1 -1
- package/dist/esm/salla-order-options-modal.entry.js +1 -1
- package/dist/esm/salla-order-payment.entry.js +1 -1
- package/dist/esm/salla-order-rewards.entry.js +1 -1
- package/dist/esm/salla-order-shipments.entry.js +2 -11
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +27 -6
- package/dist/esm/salla-orders.entry.js +2 -2
- 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.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +2 -2
- package/dist/esm/salla-products-slider.entry.js +2 -2
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +2 -2
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search-product-card.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.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-thank-you-header.entry.js +1 -1
- package/dist/esm/salla-thank-you-page.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- 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/salla-wishlist-summary.entry.js +2 -2
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BfmpXY4G.js → vanilla-picker-D3lgt9go.js} +1 -1
- package/dist/twilight/{p-0b583810.entry.js → p-02006b3a.entry.js} +1 -1
- package/dist/twilight/{p-f51f31df.entry.js → p-0207dae4.entry.js} +1 -1
- package/dist/twilight/{p-117e714b.entry.js → p-025e30c7.entry.js} +1 -1
- package/dist/twilight/{p-38b70281.entry.js → p-058e4be3.entry.js} +1 -1
- package/dist/twilight/{p-77deaa00.entry.js → p-0ce6514e.entry.js} +1 -1
- package/dist/twilight/{p-f3455825.entry.js → p-0d94c90e.entry.js} +1 -1
- package/dist/twilight/{p-5dea6c09.entry.js → p-0e423424.entry.js} +1 -1
- package/dist/twilight/{p-71b5546b.entry.js → p-0f7db4a1.entry.js} +1 -1
- package/dist/twilight/{p-374d9f0c.entry.js → p-12038aef.entry.js} +1 -1
- package/dist/twilight/{p-2e1dd9cf.entry.js → p-12dcb9a0.entry.js} +1 -1
- package/dist/twilight/{p-aac9d2fe.entry.js → p-14311053.entry.js} +1 -1
- package/dist/twilight/{p-0ce0cdb0.entry.js → p-151df172.entry.js} +1 -1
- package/dist/twilight/{p-d76b7564.entry.js → p-152ac425.entry.js} +1 -1
- package/dist/twilight/{p-a4fee391.entry.js → p-1b6d84a8.entry.js} +1 -1
- package/dist/twilight/p-1d31b983.entry.js +4 -0
- package/dist/twilight/{p-6495383e.entry.js → p-1dcbbbbf.entry.js} +1 -1
- package/dist/twilight/{p-f310b923.entry.js → p-1df3fe4a.entry.js} +1 -1
- package/dist/twilight/{p-00a1ec4e.entry.js → p-22271248.entry.js} +1 -1
- package/dist/twilight/{p-e8ebb2fe.entry.js → p-2834a4d3.entry.js} +1 -1
- package/dist/twilight/{p-2882d626.entry.js → p-2907057d.entry.js} +1 -1
- package/dist/twilight/{p-ed37e702.entry.js → p-2d3b29d9.entry.js} +1 -1
- package/dist/twilight/{p-055bf228.entry.js → p-2db9ee05.entry.js} +1 -1
- package/dist/twilight/{p-4080fdc9.entry.js → p-2e4ce75b.entry.js} +1 -1
- package/dist/twilight/{p-3845e427.entry.js → p-329b7cc2.entry.js} +1 -1
- package/dist/twilight/{p-c4264e87.entry.js → p-3c2e7bef.entry.js} +1 -1
- package/dist/twilight/p-3fedd652.entry.js +4 -0
- package/dist/twilight/{p-36a7344c.entry.js → p-4247db1a.entry.js} +1 -1
- package/dist/twilight/{p-f664fa69.entry.js → p-496f950b.entry.js} +1 -1
- package/dist/twilight/{p-40e651ac.entry.js → p-49cd89d1.entry.js} +1 -1
- package/dist/twilight/p-4b8bb969.entry.js +4 -0
- package/dist/twilight/{p-c18fe9e5.entry.js → p-5166cd84.entry.js} +1 -1
- package/dist/twilight/{p-cbff6c68.entry.js → p-5350ba07.entry.js} +1 -1
- package/dist/twilight/{p-2c04bba3.entry.js → p-54eec74a.entry.js} +1 -1
- package/dist/twilight/{p-ae1efde9.entry.js → p-55861492.entry.js} +1 -1
- package/dist/twilight/{p-cd55369c.entry.js → p-6070b995.entry.js} +1 -1
- package/dist/twilight/{p-4254e9c2.entry.js → p-62a3394a.entry.js} +1 -1
- package/dist/twilight/{p-974c100d.entry.js → p-63c982e1.entry.js} +1 -1
- package/dist/twilight/{p-2afc4658.entry.js → p-6432401e.entry.js} +1 -1
- package/dist/twilight/{p-7a8fde62.entry.js → p-64ae09b4.entry.js} +1 -1
- package/dist/twilight/{p-f67d03fb.entry.js → p-685a61fa.entry.js} +1 -1
- package/dist/twilight/{p-7c684782.entry.js → p-710a42d2.entry.js} +1 -1
- package/dist/twilight/{p-2566f688.entry.js → p-72e13a12.entry.js} +1 -1
- package/dist/twilight/{p-ebed682b.entry.js → p-73612f04.entry.js} +1 -1
- package/dist/twilight/{p-2401f0d7.entry.js → p-74602eb0.entry.js} +1 -1
- package/dist/twilight/{p-365ff361.entry.js → p-76e238b3.entry.js} +1 -1
- package/dist/twilight/{p-7169ba9a.entry.js → p-78240cb3.entry.js} +1 -1
- package/dist/twilight/{p-8413d52b.entry.js → p-78a7b46e.entry.js} +1 -1
- package/dist/twilight/{p-1af75625.entry.js → p-79f9403a.entry.js} +1 -1
- package/dist/twilight/{p-6ffbf505.entry.js → p-7f4f300a.entry.js} +1 -1
- package/dist/twilight/{p-2140be84.entry.js → p-7fc9a0bf.entry.js} +1 -1
- package/dist/twilight/{p-b1bc70af.entry.js → p-8016f122.entry.js} +1 -1
- package/dist/twilight/{p-a8102290.entry.js → p-801eb7d8.entry.js} +1 -1
- package/dist/twilight/{p-02ddd64c.entry.js → p-81ec67d8.entry.js} +1 -1
- package/dist/twilight/{p-3356638d.entry.js → p-83a1123b.entry.js} +1 -1
- package/dist/twilight/p-84b9416e.entry.js +4 -0
- package/dist/twilight/{p-8fe950e8.entry.js → p-8783aa81.entry.js} +1 -1
- package/dist/twilight/{p-60ae422e.entry.js → p-87ba0ca2.entry.js} +1 -1
- package/dist/twilight/{p-e2cb5c49.entry.js → p-8cbbe961.entry.js} +1 -1
- package/dist/twilight/{p-a260f35e.entry.js → p-8ec7866e.entry.js} +1 -1
- package/dist/twilight/{p-e89daada.entry.js → p-92cbac49.entry.js} +1 -1
- package/dist/twilight/{p-3da2e3f3.entry.js → p-93a85463.entry.js} +1 -1
- package/dist/twilight/{p-4f4933f8.entry.js → p-95f8caa0.entry.js} +1 -1
- package/dist/twilight/{p-061216d4.entry.js → p-965c3ee8.entry.js} +1 -1
- package/dist/twilight/{p-9c1b0978.entry.js → p-98b24f1d.entry.js} +1 -1
- package/dist/twilight/{p-6KZIgnh6.js → p-9h9-vkr9.js} +1 -1
- package/dist/twilight/{p-DT73iyFr.js → p-B6WlUws-.js} +1 -1
- package/dist/twilight/{p-78r0jdyY.js → p-ByR59DTl.js} +2 -2
- package/dist/twilight/{p-DYAn-F48.js → p-CB552NRi.js} +2 -2
- package/dist/twilight/{p-x4_Sxqd_.js → p-CWi90iJ1.js} +1 -1
- package/dist/twilight/{p-CC-KFXD9.js → p-DjCyIWR1.js} +1 -1
- package/dist/twilight/{p-BeC8AhMn.js → p-EXd4paYi.js} +1 -1
- package/dist/twilight/{p-BwUX8dew.js → p-MEqjtc_i.js} +1 -1
- package/dist/twilight/p-OdOOjQZO.js +4 -0
- package/dist/twilight/{p-D5DrmlyQ.js → p-WsiD2WP-.js} +1 -1
- package/dist/twilight/{p-F1Erq7GR.js → p-_ulhlUUw.js} +1 -1
- package/dist/twilight/{p-b3472096.entry.js → p-a185d836.entry.js} +1 -1
- package/dist/twilight/p-a2147ef3.entry.js +4 -0
- package/dist/twilight/{p-1d105a57.entry.js → p-a21bc7ee.entry.js} +1 -1
- package/dist/twilight/{p-1f39ca4f.entry.js → p-a255167f.entry.js} +1 -1
- package/dist/twilight/{p-72b0724c.entry.js → p-a76a2a5d.entry.js} +1 -1
- package/dist/twilight/{p-97065b4f.entry.js → p-a7aa162c.entry.js} +1 -1
- package/dist/twilight/{p-c1ab1b40.entry.js → p-aa5be7cf.entry.js} +1 -1
- package/dist/twilight/{p-0d1b8490.entry.js → p-ac31a382.entry.js} +1 -1
- package/dist/twilight/{p-94d5b080.entry.js → p-ad95bb9a.entry.js} +1 -1
- package/dist/twilight/{p-0cb60522.entry.js → p-ae4ea8c9.entry.js} +1 -1
- package/dist/twilight/{p-d6a3b2d8.entry.js → p-ba601791.entry.js} +1 -1
- package/dist/twilight/{p-dc2be7b8.entry.js → p-c0423cfc.entry.js} +1 -1
- package/dist/twilight/{p-a236dd3b.entry.js → p-c861b955.entry.js} +1 -1
- package/dist/twilight/{p-3d3eda0f.entry.js → p-c96e9150.entry.js} +1 -1
- package/dist/twilight/{p-1b4c3b85.entry.js → p-cdd8e44a.entry.js} +1 -1
- package/dist/twilight/{p-9e50f29c.entry.js → p-cf3285f1.entry.js} +1 -1
- package/dist/twilight/p-d02dee6d.entry.js +4 -0
- package/dist/twilight/{p-95e7c2e1.entry.js → p-d204326c.entry.js} +1 -1
- package/dist/twilight/{p-e5dc1d27.entry.js → p-d304b8fc.entry.js} +1 -1
- package/dist/twilight/{p-79b743eb.entry.js → p-da63cbf0.entry.js} +1 -1
- package/dist/twilight/p-db2b9499.entry.js +4 -0
- package/dist/twilight/{p-a9ae6ab9.entry.js → p-dba5b89a.entry.js} +1 -1
- package/dist/twilight/{p-aca2717e.entry.js → p-e0387b79.entry.js} +1 -1
- package/dist/twilight/{p-f738f492.entry.js → p-e0dc2c2d.entry.js} +1 -1
- package/dist/twilight/{p-3e285056.entry.js → p-e3d37ab2.entry.js} +1 -1
- package/dist/twilight/{p-b3c9ab0e.entry.js → p-e59a8901.entry.js} +1 -1
- package/dist/twilight/{p-4adaee32.entry.js → p-e776afcd.entry.js} +1 -1
- package/dist/twilight/{p-4008e164.entry.js → p-e8921db3.entry.js} +1 -1
- package/dist/twilight/p-ec9434d9.entry.js +4 -0
- package/dist/twilight/{p-4c5a7ffc.entry.js → p-ee7e6ce9.entry.js} +1 -1
- package/dist/twilight/{p-213368ef.entry.js → p-f0ab3933.entry.js} +1 -1
- package/dist/twilight/{p-8ea3a265.entry.js → p-f16bdaf5.entry.js} +1 -1
- package/dist/twilight/{p-e8198efc.entry.js → p-f2718aec.entry.js} +1 -1
- package/dist/twilight/{p-118aa92e.entry.js → p-f581bb32.entry.js} +1 -1
- package/dist/twilight/{p-8fd6ed52.entry.js → p-f6981856.entry.js} +1 -1
- package/dist/twilight/{p-b2cbdaa0.entry.js → p-f7f8d758.entry.js} +1 -1
- package/dist/twilight/{p-fbce8a18.entry.js → p-fbff3efd.entry.js} +1 -1
- package/dist/twilight/{p-36167cbe.entry.js → p-ff890108.entry.js} +1 -1
- package/dist/twilight/{p-8cbf3bc2.entry.js → p-fffd562d.entry.js} +1 -1
- package/dist/twilight/{p-CtoXzf1y.js → p-g-_4am8C.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 +26 -0
- package/dist/types/components/salla-conditional-offer/interfaces.d.ts +36 -0
- package/dist/types/components/salla-conditional-offer/salla-conditional-offer.d.ts +182 -3
- package/dist/types/components/salla-order-shipments/salla-order-shipments.d.ts +0 -1
- package/dist/types/components/salla-order-totals-card/interfaces.d.ts +8 -3
- package/dist/types/components/salla-order-totals-card/salla-order-totals-card.d.ts +2 -1
- package/dist/types/shared/cart-free-gifts.d.ts +26 -0
- package/dist/types/shared/offer-stages.d.ts +6 -1
- package/package.json +5 -5
- package/dist/twilight/p-034b80ad.entry.js +0 -4
- package/dist/twilight/p-0fb390fb.entry.js +0 -4
- package/dist/twilight/p-17be7967.entry.js +0 -4
- package/dist/twilight/p-5bc2190a.entry.js +0 -4
- package/dist/twilight/p-7303ebd1.entry.js +0 -4
- package/dist/twilight/p-8b9c44c8.entry.js +0 -4
- package/dist/twilight/p-919650b7.entry.js +0 -4
- package/dist/twilight/p-ebe45961.entry.js +0 -4
|
@@ -17,9 +17,13 @@ export class SallaCartItemOffers {
|
|
|
17
17
|
this.receivedOffer = '';
|
|
18
18
|
this.discountAmountLabel = '';
|
|
19
19
|
this.showMoreOffers = '';
|
|
20
|
+
// `item.added` / `item.deleted` too: adding or removing ANOTHER line (e.g. from the cart offer's
|
|
21
|
+
// free product picker) moves the cart across an offer tier, which changes this line's offers.
|
|
20
22
|
this.cartUpdateEvents = [
|
|
21
23
|
'cart::latest.fetched',
|
|
22
24
|
'cart::item.updated',
|
|
25
|
+
'cart::item.added',
|
|
26
|
+
'cart::item.deleted',
|
|
23
27
|
'cart::coupon.added',
|
|
24
28
|
'cart::coupon.deleted',
|
|
25
29
|
];
|
|
@@ -1,21 +1,97 @@
|
|
|
1
|
-
/*!twlt
|
|
1
|
+
/*!twlt*/@charset "UTF-8";
|
|
2
|
+
:host {
|
|
2
3
|
display: block;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
.s-cart-summary-card-fee-tip-wrap {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.s-cart-summary-card-fee-tip {
|
|
12
|
+
appearance: none;
|
|
13
|
+
border: 0;
|
|
14
|
+
background: transparent;
|
|
15
|
+
padding: 0;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
.s-cart-summary-card-fee-tip svg {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
fill: currentColor;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* Fixed to the viewport from the tip icon rect — absolute tips are clipped by the sheet's
|
|
26
|
+
* overflow:hidden (and sit under the sticky bar on mobile).
|
|
27
|
+
*/
|
|
28
|
+
.s-cart-summary-card-fee-tip-bubble {
|
|
29
|
+
position: fixed;
|
|
30
|
+
transform: translateX(-50%);
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: 6px;
|
|
34
|
+
min-width: 132px;
|
|
35
|
+
max-width: min(220px, 100vw - 24px);
|
|
36
|
+
padding: 10px 12px;
|
|
37
|
+
border-radius: 8px;
|
|
38
|
+
background: var(--color-primary);
|
|
39
|
+
color: var(--color-primary-reverse);
|
|
40
|
+
line-height: 1.35;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
z-index: 1000;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
45
|
+
}
|
|
46
|
+
.s-cart-summary-card-fee-tip-bubble::after {
|
|
47
|
+
content: "";
|
|
48
|
+
position: absolute;
|
|
49
|
+
bottom: 100%;
|
|
50
|
+
left: 50%;
|
|
51
|
+
transform: translateX(-50%);
|
|
52
|
+
border: 6px solid transparent;
|
|
53
|
+
border-bottom-color: var(--color-primary);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.s-cart-summary-card-fee-tip-line {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: baseline;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
gap: 12px;
|
|
61
|
+
color: var(--color-primary-reverse);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.s-cart-summary-card-fee-tip-line-label {
|
|
65
|
+
font-size: 11px;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
opacity: 0.72;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.s-cart-summary-card-fee-tip-line-value {
|
|
71
|
+
font-size: 13px;
|
|
72
|
+
font-weight: 700;
|
|
73
|
+
}
|
|
74
|
+
.fixed{
|
|
75
|
+
position: fixed;
|
|
76
|
+
}
|
|
77
|
+
.sticky{
|
|
5
78
|
position: sticky;
|
|
6
79
|
}
|
|
7
|
-
.block
|
|
80
|
+
.block{
|
|
8
81
|
display: block;
|
|
9
82
|
}
|
|
10
|
-
.transform
|
|
83
|
+
.transform{
|
|
11
84
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
12
85
|
}
|
|
13
|
-
.
|
|
86
|
+
.resize{
|
|
87
|
+
resize: both;
|
|
88
|
+
}
|
|
89
|
+
.transition{
|
|
14
90
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
15
91
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
16
92
|
transition-duration: 150ms;
|
|
17
93
|
}
|
|
18
|
-
.\!btn
|
|
94
|
+
.\!btn{
|
|
19
95
|
display: inline-flex;
|
|
20
96
|
flex: 1 1 0%;
|
|
21
97
|
align-items: center;
|
|
@@ -33,10 +109,10 @@
|
|
|
33
109
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
110
|
transition-duration: 300ms;
|
|
35
111
|
}
|
|
36
|
-
.\!btn:hover
|
|
112
|
+
.\!btn:hover{
|
|
37
113
|
opacity: 0.8;
|
|
38
114
|
}
|
|
39
|
-
.btn
|
|
115
|
+
.btn{
|
|
40
116
|
display: inline-flex;
|
|
41
117
|
flex: 1 1 0%;
|
|
42
118
|
align-items: center;
|
|
@@ -54,10 +130,10 @@
|
|
|
54
130
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
55
131
|
transition-duration: 300ms;
|
|
56
132
|
}
|
|
57
|
-
.btn:hover
|
|
133
|
+
.btn:hover{
|
|
58
134
|
opacity: 0.8;
|
|
59
135
|
}
|
|
60
|
-
.s-cart-summary-card-sheet-title
|
|
136
|
+
.s-cart-summary-card-sheet-title{
|
|
61
137
|
margin-bottom: 0.5rem;
|
|
62
138
|
flex: 1 1 0%;
|
|
63
139
|
font-size: 0.875rem;
|
|
@@ -66,7 +142,7 @@
|
|
|
66
142
|
--tw-text-opacity: 1;
|
|
67
143
|
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
|
|
68
144
|
}
|
|
69
|
-
.s-cart-summary-card-line
|
|
145
|
+
.s-cart-summary-card-line{
|
|
70
146
|
margin-bottom: 0.5rem;
|
|
71
147
|
display: flex;
|
|
72
148
|
align-items: center;
|
|
@@ -74,36 +150,53 @@
|
|
|
74
150
|
font-size: 0.875rem;
|
|
75
151
|
line-height: 1.25rem;
|
|
76
152
|
}
|
|
77
|
-
.s-cart-summary-card-line span
|
|
153
|
+
.s-cart-summary-card-line > span{
|
|
78
154
|
--tw-text-opacity: 1;
|
|
79
155
|
color: rgb(75 85 99 / var(--tw-text-opacity, 1));
|
|
80
156
|
}
|
|
81
|
-
.s-cart-summary-card-line b
|
|
157
|
+
.s-cart-summary-card-line b{
|
|
82
158
|
font-size: 1rem;
|
|
83
159
|
line-height: 1.5rem;
|
|
84
160
|
font-weight: 600;
|
|
85
161
|
--tw-text-opacity: 1;
|
|
86
162
|
color: rgb(51 51 51 / var(--tw-text-opacity, 1));
|
|
87
163
|
}
|
|
88
|
-
.s-cart-summary-card-line--discount b
|
|
164
|
+
.s-cart-summary-card-line--discount b{
|
|
89
165
|
--tw-text-opacity: 1 !important;
|
|
90
166
|
color: rgb(220 38 38 / var(--tw-text-opacity, 1)) !important;
|
|
91
167
|
}
|
|
92
|
-
.s-cart-summary-card-line--discount b *
|
|
168
|
+
.s-cart-summary-card-line--discount b *{
|
|
93
169
|
--tw-text-opacity: 1 !important;
|
|
94
170
|
color: rgb(220 38 38 / var(--tw-text-opacity, 1)) !important;
|
|
95
171
|
}
|
|
96
|
-
.s-cart-summary-card-
|
|
172
|
+
.s-cart-summary-card-fee-label{
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
gap: 0.25rem;
|
|
176
|
+
--tw-text-opacity: 1;
|
|
177
|
+
color: rgb(75 85 99 / var(--tw-text-opacity, 1));
|
|
178
|
+
}
|
|
179
|
+
.s-cart-summary-card-fee-tip{
|
|
180
|
+
display: inline-flex;
|
|
181
|
+
height: 0.875rem;
|
|
182
|
+
width: 0.875rem;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
--tw-text-opacity: 1;
|
|
187
|
+
color: rgb(107 114 128 / var(--tw-text-opacity, 1));
|
|
188
|
+
}
|
|
189
|
+
.s-cart-summary-card-bar-label{
|
|
97
190
|
display: flex;
|
|
98
191
|
flex-direction: column;
|
|
99
192
|
gap: 0.125rem;
|
|
100
193
|
}
|
|
101
|
-
.s-cart-summary-card-bar-label-main
|
|
194
|
+
.s-cart-summary-card-bar-label-main{
|
|
102
195
|
display: flex;
|
|
103
196
|
align-items: baseline;
|
|
104
197
|
gap: 0.375rem;
|
|
105
198
|
}
|
|
106
|
-
.s-cart-summary-card-bar-label-text
|
|
199
|
+
.s-cart-summary-card-bar-label-text{
|
|
107
200
|
white-space: nowrap;
|
|
108
201
|
font-size: 1rem;
|
|
109
202
|
line-height: 1.5rem;
|
|
@@ -111,44 +204,44 @@
|
|
|
111
204
|
--tw-text-opacity: 1;
|
|
112
205
|
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
|
|
113
206
|
}
|
|
114
|
-
.s-cart-summary-card-bar-count
|
|
207
|
+
.s-cart-summary-card-bar-count{
|
|
115
208
|
white-space: nowrap;
|
|
116
209
|
font-size: 0.75rem;
|
|
117
210
|
line-height: 1rem;
|
|
118
211
|
--tw-text-opacity: 1;
|
|
119
212
|
color: rgb(115 115 115 / var(--tw-text-opacity, 1));
|
|
120
213
|
}
|
|
121
|
-
.s-cart-summary-card-bar-label-sub
|
|
214
|
+
.s-cart-summary-card-bar-label-sub{
|
|
122
215
|
font-size: 11px;
|
|
123
216
|
--tw-text-opacity: 1;
|
|
124
217
|
color: rgb(115 115 115 / var(--tw-text-opacity, 1));
|
|
125
218
|
}
|
|
126
|
-
.s-cart-summary-card-bar-totals
|
|
219
|
+
.s-cart-summary-card-bar-totals{
|
|
127
220
|
display: flex;
|
|
128
221
|
flex-direction: column;
|
|
129
222
|
align-items: flex-end;
|
|
130
223
|
gap: 0.375rem;
|
|
131
224
|
}
|
|
132
|
-
.s-cart-summary-card-bar-totals-row
|
|
225
|
+
.s-cart-summary-card-bar-totals-row{
|
|
133
226
|
display: flex;
|
|
134
227
|
align-items: center;
|
|
135
228
|
gap: 0.375rem;
|
|
136
229
|
}
|
|
137
|
-
.s-cart-summary-card-bar-total
|
|
230
|
+
.s-cart-summary-card-bar-total{
|
|
138
231
|
font-size: 1rem;
|
|
139
232
|
line-height: 1.5rem;
|
|
140
233
|
font-weight: 700;
|
|
141
234
|
--tw-text-opacity: 1;
|
|
142
235
|
color: rgb(17 24 39 / var(--tw-text-opacity, 1));
|
|
143
236
|
}
|
|
144
|
-
.s-cart-summary-card-bar-original
|
|
237
|
+
.s-cart-summary-card-bar-original{
|
|
145
238
|
font-size: 1rem;
|
|
146
239
|
line-height: 1.5rem;
|
|
147
240
|
--tw-text-opacity: 1;
|
|
148
241
|
color: rgb(156 163 175 / var(--tw-text-opacity, 1));
|
|
149
242
|
text-decoration-line: line-through;
|
|
150
243
|
}
|
|
151
|
-
.s-cart-summary-card-bar-savings-badge
|
|
244
|
+
.s-cart-summary-card-bar-savings-badge{
|
|
152
245
|
display: inline-flex;
|
|
153
246
|
width: max-content;
|
|
154
247
|
align-items: center;
|
|
@@ -165,7 +258,7 @@
|
|
|
165
258
|
--tw-text-opacity: 1;
|
|
166
259
|
color: rgb(22 163 74 / var(--tw-text-opacity, 1));
|
|
167
260
|
}
|
|
168
|
-
.s-cart-summary-card-chevron
|
|
261
|
+
.s-cart-summary-card-chevron{
|
|
169
262
|
display: inline-flex;
|
|
170
263
|
height: 1.5rem;
|
|
171
264
|
width: 1.5rem;
|
|
@@ -179,19 +272,19 @@
|
|
|
179
272
|
outline: 2px solid transparent;
|
|
180
273
|
outline-offset: 2px;
|
|
181
274
|
}
|
|
182
|
-
.s-cart-summary-card-chevron-icon
|
|
275
|
+
.s-cart-summary-card-chevron-icon{
|
|
183
276
|
display: inline-flex;
|
|
184
277
|
transition-property: transform;
|
|
185
278
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
186
279
|
transition-duration: 300ms;
|
|
187
280
|
}
|
|
188
|
-
.s-cart-summary-card
|
|
281
|
+
.s-cart-summary-card{
|
|
189
282
|
display: block;
|
|
190
283
|
--tw-bg-opacity: 1;
|
|
191
284
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
192
285
|
}
|
|
193
|
-
@media (max-width: 1023px)
|
|
194
|
-
.s-cart-summary-card
|
|
286
|
+
@media (max-width: 1023px){
|
|
287
|
+
.s-cart-summary-card{
|
|
195
288
|
position: fixed;
|
|
196
289
|
inset-inline: 0;
|
|
197
290
|
bottom: 0;
|
|
@@ -202,8 +295,8 @@
|
|
|
202
295
|
padding-bottom: calc(env(safe-area-inset-bottom) + 0.5rem);
|
|
203
296
|
}
|
|
204
297
|
}
|
|
205
|
-
@media (min-width: 1024px)
|
|
206
|
-
.s-cart-summary-card
|
|
298
|
+
@media (min-width: 1024px){
|
|
299
|
+
.s-cart-summary-card{
|
|
207
300
|
position: relative;
|
|
208
301
|
border-radius: 0.5rem;
|
|
209
302
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
|
@@ -211,19 +304,19 @@
|
|
|
211
304
|
margin-bottom: 1.25rem;
|
|
212
305
|
}
|
|
213
306
|
}
|
|
214
|
-
@media (max-width: 1023px)
|
|
215
|
-
.s-cart-summary-card--open
|
|
307
|
+
@media (max-width: 1023px){
|
|
308
|
+
.s-cart-summary-card--open{
|
|
216
309
|
border-radius: 0;
|
|
217
310
|
box-shadow: none;
|
|
218
311
|
}
|
|
219
312
|
}
|
|
220
|
-
.s-cart-summary-card-sheet-wrap
|
|
313
|
+
.s-cart-summary-card-sheet-wrap{
|
|
221
314
|
display: grid;
|
|
222
315
|
grid-template-rows: 0fr;
|
|
223
316
|
transition: grid-template-rows 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s ease;
|
|
224
317
|
}
|
|
225
|
-
@media (max-width: 1023px)
|
|
226
|
-
.s-cart-summary-card-sheet-wrap
|
|
318
|
+
@media (max-width: 1023px){
|
|
319
|
+
.s-cart-summary-card-sheet-wrap{
|
|
227
320
|
position: absolute;
|
|
228
321
|
inset-inline: 0;
|
|
229
322
|
bottom: calc(100% - 1px);
|
|
@@ -233,41 +326,41 @@
|
|
|
233
326
|
box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, 0);
|
|
234
327
|
}
|
|
235
328
|
}
|
|
236
|
-
@media (min-width: 1024px)
|
|
237
|
-
.s-cart-summary-card-sheet-wrap
|
|
329
|
+
@media (min-width: 1024px){
|
|
330
|
+
.s-cart-summary-card-sheet-wrap{
|
|
238
331
|
grid-template-rows: 1fr;
|
|
239
332
|
}
|
|
240
333
|
}
|
|
241
|
-
@media (max-width: 1023px)
|
|
242
|
-
.s-cart-summary-card-sheet-wrap--open
|
|
334
|
+
@media (max-width: 1023px){
|
|
335
|
+
.s-cart-summary-card-sheet-wrap--open{
|
|
243
336
|
grid-template-rows: 1fr;
|
|
244
337
|
box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, 0.12);
|
|
245
338
|
}
|
|
246
339
|
}
|
|
247
|
-
.s-cart-summary-card-sheet
|
|
340
|
+
.s-cart-summary-card-sheet{
|
|
248
341
|
min-height: 0;
|
|
249
342
|
overflow: hidden;
|
|
250
343
|
}
|
|
251
|
-
@media (max-width: 1023px)
|
|
252
|
-
.s-cart-summary-card-sheet-wrap--open .s-cart-summary-card-sheet
|
|
344
|
+
@media (max-width: 1023px){
|
|
345
|
+
.s-cart-summary-card-sheet-wrap--open .s-cart-summary-card-sheet{
|
|
253
346
|
overflow-y: auto;
|
|
254
347
|
max-height: 70vh;
|
|
255
348
|
-webkit-overflow-scrolling: touch;
|
|
256
349
|
padding: 0.75rem 1rem 0;
|
|
257
350
|
}
|
|
258
351
|
}
|
|
259
|
-
.s-cart-summary-card-sheet-header
|
|
352
|
+
.s-cart-summary-card-sheet-header{
|
|
260
353
|
display: flex;
|
|
261
354
|
align-items: center;
|
|
262
355
|
justify-content: space-between;
|
|
263
356
|
gap: 0.5rem;
|
|
264
357
|
}
|
|
265
|
-
@media (max-width: 1023px)
|
|
266
|
-
.s-cart-summary-card-sheet-header
|
|
358
|
+
@media (max-width: 1023px){
|
|
359
|
+
.s-cart-summary-card-sheet-header{
|
|
267
360
|
padding-bottom: 0.5rem;
|
|
268
361
|
}
|
|
269
362
|
}
|
|
270
|
-
.s-cart-summary-card-bar
|
|
363
|
+
.s-cart-summary-card-bar{
|
|
271
364
|
display: flex;
|
|
272
365
|
align-items: flex-start;
|
|
273
366
|
justify-content: space-between;
|
|
@@ -275,34 +368,34 @@
|
|
|
275
368
|
--tw-bg-opacity: 1;
|
|
276
369
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
277
370
|
}
|
|
278
|
-
@media (min-width: 1024px)
|
|
279
|
-
.s-cart-summary-card-bar
|
|
371
|
+
@media (min-width: 1024px){
|
|
372
|
+
.s-cart-summary-card-bar{
|
|
280
373
|
margin-top: 1rem;
|
|
281
374
|
}
|
|
282
375
|
}
|
|
283
|
-
@media (max-width: 1023px)
|
|
284
|
-
.s-cart-summary-card-bar
|
|
376
|
+
@media (max-width: 1023px){
|
|
377
|
+
.s-cart-summary-card-bar{
|
|
285
378
|
padding: 0.875rem 1rem 0.5rem;
|
|
286
379
|
border-radius: 24px 24px 0 0;
|
|
287
380
|
}
|
|
288
|
-
.s-cart-summary-card--open .s-cart-summary-card-bar
|
|
381
|
+
.s-cart-summary-card--open .s-cart-summary-card-bar{
|
|
289
382
|
padding-top: 0;
|
|
290
383
|
border-radius: 0;
|
|
291
384
|
}
|
|
292
385
|
}
|
|
293
|
-
@media (min-width: 1024px)
|
|
294
|
-
.s-cart-summary-card-action
|
|
386
|
+
@media (min-width: 1024px){
|
|
387
|
+
.s-cart-summary-card-action{
|
|
295
388
|
padding-top: 1rem;
|
|
296
389
|
}
|
|
297
390
|
}
|
|
298
|
-
@media (max-width: 1023px)
|
|
299
|
-
.s-cart-summary-card-action
|
|
391
|
+
@media (max-width: 1023px){
|
|
392
|
+
.s-cart-summary-card-action{
|
|
300
393
|
padding: 0 1rem 0.75rem;
|
|
301
394
|
}
|
|
302
395
|
}
|
|
303
|
-
.s-cart-summary-card--open .s-cart-summary-card-chevron-icon
|
|
396
|
+
.s-cart-summary-card--open .s-cart-summary-card-chevron-icon{
|
|
304
397
|
transform: rotate(180deg);
|
|
305
398
|
}
|
|
306
|
-
.s-cart-summary-card-action *:focus
|
|
399
|
+
.s-cart-summary-card-action *:focus{
|
|
307
400
|
outline: none;
|
|
308
401
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
|
+
import InfoIcon from "../../assets/svg/info.svg";
|
|
5
6
|
const SKELETON_ROWS = [
|
|
6
7
|
{ label: '100px', value: '56px' },
|
|
7
8
|
{ label: '72px', value: '64px' },
|
|
@@ -21,6 +22,8 @@ export class SallaCartSummaryCard {
|
|
|
21
22
|
this.cartCashbackAmount = 0;
|
|
22
23
|
this.cartSubTotal = 0;
|
|
23
24
|
this.cartOptionsTotal = 0;
|
|
25
|
+
/* From cart.service_fees[] — charged amount plus optional min/max for the tip. */
|
|
26
|
+
this.cartServiceFees = [];
|
|
24
27
|
this.cartShippingCost = 0;
|
|
25
28
|
this.cartTaxAmount = 0;
|
|
26
29
|
this.cartHasShipping = false;
|
|
@@ -28,6 +31,24 @@ export class SallaCartSummaryCard {
|
|
|
28
31
|
this.isDesktop = false;
|
|
29
32
|
/** True until the first cart payload (API response or cart event) arrives. */
|
|
30
33
|
this.isLoading = true;
|
|
34
|
+
/* Viewport coords — fixed tip escapes the sheet's overflow:hidden. */
|
|
35
|
+
this.feeTip = null;
|
|
36
|
+
this.showFeeTip = (key, event) => {
|
|
37
|
+
const wrap = event.currentTarget;
|
|
38
|
+
if (!wrap)
|
|
39
|
+
return;
|
|
40
|
+
const rect = wrap.getBoundingClientRect();
|
|
41
|
+
this.feeTip = {
|
|
42
|
+
key,
|
|
43
|
+
top: Math.round(rect.bottom + 8),
|
|
44
|
+
left: this.clampFeeTipLeft(rect.left + rect.width / 2),
|
|
45
|
+
};
|
|
46
|
+
this.bindFeeTipDismiss();
|
|
47
|
+
};
|
|
48
|
+
this.hideFeeTip = () => {
|
|
49
|
+
this.feeTip = null;
|
|
50
|
+
this.unbindFeeTipDismiss();
|
|
51
|
+
};
|
|
31
52
|
// Original DOM location — needed to restore the host on the mobile→desktop flip.
|
|
32
53
|
this.originalParent = null;
|
|
33
54
|
this.originalNextSibling = null;
|
|
@@ -35,6 +56,7 @@ export class SallaCartSummaryCard {
|
|
|
35
56
|
this.mediaQueryList = null;
|
|
36
57
|
this.submitObserver = null;
|
|
37
58
|
this.isSubmitting = false;
|
|
59
|
+
this.feeTipDismissBound = false;
|
|
38
60
|
// Stable handler refs — anonymous functions can't be unbound from listeners.
|
|
39
61
|
this.mqlChangeHandler = (e) => {
|
|
40
62
|
this.isDesktop = e.matches;
|
|
@@ -60,8 +82,11 @@ export class SallaCartSummaryCard {
|
|
|
60
82
|
this.host.querySelector('#s-cart-summary-card-submit')?.removeAttribute?.('loading');
|
|
61
83
|
};
|
|
62
84
|
this.toggleSheet = () => {
|
|
63
|
-
if (
|
|
64
|
-
|
|
85
|
+
if (this.isDesktop)
|
|
86
|
+
return;
|
|
87
|
+
this.isOpen = !this.isOpen;
|
|
88
|
+
if (!this.isOpen)
|
|
89
|
+
this.hideFeeTip();
|
|
65
90
|
};
|
|
66
91
|
this.handleSubmit = async (event) => {
|
|
67
92
|
// Re-entrancy guard, set before the async validation so a second tap during
|
|
@@ -136,6 +161,8 @@ export class SallaCartSummaryCard {
|
|
|
136
161
|
this.completeOrderLabel = salla.lang.get('pages.cart.complete_order');
|
|
137
162
|
this.openSummaryLabel = salla.lang.get('pages.cart.open_summary');
|
|
138
163
|
this.closeSummaryLabel = salla.lang.get('pages.cart.close_summary');
|
|
164
|
+
this.minimumLabel = salla.lang.get('pages.cart.minimum');
|
|
165
|
+
this.maximumLabel = salla.lang.get('pages.cart.up_to');
|
|
139
166
|
this.itemsCountTemplate = salla.lang.get('pages.cart.items_with_count');
|
|
140
167
|
}
|
|
141
168
|
/** Coerces PHP cart values: numbers, strings, and Money/MoneyTaxable objects. */
|
|
@@ -156,6 +183,86 @@ export class SallaCartSummaryCard {
|
|
|
156
183
|
}
|
|
157
184
|
return 0;
|
|
158
185
|
}
|
|
186
|
+
/* BE uses null for “no bound”; treat 0 the same so the tip never shows a useless zero. */
|
|
187
|
+
optionalBound(value) {
|
|
188
|
+
if (value === null || value === undefined || value === '')
|
|
189
|
+
return null;
|
|
190
|
+
const amount = this.num(value);
|
|
191
|
+
return Number.isFinite(amount) && amount > 0 ? amount : null;
|
|
192
|
+
}
|
|
193
|
+
mapServiceFees(fees) {
|
|
194
|
+
return fees.flatMap((fee, index) => {
|
|
195
|
+
const title = String(fee?.title ?? '').trim();
|
|
196
|
+
const amount = this.num(fee?.amount);
|
|
197
|
+
if (!title || amount <= 0)
|
|
198
|
+
return [];
|
|
199
|
+
return [
|
|
200
|
+
{
|
|
201
|
+
key: String(index),
|
|
202
|
+
title,
|
|
203
|
+
amount,
|
|
204
|
+
minAmount: this.optionalBound(fee?.min_amount ?? fee?.min_service_amount),
|
|
205
|
+
maxAmount: this.optionalBound(fee?.max_amount ?? fee?.max_service_amount),
|
|
206
|
+
},
|
|
207
|
+
];
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/* Strip HTML for tip text; keep SAR when the theme renders it as <i class="sicon-sar">. */
|
|
211
|
+
plainMoney(value) {
|
|
212
|
+
return this.money(value)
|
|
213
|
+
.replace(/<i[^>]*sicon-sar[^>]*>.*?<\/i>/gi, ' SAR')
|
|
214
|
+
.replace(/<[^>]+>/g, '')
|
|
215
|
+
.replace(/\s+/g, ' ')
|
|
216
|
+
.trim();
|
|
217
|
+
}
|
|
218
|
+
serviceFeeBoundLines(fee) {
|
|
219
|
+
const lines = [];
|
|
220
|
+
if (fee.minAmount !== null)
|
|
221
|
+
lines.push({ label: this.minimumLabel, amount: fee.minAmount });
|
|
222
|
+
if (fee.maxAmount !== null)
|
|
223
|
+
lines.push({ label: this.maximumLabel, amount: fee.maxAmount });
|
|
224
|
+
return lines;
|
|
225
|
+
}
|
|
226
|
+
/* Bubble is centered with translateX(-50%); keep that center inside the viewport. */
|
|
227
|
+
clampFeeTipLeft(centerX) {
|
|
228
|
+
const margin = 12;
|
|
229
|
+
const tipWidth = Math.min(220, Math.max(132, window.innerWidth - margin * 2));
|
|
230
|
+
const half = tipWidth / 2;
|
|
231
|
+
const min = margin + half;
|
|
232
|
+
const max = window.innerWidth - margin - half;
|
|
233
|
+
if (max <= min)
|
|
234
|
+
return Math.round(window.innerWidth / 2);
|
|
235
|
+
return Math.round(Math.min(Math.max(centerX, min), max));
|
|
236
|
+
}
|
|
237
|
+
bindFeeTipDismiss() {
|
|
238
|
+
if (this.feeTipDismissBound)
|
|
239
|
+
return;
|
|
240
|
+
window.addEventListener('scroll', this.hideFeeTip, true);
|
|
241
|
+
window.addEventListener('resize', this.hideFeeTip);
|
|
242
|
+
this.feeTipDismissBound = true;
|
|
243
|
+
}
|
|
244
|
+
unbindFeeTipDismiss() {
|
|
245
|
+
if (!this.feeTipDismissBound)
|
|
246
|
+
return;
|
|
247
|
+
window.removeEventListener('scroll', this.hideFeeTip, true);
|
|
248
|
+
window.removeEventListener('resize', this.hideFeeTip);
|
|
249
|
+
this.feeTipDismissBound = false;
|
|
250
|
+
}
|
|
251
|
+
renderServiceFeeBoundsTip(fee) {
|
|
252
|
+
const lines = this.serviceFeeBoundLines(fee);
|
|
253
|
+
if (!lines.length)
|
|
254
|
+
return null;
|
|
255
|
+
return (h("span", { class: "s-cart-summary-card-fee-tip-wrap", onMouseEnter: event => this.showFeeTip(fee.key, event), onMouseLeave: this.hideFeeTip }, h("button", { type: "button", class: "s-cart-summary-card-fee-tip", "aria-label": lines.map(line => `${line.label}: ${this.plainMoney(line.amount)}`).join(', '), innerHTML: InfoIcon, onFocus: event => this.showFeeTip(fee.key, event), onBlur: this.hideFeeTip })));
|
|
256
|
+
}
|
|
257
|
+
renderFixedFeeTipBubble() {
|
|
258
|
+
if (!this.feeTip)
|
|
259
|
+
return null;
|
|
260
|
+
const fee = this.cartServiceFees.find(item => item.key === this.feeTip.key);
|
|
261
|
+
const lines = fee ? this.serviceFeeBoundLines(fee) : [];
|
|
262
|
+
if (!lines.length)
|
|
263
|
+
return null;
|
|
264
|
+
return (h("span", { class: "s-cart-summary-card-fee-tip-bubble", role: "tooltip", style: { top: `${this.feeTip.top}px`, left: `${this.feeTip.left}px` } }, lines.map(line => (h("span", { class: "s-cart-summary-card-fee-tip-line", key: line.label }, h("span", { class: "s-cart-summary-card-fee-tip-line-label" }, line.label), h("span", { class: "s-cart-summary-card-fee-tip-line-value" }, this.plainMoney(line.amount)))))));
|
|
265
|
+
}
|
|
159
266
|
// Desktop cutoff — must match the SCSS media queries so JS and CSS never diverge.
|
|
160
267
|
breakpointPx() {
|
|
161
268
|
return 1024;
|
|
@@ -235,6 +342,7 @@ export class SallaCartSummaryCard {
|
|
|
235
342
|
this.mediaQueryList?.removeListener(this.mqlChangeHandler);
|
|
236
343
|
}
|
|
237
344
|
this.mediaQueryList = null;
|
|
345
|
+
this.unbindFeeTipDismiss();
|
|
238
346
|
this.cartEventNames.forEach(name => salla.event.off(name, this.cartEventHandler));
|
|
239
347
|
salla.event.off('cart::submit.failed', this.releaseSubmitLoading);
|
|
240
348
|
});
|
|
@@ -310,6 +418,13 @@ export class SallaCartSummaryCard {
|
|
|
310
418
|
this.cartOptionsTotal = this.num(data.options_total);
|
|
311
419
|
if (data.tax_amount !== undefined)
|
|
312
420
|
this.cartTaxAmount = this.num(data.tax_amount);
|
|
421
|
+
/* Same retractability as cashback — cached/metadata payloads must not wipe live fees. */
|
|
422
|
+
if (Array.isArray(data.service_fees)) {
|
|
423
|
+
this.cartServiceFees = this.mapServiceFees(data.service_fees);
|
|
424
|
+
}
|
|
425
|
+
else if (recomputedTotals) {
|
|
426
|
+
this.cartServiceFees = [];
|
|
427
|
+
}
|
|
313
428
|
// Shipping cost (free-shipping aware): prefer `shipping_cost`, else `real_shipping_cost`.
|
|
314
429
|
const hasFreeShipping = !!data.free_shipping_bar?.has_free_shipping;
|
|
315
430
|
if (data.shipping_cost !== undefined)
|
|
@@ -389,7 +504,7 @@ export class SallaCartSummaryCard {
|
|
|
389
504
|
} }, h("div", { class: {
|
|
390
505
|
's-cart-summary-card-sheet-wrap': true,
|
|
391
506
|
's-cart-summary-card-sheet-wrap--open': this.isOpen,
|
|
392
|
-
}, "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 || showCashback) && (h("div", { class: "s-cart-summary-card-bar-savings-badge" }, h("span", { "aria-hidden": "true" }, "\uD83C\uDF89"), h("span", null, showSavings && (h("span", null, this.discountBadge, " ", h("span", { innerHTML: this.money(this.cartTotalDiscount) }))), showSavings && showCashback && ' + ', showCashback && (h("span", null, h("span", { innerHTML: this.money(this.cartCashbackAmount) }), " ", this.cashbackLabel))))))), 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))));
|
|
507
|
+
}, "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.cartServiceFees.map(fee => (h("div", { class: "s-cart-summary-card-line", key: fee.key }, h("span", { class: "s-cart-summary-card-fee-label" }, h("span", null, fee.title), this.renderServiceFeeBoundsTip(fee)), h("b", { innerHTML: this.money(fee.amount) })))), 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 || showCashback) && (h("div", { class: "s-cart-summary-card-bar-savings-badge" }, h("span", { "aria-hidden": "true" }, "\uD83C\uDF89"), h("span", null, showSavings && (h("span", null, this.discountBadge, " ", h("span", { innerHTML: this.money(this.cartTotalDiscount) }))), showSavings && showCashback && ' + ', showCashback && (h("span", null, h("span", { innerHTML: this.money(this.cartCashbackAmount) }), " ", this.cashbackLabel))))))), 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)), this.renderFixedFeeTipBubble()));
|
|
393
508
|
}
|
|
394
509
|
static get is() { return "salla-cart-summary-card"; }
|
|
395
510
|
static get originalStyleUrls() {
|
|
@@ -434,6 +549,7 @@ export class SallaCartSummaryCard {
|
|
|
434
549
|
"cartCashbackAmount": {},
|
|
435
550
|
"cartSubTotal": {},
|
|
436
551
|
"cartOptionsTotal": {},
|
|
552
|
+
"cartServiceFees": {},
|
|
437
553
|
"cartShippingCost": {},
|
|
438
554
|
"cartTaxAmount": {},
|
|
439
555
|
"cartHasShipping": {},
|
|
@@ -454,7 +570,10 @@ export class SallaCartSummaryCard {
|
|
|
454
570
|
"completeOrderLabel": {},
|
|
455
571
|
"openSummaryLabel": {},
|
|
456
572
|
"closeSummaryLabel": {},
|
|
457
|
-
"
|
|
573
|
+
"minimumLabel": {},
|
|
574
|
+
"maximumLabel": {},
|
|
575
|
+
"itemsCountTemplate": {},
|
|
576
|
+
"feeTip": {}
|
|
458
577
|
};
|
|
459
578
|
}
|
|
460
579
|
static get elementRef() { return "host"; }
|