@salla.sa/twilight-components 2.14.590 → 2.14.592
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-Dt4Nihdd.js → filepond-YeXzkn77.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DwwSoJTP.js → filepond-plugin-file-poster-BEU99tEc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DsVYh3H7.js → filepond-plugin-file-validate-size-BSsf6VIk.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D5SqBZyw.js → filepond-plugin-file-validate-type-BkxQQF1Y.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CTTRxQHm.js → filepond-plugin-image-edit-h9C4LxoR.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CN52oBp4.js → filepond-plugin-image-exif-orientation-nDfSwZEM.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DgSWBJVB.js → filepond-plugin-image-preview-C-FDU_4k.js} +1 -1
- package/dist/cjs/{helpers-DBynEhOO.js → helpers-DSseNQ1K.js} +1 -1
- package/dist/cjs/{index-CgZ8Pldm.js → index-DI5yx1uj.js} +11 -15
- package/dist/cjs/{intlTelInput-DBBilzGk.js → intlTelInput-AgidDx18.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 +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +37 -4
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-applied-filters.cjs.entry.js +1 -1
- 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 +45 -34
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- 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 +3 -3
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +2664 -106
- 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 +2 -2
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/{salla-gift-card-redeem.cjs.entry.js → salla-gift-card-redeem_2.cjs.entry.js} +36 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner_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-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DMOjok7F.js → vanilla-picker-DLfPr_3c.js} +1 -1
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +4 -1
- package/dist/collection/components/salla-bullet-delivery/helpers.js +1 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +39 -28
- package/dist/collection/components/salla-conditional-offer/cart-update-window.js +34 -0
- package/dist/collection/components/salla-conditional-offer/interfaces.js +1 -0
- package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.css +456 -191
- package/dist/collection/components/salla-conditional-offer/salla-conditional-offer.js +1790 -106
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +17 -4
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +1 -1
- package/dist/collection/components/salla-search-product-card/salla-search-product-card.js +2 -2
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/collection/shared/cart-free-gifts.js +448 -0
- package/dist/collection/shared/offer-stages.js +453 -0
- package/dist/components/helpers.js +2 -2
- package/dist/components/index.js +3 -3
- package/dist/components/salla-add-product-button2.js +4 -1
- package/dist/components/salla-bullet-delivery.js +40 -29
- package/dist/components/salla-conditional-offer.js +2672 -116
- package/dist/components/salla-delivery-promise.js +1 -1
- package/dist/components/salla-quick-buy2.js +34 -4
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-review-factors-tags2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-search-product-card2.js +2 -2
- package/dist/components/salla-search.js +1 -1
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/docs.json +21 -8
- package/dist/esm/{filepond-wzh5HaPr.js → filepond-C3uLKJlo.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DInGlcq6.js → filepond-plugin-file-poster-BNO8nuwN.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BaLOl1L7.js → filepond-plugin-file-validate-size-CMMYF-rL.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D_DVE5xS.js → filepond-plugin-file-validate-type-DSYhKJ7B.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-B9vWgHyi.js → filepond-plugin-image-edit-lJgRMQAo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-lJrZF6xG.js → filepond-plugin-image-exif-orientation-B0tYK1GE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-Bbk7m1Yt.js → filepond-plugin-image-preview-kWmnxhXu.js} +1 -1
- package/dist/esm/{helpers-BJxBnTgv.js → helpers-DgRxTSyJ.js} +2 -2
- package/dist/esm/{index-klFskvc_.js → index-Bk24FlDL.js} +11 -15
- package/dist/esm/{intlTelInput-pS6pc-iA.js → intlTelInput-nODQyuq0.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 +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +37 -4
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-applied-filters.entry.js +1 -1
- 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 +45 -34
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- 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 +3 -3
- package/dist/esm/salla-conditional-offer.entry.js +2664 -106
- 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 +2 -2
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/{salla-gift-card-redeem.entry.js → salla-gift-card-redeem_2.entry.js} +36 -2
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner_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-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item_2.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-options-modal.entry.js +1 -1
- package/dist/esm/salla-order-shipments.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/salla-wishlist-summary.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BhmFKXIB.js → vanilla-picker-B1bTUgHP.js} +1 -1
- package/dist/twilight/{p-482fee31.entry.js → p-02202feb.entry.js} +1 -1
- package/dist/twilight/{p-f6bae25a.entry.js → p-03dffb99.entry.js} +1 -1
- package/dist/twilight/{p-efeae895.entry.js → p-06643011.entry.js} +1 -1
- package/dist/twilight/p-07174244.entry.js +4 -0
- package/dist/twilight/{p-55f765dc.entry.js → p-08256e67.entry.js} +1 -1
- package/dist/twilight/{p-a0869ee6.entry.js → p-0dc90c55.entry.js} +1 -1
- package/dist/twilight/{p-dd775629.entry.js → p-0e122915.entry.js} +1 -1
- package/dist/twilight/{p-089f0d34.entry.js → p-1b1bebf6.entry.js} +1 -1
- package/dist/twilight/{p-6536466c.entry.js → p-1d05ff72.entry.js} +1 -1
- package/dist/twilight/{p-c33ed919.entry.js → p-21802082.entry.js} +1 -1
- package/dist/twilight/{p-317048c4.entry.js → p-2191d792.entry.js} +1 -1
- package/dist/twilight/{p-32ea6fff.entry.js → p-21b3877b.entry.js} +1 -1
- package/dist/twilight/{p-9897606c.entry.js → p-22135b7c.entry.js} +1 -1
- package/dist/twilight/{p-7836ad45.entry.js → p-250262a9.entry.js} +1 -1
- package/dist/twilight/{p-23ccf145.entry.js → p-2fc68bfd.entry.js} +1 -1
- package/dist/twilight/{p-027b5233.entry.js → p-320d6b04.entry.js} +1 -1
- package/dist/twilight/{p-8fbf8044.entry.js → p-377642ea.entry.js} +1 -1
- package/dist/twilight/{p-0b10b315.entry.js → p-38418821.entry.js} +1 -1
- package/dist/twilight/{p-21f2167e.entry.js → p-3bf37615.entry.js} +1 -1
- package/dist/twilight/{p-39325cfc.entry.js → p-3e6f2bf8.entry.js} +1 -1
- package/dist/twilight/{p-864959d8.entry.js → p-42150f97.entry.js} +1 -1
- package/dist/twilight/{p-a64f2fff.entry.js → p-42e02411.entry.js} +1 -1
- package/dist/twilight/{p-3acbfe00.entry.js → p-43c5ec34.entry.js} +1 -1
- package/dist/twilight/{p-7495249f.entry.js → p-43ca88d0.entry.js} +1 -1
- package/dist/twilight/{p-009048d0.entry.js → p-45035389.entry.js} +1 -1
- package/dist/twilight/{p-48f26c20.entry.js → p-46721e68.entry.js} +1 -1
- package/dist/twilight/{p-0446f8e3.entry.js → p-4f76e9e2.entry.js} +1 -1
- package/dist/twilight/p-4fd73440.entry.js +4 -0
- package/dist/twilight/{p-6ea4f06c.entry.js → p-523f9816.entry.js} +1 -1
- package/dist/twilight/{p-a4b9f482.entry.js → p-540029a5.entry.js} +1 -1
- package/dist/twilight/{p-c273ff37.entry.js → p-5435dbcd.entry.js} +1 -1
- package/dist/twilight/{p-23e45bd7.entry.js → p-5f6a5a4b.entry.js} +1 -1
- package/dist/twilight/{p-bd1dbd4b.entry.js → p-5fc75260.entry.js} +1 -1
- package/dist/twilight/{p-d266e9ad.entry.js → p-612b6d87.entry.js} +1 -1
- package/dist/twilight/{p-6fcf17d4.entry.js → p-658de43b.entry.js} +1 -1
- package/dist/twilight/{p-31b7fbdc.entry.js → p-6673a16f.entry.js} +1 -1
- package/dist/twilight/{p-5b65fffc.entry.js → p-6760ec19.entry.js} +1 -1
- package/dist/twilight/{p-a97a0636.entry.js → p-68411931.entry.js} +1 -1
- package/dist/twilight/{p-85f185cc.entry.js → p-6a76acd8.entry.js} +1 -1
- package/dist/twilight/{p-0f951af1.entry.js → p-7038e1af.entry.js} +1 -1
- package/dist/twilight/{p-d35c3f7d.entry.js → p-75f32b91.entry.js} +1 -1
- package/dist/twilight/{p-e28f4afc.entry.js → p-7750be26.entry.js} +1 -1
- package/dist/twilight/{p-d524d26e.entry.js → p-79676f24.entry.js} +1 -1
- package/dist/twilight/{p-36f4e851.entry.js → p-7b4a8237.entry.js} +1 -1
- package/dist/twilight/p-7ff0c546.entry.js +4 -0
- package/dist/twilight/{p-294f6c8e.entry.js → p-813a40cc.entry.js} +1 -1
- package/dist/twilight/{p-a0f0a176.entry.js → p-83ccddd5.entry.js} +1 -1
- package/dist/twilight/{p-ddb65e87.entry.js → p-872d6d68.entry.js} +1 -1
- package/dist/twilight/{p-1988457b.entry.js → p-9048520b.entry.js} +1 -1
- package/dist/twilight/{p-799a0589.entry.js → p-91a1baf1.entry.js} +1 -1
- package/dist/twilight/{p-d566b402.entry.js → p-9e6f4ec4.entry.js} +1 -1
- package/dist/twilight/{p-PcxCrM8A.js → p-B-LS1xDz.js} +1 -1
- package/dist/twilight/p-Bk24FlDL.js +5 -0
- package/dist/twilight/{p-Ba21M-o3.js → p-BnmP7F4y.js} +1 -1
- package/dist/twilight/{p-4asjbsmx.js → p-BvUmZYa9.js} +1 -1
- package/dist/twilight/{p-rKbQj-u0.js → p-CHqh7vb6.js} +1 -1
- package/dist/twilight/{p-HZVqfCuE.js → p-CXo-IH2o.js} +1 -1
- package/dist/twilight/{p-7foc7ca2.js → p-CcGfWKIx.js} +1 -1
- package/dist/twilight/{p-BHXx247M.js → p-Ct18qgaq.js} +1 -1
- package/dist/twilight/{p-ClbVN5Nv.js → p-DBjpz_eG.js} +1 -1
- package/dist/twilight/{p-BJxBnTgv.js → p-DgRxTSyJ.js} +1 -1
- package/dist/twilight/{p-BcMiEHs_.js → p-DvlAEiaH.js} +1 -1
- package/dist/twilight/{p-78ff082d.entry.js → p-a057f532.entry.js} +1 -1
- package/dist/twilight/{p-a1d43865.entry.js → p-a0f1b867.entry.js} +1 -1
- package/dist/twilight/{p-6e45ec66.entry.js → p-a75680ae.entry.js} +1 -1
- package/dist/twilight/{p-6ea8b4a8.entry.js → p-ad52dcf7.entry.js} +1 -1
- package/dist/twilight/{p-cb47fc80.entry.js → p-b009d316.entry.js} +1 -1
- package/dist/twilight/{p-45a13d19.entry.js → p-b1b096d7.entry.js} +1 -1
- package/dist/twilight/{p-f407afee.entry.js → p-b1b345d6.entry.js} +1 -1
- package/dist/twilight/{p-0de54240.entry.js → p-b2c41e36.entry.js} +1 -1
- package/dist/twilight/{p-0746fded.entry.js → p-b37ae926.entry.js} +1 -1
- package/dist/twilight/{p-52d1d467.entry.js → p-b5e774db.entry.js} +1 -1
- package/dist/twilight/{p-7ddae4df.entry.js → p-b6dc3e12.entry.js} +1 -1
- package/dist/twilight/{p-9950bd4f.entry.js → p-b95a6e20.entry.js} +1 -1
- package/dist/twilight/{p-655c7f90.entry.js → p-bb152b39.entry.js} +1 -1
- package/dist/twilight/{p-d21e8092.entry.js → p-be729ca2.entry.js} +1 -1
- package/dist/twilight/{p-788ffe88.entry.js → p-becb6580.entry.js} +1 -1
- package/dist/twilight/{p-3ba09a8e.entry.js → p-c1d18b73.entry.js} +1 -1
- package/dist/twilight/{p-2667efd6.entry.js → p-c1d815c9.entry.js} +1 -1
- package/dist/twilight/{p-a0f2b1b7.entry.js → p-c313bd11.entry.js} +1 -1
- package/dist/twilight/{p-3de1d01b.entry.js → p-c3a2696b.entry.js} +1 -1
- package/dist/twilight/{p-c62b3757.entry.js → p-c9ebe466.entry.js} +1 -1
- package/dist/twilight/{p-0fca7ee0.entry.js → p-cc74d38b.entry.js} +1 -1
- package/dist/twilight/{p-34b91d42.entry.js → p-cd432c49.entry.js} +1 -1
- package/dist/twilight/{p-94eddc5c.entry.js → p-ce6c709b.entry.js} +1 -1
- package/dist/twilight/{p-b98b2cda.entry.js → p-ced74b88.entry.js} +1 -1
- package/dist/twilight/{p-8c7614fb.entry.js → p-d601977e.entry.js} +1 -1
- package/dist/twilight/{p-1d8c6adc.entry.js → p-d73307c7.entry.js} +1 -1
- package/dist/twilight/{p-8bc3a449.entry.js → p-d9ccdd8f.entry.js} +1 -1
- package/dist/twilight/{p-945eec73.entry.js → p-dc51993c.entry.js} +1 -1
- package/dist/twilight/{p-56ce31f2.entry.js → p-dfd212d5.entry.js} +1 -1
- package/dist/twilight/{p-62b8c2cc.entry.js → p-e2aa0e72.entry.js} +1 -1
- package/dist/twilight/{p-1a1f04ac.entry.js → p-e58b7ef9.entry.js} +1 -1
- package/dist/twilight/p-e7127704.entry.js +4 -0
- package/dist/twilight/{p-da05ae96.entry.js → p-e7ca6d06.entry.js} +1 -1
- package/dist/twilight/{p-6b767b19.entry.js → p-eaae379c.entry.js} +1 -1
- package/dist/twilight/{p-0156dfe8.entry.js → p-ed6ea140.entry.js} +1 -1
- package/dist/twilight/{p-53f8972b.entry.js → p-f263bba9.entry.js} +1 -1
- package/dist/twilight/p-f3ffe84f.entry.js +4 -0
- package/dist/twilight/{p-f757ba41.entry.js → p-f4f7ed38.entry.js} +1 -1
- package/dist/twilight/{p-0ccf7bde.entry.js → p-f5c9e513.entry.js} +1 -1
- package/dist/twilight/{p-ce0a4802.entry.js → p-f74ccae4.entry.js} +1 -1
- package/dist/twilight/{p-45cc68ce.entry.js → p-f7ee4910.entry.js} +1 -1
- package/dist/twilight/{p-09300a8d.entry.js → p-f8f9c563.entry.js} +1 -1
- package/dist/twilight/{p-74ba0473.entry.js → p-f9f0a5ee.entry.js} +1 -1
- package/dist/twilight/{p-a7a64c45.entry.js → p-fbee9e50.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +12 -0
- package/dist/types/components/salla-conditional-offer/cart-update-window.d.ts +31 -0
- package/dist/types/components/salla-conditional-offer/interfaces.d.ts +70 -13
- package/dist/types/components/salla-conditional-offer/salla-conditional-offer.d.ts +656 -10
- package/dist/types/components/salla-search/search-response.d.ts +1 -0
- package/dist/types/shared/cart-free-gifts.d.ts +141 -0
- package/dist/types/shared/offer-stages.d.ts +288 -0
- package/package.json +5 -5
- package/dist/cjs/salla-tooltip.cjs.entry.js +0 -42
- package/dist/esm/salla-tooltip.entry.js +0 -40
- package/dist/twilight/p-0e206ed7.entry.js +0 -4
- package/dist/twilight/p-1a875a94.entry.js +0 -4
- package/dist/twilight/p-8f5929a9.entry.js +0 -4
- package/dist/twilight/p-917ce4f9.entry.js +0 -4
- package/dist/twilight/p-d4f3905f.entry.js +0 -4
- package/dist/twilight/p-e47f5ec9.entry.js +0 -4
- package/dist/twilight/p-klFskvc_.js +0 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { P as PendingOrdersIcon } from './cart.js';
|
|
6
6
|
import { H as Helper } from './Helper.js';
|
|
7
|
-
import { i as injectFreeProductsIntoPayload, d as defineCustomElement$3, c as canCompleteApplePay } from './salla-quick-buy2.js';
|
|
7
|
+
import { i as injectFreeProductsIntoPayload, d as defineCustomElement$3, c as canCompleteApplePay, a as isApplePayHostedRedirect } from './salla-quick-buy2.js';
|
|
8
8
|
import { d as defineCustomElement$h } from './salla-attachment-view2.js';
|
|
9
9
|
import { d as defineCustomElement$g } from './salla-booking-field2.js';
|
|
10
10
|
import { d as defineCustomElement$f } from './salla-button2.js';
|
|
@@ -432,8 +432,11 @@ const SallaAddProductButton = /*@__PURE__*/ proxyCustomElement(class SallaAddPro
|
|
|
432
432
|
&& this.productType !== 'booking';
|
|
433
433
|
// Cross-browser Apple Pay: native (Safari) OR the Payment Request API
|
|
434
434
|
// (non-Safari browsers / non-Apple devices via the QR-code fallback).
|
|
435
|
+
// Hosted (MyFatoorah, S2S off) Apple Pay has no native sheet and no buy-now redirect
|
|
436
|
+
// path, so the quick-buy button below must not render for it either.
|
|
435
437
|
this.isApplePayActive = salla.config.get('store.settings.payments')?.includes('apple_pay')
|
|
436
438
|
&& salla.config.get('store.settings.is_salla_gateway', false)
|
|
439
|
+
&& !isApplePayHostedRedirect()
|
|
437
440
|
&& await canCompleteApplePay();
|
|
438
441
|
this.passedLabel = this.host.innerHTML.replace('<!---->', '').trim();
|
|
439
442
|
if (!!this.passedLabel && this.isDesktopViewport) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { i as isSaudiArabia, b as bulletDeliveryAPI, r as requireRegionAndDistrictForSA, g as getIntentLatitude, a as getIntentLongitude, h as hasSessionAddressIntent, c as getIntentCityId, d as getIntentCountryId, e as getIntentRegionId, f as getIntentDistrictId, j as
|
|
5
|
+
import { i as isSaudiArabia, b as bulletDeliveryAPI, r as requireRegionAndDistrictForSA, g as getIntentLatitude, a as getIntentLongitude, h as hasSessionAddressIntent, c as getIntentCityId, d as getIntentCountryId, e as getIntentRegionId, f as getIntentDistrictId, j as isBranchSelectable, k as filterBranches, l as getIntentBranchId, m as findNearestBranch, n as getGeolocationErrorMessage, o as clearApiCache, p as getIntentSubtitle, q as isMapOriginIntent, s as getIntentCountryCode } from './helpers.js';
|
|
6
6
|
import { S as SILocation } from './location.js';
|
|
7
7
|
import { S as Search } from './search.js';
|
|
8
8
|
import { d as defineCustomElement$7 } from './salla-button2.js';
|
|
@@ -500,10 +500,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
500
500
|
}
|
|
501
501
|
// Auto-select preselected branch if provided
|
|
502
502
|
if (this.preselectedBranchId) {
|
|
503
|
-
|
|
504
|
-
if (branch) {
|
|
505
|
-
this.selectedBranch = branch;
|
|
506
|
-
}
|
|
503
|
+
this.preselectBranch(this.preselectedBranchId);
|
|
507
504
|
}
|
|
508
505
|
}
|
|
509
506
|
// Prefill form data from session storage
|
|
@@ -954,15 +951,30 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
954
951
|
async loadBranches() {
|
|
955
952
|
this.loadingBranches = true;
|
|
956
953
|
try {
|
|
957
|
-
this.
|
|
954
|
+
this.applyLoadedBranches(await bulletDeliveryAPI.getBranches({
|
|
958
955
|
country_id: this.selectedCountry?.id,
|
|
959
|
-
});
|
|
960
|
-
this.filterBranches();
|
|
956
|
+
}));
|
|
961
957
|
}
|
|
962
958
|
finally {
|
|
963
959
|
this.loadingBranches = false;
|
|
964
960
|
}
|
|
965
961
|
}
|
|
962
|
+
/**
|
|
963
|
+
* Store a freshly fetched branch list and reconcile the current selection with it.
|
|
964
|
+
* `selectedBranch` is a snapshot from selection time: when the refreshed list carries the
|
|
965
|
+
* same branch, swap in the fresh copy, and drop it if it is no longer selectable (INV-1407).
|
|
966
|
+
* A selection missing from the list (e.g. filtered out by a search) is left untouched.
|
|
967
|
+
*/
|
|
968
|
+
applyLoadedBranches(branches) {
|
|
969
|
+
this.branches = branches;
|
|
970
|
+
if (this.selectedBranch) {
|
|
971
|
+
const fresh = branches.find((b) => b.id === this.selectedBranch?.id);
|
|
972
|
+
if (fresh) {
|
|
973
|
+
this.selectedBranch = isBranchSelectable(fresh) ? fresh : null;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
this.filterBranches();
|
|
977
|
+
}
|
|
966
978
|
filterBranches() {
|
|
967
979
|
this.filteredBranches = filterBranches(this.branches, this.branchSearchQuery);
|
|
968
980
|
}
|
|
@@ -989,13 +1001,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
989
1001
|
if (country) {
|
|
990
1002
|
this.selectedCountry = country;
|
|
991
1003
|
this.updateNewAddressForm({ country_id: Number(country.id) });
|
|
992
|
-
|
|
993
|
-
if (branchId != null && this.branches.length > 0) {
|
|
994
|
-
const branch = this.branches.find((b) => b.id === branchId);
|
|
995
|
-
if (branch) {
|
|
996
|
-
this.selectedBranch = branch;
|
|
997
|
-
}
|
|
998
|
-
}
|
|
1004
|
+
this.preselectBranch(getIntentBranchId(intent));
|
|
999
1005
|
}
|
|
1000
1006
|
}
|
|
1001
1007
|
}
|
|
@@ -1159,11 +1165,10 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1159
1165
|
return;
|
|
1160
1166
|
this.loadingBranches = true;
|
|
1161
1167
|
try {
|
|
1162
|
-
this.
|
|
1168
|
+
this.applyLoadedBranches(await bulletDeliveryAPI.getBranches({
|
|
1163
1169
|
country_id: this.selectedCountry?.id,
|
|
1164
1170
|
query,
|
|
1165
|
-
});
|
|
1166
|
-
this.filterBranches();
|
|
1171
|
+
}));
|
|
1167
1172
|
}
|
|
1168
1173
|
finally {
|
|
1169
1174
|
this.loadingBranches = false;
|
|
@@ -1196,12 +1201,11 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1196
1201
|
async loadBranchesWithLocation(lat, lng) {
|
|
1197
1202
|
this.loadingBranches = true;
|
|
1198
1203
|
try {
|
|
1199
|
-
this.
|
|
1204
|
+
this.applyLoadedBranches(await bulletDeliveryAPI.getBranches({
|
|
1200
1205
|
country_id: this.selectedCountry?.id,
|
|
1201
1206
|
lat,
|
|
1202
1207
|
lng,
|
|
1203
|
-
});
|
|
1204
|
-
this.filterBranches();
|
|
1208
|
+
}));
|
|
1205
1209
|
// Auto-select country from first branch if no country is selected
|
|
1206
1210
|
if (!this.selectedCountry && this.branches.length > 0) {
|
|
1207
1211
|
const firstBranch = this.branches[0];
|
|
@@ -1258,6 +1262,18 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1258
1262
|
this.selectedBranch = branch;
|
|
1259
1263
|
this.allocationOutOfCoverageMessage = null;
|
|
1260
1264
|
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Restore a remembered / event-provided branch — but only one the list renders as selectable,
|
|
1267
|
+
* so a branch that has closed since it was remembered is never silently preselected (INV-1407).
|
|
1268
|
+
*/
|
|
1269
|
+
preselectBranch(branchId) {
|
|
1270
|
+
if (branchId == null)
|
|
1271
|
+
return;
|
|
1272
|
+
const branch = this.branches.find((b) => b.id === branchId);
|
|
1273
|
+
if (branch && isBranchSelectable(branch)) {
|
|
1274
|
+
this.selectedBranch = branch;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1261
1277
|
handleSavedAddressSelect(address) {
|
|
1262
1278
|
if (address.is_in_coverage === false) {
|
|
1263
1279
|
// Show toast notification for out of coverage address
|
|
@@ -1497,13 +1513,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1497
1513
|
await this.loadBranches();
|
|
1498
1514
|
}
|
|
1499
1515
|
// Preselect branch from session storage if available
|
|
1500
|
-
|
|
1501
|
-
if (branchId != null && this.branches.length > 0) {
|
|
1502
|
-
const branch = this.branches.find((b) => b.id === branchId);
|
|
1503
|
-
if (branch) {
|
|
1504
|
-
this.selectedBranch = branch;
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1516
|
+
this.preselectBranch(getIntentBranchId(savedIntent));
|
|
1507
1517
|
}
|
|
1508
1518
|
else if (tab === "address") {
|
|
1509
1519
|
// Lazy-load saved addresses when switching to address tab (if not loaded yet).
|
|
@@ -1532,7 +1542,8 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1532
1542
|
}
|
|
1533
1543
|
isConfirmDisabled() {
|
|
1534
1544
|
if (this.activeTab === "branch") {
|
|
1535
|
-
|
|
1545
|
+
// Backstop for any selection path: the allocation API rejects non-selectable branches (INV-1407).
|
|
1546
|
+
return !isBranchSelectable(this.selectedBranch);
|
|
1536
1547
|
}
|
|
1537
1548
|
if (this.activeTab === "address") {
|
|
1538
1549
|
if (this.isLoggedIn && this.selectedSessionAddress) {
|