@salla.sa/twilight-components 2.14.429 → 2.14.430
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-Cirhmv0g.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DzvswSJb.js → filepond-plugin-file-poster-CFJdxZnt.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-C5wUWXz6.js → filepond-plugin-file-validate-size-D_c252fB.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-HA2w2_fC.js → filepond-plugin-file-validate-type-CmQlvhLj.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CXrhd-IB.js → filepond-plugin-image-edit-CVkvUofN.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BJnamgw6.js → filepond-plugin-image-exif-orientation-B5qI46w6.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CmdkZJij.js → filepond-plugin-image-preview-CFlJws8x.js} +1 -1
- package/dist/cjs/{functions-DPnm948J.js → functions-DikM8tjQ.js} +1 -1
- package/dist/cjs/{index-D3xsx646.js → index-BPCJbQAt.js} +2 -2
- package/dist/cjs/{index-DRfjMaC1.js → index-qdhDUBe_.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 +3 -3
- 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-CIjCJ7rC.js} +1 -1
- package/dist/cjs/twilight.cjs.js +1 -1
- package/dist/cjs/{vanilla-picker-Jk2F9CAy.js → vanilla-picker-DS2OnhRa.js} +1 -1
- 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-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-DiU0XQ9e.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Ll-3yUwR.js → filepond-plugin-file-poster-DtjI61lL.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-2D44oWIJ.js → filepond-plugin-file-validate-size-Dqu64lGR.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-08Jawn6d.js → filepond-plugin-file-validate-type-DcD09bJn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DmEVMjMi.js → filepond-plugin-image-edit-DVNXwam7.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DJo_07yV.js → filepond-plugin-image-exif-orientation-DkFCziSJ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-Nd-PQAho.js → filepond-plugin-image-preview-DmXXOhqL.js} +1 -1
- package/dist/esm/{functions-GnOlk8am.js → functions-BrNcFMBn.js} +1 -1
- package/dist/esm/{index-DR8BHH7X.js → index-BvVpL-WS.js} +2 -2
- package/dist/esm/{index-Ba0YDJC7.js → index-ZLiIwsdw.js} +1 -1
- 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 +3 -3
- 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-C9WWqUqk.js} +1 -1
- package/dist/esm/twilight.js +2 -2
- package/dist/esm/{vanilla-picker-f4lmttLY.js → vanilla-picker-M17sW8cB.js} +1 -1
- package/dist/twilight/{p-65839961.entry.js → p-00d72f65.entry.js} +1 -1
- package/dist/twilight/{p-83c1d4b2.entry.js → p-01743b1b.entry.js} +1 -1
- package/dist/twilight/{p-6e26c815.entry.js → p-026a05cb.entry.js} +1 -1
- package/dist/twilight/{p-8709e981.entry.js → p-06eb8972.entry.js} +1 -1
- package/dist/twilight/{p-824dd42e.entry.js → p-08389628.entry.js} +1 -1
- package/dist/twilight/{p-e0244c37.entry.js → p-097a8bae.entry.js} +1 -1
- package/dist/twilight/{p-8fad5c91.entry.js → p-0e609779.entry.js} +1 -1
- package/dist/twilight/{p-3910e00f.entry.js → p-1196255d.entry.js} +1 -1
- package/dist/twilight/{p-e0af89bc.entry.js → p-16f9d2a1.entry.js} +1 -1
- package/dist/twilight/{p-4482e672.entry.js → p-1950f3f2.entry.js} +1 -1
- package/dist/twilight/{p-ed6007e1.entry.js → p-1baaaada.entry.js} +1 -1
- package/dist/twilight/{p-72b1e6ed.entry.js → p-1e988f4f.entry.js} +1 -1
- package/dist/twilight/{p-fca971a6.entry.js → p-21a987de.entry.js} +1 -1
- package/dist/twilight/{p-96d644b8.entry.js → p-23ae52f8.entry.js} +1 -1
- package/dist/twilight/p-252ff6d9.entry.js +4 -0
- package/dist/twilight/{p-c4960804.entry.js → p-29acddf7.entry.js} +1 -1
- package/dist/twilight/p-2d62e0d2.entry.js +4 -0
- package/dist/twilight/{p-7edaa78b.entry.js → p-2e494246.entry.js} +1 -1
- package/dist/twilight/{p-d567481d.entry.js → p-31026ed7.entry.js} +1 -1
- package/dist/twilight/{p-6f3da0b7.entry.js → p-3f17453a.entry.js} +1 -1
- package/dist/twilight/{p-1c8726e2.entry.js → p-3f2c6512.entry.js} +1 -1
- package/dist/twilight/{p-44b289bb.entry.js → p-42a27ec9.entry.js} +1 -1
- package/dist/twilight/{p-6c58235e.entry.js → p-45e5092c.entry.js} +1 -1
- package/dist/twilight/{p-c52aac33.entry.js → p-460c3223.entry.js} +1 -1
- package/dist/twilight/{p-59f47a08.entry.js → p-477f5f80.entry.js} +1 -1
- package/dist/twilight/p-4802218f.entry.js +4 -0
- package/dist/twilight/{p-807db423.entry.js → p-4c3ccd8a.entry.js} +1 -1
- package/dist/twilight/{p-b20265f2.entry.js → p-4c3de6bc.entry.js} +1 -1
- package/dist/twilight/{p-08c6172b.entry.js → p-4d385abd.entry.js} +1 -1
- package/dist/twilight/{p-f2b204a4.entry.js → p-4ff3b253.entry.js} +1 -1
- package/dist/twilight/{p-df173474.entry.js → p-52fefe92.entry.js} +1 -1
- package/dist/twilight/{p-154e782d.entry.js → p-563ad8b1.entry.js} +1 -1
- package/dist/twilight/{p-5c347cd5.entry.js → p-56c0c112.entry.js} +1 -1
- package/dist/twilight/{p-400257fd.entry.js → p-575d8494.entry.js} +1 -1
- package/dist/twilight/{p-bc76d253.entry.js → p-5955e77e.entry.js} +1 -1
- package/dist/twilight/{p-ed8951c5.entry.js → p-5d308bb3.entry.js} +1 -1
- package/dist/twilight/{p-9f320350.entry.js → p-5d56bb46.entry.js} +1 -1
- package/dist/twilight/{p-f579e8ef.entry.js → p-60fe0718.entry.js} +1 -1
- package/dist/twilight/p-617b25dc.entry.js +4 -0
- package/dist/twilight/{p-9bde5e3c.entry.js → p-694b9e1f.entry.js} +1 -1
- package/dist/twilight/p-6af137a9.entry.js +4 -0
- package/dist/twilight/{p-6339390a.entry.js → p-6c30d08d.entry.js} +1 -1
- package/dist/twilight/{p-4f873363.entry.js → p-6ce4476a.entry.js} +1 -1
- package/dist/twilight/{p-bc47e256.entry.js → p-74925d4d.entry.js} +1 -1
- package/dist/twilight/{p-3a2fdd6f.entry.js → p-7637fd8b.entry.js} +1 -1
- package/dist/twilight/p-79520f52.entry.js +4 -0
- package/dist/twilight/{p-d617d844.entry.js → p-7a0941a8.entry.js} +1 -1
- package/dist/twilight/{p-1e7d16a3.entry.js → p-887262a1.entry.js} +1 -1
- package/dist/twilight/{p-ccfe690a.entry.js → p-8a82dd88.entry.js} +1 -1
- package/dist/twilight/p-8cda9c21.entry.js +4 -0
- package/dist/twilight/p-9020f3d2.entry.js +4 -0
- package/dist/twilight/{p-74eb04ec.entry.js → p-91a41b34.entry.js} +1 -1
- package/dist/twilight/{p-bcf201a8.entry.js → p-964ce7a3.entry.js} +1 -1
- package/dist/twilight/{p-beb17e29.entry.js → p-98ac84a4.entry.js} +1 -1
- package/dist/twilight/{p-612c5b08.entry.js → p-9ad307d8.entry.js} +1 -1
- package/dist/twilight/{p-5999d681.entry.js → p-9bcd73b0.entry.js} +1 -1
- package/dist/twilight/{p-CdbTKQNp.js → p-BUrZI2aM.js} +1 -1
- package/dist/twilight/{p-DR8BHH7X.js → p-BvVpL-WS.js} +1 -1
- package/dist/twilight/{p-CmDT48y4.js → p-C6A85BEB.js} +1 -1
- package/dist/twilight/{p-Bc2RLvfZ.js → p-C9hd13aU.js} +1 -1
- package/dist/twilight/{p-cvulr5dQ.js → p-CIL3hdhP.js} +1 -1
- package/dist/twilight/{p-hkzTCOEy.js → p-CWNDCXYi.js} +1 -1
- package/dist/twilight/{p-kg7IhfAv.js → p-CwQDINE8.js} +1 -1
- package/dist/twilight/{p-Dtp3srRX.js → p-D2QeP02t.js} +1 -1
- package/dist/twilight/{p-CiAXtUPQ.js → p-DxsOI9Zt.js} +1 -1
- package/dist/twilight/{p-NohMjDY2.js → p-PA3S2KT3.js} +1 -1
- package/dist/twilight/{p-Dqb1Ri2Y.js → p-XZtgFy1u.js} +1 -1
- package/dist/twilight/{p-103dc47c.entry.js → p-a0e3c5fa.entry.js} +1 -1
- package/dist/twilight/{p-835c43e6.entry.js → p-a54ee481.entry.js} +1 -1
- package/dist/twilight/{p-64376e97.entry.js → p-a80f8392.entry.js} +1 -1
- package/dist/twilight/{p-78ce73ba.entry.js → p-ab6a7327.entry.js} +1 -1
- package/dist/twilight/{p-a9cbd414.entry.js → p-af6de590.entry.js} +1 -1
- package/dist/twilight/{p-4da58baf.entry.js → p-b03b5c76.entry.js} +1 -1
- package/dist/twilight/p-b56d69e0.entry.js +4 -0
- package/dist/twilight/{p-c707f55b.entry.js → p-bb38dce1.entry.js} +1 -1
- package/dist/twilight/{p-ff75f1c4.entry.js → p-bc40de55.entry.js} +1 -1
- package/dist/twilight/{p-19bb31a5.entry.js → p-c5e3a68c.entry.js} +1 -1
- package/dist/twilight/{p-cb8a1223.entry.js → p-cded196b.entry.js} +1 -1
- package/dist/twilight/{p-c47e85e9.entry.js → p-e12e156c.entry.js} +1 -1
- package/dist/twilight/{p-1208793a.entry.js → p-e21e3a18.entry.js} +1 -1
- package/dist/twilight/p-e2300aa7.entry.js +4 -0
- package/dist/twilight/{p-745329af.entry.js → p-e29c5879.entry.js} +1 -1
- package/dist/twilight/p-e4567da1.entry.js +4 -0
- package/dist/twilight/{p-38a8f05e.entry.js → p-e484f70f.entry.js} +1 -1
- package/dist/twilight/{p-5ecf2b26.entry.js → p-e48c91a0.entry.js} +1 -1
- package/dist/twilight/{p-42cc9b33.entry.js → p-e60ed35e.entry.js} +1 -1
- package/dist/twilight/{p-8bfca6eb.entry.js → p-e7df2d02.entry.js} +1 -1
- package/dist/twilight/{p-2d705236.entry.js → p-e8737d37.entry.js} +1 -1
- package/dist/twilight/{p-99d0fd61.entry.js → p-e90e7777.entry.js} +1 -1
- package/dist/twilight/{p-b59b7153.entry.js → p-ec502a59.entry.js} +1 -1
- package/dist/twilight/{p-624503ee.entry.js → p-f0088314.entry.js} +1 -1
- package/dist/twilight/{p-5ebbec76.entry.js → p-f6d8db91.entry.js} +1 -1
- package/dist/twilight/{p-d01e76f4.entry.js → p-f94fcd4d.entry.js} +1 -1
- package/dist/twilight/{p-2e8588ca.entry.js → p-fb0e561e.entry.js} +1 -1
- package/dist/twilight/{p-D0FlIX_Z.js → p-s-nQXrWR.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-c00d4e23.entry.js +0 -4
- package/dist/twilight/p-c137e672.entry.js +0 -4
- package/dist/twilight/p-e0750731.entry.js +0 -4
- package/dist/twilight/p-f245d317.entry.js +0 -4
package/dist/esm/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
5
|
-
export { s as setNonce } from './index-
|
|
4
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-BvVpL-WS.js';
|
|
5
|
+
export { s as setNonce } from './index-BvVpL-WS.js';
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = async (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-BvVpL-WS.js';
|
|
5
5
|
import { p as plusIcon, m as minusIcon } from './minus-DfeagqF1.js';
|
|
6
6
|
|
|
7
7
|
const sallaAccordionBodyCss = "";
|
|
@@ -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-BvVpL-WS.js';
|
|
5
5
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
import { S as SICancel } from './cancel-8Tsmrwno.js';
|
|
7
7
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
@@ -594,7 +594,7 @@ const SallaLoading = class {
|
|
|
594
594
|
this.bgColor = "#e5e7eb";
|
|
595
595
|
}
|
|
596
596
|
render() {
|
|
597
|
-
return (h(Host, { key: '
|
|
597
|
+
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" }))));
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
600
|
SallaLoading.style = sallaLoadingCss;
|
|
@@ -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-BvVpL-WS.js';
|
|
5
5
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
6
6
|
import { H as Helper } from './Helper-DFMXF2_h.js';
|
|
7
7
|
import { B as BellRing } from './bell-ring-D3mWkc-3.js';
|
|
@@ -502,7 +502,7 @@ const SallaProductAvailability = class {
|
|
|
502
502
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
503
503
|
}
|
|
504
504
|
render() {
|
|
505
|
-
return (h(Host, { key: '
|
|
505
|
+
return (h(Host, { key: 'a09c35acc83cc5dd3bf5777a592a8f58ec44f7fb', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
506
506
|
? 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'))
|
|
507
507
|
:
|
|
508
508
|
h("salla-button", { width: "wide", onClick: () => this.isUser ? this.submit() : this.openModel() }, salla.lang.get('pages.products.notify_availability')), this.isUser || this.isSubscribed || this.isVisitorSubscribed ? '' : this.renderModal()));
|
|
@@ -2551,7 +2551,7 @@ const SallaQuickBuy = class {
|
|
|
2551
2551
|
});
|
|
2552
2552
|
}
|
|
2553
2553
|
render() {
|
|
2554
|
-
return h(Host, { key: '
|
|
2554
|
+
return h(Host, { key: '5760621653a41e04a42beb51d982c41259250631' }, this.quickBuyButton());
|
|
2555
2555
|
}
|
|
2556
2556
|
quickBuyButton() {
|
|
2557
2557
|
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-BvVpL-WS.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
|
|
7
7
|
const sallaAdvertisementCss = ":host{display:block}";
|
|
@@ -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-BvVpL-WS.js';
|
|
5
5
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
6
6
|
import { I as ImageIcon } from './image-C-tzSDxw.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-BvVpL-WS.js';
|
|
5
5
|
|
|
6
6
|
const sallaAppInstallAlertCss = ":host{display:block}";
|
|
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-BvVpL-WS.js';
|
|
5
5
|
|
|
6
6
|
const sallaAppsIconsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -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-BvVpL-WS.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
|
|
|
@@ -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 } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvVpL-WS.js';
|
|
5
5
|
import { S as SICalendar } from './calendar-BkmanTR_.js';
|
|
6
6
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
7
7
|
import { p as plusIcon, m as minusIcon } from './minus-DfeagqF1.js';
|
|
@@ -358,7 +358,7 @@ const SallaColorPicker = class {
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
initColorPicker() {
|
|
361
|
-
this.pickerReady = import('./vanilla-picker-
|
|
361
|
+
this.pickerReady = import('./vanilla-picker-M17sW8cB.js').then(function (n) { return n.v; }).then(mod => {
|
|
362
362
|
const Picker = mod.default;
|
|
363
363
|
const picker = new Picker({
|
|
364
364
|
parent: this.host,
|
|
@@ -378,7 +378,7 @@ const SallaColorPicker = class {
|
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
render() {
|
|
381
|
-
return (h(Host, { key: '
|
|
381
|
+
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) })));
|
|
382
382
|
}
|
|
383
383
|
componentDidLoad() {
|
|
384
384
|
if (this.canvas)
|
|
@@ -527,7 +527,7 @@ const SallaConditionalFields = class {
|
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
render() {
|
|
530
|
-
return (h(Host, { key: '
|
|
530
|
+
return (h(Host, { key: '9e3ff9d4f7209583d5ef3d4f447a7a676e6857e0' }, h("slot", { key: '889bc28c2985d82e3bcd6e4231b135a58dca26d6' })));
|
|
531
531
|
}
|
|
532
532
|
get host() { return getElement(this); }
|
|
533
533
|
};
|
|
@@ -739,7 +739,7 @@ const SallaDatetimePicker = class {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
render() {
|
|
742
|
-
return h("div", { key: '
|
|
742
|
+
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 }));
|
|
743
743
|
}
|
|
744
744
|
async componentDidLoad() {
|
|
745
745
|
// Load flatpickr before initializing
|
|
@@ -818,13 +818,13 @@ const SallaFileUpload = class {
|
|
|
818
818
|
return;
|
|
819
819
|
try {
|
|
820
820
|
const [FilePondModule, FilePondPluginFileValidateSize, FilePondPluginImageExifOrientation, FilePondPluginImagePreview, FilePondPluginImageEdit, FilePondPluginFileValidateType, FilePondPluginFilePoster] = await Promise.all([
|
|
821
|
-
import('./filepond-
|
|
822
|
-
import('./filepond-plugin-file-validate-size-
|
|
823
|
-
import('./filepond-plugin-image-exif-orientation-
|
|
824
|
-
import('./filepond-plugin-image-preview-
|
|
825
|
-
import('./filepond-plugin-image-edit-
|
|
826
|
-
import('./filepond-plugin-file-validate-type-
|
|
827
|
-
import('./filepond-plugin-file-poster-
|
|
821
|
+
import('./filepond-DiU0XQ9e.js').then(function (n) { return n.f; }),
|
|
822
|
+
import('./filepond-plugin-file-validate-size-Dqu64lGR.js').then(function (n) { return n.f; }),
|
|
823
|
+
import('./filepond-plugin-image-exif-orientation-DkFCziSJ.js').then(function (n) { return n.f; }),
|
|
824
|
+
import('./filepond-plugin-image-preview-DmXXOhqL.js').then(function (n) { return n.f; }),
|
|
825
|
+
import('./filepond-plugin-image-edit-DVNXwam7.js').then(function (n) { return n.f; }),
|
|
826
|
+
import('./filepond-plugin-file-validate-type-DcD09bJn.js').then(function (n) { return n.f; }),
|
|
827
|
+
import('./filepond-plugin-file-poster-DtjI61lL.js').then(function (n) { return n.f; })
|
|
828
828
|
]);
|
|
829
829
|
this.FilePond = FilePondModule;
|
|
830
830
|
// Register plugins
|
|
@@ -1118,11 +1118,11 @@ const SallaFileUpload = class {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
render() {
|
|
1121
|
-
return (h(Host, { key: '
|
|
1121
|
+
return (h(Host, { key: '978e89fe8713e6b3db913ed8fb3c5d09f6caf705', class: {
|
|
1122
1122
|
"s-file-upload": true,
|
|
1123
1123
|
"s-file-upload-profile-image": this.profileImage,
|
|
1124
1124
|
"s-file-upload-multiple": this.allowMultiple,
|
|
1125
|
-
} }, h("input", { key: '
|
|
1125
|
+
} }, 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 })));
|
|
1126
1126
|
}
|
|
1127
1127
|
async componentDidLoad() {
|
|
1128
1128
|
await Salla.onReady();
|
|
@@ -1405,7 +1405,7 @@ const SallaQuantityInput = class {
|
|
|
1405
1405
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
1406
1406
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
1407
1407
|
}
|
|
1408
|
-
return (h(Host, { key: '
|
|
1408
|
+
return (h(Host, { key: 'fe32e78fac9dba3b83957f5e476aba8c820822cd', class: "s-quantity-input" }, h("div", { key: '4279ee5b42092efc80fb8e5fb716b95f35162cbe', class: "s-quantity-input-container" }, h("button", { key: '7239d398778f75e50822a84bdce007e9dff82b53', 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: '9c21595e422b8af76daa4719e9924d067b749115', name: "increment-button" })), h("input", { key: '2a280bed1b32847d80895dcd3fb5b1cd2ccac991', 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: 'c7ac2db9ba36b7dcb5c89884ffae4aa56dba42ce', 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: 'd3a10929d440c614b7788548aa72fc3a66b63b74', name: "decrement-button" })))));
|
|
1409
1409
|
}
|
|
1410
1410
|
get host() { return getElement(this); }
|
|
1411
1411
|
static get watchers() { return {
|
|
@@ -1425,7 +1425,7 @@ const SallaTelInput = class {
|
|
|
1425
1425
|
if (this.TelInput)
|
|
1426
1426
|
return;
|
|
1427
1427
|
try {
|
|
1428
|
-
const telInputModule = await import('./index-
|
|
1428
|
+
const telInputModule = await import('./index-ZLiIwsdw.js').then(function (n) { return n.i; });
|
|
1429
1429
|
this.TelInput = telInputModule.default;
|
|
1430
1430
|
}
|
|
1431
1431
|
catch (error) {
|
|
@@ -1539,7 +1539,7 @@ const SallaTelInput = class {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
render() {
|
|
1542
|
-
return (h(Host, { key: '
|
|
1542
|
+
return (h(Host, { key: '52617befb5152051a2be9f65a96a4f2a8577e6c4', class: "s-tel-input" }, h("input", { key: '7f6e7cc0b8cde9139cfdf6fb0ba0d6efe48bcb3b', 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: 'c5b21209ee941ae455516e3b4e9c503e8c52f3c5', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: 'a09cb211e141996066ade2a6e8b901696de65bb7', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
1543
1543
|
}
|
|
1544
1544
|
componentDidLoad() {
|
|
1545
1545
|
this.initTelInput();
|
|
@@ -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 } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BvVpL-WS.js';
|
|
5
5
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
7
7
|
import { S as Search } from './search-BscTeWDc.js';
|
|
@@ -432,6 +432,7 @@ const SallaBulletDelivery = class {
|
|
|
432
432
|
this.open();
|
|
433
433
|
};
|
|
434
434
|
this.closeHandler = null;
|
|
435
|
+
this.bulletDeliveryMobileSelectHandler = null;
|
|
435
436
|
/** True after saved addresses have been loaded (lazy: only when address tab is shown). */
|
|
436
437
|
this.savedAddressesLoaded = false;
|
|
437
438
|
// Core state
|
|
@@ -650,7 +651,7 @@ const SallaBulletDelivery = class {
|
|
|
650
651
|
}
|
|
651
652
|
/** Whether to show delivery + pickup tabs. From store.shipping.support_pickup */
|
|
652
653
|
get supportsPickup() {
|
|
653
|
-
return Boolean(Salla.config.get("store.shipping.support_pickup"));
|
|
654
|
+
return Boolean(Salla.config.get("store.shipping.support_pickup")) || Boolean(Salla.config.get("store.support_pickup"));
|
|
654
655
|
}
|
|
655
656
|
/** The modal opening strategy: 'first_visit' | 'on_cart_click' | 'after_add_to_cart' */
|
|
656
657
|
get openingType() {
|
|
@@ -660,6 +661,9 @@ const SallaBulletDelivery = class {
|
|
|
660
661
|
get isRequired() {
|
|
661
662
|
return !!Salla.config.get("store.settings.bullet_delivery.settings.is_required");
|
|
662
663
|
}
|
|
664
|
+
get isMobileApp() {
|
|
665
|
+
return Salla.config.isMobileApp();
|
|
666
|
+
}
|
|
663
667
|
/**
|
|
664
668
|
* Opens the bullet delivery modal
|
|
665
669
|
*/
|
|
@@ -1645,6 +1649,175 @@ const SallaBulletDelivery = class {
|
|
|
1645
1649
|
form_data: { ...this.newAddressForm },
|
|
1646
1650
|
};
|
|
1647
1651
|
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Build a minimal `BulletDeliveryAllocationConfirmedAddressData` from a mobile
|
|
1654
|
+
* payload (no full SavedAddress object available). Only used for the
|
|
1655
|
+
* `salla::bullet-delivery.allocation.confirmed` event so existing listeners
|
|
1656
|
+
* keep working with the same shape they get on desktop.
|
|
1657
|
+
*/
|
|
1658
|
+
buildAllocationConfirmedAddressFromIntent(payload) {
|
|
1659
|
+
if (payload.type !== "address")
|
|
1660
|
+
return null;
|
|
1661
|
+
const details = payload.address_details;
|
|
1662
|
+
const countryId = Number(payload.country_id) || 0;
|
|
1663
|
+
return {
|
|
1664
|
+
country: details?.country
|
|
1665
|
+
? {
|
|
1666
|
+
id: details.country.id,
|
|
1667
|
+
name: details.country.name,
|
|
1668
|
+
code: details.country.code ?? payload.country_code ?? "",
|
|
1669
|
+
}
|
|
1670
|
+
: undefined,
|
|
1671
|
+
region: details?.region
|
|
1672
|
+
? {
|
|
1673
|
+
id: Number(details.region.id),
|
|
1674
|
+
name: details.region.name,
|
|
1675
|
+
country_id: countryId,
|
|
1676
|
+
code: details.region.code ?? undefined,
|
|
1677
|
+
}
|
|
1678
|
+
: undefined,
|
|
1679
|
+
city: details?.city
|
|
1680
|
+
? {
|
|
1681
|
+
id: Number(details.city.id),
|
|
1682
|
+
name: details.city.name,
|
|
1683
|
+
country_id: countryId,
|
|
1684
|
+
}
|
|
1685
|
+
: undefined,
|
|
1686
|
+
district: details?.district
|
|
1687
|
+
? {
|
|
1688
|
+
id: Number(details.district.id),
|
|
1689
|
+
name: details.district.name,
|
|
1690
|
+
city_id: Number(details.city?.id) || 0,
|
|
1691
|
+
}
|
|
1692
|
+
: undefined,
|
|
1693
|
+
short_address: details?.short_address,
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
/** Synthesise a minimal `Branch` from a mobile branch intent. */
|
|
1697
|
+
buildBranchFromIntent(payload) {
|
|
1698
|
+
if (payload.type !== "branch" || !payload.branch_details)
|
|
1699
|
+
return null;
|
|
1700
|
+
const b = payload.branch_details;
|
|
1701
|
+
const branch = {
|
|
1702
|
+
id: b.id,
|
|
1703
|
+
name: b.name,
|
|
1704
|
+
};
|
|
1705
|
+
if (b.city) {
|
|
1706
|
+
branch.city = { id: 0, name: b.city };
|
|
1707
|
+
}
|
|
1708
|
+
if (b.latitude != null && b.longitude != null) {
|
|
1709
|
+
branch.location = { lat: String(b.latitude), lng: String(b.longitude) };
|
|
1710
|
+
}
|
|
1711
|
+
return branch;
|
|
1712
|
+
}
|
|
1713
|
+
/** Reconstruct the equivalent `ScopeAllocationPayload` from a mobile result. */
|
|
1714
|
+
buildAllocationRequestFromIntent(payload) {
|
|
1715
|
+
if (payload.type === "branch") {
|
|
1716
|
+
return {
|
|
1717
|
+
type: "branch",
|
|
1718
|
+
branch_id: payload.branch_id != null ? String(payload.branch_id) : "",
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1721
|
+
if (payload.address_id != null) {
|
|
1722
|
+
return {
|
|
1723
|
+
type: "address",
|
|
1724
|
+
address_id: String(payload.address_id),
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
const details = payload.address_details;
|
|
1728
|
+
const request = {
|
|
1729
|
+
type: "address",
|
|
1730
|
+
country_id: payload.country_id != null ? String(payload.country_id) : "",
|
|
1731
|
+
city_id: details?.city?.id != null ? String(details.city.id) : "",
|
|
1732
|
+
};
|
|
1733
|
+
if (details?.region?.id != null) {
|
|
1734
|
+
request.region_id = String(details.region.id);
|
|
1735
|
+
}
|
|
1736
|
+
if (details?.district?.id != null) {
|
|
1737
|
+
request.district_id = String(details.district.id);
|
|
1738
|
+
}
|
|
1739
|
+
return request;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Apply a selection performed inside the mobile app's native sheet.
|
|
1743
|
+
*
|
|
1744
|
+
* Mirrors the post-allocation side-effects of `handleConfirm()` so the
|
|
1745
|
+
* webview ends up in the exact same state as if the user had confirmed via
|
|
1746
|
+
* our component on desktop:
|
|
1747
|
+
* 1. Sets `s-scope-allocation-*` headers for subsequent API calls.
|
|
1748
|
+
* 2. Persists allocation in `Salla.storage.scope` (single source of truth).
|
|
1749
|
+
* 3. Marks the modal as shown for this session and stores the intent so
|
|
1750
|
+
* delivery-promise / scope-switch UIs reflect the selection.
|
|
1751
|
+
* 4. Clears the API cache so cached data from the previous scope is gone.
|
|
1752
|
+
* 5. Dispatches `salla::bullet-delivery.allocation.confirmed`,
|
|
1753
|
+
* `bulletDeliveryConfirmed`, and the header-context update event so
|
|
1754
|
+
* every listener (header pill, cart view, etc.) syncs.
|
|
1755
|
+
* 6. Reloads the page so prices, availability, and cart reflect the
|
|
1756
|
+
* newly-selected scope (matches desktop behaviour).
|
|
1757
|
+
*/
|
|
1758
|
+
applyMobileBulletDeliverySelection(payload) {
|
|
1759
|
+
if (!payload || (payload.type !== "address" && payload.type !== "branch")) {
|
|
1760
|
+
console.warn("SallaBulletDelivery: ignoring invalid mobile select payload", payload);
|
|
1761
|
+
return;
|
|
1762
|
+
}
|
|
1763
|
+
const headers = payload.allocation_headers ?? {};
|
|
1764
|
+
const allocationType = headers["s-scope-allocation-type"] ?? payload.type;
|
|
1765
|
+
const allocationId = headers["s-scope-allocation-id"];
|
|
1766
|
+
if (allocationType) {
|
|
1767
|
+
Salla.api.setHeader("s-scope-allocation-type", allocationType);
|
|
1768
|
+
}
|
|
1769
|
+
if (allocationId) {
|
|
1770
|
+
Salla.api.setHeader("s-scope-allocation-id", String(allocationId));
|
|
1771
|
+
}
|
|
1772
|
+
const existingScope = Salla.config.get("store.scope", Salla.storage.get("scope")) || {};
|
|
1773
|
+
Salla.storage.set("scope", {
|
|
1774
|
+
...existingScope,
|
|
1775
|
+
allocation_type: allocationType,
|
|
1776
|
+
allocation_id: allocationId ? String(allocationId) : undefined,
|
|
1777
|
+
});
|
|
1778
|
+
this.markShownThisSession();
|
|
1779
|
+
// Normalise headers in the persisted intent: keep only the mobile-provided
|
|
1780
|
+
// values so storefront reads see the same shape as the desktop confirm flow.
|
|
1781
|
+
const normalisedIntent = {
|
|
1782
|
+
...payload,
|
|
1783
|
+
allocation_headers: {
|
|
1784
|
+
"s-scope-allocation-type": allocationType,
|
|
1785
|
+
"s-scope-allocation-id": allocationId
|
|
1786
|
+
? String(allocationId)
|
|
1787
|
+
: undefined,
|
|
1788
|
+
},
|
|
1789
|
+
};
|
|
1790
|
+
this.setStoredIntent(normalisedIntent);
|
|
1791
|
+
clearApiCache();
|
|
1792
|
+
const branch = this.buildBranchFromIntent(normalisedIntent);
|
|
1793
|
+
const allocationConfirmedPayload = {
|
|
1794
|
+
...normalisedIntent,
|
|
1795
|
+
address: this.buildAllocationConfirmedAddressFromIntent(normalisedIntent),
|
|
1796
|
+
branch,
|
|
1797
|
+
allocation_request: this.buildAllocationRequestFromIntent(normalisedIntent),
|
|
1798
|
+
allocation_response: null,
|
|
1799
|
+
};
|
|
1800
|
+
Salla.event.dispatch("salla::bullet-delivery.allocation.confirmed", allocationConfirmedPayload);
|
|
1801
|
+
this.bulletDeliveryConfirmed.emit({
|
|
1802
|
+
...normalisedIntent,
|
|
1803
|
+
branch: branch ?? undefined,
|
|
1804
|
+
});
|
|
1805
|
+
this.emitHeaderContextUpdate(normalisedIntent, undefined, branch ?? undefined);
|
|
1806
|
+
// Reload so products / cart / header reflect the new scope, matching the
|
|
1807
|
+
// desktop confirm flow. Small delay lets the dispatched events propagate
|
|
1808
|
+
// to any in-page listeners before the navigation tears the document down.
|
|
1809
|
+
setTimeout(() => window.location.reload(), 100);
|
|
1810
|
+
}
|
|
1811
|
+
extractMobileSelectPayload(raw) {
|
|
1812
|
+
if (!raw || typeof raw !== "object")
|
|
1813
|
+
return null;
|
|
1814
|
+
// Some mobile bridges deliver the original `{ event, payload }` envelope
|
|
1815
|
+
// while a normal Salla.event dispatch passes the data directly.
|
|
1816
|
+
if ("payload" in raw && raw.payload) {
|
|
1817
|
+
return raw.payload;
|
|
1818
|
+
}
|
|
1819
|
+
return raw;
|
|
1820
|
+
}
|
|
1648
1821
|
async handleConfirm() {
|
|
1649
1822
|
if (this.isConfirmDisabled() || this.confirming)
|
|
1650
1823
|
return;
|
|
@@ -2243,13 +2416,36 @@ const SallaBulletDelivery = class {
|
|
|
2243
2416
|
}
|
|
2244
2417
|
}
|
|
2245
2418
|
render() {
|
|
2246
|
-
|
|
2419
|
+
if (this.isMobileApp)
|
|
2420
|
+
return null;
|
|
2421
|
+
return (h(Host, { class: "s-bullet-delivery" }, h("salla-modal", { ref: (modal) => {
|
|
2247
2422
|
this.modal = modal;
|
|
2248
|
-
}, isClosable: !this.isRequired && !this.shouldForceNonClosable(), class: "s-bullet-delivery-modal", width: "sm" }, h("div", {
|
|
2423
|
+
}, 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()))));
|
|
2249
2424
|
}
|
|
2250
2425
|
componentDidLoad() {
|
|
2251
2426
|
// Mark component as ready
|
|
2252
2427
|
this.componentReady = true;
|
|
2428
|
+
if (this.isMobileApp) {
|
|
2429
|
+
// Ask the mobile app to render its native delivery sheet (replacement for our modal).
|
|
2430
|
+
Salla.event.dispatch('salla::bullet-delivery.open-sheet');
|
|
2431
|
+
// When the user confirms inside the mobile sheet, mobile dispatches
|
|
2432
|
+
// `salla::bullet-delivery.select` with a payload equivalent to what
|
|
2433
|
+
// `handleConfirm()` produces on desktop. Apply the same side-effects.
|
|
2434
|
+
this.bulletDeliveryMobileSelectHandler = (raw) => {
|
|
2435
|
+
const payload = this.extractMobileSelectPayload(raw);
|
|
2436
|
+
if (!payload) {
|
|
2437
|
+
console.warn("SallaBulletDelivery: received empty mobile select payload", raw);
|
|
2438
|
+
return;
|
|
2439
|
+
}
|
|
2440
|
+
this.applyMobileBulletDeliverySelection(payload);
|
|
2441
|
+
};
|
|
2442
|
+
Salla.event.on("salla::bullet-delivery.select", this.bulletDeliveryMobileSelectHandler);
|
|
2443
|
+
// Skip desktop-only initialisation: the auto-open strategy switch and the
|
|
2444
|
+
// cart:items.start hook mount are both no-ops or actively harmful in the
|
|
2445
|
+
// mobile webview (no modal exists, and we'd inject a non-functional HTML
|
|
2446
|
+
// pill into the native cart UI).
|
|
2447
|
+
return;
|
|
2448
|
+
}
|
|
2253
2449
|
// Handle pending open request (if event was emitted before component was ready)
|
|
2254
2450
|
if (this.pendingOpen) {
|
|
2255
2451
|
this.pendingOpen = false;
|
|
@@ -2327,6 +2523,10 @@ const SallaBulletDelivery = class {
|
|
|
2327
2523
|
Salla.event.off("salla-login::closed", this.loginClosedHandler);
|
|
2328
2524
|
this.loginClosedHandler = null;
|
|
2329
2525
|
}
|
|
2526
|
+
if (this.bulletDeliveryMobileSelectHandler) {
|
|
2527
|
+
Salla.event.off("salla::bullet-delivery.select", this.bulletDeliveryMobileSelectHandler);
|
|
2528
|
+
this.bulletDeliveryMobileSelectHandler = null;
|
|
2529
|
+
}
|
|
2330
2530
|
}
|
|
2331
2531
|
};
|
|
2332
2532
|
/**
|
|
@@ -2523,18 +2723,18 @@ const SallaSearchableDropdown = class {
|
|
|
2523
2723
|
render() {
|
|
2524
2724
|
const hasSelection = this.selectedItem != null;
|
|
2525
2725
|
const listboxId = `${this.inputId}-listbox`;
|
|
2526
|
-
return (h(Host, { key: '
|
|
2726
|
+
return (h(Host, { key: '20ebf4b42f8bb595862cddb8e187a0e568a7f441', class: "s-searchable-dropdown" }, h("div", { key: '76e4f06d8e7f936d1140cb7c6e25b06297ad22f3', class: { 's-searchable-dropdown': true, 's-searchable-dropdown--open': this.isOpen } }, this.label && (h("label", { key: 'f6752361bc4c7cfa8f1a67bb34027d46e0bac1e0', class: "s-searchable-dropdown-label", htmlFor: this.inputId }, this.label, this.required && h("span", { key: 'bc255f1c31d409e8d1d7d632561158b451117e6b', class: "s-searchable-dropdown-required" }, " *"))), h("div", { key: 'e1694099e37ffb36394f1114f592ac9240442cfb', class: {
|
|
2527
2727
|
's-searchable-dropdown-trigger': true,
|
|
2528
2728
|
's-searchable-dropdown-trigger--disabled': this.disabled || this.loading,
|
|
2529
2729
|
's-searchable-dropdown-trigger--open': this.isOpen,
|
|
2530
|
-
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: '
|
|
2730
|
+
}, role: "combobox", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-controls": listboxId, "aria-disabled": this.disabled || this.loading ? 'true' : 'false', tabIndex: this.disabled || this.loading ? -1 : 0, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, hasSelection ? (h("span", { class: "s-searchable-dropdown-trigger-text" }, this.getDisplayName(this.selectedItem))) : (h("span", { class: "s-searchable-dropdown-trigger-placeholder" }, this.placeholder)), h("i", { key: 'aed25a8ad3046651d984621e2a9b8f473f8830a5', class: {
|
|
2531
2731
|
'sicon-keyboard_arrow_down': true,
|
|
2532
2732
|
's-searchable-dropdown-trigger-icon': true,
|
|
2533
2733
|
's-searchable-dropdown-trigger-icon--open': this.isOpen,
|
|
2534
|
-
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '
|
|
2734
|
+
}, "aria-hidden": "true" })), this.isOpen && (h("div", { key: '2a89c11a2e94549be786211f4284c6ae44a451d4', class: {
|
|
2535
2735
|
's-searchable-dropdown-panel': true,
|
|
2536
2736
|
's-searchable-dropdown-panel--up': this.dropUp,
|
|
2537
|
-
}, ref: (el) => (this.panelRef = el) }, h("div", { key: '
|
|
2737
|
+
}, ref: (el) => (this.panelRef = el) }, h("div", { key: '99a429ded15743eb160e353e398eadb98fbdffaf', class: "s-searchable-dropdown-search-wrap" }, h("i", { key: '58982ae6527a4ba06136bee2afc2d420b5e9ec14', class: "sicon-search s-searchable-dropdown-search-icon", "aria-hidden": "true" }), h("input", { key: '953c944186a9e2ae8f55faf9014087584cb52abf', ref: (el) => (this.searchInputRef = el), id: this.inputId, type: "text", class: "s-searchable-dropdown-search-input", placeholder: this.placeholder, value: this.clientSearch ? this.clientSearchQuery : this.searchQuery, onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchKeyDown, autocomplete: "off", "aria-autocomplete": "list", "aria-expanded": this.isOpen ? 'true' : 'false', "aria-controls": listboxId })), h("div", { key: '3fdd7d03aeec99976f505cf33a8775150fe520e3', id: listboxId, class: "s-searchable-dropdown-list s-scrollbar", role: "listbox" }, this.renderListContent()))))));
|
|
2538
2738
|
}
|
|
2539
2739
|
renderListContent() {
|
|
2540
2740
|
if (this.searching || this.loading) {
|
|
@@ -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-BvVpL-WS.js';
|
|
5
5
|
|
|
6
6
|
const sallaCartCouponsCss = "";
|
|
7
7
|
|
|
@@ -240,7 +240,7 @@ const SallaCartCoupons = class {
|
|
|
240
240
|
: `${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'))))));
|
|
241
241
|
}
|
|
242
242
|
render() {
|
|
243
|
-
return (h(Host, { key: '
|
|
243
|
+
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))))))));
|
|
244
244
|
}
|
|
245
245
|
get host() { return getElement(this); }
|
|
246
246
|
};
|
|
@@ -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-BvVpL-WS.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
import { S as SIGift } from './gift-CXRKXFgT.js';
|
|
7
7
|
import { T as TagMoneyIcon } from './tag-money-CJUR4sUM.js';
|
|
@@ -213,7 +213,7 @@ const SallaCartSummary = class {
|
|
|
213
213
|
return cartUrl;
|
|
214
214
|
}
|
|
215
215
|
render() {
|
|
216
|
-
return (h(Host, { key: '
|
|
216
|
+
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) })))));
|
|
217
217
|
}
|
|
218
218
|
get host() { return getElement(this); }
|
|
219
219
|
};
|