@salla.sa/twilight-components 2.14.488 → 2.14.490
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-05NO31dc.js → filepond-DMNwZGDe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-BSzyn1DL.js → filepond-plugin-file-poster-CwJqn9cv.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DJKsosMa.js → filepond-plugin-file-validate-size-D8HCq_yt.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-C0xLud1P.js → filepond-plugin-file-validate-type-DZHIztrf.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-Dq1zXDYS.js → filepond-plugin-image-edit-DtW6aab5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B84Q7JSN.js → filepond-plugin-image-exif-orientation-DlHuggE7.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BaE9P79l.js → filepond-plugin-image-preview-rSt0R5Fs.js} +1 -1
- package/dist/cjs/{functions-B-_Pnqnt.js → functions-Cl4vQLXn.js} +1 -1
- package/dist/cjs/{index-f6loD1zL.js → index-CfrGmYJa.js} +17 -5
- package/dist/cjs/{index-BsvV4QQg.js → index-CrTL2nRh.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- 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 +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- 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-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +45 -0
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +112 -30
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.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 +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1060 -0
- package/dist/cjs/salla-rating-modal.cjs.entry.js +38 -14
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +127 -0
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- 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 +3 -3
- 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/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/shipping-fast-CsqEQE78.js +13 -0
- package/dist/{esm/star-ZT7ehBBk.js → cjs/star-DMzrN05M.js} +4 -2
- package/dist/cjs/{tracked-promise-We1h_qB4.js → tracked-promise-ClJBjg9o.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-Ck8OFt14.js → vanilla-picker-um8NlppX.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/salla-comments/salla-comment-factors.js +76 -0
- package/dist/collection/components/salla-comments/salla-comment-item.js +20 -6
- package/dist/collection/components/salla-comments/salla-comments.css +110 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +1203 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +112 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -2
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +34 -1
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +117 -16
- package/dist/collection/components/salla-review-factors-tags/helpers.js +86 -0
- package/dist/collection/components/salla-review-factors-tags/interfaces.js +1 -0
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +41 -0
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +135 -0
- 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-reviews-summary/salla-reviews-summary.css +60 -0
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js +12 -2
- 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/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/salla-comment-factors.d.ts +11 -0
- package/dist/components/salla-comment-factors.js +9 -0
- package/dist/components/salla-comment-factors2.js +66 -0
- package/dist/components/salla-comment-item2.js +29 -9
- package/dist/components/salla-comments.js +9 -3
- package/dist/components/salla-rating-modal-v2.d.ts +11 -0
- package/dist/components/salla-rating-modal-v2.js +9 -0
- package/dist/components/salla-rating-modal-v22.js +1149 -0
- package/dist/components/salla-rating-modal.js +49 -19
- package/dist/components/salla-rating-stars2.js +80 -17
- package/dist/components/salla-review-factors-tags.d.ts +11 -0
- package/dist/components/salla-review-factors-tags.js +149 -0
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews-summary2.js +13 -3
- package/dist/components/salla-reviews.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-share2.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/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{filepond-2lHD_yVt.js → filepond-Cg7o_vnN.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DIjVVIwh.js → filepond-plugin-file-poster-BJ1q5i_Q.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CfcICNJA.js → filepond-plugin-file-validate-size-KAp2gG4p.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DsvYMiJr.js → filepond-plugin-file-validate-type-D6KC6aKt.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-B7K5Ib7q.js → filepond-plugin-image-edit-CsviUA8z.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-9iz6i-up.js → filepond-plugin-image-exif-orientation-DORQxh2z.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-C89IBH1s.js → filepond-plugin-image-preview-DiN_MPtQ.js} +1 -1
- package/dist/esm/{functions-CJdqLH4P.js → functions-ChcWts7Y.js} +1 -1
- package/dist/esm/{index-K0OclOPO.js → index-DkTbP5UX.js} +17 -5
- package/dist/esm/{index-D1YskPUH.js → index-nv62Rr6s.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- 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 +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- 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-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +43 -0
- package/dist/esm/salla-comment-form_8.entry.js +112 -30
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.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 +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1058 -0
- package/dist/esm/salla-rating-modal.entry.js +36 -12
- package/dist/esm/salla-review-factors-tags.entry.js +125 -0
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- 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 +5 -5
- 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/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/shipping-fast-lMgMt31Q.js +11 -0
- package/dist/{cjs/star-DGcH7Yso.js → esm/star-CeFAfcTv.js} +2 -4
- package/dist/esm/{tracked-promise-yWzlErXb.js → tracked-promise-BhGtlRVb.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Bwq5IBwq.js → vanilla-picker-CBI_4fLe.js} +1 -1
- package/dist/twilight/{p-997a1fdf.entry.js → p-01240db4.entry.js} +1 -1
- package/dist/twilight/{p-4df90b34.entry.js → p-01cd2407.entry.js} +1 -1
- package/dist/twilight/{p-917bae25.entry.js → p-02b365bd.entry.js} +1 -1
- package/dist/twilight/p-03ab9920.entry.js +4 -0
- package/dist/twilight/{p-1ec309ad.entry.js → p-03cc6665.entry.js} +1 -1
- package/dist/twilight/{p-416e7ea9.entry.js → p-0a32b0d6.entry.js} +1 -1
- package/dist/twilight/{p-52df99a3.entry.js → p-0de58301.entry.js} +1 -1
- package/dist/twilight/{p-c6026f2e.entry.js → p-0e0db003.entry.js} +1 -1
- package/dist/twilight/p-0f853d19.entry.js +4 -0
- package/dist/twilight/{p-0f6a9e5e.entry.js → p-0f859745.entry.js} +1 -1
- package/dist/twilight/{p-680e0dca.entry.js → p-0ff0a5cd.entry.js} +1 -1
- package/dist/twilight/{p-b2a12062.entry.js → p-111e8bd4.entry.js} +1 -1
- package/dist/twilight/{p-bd50d1c4.entry.js → p-1182a8df.entry.js} +1 -1
- package/dist/twilight/{p-eeb0e354.entry.js → p-121dc015.entry.js} +1 -1
- package/dist/twilight/{p-df6739de.entry.js → p-15bc19e7.entry.js} +1 -1
- package/dist/twilight/{p-387e06ce.entry.js → p-18dada14.entry.js} +1 -1
- package/dist/twilight/{p-c1e7fe98.entry.js → p-1a3e548c.entry.js} +1 -1
- package/dist/twilight/{p-12d485db.entry.js → p-1f43ed62.entry.js} +1 -1
- package/dist/twilight/{p-ccbf4eea.entry.js → p-2414aef5.entry.js} +1 -1
- package/dist/twilight/{p-363417b6.entry.js → p-25bfec19.entry.js} +1 -1
- package/dist/twilight/{p-8a274920.entry.js → p-26211933.entry.js} +1 -1
- package/dist/twilight/{p-f97717b9.entry.js → p-2656742a.entry.js} +1 -1
- package/dist/twilight/{p-8b45c13a.entry.js → p-26594c13.entry.js} +1 -1
- package/dist/twilight/{p-5dbdf0e7.entry.js → p-271b69a0.entry.js} +1 -1
- package/dist/twilight/{p-c01100d0.entry.js → p-27ae0022.entry.js} +1 -1
- package/dist/twilight/{p-9efc4b59.entry.js → p-28318fdf.entry.js} +1 -1
- package/dist/twilight/{p-9dc6f28e.entry.js → p-28636b6b.entry.js} +1 -1
- package/dist/twilight/{p-28eea468.entry.js → p-2b6f45d9.entry.js} +1 -1
- package/dist/twilight/{p-04612ed4.entry.js → p-2bcfed29.entry.js} +1 -1
- package/dist/twilight/{p-95c6ca83.entry.js → p-2e2d9a86.entry.js} +1 -1
- package/dist/twilight/{p-72bc40b3.entry.js → p-31c63840.entry.js} +1 -1
- package/dist/twilight/{p-8878ec9e.entry.js → p-38e6442f.entry.js} +1 -1
- package/dist/twilight/p-3956807e.entry.js +4 -0
- package/dist/twilight/{p-CJRTPVPy.js → p-495aeIVH.js} +1 -1
- package/dist/twilight/{p-c497fa37.entry.js → p-4b659dd8.entry.js} +1 -1
- package/dist/twilight/{p-5dc0f3c0.entry.js → p-51be1247.entry.js} +1 -1
- package/dist/twilight/{p-f6c20f25.entry.js → p-556550d6.entry.js} +1 -1
- package/dist/twilight/{p-507e04b3.entry.js → p-57926552.entry.js} +1 -1
- package/dist/twilight/{p-cd11cafc.entry.js → p-583b37a5.entry.js} +1 -1
- package/dist/twilight/{p-fe6e676c.entry.js → p-5932a5aa.entry.js} +1 -1
- package/dist/twilight/{p-2ea6c5c6.entry.js → p-5cd89a8e.entry.js} +1 -1
- package/dist/twilight/{p-3cee41e1.entry.js → p-6c74b5a4.entry.js} +1 -1
- package/dist/twilight/{p-8f204414.entry.js → p-7092d5e9.entry.js} +1 -1
- package/dist/twilight/{p-75345728.entry.js → p-7331a7d0.entry.js} +1 -1
- package/dist/twilight/{p-0be72b27.entry.js → p-75b9780f.entry.js} +1 -1
- package/dist/twilight/{p-44819d23.entry.js → p-75d071f5.entry.js} +1 -1
- package/dist/twilight/{p-868b6dcc.entry.js → p-78364b26.entry.js} +1 -1
- package/dist/twilight/{p-d6ace1e8.entry.js → p-7869e2b4.entry.js} +1 -1
- package/dist/twilight/{p-62e99802.entry.js → p-789ede46.entry.js} +1 -1
- package/dist/twilight/{p-168bfefc.entry.js → p-7cb04076.entry.js} +1 -1
- package/dist/twilight/{p-1abccd80.entry.js → p-7fa40598.entry.js} +1 -1
- package/dist/twilight/{p-f4b040f0.entry.js → p-8430e33c.entry.js} +1 -1
- package/dist/twilight/p-8549ed85.entry.js +4 -0
- package/dist/twilight/{p-d1b3e98b.entry.js → p-88bc9aff.entry.js} +1 -1
- package/dist/twilight/{p-8ba7b32d.entry.js → p-8d83987b.entry.js} +1 -1
- package/dist/twilight/{p-54047fdd.entry.js → p-956be35f.entry.js} +1 -1
- package/dist/twilight/{p-d5bbdd47.entry.js → p-9c27c468.entry.js} +1 -1
- package/dist/twilight/{p-4Xs3NevL.js → p-B4xPvvKC.js} +1 -1
- package/dist/twilight/{p-BgI56yKL.js → p-Bp81rq7T.js} +1 -1
- package/dist/twilight/{p-ZT7ehBBk.js → p-CeFAfcTv.js} +1 -1
- package/dist/twilight/{p-BF7QVpUp.js → p-CszkocSp.js} +2 -2
- package/dist/twilight/{p-3Yh5uCQZ.js → p-CvcP7d1k.js} +1 -1
- package/dist/twilight/{p-DTwxTvVu.js → p-D1tp_3zr.js} +1 -1
- package/dist/twilight/{p-6iwUgroX.js → p-D3lg7_WR.js} +1 -1
- package/dist/twilight/{p-Bnnviqjp.js → p-D68AOZPQ.js} +1 -1
- package/dist/twilight/{p-K0OclOPO.js → p-DkTbP5UX.js} +2 -2
- package/dist/twilight/{p-327d33c2.entry.js → p-a104a885.entry.js} +1 -1
- package/dist/twilight/{p-8b2fb172.entry.js → p-a5310ab5.entry.js} +1 -1
- package/dist/twilight/{p-30796ada.entry.js → p-ab8ffcbf.entry.js} +1 -1
- package/dist/twilight/{p-9d51f43d.entry.js → p-acf6a8f0.entry.js} +1 -1
- package/dist/twilight/{p-4bdd0eab.entry.js → p-ad8111fa.entry.js} +1 -1
- package/dist/twilight/{p-fb9f7001.entry.js → p-af41ebe4.entry.js} +1 -1
- package/dist/twilight/{p-cdfe32c9.entry.js → p-b4fc5871.entry.js} +1 -1
- package/dist/twilight/{p-f5242092.entry.js → p-b7916db2.entry.js} +1 -1
- package/dist/twilight/{p-c19cdf96.entry.js → p-b87ac43c.entry.js} +1 -1
- package/dist/twilight/{p-7cfe5dbf.entry.js → p-bdca0d7a.entry.js} +1 -1
- package/dist/twilight/{p-6e6f4879.entry.js → p-be44f2e4.entry.js} +1 -1
- package/dist/twilight/{p-18c99d79.entry.js → p-bf50723d.entry.js} +1 -1
- package/dist/twilight/{p-283b7a09.entry.js → p-c0dd76e3.entry.js} +1 -1
- package/dist/twilight/{p-7ab11977.entry.js → p-c3c9b136.entry.js} +1 -1
- package/dist/twilight/{p-cb475d27.entry.js → p-c583ab13.entry.js} +1 -1
- package/dist/twilight/p-c71a6e9c.entry.js +4 -0
- package/dist/twilight/{p-24eb59ac.entry.js → p-c774a729.entry.js} +1 -1
- package/dist/twilight/p-c80b8b30.entry.js +4 -0
- package/dist/twilight/{p-76f06b0a.entry.js → p-c9dcf28b.entry.js} +1 -1
- package/dist/twilight/{p-DZu6rifA.js → p-cUujZ85s.js} +1 -1
- package/dist/twilight/{p-5effd85b.entry.js → p-ca1c1c50.entry.js} +2 -2
- package/dist/twilight/{p-e9439252.entry.js → p-cbbfec66.entry.js} +1 -1
- package/dist/twilight/{p-3f1913e0.entry.js → p-ce0d56c1.entry.js} +1 -1
- package/dist/twilight/{p-906dfda7.entry.js → p-d0eb0e3d.entry.js} +1 -1
- package/dist/twilight/{p-7a738892.entry.js → p-d27c3758.entry.js} +1 -1
- package/dist/twilight/p-d617bb3f.entry.js +4 -0
- package/dist/twilight/{p-e30f415c.entry.js → p-d7633d87.entry.js} +1 -1
- package/dist/twilight/{p-bb7d240f.entry.js → p-d981255b.entry.js} +1 -1
- package/dist/twilight/{p-2368ab21.entry.js → p-d9e7a2a9.entry.js} +1 -1
- package/dist/twilight/{p-cb9501dc.entry.js → p-dca909c8.entry.js} +1 -1
- package/dist/twilight/{p-90976775.entry.js → p-df9267ca.entry.js} +1 -1
- package/dist/twilight/{p-44ed9315.entry.js → p-eba770b4.entry.js} +1 -1
- package/dist/twilight/{p-9cb07624.entry.js → p-ee67787c.entry.js} +1 -1
- package/dist/twilight/{p-c1b56f08.entry.js → p-f303739b.entry.js} +1 -1
- package/dist/twilight/{p-3e9bba4f.entry.js → p-f834ded2.entry.js} +1 -1
- package/dist/twilight/{p-b69cc47d.entry.js → p-f855ad35.entry.js} +1 -1
- package/dist/twilight/{p-1695dd23.entry.js → p-faf369b8.entry.js} +1 -1
- package/dist/twilight/{p-4e16be16.entry.js → p-fc26088c.entry.js} +1 -1
- package/dist/twilight/{p-BHY6Sj5y.js → p-jgiIvZFz.js} +1 -1
- package/dist/twilight/p-lMgMt31Q.js +4 -0
- package/dist/twilight/{p-BZ24UYWJ.js → p-qT0_dvbw.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-comments/interfaces.d.ts +6 -0
- package/dist/types/components/salla-comments/salla-comment-factors.d.ts +6 -0
- package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -0
- package/dist/types/components/salla-comments/salla-comments.d.ts +2 -2
- package/dist/types/components/salla-rating-modal/order-feedback-response.d.ts +32 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +151 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +5 -1
- package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +13 -0
- package/dist/types/components/salla-review-factors-tags/helpers.d.ts +16 -0
- package/dist/types/components/salla-review-factors-tags/interfaces.d.ts +17 -0
- package/dist/types/components/salla-review-factors-tags/salla-review-factors-tags.d.ts +24 -0
- package/dist/types/components/salla-reviews-summary/interfaces.d.ts +5 -0
- package/dist/types/components/salla-reviews-summary/salla-reviews-summary.d.ts +2 -0
- package/dist/types/components.d.ts +114 -2
- package/package.json +5 -5
- package/dist/twilight/p-38c82b5b.entry.js +0 -4
- package/dist/twilight/p-db3da75c.entry.js +0 -4
- package/dist/twilight/p-e10eed6e.entry.js +0 -4
- package/dist/twilight/p-e52bbc5f.entry.js +0 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaCommentFactors extends Components.SallaCommentFactors, HTMLElement {}
|
|
4
|
+
export const SallaCommentFactors: {
|
|
5
|
+
prototype: SallaCommentFactors;
|
|
6
|
+
new (): SallaCommentFactors;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { S as SallaCommentFactors$1, d as defineCustomElement$1 } from './salla-comment-factors2.js';
|
|
5
|
+
|
|
6
|
+
const SallaCommentFactors = SallaCommentFactors$1;
|
|
7
|
+
const defineCustomElement = defineCustomElement$1;
|
|
8
|
+
|
|
9
|
+
export { SallaCommentFactors, defineCustomElement };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
5
|
+
import { d as defineCustomElement$1 } from './salla-rating-stars2.js';
|
|
6
|
+
|
|
7
|
+
const sallaCommentsCss = ":host{display:block}.s-comments-item-review-factors-toggle{display:inline-flex;align-items:center;gap:0.35rem;padding:0;border:0;background:transparent;color:#0f6a7c;font-size:0.9rem;font-weight:500;cursor:pointer}.s-comments-item-review-factors-chevron{line-height:1;transform:rotate(180deg);transition:transform 0.2s ease}.s-comments-item-review-factors-chevron.is-open{transform:rotate(0deg)}.s-comments-item-review-factors{border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);border-radius:0.6rem;width:min(100%, 26rem);max-width:100%;margin:0 0 1rem;padding:0.85rem 1rem}@media (max-width: 767px){.s-comments-item-review-factors{width:100%;padding:0.75rem}}.s-comments-item-review-factor-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;direction:ltr;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-row{flex-direction:row;align-items:stretch;gap:0.35rem}}.s-comments-item-review-factor-row+.s-comments-item-review-factor-row{margin-top:0.5rem}.s-comments-item-review-factor-label,.s-comments-item-review-factor-name{color:#4b5563;font-size:0.9rem;line-height:1.45}.s-comments-item-review-factor-name{min-width:6.5rem;text-align:end;flex-shrink:0}@media (max-width: 767px){.s-comments-item-review-factor-name{min-width:5rem;text-align:end}}.s-comments-item-review-factor-label{display:inline-block;min-width:4.75rem}@media (max-width: 767px){.s-comments-item-review-factor-label{min-width:0;flex:1 1 auto}}.s-comments-item-review-factor-value{display:inline-flex;align-items:center;gap:0.35rem;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-value{width:100%;justify-content:space-between;gap:0.25rem}}.s-comments-item-review-factor-stars{flex-shrink:0}.s-comments-item-review-factor-stars .s-rating-stars-wrapper{gap:0}";
|
|
8
|
+
|
|
9
|
+
const SallaCommentFactors = /*@__PURE__*/ proxyCustomElement(class SallaCommentFactors extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.factors = [];
|
|
14
|
+
}
|
|
15
|
+
getReviewFactorLabel(factor) {
|
|
16
|
+
if (factor.label) {
|
|
17
|
+
return factor.label;
|
|
18
|
+
}
|
|
19
|
+
// Fall back to defaults matching the storefront locale when the
|
|
20
|
+
// translation keys are missing, instead of always showing Arabic.
|
|
21
|
+
const isArabic = (salla.lang.locale || 'ar').startsWith('ar');
|
|
22
|
+
const defaultLabels = isArabic
|
|
23
|
+
? ['ضعيف', 'مقبول', 'جيد', 'جيد جدا', 'ممتاز']
|
|
24
|
+
: ['Poor', 'Average', 'Good', 'Very good', 'Excellent'];
|
|
25
|
+
const ratingLabels = [
|
|
26
|
+
salla.lang.getWithDefault('pages.rating.poor', defaultLabels[0]),
|
|
27
|
+
salla.lang.getWithDefault('pages.rating.average', defaultLabels[1]),
|
|
28
|
+
salla.lang.getWithDefault('pages.rating.good', defaultLabels[2]),
|
|
29
|
+
salla.lang.getWithDefault('pages.rating.very_good', defaultLabels[3]),
|
|
30
|
+
salla.lang.getWithDefault('pages.rating.excellent', defaultLabels[4]),
|
|
31
|
+
];
|
|
32
|
+
const rating = Number(factor.rating || 0);
|
|
33
|
+
const clampedRating = Math.max(1, Math.min(5, Math.round(rating)));
|
|
34
|
+
return ratingLabels[clampedRating - 1] || '';
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
if (!this.factors?.length) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return (h("div", { class: "s-comments-item-review-factors" }, this.factors.map((factor) => (h("div", { class: "s-comments-item-review-factor-row" }, h("div", { class: "s-comments-item-review-factor-value" }, h("span", { class: "s-comments-item-review-factor-label text-left rtl:text-right" }, this.getReviewFactorLabel(factor)), h("salla-rating-stars", { size: "mini", class: "s-comments-item-review-factor-stars", value: factor.rating })), h("span", { class: "s-comments-item-review-factor-name" }, factor.name))))));
|
|
41
|
+
}
|
|
42
|
+
static get style() { return sallaCommentsCss; }
|
|
43
|
+
}, [0, "salla-comment-factors", {
|
|
44
|
+
"factors": [16]
|
|
45
|
+
}]);
|
|
46
|
+
function defineCustomElement() {
|
|
47
|
+
if (typeof customElements === "undefined") {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const components = ["salla-comment-factors", "salla-rating-stars"];
|
|
51
|
+
components.forEach(tagName => { switch (tagName) {
|
|
52
|
+
case "salla-comment-factors":
|
|
53
|
+
if (!customElements.get(tagName)) {
|
|
54
|
+
customElements.define(tagName, SallaCommentFactors);
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case "salla-rating-stars":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
defineCustomElement$1();
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
} });
|
|
63
|
+
}
|
|
64
|
+
defineCustomElement();
|
|
65
|
+
|
|
66
|
+
export { SallaCommentFactors as S, defineCustomElement as d };
|
|
@@ -3,7 +3,8 @@
|
|
|
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$
|
|
6
|
+
import { d as defineCustomElement$7 } from './salla-button2.js';
|
|
7
|
+
import { d as defineCustomElement$6 } from './salla-comment-factors2.js';
|
|
7
8
|
import { d as defineCustomElement$5 } from './salla-loading2.js';
|
|
8
9
|
import { d as defineCustomElement$4 } from './salla-modal2.js';
|
|
9
10
|
import { d as defineCustomElement$3 } from './salla-rating-stars2.js';
|
|
@@ -24,7 +25,7 @@ var ThumbsUp = `<!-- Generated by IcoMoon.io -->
|
|
|
24
25
|
</svg>
|
|
25
26
|
`;
|
|
26
27
|
|
|
27
|
-
const sallaCommentsCss = ":host{display:block}";
|
|
28
|
+
const sallaCommentsCss = ":host{display:block}.s-comments-item-review-factors-toggle{display:inline-flex;align-items:center;gap:0.35rem;padding:0;border:0;background:transparent;color:#0f6a7c;font-size:0.9rem;font-weight:500;cursor:pointer}.s-comments-item-review-factors-chevron{line-height:1;transform:rotate(180deg);transition:transform 0.2s ease}.s-comments-item-review-factors-chevron.is-open{transform:rotate(0deg)}.s-comments-item-review-factors{border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);border-radius:0.6rem;width:min(100%, 26rem);max-width:100%;margin:0 0 1rem;padding:0.85rem 1rem}@media (max-width: 767px){.s-comments-item-review-factors{width:100%;padding:0.75rem}}.s-comments-item-review-factor-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;direction:ltr;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-row{flex-direction:row;align-items:stretch;gap:0.35rem}}.s-comments-item-review-factor-row+.s-comments-item-review-factor-row{margin-top:0.5rem}.s-comments-item-review-factor-label,.s-comments-item-review-factor-name{color:#4b5563;font-size:0.9rem;line-height:1.45}.s-comments-item-review-factor-name{min-width:6.5rem;text-align:end;flex-shrink:0}@media (max-width: 767px){.s-comments-item-review-factor-name{min-width:5rem;text-align:end}}.s-comments-item-review-factor-label{display:inline-block;min-width:4.75rem}@media (max-width: 767px){.s-comments-item-review-factor-label{min-width:0;flex:1 1 auto}}.s-comments-item-review-factor-value{display:inline-flex;align-items:center;gap:0.35rem;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-value{width:100%;justify-content:space-between;gap:0.25rem}}.s-comments-item-review-factor-stars{flex-shrink:0}.s-comments-item-review-factor-stars .s-rating-stars-wrapper{gap:0}";
|
|
28
29
|
|
|
29
30
|
const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem extends HTMLElement {
|
|
30
31
|
constructor() {
|
|
@@ -38,9 +39,11 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
38
39
|
this.has_order_trans = salla.lang.get('blocks.comments.has_order');
|
|
39
40
|
this.allowLikes = salla.config.get('store.settings.rating.allow_likes');
|
|
40
41
|
this.allowAttachImages = salla.config.get('store.settings.rating.allow_attach_images');
|
|
41
|
-
this.helpfulLabel = salla.lang.
|
|
42
|
+
this.helpfulLabel = salla.lang.get('blocks.comments.helpful');
|
|
43
|
+
this.reviewDetailsLabel = salla.lang.get('blocks.comments.review_details');
|
|
42
44
|
this.likesCount = 0;
|
|
43
45
|
this.likedComments = [];
|
|
46
|
+
this.showReviewFactors = false;
|
|
44
47
|
salla.lang.onLoaded(() => {
|
|
45
48
|
const setNestedAsync = (lang, key, value) => {
|
|
46
49
|
return new Promise((resolve) => {
|
|
@@ -51,9 +54,12 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
51
54
|
const setTranslations = async () => {
|
|
52
55
|
await setNestedAsync('ar.trans', 'blocks.comments.helpful', 'مفيد');
|
|
53
56
|
await setNestedAsync('en.trans', 'blocks.comments.helpful', 'Helpful');
|
|
57
|
+
await setNestedAsync('ar.trans', 'blocks.comments.review_details', 'تفاصيل التقييم');
|
|
58
|
+
await setNestedAsync('en.trans', 'blocks.comments.review_details', 'Review details');
|
|
54
59
|
await setNestedAsync('ar.trans', 'blocks.comments.locked', 'الرد غير ظاهر لباقي العملاء');
|
|
55
60
|
await setNestedAsync('en.trans', 'blocks.comments.locked', 'The reply is not visible to other customers');
|
|
56
|
-
this.
|
|
61
|
+
this.reviewDetailsLabel = salla.lang.get('blocks.comments.review_details');
|
|
62
|
+
this.helpfulLabel = salla.lang.get('blocks.comments.helpful');
|
|
57
63
|
this.locked_trans = salla.lang.getWithDefault('blocks.comments.locked', 'الرد غير ظاهر لباقي العملاء');
|
|
58
64
|
};
|
|
59
65
|
this.locked_trans = salla.lang.get('blocks.comments.locked');
|
|
@@ -79,6 +85,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
79
85
|
salla.log('Bad json for liked_comments');
|
|
80
86
|
}
|
|
81
87
|
}
|
|
88
|
+
;
|
|
82
89
|
getReplies() {
|
|
83
90
|
return Array.isArray(this.comment.replies) ? this.comment.replies : [this.comment.replies];
|
|
84
91
|
}
|
|
@@ -149,6 +156,9 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
149
156
|
isPrivateComment(comment) {
|
|
150
157
|
return comment.status === 'hidden';
|
|
151
158
|
}
|
|
159
|
+
getReviewFactors() {
|
|
160
|
+
return Array.isArray(this.comment.factor_reviews) ? this.comment.factor_reviews : [];
|
|
161
|
+
}
|
|
152
162
|
PinnedIcon() {
|
|
153
163
|
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" })));
|
|
154
164
|
}
|
|
@@ -160,15 +170,18 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
160
170
|
return null;
|
|
161
171
|
}
|
|
162
172
|
let isAdmin = this.comment.type == 'admin';
|
|
173
|
+
const reviewFactors = this.getReviewFactors();
|
|
174
|
+
const hasReviewFactors = reviewFactors.length > 0;
|
|
163
175
|
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 ?
|
|
164
176
|
h("div", { class: "s-comments-item-pinned-icon-with-margin" }, this.PinnedIcon())
|
|
165
177
|
: null, (this.comment.has_order || !!this.comment.rating) && !this.comment.is_pending && !this.hideBought ?
|
|
166
178
|
h("div", { class: "s-comments-flex" }, this.comment.has_order ?
|
|
167
179
|
[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 ?
|
|
168
180
|
h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
|
|
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 ?
|
|
170
|
-
|
|
171
|
-
|
|
181
|
+
: 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 || hasReviewFactors) && (h("div", { class: "flex flex-row gap-4 mt-2 mb-4" }, (!!this.comment.rating || !!this.comment.stars) ? (h("salla-rating-stars", { class: "w-auto", size: "medium", value: this.comment.rating || this.comment.stars })) : null, hasReviewFactors && (h("button", { class: "s-comments-item-review-factors-toggle", type: "button", onClick: () => (this.showReviewFactors = !this.showReviewFactors) }, h("span", null, this.reviewDetailsLabel), h("span", { class: {
|
|
182
|
+
"s-comments-item-review-factors-chevron": true,
|
|
183
|
+
"is-open": this.showReviewFactors,
|
|
184
|
+
} }, "\u2303"))))), h("div", { class: "s-comments-item-content" }, hasReviewFactors && this.showReviewFactors && (h("salla-comment-factors", { factors: reviewFactors })), 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 ?
|
|
172
185
|
h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
|
|
173
186
|
this.getReplies().map((reply) => {
|
|
174
187
|
return h("div", null, h("salla-comment-item", { comment: reply }));
|
|
@@ -187,14 +200,16 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
|
|
|
187
200
|
"allowLikes": [32],
|
|
188
201
|
"allowAttachImages": [32],
|
|
189
202
|
"helpfulLabel": [32],
|
|
203
|
+
"reviewDetailsLabel": [32],
|
|
190
204
|
"likesCount": [32],
|
|
191
|
-
"likedComments": [32]
|
|
205
|
+
"likedComments": [32],
|
|
206
|
+
"showReviewFactors": [32]
|
|
192
207
|
}]);
|
|
193
208
|
function defineCustomElement() {
|
|
194
209
|
if (typeof customElements === "undefined") {
|
|
195
210
|
return;
|
|
196
211
|
}
|
|
197
|
-
const components = ["salla-comment-item", "salla-button", "salla-comment-item", "salla-loading", "salla-modal", "salla-rating-stars", "salla-slider", "salla-tooltip"];
|
|
212
|
+
const components = ["salla-comment-item", "salla-button", "salla-comment-factors", "salla-comment-item", "salla-loading", "salla-modal", "salla-rating-stars", "salla-slider", "salla-tooltip"];
|
|
198
213
|
components.forEach(tagName => { switch (tagName) {
|
|
199
214
|
case "salla-comment-item":
|
|
200
215
|
if (!customElements.get(tagName)) {
|
|
@@ -202,6 +217,11 @@ function defineCustomElement() {
|
|
|
202
217
|
}
|
|
203
218
|
break;
|
|
204
219
|
case "salla-button":
|
|
220
|
+
if (!customElements.get(tagName)) {
|
|
221
|
+
defineCustomElement$7();
|
|
222
|
+
}
|
|
223
|
+
break;
|
|
224
|
+
case "salla-comment-factors":
|
|
205
225
|
if (!customElements.get(tagName)) {
|
|
206
226
|
defineCustomElement$6();
|
|
207
227
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
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$
|
|
7
|
+
import { d as defineCustomElement$c } from './salla-button2.js';
|
|
8
|
+
import { d as defineCustomElement$b } from './salla-comment-factors2.js';
|
|
8
9
|
import { d as defineCustomElement$a } from './salla-comment-form2.js';
|
|
9
10
|
import { d as defineCustomElement$9 } from './salla-comment-item2.js';
|
|
10
11
|
import { d as defineCustomElement$8 } from './salla-loading2.js';
|
|
@@ -29,7 +30,7 @@ var ChatBubbles = `<!-- Generated by IcoMoon.io -->
|
|
|
29
30
|
</svg>
|
|
30
31
|
`;
|
|
31
32
|
|
|
32
|
-
const sallaCommentsCss = ":host{display:block}";
|
|
33
|
+
const sallaCommentsCss = ":host{display:block}.s-comments-item-review-factors-toggle{display:inline-flex;align-items:center;gap:0.35rem;padding:0;border:0;background:transparent;color:#0f6a7c;font-size:0.9rem;font-weight:500;cursor:pointer}.s-comments-item-review-factors-chevron{line-height:1;transform:rotate(180deg);transition:transform 0.2s ease}.s-comments-item-review-factors-chevron.is-open{transform:rotate(0deg)}.s-comments-item-review-factors{border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);border-radius:0.6rem;width:min(100%, 26rem);max-width:100%;margin:0 0 1rem;padding:0.85rem 1rem}@media (max-width: 767px){.s-comments-item-review-factors{width:100%;padding:0.75rem}}.s-comments-item-review-factor-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;direction:ltr;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-row{flex-direction:row;align-items:stretch;gap:0.35rem}}.s-comments-item-review-factor-row+.s-comments-item-review-factor-row{margin-top:0.5rem}.s-comments-item-review-factor-label,.s-comments-item-review-factor-name{color:#4b5563;font-size:0.9rem;line-height:1.45}.s-comments-item-review-factor-name{min-width:6.5rem;text-align:end;flex-shrink:0}@media (max-width: 767px){.s-comments-item-review-factor-name{min-width:5rem;text-align:end}}.s-comments-item-review-factor-label{display:inline-block;min-width:4.75rem}@media (max-width: 767px){.s-comments-item-review-factor-label{min-width:0;flex:1 1 auto}}.s-comments-item-review-factor-value{display:inline-flex;align-items:center;gap:0.35rem;min-width:0}@media (max-width: 767px){.s-comments-item-review-factor-value{width:100%;justify-content:space-between;gap:0.25rem}}.s-comments-item-review-factor-stars{flex-shrink:0}.s-comments-item-review-factor-stars .s-rating-stars-wrapper{gap:0}";
|
|
33
34
|
|
|
34
35
|
const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments extends HTMLElement {
|
|
35
36
|
constructor() {
|
|
@@ -362,7 +363,7 @@ function defineCustomElement$1() {
|
|
|
362
363
|
if (typeof customElements === "undefined") {
|
|
363
364
|
return;
|
|
364
365
|
}
|
|
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"];
|
|
366
|
+
const components = ["salla-comments", "salla-button", "salla-comment-factors", "salla-comment-form", "salla-comment-item", "salla-loading", "salla-modal", "salla-progress-bar", "salla-rating-stars", "salla-reviews-summary", "salla-slider", "salla-tooltip"];
|
|
366
367
|
components.forEach(tagName => { switch (tagName) {
|
|
367
368
|
case "salla-comments":
|
|
368
369
|
if (!customElements.get(tagName)) {
|
|
@@ -370,6 +371,11 @@ function defineCustomElement$1() {
|
|
|
370
371
|
}
|
|
371
372
|
break;
|
|
372
373
|
case "salla-button":
|
|
374
|
+
if (!customElements.get(tagName)) {
|
|
375
|
+
defineCustomElement$c();
|
|
376
|
+
}
|
|
377
|
+
break;
|
|
378
|
+
case "salla-comment-factors":
|
|
373
379
|
if (!customElements.get(tagName)) {
|
|
374
380
|
defineCustomElement$b();
|
|
375
381
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaRatingModalV2 extends Components.SallaRatingModalV2, HTMLElement {}
|
|
4
|
+
export const SallaRatingModalV2: {
|
|
5
|
+
prototype: SallaRatingModalV2;
|
|
6
|
+
new (): SallaRatingModalV2;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { a as SallaRatingModalV2$1, d as defineCustomElement$1 } from './salla-rating-modal-v22.js';
|
|
5
|
+
|
|
6
|
+
const SallaRatingModalV2 = SallaRatingModalV2$1;
|
|
7
|
+
const defineCustomElement = defineCustomElement$1;
|
|
8
|
+
|
|
9
|
+
export { SallaRatingModalV2, defineCustomElement };
|