@salla.sa/twilight-components 3.0.19 → 3.0.20
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-DqKJCL8G.js → Helper-C3MBaLHQ.js} +1 -1
- package/dist/cjs/delivery-promise-intent-5WTKLkFZ.js +71 -0
- package/dist/cjs/{filepond-Byu0lc8z.js → filepond-DGt10gCq.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-qwx7lYZ-.js → filepond-plugin-file-poster-NSV7ClY6.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-C-n0P4TT.js → filepond-plugin-file-validate-size-C08-fDj7.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C8VOOXdT.js → filepond-plugin-file-validate-type-CbbTh4qd.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-B9KG763Y.js → filepond-plugin-image-edit-CqqtsmjD.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Czt4pYzU.js → filepond-plugin-image-exif-orientation-D60HJIiL.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BFm1Zl0o.js → filepond-plugin-image-preview-B7bWOXFm.js} +1 -1
- package/dist/cjs/{helpers-NV7wgP50.js → helpers-wRMwEkLy.js} +25 -0
- package/dist/cjs/{index-CFW798jX.js → index-U-OadFju.js} +14 -10
- package/dist/cjs/{intlTelInput-CLa2B89b.js → intlTelInput-Cp6WJvPO.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 +120 -6
- 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 +2 -2
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-attachment-view_9.cjs.entry.js +13 -13
- 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 +12 -17
- 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 +4 -4
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.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 +5 -65
- 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 +2 -2
- 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 +188 -0
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-items.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-options-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-payment.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-rewards.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +2 -2
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- 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 +33 -7
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- 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-thank-you-header.cjs.entry.js +2 -2
- package/dist/cjs/salla-thank-you-page.cjs.entry.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-Vx_7G7bs.js → vanilla-picker-C-rN_NiT.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-bullet-delivery/helpers.js +23 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +7 -12
- package/dist/collection/components/salla-mobile-update-modal/salla-mobile-update-modal.css +43 -0
- package/dist/collection/components/salla-mobile-update-modal/salla-mobile-update-modal.js +235 -0
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
- package/dist/collection/components/salla-order-items/salla-order-items.js +1 -1
- package/dist/collection/components/salla-order-payment/salla-order-payment.js +1 -1
- package/dist/collection/components/salla-order-rewards/salla-order-rewards.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +47 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +31 -5
- 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-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-thank-you-header/salla-thank-you-header.js +1 -1
- package/dist/collection/components/salla-thank-you-page/salla-thank-you-page.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-verify/salla-verify.js +48 -2
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/delivery-promise-intent.js +67 -0
- package/dist/components/helpers.js +24 -1
- package/dist/components/index.js +2 -2
- package/dist/components/mail.js +2 -2
- package/dist/components/salla-bullet-delivery.js +7 -12
- package/dist/components/salla-contacts.js +2 -2
- package/dist/components/salla-delivery-promise.js +1 -62
- package/dist/components/salla-loyalty-point2.js +2 -2
- package/dist/components/salla-mobile-update-modal.d.ts +11 -0
- package/dist/components/salla-mobile-update-modal.js +241 -0
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit-product-card.js +1 -1
- package/dist/components/salla-order-items2.js +1 -1
- package/dist/components/salla-order-payment.js +1 -1
- package/dist/components/salla-order-rewards.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +117 -3
- package/dist/components/salla-quick-order.js +2 -2
- package/dist/components/salla-rating-modal-v22.js +33 -7
- package/dist/components/salla-rating-modal2.js +2 -2
- 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-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +4 -4
- 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-thank-you-header.js +1 -1
- package/dist/components/salla-thank-you-page.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-verify.js +1 -321
- package/dist/components/salla-verify2.js +328 -0
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/docs.json +158 -2
- package/dist/esm/{Helper-I0CAizv1.js → Helper-BKruFMBN.js} +1 -1
- package/dist/esm/delivery-promise-intent-C6pZjRut.js +67 -0
- package/dist/esm/{filepond-DTUYXV0J.js → filepond-Vl6a--vT.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DydZjneT.js → filepond-plugin-file-poster-CrQqmzd5.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-nbsCU2t9.js → filepond-plugin-file-validate-size-BrHjddJa.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Cl5B_DIy.js → filepond-plugin-file-validate-type-BeMZq9Fl.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-bzskFyFR.js → filepond-plugin-image-edit-DW6JzY39.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-MBDuxLaX.js → filepond-plugin-image-exif-orientation-gzIIB75B.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-N6wzEryW.js → filepond-plugin-image-preview-BwbtnJIU.js} +1 -1
- package/dist/esm/{helpers-Cnh7Qptl.js → helpers-BVaKfTMx.js} +24 -1
- package/dist/esm/{index-C9zdeQFI.js → index-CrXKQnBu.js} +14 -10
- package/dist/esm/{intlTelInput-B5L9nYtO.js → intlTelInput-BkjSbnO6.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 +120 -6
- 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 +2 -2
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-attachment-view_9.entry.js +13 -13
- 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 +12 -17
- 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 +4 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +3 -63
- 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 +2 -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 +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 +186 -0
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item_2.entry.js +3 -3
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-items.entry.js +2 -2
- package/dist/esm/salla-order-options-modal.entry.js +1 -1
- package/dist/esm/salla-order-payment.entry.js +2 -2
- package/dist/esm/salla-order-rewards.entry.js +2 -2
- package/dist/esm/salla-order-shipments.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +2 -2
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-card.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- 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 +33 -7
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- 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-thank-you-header.entry.js +2 -2
- package/dist/esm/salla-thank-you-page.entry.js +2 -2
- 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 +3 -3
- 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 +2 -2
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CAeu4f87.js → vanilla-picker-eSagUASw.js} +1 -1
- package/dist/twilight/p-0050dd2a.entry.js +4 -0
- package/dist/twilight/{p-c92cc92f.entry.js → p-012ff05c.entry.js} +1 -1
- package/dist/twilight/{p-8948b58c.entry.js → p-02ce2139.entry.js} +1 -1
- package/dist/twilight/{p-3cc6ca6c.entry.js → p-059aa8a9.entry.js} +1 -1
- package/dist/twilight/{p-995b898f.entry.js → p-09798a10.entry.js} +1 -1
- package/dist/twilight/p-0af7555c.entry.js +4 -0
- package/dist/twilight/{p-bbb09d92.entry.js → p-11075f15.entry.js} +1 -1
- package/dist/twilight/{p-e20d5e75.entry.js → p-12b2b553.entry.js} +1 -1
- package/dist/twilight/{p-619c709c.entry.js → p-14fb124b.entry.js} +1 -1
- package/dist/twilight/{p-e921b2d1.entry.js → p-1ca3525d.entry.js} +1 -1
- package/dist/twilight/{p-30d64bd1.entry.js → p-1f54638c.entry.js} +1 -1
- package/dist/twilight/{p-2b930157.entry.js → p-201c816d.entry.js} +1 -1
- package/dist/twilight/{p-d0f903ac.entry.js → p-203b2723.entry.js} +1 -1
- package/dist/twilight/{p-c4274188.entry.js → p-224c35e6.entry.js} +1 -1
- package/dist/twilight/{p-386b3dcd.entry.js → p-22bd8281.entry.js} +1 -1
- package/dist/twilight/{p-4070f808.entry.js → p-25ac8744.entry.js} +1 -1
- package/dist/twilight/{p-ec356e5a.entry.js → p-25b964c0.entry.js} +1 -1
- package/dist/twilight/{p-7fa4d0b6.entry.js → p-2a469c80.entry.js} +1 -1
- package/dist/twilight/{p-d57b49ff.entry.js → p-2a6f93a8.entry.js} +1 -1
- package/dist/twilight/{p-2e4e15c5.entry.js → p-2b0f98fc.entry.js} +1 -1
- package/dist/twilight/{p-8712f7c7.entry.js → p-2e66576c.entry.js} +1 -1
- package/dist/twilight/{p-45e0a5d0.entry.js → p-2e8e7cf2.entry.js} +1 -1
- package/dist/twilight/{p-faf00404.entry.js → p-2f05393f.entry.js} +1 -1
- package/dist/twilight/{p-a0bfedad.entry.js → p-3054e1c1.entry.js} +1 -1
- package/dist/twilight/{p-90a59027.entry.js → p-3295390b.entry.js} +1 -1
- package/dist/twilight/{p-a3959219.entry.js → p-33678067.entry.js} +1 -1
- package/dist/twilight/{p-4d615f9f.entry.js → p-33c05de2.entry.js} +1 -1
- package/dist/twilight/{p-036fbfc0.entry.js → p-381a9e70.entry.js} +1 -1
- package/dist/twilight/{p-982e9124.entry.js → p-38270121.entry.js} +1 -1
- package/dist/twilight/{p-7db6ccfe.entry.js → p-385bf37d.entry.js} +1 -1
- package/dist/twilight/{p-8c2992e7.entry.js → p-40ee2ca3.entry.js} +1 -1
- package/dist/twilight/{p-e455709f.entry.js → p-43a3401b.entry.js} +1 -1
- package/dist/twilight/{p-32f100f8.entry.js → p-4616033a.entry.js} +1 -1
- package/dist/twilight/p-484af8cc.entry.js +4 -0
- package/dist/twilight/{p-32495dd2.entry.js → p-4b6627f5.entry.js} +1 -1
- package/dist/twilight/p-4ed8ae08.entry.js +4 -0
- package/dist/twilight/{p-8eb3fd92.entry.js → p-4fb442c2.entry.js} +1 -1
- package/dist/twilight/{p-8262e669.entry.js → p-516f9b83.entry.js} +1 -1
- package/dist/twilight/{p-99cb3dba.entry.js → p-56aebb36.entry.js} +1 -1
- package/dist/twilight/{p-1867f7d4.entry.js → p-56fbe5ff.entry.js} +1 -1
- package/dist/twilight/{p-5aee5e44.entry.js → p-58af47e4.entry.js} +1 -1
- package/dist/twilight/{p-575014c4.entry.js → p-616e6781.entry.js} +1 -1
- package/dist/twilight/{p-e223beca.entry.js → p-62077080.entry.js} +1 -1
- package/dist/twilight/p-6427664a.entry.js +4 -0
- package/dist/twilight/{p-0b0d4942.entry.js → p-65253725.entry.js} +1 -1
- package/dist/twilight/{p-d0acd7ff.entry.js → p-6a05f69c.entry.js} +1 -1
- package/dist/twilight/{p-cb54adac.entry.js → p-6afa5aa8.entry.js} +1 -1
- package/dist/twilight/{p-3b766a79.entry.js → p-6ff116eb.entry.js} +1 -1
- package/dist/twilight/{p-9e429047.entry.js → p-710b19d2.entry.js} +1 -1
- package/dist/twilight/{p-e3991836.entry.js → p-71297800.entry.js} +1 -1
- package/dist/twilight/{p-0add41ce.entry.js → p-7234a066.entry.js} +1 -1
- package/dist/twilight/{p-777d28f6.entry.js → p-73af6a02.entry.js} +1 -1
- package/dist/twilight/{p-20f9c62f.entry.js → p-7428deca.entry.js} +1 -1
- package/dist/twilight/{p-703b9253.entry.js → p-75b509cd.entry.js} +1 -1
- package/dist/twilight/{p-9a0218a6.entry.js → p-79e446b2.entry.js} +1 -1
- package/dist/twilight/{p-550ad1a6.entry.js → p-7a8c9411.entry.js} +1 -1
- package/dist/twilight/{p-427c13b6.entry.js → p-86533832.entry.js} +1 -1
- package/dist/twilight/p-8a4af12c.entry.js +4 -0
- package/dist/twilight/{p-3bb0e184.entry.js → p-8ddf6933.entry.js} +1 -1
- package/dist/twilight/{p-fa622715.entry.js → p-93fe31b9.entry.js} +1 -1
- package/dist/twilight/{p-9d1a5007.entry.js → p-9c96a9e7.entry.js} +1 -1
- package/dist/twilight/{p-RflSBQNB.js → p-BNr49RmW.js} +1 -1
- package/dist/twilight/{p-JGEddAgs.js → p-BUzdlb7Q.js} +1 -1
- package/dist/twilight/{p-Cnh7Qptl.js → p-BVaKfTMx.js} +1 -1
- package/dist/twilight/{p-CmYSalnM.js → p-BYWjrTuB.js} +1 -1
- package/dist/twilight/{p-CSGj1pY-.js → p-Bo_J3Do4.js} +1 -1
- package/dist/twilight/{p-Cfz9xit3.js → p-ChxhrML8.js} +1 -1
- package/dist/twilight/{p-C9zdeQFI.js → p-CrXKQnBu.js} +2 -2
- package/dist/twilight/{p-Bgu5gtOF.js → p-D1oKTNWQ.js} +1 -1
- package/dist/twilight/{p-Dav_R_d2.js → p-DUNRPrqt.js} +1 -1
- package/dist/twilight/{p-BcT9tEVW.js → p-DUuRpwsl.js} +1 -1
- package/dist/twilight/{p-Xgbueas7.js → p-DZR3BP63.js} +1 -1
- package/dist/twilight/{p-6f84c662.entry.js → p-a52a3664.entry.js} +1 -1
- package/dist/twilight/p-a7114995.entry.js +4 -0
- package/dist/twilight/{p-e37da59f.entry.js → p-aa7494cd.entry.js} +1 -1
- package/dist/twilight/{p-eeefc285.entry.js → p-ae5d26da.entry.js} +1 -1
- package/dist/twilight/{p-17bcbf9b.entry.js → p-b5434bcc.entry.js} +1 -1
- package/dist/twilight/p-b9fabd92.entry.js +4 -0
- package/dist/twilight/{p-01d5cd61.entry.js → p-bac38ed2.entry.js} +1 -1
- package/dist/twilight/{p-6d572fe0.entry.js → p-bbcfcdb0.entry.js} +1 -1
- package/dist/twilight/{p-a22d9931.entry.js → p-c097cfa1.entry.js} +1 -1
- package/dist/twilight/p-c13e7efb.entry.js +4 -0
- package/dist/twilight/{p-c5e2c781.entry.js → p-d0ea4c3a.entry.js} +1 -1
- package/dist/twilight/{p-74285af9.entry.js → p-d0ec7ca7.entry.js} +1 -1
- package/dist/twilight/{p-4d7fc363.entry.js → p-d31fbdea.entry.js} +1 -1
- package/dist/twilight/{p-9683535f.entry.js → p-d482d43e.entry.js} +1 -1
- package/dist/twilight/{p-0213fde4.entry.js → p-d5368882.entry.js} +1 -1
- package/dist/twilight/{p-b5e0065a.entry.js → p-d5a2a231.entry.js} +1 -1
- package/dist/twilight/{p-a55b5c44.entry.js → p-d6705759.entry.js} +1 -1
- package/dist/twilight/p-d7f2a028.entry.js +4 -0
- package/dist/twilight/{p-7db8d545.entry.js → p-d84dedaf.entry.js} +1 -1
- package/dist/twilight/{p-f6279a13.entry.js → p-d8d9ff09.entry.js} +1 -1
- package/dist/twilight/{p-3b7a45ec.entry.js → p-d902ad13.entry.js} +1 -1
- package/dist/twilight/{p-ade9a68c.entry.js → p-d941dc58.entry.js} +1 -1
- package/dist/twilight/{p-db3efb27.entry.js → p-dd046bbd.entry.js} +1 -1
- package/dist/twilight/{p-a5fc8358.entry.js → p-dd21db09.entry.js} +1 -1
- package/dist/twilight/{p-aabcd09f.entry.js → p-dd83b424.entry.js} +1 -1
- package/dist/twilight/{p-8b8cf457.entry.js → p-e04fb844.entry.js} +1 -1
- package/dist/twilight/{p-290ce0bc.entry.js → p-e60d784c.entry.js} +1 -1
- package/dist/twilight/{p-ad00021e.entry.js → p-e6cc7742.entry.js} +1 -1
- package/dist/twilight/{p-252748d9.entry.js → p-e853ac07.entry.js} +1 -1
- package/dist/twilight/{p-db73d0bf.entry.js → p-e9ecae21.entry.js} +1 -1
- package/dist/twilight/{p-f3b12754.entry.js → p-ebe3d316.entry.js} +1 -1
- package/dist/twilight/{p-ce1e45a3.entry.js → p-ec2a45fb.entry.js} +1 -1
- package/dist/twilight/{p-73dea22d.entry.js → p-ef216c0a.entry.js} +1 -1
- package/dist/twilight/{p-825c5b73.entry.js → p-f3306980.entry.js} +1 -1
- package/dist/twilight/{p-50853b76.entry.js → p-f65205d5.entry.js} +1 -1
- package/dist/twilight/{p-32d9da31.entry.js → p-f6e5cd28.entry.js} +1 -1
- package/dist/twilight/{p-412fb721.entry.js → p-f8cfc9f7.entry.js} +1 -1
- package/dist/twilight/{p-c2df20f8.entry.js → p-faa0b9aa.entry.js} +1 -1
- package/dist/twilight/{p-5009f654.entry.js → p-fb10df18.entry.js} +1 -1
- package/dist/twilight/{p-c64b2b22.entry.js → p-fcb1cff7.entry.js} +1 -1
- package/dist/twilight/{p-f83efc62.entry.js → p-ff3cb99b.entry.js} +1 -1
- package/dist/twilight/{p-194ff38c.entry.js → p-ff4680ea.entry.js} +1 -1
- package/dist/twilight/p-oL7bxwey.js +9 -0
- package/dist/twilight/p-q5NJ0uS-.js +4 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/helpers.d.ts +7 -0
- package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +4 -0
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +0 -2
- package/dist/types/components/salla-mobile-update-modal/salla-mobile-update-modal.d.ts +44 -0
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +12 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +4 -0
- package/dist/types/components/salla-verify/salla-verify.d.ts +8 -0
- package/dist/types/components.d.ts +50 -0
- package/package.json +5 -5
- package/dist/twilight/p-2e6537a3.entry.js +0 -4
- package/dist/twilight/p-3a4e86d1.entry.js +0 -4
- package/dist/twilight/p-86d55a6b.entry.js +0 -4
- package/dist/twilight/p-8c548259.entry.js +0 -4
- package/dist/twilight/p-908716fb.entry.js +0 -4
- package/dist/twilight/p-9cf31ff4.entry.js +0 -4
- package/dist/twilight/p-9e542951.entry.js +0 -4
- package/dist/twilight/p-CWWgpQ8Q.js +0 -9
- package/dist/twilight/p-a070cce0.entry.js +0 -4
- package/dist/twilight/p-a3ca61af.entry.js +0 -4
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var helpers = require('./helpers-wRMwEkLy.js');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Bullet delivery intent helpers.
|
|
10
|
+
* Reads/writes the same storage key as salla-bullet-delivery so both components stay in sync.
|
|
11
|
+
*/
|
|
12
|
+
const INTENT_KEY = 'bullet_delivery_intent';
|
|
13
|
+
function getIntentStorage() {
|
|
14
|
+
const rememberLastSession = Boolean(salla.config.get('store.settings.bullet_delivery.settings.remember_last_session'));
|
|
15
|
+
return rememberLastSession ? salla.storage.store : salla.storage.session;
|
|
16
|
+
}
|
|
17
|
+
function getStoredIntent() {
|
|
18
|
+
const raw = getIntentStorage().get(INTENT_KEY);
|
|
19
|
+
return raw && typeof raw === 'object' ? raw : null;
|
|
20
|
+
}
|
|
21
|
+
/** Resolve the stored intent into a city or branch selection. Returns null when no usable intent. */
|
|
22
|
+
function resolveIntent() {
|
|
23
|
+
const intent = getStoredIntent();
|
|
24
|
+
if (!intent)
|
|
25
|
+
return null;
|
|
26
|
+
if (intent.type === 'address') {
|
|
27
|
+
const city = intent.address_details?.city;
|
|
28
|
+
const cityId = city?.id != null ? Number(city.id) : intent.city_id != null ? Number(intent.city_id) : null;
|
|
29
|
+
const cityName = city?.name?.trim() || '';
|
|
30
|
+
if (cityId != null) {
|
|
31
|
+
return { type: 'address', option: { id: cityId, name: cityName } };
|
|
32
|
+
}
|
|
33
|
+
// Map-origin pick: no city id to query a delivery estimate by, but still show the address.
|
|
34
|
+
if (helpers.isMapOriginIntent(intent) && intent.address_details?.formatted_address) {
|
|
35
|
+
return { type: 'address', option: { name: intent.address_details.formatted_address } };
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
if (intent.type === 'branch') {
|
|
40
|
+
const branchId = intent.branch_id != null
|
|
41
|
+
? Number(intent.branch_id)
|
|
42
|
+
: intent.branch_details?.id != null
|
|
43
|
+
? Number(intent.branch_details.id)
|
|
44
|
+
: null;
|
|
45
|
+
const branchName = intent.branch_details?.name?.trim() || '';
|
|
46
|
+
if (branchId != null) {
|
|
47
|
+
return { type: 'branch', option: { id: branchId, name: branchName } };
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
/** Build the payload for opening the bullet delivery modal with preselection. */
|
|
54
|
+
function buildBulletOpenPayload() {
|
|
55
|
+
const intent = getStoredIntent();
|
|
56
|
+
const payload = {};
|
|
57
|
+
if (intent?.type === 'address' && intent.address_id != null) {
|
|
58
|
+
payload.preselected_address_id = Number(intent.address_id);
|
|
59
|
+
}
|
|
60
|
+
if (intent?.type === 'branch') {
|
|
61
|
+
const branchId = intent.branch_id ?? intent.branch_details?.id;
|
|
62
|
+
if (branchId != null) {
|
|
63
|
+
payload.preselected_branch_id = Number(branchId);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return payload;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
exports.buildBulletOpenPayload = buildBulletOpenPayload;
|
|
70
|
+
exports.getStoredIntent = getStoredIntent;
|
|
71
|
+
exports.resolveIntent = resolveIntent;
|
|
@@ -549,6 +549,29 @@ const getIntentCityId = (i) => idFrom(i?.address_details?.city?.id);
|
|
|
549
549
|
const getIntentDistrictId = (i) => idFrom(i?.address_details?.district?.id);
|
|
550
550
|
const getIntentBranchId = (i) => i?.branch_details?.id;
|
|
551
551
|
const isMapOriginIntent = (i) => !!i && i.type === 'address' && i.address_details?.lat != null && i.address_details?.lng != null;
|
|
552
|
+
/** Parse a coordinate to a finite number, treating null and blank/whitespace strings as missing. */
|
|
553
|
+
const toCoordinate = (value) => {
|
|
554
|
+
if (value == null || (typeof value === 'string' && value.trim() === ''))
|
|
555
|
+
return null;
|
|
556
|
+
const num = Number(value);
|
|
557
|
+
return Number.isFinite(num) ? num : null;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Address intent complete enough to order against: a national address code, or a district with a
|
|
561
|
+
* street or real coordinates. The district text may sit in `local` when the district object is empty.
|
|
562
|
+
*/
|
|
563
|
+
const isIntentAddressComplete = (i) => {
|
|
564
|
+
if (!i || i.type !== 'address')
|
|
565
|
+
return false;
|
|
566
|
+
const d = i.address_details;
|
|
567
|
+
// Stored intents come from the API, so a field may not be a string.
|
|
568
|
+
const has = (value) => String(value ?? '').trim() !== '';
|
|
569
|
+
const lat = toCoordinate(d?.lat);
|
|
570
|
+
const lng = toCoordinate(d?.lng);
|
|
571
|
+
const hasCoordinates = lat != null && lng != null && !(lat === 0 && lng === 0);
|
|
572
|
+
const hasDistrict = has(d?.district?.name) || has(d?.local);
|
|
573
|
+
return has(d?.short_address) || (hasDistrict && (has(d?.street) || hasCoordinates));
|
|
574
|
+
};
|
|
552
575
|
const hasSessionAddressIntent = (intent) => {
|
|
553
576
|
if (!intent || intent.type !== 'address' || intent.address_id)
|
|
554
577
|
return false;
|
|
@@ -597,6 +620,8 @@ exports.isBranchAlwaysOpen = isBranchAlwaysOpen;
|
|
|
597
620
|
exports.isBranchBusy = isBranchBusy;
|
|
598
621
|
exports.isBranchSelectable = isBranchSelectable;
|
|
599
622
|
exports.isBranchVisible = isBranchVisible;
|
|
623
|
+
exports.isIntentAddressComplete = isIntentAddressComplete;
|
|
600
624
|
exports.isMapOriginIntent = isMapOriginIntent;
|
|
601
625
|
exports.isSaudiArabia = isSaudiArabia;
|
|
602
626
|
exports.requireRegionAndDistrictForSA = requireRegionAndDistrictForSA;
|
|
627
|
+
exports.toCoordinate = toCoordinate;
|