@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
|
@@ -151,7 +151,7 @@ export class SallaLoyaltyPoint {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
render() {
|
|
154
|
-
return (h("div", { key: '
|
|
154
|
+
return (h("div", { key: 'c2c34afc4b10f2386728dbe537b847481bd5e706' }, h("div", { key: 'cf57ff9cfc3a2f55bfe8af17f2cc7c83c9d0615b', onClick: () => closeModals(() => this.modal.open()), class: "s-loyalty-program-point-wrapper" }, h("div", { key: '407eb761249e7872fb999dc79ce0a8943bcf3708', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-sm s-loyalty-program-circle-variant-fill" }, h("span", { key: 'ac7813b4ce28250a61894387626930cbf259f569', class: this.point.icon })), h("div", { key: '8725b5639e3ba8aec39d592e115ea9d31bb11b0f', class: "s-loyalty-program-points-badge-mobile" }, h("salla-badge", { key: 'dc458d557e251481bcb001cf13f410ff9c572883', size: "xs", bg: "transparent" }, h("span", { key: '0389b4b3ce11a28e7366ac5b8fe030a366ca2a1b', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("div", { key: 'd8f06d0a2bf23d720f2945816974527513b92aea', class: "s-loyalty-program-points-badge-desktop" }, h("salla-badge", { key: '4b004b8aab8b15bfc2d669179c8699be544eb5d1', size: "sm", bg: "transparent" }, h("span", { key: '87f0a45143185f28520b49b4b690e1449174e0ef', innerHTML: SIGift }), formattedPointsJsx(this.point))), h("p", { key: 'ae51344446f70798cb00a11a24a3c37d3c0a1fd5', class: "s-loyalty-program-point-description" }, this.point.name), this.point.is_completed ?
|
|
155
155
|
h("a", { class: {
|
|
156
156
|
's-loyalty-program-points-action': true,
|
|
157
157
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
@@ -161,7 +161,7 @@ export class SallaLoyaltyPoint {
|
|
|
161
161
|
's-loyalty-program-points-action': true,
|
|
162
162
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
163
163
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
164
|
-
} }, this.point.description)), h("salla-modal", { key: '
|
|
164
|
+
} }, this.point.description)), h("salla-modal", { key: '1acb15d8523cc832e102551e74ab3520d1e92ae0', ref: modal => this.modal = modal, class: "s-loyalty-program-point-modal s-loyalty-program-modal", width: window.matchMedia('(min-width: 768px)').matches ? 'md' : 'sm', noPadding: true }, h("div", { key: '0c7e1436747cbb7a54a5f572b7ae22ee4a59b1bb', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: 'b0995df3565e1a90c49910616cb343579ea69074', class: "s-loyalty-program-points-modal-info" }, this.point.name)), h("div", { key: '22d8548b682e06ba9fb3af4c293d25fa2db9ef3b', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '32a51e4329358e92dafa4e3e92c34d3565bd965d', class: "s-loyalty-program-points-modal-main" }, h("div", { key: '5736f71eeae6b6f6ec3bf86baa15623c3a80865c', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: 'e9ff991b8037e7e6bc5eb3f8d50e060bc780a448', class: this.point.icon })), h("salla-badge", { key: '7f93b524618636ddeb796fa119d96c7c03d9f0ab', size: "sm", bg: "light" }, h("span", { key: '1b0e6167064c6f2f0b8ff42c55f5e4a545d67c20', innerHTML: SIGift }), h("span", { key: '846e078c3f70572b965dc9bd02697f68ed18005f', class: "s-loyalty-program-points-badge-points" }, formattedPointsJsx(this.point)))), this.getSubHeading(this.point), h("div", { key: '94d2e8b86d93c7470478731e76416e34b71be01f', class: "s-loyalty-program-points-modal-details" }, h("div", { key: 'ad4d571f3467c6b129c774de1165df75b3563eb5', class: "s-loyalty-program-points-chains-wrapper" }, h("ul", { key: '873b6b7d36a2bde224e516a52e7f478f20bf08d6', class: "s-loyalty-program-points-chain-list" }, !!this.point.steps && Object.keys(this.point.steps).length > 0
|
|
165
165
|
? Object.values(this.point.steps).map((step, idx) => {
|
|
166
166
|
const stepsArray = Object.values(this.point.steps);
|
|
167
167
|
const isLastItem = idx === stepsArray.length - 1;
|
|
@@ -170,7 +170,7 @@ export class SallaLoyaltyPoint {
|
|
|
170
170
|
: this.point.conditions?.map((condition, idx) => {
|
|
171
171
|
const isLastItem = idx === this.point.conditions.length - 1;
|
|
172
172
|
return (h("li", { class: "s-loyalty-program-points-chain-item" }, h("div", { class: "s-loyalty-program-points-chain-icon" }, h("div", { class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xs s-loyalty-program-circle-variant-outline-primary" }, sicons[condition.key]), !isLastItem && h("div", { class: "s-loyalty-program-points-chain-line" })), h("div", { class: "s-loyalty-program-points-chain-content" }, h("salla-badge", { size: "xs", color: "primary-900", bg: "primary-100" }, h("span", { innerHTML: SIGift }), formattedPointsJsx(condition.points ?? 0)), h("p", { class: "s-loyalty-program-points-chain-description" }, condition.name))));
|
|
173
|
-
}))), this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: '
|
|
173
|
+
}))), this.getTrailingContent(this.point)), !this.point.branches?.length ? '' : h("div", { class: "s-loyalty-program-points-modal-list" }, h("div", { class: "s-loyalty-program-point-details-branches" }, h("h2", null, salla.lang.get('pages.loyalty_program.branches')), h("p", null, salla.lang.get('pages.loyalty_program.shop_from_branches'))), h("div", { class: "s-loyalty-program-points-modal-list-wrapper" }, h("ul", null, this.point.branches.map((branch) => (h("li", { class: "s-loyalty-program-points-modal-list-item" }, h("p", null, branch.name), h("salla-badge", { size: "sm", bg: "transparent" }, h("span", { innerHTML: SIGift }), h("a", { href: branch.location ? `https://www.google.com/maps?q=${branch.location.lat},${branch.location.lon}` : '#', target: "_blank", rel: "noopener noreferrer" }, branch.address_description))))))))), h("div", { key: 'de2c761361aa393b9d332502a1ec1b4f95cd88da', class: "s-loyalty-program-points-modal-action" }, h("a", { key: '473df75678e7d82639bf67a95da94dda684dc93f', href: this.point.url, onClick: (e) => (e.stopPropagation(), this.handleAction(e, this.point)), class: {
|
|
174
174
|
's-loyalty-program-points-action': true,
|
|
175
175
|
's-loyalty-program-points-action-completed': this.point.is_completed,
|
|
176
176
|
's-loyalty-program-points-action-incomplete': !this.point.is_completed,
|
|
@@ -31,10 +31,10 @@ export class SallaLoyaltyReward {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '6c205c806975c6fb869e82c316bae95984342181', class: {
|
|
35
35
|
's-loyalty-program-reward-container': true,
|
|
36
36
|
's-loyalty-program-reward-xs': this.size === 'xs',
|
|
37
|
-
} }, h("div", { key: '
|
|
37
|
+
} }, h("div", { key: '48c101ec9ab3d49692f2bc2dca9c6fabccff7c66', onClick: this.handleActionArea, role: "button" }, h("div", { key: '66c879cfd481d5ea3e66f15804dbae218a803322', class: "s-loyalty-program-reward-img" }, h("img", { key: '14fe526c033237859d9e9b6bfa67e8f964926348', src: this.prize.image, class: "s-loyalty-program-rewards-img", alt: "" })), h("div", { key: '898edb21b0e0b84b5bfd6514f6499a04e15fc668', class: "s-loyalty-program-reward-content" }, h("div", { key: '9ca645d969591bd59e9c472ee4294a534b6f137e', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '0af2ea0d4f480c1f3e8b55f045aefd42b201c74e', size: "xs" }, h("span", { key: '7d8c7c5410695f3d49e5c1c8ed448ab8e908b78f', innerHTML: SIGift }), h("span", { key: '72c3e2a4e99d5c66e8a4f71725f1641fdc6dd935', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '52e37e0dcc0c29af46fb51d3d1c04f542beaa43c', class: "s-loyalty-program-reward-title" }, h("span", { key: '0e724c534101aaae40d8cecd2d64d5464ce16bb4' }, this.group)), h("div", { key: 'a9dcf0d919bb4758217f7c3458f92e17ad4b17b5', class: "s-loyalty-program-reward-name" }, h("div", { key: 'a77d01f065426f150efdd1de69e14dc08dc94c1e', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name)))), h("div", { key: '0a53388bdc8df22e2344fc3fd500c220b6edc62e', class: "p-4" }, h("button", { key: 'cf60bf954a5f84cf9715dcd336f26bb6d58a7da1', onClick: this.handleAction, disabled: !this.isActionClickable(this.prize), class: {
|
|
38
38
|
's-loyalty-program-rewards-action-base': true,
|
|
39
39
|
's-loyalty-program-rewards-action-on': this.isActionClickable(this.prize),
|
|
40
40
|
's-loyalty-program-rewards-action-off': !this.isActionClickable(this.prize),
|
|
@@ -20,7 +20,7 @@ export class SallaRewardAction {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'bdbd4616b4235f6203f6ce845915231252e410b9', class: "s-loyalty-program-rewards-modal-action" }, this.isShopNow(this.prize) ? (h("a", { href: this.prize.prize_url || salla.url.get(''), class: {
|
|
24
24
|
's-loyalty-program-rewards-action-base': true,
|
|
25
25
|
's-loyalty-program-rewards-action-on': true,
|
|
26
26
|
} }, salla.lang.get('pages.loyalty_program.shop_now'))) : (h("button", { onClick: this.handleClick, class: {
|
|
@@ -5,7 +5,7 @@ import { h, Host } from "@stencil/core";
|
|
|
5
5
|
import SIGift from "../../assets/svg/gift.svg";
|
|
6
6
|
export class SallaRewardCard {
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'a13d4ce7130e149a7d53cd658a7cf1eb1d8dd100', class: "s-loyalty-program-reward-host" }, h("div", { key: '8b61a8ad95502574abebba338bef0cc8baefd170', class: "s-loyalty-program-reward-container" }, h("div", { key: '252c5f7ed0299788bdad07923f7100c3fddd4797', onClick: (e) => this.areaClick.emit(e), role: "button" }, h("div", { key: '76710607d71278f728a99c5623538e65edfafda0', class: "s-loyalty-program-reward-img" }, h("img", { key: '9499a0191dd6bd19ccab82b61423bdeebbcc089b', alt: "", src: this.prize.image || salla.url.cdn('images/s-empty.png'), class: "s-loyalty-program-rewards-img" })), h("div", { key: '8f38202736f0e06e2b27051d8c6c5e337af14f6a', class: "s-loyalty-program-reward-content" }, h("div", { key: '5ecf0944b52a0a311a6259ae41720bea2f4f2509', class: "s-loyalty-program-reward-points" }, h("salla-badge", { key: '76d56c20ab53aff3b0fc3ccaf11b704fa1651f94', size: "xs" }, h("span", { key: '269cf77f62cae141e8e4dd3eff0c48c82269b631', innerHTML: SIGift }), h("span", { key: '0e9e4f185037da81ef485d60660155c4f8f68fb5', class: "s-loyalty-program-rewards-points" }, this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.points')))), h("div", { key: '56835d3390b78a67976dfd38d0135a0700098af3', class: "s-loyalty-program-reward-title" }, h("span", { key: '215b4885f41fa774a8ced374f8b0af0ba64adf72' }, this.prize.group_title)), h("div", { key: '80b36794dbe4fbb7830a0d9e92b67800f082d464', class: "s-loyalty-program-reward-name" }, h("div", { key: 'e2601da4127fb76af29c2006f2353f79c84c079e', class: "s-loyalty-program-rewards-name", id: `prize-${this.prize.id}` }, this.prize.name, this.prize.description ? `: ${this.prize.description}` : '')))), h("div", { key: '867ee3b26ff542577746f9df91c057eb3d017cda', class: "p-4" }, h("slot", { key: 'bfc94e408a5034c3ab635b9da119b6c3bc59ee30', name: "action" }, h("button", { key: '532a5f1bf553b718aef2cedb52a020e5304c315e', 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')))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "salla-reward-card"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -113,11 +113,11 @@ export class SallaRewardDetails {
|
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
115
|
const termsAndConditions = this.getTermsAndConditions();
|
|
116
|
-
return (h("div", { key: '
|
|
116
|
+
return (h("div", { key: '0b8a972497119c50d39d901377840ae94bea4803', class: "s-loyalty-program-reward-modal" }, h("div", { key: '7734b32566c4a61c8c7558504a82a4690b64e152', class: "s-loyalty-program-points-modal-header" }, h("h1", { key: '6d50ac091561a56020f716fe29e3f2cb91595003', class: "s-loyalty-program-points-modal-info" }, !salla.url.is_page('cart') ? ''
|
|
117
117
|
: h("button", { class: "s-loyalty-program-back-btn", onClick: () => closeModals(() => salla.event.dispatch('modal::open', 'loyalty-rewards-modal')) }, h("span", { class: {
|
|
118
118
|
'sicon-arrow-right': document.documentElement.getAttribute('dir') === 'rtl',
|
|
119
119
|
'sicon-arrow-left': document.documentElement.getAttribute('dir') === 'ltr',
|
|
120
|
-
} })), this.prize.name)), h("div", { key: '
|
|
120
|
+
} })), this.prize.name)), h("div", { key: '31ab58d67b858ee8533d17b66d7a81b89084252b', class: "s-loyalty-program-modal-scrollable-content" }, h("div", { key: '5570bab1fb84e9acb57a68de3f9a11f80cd8d837', class: "s-loyalty-program-reward-details-header" }, h("div", { key: '44b90e963212d73d6cf86130a42592bdbfb6f13c', class: "s-loyalty-program-aspect-container" }, h("img", { key: 'b5f59c28e3a1ec054bbe0faa2a0631ff64ac680b', src: this.prize.image, alt: this.prize.name })), h("salla-badge", { key: 'de5842c1b82b8fafbc50d1dd60a1214df2fa2d58', size: "sm", bg: "light" }, h("span", { key: '9b0e87b211f03156999cdfd13dd7ee2d73d94b8e', innerHTML: SIGift }), h("span", { key: 'cf97b450eb9e4ab52640f6054f4e3cba4f328c49', 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: 'cdbdfcd8b8e8376fdd295560e28b5140266a183e', class: "s-loyalty-program-reward-info-message" }, h("h1", { key: '11db7e2fa04d23661a4ac3adcefffeb8cf934787', class: "s-loyalty-program-reward-info-message-heading" }, salla.lang.get('pages.loyalty_program.how_to_benefit_from_this_reward')), h("p", { key: '075847d05133e9beb15bd432ccefa1f18105933f', 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' ? '' : [
|
|
121
121
|
h("salla-tab-header", { slot: "header", name: "included", style: {
|
|
122
122
|
display: this.getItemsMarkers('excluded') === '000' ? 'none' : 'block',
|
|
123
123
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICheck }), h("span", null, salla.lang.get(`pages.loyalty_program.included`))),
|
|
@@ -127,7 +127,7 @@ export class SallaRewardDetails {
|
|
|
127
127
|
display: this.getItemsMarkers('included') === '000' ? 'none' : 'block',
|
|
128
128
|
} }, h("span", { class: "s-loyalty-program-reward-details-tab-icon", innerHTML: SICancel }), h("span", null, salla.lang.get(`pages.loyalty_program.excluded`))),
|
|
129
129
|
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')))),
|
|
130
|
-
]))), h("salla-reward-action", { key: '
|
|
130
|
+
]))), h("salla-reward-action", { key: '0cd81b0a505e43b9f08ee33ea06619ca393db43b', onActionClick: e => this.actionClick.emit(e.detail), prize: this.prize })));
|
|
131
131
|
}
|
|
132
132
|
static get is() { return "salla-reward-details"; }
|
|
133
133
|
static get originalStyleUrls() {
|
|
@@ -38,11 +38,11 @@ export class SallaRewardExchange {
|
|
|
38
38
|
this.reset(0);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '38d826b427ea2494a2b322f2e647760c06172f1f' }, h("div", { key: '4f3a226245690a950e45c8fb1916c8a869836527', class: "s-loyalty-program-exchange-heading" }, h("div", { key: 'cd9e833d40eb9b334ca0ac2a6934fbbc162bd709', class: "s-loyalty-program-circle-base s-loyalty-program-circle-size-xl s-loyalty-program-circle-variant-fill" }, h("span", { key: '25b5f20c6ac89dd61993262f33ddb3b2d9fbca60', innerHTML: SIGift })), h("h2", { key: 'b038247cabf701df1d8626f55a384008d95146ce' }, salla.lang.get('pages.loyalty_program.redeem_reward')), h("p", { key: '513239deb27d0b08c44f00d2678f612c5c663608' }, salla.lang.get('pages.loyalty_program.redeem_confirmation'), " ", h("span", { key: 'caf89bbeca9ebdff5bf78938b4d926d8e9c5282f' }, "(", this.prize.cost_points, " ", salla.lang.get('pages.loyalty_program.point'), ")"), " ", salla.lang.get('pages.loyalty_program.for'), " ", h("span", { key: 'a221c1b33887673ad152e3a9f0562834ba476bf3' }, "(", this.prize.name, ")"))), h("div", { key: '5cd17f13e0f7323b259d28bb015361faca7e68b7', class: "s-loyalty-program-exchange-btns" }, h("button", { key: '706be94bbe88f53834bc559f32a5309793b20009', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-confirm", onClick: () => this.handleConfirm() }, h("span", { key: '689e1b4a1b14f03265bdcc5ecb9206c3a91e1be7', style: {
|
|
42
42
|
opacity: this.exchange.status !== 'pending' ? '1' : '0',
|
|
43
|
-
} }, salla.lang.get('common.elements.confirm')), h("span", { key: '
|
|
43
|
+
} }, salla.lang.get('common.elements.confirm')), h("span", { key: '28305ea46c0eaf1b751854c38e040ab712004400', class: "s-loyalty-program-exchange-loading", style: {
|
|
44
44
|
opacity: this.exchange.status === 'pending' ? '1' : '0',
|
|
45
|
-
} }, h("salla-loading", { key: '
|
|
45
|
+
} }, h("salla-loading", { key: 'e64b1aff037bee089b29a2e36f1aa42706b0e1a3', color: "primary", size: 24 }))), h("button", { key: 'a62735e39160b8d09333aeb661ebe41d9184b04b', class: "s-loyalty-program-rewards-action-base s-loyalty-program-rewards-action-cancel", onClick: () => this.handleCancel() }, salla.lang.get('common.elements.cancel')))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "salla-reward-exchange"; }
|
|
48
48
|
static get originalStyleUrls() {
|
|
@@ -16,7 +16,7 @@ export class SallaMaintenanceAlert {
|
|
|
16
16
|
this.host.style.display = 'none';
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '4d703f0b455359229a1a2d6b9aebc322c366199b', class: "s-maintenance-alert-wrapper" }, h("button", { key: 'c9496aa0a144165d673cfacfbfab3e1bd2b27add', class: "s-maintenance-alert-close", innerHTML: Cancel, onClick: () => this.closeAlert() }), h("div", { key: 'd8b8c7afaf2fc472c19d57d3d098ed51c27a35fc', class: "s-maintenance-alert-content" }, h("div", { key: '81c3ffc51d2e0e226d0fa12445fa4d2732a1eddb', class: "s-maintenance-alert-container" }, h("div", { key: '618d3256181d8f4d294cdfaa6d4918418d1cbf2f', class: "s-maintenance-alert-icon" }, h("img", { key: '9fdbe8a7998836ec9d992677a1ec066417537d05', src: salla.url.cdn('images/alert.png'), alt: "Alert" })), h("div", { key: 'e85ca39bd7648c45ab3a54cb9d57fd5c384a5d77', class: "s-maintenance-alert-text" }, h("h2", { key: '6f39972bccadef828ea1b5e2c8752a29e823425b' }, this.title), h("p", { key: '21633eb8c03ddaac27c5781f3583b81d7da704d9' }, this.message))), h("div", { key: '598b84335704bfd30e825c2d944e92bcdb1a91eb' }, h("a", { key: '327c61c15ac1cee0c8fea77bd1baed618f1072b3', class: "s-maintenance-alert-btn", href: salla.config.get('maintenance_details.button_url') }, this.buttonTitle)))));
|
|
20
20
|
}
|
|
21
21
|
componentDidLoad() {
|
|
22
22
|
//auto-hide the alert if close button is clicked before one hour
|
|
@@ -271,11 +271,11 @@ export class SallaMap {
|
|
|
271
271
|
}
|
|
272
272
|
// render
|
|
273
273
|
render() {
|
|
274
|
-
return (h(Host, { key: '
|
|
274
|
+
return (h(Host, { key: 'a06082fb10194a06e1eb8a9bbeb58c60d99eef7b', class: "s-map-wrapper" }, h("salla-modal", { key: '9fb68d1b74b0ea481ec2b5e775c93cf3bf604a82', class: "s-map-modal-wrapper", noPadding: true, ref: modal => {
|
|
275
275
|
this.locationModal = modal;
|
|
276
|
-
} }, this.getLocationModal()), h("slot", { key: '
|
|
276
|
+
} }, this.getLocationModal()), h("slot", { key: 'ae2a9e3e92a9c016d180d94362aed25faa59d71e', name: "button" }, h("salla-button", { key: '4d51351ec1ad51b9c8f69aae1b80469f0fa64f0b', onClick: () => {
|
|
277
277
|
this.open();
|
|
278
|
-
}, color: "primary", class: "s-map-location-button" }, h("span", { key: '
|
|
278
|
+
}, color: "primary", class: "s-map-location-button" }, h("span", { key: '5221de3101c30c84b553244c22e5d39e5ea279c0', class: "s-map-location-icon", innerHTML: this.formattedAddress ? Edit : Location }), this.formattedAddress ? (h("div", null, this.locateButtonEdit, " | ", this.formatAddress(this.formattedAddress))) : (this.locateButtonTitle))), h("input", { key: '889d197b9672ba38ce49548e5acf95eacc9ab780', class: "s-hidden", name: this.name, required: this.required, value: this.getLatLng(), ref: color => this.mapInput = color })));
|
|
279
279
|
}
|
|
280
280
|
static get is() { return "salla-map"; }
|
|
281
281
|
static get originalStyleUrls() {
|
|
@@ -30,7 +30,7 @@ export class SallaMultipleBundleProductCart {
|
|
|
30
30
|
return (h("div", { slot: "html", class: "s-multiple-bundle-product-cart-header-wrapper" }, h("div", { class: `s-multiple-bundle-product-cart-header ${hasOptions ? '' : 's-multiple-bundle-product-cart-header-no-options'}` }, h("div", { class: "s-multiple-bundle-product-cart-header-content" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-image-wrapper" }, h("img", { src: product?.image?.url, alt: product?.image?.alt || product?.name, class: "s-multiple-bundle-product-cart-header-image" })), h("div", { class: "s-multiple-bundle-product-cart-header-content-details" }, h("h2", { class: "s-multiple-bundle-product-cart-header-content-details-title" }, h("a", { href: product?.url, class: "s-multiple-bundle-product-cart-header-content-details-title-link" }, product?.name)), h("div", { class: "s-multiple-bundle-product-cart-header-content-details-price" }, h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-regular" }, h("span", { innerHTML: product?.price ? salla.money(product?.price) : '' })), product?.sale_price > 0 && (h("span", { class: "s-multiple-bundle-product-cart-header-content-details-price-sale" }, h("span", { innerHTML: salla.money(product?.sale_price) })))), product?.quantity_in_group > 0 && product?.quantity !== 0 && (h("p", { class: "s-multiple-bundle-product-cart-header-content-details-quantity" }, h("span", null, salla.lang.get('pages.products.number_of_pieces')), h("span", null, product?.quantity_in_group))))), !hasOptions && (h("div", { class: "s-multiple-bundle-product-cart-header-remove-button" }, this.renderRemoveButton(sectionId, product, false))))));
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '20ea93e03cad534077d798864c427d42be61ad94', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'e275c7ca09fe50f35101578a2d44d9d5c979dc8d', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, sectionIndex) => {
|
|
34
34
|
return section.products.map(product => {
|
|
35
35
|
const bundleContext = {
|
|
36
36
|
sectionId: section.id,
|
|
@@ -157,10 +157,10 @@ export class SallaMultipleBundleProductDetails {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
render() {
|
|
160
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: '1d03726da0f80003af30c2fc78ab3d8e42617b06', class: "s-multiple-bundle-product-wrapper" }, h("div", { key: 'aafa896a4ab11d23b4da1ca67f66b92f7e23dd04', class: "s-multiple-bundle-product-wrapper-sections" }, this.sections.map((section, index) => {
|
|
161
161
|
const selectedCount = this.selectedProducts[section.id]?.size || 0;
|
|
162
162
|
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 }))));
|
|
163
|
-
})), h("salla-multiple-bundle-product-options-modal", { key: '
|
|
163
|
+
})), h("salla-multiple-bundle-product-options-modal", { key: 'dcc637799eabb11370a3975abddf6e377413d450' })));
|
|
164
164
|
}
|
|
165
165
|
static get is() { return "salla-multiple-bundle-product-details"; }
|
|
166
166
|
static get originalStyleUrls() {
|
|
@@ -458,7 +458,7 @@ export class SallaMultipleBundleProductOptionsModal {
|
|
|
458
458
|
const cacheKey = this.generateCacheKey(this.sectionId, this.productIndex, productId);
|
|
459
459
|
const resetToken = this.optionsResetTokens[cacheKey] || 0;
|
|
460
460
|
const isDisabled = this.isLoading || optionsWithSelectedState.some(opt => opt.details.some(d => d.is_selected && d.is_out === true));
|
|
461
|
-
return (h(Host, { key: '
|
|
461
|
+
return (h(Host, { key: '335f2005d369c2d77d9050f88ddaa5ff53351d04' }, h("salla-modal", { key: '30ea7ec272e02818dbede816354925664ce85425', 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: '24389add786f44083aaba216041ef16679379c0e', slot: "loading" }, h("salla-skeleton", { key: 'a5235218174fb2caba0389ca0685a7dfedad3611', height: "100%", width: "100%" })), this.product?.images && this.product?.images.length > 0 && (h("salla-slider", { key: '828219b4f1d955dc6d577cd9042c910aaee95393', 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: {
|
|
462
462
|
centeredSlides: true,
|
|
463
463
|
centeredSlidesBounds: true,
|
|
464
464
|
slidesPerView: Math.min(5, Math.max(1, this.product?.images.length)),
|
|
@@ -466,13 +466,13 @@ export class SallaMultipleBundleProductOptionsModal {
|
|
|
466
466
|
watchSlidesProgress: true,
|
|
467
467
|
direction: 'vertical',
|
|
468
468
|
spaceBetween: 10,
|
|
469
|
-
} }, h("div", { key: '
|
|
469
|
+
} }, h("div", { key: 'ef8c969b6cccf6ec1506118f0cbfcbb87d88773e', slot: "items" }, this.product?.images &&
|
|
470
470
|
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 => {
|
|
471
471
|
e.target.style.display = 'none';
|
|
472
|
-
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '
|
|
472
|
+
} }))))), this.product?.images && this.product?.images.length > 1 && (h("div", { key: '1e4b1c215d18af6f64ddebfb594cd2d6238add79', slot: "thumbs" }, this.product?.images &&
|
|
473
473
|
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 => {
|
|
474
474
|
e.target.style.display = 'none';
|
|
475
|
-
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '
|
|
475
|
+
} })))))))), h("salla-product-options", { options: JSON.stringify(optionsWithSelectedState), key: `${cacheKey}-reset-${resetToken}`, "product-id": productId, "unique-key": `${cacheKey}-reset-${resetToken}` }), h("div", { key: '22f2cdebd748eb3d6260ce9ed9b821bba2244739', slot: "footer" }, h("div", { key: '210afac61f5641907942dcf8a2ba4a331287a781', class: "s-multiple-bundle-product-options-modal-footer" }, h("salla-button", { key: 'e0acc6a57d9b7925d822978d3b5742ef1fa26b43', onClick: e => this.onSave(e), loading: this.isLoading, disabled: isDisabled }, this.isLoading
|
|
476
476
|
? salla.lang.get('common.elements.saving')
|
|
477
477
|
: salla.lang.get('common.elements.save')))))));
|
|
478
478
|
}
|
|
@@ -87,7 +87,7 @@ export class SallaMultipleBundleProductSlider {
|
|
|
87
87
|
return `bundle[${sectionId}][${productIndex}][id]`;
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: 'a97e064cdf49c89f7ad99c07ace78fa2e8c17db2' }, h("salla-slider", { key: 'acad8d76e7879ea77caff57bbfe8486e92560ba3', 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: 'bc1f8d723c42ac9bd72fa89f4ad01e50badd22dc', slot: "items" }, this?.section?.products?.map((product, productIndex) => {
|
|
91
91
|
const isChecked = this.selectedProducts[this.section.id]?.has(product.id) || false;
|
|
92
92
|
const hasSavedOptions = this.savedOptionsByInstance[this.getProductInstanceKey(this.section.id, productIndex)];
|
|
93
93
|
const optionsButtonLabel = hasSavedOptions
|
package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js
CHANGED
|
@@ -82,7 +82,7 @@ export class SallaMultipleBundleProduct {
|
|
|
82
82
|
this.parseProducts(this.bundleSections);
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '66f10720357d28cccfaf9936fcbf5fe4482b04b7', class: "s-multiple-bundle-product-wrapper" }, this.isCartPage() ? this.renderCartPage() : this.renderDetailsPage()));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "salla-multiple-bundle-product"; }
|
|
88
88
|
static get originalStyleUrls() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
export class SallaNotificationItem {
|
|
6
6
|
render() {
|
|
7
|
-
return h("a", { key: '
|
|
7
|
+
return h("a", { key: '552b726afc51457a966b4dac5e07f4d5ccd91cde', 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: '66ce255e979669f95ccbf199db6964a005b2d0b1', class: "s-notifications-item-icon" }, h("i", { key: '870443da46e7d5e670c1dad22eb19021c4eb528d', class: { 's-notifications-item-icon sicon-bell-ring': true, 's-notifications-item-icon-new': this.notification.is_new } })), h("div", { key: '6397c2198c78c475f954520eb2b023259c38ddf6', class: "s-notifications-item-content" }, h("div", { key: 'cee82e34ba7d66fa3b81989f86b88c0a15d44158', class: "s-notifications-item-content-leading" }, h("h4", { key: '02006594ab959bbf70c118948b156c249543a7f6' }, this.notification.title), h("p", { key: 'c4fcf050c60659684b8ce8049b0a6923094d956e' }, this.notification.sub_title)), h("span", { key: '7b4b64aa737fc6fb8e803ceb90afe098ee244349', class: "s-notifications-item-content-trailing" }, h("i", { key: '6ffbe2bd817e08d9299a8c7b536f3aa133b05991', class: "sicon-time s-notifications-item-content-trailing-icon" }), h("span", { key: '1c59cc1b8fe5ecbb786dd311c1220415c4590509' }, this.notification.date))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "salla-notification-item"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -205,7 +205,7 @@ export class SallaOfferModal {
|
|
|
205
205
|
// '</div>';
|
|
206
206
|
// }
|
|
207
207
|
render() {
|
|
208
|
-
return h("salla-modal", { key: '
|
|
208
|
+
return h("salla-modal", { key: '3b9158d355ad8cf5e8a606488ba6b116427bf557', "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: '072a758760656e57e396b8bf15a9f66b4306b36d', slot: 'loading' }, h("div", { key: 'b86205bf0f5e15d2f4660fe0b6b2746a57152b6c', class: "s-offer-modal-skeleton" }, h("div", { key: '3c3f9eaf6a7f268e619bdaa450e5e80079e27373', class: "s-offer-modal-skeleton-header" }, h("salla-skeleton", { key: '6d58ba67fa605778e1c187b7a3fdb866e46496cd', type: 'circle', height: '80px', width: '80px' }), h("salla-skeleton", { key: '78a30a7947e76e68b72a686c9065a0feb1c5e850', height: '15px', width: '50%' }), h("salla-skeleton", { key: '0d1788018b6b58386dfd8e876dae6ec89fafc5ea', height: '10px', width: '30%' })), h("div", { key: '5c77d338656b089c8980579153eb55ae815d19b5', 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: '4bcc672dd6be4c6561199143a6dd7a3e776a1717', class: "s-offer-modal-skeleton-footer" }, h("salla-skeleton", { key: '68c5c0af215c43c79db2f53bde96ca11d7625161', height: '15px', width: '50%' }), h("salla-skeleton", { key: '1b3766613fcbba40a17365ff92140f12685d92b3', height: '15px', width: '30%' })))), !this.hasError && this.offer !== null
|
|
209
209
|
? [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 ?
|
|
210
210
|
h("p", { class: "s-offer-modal-expiry" }, salla.lang.get('pages.products.offer_expires_in'), " ", this.offer.formatted_date)
|
|
211
211
|
: '', 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'))),
|
|
@@ -36,7 +36,7 @@ export class SallaOrderDetails {
|
|
|
36
36
|
];
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return h(Host, { key: '
|
|
39
|
+
return h(Host, { key: '6a0251f4da46d6a0d3ddbd93574e16eef2d6a7d7', class: "s-order-details-wrapper" }, this.renderOrderDetailsContent());
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "salla-order-details"; }
|
|
42
42
|
static get originalStyleUrls() {
|
|
@@ -24,7 +24,7 @@ export class SallaOrderEditProductCard {
|
|
|
24
24
|
const product = this.productData;
|
|
25
25
|
const productName = product?.name || salla.lang.getWithDefault('common.elements.product', 'منتج');
|
|
26
26
|
const price = product?.price;
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '29b7baf750eb28d34c2dab474948e442b1f19789' }, h("button", { key: '25fc440a59d31c87f33b04008e0eeabdc7a71efa', type: "button", class: "s-order-edit-product-card", onClick: () => this.handleSelectProduct() }, h("div", { key: '51e95cc297f0eaf9263f3da4514f25543aec132e', 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: 'b3ce883d2cc10342a3706275dd5016dd0aac223b', class: "s-order-edit-product-card-content" }, h("h3", { key: '3fb542197f29efd353fbdc11b5ea3c7b03927c39', class: "s-order-edit-product-card-title" }, productName), price != null && (h("p", { key: 'd1a4f0652ca56d2c17b8fe7408529b898977d8e9', class: "s-order-edit-product-card-price", innerHTML: salla.money(price) }))))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "salla-order-edit-product-card"; }
|
|
30
30
|
static get originalStyleUrls() {
|
|
@@ -62,7 +62,7 @@ export class SallaOrderSummary {
|
|
|
62
62
|
this.copyCodeButtonTimeout && clearTimeout(this.copyCodeButtonTimeout);
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return (h("ul", { key: '
|
|
65
|
+
return (h("ul", { key: 'c9c016ac272adc02b4fc119e59c2108926650e35', class: "s-order-summary-wrapper" }, this.noItemFound ? h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" })) :
|
|
66
66
|
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 ? iconCheck : iconCopy }), h("span", null, this.copy_text))))))) :
|
|
67
67
|
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))));
|
|
68
68
|
}
|
|
@@ -35,12 +35,12 @@ export class SallaPayments {
|
|
|
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: '7d88246228feed97f6a4163854c758dd3e2d258c', class: "s-payments-list-wrap" }, h("ul", { key: 'da4097b5c85892809f6d6191747cdf06cf058052', class: "s-payments-list" }, madeInKSA && h("li", { key: 'a44671b93900a26d62c229bd28f46771e88b5436', class: "s-payments-list-item" }, h("img", { key: 'c76a9ccce13a828835f764593e3a58587dcb60c0', 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: '50af944817df1bb822baf56093815d59fdd003a3', 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
|
}
|
|
@@ -35,7 +35,7 @@ export class SallaPlaceholder {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '455339c316c1e09806bf65a8bf627e32c0d1fa43', class: this.alignmentClass() }, h("div", { key: '3b56c2bb2efa16c70e5ec46c0c7c61e5a4f41c05', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '77b65ca2475563deabeadb419bd232176cf7f1b9', class: "s-placeholder-title" }, h("slot", { key: '37d5de9a4daaec1808eb8edc34cb038720e7bc44', name: 'title' }, h("span", { key: 'cafe31940c9e645bacc9062b765d09292e45fb4c' }, salla.lang.get('common.elements.no_options')))), h("div", { key: 'e6394dd74a534e4549d02247a63bf82979ecb69e', class: "s-placeholder-description" }, h("slot", { key: '926cb9c8b088ceaa14e9913e82f34e12553ff522', name: 'description' }, h("span", { key: '4f888fbb0d0714818df98ec7b9d544dc98568ea0' }, salla.lang.get('common.errors.empty_results'))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "salla-placeholder"; }
|
|
41
41
|
static get originalStyleUrls() {
|
|
@@ -146,9 +146,9 @@ export class SallaPriceRange {
|
|
|
146
146
|
this.maxPrice = value === undefined ? '' : value;
|
|
147
147
|
}
|
|
148
148
|
render() {
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: 'f6d4c1f5b74249b943996d2af32b06174520e88d' }, this.filterValues.map((filterValue, index) => {
|
|
150
150
|
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) }));
|
|
151
|
-
}), h("div", { key: '
|
|
151
|
+
}), h("div", { key: '48eedd9396dca4b82648e13f917afa78140776c5', class: "flex justify-center items-center" }, h("div", { key: 'c33855ba7fad6f13a361952294a72731134f9263', class: "relative max-w-xl w-full" }, h("div", { key: '19af3893897a7efebd41b58d8c4c2eaeeca2aa81', class: "s-price-range-inputs" }, h("div", { key: '736f552986d27304cbb1a52b0f14ca316d1d6522', class: "s-price-range-relative" }, h("div", { key: 'ed5bbee427f85780b85e02a81978ab2fffdd114f', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: 'b35cb9e1a9d568e7ab807b19df178f0f355f967d', 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: 'e30137f81f4bb8f2cf00ef051abffddba02a0688', class: "s-price-range-gray-text" }, " -"), h("div", { key: 'e77346125de1c54fe4f7371bb4f7b2713ec20276', class: "s-price-range-relative" }, h("div", { key: '750257ccc57c2b8b35eac7ca00aeba2a87e2e36e', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '43c63883df720947c7f85b2361945ee06104a4ec', 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: '93e5138ddb7591337b980497be3280066dbeb1de', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '2b42695a4b8abbb7578903a73fe7dd3599d89cd9', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
|
|
152
152
|
}
|
|
153
153
|
componentDidLoad() {
|
|
154
154
|
this.isReady = true;
|
|
@@ -131,7 +131,7 @@ export class SallaProductAvailability {
|
|
|
131
131
|
field.nextElementSibling['innerText'] = '* ' + errorMsg;
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
return (h(Host, { key: '
|
|
134
|
+
return (h(Host, { key: 'a09c35acc83cc5dd3bf5777a592a8f58ec44f7fb', class: "s-product-availability-wrap" }, this.isSubscribed || this.isVisitorSubscribed
|
|
135
135
|
? h("div", { class: "s-product-availability-subscribed" }, h("span", { innerHTML: BellRingIcon, class: "s-product-availability-subs-icon" }), salla.lang.get('pages.products.notify_availability_success'))
|
|
136
136
|
:
|
|
137
137
|
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()));
|
|
@@ -105,14 +105,14 @@ export class SallaProductCard {
|
|
|
105
105
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
106
106
|
};
|
|
107
107
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '5499b555ce4de3cdc41fec9797404047c2059113', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: 'ee03a46bf4863e56b5faa67d9ca3dd15d4a1fd05', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: 'b016f4078817310f446d2697ad61cc3db90b8bd5', ...hrefProp }, h("img", { key: 'b80a96932a1fc5429f6060daad0d1038a17f92ad', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
109
109
|
? 'contain'
|
|
110
110
|
: this.fitImageHeight
|
|
111
111
|
? this.fitImageHeight
|
|
112
|
-
: '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: '
|
|
113
|
-
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: '
|
|
112
|
+
: '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: 'da2b99309da6b737a0a61eb5381f065223a77688', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
113
|
+
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: '3999bbc2c0a0fea9da3cfdacd898731c699688ed', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
114
114
|
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" })))
|
|
115
|
-
: '', h("div", { key: '
|
|
115
|
+
: '', h("div", { key: 'fb8713f2ef5d3ab6f6c423899b5a4e49ed96acf9', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '470de39afbc2f3a00465d7c8313db333e16d61f7', class: "s-product-card-content-title" }, h("a", { key: 'e30d43e7a3fa81f1b68be13c838d61247fadc96e', ...hrefProp }, this.productData?.name)), this.productData?.subtitle && !this.minimal ?
|
|
116
116
|
h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
117
117
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
118
118
|
[h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -121,7 +121,7 @@ export class SallaProductCard {
|
|
|
121
121
|
this.addBtn.donatingAmount = e.target.value;
|
|
122
122
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
123
123
|
: '')]
|
|
124
|
-
: '', h("div", { key: '
|
|
124
|
+
: '', h("div", { key: '1228145906813f3d91f9b7e1a9c3684655963dd2', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.productData?.rating?.stars && !this.minimal ?
|
|
125
125
|
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
|
|
126
126
|
: ''), this.isSpecial && this.productData.discount_ends
|
|
127
127
|
? h("salla-count-down", { date: this.formatDate(this.productData.discount_ends), "end-of-day": true, boxed: true, labeled: true })
|
|
@@ -45,11 +45,11 @@ export class SallaProductSizeGuide {
|
|
|
45
45
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("salla-modal", { key: '
|
|
48
|
+
return (h("salla-modal", { key: '5512c8dfd149f2120f49e5ae3b4851edbaba3b65', 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: '82d199e3ee7384723977476aff583ac90150af7b', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '5c181d97c0df5445b62a3631d89bf3e67b2a7094', slot: "loading" }, h("div", { key: '60da85f110e2b6d62d71f367da0180e9ba42dcab', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'b50732bad080b099666dd7b9d4dd22739ceebb26', height: '15px', width: '25%' }), h("div", { key: '0b1c9f76597024ba9f57d1e618d944e755997133', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '84a88c4a55dbe16b7a353d8feb858d6afa7e894d', height: '40px' }), h("salla-skeleton", { key: '74dfa42ceeff6564fedd35a441e923f5f33c2b77', height: '40px' }), h("salla-skeleton", { key: 'd8795d2d5a92c9889200d30a04fefac3d679a0a6', height: '40px' }), h("salla-skeleton", { key: '241ca66599bfc0bb2714e60b707be4951f6c7b73', height: '40px' })), h("div", { key: 'b7ba632663b30e8a427372b5314e88af58e969d0', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '3d2b702e319b8ebdabdaa458db2485efefda93f7', height: '15px', width: '25%' }), h("salla-skeleton", { key: '20882f9fd21d0348a1fdfed0076819e714d5007b', height: '10px', width: '75%' }), h("salla-skeleton", { key: 'd0f639cba922413865fbd3e8db1d019ffcfadd79', height: '10px', width: '50%' }), h("salla-skeleton", { key: 'fe106864eb39d78ef4801fcc98c6d1d89cc1bc71', height: '10px', width: '75%' }), h("salla-skeleton", { key: '36c93ceea98adbb4b4b3ea20c2c29ac4a1b06ab1', height: '10px', width: '100%' }), h("salla-skeleton", { key: '3d5d7afc3e0a5c979bc711b6a570e158e0dff6db', height: '10px', width: '25%' }), h("salla-skeleton", { key: 'e10bfdd9af6f8d217de896c2910345bc2c7d44bd', height: '10px', width: '60%' }), h("salla-skeleton", { key: '563e10663844be0ecf4587f6e9f1384e12c12287', height: '10px', width: '45%' }), h("salla-skeleton", { key: '163301e69bd103c2a20a5843aa9d9602181d8f8d', height: '10px', width: '30%' })))), h("slot", { key: 'b384ea1c6fe4076611b5d106eafa80fb7c3e1f47', name: "header" }), !this.hasError && !!this.guides ?
|
|
49
49
|
[
|
|
50
50
|
h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
|
|
51
51
|
]
|
|
52
|
-
: this.showPlaceholder(), h("slot", { key: '
|
|
52
|
+
: this.showPlaceholder(), h("slot", { key: '5edd3fe8b0890a3c7b07cc80826d555213ec74ad', name: "footer" })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "salla-product-size-guide"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -91,7 +91,7 @@ export class SallaQuantityInput {
|
|
|
91
91
|
if (!inputAttributes['aria-label'] && !inputAttributes['aria-labelledby']) {
|
|
92
92
|
inputAttributes['aria-label'] = salla.lang.getWithDefault('common.elements.quantity', 'Quantity');
|
|
93
93
|
}
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '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: Add }) : '', 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: Minus }) : '', h("slot", { key: 'd3a10929d440c614b7788548aa72fc3a66b63b74', name: "decrement-button" })))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "salla-quantity-input"; }
|
|
97
97
|
static get originalStyleUrls() {
|
|
@@ -205,7 +205,7 @@ export class SallaQuickBuy {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return h(Host, { key: '
|
|
208
|
+
return h(Host, { key: '5760621653a41e04a42beb51d982c41259250631' }, this.quickBuyButton());
|
|
209
209
|
}
|
|
210
210
|
quickBuyButton() {
|
|
211
211
|
return h("apple-pay-button", { locale: salla?.config?.get?.('user.language_code') || 'ar', onClick: () => this.quickBuyHandler(), "data-quick-purchase": "applepay", class: "s-quick-buy-apple-pay", "data-is-applepay": "1", buttonstyle: "black", type: this.type });
|
|
@@ -158,7 +158,7 @@ export class SallaReviewCard {
|
|
|
158
158
|
return (h("a", { href: this.review?.product?.url, class: "s-review-card-product-container" }, h("img", { alt: product.image?.alt || "Product", src: product.image?.url, class: "s-review-card-product-image", width: 60, height: 60, loading: "lazy", decoding: "async", draggable: false }), h("div", { class: "s-review-card-product-details" }, h("p", { class: "s-review-card-product-details-name" }, product.name), this.showPurchaseCount ? h("p", { class: "s-review-card-product-details-purchase-count" }, h("span", { innerHTML: IconFire2 }), this.purchasedCount) : null)));
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return h("div", { key: '
|
|
161
|
+
return h("div", { key: '9a151b0ef70c1b3cdad503ecd01ea2520f112fe6', class: "s-review-card-container" }, this.renderSlider(), this.renderSingleImage(), renderDivider(), h("div", { key: 'f20dacd0f86f72ab510b03025e7cbc671804b1d3', class: "s-review-card-content" }, this.renderHeader(), h("p", { key: '48779d52192ea137c0f04fc7155923df16a32687', class: "s-review-card-review-content", innerHTML: this.review?.content }), renderDivider(), this.renderProductInfo()));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "salla-review-card"; }
|
|
164
164
|
static get originalStyleUrls() {
|
|
@@ -85,7 +85,7 @@ export class SallaReviews {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
88
|
+
return (h("div", { key: '3c5c5e820a4567aed77da08c8d39306b95488964', class: "s-reviews-container" }, h("div", { key: '876e908d6ab7387e3ab46662e6a4f543505d510e', class: "s-reviews-header-wrapper" }, h("h1", { key: 'b3cc0eb790da0152c56147ffea9939bc2de14644', 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: 'f3ea6d4d3a6bc394d6f519a5ca6d6a29f8b1b597', 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: 'cee3080ca7abbd34f5a48d2705005861941672c3', 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 }))))))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "salla-reviews"; }
|
|
91
91
|
static get originalStyleUrls() {
|