@salla.sa/twilight-components 2.14.551 → 2.14.553
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/apple-pay-order-options-DVyeUqBh.js +90 -0
- package/dist/cjs/{filepond-C99K1KEB.js → filepond-i59nX3lz.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CggRjTNg.js → filepond-plugin-file-poster-BYzX1aNf.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-B009kdAV.js → filepond-plugin-file-validate-size-DycWnZhG.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DZs9-bai.js → filepond-plugin-file-validate-type-z0JXBj53.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DNNheErX.js → filepond-plugin-image-edit-CJRUCqBQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-ChN0IpOy.js → filepond-plugin-image-exif-orientation-DxMxZUYg.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BZo2ftGo.js → filepond-plugin-image-preview-CjSIPPRf.js} +1 -1
- package/dist/cjs/{helpers-DHdDjm5V.js → helpers-Dm4BirHO.js} +2 -2
- package/dist/cjs/{index-0JUvtl0d.js → index-BDeMaV8l.js} +20 -24
- package/dist/cjs/{intlTelInput-D84-rI5D.js → intlTelInput-YxceQr88.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +5 -86
- 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 +10 -10
- 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_2.cjs.entry.js → salla-bullet-delivery_3.cjs.entry.js} +60 -3
- 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 +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 → salla-count-down_2.cjs.entry.js} +209 -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-gifting.cjs.entry.js +108 -5
- 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-slider.cjs.entry.js → salla-map_3.cjs.entry.js} +829 -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-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-order-options-modal_2.cjs.entry.js → salla-product-card.cjs.entry.js} +1 -209
- 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 +1 -1
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +4 -2
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.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 +1 -1
- 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/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-D8r5xyK7.js → vanilla-picker-BkTzr0I6.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -4
- package/dist/collection/components/salla-bullet-delivery/helpers.js +2 -2
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +7 -1
- package/dist/collection/components/salla-bullet-delivery-tag/salla-bullet-delivery-tag.css +70 -0
- package/dist/collection/components/salla-bullet-delivery-tag/salla-bullet-delivery-tag.js +77 -0
- package/dist/collection/components/salla-gifting/salla-gifting.css +3 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +106 -3
- package/dist/collection/components/salla-scopes/salla-scopes.js +3 -1
- package/dist/components/apple-pay-order-options.js +86 -0
- package/dist/components/helpers.js +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/salla-bullet-delivery-tag.d.ts +11 -0
- package/dist/components/salla-bullet-delivery-tag.js +76 -0
- package/dist/components/salla-bullet-delivery.js +7 -1
- package/dist/components/salla-gifting.js +165 -20
- package/dist/components/salla-quick-buy2.js +1 -82
- package/dist/components/salla-scopes.js +3 -1
- package/dist/esm/apple-pay-order-options-Bg2HuLRr.js +86 -0
- package/dist/esm/{filepond-DuMUHI7t.js → filepond-OzvsJA0M.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Dv25V2UU.js → filepond-plugin-file-poster-CDQfaOXY.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dxl4yPm6.js → filepond-plugin-file-validate-size-1vRv7vgS.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-C602myuq.js → filepond-plugin-file-validate-type-pajN7jZu.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DLd3ht_R.js → filepond-plugin-image-edit-93DCmlU_.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BaQ5DNLu.js → filepond-plugin-image-exif-orientation-CncCUIVb.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-C-RFNs7l.js → filepond-plugin-image-preview-Mz81wKGp.js} +1 -1
- package/dist/esm/{helpers-BDChq2t4.js → helpers-CV6uPJEJ.js} +2 -2
- package/dist/esm/{index-BsIeN-bg.js → index-Dx4PTJFl.js} +20 -24
- package/dist/esm/{intlTelInput-Cf6zBu5Y.js → intlTelInput-DEYUtZO9.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 +2 -83
- 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 +10 -10
- 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_2.entry.js → salla-bullet-delivery_3.entry.js} +60 -4
- 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 +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 → salla-count-down_2.entry.js} +209 -2
- 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-gifting.entry.js +108 -5
- 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-slider.entry.js → salla-map_3.entry.js} +828 -2
- 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-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-order-options-modal_2.entry.js → salla-product-card.entry.js} +2 -209
- 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 +1 -1
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +4 -2
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.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 +1 -1
- 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/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-S7qZ7YZm.js → vanilla-picker-43VIKXEr.js} +1 -1
- package/dist/twilight/{p-56f164bb.entry.js → p-01dde8da.entry.js} +1 -1
- package/dist/twilight/p-05333b72.entry.js +4 -0
- package/dist/twilight/{p-13c4b450.entry.js → p-05920338.entry.js} +1 -1
- package/dist/twilight/{p-906b36e3.entry.js → p-05ed463f.entry.js} +1 -1
- package/dist/twilight/{p-3c2cc4fe.entry.js → p-08c448e7.entry.js} +1 -1
- package/dist/twilight/{p-2331e63a.entry.js → p-0f475a9c.entry.js} +1 -1
- package/dist/twilight/{p-869fe4c0.entry.js → p-129d396b.entry.js} +1 -1
- package/dist/twilight/{p-847cdd79.entry.js → p-12a40f7d.entry.js} +1 -1
- package/dist/twilight/{p-22cb8a9c.entry.js → p-144a349d.entry.js} +1 -1
- package/dist/twilight/{p-a8316527.entry.js → p-15470633.entry.js} +1 -1
- package/dist/twilight/{p-fed3efba.entry.js → p-1627f8c5.entry.js} +1 -1
- package/dist/twilight/{p-5918dd8d.entry.js → p-16c9bb12.entry.js} +1 -1
- package/dist/twilight/{p-5cd4b67f.entry.js → p-1a0db854.entry.js} +1 -1
- package/dist/twilight/{p-9dd126e2.entry.js → p-204db13a.entry.js} +1 -1
- package/dist/twilight/{p-0e3d72ab.entry.js → p-21b5ef79.entry.js} +1 -1
- package/dist/twilight/{p-b1e0bc90.entry.js → p-21dfba32.entry.js} +1 -1
- package/dist/twilight/{p-07adeb89.entry.js → p-24950b7c.entry.js} +1 -1
- package/dist/twilight/{p-ea968ba3.entry.js → p-24a5e070.entry.js} +1 -1
- package/dist/twilight/{p-0944d367.entry.js → p-26bf1509.entry.js} +1 -1
- package/dist/twilight/{p-6f58ac6a.entry.js → p-2718a5f2.entry.js} +1 -1
- package/dist/twilight/{p-2a683382.entry.js → p-2941175d.entry.js} +1 -1
- package/dist/twilight/{p-aa8962f8.entry.js → p-2dfbb461.entry.js} +1 -1
- package/dist/twilight/{p-e3e2baa2.entry.js → p-2f137e63.entry.js} +1 -1
- package/dist/twilight/{p-211324e6.entry.js → p-360e4f8e.entry.js} +1 -1
- package/dist/twilight/{p-b238c74b.entry.js → p-378efeff.entry.js} +1 -1
- package/dist/twilight/{p-2bef08e8.entry.js → p-3b4e2cf3.entry.js} +1 -1
- package/dist/twilight/{p-eb3a095b.entry.js → p-3b9cf7e4.entry.js} +1 -1
- package/dist/twilight/{p-cdba9d35.entry.js → p-40e417f1.entry.js} +1 -1
- package/dist/twilight/{p-18a604c5.entry.js → p-422c19a5.entry.js} +1 -1
- package/dist/twilight/{p-a64771f7.entry.js → p-45f512a8.entry.js} +1 -1
- package/dist/twilight/{p-49738042.entry.js → p-4be292da.entry.js} +1 -1
- package/dist/twilight/{p-6c5a1ded.entry.js → p-50a2be61.entry.js} +1 -1
- package/dist/twilight/{p-8ebb86ce.entry.js → p-5197cc6a.entry.js} +1 -1
- package/dist/twilight/{p-2ff7bb22.entry.js → p-58ee3cea.entry.js} +1 -1
- package/dist/twilight/{p-ecdbd18f.entry.js → p-619a9a6e.entry.js} +1 -1
- package/dist/twilight/{p-aa91a230.entry.js → p-6343cd09.entry.js} +1 -1
- package/dist/twilight/{p-01406425.entry.js → p-6533ba39.entry.js} +1 -1
- package/dist/twilight/{p-6edd1008.entry.js → p-6b62d934.entry.js} +1 -1
- package/dist/twilight/{p-357b5593.entry.js → p-6ee230b4.entry.js} +1 -1
- package/dist/twilight/{p-a30390a7.entry.js → p-6fffb603.entry.js} +1 -1
- package/dist/twilight/{p-f4f355e5.entry.js → p-74510683.entry.js} +1 -1
- package/dist/twilight/{p-704553fb.entry.js → p-74a4437f.entry.js} +1 -1
- package/dist/twilight/{p-6a746b8a.entry.js → p-7709f0dd.entry.js} +1 -1
- package/dist/twilight/{p-1abe8321.entry.js → p-79b4ca8e.entry.js} +1 -1
- package/dist/twilight/{p-3fb485a6.entry.js → p-7d3355a8.entry.js} +1 -1
- package/dist/twilight/{p-68d754be.entry.js → p-8123e013.entry.js} +1 -1
- package/dist/twilight/{p-4ef06a6f.entry.js → p-8137113a.entry.js} +1 -1
- package/dist/twilight/{p-5ba2eb55.entry.js → p-8140d052.entry.js} +1 -1
- package/dist/twilight/p-8968b284.entry.js +4 -0
- package/dist/twilight/{p-9f431f78.entry.js → p-8a57a89a.entry.js} +1 -1
- package/dist/twilight/{p-8711224a.entry.js → p-8bb4da9c.entry.js} +1 -1
- package/dist/twilight/{p-6d787fa0.entry.js → p-8bb74e84.entry.js} +1 -1
- package/dist/twilight/{p-ebc6ba28.entry.js → p-8ff29a31.entry.js} +1 -1
- package/dist/twilight/{p-af348a67.entry.js → p-90677c84.entry.js} +1 -1
- package/dist/twilight/{p-ef145c1e.entry.js → p-919b40e3.entry.js} +1 -1
- package/dist/twilight/{p-6f3516a1.entry.js → p-92a471ea.entry.js} +1 -1
- package/dist/twilight/{p-a344db00.entry.js → p-955661c8.entry.js} +1 -1
- package/dist/twilight/{p-d5215891.entry.js → p-9c0e3e8f.entry.js} +1 -1
- package/dist/twilight/{p-9025e5d9.entry.js → p-9c5571a0.entry.js} +1 -1
- package/dist/twilight/{p-BRZVMxhy.js → p-B5U60WIk.js} +2 -2
- package/dist/twilight/{p-wqmCmzsY.js → p-BKvFlB2x.js} +1 -1
- package/dist/twilight/p-Bg2HuLRr.js +4 -0
- package/dist/twilight/{p-DNS31w5e.js → p-C1H-fEuk.js} +1 -1
- package/dist/twilight/{p-BDChq2t4.js → p-CV6uPJEJ.js} +1 -1
- package/dist/twilight/{p-mgSPapOV.js → p-Cgw3EhC4.js} +1 -1
- package/dist/twilight/{p-CPiqlSTo.js → p-ChQewA0U.js} +1 -1
- package/dist/twilight/{p-B3oo4tIx.js → p-Dccf61n9.js} +1 -1
- package/dist/twilight/{p-BsIeN-bg.js → p-Dx4PTJFl.js} +1 -1
- package/dist/twilight/{p-035DwuUC.js → p-HzrPs4_N.js} +1 -1
- package/dist/twilight/{p-DeX830vG.js → p-ILDsy-mr.js} +1 -1
- package/dist/twilight/{p-9fdbe8a0.entry.js → p-a2c2f78b.entry.js} +25 -25
- package/dist/twilight/{p-a3579980.entry.js → p-a2cae5fd.entry.js} +1 -1
- package/dist/twilight/{p-2a3d30d1.entry.js → p-a4d28c99.entry.js} +1 -1
- package/dist/twilight/{p-a46a9d28.entry.js → p-a7bdbeb1.entry.js} +1 -1
- package/dist/twilight/{p-be0ac755.entry.js → p-a7ee89d7.entry.js} +1 -1
- package/dist/twilight/{p-1118bee2.entry.js → p-a95b7da2.entry.js} +1 -1
- package/dist/twilight/{p-84cffb13.entry.js → p-a965c7da.entry.js} +1 -1
- package/dist/twilight/{p-e875f53e.entry.js → p-aa88c61e.entry.js} +1 -1
- package/dist/twilight/{p-a037e47d.entry.js → p-acff1e55.entry.js} +1 -1
- package/dist/twilight/{p-ff37c2af.entry.js → p-b1d3bdb6.entry.js} +1 -1
- package/dist/twilight/{p-2df31e90.entry.js → p-b54f9dd8.entry.js} +1 -1
- package/dist/twilight/{p-56845467.entry.js → p-b572b38c.entry.js} +1 -1
- package/dist/twilight/p-bdfceb12.entry.js +4 -0
- package/dist/twilight/{p-27456209.entry.js → p-be080eb3.entry.js} +1 -1
- package/dist/twilight/p-bfd1e64f.entry.js +4 -0
- package/dist/twilight/{p-b5a2342c.entry.js → p-c0ff19e0.entry.js} +1 -1
- package/dist/twilight/p-c2823b78.entry.js +4 -0
- package/dist/twilight/{p-18639885.entry.js → p-c2f2a752.entry.js} +1 -1
- package/dist/twilight/{p-523572e9.entry.js → p-c53d45d1.entry.js} +1 -1
- package/dist/twilight/{p-3aa6fa7d.entry.js → p-c653dbde.entry.js} +1 -1
- package/dist/twilight/{p-f037e508.entry.js → p-c6708390.entry.js} +1 -1
- package/dist/twilight/{p-efe6493f.entry.js → p-cabecab4.entry.js} +1 -1
- package/dist/twilight/{p-2c48bb97.entry.js → p-cadfb356.entry.js} +1 -1
- package/dist/twilight/{p-5dfd449d.entry.js → p-cddaa208.entry.js} +1 -1
- package/dist/twilight/{p-a9ef3c52.entry.js → p-d97e4c69.entry.js} +1 -1
- package/dist/twilight/{p-0a332226.entry.js → p-e1109a12.entry.js} +1 -1
- package/dist/twilight/{p-683db553.entry.js → p-e315d524.entry.js} +1 -1
- package/dist/twilight/{p-569c6d6c.entry.js → p-e4dd05a7.entry.js} +1 -1
- package/dist/twilight/{p-501c0798.entry.js → p-e5b29085.entry.js} +1 -1
- package/dist/twilight/{p-43f8f33b.entry.js → p-e97e121a.entry.js} +1 -1
- package/dist/twilight/{p-83a5b8a4.entry.js → p-f1587a83.entry.js} +1 -1
- package/dist/twilight/p-f4e80187.entry.js +4 -0
- package/dist/twilight/{p-a01f64e7.entry.js → p-f5cff7aa.entry.js} +1 -1
- package/dist/twilight/{p-CaCiueRc.js → p-lRRdZqp5.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +2 -0
- package/dist/types/components/salla-bullet-delivery-tag/salla-bullet-delivery-tag.d.ts +26 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +29 -0
- package/dist/types/components.d.ts +77 -0
- package/package.json +5 -5
- package/dist/cjs/salla-map_2.cjs.entry.js +0 -835
- package/dist/esm/salla-map_2.entry.js +0 -832
- package/dist/twilight/p-1bf18c56.entry.js +0 -4
- package/dist/twilight/p-47713dd1.entry.js +0 -4
- package/dist/twilight/p-49f9e536.entry.js +0 -4
- package/dist/twilight/p-54974d98.entry.js +0 -4
- package/dist/twilight/p-709c2184.entry.js +0 -4
- package/dist/twilight/p-90f29c99.entry.js +0 -4
- package/dist/twilight/p-a0ed97f5.entry.js +0 -4
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Order-options helpers for the Apple Pay quick-buy flow — keeps <salla-quick-buy> to thin AP wiring.
|
|
8
|
+
* Apple Pay resolves options inside the session-started hook (single gesture), so the caller owns
|
|
9
|
+
* the ApplePaySession and drives it via callbacks.
|
|
10
|
+
*/
|
|
11
|
+
/** Get-or-create the singleton order-options modal on <body>. */
|
|
12
|
+
function ensureOrderOptionsModal() {
|
|
13
|
+
let modal = document.querySelector('salla-order-options-modal');
|
|
14
|
+
if (!modal) {
|
|
15
|
+
modal = document.createElement('salla-order-options-modal');
|
|
16
|
+
document.body.appendChild(modal);
|
|
17
|
+
}
|
|
18
|
+
return modal;
|
|
19
|
+
}
|
|
20
|
+
/** Sync PDP-option validity (an `await` would consume the Apple Pay gesture). Skips hidden/disabled inputs. */
|
|
21
|
+
function reportProductOptionsValiditySync(productId) {
|
|
22
|
+
const optionsElement = document.querySelector(`salla-product-options[product-id="${productId}"]`);
|
|
23
|
+
if (!optionsElement)
|
|
24
|
+
return true;
|
|
25
|
+
const requiredInputs = optionsElement.querySelectorAll('[required]');
|
|
26
|
+
let pass = true;
|
|
27
|
+
requiredInputs.forEach((input) => {
|
|
28
|
+
if (input.disabled || input.closest('.hidden'))
|
|
29
|
+
return;
|
|
30
|
+
if ('reportValidity' in input && !input.reportValidity())
|
|
31
|
+
pass = false;
|
|
32
|
+
});
|
|
33
|
+
return pass;
|
|
34
|
+
}
|
|
35
|
+
/** Merge collected order-options into the quick-purchase payload (FormData or plain object). */
|
|
36
|
+
function appendOrderOptionsToPayload(data, orderOptions) {
|
|
37
|
+
if (!orderOptions.length)
|
|
38
|
+
return;
|
|
39
|
+
if (data && typeof data.append === 'function') {
|
|
40
|
+
orderOptions.forEach((entry, i) => {
|
|
41
|
+
data.append(`order_options[${i}][id]`, String(entry.id));
|
|
42
|
+
data.append(`order_options[${i}][value]`, String(entry.value));
|
|
43
|
+
});
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (data && typeof data === 'object') {
|
|
47
|
+
data.order_options = orderOptions;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Fetch order options and, if any, collect them via the modal (apple-pay mode). Callbacks drive the
|
|
52
|
+
* caller's pre-created session: `beginPendingSession` (no options), `discardPendingSession` (options
|
|
53
|
+
* found — the modal's AP button starts a fresh one), `onSubmit` (submitted).
|
|
54
|
+
*/
|
|
55
|
+
async function resolveApplePayOrderOptions(opts) {
|
|
56
|
+
let resp;
|
|
57
|
+
try {
|
|
58
|
+
resp = await salla.api.withoutNotifier(() => salla.product.api.getOrderOptions([{ id: opts.productId, quantity: opts.quantity }]));
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
salla?.logger?.warn?.('order-options: fetch failed', error);
|
|
62
|
+
opts.beginPendingSession();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const items = resp?.data?.order_options || [];
|
|
66
|
+
if (!items.length) {
|
|
67
|
+
opts.beginPendingSession(); // begin() doesn't need a fresh gesture
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
opts.discardPendingSession(); // drop the unused session; the modal builds a fresh one
|
|
71
|
+
const basePrice = Number(opts.amount) > 0
|
|
72
|
+
? Number(opts.amount)
|
|
73
|
+
: Number(resp?.data?.products?.[0]?.price?.amount) || 0;
|
|
74
|
+
const modal = ensureOrderOptionsModal();
|
|
75
|
+
try {
|
|
76
|
+
await modal.open({
|
|
77
|
+
orderOptions: items,
|
|
78
|
+
basePrice,
|
|
79
|
+
paymentMode: 'apple-pay',
|
|
80
|
+
onSubmit: opts.onSubmit,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
// dismissed — no live session
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
exports.appendOrderOptionsToPayload = appendOrderOptionsToPayload;
|
|
89
|
+
exports.reportProductOptionsValiditySync = reportProductOptionsValiditySync;
|
|
90
|
+
exports.resolveApplePayOrderOptions = resolveApplePayOrderOptions;
|
|
@@ -260,11 +260,11 @@ const filterBranches = (branches, searchQuery) => {
|
|
|
260
260
|
};
|
|
261
261
|
const getIntentSubtitle = (intent, toAddress, fromBranch) => {
|
|
262
262
|
if (intent.type === 'branch') {
|
|
263
|
-
const loc = intent.branch_details?.city
|
|
263
|
+
const loc = [intent.branch_details?.country, intent.branch_details?.city, intent.branch_details?.district].filter(Boolean).join('، ');
|
|
264
264
|
return loc ? `${fromBranch} ${loc}`.trim() : '';
|
|
265
265
|
}
|
|
266
266
|
if (intent.type === 'address' && intent.address_details) {
|
|
267
|
-
const addr = [intent.address_details.
|
|
267
|
+
const addr = [intent.address_details.country?.name, intent.address_details.city?.name, intent.address_details.district?.name].filter(Boolean).join('، ') || intent.address_details.short_address || '';
|
|
268
268
|
return addr ? `${toAddress} ${addr}`.trim() : '';
|
|
269
269
|
}
|
|
270
270
|
return '';
|