@salla.sa/twilight-components 2.14.574 → 2.14.576
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-BqzmHqFG.js → filepond-pMiRtx1x.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Rc_hYm4g.js → filepond-plugin-file-poster-DxsZ8Mch.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-MQOyXwCH.js → filepond-plugin-file-validate-size-B6fa4wXz.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-0_gq-gig.js → filepond-plugin-file-validate-type-BEggFpci.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DjWvYOF_.js → filepond-plugin-image-edit-BDwSySal.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-BGNpJuyh.js → filepond-plugin-image-exif-orientation-HE8n94tY.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BoPR2rRr.js → filepond-plugin-image-preview-C-CaMrlm.js} +1 -1
- package/dist/cjs/{index-BGm5j5Zj.js → index-B3IyDlYG.js} +2 -2
- package/dist/cjs/{intlTelInput-CIZvknP0.js → intlTelInput-CeiHZwpn.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-applied-filters.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_3.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_9.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.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-gift-card-redeem.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 +1 -1
- 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_3.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 +30 -4
- package/dist/cjs/salla-offer.cjs.entry.js +132 -24
- 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.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 +38 -13
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card.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 +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- 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-product-card.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-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
- package/dist/cjs/translate-BeU1QX_r.js +20 -0
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BwaB87Xi.js → vanilla-picker-DBIBI2Jr.js} +1 -1
- package/dist/collection/Helpers/translate.js +16 -0
- package/dist/collection/components/salla-offer/salla-offer.css +86 -0
- package/dist/collection/components/salla-offer/salla-offer.js +135 -22
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.css +32 -0
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +28 -2
- package/dist/collection/components/salla-orders/salla-orders.js +39 -12
- package/dist/components/index.js +2 -2
- package/dist/components/salla-offer-modal.js +29 -3
- package/dist/components/salla-offer.js +136 -23
- package/dist/components/salla-orders.js +39 -12
- package/dist/components/translate.js +18 -0
- package/dist/esm/{filepond-DcoYtlMX.js → filepond-C6VyLUVF.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CBcS6Ln1.js → filepond-plugin-file-poster-BfFqi2TO.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-HuNTwpc9.js → filepond-plugin-file-validate-size-BBqb56CB.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BOjEfXdn.js → filepond-plugin-file-validate-type-O67G3mL2.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BL7zREI5.js → filepond-plugin-image-edit-CGZyNJxN.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BJgL9era.js → filepond-plugin-image-exif-orientation-DA7fGQP3.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DPUJHFk0.js → filepond-plugin-image-preview-BijvA1XW.js} +1 -1
- package/dist/esm/{index-BXNtVhVe.js → index-VyEjj_Gx.js} +2 -2
- package/dist/esm/{intlTelInput-wU6Kly2g.js → intlTelInput-DE-bT5KJ.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-applied-filters.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_3.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_9.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.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-gift-card-redeem.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 +1 -1
- 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_3.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 +30 -4
- package/dist/esm/salla-offer.entry.js +132 -24
- 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.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 +38 -13
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card.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 +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- 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-product-card.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-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/salla-wishlist-summary.entry.js +1 -1
- package/dist/esm/translate-CrSV-tno.js +18 -0
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CFcUgW74.js → vanilla-picker-BVwvMAEs.js} +1 -1
- package/dist/twilight/{p-0d18b6f2.entry.js → p-02df3435.entry.js} +1 -1
- package/dist/twilight/{p-bee482ce.entry.js → p-08bcc8c6.entry.js} +1 -1
- package/dist/twilight/{p-6fe398ae.entry.js → p-0987a1bf.entry.js} +1 -1
- package/dist/twilight/{p-1a4028e2.entry.js → p-09ab0b69.entry.js} +1 -1
- package/dist/twilight/{p-c67dcc94.entry.js → p-10da5fab.entry.js} +1 -1
- package/dist/twilight/{p-0a135b25.entry.js → p-12bcfd57.entry.js} +1 -1
- package/dist/twilight/{p-98137b26.entry.js → p-140bf9e1.entry.js} +1 -1
- package/dist/twilight/{p-6210a661.entry.js → p-15fd28e8.entry.js} +1 -1
- package/dist/twilight/{p-ab97de5d.entry.js → p-19c39465.entry.js} +1 -1
- package/dist/twilight/{p-88f762de.entry.js → p-1b2ce7bb.entry.js} +1 -1
- package/dist/twilight/{p-d1520e68.entry.js → p-22efe055.entry.js} +1 -1
- package/dist/twilight/{p-4563fd77.entry.js → p-237ee8db.entry.js} +1 -1
- package/dist/twilight/{p-a57e299a.entry.js → p-2438d7e1.entry.js} +1 -1
- package/dist/twilight/{p-12822eba.entry.js → p-26105855.entry.js} +1 -1
- package/dist/twilight/p-29bc507d.entry.js +4 -0
- package/dist/twilight/{p-76403e24.entry.js → p-2aa87b3c.entry.js} +1 -1
- package/dist/twilight/{p-70147959.entry.js → p-2d43aaae.entry.js} +1 -1
- package/dist/twilight/{p-6d56ebac.entry.js → p-354f6595.entry.js} +1 -1
- package/dist/twilight/p-370939c2.entry.js +4 -0
- package/dist/twilight/{p-fd6aed5e.entry.js → p-38f82c85.entry.js} +1 -1
- package/dist/twilight/{p-c5f087a3.entry.js → p-4198d092.entry.js} +1 -1
- package/dist/twilight/{p-9f23104d.entry.js → p-47ddfc87.entry.js} +1 -1
- package/dist/twilight/{p-e63f5b80.entry.js → p-4abd6abc.entry.js} +1 -1
- package/dist/twilight/{p-c0c23759.entry.js → p-4bcf0187.entry.js} +1 -1
- package/dist/twilight/{p-9282b995.entry.js → p-55469fd9.entry.js} +1 -1
- package/dist/twilight/{p-eccd8aa9.entry.js → p-55afe19f.entry.js} +1 -1
- package/dist/twilight/{p-a581c552.entry.js → p-565f021e.entry.js} +1 -1
- package/dist/twilight/{p-dedfcc58.entry.js → p-58398f44.entry.js} +1 -1
- package/dist/twilight/{p-6665f42e.entry.js → p-63a287b4.entry.js} +1 -1
- package/dist/twilight/{p-900f78b6.entry.js → p-63af5354.entry.js} +1 -1
- package/dist/twilight/{p-f583571c.entry.js → p-66be47ec.entry.js} +1 -1
- package/dist/twilight/{p-38806031.entry.js → p-6c4d3288.entry.js} +1 -1
- package/dist/twilight/{p-71ec3f8a.entry.js → p-6d46f977.entry.js} +1 -1
- package/dist/twilight/{p-3e7a7eb0.entry.js → p-70577d8b.entry.js} +1 -1
- package/dist/twilight/{p-043b2382.entry.js → p-724be00d.entry.js} +1 -1
- package/dist/twilight/{p-e50b99cb.entry.js → p-76843521.entry.js} +1 -1
- package/dist/twilight/{p-aec3d7ce.entry.js → p-7d4c9e95.entry.js} +1 -1
- package/dist/twilight/{p-f48ada4a.entry.js → p-7ef406e5.entry.js} +1 -1
- package/dist/twilight/{p-6b378bcd.entry.js → p-7f38bccf.entry.js} +1 -1
- package/dist/twilight/{p-e9cc9f4f.entry.js → p-80cf8042.entry.js} +1 -1
- package/dist/twilight/{p-b0671070.entry.js → p-82186e1c.entry.js} +1 -1
- package/dist/twilight/{p-747153bc.entry.js → p-85a81ddd.entry.js} +1 -1
- package/dist/twilight/{p-de3eeec4.entry.js → p-85d5c0b6.entry.js} +1 -1
- package/dist/twilight/{p-bd89bcf5.entry.js → p-88918b1b.entry.js} +1 -1
- package/dist/twilight/{p-48f47f92.entry.js → p-90033ecc.entry.js} +1 -1
- package/dist/twilight/{p-8666489e.entry.js → p-915965eb.entry.js} +1 -1
- package/dist/twilight/{p-a0c5bc92.entry.js → p-9417b38b.entry.js} +1 -1
- package/dist/twilight/{p-dc9b9ef7.entry.js → p-95494a3d.entry.js} +1 -1
- package/dist/twilight/{p-ac2926d9.entry.js → p-9a0ad6b4.entry.js} +1 -1
- package/dist/twilight/{p-43124a9d.entry.js → p-9df6ef40.entry.js} +1 -1
- package/dist/twilight/{p-78a84f80.entry.js → p-9eebb417.entry.js} +1 -1
- package/dist/twilight/{p-6142183b.entry.js → p-9f485845.entry.js} +1 -1
- package/dist/twilight/p-BB5KMFvk.js +9 -0
- package/dist/twilight/{p-CMcDoqmG.js → p-BZQPZ7Vk.js} +1 -1
- package/dist/twilight/{p-BFib9jF0.js → p-BqBflUu5.js} +1 -1
- package/dist/twilight/{p-CPkPdW2Q.js → p-CVE_4GIW.js} +1 -1
- package/dist/twilight/p-CrSV-tno.js +4 -0
- package/dist/twilight/{p-CDojVREu.js → p-Dht_HSXg.js} +2 -2
- package/dist/twilight/{p-BpnCDmiM.js → p-DtngMbK9.js} +1 -1
- package/dist/twilight/{p-C3JsXKHY.js → p-MofCSty6.js} +1 -1
- package/dist/twilight/{p-BXNtVhVe.js → p-VyEjj_Gx.js} +1 -1
- package/dist/twilight/{p-COQlWLWv.js → p-XWoqFS1d.js} +1 -1
- package/dist/twilight/{p-a34258d2.entry.js → p-a185519a.entry.js} +1 -1
- package/dist/twilight/{p-91e4594d.entry.js → p-a291f319.entry.js} +1 -1
- package/dist/twilight/{p-52c31b1a.entry.js → p-a2bf4487.entry.js} +1 -1
- package/dist/twilight/{p-f4583bb2.entry.js → p-a4ba6008.entry.js} +1 -1
- package/dist/twilight/{p-c163a216.entry.js → p-a5dc1d5e.entry.js} +1 -1
- package/dist/twilight/{p-987a75aa.entry.js → p-a8f4fa9e.entry.js} +1 -1
- package/dist/twilight/{p-e6233f15.entry.js → p-a990b069.entry.js} +1 -1
- package/dist/twilight/{p-0bcaa1af.entry.js → p-b06b0973.entry.js} +1 -1
- package/dist/twilight/{p-2e08cf78.entry.js → p-b35956cc.entry.js} +1 -1
- package/dist/twilight/{p-853b2efe.entry.js → p-b3a36e11.entry.js} +1 -1
- package/dist/twilight/{p-90aa29f3.entry.js → p-b7e14e40.entry.js} +1 -1
- package/dist/twilight/{p-8f3642d1.entry.js → p-b930b2ba.entry.js} +1 -1
- package/dist/twilight/{p-70eaceea.entry.js → p-b9e85434.entry.js} +1 -1
- package/dist/twilight/{p-9dfe1ec1.entry.js → p-bb2c9ac9.entry.js} +1 -1
- package/dist/twilight/{p-bb0bc7ed.entry.js → p-bb83242c.entry.js} +1 -1
- package/dist/twilight/{p-9cca8055.entry.js → p-bc1251f6.entry.js} +1 -1
- package/dist/twilight/{p-f174afea.entry.js → p-c032ca19.entry.js} +1 -1
- package/dist/twilight/{p-44899fd8.entry.js → p-c1f9932b.entry.js} +1 -1
- package/dist/twilight/{p-23540811.entry.js → p-c593919c.entry.js} +1 -1
- package/dist/twilight/{p-9979ada5.entry.js → p-c63be3cf.entry.js} +1 -1
- package/dist/twilight/{p-817cfe1a.entry.js → p-c6e6daf9.entry.js} +1 -1
- package/dist/twilight/{p-d702af41.entry.js → p-c95f4657.entry.js} +1 -1
- package/dist/twilight/{p-b11508cb.entry.js → p-ca7cd467.entry.js} +1 -1
- package/dist/twilight/{p-9d667925.entry.js → p-cbaa45a4.entry.js} +1 -1
- package/dist/twilight/{p-1ea4c8e4.entry.js → p-ceae3b17.entry.js} +1 -1
- package/dist/twilight/{p-16b9ea73.entry.js → p-d0445027.entry.js} +1 -1
- package/dist/twilight/{p-565eda17.entry.js → p-d4466357.entry.js} +1 -1
- package/dist/twilight/{p-8e114c27.entry.js → p-d59a53f5.entry.js} +1 -1
- package/dist/twilight/{p-7a099b00.entry.js → p-d5d8230d.entry.js} +1 -1
- package/dist/twilight/{p-79f495b7.entry.js → p-d6c4c0f7.entry.js} +1 -1
- package/dist/twilight/{p-b0ff401e.entry.js → p-dcba291c.entry.js} +1 -1
- package/dist/twilight/{p-bc2203b6.entry.js → p-e2d0eb4c.entry.js} +1 -1
- package/dist/twilight/p-e6803d06.entry.js +4 -0
- package/dist/twilight/{p-2ee3c58e.entry.js → p-ec378cee.entry.js} +1 -1
- package/dist/twilight/{p-b5329852.entry.js → p-f059fb37.entry.js} +1 -1
- package/dist/twilight/{p-3ae64529.entry.js → p-f12fc91c.entry.js} +1 -1
- package/dist/twilight/{p-d365bd72.entry.js → p-f1d0d4da.entry.js} +1 -1
- package/dist/twilight/{p-1853b5ba.entry.js → p-f265b4ea.entry.js} +1 -1
- package/dist/twilight/{p-50a88286.entry.js → p-f291fd6b.entry.js} +1 -1
- package/dist/twilight/{p-fc0a3c91.entry.js → p-f7063e39.entry.js} +1 -1
- package/dist/twilight/{p-dbd9523b.entry.js → p-f7f35e00.entry.js} +1 -1
- package/dist/twilight/{p-e77d6649.entry.js → p-f889b4d2.entry.js} +1 -1
- package/dist/twilight/{p-bdb558a2.entry.js → p-faa90387.entry.js} +1 -1
- package/dist/twilight/{p-f7e38710.entry.js → p-fe8cb1d6.entry.js} +1 -1
- package/dist/twilight/{p-D9StCBh9.js → p-k8NfWBBa.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/Helpers/translate.d.ts +10 -0
- package/dist/types/components/salla-offer/salla-offer.d.ts +52 -1
- package/dist/types/components/salla-offer-modal/offer-schema.d.ts +12 -0
- package/dist/types/components/salla-offer-modal/salla-offer-modal.d.ts +7 -0
- package/dist/types/components/salla-orders/interface.d.ts +2 -0
- package/dist/types/components/salla-orders/salla-orders.d.ts +5 -1
- package/package.json +5 -5
- package/dist/twilight/p-02eccebc.entry.js +0 -4
- package/dist/twilight/p-1bcacd6b.entry.js +0 -4
- package/dist/twilight/p-22087f33.entry.js +0 -4
- package/dist/twilight/p-b84FyDqk.js +0 -9
|
@@ -21,15 +21,20 @@ const sallaInfiniteScrollCss = "/*!twlt*/.s-button-btn{position:relative;display
|
|
|
21
21
|
|
|
22
22
|
const FEEDBACK_STATUS_WAITING = 'waiting';
|
|
23
23
|
const TAB_QUERY_PARAM = 'tab';
|
|
24
|
+
const SHOW_EXTERNAL_ORDERS_FEATURE = 'show-external-orders';
|
|
24
25
|
function getFilterFromSearchParams() {
|
|
25
26
|
const tab = new URLSearchParams(window.location.search).get(TAB_QUERY_PARAM);
|
|
26
|
-
|
|
27
|
+
if (tab === 'waiting' || tab === 'archived')
|
|
28
|
+
return tab;
|
|
29
|
+
return 'all';
|
|
27
30
|
}
|
|
28
31
|
const LANG_DEFAULTS = {
|
|
29
32
|
'pages.orders.filter_all': { ar: 'الكل', en: 'All' },
|
|
33
|
+
'pages.orders.filter_archived': { ar: 'الطلبات المؤرشفة', en: 'Archived orders' },
|
|
30
34
|
'pages.orders.filter_awaiting_review': { ar: 'بانتظار تقييمك', en: 'Awaiting your review' },
|
|
31
35
|
'pages.orders.leave_review': { ar: 'أضف تقييمك', en: 'Add review' },
|
|
32
36
|
'pages.orders.no_unrated_orders': { ar: 'لا توجد طلبات غير مقيَّمة', en: 'No unrated orders' },
|
|
37
|
+
'pages.orders.no_archived_orders': { ar: 'لا توجد طلبات مؤرشفة', en: 'No archived orders' },
|
|
33
38
|
'pages.orders.review_banner': {
|
|
34
39
|
ar: 'لديك طلبات بانتظار تقييمك. شارك رأيك وساعدنا على تحسين تجربتك.',
|
|
35
40
|
en: 'You have orders awaiting your review. Share your feedback and help us improve your experience.',
|
|
@@ -51,9 +56,11 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
51
56
|
this.load_more_text_trans = salla.lang.get('common.elements.load_more');
|
|
52
57
|
this.languageCode = salla.lang.locale;
|
|
53
58
|
this.filterAllText = salla.lang.getWithDefault('pages.orders.filter_all', 'الكل');
|
|
59
|
+
this.filterArchivedText = salla.lang.getWithDefault('pages.orders.filter_archived', 'الطلبات المؤرشفة');
|
|
54
60
|
this.filterAwaitingReviewText = salla.lang.getWithDefault('pages.orders.filter_awaiting_review', 'بانتظار تقييمك');
|
|
55
61
|
this.leaveReviewText = salla.lang.getWithDefault('pages.orders.leave_review', 'شارك تقييمك');
|
|
56
62
|
this.noUnratedOrdersText = salla.lang.getWithDefault('pages.orders.no_unrated_orders', 'لا توجد طلبات غير مقيَّمة');
|
|
63
|
+
this.noArchivedOrdersText = salla.lang.getWithDefault('pages.orders.no_archived_orders', 'لا توجد طلبات مؤرشفة');
|
|
57
64
|
this.orders = [];
|
|
58
65
|
this.nextPage = null;
|
|
59
66
|
this.activeFilter = getFilterFromSearchParams();
|
|
@@ -62,6 +69,7 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
62
69
|
this.isFetching = false;
|
|
63
70
|
this.reviewPoints = 0;
|
|
64
71
|
this.filterGeneration = 0;
|
|
72
|
+
this.showExternalOrders = false;
|
|
65
73
|
salla.lang.onLoaded(() => {
|
|
66
74
|
this.languageCode = salla.lang.locale;
|
|
67
75
|
this.orderNumberText = salla.lang.get('pages.thank_you.order_id');
|
|
@@ -81,9 +89,11 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
81
89
|
}
|
|
82
90
|
refreshReviewLabels() {
|
|
83
91
|
this.filterAllText = salla.lang.getWithDefault('pages.orders.filter_all', 'الكل');
|
|
92
|
+
this.filterArchivedText = salla.lang.getWithDefault('pages.orders.filter_archived', 'الطلبات المؤرشفة');
|
|
84
93
|
this.filterAwaitingReviewText = salla.lang.getWithDefault('pages.orders.filter_awaiting_review', 'بانتظار تقييمك');
|
|
85
94
|
this.leaveReviewText = salla.lang.getWithDefault('pages.orders.leave_review', 'شارك تقييمك');
|
|
86
95
|
this.noUnratedOrdersText = salla.lang.getWithDefault('pages.orders.no_unrated_orders', 'لا توجد طلبات غير مقيَّمة');
|
|
96
|
+
this.noArchivedOrdersText = salla.lang.getWithDefault('pages.orders.no_archived_orders', 'لا توجد طلبات مؤرشفة');
|
|
87
97
|
}
|
|
88
98
|
setupLoyalty() {
|
|
89
99
|
// ? Flags
|
|
@@ -228,11 +238,11 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
228
238
|
return;
|
|
229
239
|
this.setLoadMoreLoading(false);
|
|
230
240
|
this.isFetching = true;
|
|
231
|
-
// Rows are appended to the
|
|
241
|
+
// Rows are appended to the table body imperatively (outside Stencil's vdom), so
|
|
232
242
|
// switching the render branch to the skeleton table won't clear them on its
|
|
233
243
|
// own — clear them explicitly or the old rows linger alongside the skeleton.
|
|
234
|
-
if (this.
|
|
235
|
-
this.
|
|
244
|
+
if (this.ordersTableBody) {
|
|
245
|
+
this.ordersTableBody.innerHTML = '';
|
|
236
246
|
}
|
|
237
247
|
this.filterGeneration++;
|
|
238
248
|
const feedbackStatus = filter === 'waiting' ? FEEDBACK_STATUS_WAITING : null;
|
|
@@ -242,6 +252,7 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
242
252
|
format: 'light',
|
|
243
253
|
types: [''],
|
|
244
254
|
feedback_status: feedbackStatus,
|
|
255
|
+
...(filter === 'archived' ? { external_orders: 1 } : {}),
|
|
245
256
|
});
|
|
246
257
|
this.orders = resp.data;
|
|
247
258
|
this.hasInfiniteScroll = !!resp.pagination?.links.next;
|
|
@@ -255,8 +266,8 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
255
266
|
}
|
|
256
267
|
if (!this.orders.length) {
|
|
257
268
|
this.setLoadMoreLoading(false);
|
|
258
|
-
this.emptyFilterResult = filter
|
|
259
|
-
this.showPlaceholder = filter
|
|
269
|
+
this.emptyFilterResult = filter !== 'all';
|
|
270
|
+
this.showPlaceholder = filter === 'all';
|
|
260
271
|
return;
|
|
261
272
|
}
|
|
262
273
|
this.showPlaceholder = false;
|
|
@@ -274,7 +285,9 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
274
285
|
}
|
|
275
286
|
}
|
|
276
287
|
getSingleOrderItem(order) {
|
|
277
|
-
const
|
|
288
|
+
const orderNumber = String((this.activeFilter === 'archived' ? order.external_order_id : order.reference_id) ?? '');
|
|
289
|
+
// ponytail: # only for pure digits; alphanumeric external ids stay bare
|
|
290
|
+
const orderNumberLabel = /^\d+$/.test(orderNumber) ? `#${orderNumber}` : orderNumber;
|
|
278
291
|
const tr = document.createElement('tr');
|
|
279
292
|
tr.classList.add('s-orders-table-tbody-tr', 's-orders-table-tbody-tr-shadow');
|
|
280
293
|
const td1 = document.createElement('td');
|
|
@@ -286,7 +299,7 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
286
299
|
span1.textContent = `${this.orderNumberText}:`;
|
|
287
300
|
const span2 = document.createElement('span');
|
|
288
301
|
span2.classList.add('s-orders-reference-id');
|
|
289
|
-
span2.textContent =
|
|
302
|
+
span2.textContent = orderNumberLabel;
|
|
290
303
|
div1.appendChild(span1);
|
|
291
304
|
div1.appendChild(span2);
|
|
292
305
|
if (order.source === 'buy_as_gift') {
|
|
@@ -304,7 +317,7 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
304
317
|
sallaButton.classList.add('relative');
|
|
305
318
|
sallaButton.setAttribute('color', 'dark');
|
|
306
319
|
sallaButton.setAttribute('shape', 'link');
|
|
307
|
-
sallaButton.dataset.content =
|
|
320
|
+
sallaButton.dataset.content = orderNumber;
|
|
308
321
|
sallaButton.addEventListener('click', event => {
|
|
309
322
|
Helper.copyToClipboard(event);
|
|
310
323
|
Helper.toggleElementClassIf(sallaButton, 'copied', 'code-to-copy', () => true);
|
|
@@ -313,7 +326,7 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
313
326
|
}, 1000);
|
|
314
327
|
});
|
|
315
328
|
const span3 = document.createElement('span');
|
|
316
|
-
span3.textContent =
|
|
329
|
+
span3.textContent = orderNumberLabel;
|
|
317
330
|
const copyIcon = document.createElement('i');
|
|
318
331
|
copyIcon.classList.add('sicon-swap-stroke', 's-orders-copy-to-clipboard-button-icon');
|
|
319
332
|
// Check the text direction
|
|
@@ -445,8 +458,13 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
445
458
|
renderSkeletonRows(count = 5) {
|
|
446
459
|
return Array.from({ length: count }, (_, index) => this.renderSkeletonRow(index));
|
|
447
460
|
}
|
|
461
|
+
getEmptyFilterText() {
|
|
462
|
+
return this.activeFilter === 'archived'
|
|
463
|
+
? this.noArchivedOrdersText
|
|
464
|
+
: this.noUnratedOrdersText;
|
|
465
|
+
}
|
|
448
466
|
renderFilters() {
|
|
449
|
-
return (h("div", { class: "s-orders-filters" }, h("salla-button", { size: "small", color: this.activeFilter === 'all' ? 'primary' : 'light', fill: "outline", onClick: () => this.switchFilter('all'), enableLoader: false }, this.filterAllText), h("salla-button", { size: "small", color: this.activeFilter === 'waiting' ? 'primary' : 'light', fill: "outline", onClick: () => this.switchFilter('waiting'), enableLoader: false }, this.filterAwaitingReviewText)));
|
|
467
|
+
return (h("div", { class: "s-orders-filters" }, h("salla-button", { size: "small", color: this.activeFilter === 'all' ? 'primary' : 'light', fill: "outline", onClick: () => this.switchFilter('all'), enableLoader: false }, this.filterAllText), this.showExternalOrders && (h("salla-button", { size: "small", color: this.activeFilter === 'archived' ? 'primary' : 'light', fill: "outline", onClick: () => this.switchFilter('archived'), enableLoader: false }, this.filterArchivedText)), h("salla-button", { size: "small", color: this.activeFilter === 'waiting' ? 'primary' : 'light', fill: "outline", onClick: () => this.switchFilter('waiting'), enableLoader: false }, this.filterAwaitingReviewText)));
|
|
450
468
|
}
|
|
451
469
|
renderBanner() {
|
|
452
470
|
if (!this.pendingReviewCount)
|
|
@@ -457,7 +475,7 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
457
475
|
if (this.showPlaceholder) {
|
|
458
476
|
return (h("div", { class: "s-orders-no-content" }, h("i", { class: "sicon-packed-box icon" }), h("p", null, this.noOrderText)));
|
|
459
477
|
}
|
|
460
|
-
return (h("div", { class: "s-orders-wrapper" }, this.renderBanner(), this.renderFilters(), h("div", { class: "s-orders-list-wrapper" }, this.isFetching ? (h("table", { class: "s-orders-table s-orders-table-skeleton" }, this.renderTableHead(), h("tbody", { class: "s-orders-table-tbody" }, this.renderSkeletonRows()))) : this.emptyFilterResult ? (h("div", { class: "s-orders-no-content" }, h("i", { class: "sicon-packed-box icon" }), h("p", null, this.
|
|
478
|
+
return (h("div", { class: "s-orders-wrapper" }, this.renderBanner(), this.renderFilters(), h("div", { class: "s-orders-list-wrapper" }, this.isFetching ? (h("table", { class: "s-orders-table s-orders-table-skeleton" }, this.renderTableHead(), h("tbody", { class: "s-orders-table-tbody" }, this.renderSkeletonRows()))) : this.emptyFilterResult ? (h("div", { class: "s-orders-no-content" }, h("i", { class: "sicon-packed-box icon" }), h("p", null, this.getEmptyFilterText()))) : (h("table", { class: "s-orders-table" }, this.renderTableHead(), h("tbody", { class: "s-orders-table-tbody", ref: element => (this.ordersTableBody = element) })))), this.nextPage && !this.emptyFilterResult && (h("div", { class: "s-infinite-scroll-wrapper", ref: status => (this.status = status) }, h("button", { type: "button", onClick: () => this.loadMore(), class: "s-infinite-scroll-btn s-button-btn s-button-primary" }, h("span", { class: "s-button-text s-infinite-scroll-btn-text" }, this.loadMoreText ?? this.load_more_text_trans), h("span", { class: "s-button-loader s-button-loader-center s-infinite-scroll-btn-loader", ref: btnLoader => (this.btnLoader = btnLoader), style: { display: 'none' } })))), h("salla-rating-modal", { ref: el => (this.ratingModal = el) })));
|
|
461
479
|
}
|
|
462
480
|
componentDidRender() {
|
|
463
481
|
this.populateOrdersTableIfEmpty();
|
|
@@ -469,6 +487,13 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
469
487
|
});
|
|
470
488
|
return salla.onReady().then(() => {
|
|
471
489
|
this.setupLoyalty();
|
|
490
|
+
this.showExternalOrders = salla.config
|
|
491
|
+
.get('store.features', [])
|
|
492
|
+
.includes(SHOW_EXTERNAL_ORDERS_FEATURE);
|
|
493
|
+
if (this.activeFilter === 'archived' && !this.showExternalOrders) {
|
|
494
|
+
this.activeFilter = 'all';
|
|
495
|
+
this.syncFilterToSearchParams('all');
|
|
496
|
+
}
|
|
472
497
|
const tasks = [this.fetchOrders(this.activeFilter)];
|
|
473
498
|
// fetchOrders already resolves the pending count when the initial tab is "waiting"
|
|
474
499
|
if (this.activeFilter !== 'waiting') {
|
|
@@ -489,9 +514,11 @@ const SallaOrder = /*@__PURE__*/ proxyCustomElement(class SallaOrder extends HTM
|
|
|
489
514
|
"load_more_text_trans": [32],
|
|
490
515
|
"languageCode": [32],
|
|
491
516
|
"filterAllText": [32],
|
|
517
|
+
"filterArchivedText": [32],
|
|
492
518
|
"filterAwaitingReviewText": [32],
|
|
493
519
|
"leaveReviewText": [32],
|
|
494
520
|
"noUnratedOrdersText": [32],
|
|
521
|
+
"noArchivedOrdersText": [32],
|
|
495
522
|
"orders": [32],
|
|
496
523
|
"pagination": [32],
|
|
497
524
|
"hasInfiniteScroll": [32],
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Translate with a real fallback.
|
|
6
|
+
*
|
|
7
|
+
* `salla.lang.get(key, replacements, locale)` takes a LOCALE as its third
|
|
8
|
+
* argument, not a fallback, and lang.js echoes the key back when it has no
|
|
9
|
+
* translation. Passing a fallback there silently asks for a nonsense locale and
|
|
10
|
+
* still renders the raw key to the customer, which is what a store shows while
|
|
11
|
+
* its translation bundle has not yet picked up newly added keys.
|
|
12
|
+
*/
|
|
13
|
+
function translate(key, replacements, fallback) {
|
|
14
|
+
const value = salla.lang.get(key, replacements);
|
|
15
|
+
return !value || value === key ? fallback : value;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { translate as t };
|