@salla.sa/twilight-components 2.14.426 → 2.14.428
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-510sQtuo.js → filepond-D_s3HvDq.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-z-1MNuz4.js → filepond-plugin-file-poster-C4iOlG0w.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-EWd1gmbO.js → filepond-plugin-file-validate-size-tdAA3isk.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BCBt19mU.js → filepond-plugin-file-validate-type-D9weHJX2.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-iNAVaPwf.js → filepond-plugin-image-edit-Cue4gd69.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DiM84jbH.js → filepond-plugin-image-exif-orientation-DtvYPP0B.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-sigbMp9v.js → filepond-plugin-image-preview-CCEpCBgC.js} +1 -1
- package/dist/cjs/{functions-B5bzFKvW.js → functions-DXx6pLur.js} +1 -1
- package/dist/cjs/{index-Caamiwh6.js → index-CJ1hA4la.js} +6 -6
- package/dist/cjs/{index-Lg5EBRS3.js → index-Dotxdipd.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +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.cjs.entry.js → salla-bullet-delivery_2.cjs.entry.js} +635 -140
- 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 +43 -17
- 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 +2 -2
- 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 +4 -2
- 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-DMAN9eMT.js → tracked-promise-CXsGcQwa.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-JE6Ow90L.js → vanilla-picker-BSVxRBEK.js} +1 -1
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/salla-bullet-delivery/api-service.js +80 -13
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +5 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +344 -120
- 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-delivery-promise/delivery-promise-api.js +4 -5
- package/dist/collection/components/salla-delivery-promise/salla-delivery-promise.js +40 -12
- 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-fulfillment-methods/salla-fulfillment-methods.js +1 -1
- 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-next-order-coupon/salla-next-order-coupon.js +3 -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/interfaces.js +1 -0
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +566 -0
- 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 +445 -148
- 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-delivery-promise.js +42 -16
- 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-fulfillment-methods.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-next-order-coupon.js +3 -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-dropdown.d.ts +11 -0
- package/dist/components/salla-searchable-dropdown.js +9 -0
- package/dist/components/salla-searchable-dropdown2.js +255 -0
- 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-Dsmh37s8.js → filepond-EbHhfQ2h.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D_DbNtTu.js → filepond-plugin-file-poster-NI3abP58.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-TmlZBEB7.js → filepond-plugin-file-validate-size-B6y95YaS.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CsP3KOU8.js → filepond-plugin-file-validate-type-DFmkHdVr.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CUu5Zp6h.js → filepond-plugin-image-edit-pwPBfksJ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BOQOVJ6l.js → filepond-plugin-image-exif-orientation-jJpoA9Lm.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DHbbDW9K.js → filepond-plugin-image-preview-ClEFsrPa.js} +1 -1
- package/dist/esm/{functions-DcLenERt.js → functions-CGUgaH8t.js} +1 -1
- package/dist/esm/{index-BO4PufG1.js → index-D36ugbw7.js} +6 -6
- package/dist/esm/{index-D2X1w3bP.js → index-zaYTVmuU.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +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.entry.js → salla-bullet-delivery_2.entry.js} +635 -141
- 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 +43 -17
- 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 +2 -2
- 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 +4 -2
- 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-lbX3p7Ew.js → tracked-promise-27t68d0-.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Cv5WcsNp.js → vanilla-picker-9f5m-cXz.js} +1 -1
- package/dist/twilight/{p-707cbf67.entry.js → p-00d6d5a7.entry.js} +1 -1
- package/dist/twilight/{p-0590b074.entry.js → p-06cc942b.entry.js} +1 -1
- package/dist/twilight/{p-3b116cce.entry.js → p-09428ac3.entry.js} +1 -1
- package/dist/twilight/p-09f1e7a3.entry.js +4 -0
- package/dist/twilight/{p-130f9860.entry.js → p-0e95604c.entry.js} +1 -1
- package/dist/twilight/{p-01af13c0.entry.js → p-11e4f88a.entry.js} +1 -1
- package/dist/twilight/{p-bb3be480.entry.js → p-1485beda.entry.js} +1 -1
- package/dist/twilight/{p-b18ef799.entry.js → p-18200aa4.entry.js} +1 -1
- package/dist/twilight/{p-235fe9c8.entry.js → p-19d93cc0.entry.js} +1 -1
- package/dist/twilight/{p-f99e1d01.entry.js → p-1ce63a18.entry.js} +1 -1
- package/dist/twilight/{p-dbaf2730.entry.js → p-1e06982a.entry.js} +1 -1
- package/dist/twilight/{p-e3b22019.entry.js → p-1f81ad02.entry.js} +1 -1
- package/dist/twilight/{p-e7c672a0.entry.js → p-204c0e9d.entry.js} +1 -1
- package/dist/twilight/{p-cd7fe259.entry.js → p-2286b9bd.entry.js} +1 -1
- package/dist/twilight/{p-b809a1c4.entry.js → p-2da26159.entry.js} +1 -1
- package/dist/twilight/{p-2cadcc9c.entry.js → p-2eac3905.entry.js} +1 -1
- package/dist/twilight/{p-98667c47.entry.js → p-338919cf.entry.js} +1 -1
- package/dist/twilight/{p-1ffac611.entry.js → p-38fb52dd.entry.js} +1 -1
- package/dist/twilight/{p-53fb98d5.entry.js → p-406d9fb5.entry.js} +1 -1
- package/dist/twilight/{p-7f12b845.entry.js → p-40a195c9.entry.js} +1 -1
- package/dist/twilight/p-41cd57e8.entry.js +4 -0
- package/dist/twilight/{p-bd1b9a48.entry.js → p-430c9160.entry.js} +1 -1
- package/dist/twilight/{p-a8ab7c46.entry.js → p-434aac8a.entry.js} +1 -1
- package/dist/twilight/{p-0a3e12b2.entry.js → p-4383e32a.entry.js} +1 -1
- package/dist/twilight/{p-05dc2f10.entry.js → p-45594bda.entry.js} +1 -1
- package/dist/twilight/p-49df1e46.entry.js +4 -0
- package/dist/twilight/{p-53d1424f.entry.js → p-4b7bba26.entry.js} +1 -1
- package/dist/twilight/{p-33708f2c.entry.js → p-4f7f6ada.entry.js} +1 -1
- package/dist/twilight/p-502acc91.entry.js +4 -0
- package/dist/twilight/{p-39280ec0.entry.js → p-54343a8e.entry.js} +1 -1
- package/dist/twilight/{p-a679c3b3.entry.js → p-5a6a4e59.entry.js} +1 -1
- package/dist/twilight/{p-448d8f41.entry.js → p-5bfa1bb7.entry.js} +1 -1
- package/dist/twilight/{p-6f08afa5.entry.js → p-5de03536.entry.js} +1 -1
- package/dist/twilight/{p-d9a7a0f6.entry.js → p-5dede492.entry.js} +1 -1
- package/dist/twilight/{p-cc629d48.entry.js → p-67218c7a.entry.js} +1 -1
- package/dist/twilight/{p-cf1789e5.entry.js → p-6a3e7c04.entry.js} +1 -1
- package/dist/twilight/{p-0e8d9d0f.entry.js → p-6da10576.entry.js} +1 -1
- package/dist/twilight/{p-e5bb3294.entry.js → p-6e1cdc82.entry.js} +1 -1
- package/dist/twilight/{p-BvUtr46H.js → p-7ETNA5wV.js} +1 -1
- package/dist/twilight/{p-b5663539.entry.js → p-7b663a9e.entry.js} +1 -1
- package/dist/twilight/p-7c620aae.entry.js +4 -0
- package/dist/twilight/p-7ef82df0.entry.js +4 -0
- package/dist/twilight/{p-c01fad3c.entry.js → p-7f19448e.entry.js} +1 -1
- package/dist/twilight/p-845c79a1.entry.js +4 -0
- package/dist/twilight/{p-a4e30480.entry.js → p-88c5737c.entry.js} +1 -1
- package/dist/twilight/{p-c04393ca.entry.js → p-895d6644.entry.js} +1 -1
- package/dist/twilight/{p-3582127a.entry.js → p-897d98b8.entry.js} +1 -1
- package/dist/twilight/{p-6e296143.entry.js → p-8fd38f8d.entry.js} +1 -1
- package/dist/twilight/{p-14903d46.entry.js → p-92d2ddb2.entry.js} +1 -1
- package/dist/twilight/{p-8ef579f8.entry.js → p-946b77c0.entry.js} +1 -1
- package/dist/twilight/{p-c1317994.entry.js → p-96292e66.entry.js} +1 -1
- package/dist/twilight/{p-890c1a92.entry.js → p-9a404557.entry.js} +1 -1
- package/dist/twilight/{p-80804925.entry.js → p-9a5f0f9d.entry.js} +1 -1
- package/dist/twilight/{p-46971762.entry.js → p-9a860c81.entry.js} +1 -1
- package/dist/twilight/{p-c37b818b.entry.js → p-9cc9e423.entry.js} +1 -1
- package/dist/twilight/{p-DDuo_I0r.js → p-BB7A2YQb.js} +1 -1
- package/dist/twilight/{p-D2dA64xR.js → p-BQPueUNn.js} +1 -1
- package/dist/twilight/{p-DjuY9Jnz.js → p-Bt0u20rl.js} +1 -1
- package/dist/twilight/{p-B86BGqoz.js → p-CFB0tgem.js} +1 -1
- package/dist/twilight/{p-LERSCyEP.js → p-CgXDyb0S.js} +1 -1
- package/dist/twilight/{p-BO4PufG1.js → p-D36ugbw7.js} +1 -1
- package/dist/twilight/{p-qKfSvDcI.js → p-DB4vHa_X.js} +1 -1
- package/dist/twilight/{p-2wfOtzjM.js → p-DLc4JI_x.js} +1 -1
- package/dist/twilight/{p-BspFf4Kn.js → p-DTXdHzRd.js} +1 -1
- package/dist/twilight/{p-ff880134.entry.js → p-a5d068e0.entry.js} +1 -1
- package/dist/twilight/{p-918ff81e.entry.js → p-a61cb79d.entry.js} +1 -1
- package/dist/twilight/p-a7c808b6.entry.js +4 -0
- package/dist/twilight/{p-d78e892c.entry.js → p-a9b9d4db.entry.js} +1 -1
- package/dist/twilight/p-abe816ab.entry.js +4 -0
- package/dist/twilight/{p-b7a8d181.entry.js → p-acc58cef.entry.js} +1 -1
- package/dist/twilight/{p-f793dbbd.entry.js → p-ad77def2.entry.js} +1 -1
- package/dist/twilight/{p-4ea85ab2.entry.js → p-aeaefc51.entry.js} +1 -1
- package/dist/twilight/{p-4d13a6df.entry.js → p-b0d6e0dd.entry.js} +1 -1
- package/dist/twilight/{p-39373cca.entry.js → p-b582862d.entry.js} +1 -1
- package/dist/twilight/{p-fb227bbc.entry.js → p-b7e1dedf.entry.js} +1 -1
- package/dist/twilight/p-b852909a.entry.js +4 -0
- package/dist/twilight/{p-41d1f2e9.entry.js → p-bf91ba77.entry.js} +1 -1
- package/dist/twilight/{p-3c8180cd.entry.js → p-d4fd8316.entry.js} +1 -1
- package/dist/twilight/{p-03c6a8bb.entry.js → p-d7b03f6f.entry.js} +1 -1
- package/dist/twilight/{p-50062444.entry.js → p-d8fdf8ab.entry.js} +1 -1
- package/dist/twilight/{p-870f473c.entry.js → p-dfaa2d2f.entry.js} +1 -1
- package/dist/twilight/{p-0e185c70.entry.js → p-e416b6e5.entry.js} +1 -1
- package/dist/twilight/{p-227164b2.entry.js → p-e51d3f9d.entry.js} +1 -1
- package/dist/twilight/{p-a7350994.entry.js → p-e5605bd2.entry.js} +1 -1
- package/dist/twilight/{p-bd318fd3.entry.js → p-e5695c64.entry.js} +1 -1
- package/dist/twilight/{p-ab401a6c.entry.js → p-e73ab17f.entry.js} +1 -1
- package/dist/twilight/p-e78c99c3.entry.js +4 -0
- package/dist/twilight/{p-86fb7a69.entry.js → p-eca295a4.entry.js} +1 -1
- package/dist/twilight/{p-abce7f63.entry.js → p-edbd5f07.entry.js} +1 -1
- package/dist/twilight/{p-a5d5b2d7.entry.js → p-f6058fee.entry.js} +1 -1
- package/dist/twilight/{p-315a4d3b.entry.js → p-f74ac87f.entry.js} +1 -1
- package/dist/twilight/{p-19251e7b.entry.js → p-f97d12f4.entry.js} +1 -1
- package/dist/twilight/{p-0b0b6963.entry.js → p-fd75e7df.entry.js} +1 -1
- package/dist/twilight/{p-BNErtjcV.js → p-mGTS4AOS.js} +1 -1
- package/dist/twilight/{p-jl56eEwg.js → p-puXyXCsy.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/api-service.d.ts +6 -5
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +38 -6
- package/dist/types/components/salla-delivery-promise/delivery-promise-api.d.ts +1 -1
- package/dist/types/components/salla-delivery-promise/salla-delivery-promise.d.ts +2 -0
- package/dist/types/components/salla-searchable-dropdown/interfaces.d.ts +5 -0
- package/dist/types/components/salla-searchable-dropdown/salla-searchable-dropdown.d.ts +47 -0
- package/dist/types/components.d.ts +135 -0
- package/package.json +5 -5
- package/dist/twilight/p-06a2c350.entry.js +0 -4
- package/dist/twilight/p-3823e4e9.entry.js +0 -4
- package/dist/twilight/p-40156b58.entry.js +0 -4
- package/dist/twilight/p-572ef0b9.entry.js +0 -4
- package/dist/twilight/p-7f6f712b.entry.js +0 -4
- package/dist/twilight/p-8a8ebb7a.entry.js +0 -4
- package/dist/twilight/p-93b869f8.entry.js +0 -4
- package/dist/twilight/p-b7146f11.entry.js +0 -4
- package/dist/twilight/p-cb254a12.entry.js +0 -4
- package/dist/twilight/p-e6b3b54f.entry.js +0 -4
- package/dist/twilight/p-feb4e5ed.entry.js +0 -4
|
@@ -180,10 +180,10 @@ const SallaMultipleBundleProductDetails = /*@__PURE__*/ proxyCustomElement(class
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
render() {
|
|
183
|
-
return (h(Host, { key: '
|
|
183
|
+
return (h(Host, { key: 'f57d665b22f1f00084c5e3bde13b24d3ad0f52f2', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'cce35357b6aad61af2e4edfe86eca1689166c364', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
|
|
184
184
|
const selectedCount = this.selectedProducts[section.id]?.size || 0;
|
|
185
185
|
return (h("salla-accordion", { key: section.id, collapsed: index === 0 ? false : true }, h("salla-accordion-head", null, this.renderAccordionHeader(section, selectedCount)), h("salla-accordion-body", null, h("salla-multiple-bundle-product-slider", { section: section, sectionIndex: index, selectedProducts: this.selectedProducts, onProductSelected: this.handleBundleSliderProductSelected, onProductOptionsSelected: this.handleBundleSliderProductOptionsSelected }))));
|
|
186
|
-
})), h("salla-multiple-bundle-product-options-modal", { key: '
|
|
186
|
+
})), h("salla-multiple-bundle-product-options-modal", { key: 'd42516e4810f1171bec619dd54d1d262bfb587a9' })));
|
|
187
187
|
}
|
|
188
188
|
get host() { return this; }
|
|
189
189
|
static get style() { return sallaMultipleBundleProductDetailsCss; }
|
|
@@ -479,7 +479,7 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
|
|
|
479
479
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
480
480
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
481
481
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
482
|
-
return (h(Host, { key: '
|
|
482
|
+
return (h(Host, { key: '7bb2c2a13109b52d46d49cd0450e5037a46751c0' }, h("salla-modal", { key: '7224fbc8a18d6b1ec40a87eb344b4ea10287e462', isLoading: this.isLoading, ref: el => (this.modal = el), width: "md", centered: false, id: `s-multiple-bundle-product-options-modal-options-${productId}`, class: "s-multiple-bundle-product-options-modal-wrapper" }, h("div", { key: 'b1b2f4b5b6b34abcb1b429da5b09ff24850571fd', slot: "loading" }, h("salla-skeleton", { key: 'd5ddae032b4604137442fc51b9c90c40fe049479', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: 'db94a52ca0783eba22ee1ece0c6dbdaef381b849', id: `details-slider-${this.product?.id}`, type: "thumbs", loop: false, "auto-height": true, "listen-to-thumbnails-option": true, showThumbsControls: false, controlsOuter: false, showControls: false, class: "s-multiple-bundle-product-options-modal-slider", verticalThumbs: true, thumbsConfig: {
|
|
483
483
|
centeredSlides: true,
|
|
484
484
|
centeredSlidesBounds: true,
|
|
485
485
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -487,13 +487,13 @@ const SallaMultipleBundleProductOptionsModal = /*@__PURE__*/ proxyCustomElement(
|
|
|
487
487
|
watchSlidesProgress: true,
|
|
488
488
|
direction: 'vertical',
|
|
489
489
|
spaceBetween: 10,
|
|
490
|
-
} }, h("div", { key: '
|
|
490
|
+
} }, h("div", { key: 'f3d056834aaca6cdb31296260d6c76f1f781f7d8', slot: "items" }, this.product?.images &&
|
|
491
491
|
this.product?.images.map((image, index) => (h("div", { key: index, class: "swiper-slide" }, h("img", { src: image.url, alt: image.alt || `${this.product?.name} - Image ${index + 1}`, loading: "lazy", onError: e => {
|
|
492
492
|
e.target.style.display = 'none';
|
|
493
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '
|
|
493
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '415f80485f8b6415a25f68fa18baf9c63a990dce', slot: "thumbs" }, this.product?.images &&
|
|
494
494
|
this.product?.images.map((image, index) => (h("div", { key: index, "data-caption": `${this.product?.name} - Image ${index + 1}` }, h("img", { src: image.url, loading: "eager", class: "s-multiple-bundle-product-options-modal-slider-thumb", title: `${this.product?.name} - ${index + 1}`, alt: image.alt || `${this.product?.name} - ${index + 1}`, onError: e => {
|
|
495
495
|
e.target.style.display = 'none';
|
|
496
|
-
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '
|
|
496
|
+
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '7cd02c5f40808486464aeb6dca86555faf39d229', slot: "footer" }, h("div", { key: '7e88632bda6ce90f1fa8ec053d70ae9994fbab46', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: 'ae20228355b7b5e56cec159c8c749fb94305e3c7', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
497
497
|
? salla.lang.get('common.elements.saving')
|
|
498
498
|
: salla.lang.get('common.elements.save')))))));
|
|
499
499
|
}
|
|
@@ -94,7 +94,7 @@ const SallaMultipleBundleProductSlider = /*@__PURE__*/ proxyCustomElement(class
|
|
|
94
94
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '712a8da32e2ca798d236865bc60a0fd1b28939dc' }, h("salla-slider", { key: '00850678cf9395656b386e972ceb5489a2deeaa7', type: "carousel", controlsOuter: false, showControls: false, id: `accordion-multiple-bundle-product-${this.section.id}`, pagination: true, class: "s-multiple-bundle-product-wrapper-slider", sliderConfig: { spaceBetween: 0 } }, h("div", { key: '7c0a028498ba0895d28eaf3ec7fa9cbaa619201b', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
98
98
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
99
99
|
const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
|
|
100
100
|
const optionsButtonLabel = hasSavedOptions
|
|
@@ -77,7 +77,7 @@ const SallaMultipleBundleProduct$1 = /*@__PURE__*/ proxyCustomElement(class Sall
|
|
|
77
77
|
this.parseProducts(this.bundleSections);
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'c00ea91007af5489ca61df0aaed8b82bc8ee7f25', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
81
81
|
}
|
|
82
82
|
static get watchers() { return {
|
|
83
83
|
"bundleSections": ["parseProducts"]
|
|
@@ -47,7 +47,7 @@ const SallaNextOrderCoupon$1 = /*@__PURE__*/ proxyCustomElement(class SallaNextO
|
|
|
47
47
|
}
|
|
48
48
|
async loadCoupon() {
|
|
49
49
|
try {
|
|
50
|
-
const response = await salla.api.request('coupons', { type: 'thankyou' });
|
|
50
|
+
const response = await salla.api.request('coupons', { params: { type: 'thankyou' } });
|
|
51
51
|
const raw = response?.data;
|
|
52
52
|
const list = Array.isArray(raw) ? raw : (Array.isArray(raw?.data) ? raw.data : []);
|
|
53
53
|
this.coupon = list[0] ?? null;
|
|
@@ -91,6 +91,8 @@ const SallaNextOrderCoupon$1 = /*@__PURE__*/ proxyCustomElement(class SallaNextO
|
|
|
91
91
|
const min = this.coupon?.minimum_amount;
|
|
92
92
|
if (!min)
|
|
93
93
|
return '';
|
|
94
|
+
if (typeof min === 'object' && !min.amount)
|
|
95
|
+
return '';
|
|
94
96
|
if (typeof min === 'string') {
|
|
95
97
|
return min.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
96
98
|
}
|
|
@@ -11,7 +11,7 @@ const SallaNotificationItem = /*@__PURE__*/ proxyCustomElement(class SallaNotifi
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return h("a", { key: '
|
|
14
|
+
return h("a", { key: 'd52b567c5b43624eee4518d052e3ff6f1ad88e0a', href: this.notification.url, class: { "s-notifications-item": true, "s-notifications-item-shadow": true, "s-notifications-item-read": !this.notification.is_new } }, h("span", { key: '7b45d747028ef42e3ee92efeda005adc47041a80', class: "s-notifications-item-icon" }, h("i", { key: 'eb8e6ff7525ce07ae12cd47b616190a9ec37ad6d', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: '96bee20ea38bb5f9044d79c0679a2fa92f61e5ad', class: "s-notifications-item-content" }, h("div", { key: '57d5e4f749dae2de779136edbed1d7474dea6040', class: "s-notifications-item-content-leading" }, h("h4", { key: '4488b5ec0fd426981b5b1b61bd2c379f43d7b8f2' }, this.notification.title), h("p", { key: '036e4702f94e63fb73dfd21a142a4eb2ce69dc99' }, this.notification.sub_title)), h("span", { key: '10eb8fd110b018d17dffb7b55668d1d904db47c2', class: "s-notifications-item-content-trailing" }, h("i", { key: '9ab96c0ac785b1067f01a600bb9171f1712ce5b0', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: '59ebbede04601ecc948246b2df743bf5ceddd01a' }, this.notification.date))));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return sallaNotificationsCss; }
|
|
17
17
|
}, [0, "salla-notification-item", {
|
|
@@ -219,7 +219,7 @@ const SallaOfferModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaOfferModal
|
|
|
219
219
|
// '</div>';
|
|
220
220
|
// }
|
|
221
221
|
render() {
|
|
222
|
-
return h("salla-modal", { key: '
|
|
222
|
+
return h("salla-modal", { key: 'e639f8a5d0fef7c0eb14d55bf9e5513cc095df8f', "has-skeleton": true, "sub-title": this.offer_message, ref: modal => this.modal = modal, isLoading: true, class: `s-offer-modal-type-${this.offer_type ? this.offer_type : ''}` }, h("div", { key: '63f0db4539fbbc83e2905fd5c77ec172c1f64402', slot: 'loading' }, h("div", { key: 'de7c1c7e1713ef68472bf7c3a78c4288e4a07317', class: "s-offer-modal-skeleton" }, h("div", { key: '27cea11e4fc487f7da79e9a3e90abdba69267e9c', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '88e9a47efc8f17c86dd6c009b663bf4be1d2ac92', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '774b922bf7552fc1083205146ee378aa0ae32559', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'cb6ea051c9cd1a0a1e1eece3665fdc12278f6f0e', height: '10px', width: '30%' })), h("div", { key: 'c5e629c839e9b21627bfe87e5c7f58bf75b691e9', class: "s-offer-modal-skeleton-items" }, [...Array(3)].map(() => h("div", { class: "s-offer-modal-skeleton-item" }, h("salla-skeleton", { height: '9rem' }), h("div", { class: "s-offer-modal-skeleton-item-title" }, h("salla-skeleton", { height: '15px', width: '100%' })), h("div", { class: "s-offer-modal-skeleton-item-subtitle" }, h("salla-skeleton", { height: '9px', width: '50%' }), h("div", { innerHTML: Cart2 }))))), h("div", { key: '69a86cd1b05701e41e7d7e48108ddc0b264a8a09', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '036519a0588bcd58aca67b9a27e73b107147ccca', height: '15px', width: '50%' }), h("salla-skeleton", { key: 'bcd609109edeedb0d178cb6663d6b4827f9eb7e5', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
223
223
|
? [h("span", { slot: 'icon', class: "s-offer-modal-header-icon", innerHTML: SpecialDiscountIcon }), this.getOfferContent(), h("div", { class: "s-offer-modal-footer", slot: "footer" }, this.offer.formatted_date ?
|
|
224
224
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
225
225
|
: '', h("label", { class: "s-offer-modal-remember-label" }, h("input", { type: "checkbox", onChange: e => this.rememberMe(e), class: "s-offer-modal-remember-input" }), "\u00A0 ", salla.lang.get('common.elements.remember_my_choice'))),
|
|
@@ -47,7 +47,7 @@ const SallaOrderDetails$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderDet
|
|
|
47
47
|
];
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return h(Host, { key: '
|
|
50
|
+
return h(Host, { key: 'a4184a10e1d5ada3bf87651325d2c4ca59bcaad6', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
51
51
|
}
|
|
52
52
|
static get watchers() { return {
|
|
53
53
|
"orderDetails": ["parseOrderDetailsData"]
|
|
@@ -32,7 +32,7 @@ const SallaOrderEditProductCard$1 = /*@__PURE__*/ proxyCustomElement(class Salla
|
|
|
32
32
|
const product = this.productData;
|
|
33
33
|
const productName = product?.name || salla.lang.getWithDefault('common.elements.product', 'منتج');
|
|
34
34
|
const price = product?.price;
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '60df0a73e8e4186d482d3be7f718cff1bf1e47d2' }, h("button", { key: 'cfc5d7a131dc05f455d998b64c435a3b67e98769', type: "button", class: "s-order-edit-product-card", onClick: () => this.handleSelectProduct() }, h("div", { key: '406aece0b44f0a06710034639a743319452c20b9', class: "s-order-edit-product-card-media" }, product?.image?.url ? (h("img", { src: product.image.url, alt: product.image.alt || productName, class: "s-order-edit-product-card-image" })) : (h("div", { class: "s-order-edit-product-card-placeholder" }, h("i", { class: "sicon-shopping-bag" })))), h("div", { key: 'fece09fb1521d1520e093354f47b9bd9c3d14550', class: "s-order-edit-product-card-content" }, h("h3", { key: '5dcd00e37feb23b6efcd39473e43ef934c27154c', class: "s-order-edit-product-card-title" }, productName), price != null && (h("p", { key: '42feb2c536e6995dcfc5b907ea6820fb669c59cb', class: "s-order-edit-product-card-price", innerHTML: salla.money(price) }))))));
|
|
36
36
|
}
|
|
37
37
|
static get style() { return sallaOrderEditProductCardCss; }
|
|
38
38
|
}, [0, "salla-order-edit-product-card", {
|
|
@@ -87,7 +87,7 @@ const SallaOrderSummary$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderSum
|
|
|
87
87
|
this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h("ul", { key: '
|
|
90
|
+
return (h("ul", { key: '34e8e7196f3e8f3a8fa45f2758f810326c7c6bc7', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
|
|
91
91
|
this.order_items.map((item) => (this.isDigitalCard(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.codes_text, " (", item.name, ")"), item.codes.map((code) => (h("div", { key: code.code, class: "s-order-summary-code-item-wrapper" }, h("p", null, h("span", { innerHTML: iconCreditCard }), h("span", null, code.code)), h("salla-button", { class: `s-order-summary-item-copy-button ${this.codeCopied === code.code ? 'copied' : ''}`, onClick: () => this.copyToClipboardHandler(code.code), shape: "link" }, h("span", { innerHTML: this.codeCopied === code.code ? IconVerified : iconCopy }), h("span", null, this.copy_text))))))) :
|
|
92
92
|
this.isDigitalProduct(item) ? (h("li", { key: item.product.id, class: "s-order-summary-item" }, h("h2", { class: "s-order-summary-item-title" }, this.files_text, " (", item.name, ")"), h("ul", null, item.files.map((file) => (h("li", { class: "s-order-summary-digital-item-wrapper" }, h("div", null, h("span", { innerHTML: iconFileArchive }), h("span", null, file.name)), h("a", { href: file.url, target: "_blank", class: "s-order-summary-item-download" }, h("span", { innerHTML: iconDownload }), h("span", null, this.download_text)))))))) : null))));
|
|
93
93
|
}
|
|
@@ -35,12 +35,12 @@ const SallaPayments$1 = /*@__PURE__*/ proxyCustomElement(class SallaPayments ext
|
|
|
35
35
|
render() {
|
|
36
36
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
37
37
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '89a4100b0a96ac9da69d1ceeafb57aacfd065923', class: "s-payments-list-wrap" }, h("ul", { key: 'dbbd6ea7050ce8e35f49000c09f2e927b23986f1', class: "s-payments-list" }, madeInKSA && h("li", { key: '28a785784b7b2bbd4edeaa9c2a1ffdbb21fa8baa', class: "s-payments-list-item" }, h("img", { key: 'b2a2c0eda5ce76e0bdff63f329912a7bdcaf304c', width: "100%", height: "100%", decoding: "async", loading: "lazy", src: salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.map((payment) => (payment == "cod" ?
|
|
39
39
|
h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
40
40
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/cod_mini.png`, 58, 58)) }) :
|
|
41
41
|
h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
42
42
|
.replace(/\{image\}/g, salla.url.cdn(`images/payment/${payment}_mini.png`, 58, 58))
|
|
43
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '
|
|
43
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '5fbda85b2a5056751f0560e1299eedc2aa4dbcb8', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
44
44
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
45
45
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
46
46
|
}
|
|
@@ -42,7 +42,7 @@ const SallaPlaceholder = /*@__PURE__*/ proxyCustomElement(class SallaPlaceholder
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'c3b5fc484ce954bdbd3f7f42e8cb2320bcdf7eee', class: this.alignmentClass() }, h("div", { key: '8c9f89515a3f33f3904e0bd244527ab5638a6481', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '446700f7b323ca5d786a276aece557629d415d73', class: "s-placeholder-title" }, h("slot", { key: '0a857e65b6048e6d765b86c37953a54e47ae450d', name: 'title' }, h("span", { key: 'a9b1ab5b3ec757e4acca3dc85df8e3b185f0b33e' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '8215c957d6e7450b2d2c3901c76b6ccf7352bebe', class: "s-placeholder-description" }, h("slot", { key: '747c43255cff93f3fcc5d75c620a03d05801cec8', name: 'description' }, h("span", { key: '0bf8926e73635ad868fef5c8436f98e529fe0ced' }, salla.lang.get('common.errors.empty_results'))))));
|
|
46
46
|
}
|
|
47
47
|
static get style() { return sallaPlaceholderCss; }
|
|
48
48
|
}, [4, "salla-placeholder", {
|
|
@@ -159,9 +159,9 @@ const SallaPriceRange = /*@__PURE__*/ proxyCustomElement(class SallaPriceRange e
|
|
|
159
159
|
this.maxPrice = value === undefined ? '' : value;
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: '6e1e078c6ae3bfd0390af00860efdca13ffa1c36' }, this.filterValues.map((filterValue, index) => {
|
|
163
163
|
return h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index}`, key: index }, h("input", { id: `${this.option.key}-${index}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), h("span", { innerHTML: this.getPriceLabel(filterValue) }));
|
|
164
|
-
}), h("div", { key: '
|
|
164
|
+
}), h("div", { key: 'fa29180eb1559cf7b932021153dc4f1f93145852', class: "flex justify-center items-center" }, h("div", { key: '6241337067ab3702dae7fff90885b9d781c42525', class: "relative max-w-xl w-full" }, h("div", { key: 'b06b65c4712ad5a272fe3f3627b4b023a02f3e26', class: "s-price-range-inputs" }, h("div", { key: '4ac684662bf00e0155387b453e6ab900a1abeec9', class: "s-price-range-relative" }, h("div", { key: 'ebdf3cacf37d1d6024f3dc7bca534c90edfcb511', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '077fcabf67bd093cd97e4065c5ac62d9697fc227', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: '392151d5eb9624fe012b2e89c2c6368d982bb100', class: "s-price-range-gray-text" }, " -"), h("div", { key: 'cbd9df93ae9830846aab3fa72995511268f2162f', class: "s-price-range-relative" }, h("div", { key: '25e2d1b87c353d938863f52b793ba369436b2051', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'afedd6163164a0d46a879009a9cd0d4100c0aae3', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: '185be981f71138631238a5dcad581cd07c6769a2', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '25d5c88a886933736e2d80b4d755d3c0c517b7f5', innerHTML: this.isRTL ? IconArrowLeft : arrowRight })))))));
|
|
165
165
|
}
|
|
166
166
|
componentDidLoad() {
|
|
167
167
|
this.isReady = true;
|
|
@@ -140,7 +140,7 @@ const SallaProductAvailability = /*@__PURE__*/ proxyCustomElement(class SallaPro
|
|
|
140
140
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
141
141
|
}
|
|
142
142
|
render() {
|
|
143
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: '08fc419b019727d8c872584c600fa5c6b381caa0', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
144
144
|
? 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'))
|
|
145
145
|
:
|
|
146
146
|
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()));
|
|
@@ -122,14 +122,14 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
122
122
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
123
123
|
};
|
|
124
124
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
125
|
-
return (h(Host, { key: '
|
|
125
|
+
return (h(Host, { key: '73ea053e1ad55a72cafe36405297bf3c1328604a', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: '010a3aec389bce2faecfa6527c64da1d39832cf3', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '1c716d26852c624b038ce7f22119274aaf6b1367', ...hrefProp }, h("img", { key: '2195caa03c5b5a66a5c0538d4fd310678991faff', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
126
126
|
? 'contain'
|
|
127
127
|
: this.fitImageHeight
|
|
128
128
|
? this.fitImageHeight
|
|
129
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '
|
|
130
|
-
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '
|
|
129
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '9fbf6d697c2f0d1d3a21fa33d1074784597c9c3e', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
130
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '74ee57ae671a5962a14dbbca31ba8ab28e0933cc', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
131
131
|
h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
132
|
-
: '', h("div", { key: '
|
|
132
|
+
: '', h("div", { key: '01b63d8229a415a50d5c527c6f3b76eb2155ba24', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: 'ea40bb9f7e35bd7517df12ab552c5e576611aca6', class: "s-product-card-content-title" }, h("a", { key: 'f7c9f14a2101629dcc129c55cab2942cba388f84', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
133
133
|
h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
134
134
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
135
135
|
[h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -138,7 +138,7 @@ const SallaProductCard = /*@__PURE__*/ proxyCustomElement(class SallaProductCard
|
|
|
138
138
|
this.addBtn.donatingAmount = e.target.value;
|
|
139
139
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
140
140
|
: '')]
|
|
141
|
-
: '', h("div", { key: '
|
|
141
|
+
: '', h("div", { key: 'bbaa41840b4bce96bab0b1dd1ddabcbace89dfd7', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
142
142
|
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Rate }), h("span", null, this.productData.rating.stars))
|
|
143
143
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
144
144
|
? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -59,11 +59,11 @@ const SallaProductSizeGuide$1 = /*@__PURE__*/ proxyCustomElement(class SallaProd
|
|
|
59
59
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h("salla-modal", { key: '
|
|
62
|
+
return (h("salla-modal", { key: 'b1bae59f3066898c4496e9e7946a413aadb65ca1', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: 'b25671d144823c18287460e4084d787de60ea6fc', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '4a9d9d03491a68fa59d88136469d4b7fdef58844', slot: "loading" }, h("div", { key: '1c61c0a1f9d97ffe07caa4155ce6166b329462be', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: '6bf1218232a710311299c4e6a8f5f48319775942', height: '15px', width: '25%' }), h("div", { key: '4331fe3d76d537a9f80edb0d54eba36b3989dfdc', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: 'd81e4ec5a2909a5fb0dd5d61d5d433448a40f286', height: '40px' }), h("salla-skeleton", { key: 'e44dbf44e2a9e3ebfec58ce7463bfefc8f0a9f00', height: '40px' }), h("salla-skeleton", { key: '76b73e407d4c845351a57752d6a1d62db1cb84ec', height: '40px' }), h("salla-skeleton", { key: 'b84a16e5f29530ef7771a9cd3de02e2c4e819041', height: '40px' })), h("div", { key: '0c2d143bd6239d6da10462b202585a708960fad3', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: 'daaffa11c88e83e22ddd6d971cb27da138e6a528', height: '15px', width: '25%' }), h("salla-skeleton", { key: '45024e1210e6b6cc4b76556bad7fe0b95c59eae2', height: '10px', width: '75%' }), h("salla-skeleton", { key: 'c168e4624518f8f4b889e0e09d09a5f703a9f6e0', height: '10px', width: '50%' }), h("salla-skeleton", { key: '9cf54bba39f265099301bc871380d75ff01bb195', height: '10px', width: '75%' }), h("salla-skeleton", { key: '5e4b06df0db206ae5b9a94d7e8532af4c48fb903', height: '10px', width: '100%' }), h("salla-skeleton", { key: '3d946274064242db1f2911d315d28dbc355e31cd', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'd163510a54cb8230ea5e3d384781d2a0c70f74ca', height: '10px', width: '60%' }), h("salla-skeleton", { key: 'ff0147a16398f0910cd6641a2bc1433ca43abdd6', height: '10px', width: '45%' }), h("salla-skeleton", { key: 'f038bf93b41bb25f24761bfb0a8bc148d675ab5d', height: '10px', width: '30%' })))), h("slot", { key: '15ae01a63f16c58a28ee8e7871f77b4d5eb5c1c6', name: "header" }), !this.hasError && !!this.guides ?
|
|
63
63
|
[
|
|
64
64
|
h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
|
|
65
65
|
]
|
|
66
|
-
: this.showPlaceholder(), h("slot", { key: '
|
|
66
|
+
: this.showPlaceholder(), h("slot", { key: '6c197dec0e2f7a38a07cee693b85a5cda72017f4', name: "footer" })));
|
|
67
67
|
}
|
|
68
68
|
get host() { return this; }
|
|
69
69
|
static get style() { return sallaProductSizeGuideCss; }
|
|
@@ -95,7 +95,7 @@ const SallaQuantityInput = /*@__PURE__*/ proxyCustomElement(class SallaQuantityI
|
|
|
95
95
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
96
96
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
97
97
|
}
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '4fd5045f734eaa275859b5a9451c802492ff91f7', class: "s-quantity-input" }, h("div", { key: '98359a24f9b0ce4954b9035f45a4e84122738ce2', class: "s-quantity-input-container" }, h("button", { key: 'f31f471333ad6044f282c054dd60ac35d91fe9c8', onClick: () => this.increase(), class: "s-quantity-input-increase-button s-quantity-input-button", type: "button", "aria-label": salla.lang.getWithDefault('common.elements.increase_quantity', 'Increase quantity') }, !this.hasIncrementSlot ? h("span", { innerHTML: Add }) : '', h("slot", { key: 'c99cb35847195909090b7a60eee4a9476a374e47', name: "increment-button" })), h("input", { key: '72ecc1afab0f51d8b3632a467b2530d33c5b6ef2', 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: 'b784a8acbdfc25f8871fb975db7b04b299cca607', class: "s-quantity-input-decrease-button s-quantity-input-button", onClick: () => this.decrease(), type: "button", "aria-label": salla.lang.getWithDefault('common.elements.decrease_quantity', 'Decrease quantity') }, !this.hasDecrementSlot ? h("span", { innerHTML: Minus }) : '', h("slot", { key: '80577c584d2c32caee1da3e412fb5bd556c998fa', name: "decrement-button" })))));
|
|
99
99
|
}
|
|
100
100
|
get host() { return this; }
|
|
101
101
|
static get watchers() { return {
|
|
@@ -1141,7 +1141,7 @@ const SallaQuickBuy = /*@__PURE__*/ proxyCustomElement(class SallaQuickBuy exten
|
|
|
1141
1141
|
});
|
|
1142
1142
|
}
|
|
1143
1143
|
render() {
|
|
1144
|
-
return h(Host, { key: '
|
|
1144
|
+
return h(Host, { key: '6ca33eda9e2ae5aac14ff473536242de1214f05b' }, this.quickBuyButton());
|
|
1145
1145
|
}
|
|
1146
1146
|
quickBuyButton() {
|
|
1147
1147
|
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 });
|
|
@@ -172,7 +172,7 @@ const SallaReviewCard = /*@__PURE__*/ proxyCustomElement(class SallaReviewCard e
|
|
|
172
172
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return h("div", { key: '
|
|
175
|
+
return h("div", { key: '876ac50d109430dc6d805d5e59f4dc75966212b0', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: '6011b45689e41365d70ff59aa2b58db6069ffe6f', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: 'c5f96d3d0161fadbc065018e4fddcdab5ce93699', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
176
176
|
}
|
|
177
177
|
get el() { return this; }
|
|
178
178
|
static get style() { return sallaReviewCardCss; }
|
|
@@ -685,7 +685,7 @@ const SallaReviewsPage$1 = /*@__PURE__*/ proxyCustomElement(class SallaReviewsPa
|
|
|
685
685
|
return options.map(option => (h("option", { key: option.value, value: option.value, selected: option.value === this.sort }, option.label)));
|
|
686
686
|
}
|
|
687
687
|
render() {
|
|
688
|
-
return (h("host", { key: '
|
|
688
|
+
return (h("host", { key: '3a03eb5fd12b0c12f7ce3507d42613e1ef6323f4' }, h("div", { key: '0caef3d980e06b62be4c80a1405d62c0ddbfccca', class: "s-reviews-page-header-wrapper" }, h("h2", { key: '5da663934595fc9978ec36e54de482ab96da33ae', class: "s-reviews-page-title" }, this.langTitlesReviews, h("span", { key: 'baa8507e9f4fc708f4c404cc75a6bb144ae804a4', class: "s-reviews-page-count" }, "(", this.langRatingReviews, ")")), h("div", { key: '45d5864de04db086c45a2f142f23bb8babcadf45', class: "s-reviews-page-filter-wrapper" }, h("label", { key: '2a06fa540c6dcf102c7aaabd5077b6c077a9cac9', class: "s-reviews-page-filter-label", htmlFor: "testimonials-filter" }, this.langSorting), h("select", { key: 'ec92ba4a38470de0c60a45d74252ec729de47971', onChange: (e) => this.handleSorting(e), disabled: !this.reviews.length, class: "s-reviews-page-filter" }, this.renderSortingOptions()))), this.reviews.length ? h("main", { class: "s-reviews-page-grid", ref: el => {
|
|
689
689
|
this.wrapper = el;
|
|
690
690
|
} }, this.reviews.map(review => (h("salla-review-card", { key: review.id, review: review }))))
|
|
691
691
|
: h("div", { class: "s-products-list-placeholder" }, h("span", { innerHTML: ShoppingBag }), h("p", null, this.placeholderText)), this.pagination?.links?.next && this.reviews.length ? (h("div", { class: "s-reviews-page-load-more-container" }, h("salla-button", { class: "s-reviews-page-load-more-btn", loading: this.isLoading, onClick: () => this.infiniteScroll?.loadNextPage(), onKeyUp: () => this.infiniteScroll?.loadNextPage() }, this.langLoadMore))) : null));
|
|
@@ -98,7 +98,7 @@ const SallaReviews$1 = /*@__PURE__*/ proxyCustomElement(class SallaReviews exten
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h("div", { key: '
|
|
101
|
+
return (h("div", { key: '65b40e3af4bd3a12634c2098ca87096c96c6454a', class: "s-reviews-container" }, h("div", { key: '82ba3e23d074dbd13647bc7684441b9a99806efc', class: "s-reviews-header-wrapper" }, h("h1", { key: '2e83ff3be8bc71f1944da3e6d850cd88c865196f', class: "s-reviews-header" }, this.testimonialText), !!this.displayAllLink ? (h("a", { href: this.displayAllURL, class: "s-reviews-display-all" }, this.displayAllLinkText, h("span", { class: "s-reviews-display-all-icon", innerHTML: IconArrowLeft }))) : null), h("salla-slider", { key: '2d8e68fc6991f2df85b691f71c506dc375b2746f', centered: true, "slides-per-view": 1, type: "testimonials", class: "s-reviews-testimonials-slider", "controls-outer": true, "auto-play": true, id: `testimonials-${this.source}-slider` }, h("div", { key: 'd5429d64b8cbd077edad73613ef663b39552677b', slot: "items" }, this.reviews.map((item, index) => (h("div", { key: index, class: "s-reviews-swiper-slide" }, h("div", { class: "s-reviews-testimonial" }, h("div", { class: "s-reviews-testimonial__inner" }, h("div", { class: "s-reviews-testimonial__avatar" }, h("img", { src: 'images/s-empty.png', "data-src": item.avatar, alt: item.name ? item.name : 'testimonial-' + index, class: "lazy" })), h("div", { class: "s-reviews-testimonial__text" }, h("p", { innerHTML: item.content }), h("div", { class: "s-reviews-testimonial__name_wrapper" }, h("div", { class: "s-reviews-testimonial__info" }, item.name && h("h2", null, `${item.name}`)), h("div", { class: "s-reviews-testimonial__rating" }, h("salla-rating-stars", { size: "small", value: item.stars })))), h("span", { class: "s-reviews-testimonial__icon", innerHTML: IconQuoteOpen }))))))))));
|
|
102
102
|
}
|
|
103
103
|
static get style() { return sallaReviewsCss; }
|
|
104
104
|
}, [0, "salla-reviews", {
|
|
@@ -26,7 +26,7 @@ const SallaRewardAction = /*@__PURE__*/ proxyCustomElement(class SallaRewardActi
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '475f3ee96420af61ec3ed127367a224fa86f7c34', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
|
|
30
30
|
's-loyalty-program-rewards-action-base': true,
|
|
31
31
|
's-loyalty-program-rewards-action-on': true,
|
|
32
32
|
} }, salla.lang.get('pages.loyalty_program.shop_now'))) : (h("button", { onClick: this.handleClick, class: {
|
|
@@ -15,7 +15,7 @@ const SallaRewardCard = /*@__PURE__*/ proxyCustomElement(class SallaRewardCard e
|
|
|
15
15
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '0c53ae71f95b242db839dd897d7288b2d95b8a64', class: "s-loyalty-program-reward-host" }, h("div", { key: '758426d1813b9dcc47b9c8a4d739d523e9572fff', class: "s-loyalty-program-reward-container" }, h("div", { key: 'f7f5819d9fb48c40fb44cf01d28593103fc62593', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: '5b51e12b977e17ca4b0c981ea8c1e275e72fd32e', class: "s-loyalty-program-reward-img" }, h("img", { key: 'bcb3279ef5c20f1bdfefc56e75879f5b186ee81f', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: '72c3f61805cf30c54e41db61f559e82d56441e7b', class: "s-loyalty-program-reward-content" }, h("div", { key: '0da8285d5913727d662d7d8d42b20c757291db38', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: 'd2938a93d63abe2ccf9da4bd6f9c5fab902dae49', size: "xs" }, h("span", { key: '6a5d953b0c67edca8f2b74d5fab9de28e14c5b74', innerHTML: loyaltyProgramIcon }), h("span", { key: 'a7f50ef7c770fd6e8f729b5e90c38f8e552dbdca', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '52038fccca9e9a725000cff0f09ae27c1df84070', class: "s-loyalty-program-reward-title" }, h("span", { key: 'b584757e9514318eaf12c391055bebf1ef3cc3d3' }, this.prize.group_title)), h("div", { key: 'e07cf257344b9c5885b0e0cbfefd8140d6695689', class: "s-loyalty-program-reward-name" }, h("div", { key: 'b7ee859bdefce896e6aa8edaa33c61fef91a9188', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: '7316be44d9e00d7031a70067100430d283b1a729', class: "p-4" }, h("slot", { key: '5ac564614b3ff5420e7cc74d5e3d3ec4130d38b8', name: "action" }, h("button", { key: '4b8f3d3b3497b842c26be65657b623a1d4f1f6d7', onClick: (e) => this.actionClick.emit(e.detail), class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-on" }, salla.lang.get('pages.loyalty_program.show_reward')))))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
21
21
|
}, [4, "salla-reward-card", {
|
|
@@ -136,11 +136,11 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
136
136
|
}
|
|
137
137
|
render() {
|
|
138
138
|
const termsAndConditions = this.getTermsAndConditions();
|
|
139
|
-
return (h("div", { key: '
|
|
139
|
+
return (h("div", { key: 'a0d80e9a5a549bb5e57716222ab98b9bcdcd0d7a', class: "s-loyalty-program-reward-modal" }, h("div", { key: 'e085b601651f90de395d04ad06f901554fff1c9c', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'ce51fd02e41e864db3bace40315bf8cc40d2aacf', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
|
|
140
140
|
: h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
|
|
141
141
|
'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
|
|
142
142
|
'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
|
|
143
|
-
} })), this.prize.name)), h("div", { key: '
|
|
143
|
+
} })), this.prize.name)), h("div", { key: '262fc0c0ba8a2401d0a46f4a31cb142ed71aaee2', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: 'feff3505ef1cadb4b11499f4e5d4c60bc0818c3c', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '6a206193ee11ff9efab3372324220cc081f5ee21', class: "s-loyalty-program-aspect-container" }, h("img", { key: 'a16fd353864eb9052a4418a01c5566fd9fae15e0', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: 'f649e1b03bad2ad569425cb26eab179300bb455f', size: "sm", bg: "light" }, h("span", { key: '081b07570d4651792170d2219152ac5943e46219', innerHTML: loyaltyProgramIcon }), h("span", { key: '3057fe2961639bf42961f016c01e3f9647946c40', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.prize.cost_points)))), !termsAndConditions.length ? '' : h("div", { class: "s-loyalty-program-terms-and-conditions" }, h("h1", { class: "s-loyalty-program-terms-and-conditions-heading" }, salla.lang.get('pages.loyalty_program.terms_and_conditions')), h("ul", { class: "s-loyalty-program-terms-and-conditions-list" }, termsAndConditions.map(([title, points]) => (h("li", { class: "s-loyalty-program-terms-and-conditions-item" }, h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, title), h("span", { class: "s-loyalty-program-terms-and-conditions-content" }, points)))))), h("div", { key: 'e4417eea725e80ec1c6e2b3992a75b03f08792de', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '023fde4c635d93c4e5ea2cfcb66e903e01f7b901', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: 'ec5a1d1a18ba05ea9f6c8daf323bdf47e851f837', class: "s-loyalty-program-reward-info-message-content" }, this.getItemsMarkersText())), (this.prize.key === 'FREE_SHIPPING' || this.getItemsMarkers('both') === '000000') ? '' : h("div", { class: "s-loyalty-program-reward-details" }, h("salla-tabs", { key: this.refreshKey }, this.getItemsMarkers('included') === '000' ? '' : [
|
|
144
144
|
h("salla-tab-header", { slot: "header", name: "included", style: {
|
|
145
145
|
display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
|
|
146
146
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: IconVerified }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
|
|
@@ -150,7 +150,7 @@ const SallaRewardDetails = /*@__PURE__*/ proxyCustomElement(class SallaRewardDet
|
|
|
150
150
|
display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
|
|
151
151
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: Cancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
|
|
152
152
|
h("salla-tab-content", { slot: "content", name: "excluded" }, h("div", { class: "s-loyalty-program-reward-details-items-wrapper" }, this.getCategoriesJsx(this.getIncludedItems(this.prize.excludedCategories, this.prize.excluded_category_ids), salla.lang.get('pages.loyalty_program.excluded_categories')), this.getBrandsJsx(this.getIncludedItems(this.prize.excludedBrands, this.prize.excluded_brand_ids), salla.lang.get('pages.loyalty_program.excluded_brands')), this.getProductsJsx(this.getProductIds(this.prize.excluded_product_ids), salla.lang.get('pages.loyalty_program.excluded_products')))),
|
|
153
|
-
]))), h("salla-reward-action", { key: '
|
|
153
|
+
]))), h("salla-reward-action", { key: '0ef437efc19ef2f54da2e185414a2e7e4dc7a82e', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
|
|
154
154
|
}
|
|
155
155
|
static get watchers() { return {
|
|
156
156
|
"prize": ["handlePrizeChange"]
|
|
@@ -44,11 +44,11 @@ const SallaRewardExchange = /*@__PURE__*/ proxyCustomElement(class SallaRewardEx
|
|
|
44
44
|
this.reset(0);
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'bbf843c0e37a56e494ab03443377cf0460e7af3d' }, h("div", { key: '4abbb59df236a8aad2edfceaa5983808095861b9', class: "s-loyalty-program-exchange-heading" }, h("div", { key: '701f4533e21f269626beeb09a91f1cd483fe74ec', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'd8008123034729908b05b55a5d360d43ae40e119', innerHTML: loyaltyProgramIcon })), h("h2", { key: 'd7d6bdd5f11afd4b5c191f703f1abc073e907e0c' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: 'a252cc2e2dc7724d5e9fddf051d6befe06854536' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: '4cb815a1382cfe9ad684c9636def9ff21a4c28ed' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: '0cbbef3bfaf2aea16006f0892b23e8aedba2b564' }, "(", this.prize.name, ")"))), h("div", { key: 'ce38ef18312c8674b2d4b3a5903e7296fc9979f5', class: "s-loyalty-program-exchange-btns" }, h("button", { key: 'fe5d7cec57211d811a6215d48ca8de622bd93e62', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: 'faf587cbcc53de7ccf761cb2d7a94a8d0cfc813f', style: {
|
|
48
48
|
opacity: this.exchange.status !== 'pending' ? '1' : '0',
|
|
49
|
-
} }, salla.lang.get('common.elements.confirm')), h("span", { key: '
|
|
49
|
+
} }, salla.lang.get('common.elements.confirm')), h("span", { key: '0f0cdd023749431d6f31ce760ebe01ac88e6f966', class: "s-loyalty-program-exchange-loading", style: {
|
|
50
50
|
opacity: this.exchange.status === 'pending' ? '1' : '0',
|
|
51
|
-
} }, h("salla-loading", { key: '
|
|
51
|
+
} }, h("salla-loading", { key: '6191c1a572fd552a07b8c7793891398f80554088', color: "primary", size: 24 }))), h("button", { key: '0e8b3aa8ecafcb583cd3de51e3e9e5ade856041c', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
|
|
52
52
|
}
|
|
53
53
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
54
54
|
}, [0, "salla-reward-exchange", {
|
|
@@ -165,7 +165,7 @@ const SallaScopees = /*@__PURE__*/ proxyCustomElement(class SallaScopees extends
|
|
|
165
165
|
return salla.onReady();
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h(Host, { key: '
|
|
168
|
+
return (h(Host, { key: '3581a721b9a6863bf54dcdacb1c55ec0c412cf3c' }, h("salla-modal", { key: '3386595177109a490bb3ecada1484dd247e90f58', ref: modal => this.modal = modal, isClosable: !!(this.isOpenedBefore || (this.selection == 'optional')), class: "s-scopes-modal", isLoading: this.loading, "has-skeleton": true }, this.loading ?
|
|
169
169
|
h("div", { slot: "loading" }, h("div", { class: "s-scopes-skeleton" }, h("salla-list-tile", { class: "s-scopes-header" }, h("div", { slot: "icon", class: "s-scopes-header-icon" }, h("salla-skeleton", { type: "circle" })), h("div", { slot: "title", class: "s-scopes-header-title mb-5" }, h("salla-skeleton", { height: '15px', width: '50%' })), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, h("salla-skeleton", { height: '10px' }), h("salla-skeleton", { height: '10px', width: '75%' }))), h("div", { class: "s-scopes-skeleton-search" }, h("salla-skeleton", { height: '10px', width: '50%' }), h("salla-skeleton", { height: '30px', width: '100%' })), h("div", { class: "s-scopes-skeleton-scopes" }, h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' }), h("salla-skeleton", { height: '10px', width: '30%' }), h("salla-skeleton", { height: '10px', width: '25%' })), h("div", { class: "s-scopes-skeleton-btn" }, h("salla-skeleton", { height: '40px', width: '100%' }))))
|
|
170
170
|
:
|
|
171
171
|
[h("salla-list-tile", { class: this.originalScopesList?.length ? "s-scopes-header block" : "s-hidden" }, h("div", { slot: "icon", class: "s-scopes-header-icon", innerHTML: StoreAlt }), h("div", { slot: "title", class: "s-scopes-header-title" }, salla.lang.get('blocks.scope.you_are_browse_store_from')), h("div", { slot: "subtitle", class: "s-scopes-header-subtitle" }, !!this.selected_scope ? this.selected_scope.name : "")), h("div", { class: "s-scopes-wrap" }, !!this.originalScopesList?.length && h("h4", { class: "s-scopes-title" }, this.getFormTitle()), this.originalScopesList?.length > this.searchDisplayLimit ?
|
|
@@ -132,10 +132,10 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
132
132
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
133
133
|
}
|
|
134
134
|
render() {
|
|
135
|
-
const searchContent = (h("div", { key: '
|
|
135
|
+
const searchContent = (h("div", { key: 'a850e702d6693b06ee58242bd811f0b3fb79cc65', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, h("div", { key: 'b2b35a43bc93c72f30c51171e40ddc1ac859aff4', class: "s-search-input-wrapper" }, h("span", { key: '94734504edd9cb3459f3eefffc5564b576deefab', class: "s-search-icon-wrap" }, h("span", { key: 'f13a3ff73fdb0ad6bfa812263f0d468010565aef', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : Search })), h("input", { key: 'f687489b95cd7c7ea8915aa3a62e112e5635d641', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
|
|
136
136
|
height: this.height + 'px',
|
|
137
137
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
138
|
-
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '
|
|
138
|
+
} }), this.showAction ? (h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && h("span", { innerHTML: Search }))) : null), h("div", { key: '6f956b79e1807f04935ad04f31787c61cf29aa5d', class: "s-search-results" }, this.results?.data.map(product => (h("a", { href: product.url + '?from=search-bar', class: {
|
|
139
139
|
's-search-product': true,
|
|
140
140
|
's-search-product-not-available': !product.is_available,
|
|
141
141
|
}, innerHTML: this.productSlot
|
|
@@ -144,9 +144,9 @@ const SallaSearch$1 = /*@__PURE__*/ proxyCustomElement(class SallaSearch extends
|
|
|
144
144
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
145
145
|
? salla.money(product.regular_price)
|
|
146
146
|
: '')
|
|
147
|
-
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: '
|
|
148
|
-
const modalContent = (h("salla-modal", { key: '
|
|
149
|
-
const placeholderContent = (h("div", { key: '
|
|
147
|
+
.replace(/\{image\}/g, product.image.url) }))), h("p", { key: '1199156eebec6857f934bf53e065958a88b72b3f', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
148
|
+
const modalContent = (h("salla-modal", { key: 'ca437b25a044e96106287ab908f17f2e51efb7b0', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
149
|
+
const placeholderContent = (h("div", { key: '3af263b5044834c010d78ece354f91a7b50278cf', class: "s-search-placeholder-wrapper s-search-inline" }, h("div", { key: '970543471b3b069dea4a0e90f4c7512d2603b260', class: "s-search-input-wrapper" }, h("span", { key: '8d6ae3860975ef7b5870f3e1fe4176b2e6c5bfc5', class: "s-search-icon-wrap" }, h("span", { key: 'b37851998a7c2f7699dc473470985ea0f3b836c8', class: "s-search-icon", innerHTML: Search })), h("button", { key: 'c4b63f42425f646af93421ba55e0d3335792dd88', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
150
150
|
height: this.height + 'px',
|
|
151
151
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
152
152
|
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaSearchableDropdown extends Components.SallaSearchableDropdown, HTMLElement {}
|
|
4
|
+
export const SallaSearchableDropdown: {
|
|
5
|
+
prototype: SallaSearchableDropdown;
|
|
6
|
+
new (): SallaSearchableDropdown;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { S as SallaSearchableDropdown$1, d as defineCustomElement$1 } from './salla-searchable-dropdown2.js';
|
|
5
|
+
|
|
6
|
+
const SallaSearchableDropdown = SallaSearchableDropdown$1;
|
|
7
|
+
const defineCustomElement = defineCustomElement$1;
|
|
8
|
+
|
|
9
|
+
export { SallaSearchableDropdown, defineCustomElement };
|