@salla.sa/twilight-components 2.14.575 → 2.14.577
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-NMq4bM2q.js → filepond-iflxa4A5.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-TEelNjjG.js → filepond-plugin-file-poster-NZ84xlKh.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-DRVxzFUc.js → filepond-plugin-file-validate-size-m8Z_JlZX.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-75J1mHEB.js → filepond-plugin-file-validate-type-BfF6LYAT.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CvC-CZjk.js → filepond-plugin-image-edit-DfRJ3iRj.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-D7mJeHKx.js → filepond-plugin-image-exif-orientation-BZxYZai-.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-QxURSuZ4.js → filepond-plugin-image-preview-BQ7HvH2d.js} +1 -1
- package/dist/cjs/{helpers-Dm4BirHO.js → helpers-DBynEhOO.js} +0 -15
- package/dist/cjs/{index-Bt8A6pnr.js → index-CSe-ijAV.js} +2 -2
- package/dist/cjs/{intlTelInput-Dq8y3YHO.js → intlTelInput-DHfYz8vv.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +3 -3
- package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +3 -3
- 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 +17 -17
- 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 +179 -187
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +160 -7
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +2 -2
- 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 +4 -4
- 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 +2 -2
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +2 -2
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +3 -3
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/salla-hook.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/salla-localization-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +15 -15
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +2 -2
- package/dist/cjs/salla-map_3.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +6 -6
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +2 -2
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer.cjs.entry.js +18 -2
- 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 +2 -2
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/dist/cjs/salla-placeholder.cjs.entry.js +2 -2
- package/dist/cjs/salla-price-range.cjs.entry.js +3 -3
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +2 -2
- package/dist/cjs/salla-product-card.cjs.entry.js +6 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
- package/dist/cjs/salla-wishlist-summary.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BkJyQVMl.js → vanilla-picker-Brk9Mb54.js} +1 -1
- package/dist/collection/assets/svg/mini-map.svg +6 -30
- package/dist/collection/components/salla-accordion/salla-accordion-head.js +2 -2
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.css +241 -238
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +175 -146
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.css +154 -92
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +160 -5
- package/dist/collection/components/salla-cart-summary/salla-cart-summary.js +1 -1
- package/dist/collection/components/salla-color-picker/salla-color-picker.js +1 -1
- package/dist/collection/components/salla-comment-form/salla-comment-form.js +1 -1
- package/dist/collection/components/salla-conditional-fields/salla-conditional-fields.js +1 -1
- package/dist/collection/components/salla-count-down/salla-count-down.js +1 -1
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +2 -2
- package/dist/collection/components/salla-filters/salla-filters.js +1 -1
- package/dist/collection/components/salla-filters-widget/salla-filters-widget.js +2 -2
- package/dist/collection/components/salla-gifting/salla-gifting.js +2 -2
- package/dist/collection/components/salla-hook/salla-hook.js +1 -1
- package/dist/collection/components/salla-list-tile/salla-list-tile.js +1 -1
- package/dist/collection/components/salla-loading/salla-loading.js +1 -1
- package/dist/collection/components/salla-localization-modal/salla-localization-modal.js +1 -1
- package/dist/collection/components/salla-loyalty/salla-loyalty-prize-item.js +1 -1
- package/dist/collection/components/salla-loyalty-points-history/salla-loyalty-points-history.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-exchange-product-card.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-hero.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-point.js +4 -4
- package/dist/collection/components/salla-loyalty-program/salla-loyalty-reward.js +2 -2
- package/dist/collection/components/salla-loyalty-program/salla-reward-card.js +1 -1
- package/dist/collection/components/salla-loyalty-program/salla-reward-details.js +3 -3
- package/dist/collection/components/salla-loyalty-program/salla-reward-exchange.js +1 -1
- package/dist/collection/components/salla-maintenance-alert/salla-maintenance-alert.js +1 -1
- package/dist/collection/components/salla-map/salla-map.js +3 -3
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-cart.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-details.js +2 -2
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-options-modal.js +4 -4
- package/dist/collection/components/salla-multiple-bundle-product/components/salla-multiple-bundle-product-slider.js +1 -1
- package/dist/collection/components/salla-multiple-bundle-product/salla-multiple-bundle-product.js +1 -1
- package/dist/collection/components/salla-notifications/salla-notification-item.js +1 -1
- package/dist/collection/components/salla-offer/salla-offer.js +17 -1
- package/dist/collection/components/salla-offer-modal/salla-offer-modal.js +1 -1
- package/dist/collection/components/salla-order-details/salla-order-details.js +1 -1
- package/dist/collection/components/salla-order-edit/salla-order-edit-product-card.js +1 -1
- package/dist/collection/components/salla-order-summary/salla-order-summary.js +1 -1
- package/dist/collection/components/salla-orders/salla-orders.js +39 -12
- package/dist/collection/components/salla-payments/salla-payments.js +2 -2
- package/dist/collection/components/salla-placeholder/salla-placeholder.js +1 -1
- package/dist/collection/components/salla-price-range/salla-price-range.js +2 -2
- package/dist/collection/components/salla-product-availability/salla-product-availability.js +1 -1
- package/dist/collection/components/salla-product-card/salla-product-card.js +5 -5
- package/dist/collection/components/salla-product-card-embed/salla-product-card-embed.js +1 -1
- package/dist/collection/components/salla-product-size-guide/salla-product-size-guide.js +2 -2
- package/dist/collection/components/salla-quantity-input/salla-quantity-input.js +1 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +1 -1
- package/dist/collection/components/salla-review-card/salla-review-card.js +1 -1
- package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +1 -1
- package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
- package/dist/collection/components/salla-search-product-card/salla-search-product-card.js +2 -2
- package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
- package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
- package/dist/components/helpers.js +1 -15
- package/dist/components/index.js +2 -2
- package/dist/components/salla-accordion-head2.js +2 -2
- package/dist/components/salla-bullet-delivery.js +175 -184
- package/dist/components/salla-cart-coupons.js +161 -6
- package/dist/components/salla-cart-summary.js +1 -1
- package/dist/components/salla-color-picker2.js +1 -1
- package/dist/components/salla-comment-form2.js +1 -1
- package/dist/components/salla-conditional-fields2.js +1 -1
- package/dist/components/salla-count-down2.js +1 -1
- package/dist/components/salla-datetime-picker2.js +1 -1
- package/dist/components/salla-delivery-promise.js +1 -1
- package/dist/components/salla-file-upload2.js +2 -2
- package/dist/components/salla-filters-widget2.js +2 -2
- package/dist/components/salla-filters.js +1 -1
- package/dist/components/salla-gifting.js +2 -2
- package/dist/components/salla-hook.js +1 -1
- package/dist/components/salla-list-tile2.js +1 -1
- package/dist/components/salla-loading2.js +1 -1
- package/dist/components/salla-localization-modal.js +1 -1
- package/dist/components/salla-loyalty-exchange-product-card2.js +2 -2
- package/dist/components/salla-loyalty-hero2.js +3 -3
- package/dist/components/salla-loyalty-point2.js +4 -4
- package/dist/components/salla-loyalty-points-history.js +1 -1
- package/dist/components/salla-loyalty-prize-item.js +1 -1
- package/dist/components/salla-loyalty-reward.js +2 -2
- package/dist/components/salla-maintenance-alert.js +1 -1
- package/dist/components/salla-map2.js +3 -3
- package/dist/components/salla-multiple-bundle-product-cart2.js +1 -1
- package/dist/components/salla-multiple-bundle-product-details2.js +2 -2
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +4 -4
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +1 -1
- package/dist/components/salla-notification-item2.js +1 -1
- package/dist/components/salla-offer-modal.js +1 -1
- package/dist/components/salla-offer.js +17 -1
- package/dist/components/salla-order-details.js +1 -1
- package/dist/components/salla-order-edit-product-card.js +1 -1
- package/dist/components/salla-order-summary.js +1 -1
- package/dist/components/salla-orders.js +39 -12
- package/dist/components/salla-payments.js +2 -2
- package/dist/components/salla-placeholder2.js +1 -1
- package/dist/components/salla-price-range2.js +2 -2
- package/dist/components/salla-product-availability2.js +1 -1
- package/dist/components/salla-product-card-embed.js +1 -1
- package/dist/components/salla-product-card2.js +5 -5
- package/dist/components/salla-product-size-guide.js +2 -2
- package/dist/components/salla-quantity-input2.js +1 -1
- package/dist/components/salla-quick-buy2.js +1 -1
- package/dist/components/salla-review-card2.js +1 -1
- package/dist/components/salla-review-factors-tags2.js +1 -1
- package/dist/components/salla-reviews-page.js +1 -1
- package/dist/components/salla-reward-card2.js +1 -1
- package/dist/components/salla-reward-details2.js +3 -3
- package/dist/components/salla-reward-exchange2.js +1 -1
- package/dist/components/salla-search-product-card2.js +2 -2
- package/dist/components/salla-searchable-dropdown2.js +4 -4
- package/dist/components/salla-skeleton2.js +1 -1
- package/dist/components/salla-social-share2.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/components/salla-wishlist-actions.js +1 -1
- package/dist/esm/{filepond-kmpJTY5p.js → filepond-Qm94dFPs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-8M0TsTUo.js → filepond-plugin-file-poster-CHpnwHYe.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CPVDzrMj.js → filepond-plugin-file-validate-size-BwHBxxMg.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D0qUdWNB.js → filepond-plugin-file-validate-type-BD-yTEPO.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-K8nFORG9.js → filepond-plugin-image-edit-DKc0Yw10.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BSvnwKAw.js → filepond-plugin-image-exif-orientation-CepmNFGF.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-hArDoD8N.js → filepond-plugin-image-preview-FhnzagMd.js} +1 -1
- package/dist/esm/{helpers-CV6uPJEJ.js → helpers-BJxBnTgv.js} +1 -15
- package/dist/esm/{index-a6lSRQK4.js → index-BAXTlrSC.js} +2 -2
- package/dist/esm/{intlTelInput-CC5xRRkd.js → intlTelInput-BJlOPJYY.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +3 -3
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +3 -3
- 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 +17 -17
- 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 +179 -187
- package/dist/esm/salla-cart-coupons.entry.js +160 -7
- package/dist/esm/salla-cart-item-offers_2.entry.js +2 -2
- 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 +4 -4
- 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 +2 -2
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +2 -2
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +3 -3
- package/dist/esm/salla-filters.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/salla-hook.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/salla-localization-modal.entry.js +2 -2
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner_10.entry.js +15 -15
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +2 -2
- package/dist/esm/salla-loyalty-prize-item.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +2 -2
- package/dist/esm/salla-map_3.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +6 -6
- package/dist/esm/salla-multiple-bundle-product.entry.js +2 -2
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item_2.entry.js +2 -2
- package/dist/esm/salla-offer-modal.entry.js +2 -2
- package/dist/esm/salla-offer.entry.js +18 -2
- 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 +2 -2
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +2 -2
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/salla-placeholder.entry.js +2 -2
- package/dist/esm/salla-price-range.entry.js +3 -3
- package/dist/esm/salla-product-card-embed.entry.js +2 -2
- package/dist/esm/salla-product-card.entry.js +6 -6
- package/dist/esm/salla-product-size-guide.entry.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +2 -2
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +2 -2
- package/dist/esm/salla-wishlist-summary.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CDhGfTst.js → vanilla-picker-C_cY41gl.js} +1 -1
- package/dist/twilight/{p-cc15290b.entry.js → p-00a727c3.entry.js} +1 -1
- package/dist/twilight/{p-fc13e706.entry.js → p-0227316e.entry.js} +1 -1
- package/dist/twilight/{p-aee0c658.entry.js → p-03c959bb.entry.js} +1 -1
- package/dist/twilight/{p-a177b13f.entry.js → p-072ee78f.entry.js} +1 -1
- package/dist/twilight/{p-f2f6f502.entry.js → p-073e1363.entry.js} +1 -1
- package/dist/twilight/{p-4a60be6d.entry.js → p-0806da7e.entry.js} +1 -1
- package/dist/twilight/{p-5134aae8.entry.js → p-08cedab0.entry.js} +1 -1
- package/dist/twilight/{p-69594ced.entry.js → p-0bcca7f8.entry.js} +1 -1
- package/dist/twilight/{p-9b04ed7f.entry.js → p-10a68a21.entry.js} +1 -1
- package/dist/twilight/{p-00e68964.entry.js → p-13abf9ca.entry.js} +1 -1
- package/dist/twilight/{p-742f2c15.entry.js → p-13c35685.entry.js} +1 -1
- package/dist/twilight/{p-540138a1.entry.js → p-162fa48e.entry.js} +1 -1
- package/dist/twilight/{p-e0b5a06d.entry.js → p-1762fd86.entry.js} +1 -1
- package/dist/twilight/{p-2af75479.entry.js → p-18c41e9a.entry.js} +1 -1
- package/dist/twilight/{p-d6803c56.entry.js → p-1fbb0b22.entry.js} +1 -1
- package/dist/twilight/{p-109472c5.entry.js → p-1fd6a10e.entry.js} +1 -1
- package/dist/twilight/p-28cdaf6b.entry.js +4 -0
- package/dist/twilight/{p-ebd9a6c2.entry.js → p-292a0b4a.entry.js} +1 -1
- package/dist/twilight/{p-d0fce326.entry.js → p-2ba4956f.entry.js} +1 -1
- package/dist/twilight/{p-6f371a84.entry.js → p-2c543420.entry.js} +1 -1
- package/dist/twilight/{p-b7624eb6.entry.js → p-2e3a56de.entry.js} +1 -1
- package/dist/twilight/p-2e4064eb.entry.js +4 -0
- package/dist/twilight/{p-d56cb23a.entry.js → p-3153f560.entry.js} +1 -1
- package/dist/twilight/{p-977e3e76.entry.js → p-3a3815a2.entry.js} +1 -1
- package/dist/twilight/{p-0a38d353.entry.js → p-3cef6be2.entry.js} +1 -1
- package/dist/twilight/{p-3500065c.entry.js → p-3dd612a6.entry.js} +1 -1
- package/dist/twilight/{p-312e8678.entry.js → p-411c1ab0.entry.js} +1 -1
- package/dist/twilight/p-423d852d.entry.js +4 -0
- package/dist/twilight/{p-c500e5fe.entry.js → p-44a6598e.entry.js} +1 -1
- package/dist/twilight/{p-7f69cf5d.entry.js → p-51d83216.entry.js} +1 -1
- package/dist/twilight/{p-6a7eacbd.entry.js → p-51fb8841.entry.js} +1 -1
- package/dist/twilight/{p-2541db96.entry.js → p-56609a91.entry.js} +1 -1
- package/dist/twilight/{p-2591eead.entry.js → p-58c1bf51.entry.js} +1 -1
- package/dist/twilight/{p-6051a92c.entry.js → p-59a7ca2e.entry.js} +1 -1
- package/dist/twilight/{p-426acd77.entry.js → p-5a77257c.entry.js} +1 -1
- package/dist/twilight/{p-9e53d7a6.entry.js → p-5c4e2ed3.entry.js} +1 -1
- package/dist/twilight/{p-a0d39b81.entry.js → p-5f464161.entry.js} +1 -1
- package/dist/twilight/{p-d1a0bd97.entry.js → p-637670fa.entry.js} +1 -1
- package/dist/twilight/{p-81c88f97.entry.js → p-6605f258.entry.js} +1 -1
- package/dist/twilight/{p-3bd153c1.entry.js → p-665bc308.entry.js} +1 -1
- package/dist/twilight/{p-7cc8b82b.entry.js → p-6bfe12d5.entry.js} +1 -1
- package/dist/twilight/{p-cbcbc9f8.entry.js → p-6de608eb.entry.js} +1 -1
- package/dist/twilight/{p-e9d73e7d.entry.js → p-6f9bc285.entry.js} +1 -1
- package/dist/twilight/{p-6958e848.entry.js → p-70451662.entry.js} +1 -1
- package/dist/twilight/{p-45b97699.entry.js → p-7b0cf8a1.entry.js} +1 -1
- package/dist/twilight/{p-6f741b21.entry.js → p-7d08dcfb.entry.js} +1 -1
- package/dist/twilight/{p-01cae03e.entry.js → p-7d37b650.entry.js} +1 -1
- package/dist/twilight/{p-254e6e0c.entry.js → p-7f3e110c.entry.js} +1 -1
- package/dist/twilight/{p-5fe0908b.entry.js → p-80302c52.entry.js} +1 -1
- package/dist/twilight/{p-583a63e5.entry.js → p-806083b4.entry.js} +1 -1
- package/dist/twilight/{p-50816838.entry.js → p-84cff600.entry.js} +1 -1
- package/dist/twilight/{p-c9779211.entry.js → p-884104a3.entry.js} +1 -1
- package/dist/twilight/{p-34d33337.entry.js → p-898ce93b.entry.js} +1 -1
- package/dist/twilight/{p-dc86737c.entry.js → p-8a865d37.entry.js} +1 -1
- package/dist/twilight/{p-bc54fc8b.entry.js → p-8c750736.entry.js} +1 -1
- package/dist/twilight/{p-7f861ac0.entry.js → p-8fc2eb01.entry.js} +1 -1
- package/dist/twilight/{p-2af98444.entry.js → p-97fee81d.entry.js} +1 -1
- package/dist/twilight/{p-c9ba30cd.entry.js → p-9920bbad.entry.js} +1 -1
- package/dist/twilight/{p-24bd13b8.entry.js → p-99b9bf66.entry.js} +1 -1
- package/dist/twilight/{p-b0c86557.entry.js → p-9b4a0dd3.entry.js} +1 -1
- package/dist/twilight/{p-0f1981ee.entry.js → p-9e054110.entry.js} +1 -1
- package/dist/twilight/{p-a6lSRQK4.js → p-BAXTlrSC.js} +1 -1
- package/dist/twilight/p-BJxBnTgv.js +4 -0
- package/dist/twilight/{p-BokV7EHy.js → p-BWpg3MwW.js} +1 -1
- package/dist/twilight/{p-DNjWzZsK.js → p-C6WaobtY.js} +1 -1
- package/dist/twilight/{p-wx2L9ZB0.js → p-CvebbG3m.js} +1 -1
- package/dist/twilight/{p-CSuif4Xw.js → p-D5lNzFgl.js} +1 -1
- package/dist/twilight/{p-CfhebjBE.js → p-DGzNHmGp.js} +1 -1
- package/dist/twilight/{p-BG1dHHdm.js → p-DnrvXyI6.js} +1 -1
- package/dist/twilight/{p-DOF2UkI4.js → p-DpI1J-G1.js} +1 -1
- package/dist/twilight/{p-DWPp9ZjN.js → p-SguJQlDo.js} +1 -1
- package/dist/twilight/{p-DZHubgN5.js → p-_f6GlygH.js} +1 -1
- package/dist/twilight/{p-5d72b7d7.entry.js → p-a2d07dba.entry.js} +1 -1
- package/dist/twilight/{p-8271e127.entry.js → p-a73a785d.entry.js} +1 -1
- package/dist/twilight/{p-e155a1a6.entry.js → p-a79c04a2.entry.js} +1 -1
- package/dist/twilight/{p-3a113599.entry.js → p-a9fcdac5.entry.js} +1 -1
- package/dist/twilight/{p-f1a3cf9e.entry.js → p-ab3ad37f.entry.js} +1 -1
- package/dist/twilight/{p-10968d1c.entry.js → p-abc3e5d5.entry.js} +1 -1
- package/dist/twilight/{p-0f9bfeeb.entry.js → p-b356f3f6.entry.js} +1 -1
- package/dist/twilight/{p-2bf8f0ed.entry.js → p-b55fb51b.entry.js} +1 -1
- package/dist/twilight/{p-28875055.entry.js → p-bb35af04.entry.js} +1 -1
- package/dist/twilight/{p-3ff2b8b6.entry.js → p-bf845ea7.entry.js} +1 -1
- package/dist/twilight/{p-5b1a0560.entry.js → p-c2e871ae.entry.js} +1 -1
- package/dist/twilight/{p-004584f5.entry.js → p-c38fb150.entry.js} +1 -1
- package/dist/twilight/{p-7b373051.entry.js → p-c63ff8ef.entry.js} +1 -1
- package/dist/twilight/{p-63a315e1.entry.js → p-c90600b1.entry.js} +1 -1
- package/dist/twilight/{p-2c480419.entry.js → p-cc1b3318.entry.js} +1 -1
- package/dist/twilight/{p-44b8d453.entry.js → p-ce1d3ad9.entry.js} +1 -1
- package/dist/twilight/{p-ea1c06ab.entry.js → p-ce80fb8f.entry.js} +1 -1
- package/dist/twilight/{p-d7e5b860.entry.js → p-d3556d1f.entry.js} +1 -1
- package/dist/twilight/{p-ef037207.entry.js → p-d3cf9f8a.entry.js} +1 -1
- package/dist/twilight/{p-af99726d.entry.js → p-dd18ac5c.entry.js} +1 -1
- package/dist/twilight/p-dda4d231.entry.js +4 -0
- package/dist/twilight/{p-86ad5af2.entry.js → p-e0d834a7.entry.js} +1 -1
- package/dist/twilight/{p-71ecb477.entry.js → p-e4ff7a77.entry.js} +1 -1
- package/dist/twilight/{p-5ddd9aa0.entry.js → p-e66856c5.entry.js} +1 -1
- package/dist/twilight/{p-a47b910f.entry.js → p-e7c4d4cc.entry.js} +1 -1
- package/dist/twilight/{p-12ab7c1a.entry.js → p-e944f02a.entry.js} +1 -1
- package/dist/twilight/{p-21e6b2e7.entry.js → p-e95fd91e.entry.js} +1 -1
- package/dist/twilight/{p-55e0745e.entry.js → p-ea7846fd.entry.js} +1 -1
- package/dist/twilight/p-f0ca37fc.entry.js +4 -0
- package/dist/twilight/{p-96cac80e.entry.js → p-f2e13d28.entry.js} +1 -1
- package/dist/twilight/p-f514b9f5.entry.js +4 -0
- package/dist/twilight/p-fa6f2b27.entry.js +4 -0
- package/dist/twilight/{p-84599aa5.entry.js → p-faadae59.entry.js} +1 -1
- package/dist/twilight/{p-4bf58226.entry.js → p-fc500047.entry.js} +1 -1
- package/dist/twilight/p-fdc97278.entry.js +4 -0
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-bullet-delivery/interfaces.d.ts +6 -0
- package/dist/types/components/salla-bullet-delivery/salla-bullet-delivery.d.ts +25 -12
- package/dist/types/components/salla-cart-coupons/interfaces.d.ts +20 -0
- package/dist/types/components/salla-cart-coupons/salla-cart-coupons.d.ts +49 -1
- package/dist/types/components/salla-offer/salla-offer.d.ts +10 -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/dist/types/components.d.ts +2 -2
- package/package.json +5 -5
- package/dist/twilight/p-127f0000.entry.js +0 -4
- package/dist/twilight/p-25a4633f.entry.js +0 -4
- package/dist/twilight/p-3357d33a.entry.js +0 -4
- package/dist/twilight/p-338f727b.entry.js +0 -4
- package/dist/twilight/p-7a19ef45.entry.js +0 -4
- package/dist/twilight/p-8d30dbac.entry.js +0 -4
- package/dist/twilight/p-CV6uPJEJ.js +0 -4
- package/dist/twilight/p-a391b31d.entry.js +0 -4
- package/dist/twilight/p-eb11b8be.entry.js +0 -4
|
@@ -7,7 +7,6 @@ type ViewMode = "main" | "add-address";
|
|
|
7
7
|
export declare class SallaBulletDelivery {
|
|
8
8
|
private modal;
|
|
9
9
|
private confirmBtn;
|
|
10
|
-
private confirming;
|
|
11
10
|
private pendingCartSubmitResolver;
|
|
12
11
|
private pendingCartSubmitPromise;
|
|
13
12
|
private cartSubmitConfirmationPending;
|
|
@@ -30,6 +29,8 @@ export declare class SallaBulletDelivery {
|
|
|
30
29
|
private cartSubmittingHandler;
|
|
31
30
|
private useCartEventApi;
|
|
32
31
|
private authLoggedInHandler;
|
|
32
|
+
/** Re-entrancy latch for tryAutoConfirmAfterLogin(); a flaky/duplicate auth::logged.in must not double-save. */
|
|
33
|
+
private autoConfirmAfterLoginInFlight;
|
|
33
34
|
private authLoggedOutHandler;
|
|
34
35
|
private loginOpenHandler;
|
|
35
36
|
private hasExplicitPreselectedIdsForOpen;
|
|
@@ -72,7 +73,6 @@ export declare class SallaBulletDelivery {
|
|
|
72
73
|
loadingBranches: boolean;
|
|
73
74
|
loadingNearestBranch: boolean;
|
|
74
75
|
locationError: string;
|
|
75
|
-
savingAddress: boolean;
|
|
76
76
|
loadingSavedAddresses: boolean;
|
|
77
77
|
showCartWillBeClearedBanner: boolean;
|
|
78
78
|
countrySearchQuery: string;
|
|
@@ -98,10 +98,10 @@ export declare class SallaBulletDelivery {
|
|
|
98
98
|
addressToken: string | null;
|
|
99
99
|
loadingToken: boolean;
|
|
100
100
|
mapReady: boolean;
|
|
101
|
-
mapStep: 'map' | 'confirm';
|
|
102
101
|
addressDescription: string;
|
|
103
102
|
/** True while reverse-geocoding a map-click/geolocation pick (no place from the map component itself). */
|
|
104
103
|
reverseGeocoding: boolean;
|
|
104
|
+
confirming: boolean;
|
|
105
105
|
/**
|
|
106
106
|
* SA add-address view: 'confirmed' = selected address box + description + confirm, 'full' = all form fields (after Edit).
|
|
107
107
|
*/
|
|
@@ -134,9 +134,12 @@ export declare class SallaBulletDelivery {
|
|
|
134
134
|
*/
|
|
135
135
|
headerContextUpdate: EventEmitter<HeaderContextUpdateEvent>;
|
|
136
136
|
/**
|
|
137
|
-
* Opens the bullet delivery modal
|
|
137
|
+
* Opens the bullet delivery modal. Pass `silent: true` to run the same state/data
|
|
138
|
+
* loading below without showing the modal — used by tryAutoConfirmAfterLogin() so a
|
|
139
|
+
* successful auto-confirm never flashes the saved-addresses list; the caller is
|
|
140
|
+
* responsible for revealing the modal itself if it still needs the customer's input.
|
|
138
141
|
*/
|
|
139
|
-
open(): Promise<void>;
|
|
142
|
+
open(silent?: boolean): Promise<void>;
|
|
140
143
|
/**
|
|
141
144
|
* Closes the bullet delivery modal
|
|
142
145
|
*/
|
|
@@ -157,6 +160,14 @@ export declare class SallaBulletDelivery {
|
|
|
157
160
|
*/
|
|
158
161
|
private isIntentMethodSupported;
|
|
159
162
|
private hasCompleteIntentForLoggedInUser;
|
|
163
|
+
/**
|
|
164
|
+
* Auto-save + allocate a guest's pre-login address pick the moment auth::logged.in
|
|
165
|
+
* fires, instead of reopening the modal and waiting for another "Confirm" click
|
|
166
|
+
* (SHPD-9907). Guarded by hasIncompleteUserAddressIntent(), which only turns false
|
|
167
|
+
* once the intent gains an address_id — a durable guard even across a duplicate
|
|
168
|
+
* event, unlike `confirming` alone which resets after the redirect timeout.
|
|
169
|
+
*/
|
|
170
|
+
private tryAutoConfirmAfterLogin;
|
|
160
171
|
/**
|
|
161
172
|
* Authenticated users on the cart page must select/confirm an address before
|
|
162
173
|
* they can dismiss the modal.
|
|
@@ -217,6 +228,8 @@ export declare class SallaBulletDelivery {
|
|
|
217
228
|
*/
|
|
218
229
|
private handleAddNewAddress;
|
|
219
230
|
private handleBackToAddressList;
|
|
231
|
+
/** Whether there's a saved-addresses list (or a pending session intent) to go back to from the add-address view. */
|
|
232
|
+
private hasAddressesToGoBack;
|
|
220
233
|
private fetchAddressToken;
|
|
221
234
|
private handleMapLocationChanged;
|
|
222
235
|
/** Invalidate any reverse-geocode currently in flight — call whenever the map pick is abandoned
|
|
@@ -236,6 +249,8 @@ export declare class SallaBulletDelivery {
|
|
|
236
249
|
private canConfirmMapLocation;
|
|
237
250
|
private get isMapSettingEnabled();
|
|
238
251
|
private get isMapModeAvailable();
|
|
252
|
+
/** In map mode and a pin has already been dropped (as opposed to still using the dropdowns), regardless of login state. */
|
|
253
|
+
private get isMapPick();
|
|
239
254
|
/** Guest is in map mode and has already dropped a pin (as opposed to still using the dropdowns). */
|
|
240
255
|
private get isGuestMapPick();
|
|
241
256
|
/** Center shown before geolocation resolves — the customer's IP-based default (falls back to Riyadh). */
|
|
@@ -243,13 +258,11 @@ export declare class SallaBulletDelivery {
|
|
|
243
258
|
/** Parse a config coordinate to a finite number, treating blank/whitespace strings as missing. */
|
|
244
259
|
private toCoordinate;
|
|
245
260
|
/**
|
|
246
|
-
*
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Submit add-address form: create address via API then switch back to list.
|
|
261
|
+
* Submit add-address form: stage the picked address/dropdowns as the session intent,
|
|
262
|
+
* then delegate to handleConfirm() for the single save→allocate→close path (avoids
|
|
263
|
+
* a second, independently-maintained "save an address" implementation — see SHPD-9907).
|
|
251
264
|
*/
|
|
252
|
-
private
|
|
265
|
+
private handleSubmitNewAddress;
|
|
253
266
|
private handleTabChange;
|
|
254
267
|
private isConfirmDisabled;
|
|
255
268
|
private handleLogin;
|
|
@@ -347,7 +360,7 @@ export declare class SallaBulletDelivery {
|
|
|
347
360
|
private getPreparationTimeLabel;
|
|
348
361
|
private renderBranchList;
|
|
349
362
|
private renderPickupTab;
|
|
350
|
-
/** Add-address form: map
|
|
363
|
+
/** Add-address form: map + confirm card in one screen, or dropdown fallback. */
|
|
351
364
|
private renderAddAddressForm;
|
|
352
365
|
private renderFooter;
|
|
353
366
|
private renderMainView;
|
|
@@ -24,3 +24,23 @@ export interface Coupon {
|
|
|
24
24
|
/** Whether this coupon includes free shipping */
|
|
25
25
|
free_shipping?: number | boolean;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* One entry in the unified coupon list (CP-3695).
|
|
29
|
+
*
|
|
30
|
+
* The cart page used to render applied coupons as bare text chips AND checkout coupons as
|
|
31
|
+
* cards, so a coupon that was both showed up twice. This type is the join of the two: one
|
|
32
|
+
* row per code, carrying whether it is currently applied.
|
|
33
|
+
*
|
|
34
|
+
* `coupon` is null when the code is applied but has no card metadata — the cart payload
|
|
35
|
+
* sends applied coupons as plain strings (`CartResource`: `'coupons' => getCouponCodes()`),
|
|
36
|
+
* so a manually typed code, or one with `show_checkout_coupon = 0`, has no amount, expiry
|
|
37
|
+
* or minimum to render. Those show as a minimal code-only card.
|
|
38
|
+
*/
|
|
39
|
+
export interface MergedCoupon {
|
|
40
|
+
/** The coupon code — the join key between the applied set and the checkout-coupon list. */
|
|
41
|
+
code: string;
|
|
42
|
+
/** Card metadata from the checkout-coupons endpoint, or null for a metadata-less code. */
|
|
43
|
+
coupon: Coupon | null;
|
|
44
|
+
/** Whether this coupon is currently applied to the cart. */
|
|
45
|
+
applied: boolean;
|
|
46
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Coupon } from './interfaces';
|
|
1
|
+
import { Coupon, MergedCoupon } from './interfaces';
|
|
2
2
|
export declare class SallaCartCoupons {
|
|
3
3
|
host: HTMLElement;
|
|
4
4
|
availableCoupons: Coupon[];
|
|
@@ -10,6 +10,9 @@ export declare class SallaCartCoupons {
|
|
|
10
10
|
couponError: string;
|
|
11
11
|
isApplying: boolean;
|
|
12
12
|
appliedCoupons: string[];
|
|
13
|
+
mergedCoupons: MergedCoupon[];
|
|
14
|
+
appliedCouponCards: Coupon[];
|
|
15
|
+
private orderLocked;
|
|
13
16
|
multiCoupon: boolean;
|
|
14
17
|
private couponButtonRef;
|
|
15
18
|
private isHandlingInternalError;
|
|
@@ -59,6 +62,30 @@ export declare class SallaCartCoupons {
|
|
|
59
62
|
* Single-coupon (default): use the single `coupon` code.
|
|
60
63
|
*/
|
|
61
64
|
private syncAppliedFromCart;
|
|
65
|
+
/**
|
|
66
|
+
* CP-3695: rebuild the unified list from the two sources we already have in memory.
|
|
67
|
+
*
|
|
68
|
+
* Applied coupons come first, in the order the server sent them — `cart.coupons` is already
|
|
69
|
+
* sorted by source tier in `Cart::getCouponCodes()`, so we preserve it rather than re-sort.
|
|
70
|
+
* Unapplied checkout coupons follow in endpoint order.
|
|
71
|
+
*
|
|
72
|
+
* Pure and cheap: a Map build plus one pass over at most 15 coupons (the endpoint's LIMIT),
|
|
73
|
+
* with no network call of its own — both datasets are already loaded for the old two-list UI.
|
|
74
|
+
*/
|
|
75
|
+
private buildMergedCoupons;
|
|
76
|
+
/**
|
|
77
|
+
* Keep the positions the shopper is looking at, and fold in whatever changed:
|
|
78
|
+
* newly applied codes join at the FRONT (they were typed into the input, so no card the
|
|
79
|
+
* shopper could be reaching for moves), late-loading checkout coupons join at the BACK, and
|
|
80
|
+
* codes that went dead drop out.
|
|
81
|
+
*/
|
|
82
|
+
private mergeIntoLockedOrder;
|
|
83
|
+
/**
|
|
84
|
+
* Freeze the current card order. Called the moment the shopper acts on the list, so applying
|
|
85
|
+
* or removing recolours a card in place instead of sliding the row out from under them.
|
|
86
|
+
* Reset on every mount, which is where applied-first ordering is (re)established.
|
|
87
|
+
*/
|
|
88
|
+
private lockOrder;
|
|
62
89
|
private handleApplyClick;
|
|
63
90
|
private handleCouponButtonClick;
|
|
64
91
|
private removeCoupon;
|
|
@@ -67,6 +94,27 @@ export declare class SallaCartCoupons {
|
|
|
67
94
|
private applyCoupon;
|
|
68
95
|
private formatMainAmount;
|
|
69
96
|
private isEligible;
|
|
97
|
+
/**
|
|
98
|
+
* CP-3695: one card for one entry in the unified list — a checkout coupon, an applied coupon,
|
|
99
|
+
* or both. An applied card is not click-to-apply; only its إلغاء button acts on it.
|
|
100
|
+
*/
|
|
70
101
|
private renderCouponCard;
|
|
102
|
+
/**
|
|
103
|
+
* The applied footer: a "مُطبق" state label plus the إلغاء control that replaces the old
|
|
104
|
+
* chip's X. stopPropagation keeps the click off the card, which would otherwise re-apply.
|
|
105
|
+
*/
|
|
106
|
+
private renderAppliedAction;
|
|
107
|
+
/**
|
|
108
|
+
* Card for an applied code with no metadata (typed by hand, or show_checkout_coupon = 0):
|
|
109
|
+
* the code and the remove control, nothing invented. Always applied — an unapplied code
|
|
110
|
+
* with no offer behind it has nothing to show, so buildMergedCoupons drops it.
|
|
111
|
+
*/
|
|
112
|
+
private renderMinimalCard;
|
|
113
|
+
/**
|
|
114
|
+
* What the card row renders. Multi-coupon reads the unified list; single-coupon keeps its
|
|
115
|
+
* original behaviour by wrapping the raw checkout coupons as never-applied entries, so that
|
|
116
|
+
* path renders exactly the markup it did before CP-3695.
|
|
117
|
+
*/
|
|
118
|
+
private couponRow;
|
|
71
119
|
render(): any;
|
|
72
120
|
}
|
|
@@ -87,6 +87,16 @@ export declare class SallaOffer {
|
|
|
87
87
|
private renderOfferCard;
|
|
88
88
|
private getOfferIcon;
|
|
89
89
|
private renderDiscountTableOfferContent;
|
|
90
|
+
/**
|
|
91
|
+
* The minimum-purchase line for the offer types that have no conditions block
|
|
92
|
+
* of their own — BuyXGetY, SpecialPrice and Bank.
|
|
93
|
+
*
|
|
94
|
+
* Guarded on `min_spend` alone. This renders only the min-spend row, so the
|
|
95
|
+
* block-level guard used by renderPercentageOrFixedOfferContent (which gates
|
|
96
|
+
* three independently-rendered rows) does not apply here: borrowing it made
|
|
97
|
+
* any offer carrying just a `discount_value` print "a minimum of 0.00".
|
|
98
|
+
*/
|
|
99
|
+
private renderMinSpend;
|
|
90
100
|
private renderPercentageOrFixedOfferContent;
|
|
91
101
|
private groupDiscountsByRows;
|
|
92
102
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface Order {
|
|
2
2
|
id?: number;
|
|
3
3
|
reference_id?: number;
|
|
4
|
+
external_order_id?: string | number;
|
|
4
5
|
source?: string;
|
|
5
6
|
url?: string;
|
|
6
7
|
total?: Total;
|
|
@@ -59,4 +60,5 @@ export interface OrderQueryParameters {
|
|
|
59
60
|
tags?: Array<number>;
|
|
60
61
|
to_date?: string;
|
|
61
62
|
types?: Array<any>;
|
|
63
|
+
external_orders?: 0 | 1;
|
|
62
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Order, OrderQueryParameters } from './interface';
|
|
2
2
|
import type { Pagination } from '../../interfaces';
|
|
3
|
-
type OrdersFilter = 'all' | 'waiting';
|
|
3
|
+
type OrdersFilter = 'all' | 'archived' | 'waiting';
|
|
4
4
|
export declare class SallaOrder {
|
|
5
5
|
constructor();
|
|
6
6
|
/**
|
|
@@ -19,9 +19,11 @@ export declare class SallaOrder {
|
|
|
19
19
|
load_more_text_trans: any;
|
|
20
20
|
languageCode: string;
|
|
21
21
|
filterAllText: string;
|
|
22
|
+
filterArchivedText: string;
|
|
22
23
|
filterAwaitingReviewText: string;
|
|
23
24
|
leaveReviewText: string;
|
|
24
25
|
noUnratedOrdersText: string;
|
|
26
|
+
noArchivedOrdersText: string;
|
|
25
27
|
orders: Array<Order>;
|
|
26
28
|
pagination: Pagination;
|
|
27
29
|
hasInfiniteScroll: boolean;
|
|
@@ -39,6 +41,7 @@ export declare class SallaOrder {
|
|
|
39
41
|
private ratingModal;
|
|
40
42
|
private reviewPoints;
|
|
41
43
|
private filterGeneration;
|
|
44
|
+
private showExternalOrders;
|
|
42
45
|
private setLoadMoreLoading;
|
|
43
46
|
private refreshReviewLabels;
|
|
44
47
|
private setupLoyalty;
|
|
@@ -63,6 +66,7 @@ export declare class SallaOrder {
|
|
|
63
66
|
private renderTableHead;
|
|
64
67
|
private renderSkeletonRow;
|
|
65
68
|
private renderSkeletonRows;
|
|
69
|
+
private getEmptyFilterText;
|
|
66
70
|
private renderFilters;
|
|
67
71
|
private renderBanner;
|
|
68
72
|
render(): any;
|
|
@@ -356,9 +356,9 @@ export namespace Components {
|
|
|
356
356
|
*/
|
|
357
357
|
"close": () => Promise<HTMLElement>;
|
|
358
358
|
/**
|
|
359
|
-
* Opens the bullet delivery modal
|
|
359
|
+
* Opens the bullet delivery modal. Pass `silent: true` to run the same state/data loading below without showing the modal — used by tryAutoConfirmAfterLogin() so a successful auto-confirm never flashes the saved-addresses list; the caller is responsible for revealing the modal itself if it still needs the customer's input.
|
|
360
360
|
*/
|
|
361
|
-
"open": () => Promise<void>;
|
|
361
|
+
"open": (silent?: boolean) => Promise<void>;
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
364
|
* @name SallaBulletDeliveryTag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight-components",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.577",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"author": "Salla Team <support@salla.dev> (https://salla.dev)",
|
|
6
6
|
"bugs": {
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@googlemaps/markerclusterer": "2.6.2",
|
|
85
|
-
"@salla.sa/applepay": "2.14.
|
|
86
|
-
"@salla.sa/twilight": "2.14.
|
|
87
|
-
"@salla.sa/twilight-tailwind-theme": "2.14.
|
|
85
|
+
"@salla.sa/applepay": "2.14.577",
|
|
86
|
+
"@salla.sa/twilight": "2.14.577",
|
|
87
|
+
"@salla.sa/twilight-tailwind-theme": "2.14.577",
|
|
88
88
|
"@salla.sa/ui-address-autocomplete-widget": "1.2.1",
|
|
89
89
|
"@salla.sa/ui-google-map-render": "1.2.1",
|
|
90
90
|
"@types/node": "^20.4.8",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"vanilla-lazyload": "^17.8.5",
|
|
106
106
|
"vanilla-picker": "^2.12.2"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "f3119af4c3141cc1673060c432e8f4e360edb5fc"
|
|
109
109
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,a as i}from"./p-a6lSRQK4.js";const d=class{constructor(t){e(this,t),this.hasError=!1,salla.event.on("size-guide::open",(e=>this.open(e))),salla.lang.onLoaded((()=>{this.placeholder_title=salla.lang.get("pages.products.size_guide_placeholder"),this.placeholder_description=salla.lang.get("pages.products.size_guide_placeholder_info"),this.modal_title=salla.lang.get("pages.products.size_guides")}))}async open(e){return this.modal.setTitle(this.modal_title),this.modal.open(),await salla.api.withoutNotifier((()=>salla.product.getSizeGuides(e))).then((e=>{this.guides=e.data})).catch((e=>{console.log(e),this.hasError=!0,this.placeholder_description=e.response?.data?.error?.message||e.response?.data})).finally((()=>this.modal.stopLoading()))}async close(){return this.modal.close()}showPlaceholder(){return t("salla-placeholder",{alignment:"center",iconSize:"xl"},t("div",{slot:"title"},this.placeholder_title),t("div",{slot:"description"},this.placeholder_description))}render(){return t("salla-modal",{key:"821a0f8c890f62c278f2c6fbb0081c58074134fa",class:"s-product-size-guide-wrapper",id:"salla-product-size-guide-modal",isLoading:!0,"has-skeleton":!0,width:"md",ref:e=>this.modal=e},t("span",{key:"54972cbc6899d788b3543f882d3f3cf0c6a50071",slot:"icon",class:"s-product-size-guide-header-icon",innerHTML:'\x3c!-- Generated by IcoMoon.io --\x3e\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n<title>pencil-ruler</title>\n<path d="M3.057 11.609c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391l6.667-6.667c0.521-0.521 0.521-1.364 0-1.885l-1.285-1.285c-1.143-1.143-2.661-1.772-4.276-1.772-1.616 0-3.135 0.629-4.276 1.772-1.143 1.141-1.772 2.66-1.772 4.276 0 1.615 0.629 3.135 1.772 4.276zM3.657 3.657c1.277-1.277 3.504-1.277 4.781 0l0.343 0.343-4.781 4.781-0.343-0.343c-0.639-0.639-0.991-1.488-0.991-2.391s0.352-1.752 0.991-2.391zM29.317 20.972c-0.2-0.707-0.932-1.119-1.645-0.921-0.709 0.2-1.121 0.937-0.921 1.645l1.987 7.041-7.041-1.987c-0.707-0.195-1.444 0.213-1.645 0.921-0.2 0.708 0.212 1.445 0.921 1.645l9.333 2.633c0.119 0.032 0.24 0.049 0.361 0.049 0.349 0 0.689-0.137 0.943-0.391 0.341-0.341 0.472-0.84 0.34-1.305zM31.609 8.772l-8.381-8.381c-0.5-0.5-1.385-0.5-1.885 0l-8.171 8.171s-0.001 0-0.001 0.001 0 0.001-0.001 0.001l-4.607 4.607s0 0-0.001 0 0 0 0 0.001l-8.171 8.171c-0.251 0.249-0.391 0.588-0.391 0.943 0 0.353 0.14 0.693 0.391 0.943l8.381 8.381c0.249 0.251 0.589 0.391 0.943 0.391s0.693-0.14 0.943-0.391l20.952-20.952c0.521-0.521 0.521-1.365 0-1.885zM9.715 28.781l-6.495-6.496 1.676-1.676 1.851 1.851c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885l-1.851-1.851 2.724-2.724 3.008 3.008c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.364 0-1.885l-3.008-3.008 2.724-2.724 1.851 1.851c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.52 0.521-1.364 0-1.885l-1.851-1.851 2.724-2.724 3.008 3.008c0.26 0.26 0.601 0.391 0.943 0.391s0.683-0.131 0.943-0.391c0.521-0.521 0.521-1.365 0-1.885l-3.008-3.008 1.677-1.677 6.496 6.496z"></path>\n</svg>\n'}),t("div",{key:"251eca54b49ccd504cec94371103d52db3dceae5",slot:"loading"},t("div",{key:"65563fe5e6114cdc1958b6acfc23338f87629ee9",class:"s-product-size-guide-skeleton"},t("salla-skeleton",{key:"66c8da1a0ca4ff7bb48b7274135de2a79c08cf69",height:"15px",width:"25%"}),t("div",{key:"33f7ec9dc4d1749bebdd8d1765b63b04f13473f3",class:"s-product-size-guide-skeleton-header"},t("salla-skeleton",{key:"1f1e52c77826df60eae9c814d0db6dfa22976495",height:"40px"}),t("salla-skeleton",{key:"608fc344f8b06e23776fac615b49730f5934baec",height:"40px"}),t("salla-skeleton",{key:"876f24fb4e06b8bd094ca9bc18c55e196b388201",height:"40px"}),t("salla-skeleton",{key:"d3f0c5baad4e0d940b3a30598353629dd199cd38",height:"40px"})),t("div",{key:"f492afd9c329add253c60c8692173288437213d8",class:"s-product-size-guide-skeleton-content"},t("salla-skeleton",{key:"7246853ccd94c5de70dac399593cf3dd64ae85de",height:"15px",width:"25%"}),t("salla-skeleton",{key:"5b314c2a99a4437891a7fcaf4d01a29597a03422",height:"10px",width:"75%"}),t("salla-skeleton",{key:"4cde9368235a5f355d3ce4c28642cb3f29716880",height:"10px",width:"50%"}),t("salla-skeleton",{key:"fb7be5927efc29a993049632dde462e5e329d74b",height:"10px",width:"75%"}),t("salla-skeleton",{key:"945f9901fdd6b681c28b80f3a7b9c253c5063424",height:"10px",width:"100%"}),t("salla-skeleton",{key:"991f7e304524d0acc6c8eab5dfef4be75eee7655",height:"10px",width:"25%"}),t("salla-skeleton",{key:"9d2c66c90b20abd0984ea2ef3ced2f9dbe3479c2",height:"10px",width:"60%"}),t("salla-skeleton",{key:"0943d7f53030e26034e01c89c8edf1cfd76a87ab",height:"10px",width:"45%"}),t("salla-skeleton",{key:"683502d6f44eb68fe7ba7f9b54df456b725bd126",height:"10px",width:"30%"})))),t("slot",{key:"bf50073356c49df10842635491e2606321faaa50",name:"header"}),!this.hasError&&this.guides?[t("salla-tabs",null,this.guides.map((e=>t("salla-tab-header",{slot:"header",name:e.name},t("span",null,e.name)))),this.guides.map((e=>t("salla-tab-content",{slot:"content",name:e.name},t("div",{innerHTML:e.description})))))]:this.showPlaceholder(),t("slot",{key:"2f357ddc66624cb7c05324ed9fb8c1164b39eda1",name:"footer"}))}get host(){return i(this)}};d.style='/*!twlt*/.s-product-size-guide-wrapper .s-modal-title{margin-bottom:0px !important}.s-product-size-guide-wrapper .s-tabs-content{max-height:60vh;overflow:auto}@media (min-width: 768px){.s-product-size-guide-wrapper .s-tabs-content{max-height:70vh}}.s-product-size-guide-placeholder{display:flex;align-items:center;justify-content:center}.s-product-size-guide-skeleton-table{margin-top:1.25rem;width:100%;border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));line-height:1.25rem}.s-product-size-guide-skeleton-table td{border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));padding:0.5rem;line-height:1.25rem}.s-product-size-guide-header-icon{display:inline-flex;height:3rem;width:3rem;align-items:center;justify-content:center;border-radius:9999px;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}@media (min-width: 640px){.s-product-size-guide-header-icon{margin-left:auto;margin-right:auto;margin-bottom:1rem;height:5rem;width:5rem}}.s-product-size-guide-header-icon:where([dir="ltr"],[dir="ltr"] *){margin-right:0.5rem}@media (min-width: 640px){.s-product-size-guide-header-icon:where([dir="ltr"],[dir="ltr"] *){margin-right:0px}}.s-product-size-guide-header-icon:where([dir="rtl"],[dir="rtl"] *){margin-left:0.5rem}@media (min-width: 640px){.s-product-size-guide-header-icon:where([dir="rtl"],[dir="rtl"] *){margin-left:0px}}.s-product-size-guide-header-icon svg{height:1.25rem;width:1.25rem;flex-shrink:0;fill:#9ca3af}.s-product-size-guide-skeleton-content{margin-top:1.25rem;display:flex;flex-direction:column}.s-product-size-guide-skeleton-content>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.75rem * var(--tw-space-y-reverse))}.s-product-size-guide-skeleton-header{margin-top:2rem;margin-bottom:2rem;display:flex;align-items:center;justify-content:space-between}.s-product-size-guide-skeleton-header>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.s-product-size-guide-skeleton-header:where([dir="rtl"],[dir="rtl"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-product-size-guide-skeleton-header>salla-skeleton{flex:1 1 0%}';export{d as salla_product_size_guide}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,c as a,h as t,H as s}from"./p-a6lSRQK4.js";const i=class{constructor(t){e(this,t),this.prizeItemSelected=a(this,"prizeItemSelected")}onPrizeItemClick(){this.prizeItemSelected.emit(this.item)}render(){return t(s,{key:"724a0c9a5eb5ab0cbbb81d3b194c63a34b148b67"},t("div",{key:"24b8d96839f0d7a1283c8ebc846e2f6e18c73392",onClick:this.onPrizeItemClick.bind(this)},t("img",{key:"9ec616036357b854dea86d0c873c94911c3a334c",class:"s-loyalty-prize-item-image",src:this.item.image,alt:this.item.name}),t("div",{key:"6f3cfa5be119aa228b4527de9e03ec53a82f23b1",class:"s-loyalty-prize-item-title"},this.item.name),t("div",{key:"1ca0f8da846e6d4710f6854439df82c752775601",class:"s-loyalty-prize-item-subtitle"},this.item.description),t("div",{key:"3a8ee66428e89e9a70f5a78f20811623e5f7018e",class:"s-loyalty-prize-item-points"},this.item.cost_points," ",salla.lang.get("pages.loyalty_program.point"))))}};i.style="salla-loyalty-prize-item:hover{box-shadow:0 5px 15px 1px rgba(0, 0, 0, 0.04) !important}";export{i as salla_loyalty_prize_item}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Crafted with ❤ by Salla
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,h as r}from"./p-a6lSRQK4.js";import{H as e}from"./p-CbVZf-Q4.js";import"./p-CgtvEd63.js";const o="waiting",s="tab",i={"pages.orders.filter_all":{ar:"الكل",en:"All"},"pages.orders.filter_awaiting_review":{ar:"بانتظار تقييمك",en:"Awaiting your review"},"pages.orders.leave_review":{ar:"أضف تقييمك",en:"Add review"},"pages.orders.no_unrated_orders":{ar:"لا توجد طلبات غير مقيَّمة",en:"No unrated orders"},"pages.orders.review_banner":{ar:"لديك طلبات بانتظار تقييمك. شارك رأيك وساعدنا على تحسين تجربتك.",en:"You have orders awaiting your review. Share your feedback and help us improve your experience."},"pages.orders.review_banner_with_points":{ar:"لديك طلبات بانتظار تقييمك. قيِّمها واحصل على ما يصل إلى {{points}} نقطة ولاء.",en:"You have orders awaiting your review. Rate them and earn up to {{points}} loyalty points."}},a=class{constructor(r){t(this,r),this.orderNumberText=salla.lang.get("pages.thank_you.order_id"),this.totalOrderText=salla.lang.get("pages.orders.total"),this.orderDateText=salla.lang.get("pages.orders.date"),this.orderStatusText=salla.lang.get("pages.orders.status"),this.noOrderText=salla.lang.get("pages.orders.non_orders"),this.load_more_text_trans=salla.lang.get("common.elements.load_more"),this.languageCode=salla.lang.locale,this.filterAllText=salla.lang.getWithDefault("pages.orders.filter_all","الكل"),this.filterAwaitingReviewText=salla.lang.getWithDefault("pages.orders.filter_awaiting_review","بانتظار تقييمك"),this.leaveReviewText=salla.lang.getWithDefault("pages.orders.leave_review","شارك تقييمك"),this.noUnratedOrdersText=salla.lang.getWithDefault("pages.orders.no_unrated_orders","لا توجد طلبات غير مقيَّمة"),this.orders=[],this.nextPage=null,this.activeFilter="waiting"===new URLSearchParams(window.location.search).get(s)?"waiting":"all",this.pendingReviewCount=0,this.emptyFilterResult=!1,this.isFetching=!1,this.reviewPoints=0,this.filterGeneration=0,salla.lang.onLoaded((()=>{this.languageCode=salla.lang.locale,this.orderNumberText=salla.lang.get("pages.thank_you.order_id"),this.totalOrderText=salla.lang.get("pages.orders.total"),this.orderDateText=salla.lang.get("pages.orders.date"),this.orderStatusText=salla.lang.get("pages.orders.status"),this.noOrderText=salla.lang.get("pages.orders.non_orders"),this.load_more_text_trans=salla.lang.get("common.elements.load_more")}))}setLoadMoreLoading(t=!0){const r=this.status?.querySelector(".s-button-text");r&&this.btnLoader&&(e.toggleElementClassIf(r,"s-button-hide","s-button-show",(()=>t)),this.btnLoader.style.display=t?"inherit":"none")}refreshReviewLabels(){this.filterAllText=salla.lang.getWithDefault("pages.orders.filter_all","الكل"),this.filterAwaitingReviewText=salla.lang.getWithDefault("pages.orders.filter_awaiting_review","بانتظار تقييمك"),this.leaveReviewText=salla.lang.getWithDefault("pages.orders.leave_review","شارك تقييمك"),this.noUnratedOrdersText=salla.lang.getWithDefault("pages.orders.no_unrated_orders","لا توجد طلبات غير مقيَّمة")}setupLoyalty(){const t=!!salla.config.get("store.settings.rating.can_rate_product"),r=!!salla.config.get("store.settings.rating.can_rate_shipping"),e=!!salla.config.get("store.settings.rating.can_rate_store"),o=!!salla.config.get("store.settings.rating.allow_attach_images")||!!salla.config.get("store.settings.rating.allow_attach_videos"),s=Number(salla.config.get("store.settings.rating.rating_product_points"))||0,i=Number(salla.config.get("store.settings.rating.rating_product_with_image_points"))||0,a=Number(salla.config.get("store.settings.rating.rating_shipping_company_points"))||0,n=Number(salla.config.get("store.settings.rating.rating_store_points"))||0;this.reviewPoints=0,t&&(this.reviewPoints+=s),r&&(this.reviewPoints+=a),e&&(this.reviewPoints+=n),o&&(this.reviewPoints+=i)}formatNumber(t){return salla.helpers?.number?salla.helpers.number(t):String(t)}getBannerText(){const t=this.reviewPoints>0,r="pages.orders.review_banner"+(t?"_with_points":"");let e=salla.lang.getWithDefault(r,i[r]?.ar||"");return t&&(e=e.replace("{{points}}",this.formatNumber(this.reviewPoints))),e}isEligibleForReview(t){return!t.is_rated&&!1!==t.can_rate}async openReviewModal(t){this.ratingModal&&t&&(await this.ratingModal.setOrder(t),await this.ratingModal.open())}switchFilter(t){this.isFetching||this.activeFilter===t||(this.activeFilter=t,this.syncFilterToSearchParams(t),this.fetchOrders(t))}syncFilterToSearchParams(t){const r=new URL(window.location.href);"all"===t?r.searchParams.delete(s):r.searchParams.set(s,t),window.history.replaceState(window.history.state,"",r)}initiateInfiniteScroll(){if(!this.hasInfiniteScroll)return;if(!this.ordersTableBody)return void salla.logger.error("Orders table body is undefined. Cannot initiate infinite scroll.");const t=this.filterGeneration;this.infiniteScroll=salla.infiniteScroll.initiate(this.ordersTableBody,this.ordersTableBody,{path:()=>this.nextPage,history:!1,nextPage:this.nextPage,scrollThreshold:!1},!0),this.infiniteScroll?.on("request",(()=>{this.setLoadMoreLoading()})),this.infiniteScroll?.on("load",(r=>{if(t===this.filterGeneration){this.setLoadMoreLoading(!1),this.pagination=r.pagination,this.nextPage=r.pagination?.links?.next||null;for(const t of this.createOrderRows(r.data))this.ordersTableBody.append(t);this.orders=[...this.orders,...r.data],e.animateItems(this.ordersTableBody.querySelectorAll(".s-orders-table-tbody-tr:not(.animated)"))}})),this.infiniteScroll?.on("error",(t=>{salla.logger.error("Error loading more comments:",t)}))}async loadMore(){this.infiniteScroll.loadNextPage()}createOrderRows(t){return t.map((t=>this.getSingleOrderItem(t)))}async loadPendingReviewCount(){try{const t=await salla.order.api.fetch({...this.params,format:"light",types:[""],feedback_status:o,per_page:1});this.pendingReviewCount=t.pagination?.count??0}catch(t){this.pendingReviewCount=0,salla.logger.error(t)}}populateOrdersTableIfEmpty(){if(this.ordersTableBody&&this.orders.length&&!this.ordersTableBody.children.length){for(const t of this.createOrderRows(this.orders))this.ordersTableBody.append(t);this.infiniteScroll||this.initiateInfiniteScroll(),e.animateItems(this.ordersTableBody.querySelectorAll(".s-orders-table-tbody-tr:not(.animated)"))}}async fetchOrders(t){if(this.isFetching)return;this.setLoadMoreLoading(!1),this.isFetching=!0,this.wrapper&&(this.wrapper.innerHTML=""),this.filterGeneration++;const r="waiting"===t?o:null;try{const e=await salla.order.api.fetch({...this.params,format:"light",types:[""],feedback_status:r});if(this.orders=e.data,this.hasInfiniteScroll=!!e.pagination?.links.next,this.pagination=e.pagination,this.total=e.pagination?.count,this.nextPage=e.pagination?.links?.next||null,this.infiniteScroll?.destroy?.(),this.infiniteScroll=null,"waiting"===t&&(this.pendingReviewCount=e.pagination?.count??0),!this.orders.length)return this.setLoadMoreLoading(!1),this.emptyFilterResult="waiting"===t,void(this.showPlaceholder="waiting"!==t);this.showPlaceholder=!1,this.emptyFilterResult=!1,this.ordersTableBody&&(this.ordersTableBody.innerHTML="")}catch(t){this.showPlaceholder=!0,this.setLoadMoreLoading(!1),salla.logger.error(t)}finally{this.isFetching=!1}}getSingleOrderItem(t){const r=t.reference_id??"",o=document.createElement("tr");o.classList.add("s-orders-table-tbody-tr","s-orders-table-tbody-tr-shadow");const s=document.createElement("td");s.classList.add("s-orders-table-tbody-tr-td");const i=document.createElement("div");i.classList.add("s-orders-table-tbody-tr-td-content");const a=document.createElement("span");a.classList.add("s-orders-mobile-title"),a.textContent=`${this.orderNumberText}:`;const n=document.createElement("span");if(n.classList.add("s-orders-reference-id"),n.textContent=`#${r}`,i.appendChild(a),i.appendChild(n),"buy_as_gift"===t.source){const t=document.createElement("i");t.classList.add("sicon-gift-sharing","s-orders-buy-as-gift-icon"),i.appendChild(t)}const l=document.createElement("a");t.url&&(l.href=t.url),i.appendChild(l);const d=document.createElement("div");d.classList.add("s-orders-copy-to-clipboard-button");const c=document.createElement("salla-button");c.classList.add("relative"),c.setAttribute("color","dark"),c.setAttribute("shape","link"),c.dataset.content=String(r),c.addEventListener("click",(t=>{e.copyToClipboard(t),e.toggleElementClassIf(c,"copied","code-to-copy",(()=>!0)),setTimeout((()=>{e.toggleElementClassIf(c,"code-to-copy","copied",(()=>!0))}),1e3)}));const h=document.createElement("span");h.textContent="#"+r;const p=document.createElement("i");p.classList.add("sicon-swap-stroke","s-orders-copy-to-clipboard-button-icon");let b=salla.config.get("theme.is_rtl",!0);b?(c.appendChild(p),c.appendChild(h)):(c.appendChild(h),c.appendChild(p)),d.appendChild(c),i.appendChild(d),s.appendChild(i),o.appendChild(s);const m=document.createElement("td");m.classList.add("s-orders-table-tbody-tr-td");const g=document.createElement("div");g.classList.add("s-orders-table-tbody-tr-td-content");const w=document.createElement("span");w.classList.add("s-orders-mobile-title"),w.textContent=`${this.orderStatusText}:`;const u=document.createElement("span");if(u.classList.add("s-orders-status-container"),t.status?.color&&(u.style.color=t.status.color),t.status?.icon){const r=document.createElement("i");r.classList.add(t.status.icon),u.appendChild(r)}const y=document.createElement("span");y.textContent=t.status?.name??"",u.appendChild(y),g.appendChild(w),g.appendChild(u);const f=document.createElement("a");t.url&&(f.href=t.url),g.appendChild(f),m.appendChild(g),o.appendChild(m);const v=document.createElement("td");v.classList.add("s-orders-table-tbody-tr-td");const x=document.createElement("div");x.classList.add("s-orders-table-tbody-tr-td-content");const k=document.createElement("span");k.classList.add("s-orders-mobile-title"),k.textContent=`${this.totalOrderText}:`;const _=document.createElement("div");_.innerHTML=salla.money(t.total);const C=document.createElement("a");t.url&&(C.href=t.url),x.appendChild(k),x.appendChild(_),x.appendChild(C),v.appendChild(x),o.appendChild(v);const z=document.createElement("td");z.classList.add("s-orders-table-tbody-tr-td");const j=document.createElement("div");j.classList.add("s-orders-table-tbody-tr-td-content");const R=document.createElement("span");R.classList.add("s-orders-mobile-title"),R.textContent=`${this.orderDateText}:`;const L=document.createElement("div");L.textContent=e.formatDateFromString(t.created_at?.date??"",salla.helpers.number,this.languageCode);const H=document.createElement("a");t.url&&(H.href=t.url),j.appendChild(R),j.appendChild(L),j.appendChild(H),z.appendChild(j),o.appendChild(z);const S=document.createElement("td");S.classList.add("s-orders-table-tbody-tr-td");const M=document.createElement("div");if(M.classList.add("s-orders-table-tbody-tr-td-content","s-orders-action-cell"),t.is_rated){const t=document.createElement("i");M.appendChild(t)}else if(this.isEligibleForReview(t)){const r=document.createElement("salla-button");r.classList.add("relative","s-orders-leave-review-btn"),r.setAttribute("color","primary"),r.setAttribute("fill","outline"),r.setAttribute("size","small");const e=document.createElement("i");e.classList.add("sicon-star-o","s-orders-review-star-icon");const o=document.createElement("span");o.textContent=this.leaveReviewText,b?(r.appendChild(e),r.appendChild(o)):(r.appendChild(o),r.appendChild(e)),r.addEventListener("click",(r=>{r.preventDefault(),r.stopPropagation(),this.openReviewModal(t.id)})),M.appendChild(r)}return S.appendChild(M),o.appendChild(S),o}renderTableHead(){return r("thead",{class:"s-orders-table-head"},r("tr",{class:"s-orders-table-head-tr"},r("th",{class:"s-orders-table-head-tr-th",scope:"col"},this.orderNumberText),r("th",{class:"s-orders-table-head-tr-th",scope:"col"},this.orderStatusText),r("th",{class:"s-orders-table-head-tr-th",scope:"col"},this.totalOrderText),r("th",{class:"s-orders-table-head-tr-th",scope:"col"},this.orderDateText),r("th",{class:"s-orders-table-head-tr-th",scope:"col"})))}renderSkeletonRow(t){return r("tr",{class:"s-orders-table-tbody-tr s-orders-table-tbody-tr-skeleton",key:`skeleton-${t}`},r("td",{class:"s-orders-table-tbody-tr-td"},r("div",{class:"s-orders-table-tbody-tr-td-content"},r("salla-skeleton",{height:"14px",width:"90px"}))),r("td",{class:"s-orders-table-tbody-tr-td"},r("div",{class:"s-orders-table-tbody-tr-td-content"},r("salla-skeleton",{height:"14px",width:"70px"}))),r("td",{class:"s-orders-table-tbody-tr-td"},r("div",{class:"s-orders-table-tbody-tr-td-content"},r("salla-skeleton",{height:"14px",width:"60px"}))),r("td",{class:"s-orders-table-tbody-tr-td"},r("div",{class:"s-orders-table-tbody-tr-td-content"},r("salla-skeleton",{height:"14px",width:"80px"}))),r("td",{class:"s-orders-table-tbody-tr-td"},r("div",{class:"s-orders-table-tbody-tr-td-content s-orders-action-cell"},r("salla-skeleton",{height:"32px",width:"90px"}))))}renderSkeletonRows(t=5){return Array.from({length:t},((t,r)=>this.renderSkeletonRow(r)))}renderFilters(){return r("div",{class:"s-orders-filters"},r("salla-button",{size:"small",color:"all"===this.activeFilter?"primary":"light",fill:"outline",onClick:()=>this.switchFilter("all"),enableLoader:!1},this.filterAllText),r("salla-button",{size:"small",color:"waiting"===this.activeFilter?"primary":"light",fill:"outline",onClick:()=>this.switchFilter("waiting"),enableLoader:!1},this.filterAwaitingReviewText))}renderBanner(){return this.pendingReviewCount?r("div",{class:"s-orders-banner"},r("span",{class:"s-orders-banner-icon"},r("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r("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"}))),r("p",{class:"s-orders-banner-text"},this.getBannerText())):null}render(){return this.showPlaceholder?r("div",{class:"s-orders-no-content"},r("i",{class:"sicon-packed-box icon"}),r("p",null,this.noOrderText)):r("div",{class:"s-orders-wrapper"},this.renderBanner(),this.renderFilters(),r("div",{class:"s-orders-list-wrapper"},this.isFetching?r("table",{class:"s-orders-table s-orders-table-skeleton"},this.renderTableHead(),r("tbody",{class:"s-orders-table-tbody"},this.renderSkeletonRows())):this.emptyFilterResult?r("div",{class:"s-orders-no-content"},r("i",{class:"sicon-packed-box icon"}),r("p",null,this.noUnratedOrdersText)):r("table",{class:"s-orders-table"},this.renderTableHead(),r("tbody",{class:"s-orders-table-tbody",ref:t=>this.ordersTableBody=t}))),this.nextPage&&!this.emptyFilterResult&&r("div",{class:"s-infinite-scroll-wrapper",ref:t=>this.status=t},r("button",{type:"button",onClick:()=>this.loadMore(),class:"s-infinite-scroll-btn s-button-btn s-button-primary"},r("span",{class:"s-button-text s-infinite-scroll-btn-text"},this.loadMoreText??this.load_more_text_trans),r("span",{class:"s-button-loader s-button-loader-center s-infinite-scroll-btn-loader",ref:t=>this.btnLoader=t,style:{display:"none"}}))),r("salla-rating-modal",{ref:t=>this.ratingModal=t}))}componentDidRender(){this.populateOrdersTableIfEmpty()}componentWillLoad(){return salla.lang.onLoaded((()=>{salla.lang.addBulk(i),this.refreshReviewLabels()})),salla.onReady().then((()=>{this.setupLoyalty();const t=[this.fetchOrders(this.activeFilter)];return"waiting"!==this.activeFilter&&t.push(this.loadPendingReviewCount()),Promise.all(t)}))}};a.style='/*!twlt*/:host{display:block}.s-orders-banner{display:flex;align-items:center;gap:0.625rem;width:100%;margin-top:1.5rem;margin-bottom:0.75rem;padding:0.75rem;border-radius:0.5rem;background-color:#E6F4EA}.s-orders-banner-icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;color:#1B7F5C}.s-orders-banner-icon svg{width:1.5rem;height:1.5rem;fill:currentColor}.s-orders-banner-text{flex:1;margin:0;font-size:0.875rem;line-height:1.25rem;color:#1f2937}.s-orders-action-cell.s-orders-action-cell{display:flex;align-items:center;justify-content:flex-end}.s-orders-leave-review-btn .s-button-text{display:flex;align-items:center;gap:0.375rem}.s-orders-action-cell .s-orders-status-rated{margin-inline-start:auto}.relative{position:relative}.table{display:table}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:\'\';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-orders-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-orders-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-orders-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-orders-mobile-title{display:none}}.s-orders-reference-id{display:none}@media (min-width: 768px){.s-orders-reference-id{display:inline-block}}.s-orders-buy-as-gift-icon{margin-left:0.25rem;margin-right:0.25rem;display:inline-block;color:var(--color-primary)}.s-orders-copy-to-clipboard-button{display:flex;align-items:center}@media (min-width: 768px){.s-orders-copy-to-clipboard-button{display:none}}.s-orders-copy-to-clipboard-button salla-button{position:relative}.s-orders-copy-to-clipboard-button-icon{pointer-events:none;font-size:0.75rem;line-height:1rem}.s-orders-copy-to-clipboard-button-icon:where([dir="ltr"],[dir="ltr"] *){margin-left:0.25rem}.s-orders-copy-to-clipboard-button-icon:where([dir="rtl"],[dir="rtl"] *){margin-right:0.25rem}@media (min-width: 768px){.s-orders-status-container{margin-left:0px;margin-right:0px}}.s-orders-status-container:where([dir="ltr"],[dir="ltr"] *){margin-left:auto}.s-orders-status-container:where([dir="rtl"],[dir="rtl"] *){margin-right:auto}.s-orders-status-container i{margin-top:0.25rem}.s-orders-status-container i:where([dir="ltr"],[dir="ltr"] *){margin-right:0.25rem}.s-orders-status-container i:where([dir="rtl"],[dir="rtl"] *){margin-left:0.25rem}.s-orders-status-rated{font-size:1.125rem;line-height:1.75rem}.s-orders-status-rated:where([dir="ltr"],[dir="ltr"] *){margin-left:1rem}.s-orders-status-rated:where([dir="rtl"],[dir="rtl"] *){margin-right:1rem}.s-orders-rated-text{--tw-text-opacity:1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.s-orders-unrated-text{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.s-orders-leave-review-btn{display:inline-flex;flex-shrink:0;align-items:center;gap:0.25rem;font-weight:700;color:var(--color-primary);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-orders-leave-review-btn:hover{opacity:0.7}.s-orders-leave-review-btn:where([dir="ltr"],[dir="ltr"] *){margin-left:1rem}.s-orders-leave-review-btn:where([dir="rtl"],[dir="rtl"] *){margin-right:1rem}.s-orders-review-star-icon{font-size:1.125rem;line-height:1.75rem}.s-orders-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-orders-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-orders-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-orders-filters{margin-bottom:1rem;display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem}.s-orders-list-wrapper{position:relative}.s-orders-list-loading{position:absolute;inset:0px;z-index:10;display:flex;align-items:center;justify-content:center;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-bg-opacity:0.1}.s-orders-table{min-width:100%;border-collapse:separate}@media (min-width: 768px){.s-orders-table{margin-bottom:-0.75rem;--tw-border-spacing-y:1.25rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}}.s-orders-table-fetching{pointer-events:none;opacity:0.4;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:200ms}.s-orders-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-orders-table-head{display:table-header-group}}.s-orders-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-orders-table-head-tr-th:where([dir="ltr"],[dir="ltr"] *){text-align:left}.s-orders-table-head-tr-th:last-child:where([dir="ltr"],[dir="ltr"] *){text-align:right}.s-orders-table-head-tr-th:where([dir="rtl"],[dir="rtl"] *){text-align:right}.s-orders-table-head-tr-th:last-child:where([dir="rtl"],[dir="rtl"] *){text-align:left}.s-orders-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-orders-table-tbody-tr{display:table-row;flex-direction:row;flex-wrap:nowrap;padding:0px}}.s-orders-table-tbody-tr-shadow:hover{box-shadow:5px 10px 30px #2b2d340d}.s-orders-table-tbody-tr-td{width:100%;white-space:nowrap;font-size:0.875rem;line-height:1.25rem}.s-orders-table-tbody-tr-td:first-child{font-weight:700}@media (min-width: 768px){.s-orders-table-tbody-tr-td{height:5rem;width:auto}.s-orders-table-tbody-tr-td:last-child{text-align:end}.s-orders-table-tbody-tr-td:first-child:where([dir="ltr"],[dir="ltr"] *){border-top-left-radius:0.375rem;border-bottom-left-radius:0.375rem}.s-orders-table-tbody-tr-td:first-child:where([dir="rtl"],[dir="rtl"] *){border-top-right-radius:0.375rem;border-bottom-right-radius:0.375rem}}.s-orders-table-tbody-tr-td:first-child{font-weight:700}.s-orders-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}@media (min-width: 768px){.s-orders-table-tbody-tr-td-content{padding-left:1.5rem;padding-right:1.5rem;padding-top:1.5rem;padding-bottom:1.5rem}}.s-orders-table-tbody-tr a{position:absolute;top:0px;bottom:0px;display:block;width:100%}.s-orders-table-tbody-tr a:where([dir="ltr"],[dir="ltr"] *){left:0px}.s-orders-table-tbody-tr a:where([dir="rtl"],[dir="rtl"] *){right:0px}/*!twlt*/.s-button-btn{position:relative;display:inline-flex;flex:1 1 0%;user-select:none;flex-direction:row-reverse;align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--s-radius, 0.25rem);border-style:solid;padding-left:1.5rem;padding-right:1.5rem;padding-bottom:0.625rem;padding-top:0.5rem;font-size:0.875rem;line-height:1.25rem;font-weight:700;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-btn:hover{opacity:0.8}.s-button-primary{border-width:1px;border-color:var(--color-primary);background-color:var(--color-primary);color:var(--color-primary-reverse)}.s-button-primary:hover{background-color:var(--color-primary-dark)}.s-button-text{pointer-events:none;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms}.s-button-loader{margin-left:0.5rem;margin-right:0.5rem;display:flex;align-items:center;justify-content:center;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-button-loader::before{display:inline-block;height:1rem;content:var(--tw-content);width:1rem}@keyframes spin{to{content:var(--tw-content);transform:rotate(360deg)}}.s-button-loader::before{animation:spin 1s linear infinite;border-radius:9999px;border-width:2px;border-style:solid;border-top-color:var(--color-primary);border-left-color:var(--color-primary);border-bottom-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-border-opacity:1;border-right-color:rgb(243 244 246 / var(--tw-border-opacity, 1));--tw-content:\'\';content:var(--tw-content)}.s-button-loader-center .s-button-loader{position:absolute;top:50%;left:50%;margin:0px !important;--tw-translate-y:-50%;--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.s-comments-item-like-btn .s-button-text{display:flex;flex-direction:row-reverse;gap:0.5rem}.s-infinite-scroll-wrapper{margin-top:1rem;text-align:center}.s-infinite-scroll-last{margin:0px;text-align:center}.s-infinite-scroll-error{margin:0px;text-align:center}';export{a as salla_orders}
|