@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-g-_4am8C.js';
|
|
5
5
|
import { f as fetchCartBoughtTogether } from './catalog-recommendations-DIAyA5MP.js';
|
|
6
6
|
|
|
7
7
|
const sallaBasketGapCss = "/*!twlt*/:host{display:block}.block{display:block}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-basket-gap-entry{margin-top:1.25rem;margin-bottom:1.25rem;display:block;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:1.25rem}.s-basket-gap-title{margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700}.s-basket-gap-list{display:flex;flex-direction:column}.s-basket-gap-list>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));--tw-divide-opacity:1;border-color:rgb(243 244 246 / var(--tw-divide-opacity, 1))}.s-basket-gap-card{display:flex;flex-wrap:wrap;align-items:center;column-gap:0.75rem;row-gap:0.625rem;padding-top:1rem;padding-bottom:1rem}.s-basket-gap-card-image{height:4rem;width:4rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-basket-gap-card-image img{height:100%;width:100%;object-fit:cover}.s-basket-gap-card-info{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:0.25rem}.s-basket-gap-card-actions{display:flex;width:100%;align-items:center;justify-content:flex-end;gap:0.5rem}@media (min-width: 640px){.s-basket-gap-card-actions{width:auto}}.s-basket-gap-card-name{font-size:0.875rem;line-height:1.25rem;font-weight:600;line-height:1.25;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-basket-gap-card-name a:hover{color:var(--color-primary)}.s-basket-gap-card-price{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-basket-gap-card-sale-price{display:flex;align-items:center;gap:0.5rem}.s-basket-gap-card-sale-price span{font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-basket-gap-card-sale-price del{font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-basket-gap-card-weight{font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-basket-gap-card-offer{display:flex;flex-shrink:0;align-items:center;gap:0.25rem;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));padding-left:9px;padding-right:9px;padding-top:3px;padding-bottom:3px;font-size:11px;font-weight:500;--tw-text-opacity:1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.s-basket-gap-card-offer i{font-size:0.75rem;line-height:1rem}.s-basket-gap-card-offer span{font-weight:700;--tw-text-opacity:1 !important;color:rgb(31 41 55 / var(--tw-text-opacity, 1)) !important}.s-basket-gap-card-offer salla-count-down{flex-shrink:0}.s-basket-gap-card-offer salla-count-down:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-inline-start:0.25rem}.s-basket-gap-card-offer salla-count-down:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-inline-end:0.25rem}.s-basket-gap-card-offer .s-count-down-list{margin-left:-0px !important;margin-right:-0px !important;margin-bottom:0px !important;margin-top:0px !important;display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start !important;column-gap:0px;--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.s-basket-gap-card-offer .s-count-down-list:where([dir=\"ltr\"],[dir=\"ltr\"] *){flex-direction:row-reverse !important}.s-basket-gap-card-offer .s-count-down-list:where([dir=\"rtl\"],[dir=\"rtl\"] *){flex-direction:row !important}.s-basket-gap-card-offer .s-count-down-item{position:relative !important;margin-left:0px !important;margin-right:0px !important;display:inline-flex !important;width:auto !important;flex:none !important;flex-grow:0 !important;flex-direction:row !important;align-items:center !important;justify-content:center !important;padding-top:0px !important;padding-bottom:0px !important;padding-left:0px !important;padding-right:0px !important;font-size:12px !important;font-weight:700 !important;line-height:1 !important;--tw-text-opacity:1 !important;color:rgb(21 128 61 / var(--tw-text-opacity, 1)) !important}.s-basket-gap-card-offer .s-count-down-item-value{display:inline-block !important;width:2ch !important;min-width:2ch !important;text-align:center;--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);line-height:1}.s-basket-gap-card-offer .s-count-down-item-label{display:none}.s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item::before{content:none !important}.s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item::after{content:none !important;position:static;left:auto;right:auto;transform:none}[dir='rtl'] .s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item:not(:last-child)::after{content:':' !important;position:static;left:auto;right:auto;transform:none;margin-left:0.15rem;margin-right:0.15rem;color:#15803d;font-size:12px;font-weight:700;line-height:1}[dir='ltr'] .s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item:not(:first-child)::after{content:':' !important;position:static;left:auto;right:auto;transform:none;margin-left:0.15rem;margin-right:0.15rem;color:#15803d;font-size:12px;font-weight:700;line-height:1}.s-basket-gap-card-btn{flex-shrink:0}.s-basket-gap-card-btn salla-button .s-button-btn{border-radius:var(--s-radius, 0.25rem);border-width:1px !important;border-color:var(--color-primary) !important;background-color:transparent !important;color:var(--color-primary) !important}.s-basket-gap-card-btn salla-button .s-button-btn:hover{background-color:var(--color-primary) !important;--tw-text-opacity:1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1)) !important}.s-basket-gap-card-btn salla-button .s-button-loader:before{border-top-color:var(--color-primary) !important;border-left-color:var(--color-primary) !important;border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1)) !important;--tw-border-opacity:1 !important;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1)) !important}.s-basket-gap-skeleton{display:flex;flex-direction:column;gap:0.75rem}.s-basket-gap-skeleton-card{display:flex;align-items:center;gap:0.75rem;padding-top:0.75rem;padding-bottom:0.75rem}.s-basket-gap-skeleton-info{display:flex;flex:1 1 0%;flex-direction:column;gap:0.5rem}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-g-_4am8C.js';
|
|
5
5
|
import { a as isSaudiArabia, b as bulletDeliveryAPI, r as requireRegionAndDistrictForSA, c as clearBranchCache, h as hasSessionAddressIntent, g as getIntentCityId, d as getIntentCountryId, e as getIntentRegionId, f as getIntentDistrictId, j as getBranchCities, C as CACHE_TTL, k as isBranchSelectable, l as getBranchDiscountRange, m as filterBranches, n as getIntentBranchId, o as findNearestBranch, t as toCoordinate, p as clearApiCache, q as getIntentSubtitle, i as isMapOriginIntent, s as isBranchVisible, u as getBranchReadinessLabel, v as groupBranchSchedule, w as getBranchWeekSchedule, x as getBranchPhoneHref, y as getBranchWhatsappHref, z as getBranchDiscount, A as formatBranchDistance, B as getBranchDirectionsHref, D as isBranchAlwaysOpen, E as formatBranchClockTime, F as getBranchReadyTodayTime, G as isBranchBusy, H as getIntentCountryCode } from './helpers-BVaKfTMx.js';
|
|
6
6
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
7
7
|
import { S as Search } from './search-BscTeWDc.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-g-_4am8C.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* One shared GET /coupons per page view (CHKM-594).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-g-_4am8C.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
import { l as loyaltyProgramIcon } from './gift-BChI23pG.js';
|
|
7
7
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
@@ -40,9 +40,13 @@ const SallaCartItemOffers = class {
|
|
|
40
40
|
this.receivedOffer = '';
|
|
41
41
|
this.discountAmountLabel = '';
|
|
42
42
|
this.showMoreOffers = '';
|
|
43
|
+
// `item.added` / `item.deleted` too: adding or removing ANOTHER line (e.g. from the cart offer's
|
|
44
|
+
// free product picker) moves the cart across an offer tier, which changes this line's offers.
|
|
43
45
|
this.cartUpdateEvents = [
|
|
44
46
|
'cart::latest.fetched',
|
|
45
47
|
'cart::item.updated',
|
|
48
|
+
'cart::item.added',
|
|
49
|
+
'cart::item.deleted',
|
|
46
50
|
'cart::coupon.added',
|
|
47
51
|
'cart::coupon.deleted',
|
|
48
52
|
];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-g-_4am8C.js';
|
|
5
|
+
import { I as InfoIcon } from './info-OdOOjQZO.js';
|
|
5
6
|
|
|
6
|
-
const sallaCartSummaryCardCss = "/*!twlt
|
|
7
|
+
const sallaCartSummaryCardCss = "/*!twlt*/@charset \"UTF-8\";:host{display:block}.s-cart-summary-card-fee-tip-wrap{display:inline-flex;align-items:center}.s-cart-summary-card-fee-tip{appearance:none;border:0;background:transparent;padding:0;outline:none}.s-cart-summary-card-fee-tip svg{width:100%;height:100%;fill:currentColor}.s-cart-summary-card-fee-tip-bubble{position:fixed;transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;min-width:132px;max-width:min(220px, 100vw - 24px);padding:10px 12px;border-radius:8px;background:var(--color-primary);color:var(--color-primary-reverse);line-height:1.35;white-space:nowrap;z-index:1000;pointer-events:none;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15)}.s-cart-summary-card-fee-tip-bubble::after{content:\"\";position:absolute;bottom:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-bottom-color:var(--color-primary)}.s-cart-summary-card-fee-tip-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--color-primary-reverse)}.s-cart-summary-card-fee-tip-line-label{font-size:11px;font-weight:400;opacity:0.72}.s-cart-summary-card-fee-tip-line-value{font-size:13px;font-weight:700}.fixed{position:fixed}.sticky{position:sticky}.block{display:block}.transform{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))}.resize{resize:both}.transition{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.\\!btn{display:inline-flex;flex:1 1 0%;align-items:center;justify-content:center;white-space:nowrap;border-radius:0.375rem;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.\\!btn:hover{opacity:0.8}.btn{display:inline-flex;flex:1 1 0%;align-items:center;justify-content:center;white-space:nowrap;border-radius:0.375rem;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.btn:hover{opacity:0.8}.s-cart-summary-card-sheet-title{margin-bottom:0.5rem;flex:1 1 0%;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-cart-summary-card-line{margin-bottom:0.5rem;display:flex;align-items:center;justify-content:space-between;font-size:0.875rem;line-height:1.25rem}.s-cart-summary-card-line>span{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-cart-summary-card-line b{font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity:1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}.s-cart-summary-card-line--discount b{--tw-text-opacity:1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1)) !important}.s-cart-summary-card-line--discount b *{--tw-text-opacity:1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1)) !important}.s-cart-summary-card-fee-label{display:inline-flex;align-items:center;gap:0.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-cart-summary-card-fee-tip{display:inline-flex;height:0.875rem;width:0.875rem;cursor:pointer;align-items:center;justify-content:center;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-cart-summary-card-bar-label{display:flex;flex-direction:column;gap:0.125rem}.s-cart-summary-card-bar-label-main{display:flex;align-items:baseline;gap:0.375rem}.s-cart-summary-card-bar-label-text{white-space:nowrap;font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-cart-summary-card-bar-count{white-space:nowrap;font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.s-cart-summary-card-bar-label-sub{font-size:11px;--tw-text-opacity:1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.s-cart-summary-card-bar-totals{display:flex;flex-direction:column;align-items:flex-end;gap:0.375rem}.s-cart-summary-card-bar-totals-row{display:flex;align-items:center;gap:0.375rem}.s-cart-summary-card-bar-total{font-size:1rem;line-height:1.5rem;font-weight:700;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-cart-summary-card-bar-original{font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-cart-summary-card-bar-savings-badge{display:inline-flex;width:max-content;align-items:center;gap:0.25rem;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(239 251 246 / var(--tw-bg-opacity, 1));padding-left:0.5rem;padding-right:0.5rem;padding-top:0.125rem;padding-bottom:0.125rem;font-size:11px;font-weight:600;--tw-text-opacity:1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.s-cart-summary-card-chevron{display:inline-flex;height:1.5rem;width:1.5rem;cursor:pointer;align-items:center;justify-content:center;border-width:0px;background-color:transparent;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}.s-cart-summary-card-chevron-icon{display:inline-flex;transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-cart-summary-card{display:block;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}@media (max-width: 1023px){.s-cart-summary-card{position:fixed;inset-inline:0;bottom:0;z-index:1;border-radius:24px 24px 0 0;box-shadow:0 -12px 24px -12px rgba(0, 0, 0, 0.12);transition:box-shadow 0.3s ease;padding-bottom:calc(env(safe-area-inset-bottom) + 0.5rem)}}@media (min-width: 1024px){.s-cart-summary-card{position:relative;border-radius:0.5rem;box-shadow:0 2px 6px rgba(0, 0, 0, 0.05);padding:1.25rem 1.5rem;margin-bottom:1.25rem}}@media (max-width: 1023px){.s-cart-summary-card--open{border-radius:0;box-shadow:none}}.s-cart-summary-card-sheet-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s ease}@media (max-width: 1023px){.s-cart-summary-card-sheet-wrap{position:absolute;inset-inline:0;bottom:calc(100% - 1px);background:#fff;border-radius:24px 24px 0 0;overflow:hidden;box-shadow:0 -12px 24px -12px rgba(0, 0, 0, 0)}}@media (min-width: 1024px){.s-cart-summary-card-sheet-wrap{grid-template-rows:1fr}}@media (max-width: 1023px){.s-cart-summary-card-sheet-wrap--open{grid-template-rows:1fr;box-shadow:0 -12px 24px -12px rgba(0, 0, 0, 0.12)}}.s-cart-summary-card-sheet{min-height:0;overflow:hidden}@media (max-width: 1023px){.s-cart-summary-card-sheet-wrap--open .s-cart-summary-card-sheet{overflow-y:auto;max-height:70vh;-webkit-overflow-scrolling:touch;padding:0.75rem 1rem 0}}.s-cart-summary-card-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:0.5rem}@media (max-width: 1023px){.s-cart-summary-card-sheet-header{padding-bottom:0.5rem}}.s-cart-summary-card-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:0.75rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}@media (min-width: 1024px){.s-cart-summary-card-bar{margin-top:1rem}}@media (max-width: 1023px){.s-cart-summary-card-bar{padding:0.875rem 1rem 0.5rem;border-radius:24px 24px 0 0}.s-cart-summary-card--open .s-cart-summary-card-bar{padding-top:0;border-radius:0}}@media (min-width: 1024px){.s-cart-summary-card-action{padding-top:1rem}}@media (max-width: 1023px){.s-cart-summary-card-action{padding:0 1rem 0.75rem}}.s-cart-summary-card--open .s-cart-summary-card-chevron-icon{transform:rotate(180deg)}.s-cart-summary-card-action *:focus{outline:none}";
|
|
7
8
|
|
|
8
9
|
const SKELETON_ROWS = [
|
|
9
10
|
{ label: '100px', value: '56px' },
|
|
@@ -21,6 +22,8 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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 @@ const SallaCartSummaryCard = class {
|
|
|
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
|
get host() { return getElement(this); }
|
|
395
510
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-g-_4am8C.js';
|
|
5
5
|
|
|
6
6
|
var StarFilledIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
7
|
<g clip-path="url(#clip0_5667_2008)">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-g-_4am8C.js';
|
|
5
5
|
|
|
6
6
|
const sallaCommentsCss = "/*!twlt*/:host{display:block}salla-comment-item .s-comments-flex-1{min-width:0}.s-comments-item-review-factors-toggle{display:inline-flex;align-items:center;gap:0.35rem;padding:0;border:0;background:transparent;color:#0f6a7c;font-size:0.9rem;font-weight:500;cursor:pointer}.s-comments-item-review-factors-chevron{line-height:1;transform:rotate(180deg);transition:transform 0.2s ease}.s-comments-item-review-factors-chevron.is-open{transform:rotate(0deg)}.s-comments-item-review-factors{border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);border-radius:0.6rem;width:min(100%, 26rem);max-width:100%;margin:0 0 1rem;padding:0.85rem 1rem}@media (max-width: 767px){.s-comments-item-review-factors{width:100%;padding:0.75rem}}.s-comments-item-review-factor-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;direction:ltr;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-row{flex-direction:row;align-items:stretch;gap:0.35rem}}.s-comments-item-review-factor-row+.s-comments-item-review-factor-row{margin-top:0.5rem}.s-comments-item-review-factor-label,.s-comments-item-review-factor-name{color:#4b5563;font-size:0.9rem;line-height:1.45}.s-comments-item-review-factor-name{min-width:6.5rem;text-align:end;flex-shrink:0}@media (max-width: 767px){.s-comments-item-review-factor-name{min-width:5rem;text-align:end}}.s-comments-item-review-factor-label{display:inline-block;min-width:4.75rem}@media (max-width: 767px){.s-comments-item-review-factor-label{min-width:0;flex:1 1 auto}}.s-comments-item-review-factor-value{display:inline-flex;align-items:center;gap:0.35rem;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-value{width:100%;justify-content:space-between;gap:0.25rem}}.s-rating-stars-wrapper{gap:0 !important}.visible{visibility:visible}.relative{position:relative}.mb-4{margin-bottom:1rem}.mt-2{margin-top:0.5rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.hidden{display:none}.w-auto{width:auto}.flex-row{flex-direction:row}.gap-4{gap:1rem}.text-left{text-align:left}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:'';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;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))}.s-comments-item-like-btn{margin-top:0.5rem}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-comments-item-like-btn span svg{height:0.75rem;width:0.75rem}.has-error .s-form-control,.has-error .s-tel-input-control,.has-error .s-datetime-picker-input{border-color:#ff443a;color:#ff443a}.s-ltr{direction:ltr}.s-form-control{display:block;width:100%;border-radius:var(--s-radius, 0.25rem);border-width:1px;--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-form-control:focus{border-color:var(--color-primary);--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.s-comments-page-container{margin-right:auto;margin-left:auto;width:100%;padding-left:0px;padding-right:0px}.s-comments-container{margin-right:auto;margin-left:auto;width:100%;padding-right:0.5rem;padding-left:0.5rem}.s-comments-title{margin-bottom:0.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:700}@media (min-width: 640px){.s-comments-title{margin-bottom:1.25rem}}.s-comments-count-label{font-size:1.125rem;line-height:1.75rem;font-weight:700;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.s-comments-count-label:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-comments-testimonials .s-comments-count-label{margin-bottom:2rem}.s-comments-item-wrapper{font-size:0.875rem;line-height:1.25rem}.s-comments-item-inner{display:flex}.s-comments-item-inner>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.75rem * var(--tw-space-x-reverse));margin-left:calc(0.75rem * calc(1 - var(--tw-space-x-reverse)))}.s-comments-item-inner:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-comments-item{margin-bottom:2rem;display:block;border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding-bottom:2rem}.s-comments-item:last-child{border-width:0px;padding-bottom:0px}.s-comments-item-admin-wrapper{margin-top:2rem;display:flex}.s-comments-item-admin-wrapper:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:2rem}@media (min-width: 768px){.s-comments-item-admin-wrapper:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-left:4rem}}.s-comments-item-admin-wrapper:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:2rem}@media (min-width: 768px){.s-comments-item-admin-wrapper:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-right:4rem}}.s-comments-item-avatar{flex:none}.s-comments-item-avatar-img{height:2.5rem;width:2.5rem;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));object-fit:cover}.s-comments-item-timestamp{display:flex;align-items:center;gap:0.375rem;font-size:0.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-comments-item-timestamp:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-comments-item-time{display:block;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1));opacity:0;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-comments-item-time:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-comments-item-timestamp:hover span{opacity:1}.s-comments-item-pending-text{margin-top:0.5rem;display:inline-block;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1));padding-left:0.625rem;padding-right:0.625rem;padding-top:0.125rem;padding-bottom:0.125rem}.s-comments-item-has-order-check-icon{display:flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1));font-size:0.75rem;line-height:1rem}.s-comments-item-pinned-icon{display:flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1));font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-comments-item-reply-icon svg{height:1rem;width:1rem;fill:#9ca3af}.s-comments-item-has-order-check-icon svg{height:0.75rem;width:0.75rem}.s-comments-item-pinned-icon i{font-size:0.75rem;line-height:1rem}.s-comments-item-has-order-check-text{margin-top:0.125rem;display:inline-block;--tw-translate-y:-2px;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));font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-comments-item-has-order-check-text:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-comments-item-has-order-check-text:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}.s-comments-item-user-info-name{display:inline-block;--tw-translate-y:-2px;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));font-size:1rem;line-height:1.5rem;font-weight:700}.s-comments-item-user-info-name:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-comments-item-user-info-name:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-comments-item-user-info-name-with-margin{display:inline-block;--tw-translate-y:-2px;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));font-size:1rem;line-height:1.5rem;font-weight:700}.s-comments-item-user-info-name-with-margin:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:2.5rem}.s-comments-item-user-info-name-with-margin:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:2.5rem}.s-comments-item-pinned-icon-with-margin{display:flex;height:1.25rem;width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1));font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-comments-item-pinned-icon-with-margin:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:2.5rem;margin-left:0.5rem}.s-comments-item-pinned-icon-with-margin:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:2.5rem;margin-right:0.5rem}.s-comments-item-stars{margin-bottom:0.625rem;width:100%}.s-comments-item-stars>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.25rem * var(--tw-space-x-reverse));margin-left:calc(0.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-comments-item-stars{font-size:0.75rem;line-height:1rem}.s-comments-item-stars:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-comments-item-rated-widget{margin-top:0.125rem;font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.s-comments-item-rated-widget:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-comments-item-rated-widget:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}.s-comments-flex-1{flex:1 1 0%}.s-comments-flex{display:flex}.s-comments-item-user-info{margin-bottom:0.25rem;display:flex;align-items:center}.s-comments-item-user-wrapper{margin-bottom:0.5rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}@media (min-width: 768px){.s-comments-item-user-wrapper{margin-bottom:0px}}.s-comments-item-content{max-width:none;--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.s-comments-item-content:is(.dark *){--tw-text-opacity:1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.s-comments-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-comments-placeholder p{padding-top:0.5rem;text-align:center;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-comments-placeholder span{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-comments-placeholder span svg{margin-left:auto;margin-right:auto;height:4rem;width:4rem;fill:#d1d5db;text-align:center}.s-comments-item-like-btn{margin-top:0.5rem}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-comments-item-like-btn span svg{height:0.75rem;width:0.75rem}.s-comments-item-images{margin-top:0.5rem;display:flex;align-items:center;gap:0.75rem}.s-comments-item-images img{height:5rem;width:5rem;cursor:pointer;border-radius:0.375rem;object-fit:cover}@media (min-width: 640px){.s-comments-item-images img{height:120px;width:120px}}.s-comments-item-images-slider{margin-top:1.25rem}.s-comments-item-images-slider .s-modal-close{background-color:transparent}.s-comments-item-images-slider-thumb{height:auto;width:100%;max-width:250px}@media (min-width: 640px){.s-comments-item-images-slider-thumb{width:50%;max-width:320px}}@media (min-width: 768px){.s-comments-item-images-slider-thumb{width:33.333333%}}@media (min-width: 1024px){.s-comments-item-images-slider-thumb{width:25%}}.s-comments-item-images-slider-thumb img{height:100%;width:100%;object-fit:cover}.s-comments-header{margin-top:1.5rem;margin-bottom:1.5rem;display:flex;align-items:center;justify-content:space-between}.s-comments-header:not(.has-total){justify-content:flex-end !important}.s-comments-sort-input{width:10rem}.s-comments-filter-wrapper{display:flex;align-items:center}.s-comments-filter-label{display:none;white-space:nowrap}@media (min-width: 640px){.s-comments-filter-label{display:block}}.s-comments-filter-label:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.75rem}.s-comments-filter-label:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.75rem}.s-comments-container salla-reviews-summary{margin-top:1.5rem}.s-comments-item-content-container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}.rtl\\:text-right:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}";
|
|
7
7
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement, i as require_root, j as requireIsObject, k as requireIsSymbol, d as getDefaultExportFromCjs } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement, i as require_root, j as requireIsObject, k as requireIsSymbol, d as getDefaultExportFromCjs } from './index-g-_4am8C.js';
|
|
5
5
|
import { S as SuccessIcon } from './check-BpzvJ73s.js';
|
|
6
6
|
import { s as setTranslationDefault, a as addMissingTranslations } from './translate-CxrJQ3Jf.js';
|
|
7
|
-
import { H as Helper } from './Helper-
|
|
7
|
+
import { H as Helper } from './Helper-CFEqaSN-.js';
|
|
8
8
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
9
9
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
10
10
|
import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
|