@salla.sa/twilight-components 2.14.467 → 2.14.469
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-Li5IcLEr.js → filepond-CG7dNZgq.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CXgEvsrj.js → filepond-plugin-file-poster-B1zrjwgr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DISjKBXN.js → filepond-plugin-file-validate-size-BqZtoWbe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BeDqb2RU.js → filepond-plugin-file-validate-type-BGmGKK9L.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CTKgasCY.js → filepond-plugin-image-edit-CYeh6qmG.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BqvyVbfM.js → filepond-plugin-image-exif-orientation-BEVpo-ZQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DfX-wD-s.js → filepond-plugin-image-preview-C7MMEZFE.js} +1 -1
- package/dist/cjs/{functions-DXNacMtu.js → functions-CnBVKKGk.js} +1 -1
- package/dist/cjs/{index-2n84VIdz.js → index-BNOCK3IN.js} +1 -1
- package/dist/cjs/{index-JuURs8Nc.js → index-inmL4H71.js} +9 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mail-Bgvt2hc9.js → mail-C9D8MHae.js} +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +29 -84
- 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-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +91 -7
- 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-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +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-gifting.cjs.entry.js +85 -31
- 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 +32 -2
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- 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-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- 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.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.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.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-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-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_2.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 +259 -64
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +3 -3
- package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -3
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +252 -32
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- 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-tooltip.cjs.entry.js +2 -2
- 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 +329 -0
- package/dist/cjs/{tracked-promise-BdbqBT_O.js → tracked-promise-DvLhM2Sx.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-Cj5ogibZ.js → vanilla-picker-DtuN6WGq.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +90 -6
- package/dist/collection/components/salla-gifting/salla-gifting.css +18 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +91 -31
- package/dist/collection/components/salla-login-modal/salla-login-modal.js +31 -1
- package/dist/collection/components/salla-product-options/salla-product-options.css +0 -3
- package/dist/collection/components/salla-product-options/salla-product-options.js +28 -84
- package/dist/collection/components/salla-products-list/salla-products-list.css +76 -0
- package/dist/collection/components/salla-products-list/salla-products-list.js +387 -65
- package/dist/collection/components/salla-social-share/salla-social-share.css +161 -0
- package/dist/collection/components/salla-social-share/salla-social-share.js +316 -50
- 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.css +65 -0
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +432 -0
- package/dist/components/index.js +5 -5
- package/dist/components/salla-bullet-delivery.js +90 -6
- package/dist/components/salla-gifting.js +86 -30
- package/dist/components/salla-login-modal2.js +31 -1
- package/dist/components/salla-product-options2.js +28 -84
- package/dist/components/salla-products-list2.js +266 -64
- package/dist/components/salla-social-share.js +1 -189
- package/dist/components/salla-social-share2.js +420 -0
- 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.d.ts +11 -0
- package/dist/components/salla-wishlist-actions.js +375 -0
- package/dist/esm/{filepond-Cpf2HNH9.js → filepond-D4dDq1wa.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CVurRtjC.js → filepond-plugin-file-poster-CcnsMPSH.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dw2xFbfx.js → filepond-plugin-file-validate-size-qgEgRYkk.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D6seJVa2.js → filepond-plugin-file-validate-type-BuFGnco8.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CBikW78V.js → filepond-plugin-image-edit-kS2Sie2d.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-5yNhe9TO.js → filepond-plugin-image-exif-orientation-Bjoh_of2.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-PlAAXB7f.js → filepond-plugin-image-preview-b_VEHHGf.js} +1 -1
- package/dist/esm/{functions-Egzz8fEM.js → functions-ISZQDw0y.js} +1 -1
- package/dist/esm/{index-Do4FV1UZ.js → index-CqC4wD_f.js} +1 -1
- package/dist/esm/{index-a4x9urdK.js → index-Cqh-ta1v.js} +9 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mail-DLNIOD9t.js → mail-DzAIgzdz.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 +29 -84
- 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-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +91 -7
- 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-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +3 -3
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +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-gifting.entry.js +85 -31
- 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 +32 -2
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +4 -4
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- 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-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map.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.entry.js +1 -1
- package/dist/esm/salla-notifications.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-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-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_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +259 -64
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +3 -3
- package/dist/esm/salla-rating-modal.entry.js +3 -3
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +252 -32
- package/dist/esm/salla-social.entry.js +1 -1
- 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-tooltip.entry.js +2 -2
- 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 +327 -0
- package/dist/esm/{tracked-promise-BX5clCDX.js → tracked-promise-CH_UyK-l.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DB0pDHa7.js → vanilla-picker-PE31tu9y.js} +1 -1
- package/dist/twilight/{p-afcb0117.entry.js → p-054c9462.entry.js} +1 -1
- package/dist/twilight/{p-78020271.entry.js → p-06372aeb.entry.js} +1 -1
- package/dist/twilight/p-06c06719.entry.js +4 -0
- package/dist/twilight/{p-16bcc5ab.entry.js → p-0c7efc0b.entry.js} +1 -1
- package/dist/twilight/{p-53cbb271.entry.js → p-0cca1b63.entry.js} +1 -1
- package/dist/twilight/{p-ad19661d.entry.js → p-1415eb5e.entry.js} +1 -1
- package/dist/twilight/{p-a53d5944.entry.js → p-14a3277b.entry.js} +1 -1
- package/dist/twilight/{p-92b02f3c.entry.js → p-15b3f969.entry.js} +1 -1
- package/dist/twilight/{p-241bd42e.entry.js → p-16b64bb5.entry.js} +1 -1
- package/dist/twilight/{p-37457147.entry.js → p-16c64a38.entry.js} +1 -1
- package/dist/twilight/{p-f5135cb5.entry.js → p-17920aa7.entry.js} +1 -1
- package/dist/twilight/{p-ec5ae058.entry.js → p-196fad8d.entry.js} +1 -1
- package/dist/twilight/{p-5803c158.entry.js → p-19fe2b27.entry.js} +1 -1
- package/dist/twilight/{p-316135f8.entry.js → p-1c0f9fd9.entry.js} +1 -1
- package/dist/twilight/{p-1130d4b7.entry.js → p-1db8b515.entry.js} +1 -1
- package/dist/twilight/{p-d0340e11.entry.js → p-219b14c4.entry.js} +1 -1
- package/dist/twilight/{p-127ee640.entry.js → p-227d11a0.entry.js} +1 -1
- package/dist/twilight/p-293a6d6b.entry.js +4 -0
- package/dist/twilight/{p-0c748664.entry.js → p-2ba603bc.entry.js} +1 -1
- package/dist/twilight/p-2dbb3b49.entry.js +4 -0
- package/dist/twilight/{p-5b365561.entry.js → p-31bd852c.entry.js} +1 -1
- package/dist/twilight/{p-92f3ea44.entry.js → p-32a7cb85.entry.js} +1 -1
- package/dist/twilight/{p-1a37b959.entry.js → p-32d5d279.entry.js} +1 -1
- package/dist/twilight/{p-91363b7e.entry.js → p-36884c05.entry.js} +1 -1
- package/dist/twilight/{p-13a033fa.entry.js → p-38a791cb.entry.js} +1 -1
- package/dist/twilight/{p-0b169d4e.entry.js → p-3b198162.entry.js} +1 -1
- package/dist/twilight/{p-735fafef.entry.js → p-3d517178.entry.js} +1 -1
- package/dist/twilight/{p-d9d4ea5b.entry.js → p-3e5a57cc.entry.js} +1 -1
- package/dist/twilight/{p-fa1cc092.entry.js → p-40eb9556.entry.js} +6 -6
- package/dist/twilight/{p-1ce817c2.entry.js → p-49181c4a.entry.js} +1 -1
- package/dist/twilight/p-4a81a708.entry.js +4 -0
- package/dist/twilight/{p-35ac1fc9.entry.js → p-4b20872a.entry.js} +1 -1
- package/dist/twilight/{p-e27363dd.entry.js → p-4c370853.entry.js} +1 -1
- package/dist/twilight/{p-e1205d19.entry.js → p-4ee20a54.entry.js} +1 -1
- package/dist/twilight/{p-b0bf7a5b.entry.js → p-51c30ec2.entry.js} +1 -1
- package/dist/twilight/{p-2bcfb4f3.entry.js → p-5334222c.entry.js} +1 -1
- package/dist/twilight/{p-c0380d40.entry.js → p-559bdcca.entry.js} +1 -1
- package/dist/twilight/{p-03d13b9f.entry.js → p-5701244a.entry.js} +1 -1
- package/dist/twilight/{p-0da78d4e.entry.js → p-5d364fc2.entry.js} +1 -1
- package/dist/twilight/{p-DiWHgCMH.js → p-5fxCpxw5.js} +1 -1
- package/dist/twilight/{p-08b2c781.entry.js → p-61ad2660.entry.js} +1 -1
- package/dist/twilight/p-6590acee.entry.js +4 -0
- package/dist/twilight/{p-b8ab7da8.entry.js → p-681f8874.entry.js} +1 -1
- package/dist/twilight/{p-d17596ff.entry.js → p-6b6f9822.entry.js} +1 -1
- package/dist/twilight/{p-4d393389.entry.js → p-6d23fd92.entry.js} +1 -1
- package/dist/twilight/p-6e723d46.entry.js +4 -0
- package/dist/twilight/{p-d33203b7.entry.js → p-71f2ba66.entry.js} +1 -1
- package/dist/twilight/{p-c8fd03c0.entry.js → p-732bd9fb.entry.js} +1 -1
- package/dist/twilight/{p-42a0b54a.entry.js → p-73d9e4c8.entry.js} +1 -1
- package/dist/twilight/{p-e90d18b2.entry.js → p-74e0d0c2.entry.js} +1 -1
- package/dist/twilight/{p-52fe97c8.entry.js → p-77d2312a.entry.js} +1 -1
- package/dist/twilight/{p-635347c9.entry.js → p-78ff445c.entry.js} +1 -1
- package/dist/twilight/{p-74a61155.entry.js → p-798fb3c7.entry.js} +1 -1
- package/dist/twilight/{p-e726123e.entry.js → p-79c20964.entry.js} +1 -1
- package/dist/twilight/{p-C4aFleDM.js → p-7FtjQghq.js} +1 -1
- package/dist/twilight/{p-0405f5e8.entry.js → p-7afe6e1a.entry.js} +1 -1
- package/dist/twilight/{p-b80adb19.entry.js → p-7e185acf.entry.js} +1 -1
- package/dist/twilight/{p-f684d7bf.entry.js → p-8b538bd7.entry.js} +1 -1
- package/dist/twilight/{p-bfbf8121.entry.js → p-8bcc3b86.entry.js} +1 -1
- package/dist/twilight/{p-a068fff4.entry.js → p-8db52fe9.entry.js} +1 -1
- package/dist/twilight/{p-89f11893.entry.js → p-93ec294d.entry.js} +1 -1
- package/dist/twilight/p-9785f314.entry.js +4 -0
- package/dist/twilight/{p-ff270706.entry.js → p-9a3f27e9.entry.js} +1 -1
- package/dist/twilight/{p-DSBkBAFI.js → p-B0uENqSF.js} +1 -1
- package/dist/twilight/{p-B7KW0zhB.js → p-C3kw3FEZ.js} +1 -1
- package/dist/twilight/{p-BVqg7xd9.js → p-CUfwD9kr.js} +1 -1
- package/dist/twilight/{p-a4x9urdK.js → p-Cqh-ta1v.js} +2 -2
- package/dist/twilight/{p-fCaOxwGH.js → p-DZ18vMT2.js} +1 -1
- package/dist/twilight/{p-EPfEwqOC.js → p-DyQ5MH6F.js} +1 -1
- package/dist/twilight/{p-DLNIOD9t.js → p-DzAIgzdz.js} +1 -1
- package/dist/twilight/{p-pOgjUtf9.js → p-J_27I63T.js} +1 -1
- package/dist/twilight/{p-10e0936d.entry.js → p-a85d80b5.entry.js} +1 -1
- package/dist/twilight/{p-6d47892b.entry.js → p-a918b812.entry.js} +1 -1
- package/dist/twilight/{p-ba1199ba.entry.js → p-aec0a2df.entry.js} +1 -1
- package/dist/twilight/{p-9b639078.entry.js → p-b16d8b19.entry.js} +1 -1
- package/dist/twilight/{p-ee605cef.entry.js → p-b295c1f1.entry.js} +1 -1
- package/dist/twilight/{p-0957f323.entry.js → p-b6c0aa79.entry.js} +1 -1
- package/dist/twilight/{p-0bdf58a4.entry.js → p-b7727021.entry.js} +1 -1
- package/dist/twilight/{p-e8a82952.entry.js → p-badf4c9d.entry.js} +1 -1
- package/dist/twilight/{p-fe506679.entry.js → p-c6be8afd.entry.js} +1 -1
- package/dist/twilight/{p-ec073354.entry.js → p-ccd8c960.entry.js} +1 -1
- package/dist/twilight/{p-3fbd88d0.entry.js → p-ce0410d5.entry.js} +1 -1
- package/dist/twilight/{p-ef8fb222.entry.js → p-cee7a8ad.entry.js} +1 -1
- package/dist/twilight/{p-f6bb956c.entry.js → p-d0c8435f.entry.js} +1 -1
- package/dist/twilight/{p-59f815bc.entry.js → p-d23eeb0c.entry.js} +1 -1
- package/dist/twilight/{p-f170aff7.entry.js → p-d63f2cbd.entry.js} +1 -1
- package/dist/twilight/{p-6d87b134.entry.js → p-d6b6a8ad.entry.js} +1 -1
- package/dist/twilight/{p-b0ed6a9f.entry.js → p-d823cbcd.entry.js} +1 -1
- package/dist/twilight/{p-9df5c9a7.entry.js → p-d8f22e4b.entry.js} +1 -1
- package/dist/twilight/{p-CsMnvJkR.js → p-dKdk2xpB.js} +1 -1
- package/dist/twilight/p-dbdbb882.entry.js +4 -0
- package/dist/twilight/{p-d905fbca.entry.js → p-dc8555bf.entry.js} +1 -1
- package/dist/twilight/{p-fbfacb11.entry.js → p-dca3b67e.entry.js} +1 -1
- package/dist/twilight/{p-056400a1.entry.js → p-e0671ff1.entry.js} +1 -1
- package/dist/twilight/{p-59f7f014.entry.js → p-e06e37c1.entry.js} +1 -1
- package/dist/twilight/{p-c60c302f.entry.js → p-e265d626.entry.js} +1 -1
- package/dist/twilight/{p-61b1fd3b.entry.js → p-f0e96875.entry.js} +1 -1
- package/dist/twilight/p-f64168cc.entry.js +4 -0
- package/dist/twilight/{p-0b1970c2.entry.js → p-f67639df.entry.js} +1 -1
- package/dist/twilight/{p-fa039238.entry.js → p-fd180bd3.entry.js} +1 -1
- package/dist/twilight/{p-D9ni3BuG.js → p-m2p-QAbu.js} +1 -1
- package/dist/twilight/{p-CkA6UKAD.js → p-yyvPGK6r.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +16 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +4 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +5 -1
- package/dist/types/components/salla-login-modal/salla-login-modal.d.ts +2 -0
- package/dist/types/components/salla-product-options/salla-product-options.d.ts +0 -11
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +60 -6
- package/dist/types/components/salla-social-share/salla-social-share.d.ts +39 -2
- package/dist/types/components/salla-wishlist-actions/salla-wishlist-actions.d.ts +93 -0
- package/dist/types/components.d.ts +172 -18
- package/package.json +5 -5
- package/dist/twilight/p-234fdf72.entry.js +0 -4
- package/dist/twilight/p-7a1cfd65.entry.js +0 -4
- package/dist/twilight/p-865c602e.entry.js +0 -4
- package/dist/twilight/p-9dc0fec4.entry.js +0 -4
- package/dist/twilight/p-e485d0b8.entry.js +0 -4
- package/dist/twilight/p-f5072671.entry.js +0 -4
- package/dist/twilight/p-fb7904e6.entry.js +0 -4
- package/dist/twilight/p-fdde8399.entry.js +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
var calendar = require('./calendar-D-PUoCDH.js');
|
|
8
8
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
9
9
|
var minus = require('./minus-CCryh1qf.js');
|
|
@@ -378,7 +378,7 @@ const SallaColorPicker = class {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
initColorPicker() {
|
|
381
|
-
this.pickerReady = Promise.resolve().then(function () { return require('./vanilla-picker-
|
|
381
|
+
this.pickerReady = Promise.resolve().then(function () { return require('./vanilla-picker-DtuN6WGq.js'); }).then(function (n) { return n.vanillaPicker; }).then(mod => {
|
|
382
382
|
const Picker = mod.default;
|
|
383
383
|
const picker = new Picker({
|
|
384
384
|
parent: this.host,
|
|
@@ -838,13 +838,13 @@ const SallaFileUpload = class {
|
|
|
838
838
|
return;
|
|
839
839
|
try {
|
|
840
840
|
const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
|
|
841
|
-
Promise.resolve().then(function () { return require('./filepond-
|
|
842
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-
|
|
843
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-
|
|
844
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-
|
|
845
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-
|
|
846
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-
|
|
847
|
-
Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-
|
|
841
|
+
Promise.resolve().then(function () { return require('./filepond-CG7dNZgq.js'); }).then(function (n) { return n.filepond; }),
|
|
842
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-size-BqZtoWbe.js'); }).then(function (n) { return n.filepondPluginFileValidateSize; }),
|
|
843
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-exif-orientation-BEVpo-ZQ.js'); }).then(function (n) { return n.filepondPluginImageExifOrientation; }),
|
|
844
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-preview-C7MMEZFE.js'); }).then(function (n) { return n.filepondPluginImagePreview; }),
|
|
845
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-image-edit-CYeh6qmG.js'); }).then(function (n) { return n.filepondPluginImageEdit; }),
|
|
846
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-validate-type-BGmGKK9L.js'); }).then(function (n) { return n.filepondPluginFileValidateType; }),
|
|
847
|
+
Promise.resolve().then(function () { return require('./filepond-plugin-file-poster-B1zrjwgr.js'); }).then(function (n) { return n.filepondPluginFilePoster; })
|
|
848
848
|
]);
|
|
849
849
|
this.FilePond = FilePondModule;
|
|
850
850
|
// Register plugins
|
|
@@ -1445,7 +1445,7 @@ const SallaTelInput = class {
|
|
|
1445
1445
|
if (this.TelInput)
|
|
1446
1446
|
return;
|
|
1447
1447
|
try {
|
|
1448
|
-
const telInputModule = await Promise.resolve().then(function () { return require('./index-
|
|
1448
|
+
const telInputModule = await Promise.resolve().then(function () { return require('./index-BNOCK3IN.js'); }).then(function (n) { return n.index; });
|
|
1449
1449
|
this.TelInput = telInputModule.default;
|
|
1450
1450
|
}
|
|
1451
1451
|
catch (error) {
|
|
@@ -1559,7 +1559,7 @@ const SallaTelInput = class {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
1561
|
render() {
|
|
1562
|
-
return (index.h(index.Host, { key: '
|
|
1562
|
+
return (index.h(index.Host, { key: '278424c0918dc3c4b6aac8da5817376d784995ac', class: "s-tel-input" }, index.h("input", { key: '00ff8ed40ff9aabe9bea6cfd43c41f5b2cfc5529', 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" }), index.h("span", { key: '68e791d4d1b6490a84a3ef31c75f41be90ac5bb6', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), index.h("input", { key: '415e6521c2ef756ebabbeb4610c06158e255320d', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
1563
1563
|
}
|
|
1564
1564
|
componentDidLoad() {
|
|
1565
1565
|
this.initTelInput();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
var location = require('./location-DIyESLuI.js');
|
|
8
8
|
var search = require('./search-c7Aa7lM9.js');
|
|
9
9
|
|
|
@@ -4806,6 +4806,8 @@ const sallaBulletDeliveryCss = "@supports (interpolate-size: allow-keywords) and
|
|
|
4806
4806
|
|
|
4807
4807
|
const BRANCH_SEARCH_DEBOUNCE_MS = 1000;
|
|
4808
4808
|
const GEOLOCATION_TIMEOUT = 10000;
|
|
4809
|
+
/** Final fallback center used only if `user.default_geo_location` is absent (Riyadh — matches checkout map-page). */
|
|
4810
|
+
const DEFAULT_MAP_CENTER = { lat: 24.7756042, lng: 46.7360729 };
|
|
4809
4811
|
const DEBUG_KEY = 'salla-bullet-delivery-debug';
|
|
4810
4812
|
const OVERRIDE_IP_KEY = 'salla-bullet-delivery-override-ip';
|
|
4811
4813
|
function log(message, data) {
|
|
@@ -4857,6 +4859,8 @@ const SallaBulletDelivery = class {
|
|
|
4857
4859
|
/** True after saved addresses have been loaded (lazy: only when address tab is shown). */
|
|
4858
4860
|
this.savedAddressesLoaded = false;
|
|
4859
4861
|
this.gmapRef = null;
|
|
4862
|
+
/** Guards against re-prompting for geolocation each time the map (re)initializes within one flow. */
|
|
4863
|
+
this.autoGeolocationTriggered = false;
|
|
4860
4864
|
// Core state
|
|
4861
4865
|
this.activeTab = "address";
|
|
4862
4866
|
this.isLoggedIn = false;
|
|
@@ -4998,6 +5002,8 @@ const SallaBulletDelivery = class {
|
|
|
4998
5002
|
shortAddress: detail.place?.placeId ?? detail.place?.place_id ?? undefined,
|
|
4999
5003
|
formattedAddress: detail.place?.formattedAddress ?? detail.place?.formatted_address ?? undefined,
|
|
5000
5004
|
};
|
|
5005
|
+
// Bias autocomplete results toward the currently selected location.
|
|
5006
|
+
this.updateLocationBias();
|
|
5001
5007
|
setTimeout(() => {
|
|
5002
5008
|
const marker = this.gmapRef?.locationMarker;
|
|
5003
5009
|
if (marker)
|
|
@@ -5009,6 +5015,25 @@ const SallaBulletDelivery = class {
|
|
|
5009
5015
|
if (this.gmapRef && typeof this.gmapRef.resize === 'function') {
|
|
5010
5016
|
this.gmapRef.resize();
|
|
5011
5017
|
}
|
|
5018
|
+
this.updateLocationBias();
|
|
5019
|
+
// Auto-locate the customer so the map never opens "empty" — matches checkout map-page
|
|
5020
|
+
// (getCurrentLocation(true) pans to the resolved position). Skip if a location is already set
|
|
5021
|
+
// (e.g. returning from the confirm step). Falls back silently to mapInitialCenter if denied.
|
|
5022
|
+
if (!this.autoGeolocationTriggered && !this.hasMapLocation() && this.gmapRef) {
|
|
5023
|
+
const getCurrentLocation = this.gmapRef.getCurrentLocation;
|
|
5024
|
+
if (typeof getCurrentLocation === 'function') {
|
|
5025
|
+
this.autoGeolocationTriggered = true;
|
|
5026
|
+
try {
|
|
5027
|
+
const result = getCurrentLocation.call(this.gmapRef, true);
|
|
5028
|
+
if (result && typeof result.catch === 'function') {
|
|
5029
|
+
result.catch((err) => log('Auto geolocation failed', err));
|
|
5030
|
+
}
|
|
5031
|
+
}
|
|
5032
|
+
catch (err) {
|
|
5033
|
+
log('Auto geolocation threw', err);
|
|
5034
|
+
}
|
|
5035
|
+
}
|
|
5036
|
+
}
|
|
5012
5037
|
};
|
|
5013
5038
|
/**
|
|
5014
5039
|
* Submit add-address form: create address via API then switch back to list.
|
|
@@ -5132,6 +5157,9 @@ const SallaBulletDelivery = class {
|
|
|
5132
5157
|
get isRequired() {
|
|
5133
5158
|
return !!Salla.config.get("store.settings.bullet_delivery.settings.is_required");
|
|
5134
5159
|
}
|
|
5160
|
+
get isSupportsDelivery() {
|
|
5161
|
+
return !!Salla.config.get("store.settings.bullet_delivery.supports_delivery");
|
|
5162
|
+
}
|
|
5135
5163
|
get isMobileApp() {
|
|
5136
5164
|
return Salla.config.isMobileApp();
|
|
5137
5165
|
}
|
|
@@ -5240,6 +5268,7 @@ const SallaBulletDelivery = class {
|
|
|
5240
5268
|
}
|
|
5241
5269
|
resetState() {
|
|
5242
5270
|
this.viewMode = "main";
|
|
5271
|
+
this.autoGeolocationTriggered = false;
|
|
5243
5272
|
this.selectedCountry = null;
|
|
5244
5273
|
this.selectedRegion = null;
|
|
5245
5274
|
this.selectedCity = null;
|
|
@@ -5317,12 +5346,27 @@ const SallaBulletDelivery = class {
|
|
|
5317
5346
|
// only when it represents a valid session-style address.
|
|
5318
5347
|
return hasSessionAddressIntent(intent);
|
|
5319
5348
|
}
|
|
5349
|
+
/**
|
|
5350
|
+
* Whether the store still supports the delivery method captured in a stored
|
|
5351
|
+
* intent. Shared by the cart pill and the cart-submit gate so an unsupported
|
|
5352
|
+
* method (e.g. a remembered delivery address in a now pickup-only store) is
|
|
5353
|
+
* never treated as a valid/complete selection.
|
|
5354
|
+
*/
|
|
5355
|
+
isIntentMethodSupported(intent) {
|
|
5356
|
+
if (intent.type === "branch")
|
|
5357
|
+
return this.supportsPickup;
|
|
5358
|
+
if (intent.type === "address")
|
|
5359
|
+
return this.isSupportsDelivery;
|
|
5360
|
+
return false;
|
|
5361
|
+
}
|
|
5320
5362
|
hasCompleteIntentForLoggedInUser() {
|
|
5321
5363
|
if (this.isGuestUser())
|
|
5322
5364
|
return false;
|
|
5323
5365
|
const intent = this.getStoredIntent();
|
|
5324
5366
|
if (!intent)
|
|
5325
5367
|
return false;
|
|
5368
|
+
if (!this.isIntentMethodSupported(intent))
|
|
5369
|
+
return false;
|
|
5326
5370
|
if (intent.type === "address")
|
|
5327
5371
|
return !!intent.address_id;
|
|
5328
5372
|
if (intent.type === "branch")
|
|
@@ -5900,6 +5944,7 @@ const SallaBulletDelivery = class {
|
|
|
5900
5944
|
async handleAddNewAddress() {
|
|
5901
5945
|
this.viewMode = "add-address";
|
|
5902
5946
|
this.mapLocationData = null;
|
|
5947
|
+
this.autoGeolocationTriggered = false;
|
|
5903
5948
|
this.fetchAddressToken();
|
|
5904
5949
|
const intent = this.getStoredIntent();
|
|
5905
5950
|
const sessionCountryId = getIntentCountryId(intent);
|
|
@@ -5922,6 +5967,7 @@ const SallaBulletDelivery = class {
|
|
|
5922
5967
|
this.mapLocationData = null;
|
|
5923
5968
|
this.mapStep = 'map';
|
|
5924
5969
|
this.addressDescription = '';
|
|
5970
|
+
this.autoGeolocationTriggered = false;
|
|
5925
5971
|
}
|
|
5926
5972
|
// ─── Map methods ───
|
|
5927
5973
|
async fetchAddressToken() {
|
|
@@ -5946,6 +5992,15 @@ const SallaBulletDelivery = class {
|
|
|
5946
5992
|
this.loadingToken = false;
|
|
5947
5993
|
}
|
|
5948
5994
|
}
|
|
5995
|
+
/** Bias autocomplete toward the current selection (or the initial center) — mirrors checkout's map-page. */
|
|
5996
|
+
updateLocationBias() {
|
|
5997
|
+
if (!this.gmapRef)
|
|
5998
|
+
return;
|
|
5999
|
+
const center = this.hasMapLocation()
|
|
6000
|
+
? { lat: this.mapLocationData.lat, lng: this.mapLocationData.lng }
|
|
6001
|
+
: this.mapInitialCenter;
|
|
6002
|
+
this.gmapRef.autocompleteLocationBias = { center, radius: 500000 };
|
|
6003
|
+
}
|
|
5949
6004
|
hasMapLocation() {
|
|
5950
6005
|
return this.mapLocationData?.lat != null && this.mapLocationData?.lng != null;
|
|
5951
6006
|
}
|
|
@@ -5956,6 +6011,27 @@ const SallaBulletDelivery = class {
|
|
|
5956
6011
|
get isMapModeAvailable() {
|
|
5957
6012
|
return this.isMapSettingEnabled && !!salla.config.get('store.settings.keys.maps') && !!this.addressToken;
|
|
5958
6013
|
}
|
|
6014
|
+
/** Center shown before geolocation resolves — the customer's IP-based default (falls back to Riyadh). */
|
|
6015
|
+
get mapInitialCenter() {
|
|
6016
|
+
const geo = salla.config.get('user.default_geo_location');
|
|
6017
|
+
// Coerce defensively: config may arrive as strings, blank/whitespace, NaN, or out-of-range
|
|
6018
|
+
// values. Reject blanks before coercion (Number('') === 0) and validate lat/lng ranges so we
|
|
6019
|
+
// never feed (0,0) or an invalid point to the map; otherwise fall back to the default center.
|
|
6020
|
+
const lat = this.toCoordinate(geo?.lat);
|
|
6021
|
+
const lng = this.toCoordinate(geo?.lng);
|
|
6022
|
+
const isValid = lat != null && lng != null &&
|
|
6023
|
+
lat >= -90 && lat <= 90 && lng >= -180 && lng <= 180;
|
|
6024
|
+
return isValid ? { lat, lng } : DEFAULT_MAP_CENTER;
|
|
6025
|
+
}
|
|
6026
|
+
/** Parse a config coordinate to a finite number, treating blank/whitespace strings as missing. */
|
|
6027
|
+
toCoordinate(value) {
|
|
6028
|
+
if (typeof value === 'string' && value.trim() === '')
|
|
6029
|
+
return null;
|
|
6030
|
+
if (value == null)
|
|
6031
|
+
return null;
|
|
6032
|
+
const num = Number(value);
|
|
6033
|
+
return Number.isFinite(num) ? num : null;
|
|
6034
|
+
}
|
|
5959
6035
|
// ─── End Map methods ───
|
|
5960
6036
|
/**
|
|
5961
6037
|
* Build address/location payload from guest-form state (same fields as add-address).
|
|
@@ -6526,10 +6602,10 @@ const SallaBulletDelivery = class {
|
|
|
6526
6602
|
getCartViewConfig(intent) {
|
|
6527
6603
|
if (!intent || !Salla.url.is_page("cart"))
|
|
6528
6604
|
return null;
|
|
6605
|
+
if (!this.isIntentMethodSupported(intent))
|
|
6606
|
+
return null;
|
|
6529
6607
|
const isBranch = intent.type === "branch";
|
|
6530
6608
|
const isAddress = intent.type === "address";
|
|
6531
|
-
if ((isBranch && !this.supportsPickup) || (!isBranch && !isAddress))
|
|
6532
|
-
return null;
|
|
6533
6609
|
return {
|
|
6534
6610
|
title: isBranch
|
|
6535
6611
|
? Salla.lang.get("pages.checkout.pickup_option")
|
|
@@ -6579,13 +6655,15 @@ const SallaBulletDelivery = class {
|
|
|
6579
6655
|
return wrapper;
|
|
6580
6656
|
}
|
|
6581
6657
|
renderTabs() {
|
|
6582
|
-
// Show tabs only when pickup is supported; otherwise delivery-only view with no tabs
|
|
6658
|
+
// Show tabs only when pickup is supported; otherwise delivery-only view with no tabs.
|
|
6659
|
+
// The pickup tab is gated by this same `supportsPickup` check, while the delivery
|
|
6660
|
+
// tab is shown only when bullet delivery supports delivery (`isSupportsDelivery`).
|
|
6583
6661
|
if (!this.supportsPickup)
|
|
6584
6662
|
return null;
|
|
6585
|
-
return (index.h("div", { class: "s-bullet-delivery-tabs" }, index.h("button", { type: "button", class: {
|
|
6663
|
+
return (index.h("div", { class: "s-bullet-delivery-tabs" }, this.isSupportsDelivery && (index.h("button", { type: "button", class: {
|
|
6586
6664
|
"s-bullet-delivery-tab": true,
|
|
6587
6665
|
"s-bullet-delivery-tab--active": this.activeTab === "address",
|
|
6588
|
-
}, onClick: () => this.handleTabChange("address") }, index.h("span", { class: "s-bullet-delivery-tab-icon", innerHTML: location.Location, "aria-hidden": "true" }), index.h("span", null, Salla.lang.get("mobile_app.strings.delivery"))), index.h("button", { type: "button", class: {
|
|
6666
|
+
}, onClick: () => this.handleTabChange("address") }, index.h("span", { class: "s-bullet-delivery-tab-icon", innerHTML: location.Location, "aria-hidden": "true" }), index.h("span", null, Salla.lang.get("mobile_app.strings.delivery")))), index.h("button", { type: "button", class: {
|
|
6589
6667
|
"s-bullet-delivery-tab": true,
|
|
6590
6668
|
"s-bullet-delivery-tab--active": this.activeTab === "branch",
|
|
6591
6669
|
}, onClick: () => this.handleTabChange("branch") }, index.h("span", { class: "s-bullet-delivery-tab-icon", innerHTML: Store, "aria-hidden": "true" }), index.h("span", null, Salla.lang.get("mobile_app.strings.pickup")))));
|
|
@@ -6738,7 +6816,13 @@ const SallaBulletDelivery = class {
|
|
|
6738
6816
|
}
|
|
6739
6817
|
renderMapSection() {
|
|
6740
6818
|
const isSA = isSaudiArabia(this.selectedCountry?.code ?? '');
|
|
6741
|
-
|
|
6819
|
+
const loc = this.mapLocationData;
|
|
6820
|
+
const hasLoc = loc?.lat != null && loc?.lng != null;
|
|
6821
|
+
// Resolve the center once (the getter reads salla.config) and reuse it for the marker so the
|
|
6822
|
+
// map never opens "empty": before a selection the marker sits on the IP/Riyadh default and is
|
|
6823
|
+
// dragged/replaced once auto-geolocation or the user picks a real position.
|
|
6824
|
+
const center = hasLoc ? { lat: loc.lat, lng: loc.lng } : this.mapInitialCenter;
|
|
6825
|
+
return (index.h("div", { class: "s-bullet-delivery-map-container" }, index.h("gmap-map", { ref: (el) => (this.gmapRef = el), center: center, zoom: 16, "min-zoom": 4, "max-zoom": 21, "map-id": "DEMO_MAP_ID", "enable-autocomplete": true, "enable-geolocation": true, "show-location-marker": true, "location-marker-position": hasLoc ? { lat: loc.lat, lng: loc.lng, accuracy: 50 } : { ...center, accuracy: 50 }, language: Salla.lang.getLocale?.() ?? document.documentElement.lang ?? 'ar', "geolocation-button-label": Salla.lang.get('pages.checkout.current_location'), "autocomplete-placeholder": Salla.lang.get('pages.checkout.search_for_address'), "autocomplete-hint": isSA ? Salla.lang.get('pages.checkout.short_address_format_validation') : undefined, "autocomplete-country": this.selectedCountry?.code?.toLowerCase(), "autocomplete-resolve": false, "autocomplete-auth-token": this.addressToken, "location-marker-background": "#4285F4", "location-marker-border-color": "#1967D2", "location-marker-glyph-color": "#FFFFFF", "location-marker-scale": 1.3, "onGmap-location-changed": this.handleMapLocationChanged, "onGmap-ready": this.handleMapReady })));
|
|
6742
6826
|
}
|
|
6743
6827
|
renderAddressConfirmation() {
|
|
6744
6828
|
const address = this.mapLocationData?.formattedAddress ?? '';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
var specialDiscount = require('./special-discount-DC2oXurL.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var tagMoney = require('./tag-money-Cuohw_4j.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
|
|
8
8
|
var StarFilledIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
9
|
<g clip-path="url(#clip0_5667_2008)">
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
|
|
8
|
-
var mail = require('./mail-
|
|
8
|
+
var mail = require('./mail-C9D8MHae.js');
|
|
9
9
|
|
|
10
10
|
var mobile = `<!-- Generated by IcoMoon.io -->
|
|
11
11
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -34,7 +34,7 @@ const SallaContacts = class {
|
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
index.registerInstance(this, hostRef);
|
|
36
36
|
this.contacts = salla.config.get('store.contacts');
|
|
37
|
-
this.iconsList = { mobile, whatsapp: whatsapp2.WhatsappIcon, phone, telegram, email: mail.
|
|
37
|
+
this.iconsList = { mobile, whatsapp: whatsapp2.WhatsappIcon, phone, telegram, email: mail.email };
|
|
38
38
|
this.contactSlot = this.host.querySelector('[slot="contact"]')?.innerHTML || `<a href={link} class="s-contacts-item"><span class="s-contacts-icon">{icon}</span>${!this.iconsOnly && "<span class='unicode'>{value}</span>"}</a>`;
|
|
39
39
|
salla.onReady(() => {
|
|
40
40
|
this.contacts = salla.config.get('store.contacts');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
|
|
8
8
|
const sallaCookiesBarCss = ":host{display:block;overflow:visible}.s-cookies-bar{box-shadow:0 0 20px 4px rgba(0, 0, 0, 0.15)}.s-cookies-bar-btn--active{box-shadow:0 0 0 2px rgba(0, 0, 0, 0.08)}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-inmL4H71.js');
|
|
7
7
|
|
|
8
8
|
const sallaCountDownCss = ".s-count-down-horizontal{background-color:rgba(0, 0, 0, 0.06);background-color:color-mix(in srgb, var(--color-primary) 10%, transparent)}";
|
|
9
9
|
|