@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement, e as axios } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement, e as axios } from './index-BC0OSCdw.js';
|
|
5
5
|
import { C as Cart } from './cart-gFG8By9O.js';
|
|
6
6
|
import { H as Helper } from './Helper-Cql-WbqR.js';
|
|
7
7
|
import { a as fetchProductBoughtTogether } from './catalog-recommendations-CRW60UDr.js';
|
|
@@ -9,7 +9,7 @@ import { B as BellRing } from './bell-ring-D3mWkc-3.js';
|
|
|
9
9
|
import { D as DisplayType } from './interfaces-CoQJOPRz.js';
|
|
10
10
|
import { i as iconCheck } from './check-BsXh13x8.js';
|
|
11
11
|
import { C as CameraIcon } from './camera-C6jIkM-X.js';
|
|
12
|
-
import { r as resolveApplePayOrderOptions, b as reportProductOptionsValiditySync, a as appendOrderOptionsToPayload } from './apple-pay-order-options-
|
|
12
|
+
import { r as resolveApplePayOrderOptions, b as reportProductOptionsValiditySync, a as appendOrderOptionsToPayload } from './apple-pay-order-options-s0kn7yr8.js';
|
|
13
13
|
import './anime.es-CgtvEd63.js';
|
|
14
14
|
|
|
15
15
|
var WalletIcon = `<!-- Generated by IcoMoon.io -->
|
|
@@ -148,9 +148,60 @@ async function canCompleteApplePay(currency = 'SAR') {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Rewrite a cart-add payload from the flat single-product shape into the products[] shape, so
|
|
153
|
+
* the main product and every configured free product are added in one request:
|
|
154
|
+
*
|
|
155
|
+
* id=X&quantity=N
|
|
156
|
+
* ↓
|
|
157
|
+
* products[0][id]=X&products[0][quantity]=N
|
|
158
|
+
* products[1][id]=Y₁&products[1][quantity]=1&products[1][options][o₁]=v₁
|
|
159
|
+
* products[2][id]=Y₂&products[2][quantity]=2&products[2][options][o₂]=v₂
|
|
160
|
+
*
|
|
161
|
+
* X has to move into products[0] rather than being left as a bare `id`, otherwise the gifts are
|
|
162
|
+
* the only entries in the array. Bracket-notation string keys, not nested objects: the payload
|
|
163
|
+
* may be backed by FormData (which stringifies anything non-scalar to "[object Object]"), and
|
|
164
|
+
* MiniCheckoutRequest::prepareForValidation() expands these keys back into nested arrays.
|
|
165
|
+
*
|
|
166
|
+
* Only the payload is touched — `data.id`, which builds the request URL, is left alone.
|
|
167
|
+
*/
|
|
168
|
+
function injectFreeProductsIntoPayload(payload, freeProducts) {
|
|
169
|
+
if (!payload || !freeProducts?.length)
|
|
170
|
+
return;
|
|
171
|
+
// Two payload shapes reach this: the cart's FormDataWrapper (get/set/delete) from
|
|
172
|
+
// `cart::before.add.item`, and the plain object `getElementSallaData()` hands the Apple Pay
|
|
173
|
+
// flow. Normalize the three accessors so both work — a `set?.()` on a bare object would
|
|
174
|
+
// silently no-op and drop every gift.
|
|
175
|
+
const hasApi = typeof payload.set === 'function';
|
|
176
|
+
const get = (k) => (hasApi ? payload.get?.(k) : payload[k]);
|
|
177
|
+
const set = (k, v) => { hasApi ? payload.set(k, v) : (payload[k] = v); };
|
|
178
|
+
const del = (k) => { hasApi ? payload.delete?.(k) : delete payload[k]; };
|
|
179
|
+
// Read before deleting — X's own id/quantity become products[0].
|
|
180
|
+
const mainId = get('id');
|
|
181
|
+
const mainQty = get('quantity') || '1';
|
|
182
|
+
if (mainId) {
|
|
183
|
+
del('id');
|
|
184
|
+
del('quantity');
|
|
185
|
+
set('products[0][id]', String(mainId));
|
|
186
|
+
set('products[0][quantity]', String(mainQty));
|
|
187
|
+
}
|
|
188
|
+
freeProducts.forEach((free, index) => {
|
|
189
|
+
const slot = mainId ? index + 1 : index;
|
|
190
|
+
set(`products[${slot}][id]`, String(free.productId));
|
|
191
|
+
set(`products[${slot}][quantity]`, String(free.quantity));
|
|
192
|
+
Object.entries(free.options).forEach(([optionId, value]) => {
|
|
193
|
+
set(`products[${slot}][options][${optionId}]`, String(value));
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
|
|
151
198
|
/**
|
|
152
199
|
* Order-options gate for the fast-checkout widget — keeps <salla-add-product-button> thin.
|
|
153
200
|
* Intercepts the widget click → runs the order-options modal → injects the result → re-fires the click.
|
|
201
|
+
*
|
|
202
|
+
* CP-2836: also handles advance_free_product — a LIST of free offer products (one entry per
|
|
203
|
+
* qualifying offer, priority-ordered and capped by the store's offers limit). Each gets its own
|
|
204
|
+
* wizard step, and every configured one is injected into the mini-checkout payload.
|
|
154
205
|
*/
|
|
155
206
|
const PRODUCT_FORM_SELECTOR = 'form.product-form';
|
|
156
207
|
class OrderOptionsGate {
|
|
@@ -214,8 +265,14 @@ class OrderOptionsGate {
|
|
|
214
265
|
return;
|
|
215
266
|
}
|
|
216
267
|
widget.classList.remove('s-add-product-button-busy');
|
|
217
|
-
const
|
|
218
|
-
|
|
268
|
+
const orderItems = resp?.data?.order_options || [];
|
|
269
|
+
// Null when the store setting is off or no offer qualifies; otherwise a list of
|
|
270
|
+
// { product, options, offer_name, quantity } entries.
|
|
271
|
+
const advFreeProduct = resp?.data?.advance_free_product;
|
|
272
|
+
const freeProducts = (Array.isArray(advFreeProduct) ? advFreeProduct : [])
|
|
273
|
+
.filter((entry) => Array.isArray(entry?.options) && entry.options.length);
|
|
274
|
+
// Nothing to collect — proceed straight to checkout.
|
|
275
|
+
if (!orderItems.length && !freeProducts.length) {
|
|
219
276
|
this.resumeWidget(widget);
|
|
220
277
|
return;
|
|
221
278
|
}
|
|
@@ -224,8 +281,12 @@ class OrderOptionsGate {
|
|
|
224
281
|
: Number(resp?.data?.products?.[0]?.price?.amount) || 0;
|
|
225
282
|
const modal = this.ensureModal();
|
|
226
283
|
try {
|
|
227
|
-
const result = await modal.open({
|
|
228
|
-
|
|
284
|
+
const result = await modal.open({
|
|
285
|
+
orderOptions: orderItems,
|
|
286
|
+
freeProducts,
|
|
287
|
+
basePrice,
|
|
288
|
+
});
|
|
289
|
+
this.injectIntoMini(result?.orderOptions || [], result?.freeProducts || []);
|
|
229
290
|
this.resumeWidget(widget);
|
|
230
291
|
}
|
|
231
292
|
catch {
|
|
@@ -244,16 +305,26 @@ class OrderOptionsGate {
|
|
|
244
305
|
}
|
|
245
306
|
return true;
|
|
246
307
|
}
|
|
247
|
-
/**
|
|
248
|
-
|
|
249
|
-
|
|
308
|
+
/**
|
|
309
|
+
* Inject collected options into the next cart-add payload via `cart::before.add.item` (one-shot).
|
|
310
|
+
*
|
|
311
|
+
* Order options → set as `order_options` on the existing payload wrapper.
|
|
312
|
+
* Free products → the payload is rewritten into the products[] shape; see
|
|
313
|
+
* ./free-product-payload for the exact mapping and why.
|
|
314
|
+
*/
|
|
315
|
+
injectIntoMini(orderOptions, freeProducts) {
|
|
316
|
+
if (!orderOptions.length && !freeProducts.length)
|
|
250
317
|
return;
|
|
251
318
|
const productId = this.productId;
|
|
252
319
|
const onceHandler = (eventData) => {
|
|
253
320
|
if (String(eventData?.id) !== String(productId))
|
|
254
321
|
return;
|
|
255
322
|
try {
|
|
256
|
-
eventData?.payload
|
|
323
|
+
const payload = eventData?.payload;
|
|
324
|
+
if (orderOptions.length) {
|
|
325
|
+
payload?.set?.('order_options', orderOptions);
|
|
326
|
+
}
|
|
327
|
+
injectFreeProductsIntoPayload(payload, freeProducts);
|
|
257
328
|
}
|
|
258
329
|
finally {
|
|
259
330
|
salla.event.off('cart::before.add.item', onceHandler);
|
|
@@ -501,9 +572,9 @@ const SallaAddProductButton = class {
|
|
|
501
572
|
}
|
|
502
573
|
componentDidRender() {
|
|
503
574
|
// Wire the order-options gate to the fast-checkout widget once it renders (logic lives in OrderOptionsGate).
|
|
504
|
-
//
|
|
575
|
+
// Always attach so the gate can intercept for both order options AND advance free product options
|
|
576
|
+
// (CP-2836). The gate fetches product/options on click and resumes immediately when nothing is needed.
|
|
505
577
|
if (!this.orderOptionsGateAttached && this.productId
|
|
506
|
-
&& salla.config.get('store.settings.order_options.mandatory', false)
|
|
507
578
|
&& OrderOptionsGate.attach(this.host, this.productId)) {
|
|
508
579
|
this.orderOptionsGateAttached = true;
|
|
509
580
|
}
|
|
@@ -839,7 +910,7 @@ const SallaProductAvailability = class {
|
|
|
839
910
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
840
911
|
}
|
|
841
912
|
render() {
|
|
842
|
-
return (h(Host, { key: '
|
|
913
|
+
return (h(Host, { key: '646195e9982d709d58b12eae7ee0649f85a76d93', class: "s-product-availability-wrap" }, this.isSubscribedToProduct
|
|
843
914
|
? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRing, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
|
|
844
915
|
:
|
|
845
916
|
h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribedToProduct ? '' : this.renderModal()));
|
|
@@ -3426,6 +3497,8 @@ const SallaQuickBuy = class {
|
|
|
3426
3497
|
this.options = {};
|
|
3427
3498
|
/** Modal selections, merged into the quick-purchase payload. */
|
|
3428
3499
|
this.collectedOrderOptions = [];
|
|
3500
|
+
/** Free offer products the shopper configured in the wizard, for the products[] payload. */
|
|
3501
|
+
this.collectedFreeProducts = [];
|
|
3429
3502
|
/** Flips true after the first onStartedSession so the second dispatch begins. */
|
|
3430
3503
|
this.optionsResolved = false;
|
|
3431
3504
|
/** PDP price + selected order-option prices (from the modal). */
|
|
@@ -3435,9 +3508,10 @@ const SallaQuickBuy = class {
|
|
|
3435
3508
|
this.quickBuy = salla.lang.get('pages.products.buy_now');
|
|
3436
3509
|
/** Apple Pay onStartedSession: first call defers begin() to run the OO check; second (resolved) begins. */
|
|
3437
3510
|
this.handleApplePaySessionStarted = (session) => {
|
|
3438
|
-
//
|
|
3439
|
-
|
|
3440
|
-
|
|
3511
|
+
// Previously gated on `order_options.mandatory`, which is unrelated to CP-2836: a store with
|
|
3512
|
+
// free-product options but mandatory order options off would skip the check entirely and get
|
|
3513
|
+
// the wizard on Quick Buy but nothing on Apple Pay. resolveApplePayOrderOptions() begins the
|
|
3514
|
+
// session untouched when the fetch finds nothing, so running it always is safe.
|
|
3441
3515
|
if (this.optionsResolved)
|
|
3442
3516
|
return false;
|
|
3443
3517
|
this.optionsResolved = true;
|
|
@@ -3451,8 +3525,9 @@ const SallaQuickBuy = class {
|
|
|
3451
3525
|
this.pendingApplePaySession = null;
|
|
3452
3526
|
},
|
|
3453
3527
|
discardPendingSession: () => { this.pendingApplePaySession = null; },
|
|
3454
|
-
onSubmit: (selections, total) => {
|
|
3528
|
+
onSubmit: (selections, total, freeProducts) => {
|
|
3455
3529
|
this.collectedOrderOptions = selections;
|
|
3530
|
+
this.collectedFreeProducts = freeProducts || [];
|
|
3456
3531
|
this.applePayAmount = total;
|
|
3457
3532
|
this.settlePayment();
|
|
3458
3533
|
},
|
|
@@ -3474,6 +3549,7 @@ const SallaQuickBuy = class {
|
|
|
3474
3549
|
return;
|
|
3475
3550
|
this.optionsResolved = false;
|
|
3476
3551
|
this.collectedOrderOptions = [];
|
|
3552
|
+
this.collectedFreeProducts = [];
|
|
3477
3553
|
this.applePayAmount = 0;
|
|
3478
3554
|
this.settlePayment();
|
|
3479
3555
|
}
|
|
@@ -3510,6 +3586,10 @@ const SallaQuickBuy = class {
|
|
|
3510
3586
|
data.id = this.productId;
|
|
3511
3587
|
data.source = 'buy_now';
|
|
3512
3588
|
}
|
|
3589
|
+
// After `id` is set, not before: the rewrite promotes it to products[0] and appends each
|
|
3590
|
+
// configured gift as products[N]. checkout/mini is the same MiniCheckoutRequest endpoint the
|
|
3591
|
+
// fast-checkout widget posts to, so the bracket-notation contract is identical.
|
|
3592
|
+
injectFreeProductsIntoPayload(data, this.collectedFreeProducts);
|
|
3513
3593
|
// if the store doesn't have Apple Pay , just create a cart and then redirect to check out page
|
|
3514
3594
|
if (!this.isApplePayActive) {
|
|
3515
3595
|
return salla.api.request('checkout/mini', data, 'post')
|
|
@@ -3706,7 +3786,7 @@ const SallaQuickBuy = class {
|
|
|
3706
3786
|
});
|
|
3707
3787
|
}
|
|
3708
3788
|
render() {
|
|
3709
|
-
return h(Host, { key: '
|
|
3789
|
+
return h(Host, { key: '928e447f7f5c03f64897ffdd3df639408ec74c24' }, this.quickBuyButton());
|
|
3710
3790
|
}
|
|
3711
3791
|
quickBuyButton() {
|
|
3712
3792
|
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 });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BC0OSCdw.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
|
|
7
7
|
const sallaAdvertisementCss = "/*!twlt*/:host{display:block}.visible{visibility:visible}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-hidden{display:none}.s-advertisement-content{width:100%;margin-right:auto;margin-left:auto;padding-right:10px;padding-left:10px}@media (min-width: 1280px){.s-advertisement-content{max-width:1280px}}.s-advertisement-content{display:flex;align-items:center;justify-content:space-between;padding-top:0.625rem;padding-bottom:0.625rem}.s-advertisement-content-main{flex:1 1 0%;text-align:center;font-size:0.875rem;line-height:1.25rem;font-weight:700}.s-advertisement-content-icon{display:inline-block;vertical-align:middle;font-size:1rem;line-height:1.5rem}.s-advertisement-content-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.5rem}.s-advertisement-content-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.5rem}.s-advertisement-action{padding-left:0.25rem;padding-right:0.25rem}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BC0OSCdw.js';
|
|
5
5
|
import { C as Cart } from './cart-gFG8By9O.js';
|
|
6
6
|
import { I as ImageIcon } from './image-C-tzSDxw.js';
|
|
7
7
|
|
|
@@ -34,7 +34,7 @@ const SallaAlert = class {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '053085e619a62bc641cf05e5fab4c3d601560d4b', class: `s-alert-wrapper s-alert-${this.variant}` }, h("span", { key: '8c9b20d9382b0e9eaec53b769c98c73df01043b6', class: "s-alert-icon" }, this.renderIcon()), h("span", { key: '0ab4176e253bfe191c4115c6d4bcdf815895e746', class: "s-alert-text" }, this.message, h("slot", { key: 'd4f428d1d47ddf977d0363c0476e7190ef680857' }))));
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
SallaAlert.style = sallaAlertCss;
|
|
@@ -184,9 +184,9 @@ const SallaBottomAlert = class {
|
|
|
184
184
|
}
|
|
185
185
|
render() {
|
|
186
186
|
const hasTemplate = this.template && typeof this.template === 'object' && Object.keys(this.template).length > 0;
|
|
187
|
-
return (h(Host, { key: '
|
|
187
|
+
return (h(Host, { key: '00d1b1e0b98318096f366dfa13c43df13d95df1c', class: `s-bottom-alert-wrapper ${hasTemplate ? 's-bottom-alert-wrapper-with-template' : ''}` }, hasTemplate && (h("div", { key: '01079527fba6e46eb5e893e64b68e66f35f12c2f', class: "s-bottom-alert-logo-section" }, h("img", { key: '49fd2f67e97ded7ff6240573b825dcea349e47f8', src: "https://cdn.salla.network/images/logo/logo-light.svg", alt: "Salla", class: "s-bottom-alert-logo" }), h("span", { key: '998216dbcfb5381c94ef3b94ddfa2334ccfd24ac', class: "s-bottom-alert-logo-text" }, this.readyStores))), h("div", { key: '68bd744c9b41847ca757f1127610c84e3eededf6', class: "s-bottom-alert-content" }, h("div", { key: '2dd6195b822a6e076fffddc8fb851292f97e8074', class: "flex items-center gap-2" }, h("div", { key: '67ea932ac092fa207b1888f7641d8733c5109f01', class: "s-bottom-alert-icon" }, this.icon ? h("i", { class: this.icon }) : h("i", { innerHTML: infoIcon })), h("div", { key: '5ea417ca4e00f9a3e19902d84192a9f788c1e75b', class: "s-bottom-alert-message" }, this.message ? (this.message) : hasTemplate ? (h("span", { class: "flex flex-wrap items-center gap-1" }, this.defaultMessage, h("span", { class: {
|
|
188
188
|
's-bottom-alert-message-highlight': true,
|
|
189
|
-
}, "aria-label": "Developer" }, this.salla), h("span", { innerHTML: salla.money(this.template.price) }))) : (this.defaultMessage))), this.type !== 'banner' && (h("div", { key: '
|
|
189
|
+
}, "aria-label": "Developer" }, this.salla), h("span", { innerHTML: salla.money(this.template.price) }))) : (this.defaultMessage))), this.type !== 'banner' && (h("div", { key: '06f2d2949b3a5864151eb96378fc8f82373397a7', class: hasTemplate ? 's-bottom-alert-actions-group' : 's-bottom-alert-action' }, hasTemplate ? (this.loading ? (h("salla-loading", { size: "20" })) : (h("div", { class: "s-bottom-alert-actions-group-container" }, h("a", { class: "s-bottom-alert-action-link", onClick: () => this.handleAction() }, this.actionLabel || this.moreDetailsLabel), this.templateData?.link ? (h("button", { type: "button", class: "s-bottom-alert-action-purchase-button", onClick: () => window.open(this.templateData?.link, '_blank') }, this.buyTheTemplate)) : null))) : (h("salla-button", { href: this.actionUrl, size: "medium", onClick: () => this.handleAction(), width: "normal" }, this.actionLabel || this.defaultActionLabel)))), this.type === 'popup' && this.popup())));
|
|
190
190
|
}
|
|
191
191
|
get host() { return getElement(this); }
|
|
192
192
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BC0OSCdw.js';
|
|
5
5
|
|
|
6
6
|
const sallaAppInstallAlertCss = "/*!twlt*/:host{display:block}.s-app-install-alert-wrapper{display:none;flex-direction:row;align-items:center;position:fixed;left:0;right:0;width:95%;margin-top:1rem;margin-bottom:1rem;margin-left:auto;margin-right:auto;z-index:999;border-radius:0.375rem;padding:0.75rem;gap:0.5rem;background-color:color-mix(in srgb, var(--color-primary) 15%, white);filter:drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06))}.s-app-install-alert-wrapper.open[position=top]{display:flex;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes slideDownFromTop{0%{transform:translateY(-100%);opacity:0}100%{transform:translateY(-0%);opacity:1}}.s-app-install-alert-wrapper.open[position=top]{animation:slideDownFromTop .6s linear;transition-duration:500ms}.s-app-install-alert-wrapper:not(.open){display:none}.s-app-install-alert-content{width:100%}.s-app-install-alert-wrapper[position=top]{top:0px}.s-app-install-alert-wrapper.open[position=bottom]{display:flex}@keyframes slideUpFromBottom{0%{transform:translateY(100%);opacity:0}100%{transform:translateY(0%);opacity:1}}.s-app-install-alert-wrapper.open[position=bottom]{animation:slideUpFromBottom .6s linear}.s-app-install-alert-wrapper[position=bottom]{bottom:0px}@keyframes slideUPFromTop{0%{transform:translateY(-0%);opacity:1}100%{transform:translateY(-100%);opacity:0}}.s-app-install-alert-wrapper[position=top].closing{animation:slideUPFromTop .6s linear}@keyframes slideDownFromBottom{0%{transform:translateY(0%);opacity:1}100%{transform:translateY(100%);opacity:0}}.s-app-install-alert-wrapper[position=bottom].closing{animation:slideDownFromBottom .6s linear}.s-app-install-alert-wrapper.closing{animation-fill-mode:forwards}.s-app-install-alert-title{max-width:95%;font-size:1rem;line-height:1.5rem;font-weight:700;color:var(--color-primary)}.s-app-install-alert-sub-title{max-width:95%;font-size:0.875rem;line-height:1.25rem;font-weight:400}.s-app-install-alert-cta{color:var(--color-primary);text-decoration-line:underline}.s-app-install-alert-cancel-button{position:absolute;top:0.5rem}.s-app-install-alert-cancel-button:where([dir=\"ltr\"],[dir=\"ltr\"] *){right:0.75rem}.s-app-install-alert-cancel-button:where([dir=\"rtl\"],[dir=\"rtl\"] *){left:0.75rem}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BC0OSCdw.js';
|
|
5
5
|
import { H as Helper, F as FilterOptionTypes } from './Helper-Cql-WbqR.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BC0OSCdw.js';
|
|
5
5
|
|
|
6
6
|
const sallaAppsIconsCss = "/*!twlt*/:host{display:block}.s-apps-icons-list{display:flex;gap:1rem}.s-apps-icons-list.vertical{flex-direction:column}.s-apps-icons-item{line-height:1}.s-apps-icons-item:hover{color:var(--color-primary)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-BC0OSCdw.js';
|
|
5
5
|
import { i as isVideoMimeType, a as isImageMimeType, u as usesSplitCountLimits, g as getMaxImagesCount, c as getMaxVideosCount, d as getTotalMaxFiles, p as parseSizeToBytes, e as getFilePondMaxFileSize, f as getUploadErrorMessage, h as formatBytesAsSize, j as formatDuration, s as shouldCountGalleryFile, k as shouldCountGalleryLimit } from './upload-limits-DrXX8XG8.js';
|
|
6
6
|
import { S as SICalendar } from './calendar-BkmanTR_.js';
|
|
7
7
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
@@ -498,7 +498,7 @@ const SallaBookingField = class {
|
|
|
498
498
|
return (h("span", { class: "s-booking-field-reservations-time" }, h("i", { class: "s-booking-field-reservations-icon", innerHTML: TimeIcon }), h("span", null, reservation.from_timestamp, " - ", reservation.to_timestamp)));
|
|
499
499
|
}
|
|
500
500
|
render() {
|
|
501
|
-
return (h(Host, { key: '
|
|
501
|
+
return (h(Host, { key: '2ccdcbee3a61bfa69e1e272dca9e993cd568baf8' }, h("div", { key: 'b26b71c2d9ac60e84461e54b4979c5e89e87e437', class: "s-booking-field-main" }, this.option.required || this.reservations.length > 0 ? h("div", { class: "s-booking-field-price" }, h("span", { innerHTML: salla.money(this.option.price) })) : '', h("salla-button", { key: '739e1d72691af1760caa732090057b24c751a807', class: "s-booking-field-book-now", size: "small", loaderPosition: "center", fill: "outline", onClick: event => this.openBookingModal(event, false) }, h("span", { key: 'c00e5db1bd56c66c2b72db3371c748fa9fa10602', class: "s-booking-field-book-now-content" }, h("span", { key: 'd85c983123460c3f528ab6aea7b6c57bb9cb0f0f', innerHTML: BookingTime }), this.reservations.length ? this.editLabel : this.bookNowLabel))), this.reservations.length > 0 && (h("div", { key: 'b94321aaad303ab7aa21f629b8c9de458209346b', class: "s-booking-field-reservations" }, this.reservations.map((reservation, index) => (h("div", { key: index, class: "s-booking-field-reservations-item" }, this.renderReservationDate(reservation), this.renderReservationTime(reservation)))))), h("input", { key: 'aa18bd55cfd8903cfe66655ed4737854aab6da75', class: "s-hidden", name: this.option.name, required: this.option.required, value: JSON.stringify(this.reservations) === '[]' ? '' : JSON.stringify(this.reservations), ref: reservations => this.reservationsInput = reservations }), this.iframeReady && this.bookingModal()));
|
|
502
502
|
}
|
|
503
503
|
get host() { return getElement(this); }
|
|
504
504
|
};
|
|
@@ -687,7 +687,7 @@ const SallaColorPicker = class {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
initColorPicker() {
|
|
690
|
-
this.pickerReady = import('./vanilla-picker-
|
|
690
|
+
this.pickerReady = import('./vanilla-picker-BCMDEwEz.js').then(function (n) { return n.v; }).then(mod => {
|
|
691
691
|
const Picker = mod.default;
|
|
692
692
|
const picker = new Picker({
|
|
693
693
|
parent: this.host,
|
|
@@ -707,7 +707,7 @@ const SallaColorPicker = class {
|
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
render() {
|
|
710
|
-
return (h(Host, { key: '
|
|
710
|
+
return (h(Host, { key: 'acb6aaa4e5a53c81e4f603e2d6bf3000961bcb88', class: "s-color-picker-main" }, h("slot", { key: 'b924c02b25d3b306e4a162c029d41f94282f8313', name: "widget" }, h("div", { key: '0f525e98176b4ca0c0c54e0fe68bb86ac4ceae7c', class: "s-color-picker-widget" }, h("div", { key: '8860d1ea0a223b7839fd9629eaa5a7fb6a394fd3', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: '62c01df67c954a68a15f55b1f127cda50640958c', innerHTML: ArrowDown }))), h("input", { key: '257d51b2d8d635761b1a9ecb5545cd0f66de18af', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
|
|
711
711
|
}
|
|
712
712
|
componentDidLoad() {
|
|
713
713
|
if (this.canvas)
|
|
@@ -856,7 +856,7 @@ const SallaConditionalFields = class {
|
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
858
|
render() {
|
|
859
|
-
return (h(Host, { key: '
|
|
859
|
+
return (h(Host, { key: 'b26437717cccf1d61e1fa16541794c8e55817730' }, h("slot", { key: '898c850d6d7c5c081dc5a65a6f8f8a984547af9f' })));
|
|
860
860
|
}
|
|
861
861
|
get host() { return getElement(this); }
|
|
862
862
|
};
|
|
@@ -1068,7 +1068,7 @@ const SallaDatetimePicker = class {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
render() {
|
|
1071
|
-
return h("div", { key: '
|
|
1071
|
+
return h("div", { key: '2e14070685e9a876e6d5d16baef06006a15c2a53', class: "s-datetime-picker" }, h("input", { key: '777a487061a0509de86df589bcdfa9b32cdd5572', type: "datetime", name: this.name, value: this.value, required: this.required, disabled: this.disabled, placeholder: this.placeholder, class: "s-datetime-picker-input", ref: (el) => this.dateInput = el }));
|
|
1072
1072
|
}
|
|
1073
1073
|
async componentDidLoad() {
|
|
1074
1074
|
// Load flatpickr before initializing
|
|
@@ -1148,13 +1148,13 @@ const SallaFileUpload = class {
|
|
|
1148
1148
|
return;
|
|
1149
1149
|
try {
|
|
1150
1150
|
const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
|
|
1151
|
-
import('./filepond-
|
|
1152
|
-
import('./filepond-plugin-file-validate-size-
|
|
1153
|
-
import('./filepond-plugin-image-exif-orientation-
|
|
1154
|
-
import('./filepond-plugin-image-preview-
|
|
1155
|
-
import('./filepond-plugin-image-edit-
|
|
1156
|
-
import('./filepond-plugin-file-validate-type-
|
|
1157
|
-
import('./filepond-plugin-file-poster-
|
|
1151
|
+
import('./filepond-UQa5G279.js').then(function (n) { return n.f; }),
|
|
1152
|
+
import('./filepond-plugin-file-validate-size-CmrW5aIv.js').then(function (n) { return n.f; }),
|
|
1153
|
+
import('./filepond-plugin-image-exif-orientation-eHT2qXpP.js').then(function (n) { return n.f; }),
|
|
1154
|
+
import('./filepond-plugin-image-preview-CX0Er_bj.js').then(function (n) { return n.f; }),
|
|
1155
|
+
import('./filepond-plugin-image-edit-CFUxRm-l.js').then(function (n) { return n.f; }),
|
|
1156
|
+
import('./filepond-plugin-file-validate-type-C4wrsR8y.js').then(function (n) { return n.f; }),
|
|
1157
|
+
import('./filepond-plugin-file-poster-DuTq7hGp.js').then(function (n) { return n.f; })
|
|
1158
1158
|
]);
|
|
1159
1159
|
this.FilePond = FilePondModule;
|
|
1160
1160
|
// Register plugins
|
|
@@ -2017,12 +2017,12 @@ const SallaFileUpload = class {
|
|
|
2017
2017
|
this.revokeAllPreviewObjectUrls();
|
|
2018
2018
|
}
|
|
2019
2019
|
render() {
|
|
2020
|
-
return (h(Host, { key: '
|
|
2020
|
+
return (h(Host, { key: '4e2eaa6ea15e69930a1caac393575a98da537505', class: {
|
|
2021
2021
|
"s-file-upload": true,
|
|
2022
2022
|
"s-file-upload-profile-image": this.profileImage,
|
|
2023
2023
|
"s-file-upload-multiple": this.allowMultiple,
|
|
2024
2024
|
"s-file-upload-has-gallery": this.usesGalleryPreview(),
|
|
2025
|
-
} }, h("input", { key: '
|
|
2025
|
+
} }, h("input", { key: 'a2e82319893d3cc05316b66d4cf8afdc62fed9ad', type: "file", name: this.name, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept }), this.allowMultiple && this.showMaxCountHint ? h("div", { class: "s-file-upload-hint s-hidden" }, this.max_count_hint(this.getTotalMaxFiles())) : '', h("input", { key: '8fd655d5318ef96a32d5f5238677068a14f4bb2e', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.getHiddenInputValue(), ref: input => this.hiddenInput = input }), this.renderPreviewGallery()));
|
|
2026
2026
|
}
|
|
2027
2027
|
async componentDidLoad() {
|
|
2028
2028
|
await Salla.onReady();
|
|
@@ -2366,7 +2366,7 @@ const SallaQuantityInput = class {
|
|
|
2366
2366
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
2367
2367
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
2368
2368
|
}
|
|
2369
|
-
return (h(Host, { key: '
|
|
2369
|
+
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: plusIcon }) : '', 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: minusIcon }) : '', h("slot", { key: 'd051c3ca89310e67f834a970788abc606e5d2bbc', name: "decrement-button" })))));
|
|
2370
2370
|
}
|
|
2371
2371
|
get host() { return getElement(this); }
|
|
2372
2372
|
static get watchers() { return {
|
|
@@ -2386,7 +2386,7 @@ const SallaTelInput = class {
|
|
|
2386
2386
|
if (this.TelInput)
|
|
2387
2387
|
return;
|
|
2388
2388
|
try {
|
|
2389
|
-
const telInputModule = await import('./intlTelInput-
|
|
2389
|
+
const telInputModule = await import('./intlTelInput-DnPEdiN8.js').then(function (n) { return n.i; });
|
|
2390
2390
|
this.TelInput = telInputModule.default;
|
|
2391
2391
|
}
|
|
2392
2392
|
catch (error) {
|
|
@@ -2515,7 +2515,7 @@ const SallaTelInput = class {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
2517
|
render() {
|
|
2518
|
-
return (h(Host, { key: '
|
|
2518
|
+
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" })));
|
|
2519
2519
|
}
|
|
2520
2520
|
componentDidLoad() {
|
|
2521
2521
|
this.initPromise = this.initTelInput();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-BC0OSCdw.js';
|
|
5
5
|
|
|
6
6
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
7
7
|
|
|
@@ -85,7 +85,7 @@ const SallaBadge = class {
|
|
|
85
85
|
this.bg = 'light';
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
88
|
+
return (h("div", { key: '7c7196d49621a58192820725ab40d906344983d1', class: badge({ size: this.size, bg: this.bg, color: this.color }) }, h("slot", { key: '7a39f5d916e80809f795b5cc880f1d31238fa7c5' })));
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
SallaBadge.style = sallaBadgeCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BC0OSCdw.js';
|
|
5
5
|
import { f as fetchCartBoughtTogether } from './catalog-recommendations-CRW60UDr.js';
|
|
6
6
|
|
|
7
7
|
const sallaBasketGapCss = "/*!twlt*/:host{display:block}.block{display:block}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-basket-gap-entry{margin-top:1.25rem;margin-bottom:1.25rem;display:block;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:1.25rem}.s-basket-gap-title{margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:700}.s-basket-gap-list{display:flex;flex-direction:column}.s-basket-gap-list>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));--tw-divide-opacity:1;border-color:rgb(243 244 246 / var(--tw-divide-opacity, 1))}.s-basket-gap-card{display:flex;flex-wrap:wrap;align-items:center;column-gap:0.75rem;row-gap:0.625rem;padding-top:1rem;padding-bottom:1rem}.s-basket-gap-card-image{height:4rem;width:4rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.s-basket-gap-card-image img{height:100%;width:100%;object-fit:cover}.s-basket-gap-card-info{display:flex;min-width:0px;flex:1 1 0%;flex-direction:column;gap:0.25rem}.s-basket-gap-card-actions{display:flex;width:100%;align-items:center;justify-content:flex-end;gap:0.5rem}@media (min-width: 640px){.s-basket-gap-card-actions{width:auto}}.s-basket-gap-card-name{font-size:0.875rem;line-height:1.25rem;font-weight:600;line-height:1.25;--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.s-basket-gap-card-name a:hover{color:var(--color-primary)}.s-basket-gap-card-price{font-size:0.875rem;line-height:1.25rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-basket-gap-card-sale-price{display:flex;align-items:center;gap:0.5rem}.s-basket-gap-card-sale-price span{font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.s-basket-gap-card-sale-price del{font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1));text-decoration-line:line-through}.s-basket-gap-card-weight{font-size:0.75rem;line-height:1rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-basket-gap-card-offer{display:flex;flex-shrink:0;align-items:center;gap:0.25rem;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));padding-left:9px;padding-right:9px;padding-top:3px;padding-bottom:3px;font-size:11px;font-weight:500;--tw-text-opacity:1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.s-basket-gap-card-offer i{font-size:0.75rem;line-height:1rem}.s-basket-gap-card-offer span{font-weight:700;--tw-text-opacity:1 !important;color:rgb(31 41 55 / var(--tw-text-opacity, 1)) !important}.s-basket-gap-card-offer salla-count-down{flex-shrink:0}.s-basket-gap-card-offer salla-count-down:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-inline-start:0.25rem}.s-basket-gap-card-offer salla-count-down:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-inline-end:0.25rem}.s-basket-gap-card-offer .s-count-down-list{margin-left:-0px !important;margin-right:-0px !important;margin-bottom:0px !important;margin-top:0px !important;display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start !important;column-gap:0px;--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.s-basket-gap-card-offer .s-count-down-list:where([dir=\"ltr\"],[dir=\"ltr\"] *){flex-direction:row-reverse !important}.s-basket-gap-card-offer .s-count-down-list:where([dir=\"rtl\"],[dir=\"rtl\"] *){flex-direction:row !important}.s-basket-gap-card-offer .s-count-down-item{position:relative !important;margin-left:0px !important;margin-right:0px !important;display:inline-flex !important;width:auto !important;flex:none !important;flex-grow:0 !important;flex-direction:row !important;align-items:center !important;justify-content:center !important;padding-top:0px !important;padding-bottom:0px !important;padding-left:0px !important;padding-right:0px !important;font-size:12px !important;font-weight:700 !important;line-height:1 !important;--tw-text-opacity:1 !important;color:rgb(21 128 61 / var(--tw-text-opacity, 1)) !important}.s-basket-gap-card-offer .s-count-down-item-value{display:inline-block !important;width:2ch !important;min-width:2ch !important;text-align:center;--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);line-height:1}.s-basket-gap-card-offer .s-count-down-item-label{display:none}.s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item::before{content:none !important}.s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item::after{content:none !important;position:static;left:auto;right:auto;transform:none}[dir='rtl'] .s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item:not(:last-child)::after{content:':' !important;position:static;left:auto;right:auto;transform:none;margin-left:0.15rem;margin-right:0.15rem;color:#15803d;font-size:12px;font-weight:700;line-height:1}[dir='ltr'] .s-basket-gap-entry .s-basket-gap-card-offer.s-basket-gap-card-offer .s-count-down-item:not(:first-child)::after{content:':' !important;position:static;left:auto;right:auto;transform:none;margin-left:0.15rem;margin-right:0.15rem;color:#15803d;font-size:12px;font-weight:700;line-height:1}.s-basket-gap-card-btn{flex-shrink:0}.s-basket-gap-card-btn salla-button .s-button-btn{border-radius:var(--s-radius, 0.25rem);border-width:1px !important;border-color:var(--color-primary) !important;background-color:transparent !important;color:var(--color-primary) !important}.s-basket-gap-card-btn salla-button .s-button-btn:hover{background-color:var(--color-primary) !important;--tw-text-opacity:1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1)) !important}.s-basket-gap-card-btn salla-button .s-button-loader:before{border-top-color:var(--color-primary) !important;border-left-color:var(--color-primary) !important;border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1)) !important;--tw-border-opacity:1 !important;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1)) !important}.s-basket-gap-skeleton{display:flex;flex-direction:column;gap:0.75rem}.s-basket-gap-skeleton-card{display:flex;align-items:center;gap:0.75rem;padding-top:0.75rem;padding-bottom:0.75rem}.s-basket-gap-skeleton-info{display:flex;flex:1 1 0%;flex-direction:column;gap:0.5rem}";
|