@salla.sa/twilight-components 2.14.489 → 2.14.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{filepond-C-1J1qrF.js → filepond-DMNwZGDe.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-B8fUrKqJ.js → filepond-plugin-file-poster-CwJqn9cv.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BJ4Bw3Ju.js → filepond-plugin-file-validate-size-D8HCq_yt.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-D_Smjf6h.js → filepond-plugin-file-validate-type-DZHIztrf.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BDZBDL-U.js → filepond-plugin-image-edit-DtW6aab5.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B68mU2op.js → filepond-plugin-image-exif-orientation-DlHuggE7.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-B2RzZ9r9.js → filepond-plugin-image-preview-rSt0R5Fs.js} +1 -1
- package/dist/cjs/{functions-DdZX56J7.js → functions-Cl4vQLXn.js} +1 -1
- package/dist/cjs/{index-DWea49r_.js → index-CfrGmYJa.js} +17 -5
- package/dist/cjs/{index-B5CW9Xve.js → index-CrTL2nRh.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +45 -0
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +112 -30
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1060 -0
- package/dist/cjs/salla-rating-modal.cjs.entry.js +38 -14
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +127 -0
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +6 -6
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +3 -3
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/shipping-fast-CsqEQE78.js +13 -0
- package/dist/{esm/star-ZT7ehBBk.js → cjs/star-DMzrN05M.js} +4 -2
- package/dist/cjs/{tracked-promise-DNxhV4_1.js → tracked-promise-ClJBjg9o.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-ClijNDRd.js → vanilla-picker-um8NlppX.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/salla-comments/salla-comment-factors.js +76 -0
- package/dist/collection/components/salla-comments/salla-comment-item.js +20 -6
- package/dist/collection/components/salla-comments/salla-comments.css +110 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +1203 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +112 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -2
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +34 -1
- package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +117 -16
- package/dist/collection/components/salla-review-factors-tags/helpers.js +86 -0
- package/dist/collection/components/salla-review-factors-tags/interfaces.js +1 -0
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +41 -0
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +135 -0
- package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +60 -0
- package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js +12 -2
- package/dist/collection/components/salla-search/salla-search.js +5 -5
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/salla-comment-factors.d.ts +11 -0
- package/dist/components/salla-comment-factors.js +9 -0
- package/dist/components/salla-comment-factors2.js +66 -0
- package/dist/components/salla-comment-item2.js +29 -9
- package/dist/components/salla-comments.js +9 -3
- package/dist/components/salla-rating-modal-v2.d.ts +11 -0
- package/dist/components/salla-rating-modal-v2.js +9 -0
- package/dist/components/salla-rating-modal-v22.js +1149 -0
- package/dist/components/salla-rating-modal.js +49 -19
- package/dist/components/salla-rating-stars2.js +80 -17
- package/dist/components/salla-review-factors-tags.d.ts +11 -0
- package/dist/components/salla-review-factors-tags.js +149 -0
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reviews-summary2.js +13 -3
- package/dist/components/salla-reviews.js +1 -1
- package/dist/components/salla-search.js +5 -5
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{filepond-z2hEBvHC.js → filepond-Cg7o_vnN.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-B9sxi6Yz.js → filepond-plugin-file-poster-BJ1q5i_Q.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-HWpVatr_.js → filepond-plugin-file-validate-size-KAp2gG4p.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-SgpUhQB_.js → filepond-plugin-file-validate-type-D6KC6aKt.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-0F90Q6lM.js → filepond-plugin-image-edit-CsviUA8z.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CXJDp_1v.js → filepond-plugin-image-exif-orientation-DORQxh2z.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-APl1nt4k.js → filepond-plugin-image-preview-DiN_MPtQ.js} +1 -1
- package/dist/esm/{functions-BCdJLPcs.js → functions-ChcWts7Y.js} +1 -1
- package/dist/esm/{index-DNWyGkAx.js → index-DkTbP5UX.js} +17 -5
- package/dist/esm/{index-DhwQVX77.js → index-nv62Rr6s.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +43 -0
- package/dist/esm/salla-comment-form_8.entry.js +112 -30
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1058 -0
- package/dist/esm/salla-rating-modal.entry.js +36 -12
- package/dist/esm/salla-review-factors-tags.entry.js +125 -0
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +6 -6
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +5 -5
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/shipping-fast-lMgMt31Q.js +11 -0
- package/dist/{cjs/star-DGcH7Yso.js → esm/star-CeFAfcTv.js} +2 -4
- package/dist/esm/{tracked-promise-CjtqaGP2.js → tracked-promise-BhGtlRVb.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DPMDb9SB.js → vanilla-picker-CBI_4fLe.js} +1 -1
- package/dist/twilight/{p-61813e83.entry.js → p-01240db4.entry.js} +1 -1
- package/dist/twilight/{p-90534314.entry.js → p-01cd2407.entry.js} +1 -1
- package/dist/twilight/{p-40407996.entry.js → p-02b365bd.entry.js} +1 -1
- package/dist/twilight/p-03ab9920.entry.js +4 -0
- package/dist/twilight/{p-b5d32897.entry.js → p-03cc6665.entry.js} +1 -1
- package/dist/twilight/{p-f9192741.entry.js → p-0a32b0d6.entry.js} +1 -1
- package/dist/twilight/{p-1aeeb0f0.entry.js → p-0de58301.entry.js} +1 -1
- package/dist/twilight/{p-da66f939.entry.js → p-0e0db003.entry.js} +1 -1
- package/dist/twilight/{p-e9cdcf2f.entry.js → p-0f853d19.entry.js} +1 -1
- package/dist/twilight/{p-991b1e85.entry.js → p-0f859745.entry.js} +1 -1
- package/dist/twilight/{p-26faf85e.entry.js → p-0ff0a5cd.entry.js} +1 -1
- package/dist/twilight/{p-fa5fa155.entry.js → p-111e8bd4.entry.js} +1 -1
- package/dist/twilight/{p-160fc21e.entry.js → p-1182a8df.entry.js} +1 -1
- package/dist/twilight/{p-46cd5ece.entry.js → p-121dc015.entry.js} +1 -1
- package/dist/twilight/{p-1a957d13.entry.js → p-15bc19e7.entry.js} +1 -1
- package/dist/twilight/{p-5171b440.entry.js → p-18dada14.entry.js} +1 -1
- package/dist/twilight/{p-14f8ba23.entry.js → p-1a3e548c.entry.js} +1 -1
- package/dist/twilight/{p-7fb92e0b.entry.js → p-1f43ed62.entry.js} +1 -1
- package/dist/twilight/{p-3e7a3c6e.entry.js → p-2414aef5.entry.js} +1 -1
- package/dist/twilight/{p-3ce46edf.entry.js → p-25bfec19.entry.js} +1 -1
- package/dist/twilight/{p-f14fe365.entry.js → p-26211933.entry.js} +1 -1
- package/dist/twilight/{p-4ab4e5ea.entry.js → p-2656742a.entry.js} +1 -1
- package/dist/twilight/{p-aaf7cbb1.entry.js → p-26594c13.entry.js} +1 -1
- package/dist/twilight/{p-06966ed6.entry.js → p-271b69a0.entry.js} +1 -1
- package/dist/twilight/{p-9fc965a7.entry.js → p-27ae0022.entry.js} +1 -1
- package/dist/twilight/{p-85fc94be.entry.js → p-28318fdf.entry.js} +1 -1
- package/dist/twilight/{p-8fec15f8.entry.js → p-28636b6b.entry.js} +1 -1
- package/dist/twilight/{p-1efc0eed.entry.js → p-2b6f45d9.entry.js} +1 -1
- package/dist/twilight/{p-6852162e.entry.js → p-2bcfed29.entry.js} +1 -1
- package/dist/twilight/{p-082f3913.entry.js → p-2e2d9a86.entry.js} +1 -1
- package/dist/twilight/{p-78f161f2.entry.js → p-31c63840.entry.js} +1 -1
- package/dist/twilight/{p-edc4193f.entry.js → p-38e6442f.entry.js} +1 -1
- package/dist/twilight/p-3956807e.entry.js +4 -0
- package/dist/twilight/{p-6sBYUIya.js → p-495aeIVH.js} +1 -1
- package/dist/twilight/{p-12ccff98.entry.js → p-4b659dd8.entry.js} +1 -1
- package/dist/twilight/{p-43a2f42e.entry.js → p-51be1247.entry.js} +1 -1
- package/dist/twilight/{p-6ab60f90.entry.js → p-556550d6.entry.js} +1 -1
- package/dist/twilight/{p-844c6c1f.entry.js → p-57926552.entry.js} +1 -1
- package/dist/twilight/{p-7a0d2f4d.entry.js → p-583b37a5.entry.js} +1 -1
- package/dist/twilight/{p-c9aa80c3.entry.js → p-5932a5aa.entry.js} +1 -1
- package/dist/twilight/{p-094dcf0c.entry.js → p-5cd89a8e.entry.js} +1 -1
- package/dist/twilight/{p-56365c64.entry.js → p-6c74b5a4.entry.js} +1 -1
- package/dist/twilight/{p-6891f00b.entry.js → p-7092d5e9.entry.js} +1 -1
- package/dist/twilight/{p-b0d5084c.entry.js → p-7331a7d0.entry.js} +1 -1
- package/dist/twilight/{p-de942889.entry.js → p-75b9780f.entry.js} +1 -1
- package/dist/twilight/{p-ed02b506.entry.js → p-75d071f5.entry.js} +1 -1
- package/dist/twilight/{p-5b989746.entry.js → p-78364b26.entry.js} +1 -1
- package/dist/twilight/{p-d3f3eed5.entry.js → p-7869e2b4.entry.js} +1 -1
- package/dist/twilight/{p-24127075.entry.js → p-789ede46.entry.js} +1 -1
- package/dist/twilight/{p-f2e9d83b.entry.js → p-7cb04076.entry.js} +1 -1
- package/dist/twilight/{p-6e7a6f4b.entry.js → p-7fa40598.entry.js} +1 -1
- package/dist/twilight/{p-f8933bd5.entry.js → p-8430e33c.entry.js} +1 -1
- package/dist/twilight/p-8549ed85.entry.js +4 -0
- package/dist/twilight/{p-f6d6dada.entry.js → p-88bc9aff.entry.js} +1 -1
- package/dist/twilight/{p-c4c32432.entry.js → p-8d83987b.entry.js} +1 -1
- package/dist/twilight/{p-9474d525.entry.js → p-956be35f.entry.js} +1 -1
- package/dist/twilight/{p-f2dbde1c.entry.js → p-9c27c468.entry.js} +1 -1
- package/dist/twilight/{p-Ca18LMTl.js → p-B4xPvvKC.js} +1 -1
- package/dist/twilight/{p-C72A7Y44.js → p-Bp81rq7T.js} +1 -1
- package/dist/twilight/{p-ZT7ehBBk.js → p-CeFAfcTv.js} +1 -1
- package/dist/twilight/{p-DJ3ziTwG.js → p-CszkocSp.js} +2 -2
- package/dist/twilight/{p-5wempgCB.js → p-CvcP7d1k.js} +1 -1
- package/dist/twilight/{p-Bw7P5SwX.js → p-D1tp_3zr.js} +1 -1
- package/dist/twilight/{p-BwggHXVj.js → p-D3lg7_WR.js} +1 -1
- package/dist/twilight/{p-DQUSqsnq.js → p-D68AOZPQ.js} +1 -1
- package/dist/twilight/{p-DNWyGkAx.js → p-DkTbP5UX.js} +2 -2
- package/dist/twilight/{p-3c10826c.entry.js → p-a104a885.entry.js} +1 -1
- package/dist/twilight/{p-85c6c44f.entry.js → p-a5310ab5.entry.js} +1 -1
- package/dist/twilight/{p-04a6cb8f.entry.js → p-ab8ffcbf.entry.js} +1 -1
- package/dist/twilight/{p-0a9af711.entry.js → p-acf6a8f0.entry.js} +1 -1
- package/dist/twilight/{p-47dd6817.entry.js → p-ad8111fa.entry.js} +1 -1
- package/dist/twilight/{p-cbc66d20.entry.js → p-af41ebe4.entry.js} +1 -1
- package/dist/twilight/{p-f01c12dc.entry.js → p-b4fc5871.entry.js} +1 -1
- package/dist/twilight/{p-ca028945.entry.js → p-b7916db2.entry.js} +1 -1
- package/dist/twilight/{p-e2da0555.entry.js → p-b87ac43c.entry.js} +1 -1
- package/dist/twilight/{p-338a55c1.entry.js → p-bdca0d7a.entry.js} +1 -1
- package/dist/twilight/{p-6494c6bf.entry.js → p-be44f2e4.entry.js} +1 -1
- package/dist/twilight/{p-5993b7d0.entry.js → p-bf50723d.entry.js} +1 -1
- package/dist/twilight/{p-a965c431.entry.js → p-c0dd76e3.entry.js} +1 -1
- package/dist/twilight/{p-db9dc344.entry.js → p-c3c9b136.entry.js} +1 -1
- package/dist/twilight/{p-d239611f.entry.js → p-c583ab13.entry.js} +1 -1
- package/dist/twilight/p-c71a6e9c.entry.js +4 -0
- package/dist/twilight/{p-ef2d94d3.entry.js → p-c774a729.entry.js} +1 -1
- package/dist/twilight/p-c80b8b30.entry.js +4 -0
- package/dist/twilight/{p-52283d18.entry.js → p-c9dcf28b.entry.js} +1 -1
- package/dist/twilight/{p-C5HojqDY.js → p-cUujZ85s.js} +1 -1
- package/dist/twilight/{p-3f924fc5.entry.js → p-ca1c1c50.entry.js} +2 -2
- package/dist/twilight/{p-9273a620.entry.js → p-cbbfec66.entry.js} +1 -1
- package/dist/twilight/{p-602df9ed.entry.js → p-ce0d56c1.entry.js} +1 -1
- package/dist/twilight/{p-7bbea228.entry.js → p-d0eb0e3d.entry.js} +1 -1
- package/dist/twilight/{p-08641aeb.entry.js → p-d27c3758.entry.js} +1 -1
- package/dist/twilight/p-d617bb3f.entry.js +4 -0
- package/dist/twilight/{p-cee1f87a.entry.js → p-d7633d87.entry.js} +1 -1
- package/dist/twilight/{p-ac7c0ea4.entry.js → p-d981255b.entry.js} +1 -1
- package/dist/twilight/{p-69766916.entry.js → p-d9e7a2a9.entry.js} +1 -1
- package/dist/twilight/{p-02e2f661.entry.js → p-dca909c8.entry.js} +1 -1
- package/dist/twilight/{p-4b17c9a0.entry.js → p-df9267ca.entry.js} +1 -1
- package/dist/twilight/{p-cfc209db.entry.js → p-eba770b4.entry.js} +1 -1
- package/dist/twilight/{p-c84ada78.entry.js → p-ee67787c.entry.js} +1 -1
- package/dist/twilight/{p-0cd023d2.entry.js → p-f303739b.entry.js} +1 -1
- package/dist/twilight/{p-afc451ef.entry.js → p-f834ded2.entry.js} +1 -1
- package/dist/twilight/{p-ab2a5243.entry.js → p-f855ad35.entry.js} +1 -1
- package/dist/twilight/{p-39b8ffcd.entry.js → p-faf369b8.entry.js} +1 -1
- package/dist/twilight/{p-b6cdfd09.entry.js → p-fc26088c.entry.js} +1 -1
- package/dist/twilight/{p-Dp4UckOj.js → p-jgiIvZFz.js} +1 -1
- package/dist/twilight/p-lMgMt31Q.js +4 -0
- package/dist/twilight/{p-CsSICzhL.js → p-qT0_dvbw.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-comments/interfaces.d.ts +6 -0
- package/dist/types/components/salla-comments/salla-comment-factors.d.ts +6 -0
- package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -0
- package/dist/types/components/salla-comments/salla-comments.d.ts +2 -2
- package/dist/types/components/salla-rating-modal/order-feedback-response.d.ts +32 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +151 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +5 -1
- package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +13 -0
- package/dist/types/components/salla-review-factors-tags/helpers.d.ts +16 -0
- package/dist/types/components/salla-review-factors-tags/interfaces.d.ts +17 -0
- package/dist/types/components/salla-review-factors-tags/salla-review-factors-tags.d.ts +24 -0
- package/dist/types/components/salla-reviews-summary/interfaces.d.ts +5 -0
- package/dist/types/components/salla-reviews-summary/salla-reviews-summary.d.ts +2 -0
- package/dist/types/components.d.ts +114 -2
- package/package.json +5 -5
- package/dist/twilight/p-f12a28f9.entry.js +0 -4
- package/dist/twilight/p-f6205375.entry.js +0 -4
- package/dist/twilight/p-fc676125.entry.js +0 -4
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var star = require('./star-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
|
+
var star = require('./star-DMzrN05M.js');
|
|
8
|
+
var shippingFast = require('./shipping-fast-CsqEQE78.js');
|
|
8
9
|
var checkCircle2 = require('./check-circle2-BDvlT4_n.js');
|
|
9
10
|
var Helper = require('./Helper-B2B-kxAI.js');
|
|
10
11
|
var image = require('./image-BoZ6Hums.js');
|
|
@@ -12,14 +13,7 @@ var whatsapp2 = require('./whatsapp2-BdMd5Gx1.js');
|
|
|
12
13
|
var mail = require('./mail-C9D8MHae.js');
|
|
13
14
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
17
|
-
<title>shipping-fast</title>
|
|
18
|
-
<path d="M10.667 14.667c0-0.737-0.597-1.333-1.333-1.333h-8c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h8c0.736 0 1.333-0.596 1.333-1.333zM9.333 18.667c-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333 5.333-2.392 5.333-5.333-2.392-5.333-5.333-5.333zM9.333 26.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667zM1.333 10.667h5.333c0.736 0 1.333-0.596 1.333-1.333s-0.597-1.333-1.333-1.333h-5.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333zM31.123 13.103l-3.147-3.935c-1.273-1.589-3.171-2.501-5.205-2.501h-1.437c0-2.205-1.795-4-4-4h-13.333c-0.736 0-1.333 0.596-1.333 1.333s0.597 1.333 1.333 1.333h13.333c0.735 0 1.333 0.597 1.333 1.333v1.333c0 0.248 0.087 0.468 0.204 0.667-0.117 0.199-0.204 0.419-0.204 0.667v5.333c0 0.737 0.597 1.333 1.333 1.333h9.333v6.667h-1.333c-0.063 0-0.117 0.028-0.179 0.036-0.583-2.313-2.664-4.036-5.155-4.036-2.941 0-5.333 2.392-5.333 5.333s2.392 5.333 5.333 5.333c2.491 0 4.572-1.723 5.155-4.036 0.061 0.008 0.116 0.036 0.179 0.036h2.667c0.736 0 1.333-0.596 1.333-1.333v-8.399c0-0.905-0.311-1.792-0.877-2.499zM21.333 13.333v-4h1.437c1.221 0 2.36 0.547 3.124 1.501l1.997 2.499zM22.667 26.667c-1.471 0-2.667-1.196-2.667-2.667s1.196-2.667 2.667-2.667 2.667 1.196 2.667 2.667-1.196 2.667-2.667 2.667z"></path>
|
|
19
|
-
</svg>
|
|
20
|
-
`;
|
|
21
|
-
|
|
22
|
-
const sallaRatingModalCss = "";
|
|
16
|
+
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}";
|
|
23
17
|
|
|
24
18
|
const SallaRatingModal = class {
|
|
25
19
|
constructor(hostRef) {
|
|
@@ -35,6 +29,7 @@ const SallaRatingModal = class {
|
|
|
35
29
|
this.deleteMode = false;
|
|
36
30
|
this.shouldOpenDeleteModal = false;
|
|
37
31
|
this.editItem = null;
|
|
32
|
+
this.enableNewPopUp = false;
|
|
38
33
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
39
34
|
this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
|
|
40
35
|
this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
|
|
@@ -145,10 +140,21 @@ const SallaRatingModal = class {
|
|
|
145
140
|
setTranslations();
|
|
146
141
|
});
|
|
147
142
|
}
|
|
143
|
+
getV2Ref() {
|
|
144
|
+
return this.v2Ref ?? this.host.querySelector('salla-rating-modal-v2');
|
|
145
|
+
}
|
|
146
|
+
syncNewPopUpFlag() {
|
|
147
|
+
this.enableNewPopUp = !!salla.config.get('store.features')?.includes('new_popup_rating');
|
|
148
|
+
}
|
|
148
149
|
/**
|
|
149
150
|
* Show the rating modal
|
|
150
151
|
*/
|
|
151
152
|
async open() {
|
|
153
|
+
await salla.onReady();
|
|
154
|
+
this.syncNewPopUpFlag();
|
|
155
|
+
if (this.enableNewPopUp) {
|
|
156
|
+
return this.getV2Ref()?.open();
|
|
157
|
+
}
|
|
152
158
|
this.defaultMode = true;
|
|
153
159
|
return new Promise((resolve) => {
|
|
154
160
|
setTimeout(() => {
|
|
@@ -178,6 +184,11 @@ const SallaRatingModal = class {
|
|
|
178
184
|
});
|
|
179
185
|
}
|
|
180
186
|
async openEditModal(params) {
|
|
187
|
+
await salla.onReady();
|
|
188
|
+
this.syncNewPopUpFlag();
|
|
189
|
+
if (this.enableNewPopUp) {
|
|
190
|
+
return this.getV2Ref()?.openEditModal(params);
|
|
191
|
+
}
|
|
181
192
|
this.defaultMode = false;
|
|
182
193
|
this.editMode = true;
|
|
183
194
|
this.editType = params.type;
|
|
@@ -218,6 +229,11 @@ const SallaRatingModal = class {
|
|
|
218
229
|
});
|
|
219
230
|
}
|
|
220
231
|
async openDeleteModal(params) {
|
|
232
|
+
await salla.onReady();
|
|
233
|
+
this.syncNewPopUpFlag();
|
|
234
|
+
if (this.enableNewPopUp) {
|
|
235
|
+
return this.getV2Ref()?.openDeleteModal(params);
|
|
236
|
+
}
|
|
221
237
|
this.defaultMode = false;
|
|
222
238
|
this.deleteMode = true;
|
|
223
239
|
this.deleteFeedbackId = params.feedback_id;
|
|
@@ -242,6 +258,9 @@ const SallaRatingModal = class {
|
|
|
242
258
|
* Show the rating modal
|
|
243
259
|
*/
|
|
244
260
|
async close() {
|
|
261
|
+
if (this.enableNewPopUp) {
|
|
262
|
+
return this.getV2Ref()?.close();
|
|
263
|
+
}
|
|
245
264
|
return this.modal.close();
|
|
246
265
|
}
|
|
247
266
|
// handle wizard
|
|
@@ -392,7 +411,7 @@ const SallaRatingModal = class {
|
|
|
392
411
|
getEditModal() {
|
|
393
412
|
return (index.h("salla-modal", { ref: modal => this.editModal = modal, width: "md", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen) }, index.h("div", { class: "s-rating-modal-edit-wrapper", ref: el => this.body = el }, this.editType === "store" && this.editItem ? (index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step", "data-type": "store", ref: currentTab => this.currentTab = currentTab }, index.h("div", { class: "s-rating-modal-rounded-icon" }, index.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" })), index.h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", value: this.editItem.content, class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType === "shipping" && this.editItem ? (index.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
|
|
394
413
|
? index.h("div", { class: "s-rating-modal-rounded-icon" }, index.h("img", { src: this.editItem.shipping.logo, class: "s-rating-modal-shipping-logo", alt: this.editItem.shipping.name }))
|
|
395
|
-
: index.h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), index.h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? index.h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, index.h("div", { class: "s-rating-modal-product" }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-details-main" }, index.h("div", null, index.h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), index.h("div", { class: "s-rating-modal-stars-product" }, index.h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && index.h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, index.h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), index.h("span", { innerHTML: image.ImageIcon }))), index.h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, index.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) => {
|
|
414
|
+
: index.h("span", { class: "s-rating-modal-icon", innerHTML: shippingFast.ShippingFast }), index.h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.editItem.shipping.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large", editable: true, value: this.editItem.stars })), index.h("textarea", { name: "content", class: "s-rating-modal-comment", value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))) : null, this.editType == "product" && this.editItem ? index.h("section", { class: "s-rating-modal-step", "data-type": "products", ref: currentTab => this.currentTab = currentTab }, index.h("div", { class: "s-rating-modal-product" }, index.h("div", { class: "rating-outer-form", "data-stars-error": salla.lang.get('pages.rating.rate_product_stars') }, index.h("div", { class: "s-rating-modal-product-img-wrap" }, index.h("img", { src: this.editItem.product.image.url, alt: this.editItem.product.name, class: "s-rating-modal-product-img" })), index.h("div", { class: "s-rating-modal-product-details" }, index.h("div", { class: "s-rating-modal-product-details-main" }, index.h("div", null, index.h("h3", { class: "s-rating-modal-product-title" }, " ", this.editItem.product.name), index.h("div", { class: "s-rating-modal-stars-product" }, index.h("salla-rating-stars", { withLabel: true, size: "small", editable: true, value: this.editItem.stars }))), this.allowAttachImages && index.h("salla-button", { class: "s-comments-item-like-btn mt-0", loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleUploader(1) }, index.h("span", null, this.editItemImages.length ? this.editImagesLabel : this.addImagesLabel), index.h("span", { innerHTML: image.ImageIcon }))), index.h("textarea", { value: this.editItem.content, placeholder: salla.lang.get('pages.rating.write_product_rate'), name: "content", class: "s-rating-modal-comment" }), index.h("small", { class: "s-rating-modal-validation-msg" }))), this.allowAttachImages && (index.h("div", { class: "s-rating-modal-uploader is-closed", ref: (el) => (this.contentRefs[1] = el) }, index.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) => {
|
|
396
415
|
this.editItemImages = [...this.editItemImages, e.detail];
|
|
397
416
|
this.hiddenInputs[1].value = this.editItemImages.map(img => img.url).join();
|
|
398
417
|
}, onRemoved: (e) => {
|
|
@@ -405,6 +424,9 @@ const SallaRatingModal = class {
|
|
|
405
424
|
: null, index.h("div", { class: "s-rating-modal-footer s-rating-modal-footer-end" }, index.h("salla-button", { "loader-position": 'center', onClick: () => this.editReview() }, this.editReviewLabel)))));
|
|
406
425
|
}
|
|
407
426
|
render() {
|
|
427
|
+
if (this.enableNewPopUp) {
|
|
428
|
+
return (index.h(index.Host, { class: "s-rating-modal" }, index.h("salla-rating-modal-v2", { ref: (el) => (this.v2Ref = el), orderId: this.orderId })));
|
|
429
|
+
}
|
|
408
430
|
if (this.deleteMode) {
|
|
409
431
|
return index.h(index.Host, { class: "s-rating-modal" }, this.getDeleteModal());
|
|
410
432
|
}
|
|
@@ -412,7 +434,7 @@ const SallaRatingModal = class {
|
|
|
412
434
|
return index.h(index.Host, { class: "s-rating-modal" }, this.getEditModal());
|
|
413
435
|
}
|
|
414
436
|
if (this.defaultMode) {
|
|
415
|
-
return (index.h(index.Host, { class: "s-rating-modal" }, index.h("salla-modal", { class: "s-rating-modal-wrap", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen), isLoading: true, width: "md", ref: modal => this.modal = modal }, index.h("div", { slot: 'loading' }, index.h("div", { class: "s-rating-modal-skeleton" }, index.h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { height: '15px', width: '60%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map((v) => index.h("div", { key: v, innerHTML: star.
|
|
437
|
+
return (index.h(index.Host, { class: "s-rating-modal" }, index.h("salla-modal", { class: "s-rating-modal-wrap", onModalVisibilityChanged: (isOpen) => this.resetData(isOpen), isLoading: true, width: "md", ref: modal => this.modal = modal }, index.h("div", { slot: 'loading' }, index.h("div", { class: "s-rating-modal-skeleton" }, index.h("salla-skeleton", { type: 'circle', height: '80px', width: '80px' }), index.h("salla-skeleton", { height: '15px', width: '60%' }), index.h("salla-skeleton", { height: '10px', width: '30%' }), index.h("div", { class: "s-rating-modal-skeleton-stars" }, [...Array(5)].map((v) => index.h("div", { key: v, innerHTML: star.Star }))), index.h("salla-skeleton", { height: '100px', width: '100%' }), index.h("div", { class: "s-rating-modal-skeleton-footer" }, index.h("salla-skeleton", { height: '40px', width: '30%' })))), !this.hasError && this.order
|
|
416
438
|
? [index.h("div", { class: "s-rating-modal-wrapper", ref: el => this.body = el }, this.order?.testimonials_enabled ?
|
|
417
439
|
index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "store" }, index.h("div", { class: "s-rating-modal-rounded-icon" }, index.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" })), index.h("h2", { class: "s-rating-modal-title" }, salla.lang.get('pages.rating.rate_the_store')), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large" })), index.h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_store_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))
|
|
418
440
|
: '', this.order.products_enabled
|
|
@@ -435,15 +457,17 @@ const SallaRatingModal = class {
|
|
|
435
457
|
: '', this.order.shipping_enabled && this.order.shipping?.company
|
|
436
458
|
? index.h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "shipping" }, index.h("input", { type: "hidden", name: "shipping_company_id", value: this.order.shipping.company.id }), this.order.shipping.company.logo
|
|
437
459
|
? index.h("div", { class: "s-rating-modal-rounded-icon" }, index.h("img", { src: this.order.shipping.company.logo, class: "s-rating-modal-shipping-logo", alt: this.order.shipping.company.name }))
|
|
438
|
-
: index.h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), index.h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.order.shipping.company.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large" })), index.h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))
|
|
460
|
+
: index.h("span", { class: "s-rating-modal-icon", innerHTML: shippingFast.ShippingFast }), index.h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.order.shipping.company.name}`), index.h("div", { class: "s-rating-modal-stars-company" }, index.h("salla-rating-stars", { withLabel: true, size: "large" })), index.h("textarea", { name: "comment", class: "s-rating-modal-comment", placeholder: salla.lang.get('pages.rating.write_shipping_rate') }), index.h("small", { class: "s-rating-modal-validation-msg" }))
|
|
439
461
|
: '', index.h("div", { class: "s-rating-modal-thanks s-rating-modal-hidden", ref: el => this.thanksTab = el }, index.h("span", { class: "s-rating-modal-icon", innerHTML: checkCircle2.CheckCircle2 }), index.h("h3", { class: "s-rating-modal-thanks-title" }, salla.lang.get('pages.rating.thanks')), index.h("div", { class: "s-rating-modal-thanks-msg", innerHTML: this.order.thanks_message }), index.h("time", { class: "s-rating-modal-thanks-time", ref: el => this.thanksTime = el }))), this.allowContactSupport && this.showContactWidget && (salla.config.get('store.contacts.whatsapp') || salla.config.get('store.contacts.email')) ? index.h("div", { class: "s-rating-modal-contact" }, index.h("p", null, this.contactUsLabel), index.h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && index.h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: whatsapp2.WhatsappIcon }), salla.config.get('store.contacts.email') && index.h("span", { onClick: () => this.handleSendEmail(), innerHTML: mail.email }))) : '', index.h("div", { class: "s-rating-modal-footer" }, index.h("button", { ref: el => this.backBtn = el, onClick: () => this.previousTab(), class: "s-rating-modal-btn s-rating-modal-unvisiable" }, salla.lang.get('common.elements.back')), this.stepsCount > 1 ? index.h("ul", { class: "s-rating-modal-dots" }, [0, 1, 2].slice(0, this.stepsCount).map((v) => index.h("li", { key: v, class: 's-rating-modal-bg-gray s-rating-modal-step-dot' }))) : '', index.h("salla-button", { "loader-position": 'center', ref: el => this.nextBtn = el, onClick: () => this.submit() }, salla.lang.get('common.elements.next')))]
|
|
440
462
|
: index.h("salla-placeholder", { alignment: "center" }))));
|
|
441
463
|
}
|
|
442
464
|
}
|
|
443
|
-
componentWillLoad() {
|
|
465
|
+
async componentWillLoad() {
|
|
444
466
|
salla.event.on('rating::open', () => this.open());
|
|
445
467
|
salla.event.on('rating::edit', (params) => this.openEditModal(params));
|
|
446
468
|
salla.event.on('rating::delete', (params) => this.openDeleteModal(params));
|
|
469
|
+
await salla.onReady();
|
|
470
|
+
this.syncNewPopUpFlag();
|
|
447
471
|
}
|
|
448
472
|
componentDidLoad() {
|
|
449
473
|
salla.event.dispatch('rating::ready', this);
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
|
+
var star2 = require('./star2-R146a27p.js');
|
|
8
|
+
|
|
9
|
+
const CACHE_TTL = 5 * 60 * 1000;
|
|
10
|
+
const orderCache = new Map();
|
|
11
|
+
const inFlightRequests = new Map();
|
|
12
|
+
function normalizeList(value) {
|
|
13
|
+
if (!value) {
|
|
14
|
+
return [];
|
|
15
|
+
}
|
|
16
|
+
return Array.isArray(value) ? value : Object.values(value);
|
|
17
|
+
}
|
|
18
|
+
function getProductRatings(rating) {
|
|
19
|
+
if (!rating) {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
return [
|
|
23
|
+
...normalizeList(rating.product),
|
|
24
|
+
...normalizeList(rating.products),
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
function extractFactors(source) {
|
|
28
|
+
if (!source) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
for (const key of ['factor_reviews', 'review_factors', 'factors']) {
|
|
32
|
+
const value = source[key];
|
|
33
|
+
if (Array.isArray(value) && value.length) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
function findProductRating(productRatings, ratingId, productId, itemId) {
|
|
40
|
+
return productRatings.find((productRating) => {
|
|
41
|
+
if (ratingId && Number(productRating.id ?? productRating.feedback_id) === Number(ratingId)) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
if (itemId && Number(productRating.order_item_id) === Number(itemId)) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
if (productId && Number(productRating.product_id ?? productRating.product?.id) === Number(productId)) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function resolveReviewFactors(order, ratingId, productId, itemId) {
|
|
54
|
+
const productRatings = getProductRatings(order?.rating);
|
|
55
|
+
const productRating = findProductRating(productRatings, ratingId, productId, itemId);
|
|
56
|
+
return extractFactors(productRating);
|
|
57
|
+
}
|
|
58
|
+
async function fetchOrder(orderId) {
|
|
59
|
+
if (!orderId) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
const cached = orderCache.get(orderId);
|
|
63
|
+
if (cached && Date.now() - cached.timestamp <= CACHE_TTL) {
|
|
64
|
+
return cached.data;
|
|
65
|
+
}
|
|
66
|
+
const pending = inFlightRequests.get(orderId);
|
|
67
|
+
if (pending) {
|
|
68
|
+
return pending;
|
|
69
|
+
}
|
|
70
|
+
const request = (async () => {
|
|
71
|
+
try {
|
|
72
|
+
const response = await salla.api.request(`orders/${orderId}`, '', 'get');
|
|
73
|
+
const data = response?.data ?? response;
|
|
74
|
+
orderCache.set(orderId, { data, timestamp: Date.now() });
|
|
75
|
+
return data;
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
orderCache.delete(orderId);
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
finally {
|
|
82
|
+
inFlightRequests.delete(orderId);
|
|
83
|
+
}
|
|
84
|
+
})();
|
|
85
|
+
inFlightRequests.set(orderId, request);
|
|
86
|
+
return request;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const sallaReviewFactorsTagsCss = ":host{display:inline-flex}.s-review-factors-tags-factors{display:flex;flex-wrap:wrap;gap:0.5rem;justify-content:flex-start;margin-bottom:0.6rem}.s-review-factors-tags-factor-tag{display:inline-flex;align-items:center;gap:0.25rem;border-radius:999px;border:1px solid #e8e8e8;background:rgba(255, 255, 255, 0.3);color:#374151;font-size:0.85rem;line-height:1;padding:0.4rem 0.65rem}.s-review-factors-tags-factor-rating{font-weight:600;color:#0f6a7c}.s-review-factors-tags-factor-star{display:inline-flex;width:0.8rem;height:0.8rem;fill:#0f6a7c}.s-review-factors-tags-factor-star svg{width:100%;height:100%}";
|
|
90
|
+
|
|
91
|
+
const SallaReviewFactorsTags = class {
|
|
92
|
+
constructor(hostRef) {
|
|
93
|
+
index.registerInstance(this, hostRef);
|
|
94
|
+
this.factors = [];
|
|
95
|
+
}
|
|
96
|
+
async componentWillLoad() {
|
|
97
|
+
await salla.onReady();
|
|
98
|
+
await this.loadFactors();
|
|
99
|
+
}
|
|
100
|
+
async loadFactors() {
|
|
101
|
+
if (!this.orderId) {
|
|
102
|
+
this.factors = [];
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
try {
|
|
106
|
+
const order = await fetchOrder(this.orderId);
|
|
107
|
+
this.factors = resolveReviewFactors(order, this.ratingId, this.productId, this.itemId);
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
console.error('[salla-review-factors-tags] failed to load order rating factors', error);
|
|
111
|
+
this.factors = [];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
renderFactorTags() {
|
|
115
|
+
const factors = this.factors || [];
|
|
116
|
+
if (!factors.length) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
return (index.h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (index.h("div", { class: "s-review-factors-tags-factor-tag" }, index.h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), index.h("span", { class: "s-review-factors-tags-factor-star", innerHTML: star2.Star }), index.h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
|
|
120
|
+
}
|
|
121
|
+
render() {
|
|
122
|
+
return (index.h(index.Host, { key: '2645f00c58f3ecbd3b486756dd9977edc9ae66fd', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
SallaReviewFactorsTags.style = sallaReviewFactorsTagsCss;
|
|
126
|
+
|
|
127
|
+
exports.salla_review_factors_tags = SallaReviewFactorsTags;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
|
+
var functions = require('./functions-Cl4vQLXn.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var tag = require('./tag-D-PcUR33.js');
|
|
10
10
|
var check = require('./check-BnVBPQNp.js');
|
|
11
11
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
12
|
-
var trackedPromise = require('./tracked-promise-
|
|
12
|
+
var trackedPromise = require('./tracked-promise-ClJBjg9o.js');
|
|
13
13
|
|
|
14
14
|
const sallaLoyaltyProgramCss$3 = "";
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
var search = require('./search-c7Aa7lM9.js');
|
|
8
8
|
var Helper = require('./Helper-B2B-kxAI.js');
|
|
9
9
|
require('./anime.es-BqW8JHZi.js');
|
|
@@ -131,10 +131,10 @@ const SallaSearch = class {
|
|
|
131
131
|
this.inputValue.length < 3 ? this.container.classList.remove('s-search-no-results') : '';
|
|
132
132
|
}
|
|
133
133
|
render() {
|
|
134
|
-
const searchContent = (index.h("div", { key: '
|
|
134
|
+
const searchContent = (index.h("div", { key: '4b97f190e4fcceb6d3f0bafecffc46aca578a657', class: { 's-search-container': true, 's-search-inline': this.inline }, ref: container => (this.container = container) }, index.h("div", { key: '4ce6eff390279cdca5dccf26fc2d27a53511b8d3', class: "s-search-input-wrapper" }, index.h("span", { key: 'bee65f6f7735601d44aa6fb58482d4632f70ed68', class: "s-search-icon-wrap" }, index.h("span", { key: '4d95d81c5ac952aabf40e70b1f06c17ec9d0df50', class: "s-search-icon", innerHTML: this.loading ? '<i class="s-search-spinner-loader"/>' : search.Search })), index.h("input", { key: 'bf605abb622e46632be9e2cc47b8eaec5823b3cf', type: "search", enterkeyhint: "search", autocomplete: "off", class: "s-search-input", placeholder: salla.lang.get('blocks.header.search_placeholder'), onInput: (e) => this.limitWordsAndSearch(e), onKeyDown: e => this.handleKeyDown(e), ref: input => (this.searchInput = input), style: {
|
|
135
135
|
height: this.height + 'px',
|
|
136
136
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
137
|
-
} }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '
|
|
137
|
+
} }), this.showAction ? (index.h("salla-button", { loading: this.loading, class: { 's-search-action': true, 's-search-action-oval': this.oval }, onClick: () => this.handleActionClick() }, !this.loading && index.h("span", { innerHTML: search.Search }))) : null), index.h("div", { key: '46b979e82da5d5b03cdb348bbb3f0f5828087949', class: "s-search-results" }, this.results?.data.map(product => (index.h("a", { href: product.url + '?from=search-bar', class: {
|
|
138
138
|
's-search-product': true,
|
|
139
139
|
's-search-product-not-available': !product.is_available,
|
|
140
140
|
}, innerHTML: this.productSlot
|
|
@@ -143,9 +143,9 @@ const SallaSearch = class {
|
|
|
143
143
|
.replace(/\{regular_price\}/g, product.is_on_sale && product.regular_price
|
|
144
144
|
? salla.money(product.regular_price)
|
|
145
145
|
: '')
|
|
146
|
-
.replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: '
|
|
147
|
-
const modalContent = (index.h("salla-modal", { key: '
|
|
148
|
-
const placeholderContent = (index.h("div", { key: '
|
|
146
|
+
.replace(/\{image\}/g, product.image.url) }))), index.h("p", { key: '484dbcb11952df2a5d100dfc176c98359b059070', ref: el => (this.noResults = el), class: "s-search-no-results-placeholder" }, salla.lang.get('common.elements.no_options')))));
|
|
147
|
+
const modalContent = (index.h("salla-modal", { key: 'b35ef402291810a005673d3d55227cc7919c593a', position: "top", class: "s-search-modal", ref: modal => (this.modal = modal) }, searchContent));
|
|
148
|
+
const placeholderContent = (index.h("div", { key: 'cff9e90ce4641545cd97d2946f52f49e4fbada91', class: "s-search-placeholder-wrapper s-search-inline" }, index.h("div", { key: 'd48ebc0c07ef4dc154cca5d99cfa652bf06cb84c', class: "s-search-input-wrapper" }, index.h("span", { key: 'b0c4055476bc996d3be3df9af49dc7fead72dabc', class: "s-search-icon-wrap" }, index.h("span", { key: '55c84b48d01ed6da83e802904ca1e0df7afc6060', class: "s-search-icon", innerHTML: search.Search })), index.h("button", { key: '86356037f4bf117bef07d4afd1569342e2e729c7', type: "button", class: "s-search-input s-search-placeholder-trigger", onClick: () => this.open(), style: {
|
|
149
149
|
height: this.height + 'px',
|
|
150
150
|
borderRadius: this.oval ? this.height / 2 + 'px' : '',
|
|
151
151
|
} }, salla.lang.get('blocks.header.search_placeholder'))), modalContent));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
|
|
8
8
|
const sallaSkeletonCss = ":host{display:block}";
|
|
9
9
|
|
|
@@ -28,7 +28,7 @@ const SallaSkeleton = class {
|
|
|
28
28
|
's-skeleton-item': true,
|
|
29
29
|
's-skeleton-item-circular': this.type == 'circle',
|
|
30
30
|
};
|
|
31
|
-
return (index.h(index.Host, { key: '
|
|
31
|
+
return (index.h(index.Host, { key: 'deeabec297427c67935decac658fec39d3de2a96', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, index.h("div", { key: '14ad7e998011a41f9d6b3c942748704b887d064a', class: classes }, "\u00A0")));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
SallaSkeleton.style = sallaSkeletonCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var facebook = require('./facebook-DbXua6B9.js');
|
|
9
9
|
var mail = require('./mail-C9D8MHae.js');
|
|
@@ -373,7 +373,7 @@ const SallaSocialShare = class {
|
|
|
373
373
|
})));
|
|
374
374
|
}
|
|
375
375
|
render() {
|
|
376
|
-
return (index.h("div", { key: '
|
|
376
|
+
return (index.h("div", { key: '39624373671142e55397431ea0fa5e9562f67c35', class: "s-social-share-wrapper" }, index.h("slot", { key: 'e6a09f4b0a93ae3356982cd9a278633f94f8d6cb', name: "widget" }, index.h("salla-button", { key: 'e07ee3d79e39f2c2eefa07d89aafa316040085dc', "aria-label": "Share", onClick: () => this.toggle(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, index.h("span", { key: '0aa867b61db4fbaac7c087e28501f0eaf6800d5d', innerHTML: this.opened ? cancel.SICancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
377
377
|
}
|
|
378
378
|
get host() { return index.getElement(this); }
|
|
379
379
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
var facebook = require('./facebook-DbXua6B9.js');
|
|
8
8
|
|
|
9
9
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -57,7 +57,7 @@ const SallaSocial = class {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
const linksArray = this.getLinksArray();
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: '26d3fc5383ae5779a4b077b5487d363045c305fb' }, index.h("ul", { key: '70f9a23a493c1cadeeb0f097fde1f601525eb0e8', class: "s-social-list" }, linksArray.map((link) => (index.h("li", { class: "s-social-link" }, index.h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
61
61
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
62
62
|
.replace(/\{type\}/g, link.type)
|
|
63
63
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
|
|
8
8
|
const sallaTabContentCss = "";
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ const SallaTabContent = class {
|
|
|
33
33
|
's-tabs-content': true,
|
|
34
34
|
's-tabs-content-selected': this.isSelected
|
|
35
35
|
};
|
|
36
|
-
return (index.h("div", { key: '
|
|
36
|
+
return (index.h("div", { key: 'cc5ef1c683b375542a5ae62747288b5aabd12341', class: classes }, index.h("slot", { key: '5c131ec54cfa1f5044af6aa652acb66f0135946b' })));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -92,7 +92,7 @@ const SallaTabHeader = class {
|
|
|
92
92
|
's-tabs-active': this.isSelected,
|
|
93
93
|
};
|
|
94
94
|
return [
|
|
95
|
-
index.h("div", { key: '
|
|
95
|
+
index.h("div", { key: 'b895bb8a17ac2d2e4c4e573402c4307dfa8f0b65', class: classes, onClick: this.onClick.bind(this) }, index.h("slot", { key: '89099b6e7c217a61632c3ff8e6fcf6c141f4a755' })),
|
|
96
96
|
];
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -145,7 +145,7 @@ const SallaTabs = class {
|
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
return [
|
|
148
|
-
index.h("div", { key: '
|
|
148
|
+
index.h("div", { key: 'bc2ee0fc01451eec9ecc1b4cf341fd46acffa719', class: "s-tabs" }, index.h("div", { key: 'b6ccd64ef599c25510a8c7f2f1ea602fa09ed939', class: "s-tabs-header" }, index.h("slot", { key: '8c8826aa6ecd214018a71cc36c34343ccec6172b', name: "header" })), index.h("div", { key: '01444adfa11f0daccbd3814b938955f374715ccb', class: "s-tabs-content-wrapper" }, index.h("slot", { key: '9d520842f16e6eee3a515f04f577d0f8f09c484e', name: "content" })))
|
|
149
149
|
];
|
|
150
150
|
}
|
|
151
151
|
get host() { return index.getElement(this); }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
|
|
8
8
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--color-primary) transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ const SallaTooltip = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const validTheme = ['default', 'dark'].includes(this.theme) ? this.theme : 'default';
|
|
36
|
-
return (index.h("div", { key: '
|
|
36
|
+
return (index.h("div", { key: '449a90d32ba963fcccd459a59c89ccd7a1d987cb', class: "s-tooltip-container" }, index.h("div", { key: '4d0a51aeb7e1b640d618948b1bda7170fa4b1264', class: `s-tooltip-item s-tooltip-item--${validTheme}`, style: { display: this.show ? 'block' : 'none' } }, this.text ? index.h("span", null, this.text) : index.h("slot", null))));
|
|
37
37
|
}
|
|
38
38
|
get el() { return index.getElement(this); }
|
|
39
39
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|
|
10
|
-
var star = require('./star-
|
|
10
|
+
var star = require('./star-DMzrN05M.js');
|
|
11
11
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
12
12
|
var star2 = require('./star2-R146a27p.js');
|
|
13
13
|
var gift = require('./gift-DbNivqYO.js');
|
|
@@ -105,7 +105,7 @@ const SallaUserMenu = class {
|
|
|
105
105
|
notifications: bellRing.BellRing,
|
|
106
106
|
orders: OrderIcon,
|
|
107
107
|
pending_orders: cart.PendingOrdersIcon,
|
|
108
|
-
wishlist: star.
|
|
108
|
+
wishlist: star.Star,
|
|
109
109
|
wallet: WalletIcon,
|
|
110
110
|
loyalty_points: gift.SIGift,
|
|
111
111
|
profile: UserCircle
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
|
|
8
8
|
var Bullhorn = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -80,7 +80,7 @@ const SallaUserSettings = class {
|
|
|
80
80
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (index.h(index.Host, { key: '
|
|
83
|
+
return (index.h(index.Host, { key: '76e95ae08b8d3d934076fdadb87b23c4606eadde', class: "s-user-settings-wrapper" }, this.canHideName && index.h("div", { key: 'feb63389157a1a007becfa45cbfd564adc63dd68', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: '8506e24e228e9a59b4fa59e3a866686d2cc255c0' }, index.h("div", { key: 'a6bc59a84423e8a5f65a2a3ea1ab9db251ddc1e2', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '828ba49bef3821ba4fbbea23e07f37d57984b0ff', innerHTML: UserCancel })), index.h("div", { key: 'ed332f5854e5a3d028a94df3b2538c5b0bdb0ca1', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), index.h("div", { key: '19f89aa5d12f4c08f41be28a1c862eba2c86150e', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), index.h("div", { key: '5a4f9b9e130ad72101ff6a493b78bdf0738db0fe', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: '00cee0e5c9bf4a919c7be37ac62df607ad106209', class: "s-toggle" }, index.h("input", { key: '5bdd4026041443e79ed95242aae0ae8f1c61cd28', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), index.h("div", { key: '7cb153f865d56a081448bf130d0dfd2bc1ede203', class: "s-toggle-switcher" }))))), index.h("div", { key: '5620b4facff1e9c674abc240ee2bf8b6237f1fbb', class: "s-user-settings-section" }, index.h("salla-list-tile", { key: 'b4a692bae833373a3b6581418af8ffa00b7f73a7' }, index.h("div", { key: 'c6537db1d992c558c93b9c5af60989ebe3c63348', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '4bcf789ad42596769768d7e5ae5a88bdc9ee231b', innerHTML: Bullhorn })), index.h("div", { key: '976f8915e679d754948dd08a5ff7d8b0320b4da3', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), index.h("div", { key: '10f4d900aded91b3cb20fa5b035469a7fc450ad1', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), index.h("div", { key: 'dd05f000aa1e957ac2e8af717a473823145ff5b4', slot: 'action', class: "s-user-settings-section-action" }, index.h("label", { key: 'a5aea06c99e51feaa830dc1ca8c3c3822ad65f53', class: "s-toggle" }, index.h("input", { key: '2dc941eff3db9c3e19dbfb37031b61dfc316411e', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), index.h("div", { key: '264de991096e020e35f76818478ccbc391aef974', class: "s-toggle-switcher" }))))), index.h("div", { key: '0f3d06196ee4834a23cced30a825c65302346216', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, index.h("salla-list-tile", { key: '24a610796c16ff56a669370f51bca809cbed4c71' }, index.h("div", { key: '5077fc40225254a6229809cf7c0cd189a09ce4f3', slot: "icon", class: "s-user-settings-section-icon" }, index.h("span", { key: '233ebdeadb3e334bde45ff13cfd44d969392d7c7', innerHTML: UserOff })), index.h("div", { key: '33a12b3922ad71198d165e1f8664bfe4a493ee94', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), index.h("div", { key: 'e2a872d965bf1c549cb074d312e31e520ae1f093', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), index.h("div", { key: '10b3e3fa5d708a2410d7dc59e408c2dde46a3b75', slot: 'action', class: "s-user-settings-section-action" }, index.h("salla-button", { key: 'fd70ec26eb9c8ccd9091c525589cb2dd6ea54726', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), index.h("salla-modal", { key: 'c44d0984c20285753fb24471ad96bd760442405c', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, index.h("span", { key: 'd40430003d5a59367a3be7060452dfccfb96407f', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), index.h("div", { key: 'e9222043b55fe1afe6d7a77b1b97f97b089c256d', class: "s-user-settings-confirmation" }, index.h("div", { key: '39142484741c00634eaf278fc31c65ece79f683a', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), index.h("div", { key: '3a251ff22553250d972b99a959a6fc8cca7e3566', class: "s-user-settings-confirmation-actions" }, index.h("salla-button", { key: 'c69bbdaacaaf144aeb75ff50c71859db3189a18c', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), index.h("salla-button", { key: '38355dfb44f8639cc01e075ea5a9ef7acb68e55f', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SallaUserSettings.style = sallaUserSettingsCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-CfrGmYJa.js');
|
|
7
7
|
|
|
8
8
|
const sallaWalletCss = ".s-wallet-table{min-width:100%}.s-wallet-table-balance-container{display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:1rem}.s-wallet-table-balance-icon{border-radius:50%;width:52px;height:52px;font-size:25px;padding:16px 13px;background:var(--color-primary-reverse);color:var(--color-primary)}.s-wallet-table-empty-state{display:flex;flex-direction:column;align-items:center}.s-wallet-table-empty-state i{font-size:80px;margin:4rem 0 2rem;color:var(--infinte-color)}.s-wallet-table-transaction-status{padding:6px 19px !important;border-radius:20px;width:max-content;display:flex;align-items:center}.s-wallet-table-transaction-status-default{background:#fff6eb;color:#a46f29}.s-wallet-table-transaction-status-cashback{background:#effbf6;color:#00af6c}.s-wallet-table-transaction-status-refund{background:#ecf3fe;color:#5196f3}.s-wallet-table-transaction-status-purchase{background:#feecec;color:#f55157}.s-wallet-table-transaction-status-icons-success{color:#00af6c}";
|
|
9
9
|
|