@salla.sa/twilight-components 2.14.429 → 2.14.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond--V9rRgVA.js → filepond-DfW5cyCe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DzvswSJb.js → filepond-plugin-file-poster-BDWsEvaC.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-C5wUWXz6.js → filepond-plugin-file-validate-size-Bto6gxLP.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-HA2w2_fC.js → filepond-plugin-file-validate-type-B6YfHTAx.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CXrhd-IB.js → filepond-plugin-image-edit-C-LqaX6L.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BJnamgw6.js → filepond-plugin-image-exif-orientation-CV0h895x.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CmdkZJij.js → filepond-plugin-image-preview-DWzrBxJB.js} +1 -1
- package/dist/cjs/{functions-DPnm948J.js → functions-CB5lb0VM.js} +1 -1
- package/dist/cjs/{index-D3xsx646.js → index-CPVUhQsG.js} +2 -2
- package/dist/cjs/{index-DRfjMaC1.js → index-D7Syi0Lt.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +4 -4
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +17 -17
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +208 -8
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +2 -2
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +8 -8
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +2 -2
- 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 +3 -3
- 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.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +8 -8
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +4 -4
- 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.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.cjs.entry.js +2 -2
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- 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-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-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_2.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-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +11 -11
- package/dist/cjs/salla-scopes.cjs.entry.js +2 -2
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- 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/{tracked-promise-CFp5Besf.js → tracked-promise-Duwj6C7F.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-Jk2F9CAy.js → vanilla-picker-C-53deqE.js} +1 -1
- package/dist/collection/components/salla-bought-together/salla-bought-together.css +0 -136
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +204 -4
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +1 -1
- 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-comments/salla-comment-item.js +3 -3
- 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-program/salla-loyalty-hero.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-action.js +1 -1
- 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 +3 -3
- 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-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-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 +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-scopes/salla-scopes.js +1 -1
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- 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/components/index.js +2 -2
- package/dist/components/salla-bought-together.js +1 -1
- package/dist/components/salla-bullet-delivery.js +203 -3
- package/dist/components/salla-cart-coupons.js +1 -1
- 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-comment-item2.js +3 -3
- 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-hero2.js +3 -3
- package/dist/components/salla-loyalty-point2.js +3 -3
- 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-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-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 +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-reward-action2.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 +3 -3
- package/dist/components/salla-scopes.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share.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/esm/{filepond-fJKURtC4.js → filepond-b3O-B3ro.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Ll-3yUwR.js → filepond-plugin-file-poster-DGa9Q6FE.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-2D44oWIJ.js → filepond-plugin-file-validate-size-Bn9iVzLj.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-08Jawn6d.js → filepond-plugin-file-validate-type-BjHBoevq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DmEVMjMi.js → filepond-plugin-image-edit-CJ2XCDbB.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DJo_07yV.js → filepond-plugin-image-exif-orientation-DUb8DStt.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-Nd-PQAho.js → filepond-plugin-image-preview-BCzQEooP.js} +1 -1
- package/dist/esm/{functions-GnOlk8am.js → functions-hDIweVRL.js} +1 -1
- package/dist/esm/{index-Ba0YDJC7.js → index-DFzcviYn.js} +1 -1
- package/dist/esm/{index-DR8BHH7X.js → index-Dnvn8dmm.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +4 -4
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +17 -17
- package/dist/esm/salla-bullet-delivery_2.entry.js +208 -8
- package/dist/esm/salla-cart-coupons.entry.js +2 -2
- package/dist/esm/salla-cart-item-offers_2.entry.js +2 -2
- package/dist/esm/salla-comment-form_8.entry.js +8 -8
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +2 -2
- 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 +3 -3
- 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.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +8 -8
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +4 -4
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- package/dist/esm/salla-map.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.entry.js +2 -2
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +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-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_2.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-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +11 -11
- package/dist/esm/salla-scopes.entry.js +2 -2
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- 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/{tracked-promise-BTkBmrok.js → tracked-promise-p08m2zyv.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-f4lmttLY.js → vanilla-picker-kSO_chM-.js} +1 -1
- package/dist/twilight/p-094dc909.entry.js +4 -0
- package/dist/twilight/{p-beb17e29.entry.js → p-09b8f823.entry.js} +1 -1
- package/dist/twilight/{p-3910e00f.entry.js → p-102747d8.entry.js} +1 -1
- package/dist/twilight/{p-624503ee.entry.js → p-10ad1b83.entry.js} +1 -1
- package/dist/twilight/{p-1c8726e2.entry.js → p-1c03ceaa.entry.js} +1 -1
- package/dist/twilight/p-1dd5a941.entry.js +4 -0
- package/dist/twilight/p-20824b36.entry.js +4 -0
- package/dist/twilight/{p-59f47a08.entry.js → p-2160352a.entry.js} +1 -1
- package/dist/twilight/p-22b1ab5e.entry.js +4 -0
- package/dist/twilight/{p-74eb04ec.entry.js → p-23f9bac7.entry.js} +1 -1
- package/dist/twilight/{p-b20265f2.entry.js → p-2431c606.entry.js} +1 -1
- package/dist/twilight/{p-103dc47c.entry.js → p-26b9358b.entry.js} +1 -1
- package/dist/twilight/{p-824dd42e.entry.js → p-29bb512b.entry.js} +1 -1
- package/dist/twilight/p-2a88b328.entry.js +4 -0
- package/dist/twilight/{p-e0244c37.entry.js → p-2d47d5fd.entry.js} +1 -1
- package/dist/twilight/{p-b59b7153.entry.js → p-32387b75.entry.js} +1 -1
- package/dist/twilight/{p-ed6007e1.entry.js → p-348ce789.entry.js} +1 -1
- package/dist/twilight/{p-a9cbd414.entry.js → p-3c631cc0.entry.js} +1 -1
- package/dist/twilight/{p-83c1d4b2.entry.js → p-3d031db4.entry.js} +1 -1
- package/dist/twilight/{p-5c347cd5.entry.js → p-402b5980.entry.js} +1 -1
- package/dist/twilight/{p-f2b204a4.entry.js → p-41119cdb.entry.js} +1 -1
- package/dist/twilight/{p-ccfe690a.entry.js → p-424110b5.entry.js} +1 -1
- package/dist/twilight/p-4cc4260a.entry.js +4 -0
- package/dist/twilight/{p-3a2fdd6f.entry.js → p-4d15bde7.entry.js} +1 -1
- package/dist/twilight/{p-745329af.entry.js → p-4dfa5176.entry.js} +1 -1
- package/dist/twilight/{p-400257fd.entry.js → p-4ec18be2.entry.js} +1 -1
- package/dist/twilight/{p-ff75f1c4.entry.js → p-4ecb3a12.entry.js} +1 -1
- package/dist/twilight/p-5158bd60.entry.js +4 -0
- package/dist/twilight/p-56a5491f.entry.js +4 -0
- package/dist/twilight/p-5e353422.entry.js +4 -0
- package/dist/twilight/p-640a439c.entry.js +4 -0
- package/dist/twilight/p-653349e0.entry.js +4 -0
- package/dist/twilight/{p-65839961.entry.js → p-666df999.entry.js} +1 -1
- package/dist/twilight/p-6788c2fb.entry.js +4 -0
- package/dist/twilight/{p-fca971a6.entry.js → p-7095939b.entry.js} +1 -1
- package/dist/twilight/{p-c52aac33.entry.js → p-74998089.entry.js} +1 -1
- package/dist/twilight/{p-bc76d253.entry.js → p-7ca7130b.entry.js} +1 -1
- package/dist/twilight/{p-6339390a.entry.js → p-7e288aab.entry.js} +1 -1
- package/dist/twilight/{p-42cc9b33.entry.js → p-7ee53da2.entry.js} +1 -1
- package/dist/twilight/{p-df173474.entry.js → p-809250a3.entry.js} +1 -1
- package/dist/twilight/{p-d617d844.entry.js → p-80b61a76.entry.js} +1 -1
- package/dist/twilight/{p-2d705236.entry.js → p-835fa9b4.entry.js} +1 -1
- package/dist/twilight/{p-4f873363.entry.js → p-88032655.entry.js} +1 -1
- package/dist/twilight/{p-2e8588ca.entry.js → p-888b361e.entry.js} +1 -1
- package/dist/twilight/{p-9f320350.entry.js → p-8c7058b1.entry.js} +1 -1
- package/dist/twilight/p-8eb27675.entry.js +4 -0
- package/dist/twilight/{p-bc47e256.entry.js → p-8ef02612.entry.js} +1 -1
- package/dist/twilight/{p-72b1e6ed.entry.js → p-97b0e5fe.entry.js} +1 -1
- package/dist/twilight/p-B798epj8.js +9 -0
- package/dist/twilight/{p-hkzTCOEy.js → p-B7njTcyQ.js} +1 -1
- package/dist/twilight/{p-CiAXtUPQ.js → p-Bbi316x0.js} +1 -1
- package/dist/twilight/p-BpqRyGw0.js +9 -0
- package/dist/twilight/{p-Bc2RLvfZ.js → p-C9apxUCF.js} +1 -1
- package/dist/twilight/{p-Dqb1Ri2Y.js → p-CUMuR5KH.js} +1 -1
- package/dist/twilight/{p-CmDT48y4.js → p-CWSAc4x3.js} +1 -1
- package/dist/twilight/{p-kg7IhfAv.js → p-CZzwVBvr.js} +1 -1
- package/dist/twilight/{p-cvulr5dQ.js → p-D9Fh8EvL.js} +1 -1
- package/dist/twilight/{p-DR8BHH7X.js → p-Dnvn8dmm.js} +1 -1
- package/dist/twilight/{p-4da58baf.entry.js → p-a0374cc5.entry.js} +1 -1
- package/dist/twilight/{p-ed8951c5.entry.js → p-a037b850.entry.js} +1 -1
- package/dist/twilight/{p-1208793a.entry.js → p-a1766fe4.entry.js} +1 -1
- package/dist/twilight/{p-5ebbec76.entry.js → p-a5b9b1db.entry.js} +1 -1
- package/dist/twilight/{p-e0af89bc.entry.js → p-abe7a229.entry.js} +1 -1
- package/dist/twilight/{p-6e26c815.entry.js → p-af191f0c.entry.js} +1 -1
- package/dist/twilight/{p-6c58235e.entry.js → p-b3a426a1.entry.js} +1 -1
- package/dist/twilight/{p-154e782d.entry.js → p-b5281c36.entry.js} +1 -1
- package/dist/twilight/{p-d567481d.entry.js → p-bcdf2adf.entry.js} +1 -1
- package/dist/twilight/{p-78ce73ba.entry.js → p-bd1539f4.entry.js} +1 -1
- package/dist/twilight/{p-8bfca6eb.entry.js → p-bd24ad46.entry.js} +1 -1
- package/dist/twilight/{p-5999d681.entry.js → p-bd45359c.entry.js} +1 -1
- package/dist/twilight/{p-8709e981.entry.js → p-c3416bea.entry.js} +1 -1
- package/dist/twilight/{p-64376e97.entry.js → p-c936ef8d.entry.js} +1 -1
- package/dist/twilight/{p-1e7d16a3.entry.js → p-cf73d667.entry.js} +1 -1
- package/dist/twilight/{p-19bb31a5.entry.js → p-d064a0b8.entry.js} +1 -1
- package/dist/twilight/{p-c4960804.entry.js → p-d118fae4.entry.js} +1 -1
- package/dist/twilight/{p-38a8f05e.entry.js → p-d2551363.entry.js} +1 -1
- package/dist/twilight/{p-bcf201a8.entry.js → p-d3b4dfd4.entry.js} +1 -1
- package/dist/twilight/{p-835c43e6.entry.js → p-d4094247.entry.js} +1 -1
- package/dist/twilight/{p-c707f55b.entry.js → p-d44de146.entry.js} +1 -1
- package/dist/twilight/{p-99d0fd61.entry.js → p-d58be43c.entry.js} +1 -1
- package/dist/twilight/{p-96d644b8.entry.js → p-d82818ee.entry.js} +1 -1
- package/dist/twilight/{p-f579e8ef.entry.js → p-e0c8d60c.entry.js} +1 -1
- package/dist/twilight/{p-7edaa78b.entry.js → p-e206ecc7.entry.js} +1 -1
- package/dist/twilight/p-e20c4393.entry.js +4 -0
- package/dist/twilight/{p-9bde5e3c.entry.js → p-e47f98ab.entry.js} +1 -1
- package/dist/twilight/{p-6f3da0b7.entry.js → p-e825da6f.entry.js} +1 -1
- package/dist/twilight/{p-08c6172b.entry.js → p-eb9fd475.entry.js} +1 -1
- package/dist/twilight/{p-612c5b08.entry.js → p-ed7410d9.entry.js} +1 -1
- package/dist/twilight/{p-5ecf2b26.entry.js → p-f0e36346.entry.js} +1 -1
- package/dist/twilight/{p-d01e76f4.entry.js → p-f6c2599b.entry.js} +1 -1
- package/dist/twilight/{p-807db423.entry.js → p-f80b718e.entry.js} +1 -1
- package/dist/twilight/{p-8fad5c91.entry.js → p-fbda5922.entry.js} +1 -1
- package/dist/twilight/{p-44b289bb.entry.js → p-fd792b46.entry.js} +1 -1
- package/dist/twilight/{p-CdbTKQNp.js → p-lDyZ4jxE.js} +1 -1
- package/dist/twilight/{p-Dtp3srRX.js → p-uGRgz5pT.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +32 -0
- package/package.json +5 -5
- package/dist/twilight/p-031f8d35.entry.js +0 -4
- package/dist/twilight/p-097e2ba0.entry.js +0 -4
- package/dist/twilight/p-0ccf332d.entry.js +0 -4
- package/dist/twilight/p-30256e5f.entry.js +0 -4
- package/dist/twilight/p-308cfcab.entry.js +0 -4
- package/dist/twilight/p-3cc1582f.entry.js +0 -4
- package/dist/twilight/p-3ec34eae.entry.js +0 -4
- package/dist/twilight/p-4482e672.entry.js +0 -4
- package/dist/twilight/p-D0FlIX_Z.js +0 -9
- package/dist/twilight/p-NohMjDY2.js +0 -9
- package/dist/twilight/p-c00d4e23.entry.js +0 -4
- package/dist/twilight/p-c137e672.entry.js +0 -4
- package/dist/twilight/p-c47e85e9.entry.js +0 -4
- package/dist/twilight/p-cb8a1223.entry.js +0 -4
- package/dist/twilight/p-e0750731.entry.js +0 -4
- package/dist/twilight/p-f245d317.entry.js +0 -4
|
@@ -5,7 +5,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
5
5
|
import { d as defineCustomElement$3 } from './salla-button2.js';
|
|
6
6
|
import { d as defineCustomElement$2 } from './salla-skeleton2.js';
|
|
7
7
|
|
|
8
|
-
const sallaBoughtTogetherCss = ":host{display:block}.s-bought-together-checkbox:checked~.s-bought-together-checkmark{background-color:var(--color-primary, #2ECC71);border-color:var(--color-primary, #2ECC71)}.s-bought-together-checkbox:checked~.s-bought-together-checkmark::after{content:\"\";display:block;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}
|
|
8
|
+
const sallaBoughtTogetherCss = ":host{display:block}.s-bought-together-checkbox:checked~.s-bought-together-checkmark{background-color:var(--color-primary, #2ECC71);border-color:var(--color-primary, #2ECC71)}.s-bought-together-checkbox:checked~.s-bought-together-checkmark::after{content:\"\";display:block;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}";
|
|
9
9
|
|
|
10
10
|
// Read-only recommendations key confirmed safe for client-side use by the API team — no write access or sensitive scope.
|
|
11
11
|
const XSELL_API_KEY = 'VOL5WaZu2YROp0RplCZAr1RplhL9FFGQ';
|
|
@@ -439,6 +439,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
439
439
|
this.open();
|
|
440
440
|
};
|
|
441
441
|
this.closeHandler = null;
|
|
442
|
+
this.bulletDeliveryMobileSelectHandler = null;
|
|
442
443
|
/** True after saved addresses have been loaded (lazy: only when address tab is shown). */
|
|
443
444
|
this.savedAddressesLoaded = false;
|
|
444
445
|
// Core state
|
|
@@ -657,7 +658,7 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
657
658
|
}
|
|
658
659
|
/** Whether to show delivery + pickup tabs. From store.shipping.support_pickup */
|
|
659
660
|
get supportsPickup() {
|
|
660
|
-
return Boolean(Salla.config.get("store.shipping.support_pickup"));
|
|
661
|
+
return Boolean(Salla.config.get("store.shipping.support_pickup")) || Boolean(Salla.config.get("store.support_pickup"));
|
|
661
662
|
}
|
|
662
663
|
/** The modal opening strategy: 'first_visit' | 'on_cart_click' | 'after_add_to_cart' */
|
|
663
664
|
get openingType() {
|
|
@@ -667,6 +668,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
667
668
|
get isRequired() {
|
|
668
669
|
return !!Salla.config.get("store.settings.bullet_delivery.settings.is_required");
|
|
669
670
|
}
|
|
671
|
+
get isMobileApp() {
|
|
672
|
+
return Salla.config.isMobileApp();
|
|
673
|
+
}
|
|
670
674
|
/**
|
|
671
675
|
* Opens the bullet delivery modal
|
|
672
676
|
*/
|
|
@@ -1652,6 +1656,175 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
1652
1656
|
form_data: { ...this.newAddressForm },
|
|
1653
1657
|
};
|
|
1654
1658
|
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Build a minimal `BulletDeliveryAllocationConfirmedAddressData` from a mobile
|
|
1661
|
+
* payload (no full SavedAddress object available). Only used for the
|
|
1662
|
+
* `salla::bullet-delivery.allocation.confirmed` event so existing listeners
|
|
1663
|
+
* keep working with the same shape they get on desktop.
|
|
1664
|
+
*/
|
|
1665
|
+
buildAllocationConfirmedAddressFromIntent(payload) {
|
|
1666
|
+
if (payload.type !== "address")
|
|
1667
|
+
return null;
|
|
1668
|
+
const details = payload.address_details;
|
|
1669
|
+
const countryId = Number(payload.country_id) || 0;
|
|
1670
|
+
return {
|
|
1671
|
+
country: details?.country
|
|
1672
|
+
? {
|
|
1673
|
+
id: details.country.id,
|
|
1674
|
+
name: details.country.name,
|
|
1675
|
+
code: details.country.code ?? payload.country_code ?? "",
|
|
1676
|
+
}
|
|
1677
|
+
: undefined,
|
|
1678
|
+
region: details?.region
|
|
1679
|
+
? {
|
|
1680
|
+
id: Number(details.region.id),
|
|
1681
|
+
name: details.region.name,
|
|
1682
|
+
country_id: countryId,
|
|
1683
|
+
code: details.region.code ?? undefined,
|
|
1684
|
+
}
|
|
1685
|
+
: undefined,
|
|
1686
|
+
city: details?.city
|
|
1687
|
+
? {
|
|
1688
|
+
id: Number(details.city.id),
|
|
1689
|
+
name: details.city.name,
|
|
1690
|
+
country_id: countryId,
|
|
1691
|
+
}
|
|
1692
|
+
: undefined,
|
|
1693
|
+
district: details?.district
|
|
1694
|
+
? {
|
|
1695
|
+
id: Number(details.district.id),
|
|
1696
|
+
name: details.district.name,
|
|
1697
|
+
city_id: Number(details.city?.id) || 0,
|
|
1698
|
+
}
|
|
1699
|
+
: undefined,
|
|
1700
|
+
short_address: details?.short_address,
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1703
|
+
/** Synthesise a minimal `Branch` from a mobile branch intent. */
|
|
1704
|
+
buildBranchFromIntent(payload) {
|
|
1705
|
+
if (payload.type !== "branch" || !payload.branch_details)
|
|
1706
|
+
return null;
|
|
1707
|
+
const b = payload.branch_details;
|
|
1708
|
+
const branch = {
|
|
1709
|
+
id: b.id,
|
|
1710
|
+
name: b.name,
|
|
1711
|
+
};
|
|
1712
|
+
if (b.city) {
|
|
1713
|
+
branch.city = { id: 0, name: b.city };
|
|
1714
|
+
}
|
|
1715
|
+
if (b.latitude != null && b.longitude != null) {
|
|
1716
|
+
branch.location = { lat: String(b.latitude), lng: String(b.longitude) };
|
|
1717
|
+
}
|
|
1718
|
+
return branch;
|
|
1719
|
+
}
|
|
1720
|
+
/** Reconstruct the equivalent `ScopeAllocationPayload` from a mobile result. */
|
|
1721
|
+
buildAllocationRequestFromIntent(payload) {
|
|
1722
|
+
if (payload.type === "branch") {
|
|
1723
|
+
return {
|
|
1724
|
+
type: "branch",
|
|
1725
|
+
branch_id: payload.branch_id != null ? String(payload.branch_id) : "",
|
|
1726
|
+
};
|
|
1727
|
+
}
|
|
1728
|
+
if (payload.address_id != null) {
|
|
1729
|
+
return {
|
|
1730
|
+
type: "address",
|
|
1731
|
+
address_id: String(payload.address_id),
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
const details = payload.address_details;
|
|
1735
|
+
const request = {
|
|
1736
|
+
type: "address",
|
|
1737
|
+
country_id: payload.country_id != null ? String(payload.country_id) : "",
|
|
1738
|
+
city_id: details?.city?.id != null ? String(details.city.id) : "",
|
|
1739
|
+
};
|
|
1740
|
+
if (details?.region?.id != null) {
|
|
1741
|
+
request.region_id = String(details.region.id);
|
|
1742
|
+
}
|
|
1743
|
+
if (details?.district?.id != null) {
|
|
1744
|
+
request.district_id = String(details.district.id);
|
|
1745
|
+
}
|
|
1746
|
+
return request;
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Apply a selection performed inside the mobile app's native sheet.
|
|
1750
|
+
*
|
|
1751
|
+
* Mirrors the post-allocation side-effects of `handleConfirm()` so the
|
|
1752
|
+
* webview ends up in the exact same state as if the user had confirmed via
|
|
1753
|
+
* our component on desktop:
|
|
1754
|
+
* 1. Sets `s-scope-allocation-*` headers for subsequent API calls.
|
|
1755
|
+
* 2. Persists allocation in `Salla.storage.scope` (single source of truth).
|
|
1756
|
+
* 3. Marks the modal as shown for this session and stores the intent so
|
|
1757
|
+
* delivery-promise / scope-switch UIs reflect the selection.
|
|
1758
|
+
* 4. Clears the API cache so cached data from the previous scope is gone.
|
|
1759
|
+
* 5. Dispatches `salla::bullet-delivery.allocation.confirmed`,
|
|
1760
|
+
* `bulletDeliveryConfirmed`, and the header-context update event so
|
|
1761
|
+
* every listener (header pill, cart view, etc.) syncs.
|
|
1762
|
+
* 6. Reloads the page so prices, availability, and cart reflect the
|
|
1763
|
+
* newly-selected scope (matches desktop behaviour).
|
|
1764
|
+
*/
|
|
1765
|
+
applyMobileBulletDeliverySelection(payload) {
|
|
1766
|
+
if (!payload || (payload.type !== "address" && payload.type !== "branch")) {
|
|
1767
|
+
console.warn("SallaBulletDelivery: ignoring invalid mobile select payload", payload);
|
|
1768
|
+
return;
|
|
1769
|
+
}
|
|
1770
|
+
const headers = payload.allocation_headers ?? {};
|
|
1771
|
+
const allocationType = headers["s-scope-allocation-type"] ?? payload.type;
|
|
1772
|
+
const allocationId = headers["s-scope-allocation-id"];
|
|
1773
|
+
if (allocationType) {
|
|
1774
|
+
Salla.api.setHeader("s-scope-allocation-type", allocationType);
|
|
1775
|
+
}
|
|
1776
|
+
if (allocationId) {
|
|
1777
|
+
Salla.api.setHeader("s-scope-allocation-id", String(allocationId));
|
|
1778
|
+
}
|
|
1779
|
+
const existingScope = Salla.config.get("store.scope", Salla.storage.get("scope")) || {};
|
|
1780
|
+
Salla.storage.set("scope", {
|
|
1781
|
+
...existingScope,
|
|
1782
|
+
allocation_type: allocationType,
|
|
1783
|
+
allocation_id: allocationId ? String(allocationId) : undefined,
|
|
1784
|
+
});
|
|
1785
|
+
this.markShownThisSession();
|
|
1786
|
+
// Normalise headers in the persisted intent: keep only the mobile-provided
|
|
1787
|
+
// values so storefront reads see the same shape as the desktop confirm flow.
|
|
1788
|
+
const normalisedIntent = {
|
|
1789
|
+
...payload,
|
|
1790
|
+
allocation_headers: {
|
|
1791
|
+
"s-scope-allocation-type": allocationType,
|
|
1792
|
+
"s-scope-allocation-id": allocationId
|
|
1793
|
+
? String(allocationId)
|
|
1794
|
+
: undefined,
|
|
1795
|
+
},
|
|
1796
|
+
};
|
|
1797
|
+
this.setStoredIntent(normalisedIntent);
|
|
1798
|
+
clearApiCache();
|
|
1799
|
+
const branch = this.buildBranchFromIntent(normalisedIntent);
|
|
1800
|
+
const allocationConfirmedPayload = {
|
|
1801
|
+
...normalisedIntent,
|
|
1802
|
+
address: this.buildAllocationConfirmedAddressFromIntent(normalisedIntent),
|
|
1803
|
+
branch,
|
|
1804
|
+
allocation_request: this.buildAllocationRequestFromIntent(normalisedIntent),
|
|
1805
|
+
allocation_response: null,
|
|
1806
|
+
};
|
|
1807
|
+
Salla.event.dispatch("salla::bullet-delivery.allocation.confirmed", allocationConfirmedPayload);
|
|
1808
|
+
this.bulletDeliveryConfirmed.emit({
|
|
1809
|
+
...normalisedIntent,
|
|
1810
|
+
branch: branch ?? undefined,
|
|
1811
|
+
});
|
|
1812
|
+
this.emitHeaderContextUpdate(normalisedIntent, undefined, branch ?? undefined);
|
|
1813
|
+
// Reload so products / cart / header reflect the new scope, matching the
|
|
1814
|
+
// desktop confirm flow. Small delay lets the dispatched events propagate
|
|
1815
|
+
// to any in-page listeners before the navigation tears the document down.
|
|
1816
|
+
setTimeout(() => window.location.reload(), 100);
|
|
1817
|
+
}
|
|
1818
|
+
extractMobileSelectPayload(raw) {
|
|
1819
|
+
if (!raw || typeof raw !== "object")
|
|
1820
|
+
return null;
|
|
1821
|
+
// Some mobile bridges deliver the original `{ event, payload }` envelope
|
|
1822
|
+
// while a normal Salla.event dispatch passes the data directly.
|
|
1823
|
+
if ("payload" in raw && raw.payload) {
|
|
1824
|
+
return raw.payload;
|
|
1825
|
+
}
|
|
1826
|
+
return raw;
|
|
1827
|
+
}
|
|
1655
1828
|
async handleConfirm() {
|
|
1656
1829
|
if (this.isConfirmDisabled() || this.confirming)
|
|
1657
1830
|
return;
|
|
@@ -2250,13 +2423,36 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
2250
2423
|
}
|
|
2251
2424
|
}
|
|
2252
2425
|
render() {
|
|
2253
|
-
|
|
2426
|
+
if (this.isMobileApp)
|
|
2427
|
+
return null;
|
|
2428
|
+
return (h(Host, { class: "s-bullet-delivery" }, h("salla-modal", { ref: (modal) => {
|
|
2254
2429
|
this.modal = modal;
|
|
2255
|
-
}, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", {
|
|
2430
|
+
}, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", { class: "s-bullet-delivery-inner" }, this.viewMode === "main" && this.renderMainView(), this.viewMode === "add-address" && this.renderAddAddressForm()))));
|
|
2256
2431
|
}
|
|
2257
2432
|
componentDidLoad() {
|
|
2258
2433
|
// Mark component as ready
|
|
2259
2434
|
this.componentReady = true;
|
|
2435
|
+
if (this.isMobileApp) {
|
|
2436
|
+
// Ask the mobile app to render its native delivery sheet (replacement for our modal).
|
|
2437
|
+
Salla.event.dispatch('salla::bullet-delivery.open-sheet');
|
|
2438
|
+
// When the user confirms inside the mobile sheet, mobile dispatches
|
|
2439
|
+
// `salla::bullet-delivery.select` with a payload equivalent to what
|
|
2440
|
+
// `handleConfirm()` produces on desktop. Apply the same side-effects.
|
|
2441
|
+
this.bulletDeliveryMobileSelectHandler = (raw) => {
|
|
2442
|
+
const payload = this.extractMobileSelectPayload(raw);
|
|
2443
|
+
if (!payload) {
|
|
2444
|
+
console.warn("SallaBulletDelivery: received empty mobile select payload", raw);
|
|
2445
|
+
return;
|
|
2446
|
+
}
|
|
2447
|
+
this.applyMobileBulletDeliverySelection(payload);
|
|
2448
|
+
};
|
|
2449
|
+
Salla.event.on("salla::bullet-delivery.select", this.bulletDeliveryMobileSelectHandler);
|
|
2450
|
+
// Skip desktop-only initialisation: the auto-open strategy switch and the
|
|
2451
|
+
// cart:items.start hook mount are both no-ops or actively harmful in the
|
|
2452
|
+
// mobile webview (no modal exists, and we'd inject a non-functional HTML
|
|
2453
|
+
// pill into the native cart UI).
|
|
2454
|
+
return;
|
|
2455
|
+
}
|
|
2260
2456
|
// Handle pending open request (if event was emitted before component was ready)
|
|
2261
2457
|
if (this.pendingOpen) {
|
|
2262
2458
|
this.pendingOpen = false;
|
|
@@ -2334,6 +2530,10 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
2334
2530
|
Salla.event.off("salla-login::closed", this.loginClosedHandler);
|
|
2335
2531
|
this.loginClosedHandler = null;
|
|
2336
2532
|
}
|
|
2533
|
+
if (this.bulletDeliveryMobileSelectHandler) {
|
|
2534
|
+
Salla.event.off("salla::bullet-delivery.select", this.bulletDeliveryMobileSelectHandler);
|
|
2535
|
+
this.bulletDeliveryMobileSelectHandler = null;
|
|
2536
|
+
}
|
|
2337
2537
|
}
|
|
2338
2538
|
static get style() { return sallaBulletDeliveryCss; }
|
|
2339
2539
|
}, [0, "salla-bullet-delivery", {
|
|
@@ -243,7 +243,7 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
243
243
|
: `${salla.lang.get('pages.cart.expires_after')} ${coupon.remaining_days} ${salla.lang.get('pages.cart.day')}`)), coupon.minimum_amount && parseFloat(coupon.minimum_amount.amount) > 0 && (h("div", { class: "s-cart-coupons-minimum" }, salla.lang.get('pages.cart.minimum'), " ", h("span", { innerHTML: salla.money(coupon.minimum_amount.amount, coupon.minimum_amount.currency) })))), h("div", { class: "s-cart-coupons-action" }, isEligible ? salla.lang.get('pages.cart.save_coupon') : salla.lang.get('pages.cart.coupon_not_compatible'))))));
|
|
244
244
|
}
|
|
245
245
|
render() {
|
|
246
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: 'f3f3d943ab2c1a6488a1da02d2cc031dbc88b482' }, h("div", { key: 'abf88828017041b19a6c54ba2f99e6c246bd8d04', class: "s-cart-coupons-wrapper" }, h("div", { key: 'c2946579a7cca935722997229f50ede603acb8b2', class: "s-cart-coupons-input-section" }, h("label", { key: '50042d827c86daf853babd4e41ba3a920aceda9d', htmlFor: "coupon-input", class: "s-cart-coupons-coupon-label" }, salla.lang.get('pages.cart.have_coupon')), h("div", { key: '4b01047727bd3a83f6cfbac37221e7732076248f', class: "s-cart-coupons-coupon-input-container" }, h("input", { key: '555108f68b7a60c618d9a904905ef321cd274c7a', type: "text", id: "coupon-input", name: "coupon", class: `form-input ${this.couponError ? 's-coupon-input-error' : ''}`, placeholder: salla.lang.get('pages.cart.coupon_placeholder'), value: this.couponInputValue, disabled: !!this.currentCoupon || this.isApplying, ref: el => this.couponInputRef = el, "aria-label": salla.lang.get('pages.cart.apply_coupon') }), h("salla-button", { key: '0416bbaf029f7d8951ca6a419cdc676ae50ee792', ref: el => this.couponButtonRef = el, class: `s-cart-coupons-coupon-button ${this.currentCoupon ? 's-cart-coupons-coupon-button-remove' : 's-cart-coupons-coupon-button-apply'}`, color: this.currentCoupon ? 'danger' : 'primary', loading: this.isApplying, "loader-position": "center", onClick: () => this.handleCouponButtonClick() }, this.currentCoupon ? (h("i", { class: "sicon-cancel" })) : (h("span", null, salla.lang.get('pages.cart.save_coupon'))))), this.couponError && (h("span", { key: 'f7c77e8676cb07b4820b571dbd8ee25dca79a1b1', class: "s-cart-coupons-coupon-error" }, this.couponError))), this.availableCoupons && this.availableCoupons.length > 0 && (h("salla-slider", { key: 'daee9c6705de734d5f81ff86d92ad6952b5a7332', type: "carousel", showControls: false, class: "s-cart-coupons-slider" }, h("div", { key: '5d5ef30a6ff7f7c2b406cc5cec6622c2f028d17e', slot: "items" }, this.availableCoupons.map(coupon => this.renderCouponCard(coupon))))))));
|
|
247
247
|
}
|
|
248
248
|
get host() { return this; }
|
|
249
249
|
static get style() { return sallaCartCouponsCss; }
|
|
@@ -107,7 +107,7 @@ const SallaCartSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartSumma
|
|
|
107
107
|
return cartUrl;
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h(Host, { key: '
|
|
110
|
+
return (h(Host, { key: '918f027fd28cd25d653b8419f97223daaf22d428' }, h("a", { key: 'b74a2724ada356a01b915044d56dfb0f9953338e', class: "s-cart-summary-wrapper", href: this.getCartLink() }, h("div", { key: 'b9332fe1b66b895c1e9950efaa548f04eb053d46', id: "s-cart-icon" }, h("slot", { key: '2b5c1cf8dea4ca23a54beeb83cfad44538ca3ab7', name: "icon" }, h("i", { key: 'f3145ed4a994762441d925280a3234d78c378bef', class: "s-cart-summary-icon", innerHTML: PendingOrdersIcon }))), h("span", { key: '26a78adf9b279019504e995216ea5373b6866876', class: "s-cart-summary-count" }, salla.helpers.number(this.cartSummaryCount)), h("p", { key: '60ad091221ed5cd3e2ac0d27ebc53ec9917ccd64', class: "s-cart-summary-content" }, this.showCartLabel && h("span", { key: '66819086b9ed7f6f21be2cd5e8baf0bc88021e40', class: "s-cart-summary-label" }, this.cartLabel), h("b", { key: 'a07c85971e50add3cdd5b51942e642d4daf19d82', class: "s-cart-summary-total", innerHTML: salla.money(this.cartSummaryTotal) })))));
|
|
111
111
|
}
|
|
112
112
|
get host() { return this; }
|
|
113
113
|
static get style() { return sallaCartSummaryCss; }
|
|
@@ -208,7 +208,7 @@ const SallaColorPicker = /*@__PURE__*/ proxyCustomElement(class SallaColorPicker
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
render() {
|
|
211
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: '2f142fd64afd5571574a7e1c40de3be16ede62e6', class: "s-color-picker-main" }, h("slot", { key: '92acdf14b2f42ac52d0a632ba6840a5dcebfa4d4', name: "widget" }, h("div", { key: '7ba074040299a91802109d0e1d2e78604e39d3a8', class: "s-color-picker-widget" }, h("div", { key: 'a6272207f79fd28e33b66e415a3e05b969ace983', class: "s-color-picker-widget-canvas", ref: dv => (this.canvas = dv) }), h("span", { key: 'e6fed242bb84fae6221cdec525658b68f7514ce7', innerHTML: ArrowDown }))), h("input", { key: '9eb1673f44e663f939124da45fec79c401736203', class: "s-hidden", name: this.name, required: this.required, value: this.color, ref: color => (this.colorInput = color) })));
|
|
212
212
|
}
|
|
213
213
|
componentDidLoad() {
|
|
214
214
|
if (this.canvas)
|
|
@@ -45,7 +45,7 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
|
|
|
45
45
|
.finally(() => this.submitBtn.stop());
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '0ec765c8dd7cf28d23c4305c234cec5efd3daae1' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
|
|
49
49
|
h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', h("div", { class: "s-comment-form-content" }, h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), h("br", null), h("div", { class: "s-comment-form-action" }, h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
|
|
50
50
|
}
|
|
51
51
|
static get style() { return sallaCommentFormCss; }
|
|
@@ -143,15 +143,15 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
let isAdmin = this.comment.type == 'admin';
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '3f9d4b98cff2dd49259d3386b4996b905f92d7db', class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { key: '1348f11b2e553be483f60c5c558d3e800f050700', class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { key: '0587afd7ae1fc27b12fc4fd2c9ef4bf9e919d04a', class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { key: '40009b2b3b9af60481d0e40d5fb919076ab43b10', class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { key: '8f0563811445046ecf5ce3abe6ee6d7d1ec4a235', class: "s-comments-item-avatar" }, h("img", { key: '5f82bb9d3a5c4c340f37b8e48af3edce42c133f8', "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { key: '34581ee9fddaa2f79ee933efb65c2e354010f37a', class: "s-comments-flex-1" }, h("div", { key: 'e03fc074d5ac8ddf183e3b081001e73dd62a7116', class: "s-comments-item-user-wrapper" }, h("div", { key: '6ea5e07eb9fa35d7673019628e6fde4605b74e0c', class: "s-comments-item-user-info" }, h("h3", { key: '18d7cf8c8b8125138a544bd10027ae7503f2f3a6', class: this.comment.is_pinned ? "s-comments-item-user-info-name" : "s-comments-item-user-info-name-with-margin" }, this.comment?.name), this.comment.is_pinned ?
|
|
147
147
|
h("div", { class: "s-comments-item-pinned-icon-with-margin" }, this.PinnedIcon())
|
|
148
148
|
: null, (this.comment.has_order || !!this.comment.rating) && !this.comment.is_pending && !this.hideBought ?
|
|
149
149
|
h("div", { class: "s-comments-flex" }, this.comment.has_order ?
|
|
150
150
|
[h("span", { class: "s-comments-item-has-order-check-icon", innerHTML: IconVerified }), h("span", { class: "s-comments-item-has-order-check-text" }, this.has_bought_trans, " ", this.comment.rating ? ', ' : '')] : null, !!this.comment.rating ?
|
|
151
151
|
h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
|
|
152
|
-
: null), h("p", { key: '
|
|
152
|
+
: null), h("p", { key: '694c2079d3379966994af7040fe4542481a53e66', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '734ca2eb6bf846c661007a1b9c41f22c47923b27', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
|
|
153
153
|
h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
|
|
154
|
-
: null), h("div", { key: '
|
|
154
|
+
: null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
155
155
|
h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
|
|
156
156
|
this.getReplies().map((reply) => {
|
|
157
157
|
return h("div", null, h("salla-comment-item", { comment: reply }));
|
|
@@ -130,7 +130,7 @@ const SallaConditionalFields = /*@__PURE__*/ proxyCustomElement(class SallaCondi
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: '9e3ff9d4f7209583d5ef3d4f447a7a676e6857e0' }, h("slot", { key: '889bc28c2985d82e3bcd6e4231b135a58dca26d6' })));
|
|
134
134
|
}
|
|
135
135
|
get host() { return this; }
|
|
136
136
|
}, [4, "salla-conditional-fields", undefined, [[0, "change", "changeHandler"], [0, "input", "changeHandler"]]]);
|
|
@@ -234,7 +234,7 @@ const SallaCountDown = /*@__PURE__*/ proxyCustomElement(class SallaCountDown ext
|
|
|
234
234
|
return this.renderCountDown();
|
|
235
235
|
}
|
|
236
236
|
render() {
|
|
237
|
-
return (h(Host, { key: '
|
|
237
|
+
return (h(Host, { key: '5061e1fab03966fc62e46d4529c4ee07ed01df35', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''} ${this.horizontal ? 's-count-down-horizontal' : ''} ${this.withButton ? 's-count-down-with-button' : ''} ${this.offerEnded ? 's-count-down-ended' : ''}` }, this.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
|
|
238
238
|
}
|
|
239
239
|
static get style() { return sallaCountDownCss; }
|
|
240
240
|
}, [0, "salla-count-down", {
|
|
@@ -211,7 +211,7 @@ const SallaDatetimePicker = /*@__PURE__*/ proxyCustomElement(class SallaDatetime
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
|
-
return h("div", { key: '
|
|
214
|
+
return h("div", { key: '184743feaf2af9f31cd3b5a864a86f1a561c12fd', class: "s-datetime-picker" }, h("input", { key: '1736e88363b379f872490641168f49090e976e03', 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 }));
|
|
215
215
|
}
|
|
216
216
|
async componentDidLoad() {
|
|
217
217
|
// Load flatpickr before initializing
|
|
@@ -316,11 +316,11 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class SallaFileUpload e
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: '978e89fe8713e6b3db913ed8fb3c5d09f6caf705', class: {
|
|
320
320
|
"s-file-upload": true,
|
|
321
321
|
"s-file-upload-profile-image": this.profileImage,
|
|
322
322
|
"s-file-upload-multiple": this.allowMultiple,
|
|
323
|
-
} }, h("input", { key: '
|
|
323
|
+
} }, h("input", { key: 'acf6197d43b79a80e7a69219afda29271a86d4eb', type: "file", name: this.name, value: this.value, 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.maxFilesCount)) : '', h("input", { key: 'b8624b0fcaba14f14640acce0a28c12feb78701b', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
|
|
324
324
|
}
|
|
325
325
|
async componentDidLoad() {
|
|
326
326
|
await Salla.onReady();
|
|
@@ -190,12 +190,12 @@ const SallaFiltersWidget = /*@__PURE__*/ proxyCustomElement(class SallaFiltersWi
|
|
|
190
190
|
return h("span", { class: "s-filters-option-name" }, label);
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: 'e93cfb9f1f6daeb8a2121ccb36a3cf135a55e902', class: "s-filters-widget-container" }, h("h3", { key: 'd5ef45d78e0119e2ac997ded417e310c0a797c34', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: 'fe4df56fad0d290395d78588456fb7d00a20ed43' }, this.option.label), h("span", { key: 'c961f86b5e06437dfdd145e164da5fe326500032', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '7cf1ed1b562bf16acc481f682965567d8bc1813c', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: '275427371f48fdfc8ef8b80b9d3e11fa247f7d7a', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: '473c082ed9f7415beba445d36a121027eaadbbe1', type: "text", class: "s-filters-widget-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder') || 'بحث...', value: this.searchQuery, onInput: (e) => this.searchQuery = e.target.value }))), h("div", { key: 'e45654731cdd801345acc5b3311d9ddab3020035', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: '5ae673157a4b579a000901b04db8e375a52565e7' }), this.option.type !== FilterOptionTypes.RANGE
|
|
194
194
|
? this.renderFilterOption(this.option)
|
|
195
195
|
: h("salla-price-range", { onChanged: (event) => {
|
|
196
196
|
this.changed.emit(event.detail);
|
|
197
197
|
}, ref: price => this.priceRange = price, filtersData: this.filtersData, option: this.option })), this.withLoadMore && (!this.searchQuery || this.filteredCount > this.initialItemCount) &&
|
|
198
|
-
h("a", { key: '
|
|
198
|
+
h("a", { key: '8ec08429d8fb31b338e6f9f9cf455b5ba2155cb8', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
|
|
199
199
|
}
|
|
200
200
|
get host() { return this; }
|
|
201
201
|
static get style() { return sallaFiltersWidgetCss; }
|
|
@@ -196,7 +196,7 @@ const SallaFilters$1 = /*@__PURE__*/ proxyCustomElement(class SallaFilters exten
|
|
|
196
196
|
this.applyFilters();
|
|
197
197
|
}
|
|
198
198
|
render() {
|
|
199
|
-
return h(Host, { key: '
|
|
199
|
+
return h(Host, { key: 'f3c454fc20472dca6fe646c9121028a2c045808f' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
|
|
200
200
|
this.handleOptionChange(event, option, value);
|
|
201
201
|
} })), this.filters?.length ? h("div", { class: "s-filters-footer" }, h("salla-button", { color: 'gray', fill: 'outline', onClick: () => this.resetFilters() }, this.reset)) : '');
|
|
202
202
|
}
|
|
@@ -565,7 +565,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
565
565
|
}
|
|
566
566
|
render() {
|
|
567
567
|
return [
|
|
568
|
-
h("div", { key: '
|
|
568
|
+
h("div", { key: 'ea8b7581fc816b2984ec7a8c9f0d5bfb30710577' }, h("salla-list-tile", { key: '44e4b948c467ecbec4934f894af3e88a01567338', class: this.generateClass() }, h("div", { key: 'c36ccc48ff4209d2aad05123981c8efad4de8642', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: 'd5cfd335582f2af620ef50ae92b431b3fdf84b71' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: '9623168820eefb63c833dd14c68c1dc20afe1cd1', slot: "subtitle" }, h("div", { key: 'e2fda7dc68054c0f382f61d74a578589b565a544' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'e888e024772c0ef848e4a4113b218bb4e05d78db', slot: "action" }, h("salla-button", { key: 'd443bfd1f5925299a4e0510fae8fc175d390b55a', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '8df23b83891ee2abf644cde76675ca6bb796db79', name: "widget-btn-content" }, h("div", { key: '6b5153a1f1b9d5e127093c3fcc96e2a0fa4954f4', class: "s-gifting-widget-action-content" }, h("span", { key: '41a7f2e88c8046d7211abf5d7fc9d3f533c02292', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: '45ea8eac19ca9cccf37cd34d8f84211e6172cd45' }, this.sectionBtnText)))))), h("salla-modal", { key: '5bd076c54c4d072886671653e536c649763785b1', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '378d12f388bd0627355af5b4e57929c00ae28044', slot: "loading" }, h("div", { key: '1b738d4b461a9ebe3a5184f4de727bb1b4b45890', class: "s-gifting-skeleton" }, h("div", { key: '660c901f477536e68d2a3bacd028438c9726b968', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '46f8e45a0a38c10784fc5f3505092e65ed2bba3a', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '09b3356d736e5eb46bb51df2e2fa539dc9d8c99f', class: "s-gifting-modal-title" }, h("div", { key: 'cc8cb7dece64c65d5891e32e49588316e9009f6c', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '41b30274a655babdd0c9e26e74dc3f0bdd4a2aea', height: '15px', width: '150px' })))), h("div", { key: 'b241162827a085279f646452a151d6483a37cc8e', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '5ac15a8e94b50ea03cd033375b08f9e4406a7e17', height: '10px', width: '150px' }), h("salla-skeleton", { key: '697e157e475df0cb71b79e3752019f522ed847a3', height: '230px' }), h("salla-skeleton", { key: '8a5e586c059b765f6425d7060a18e8d799be3c4f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'e1ee17daef6904b8302b0f4437e99b221bd6b236', height: '30px' }), h("salla-skeleton", { key: '9dfbca00f18a37348eb83021ef4fec073685fe7d', height: '40px' })))), h("slot", { key: 'da2c687a186ed115acee04cc683eff3a6a73168f', name: "header" }), !!this.hasError ?
|
|
569
569
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
|
|
570
570
|
:
|
|
571
571
|
[
|
|
@@ -585,7 +585,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
585
585
|
h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), h("select", { name: "city", "aria-label": salla.lang.get('blocks.buy_as_gift.select_city'), class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId) }, h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
|
|
586
586
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
|
|
587
587
|
h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo)), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
|
|
588
|
-
], h("slot", { key: '
|
|
588
|
+
], h("slot", { key: '20793a5a50c708c93be79df033e43a36e615d075', name: "footer" })))
|
|
589
589
|
];
|
|
590
590
|
}
|
|
591
591
|
static get style() { return sallaGiftingCss; }
|
|
@@ -17,7 +17,7 @@ const SallaHook$1 = /*@__PURE__*/ proxyCustomElement(class SallaHook extends HTM
|
|
|
17
17
|
this.host.before(element);
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return h(Host, { key: '
|
|
20
|
+
return h(Host, { key: '618467f6911198a5cbf4270694544575e585af27' });
|
|
21
21
|
}
|
|
22
22
|
async componentDidLoad() {
|
|
23
23
|
// Register this component for hooks system, already on it logic to run componentDidLoad trigger
|
|
@@ -25,7 +25,7 @@ const SallaListTile = /*@__PURE__*/ proxyCustomElement(class SallaListTile exten
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'e1528afcea1eda05a5ce206e95791e7611d24dd0' }, h("a", { key: '749a73c76d68ad36f1a6609ada69778662d56566', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: '7bfd448f86790b2afe0b7a5b8a5460c3b2be66ee', class: "s-list-tile-item-icon" }, h("slot", { key: '383e28a8832483e8ecc61e4f48a3ff1fe5db1038', name: 'icon' })), h("div", { key: 'c42bf126a9ff4014a4e2d85ff12b41d1a88a0e03', class: "s-list-tile-item-content" }, h("div", { key: '18a4a9ebd39e3a710f70dc33554d24e3c2850e53', class: "s-list-tile-item-title" }, h("slot", { key: '7211d627511bf2448cf161f40cc82b1822dd1e7a', name: 'title' })), h("div", { key: '044a7d76e05841f484387c7ed299107f33c9bc21', class: "s-list-tile-item-subtitle" }, h("slot", { key: 'df131034f1c5434722543e25552caed142794d55', name: "subtitle" }))), h("div", { key: '37abe0abab720da11cd55660578ec256c062e763', class: "s-list-tile-item-action" }, h("slot", { key: 'fcac02da17981ef4c6fa3cea50c551e3010352d9', name: 'action' })))));
|
|
29
29
|
}
|
|
30
30
|
static get style() { return sallaListTileCss; }
|
|
31
31
|
}, [4, "salla-list-tile", {
|
|
@@ -27,7 +27,7 @@ const SallaLoading = /*@__PURE__*/ proxyCustomElement(class SallaLoading extends
|
|
|
27
27
|
this.bgColor = "#e5e7eb";
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '64a270526fd172b66a0671749bf36acee7cc8de1', class: "s-loading-container" }, h("svg", { key: '380bae806d8aa39e3ac07fba3daf181cfe040f70', "aria-hidden": "true", style: { width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }, class: "s-loading", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'c531098ed793fcd2ec90f10bfb470bcc4543b346', d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }), h("path", { key: 'cc6b89a57e8168937ee13b5ccdc25aa024e05223', d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return sallaLoadingCss; }
|
|
33
33
|
}, [0, "salla-loading", {
|
|
@@ -213,7 +213,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
|
|
|
213
213
|
this.showTrigger
|
|
214
214
|
? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
|
|
215
215
|
: '',
|
|
216
|
-
h("salla-modal", { key: '
|
|
216
|
+
h("salla-modal", { key: '8b26a4e0224a049aee503c06ec288eb2dcbd00db', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: 'b28c8375f6491ad8fab684dab4d203a9d23fd417', slot: 'loading' }, h("div", { key: '26967b5d8accc26b75aa0a361506341b00cc1ef7', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: 'a97f5ceee4c1173030ec29781ee6571c50e02865', width: '25%', height: '15px' }), h("div", { key: '51edca3871e46c692b89651281e94b1716f3cade', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '5e8e3fb5c956be5a681025c7cfce59648dcc75e7', width: '25%', height: '15px' }), h("div", { key: 'd16e6d8bed9300337f84bad366e2731799363fb2', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '952633850a514afbf702d8e6afe30470ff201673', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
217
217
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
|
|
218
218
|
h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
219
219
|
h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
|
|
@@ -11,13 +11,13 @@ const SallaLoyaltyHero = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyHero
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '3393f0d9f023c524b73eda48086f8fc25ec471ca' }, h("section", { key: 'f3d8332554c22a87b1f55a517009195c22ace65a', class: "s-loyalty-program-hero-container" }, h("div", { key: '5b746fb87ad0cc66bb08d46a70117258bc80e548', class: "s-loyalty-program-hero-background", style: {
|
|
15
15
|
backgroundImage: `url(${this.image})`,
|
|
16
|
-
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '
|
|
16
|
+
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: 'd265b684f565221d1e32375e215a224f9e37a29b', class: {
|
|
17
17
|
's-loyalty-program-hero-content': true,
|
|
18
18
|
's-loyalty-program-hero-white': !!this.image,
|
|
19
19
|
's-loyalty-program-hero-gray': !this.image,
|
|
20
|
-
} }, h("div", { key: '
|
|
20
|
+
} }, h("div", { key: '747b6d5d110ed4f07308f50d5fdbdb0e49ab22bf' }, h("h1", { key: 'e2aea10327e863bab41a4c5c5ccb10d3869408a7', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: '509d9916ec042f27634061f2c6942662b71b87cb', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '7161ffe3f223758f9b5c4b904ae7e36a940b7757', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: '60ca3aa104de52b3efa303c7d517fbe9370eb724', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: '24795c8373dfb546e7bb9bd841646a24455c72af', name: "action" }))), h("div", { key: '2400cfc7f43acc5d94e647feb370d162074a5e68', class: "s-loyalty-program-hero-footer" }, h("div", { key: '00b01de76c0278a2900cd6ae7dfb7dfe9f16b5a1', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: '969566f21e651ff1f4833ef6e671700ecffe9072', name: "crosspoint" }))))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
23
23
|
}, [4, "salla-loyalty-hero", {
|