@salla.sa/twilight-components 2.14.431 → 2.14.433
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-DfW5cyCe.js → filepond-m9UIfD4r.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BDWsEvaC.js → filepond-plugin-file-poster-CCNucuJo.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Bto6gxLP.js → filepond-plugin-file-validate-size-c8aiCeyd.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-B6YfHTAx.js → filepond-plugin-file-validate-type-DKXNy-pI.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-C-LqaX6L.js → filepond-plugin-image-edit-BeXjDMoa.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CV0h895x.js → filepond-plugin-image-exif-orientation-BeoKq6Qa.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DWzrBxJB.js → filepond-plugin-image-preview-DNGNnW2v.js} +1 -1
- package/dist/cjs/{functions-CB5lb0VM.js → functions-B5wriSSk.js} +1 -1
- package/dist/cjs/{index-D7Syi0Lt.js → index-DRte8uD2.js} +1 -1
- package/dist/cjs/{index-CPVUhQsG.js → index-ouHUBEmn.js} +14 -6
- 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 +16 -16
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +19 -10
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +77 -0
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +23 -7
- 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-points-banner.cjs.entry.js +50 -0
- 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 +34 -3
- 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 +3 -3
- 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-Duwj6C7F.js → tracked-promise-CBS0Jv4T.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-C-53deqE.js → vanilla-picker-B4KqFjgH.js} +1 -1
- package/dist/collection/assets/svg/money.svg +3 -0
- package/dist/collection/assets/svg/star-filled.svg +10 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +14 -5
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.css +0 -0
- package/dist/collection/components/salla-cashback-banner/salla-cashback-banner.js +74 -0
- package/dist/collection/components/salla-comments/salla-comment-item.js +20 -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-points-banner/salla-loyalty-points-banner.css +0 -0
- package/dist/collection/components/salla-loyalty-points-banner/salla-loyalty-points-banner.js +54 -0
- 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-products-list/salla-products-list.js +33 -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.css +4 -4
- 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 +14 -5
- package/dist/components/salla-cashback-banner.d.ts +11 -0
- package/dist/components/salla-cashback-banner.js +96 -0
- package/dist/components/salla-comment-item2.js +36 -13
- package/dist/components/salla-comments.js +24 -18
- 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-points-banner.d.ts +11 -0
- package/dist/components/salla-loyalty-points-banner.js +69 -0
- 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-products-list2.js +33 -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 +2 -2
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-b3O-B3ro.js → filepond-CKWIup4S.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DGa9Q6FE.js → filepond-plugin-file-poster-Bh-xu68e.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Bn9iVzLj.js → filepond-plugin-file-validate-size-D49X-Kke.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BjHBoevq.js → filepond-plugin-file-validate-type-CdrHe--C.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CJ2XCDbB.js → filepond-plugin-image-edit-CJW0RVuR.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DUb8DStt.js → filepond-plugin-image-exif-orientation-DLAbuFUC.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BCzQEooP.js → filepond-plugin-image-preview-CgwlEcnw.js} +1 -1
- package/dist/esm/{functions-hDIweVRL.js → functions-DEq2D5r8.js} +1 -1
- package/dist/esm/{index-DFzcviYn.js → index-BAMBfQio.js} +1 -1
- package/dist/esm/{index-Dnvn8dmm.js → index-lMbG1CIQ.js} +14 -6
- 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 +16 -16
- package/dist/esm/salla-bullet-delivery_2.entry.js +19 -10
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +75 -0
- package/dist/esm/salla-comment-form_8.entry.js +23 -7
- 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-points-banner.entry.js +48 -0
- 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 +34 -3
- 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 +3 -3
- 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-p08m2zyv.js → tracked-promise-Cuxl89VM.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-kSO_chM-.js → vanilla-picker--tIjHzZT.js} +1 -1
- package/dist/twilight/p-00142abc.entry.js +4 -0
- package/dist/twilight/{p-424110b5.entry.js → p-05a6fc4e.entry.js} +1 -1
- package/dist/twilight/p-0a1966cf.entry.js +4 -0
- package/dist/twilight/p-0bf5b2a3.entry.js +4 -0
- package/dist/twilight/{p-d82818ee.entry.js → p-0f19a6eb.entry.js} +1 -1
- package/dist/twilight/{p-2160352a.entry.js → p-0f712ca6.entry.js} +1 -1
- package/dist/twilight/{p-1c03ceaa.entry.js → p-139d18e4.entry.js} +1 -1
- package/dist/twilight/{p-348ce789.entry.js → p-18dbc68c.entry.js} +1 -1
- package/dist/twilight/{p-a1766fe4.entry.js → p-1ced495f.entry.js} +1 -1
- package/dist/twilight/p-22dd6342.entry.js +4 -0
- package/dist/twilight/{p-bcdf2adf.entry.js → p-25c7c765.entry.js} +1 -1
- package/dist/twilight/{p-fd792b46.entry.js → p-25d4c3e7.entry.js} +1 -1
- package/dist/twilight/{p-102747d8.entry.js → p-28701b83.entry.js} +1 -1
- package/dist/twilight/p-29b528fe.entry.js +4 -0
- package/dist/twilight/{p-7e288aab.entry.js → p-2caab1dd.entry.js} +1 -1
- package/dist/twilight/p-2e11b913.entry.js +4 -0
- package/dist/twilight/{p-09b8f823.entry.js → p-30ca11a7.entry.js} +1 -1
- package/dist/twilight/{p-e0c8d60c.entry.js → p-386d36ff.entry.js} +1 -1
- package/dist/twilight/{p-88032655.entry.js → p-3c2c9e2b.entry.js} +1 -1
- package/dist/twilight/{p-e206ecc7.entry.js → p-42868687.entry.js} +1 -1
- package/dist/twilight/{p-26b9358b.entry.js → p-434232b8.entry.js} +1 -1
- package/dist/twilight/{p-74998089.entry.js → p-46c69187.entry.js} +1 -1
- package/dist/twilight/{p-4ec18be2.entry.js → p-477d3cde.entry.js} +1 -1
- package/dist/twilight/{p-c936ef8d.entry.js → p-484c2f42.entry.js} +1 -1
- package/dist/twilight/{p-e47f98ab.entry.js → p-5309c2b6.entry.js} +1 -1
- package/dist/twilight/{p-3c631cc0.entry.js → p-55801b41.entry.js} +1 -1
- package/dist/twilight/{p-f6c2599b.entry.js → p-579e1d3f.entry.js} +1 -1
- package/dist/twilight/{p-2431c606.entry.js → p-58a182ef.entry.js} +1 -1
- package/dist/twilight/{p-d3b4dfd4.entry.js → p-5b0ccf4b.entry.js} +1 -1
- package/dist/twilight/{p-41119cdb.entry.js → p-5dc05ab0.entry.js} +1 -1
- package/dist/twilight/{p-402b5980.entry.js → p-602eb37d.entry.js} +1 -1
- package/dist/twilight/{p-10ad1b83.entry.js → p-63b2e9e4.entry.js} +1 -1
- package/dist/twilight/{p-666df999.entry.js → p-64364d27.entry.js} +1 -1
- package/dist/twilight/{p-8c7058b1.entry.js → p-646309b3.entry.js} +1 -1
- package/dist/twilight/{p-8ef02612.entry.js → p-6a6cc844.entry.js} +1 -1
- package/dist/twilight/{p-d118fae4.entry.js → p-6c4b0954.entry.js} +1 -1
- package/dist/twilight/p-6db2ed2d.entry.js +4 -0
- package/dist/twilight/{p-fbda5922.entry.js → p-6fe6361d.entry.js} +1 -1
- package/dist/twilight/{p-d4094247.entry.js → p-7060ae7d.entry.js} +1 -1
- package/dist/twilight/p-75cd1309.entry.js +4 -0
- package/dist/twilight/{p-abe7a229.entry.js → p-76147eb1.entry.js} +1 -1
- package/dist/twilight/{p-cf73d667.entry.js → p-77d6879d.entry.js} +1 -1
- package/dist/twilight/{p-835fa9b4.entry.js → p-781b8258.entry.js} +1 -1
- package/dist/twilight/{p-7095939b.entry.js → p-7906db6c.entry.js} +1 -1
- package/dist/twilight/{p-bd45359c.entry.js → p-793b143f.entry.js} +1 -1
- package/dist/twilight/{p-97b0e5fe.entry.js → p-7a067b88.entry.js} +1 -1
- package/dist/twilight/{p-d2551363.entry.js → p-7e74750a.entry.js} +1 -1
- package/dist/twilight/{p-809250a3.entry.js → p-83407903.entry.js} +1 -1
- package/dist/twilight/{p-4cc4260a.entry.js → p-87fc46f3.entry.js} +1 -1
- package/dist/twilight/{p-8eb27675.entry.js → p-8b19a6cd.entry.js} +1 -1
- package/dist/twilight/{p-b5281c36.entry.js → p-9029fe2f.entry.js} +1 -1
- package/dist/twilight/p-9561c440.entry.js +4 -0
- package/dist/twilight/{p-4d15bde7.entry.js → p-98409d9d.entry.js} +1 -1
- package/dist/twilight/{p-29bb512b.entry.js → p-999d8514.entry.js} +1 -1
- package/dist/twilight/{p-eb9fd475.entry.js → p-99cde2bd.entry.js} +1 -1
- package/dist/twilight/p-9b4b6171.entry.js +4 -0
- package/dist/twilight/{p-094dc909.entry.js → p-9baa8e69.entry.js} +1 -1
- package/dist/twilight/{p-D9Fh8EvL.js → p-AO-xClM5.js} +1 -1
- package/dist/twilight/{p-CUMuR5KH.js → p-BbPW5sNk.js} +1 -1
- package/dist/twilight/p-BxVFPdKb.js +9 -0
- package/dist/twilight/{p-lDyZ4jxE.js → p-C0kfWMMc.js} +1 -1
- package/dist/twilight/{p-B7njTcyQ.js → p-C7BsTxLN.js} +1 -1
- package/dist/twilight/{p-CWSAc4x3.js → p-CZ4us-OW.js} +1 -1
- package/dist/twilight/{p-uGRgz5pT.js → p-DTVc8PSy.js} +1 -1
- package/dist/twilight/{p-C9apxUCF.js → p-DkFvXnTU.js} +1 -1
- package/dist/twilight/{p-CZzwVBvr.js → p-YBYQ1IRq.js} +1 -1
- package/dist/twilight/{p-3d031db4.entry.js → p-ab717a96.entry.js} +1 -1
- package/dist/twilight/{p-ed7410d9.entry.js → p-ad4003fd.entry.js} +1 -1
- package/dist/twilight/{p-f0e36346.entry.js → p-ade89f79.entry.js} +1 -1
- package/dist/twilight/{p-bd1539f4.entry.js → p-ae107cb6.entry.js} +1 -1
- package/dist/twilight/p-akcJQPrL.js +9 -0
- package/dist/twilight/{p-4dfa5176.entry.js → p-b4b03890.entry.js} +1 -1
- package/dist/twilight/p-b5658790.entry.js +4 -0
- package/dist/twilight/{p-7ee53da2.entry.js → p-b9793df6.entry.js} +1 -1
- package/dist/twilight/{p-80b61a76.entry.js → p-ba06196b.entry.js} +1 -1
- package/dist/twilight/{p-888b361e.entry.js → p-c8a460c0.entry.js} +1 -1
- package/dist/twilight/p-c9dc08e9.entry.js +4 -0
- package/dist/twilight/{p-e825da6f.entry.js → p-cbbbf280.entry.js} +1 -1
- package/dist/twilight/{p-c3416bea.entry.js → p-cc9e266a.entry.js} +1 -1
- package/dist/twilight/{p-5e353422.entry.js → p-ce844f61.entry.js} +1 -1
- package/dist/twilight/p-d1b2c259.entry.js +4 -0
- package/dist/twilight/p-d2edf700.entry.js +4 -0
- package/dist/twilight/{p-bd24ad46.entry.js → p-d5ae1bd3.entry.js} +1 -1
- package/dist/twilight/{p-a0374cc5.entry.js → p-d72d82c2.entry.js} +1 -1
- package/dist/twilight/{p-d44de146.entry.js → p-da6e4d60.entry.js} +1 -1
- package/dist/twilight/p-deaa32fd.entry.js +4 -0
- package/dist/twilight/{p-7ca7130b.entry.js → p-e0fa2bc5.entry.js} +1 -1
- package/dist/twilight/{p-23f9bac7.entry.js → p-e3b11077.entry.js} +1 -1
- package/dist/twilight/{p-32387b75.entry.js → p-e5535ac3.entry.js} +1 -1
- package/dist/twilight/{p-a5b9b1db.entry.js → p-e9799703.entry.js} +1 -1
- package/dist/twilight/{p-4ecb3a12.entry.js → p-ea4cf5c5.entry.js} +1 -1
- package/dist/twilight/{p-d58be43c.entry.js → p-f3597f21.entry.js} +1 -1
- package/dist/twilight/{p-af191f0c.entry.js → p-f424854a.entry.js} +1 -1
- package/dist/twilight/{p-b3a426a1.entry.js → p-f5f8ab50.entry.js} +1 -1
- package/dist/twilight/{p-a037b850.entry.js → p-fc2d0c94.entry.js} +1 -1
- package/dist/twilight/{p-Bbi316x0.js → p-jvvBvp8R.js} +1 -1
- package/dist/twilight/{p-Dnvn8dmm.js → p-lMbG1CIQ.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cashback-banner/salla-cashback-banner.d.ts +20 -0
- package/dist/types/components/salla-comments/interfaces.d.ts +1 -0
- package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -0
- package/dist/types/components/salla-loyalty-points-banner/salla-loyalty-points-banner.d.ts +12 -0
- package/dist/types/components.d.ts +26 -0
- package/package.json +5 -5
- package/dist/twilight/p-1dd5a941.entry.js +0 -4
- package/dist/twilight/p-20824b36.entry.js +0 -4
- package/dist/twilight/p-22b1ab5e.entry.js +0 -4
- package/dist/twilight/p-2a88b328.entry.js +0 -4
- package/dist/twilight/p-2d47d5fd.entry.js +0 -4
- package/dist/twilight/p-5158bd60.entry.js +0 -4
- package/dist/twilight/p-56a5491f.entry.js +0 -4
- package/dist/twilight/p-640a439c.entry.js +0 -4
- package/dist/twilight/p-653349e0.entry.js +0 -4
- package/dist/twilight/p-6788c2fb.entry.js +0 -4
- package/dist/twilight/p-B798epj8.js +0 -9
- package/dist/twilight/p-BpqRyGw0.js +0 -9
- package/dist/twilight/p-d064a0b8.entry.js +0 -4
- package/dist/twilight/p-e20c4393.entry.js +0 -4
- package/dist/twilight/p-f80b718e.entry.js +0 -4
|
@@ -606,10 +606,12 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
606
606
|
};
|
|
607
607
|
this.handleCountrySelected = (item) => {
|
|
608
608
|
const country = this.countries.find(c => String(c.id) === String(item.id)) || item;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
609
|
+
// Hide empty cart alert (INV-44)
|
|
610
|
+
// const isCountrySwitch =
|
|
611
|
+
// this.selectedCountry &&
|
|
612
|
+
// country &&
|
|
613
|
+
// this.selectedCountry.code !== (country as Country).code;
|
|
614
|
+
// this.showCartWillBeClearedBanner = !!isCountrySwitch;
|
|
613
615
|
this.countrySearchQuery = '';
|
|
614
616
|
this.displayedCountries = this.countries;
|
|
615
617
|
this.applyCountryChange(country || null);
|
|
@@ -675,6 +677,11 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
675
677
|
* Opens the bullet delivery modal
|
|
676
678
|
*/
|
|
677
679
|
async open() {
|
|
680
|
+
// If mobile app, open the sheet
|
|
681
|
+
if (this.isMobileApp) {
|
|
682
|
+
Salla.event.dispatch('salla::bullet-delivery.open-sheet');
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
678
685
|
// If component is not ready yet, mark as pending and return
|
|
679
686
|
if (!this.componentReady || !this.modal) {
|
|
680
687
|
this.pendingOpen = true;
|
|
@@ -2434,7 +2441,9 @@ const SallaBulletDelivery$1 = /*@__PURE__*/ proxyCustomElement(class SallaBullet
|
|
|
2434
2441
|
this.componentReady = true;
|
|
2435
2442
|
if (this.isMobileApp) {
|
|
2436
2443
|
// Ask the mobile app to render its native delivery sheet (replacement for our modal).
|
|
2437
|
-
|
|
2444
|
+
if (!this.hasBeenShownThisSession()) {
|
|
2445
|
+
Salla.event.dispatch('salla::bullet-delivery.open-sheet');
|
|
2446
|
+
}
|
|
2438
2447
|
// When the user confirms inside the mobile sheet, mobile dispatches
|
|
2439
2448
|
// `salla::bullet-delivery.select` with a payload equivalent to what
|
|
2440
2449
|
// `handleConfirm()` produces on desktop. Apply the same side-effects.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaCashbackBanner extends Components.SallaCashbackBanner, HTMLElement {}
|
|
4
|
+
export const SallaCashbackBanner: {
|
|
5
|
+
prototype: SallaCashbackBanner;
|
|
6
|
+
new (): SallaCashbackBanner;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { s as setTranslations } from './translations.js';
|
|
6
|
+
|
|
7
|
+
var StarFilledIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<g clip-path="url(#clip0_5667_2008)">
|
|
9
|
+
<path d="M9.00003 0.935974C9.37203 0.935974 9.72003 1.06797 10.044 1.33197C10.344 1.57197 10.596 1.90797 10.8 2.33997L12.114 5.00397C12.174 5.09997 12.27 5.19897 12.402 5.30097C12.534 5.40297 12.66 5.46597 12.78 5.48997L15.174 5.88597C15.618 5.95797 15.996 6.10197 16.308 6.31797C16.644 6.54597 16.869 6.83697 16.983 7.19097C17.097 7.54497 17.082 7.91397 16.938 8.29797C16.806 8.64597 16.578 8.98797 16.254 9.32397L14.4 11.196C14.316 11.28 14.247 11.409 14.193 11.583C14.139 11.757 14.13 11.91 14.166 12.042L14.688 14.364C14.808 14.88 14.832 15.342 14.76 15.75C14.676 16.206 14.475 16.551 14.157 16.785C13.839 17.019 13.452 17.106 12.996 17.046C12.588 16.998 12.156 16.836 11.7 16.56L9.45003 15.21C9.34203 15.15 9.19203 15.12 9.00003 15.12C8.80803 15.12 8.65803 15.15 8.55003 15.21L6.30003 16.56C5.84403 16.836 5.41203 16.998 5.00403 17.046C4.54803 17.106 4.16103 17.016 3.84303 16.776C3.52503 16.536 3.32403 16.194 3.24003 15.75C3.16803 15.342 3.19203 14.88 3.31203 14.364L3.83403 12.042C3.85803 11.91 3.84603 11.757 3.79803 11.583C3.75003 11.409 3.68403 11.28 3.60003 11.196L1.74603 9.32397C1.41003 8.98797 1.18203 8.64597 1.06203 8.29797C0.918027 7.91397 0.900027 7.54497 1.00803 7.19097C1.11603 6.83697 1.34403 6.54597 1.69203 6.31797C1.99203 6.10197 2.37003 5.95797 2.82603 5.88597L5.22003 5.48997C5.32803 5.46597 5.45103 5.40297 5.58903 5.30097C5.72703 5.19897 5.82003 5.09997 5.86803 5.00397L7.18203 2.33997C7.39803 1.90797 7.65603 1.57197 7.95603 1.33197C8.28003 1.06797 8.62803 0.935974 9.00003 0.935974Z" fill="white"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<clipPath id="clip0_5667_2008">
|
|
13
|
+
<rect width="18" height="18" fill="white"/>
|
|
14
|
+
</clipPath>
|
|
15
|
+
</defs>
|
|
16
|
+
</svg>
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const sallaCashbackBannerCss = "";
|
|
20
|
+
|
|
21
|
+
const SallaCashbackBanner$1 = /*@__PURE__*/ proxyCustomElement(class SallaCashbackBanner extends HTMLElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.__registerHost();
|
|
25
|
+
this.cashbackData = null;
|
|
26
|
+
this.productId = null;
|
|
27
|
+
}
|
|
28
|
+
async componentWillLoad() {
|
|
29
|
+
try {
|
|
30
|
+
await salla.onReady();
|
|
31
|
+
await salla.lang.onLoaded();
|
|
32
|
+
await setTranslations();
|
|
33
|
+
this.productId = this.host.dataset.productId || salla.config.get('page.id');
|
|
34
|
+
if (!this.productId) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const response = await salla.api
|
|
38
|
+
.request(`/products/${this.productId}/cashback-offer`)
|
|
39
|
+
.catch(() => null);
|
|
40
|
+
this.cashbackData = response?.data || null;
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
salla?.logger?.warn?.('salla-cashback-banner: init failed', e);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
getPaymentMethodsText(methods = []) {
|
|
47
|
+
return methods
|
|
48
|
+
.map(method => String(method || '').trim())
|
|
49
|
+
.filter(Boolean)
|
|
50
|
+
.map(method => salla.lang.get(`pages.checkout.${method}`) || method)
|
|
51
|
+
.join(', ');
|
|
52
|
+
}
|
|
53
|
+
getCashbackMessage() {
|
|
54
|
+
const includedMethods = this.cashbackData?.payment_method_restrictions?.included ?? [];
|
|
55
|
+
if (includedMethods.length) {
|
|
56
|
+
return salla.lang.get('pages.loyalty_program.cashback_when_buying_product_payment_method', {
|
|
57
|
+
payment_method: this.getPaymentMethodsText(includedMethods),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return salla.lang.get('pages.loyalty_program.cashback_when_buying_product');
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
if (!this.productId || !Number(this.cashbackData?.amount)) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const cashbackValue = this.cashbackData.amount;
|
|
67
|
+
const currency = this.cashbackData.currency;
|
|
68
|
+
const cashbackMessage = this.getCashbackMessage();
|
|
69
|
+
const cashbackType = this.cashbackData.offer_type;
|
|
70
|
+
return (h(Host, null, h("div", { class: "s-cashback-banner-container" }, h("div", { class: "s-cashback-banner-icon" }, h("span", { class: "s-cashback-banner-inner-icon", innerHTML: StarFilledIcon })), h("p", null, h("span", { class: "s-cashback-banner-label" }, salla.lang.get('pages.loyalty_program.earn'), ' '), h("span", { class: "s-cashback-banner-value" }, cashbackType === "percentage" ? "+" : "", cashbackValue, " ", ['SAR', 'ر.س'].includes(currency) ? h("i", { class: "sicon-sar" }) : currency, ' '), h("span", { class: "s-cashback-banner-label" }, cashbackMessage)))));
|
|
71
|
+
}
|
|
72
|
+
get host() { return this; }
|
|
73
|
+
static get style() { return sallaCashbackBannerCss; }
|
|
74
|
+
}, [0, "salla-cashback-banner", {
|
|
75
|
+
"cashbackData": [32],
|
|
76
|
+
"productId": [32]
|
|
77
|
+
}]);
|
|
78
|
+
function defineCustomElement$1() {
|
|
79
|
+
if (typeof customElements === "undefined") {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const components = ["salla-cashback-banner"];
|
|
83
|
+
components.forEach(tagName => { switch (tagName) {
|
|
84
|
+
case "salla-cashback-banner":
|
|
85
|
+
if (!customElements.get(tagName)) {
|
|
86
|
+
customElements.define(tagName, SallaCashbackBanner$1);
|
|
87
|
+
}
|
|
88
|
+
break;
|
|
89
|
+
} });
|
|
90
|
+
}
|
|
91
|
+
defineCustomElement$1();
|
|
92
|
+
|
|
93
|
+
const SallaCashbackBanner = SallaCashbackBanner$1;
|
|
94
|
+
const defineCustomElement = defineCustomElement$1;
|
|
95
|
+
|
|
96
|
+
export { SallaCashbackBanner, defineCustomElement };
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { I as IconVerified } from './check.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
6
|
+
import { d as defineCustomElement$6 } from './salla-button2.js';
|
|
7
|
+
import { d as defineCustomElement$5 } from './salla-loading2.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './salla-modal2.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './salla-rating-stars2.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './salla-slider2.js';
|
|
11
|
+
import { d as defineCustomElement$1 } from './salla-tooltip2.js';
|
|
11
12
|
|
|
12
13
|
var Reply = `<!-- Generated by IcoMoon.io -->
|
|
13
14
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -30,6 +31,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
30
31
|
super();
|
|
31
32
|
this.__registerHost();
|
|
32
33
|
// Translations
|
|
34
|
+
this.locked_trans = salla.lang.get('blocks.comments.locked');
|
|
33
35
|
this.has_bought_trans = salla.lang.get('blocks.comments.has_bought');
|
|
34
36
|
this.rated_trans = salla.lang.get('pages.rating.rated');
|
|
35
37
|
this.waiting_approval_trans = salla.lang.get('blocks.comments.waiting_approval');
|
|
@@ -49,8 +51,12 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
49
51
|
const setTranslations = async () => {
|
|
50
52
|
await setNestedAsync('ar.trans', 'blocks.comments.helpful', 'مفيد');
|
|
51
53
|
await setNestedAsync('en.trans', 'blocks.comments.helpful', 'Helpful');
|
|
54
|
+
await setNestedAsync('ar.trans', 'blocks.comments.locked', 'الرد غير ظاهر لباقي العملاء');
|
|
55
|
+
await setNestedAsync('en.trans', 'blocks.comments.locked', 'The reply is not visible to other customers');
|
|
52
56
|
this.helpfulLabel = salla.lang.getWithDefault('blocks.comments.helpful', 'مفيد');
|
|
57
|
+
this.locked_trans = salla.lang.getWithDefault('blocks.comments.locked', 'الرد غير ظاهر لباقي العملاء');
|
|
53
58
|
};
|
|
59
|
+
this.locked_trans = salla.lang.get('blocks.comments.locked');
|
|
54
60
|
this.has_bought_trans = salla.lang.get('blocks.comments.has_bought');
|
|
55
61
|
this.rated_trans = salla.lang.get('pages.rating.rated');
|
|
56
62
|
this.waiting_approval_trans = salla.lang.get('blocks.comments.waiting_approval');
|
|
@@ -59,6 +65,8 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
59
65
|
});
|
|
60
66
|
}
|
|
61
67
|
componentDidLoad() {
|
|
68
|
+
if (!this.comment)
|
|
69
|
+
return;
|
|
62
70
|
this.likesCount = this.comment.likes_count;
|
|
63
71
|
try {
|
|
64
72
|
this.likedComments = JSON.parse(localStorage.getItem('liked_comments') || '[]');
|
|
@@ -138,20 +146,29 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
138
146
|
}
|
|
139
147
|
localStorage.setItem('liked_comments', JSON.stringify(this.likedComments));
|
|
140
148
|
}
|
|
149
|
+
isPrivateComment(comment) {
|
|
150
|
+
return comment.status === 'hidden';
|
|
151
|
+
}
|
|
141
152
|
PinnedIcon() {
|
|
142
153
|
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "16", height: "16", color: "#555555", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M12 16V21" }), h("path", { d: "M8 5.2918C8 5.02079 8 4.88529 8.01312 4.77132C8.1194 3.84789 8.84789 3.1194 9.77133 3.01312C9.88529 3 10.0208 3 10.2918 3H13.7082C13.9792 3 14.1147 3 14.2287 3.01312C15.1521 3.1194 15.8806 3.84789 15.9869 4.77132C16 4.88529 16 5.02079 16 5.2918C16 5.37885 16 5.42237 15.9967 5.46264C15.9708 5.78281 15.7927 6.07104 15.5179 6.2374C15.4834 6.25832 15.4444 6.27779 15.3666 6.31672L15.1055 6.44726C14.7021 6.64897 14.5003 6.74983 14.3681 6.90564C14.26 7.03286 14.1856 7.18509 14.1515 7.34846C14.1097 7.54854 14.1539 7.76968 14.2424 8.21197L15 12H15.3333C15.9533 12 16.2633 12 16.5176 12.0681C17.2078 12.2531 17.7469 12.7922 17.9319 13.4824C18 13.7367 18 14.0467 18 14.6667C18 14.9767 18 15.1317 17.9659 15.2588C17.8735 15.6039 17.6039 15.8735 17.2588 15.9659C17.1317 16 16.9767 16 16.6667 16H7.33333C7.02334 16 6.86835 16 6.74118 15.9659C6.39609 15.8735 6.12654 15.6039 6.03407 15.2588C6 15.1317 6 14.9767 6 14.6667C6 14.0467 6 13.7367 6.06815 13.4824C6.25308 12.7922 6.79218 12.2531 7.48236 12.0681C7.73669 12 8.04669 12 8.66667 12H9L9.75761 8.21197C9.84606 7.76968 9.89029 7.54854 9.84852 7.34846C9.81441 7.18509 9.73995 7.03286 9.63194 6.90564C9.49965 6.74983 9.29794 6.64897 8.89452 6.44726L8.63344 6.31672C8.55558 6.27779 8.51665 6.25832 8.48208 6.2374C8.20731 6.07104 8.02917 5.78281 8.00326 5.46264C8 5.42237 8 5.37885 8 5.2918Z" })));
|
|
143
154
|
}
|
|
155
|
+
LockedIcon() {
|
|
156
|
+
return (h("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M3.5 4.66683V4.0835C3.5 2.1505 5.067 0.583496 7 0.583496C8.93299 0.583496 10.5 2.1505 10.5 4.0835V4.66683H11.6667C11.9888 4.66683 12.25 4.928 12.25 5.25016V12.2502C12.25 12.5723 11.9888 12.8335 11.6667 12.8335H2.33333C2.01117 12.8335 1.75 12.5723 1.75 12.2502V5.25016C1.75 4.928 2.01117 4.66683 2.33333 4.66683H3.5ZM11.0833 5.8335H2.91667V11.6668H11.0833V5.8335ZM6.41667 9.1774C6.06795 8.97568 5.83333 8.59867 5.83333 8.16683C5.83333 7.52248 6.35565 7.00016 7 7.00016C7.64435 7.00016 8.16667 7.52248 8.16667 8.16683C8.16667 8.59867 7.93205 8.97568 7.58333 9.1774V10.5002H6.41667V9.1774ZM4.66667 4.66683H9.33333V4.0835C9.33333 2.79483 8.28864 1.75016 7 1.75016C5.71134 1.75016 4.66667 2.79483 4.66667 4.0835V4.66683Z", fill: "#555555" })));
|
|
157
|
+
}
|
|
144
158
|
render() {
|
|
159
|
+
if (!this.comment) {
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
145
162
|
let isAdmin = this.comment.type == 'admin';
|
|
146
|
-
return (h(Host, {
|
|
163
|
+
return (h(Host, { class: isAdmin ? 's-comments-item-admin' : 's-comments-item' }, h("div", { class: { "s-comments-item-wrapper": !isAdmin, "s-comments-item-admin-wrapper": isAdmin }, id: `s-comments-item-${this.comment.id}` }, h("div", { class: "s-comments-item-inner s-comments-flex-1" }, isAdmin && h("span", { class: "s-comments-item-reply-icon", innerHTML: Reply }), h("div", { class: "s-comments-item-avatar" }, h("img", { "data-src": this.comment?.avatar, alt: this.comment?.name, src: this.comment?.avatar, class: "s-comments-item-avatar-img lazy" })), h("div", { class: "s-comments-flex-1" }, h("div", { class: "s-comments-item-user-wrapper" }, h("div", { class: "s-comments-item-user-info" }, h("h3", { class: this.comment.is_pinned ? "s-comments-item-user-info-name" : "s-comments-item-user-info-name-with-margin" }, this.comment?.name), this.comment.is_pinned ?
|
|
147
164
|
h("div", { class: "s-comments-item-pinned-icon-with-margin" }, this.PinnedIcon())
|
|
148
165
|
: null, (this.comment.has_order || !!this.comment.rating) && !this.comment.is_pending && !this.hideBought ?
|
|
149
166
|
h("div", { class: "s-comments-flex" }, this.comment.has_order ?
|
|
150
167
|
[h("span", { class: "s-comments-item-has-order-check-icon", innerHTML: IconVerified }), h("span", { class: "s-comments-item-has-order-check-text" }, this.has_bought_trans, " ", this.comment.rating ? ', ' : '')] : null, !!this.comment.rating ?
|
|
151
168
|
h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
|
|
152
|
-
: null), h("p", {
|
|
169
|
+
: null), h("p", { class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
|
|
153
170
|
h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
|
|
154
|
-
: null), h("div", {
|
|
171
|
+
: null), h("div", { class: "s-comments-item-content" }, h("div", { class: "s-comments-item-content-container" }, this.isPrivateComment(this.comment) ? (h("div", { id: `s-comments-item-${this.comment.id}-locked-icon`, class: "s-comments-item-pinned-icon" }, this.LockedIcon())) : null, h("p", { innerHTML: this.comment.content })), this.isPrivateComment(this.comment) ? (h("salla-tooltip", { text: this.locked_trans, targetId: `s-comments-item-${this.comment.id}-locked-icon` })) : null, this.allowAttachImages && h("div", { class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
|
|
155
172
|
h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
|
|
156
173
|
this.getReplies().map((reply) => {
|
|
157
174
|
return h("div", null, h("salla-comment-item", { comment: reply }));
|
|
@@ -162,6 +179,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
162
179
|
}, [0, "salla-comment-item", {
|
|
163
180
|
"comment": [16],
|
|
164
181
|
"hideBought": [16, "hide-bought"],
|
|
182
|
+
"locked_trans": [32],
|
|
165
183
|
"has_bought_trans": [32],
|
|
166
184
|
"rated_trans": [32],
|
|
167
185
|
"waiting_approval_trans": [32],
|
|
@@ -176,7 +194,7 @@ function defineCustomElement() {
|
|
|
176
194
|
if (typeof customElements === "undefined") {
|
|
177
195
|
return;
|
|
178
196
|
}
|
|
179
|
-
const components = ["salla-comment-item", "salla-button", "salla-comment-item", "salla-loading", "salla-modal", "salla-rating-stars", "salla-slider"];
|
|
197
|
+
const components = ["salla-comment-item", "salla-button", "salla-comment-item", "salla-loading", "salla-modal", "salla-rating-stars", "salla-slider", "salla-tooltip"];
|
|
180
198
|
components.forEach(tagName => { switch (tagName) {
|
|
181
199
|
case "salla-comment-item":
|
|
182
200
|
if (!customElements.get(tagName)) {
|
|
@@ -185,7 +203,7 @@ function defineCustomElement() {
|
|
|
185
203
|
break;
|
|
186
204
|
case "salla-button":
|
|
187
205
|
if (!customElements.get(tagName)) {
|
|
188
|
-
defineCustomElement$
|
|
206
|
+
defineCustomElement$6();
|
|
189
207
|
}
|
|
190
208
|
break;
|
|
191
209
|
case "salla-comment-item":
|
|
@@ -195,20 +213,25 @@ function defineCustomElement() {
|
|
|
195
213
|
break;
|
|
196
214
|
case "salla-loading":
|
|
197
215
|
if (!customElements.get(tagName)) {
|
|
198
|
-
defineCustomElement$
|
|
216
|
+
defineCustomElement$5();
|
|
199
217
|
}
|
|
200
218
|
break;
|
|
201
219
|
case "salla-modal":
|
|
202
220
|
if (!customElements.get(tagName)) {
|
|
203
|
-
defineCustomElement$
|
|
221
|
+
defineCustomElement$4();
|
|
204
222
|
}
|
|
205
223
|
break;
|
|
206
224
|
case "salla-rating-stars":
|
|
207
225
|
if (!customElements.get(tagName)) {
|
|
208
|
-
defineCustomElement$
|
|
226
|
+
defineCustomElement$3();
|
|
209
227
|
}
|
|
210
228
|
break;
|
|
211
229
|
case "salla-slider":
|
|
230
|
+
if (!customElements.get(tagName)) {
|
|
231
|
+
defineCustomElement$2();
|
|
232
|
+
}
|
|
233
|
+
break;
|
|
234
|
+
case "salla-tooltip":
|
|
212
235
|
if (!customElements.get(tagName)) {
|
|
213
236
|
defineCustomElement$1();
|
|
214
237
|
}
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
5
5
|
import { a as anime } from './anime.es.js';
|
|
6
6
|
import { H as Helper } from './Helper.js';
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
7
|
+
import { d as defineCustomElement$b } from './salla-button2.js';
|
|
8
|
+
import { d as defineCustomElement$a } from './salla-comment-form2.js';
|
|
9
|
+
import { d as defineCustomElement$9 } from './salla-comment-item2.js';
|
|
10
|
+
import { d as defineCustomElement$8 } from './salla-loading2.js';
|
|
11
|
+
import { d as defineCustomElement$7 } from './salla-modal2.js';
|
|
12
|
+
import { d as defineCustomElement$6 } from './salla-progress-bar2.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './salla-rating-stars2.js';
|
|
14
|
+
import { d as defineCustomElement$4 } from './salla-reviews-summary2.js';
|
|
15
|
+
import { d as defineCustomElement$3 } from './salla-slider2.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './salla-tooltip2.js';
|
|
16
17
|
|
|
17
18
|
var CommentType;
|
|
18
19
|
(function (CommentType) {
|
|
@@ -361,7 +362,7 @@ function defineCustomElement$1() {
|
|
|
361
362
|
if (typeof customElements === "undefined") {
|
|
362
363
|
return;
|
|
363
364
|
}
|
|
364
|
-
const components = ["salla-comments", "salla-button", "salla-comment-form", "salla-comment-item", "salla-loading", "salla-modal", "salla-progress-bar", "salla-rating-stars", "salla-reviews-summary", "salla-slider"];
|
|
365
|
+
const components = ["salla-comments", "salla-button", "salla-comment-form", "salla-comment-item", "salla-loading", "salla-modal", "salla-progress-bar", "salla-rating-stars", "salla-reviews-summary", "salla-slider", "salla-tooltip"];
|
|
365
366
|
components.forEach(tagName => { switch (tagName) {
|
|
366
367
|
case "salla-comments":
|
|
367
368
|
if (!customElements.get(tagName)) {
|
|
@@ -370,45 +371,50 @@ function defineCustomElement$1() {
|
|
|
370
371
|
break;
|
|
371
372
|
case "salla-button":
|
|
372
373
|
if (!customElements.get(tagName)) {
|
|
373
|
-
defineCustomElement$
|
|
374
|
+
defineCustomElement$b();
|
|
374
375
|
}
|
|
375
376
|
break;
|
|
376
377
|
case "salla-comment-form":
|
|
377
378
|
if (!customElements.get(tagName)) {
|
|
378
|
-
defineCustomElement$
|
|
379
|
+
defineCustomElement$a();
|
|
379
380
|
}
|
|
380
381
|
break;
|
|
381
382
|
case "salla-comment-item":
|
|
382
383
|
if (!customElements.get(tagName)) {
|
|
383
|
-
defineCustomElement$
|
|
384
|
+
defineCustomElement$9();
|
|
384
385
|
}
|
|
385
386
|
break;
|
|
386
387
|
case "salla-loading":
|
|
387
388
|
if (!customElements.get(tagName)) {
|
|
388
|
-
defineCustomElement$
|
|
389
|
+
defineCustomElement$8();
|
|
389
390
|
}
|
|
390
391
|
break;
|
|
391
392
|
case "salla-modal":
|
|
392
393
|
if (!customElements.get(tagName)) {
|
|
393
|
-
defineCustomElement$
|
|
394
|
+
defineCustomElement$7();
|
|
394
395
|
}
|
|
395
396
|
break;
|
|
396
397
|
case "salla-progress-bar":
|
|
397
398
|
if (!customElements.get(tagName)) {
|
|
398
|
-
defineCustomElement$
|
|
399
|
+
defineCustomElement$6();
|
|
399
400
|
}
|
|
400
401
|
break;
|
|
401
402
|
case "salla-rating-stars":
|
|
402
403
|
if (!customElements.get(tagName)) {
|
|
403
|
-
defineCustomElement$
|
|
404
|
+
defineCustomElement$5();
|
|
404
405
|
}
|
|
405
406
|
break;
|
|
406
407
|
case "salla-reviews-summary":
|
|
407
408
|
if (!customElements.get(tagName)) {
|
|
408
|
-
defineCustomElement$
|
|
409
|
+
defineCustomElement$4();
|
|
409
410
|
}
|
|
410
411
|
break;
|
|
411
412
|
case "salla-slider":
|
|
413
|
+
if (!customElements.get(tagName)) {
|
|
414
|
+
defineCustomElement$3();
|
|
415
|
+
}
|
|
416
|
+
break;
|
|
417
|
+
case "salla-tooltip":
|
|
412
418
|
if (!customElements.get(tagName)) {
|
|
413
419
|
defineCustomElement$2();
|
|
414
420
|
}
|
|
@@ -130,7 +130,7 @@ const SallaConditionalFields = /*@__PURE__*/ proxyCustomElement(class SallaCondi
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: '9931740a40a239483408056ae458769a0ab3997d' }, h("slot", { key: '6db0aa3b6db44f3811d1ed456672218891018d6f' })));
|
|
134
134
|
}
|
|
135
135
|
get host() { return this; }
|
|
136
136
|
}, [4, "salla-conditional-fields", undefined, [[0, "change", "changeHandler"], [0, "input", "changeHandler"]]]);
|
|
@@ -234,7 +234,7 @@ const SallaCountDown = /*@__PURE__*/ proxyCustomElement(class SallaCountDown ext
|
|
|
234
234
|
return this.renderCountDown();
|
|
235
235
|
}
|
|
236
236
|
render() {
|
|
237
|
-
return (h(Host, { key: '
|
|
237
|
+
return (h(Host, { key: 'b9b5d0e038afdf2dd88da15eb711752d2a9a45af', class: `s-count-down-wrapper ${this.preOrder && this.isValidDate(this.date) ? 's-count-down-pre-order' : ''} ${this.horizontal ? 's-count-down-horizontal' : ''} ${this.withButton ? 's-count-down-with-button' : ''} ${this.offerEnded ? 's-count-down-ended' : ''}` }, this.renderPrefixText(), this.renderContent(), this.offerEnded && this.renderOfferEnded(), this.renderButton()));
|
|
238
238
|
}
|
|
239
239
|
static get style() { return sallaCountDownCss; }
|
|
240
240
|
}, [0, "salla-count-down", {
|
|
@@ -211,7 +211,7 @@ const SallaDatetimePicker = /*@__PURE__*/ proxyCustomElement(class SallaDatetime
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
|
-
return h("div", { key: '
|
|
214
|
+
return h("div", { key: '6fe501ca4d900b3706121742fa64e36c10371713', class: "s-datetime-picker" }, h("input", { key: '54946e6afb30e7dad49ca8b8fd9d2416bbad4e84', type: "datetime", name: this.name, value: this.value, required: this.required, disabled: this.disabled, placeholder: this.placeholder, class: "s-datetime-picker-input", ref: (el) => this.dateInput = el }));
|
|
215
215
|
}
|
|
216
216
|
async componentDidLoad() {
|
|
217
217
|
// Load flatpickr before initializing
|
|
@@ -316,11 +316,11 @@ const SallaFileUpload = /*@__PURE__*/ proxyCustomElement(class SallaFileUpload e
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: '6b8c9ee59a13e8819988a13489a79c8f3391c614', class: {
|
|
320
320
|
"s-file-upload": true,
|
|
321
321
|
"s-file-upload-profile-image": this.profileImage,
|
|
322
322
|
"s-file-upload-multiple": this.allowMultiple,
|
|
323
|
-
} }, h("input", { key: '
|
|
323
|
+
} }, h("input", { key: '4245938bfb2652084cb3115001263c7d690aa8e0', type: "file", name: this.name, value: this.value, ref: ele => this.fileUploader = ele, required: this.required, class: "s-file-upload-wrapper s-file-upload-input", accept: this.accept }), this.allowMultiple && this.showMaxCountHint ? h("div", { class: "s-file-upload-hint s-hidden" }, this.max_count_hint(this.maxFilesCount)) : '', h("input", { key: '7fdab946cf08747fdee40f9f9a2b2819803a299e', class: "s-hidden", name: 'hidden-' + this.name, required: this.required, value: this.value, ref: input => this.hiddenInput = input })));
|
|
324
324
|
}
|
|
325
325
|
async componentDidLoad() {
|
|
326
326
|
await Salla.onReady();
|
|
@@ -190,12 +190,12 @@ const SallaFiltersWidget = /*@__PURE__*/ proxyCustomElement(class SallaFiltersWi
|
|
|
190
190
|
return h("span", { class: "s-filters-option-name" }, label);
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: 'a3377234cae7a9565f403d859e60ee71cb9b9e00', class: "s-filters-widget-container" }, h("h3", { key: 'd797565b06c795a6b19d5fa6c93da583e291cc01', class: "s-filters-widget-title", onClick: () => this.toggleWidget() }, h("span", { key: '35e933096973744c332cfb3a0346b57f7dd28a76' }, this.option.label), h("span", { key: '2c27dacf5242da14f2cddca9f99af09bb9cb3bea', class: `s-filters-widget-plusminus ${this.isOpen ? 's-filters-widget-plusminus-active' : ''}` })), h("div", { key: '6f85c5af558a2b47e9779225d2fb9b99d2dd78e5', class: "s-filters-widget-content", ref: (el) => this.widgetContent = el }, Array.isArray(this.option.values) && this.option.values.length > 5 && (h("div", { key: 'd6c9fe9baf08d095346d52e5e6836ca7a26dae7f', class: "s-filters-widget-search-wrapper", style: { padding: '8px 0', marginBottom: '8px' } }, h("input", { key: '44ac9fc9e7488165acccbac8a7bd95a3f863dab8', type: "text", class: "s-filters-widget-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder') || 'بحث...', value: this.searchQuery, onInput: (e) => this.searchQuery = e.target.value }))), h("div", { key: 'a8350384975504985098f0b9f1ae6c086537886b', class: "s-filters-widget-values", ref: (el) => this.widgetValues = el }, h("slot", { key: '20acece0e29070b6f1359ab1d3f16e928d461742' }), this.option.type !== FilterOptionTypes.RANGE
|
|
194
194
|
? this.renderFilterOption(this.option)
|
|
195
195
|
: h("salla-price-range", { onChanged: (event) => {
|
|
196
196
|
this.changed.emit(event.detail);
|
|
197
197
|
}, ref: price => this.priceRange = price, filtersData: this.filtersData, option: this.option })), this.withLoadMore && (!this.searchQuery || this.filteredCount > this.initialItemCount) &&
|
|
198
|
-
h("a", { key: '
|
|
198
|
+
h("a", { key: 'a628397d54fc254fe36458c4bbdca0dad0a0e6ad', class: "s-filters-widget-more", onClick: () => this.showMore() }, !this.isShowMore ? this.showMoreLabel : this.showLessLabel))));
|
|
199
199
|
}
|
|
200
200
|
get host() { return this; }
|
|
201
201
|
static get style() { return sallaFiltersWidgetCss; }
|
|
@@ -196,7 +196,7 @@ const SallaFilters$1 = /*@__PURE__*/ proxyCustomElement(class SallaFilters exten
|
|
|
196
196
|
this.applyFilters();
|
|
197
197
|
}
|
|
198
198
|
render() {
|
|
199
|
-
return h(Host, { key: '
|
|
199
|
+
return h(Host, { key: '8fe009d0a0b52956fa634544aa414e554b77a128' }, this.filters?.map(option => h("salla-filters-widget", { option: option, filtersData: this.filtersData, onChanged: ({ detail: { event, option, value } }) => {
|
|
200
200
|
this.handleOptionChange(event, option, value);
|
|
201
201
|
} })), this.filters?.length ? h("div", { class: "s-filters-footer" }, h("salla-button", { color: 'gray', fill: 'outline', onClick: () => this.resetFilters() }, this.reset)) : '');
|
|
202
202
|
}
|
|
@@ -565,7 +565,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
565
565
|
}
|
|
566
566
|
render() {
|
|
567
567
|
return [
|
|
568
|
-
h("div", { key: '
|
|
568
|
+
h("div", { key: '2bc4ff1b223c9b1f2e50e36c7f6e6f0448f5a51d' }, h("salla-list-tile", { key: 'b5cf74b6d00c292a1c654c695d316a0a34e70c30', class: this.generateClass() }, h("div", { key: '2e229e46039a9bbf071bc65534733c9da61545f8', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: 'b067244c213dd0c3c64f795f07b4c27f57c661f5' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'a8804b65526bfde36bbb82302d667bc10052ff4b', slot: "subtitle" }, h("div", { key: 'cf2ca350ab3884baa192ce1c043719eb8f9a0120' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'f68182d4324c4b56893b63e046e4298c519e449e', slot: "action" }, h("salla-button", { key: '6cf71ec0311dfe7804f4634ae1203e0ae65150be', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '9b00d0c0c7a594e7e9635a79a6b4a472da73ebe3', name: "widget-btn-content" }, h("div", { key: 'a73ed9d6322c4484180f68e7c8fb7a3b4e5bdb8a', class: "s-gifting-widget-action-content" }, h("span", { key: '0ce7ec753ab1ec30269127a8426a36d55d983a6e', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: 'ae35a5669a30e7abb61e5d540224c2be5baae82a' }, this.sectionBtnText)))))), h("salla-modal", { key: 'dee19984ecc71f6e10c330121361359d00408448', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '10eee2481652b157c44b16d34097ffcce9325d81', slot: "loading" }, h("div", { key: '325446006a0bf5d6d480c8935912fe976ccd453d', class: "s-gifting-skeleton" }, h("div", { key: 'f256cc302b946906262450f0bb023912d034aa13', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: '75bf0e81841a4c41e4105f19bd3e4fbf67ece325', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '64661720e2f94f6d8b86087d3a03538a1a419202', class: "s-gifting-modal-title" }, h("div", { key: 'd5000d6903f5a7b61beb6a0a88291953e1344ba3', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: '07efd33b877468df617bab4cd2f1b73e73f2d284', height: '15px', width: '150px' })))), h("div", { key: '6fb9d9abf7e211a6ecc45ee50283d37d1755b220', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: 'ed76848f4c017334dea4f12c07ec6556646c397f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'cfe3e107536dac9e5b1524770eb6990ab3b6460b', height: '230px' }), h("salla-skeleton", { key: 'a35af25d98f5758bf442759841536fed09f6cdd2', height: '10px', width: '150px' }), h("salla-skeleton", { key: '6950704fb24a07807542723f2752b6a734090d42', height: '30px' }), h("salla-skeleton", { key: 'bd65f98a07ee8d041434b9b475ce4c355318f586', height: '40px' })))), h("slot", { key: 'e946b5c7a4146d0118d321d860d332d17c3f931e', name: "header" }), !!this.hasError ?
|
|
569
569
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
|
|
570
570
|
:
|
|
571
571
|
[
|
|
@@ -585,7 +585,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
585
585
|
h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label" }, this.receiverCityFieldLabel), h("select", { name: "city", "aria-label": salla.lang.get('blocks.buy_as_gift.select_city'), class: "s-form-control", onChange: (event) => this.handleReceiverCity(event), disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId) }, h("option", { value: "", selected: true }, this.loadingCities ? salla.lang.get('common.elements.loading') : this.selectCity), this.gift?.cities?.map((city) => (h("option", { value: city.id }, city.name)))), this.errors && this.errors['receiver.city_id'] ?
|
|
586
586
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
|
|
587
587
|
h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.selectCityInfo)), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
|
|
588
|
-
], h("slot", { key: '
|
|
588
|
+
], h("slot", { key: '579cbbcc59818051def887c38e4d0eed6e690737', name: "footer" })))
|
|
589
589
|
];
|
|
590
590
|
}
|
|
591
591
|
static get style() { return sallaGiftingCss; }
|
|
@@ -17,7 +17,7 @@ const SallaHook$1 = /*@__PURE__*/ proxyCustomElement(class SallaHook extends HTM
|
|
|
17
17
|
this.host.before(element);
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return h(Host, { key: '
|
|
20
|
+
return h(Host, { key: '499483c55f2e1122d80768cd43e47f8e127a62b4' });
|
|
21
21
|
}
|
|
22
22
|
async componentDidLoad() {
|
|
23
23
|
// Register this component for hooks system, already on it logic to run componentDidLoad trigger
|
|
@@ -25,7 +25,7 @@ const SallaListTile = /*@__PURE__*/ proxyCustomElement(class SallaListTile exten
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'bb33776d01406ff1e04bbdc741312f1a17ac3b7b' }, h("a", { key: '386b417c954bf4b2bac34e40d9bae19db7f61ec3', class: this.generateClass(), href: this.href || "#", target: this.target, "aria-label": "List Tile Link" }, h("div", { key: 'cbcd8c6f92a4cbe7afbd8797c36ae6f529abed1c', class: "s-list-tile-item-icon" }, h("slot", { key: 'bff76fdb467b2491f0c3b40bd7f475eda23fa9c8', name: 'icon' })), h("div", { key: 'c80e7c032abedea8d5929d8bb36a642336724fe1', class: "s-list-tile-item-content" }, h("div", { key: '2bea0273bb4c012e0f9f7ee948b14bc9ea8afc2a', class: "s-list-tile-item-title" }, h("slot", { key: '60c872b9ec9b369ba65452abad7860b3ba6ba640', name: 'title' })), h("div", { key: 'fbb1b6e49284c74f2933f056aa16fcbc25526703', class: "s-list-tile-item-subtitle" }, h("slot", { key: '5ad1bba1b71db13d4deb594ccb0f5898f24d2f23', name: "subtitle" }))), h("div", { key: '96358bf7ed34907a799efd8c6fb2caae6ca02f43', class: "s-list-tile-item-action" }, h("slot", { key: '8d496724103f0c3959845c8f5d4e662a3095c09e', name: 'action' })))));
|
|
29
29
|
}
|
|
30
30
|
static get style() { return sallaListTileCss; }
|
|
31
31
|
}, [4, "salla-list-tile", {
|
|
@@ -27,7 +27,7 @@ const SallaLoading = /*@__PURE__*/ proxyCustomElement(class SallaLoading extends
|
|
|
27
27
|
this.bgColor = "#e5e7eb";
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '43f0680ce1f04ebda7083a4e15e69db9f19eea8f', class: "s-loading-container" }, h("svg", { key: '1b10899828e6b40f9a4535a6c5748382d2235382', "aria-hidden": "true", style: { width: `${this.size}px`, height: `${this.size}px`, fill: this.color, color: this.bgColor }, class: "s-loading", viewBox: "0 0 100 101", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '2866a19de0250199769271535cfa84531241507a', d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z", fill: "currentColor" }), h("path", { key: '8dd072bcfbca9299d4a9479fc00666bf174b48aa', d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z", fill: "currentFill" }))));
|
|
31
31
|
}
|
|
32
32
|
static get style() { return sallaLoadingCss; }
|
|
33
33
|
}, [0, "salla-loading", {
|
|
@@ -213,7 +213,7 @@ const SallaLocalizationModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaLoc
|
|
|
213
213
|
this.showTrigger
|
|
214
214
|
? h("button", { type: "button", onClick: () => this.open(), class: "s-localization-modal-trigger-btn" }, h("span", null, this.getLanguageName()), h("span", { class: "s-localization-modal-trigger-separator" }, "|"), " ", h("span", { innerHTML: this.getCurrencySymbol() }))
|
|
215
215
|
: '',
|
|
216
|
-
h("salla-modal", { key: '
|
|
216
|
+
h("salla-modal", { key: '862b768f3a0f9abe079703030bb686178d418ca7', isLoading: true, class: "s-hidden", ref: modal => this.modal = modal, width: "xs" }, h("div", { key: '96ce8b449b2c96718de083df1b39bf19d18e4543', slot: 'loading' }, h("div", { key: '44ba3efdf44d8758b9824dfbee98081549aad41f', class: "s-localization-modal-skeleton" }, h("salla-skeleton", { key: '66c85016f14871d05eb296691962ddf0e5b8a512', width: '25%', height: '15px' }), h("div", { key: 'e3e0a9cf51572f13456f82d9b08a14a132a01657', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: '4c60b249bd54e0850471967d176a789f38f95841', width: '25%', height: '15px' }), h("div", { key: '7da8613b052a1dab1b34cf54fad755f703b68e5a', class: "s-localization-modal-skeleton-content" }, [...Array(4)].map(() => h("div", { class: "s-localization-modal-skeleton-item" }, h("div", { class: "s-localization-modal-skeleton-item-flex" }, h("salla-skeleton", { type: 'circle', height: '16px', width: '16px' }), h("salla-skeleton", { height: '10px', width: '100px' })), h("salla-skeleton", { height: '15px', width: '20px' })))), h("salla-skeleton", { key: 'b465504898a6861d5cce2456444cc81e7bc61376', height: '40px', width: '100%' }))), !!this.hasError ?
|
|
217
217
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "description" }, this.errorMessage)) :
|
|
218
218
|
h("div", { class: "s-localization-modal-inner" }, this.languages.length > 1 ?
|
|
219
219
|
h("div", { class: "s-localization-modal-section" }, h("label", { class: "s-localization-modal-title" }, Salla.lang.get('common.titles.language')), h("div", { class: "s-localization-modal-section-inner" }, this.languages.length < 6 ?
|
|
@@ -11,13 +11,13 @@ const SallaLoyaltyHero = /*@__PURE__*/ proxyCustomElement(class SallaLoyaltyHero
|
|
|
11
11
|
this.__registerHost();
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'f273bd77fb72c44195d5c59028505a217e4fb2f2' }, h("section", { key: 'dfe6196286fe59610bd084fbf0513bae4dfbe254', class: "s-loyalty-program-hero-container" }, h("div", { key: 'bcbcf95e78477768d050093294147fb6d9777046', class: "s-loyalty-program-hero-background", style: {
|
|
15
15
|
backgroundImage: `url(${this.image})`,
|
|
16
|
-
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '
|
|
16
|
+
} }, this.image ? h("div", { class: "s-loyalty-program-hero-overlay" }) : '', h("div", { key: '61ea985f1105f98da5a6bc58ddce42e88b23df28', class: {
|
|
17
17
|
's-loyalty-program-hero-content': true,
|
|
18
18
|
's-loyalty-program-hero-white': !!this.image,
|
|
19
19
|
's-loyalty-program-hero-gray': !this.image,
|
|
20
|
-
} }, h("div", { key: '
|
|
20
|
+
} }, h("div", { key: '74b4e725bc91e72fb4512533e9d91dccd2f2a040' }, h("h1", { key: '3f9b8a0d9a1fc9c58007049b91f4852c0e7a9470', class: "s-loyalty-program-hero-title" }, this.name || h("span", { key: 'a404bae08a1d4922b73eef9122f540b4a5a412ae', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "name")), h("p", { key: '04df0835694628c383d8cbb5455400d47bcce501', class: "s-loyalty-program-hero-description" }, this.description || h("span", { key: 'c0d757cbffaf88a4f40dd1a61444189d36c40763', style: { color: 'transparent', backgroundColor: '#666', borderRadius: '12px' } }, "description"))), h("slot", { key: 'cd347b02a9c588dca9d98723c7e06adfba5662f8', name: "action" }))), h("div", { key: '261ed03dd2f3ea1ae218b82bf6f2897321fd18c2', class: "s-loyalty-program-hero-footer" }, h("div", { key: 'bf78eba028f33115c6d6ea11bd613bef7202e100', class: "s-loyalty-program-hero-slot-container" }, h("slot", { key: 'd061f05ef8d7959a226b2a3b2d5d915ac525dbe0', name: "crosspoint" }))))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return sallaLoyaltyProgramCss; }
|
|
23
23
|
}, [4, "salla-loyalty-hero", {
|