@salla.sa/twilight-components 2.14.440 → 2.14.441
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-DOOLwTpX.js → filepond-CR18WANU.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D7nMzJ2p.js → filepond-plugin-file-poster-BgJLk2xE.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DpCJ71im.js → filepond-plugin-file-validate-size-DdhORRaG.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CDZ5OaBc.js → filepond-plugin-file-validate-type-Cub0X5ah.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BzGZimte.js → filepond-plugin-image-edit-DgEsDjWT.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D1fPPBi_.js → filepond-plugin-image-exif-orientation-BTfUfEsw.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CEhIwZKp.js → filepond-plugin-image-preview-HZ3u1SlT.js} +1 -1
- package/dist/cjs/{functions-CdVaIsQM.js → functions-D9RJmmeE.js} +1 -1
- package/dist/cjs/{index-E66k07Rj.js → index-BTssS-W3.js} +1 -1
- package/dist/cjs/{index-oqqfD8M2.js → index-ChjKTah1.js} +6 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- 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 +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +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 +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 +41 -35
- 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 +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.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- 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-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-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 +1 -1
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +48 -31
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DV0VuqZL.js → tracked-promise-kKXrk2xR.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-DvOQTQXG.js → vanilla-picker-DchwguNU.js} +1 -1
- package/dist/collection/components/salla-delivery-promise/delivery-promise-api.js +4 -3
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +38 -25
- package/dist/collection/components/salla-tiered-offer/salla-tiered-offer.js +47 -30
- package/dist/components/index.js +2 -2
- package/dist/components/salla-delivery-promise.js +54 -42
- package/dist/components/salla-tiered-offer.js +47 -30
- package/dist/esm/{filepond-Crf00c7G.js → filepond-DKQDCbwV.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-B3uKBJe-.js → filepond-plugin-file-poster-SawqMYzR.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CWVDRdsV.js → filepond-plugin-file-validate-size-BmxmtaD4.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-VQGNZwF9.js → filepond-plugin-file-validate-type-CCuZxfqE.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DOhXVk8j.js → filepond-plugin-image-edit-BW1mzub6.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Co8jzTVW.js → filepond-plugin-image-exif-orientation-CN08NQm5.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-gQWAQlCp.js → filepond-plugin-image-preview-HKD_HLA1.js} +1 -1
- package/dist/esm/{functions-D8zpoRMj.js → functions-hYdCF4RE.js} +1 -1
- package/dist/esm/{index-XEcnGv2r.js → index-DMcU-3GG.js} +6 -6
- package/dist/esm/{index-DX6k_dv6.js → index-VfKYpHVb.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- 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 +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- 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 +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 +41 -35
- 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 +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.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- 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-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-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 +1 -1
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +48 -31
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/{tracked-promise-DhOWivzL.js → tracked-promise-BSIJGUDO.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-C0njJzZd.js → vanilla-picker-DKFizE1R.js} +1 -1
- package/dist/twilight/{p-eab889dc.entry.js → p-057303fc.entry.js} +1 -1
- package/dist/twilight/{p-2eddcffd.entry.js → p-0da228bd.entry.js} +1 -1
- package/dist/twilight/{p-33362e8b.entry.js → p-0e7eded5.entry.js} +1 -1
- package/dist/twilight/{p-f34ea06b.entry.js → p-1344cda3.entry.js} +1 -1
- package/dist/twilight/{p-a2fa4306.entry.js → p-1694c751.entry.js} +1 -1
- package/dist/twilight/{p-07d26676.entry.js → p-169f09fe.entry.js} +1 -1
- package/dist/twilight/{p-57a9293b.entry.js → p-180ecec6.entry.js} +1 -1
- package/dist/twilight/{p-5fd650c4.entry.js → p-18788bb9.entry.js} +1 -1
- package/dist/twilight/{p-07f973b1.entry.js → p-21d225b0.entry.js} +1 -1
- package/dist/twilight/{p-a49d9c6e.entry.js → p-255c1c94.entry.js} +1 -1
- package/dist/twilight/{p-56bd83f4.entry.js → p-2813f52f.entry.js} +1 -1
- package/dist/twilight/{p-d34f2a6c.entry.js → p-28312faf.entry.js} +1 -1
- package/dist/twilight/p-2a820928.entry.js +4 -0
- package/dist/twilight/{p-d0b10f8b.entry.js → p-2da4174e.entry.js} +1 -1
- package/dist/twilight/{p-31b06705.entry.js → p-2fb7fda6.entry.js} +1 -1
- package/dist/twilight/{p-d1808642.entry.js → p-31b6ab69.entry.js} +1 -1
- package/dist/twilight/{p-d1e67236.entry.js → p-329e0ccf.entry.js} +1 -1
- package/dist/twilight/{p-c3432589.entry.js → p-32b4986d.entry.js} +1 -1
- package/dist/twilight/{p-11da2f39.entry.js → p-373ab9bb.entry.js} +1 -1
- package/dist/twilight/{p-aeeec3d8.entry.js → p-37571489.entry.js} +1 -1
- package/dist/twilight/{p-3ba87443.entry.js → p-37871613.entry.js} +1 -1
- package/dist/twilight/p-399f5ab8.entry.js +4 -0
- package/dist/twilight/{p-461cd74c.entry.js → p-3f65d67b.entry.js} +1 -1
- package/dist/twilight/{p-203d6ae6.entry.js → p-4b837a59.entry.js} +1 -1
- package/dist/twilight/{p-c612ad0b.entry.js → p-52566485.entry.js} +1 -1
- package/dist/twilight/{p-f8d7196e.entry.js → p-53ff0bad.entry.js} +1 -1
- package/dist/twilight/{p-3e054be0.entry.js → p-5afc64f0.entry.js} +1 -1
- package/dist/twilight/{p-39498902.entry.js → p-5ee27511.entry.js} +1 -1
- package/dist/twilight/{p-aaf3736b.entry.js → p-5f417c00.entry.js} +1 -1
- package/dist/twilight/{p-05ae76f4.entry.js → p-608cc0c1.entry.js} +1 -1
- package/dist/twilight/{p-5df17c20.entry.js → p-6bc527ce.entry.js} +1 -1
- package/dist/twilight/{p-4a3b5eca.entry.js → p-6c3c2930.entry.js} +1 -1
- package/dist/twilight/{p-ed55bd99.entry.js → p-745a99a6.entry.js} +1 -1
- package/dist/twilight/{p-8c34fab2.entry.js → p-797fb657.entry.js} +1 -1
- package/dist/twilight/{p-b1f79652.entry.js → p-81bc0869.entry.js} +1 -1
- package/dist/twilight/{p-b3859adb.entry.js → p-85de11d2.entry.js} +1 -1
- package/dist/twilight/{p-c999abc3.entry.js → p-8ad1aba2.entry.js} +1 -1
- package/dist/twilight/{p-9c2942c3.entry.js → p-8d723a8b.entry.js} +1 -1
- package/dist/twilight/{p-ed770165.entry.js → p-8feebf4d.entry.js} +1 -1
- package/dist/twilight/{p-55dfaddd.entry.js → p-90e5db90.entry.js} +1 -1
- package/dist/twilight/{p-9731d50b.entry.js → p-939d986e.entry.js} +1 -1
- package/dist/twilight/{p-60d7a5e2.entry.js → p-93f4a2b4.entry.js} +1 -1
- package/dist/twilight/{p-06f77f81.entry.js → p-94539039.entry.js} +1 -1
- package/dist/twilight/{p-bea56108.entry.js → p-9581bcc7.entry.js} +1 -1
- package/dist/twilight/{p-93e060da.entry.js → p-9b3549cd.entry.js} +1 -1
- package/dist/twilight/{p-CMvDceec.js → p-B4668CGH.js} +1 -1
- package/dist/twilight/{p-DL6eUQYK.js → p-BQ05LMoe.js} +1 -1
- package/dist/twilight/{p-B5kt5KrJ.js → p-BmFzQ6g-.js} +1 -1
- package/dist/twilight/{p-DWyUFC7G.js → p-BrqihLUh.js} +1 -1
- package/dist/twilight/{p-Cw0D47mx.js → p-ByYVb96L.js} +1 -1
- package/dist/twilight/{p-DvOajQJL.js → p-CCQCS6cn.js} +1 -1
- package/dist/twilight/{p-B2jZw8NF.js → p-CI4TbxNl.js} +1 -1
- package/dist/twilight/{p-XEcnGv2r.js → p-DMcU-3GG.js} +1 -1
- package/dist/twilight/{p-DrCHWc9_.js → p-DwT-8WBr.js} +1 -1
- package/dist/twilight/p-Dz1v02Mc.js +9 -0
- package/dist/twilight/{p-6ab3e94b.entry.js → p-a30cbec7.entry.js} +1 -1
- package/dist/twilight/{p-5c972b65.entry.js → p-abed2dbc.entry.js} +1 -1
- package/dist/twilight/{p-1d8eb252.entry.js → p-aca35083.entry.js} +1 -1
- package/dist/twilight/{p-9c3d5fdc.entry.js → p-ad2a24ee.entry.js} +1 -1
- package/dist/twilight/{p-6ff38910.entry.js → p-ad3e6082.entry.js} +1 -1
- package/dist/twilight/{p-925690e3.entry.js → p-ad3ed8de.entry.js} +1 -1
- package/dist/twilight/{p-f1bed530.entry.js → p-b0882f69.entry.js} +1 -1
- package/dist/twilight/{p-c12ff95c.entry.js → p-b0923292.entry.js} +1 -1
- package/dist/twilight/{p-6d35b20c.entry.js → p-b36b9c00.entry.js} +1 -1
- package/dist/twilight/{p-2dce17b0.entry.js → p-b7aa5687.entry.js} +1 -1
- package/dist/twilight/{p-c5250fca.entry.js → p-b9064a54.entry.js} +1 -1
- package/dist/twilight/{p-8207fb6f.entry.js → p-b9fb7536.entry.js} +1 -1
- package/dist/twilight/{p-c55b672d.entry.js → p-bab4e280.entry.js} +1 -1
- package/dist/twilight/{p-cd5722c4.entry.js → p-bd4140b1.entry.js} +1 -1
- package/dist/twilight/{p-c0162a6e.entry.js → p-bf500346.entry.js} +1 -1
- package/dist/twilight/{p-6fed57e8.entry.js → p-c1ce3f7a.entry.js} +1 -1
- package/dist/twilight/{p-f076d705.entry.js → p-c1e5b2f2.entry.js} +1 -1
- package/dist/twilight/{p-0c342e2d.entry.js → p-c3c0ff5b.entry.js} +1 -1
- package/dist/twilight/{p-e50b4426.entry.js → p-c7389707.entry.js} +1 -1
- package/dist/twilight/p-cbc8df12.entry.js +4 -0
- package/dist/twilight/{p-d473010e.entry.js → p-d10bab5b.entry.js} +1 -1
- package/dist/twilight/{p-8a4da11a.entry.js → p-d65e45a0.entry.js} +1 -1
- package/dist/twilight/{p-deaebd7b.entry.js → p-d7d262c3.entry.js} +1 -1
- package/dist/twilight/{p-3edb7319.entry.js → p-da2f8e8b.entry.js} +1 -1
- package/dist/twilight/{p-925869b3.entry.js → p-da884485.entry.js} +1 -1
- package/dist/twilight/{p-9b2ba1e6.entry.js → p-db394617.entry.js} +1 -1
- package/dist/twilight/{p-d1bfd0bc.entry.js → p-dc2b82cb.entry.js} +1 -1
- package/dist/twilight/{p-b7e4542c.entry.js → p-dd21610f.entry.js} +1 -1
- package/dist/twilight/{p-DXDm8GqM.js → p-dewEo579.js} +1 -1
- package/dist/twilight/{p-476c4acb.entry.js → p-e1292b60.entry.js} +1 -1
- package/dist/twilight/{p-2cae7b1c.entry.js → p-e3a7f1c8.entry.js} +1 -1
- package/dist/twilight/{p-0238a9dd.entry.js → p-e7b5028b.entry.js} +1 -1
- package/dist/twilight/{p-6c63e8a6.entry.js → p-ec33a2ea.entry.js} +1 -1
- package/dist/twilight/{p-f668e5dd.entry.js → p-ec8ddb7f.entry.js} +1 -1
- package/dist/twilight/{p-5e643edb.entry.js → p-f0739410.entry.js} +1 -1
- package/dist/twilight/{p-4e52fd6c.entry.js → p-f39d6efd.entry.js} +1 -1
- package/dist/twilight/{p-a14b7bb6.entry.js → p-f470779e.entry.js} +1 -1
- package/dist/twilight/{p-94b31962.entry.js → p-f4a6bf88.entry.js} +1 -1
- package/dist/twilight/{p-924555bd.entry.js → p-f5019168.entry.js} +1 -1
- package/dist/twilight/{p-f5207897.entry.js → p-f59f94de.entry.js} +1 -1
- package/dist/twilight/{p-78be4e2c.entry.js → p-fc98c574.entry.js} +1 -1
- package/dist/twilight/{p-00b633b2.entry.js → p-fdf306f6.entry.js} +1 -1
- package/dist/twilight/{p-Dar-Px4H.js → p-ohGq8vKD.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-delivery-promise/delivery-promise-api.d.ts +1 -1
- package/dist/types/components/salla-delivery-promise/salla-delivery-promise.d.ts +6 -5
- package/dist/types/components/salla-tiered-offer/interfaces.d.ts +1 -0
- package/dist/types/components/salla-tiered-offer/salla-tiered-offer.d.ts +3 -0
- package/package.json +5 -5
- package/dist/twilight/p-854eb825.entry.js +0 -4
- package/dist/twilight/p-YUFLgZi3.js +0 -9
- package/dist/twilight/p-b352e237.entry.js +0 -4
- package/dist/twilight/p-cff61b58.entry.js +0 -4
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
5
|
+
import { d as defineCustomElement$6 } from './salla-button2.js';
|
|
6
|
+
import { d as defineCustomElement$5 } from './salla-loading2.js';
|
|
7
|
+
import { d as defineCustomElement$4 } from './salla-modal2.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './salla-searchable-dropdown2.js';
|
|
8
9
|
import { d as defineCustomElement$2 } from './salla-skeleton2.js';
|
|
9
10
|
|
|
10
11
|
const DEBUG_KEY = 'salla-delivery-promise-debug';
|
|
@@ -14,9 +15,10 @@ function log(message, data) {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
/** Fetch available cities for a product's delivery promises. */
|
|
17
|
-
async function fetchCities(productId) {
|
|
18
|
-
log('fetchCities start', { productId });
|
|
19
|
-
const
|
|
18
|
+
async function fetchCities(productId, keyword) {
|
|
19
|
+
log('fetchCities start', { productId, keyword });
|
|
20
|
+
const queryString = keyword != null ? `?keyword=${encodeURIComponent(keyword)}` : '';
|
|
21
|
+
const response = await salla.api.request(salla.url.api(`products/${productId}/delivery-promises/cities${queryString}`));
|
|
20
22
|
if (!response.success || !Array.isArray(response.data) || response.data.length === 0) {
|
|
21
23
|
log('fetchCities: no data', { response });
|
|
22
24
|
return { cities: [] };
|
|
@@ -44,15 +46,6 @@ async function fetchDeliveryMessage(productId, id, optionType, isLoginCycleEnabl
|
|
|
44
46
|
return message || null;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
/** Filters cities by Arabic/English name (used inside the city-change modal). */
|
|
48
|
-
function filterCitiesForModal(cities, query) {
|
|
49
|
-
const q = query.trim().toLowerCase();
|
|
50
|
-
if (!q) {
|
|
51
|
-
return [...cities];
|
|
52
|
-
}
|
|
53
|
-
return cities.filter(city => city.name.toLowerCase().includes(q) || (city.name_en || '').toLowerCase().includes(q));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
49
|
const INTENT_KEY = 'bullet_delivery_intent';
|
|
57
50
|
function getIntentStorage() {
|
|
58
51
|
const rememberLastSession = Boolean(salla.config.get('store.settings.bullet_delivery.settings.remember_last_session'));
|
|
@@ -167,21 +160,24 @@ const SallaDeliveryPromise$1 = /*@__PURE__*/ proxyCustomElement(class SallaDeliv
|
|
|
167
160
|
this.selectedCity = null;
|
|
168
161
|
this.isLoadingCities = false;
|
|
169
162
|
// ── City-change modal state (non–login-cycle) ─────────────────────────
|
|
170
|
-
this.modalSearchQuery = '';
|
|
171
163
|
this.cityPendingSelection = null;
|
|
172
|
-
this.
|
|
164
|
+
this.modalCities = [];
|
|
165
|
+
this.isSearchingCities = false;
|
|
166
|
+
this.citySearchCounter = 0;
|
|
173
167
|
// ═══════════════════════════════════════════════════════════════════════
|
|
174
168
|
// Login-cycle (bullet delivery) integration
|
|
175
169
|
// ═══════════════════════════════════════════════════════════════════════
|
|
176
170
|
this.onBulletDeliveryConfirmed = () => {
|
|
177
171
|
this.applyBulletIntent();
|
|
178
172
|
};
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
173
|
+
this.handleCitySearch = (keyword) => {
|
|
174
|
+
clearTimeout(this.citySearchTimer);
|
|
175
|
+
if (!keyword.trim()) {
|
|
176
|
+
this.modalCities = [...this.cities];
|
|
177
|
+
this.isSearchingCities = false;
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
this.citySearchTimer = setTimeout(() => this.searchCitiesRemote(keyword), 300);
|
|
185
181
|
};
|
|
186
182
|
// ═══════════════════════════════════════════════════════════════════════
|
|
187
183
|
// Header click (dispatches to correct flow)
|
|
@@ -290,7 +286,6 @@ const SallaDeliveryPromise$1 = /*@__PURE__*/ proxyCustomElement(class SallaDeliv
|
|
|
290
286
|
if (autoCity) {
|
|
291
287
|
log("delivery promise standard flow autoCity found", autoCity);
|
|
292
288
|
this.selectedCity = autoCity;
|
|
293
|
-
this.modalSearchQuery = getCityDisplayName(autoCity);
|
|
294
289
|
}
|
|
295
290
|
await this.loadDeliveryMessage(cityId, 'city');
|
|
296
291
|
}
|
|
@@ -329,14 +324,29 @@ const SallaDeliveryPromise$1 = /*@__PURE__*/ proxyCustomElement(class SallaDeliv
|
|
|
329
324
|
if (!this.cityModalRef)
|
|
330
325
|
return;
|
|
331
326
|
this.cityPendingSelection = null;
|
|
332
|
-
this.
|
|
327
|
+
this.modalCities = [...this.cities];
|
|
333
328
|
await this.cityModalRef.setTitle(this.labels.changeCityTitle);
|
|
334
329
|
await this.cityModalRef.open();
|
|
335
330
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
this.
|
|
339
|
-
|
|
331
|
+
async searchCitiesRemote(keyword) {
|
|
332
|
+
const requestId = ++this.citySearchCounter;
|
|
333
|
+
this.isSearchingCities = true;
|
|
334
|
+
try {
|
|
335
|
+
const { cities } = await fetchCities(this.productId, keyword);
|
|
336
|
+
if (requestId !== this.citySearchCounter)
|
|
337
|
+
return;
|
|
338
|
+
this.modalCities = cities;
|
|
339
|
+
}
|
|
340
|
+
catch {
|
|
341
|
+
if (requestId !== this.citySearchCounter)
|
|
342
|
+
return;
|
|
343
|
+
this.modalCities = [];
|
|
344
|
+
}
|
|
345
|
+
finally {
|
|
346
|
+
if (requestId === this.citySearchCounter) {
|
|
347
|
+
this.isSearchingCities = false;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
340
350
|
}
|
|
341
351
|
async handleConfirmCityModal() {
|
|
342
352
|
if (!this.cityPendingSelection) {
|
|
@@ -364,14 +374,11 @@ const SallaDeliveryPromise$1 = /*@__PURE__*/ proxyCustomElement(class SallaDeliv
|
|
|
364
374
|
return h("div", { class: "s-delivery-promise-message" }, this.deliveryMessage);
|
|
365
375
|
}
|
|
366
376
|
renderCityModalBody() {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
e.stopPropagation();
|
|
373
|
-
this.handleModalSelectCity(city);
|
|
374
|
-
} }, h("span", { class: "s-delivery-promise-modal-item-name" }, city.name), this.cityPendingSelection?.id === city.id ? h("i", { class: "sicon-check", "aria-hidden": "true" }) : null)))))))));
|
|
377
|
+
return (h("div", { class: "s-delivery-promise-modal-body" }, h("salla-searchable-dropdown", { label: this.labels.cityFieldLabel, placeholder: this.labels.modalSearchPlaceholder, items: this.modalCities, selectedItem: this.cityPendingSelection, searching: this.isSearchingCities, required: true, noResultsText: this.labels.noResults, inputId: "s-delivery-promise-modal-search", onItemSelected: (e) => {
|
|
378
|
+
this.cityPendingSelection = e.detail;
|
|
379
|
+
}, onSearchInput: (e) => {
|
|
380
|
+
this.handleCitySearch(e.detail);
|
|
381
|
+
} })));
|
|
375
382
|
}
|
|
376
383
|
renderCityChangeModal() {
|
|
377
384
|
if (this.isLoginCycleEnabled)
|
|
@@ -406,15 +413,15 @@ const SallaDeliveryPromise$1 = /*@__PURE__*/ proxyCustomElement(class SallaDeliv
|
|
|
406
413
|
"cities": [32],
|
|
407
414
|
"selectedCity": [32],
|
|
408
415
|
"isLoadingCities": [32],
|
|
409
|
-
"modalSearchQuery": [32],
|
|
410
416
|
"cityPendingSelection": [32],
|
|
411
|
-
"
|
|
417
|
+
"modalCities": [32],
|
|
418
|
+
"isSearchingCities": [32]
|
|
412
419
|
}]);
|
|
413
420
|
function defineCustomElement$1() {
|
|
414
421
|
if (typeof customElements === "undefined") {
|
|
415
422
|
return;
|
|
416
423
|
}
|
|
417
|
-
const components = ["salla-delivery-promise", "salla-button", "salla-loading", "salla-modal", "salla-skeleton"];
|
|
424
|
+
const components = ["salla-delivery-promise", "salla-button", "salla-loading", "salla-modal", "salla-searchable-dropdown", "salla-skeleton"];
|
|
418
425
|
components.forEach(tagName => { switch (tagName) {
|
|
419
426
|
case "salla-delivery-promise":
|
|
420
427
|
if (!customElements.get(tagName)) {
|
|
@@ -423,15 +430,20 @@ function defineCustomElement$1() {
|
|
|
423
430
|
break;
|
|
424
431
|
case "salla-button":
|
|
425
432
|
if (!customElements.get(tagName)) {
|
|
426
|
-
defineCustomElement$
|
|
433
|
+
defineCustomElement$6();
|
|
427
434
|
}
|
|
428
435
|
break;
|
|
429
436
|
case "salla-loading":
|
|
430
437
|
if (!customElements.get(tagName)) {
|
|
431
|
-
defineCustomElement$
|
|
438
|
+
defineCustomElement$5();
|
|
432
439
|
}
|
|
433
440
|
break;
|
|
434
441
|
case "salla-modal":
|
|
442
|
+
if (!customElements.get(tagName)) {
|
|
443
|
+
defineCustomElement$4();
|
|
444
|
+
}
|
|
445
|
+
break;
|
|
446
|
+
case "salla-searchable-dropdown":
|
|
435
447
|
if (!customElements.get(tagName)) {
|
|
436
448
|
defineCustomElement$3();
|
|
437
449
|
}
|
|
@@ -124,6 +124,15 @@ const SallaTieredOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaTieredOff
|
|
|
124
124
|
// If coupon is applied but offer doesn't support coupons, widget should be hidden
|
|
125
125
|
return !(cartCoupon && !offerData.details?.applied_with_coupon);
|
|
126
126
|
}
|
|
127
|
+
shouldHideForGuest() {
|
|
128
|
+
return salla.config.isGuest();
|
|
129
|
+
}
|
|
130
|
+
shouldHideUntilThreshold(details, tierIndex) {
|
|
131
|
+
return !!(details?.hide_until_threshold && tierIndex === 0);
|
|
132
|
+
}
|
|
133
|
+
resolveTierName(tiers, index) {
|
|
134
|
+
return TierUtils.getTierNameByIndex(tiers, index) || '';
|
|
135
|
+
}
|
|
127
136
|
async fetchTieredOfferData() {
|
|
128
137
|
try {
|
|
129
138
|
const { data } = await salla.api.cart.offers();
|
|
@@ -150,14 +159,20 @@ const SallaTieredOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaTieredOff
|
|
|
150
159
|
// Find current tier index based on current_value from API
|
|
151
160
|
const currentValue = this.apiOfferData.details?.current_value || 0;
|
|
152
161
|
const currentTierIndex = this.findCurrentTierIndex(currentValue);
|
|
153
|
-
//
|
|
154
|
-
if (
|
|
162
|
+
// Hide entire widget for unauthenticated users
|
|
163
|
+
if (this.shouldHideForGuest()) {
|
|
164
|
+
this.canRender = false;
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
// Only hide until threshold for merchants with the flag enabled (e.g. Arabian Oud)
|
|
168
|
+
if (this.shouldHideUntilThreshold(this.apiOfferData.details, currentTierIndex)) {
|
|
155
169
|
this.canRender = false;
|
|
156
170
|
return;
|
|
157
171
|
}
|
|
158
172
|
this.currentTierIndex = currentTierIndex;
|
|
159
|
-
this.currentTier =
|
|
160
|
-
|
|
173
|
+
this.currentTier = this.resolveTierName(this.tieredOfferData.tiers, currentTierIndex);
|
|
174
|
+
// Default to first tab so tabs always have visible content
|
|
175
|
+
this.activeTabTier = this.currentTier || this.tieredOfferData.tiers[0]?.tier_name;
|
|
161
176
|
this.canRender = true;
|
|
162
177
|
}
|
|
163
178
|
componentDidLoad() {
|
|
@@ -192,44 +207,46 @@ const SallaTieredOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaTieredOff
|
|
|
192
207
|
if (!freshOfferData || !this.tieredOfferData) {
|
|
193
208
|
return;
|
|
194
209
|
}
|
|
210
|
+
if (!freshOfferData.details?.discounts?.length) {
|
|
211
|
+
this.canRender = false;
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
195
214
|
// Check coupon compatibility
|
|
196
215
|
if (!this.validateCouponCompatibility(freshOfferData, updatedCart.coupon)) {
|
|
197
216
|
this.canRender = false;
|
|
198
217
|
return;
|
|
199
218
|
}
|
|
200
|
-
//
|
|
201
|
-
this.
|
|
202
|
-
|
|
203
|
-
if (freshOfferData.details?.with_current_cart === false) {
|
|
219
|
+
// Hide entire widget for unauthenticated users
|
|
220
|
+
if (this.shouldHideForGuest()) {
|
|
221
|
+
this.canRender = false;
|
|
204
222
|
return;
|
|
205
223
|
}
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
// console.log('currentValue #####3', currentValue);
|
|
209
|
-
// this.apiOfferData = {
|
|
210
|
-
// ...this.apiOfferData,
|
|
211
|
-
// details: {
|
|
212
|
-
// ...this.apiOfferData.details,
|
|
213
|
-
// current_value: currentValue
|
|
214
|
-
// }
|
|
215
|
-
// };
|
|
216
|
-
// Use current_value from fresh API data instead of cart sub_total
|
|
224
|
+
// Build fresh tier map so index computation uses up-to-date thresholds
|
|
225
|
+
const freshTieredData = this.mapApiDataToTiers(freshOfferData);
|
|
217
226
|
const currentValue = freshOfferData.details?.current_value || 0;
|
|
218
|
-
this.
|
|
219
|
-
//
|
|
220
|
-
|
|
221
|
-
// Check if user qualifies for any tier
|
|
222
|
-
if (newTierIndex === 0) {
|
|
227
|
+
const newTierIndex = this.findCurrentTierIndex(currentValue, freshTieredData.tiers);
|
|
228
|
+
// Only hide until threshold for merchants with the flag enabled (e.g. Arabian Oud)
|
|
229
|
+
if (this.shouldHideUntilThreshold(freshOfferData.details, newTierIndex)) {
|
|
223
230
|
this.canRender = false;
|
|
224
231
|
return;
|
|
225
232
|
}
|
|
226
|
-
//
|
|
233
|
+
// Offer progress is based on historical purchases only — skip state update on cart changes
|
|
234
|
+
// Use strict === false to avoid treating an omitted flag as false
|
|
235
|
+
if (freshOfferData.details?.with_current_cart === false) {
|
|
236
|
+
this.canRender = true;
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
// All guards passed — update state atomically
|
|
240
|
+
this.apiOfferData = freshOfferData;
|
|
241
|
+
this.tieredOfferData = freshTieredData;
|
|
227
242
|
this.canRender = true;
|
|
228
243
|
this.currentTierIndex = newTierIndex;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if
|
|
232
|
-
|
|
244
|
+
// Tiers are 1-based; fall back to first tier when no tier has been reached yet
|
|
245
|
+
this.currentTier = this.resolveTierName(freshTieredData.tiers, newTierIndex);
|
|
246
|
+
// Update active tab if needed; default to first tab when no tier reached
|
|
247
|
+
const resolvedTab = this.currentTier || freshTieredData.tiers[0]?.tier_name;
|
|
248
|
+
if (this.activeTabTier !== resolvedTab) {
|
|
249
|
+
this.activeTabTier = resolvedTab;
|
|
233
250
|
}
|
|
234
251
|
}
|
|
235
252
|
getLoadingSkeletonView() {
|
|
@@ -327,7 +344,7 @@ const SallaTieredOffer$1 = /*@__PURE__*/ proxyCustomElement(class SallaTieredOff
|
|
|
327
344
|
return null;
|
|
328
345
|
}
|
|
329
346
|
const currentTierData = this.getCurrentTierData();
|
|
330
|
-
return (h(Host, null, h("div", { class: "s-tiered-offer-container" }, h("div", { class: "s-tiered-offer-header" }, h("div", { class: "s-tiered-offer-header-content" }, h("p", { class: "s-tiered-offer-program-title" }, this.loyaltyProgramText), h("div", { class: "s-tiered-offer-current-tier-name-wrapper" }, h("h2", { class: "s-tiered-offer-current-tier" }, this.currentTierText, " ", h("span", { class: "s-tiered-offer-tier-name" }, currentTierData.name)), h("span", { innerHTML: currentTierData.icon })))), this.renderProgressBar(), this.renderTabs())));
|
|
347
|
+
return (h(Host, null, h("div", { class: "s-tiered-offer-container" }, h("div", { class: "s-tiered-offer-header" }, h("div", { class: "s-tiered-offer-header-content" }, h("p", { class: "s-tiered-offer-program-title" }, this.loyaltyProgramText), this.currentTier && (h("div", { class: "s-tiered-offer-current-tier-name-wrapper" }, h("h2", { class: "s-tiered-offer-current-tier" }, this.currentTierText, " ", h("span", { class: "s-tiered-offer-tier-name" }, currentTierData.name)), h("span", { innerHTML: currentTierData.icon }))))), this.renderProgressBar(), this.renderTabs())));
|
|
331
348
|
}
|
|
332
349
|
static get style() { return sallaTieredOfferCss; }
|
|
333
350
|
}, [0, "salla-tiered-offer", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-DMcU-3GG.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|