@salla.sa/twilight-components 2.14.489 → 2.14.491
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-C-1J1qrF.js → filepond-C8OgCkk4.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-B8fUrKqJ.js → filepond-plugin-file-poster-W7CIIo06.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BJ4Bw3Ju.js → filepond-plugin-file-validate-size-b6owsb9D.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D_Smjf6h.js → filepond-plugin-file-validate-type-_rafsi9p.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BDZBDL-U.js → filepond-plugin-image-edit-7_W-TDnV.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B68mU2op.js → filepond-plugin-image-exif-orientation-BqHzmoQr.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-B2RzZ9r9.js → filepond-plugin-image-preview-CXYMGZyB.js} +1 -1
- package/dist/cjs/{functions-DdZX56J7.js → functions-DEYiJNeU.js} +1 -1
- package/dist/cjs/{index-DWea49r_.js → index-DFAB8ROR.js} +17 -5
- package/dist/cjs/{index-B5CW9Xve.js → index-DQxFCAkS.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-DNxhV4_1.js → tracked-promise-BFI0OYlh.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-ClijNDRd.js → vanilla-picker-X9clH5_E.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-z2hEBvHC.js → filepond-DnJWzWeX.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-B9sxi6Yz.js → filepond-plugin-file-poster-CQjIyjj0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-HWpVatr_.js → filepond-plugin-file-validate-size-BHmdR08m.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-SgpUhQB_.js → filepond-plugin-file-validate-type-DKZI4Udo.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-0F90Q6lM.js → filepond-plugin-image-edit-BEu3qWM8.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CXJDp_1v.js → filepond-plugin-image-exif-orientation-BnEErRDJ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-APl1nt4k.js → filepond-plugin-image-preview-C5uMnAXy.js} +1 -1
- package/dist/esm/{functions-BCdJLPcs.js → functions-BHv4YCak.js} +1 -1
- package/dist/esm/{index-DNWyGkAx.js → index-CrMCOyRb.js} +17 -5
- package/dist/esm/{index-DhwQVX77.js → index-DNoSNI6q.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-CjtqaGP2.js → tracked-promise-DoP8oegK.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DPMDb9SB.js → vanilla-picker-DHvTWQwH.js} +1 -1
- package/dist/twilight/{p-0a9af711.entry.js → p-01cd666a.entry.js} +1 -1
- package/dist/twilight/{p-ef2d94d3.entry.js → p-02bda539.entry.js} +1 -1
- package/dist/twilight/{p-e9cdcf2f.entry.js → p-0569fa78.entry.js} +1 -1
- package/dist/twilight/{p-47dd6817.entry.js → p-0a851930.entry.js} +1 -1
- package/dist/twilight/{p-338a55c1.entry.js → p-0b6623d1.entry.js} +1 -1
- package/dist/twilight/{p-082f3913.entry.js → p-0e9f471f.entry.js} +1 -1
- package/dist/twilight/{p-3c10826c.entry.js → p-0f6bc387.entry.js} +1 -1
- package/dist/twilight/{p-02e2f661.entry.js → p-10cfb2e6.entry.js} +1 -1
- package/dist/twilight/{p-85fc94be.entry.js → p-1351776d.entry.js} +1 -1
- package/dist/twilight/{p-f6d6dada.entry.js → p-14c28037.entry.js} +1 -1
- package/dist/twilight/{p-24127075.entry.js → p-158b25d6.entry.js} +1 -1
- package/dist/twilight/{p-0cd023d2.entry.js → p-180efa36.entry.js} +1 -1
- package/dist/twilight/{p-602df9ed.entry.js → p-1a89b6e6.entry.js} +1 -1
- package/dist/twilight/p-1d1598f2.entry.js +4 -0
- package/dist/twilight/{p-db9dc344.entry.js → p-24a33e42.entry.js} +1 -1
- package/dist/twilight/{p-12ccff98.entry.js → p-2565c8a8.entry.js} +1 -1
- package/dist/twilight/{p-c84ada78.entry.js → p-27ba15f4.entry.js} +1 -1
- package/dist/twilight/{p-52283d18.entry.js → p-2abf9e37.entry.js} +1 -1
- package/dist/twilight/p-2be2e677.entry.js +4 -0
- package/dist/twilight/{p-094dcf0c.entry.js → p-3301eb04.entry.js} +1 -1
- package/dist/twilight/{p-26faf85e.entry.js → p-3394398c.entry.js} +1 -1
- package/dist/twilight/{p-b5d32897.entry.js → p-346519c6.entry.js} +1 -1
- package/dist/twilight/{p-90534314.entry.js → p-3642805b.entry.js} +1 -1
- package/dist/twilight/{p-ed02b506.entry.js → p-3698e128.entry.js} +1 -1
- package/dist/twilight/{p-5171b440.entry.js → p-379db48e.entry.js} +1 -1
- package/dist/twilight/{p-b6cdfd09.entry.js → p-38f0b921.entry.js} +1 -1
- package/dist/twilight/{p-afc451ef.entry.js → p-3d3cebb9.entry.js} +1 -1
- package/dist/twilight/{p-3e7a3c6e.entry.js → p-3d3f647d.entry.js} +1 -1
- package/dist/twilight/{p-7bbea228.entry.js → p-43b6be6a.entry.js} +1 -1
- package/dist/twilight/p-46440c88.entry.js +4 -0
- package/dist/twilight/{p-46cd5ece.entry.js → p-484fde1d.entry.js} +1 -1
- package/dist/twilight/{p-43a2f42e.entry.js → p-4ee6b3e0.entry.js} +1 -1
- package/dist/twilight/{p-f01c12dc.entry.js → p-53188a50.entry.js} +1 -1
- package/dist/twilight/{p-b0d5084c.entry.js → p-53b388e5.entry.js} +1 -1
- package/dist/twilight/p-5619de6e.entry.js +4 -0
- package/dist/twilight/{p-edc4193f.entry.js → p-5832f8ef.entry.js} +1 -1
- package/dist/twilight/{p-160fc21e.entry.js → p-5c7dfd69.entry.js} +1 -1
- package/dist/twilight/{p-991b1e85.entry.js → p-5d757ebc.entry.js} +1 -1
- package/dist/twilight/{p-04a6cb8f.entry.js → p-65745dca.entry.js} +1 -1
- package/dist/twilight/{p-8fec15f8.entry.js → p-68a0d7de.entry.js} +1 -1
- package/dist/twilight/{p-9474d525.entry.js → p-698202a9.entry.js} +1 -1
- package/dist/twilight/{p-4ab4e5ea.entry.js → p-6b0b391f.entry.js} +1 -1
- package/dist/twilight/{p-fa5fa155.entry.js → p-6b14b175.entry.js} +1 -1
- package/dist/twilight/{p-5993b7d0.entry.js → p-6c03ddfd.entry.js} +1 -1
- package/dist/twilight/{p-cee1f87a.entry.js → p-6c25d25f.entry.js} +1 -1
- package/dist/twilight/{p-f2dbde1c.entry.js → p-6c7dc86f.entry.js} +1 -1
- package/dist/twilight/{p-08641aeb.entry.js → p-6e7c8096.entry.js} +1 -1
- package/dist/twilight/{p-844c6c1f.entry.js → p-7269d2ba.entry.js} +1 -1
- package/dist/twilight/{p-3f924fc5.entry.js → p-75d546f8.entry.js} +2 -2
- package/dist/twilight/{p-6ab60f90.entry.js → p-768077d9.entry.js} +1 -1
- package/dist/twilight/{p-39b8ffcd.entry.js → p-79d53d67.entry.js} +1 -1
- package/dist/twilight/{p-f14fe365.entry.js → p-7a4328dd.entry.js} +1 -1
- package/dist/twilight/{p-1efc0eed.entry.js → p-7a8f4587.entry.js} +1 -1
- package/dist/twilight/{p-7fb92e0b.entry.js → p-7ed01fae.entry.js} +1 -1
- package/dist/twilight/{p-ab2a5243.entry.js → p-831105b1.entry.js} +1 -1
- package/dist/twilight/{p-06966ed6.entry.js → p-83920e60.entry.js} +1 -1
- package/dist/twilight/{p-1a957d13.entry.js → p-84ed1fe9.entry.js} +1 -1
- package/dist/twilight/{p-3ce46edf.entry.js → p-904d61a5.entry.js} +1 -1
- package/dist/twilight/{p-c4c32432.entry.js → p-92212c2c.entry.js} +1 -1
- package/dist/twilight/{p-9fc965a7.entry.js → p-92f96da3.entry.js} +1 -1
- package/dist/twilight/{p-69766916.entry.js → p-95fd32d1.entry.js} +1 -1
- package/dist/twilight/{p-7a0d2f4d.entry.js → p-967a0b5f.entry.js} +1 -1
- package/dist/twilight/{p-f9192741.entry.js → p-96bc00e4.entry.js} +1 -1
- package/dist/twilight/{p-5wempgCB.js → p-B8h6YT8x.js} +1 -1
- package/dist/twilight/{p-Ca18LMTl.js → p-BAPngUXX.js} +1 -1
- package/dist/twilight/{p-BwggHXVj.js → p-By0LfFQa.js} +1 -1
- package/dist/twilight/{p-CsSICzhL.js → p-C9sdTleU.js} +1 -1
- package/dist/twilight/{p-DJ3ziTwG.js → p-CEkVObpk.js} +1 -1
- package/dist/twilight/{p-6sBYUIya.js → p-COcTJoQh.js} +1 -1
- package/dist/twilight/{p-C72A7Y44.js → p-C_9dEE-y.js} +1 -1
- package/dist/twilight/{p-ZT7ehBBk.js → p-CeFAfcTv.js} +1 -1
- package/dist/twilight/{p-DNWyGkAx.js → p-CrMCOyRb.js} +2 -2
- package/dist/twilight/{p-C5HojqDY.js → p-D7kAm5HN.js} +1 -1
- package/dist/twilight/{p-9273a620.entry.js → p-a458dd2a.entry.js} +1 -1
- package/dist/twilight/{p-14f8ba23.entry.js → p-a67a69d6.entry.js} +1 -1
- package/dist/twilight/{p-cbc66d20.entry.js → p-b02b29fa.entry.js} +1 -1
- package/dist/twilight/{p-d239611f.entry.js → p-b0ac8f2d.entry.js} +1 -1
- package/dist/twilight/{p-1aeeb0f0.entry.js → p-b6a9c958.entry.js} +1 -1
- package/dist/twilight/p-b7e45734.entry.js +4 -0
- package/dist/twilight/{p-6852162e.entry.js → p-b82011e6.entry.js} +1 -1
- package/dist/twilight/{p-c9aa80c3.entry.js → p-ba9d9441.entry.js} +1 -1
- package/dist/twilight/{p-da66f939.entry.js → p-bc231a7f.entry.js} +1 -1
- package/dist/twilight/{p-40407996.entry.js → p-be9f3b55.entry.js} +1 -1
- package/dist/twilight/p-c0fdeae5.entry.js +4 -0
- package/dist/twilight/{p-78f161f2.entry.js → p-c1959cfa.entry.js} +1 -1
- package/dist/twilight/{p-f8933bd5.entry.js → p-c34e8a2f.entry.js} +1 -1
- package/dist/twilight/{p-85c6c44f.entry.js → p-c40da673.entry.js} +1 -1
- package/dist/twilight/{p-6e7a6f4b.entry.js → p-c4981fc4.entry.js} +1 -1
- package/dist/twilight/{p-61813e83.entry.js → p-c75169ad.entry.js} +1 -1
- package/dist/twilight/{p-4b17c9a0.entry.js → p-cd6617a2.entry.js} +1 -1
- package/dist/twilight/{p-ca028945.entry.js → p-ce621f89.entry.js} +1 -1
- package/dist/twilight/{p-ac7c0ea4.entry.js → p-cf699819.entry.js} +1 -1
- package/dist/twilight/{p-a965c431.entry.js → p-d8b9b23d.entry.js} +1 -1
- package/dist/twilight/{p-d3f3eed5.entry.js → p-d90c6504.entry.js} +1 -1
- package/dist/twilight/{p-aaf7cbb1.entry.js → p-da875729.entry.js} +1 -1
- package/dist/twilight/{p-6891f00b.entry.js → p-db885288.entry.js} +1 -1
- package/dist/twilight/{p-cfc209db.entry.js → p-ea7111b7.entry.js} +1 -1
- package/dist/twilight/{p-56365c64.entry.js → p-f2a98eb7.entry.js} +1 -1
- package/dist/twilight/{p-de942889.entry.js → p-f2c185ff.entry.js} +1 -1
- package/dist/twilight/{p-6494c6bf.entry.js → p-f31322cc.entry.js} +1 -1
- package/dist/twilight/{p-5b989746.entry.js → p-f6e578f4.entry.js} +1 -1
- package/dist/twilight/{p-f2e9d83b.entry.js → p-f82bf774.entry.js} +1 -1
- package/dist/twilight/{p-e2da0555.entry.js → p-fd3602a9.entry.js} +1 -1
- package/dist/twilight/{p-DQUSqsnq.js → p-hej0tW8f.js} +1 -1
- package/dist/twilight/p-lMgMt31Q.js +4 -0
- package/dist/twilight/{p-Bw7P5SwX.js → p-pvcZDEed.js} +1 -1
- package/dist/twilight/{p-Dp4UckOj.js → p-vj4RR8x2.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-f12a28f9.entry.js +0 -4
- package/dist/twilight/p-f6205375.entry.js +0 -4
- package/dist/twilight/p-fc676125.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 };
|