@salla.sa/twilight-components 2.14.494 → 2.14.495
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-CYww4tEC.js → filepond-DXx41R2y.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DPW9mW_l.js → filepond-plugin-file-poster-CwwiKG-i.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CK2KIHil.js → filepond-plugin-file-validate-size-CeCrtqy9.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CPvzHnlO.js → filepond-plugin-file-validate-type-Ch0TrXhi.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DfYj0utx.js → filepond-plugin-image-edit-JX_9deVo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BPH4xTYe.js → filepond-plugin-image-exif-orientation-DTCbWfw1.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BbB7wI4M.js → filepond-plugin-image-preview-DC9e7eeA.js} +1 -1
- package/dist/cjs/{functions-C3W0O3Qh.js → functions-BNQzf0OA.js} +1 -1
- package/dist/cjs/{index-BQKhP5JS.js → index-D5rto5Fh.js} +2 -2
- package/dist/cjs/{index-CQRzEmek.js → index-qIYSQcOD.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 +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- 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_2.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-exchange-product-card_5.cjs.entry.js +3 -3
- 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-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-card_2.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 +34 -4
- package/dist/cjs/salla-rating-modal.cjs.entry.js +34 -9
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/{tracked-promise-DYGNjn0V.js → tracked-promise-BIhk39hN.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CVraU_Ic.js → vanilla-picker-DjtnMq2y.js} +1 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +34 -3
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +32 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -7
- package/dist/components/index.js +2 -2
- package/dist/components/salla-rating-modal-v22.js +34 -3
- package/dist/components/salla-rating-modal.js +34 -8
- package/dist/esm/{filepond-V-9YwoVf.js → filepond-C3XP8jm1.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BBE8fAHq.js → filepond-plugin-file-poster-CDER34Vh.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CR9iK259.js → filepond-plugin-file-validate-size-B8vg8-uq.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-B4eStrHv.js → filepond-plugin-file-validate-type-CQtYu4Am.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-B84jjo8b.js → filepond-plugin-image-edit-Dde4YKRv.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BAaD5wJD.js → filepond-plugin-image-exif-orientation-CUBiG0lK.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-Bn4GgIpr.js → filepond-plugin-image-preview-B1GpYhTn.js} +1 -1
- package/dist/esm/{functions-Btrtoght.js → functions-B2dJX7jB.js} +1 -1
- package/dist/esm/{index-3omad4sF.js → index-BPOLfGlq.js} +2 -2
- package/dist/esm/{index-Co4ZrgLC.js → index-Ya4_ataG.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 +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- 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_2.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-exchange-product-card_5.entry.js +3 -3
- 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-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-card_2.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 +34 -4
- package/dist/esm/salla-rating-modal.entry.js +34 -9
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/{tracked-promise-BPB6hr9g.js → tracked-promise-CfALRKPO.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CN8ge6Yh.js → vanilla-picker-E0YuxtRq.js} +1 -1
- package/dist/twilight/{p-feebbd16.entry.js → p-111b12b2.entry.js} +1 -1
- package/dist/twilight/{p-3e01a221.entry.js → p-11d16ea6.entry.js} +1 -1
- package/dist/twilight/{p-9a862593.entry.js → p-15d6eb3d.entry.js} +1 -1
- package/dist/twilight/{p-56a74d0a.entry.js → p-172d2910.entry.js} +1 -1
- package/dist/twilight/{p-3d005581.entry.js → p-1b2d51ff.entry.js} +1 -1
- package/dist/twilight/{p-6740cfb1.entry.js → p-1b807a9e.entry.js} +1 -1
- package/dist/twilight/{p-7fae4a20.entry.js → p-1cecee41.entry.js} +1 -1
- package/dist/twilight/{p-bddef859.entry.js → p-20a9fa11.entry.js} +1 -1
- package/dist/twilight/{p-d63d41cc.entry.js → p-23a0f9d3.entry.js} +1 -1
- package/dist/twilight/{p-13e1c331.entry.js → p-27010b1e.entry.js} +1 -1
- package/dist/twilight/{p-9f1c78ac.entry.js → p-2929495e.entry.js} +1 -1
- package/dist/twilight/{p-85f9d064.entry.js → p-2af31dd1.entry.js} +1 -1
- package/dist/twilight/{p-52556f85.entry.js → p-310b4a53.entry.js} +1 -1
- package/dist/twilight/{p-d00c74c3.entry.js → p-317ac575.entry.js} +1 -1
- package/dist/twilight/{p-12d180be.entry.js → p-31ed558a.entry.js} +1 -1
- package/dist/twilight/{p-b25643cf.entry.js → p-32392cf3.entry.js} +1 -1
- package/dist/twilight/{p-e58f50ac.entry.js → p-33dd5133.entry.js} +1 -1
- package/dist/twilight/{p-f2ba00a7.entry.js → p-381676b5.entry.js} +1 -1
- package/dist/twilight/{p-729e2abe.entry.js → p-397e0798.entry.js} +1 -1
- package/dist/twilight/{p-44d95774.entry.js → p-39d11d60.entry.js} +1 -1
- package/dist/twilight/{p-c2ab62c6.entry.js → p-3b0a60fa.entry.js} +1 -1
- package/dist/twilight/{p-dda98c7a.entry.js → p-3bd795f0.entry.js} +1 -1
- package/dist/twilight/{p-185a97f2.entry.js → p-3d4b0d93.entry.js} +1 -1
- package/dist/twilight/{p-d30dc29a.entry.js → p-3e726a15.entry.js} +1 -1
- package/dist/twilight/{p-7971bc45.entry.js → p-4204adb8.entry.js} +1 -1
- package/dist/twilight/{p-342dad15.entry.js → p-45948907.entry.js} +1 -1
- package/dist/twilight/{p-0838e0cc.entry.js → p-4f2e7ce7.entry.js} +1 -1
- package/dist/twilight/{p-07feb752.entry.js → p-5671f508.entry.js} +1 -1
- package/dist/twilight/{p-d71e3ca9.entry.js → p-5ceefb15.entry.js} +1 -1
- package/dist/twilight/{p-d7c3072b.entry.js → p-5d818495.entry.js} +1 -1
- package/dist/twilight/{p-19c8a5d5.entry.js → p-5e23e49c.entry.js} +1 -1
- package/dist/twilight/{p-3157e3dd.entry.js → p-61d3bbc8.entry.js} +1 -1
- package/dist/twilight/{p-3ae98980.entry.js → p-62fb7e9a.entry.js} +1 -1
- package/dist/twilight/{p-e03e1c15.entry.js → p-633a5ed7.entry.js} +1 -1
- package/dist/twilight/{p-0a0f2340.entry.js → p-63908cf5.entry.js} +1 -1
- package/dist/twilight/{p-df605d75.entry.js → p-6981573a.entry.js} +1 -1
- package/dist/twilight/{p-16d6ee9b.entry.js → p-6a44a9db.entry.js} +1 -1
- package/dist/twilight/{p-574c57c6.entry.js → p-6d15b4ec.entry.js} +1 -1
- package/dist/twilight/{p-9d734c16.entry.js → p-74386e55.entry.js} +1 -1
- package/dist/twilight/{p-1beb481d.entry.js → p-76f8b335.entry.js} +1 -1
- package/dist/twilight/{p-07b25f79.entry.js → p-79b67593.entry.js} +1 -1
- package/dist/twilight/{p-07cd3153.entry.js → p-7bef3130.entry.js} +1 -1
- package/dist/twilight/{p-67a304d4.entry.js → p-847fcbbf.entry.js} +1 -1
- package/dist/twilight/{p-08a065d6.entry.js → p-84986142.entry.js} +1 -1
- package/dist/twilight/{p-1072161d.entry.js → p-88bcb450.entry.js} +1 -1
- package/dist/twilight/{p-754d042b.entry.js → p-896b5880.entry.js} +1 -1
- package/dist/twilight/{p-fdd6cba3.entry.js → p-8b1c2efb.entry.js} +1 -1
- package/dist/twilight/{p-c842401c.entry.js → p-91ed85fa.entry.js} +1 -1
- package/dist/twilight/{p-fb94ea64.entry.js → p-93f0117b.entry.js} +1 -1
- package/dist/twilight/{p-9f6081d4.entry.js → p-940265b8.entry.js} +1 -1
- package/dist/twilight/{p-6c4d7933.entry.js → p-94dd1c95.entry.js} +1 -1
- package/dist/twilight/{p-bdef80a3.entry.js → p-99bc3057.entry.js} +1 -1
- package/dist/twilight/{p-57ace49d.entry.js → p-9a3de1d3.entry.js} +1 -1
- package/dist/twilight/{p-f06c0fe7.entry.js → p-9b10bc50.entry.js} +1 -1
- package/dist/twilight/{p-3omad4sF.js → p-BPOLfGlq.js} +1 -1
- package/dist/twilight/{p-YpsE7YiS.js → p-C2mMQUaR.js} +1 -1
- package/dist/twilight/{p-CwlNfhff.js → p-CTVX-G0K.js} +1 -1
- package/dist/twilight/{p-DnsL3smj.js → p-Cm855HOG.js} +1 -1
- package/dist/twilight/{p-B1S798Uj.js → p-CqJ_OQmC.js} +1 -1
- package/dist/twilight/{p-BlJJbPc3.js → p-CrMqpxVf.js} +1 -1
- package/dist/twilight/{p-RH6Ze2WQ.js → p-Dag1-FEn.js} +1 -1
- package/dist/twilight/{p-DzgGIUvs.js → p-DbXwwuth.js} +1 -1
- package/dist/twilight/{p-CXp5fcIv.js → p-Dmvcz29r.js} +1 -1
- package/dist/twilight/p-KcsFKraQ.js +4 -0
- package/dist/twilight/{p-CAqUTN8N.js → p-_iz5Z_GI.js} +1 -1
- package/dist/twilight/p-a1dc71b9.entry.js +4 -0
- package/dist/twilight/{p-7bb21315.entry.js → p-a731b254.entry.js} +1 -1
- package/dist/twilight/{p-c6e28a21.entry.js → p-ac0dedbd.entry.js} +1 -1
- package/dist/twilight/{p-30b7deca.entry.js → p-ad8bb012.entry.js} +1 -1
- package/dist/twilight/{p-d20eb5fe.entry.js → p-afd586a0.entry.js} +1 -1
- package/dist/twilight/{p-d5f7fc7c.entry.js → p-b17f3ab5.entry.js} +1 -1
- package/dist/twilight/{p-77676a5d.entry.js → p-b1c8aea6.entry.js} +1 -1
- package/dist/twilight/{p-6e9b255e.entry.js → p-b3899e53.entry.js} +1 -1
- package/dist/twilight/{p-e260af73.entry.js → p-b46df798.entry.js} +1 -1
- package/dist/twilight/{p-ec7b9c48.entry.js → p-bc03c4dd.entry.js} +1 -1
- package/dist/twilight/{p-3a54d785.entry.js → p-bc4e3609.entry.js} +1 -1
- package/dist/twilight/{p-34741bf4.entry.js → p-c1290a97.entry.js} +1 -1
- package/dist/twilight/{p-18005312.entry.js → p-c8080b3e.entry.js} +1 -1
- package/dist/twilight/{p-57b87240.entry.js → p-c915af20.entry.js} +1 -1
- package/dist/twilight/{p-842e61d7.entry.js → p-ca2435c0.entry.js} +1 -1
- package/dist/twilight/{p-d9685d52.entry.js → p-d26db462.entry.js} +1 -1
- package/dist/twilight/{p-2c86bd20.entry.js → p-d433feae.entry.js} +1 -1
- package/dist/twilight/{p-5acaee73.entry.js → p-d495c11f.entry.js} +1 -1
- package/dist/twilight/{p-783d1a70.entry.js → p-d72ea99d.entry.js} +1 -1
- package/dist/twilight/p-d79de49b.entry.js +4 -0
- package/dist/twilight/{p-6a7d7c6f.entry.js → p-dcc21c13.entry.js} +1 -1
- package/dist/twilight/{p-59cf3d1c.entry.js → p-e0b5c304.entry.js} +1 -1
- package/dist/twilight/{p-927448a3.entry.js → p-e1ade50f.entry.js} +1 -1
- package/dist/twilight/{p-6aad9abe.entry.js → p-e3d8ca11.entry.js} +1 -1
- package/dist/twilight/{p-fdc41755.entry.js → p-e5d401e6.entry.js} +1 -1
- package/dist/twilight/{p-c850756e.entry.js → p-e70e2d64.entry.js} +1 -1
- package/dist/twilight/{p-ef15918c.entry.js → p-ea3ca9b8.entry.js} +1 -1
- package/dist/twilight/p-eafcd660.entry.js +4 -0
- package/dist/twilight/{p-59cf6efb.entry.js → p-eb06d1c3.entry.js} +1 -1
- package/dist/twilight/{p-ff5240b5.entry.js → p-ec6c198d.entry.js} +1 -1
- package/dist/twilight/{p-9d745f77.entry.js → p-ed19a207.entry.js} +1 -1
- package/dist/twilight/{p-82b38a08.entry.js → p-f28e7f54.entry.js} +1 -1
- package/dist/twilight/{p-9c302701.entry.js → p-f319047e.entry.js} +1 -1
- package/dist/twilight/{p-7bb28f60.entry.js → p-f6a45b26.entry.js} +1 -1
- package/dist/twilight/{p-a65a1d76.entry.js → p-f98986f7.entry.js} +1 -1
- package/dist/twilight/{p-94af7c15.entry.js → p-fb5ff81c.entry.js} +1 -1
- package/dist/twilight/{p-d5ffbaa7.entry.js → p-fb61b829.entry.js} +1 -1
- package/dist/twilight/{p-92d68ba1.entry.js → p-fda54504.entry.js} +1 -1
- package/dist/twilight/p-fe130150.entry.js +4 -0
- package/dist/twilight/{p-MT8XYsK6.js → p-xxhuj_Ip.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +4 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +4 -0
- package/package.json +5 -5
- package/dist/twilight/p-03d231a1.entry.js +0 -4
- package/dist/twilight/p-0c55c5ed.entry.js +0 -4
- package/dist/twilight/p-1qlEgGio.js +0 -4
- package/dist/twilight/p-32467a9d.entry.js +0 -4
- package/dist/twilight/p-5877797d.entry.js +0 -4
|
@@ -23,7 +23,7 @@ var ShippingFast = `<!-- Generated by IcoMoon.io -->
|
|
|
23
23
|
</svg>
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
|
|
26
|
+
const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-loyalty-points-note-container{display:flex;align-items:center;gap:0.625rem;width:100%;margin-top:1.5rem;margin-bottom:0.75rem;padding:0.75rem;border-radius:0.5rem;background-color:#E6F4EA}.s-rating-modal-loyalty-points-note-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;color:#1B7F5C}.s-rating-modal-loyalty-points-note-icon svg{width:1.5rem;height:1.5rem;fill:currentColor}.s-rating-modal-loyalty-points-note-text{flex:1;margin:0;font-size:0.875rem;line-height:1.25rem;color:#1f2937}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
|
|
27
27
|
|
|
28
28
|
const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingModalV2 extends HTMLElement {
|
|
29
29
|
constructor() {
|
|
@@ -46,6 +46,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
46
46
|
this.editItem = null;
|
|
47
47
|
this.allowAttachImages = false;
|
|
48
48
|
this.allowContactSupport = false;
|
|
49
|
+
this.loyaltyImageRatingPoints = 0;
|
|
49
50
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
50
51
|
this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
|
|
51
52
|
this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
|
|
@@ -60,6 +61,9 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
60
61
|
this.contactUsLabel = salla.lang.get('blocks.footer.social');
|
|
61
62
|
this.requiredFactorsLabel = salla.lang.get('pages.rating.rate_required_factors');
|
|
62
63
|
this.overallProductRatingLabel = salla.lang.get('pages.rating.overall_product_rating');
|
|
64
|
+
this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', {
|
|
65
|
+
points: ':points',
|
|
66
|
+
});
|
|
63
67
|
this.contentRefs = [];
|
|
64
68
|
this.hiddenInputs = [];
|
|
65
69
|
this.userFilledFactorKeys = {};
|
|
@@ -107,6 +111,8 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
107
111
|
await setNestedAsync('en.trans', 'pages.rating.rate_required_factors', 'Please rate all required factors to complete your review.');
|
|
108
112
|
await setNestedAsync('ar.trans', 'pages.rating.overall_product_rating', 'التقييم العام للمنتج');
|
|
109
113
|
await setNestedAsync('en.trans', 'pages.rating.overall_product_rating', 'Overall product rating');
|
|
114
|
+
await setNestedAsync('ar.trans', 'pages.rating.loyalty_points_for_images', 'اكسب :points نقطة ولاء عند إضافة صور لتقييمك!');
|
|
115
|
+
await setNestedAsync('en.trans', 'pages.rating.loyalty_points_for_images', 'Earn :points loyalty points when adding photos to your review!');
|
|
110
116
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
111
117
|
this.allowedImagesTypesLabel = salla.lang.get('common.uploader.allowed_images_types');
|
|
112
118
|
this.threeImagesMax = salla.lang.get('common.uploader.max_three_images');
|
|
@@ -120,6 +126,9 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
120
126
|
this.confirmDeleteBtn = salla.lang.get('common.elements.confirm_delete');
|
|
121
127
|
this.requiredFactorsLabel = salla.lang.get('pages.rating.rate_required_factors');
|
|
122
128
|
this.overallProductRatingLabel = salla.lang.get('pages.rating.overall_product_rating');
|
|
129
|
+
this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', {
|
|
130
|
+
points: ':points',
|
|
131
|
+
});
|
|
123
132
|
this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_body', { store, id, customer });
|
|
124
133
|
};
|
|
125
134
|
setTranslations();
|
|
@@ -287,6 +296,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
287
296
|
this.order = res.data;
|
|
288
297
|
this.productReviewFactors = await this.fetchAllProductReviewFactors(res.data);
|
|
289
298
|
}))
|
|
299
|
+
.then(() => this.readyUpLoyaltyPoints())
|
|
290
300
|
.then(() => this.modal.setTitle(`${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order.id})</span>`))
|
|
291
301
|
.then(() => {
|
|
292
302
|
// Initialize productImages for all products
|
|
@@ -317,6 +327,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
317
327
|
this.editFeedbackId = params.feedback_id;
|
|
318
328
|
try {
|
|
319
329
|
await this.fetchEditItem(params.feedback_id);
|
|
330
|
+
await this.readyUpLoyaltyPoints();
|
|
320
331
|
if (this.editType === 'product' && this.editItem?.product?.id) {
|
|
321
332
|
await this.loadCustomerOrderForEdit();
|
|
322
333
|
await this.ensureProductFactorsLoaded(this.editItem.product.id);
|
|
@@ -643,6 +654,24 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
643
654
|
let lasName = salla.config.get('user.last_name') || salla.storage.get('user.last_name') || '';
|
|
644
655
|
return `${firstName} ${lasName}`;
|
|
645
656
|
}
|
|
657
|
+
async readyUpLoyaltyPoints() {
|
|
658
|
+
const featureEnabled = salla.loyalty?.isFeatureEnabled?.();
|
|
659
|
+
if (!featureEnabled) {
|
|
660
|
+
this.loyaltyImageRatingPoints = 0;
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
const rating_product_points = salla.config.get('store.settings.rating.rating_product_points') || 0;
|
|
664
|
+
const rating_product_with_image_points = salla.config.get('store.settings.rating.rating_product_with_image_points') || 0;
|
|
665
|
+
this.loyaltyImageRatingPoints =
|
|
666
|
+
Number(rating_product_with_image_points) + Number(rating_product_points);
|
|
667
|
+
}
|
|
668
|
+
loyaltyPointsNote() {
|
|
669
|
+
if (!this.loyaltyImageRatingPoints || !this.loyaltyPointsForImagesLabel) {
|
|
670
|
+
return null;
|
|
671
|
+
}
|
|
672
|
+
const svgIcon = (h("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M10 0C13.6819 0 16.6667 2.98477 16.6667 6.66664C16.6667 9.37047 15.057 11.6984 12.7437 12.7444C11.6978 15.0575 9.3701 16.6666 6.66668 16.6666C2.98477 16.6666 0 13.6819 0 9.99998C0 7.29656 1.60918 4.96894 3.92195 3.92276C4.96827 1.60964 7.29618 0 10 0ZM6.66668 5C3.90524 5 1.66667 7.23856 1.66667 9.99998C1.66667 12.7614 3.90524 15 6.66668 15C9.4281 15 11.6667 12.7614 11.6667 9.99998C11.6667 7.23856 9.4281 5 6.66668 5ZM7.50002 5.83333V6.66664H9.16668V8.33331H5.83333C5.60322 8.33331 5.41667 8.51989 5.41667 8.74998C5.41667 8.95456 5.56407 9.12464 5.75844 9.15998L5.83333 9.16664H7.50002C8.6506 9.16664 9.58335 10.0994 9.58335 11.25C9.58335 12.4006 8.6506 13.3333 7.50002 13.3333V14.1666H5.83333V13.3333H4.16667V11.6666H7.50002C7.7301 11.6666 7.91668 11.4801 7.91668 11.25C7.91668 11.0455 7.76927 10.8753 7.57493 10.8401L7.50002 10.8333H5.83333C4.68274 10.8333 3.75 9.90056 3.75 8.74998C3.75 7.59939 4.68274 6.66664 5.83333 6.66664V5.83333H7.50002ZM10 1.66667C8.51377 1.66667 7.17893 2.31513 6.26313 3.34457C6.39704 3.33736 6.53138 3.33333 6.66668 3.33333C10.3486 3.33333 13.3333 6.3181 13.3333 9.99998C13.3333 10.1356 13.3293 10.2702 13.3213 10.4037C14.3513 9.48814 15 8.15314 15 6.66664C15 3.90524 12.7614 1.66667 10 1.66667Z", fill: "#008C56" })));
|
|
673
|
+
return (h("div", { class: "s-rating-modal-loyalty-points-note-container" }, h("span", { class: "s-rating-modal-loyalty-points-note-icon" }, svgIcon), h("p", { class: "s-rating-modal-loyalty-points-note-text" }, this.loyaltyPointsForImagesLabel.replace(':points', String(this.loyaltyImageRatingPoints)))));
|
|
674
|
+
}
|
|
646
675
|
normalizeReviewFactorsPayload(payload) {
|
|
647
676
|
const data = payload?.data ?? payload?.factors;
|
|
648
677
|
if (!Array.isArray(data)) {
|
|
@@ -921,7 +950,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
921
950
|
}, {});
|
|
922
951
|
}
|
|
923
952
|
renderProductStep(item, index) {
|
|
924
|
-
return (h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products", "data-product-id": item.product.id, key: item.product.id }, h("div", { class: "s-rating-modal-product" }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, item.product.name)), this.renderProductReviewFactors(item.product.id, 0, { fieldPrefix: '' }), h("input", { type: "hidden", name: "product_id", value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "comment", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-opened", ref: el => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: e => {
|
|
953
|
+
return (h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products", "data-product-id": item.product.id, key: item.product.id }, h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, item.product.name)), this.renderProductReviewFactors(item.product.id, 0, { fieldPrefix: '' }), h("input", { type: "hidden", name: "product_id", value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "comment", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-opened", ref: el => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: e => {
|
|
925
954
|
this.productImages = {
|
|
926
955
|
...this.productImages,
|
|
927
956
|
[item.product.id]: [...(this.productImages[item.product.id] || []), e.detail],
|
|
@@ -997,6 +1026,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
997
1026
|
this.currentIndex = 0;
|
|
998
1027
|
this.submitted = [];
|
|
999
1028
|
this.scheduleWizardSetup = false;
|
|
1029
|
+
this.loyaltyImageRatingPoints = 0;
|
|
1000
1030
|
}
|
|
1001
1031
|
getDeleteModal() {
|
|
1002
1032
|
return (h("salla-modal", { ref: modal => (this.deleteModal = modal), width: "xs", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-delete-wrapper", ref: el => (this.body = el) }, h("h3", null, this.confirmDeletionLabel), h("p", null, this.areYouSureLabel), h("div", { class: "s-rating-modal-delete-actions" }, h("salla-button", { loaderPosition: "center", onClick: () => this.deleteReview() }, this.confirmDeleteBtn), h("salla-button", { color: "danger", fill: "outline", onClick: () => this.deleteModal.close() }, this.cancelLabel)))));
|
|
@@ -1012,7 +1042,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
1012
1042
|
})));
|
|
1013
1043
|
}
|
|
1014
1044
|
getEditModal() {
|
|
1015
|
-
return (h("salla-modal", { ref: modal => (this.editModal = modal), width: "md", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-edit-wrapper", ref: el => (this.body = el) }, this.editType === 'store' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === 'shipping' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "shipping", ref: currentTab => (this.currentTab = currentTab) }, this.editItem.shipping.logo ? (h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))) : (h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast })), h("div", { class: "s-rating-modal-title" }, ' ', `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == 'product' && this.editItem ? (h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-product" }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, this.editItem.product.name)), this.renderProductReviewFactors(this.editItem.product.id, 0, {
|
|
1045
|
+
return (h("salla-modal", { ref: modal => (this.editModal = modal), width: "md", onModalVisibilityChanged: isOpen => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-edit-wrapper", ref: el => (this.body = el) }, this.editType === 'store' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === 'shipping' && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "shipping", ref: currentTab => (this.currentTab = currentTab) }, this.editItem.shipping.logo ? (h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))) : (h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast })), h("div", { class: "s-rating-modal-title" }, ' ', `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == 'product' && this.editItem ? (h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => (this.currentTab = currentTab) }, h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-info-row" }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("h3", { class: "s-rating-modal-product-title" }, this.editItem.product.name)), this.renderProductReviewFactors(this.editItem.product.id, 0, {
|
|
1016
1046
|
fieldPrefix: '',
|
|
1017
1047
|
mainRating: this.editMainRating ?? Number(this.editItem.stars ?? this.editItem.rating),
|
|
1018
1048
|
factorRatings: this.editFactorRatings,
|
|
@@ -1091,6 +1121,7 @@ const SallaRatingModalV2 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
1091
1121
|
"editItem": [32],
|
|
1092
1122
|
"allowAttachImages": [32],
|
|
1093
1123
|
"allowContactSupport": [32],
|
|
1124
|
+
"loyaltyImageRatingPoints": [32],
|
|
1094
1125
|
"open": [64],
|
|
1095
1126
|
"openEditModal": [64],
|
|
1096
1127
|
"openDeleteModal": [64],
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import {
|
|
6
|
-
import { d as defineCustomElement$4, S as ShippingFast } from './salla-rating-modal-v22.js';
|
|
5
|
+
import { a as anime } from './anime.es.js';
|
|
7
6
|
import { C as CheckCircle2 } from './check-circle2.js';
|
|
8
|
-
import { H as Helper } from './Helper.js';
|
|
9
7
|
import { I as ImageIcon } from './image.js';
|
|
10
|
-
import { W as WhatsappIcon } from './whatsapp2.js';
|
|
11
8
|
import { M as MailIcon } from './mail.js';
|
|
12
|
-
import {
|
|
9
|
+
import { d as defineCustomElement$4, S as ShippingFast } from './salla-rating-modal-v22.js';
|
|
10
|
+
import { W as WishListIcon } from './star.js';
|
|
11
|
+
import { W as WhatsappIcon } from './whatsapp2.js';
|
|
12
|
+
import { H as Helper } from './Helper.js';
|
|
13
13
|
import { d as defineCustomElement$9 } from './salla-button2.js';
|
|
14
14
|
import { d as defineCustomElement$8 } from './salla-file-upload2.js';
|
|
15
15
|
import { d as defineCustomElement$7 } from './salla-loading2.js';
|
|
@@ -18,7 +18,7 @@ import { d as defineCustomElement$5 } from './salla-placeholder2.js';
|
|
|
18
18
|
import { d as defineCustomElement$3 } from './salla-rating-stars2.js';
|
|
19
19
|
import { d as defineCustomElement$2 } from './salla-skeleton2.js';
|
|
20
20
|
|
|
21
|
-
const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
|
|
21
|
+
const sallaRatingModalCss = ".s-rating-modal-product-details{padding-bottom:0.5rem}.s-rating-modal-comment{margin-top:0.35rem}.s-rating-modal-product{margin-bottom:1rem}.s-rating-modal-product-img{display:block;width:100%;height:100%;object-fit:cover}.s-rating-modal-product-title{font-size:0.95rem;font-weight:600;line-height:1.5;margin:0}.s-rating-modal-stars-product{margin-top:0.5rem}.s-rating-modal-loyalty-points-note-container{display:flex;align-items:center;gap:0.625rem;width:100%;margin-top:1.5rem;margin-bottom:0.75rem;padding:0.75rem;border-radius:0.5rem;background-color:#E6F4EA}.s-rating-modal-loyalty-points-note-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;color:#1B7F5C}.s-rating-modal-loyalty-points-note-icon svg{width:1.5rem;height:1.5rem;fill:currentColor}.s-rating-modal-loyalty-points-note-text{flex:1;margin:0;font-size:0.875rem;line-height:1.25rem;color:#1f2937}.s-rating-modal-product-details-main{display:flex;align-items:center;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-info-row{display:flex;align-items:center;gap:0.6rem;margin-bottom:0.5rem;padding-bottom:0;border-bottom:0}.s-rating-modal-product-main-review{width:100%;text-align:right}.s-rating-modal-product-rating-rows{display:grid;gap:0.45rem;margin:0.2rem 0 0.7rem}.s-rating-modal-product-rating-row{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;min-height:2rem}.s-rating-modal-product-rating-row salla-rating-stars{flex-shrink:0}.s-rating-modal-product-rating-row .s-rating-stars-wrapper{align-items:center;min-height:1.75rem}.s-rating-modal-product-rating-row .s-rating-stars-label,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag{min-width:auto;min-height:1.25rem;line-height:1.25rem;font-size:0.8rem;color:#5b6470;white-space:nowrap;text-align:end;transition:opacity 0.15s ease}.s-rating-modal-product-rating-row .s-rating-stars-label--empty,.s-rating-modal-product-rating-row .s-rating-stars-label-without-tag--empty{opacity:0}.s-rating-modal-product-rating-row-main{margin-bottom:0.35rem;padding:0.5rem 0.6rem;border:1px solid #d1d5db;border-radius:0.45rem;background:transparent}.s-rating-modal-product-factor-name{color:#5b6470;font-size:0.9rem;line-height:1.25}.s-rating-modal-product-rating-row-main .s-rating-modal-product-factor-name{font-size:1rem;color:#5b6470}.s-rating-modal-product-factor-required{color:#f87171;margin-inline-start:0.2rem}.s-rating-modal-product-img-wrap{width:5rem;min-width:5rem;height:3.5rem;flex-shrink:0;overflow:hidden;border-radius:0.375rem;background:#f3f4f6}.s-rating-modal-uploader.is-opened{height:auto !important;opacity:1 !important;overflow:visible !important;pointer-events:auto !important;margin-bottom:1rem}";
|
|
22
22
|
|
|
23
23
|
const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingModal extends HTMLElement {
|
|
24
24
|
constructor() {
|
|
@@ -35,6 +35,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
35
35
|
this.deleteMode = false;
|
|
36
36
|
this.shouldOpenDeleteModal = false;
|
|
37
37
|
this.editItem = null;
|
|
38
|
+
this.loyaltyImageRatingPoints = 0;
|
|
38
39
|
this.enableNewPopUp = false;
|
|
39
40
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
40
41
|
this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
|
|
@@ -50,6 +51,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
50
51
|
this.updatedSuccessfullyLabel = salla.lang.get("pages.rating.review_updated_successfully");
|
|
51
52
|
this.deletedSuccessfullyLabel = salla.lang.get("pages.rating.review_deleted_successfully");
|
|
52
53
|
this.contactUsLabel = salla.lang.get('blocks.footer.social');
|
|
54
|
+
this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', { points: ':points' });
|
|
53
55
|
this.allowAttachImages = salla.config.get('store.settings.rating.allow_attach_images');
|
|
54
56
|
this.allowContactSupport = salla.config.get('store.settings.rating.allow_contact_support');
|
|
55
57
|
this.contentRefs = [];
|
|
@@ -124,6 +126,8 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
124
126
|
await setNestedAsync('en.trans', 'pages.rating.review_deleted_successfully', 'The review has been successfully deleted.');
|
|
125
127
|
await setNestedAsync('ar.trans', 'pages.rating.images_count', 'الصور ( :current من أصل :total )');
|
|
126
128
|
await setNestedAsync('en.trans', 'pages.rating.images_count', 'Images ( :current of :total )');
|
|
129
|
+
await setNestedAsync('ar.trans', 'pages.rating.loyalty_points_for_images', 'اكسب :points نقطة ولاء عند إضافة صور لتقييمك!');
|
|
130
|
+
await setNestedAsync('en.trans', 'pages.rating.loyalty_points_for_images', 'Earn :points loyalty points when adding photos to your review!');
|
|
127
131
|
await setNestedAsync('ar.trans', 'common.uploader.max_three_images', `.أضف ${this.MAX_UPLOAD_LIMIT} صور كحد أقصى`);
|
|
128
132
|
await setNestedAsync('en.trans', 'common.uploader.max_three_images', `Add up to ${this.MAX_UPLOAD_LIMIT} images maximum.`);
|
|
129
133
|
await setNestedAsync('ar.trans', 'common.elements.confirm_delete', 'تأكيد الحذف');
|
|
@@ -141,6 +145,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
141
145
|
this.updatedSuccessfullyLabel = salla.lang.get("pages.rating.review_updated_successfully");
|
|
142
146
|
this.deletedSuccessfullyLabel = salla.lang.get("pages.rating.review_deleted_successfully");
|
|
143
147
|
this.confirmDeleteBtn = salla.lang.get("common.elements.confirm_delete");
|
|
148
|
+
this.loyaltyPointsForImagesLabel = salla.lang.get('pages.rating.loyalty_points_for_images', { points: ':points' });
|
|
144
149
|
this.contact_body = (store, id, customer) => salla.lang.get('pages.rating.contact_body', { store, id, customer });
|
|
145
150
|
};
|
|
146
151
|
setTranslations();
|
|
@@ -165,6 +170,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
165
170
|
return new Promise((resolve) => {
|
|
166
171
|
setTimeout(() => {
|
|
167
172
|
this.modal.open().then(() => this.order || salla.api.withoutNotifier(() => salla.rating.api.order(this.orderId ? this.orderId : salla.config.get('page.id'))).then(res => this.order = res.data))
|
|
173
|
+
.then(() => this.readyUpLoyaltyPoints())
|
|
168
174
|
.then(() => this.modal.setTitle(`${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order.id})</span>`))
|
|
169
175
|
.then(() => {
|
|
170
176
|
// Initialize productImages for all products
|
|
@@ -201,6 +207,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
201
207
|
this.editFeedbackId = params.feedback_id;
|
|
202
208
|
try {
|
|
203
209
|
await this.fetchEditItem(params.feedback_id);
|
|
210
|
+
await this.readyUpLoyaltyPoints();
|
|
204
211
|
this.editModal.open();
|
|
205
212
|
}
|
|
206
213
|
catch (e) {
|
|
@@ -405,6 +412,24 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
405
412
|
this.editMode = false;
|
|
406
413
|
this.deleteMode = false;
|
|
407
414
|
this.defaultMode = false;
|
|
415
|
+
this.loyaltyImageRatingPoints = 0;
|
|
416
|
+
}
|
|
417
|
+
async readyUpLoyaltyPoints() {
|
|
418
|
+
const featureEnabled = salla.loyalty?.isFeatureEnabled?.();
|
|
419
|
+
if (!featureEnabled) {
|
|
420
|
+
this.loyaltyImageRatingPoints = 0;
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
const rating_product_points = salla.config.get('store.settings.rating.rating_product_points') || 0;
|
|
424
|
+
const rating_product_with_image_points = salla.config.get('store.settings.rating.rating_product_with_image_points') || 0;
|
|
425
|
+
this.loyaltyImageRatingPoints = Number(rating_product_with_image_points) + Number(rating_product_points);
|
|
426
|
+
}
|
|
427
|
+
loyaltyPointsNote() {
|
|
428
|
+
if (!this.loyaltyImageRatingPoints || !this.loyaltyPointsForImagesLabel) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
const svgIcon = (h("svg", { width: "17", height: "17", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M10 0C13.6819 0 16.6667 2.98477 16.6667 6.66664C16.6667 9.37047 15.057 11.6984 12.7437 12.7444C11.6978 15.0575 9.3701 16.6666 6.66668 16.6666C2.98477 16.6666 0 13.6819 0 9.99998C0 7.29656 1.60918 4.96894 3.92195 3.92276C4.96827 1.60964 7.29618 0 10 0ZM6.66668 5C3.90524 5 1.66667 7.23856 1.66667 9.99998C1.66667 12.7614 3.90524 15 6.66668 15C9.4281 15 11.6667 12.7614 11.6667 9.99998C11.6667 7.23856 9.4281 5 6.66668 5ZM7.50002 5.83333V6.66664H9.16668V8.33331H5.83333C5.60322 8.33331 5.41667 8.51989 5.41667 8.74998C5.41667 8.95456 5.56407 9.12464 5.75844 9.15998L5.83333 9.16664H7.50002C8.6506 9.16664 9.58335 10.0994 9.58335 11.25C9.58335 12.4006 8.6506 13.3333 7.50002 13.3333V14.1666H5.83333V13.3333H4.16667V11.6666H7.50002C7.7301 11.6666 7.91668 11.4801 7.91668 11.25C7.91668 11.0455 7.76927 10.8753 7.57493 10.8401L7.50002 10.8333H5.83333C4.68274 10.8333 3.75 9.90056 3.75 8.74998C3.75 7.59939 4.68274 6.66664 5.83333 6.66664V5.83333H7.50002ZM10 1.66667C8.51377 1.66667 7.17893 2.31513 6.26313 3.34457C6.39704 3.33736 6.53138 3.33333 6.66668 3.33333C10.3486 3.33333 13.3333 6.3181 13.3333 9.99998C13.3333 10.1356 13.3293 10.2702 13.3213 10.4037C14.3513 9.48814 15 8.15314 15 6.66664C15 3.90524 12.7614 1.66667 10 1.66667Z", fill: "#008C56" })));
|
|
432
|
+
return (h("div", { class: "s-rating-modal-loyalty-points-note-container" }, h("span", { class: "s-rating-modal-loyalty-points-note-icon" }, svgIcon), h("p", { class: "s-rating-modal-loyalty-points-note-text" }, this.loyaltyPointsForImagesLabel.replace(':points', String(this.loyaltyImageRatingPoints)))));
|
|
408
433
|
}
|
|
409
434
|
getDeleteModal() {
|
|
410
435
|
return (h("salla-modal", { ref: modal => this.deleteModal = modal, width: "xs", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-delete-wrapper", ref: el => this.body = el }, h("h3", null, this.confirmDeletionLabel), h("p", null, this.areYouSureLabel), h("div", { class: "s-rating-modal-delete-actions" }, h("salla-button", { loaderPosition: 'center', onClick: () => this.deleteReview() }, this.confirmDeleteBtn), h("salla-button", { color: 'danger', fill: 'outline', onClick: () => this.deleteModal.close() }, this.cancelLabel)))));
|
|
@@ -417,7 +442,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
417
442
|
getEditModal() {
|
|
418
443
|
return (h("salla-modal", { ref: modal => this.editModal = modal, width: "md", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, h("div", { class: "s-rating-modal-edit-wrapper", ref: el => this.body = el }, this.editType === "store" && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => this.currentTab = currentTab }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === "shipping" && this.editItem ? (h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "shipping", ref: currentTab => this.currentTab = currentTab }, this.editItem.shipping.logo
|
|
419
444
|
? h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))
|
|
420
|
-
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, h("div", { class: "s-rating-modal-product" }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), h("span", { innerHTML: ImageIcon }))), h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, h("salla-file-upload", { name: "images", allowMultiple: true, maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, filePosterHeight: 117, "instant-upload": true, type: "feedback", files: JSON.stringify(this.editItemImages), payloadName: "files[]", id: `file-${this.editItem.product.id}`, title: this.editItem.product.name, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
|
|
445
|
+
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, h("div", { class: "s-rating-modal-product" }, this.allowAttachImages && this.loyaltyPointsNote(), h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), h("span", { innerHTML: ImageIcon }))), h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, h("salla-file-upload", { name: "images", allowMultiple: true, maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, filePosterHeight: 117, "instant-upload": true, type: "feedback", files: JSON.stringify(this.editItemImages), payloadName: "files[]", id: `file-${this.editItem.product.id}`, title: this.editItem.product.name, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
|
|
421
446
|
this.editItemImages = [...this.editItemImages, e.detail];
|
|
422
447
|
this.hiddenInputs[1].value = this.editItemImages.map(img => img.url).join();
|
|
423
448
|
}, onRemoved: (e) => {
|
|
@@ -444,7 +469,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
444
469
|
? [h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, this.order?.testimonials_enabled ?
|
|
445
470
|
h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: salla.config.get('store.logo', 'https://assets.salla.sa/cp/assets/images/logo-new.png'), alt: "store name", class: "s-rating-modal-store-logo" })), h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), h("div", { class: "s-rating-modal-stars-company" }, h("salla-rating-stars", { withLabel: true, size: "large" })), h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))
|
|
446
471
|
: '', this.order.products_enabled
|
|
447
|
-
? h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.order.products.map((item, index) => h("div", { class: "s-rating-modal-product", key: index }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", name: `products[${index}][rating]` }))), this.allowAttachImages && h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(index) }, h("span", null, this.addImagesLabel), h("span", { innerHTML: ImageIcon }))), h("input", { type: "hidden", name: `products[${index}][product_id]`, value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: `products[${index}][comment]`, class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
|
|
472
|
+
? h("section", { class: "s-rating-modal-step s-rating-modal-hidden", "data-type": "products" }, this.allowAttachImages && this.loyaltyPointsNote(), this.order.products.map((item, index) => h("div", { class: "s-rating-modal-product", key: index }, h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, h("div", { class: "s-rating-modal-product-img-wrap" }, h("img", { src: item.product.thumbnail, alt: item.product.name, class: "s-rating-modal-product-img" })), h("div", { class: "s-rating-modal-product-details" }, h("div", { class: "s-rating-modal-product-details-main" }, h("div", null, h("h3", { class: "s-rating-modal-product-title" }, " ", item.product.name), h("div", { class: "s-rating-modal-stars-product" }, h("salla-rating-stars", { withLabel: true, size: "small", name: `products[${index}][rating]` }))), this.allowAttachImages && h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(index) }, h("span", null, this.addImagesLabel), h("span", { innerHTML: ImageIcon }))), h("input", { type: "hidden", name: `products[${index}][product_id]`, value: item.product.id }), h("textarea", { placeholder: salla.lang.get('pages.rating.write_product_rate'), name: `products[${index}][comment]`, class: "s-rating-modal-comment" }), h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[index] = el) }, h("salla-file-upload", { name: "image", maxFilesCount: this.MAX_UPLOAD_LIMIT, imagePreviewHeight: 117, "instant-upload": true, type: "feedback", payloadName: "files[]", id: `file-${item.product.id}`, title: item.product.name, allowMultiple: true, instantUpload: true, accept: "image/png, image/jpeg, image/jpg", url: salla.url.api('upload'), onUploaded: (e) => {
|
|
448
473
|
this.productImages = {
|
|
449
474
|
...this.productImages,
|
|
450
475
|
[item.product.id]: [...(this.productImages[item.product.id] || []), e.detail]
|
|
@@ -498,6 +523,7 @@ const SallaRatingModal$1 = /*@__PURE__*/ proxyCustomElement(class SallaRatingMod
|
|
|
498
523
|
"editFeedbackId": [32],
|
|
499
524
|
"deleteFeedbackId": [32],
|
|
500
525
|
"editItem": [32],
|
|
526
|
+
"loyaltyImageRatingPoints": [32],
|
|
501
527
|
"enableNewPopUp": [32],
|
|
502
528
|
"open": [64],
|
|
503
529
|
"close": [64]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-BPOLfGlq.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|