@salla.sa/twilight-components 2.14.541 → 2.14.543
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-plugin-file-poster-Di_D3w89.js → filepond-plugin-file-poster-Dy-GRHf0.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BiRa98qd.js → filepond-plugin-file-validate-size-BWIBGLW-.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Bolv-kyJ.js → filepond-plugin-file-validate-type-DEVtMF0l.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-AN6huMV9.js → filepond-plugin-image-edit-DSDoJaLw.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Bwa8QtGo.js → filepond-plugin-image-exif-orientation-BdZit5hj.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-CaVYLAvG.js → filepond-plugin-image-preview-Z3_zQyYR.js} +1 -1
- package/dist/cjs/{filepond-CNdvfaMJ.js → filepond-uhJt4caG.js} +1 -1
- package/dist/cjs/{index-DX2EKTCE.js → index-Bw3b6O6G.js} +14 -14
- package/dist/cjs/{intlTelInput-DnwdGAiP.js → intlTelInput-CXe3TkdL.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mail-C9D8MHae.js → mail-CO8cFZH7.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 +8 -2
- 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-attachment-view_9.cjs.entry.js +10 -10
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- 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 → salla-comment-form_9.cjs.entry.js} +259 -3
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +3 -3
- 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_10.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- 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.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_2.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_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.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-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +3 -3
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +73 -14
- package/dist/cjs/salla-rating-modal.cjs.entry.js +22 -7
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-order-item.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 +4 -4
- 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 +3 -3
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BUFYPi-_.js → vanilla-picker-GTx-kpDm.js} +1 -1
- package/dist/collection/collection-manifest.json +14 -12
- package/dist/collection/components/salla-comments/interfaces.js +12 -0
- package/dist/collection/components/salla-comments/salla-comment-item.js +1 -1
- package/dist/collection/components/salla-comments/salla-comments.js +38 -5
- package/dist/collection/components/salla-product-options/salla-product-options.js +7 -1
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +119 -16
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +69 -10
- package/dist/collection/components/salla-verified-review/salla-verified-review.css +162 -0
- package/dist/collection/components/salla-verified-review/salla-verified-review.js +264 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-comment-item2.js +1 -1
- package/dist/components/salla-comments.js +40 -1
- package/dist/components/salla-product-options2.js +7 -1
- package/dist/components/salla-rating-modal-v22.js +73 -12
- package/dist/components/salla-rating-modal.js +1 -591
- package/dist/components/salla-rating-modal2.js +613 -0
- package/dist/components/salla-verified-review.d.ts +11 -0
- package/dist/components/salla-verified-review.js +325 -0
- package/dist/esm/{filepond-CKsbRWmS.js → filepond-BcXR53L3.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-B_gYCESq.js → filepond-plugin-file-poster-BTU_WzVu.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Bep6fNi3.js → filepond-plugin-file-validate-size-c_09APqP.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-r3uRmGIr.js → filepond-plugin-file-validate-type-Dz2Lgh8V.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BJcOlOFL.js → filepond-plugin-image-edit-DK7eXs2p.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-DJoDaRwQ.js → filepond-plugin-image-exif-orientation-DYBURwn_.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BsuTLPS0.js → filepond-plugin-image-preview-4WNiH-ie.js} +1 -1
- package/dist/esm/{index-BVqCTDsV.js → index-BW1au-Nh.js} +14 -14
- package/dist/esm/{intlTelInput-CD2FA0nI.js → intlTelInput-DvPcVtVG.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mail-DzAIgzdz.js → mail-DmgxDvXL.js} +2 -2
- 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 +8 -2
- 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-attachment-view_9.entry.js +10 -10
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- 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 → salla-comment-form_9.entry.js} +259 -4
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +3 -3
- 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_10.entry.js +3 -3
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- 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.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_2.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_2.entry.js +1 -1
- package/dist/esm/salla-order-shipments.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-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +3 -3
- package/dist/esm/salla-rating-modal-v2.entry.js +73 -14
- package/dist/esm/salla-rating-modal.entry.js +22 -7
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-review-order-item.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 +4 -4
- 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 +3 -3
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Ba_za9Iy.js → vanilla-picker-CDk_knNu.js} +1 -1
- package/dist/twilight/p-03d77f90.entry.js +4 -0
- package/dist/twilight/{p-17940d8a.entry.js → p-07c013f9.entry.js} +1 -1
- package/dist/twilight/{p-1ec6e0fe.entry.js → p-10534171.entry.js} +1 -1
- package/dist/twilight/{p-ced4b7ac.entry.js → p-1187210a.entry.js} +1 -1
- package/dist/twilight/{p-c47ecca7.entry.js → p-1282e22a.entry.js} +1 -1
- package/dist/twilight/{p-a5d08af6.entry.js → p-13bf1c47.entry.js} +1 -1
- package/dist/twilight/{p-ee2b16d7.entry.js → p-13dbbbdc.entry.js} +1 -1
- package/dist/twilight/{p-f58d14ed.entry.js → p-16296dce.entry.js} +1 -1
- package/dist/twilight/{p-5115117b.entry.js → p-16ccbce5.entry.js} +1 -1
- package/dist/twilight/{p-2b0cf190.entry.js → p-1ba8fb02.entry.js} +1 -1
- package/dist/twilight/{p-90ee37c7.entry.js → p-1c82117c.entry.js} +1 -1
- package/dist/twilight/{p-39d9e02f.entry.js → p-26f8a482.entry.js} +1 -1
- package/dist/twilight/{p-6a3487de.entry.js → p-280e67f0.entry.js} +1 -1
- package/dist/twilight/{p-3961522a.entry.js → p-2a8f1ed4.entry.js} +1 -1
- package/dist/twilight/{p-87115499.entry.js → p-311a905b.entry.js} +1 -1
- package/dist/twilight/{p-bab59319.entry.js → p-315890b5.entry.js} +1 -1
- package/dist/twilight/{p-ee3ddc23.entry.js → p-362792d6.entry.js} +1 -1
- package/dist/twilight/{p-e2934193.entry.js → p-3ad55c42.entry.js} +1 -1
- package/dist/twilight/{p-56647774.entry.js → p-3b9dcb0f.entry.js} +1 -1
- package/dist/twilight/{p-d78998b7.entry.js → p-3c28560f.entry.js} +1 -1
- package/dist/twilight/{p-b389b1d3.entry.js → p-3cfd4fcd.entry.js} +1 -1
- package/dist/twilight/{p-96584590.entry.js → p-40555637.entry.js} +1 -1
- package/dist/twilight/{p-436dfe93.entry.js → p-46399dc8.entry.js} +1 -1
- package/dist/twilight/{p-743b79ae.entry.js → p-489d084c.entry.js} +1 -1
- package/dist/twilight/{p-1974f6da.entry.js → p-4b14e0f8.entry.js} +1 -1
- package/dist/twilight/{p-1a191989.entry.js → p-4be8900d.entry.js} +1 -1
- package/dist/twilight/p-4f052df8.entry.js +4 -0
- package/dist/twilight/{p-c48f5c6b.entry.js → p-50c0b6fa.entry.js} +1 -1
- package/dist/twilight/{p-878c2be2.entry.js → p-5335f307.entry.js} +1 -1
- package/dist/twilight/p-534e7760.entry.js +4 -0
- package/dist/twilight/{p-fbc075fe.entry.js → p-641cc01d.entry.js} +1 -1
- package/dist/twilight/{p-c53c2f59.entry.js → p-64f0c216.entry.js} +1 -1
- package/dist/twilight/{p-f195a63d.entry.js → p-65a86613.entry.js} +1 -1
- package/dist/twilight/{p-e4c9cef4.entry.js → p-664d428e.entry.js} +1 -1
- package/dist/twilight/{p-79444897.entry.js → p-66c7b9e4.entry.js} +1 -1
- package/dist/twilight/{p-723aeda4.entry.js → p-677bcf4c.entry.js} +1 -1
- package/dist/twilight/{p-89e9a91f.entry.js → p-68d6fa66.entry.js} +1 -1
- package/dist/twilight/{p-cf3365e2.entry.js → p-69f4a089.entry.js} +1 -1
- package/dist/twilight/{p-37d9f762.entry.js → p-6d3a4c41.entry.js} +1 -1
- package/dist/twilight/{p-13244c52.entry.js → p-6d6618f8.entry.js} +1 -1
- package/dist/twilight/{p-f2c688d6.entry.js → p-6e78ee63.entry.js} +1 -1
- package/dist/twilight/{p-978e4164.entry.js → p-72960bb3.entry.js} +1 -1
- package/dist/twilight/{p-659e2280.entry.js → p-75065cbf.entry.js} +1 -1
- package/dist/twilight/{p-97fc57c1.entry.js → p-7adefcd6.entry.js} +1 -1
- package/dist/twilight/{p-7b23dec7.entry.js → p-7afd066a.entry.js} +1 -1
- package/dist/twilight/{p-6d07d195.entry.js → p-80c11fae.entry.js} +1 -1
- package/dist/twilight/{p-f82cee0c.entry.js → p-821aa95a.entry.js} +1 -1
- package/dist/twilight/{p-e41e5fc7.entry.js → p-84679cc1.entry.js} +1 -1
- package/dist/twilight/{p-96a57e9c.entry.js → p-8643930a.entry.js} +1 -1
- package/dist/twilight/{p-dff6d623.entry.js → p-87af932a.entry.js} +1 -1
- package/dist/twilight/{p-50c90e0a.entry.js → p-87cc2e08.entry.js} +1 -1
- package/dist/twilight/{p-e3dab961.entry.js → p-89fe5237.entry.js} +1 -1
- package/dist/twilight/{p-fa17989b.entry.js → p-93c006fc.entry.js} +1 -1
- package/dist/twilight/{p-b6d5ae9b.entry.js → p-9b1403fc.entry.js} +1 -1
- package/dist/twilight/{p-D-zqM6k8.js → p-AncUY1nn.js} +1 -1
- package/dist/twilight/{p-CP29f7RQ.js → p-BUMDIRU5.js} +1 -1
- package/dist/twilight/{p-BVqCTDsV.js → p-BW1au-Nh.js} +1 -1
- package/dist/twilight/{p-JKh0XFIn.js → p-BjS2Vb6h.js} +1 -1
- package/dist/twilight/{p-DzW3U8TR.js → p-C6nX89oY.js} +1 -1
- package/dist/twilight/{p-DgwK96eP.js → p-CMWS1gyZ.js} +1 -1
- package/dist/twilight/{p-Cluq3aDa.js → p-D9Y6HNvi.js} +1 -1
- package/dist/twilight/{p-DJmqmO68.js → p-DPMPVhgw.js} +1 -1
- package/dist/twilight/{p-DzAIgzdz.js → p-DmgxDvXL.js} +1 -1
- package/dist/twilight/{p-B83s3cRn.js → p-UDPL8zGN.js} +2 -2
- package/dist/twilight/{p-CS-t4QAX.js → p-UIEwOe70.js} +1 -1
- package/dist/twilight/{p-0ea8365b.entry.js → p-a15b4245.entry.js} +1 -1
- package/dist/twilight/{p-eaf9d536.entry.js → p-a38dc391.entry.js} +1 -1
- package/dist/twilight/{p-75e692d1.entry.js → p-a3fdec51.entry.js} +1 -1
- package/dist/twilight/{p-fc5d5473.entry.js → p-a4436d17.entry.js} +1 -1
- package/dist/twilight/{p-14689252.entry.js → p-a7a10dbf.entry.js} +1 -1
- package/dist/twilight/p-a9674965.entry.js +4 -0
- package/dist/twilight/{p-34d5c7bf.entry.js → p-aa9fb9f5.entry.js} +1 -1
- package/dist/twilight/{p-1fcebaad.entry.js → p-ac794ed6.entry.js} +1 -1
- package/dist/twilight/{p-635265d1.entry.js → p-b1dfc455.entry.js} +1 -1
- package/dist/twilight/{p-bf4c2184.entry.js → p-b2b818a5.entry.js} +1 -1
- package/dist/twilight/{p-7bb24ad6.entry.js → p-b89d8c3c.entry.js} +1 -1
- package/dist/twilight/{p-333ea76b.entry.js → p-baa06c65.entry.js} +1 -1
- package/dist/twilight/{p-0a9093f1.entry.js → p-bcee5564.entry.js} +1 -1
- package/dist/twilight/{p-42952fac.entry.js → p-beaab93e.entry.js} +1 -1
- package/dist/twilight/{p-b862c670.entry.js → p-beb2110d.entry.js} +1 -1
- package/dist/twilight/{p-c34f8c08.entry.js → p-c214700a.entry.js} +1 -1
- package/dist/twilight/{p-f4ac8cae.entry.js → p-c23f7b95.entry.js} +1 -1
- package/dist/twilight/{p-85f95a58.entry.js → p-c7e980aa.entry.js} +1 -1
- package/dist/twilight/{p-598cadf4.entry.js → p-caa8d5ae.entry.js} +1 -1
- package/dist/twilight/{p-003499a8.entry.js → p-cbe760ce.entry.js} +1 -1
- package/dist/twilight/{p-cd805a38.entry.js → p-cc3a9188.entry.js} +1 -1
- package/dist/twilight/{p-daea3207.entry.js → p-ceb40475.entry.js} +1 -1
- package/dist/twilight/{p-f0a14b18.entry.js → p-cf4efddb.entry.js} +1 -1
- package/dist/twilight/{p-6ee096e8.entry.js → p-d018fc49.entry.js} +1 -1
- package/dist/twilight/{p-0ce2c41f.entry.js → p-d3692caf.entry.js} +1 -1
- package/dist/twilight/{p-9d18525b.entry.js → p-d54acab0.entry.js} +1 -1
- package/dist/twilight/{p-1174e53e.entry.js → p-d7a68f6c.entry.js} +1 -1
- package/dist/twilight/{p-86a1f616.entry.js → p-de83979a.entry.js} +1 -1
- package/dist/twilight/{p-3a4bb8de.entry.js → p-df202b1d.entry.js} +1 -1
- package/dist/twilight/{p-337cc9f6.entry.js → p-e184cd72.entry.js} +1 -1
- package/dist/twilight/{p-7d9288b0.entry.js → p-e1eb70d2.entry.js} +1 -1
- package/dist/twilight/{p-a774f6f0.entry.js → p-e29f28eb.entry.js} +7 -7
- package/dist/twilight/{p-409f95a8.entry.js → p-e8153a9a.entry.js} +1 -1
- package/dist/twilight/{p-a347e701.entry.js → p-edebecb3.entry.js} +1 -1
- package/dist/twilight/{p-36abc50f.entry.js → p-f0a04676.entry.js} +1 -1
- package/dist/twilight/{p-c19cf93c.entry.js → p-f3f9d1fb.entry.js} +1 -1
- package/dist/twilight/{p-cdd8ed7f.entry.js → p-f45f5f91.entry.js} +1 -1
- package/dist/twilight/{p-11ef8b82.entry.js → p-feb80402.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-comments/interfaces.d.ts +15 -0
- package/dist/types/components/salla-comments/salla-comments.d.ts +5 -2
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +16 -3
- package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +10 -2
- package/dist/types/components/salla-verified-review/salla-verified-review.d.ts +51 -0
- package/dist/types/components.d.ts +45 -12
- package/package.json +5 -5
- package/dist/twilight/p-0974f6c6.entry.js +0 -4
- package/dist/twilight/p-98b1ff35.entry.js +0 -4
- package/dist/twilight/p-afaa0fbe.entry.js +0 -4
- package/dist/twilight/p-e04221de.entry.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
|
|
7
7
|
import { H as Helper } from './Helper-CBmYxrzX.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { H as Helper } from './Helper-CBmYxrzX.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { I as IphoneXIcon } from './iphone-x-Z7udRKSZ.js';
|
|
6
|
-
import {
|
|
6
|
+
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
7
7
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
8
8
|
|
|
9
9
|
var CelebrationIcon = `<!-- Generated by IcoMoon.io -->
|
|
@@ -210,7 +210,7 @@ const SallaQuickOrder = class {
|
|
|
210
210
|
? this.confirmPayButtonTitle : this.expanded ? h("i", { innerHTML: Cancel }) : this.confirmPayButtonTitle)), h("form", { onSubmit: (e) => this.submit(e), class: 's-quick-order-expandable ' + (this.expanded ? 's-quick-order-shown' : '') }, Salla.config.isGuest() &&
|
|
211
211
|
[
|
|
212
212
|
h("div", { class: "s-form-group" }, h("span", { innerHTML: PortraitIcon }), h("input", { type: "text", required: true, class: "s-form-control s-quick-order-phone-field", name: 'name', placeholder: this.userNameLabel, ref: el => (this.nameInput = el) })),
|
|
213
|
-
h("div", { class: "s-quick-order-flex-input" }, h("div", { class: "s-form-group" }, h("span", { innerHTML: IphoneXIcon }), h("salla-tel-input", { ref: el => (this.phoneInput = el) })), h("div", { class: "s-form-group" }, h("span", { innerHTML:
|
|
213
|
+
h("div", { class: "s-quick-order-flex-input" }, h("div", { class: "s-form-group" }, h("span", { innerHTML: IphoneXIcon }), h("salla-tel-input", { ref: el => (this.phoneInput = el) })), h("div", { class: "s-form-group" }, h("span", { innerHTML: MailIcon }), h("input", { type: "email", class: "s-form-control s-quick-order-email-field", name: 'email', required: this.isEmailRequired, placeholder: this.placeHolderEmail + ' ' + (this.isEmailRequired ? '' : this.emailOptional), ref: el => (this.emailInput = el) }))),
|
|
214
214
|
], this.isTermsRequired && (h("label", { htmlFor: "terms", class: "s-quick-order-terms" }, h("input", { type: "checkbox", required: true, name: 'terms', id: 'terms', ref: el => (this.termsInput = el), onChange: () => (this.termsChecked = this.termsInput.checked), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", h("div", { innerHTML: this.formatAgreementText(this.agreementText, 150) }, this.agreementText.length > 150 && (h("salla-button", { shape: "link", onClick: () => this.agreementModal.open() }, this.agreementShowText))), " "))), h("salla-button", { type: "submit", color: this.getBtnColor(), width: "wide", ref: el => (this.submitBtn = el) }, this.payButtonTitle)), h("salla-modal", { "modal-title": this.agreementModalHead, ref: modal => (this.agreementModal = modal) }, h("article", { innerHTML: this.agreementText })))));
|
|
215
215
|
}
|
|
216
216
|
componentDidLoad() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { S as Star } from './star-CeFAfcTv.js';
|
|
6
6
|
import { S as ShippingFast } from './shipping-fast-lMgMt31Q.js';
|
|
7
7
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
8
8
|
import { H as Helper } from './Helper-CBmYxrzX.js';
|
|
9
9
|
import { I as ImageIcon } from './image-C-tzSDxw.js';
|
|
10
10
|
import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
|
|
11
|
-
import {
|
|
11
|
+
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
12
12
|
import { b as buildMediaUploadAccept } from './upload-limits-DrXX8XG8.js';
|
|
13
13
|
import './anime.es-CgtvEd63.js';
|
|
14
14
|
|
|
@@ -233,7 +233,7 @@ const SallaRatingModalV2 = class {
|
|
|
233
233
|
* Show the rating modal
|
|
234
234
|
*/
|
|
235
235
|
syncStoreSettings() {
|
|
236
|
-
if (
|
|
236
|
+
if (this.orderId === undefined) {
|
|
237
237
|
this.orderId = salla.config.get('page.id');
|
|
238
238
|
}
|
|
239
239
|
this.allowAttachImages = !!salla.config.get('store.settings.rating.allow_attach_images');
|
|
@@ -302,11 +302,15 @@ const SallaRatingModalV2 = class {
|
|
|
302
302
|
this.setUploaderProcessing(productId, !!detail.uploading);
|
|
303
303
|
this.scheduleUploaderHeightRefresh();
|
|
304
304
|
}
|
|
305
|
+
/** An eligible review with no order behind it — product-only, no store/shipping steps. */
|
|
306
|
+
isUnverifiedReview() {
|
|
307
|
+
return this.orderId === null && !!this.productId;
|
|
308
|
+
}
|
|
305
309
|
/** Encrypted order id from page config / prop — used to fetch order details. */
|
|
306
310
|
getRatingOrderId() {
|
|
307
311
|
return this.orderId || salla.config.get('page.id');
|
|
308
312
|
}
|
|
309
|
-
/** Numeric order id from API response — used when submitting ratings. */
|
|
313
|
+
/** Numeric order id from API response — used when submitting ratings. Null when unverified. */
|
|
310
314
|
getSubmitOrderId() {
|
|
311
315
|
return this.orderId;
|
|
312
316
|
}
|
|
@@ -375,6 +379,9 @@ const SallaRatingModalV2 = class {
|
|
|
375
379
|
return rating !== undefined && rating !== null && rating !== '' && Number(rating) > 0;
|
|
376
380
|
}
|
|
377
381
|
isTestimonialsEnabled(order = this.order) {
|
|
382
|
+
if (this.productId) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
378
385
|
if (order?.testimonials_enabled === false) {
|
|
379
386
|
return false;
|
|
380
387
|
}
|
|
@@ -393,6 +400,9 @@ const SallaRatingModalV2 = class {
|
|
|
393
400
|
return this.getRateableProducts(order).length > 0;
|
|
394
401
|
}
|
|
395
402
|
isShippingEnabled(order = this.order) {
|
|
403
|
+
if (this.productId) {
|
|
404
|
+
return false;
|
|
405
|
+
}
|
|
396
406
|
if (order?.shipping_enabled === false) {
|
|
397
407
|
return false;
|
|
398
408
|
}
|
|
@@ -414,7 +424,8 @@ const SallaRatingModalV2 = class {
|
|
|
414
424
|
return order.products.filter(item => item?.product?.id);
|
|
415
425
|
}
|
|
416
426
|
getRateableProducts(order = this.order) {
|
|
417
|
-
return this.getOrderProducts(order).filter(item => !this.hasRatingFeedback(item?.feedback)
|
|
427
|
+
return this.getOrderProducts(order).filter(item => !this.hasRatingFeedback(item?.feedback) &&
|
|
428
|
+
(!this.productId || String(item.product.id) === String(this.productId)));
|
|
418
429
|
}
|
|
419
430
|
getStepsCount(order = this.order) {
|
|
420
431
|
if (!order) {
|
|
@@ -437,6 +448,50 @@ const SallaRatingModalV2 = class {
|
|
|
437
448
|
this.scheduleWizardSetup = true;
|
|
438
449
|
forceUpdate(this);
|
|
439
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* Point the modal at a different order/product and invalidate any cached
|
|
453
|
+
* order so the next open() re-fetches instead of reusing stale data.
|
|
454
|
+
* Pass `orderId` as `null` for an eligible-but-unverified product review.
|
|
455
|
+
*/
|
|
456
|
+
async setOrder(orderId, productId) {
|
|
457
|
+
this.orderId = orderId;
|
|
458
|
+
this.productId = productId;
|
|
459
|
+
this.order = undefined;
|
|
460
|
+
this.hasError = false;
|
|
461
|
+
this.errorMessage = undefined;
|
|
462
|
+
this.showContactWidget = true;
|
|
463
|
+
}
|
|
464
|
+
/** Builds a single-product, order-less feedback target for unverified reviews. */
|
|
465
|
+
async loadUnverifiedProductOrder() {
|
|
466
|
+
const response = await salla.api
|
|
467
|
+
.withoutNotifier(() => salla.product.api.getDetails(this.productId))
|
|
468
|
+
.catch(() => null);
|
|
469
|
+
const product = response?.data;
|
|
470
|
+
this.order = {
|
|
471
|
+
products: [
|
|
472
|
+
{
|
|
473
|
+
feedback: undefined,
|
|
474
|
+
product: {
|
|
475
|
+
id: Number(this.productId),
|
|
476
|
+
name: product?.name || '',
|
|
477
|
+
thumbnail: product?.image?.url || salla.url.cdn('images/s-empty.png'),
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
],
|
|
481
|
+
products_enabled: true,
|
|
482
|
+
testimonials_enabled: false,
|
|
483
|
+
shipping_enabled: false,
|
|
484
|
+
thanks_message: '',
|
|
485
|
+
};
|
|
486
|
+
this.productReviewFactors = await this.fetchAllProductReviewFactors(this.order);
|
|
487
|
+
}
|
|
488
|
+
getModalTitle() {
|
|
489
|
+
if (this.isUnverifiedReview()) {
|
|
490
|
+
const productName = this.getRateableProducts()[0]?.product?.name || '';
|
|
491
|
+
return `${salla.lang.get('pages.rating.rate')} ${productName}`.trim();
|
|
492
|
+
}
|
|
493
|
+
return `${salla.lang.get('pages.rating.rate_order')} <span class="unicode">(#${this.order?.id})</span>`;
|
|
494
|
+
}
|
|
440
495
|
async open() {
|
|
441
496
|
await salla.onReady();
|
|
442
497
|
this.syncStoreSettings();
|
|
@@ -448,14 +503,16 @@ const SallaRatingModalV2 = class {
|
|
|
448
503
|
this.modal
|
|
449
504
|
?.open()
|
|
450
505
|
.then(() => this.order ||
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
.
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
506
|
+
(this.isUnverifiedReview()
|
|
507
|
+
? this.loadUnverifiedProductOrder()
|
|
508
|
+
: salla.api
|
|
509
|
+
.withoutNotifier(() => salla.rating.api.order(this.getRatingOrderId()))
|
|
510
|
+
.then(async (res) => {
|
|
511
|
+
this.order = res.data;
|
|
512
|
+
this.productReviewFactors = await this.fetchAllProductReviewFactors(res.data);
|
|
513
|
+
})))
|
|
457
514
|
.then(() => this.readyUpLoyaltyPoints())
|
|
458
|
-
.then(() => this.modal?.setTitle(
|
|
515
|
+
.then(() => this.modal?.setTitle(this.getModalTitle()))
|
|
459
516
|
.then(() => {
|
|
460
517
|
// Initialize productImages for all products
|
|
461
518
|
const initialImages = {};
|
|
@@ -890,7 +947,9 @@ const SallaRatingModalV2 = class {
|
|
|
890
947
|
Number(rating_product_with_image_points) + Number(rating_product_points);
|
|
891
948
|
}
|
|
892
949
|
loyaltyPointsNote() {
|
|
893
|
-
if (!this.loyaltyImageRatingPoints ||
|
|
950
|
+
if (!this.loyaltyImageRatingPoints ||
|
|
951
|
+
!this.loyaltyPointsForImagesLabel ||
|
|
952
|
+
this.isUnverifiedReview()) {
|
|
894
953
|
return null;
|
|
895
954
|
}
|
|
896
955
|
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" })));
|
|
@@ -1392,7 +1451,7 @@ const SallaRatingModalV2 = class {
|
|
|
1392
1451
|
this.allowContactSupport &&
|
|
1393
1452
|
this.showContactWidget &&
|
|
1394
1453
|
(salla.config.get('store.contacts.whatsapp') ||
|
|
1395
|
-
salla.config.get('store.contacts.email')) ? (h("div", { class: "s-rating-modal-contact" }, h("p", null, this.contactUsLabel), h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && (h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: WhatsappIcon })), salla.config.get('store.contacts.email') && (h("span", { onClick: () => this.handleSendEmail(), innerHTML:
|
|
1454
|
+
salla.config.get('store.contacts.email')) ? (h("div", { class: "s-rating-modal-contact" }, h("p", null, this.contactUsLabel), h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && (h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: WhatsappIcon })), salla.config.get('store.contacts.email') && (h("span", { onClick: () => this.handleSendEmail(), innerHTML: MailIcon }))))) : (''),
|
|
1396
1455
|
h("div", { class: "s-rating-modal-footer" }, h("button", { ref: el => {
|
|
1397
1456
|
if (el)
|
|
1398
1457
|
this.backBtn = el;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
7
7
|
import { I as ImageIcon } from './image-C-tzSDxw.js';
|
|
8
|
-
import {
|
|
8
|
+
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
9
9
|
import { S as ShippingFast } from './shipping-fast-lMgMt31Q.js';
|
|
10
10
|
import { S as Star } from './star-CeFAfcTv.js';
|
|
11
11
|
import { W as WhatsappIcon } from './whatsapp2-CgR-T_ZS.js';
|
|
@@ -28,7 +28,7 @@ const SallaRatingModal = class {
|
|
|
28
28
|
this.shouldOpenDeleteModal = false;
|
|
29
29
|
this.editItem = null;
|
|
30
30
|
this.loyaltyImageRatingPoints = 0;
|
|
31
|
-
this.enableNewPopUp =
|
|
31
|
+
this.enableNewPopUp = true;
|
|
32
32
|
this.dragAndDropFilesLabel = salla.lang.get('common.uploader.drag_and_drop_files');
|
|
33
33
|
this.contactSubjectLabel = salla.lang.get('pages.rating.contact_subject');
|
|
34
34
|
this.editReviewLabel = salla.lang.get('pages.rating.edit_review');
|
|
@@ -147,7 +147,19 @@ const SallaRatingModal = class {
|
|
|
147
147
|
return this.v2Ref ?? this.host.querySelector('salla-rating-modal-v2');
|
|
148
148
|
}
|
|
149
149
|
syncNewPopUpFlag() {
|
|
150
|
-
|
|
150
|
+
// Enable the new pop-up to all consumers:
|
|
151
|
+
this.enableNewPopUp = true;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Point the modal at a different order/product and invalidate any cached
|
|
155
|
+
* order so the next open() re-fetches instead of reusing stale data.
|
|
156
|
+
* Pass `orderId` as `null` for an eligible-but-unverified product review.
|
|
157
|
+
*/
|
|
158
|
+
async setOrder(orderId, productId) {
|
|
159
|
+
this.orderId = orderId;
|
|
160
|
+
this.productId = productId;
|
|
161
|
+
this.order = undefined;
|
|
162
|
+
await this.getV2Ref()?.setOrder(orderId, productId);
|
|
151
163
|
}
|
|
152
164
|
/**
|
|
153
165
|
* Show the rating modal
|
|
@@ -446,7 +458,7 @@ const SallaRatingModal = class {
|
|
|
446
458
|
}
|
|
447
459
|
render() {
|
|
448
460
|
if (this.enableNewPopUp) {
|
|
449
|
-
return (h(Host, { class: "s-rating-modal" }, h("salla-rating-modal-v2", { ref: (el) => (this.v2Ref = el), orderId: this.orderId })));
|
|
461
|
+
return (h(Host, { class: "s-rating-modal" }, h("salla-rating-modal-v2", { ref: (el) => (this.v2Ref = el), orderId: this.orderId, productId: this.productId })));
|
|
450
462
|
}
|
|
451
463
|
if (this.deleteMode) {
|
|
452
464
|
return h(Host, { class: "s-rating-modal" }, this.getDeleteModal());
|
|
@@ -479,12 +491,15 @@ const SallaRatingModal = class {
|
|
|
479
491
|
? h("div", { class: "rating-outer-form s-rating-modal-step-wrap s-rating-modal-step s-rating-modal-hidden", "data-type": "shipping" }, h("input", { type: "hidden", name: "shipping_company_id", value: this.order.shipping.company.id }), this.order.shipping.company.logo
|
|
480
492
|
? h("div", { class: "s-rating-modal-rounded-icon" }, h("img", { src: this.order.shipping.company.logo, class: "s-rating-modal-shipping-logo", alt: this.order.shipping.company.name }))
|
|
481
493
|
: h("span", { class: "s-rating-modal-icon", innerHTML: ShippingFast }), h("div", { class: "s-rating-modal-title" }, " ", `${salla.lang.get('pages.rating.rate_shipping')} ${this.order.shipping.company.name}`), 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_shipping_rate') }), h("small", { class: "s-rating-modal-validation-msg" }))
|
|
482
|
-
: '', h("div", { class: "s-rating-modal-thanks s-rating-modal-hidden", ref: el => this.thanksTab = el }, h("span", { class: "s-rating-modal-icon", innerHTML: CheckCircle2 }), h("h3", { class: "s-rating-modal-thanks-title" }, salla.lang.get('pages.rating.thanks')), h("div", { class: "s-rating-modal-thanks-msg", innerHTML: this.order.thanks_message }), 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')) ? h("div", { class: "s-rating-modal-contact" }, h("p", null, this.contactUsLabel), h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: WhatsappIcon }), salla.config.get('store.contacts.email') && h("span", { onClick: () => this.handleSendEmail(), innerHTML:
|
|
494
|
+
: '', h("div", { class: "s-rating-modal-thanks s-rating-modal-hidden", ref: el => this.thanksTab = el }, h("span", { class: "s-rating-modal-icon", innerHTML: CheckCircle2 }), h("h3", { class: "s-rating-modal-thanks-title" }, salla.lang.get('pages.rating.thanks')), h("div", { class: "s-rating-modal-thanks-msg", innerHTML: this.order.thanks_message }), 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')) ? h("div", { class: "s-rating-modal-contact" }, h("p", null, this.contactUsLabel), h("div", { class: "s-rating-modal-contact-icons" }, salla.config.get('store.contacts.whatsapp') && h("span", { onClick: () => this.handleSendWhatsApp(), innerHTML: WhatsappIcon }), salla.config.get('store.contacts.email') && h("span", { onClick: () => this.handleSendEmail(), innerHTML: MailIcon }))) : '', h("div", { class: "s-rating-modal-footer" }, 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 ? h("ul", { class: "s-rating-modal-dots" }, [0, 1, 2].slice(0, this.stepsCount).map((v) => h("li", { key: v, class: 's-rating-modal-bg-gray s-rating-modal-step-dot' }))) : '', h("salla-button", { "loader-position": 'center', ref: el => this.nextBtn = el, onClick: () => this.submit() }, salla.lang.get('common.elements.next')))]
|
|
483
495
|
: h("salla-placeholder", { alignment: "center" }))));
|
|
484
496
|
}
|
|
485
497
|
}
|
|
486
498
|
async componentWillLoad() {
|
|
487
|
-
salla.event.on('rating::open', () =>
|
|
499
|
+
salla.event.on('rating::open', (params) => {
|
|
500
|
+
const orderId = params?.orderId || salla.config.get('page.id');
|
|
501
|
+
this.setOrder(orderId, params?.productId).then(() => this.open());
|
|
502
|
+
});
|
|
488
503
|
salla.event.on('rating::edit', (params) => this.openEditModal(params));
|
|
489
504
|
salla.event.on('rating::delete', (params) => this.openDeleteModal(params));
|
|
490
505
|
await salla.onReady();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BW1au-Nh.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { f as fetchOrder, r as resolveReviewFactors } from './helpers-DqXpn47Z.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BW1au-Nh.js';
|
|
5
5
|
import { f as fetchOrder, g as getProductRatings } from './helpers-DqXpn47Z.js';
|
|
6
6
|
|
|
7
7
|
const SallaReviewOrderItem = class {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BW1au-Nh.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { H as Helper } from './Helper-CBmYxrzX.js';
|
|
7
7
|
import './anime.es-CgtvEd63.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
const sallaSkeletonCss = "/*!twlt*/:host{display:block}.s-loyalty-skeleton .s-loyalty-prize-item .s-skeleton-wrapper{margin-left:auto;margin-right:auto}.s-skeleton-wrapper{display:block}@keyframes pulse{50%{opacity:.5}}.s-skeleton-wrapper{animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}.s-skeleton-item{height:100%;width:100%;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-skeleton-item:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.s-skeleton-item-circular{border-radius:9999px}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { a as ArrowRightIcon, A as ArrowLeftIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
7
|
-
import {
|
|
7
|
+
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
8
8
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
9
9
|
|
|
10
10
|
var copy_link = `<!-- Generated by IcoMoon.io -->
|
|
@@ -75,7 +75,7 @@ const SallaSocialShare = class {
|
|
|
75
75
|
name: Socials.FACEBOOK,
|
|
76
76
|
},
|
|
77
77
|
{ icon: twitter, name: Socials.TWITTER },
|
|
78
|
-
{ icon:
|
|
78
|
+
{ icon: MailIcon, name: Socials.EMAIL },
|
|
79
79
|
{
|
|
80
80
|
icon: copy_link,
|
|
81
81
|
name: Socials.COPY_LINK,
|
|
@@ -341,7 +341,7 @@ const SallaSocialShare = class {
|
|
|
341
341
|
case Socials.TWITTER:
|
|
342
342
|
return { icon: twitter, color: '#000000', label: salla.lang.get('common.social.twitter') };
|
|
343
343
|
case Socials.EMAIL:
|
|
344
|
-
return { icon:
|
|
344
|
+
return { icon: MailIcon, color: '#2BA6FF', label: salla.lang.get('common.social.email') };
|
|
345
345
|
default:
|
|
346
346
|
return { icon: copy_link, color: '#6b7280', label: platform };
|
|
347
347
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
6
6
|
|
|
7
7
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
const sallaTabContentCss = "";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
const sallaTooltipCss = "/*!twlt*/.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;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}.block{display:block}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
const sallaTrustBadgesCss = "/*!twlt*/.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.flex{display:flex}.hidden{display:none}.s-trust-badges-wrapper{display:flex;align-items:center}.s-trust-badges-wrapper>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.5rem * var(--tw-space-x-reverse));margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))}.s-trust-badges-wrapper:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-trust-badges-label{margin-bottom:0.25rem;font-size:0.875rem;line-height:1.25rem}.s-trust-badges-number{font-size:0.875rem;line-height:1.25rem}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
import { A as ArrowDown } from './keyboard_arrow_down-DCZbpt2a.js';
|
|
6
6
|
import { B as BellRing } from './bell-ring-D3mWkc-3.js';
|
|
7
7
|
import { P as PendingOrdersIcon } from './cart-DY4LZmNP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-BW1au-Nh.js';
|
|
5
5
|
import { G as Genders } from './interfaces-OF8QcbMM.js';
|
|
6
6
|
|
|
7
7
|
const sallaUserProfileCss = "/*!twlt*/:host{display:block}.form-input{height:2.5rem;width:100%;border-radius:0.375rem;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.form-input:focus{border-color:var(--color-primary);--tw-ring-color:transparent}.form-input:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.form-input:focus:is(.dark *){border-color:var(--color-primary)}@media (min-width: 640px){.form-input{font-size:0.875rem;line-height:1.25rem}}.s-user-profile-wrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:1.5rem}@media (min-width: 640px){.s-user-profile-wrapper{grid-template-columns:repeat(2, minmax(0, 1fr));gap:2rem}}.s-user-profile-field-label{margin-bottom:0.5rem;display:block;font-size:0.875rem;line-height:1.25rem;font-weight:700;--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.s-user-profile-field-error{--tw-text-opacity:1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.s-user-profile-submit{margin-top:1.5rem;width:100%}.s-user-profile-filepond-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center}.s-user-profile-filepond-placeholder-icon{margin-bottom:0.25rem}.s-user-profile-filepond-placeholder-icon svg{height:1.5rem;width:1.5rem;fill:#7c8082}.s-user-profile-skeleton-wrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-rows:repeat(3, minmax(0, 1fr));gap:3rem}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
var Bullhorn = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
5
|
-
import {
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
|
+
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
6
6
|
|
|
7
7
|
var AndroidPhoneIcon = `<!-- Generated by IcoMoon.io -->
|
|
8
8
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -253,7 +253,7 @@ const SallaVerify = class {
|
|
|
253
253
|
}
|
|
254
254
|
render() {
|
|
255
255
|
return this.display == 'inline' ? h(Host, null, this.myBody()) :
|
|
256
|
-
h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon :
|
|
256
|
+
h("salla-modal", { width: "xs", class: "s-verify", ref: modal => this.modal = modal, "modal-title": this.title }, h("span", { slot: 'icon', class: "s-verify-header-icon", innerHTML: this.type == "mobile" ? AndroidPhoneIcon : MailIcon }), this.myBody());
|
|
257
257
|
}
|
|
258
258
|
myBody() {
|
|
259
259
|
return (h("div", { class: "s-verify-body", ref: body => this.body = body }, h("div", { class: "s-verify-message", innerHTML: salla.lang.get('pages.profile.verify_message') }), h("slot", { name: "mobile" }), h("slot", { name: "email" }), h("input", { type: "hidden", name: "code", maxlength: "4", required: true, ref: code => this.code = code }), h("div", { class: { "s-verify-codes": true, "has-error": this.hasError }, dir: "ltr" }, [1, 2, 3, 4].map((i) => h("input", { type: "number", autocomplete: "one-time-code", pattern: "[0-9]*", inputmode: "numeric", maxlength: "1", value: "", id: `otp-${i}`, class: { "s-verify-input": true, "s-has-error": this.hasError }, onInput: e => this.handleInput(e), onPaste: e => this.handlePaste(e), onKeyUp: e => this.handleKeyUp(e), onFocus: e => this.handleFocus(e), required: true }))), this.hasError && this.errorMessage ? h("span", { class: "s-verify-error-message" }, this.errorMessage) : '', h("div", { slot: "footer", class: "s-verify-footer" }, h("salla-button", { class: "s-verify-submit", "loader-position": 'center', disabled: true, onClick: () => this.submit(), ref: b => this.btn = b }, salla.lang.get('pages.profile.verify')), h("p", { class: "s-verify-resend-message", ref: el => this.resendMessage = el }, salla.lang.get('blocks.header.resend_after'), h("b", { class: "s-verify-timer", ref: el => this.timer = el })), h("a", { href: "#", class: "s-verify-resend", onClick: () => this.resendCode(), ref: el => this.resend = el }, salla.lang.get('blocks.comments.submit'))), h("slot", { name: "after-footer" })));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
const sallaWalletCss = "/*!twlt*/.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}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.table{display:table}.hidden{display:none}.items-center{align-items:center}.p-3{padding:0.75rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.625rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.s-wallet-container>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}}.s-wallet-mobile-title{display:inline-block;width:8rem;font-weight:400;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.s-wallet-mobile-title{display:none}}.s-wallet-reference-id{display:none}@media (min-width: 768px){.s-wallet-reference-id{display:inline-block}}.s-wallet-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-wallet-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-wallet-copy-to-clipboard-button{display:none}}.s-wallet-copy-to-clipboard-button salla-button{position:relative}.s-wallet-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:0.25rem}.s-wallet-copy-to-clipboard-button-icon:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:0.25rem}@media (min-width: 768px){.s-wallet-status-container{margin-left:0px;margin-right:0px}}.s-wallet-status-container:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.s-wallet-status-container:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}.s-wallet-status-container i{margin-top:0.25rem}.s-wallet-status-container i:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:0.25rem}.s-wallet-status-container i:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:0.25rem}.s-wallet-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-wallet-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-wallet-no-content{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;padding-top:2.5rem;padding-bottom:5rem;--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.s-wallet-no-content .icon{margin-bottom:1rem;display:flex;height:8rem;width:8rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));font-size:3rem;line-height:1;--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.s-wallet-no-content p{margin-bottom:1rem;font-size:1rem;line-height:1.5rem;--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.s-wallet-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-wallet-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-wallet-table-head{margin-bottom:1.25rem;display:none;--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.s-wallet-table-head{display:table-header-group}}.s-wallet-table-head-tr-th{padding-left:1.5rem;padding-right:1.5rem;text-align:start;font-size:0.875rem;line-height:1.25rem;font-weight:500;text-transform:uppercase;letter-spacing:0.05em}.s-wallet-table-head-tr-th:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:left}.s-wallet-table-head-tr-th:last-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){text-align:right}.s-wallet-table-head-tr-th:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:right}.s-wallet-table-head-tr-th:last-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){text-align:left}.s-wallet-table-tbody-tr{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;overflow:hidden;border-radius:var(--s-radius, 0.25rem);border-bottom-width:8px;border-top-width:8px;--tw-border-opacity:1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.5rem;transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:500ms}@media (min-width: 768px){.s-wallet-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-wallet-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-wallet-table-tbody-tr-td{height:5rem;width:auto}.s-wallet-table-tbody-tr-td:last-child{text-align:end}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"ltr\"],[dir=\"ltr\"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-wallet-table-tbody-tr-td:first-child:where([dir=\"rtl\"],[dir=\"rtl\"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-wallet-table-tbody-tr-td:first-child{font-weight:700}.s-wallet-table-tbody-tr-td-content{position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:0.5rem;padding-right:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;font-size:0.75rem;line-height:1rem}@media (min-width: 768px){.s-wallet-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-wallet-table-tbody-tr-td-content:where([dir=\"ltr\"],[dir=\"ltr\"] *){padding-right:0.5rem}.s-wallet-table-tbody-tr-td-content:where([dir=\"rtl\"],[dir=\"rtl\"] *){padding-left:0.5rem}.s-wallet-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-wallet-table-tbody-tr a:where([dir=\"ltr\"],[dir=\"ltr\"] *){left:0px}.s-wallet-table-tbody-tr a:where([dir=\"rtl\"],[dir=\"rtl\"] *){right:0px}@media (min-width: 768px){.md\\:mx-0{margin-left:0px;margin-right:0px}.md\\:inline-block{display:inline-block}.md\\:hidden{display:none}}.ltr\\:ml-auto:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-left:auto}.ltr\\:mr-4:where([dir=\"ltr\"],[dir=\"ltr\"] *){margin-right:1rem}.rtl\\:ml-4:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-left:1rem}.rtl\\:mr-auto:where([dir=\"rtl\"],[dir=\"rtl\"] *){margin-right:auto}";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BW1au-Nh.js';
|
|
5
5
|
|
|
6
6
|
const sallaWishlistActionsCss = "/*!twlt*/:host{display:block}.s-wishlist-actions-menu{min-width:200px;inset-inline-end:0;inset-inline-start:auto;list-style:none;margin:0;padding:4px 0;box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}.s-wishlist-actions-menu-item{display:block;width:100%;padding:10px 16px;text-align:start;font-size:0.875rem;color:#374151;background:transparent;cursor:pointer;white-space:nowrap}.s-wishlist-actions-menu-item:hover{background-color:#f3f4f6;color:var(--color-primary)}.s-wishlist-actions-panel{box-shadow:0 1px 3px rgba(0, 0, 0, 0.08)}.s-wishlist-actions-panel-select-all{user-select:none}.s-wishlist-actions-select-all:indeterminate,.s-wishlist-actions-select-all:indeterminate:hover,.s-wishlist-actions-select-all:indeterminate:focus{background-color:var(--color-primary);border-color:var(--color-primary)}.s-wishlist-actions-select-all:indeterminate::after{content:\"\";position:absolute;top:50%;left:50%;width:10px;height:2px;background:#fff;border:none;transform:translate(-50%, -50%)}.s-wishlist-actions-social-anchor{display:none}h1.s-wishlist-actions-page-title{text-align:start !important}.static{position:static}.absolute{position:absolute}.relative{position:relative}.z-20{z-index:20}.mb-3{margin-bottom:0.75rem}.mt-1{margin-top:0.25rem}.mt-3{margin-top:0.75rem}.flex{display:flex}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.gap-3{gap:0.75rem}.gap-4{gap:1rem}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:0.5rem}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.outline{outline-style:solid}";
|
|
7
7
|
|