@salla.sa/twilight-components 2.14.564 → 2.14.565
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 → apple-pay-order-options-B036Wu4O.js} +15 -6
- package/dist/cjs/{filepond-BNOYd8EE.js → filepond-BOtBFq7k.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Bvm29Y0w.js → filepond-plugin-file-poster-DWqXLSRO.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-nYKqDcSE.js → filepond-plugin-file-validate-size-TkDVc9ih.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C-YYy0Df.js → filepond-plugin-file-validate-type-B1TuLFJS.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-B72V6d0t.js → filepond-plugin-image-edit-BtLH803a.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BH37qNAY.js → filepond-plugin-image-exif-orientation-BJvccc13.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BIZNCf2q.js → filepond-plugin-image-preview-DPgKIIC8.js} +1 -1
- package/dist/cjs/{index-Di0mG8nk.js → index-BZ_aKmCD.js} +6 -6
- package/dist/cjs/{intlTelInput-DQ4Z6sxG.js → intlTelInput-CKLiJAA1.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +4 -4
- package/dist/cjs/salla-accordion_6.cjs.entry.js +3 -3
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +98 -18
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +4 -4
- 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 +18 -18
- package/dist/cjs/salla-badge.cjs.entry.js +2 -2
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-bullet-delivery_3.cjs.entry.js +46 -18
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +3 -3
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_9.cjs.entry.js +4 -4
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +231 -42
- 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 +3 -3
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +4 -4
- package/dist/cjs/salla-hook.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +15 -15
- package/dist/cjs/salla-loyalty-exchange-product-card.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 +2 -2
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-map_3.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +2 -2
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card.cjs.entry.js +6 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +2 -2
- package/dist/cjs/salla-review-order-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-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 +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-D0dyZrxD.js → vanilla-picker-C7y_2HXu.js} +1 -1
- package/dist/collection/components/salla-accordion/salla-accordion-body.js +1 -1
- package/dist/collection/components/salla-accordion/salla-accordion-head.js +2 -2
- package/dist/collection/components/salla-accordion/salla-accordion.js +1 -1
- package/dist/collection/components/salla-add-product-button/salla-add-product-button.js +2 -2
- package/dist/collection/components/salla-alert/salla-alert.js +1 -1
- package/dist/collection/components/salla-badge/salla-badge.js +1 -1
- package/dist/collection/components/salla-booking-field/salla-booking-field.js +1 -1
- package/dist/collection/components/salla-bottom-alert/salla-bottom-alert.js +2 -2
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +7 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +40 -12
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +2 -2
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
- package/dist/collection/components/salla-filters/salla-filters.js +1 -1
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
- package/dist/collection/components/salla-hook/salla-hook.js +1 -1
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-exchange-product-card.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -4
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +1 -1
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
- package/dist/collection/components/salla-order-options-modal/apple-pay-order-options.js +15 -6
- package/dist/collection/components/salla-order-options-modal/free-product-payload.js +49 -0
- package/dist/collection/components/salla-order-options-modal/order-options-gate.js +33 -8
- package/dist/collection/components/salla-order-options-modal/salla-order-options-modal.css +192 -15
- package/dist/collection/components/salla-order-options-modal/salla-order-options-modal.js +260 -48
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +15 -5
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/apple-pay-order-options.js +15 -6
- package/dist/components/index.js +2 -2
- package/dist/components/salla-accordion-body2.js +1 -1
- package/dist/components/salla-accordion-head2.js +2 -2
- package/dist/components/salla-accordion2.js +1 -1
- package/dist/components/salla-add-product-button2.js +35 -11
- package/dist/components/salla-alert.js +1 -1
- package/dist/components/salla-badge2.js +1 -1
- package/dist/components/salla-booking-field2.js +1 -1
- package/dist/components/salla-bottom-alert.js +2 -2
- package/dist/components/salla-bullet-delivery.js +41 -13
- package/dist/components/salla-cart-coupons.js +2 -2
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-conditional-fields2.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-file-upload2.js +2 -2
- package/dist/components/salla-filters-widget2.js +2 -2
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-gifting.js +2 -2
- package/dist/components/salla-hook.js +1 -1
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +1 -1
- package/dist/components/salla-loyalty-exchange-product-card2.js +2 -2
- package/dist/components/salla-loyalty-hero2.js +3 -3
- package/dist/components/salla-loyalty-point2.js +4 -4
- package/dist/components/salla-loyalty-points-history.js +1 -1
- package/dist/components/salla-loyalty-prize-item.js +1 -1
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit-product-card.js +1 -1
- package/dist/components/salla-order-options-modal2.js +234 -40
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +62 -6
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-review-factors-tags2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +3 -3
- package/dist/components/salla-reward-exchange2.js +1 -1
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{apple-pay-order-options-Bg2HuLRr.js → apple-pay-order-options-s0kn7yr8.js} +15 -6
- package/dist/esm/{filepond-DGYIRZjn.js → filepond-UQa5G279.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-que4aL4t.js → filepond-plugin-file-poster-DuTq7hGp.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DUa2Ha9F.js → filepond-plugin-file-validate-size-CmrW5aIv.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CsE-FZ5e.js → filepond-plugin-file-validate-type-C4wrsR8y.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CCEkPzwH.js → filepond-plugin-image-edit-CFUxRm-l.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-C6ooGIlL.js → filepond-plugin-image-exif-orientation-eHT2qXpP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-C1ziopep.js → filepond-plugin-image-preview-CX0Er_bj.js} +1 -1
- package/dist/esm/{index-DXda9rxP.js → index-BC0OSCdw.js} +6 -6
- package/dist/esm/{intlTelInput-DhSUIkQX.js → intlTelInput-DnPEdiN8.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +4 -4
- package/dist/esm/salla-accordion_6.entry.js +3 -3
- package/dist/esm/salla-add-product-button_5.entry.js +98 -18
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +4 -4
- 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 +18 -18
- package/dist/esm/salla-badge.entry.js +2 -2
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-bullet-delivery_3.entry.js +46 -18
- package/dist/esm/salla-cart-coupons.entry.js +3 -3
- package/dist/esm/salla-cart-item-offers_2.entry.js +2 -2
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_9.entry.js +4 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +231 -42
- 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 +3 -3
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +4 -4
- package/dist/esm/salla-hook.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-localization-modal.entry.js +2 -2
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner_10.entry.js +15 -15
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +2 -2
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- package/dist/esm/salla-map_3.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item_2.entry.js +2 -2
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +2 -2
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-shipments.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +2 -2
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-card.entry.js +6 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +2 -2
- package/dist/esm/salla-review-order-item.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-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 +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-udlectbY.js → vanilla-picker-BCMDEwEz.js} +1 -1
- package/dist/twilight/{p-27bd4595.entry.js → p-00ade9ab.entry.js} +1 -1
- package/dist/twilight/{p-d5569734.entry.js → p-02b4c53f.entry.js} +1 -1
- package/dist/twilight/{p-c110b53d.entry.js → p-040a60fa.entry.js} +1 -1
- package/dist/twilight/{p-ffad3361.entry.js → p-077bba56.entry.js} +1 -1
- package/dist/twilight/p-08283d58.entry.js +4 -0
- package/dist/twilight/{p-35d7d846.entry.js → p-092e3574.entry.js} +1 -1
- package/dist/twilight/{p-7990ce68.entry.js → p-0ce7ec43.entry.js} +1 -1
- package/dist/twilight/{p-e92f48e4.entry.js → p-0cff28ab.entry.js} +1 -1
- package/dist/twilight/{p-51d05d98.entry.js → p-128c99f8.entry.js} +1 -1
- package/dist/twilight/{p-95d0541d.entry.js → p-12d5856d.entry.js} +1 -1
- package/dist/twilight/{p-14f8cac1.entry.js → p-1678e509.entry.js} +1 -1
- package/dist/twilight/{p-6d73e7a6.entry.js → p-1b61fdb7.entry.js} +1 -1
- package/dist/twilight/{p-bc18aeb4.entry.js → p-1c5df94c.entry.js} +1 -1
- package/dist/twilight/{p-d1a4f83d.entry.js → p-1e3f96f6.entry.js} +1 -1
- package/dist/twilight/{p-f3282946.entry.js → p-217e8d6b.entry.js} +1 -1
- package/dist/twilight/{p-d1b36139.entry.js → p-22454aab.entry.js} +1 -1
- package/dist/twilight/{p-a369942e.entry.js → p-28cadf49.entry.js} +1 -1
- package/dist/twilight/{p-09ae59b1.entry.js → p-29683d1e.entry.js} +1 -1
- package/dist/twilight/{p-CCYJtFjS.js → p-2LY0VWl8.js} +1 -1
- package/dist/twilight/{p-b2599a06.entry.js → p-2ade195d.entry.js} +1 -1
- package/dist/twilight/{p-a9f688de.entry.js → p-2c3bd065.entry.js} +1 -1
- package/dist/twilight/{p-b383c367.entry.js → p-2ddf12c9.entry.js} +1 -1
- package/dist/twilight/{p-0c831653.entry.js → p-2e68382e.entry.js} +1 -1
- package/dist/twilight/{p-aced78e3.entry.js → p-39df1337.entry.js} +1 -1
- package/dist/twilight/{p-60e22c9f.entry.js → p-3cae6c0b.entry.js} +1 -1
- package/dist/twilight/{p-8a504c71.entry.js → p-3ccaf56b.entry.js} +1 -1
- package/dist/twilight/{p-3b4177b3.entry.js → p-477fbe60.entry.js} +1 -1
- package/dist/twilight/{p-3e5f2344.entry.js → p-4e53c800.entry.js} +1 -1
- package/dist/twilight/{p-0ae6220d.entry.js → p-4ec4c29d.entry.js} +1 -1
- package/dist/twilight/p-4f9e25a2.entry.js +4 -0
- package/dist/twilight/{p-47e2e8e9.entry.js → p-4fe6b957.entry.js} +1 -1
- package/dist/twilight/{p-c4d21bf1.entry.js → p-512dffba.entry.js} +1 -1
- package/dist/twilight/{p-c99455cb.entry.js → p-5258eb5b.entry.js} +1 -1
- package/dist/twilight/{p-4187ecdc.entry.js → p-52abc216.entry.js} +1 -1
- package/dist/twilight/{p-c98741e6.entry.js → p-55c0c4d5.entry.js} +1 -1
- package/dist/twilight/{p-cd9d31d0.entry.js → p-55ecefaf.entry.js} +1 -1
- package/dist/twilight/{p-f8aee2bb.entry.js → p-5912c685.entry.js} +1 -1
- package/dist/twilight/{p-58861477.entry.js → p-596695cb.entry.js} +1 -1
- package/dist/twilight/{p-3a9d92aa.entry.js → p-59a7515b.entry.js} +1 -1
- package/dist/twilight/{p-a0320551.entry.js → p-5aff8807.entry.js} +1 -1
- package/dist/twilight/p-5de36f11.entry.js +4 -0
- package/dist/twilight/{p-759da507.entry.js → p-60f4c8b0.entry.js} +1 -1
- package/dist/twilight/{p-13435c91.entry.js → p-66460e90.entry.js} +1 -1
- package/dist/twilight/{p-96e50b68.entry.js → p-6ef17286.entry.js} +1 -1
- package/dist/twilight/{p-5dc298b5.entry.js → p-6fe42bfe.entry.js} +1 -1
- package/dist/twilight/{p-09eb8f1c.entry.js → p-717258c4.entry.js} +1 -1
- package/dist/twilight/{p-8d8a30d2.entry.js → p-73795f51.entry.js} +1 -1
- package/dist/twilight/{p-aab0f1d2.entry.js → p-77540bba.entry.js} +1 -1
- package/dist/twilight/{p-6329be65.entry.js → p-7785635d.entry.js} +1 -1
- package/dist/twilight/{p-2b8c9426.entry.js → p-77a708f4.entry.js} +1 -1
- package/dist/twilight/{p-725e95f8.entry.js → p-7a7b9917.entry.js} +1 -1
- package/dist/twilight/{p-afbd2ee2.entry.js → p-810fca9f.entry.js} +1 -1
- package/dist/twilight/{p-383a27f9.entry.js → p-84aa1f0f.entry.js} +1 -1
- package/dist/twilight/{p-7aecccea.entry.js → p-85df7952.entry.js} +1 -1
- package/dist/twilight/{p-18ad8678.entry.js → p-8628e5d7.entry.js} +1 -1
- package/dist/twilight/{p-a5dd48f9.entry.js → p-87638789.entry.js} +1 -1
- package/dist/twilight/{p-2cff009d.entry.js → p-8872ae84.entry.js} +1 -1
- package/dist/twilight/p-8b6d7dbc.entry.js +4 -0
- package/dist/twilight/{p-bd7a187b.entry.js → p-8bd738dd.entry.js} +1 -1
- package/dist/twilight/{p-e03fb8ac.entry.js → p-8e3ceb05.entry.js} +1 -1
- package/dist/twilight/{p-5b167270.entry.js → p-8ea86806.entry.js} +1 -1
- package/dist/twilight/{p-9c9a704d.entry.js → p-913f0e67.entry.js} +1 -1
- package/dist/twilight/{p-4b2378e8.entry.js → p-928bdd13.entry.js} +1 -1
- package/dist/twilight/{p-ab5584df.entry.js → p-94bab301.entry.js} +1 -1
- package/dist/twilight/{p-a99c5099.entry.js → p-9549fe7d.entry.js} +1 -1
- package/dist/twilight/{p-OiLV6a-C.js → p-B4qhqpMO.js} +1 -1
- package/dist/twilight/{p-DXda9rxP.js → p-BC0OSCdw.js} +1 -1
- package/dist/twilight/{p-Bye5nKth.js → p-BQ2uPuvt.js} +1 -1
- package/dist/twilight/{p-DAbrkC6H.js → p-BqsrYTv0.js} +1 -1
- package/dist/twilight/{p-iokZGmGz.js → p-CJ9itb04.js} +1 -1
- package/dist/twilight/{p-C83L8L5O.js → p-CbE9Aa2n.js} +1 -1
- package/dist/twilight/{p-DszU5yJL.js → p-Cfn7Ybxi.js} +1 -1
- package/dist/twilight/{p-C3FesFcg.js → p-DdkjVgyM.js} +1 -1
- package/dist/twilight/{p-CZemiB_f.js → p-Dz1PaIS6.js} +1 -1
- package/dist/twilight/{p-bab0d2fe.entry.js → p-a4bea3d2.entry.js} +1 -1
- package/dist/twilight/{p-041823c4.entry.js → p-a72038c1.entry.js} +1 -1
- package/dist/twilight/{p-de5faf0c.entry.js → p-a7340ba8.entry.js} +1 -1
- package/dist/twilight/{p-885e3acd.entry.js → p-a94e4fc8.entry.js} +1 -1
- package/dist/twilight/{p-c0d863ac.entry.js → p-ad92b347.entry.js} +1 -1
- package/dist/twilight/{p-fa924a5c.entry.js → p-b65a15cb.entry.js} +1 -1
- package/dist/twilight/p-b92eb535.entry.js +4 -0
- package/dist/twilight/{p-493d0982.entry.js → p-bb8f6167.entry.js} +1 -1
- package/dist/twilight/{p-dfb539d9.entry.js → p-bbfd1991.entry.js} +1 -1
- package/dist/twilight/{p-9357db15.entry.js → p-beb9023e.entry.js} +1 -1
- package/dist/twilight/{p-cc9c88ba.entry.js → p-ca540632.entry.js} +1 -1
- package/dist/twilight/{p-50b7f8c5.entry.js → p-d32ba4d6.entry.js} +1 -1
- package/dist/twilight/{p-77d328bb.entry.js → p-dbe87ffe.entry.js} +1 -1
- package/dist/twilight/{p-1e69337d.entry.js → p-dd4e8765.entry.js} +1 -1
- package/dist/twilight/{p-72268480.entry.js → p-de3cd06e.entry.js} +1 -1
- package/dist/twilight/{p-6351de41.entry.js → p-e0600f10.entry.js} +1 -1
- package/dist/twilight/{p-bd138449.entry.js → p-e0a3937a.entry.js} +1 -1
- package/dist/twilight/{p-490d5cf2.entry.js → p-e5ae8c3b.entry.js} +1 -1
- package/dist/twilight/{p-ca2cb7e6.entry.js → p-e67ba69c.entry.js} +1 -1
- package/dist/twilight/p-e77d4dbc.entry.js +4 -0
- package/dist/twilight/{p-51d3e25b.entry.js → p-eb5d5edc.entry.js} +1 -1
- package/dist/twilight/{p-12ef8d71.entry.js → p-ed39f8fd.entry.js} +1 -1
- package/dist/twilight/{p-63d4e082.entry.js → p-f1b8972a.entry.js} +1 -1
- package/dist/twilight/{p-eba2649a.entry.js → p-f66a6f43.entry.js} +1 -1
- package/dist/twilight/{p-9e4da911.entry.js → p-f9aa9b5b.entry.js} +1 -1
- package/dist/twilight/{p-118b88d0.entry.js → p-f9d778ec.entry.js} +1 -1
- package/dist/twilight/{p-841aa8c8.entry.js → p-fcf32a4c.entry.js} +24 -24
- package/dist/twilight/{p-7efec4d0.entry.js → p-fd38337e.entry.js} +1 -1
- package/dist/twilight/p-s0kn7yr8.js +4 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-order-options-modal/apple-pay-order-options.d.ts +9 -4
- package/dist/types/components/salla-order-options-modal/free-product-payload.d.ts +19 -0
- package/dist/types/components/salla-order-options-modal/order-options-gate.d.ts +11 -1
- package/dist/types/components/salla-order-options-modal/salla-order-options-modal.d.ts +76 -21
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +2 -0
- package/dist/types/components.d.ts +59 -22
- package/package.json +5 -5
- package/dist/twilight/p-1069f299.entry.js +0 -4
- package/dist/twilight/p-2796cee2.entry.js +0 -4
- package/dist/twilight/p-3d466e85.entry.js +0 -4
- package/dist/twilight/p-5287c01f.entry.js +0 -4
- package/dist/twilight/p-5ab972ac.entry.js +0 -4
- package/dist/twilight/p-6f42cb42.entry.js +0 -4
- package/dist/twilight/p-Bg2HuLRr.js +0 -4
|
@@ -45,11 +45,11 @@ export class SallaProductSizeGuide {
|
|
|
45
45
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("salla-modal", { key: '
|
|
48
|
+
return (h("salla-modal", { key: '821a0f8c890f62c278f2c6fbb0081c58074134fa', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '54972cbc6899d788b3543f882d3f3cf0c6a50071', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '251eca54b49ccd504cec94371103d52db3dceae5', slot: "loading" }, h("div", { key: '65563fe5e6114cdc1958b6acfc23338f87629ee9', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '66c8da1a0ca4ff7bb48b7274135de2a79c08cf69', height: '15px', width: '25%' }), h("div", { key: '33f7ec9dc4d1749bebdd8d1765b63b04f13473f3', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '1f1e52c77826df60eae9c814d0db6dfa22976495', height: '40px' }), h("salla-skeleton", { key: '608fc344f8b06e23776fac615b49730f5934baec', height: '40px' }), h("salla-skeleton", { key: '876f24fb4e06b8bd094ca9bc18c55e196b388201', height: '40px' }), h("salla-skeleton", { key: 'd3f0c5baad4e0d940b3a30598353629dd199cd38', height: '40px' })), h("div", { key: 'f492afd9c329add253c60c8692173288437213d8', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '7246853ccd94c5de70dac399593cf3dd64ae85de', height: '15px', width: '25%' }), h("salla-skeleton", { key: '5b314c2a99a4437891a7fcaf4d01a29597a03422', height: '10px', width: '75%' }), h("salla-skeleton", { key: '4cde9368235a5f355d3ce4c28642cb3f29716880', height: '10px', width: '50%' }), h("salla-skeleton", { key: 'fb7be5927efc29a993049632dde462e5e329d74b', height: '10px', width: '75%' }), h("salla-skeleton", { key: '945f9901fdd6b681c28b80f3a7b9c253c5063424', height: '10px', width: '100%' }), h("salla-skeleton", { key: '991f7e304524d0acc6c8eab5dfef4be75eee7655', height: '10px', width: '25%' }), h("salla-skeleton", { key: '9d2c66c90b20abd0984ea2ef3ced2f9dbe3479c2', height: '10px', width: '60%' }), h("salla-skeleton", { key: '0943d7f53030e26034e01c89c8edf1cfd76a87ab', height: '10px', width: '45%' }), h("salla-skeleton", { key: '683502d6f44eb68fe7ba7f9b54df456b725bd126', height: '10px', width: '30%' })))), h("slot", { key: 'bf50073356c49df10842635491e2606321faaa50', name: "header" }), !this.hasError && !!this.guides ?
|
|
49
49
|
[
|
|
50
50
|
h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
|
|
51
51
|
]
|
|
52
|
-
: this.showPlaceholder(), h("slot", { key: '
|
|
52
|
+
: this.showPlaceholder(), h("slot", { key: '2f357ddc66624cb7c05324ed9fb8c1164b39eda1', name: "footer" })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "salla-product-size-guide"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -91,7 +91,7 @@ export class SallaQuantityInput {
|
|
|
91
91
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
92
92
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
93
93
|
}
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: 'bf0882609ec0e164d8280789ee6deeaadeb3e484', class: "s-quantity-input" }, h("div", { key: 'c69afe51313f69250454cf6cf72dba89fb1f92e2', class: "s-quantity-input-container" }, h("button", { key: '8a02d3452f9727278acae90f1017eed65033c0a3', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: 'f4f1dbb40e2d90205075a8d3bf31a7e4a08ee6b5', name: "increment-button" })), h("input", { key: '67b7cdc6ef5311799d200660f26a7520e122b411', class: "s-quantity-input-input", ...inputAttributes, ref: (el) => this.textInput = el, onInput: (event) => this.setValue(event.target.value), inputMode: "numeric", pattern: "[0-9]*", min: "1", readOnly: this.disableInput, value: this.quantity }), h("button", { key: 'f0139bd8e74744e9396cbae706151ec3c092766b', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: 'd051c3ca89310e67f834a970788abc606e5d2bbc', name: "decrement-button" })))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "salla-quantity-input"; }
|
|
97
97
|
static get originalStyleUrls() {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { Host, h } from "@stencil/core";
|
|
5
5
|
import "@salla.sa/applepay/src/index";
|
|
6
6
|
import { resolveApplePayOrderOptions, appendOrderOptionsToPayload, reportProductOptionsValiditySync, } from "../salla-order-options-modal/apple-pay-order-options";
|
|
7
|
+
import { injectFreeProductsIntoPayload } from "../salla-order-options-modal/free-product-payload";
|
|
7
8
|
import { applePayMerchantId, canCompleteApplePay, ensureApplePaySdk } from "@salla.sa/applepay/src/apple-pay-support";
|
|
8
9
|
export class SallaQuickBuy {
|
|
9
10
|
constructor() {
|
|
@@ -29,6 +30,8 @@ export class SallaQuickBuy {
|
|
|
29
30
|
this.options = {};
|
|
30
31
|
/** Modal selections, merged into the quick-purchase payload. */
|
|
31
32
|
this.collectedOrderOptions = [];
|
|
33
|
+
/** Free offer products the shopper configured in the wizard, for the products[] payload. */
|
|
34
|
+
this.collectedFreeProducts = [];
|
|
32
35
|
/** Flips true after the first onStartedSession so the second dispatch begins. */
|
|
33
36
|
this.optionsResolved = false;
|
|
34
37
|
/** PDP price + selected order-option prices (from the modal). */
|
|
@@ -38,9 +41,10 @@ export class SallaQuickBuy {
|
|
|
38
41
|
this.quickBuy = salla.lang.get('pages.products.buy_now');
|
|
39
42
|
/** Apple Pay onStartedSession: first call defers begin() to run the OO check; second (resolved) begins. */
|
|
40
43
|
this.handleApplePaySessionStarted = (session) => {
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
// Previously gated on `order_options.mandatory`, which is unrelated to CP-2836: a store with
|
|
45
|
+
// free-product options but mandatory order options off would skip the check entirely and get
|
|
46
|
+
// the wizard on Quick Buy but nothing on Apple Pay. resolveApplePayOrderOptions() begins the
|
|
47
|
+
// session untouched when the fetch finds nothing, so running it always is safe.
|
|
44
48
|
if (this.optionsResolved)
|
|
45
49
|
return false;
|
|
46
50
|
this.optionsResolved = true;
|
|
@@ -54,8 +58,9 @@ export class SallaQuickBuy {
|
|
|
54
58
|
this.pendingApplePaySession = null;
|
|
55
59
|
},
|
|
56
60
|
discardPendingSession: () => { this.pendingApplePaySession = null; },
|
|
57
|
-
onSubmit: (selections, total) => {
|
|
61
|
+
onSubmit: (selections, total, freeProducts) => {
|
|
58
62
|
this.collectedOrderOptions = selections;
|
|
63
|
+
this.collectedFreeProducts = freeProducts || [];
|
|
59
64
|
this.applePayAmount = total;
|
|
60
65
|
this.settlePayment();
|
|
61
66
|
},
|
|
@@ -77,6 +82,7 @@ export class SallaQuickBuy {
|
|
|
77
82
|
return;
|
|
78
83
|
this.optionsResolved = false;
|
|
79
84
|
this.collectedOrderOptions = [];
|
|
85
|
+
this.collectedFreeProducts = [];
|
|
80
86
|
this.applePayAmount = 0;
|
|
81
87
|
this.settlePayment();
|
|
82
88
|
}
|
|
@@ -113,6 +119,10 @@ export class SallaQuickBuy {
|
|
|
113
119
|
data.id = this.productId;
|
|
114
120
|
data.source = 'buy_now';
|
|
115
121
|
}
|
|
122
|
+
// After `id` is set, not before: the rewrite promotes it to products[0] and appends each
|
|
123
|
+
// configured gift as products[N]. checkout/mini is the same MiniCheckoutRequest endpoint the
|
|
124
|
+
// fast-checkout widget posts to, so the bracket-notation contract is identical.
|
|
125
|
+
injectFreeProductsIntoPayload(data, this.collectedFreeProducts);
|
|
116
126
|
// if the store doesn't have Apple Pay , just create a cart and then redirect to check out page
|
|
117
127
|
if (!this.isApplePayActive) {
|
|
118
128
|
return salla.api.request('checkout/mini', data, 'post')
|
|
@@ -309,7 +319,7 @@ export class SallaQuickBuy {
|
|
|
309
319
|
});
|
|
310
320
|
}
|
|
311
321
|
render() {
|
|
312
|
-
return h(Host, { key: '
|
|
322
|
+
return h(Host, { key: '928e447f7f5c03f64897ffdd3df639408ec74c24' }, this.quickBuyButton());
|
|
313
323
|
}
|
|
314
324
|
quickBuyButton() {
|
|
315
325
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -158,7 +158,7 @@ export class SallaReviewCard {
|
|
|
158
158
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return h("div", { key: '
|
|
161
|
+
return h("div", { key: '30740961e8642d6b3ea7877ef050dc5f16cd2ab3', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'ed7a5928b1b8b0294fa22f49471a8bf673d153d8', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: 'bd8013216d1127c19632f5e4f61494a91daf0e43', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "salla-review-card"; }
|
|
164
164
|
static get originalStyleUrls() {
|
|
@@ -47,7 +47,7 @@ export class SallaReviewFactorsTags {
|
|
|
47
47
|
return (h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (h("div", { class: "s-review-factors-tags-factor-tag" }, h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), h("span", { class: "s-review-factors-tags-factor-star", innerHTML: Star2 }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '01d13a2113db33368eecbf8cc0d1700fa501607b', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "salla-review-factors-tags"; }
|
|
53
53
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SallaReviewsPage {
|
|
|
142
142
|
return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (h("host", { key: '
|
|
145
|
+
return (h("host", { key: '230302f0bca1b13c1e846b394a7681686150d43a' }, h("div", { key: '0f94af9c8ad6b7d7e236ed55f071242369f3c36f', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '30ad45af9e9075b150a17b4927f608b80d1e86a8', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: '1a3d378eaf414eedb39a9501e11abb2802241af4', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '15671de5c36e3cc94aa2ce55050bb6ed5eb34397', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '87a59577afe28de5b08354af48d26809a61214e0', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: '4bc37af2cd6efbaea53032e6ce18241957bafc2f', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
|
|
146
146
|
this.wrapper = el;
|
|
147
147
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
148
148
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
|
|
@@ -188,18 +188,18 @@ export class SallaSearchableDropdown {
|
|
|
188
188
|
render() {
|
|
189
189
|
const hasSelection = this.selectedItem != null;
|
|
190
190
|
const listboxId = `${this.inputId}-listbox`;
|
|
191
|
-
return (h(Host, { key: '
|
|
191
|
+
return (h(Host, { key: '43d627acef93cb31e83a028b38d48edea04e38ab', class: "s-searchable-dropdown" }, h("div", { key: '612d69bef392dc0543354e1164cd471c05776a8a', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: '2c4fb7db9a5f5f3b0c1c8c8e2d0b46613084b40d', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: '6d3682a9201e91c2d39511eba5ddd875b97c2a25', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'd0e43f9e6af85f89ba01777029a21230b4a771bb', class: {
|
|
192
192
|
's-searchable-dropdown-trigger': true,
|
|
193
193
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
194
194
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
195
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
195
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '3bcc35244aa9ea44044a6b7e84545991efaac0ee', class: {
|
|
196
196
|
'sicon-keyboard_arrow_down': true,
|
|
197
197
|
's-searchable-dropdown-trigger-icon': true,
|
|
198
198
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
199
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
199
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '0b86ab2111b46c5b4d9c8cfc19a234ddee65205f', class: {
|
|
200
200
|
's-searchable-dropdown-panel': true,
|
|
201
201
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
202
|
-
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '
|
|
202
|
+
}, ref: (el) => (this.panelRef = el) }, this.searchable && (h("div", { key: '5bfcb32d2585ad7c8fa356cabda68dc093e93e3f', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: 'e5bfa4dfb9e634062ae7731790261325bb0e81b2', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '3310bfc538766cb818e7c43ad889f0c32e1c0be9', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId }))), h("div", { key: '02ca1f3d5408fa19c9a647d15add794f87174268', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
203
203
|
}
|
|
204
204
|
renderListContent() {
|
|
205
205
|
if (this.searching || this.loading) {
|
|
@@ -22,7 +22,7 @@ export class SallaSkeleton {
|
|
|
22
22
|
's-skeleton-item': true,
|
|
23
23
|
's-skeleton-item-circular': this.type == 'circle',
|
|
24
24
|
};
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'd0df738dd695e425153c2d560a4b162ef40db81d', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: 'a2dfadc879ee29ae17d2568c23e25249929fdb6b', class: classes }, "\u00A0")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-skeleton"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -31,7 +31,7 @@ export class SallaSocial {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const linksArray = this.getLinksArray();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'ba73443b6cfff8dd11d5733f5f398bce33c7aca9' }, h("ul", { key: '222f4a6e7c7256596285ed700f6d2ff9564d67d8', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
35
35
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
36
36
|
.replace(/\{type\}/g, link.type)
|
|
37
37
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -355,7 +355,7 @@ export class SallaSocialShare {
|
|
|
355
355
|
})));
|
|
356
356
|
}
|
|
357
357
|
render() {
|
|
358
|
-
return (h("div", { key: '
|
|
358
|
+
return (h("div", { key: 'fd5125df619064ee19d6761f65551fdea4eb997a', class: "s-social-share-wrapper" }, h("slot", { key: 'a2ba03b5f1979c63306556b5f0b429b5b1315c16', name: "widget" }, h("salla-button", { key: '4e0577c4e79bad0fd2490518f1852a7138d4acc7', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '06e22eea8385aaf0916eba892a22bdce7433423a', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
359
359
|
}
|
|
360
360
|
static get is() { return "salla-social-share"; }
|
|
361
361
|
static get originalStyleUrls() {
|
|
@@ -30,7 +30,7 @@ export class SallaTabContent {
|
|
|
30
30
|
's-tabs-content': true,
|
|
31
31
|
's-tabs-content-selected': this.isSelected
|
|
32
32
|
};
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: 'fe2029739fdb2ca7aa7301367a05bcfd16ec99b4', class: classes }, h("slot", { key: 'a27994e92b8c0b257688274473ead8d1cf1d617f' })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "salla-tab-content"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class SallaTabHeader {
|
|
|
52
52
|
's-tabs-active': this.isSelected,
|
|
53
53
|
};
|
|
54
54
|
return [
|
|
55
|
-
h("div", { key: '
|
|
55
|
+
h("div", { key: 'cd6f1a97165b747e6d3f6d460b53d873b5e4f74d', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: 'bfa07c462d9a808a06e3117f0fb81681aadb32c2' })),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "salla-tab-header"; }
|
|
@@ -50,7 +50,7 @@ export class SallaTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
return [
|
|
53
|
-
h("div", { key: '
|
|
53
|
+
h("div", { key: '978e30f489b6ecec5c7dc4b352643b354f43d00b', class: "s-tabs" }, h("div", { key: 'f25db5037185e731bf8c90f8d3639009d52c763b', class: "s-tabs-header" }, h("slot", { key: '0eb3761218ccbe8fe1b11b49d628a09cda11524e', name: "header" })), h("div", { key: 'e67399cfb20be5d8f8dac39a5f46d16c7364c957', class: "s-tabs-content-wrapper" }, h("slot", { key: '66ad532d8078ee98e40d9c1c69b2aa79f380044d', name: "content" })))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "salla-tabs"; }
|
|
@@ -138,7 +138,7 @@ export class SallaTelInput {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: 'f553ce5f883777989922140ad64f83962d754d18', class: "s-tel-input" }, h("input", { key: '6b60407705144cb98474cd904f85f53537a19c67', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '2f2714e8439c58786e6c9054006a2e40b97850b5', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '377f1a1357ced0fd13e2550c29f321867d62ae5e', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
142
142
|
}
|
|
143
143
|
componentDidLoad() {
|
|
144
144
|
this.initPromise = this.initTelInput();
|
|
@@ -27,7 +27,7 @@ export class SallaTooltip {
|
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
29
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: 'e73a49d46d14dbd44026e51f0552a3bb58be0676', class: "s-tooltip-container" }, h("div", { key: 'dbbafa65af70f4b11a0bd8e27fa108e2918e4969', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? h("span", null, this.text) : h("slot", null))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "salla-tooltip"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -532,7 +532,7 @@ export class SallaUserSettings {
|
|
|
532
532
|
return (h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeleteModal() }, this.capitalizeText(this.deleteAccount)));
|
|
533
533
|
}
|
|
534
534
|
render() {
|
|
535
|
-
return (h(Host, { key: '
|
|
535
|
+
return (h(Host, { key: '5b16de3c4fa6acc9d4dae8d0aac901051b9d0a26', class: "s-user-settings-wrapper" }, this.canHideName && (h("div", { key: '71b0a4653a9e0023963a5c1bca7e5d3d94b583e5', class: "s-user-settings-section" }, h("salla-list-tile", { key: '372c756a313d48cf6368f584b8552f4dd169fb35' }, h("div", { key: '33a473f34968cf5e58184d5946796ebfe464fc2e', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'a39af3f489de1626513a3059171509ae6f9cef18', innerHTML: UserCancel })), h("div", { key: '5eec4daa7deeb2a61f4ec141d4be80cce4522998', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '41243002963b7f755905639cfdf6d92a02a48257', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: '5302e98c29729f0d4031a0117fd00c60a48f1626', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: '833d57ab71bd62fc426d919da8f573b9e18ff624', class: "s-toggle" }, h("input", { key: 'e9ab1887a7fa1030ac47906fb0e4e74825e32dd9', class: "s-toggle-input", checked: this.isHiddenName, onChange: e => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: 'f68d38e68dfc3c35e62c7631cc0639e1b988de89', class: "s-toggle-switcher" })))))), h("div", { key: '6001f5154a4508b593f48331a53b1f1331bb104b', class: "s-user-settings-section" }, h("salla-list-tile", { key: '58649be5c499663db167b78701f2ed4c11432d27' }, h("div", { key: 'df9a77f69dca73f6b9489bf93fb814c16be82b3a', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '034a264135c0d859cd24e8097517cd81d74e6dd5', innerHTML: Bullhorn })), h("div", { key: 'd6c93af2883970d4b5999586b5ab01c6ef20cc12', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '97e16406b9f5b40c3b8eab3510c5e5bdae7d2d94', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: 'eaa618c6e20dbc6036de9a84005aa9fb43e0fa73', slot: "action", class: "s-user-settings-section-action" }, h("label", { key: 'd99864eae43abb9ce5a30370d6c648ce1e92e97d', class: "s-toggle" }, h("input", { key: 'b6c87dd66af006b01ed95f3ffecb8c87af38a2a2', class: "s-toggle-input", checked: this.isNotifiable, onChange: e => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'd5053152aef61b32e9304ddbf05070d1c3f83b50', class: "s-toggle-switcher" }))))), this.isDeleteAccountEnabled ? (h("div", { class: "s-user-settings-section s-user-settings-section-delete-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, this.renderUserDeleteIcon()), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deleteAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.isDeletePending ? this.deleteAccountPending : this.deleteAccountDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, this.renderDeleteSectionAction())))) : (h("div", { class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", null, h("div", { slot: "icon", class: "s-user-settings-section-icon" }, h("span", { innerHTML: UserOff })), h("div", { slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { slot: "action", class: "s-user-settings-section-action" }, h("salla-button", { fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount)))))), this.isDeleteAccountEnabled ? (h("salla-modal", { id: "salla-user-settings-delete-modal", width: "xs", centered: true, showBack: this.currentStep === 'otp', isClosable: this.currentStep !== 'success', iconStyle: this.currentStep === 'success' ? 'success' : undefined, onModalVisibilityChanged: e => this.handleModalVisibilityChanged(e), onModalBack: () => this.goBackFromOtp(), ref: modal => (this.confirmationModal = modal) }, this.currentStep !== 'success' ? (h("span", { slot: "icon", class: "s-user-settings-delete-icon" }, this.renderUserDeleteIcon())) : null, h("div", { key: this.currentStep, class: "s-user-settings-delete-step" }, this.renderDeleteStep()))) : (h("salla-modal", { width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => (this.confirmationModal = modal) }, h("span", { slot: "icon", class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { class: "s-user-settings-confirmation" }, h("div", { class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { class: "s-user-settings-confirmation-actions" }, h("salla-button", { width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { fill: "outline", loading: this.buttonLoading, width: "wide", onClick: () => this.confirmDeactivateAccount() }, this.capitalizeText(this.deactivateAccount))))))));
|
|
536
536
|
}
|
|
537
537
|
static get is() { return "salla-user-settings"; }
|
|
538
538
|
static get originalStyleUrls() {
|
|
@@ -325,7 +325,7 @@ export class SallaWishlistActions {
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
render() {
|
|
328
|
-
return (h(Host, { key: '
|
|
328
|
+
return (h(Host, { key: '575e430f5d84bacb7d5935bdcb21749530ec4115' }, h("div", { key: '505d622038b35dbb88062f338b46db279440f793', class: "s-wishlist-actions" }, h("div", { key: 'ad2fd3360d1ea418f8a209347775b4671b05cf36', class: "s-wishlist-actions-bar flex items-center justify-end gap-3 mb-3" }, h("div", { key: '8b4ef6e1e8be03cfce51b9e46f5d6b6b9cc3ff51', class: "s-wishlist-actions-dropdown relative" }, h("salla-button", { key: 'd85780c59bc19d4adbbf81f7bcd8e163d53e9f8b', color: "primary", fill: "outline", type: "button", disabled: !this.hasProducts, "aria-haspopup": "true", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: () => this.toggleMenu() }, h("div", { key: 'cc2450af93d67f803358bdc0c9ef48251bef2fd5', class: "flex flex-row justify-center items-center gap-2" }, h("svg", { key: '811b3c1021b6f81a91b0b8b6b2a0ff52f6090eed', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: '33d5c05bbad06de981a4805f3f3c2a1874667bdf', d: "M26.667 21.333c-1.699 0-3.196 0.812-4.173 2.052l-11.912-5.211c0.044-0.276 0.085-0.553 0.085-0.841 0-0.472-0.081-0.923-0.197-1.359l12.361-6.952c0.971 1.009 2.328 1.644 3.836 1.644 2.941 0 5.333-2.392 5.333-5.333s-2.392-5.333-5.333-5.333-5.333 2.392-5.333 5.333c0 0.472 0.081 0.923 0.197 1.359l-12.361 6.952c-0.971-1.009-2.328-1.644-3.836-1.644-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c1.699 0 3.196-0.812 4.173-2.052l11.912 5.211c-0.044 0.276-0.085 0.553-0.085 0.841 0 2.941 2.392 5.333 5.333 5.333s5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM26.667 2.667c1.471 0 2.667 1.196 2.667 2.667s-1.196 2.667-2.667 2.667-2.667-1.196-2.667-2.667 1.196-2.667 2.667-2.667zM5.333 20c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM26.667 29.333c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z" })), this.shareLabel, h("svg", { key: 'b38cbf49ab69e7a8ebc97656931d7892c0d01769', version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 32 32", style: { width: '16px', height: '16px' } }, h("path", { key: '280a8c4c00639fd9db33e3e3adc3ea21b717dbfd', d: "M26.212 10.996c-0.556-0.484-1.396-0.428-1.881 0.127l-8.331 9.519-8.331-9.52c-0.485-0.555-1.327-0.611-1.881-0.125s-0.609 1.328-0.124 1.881l9.333 10.667c0.253 0.291 0.617 0.456 1.003 0.456s0.749-0.165 1.003-0.456l9.333-10.667c0.485-0.553 0.429-1.396-0.124-1.881z" })))), this.menuOpen && (h("ul", { key: '37bfd53d61af157373ac2dcc1c9a00b7430d6721', class: "s-wishlist-actions-menu absolute z-20 mt-1 bg-white rounded-lg shadow overflow-hidden" }, h("li", { key: 'ae2ee1764f7a969655136dacd36cf194b52b864b' }, h("button", { key: '0ea74cadf31c26751467fecb8eb60e46a75990ab', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareAll() }, this.shareAllLabel)), h("li", { key: '966e9d4ae8189f7aab35772da1a88411e260a134' }, h("button", { key: 'bddf33775aa9dcf97012806c2576481d35f97db6', type: "button", class: "s-wishlist-actions-menu-item", onClick: () => this.shareSpecific() }, this.shareSpecificLabel))))), h("salla-social-share", { key: '3778b8eb481e3add3ec9dbe6424c31bf9a84c310', class: "s-wishlist-actions-social", ref: el => (this.socialShare = el), url: this.shareUrl, mode: "modal", modalTitle: this.shareModalTitle }, h("span", { key: '2c609941f78ebf6c9bc55893778ff48e701bd177', slot: "widget", class: "s-wishlist-actions-social-anchor", "aria-hidden": "true" }))), this.specificMode && (h("div", { key: '62d9d436a57da5d670fd0e0c8043b285c71ba8c4', class: "s-wishlist-actions-panel flex items-center justify-between gap-4 flex-wrap p-4 mt-3 mb-3 bg-white rounded-lg" }, h("label", { key: '2d9a0db68345429f841bc0ed5f8e470f0e7926ca', class: "s-wishlist-actions-panel-select-all flex items-center gap-2 cursor-pointer" }, h("input", { key: '1e7c8f64686b90d45196f2d375cd22b3b5828714', type: "checkbox", class: "s-products-list-select-checkbox s-wishlist-actions-select-all", checked: this.isAllSelected, ref: el => (this.selectAllCheckbox = el), "aria-label": this.selectAllLabel, onChange: () => this.toggleSelectAll() }), h("span", { key: '14e80e18002377bddae31754eaa362d6ab0eb3b5', class: "s-wishlist-actions-panel-title text-sm font-bold text-gray-700" }, this.shareSpecificLabel, " (", this.selectedCount, ")")), h("div", { key: '1f6636baed949f5cdb281a00324d28a8a95cc7f3', class: "s-wishlist-actions-panel-buttons flex items-center gap-2" }, h("salla-button", { key: 'd4201e22037319d39aa682211717c9f5cb6a25fa', class: "s-wishlist-actions-cancel", color: "light", fill: "outline", type: "button", onClick: () => this.cancelSpecific() }, this.cancelLabel), h("salla-button", { key: 'ad0ed46247656281241e5d463f54a9f3ffe76a57', class: "s-wishlist-actions-share", color: "primary", fill: "outline", type: "button", disabled: !this.selectedCount, loading: this.isSharing, onClick: () => this.shareSelected() }, this.shareLabel)))))));
|
|
329
329
|
}
|
|
330
330
|
static get is() { return "salla-wishlist-actions"; }
|
|
331
331
|
static get originalStyleUrls() {
|
|
@@ -46,9 +46,13 @@ function appendOrderOptionsToPayload(data, orderOptions) {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Fetch order options
|
|
50
|
-
* caller's pre-created session:
|
|
51
|
-
*
|
|
49
|
+
* Fetch order options plus any free offer products and, if there is anything to collect, run the
|
|
50
|
+
* modal in apple-pay mode. Callbacks drive the caller's pre-created session:
|
|
51
|
+
* `beginPendingSession` (nothing to collect), `discardPendingSession` (something found — the
|
|
52
|
+
* modal's AP button starts a fresh one), `onSubmit` (submitted).
|
|
53
|
+
*
|
|
54
|
+
* The modal puts the Apple Pay button on whichever step is genuinely last, so a store with gifts
|
|
55
|
+
* but no order options still ends on the payment sheet instead of a dead Continue button.
|
|
52
56
|
*/
|
|
53
57
|
async function resolveApplePayOrderOptions(opts) {
|
|
54
58
|
let resp;
|
|
@@ -60,8 +64,12 @@ async function resolveApplePayOrderOptions(opts) {
|
|
|
60
64
|
opts.beginPendingSession();
|
|
61
65
|
return;
|
|
62
66
|
}
|
|
63
|
-
const
|
|
64
|
-
|
|
67
|
+
const orderItems = resp?.data?.order_options || [];
|
|
68
|
+
// advance_free_product is a LIST (one entry per qualifying offer), or null. Reading `.options`
|
|
69
|
+
// off it treats the array as an object and yields undefined, which silently skipped every gift.
|
|
70
|
+
const freeProducts = (Array.isArray(resp?.data?.advance_free_product) ? resp.data.advance_free_product : [])
|
|
71
|
+
.filter((entry) => Array.isArray(entry?.options) && entry.options.length);
|
|
72
|
+
if (!orderItems.length && !freeProducts.length) {
|
|
65
73
|
opts.beginPendingSession(); // begin() doesn't need a fresh gesture
|
|
66
74
|
return;
|
|
67
75
|
}
|
|
@@ -72,7 +80,8 @@ async function resolveApplePayOrderOptions(opts) {
|
|
|
72
80
|
const modal = ensureOrderOptionsModal();
|
|
73
81
|
try {
|
|
74
82
|
await modal.open({
|
|
75
|
-
orderOptions:
|
|
83
|
+
orderOptions: orderItems,
|
|
84
|
+
freeProducts,
|
|
76
85
|
basePrice,
|
|
77
86
|
paymentMode: 'apple-pay',
|
|
78
87
|
onSubmit: opts.onSubmit,
|