@salla.sa/twilight-components 2.14.591 → 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-DkObEO32.js → filepond-YeXzkn77.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-wXgeY5cU.js → filepond-plugin-file-poster-BEU99tEc.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CWleid1C.js → filepond-plugin-file-validate-size-BSsf6VIk.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CJLl2hbe.js → filepond-plugin-file-validate-type-BkxQQF1Y.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Bp6AxXM9.js → filepond-plugin-image-edit-h9C4LxoR.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-abWKSX9-.js → filepond-plugin-image-exif-orientation-nDfSwZEM.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DxprNycS.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-DBN0LueR.js → index-DI5yx1uj.js} +3 -3
- package/dist/cjs/{intlTelInput-B6H18Td2.js → intlTelInput-AgidDx18.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- 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 +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 +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_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 +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 +1 -1
- package/dist/cjs/{vanilla-picker-Cm71HMBs.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-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/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-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 +1 -1
- package/dist/esm/{filepond-Cstf5r6K.js → filepond-C3uLKJlo.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-GibBgGHW.js → filepond-plugin-file-poster-BNO8nuwN.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CLc6zco6.js → filepond-plugin-file-validate-size-CMMYF-rL.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-Ca3dc8p0.js → filepond-plugin-file-validate-type-DSYhKJ7B.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CNGBLi7d.js → filepond-plugin-image-edit-lJgRMQAo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Dmmu9-UQ.js → filepond-plugin-image-exif-orientation-B0tYK1GE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-KX15tx60.js → filepond-plugin-image-preview-kWmnxhXu.js} +1 -1
- package/dist/esm/{helpers-BJxBnTgv.js → helpers-DgRxTSyJ.js} +2 -2
- package/dist/esm/{index-UnmOIma5.js → index-Bk24FlDL.js} +3 -3
- package/dist/esm/{intlTelInput-C-F-rxZ3.js → intlTelInput-nODQyuq0.js} +1 -1
- package/dist/esm/loader.js +2 -2
- 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 +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 +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_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 +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 +2 -2
- package/dist/esm/{vanilla-picker-DMAcm04D.js → vanilla-picker-B1bTUgHP.js} +1 -1
- package/dist/twilight/{p-da14ac3f.entry.js → p-02202feb.entry.js} +1 -1
- package/dist/twilight/{p-fa3c4bcf.entry.js → p-03dffb99.entry.js} +1 -1
- package/dist/twilight/{p-2f1c8e60.entry.js → p-06643011.entry.js} +1 -1
- package/dist/twilight/p-07174244.entry.js +4 -0
- package/dist/twilight/{p-efb9f953.entry.js → p-08256e67.entry.js} +1 -1
- package/dist/twilight/{p-2308e70c.entry.js → p-0dc90c55.entry.js} +1 -1
- package/dist/twilight/{p-426ac7ab.entry.js → p-0e122915.entry.js} +1 -1
- package/dist/twilight/{p-a192abb7.entry.js → p-1b1bebf6.entry.js} +1 -1
- package/dist/twilight/{p-a0e1d5f7.entry.js → p-1d05ff72.entry.js} +1 -1
- package/dist/twilight/{p-f7b65338.entry.js → p-21802082.entry.js} +1 -1
- package/dist/twilight/{p-a1d251d4.entry.js → p-2191d792.entry.js} +1 -1
- package/dist/twilight/{p-e34ff202.entry.js → p-21b3877b.entry.js} +1 -1
- package/dist/twilight/{p-21358994.entry.js → p-22135b7c.entry.js} +1 -1
- package/dist/twilight/{p-18b786f4.entry.js → p-250262a9.entry.js} +1 -1
- package/dist/twilight/{p-f5605df6.entry.js → p-2fc68bfd.entry.js} +1 -1
- package/dist/twilight/{p-49f2ad4a.entry.js → p-320d6b04.entry.js} +1 -1
- package/dist/twilight/{p-9d0658a0.entry.js → p-377642ea.entry.js} +1 -1
- package/dist/twilight/{p-52b99743.entry.js → p-38418821.entry.js} +1 -1
- package/dist/twilight/{p-1aaed68f.entry.js → p-3bf37615.entry.js} +1 -1
- package/dist/twilight/{p-caec4a90.entry.js → p-3e6f2bf8.entry.js} +1 -1
- package/dist/twilight/{p-a5c693c1.entry.js → p-42150f97.entry.js} +1 -1
- package/dist/twilight/{p-1dc68727.entry.js → p-42e02411.entry.js} +1 -1
- package/dist/twilight/{p-36ac5a06.entry.js → p-43c5ec34.entry.js} +1 -1
- package/dist/twilight/{p-e3066c95.entry.js → p-43ca88d0.entry.js} +1 -1
- package/dist/twilight/{p-b70cdf88.entry.js → p-45035389.entry.js} +1 -1
- package/dist/twilight/{p-3d535509.entry.js → p-46721e68.entry.js} +1 -1
- package/dist/twilight/{p-47e519e4.entry.js → p-4f76e9e2.entry.js} +1 -1
- package/dist/twilight/p-4fd73440.entry.js +4 -0
- package/dist/twilight/{p-0bee12ba.entry.js → p-523f9816.entry.js} +1 -1
- package/dist/twilight/{p-e0ce5d4c.entry.js → p-540029a5.entry.js} +1 -1
- package/dist/twilight/{p-7f93ea69.entry.js → p-5435dbcd.entry.js} +1 -1
- package/dist/twilight/{p-328e352d.entry.js → p-5f6a5a4b.entry.js} +1 -1
- package/dist/twilight/{p-2e204cbc.entry.js → p-5fc75260.entry.js} +1 -1
- package/dist/twilight/{p-ea07afaa.entry.js → p-612b6d87.entry.js} +1 -1
- package/dist/twilight/{p-81294230.entry.js → p-658de43b.entry.js} +1 -1
- package/dist/twilight/{p-b7399739.entry.js → p-6673a16f.entry.js} +1 -1
- package/dist/twilight/{p-f92f10c7.entry.js → p-6760ec19.entry.js} +1 -1
- package/dist/twilight/{p-ce0c6667.entry.js → p-68411931.entry.js} +1 -1
- package/dist/twilight/{p-7f23b98d.entry.js → p-6a76acd8.entry.js} +1 -1
- package/dist/twilight/{p-a1d0c650.entry.js → p-7038e1af.entry.js} +1 -1
- package/dist/twilight/{p-27366663.entry.js → p-75f32b91.entry.js} +1 -1
- package/dist/twilight/{p-833fb416.entry.js → p-7750be26.entry.js} +1 -1
- package/dist/twilight/{p-a32fb61e.entry.js → p-79676f24.entry.js} +1 -1
- package/dist/twilight/{p-8ec3b9f0.entry.js → p-7b4a8237.entry.js} +1 -1
- package/dist/twilight/{p-4b175320.entry.js → p-7ff0c546.entry.js} +1 -1
- package/dist/twilight/{p-42d6eb6b.entry.js → p-813a40cc.entry.js} +1 -1
- package/dist/twilight/{p-700cf9fc.entry.js → p-83ccddd5.entry.js} +1 -1
- package/dist/twilight/{p-06268aeb.entry.js → p-872d6d68.entry.js} +1 -1
- package/dist/twilight/{p-ff65be76.entry.js → p-9048520b.entry.js} +1 -1
- package/dist/twilight/{p-48f9cd45.entry.js → p-91a1baf1.entry.js} +1 -1
- package/dist/twilight/{p-62842639.entry.js → p-9e6f4ec4.entry.js} +1 -1
- package/dist/twilight/{p-CtQLzZ1X.js → p-B-LS1xDz.js} +1 -1
- package/dist/twilight/p-Bk24FlDL.js +5 -0
- package/dist/twilight/p-BnmP7F4y.js +9 -0
- package/dist/twilight/{p-CjeoBv5q.js → p-BvUmZYa9.js} +1 -1
- package/dist/twilight/{p-C3HaKgMG.js → p-CHqh7vb6.js} +1 -1
- package/dist/twilight/{p-Dq91sWJh.js → p-CXo-IH2o.js} +1 -1
- package/dist/twilight/{p-BOWrmsKT.js → p-CcGfWKIx.js} +1 -1
- package/dist/twilight/{p-xX3a9YdQ.js → p-Ct18qgaq.js} +1 -1
- package/dist/twilight/{p-D_C0F9n5.js → p-DBjpz_eG.js} +1 -1
- package/dist/twilight/{p-BJxBnTgv.js → p-DgRxTSyJ.js} +1 -1
- package/dist/twilight/{p-DVatlmKV.js → p-DvlAEiaH.js} +1 -1
- package/dist/twilight/{p-6e7a12dd.entry.js → p-a057f532.entry.js} +1 -1
- package/dist/twilight/{p-ce7450a9.entry.js → p-a0f1b867.entry.js} +1 -1
- package/dist/twilight/{p-6a68c551.entry.js → p-a75680ae.entry.js} +1 -1
- package/dist/twilight/{p-398e864d.entry.js → p-ad52dcf7.entry.js} +1 -1
- package/dist/twilight/{p-6b277129.entry.js → p-b009d316.entry.js} +1 -1
- package/dist/twilight/{p-c1eaf8c3.entry.js → p-b1b096d7.entry.js} +1 -1
- package/dist/twilight/{p-35163279.entry.js → p-b1b345d6.entry.js} +1 -1
- package/dist/twilight/{p-9b01e5c2.entry.js → p-b2c41e36.entry.js} +1 -1
- package/dist/twilight/{p-46ef2b4e.entry.js → p-b37ae926.entry.js} +1 -1
- package/dist/twilight/{p-acd9c538.entry.js → p-b5e774db.entry.js} +1 -1
- package/dist/twilight/{p-bb4a95d9.entry.js → p-b6dc3e12.entry.js} +1 -1
- package/dist/twilight/{p-5c313f74.entry.js → p-b95a6e20.entry.js} +1 -1
- package/dist/twilight/{p-2059ac26.entry.js → p-bb152b39.entry.js} +1 -1
- package/dist/twilight/{p-f08ff103.entry.js → p-be729ca2.entry.js} +1 -1
- package/dist/twilight/{p-540992c1.entry.js → p-becb6580.entry.js} +1 -1
- package/dist/twilight/{p-3d7fdd11.entry.js → p-c1d18b73.entry.js} +1 -1
- package/dist/twilight/{p-e6de2f79.entry.js → p-c1d815c9.entry.js} +1 -1
- package/dist/twilight/{p-51d7a9f2.entry.js → p-c313bd11.entry.js} +1 -1
- package/dist/twilight/{p-8e938bfa.entry.js → p-c3a2696b.entry.js} +1 -1
- package/dist/twilight/{p-e3c46eea.entry.js → p-c9ebe466.entry.js} +1 -1
- package/dist/twilight/{p-ca47204f.entry.js → p-cc74d38b.entry.js} +1 -1
- package/dist/twilight/{p-d11b211f.entry.js → p-cd432c49.entry.js} +1 -1
- package/dist/twilight/{p-fb8395de.entry.js → p-ce6c709b.entry.js} +1 -1
- package/dist/twilight/{p-6dcfc119.entry.js → p-ced74b88.entry.js} +1 -1
- package/dist/twilight/{p-9d680306.entry.js → p-d601977e.entry.js} +1 -1
- package/dist/twilight/{p-1a7bee69.entry.js → p-d73307c7.entry.js} +1 -1
- package/dist/twilight/{p-d62c6529.entry.js → p-d9ccdd8f.entry.js} +1 -1
- package/dist/twilight/{p-78d1e145.entry.js → p-dc51993c.entry.js} +1 -1
- package/dist/twilight/{p-e1d59b7e.entry.js → p-dfd212d5.entry.js} +1 -1
- package/dist/twilight/{p-71372771.entry.js → p-e2aa0e72.entry.js} +1 -1
- package/dist/twilight/{p-f69a3e84.entry.js → p-e58b7ef9.entry.js} +1 -1
- package/dist/twilight/{p-40a7f8c6.entry.js → p-e7127704.entry.js} +1 -1
- package/dist/twilight/{p-2d983198.entry.js → p-e7ca6d06.entry.js} +1 -1
- package/dist/twilight/{p-13215fa2.entry.js → p-eaae379c.entry.js} +1 -1
- package/dist/twilight/{p-9c284764.entry.js → p-ed6ea140.entry.js} +1 -1
- package/dist/twilight/{p-170a29db.entry.js → p-f263bba9.entry.js} +1 -1
- package/dist/twilight/p-f3ffe84f.entry.js +4 -0
- package/dist/twilight/{p-4b135194.entry.js → p-f4f7ed38.entry.js} +1 -1
- package/dist/twilight/{p-635cf0ae.entry.js → p-f5c9e513.entry.js} +1 -1
- package/dist/twilight/{p-c1eab306.entry.js → p-f74ccae4.entry.js} +1 -1
- package/dist/twilight/{p-efb67446.entry.js → p-f7ee4910.entry.js} +1 -1
- package/dist/twilight/{p-2e971549.entry.js → p-f8f9c563.entry.js} +1 -1
- package/dist/twilight/{p-1762cfe3.entry.js → p-f9f0a5ee.entry.js} +1 -1
- package/dist/twilight/{p-adfc54e4.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-search/search-response.d.ts +1 -0
- package/package.json +5 -5
- package/dist/twilight/p-3845541d.entry.js +0 -4
- package/dist/twilight/p-38956156.entry.js +0 -4
- package/dist/twilight/p-UnmOIma5.js +0 -5
- package/dist/twilight/p-b5d6ddd7.entry.js +0 -4
- package/dist/twilight/p-iC3SM6Ji.js +0 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DI5yx1uj.js');
|
|
7
7
|
|
|
8
8
|
const sallaWishlistActionsCss = "/*!twlt*/:host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}.static{position:static}.absolute{position:absolute}.relative{position:relative}.z-20{z-index:20}.mb-3{margin-bottom:0.75rem}.mt-1{margin-top:0.25rem}.mt-3{margin-top:0.75rem}.flex{display:flex}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.gap-3{gap:0.75rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:0.5rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}";
|
|
9
9
|
|
|
@@ -319,7 +319,7 @@ const SallaWishlistActions = class {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
render() {
|
|
322
|
-
return (index.h(index.Host, { key: '
|
|
322
|
+
return (index.h(index.Host, { key: '555b93b058b7d1e02d850b4d6ab318be5cb6b69f' }, index.h("div", { key: 'b9110b59c759b08113ad876c21210f84ff1634cf', class: "s-wishlist-actions" }, index.h("div", { key: '7017fcaa2c202322476bb57a92aa0f67990b2366', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, index.h("div", { key: '2f2074ac227e33de8880339c64b8ac4db9936c33', class: "s-wishlist-actions-dropdown relative" }, index.h("salla-button", { key: '65197f13ea06c1f6ef41c5b229005160f1ce6fb6', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, index.h("div", { key: 'dc98a952df9bd96f98aa755529332929609f6238', class: "flex flex-row justify-center items-center gap-2" }, index.h("svg", { key: '165a00da1a16ebda3ca67a312e2e818e90e50b59', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, index.h("path", { key: 'b8d5e91620b46af1e583e1c729a62fc575ac6f79', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, index.h("svg", { key: '804d7e2251bec8e7e224aff212c56038b6e578a4', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, index.h("path", { key: 'a72392c9ed7ed88a6bddb52ad521ea299b3521db', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (index.h("ul", { key: 'f92af33b6f93b242bb5e31ca7493cbe98da954bf', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, index.h("li", { key: '1a890bceb2b1f818714aa8588f3cbac8dcd58bb1' }, index.h("button", { key: 'dea5ebfbbb21a915218495ba4c753058daa8673e', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), index.h("li", { key: 'bef2909444be2d83245e684c24647939d6efb0a6' }, index.h("button", { key: 'f3acc3228c9056c4a65df2c7461444a2cf5105bc', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), index.h("salla-social-share", { key: 'aef87f10208a46d1bbe5cb09c4ed23175d0c8e05', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, index.h("span", { key: 'bc89fba2ab1178515ddd557dda51bf1bcb41a1e8', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (index.h("div", { key: 'a46e2c665a46fe2d9fc7bc1084223d24cdfe9706', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, index.h("label", { key: '28eada8514684c55699bb22f390f48d129c9d1c6', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, index.h("input", { key: '9db31a9fcec824cfde62545fa402c5a7a97c6f81', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), index.h("span", { key: '38b2e97d3185cf1483d49c26ff9b2746b4b08aaa', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), index.h("div", { key: '3f4d117cf6745fd3490c1196c1ae6f42e3185ae6', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, index.h("salla-button", { key: 'daf79a258a9bca9eda2a1f103daec21e8cbb0609', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), index.h("salla-button", { key: '34ee6ad51826802310a4f8a055211914da55747c', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
|
|
323
323
|
}
|
|
324
324
|
get host() { return index.getElement(this); }
|
|
325
325
|
};
|
package/dist/cjs/twilight.cjs.js
CHANGED
|
@@ -6,7 +6,7 @@ import Cart from "../../assets/svg/cart.svg";
|
|
|
6
6
|
// import SallaIcon from '../../assets/svg/salla.svg';
|
|
7
7
|
import WalletIcon from "../../assets/svg/full-wallet.svg";
|
|
8
8
|
import Helper from "../../Helpers/Helper";
|
|
9
|
-
import { canCompleteApplePay } from "@salla.sa/applepay/src/apple-pay-support";
|
|
9
|
+
import { canCompleteApplePay, isApplePayHostedRedirect } from "@salla.sa/applepay/src/apple-pay-support";
|
|
10
10
|
import { OrderOptionsGate } from "../salla-order-options-modal/order-options-gate";
|
|
11
11
|
import { FastCheckoutGate } from "../salla-bullet-delivery/fast-checkout-gate";
|
|
12
12
|
export class SallaAddProductButton {
|
|
@@ -178,8 +178,11 @@ export class SallaAddProductButton {
|
|
|
178
178
|
&& this.productType !== 'booking';
|
|
179
179
|
// Cross-browser Apple Pay: native (Safari) OR the Payment Request API
|
|
180
180
|
// (non-Safari browsers / non-Apple devices via the QR-code fallback).
|
|
181
|
+
// Hosted (MyFatoorah, S2S off) Apple Pay has no native sheet and no buy-now redirect
|
|
182
|
+
// path, so the quick-buy button below must not render for it either.
|
|
181
183
|
this.isApplePayActive = salla.config.get('store.settings.payments')?.includes('apple_pay')
|
|
182
184
|
&& salla.config.get('store.settings.is_salla_gateway', false)
|
|
185
|
+
&& !isApplePayHostedRedirect()
|
|
183
186
|
&& await canCompleteApplePay();
|
|
184
187
|
this.passedLabel = this.host.innerHTML.replace('<!---->', '').trim();
|
|
185
188
|
if (!!this.passedLabel && this.isDesktopViewport) {
|
|
@@ -38,7 +38,7 @@ export function findNearestBranch(branches, userLat, userLon) {
|
|
|
38
38
|
for (const b of branches) {
|
|
39
39
|
const lat = b.location?.lat != null ? Number(b.location.lat) : Number.NaN;
|
|
40
40
|
const lng = b.location?.lng != null ? Number(b.location.lng) : Number.NaN;
|
|
41
|
-
if (Number.isNaN(lat) || Number.isNaN(lng) || b
|
|
41
|
+
if (Number.isNaN(lat) || Number.isNaN(lng) || !isBranchSelectable(b))
|
|
42
42
|
continue;
|
|
43
43
|
const d = calculateDistance(userLat, userLon, lat, lng);
|
|
44
44
|
if (d < minD) {
|
|
@@ -446,10 +446,7 @@ export class SallaBulletDelivery {
|
|
|
446
446
|
}
|
|
447
447
|
// Auto-select preselected branch if provided
|
|
448
448
|
if (this.preselectedBranchId) {
|
|
449
|
-
|
|
450
|
-
if (branch) {
|
|
451
|
-
this.selectedBranch = branch;
|
|
452
|
-
}
|
|
449
|
+
this.preselectBranch(this.preselectedBranchId);
|
|
453
450
|
}
|
|
454
451
|
}
|
|
455
452
|
// Prefill form data from session storage
|
|
@@ -900,15 +897,30 @@ export class SallaBulletDelivery {
|
|
|
900
897
|
async loadBranches() {
|
|
901
898
|
this.loadingBranches = true;
|
|
902
899
|
try {
|
|
903
|
-
this.
|
|
900
|
+
this.applyLoadedBranches(await bulletDeliveryAPI.getBranches({
|
|
904
901
|
country_id: this.selectedCountry?.id,
|
|
905
|
-
});
|
|
906
|
-
this.filterBranches();
|
|
902
|
+
}));
|
|
907
903
|
}
|
|
908
904
|
finally {
|
|
909
905
|
this.loadingBranches = false;
|
|
910
906
|
}
|
|
911
907
|
}
|
|
908
|
+
/**
|
|
909
|
+
* Store a freshly fetched branch list and reconcile the current selection with it.
|
|
910
|
+
* `selectedBranch` is a snapshot from selection time: when the refreshed list carries the
|
|
911
|
+
* same branch, swap in the fresh copy, and drop it if it is no longer selectable (INV-1407).
|
|
912
|
+
* A selection missing from the list (e.g. filtered out by a search) is left untouched.
|
|
913
|
+
*/
|
|
914
|
+
applyLoadedBranches(branches) {
|
|
915
|
+
this.branches = branches;
|
|
916
|
+
if (this.selectedBranch) {
|
|
917
|
+
const fresh = branches.find((b) => b.id === this.selectedBranch?.id);
|
|
918
|
+
if (fresh) {
|
|
919
|
+
this.selectedBranch = isBranchSelectable(fresh) ? fresh : null;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
this.filterBranches();
|
|
923
|
+
}
|
|
912
924
|
filterBranches() {
|
|
913
925
|
this.filteredBranches = filterBranches(this.branches, this.branchSearchQuery);
|
|
914
926
|
}
|
|
@@ -935,13 +947,7 @@ export class SallaBulletDelivery {
|
|
|
935
947
|
if (country) {
|
|
936
948
|
this.selectedCountry = country;
|
|
937
949
|
this.updateNewAddressForm({ country_id: Number(country.id) });
|
|
938
|
-
|
|
939
|
-
if (branchId != null && this.branches.length > 0) {
|
|
940
|
-
const branch = this.branches.find((b) => b.id === branchId);
|
|
941
|
-
if (branch) {
|
|
942
|
-
this.selectedBranch = branch;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
950
|
+
this.preselectBranch(getIntentBranchId(intent));
|
|
945
951
|
}
|
|
946
952
|
}
|
|
947
953
|
}
|
|
@@ -1105,11 +1111,10 @@ export class SallaBulletDelivery {
|
|
|
1105
1111
|
return;
|
|
1106
1112
|
this.loadingBranches = true;
|
|
1107
1113
|
try {
|
|
1108
|
-
this.
|
|
1114
|
+
this.applyLoadedBranches(await bulletDeliveryAPI.getBranches({
|
|
1109
1115
|
country_id: this.selectedCountry?.id,
|
|
1110
1116
|
query,
|
|
1111
|
-
});
|
|
1112
|
-
this.filterBranches();
|
|
1117
|
+
}));
|
|
1113
1118
|
}
|
|
1114
1119
|
finally {
|
|
1115
1120
|
this.loadingBranches = false;
|
|
@@ -1142,12 +1147,11 @@ export class SallaBulletDelivery {
|
|
|
1142
1147
|
async loadBranchesWithLocation(lat, lng) {
|
|
1143
1148
|
this.loadingBranches = true;
|
|
1144
1149
|
try {
|
|
1145
|
-
this.
|
|
1150
|
+
this.applyLoadedBranches(await bulletDeliveryAPI.getBranches({
|
|
1146
1151
|
country_id: this.selectedCountry?.id,
|
|
1147
1152
|
lat,
|
|
1148
1153
|
lng,
|
|
1149
|
-
});
|
|
1150
|
-
this.filterBranches();
|
|
1154
|
+
}));
|
|
1151
1155
|
// Auto-select country from first branch if no country is selected
|
|
1152
1156
|
if (!this.selectedCountry && this.branches.length > 0) {
|
|
1153
1157
|
const firstBranch = this.branches[0];
|
|
@@ -1204,6 +1208,18 @@ export class SallaBulletDelivery {
|
|
|
1204
1208
|
this.selectedBranch = branch;
|
|
1205
1209
|
this.allocationOutOfCoverageMessage = null;
|
|
1206
1210
|
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Restore a remembered / event-provided branch — but only one the list renders as selectable,
|
|
1213
|
+
* so a branch that has closed since it was remembered is never silently preselected (INV-1407).
|
|
1214
|
+
*/
|
|
1215
|
+
preselectBranch(branchId) {
|
|
1216
|
+
if (branchId == null)
|
|
1217
|
+
return;
|
|
1218
|
+
const branch = this.branches.find((b) => b.id === branchId);
|
|
1219
|
+
if (branch && isBranchSelectable(branch)) {
|
|
1220
|
+
this.selectedBranch = branch;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1207
1223
|
handleSavedAddressSelect(address) {
|
|
1208
1224
|
if (address.is_in_coverage === false) {
|
|
1209
1225
|
// Show toast notification for out of coverage address
|
|
@@ -1443,13 +1459,7 @@ export class SallaBulletDelivery {
|
|
|
1443
1459
|
await this.loadBranches();
|
|
1444
1460
|
}
|
|
1445
1461
|
// Preselect branch from session storage if available
|
|
1446
|
-
|
|
1447
|
-
if (branchId != null && this.branches.length > 0) {
|
|
1448
|
-
const branch = this.branches.find((b) => b.id === branchId);
|
|
1449
|
-
if (branch) {
|
|
1450
|
-
this.selectedBranch = branch;
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1462
|
+
this.preselectBranch(getIntentBranchId(savedIntent));
|
|
1453
1463
|
}
|
|
1454
1464
|
else if (tab === "address") {
|
|
1455
1465
|
// Lazy-load saved addresses when switching to address tab (if not loaded yet).
|
|
@@ -1478,7 +1488,8 @@ export class SallaBulletDelivery {
|
|
|
1478
1488
|
}
|
|
1479
1489
|
isConfirmDisabled() {
|
|
1480
1490
|
if (this.activeTab === "branch") {
|
|
1481
|
-
|
|
1491
|
+
// Backstop for any selection path: the allocation API rejects non-selectable branches (INV-1407).
|
|
1492
|
+
return !isBranchSelectable(this.selectedBranch);
|
|
1482
1493
|
}
|
|
1483
1494
|
if (this.activeTab === "address") {
|
|
1484
1495
|
if (this.isLoggedIn && this.selectedSessionAddress) {
|
|
@@ -5,7 +5,7 @@ import { Host, h } from "@stencil/core";
|
|
|
5
5
|
import "@salla.sa/applepay/src/index";
|
|
6
6
|
import { resolveApplePayOrderOptions, appendOrderOptionsToPayload, reportProductOptionsValiditySync, } from "../salla-order-options-modal/apple-pay-order-options";
|
|
7
7
|
import { injectFreeProductsIntoPayload } from "../salla-order-options-modal/free-product-payload";
|
|
8
|
-
import { applePayMerchantId, canCompleteApplePay, ensureApplePaySdk, resolveApplePayNetworks } from "@salla.sa/applepay/src/apple-pay-support";
|
|
8
|
+
import { applePayMerchantId, canCompleteApplePay, ensureApplePaySdk, isApplePayHostedRedirect, resolveApplePayNetworks } from "@salla.sa/applepay/src/apple-pay-support";
|
|
9
9
|
export class SallaQuickBuy {
|
|
10
10
|
constructor() {
|
|
11
11
|
/**
|
|
@@ -315,9 +315,12 @@ export class SallaQuickBuy {
|
|
|
315
315
|
const canMakePayments = typeof window !== 'undefined' && !!window.ApplePaySession?.canMakePayments?.();
|
|
316
316
|
const storeHasApplePay = salla?.config?.get?.('store.settings.payments')?.includes?.('apple_pay') ?? true;
|
|
317
317
|
const isSallaGateway = salla?.config?.get?.('store.settings.is_salla_gateway', false) ?? true;
|
|
318
|
+
// Hosted (MyFatoorah, S2S off) Apple Pay has no native sheet and buy-now has no redirect
|
|
319
|
+
// path, so there is nothing this button could do — don't offer it.
|
|
320
|
+
const isHostedRedirect = isApplePayHostedRedirect();
|
|
318
321
|
// No networks means nothing to charge with, so don't show the button — canMakePayments()
|
|
319
322
|
// alone would light it up on Safari.
|
|
320
|
-
this.isApplePayActive = canMakePayments && storeHasApplePay && isSallaGateway
|
|
323
|
+
this.isApplePayActive = canMakePayments && storeHasApplePay && isSallaGateway && !isHostedRedirect
|
|
321
324
|
&& !!this.resolveSupportedNetworks().length;
|
|
322
325
|
const runInit = async () => {
|
|
323
326
|
if (!this.productId && salla?.config?.get && salla.url?.is_page) {
|
|
@@ -346,7 +349,8 @@ export class SallaQuickBuy {
|
|
|
346
349
|
salla.product.event.onPriceUpdated(response => { this.applyBaseCurrencyPrice(response?.data); });
|
|
347
350
|
}
|
|
348
351
|
const storeAllowsApplePay = (salla?.config?.get?.('store.settings.payments')?.includes?.('apple_pay') ?? storeHasApplePay)
|
|
349
|
-
&& (salla?.config?.get?.('store.settings.is_salla_gateway', false) ?? isSallaGateway)
|
|
352
|
+
&& (salla?.config?.get?.('store.settings.is_salla_gateway', false) ?? isSallaGateway)
|
|
353
|
+
&& !isApplePayHostedRedirect();
|
|
350
354
|
// Preload Apple's JS SDK so the rendered <apple-pay-button> upgrades on
|
|
351
355
|
// every flow (native Safari + QR). Fire-and-forget: the element upgrades
|
|
352
356
|
// retroactively once the script defines it.
|
|
@@ -370,7 +374,16 @@ export class SallaQuickBuy {
|
|
|
370
374
|
});
|
|
371
375
|
}
|
|
372
376
|
render() {
|
|
373
|
-
|
|
377
|
+
// Hosted (MyFatoorah, S2S off) Apple Pay has no native sheet and buy-now has no
|
|
378
|
+
// redirect path, so render nothing rather than an Apple Pay button that cannot
|
|
379
|
+
// do Apple Pay. Scoped to the hosted case on purpose: when a store simply has no
|
|
380
|
+
// Apple Pay, `isApplePayActive` is false too, but there the button is a deliberate
|
|
381
|
+
// generic buy-now that falls back to `checkout/mini` (see quickBuyHandler), and
|
|
382
|
+
// direct consumers rely on that.
|
|
383
|
+
if (isApplePayHostedRedirect()) {
|
|
384
|
+
return h(Host, null);
|
|
385
|
+
}
|
|
386
|
+
return h(Host, null, this.quickBuyButton());
|
|
374
387
|
}
|
|
375
388
|
quickBuyButton() {
|
|
376
389
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -158,7 +158,7 @@ export class SallaReviewCard {
|
|
|
158
158
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return h("div", { key: '
|
|
161
|
+
return h("div", { key: '44589734c0a8ab8211a50e89e306de7dd53ad679', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: '14e57255f40beab2e4b92724f26f171cdaaf69f4', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '8f27f7f13b5611a71164dba288f53e53e10e67f0', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "salla-review-card"; }
|
|
164
164
|
static get originalStyleUrls() {
|
|
@@ -47,7 +47,7 @@ export class SallaReviewFactorsTags {
|
|
|
47
47
|
return (h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (h("div", { class: "s-review-factors-tags-factor-tag" }, h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), h("span", { class: "s-review-factors-tags-factor-star", innerHTML: Star2 }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'f4347eb019e8af95cfa053389887afaa73300f40', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "salla-review-factors-tags"; }
|
|
53
53
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SallaReviewsPage {
|
|
|
142
142
|
return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("host", { key: '
|
|
145
|
+
return (h("host", { key: '9d393d47dde31817178d398dacf0be9d1961f487' }, h("div", { key: '2109c18f3cf9ebb5769291ee88dc733e2b96759f', class: "s-reviews-page-header-wrapper" }, h("h2", { key: 'f9259ac0832ea3041a517ee3dd8dccb41a3bd903', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'f49098ca0e3f911669c610a310dbf331922e9b8a', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '739397b8f7389cfab453d435868b20be49871d6d', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '92bd0f40b758f394ca3c1604ba207653e2263bac', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'a2b42e0c18c9192a3ff33f61ca21e50355655ed4', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
|
|
146
146
|
this.wrapper = el;
|
|
147
147
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
148
148
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
|
|
@@ -197,7 +197,7 @@ export class SallaSearch {
|
|
|
197
197
|
.fetch({ source: 'search', source_value: val })
|
|
198
198
|
.then(response => {
|
|
199
199
|
this.results = response;
|
|
200
|
-
salla.event.emit('Products Searched', { query: val, total: response.data?.length });
|
|
200
|
+
salla.event.emit('Products Searched', { query: val, total: response.data?.length, metadata: response.metadata });
|
|
201
201
|
})
|
|
202
202
|
.catch(err => (err !== 'Query is same as previous one!' ? (this.results = undefined) : null))
|
|
203
203
|
.finally(() => this.afterSearching());
|
|
@@ -109,7 +109,7 @@ export class SallaSearchProductCard {
|
|
|
109
109
|
// 's-search-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
110
110
|
};
|
|
111
111
|
const hrefProp = this.productData?.url ? { href: this.productData.url } : {};
|
|
112
|
-
return (h(Host, { key: '
|
|
112
|
+
return (h(Host, { key: '68ea949b11eefd54cdc6f98efdfca9b88118618d', id: `search-product-${this.productData?.id}`, class: classes }, this.productData?.url ? (h("a", { class: "s-search-product-card-overlay-link", "aria-label": this.productData?.name, ...hrefProp })) : null, h("div", { key: 'b6edf8d163728c4bf676ff762156206b12c3e412', class: "s-search-product-card-image" }, h("img", { key: '49d70e57178065d4cd82ab9969ef1024e17da13f', class: `s-search-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url) ? 'contain' : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), this.getProductBadge()), h("div", { key: '1828cfa687675c9e0db05f52790e14e47fc62276', class: "s-search-product-card-content" }, h("div", { key: '4def9eb945cbbf9392a11ab917652f32b40e855d', class: "s-search-product-card-content-main" }, h("h3", { key: 'fac38036cd00252f8b2625b51b45edcb0f8f386e', class: "s-search-product-card-content-title" }, this.getDisplayTitle()), this.productData?.subtitle ? (h("p", { class: "s-search-product-card-content-subtitle" }, this.productData?.subtitle)) : null), !!this.showDonationAmount && !!this.productData?.donation
|
|
113
113
|
? [
|
|
114
114
|
h("salla-progress-bar", { donation: this.productData?.donation }),
|
|
115
115
|
h("div", { class: "s-search-product-card-donation-input" }, this.productData?.donation?.can_donate
|
|
@@ -124,7 +124,7 @@ export class SallaSearchProductCard {
|
|
|
124
124
|
]
|
|
125
125
|
: null),
|
|
126
126
|
]
|
|
127
|
-
: null, h("div", { key: '
|
|
127
|
+
: null, h("div", { key: '8a6b30d272e21ec90223437c9e47ae416aa2299b', class: "s-search-product-card-content-sub" }, this.getProductPrice(), this.productData?.is_out_of_stock ? (h("span", { class: "s-search-product-card-out-of-stock-label" }, this.outOfStock)) : null), this.productData?.rating?.stars ? (h("div", { class: "s-search-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))) : null), !this.hideAddBtn ? (h("div", { class: "s-search-product-card-content-footer" }, h("salla-add-product-button", { ref: el => (this.addBtn = el), "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, this.renderAddToCartLabel()))) : null));
|
|
128
128
|
}
|
|
129
129
|
componentDidLoad() {
|
|
130
130
|
document.lazyLoadInstance?.update(this.host?.querySelectorAll('.lazy'));
|
|
@@ -188,18 +188,18 @@ export class SallaSearchableDropdown {
|
|
|
188
188
|
render() {
|
|
189
189
|
const hasSelection = this.selectedItem != null;
|
|
190
190
|
const listboxId = `${this.inputId}-listbox`;
|
|
191
|
-
return (h(Host, { key: '
|
|
191
|
+
return (h(Host, { key: '9b8ac693952ae27f7fecb0f848ef60f5778f0e75', class: "s-searchable-dropdown" }, h("div", { key: '2f10ce4a1aca3ff7299d8561a6dffc05b241b6b1', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: 'bf4f834506b01c388f961e71675dcff60fcab9d9', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: 'ccc2919fd2897f6f88009763c10e7e6b04818f5d', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: '4b3796c45068749c9ad6fcd7cd82289971abd6cb', class: {
|
|
192
192
|
's-searchable-dropdown-trigger': true,
|
|
193
193
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
194
194
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
195
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
195
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '0f00911d4b31a3bc5607b3d80c75fa9161e57450', class: {
|
|
196
196
|
'sicon-keyboard_arrow_down': true,
|
|
197
197
|
's-searchable-dropdown-trigger-icon': true,
|
|
198
198
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
199
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
199
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: 'e9d3ee8e3ce449038c9c24f664da1fd44cb140c9', class: {
|
|
200
200
|
's-searchable-dropdown-panel': true,
|
|
201
201
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
202
|
-
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '
|
|
202
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '21d3d0f542271255a57c7ae1171a2245f21db148', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '32b23853dce56095394b0f3f32a62aa05e803af2', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: 'c50548c034ed3e4ff395fb009e545c78c2dc712e', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: 'c89233e8d294fe583d9fb8c11c7bb26af5307ce3', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
203
203
|
}
|
|
204
204
|
renderListContent() {
|
|
205
205
|
if (this.searching || this.loading) {
|
|
@@ -22,7 +22,7 @@ export class SallaSkeleton {
|
|
|
22
22
|
's-skeleton-item': true,
|
|
23
23
|
's-skeleton-item-circular': this.type == 'circle',
|
|
24
24
|
};
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'b6ea2f9ba293c4c5922a5abf48f05845d02a8590', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '8fa3bed8b7aa80e01742d6c2496bc0578aabe7f1', class: classes }, "\u00A0")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-skeleton"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -31,7 +31,7 @@ export class SallaSocial {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const linksArray = this.getLinksArray();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '4b8d92800f475d314d5637e290c1fa95c78335f5' }, h("ul", { key: 'b6134f221891e28484155c55d3bcf0182bcb967a', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
35
35
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
36
36
|
.replace(/\{type\}/g, link.type)
|
|
37
37
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -355,7 +355,7 @@ export class SallaSocialShare {
|
|
|
355
355
|
})));
|
|
356
356
|
}
|
|
357
357
|
render() {
|
|
358
|
-
return (h("div", { key: '
|
|
358
|
+
return (h("div", { key: 'e54e51701050bfe02aa33824a5870294618ca22c', class: "s-social-share-wrapper" }, h("slot", { key: '692691792083ae58a23c4a273019e09c74366805', name: "widget" }, h("salla-button", { key: 'a27f7bfd1d2fde734f1d89aa5dc83a59b3803b23', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '30cde6555a83a7362c2739e018fe994ee6dc25cf', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
359
359
|
}
|
|
360
360
|
static get is() { return "salla-social-share"; }
|
|
361
361
|
static get originalStyleUrls() {
|
|
@@ -30,7 +30,7 @@ export class SallaTabContent {
|
|
|
30
30
|
's-tabs-content': true,
|
|
31
31
|
's-tabs-content-selected': this.isSelected
|
|
32
32
|
};
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: '3107faffd358504438b464be5000682d403e1b22', class: classes }, h("slot", { key: 'e6fc9e480389b54f9e6e20a7c8ccdb880a4ee6d4' })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "salla-tab-content"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class SallaTabHeader {
|
|
|
52
52
|
's-tabs-active': this.isSelected,
|
|
53
53
|
};
|
|
54
54
|
return [
|
|
55
|
-
h("div", { key: '
|
|
55
|
+
h("div", { key: '04bb51760a3e43aed1645cf724b90e21ee2631bf', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: 'c9d5fc5dbc0a45712c9aa5e03becc613590011ea' })),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "salla-tab-header"; }
|
|
@@ -50,7 +50,7 @@ export class SallaTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
return [
|
|
53
|
-
h("div", { key: '
|
|
53
|
+
h("div", { key: 'de6455b0d68cb3e174771ad7be1bc95141d61df1', class: "s-tabs" }, h("div", { key: '57c21f00a709723fa0be789f388b3defb391bcb2', class: "s-tabs-header" }, h("slot", { key: 'b5107fab289f9d7c661ddd7c4cfea4795eb7bb19', name: "header" })), h("div", { key: '344d142adc8f6adbc70baf4009e2d594fdbaea06', class: "s-tabs-content-wrapper" }, h("slot", { key: 'acd41f2ebb7120a2c043d17740e5fd4d2db95276', name: "content" })))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "salla-tabs"; }
|
|
@@ -138,7 +138,7 @@ export class SallaTelInput {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: 'd03d6361922175ab55e0f58fd54cbbc09f89e5e6', class: "s-tel-input" }, h("input", { key: '69a1fea1c843d4d36d6b0dd59131fa82f0cb62b6', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: 'd627bceaf3d7e812a8bc727a12359495350d51b8', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '013c643d29f51c5ff35cd94ab62e4fcffbb8df0c', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
142
142
|
}
|
|
143
143
|
componentDidLoad() {
|
|
144
144
|
this.initPromise = this.initTelInput();
|
|
@@ -27,7 +27,7 @@ export class SallaTooltip {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: 'd689900a8fdad37c6396eb55d8140b48f3eda8b8', class: "s-tooltip-container" }, h("div", { key: '0ae14c42d03c5f81ce4f19fa90b0260a21ac1c1e', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "salla-tooltip"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -532,7 +532,7 @@ export class SallaUserSettings {
|
|
|
532
532
|
return (h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeleteModal() }, this.capitalizeText(this.deleteAccount)));
|
|
533
533
|
}
|
|
534
534
|
render() {
|
|
535
|
-
return (h(Host, { key: '
|
|
535
|
+
return (h(Host, { key: '830b118e5ceabea1a2b14298d4aba796a040ec23', class: "s-user-settings-wrapper" }, this.canHideName && (h("div", { key: '3cf9e816c9757a8b60d6529091fe14df5ea32e4e', class: "s-user-settings-section" }, h("salla-list-tile", { key: '0ffb3e8f97d6b0af34fd57721f9430cc48cc67d2' }, h("div", { key: '702c5826f7f2fe9b4dcfe358f66cef306bafb5ab', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'e4ed4d6b03f1df675900b6a9ea6ea53b222414de', innerHTML: UserCancel })), h("div", { key: '4f6d392cdd4080ddff359381dfaf21847fdfba13', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: 'e786b26d5547e83bcab8df6dfa0c1697a1dc5727', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'a875a59062a1ff9e600b3b2cac9e1265467d45d6', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '450801ab871d8603fc79b05a0b5b8bc4d7ce4457', class: "s-toggle" }, h("input", { key: '9b79c1e08008b3c839ffe2492bf160b0e51c30d8', class: "s-toggle-input", checked: this.isHiddenName, onChange: e => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'ca0807167186af65c389afd1f6db8487c61aa7cf', class: "s-toggle-switcher" })))))), h("div", { key: '57b71f67259053faad864b1c81a496b4cb0792f6', class: "s-user-settings-section" }, h("salla-list-tile", { key: '5f59cf890492310d734e3e3de92f5866280993c1' }, h("div", { key: 'a3d39ee7bc01fb41060e8447d566a721f0638673', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'ebe6f58818f3954091ec278f7dd0d5b947e6bf01', innerHTML: Bullhorn })), h("div", { key: '68f3f48970a343238d9a221cb5581584db5695a8', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '2b3edd4333a7730eae644023a021d49a57112fb9', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '0f406c80ed900ab42b5eaa4148b27e3db6222a0a', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: 'e0b42fd7b6df963de51ca8e9ddd06a1710589760', class: "s-toggle" }, h("input", { key: 'e67b1189631ea46e58fa12228b4d357a621f4cc6', class: "s-toggle-input", checked: this.isNotifiable, onChange: e => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: '52620a74be33301cbcb31d60d80919d99e342b2f', class: "s-toggle-switcher" }))))), this.isDeleteAccountEnabled ? (h("div", { class: "s-user-settings-section s-user-settings-section-delete-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, this.renderUserDeleteIcon()), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deleteAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.isDeletePending ? this.deleteAccountPending : this.deleteAccountDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, this.renderDeleteSectionAction())))) : (h("div", { class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, h("span", { innerHTML: UserOff })), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount)))))), this.isDeleteAccountEnabled ? (h("salla-modal", { id: "salla-user-settings-delete-modal", width: "xs", centered: true, showBack: this.currentStep === 'otp', isClosable: this.currentStep !== 'success', iconStyle: this.currentStep === 'success' ? 'success' : undefined, onModalVisibilityChanged: e => this.handleModalVisibilityChanged(e), onModalBack: () => this.goBackFromOtp(), ref: modal => (this.confirmationModal = modal) }, this.currentStep !== 'success' ? (h("span", { slot: "icon", class: "s-user-settings-delete-icon" }, this.renderUserDeleteIcon())) : null, h("div", { key: this.currentStep, class: "s-user-settings-delete-step" }, this.renderDeleteStep()))) : (h("salla-modal", { width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => (this.confirmationModal = modal) }, h("span", { slot: "icon", class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { class: "s-user-settings-confirmation" }, h("div", { class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { class: "s-user-settings-confirmation-actions" }, h("salla-button", { width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { fill: "outline", loading: this.buttonLoading, width: "wide", onClick: () => this.confirmDeactivateAccount() }, this.capitalizeText(this.deactivateAccount))))))));
|
|
536
536
|
}
|
|
537
537
|
static get is() { return "salla-user-settings"; }
|
|
538
538
|
static get originalStyleUrls() {
|
|
@@ -325,7 +325,7 @@ export class SallaWishlistActions {
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
render() {
|
|
328
|
-
return (h(Host, { key: '
|
|
328
|
+
return (h(Host, { key: '555b93b058b7d1e02d850b4d6ab318be5cb6b69f' }, h("div", { key: 'b9110b59c759b08113ad876c21210f84ff1634cf', class: "s-wishlist-actions" }, h("div", { key: '7017fcaa2c202322476bb57a92aa0f67990b2366', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '2f2074ac227e33de8880339c64b8ac4db9936c33', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: '65197f13ea06c1f6ef41c5b229005160f1ce6fb6', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'dc98a952df9bd96f98aa755529332929609f6238', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '165a00da1a16ebda3ca67a312e2e818e90e50b59', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'b8d5e91620b46af1e583e1c729a62fc575ac6f79', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, h("svg", { key: '804d7e2251bec8e7e224aff212c56038b6e578a4', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: 'a72392c9ed7ed88a6bddb52ad521ea299b3521db', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: 'f92af33b6f93b242bb5e31ca7493cbe98da954bf', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: '1a890bceb2b1f818714aa8588f3cbac8dcd58bb1' }, h("button", { key: 'dea5ebfbbb21a915218495ba4c753058daa8673e', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: 'bef2909444be2d83245e684c24647939d6efb0a6' }, h("button", { key: 'f3acc3228c9056c4a65df2c7461444a2cf5105bc', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: 'aef87f10208a46d1bbe5cb09c4ed23175d0c8e05', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: 'bc89fba2ab1178515ddd557dda51bf1bcb41a1e8', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: 'a46e2c665a46fe2d9fc7bc1084223d24cdfe9706', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: '28eada8514684c55699bb22f390f48d129c9d1c6', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: '9db31a9fcec824cfde62545fa402c5a7a97c6f81', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '38b2e97d3185cf1483d49c26ff9b2746b4b08aaa', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '3f4d117cf6745fd3490c1196c1ae6f42e3185ae6', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: 'daf79a258a9bca9eda2a1f103daec21e8cbb0609', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: '34ee6ad51826802310a4f8a055211914da55747c', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
|
|
329
329
|
}
|
|
330
330
|
static get is() { return "salla-wishlist-actions"; }
|
|
331
331
|
static get originalStyleUrls() {
|
|
@@ -240,7 +240,7 @@ function findNearestBranch(branches, userLat, userLon) {
|
|
|
240
240
|
for (const b of branches) {
|
|
241
241
|
const lat = b.location?.lat != null ? Number(b.location.lat) : Number.NaN;
|
|
242
242
|
const lng = b.location?.lng != null ? Number(b.location.lng) : Number.NaN;
|
|
243
|
-
if (Number.isNaN(lat) || Number.isNaN(lng) || b
|
|
243
|
+
if (Number.isNaN(lat) || Number.isNaN(lng) || !isBranchSelectable(b))
|
|
244
244
|
continue;
|
|
245
245
|
const d = calculateDistance(userLat, userLon, lat, lng);
|
|
246
246
|
if (d < minD) {
|
|
@@ -302,4 +302,4 @@ const GEO_ERROR_MESSAGES = {
|
|
|
302
302
|
};
|
|
303
303
|
const getGeolocationErrorMessage = (errorCode) => GEO_ERROR_MESSAGES[errorCode] ?? 'An error occurred while detecting location';
|
|
304
304
|
|
|
305
|
-
export { getIntentLongitude as a, bulletDeliveryAPI as b, getIntentCityId as c, getIntentCountryId as d, getIntentRegionId as e, getIntentDistrictId as f, getIntentLatitude as g, hasSessionAddressIntent as h, isSaudiArabia as i,
|
|
305
|
+
export { getIntentLongitude as a, bulletDeliveryAPI as b, getIntentCityId as c, getIntentCountryId as d, getIntentRegionId as e, getIntentDistrictId as f, getIntentLatitude as g, hasSessionAddressIntent as h, isSaudiArabia as i, isBranchSelectable as j, filterBranches as k, getIntentBranchId as l, findNearestBranch as m, getGeolocationErrorMessage as n, clearApiCache as o, getIntentSubtitle as p, isMapOriginIntent as q, requireRegionAndDistrictForSA as r, getIntentCountryCode as s };
|