@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h } from './index-
|
|
4
|
+
import { r as registerInstance, h } from './index-BAXTlrSC.js';
|
|
5
5
|
import { H as Helper } from './Helper-ivBHT_nn.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -11,15 +11,20 @@ const sallaInfiniteScrollCss = "/*!twlt*/.s-button-btn{position:relative;display
|
|
|
11
11
|
|
|
12
12
|
const FEEDBACK_STATUS_WAITING = 'waiting';
|
|
13
13
|
const TAB_QUERY_PARAM = 'tab';
|
|
14
|
+
const SHOW_EXTERNAL_ORDERS_FEATURE = 'show-external-orders';
|
|
14
15
|
function getFilterFromSearchParams() {
|
|
15
16
|
const tab = new URLSearchParams(window.location.search).get(TAB_QUERY_PARAM);
|
|
16
|
-
|
|
17
|
+
if (tab === 'waiting' || tab === 'archived')
|
|
18
|
+
return tab;
|
|
19
|
+
return 'all';
|
|
17
20
|
}
|
|
18
21
|
const LANG_DEFAULTS = {
|
|
19
22
|
'pages.orders.filter_all': { ar: 'الكل', en: 'All' },
|
|
23
|
+
'pages.orders.filter_archived': { ar: 'الطلبات المؤرشفة', en: 'Archived orders' },
|
|
20
24
|
'pages.orders.filter_awaiting_review': { ar: 'بانتظار تقييمك', en: 'Awaiting your review' },
|
|
21
25
|
'pages.orders.leave_review': { ar: 'أضف تقييمك', en: 'Add review' },
|
|
22
26
|
'pages.orders.no_unrated_orders': { ar: 'لا توجد طلبات غير مقيَّمة', en: 'No unrated orders' },
|
|
27
|
+
'pages.orders.no_archived_orders': { ar: 'لا توجد طلبات مؤرشفة', en: 'No archived orders' },
|
|
23
28
|
'pages.orders.review_banner': {
|
|
24
29
|
ar: 'لديك طلبات بانتظار تقييمك. شارك رأيك وساعدنا على تحسين تجربتك.',
|
|
25
30
|
en: 'You have orders awaiting your review. Share your feedback and help us improve your experience.',
|
|
@@ -40,9 +45,11 @@ const SallaOrder = class {
|
|
|
40
45
|
this.load_more_text_trans = salla.lang.get('common.elements.load_more');
|
|
41
46
|
this.languageCode = salla.lang.locale;
|
|
42
47
|
this.filterAllText = salla.lang.getWithDefault('pages.orders.filter_all', 'الكل');
|
|
48
|
+
this.filterArchivedText = salla.lang.getWithDefault('pages.orders.filter_archived', 'الطلبات المؤرشفة');
|
|
43
49
|
this.filterAwaitingReviewText = salla.lang.getWithDefault('pages.orders.filter_awaiting_review', 'بانتظار تقييمك');
|
|
44
50
|
this.leaveReviewText = salla.lang.getWithDefault('pages.orders.leave_review', 'شارك تقييمك');
|
|
45
51
|
this.noUnratedOrdersText = salla.lang.getWithDefault('pages.orders.no_unrated_orders', 'لا توجد طلبات غير مقيَّمة');
|
|
52
|
+
this.noArchivedOrdersText = salla.lang.getWithDefault('pages.orders.no_archived_orders', 'لا توجد طلبات مؤرشفة');
|
|
46
53
|
this.orders = [];
|
|
47
54
|
this.nextPage = null;
|
|
48
55
|
this.activeFilter = getFilterFromSearchParams();
|
|
@@ -51,6 +58,7 @@ const SallaOrder = class {
|
|
|
51
58
|
this.isFetching = false;
|
|
52
59
|
this.reviewPoints = 0;
|
|
53
60
|
this.filterGeneration = 0;
|
|
61
|
+
this.showExternalOrders = false;
|
|
54
62
|
salla.lang.onLoaded(() => {
|
|
55
63
|
this.languageCode = salla.lang.locale;
|
|
56
64
|
this.orderNumberText = salla.lang.get('pages.thank_you.order_id');
|
|
@@ -70,9 +78,11 @@ const SallaOrder = class {
|
|
|
70
78
|
}
|
|
71
79
|
refreshReviewLabels() {
|
|
72
80
|
this.filterAllText = salla.lang.getWithDefault('pages.orders.filter_all', 'الكل');
|
|
81
|
+
this.filterArchivedText = salla.lang.getWithDefault('pages.orders.filter_archived', 'الطلبات المؤرشفة');
|
|
73
82
|
this.filterAwaitingReviewText = salla.lang.getWithDefault('pages.orders.filter_awaiting_review', 'بانتظار تقييمك');
|
|
74
83
|
this.leaveReviewText = salla.lang.getWithDefault('pages.orders.leave_review', 'شارك تقييمك');
|
|
75
84
|
this.noUnratedOrdersText = salla.lang.getWithDefault('pages.orders.no_unrated_orders', 'لا توجد طلبات غير مقيَّمة');
|
|
85
|
+
this.noArchivedOrdersText = salla.lang.getWithDefault('pages.orders.no_archived_orders', 'لا توجد طلبات مؤرشفة');
|
|
76
86
|
}
|
|
77
87
|
setupLoyalty() {
|
|
78
88
|
// ? Flags
|
|
@@ -217,11 +227,11 @@ const SallaOrder = class {
|
|
|
217
227
|
return;
|
|
218
228
|
this.setLoadMoreLoading(false);
|
|
219
229
|
this.isFetching = true;
|
|
220
|
-
// Rows are appended to the
|
|
230
|
+
// Rows are appended to the table body imperatively (outside Stencil's vdom), so
|
|
221
231
|
// switching the render branch to the skeleton table won't clear them on its
|
|
222
232
|
// own — clear them explicitly or the old rows linger alongside the skeleton.
|
|
223
|
-
if (this.
|
|
224
|
-
this.
|
|
233
|
+
if (this.ordersTableBody) {
|
|
234
|
+
this.ordersTableBody.innerHTML = '';
|
|
225
235
|
}
|
|
226
236
|
this.filterGeneration++;
|
|
227
237
|
const feedbackStatus = filter === 'waiting' ? FEEDBACK_STATUS_WAITING : null;
|
|
@@ -231,6 +241,7 @@ const SallaOrder = class {
|
|
|
231
241
|
format: 'light',
|
|
232
242
|
types: [''],
|
|
233
243
|
feedback_status: feedbackStatus,
|
|
244
|
+
...(filter === 'archived' ? { external_orders: 1 } : {}),
|
|
234
245
|
});
|
|
235
246
|
this.orders = resp.data;
|
|
236
247
|
this.hasInfiniteScroll = !!resp.pagination?.links.next;
|
|
@@ -244,8 +255,8 @@ const SallaOrder = class {
|
|
|
244
255
|
}
|
|
245
256
|
if (!this.orders.length) {
|
|
246
257
|
this.setLoadMoreLoading(false);
|
|
247
|
-
this.emptyFilterResult = filter
|
|
248
|
-
this.showPlaceholder = filter
|
|
258
|
+
this.emptyFilterResult = filter !== 'all';
|
|
259
|
+
this.showPlaceholder = filter === 'all';
|
|
249
260
|
return;
|
|
250
261
|
}
|
|
251
262
|
this.showPlaceholder = false;
|
|
@@ -263,7 +274,9 @@ const SallaOrder = class {
|
|
|
263
274
|
}
|
|
264
275
|
}
|
|
265
276
|
getSingleOrderItem(order) {
|
|
266
|
-
const
|
|
277
|
+
const orderNumber = String((this.activeFilter === 'archived' ? order.external_order_id : order.reference_id) ?? '');
|
|
278
|
+
// ponytail: # only for pure digits; alphanumeric external ids stay bare
|
|
279
|
+
const orderNumberLabel = /^\d+$/.test(orderNumber) ? `#${orderNumber}` : orderNumber;
|
|
267
280
|
const tr = document.createElement('tr');
|
|
268
281
|
tr.classList.add('s-orders-table-tbody-tr', 's-orders-table-tbody-tr-shadow');
|
|
269
282
|
const td1 = document.createElement('td');
|
|
@@ -275,7 +288,7 @@ const SallaOrder = class {
|
|
|
275
288
|
span1.textContent = `${this.orderNumberText}:`;
|
|
276
289
|
const span2 = document.createElement('span');
|
|
277
290
|
span2.classList.add('s-orders-reference-id');
|
|
278
|
-
span2.textContent =
|
|
291
|
+
span2.textContent = orderNumberLabel;
|
|
279
292
|
div1.appendChild(span1);
|
|
280
293
|
div1.appendChild(span2);
|
|
281
294
|
if (order.source === 'buy_as_gift') {
|
|
@@ -293,7 +306,7 @@ const SallaOrder = class {
|
|
|
293
306
|
sallaButton.classList.add('relative');
|
|
294
307
|
sallaButton.setAttribute('color', 'dark');
|
|
295
308
|
sallaButton.setAttribute('shape', 'link');
|
|
296
|
-
sallaButton.dataset.content =
|
|
309
|
+
sallaButton.dataset.content = orderNumber;
|
|
297
310
|
sallaButton.addEventListener('click', event => {
|
|
298
311
|
Helper.copyToClipboard(event);
|
|
299
312
|
Helper.toggleElementClassIf(sallaButton, 'copied', 'code-to-copy', () => true);
|
|
@@ -302,7 +315,7 @@ const SallaOrder = class {
|
|
|
302
315
|
}, 1000);
|
|
303
316
|
});
|
|
304
317
|
const span3 = document.createElement('span');
|
|
305
|
-
span3.textContent =
|
|
318
|
+
span3.textContent = orderNumberLabel;
|
|
306
319
|
const copyIcon = document.createElement('i');
|
|
307
320
|
copyIcon.classList.add('sicon-swap-stroke', 's-orders-copy-to-clipboard-button-icon');
|
|
308
321
|
// Check the text direction
|
|
@@ -434,8 +447,13 @@ const SallaOrder = class {
|
|
|
434
447
|
renderSkeletonRows(count = 5) {
|
|
435
448
|
return Array.from({ length: count }, (_, index) => this.renderSkeletonRow(index));
|
|
436
449
|
}
|
|
450
|
+
getEmptyFilterText() {
|
|
451
|
+
return this.activeFilter === 'archived'
|
|
452
|
+
? this.noArchivedOrdersText
|
|
453
|
+
: this.noUnratedOrdersText;
|
|
454
|
+
}
|
|
437
455
|
renderFilters() {
|
|
438
|
-
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)));
|
|
456
|
+
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)));
|
|
439
457
|
}
|
|
440
458
|
renderBanner() {
|
|
441
459
|
if (!this.pendingReviewCount)
|
|
@@ -446,7 +464,7 @@ const SallaOrder = class {
|
|
|
446
464
|
if (this.showPlaceholder) {
|
|
447
465
|
return (h("div", { class: "s-orders-no-content" }, h("i", { class: "sicon-packed-box icon" }), h("p", null, this.noOrderText)));
|
|
448
466
|
}
|
|
449
|
-
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.
|
|
467
|
+
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) })));
|
|
450
468
|
}
|
|
451
469
|
componentDidRender() {
|
|
452
470
|
this.populateOrdersTableIfEmpty();
|
|
@@ -458,6 +476,13 @@ const SallaOrder = class {
|
|
|
458
476
|
});
|
|
459
477
|
return salla.onReady().then(() => {
|
|
460
478
|
this.setupLoyalty();
|
|
479
|
+
this.showExternalOrders = salla.config
|
|
480
|
+
.get('store.features', [])
|
|
481
|
+
.includes(SHOW_EXTERNAL_ORDERS_FEATURE);
|
|
482
|
+
if (this.activeFilter === 'archived' && !this.showExternalOrders) {
|
|
483
|
+
this.activeFilter = 'all';
|
|
484
|
+
this.syncFilterToSearchParams('all');
|
|
485
|
+
}
|
|
461
486
|
const tasks = [this.fetchOrders(this.activeFilter)];
|
|
462
487
|
// fetchOrders already resolves the pending count when the initial tab is "waiting"
|
|
463
488
|
if (this.activeFilter !== 'waiting') {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
|
|
6
6
|
const sallaPaymentsCss = "/*!twlt*/:host{display:block}.static{position:static}.hidden{display:none}.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-payments-list{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:0.5rem}.s-payments-list:where([dir=\"rtl\"],[dir=\"rtl\"] *)>:not([hidden])~:not([hidden]){--tw-space-x-reverse:1}.s-payments-list-item{display:flex;height:2rem;width:3rem;align-items:center;justify-content:center;border-radius:var(--s-radius, 0.25rem);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:0.25rem}.s-payments-list-item img{max-height:100%;object-fit:contain}.s-payments-sbc-image{height:1.5rem;border-radius:0.125rem;transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.s-payments-sbc-image:hover{opacity:0.8}";
|
|
7
7
|
|
|
@@ -41,12 +41,12 @@ const SallaPayments = class {
|
|
|
41
41
|
render() {
|
|
42
42
|
const madeInKSA = !this.exclude.includes('made-in-ksa') && salla.config.get('store.settings.made_in_ksa');
|
|
43
43
|
const sbcId = this.exclude.includes('sbc') ? null : salla.config.get('store.settings.certificate.id');
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '46c58d42a6e876a785bc4ee0b27dd91943e95932', class: "s-payments-list-wrap" }, h("ul", { key: '7745fe947414ce517400dc31d5d89cea413fd295', class: "s-payments-list" }, madeInKSA && h("li", { key: '4715de8ea395d318432cd13ee44e30b06c27f570', class: "s-payments-list-item" }, h("img", { key: '096e9b6168ba7b87bda69bca26af7525d846f152', width: 58, height: 58, decoding: "async", loading: "lazy", src: salla.url.cdn(`images/made-in-ksa.svg`, 58, 58), alt: "made in KSA certified" })), this.payments.filter(payment => !this.exclude.includes(payment)).map((payment) => (payment == "cod" ?
|
|
45
45
|
h("div", { id: "cod-slot", innerHTML: this.codSlot
|
|
46
46
|
.replace(/\{image\}/g, this.paymentLogo(`cod`)) }) :
|
|
47
47
|
h("div", { id: "payment-slot", innerHTML: this.paymentSlot
|
|
48
48
|
.replace(/\{image\}/g, this.paymentLogo(payment))
|
|
49
|
-
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '
|
|
49
|
+
.replace(/\{payment\}/g, payment) }))), sbcId && h("div", { key: '850bc394f7bd0396b6f78b9f57fc8254baab0635', id: "sbc-slot", innerHTML: this.sbcSlot
|
|
50
50
|
.replace(/\{image\}/g, salla.url.cdn(`images/sbc.png`, 58, 58))
|
|
51
51
|
.replace(/\{link\}/g, `https://eauthenticate.saudibusiness.gov.sa/certificate-details/${sbcId}`) }))));
|
|
52
52
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BAXTlrSC.js';
|
|
5
5
|
|
|
6
6
|
var Inbox = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -41,7 +41,7 @@ const SallaPlaceholder = class {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '7680e249ef9627c8c53c1fcbd02bb942d3f650a4', class: this.alignmentClass() }, h("div", { key: '17df509f27879794ea37172826489033ddb85045', class: `s-placeholder-icon s-placeholder-icon-${this.iconSize}`, innerHTML: this.icon }), h("div", { key: '117de24add832359f0a046a5e67b16748e25572d', class: "s-placeholder-title" }, h("slot", { key: '3bc517f00c6427a1103f859b58e9763f10851f4d', name: 'title' }, h("span", { key: '17615872d9b5e03d9b33d01fde5e1753f5f7a97e' }, salla.lang.get('common.elements.no_options')))), h("div", { key: '962eafb62268b4ae3e25610a0dec6734ac58378a', class: "s-placeholder-description" }, h("slot", { key: '6326fdee550361c7cf6be95f1da2baf5616bd0f4', name: 'description' }, h("span", { key: '179fbe8c4352fad27a88b39baa6d858075006bfe' }, salla.lang.get('common.errors.empty_results'))))));
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
SallaPlaceholder.style = sallaPlaceholderCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-BAXTlrSC.js';
|
|
5
5
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
6
6
|
import { a as arrowRight } from './arrow-right-B9q7ymSg.js';
|
|
7
7
|
|
|
@@ -151,9 +151,9 @@ const SallaPriceRange = class {
|
|
|
151
151
|
this.maxPrice = value === undefined ? '' : value;
|
|
152
152
|
}
|
|
153
153
|
render() {
|
|
154
|
-
return (h(Host, { key: '
|
|
154
|
+
return (h(Host, { key: '582547be2a058bd2ab9c8567b5925f25711e1aff' }, this.filterValues.map((filterValue, index) => {
|
|
155
155
|
return h("label", { class: "s-filters-label", htmlFor: `${this.option.key}-${index}`, key: index }, h("input", { id: `${this.option.key}-${index}`, name: "price", type: "radio", checked: this.isChecked(filterValue), class: "s-filters-radio", onChange: e => this.handleMinMaxPrice(e, filterValue) }), h("span", { innerHTML: this.getPriceLabel(filterValue) }));
|
|
156
|
-
}), h("div", { key: '
|
|
156
|
+
}), h("div", { key: '36dea18b1f8f9b9c11a235328d6019cdb0ea5d9d', class: "flex justify-center items-center" }, h("div", { key: '765c5a4eca4cb39b47cba341e8c8f7b7888f0072', class: "relative max-w-xl w-full" }, h("div", { key: '24c54bcec699865a391f198d701abcdcf40bd438', class: "s-price-range-inputs" }, h("div", { key: '962c157d0d7df4f096eed09b51618f3bdadaa347', class: "s-price-range-relative" }, h("div", { key: 'e39123015563b93553be0498673245311644f178', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '4dadf22dc8ad4a982a07acdbb5b62b28b46aa49a', type: "number", maxlength: "5", ref: el => this.minInput = el, onBlur: (e) => this.handleMinPrice(e), value: this.minPrice, placeholder: this.fromLabel, class: "s-price-range-number-input" })), h("div", { key: '1aea9954befb49f6c9f3f0b1d20ce04defa352b9', class: "s-price-range-gray-text" }, " -"), h("div", { key: 'c4ed3a532ab1c780e69bcadd96ed9581e0a69a85', class: "s-price-range-relative" }, h("div", { key: '3489752cc4de7fb82e758bf877959d7c34094d28', class: "s-price-range-currency" }, " ", salla.config.currency().symbol), h("input", { key: '9f06151e1156553f0a45283c0db0af92c269c110', type: "number", maxlength: "5", ref: el => this.maxInput = el, onBlur: (e) => this.handleMaxPrice(e), value: this.maxPrice, placeholder: this.toLabel, class: "s-price-range-number-input", "aria-describedby": "price-currency" })), h("salla-button", { key: '1496f0eb951492d3eaad51c90bc1234d746d748c', color: 'gray', shape: 'icon', size: 'small', fill: 'outline', onClick: (event) => this.changedEventHandler(event) }, h("span", { key: '9efb20a46dae252c5e82bb52f0bcb57c8e030c99', innerHTML: this.isRTL ? arrowLeft : arrowRight })))))));
|
|
157
157
|
}
|
|
158
158
|
componentDidLoad() {
|
|
159
159
|
this.isReady = true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
|
|
6
6
|
const sallaProductCardEmbedCss = "/*!twlt*/@charset \"UTF-8\";:host{display:inline-block;vertical-align:top;max-width:12rem}:host([align=left]){float:inline-start;margin-block-end:1em;margin-inline-end:1em;shape-outside:margin-box}:host([align=right]){float:inline-end;margin-block-end:1em;margin-inline-start:1em;shape-outside:margin-box}:host([align=center]){display:block;clear:both;margin-block:1em;margin-inline:auto}.s-product-card-embed-card{display:block}.visible{visibility:visible}.block{display:block}.flow-root{display:flow-root}.s-product-card-embed-card{display:block;max-width:12rem;shape-outside:margin-box}.s-product-card-embed-card custom-salla-product-card{--tw-shadow:0 0 28px 0px rgba(0 0 0 / .1);--tw-shadow-colored:0 0 28px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.s-product-card-embed-card-align-center{margin-left:auto;margin-right:auto}.s-product-card-embed-card-align-left{float:left;margin-right:1ch}.s-product-card-embed-card-align-right{float:right;margin-left:1ch}.s-product-card-embed-fallback{display:block}article:has(salla-product-card-embed)::after{clear:both;display:block;--tw-content:'';content:var(--tw-content)}";
|
|
7
7
|
|
|
@@ -98,7 +98,7 @@ const SallaProductCardEmbed = class {
|
|
|
98
98
|
's-product-card-embed-card-align-right': this.align === 'right',
|
|
99
99
|
's-product-card-embed-card-align-center': this.align === 'center',
|
|
100
100
|
};
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '56f42e6b733dc4101759a30182297af7313feebe' }, this.hasError && h("span", { key: 'abe5fefd824cdc8880a0afd8864f6283c957cab1', class: "s-product-card-embed-fallback" }), h("div", { key: '72ce12394216af508ba187e67331fa7862caa16a', class: cardClasses, ref: (el) => {
|
|
102
102
|
this.cardContainer = el;
|
|
103
103
|
} })));
|
|
104
104
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { H as Heart } from './heart-00vBRoH3.js';
|
|
6
6
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
7
7
|
import { C as Cart } from './cart-gFG8By9O.js';
|
|
@@ -137,14 +137,14 @@ const SallaProductCard = class {
|
|
|
137
137
|
's-product-card-out-of-stock': this.productData?.is_out_of_stock,
|
|
138
138
|
};
|
|
139
139
|
const hrefProp = this.productData?.url ? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` } : {};
|
|
140
|
-
return (h(Host, { key: '
|
|
140
|
+
return (h(Host, { key: '6e57fdf93d631d1770a88733be8ecd2fe4be7cb7', id: `product-${this.productData?.id}`, class: classes }, h("div", { key: '540e4afcc1784e56c6560fcbc53ca22fe7871a58', class: !this.fullImage ? 's-product-card-image' : 's-product-card-image-full' }, h("a", { key: '13173d79484e8922e6ca9edb7b5eaf5d24577b57', ...hrefProp }, h("img", { key: 'ff09e2558689d47cf091bb36e2201f5a257b3b7b', class: `s-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url)
|
|
141
141
|
? 'contain'
|
|
142
142
|
: this.fitImageHeight
|
|
143
143
|
? this.fitImageHeight
|
|
144
|
-
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '
|
|
145
|
-
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '
|
|
144
|
+
: 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), !this.fullImage && !this.minimal ? this.getProductBadge() : ''), this.fullImage && h("a", { key: '5407cae4838f6cf35d8d3181e0de47ba1f7e4d66', ...hrefProp, class: "s-product-card-overlay" }), !this.horizontal && !this.fullImage ?
|
|
145
|
+
h("salla-button", { shape: "icon", fill: "none", color: "light", loading: false, "aria-label": "Add or remove to wishlist", ref: el => this.wishlistBtn = el, class: "s-product-card-wishlist-btn animated", onClick: () => this.handleWishlistClick() }, h("span", { innerHTML: Heart })) : ''), h("div", { key: '73a4f99505f4b3c1b7f34341a08f7c3957cc9216', class: "s-product-card-content" }, this.isSpecial && this.productData?.quantity ?
|
|
146
146
|
h("div", { class: "s-product-card-content-pie", ref: pie => this.pie = pie }, h("span", null, h("b", null, salla.helpers.number(this.productData?.quantity)), this.remained), h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "-2 -1 36 34", class: "s-product-card-content-pie-svg" }, h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-base" }), h("circle", { cx: "16", cy: "16", r: "15.9155", class: "s-product-card-content-pie-svg-bar" })))
|
|
147
|
-
: '', h("div", { key: '
|
|
147
|
+
: '', h("div", { key: 'b757815f1ee1873fcf5a7c76be1d6403f5862201', class: { 's-product-card-content-main': true, 's-product-card-content-extra-padding': this.isSpecial } }, h("h3", { key: '5e27e19508fcbc98fa1e5543768d3e93d9adccce', class: "s-product-card-content-title" }, h("a", { key: '78b6494ad4e08b8cebff2984b6a1e60878b356fa', ...hrefProp }, this.getDisplayTitle())), this.productData?.subtitle && !this.minimal ?
|
|
148
148
|
h("p", { class: "s-product-card-content-subtitle" }, this.productData?.subtitle)
|
|
149
149
|
: ''), this.productData?.donation && !this.minimal && !this.fullImage ?
|
|
150
150
|
[h("salla-progress-bar", { donation: this.productData?.donation }), h("div", { class: "s-product-card-donation-input" }, this.productData?.donation?.can_donate ?
|
|
@@ -153,7 +153,7 @@ const SallaProductCard = class {
|
|
|
153
153
|
this.addBtn.donatingAmount = e.target.value;
|
|
154
154
|
}, id: "donation-amount", name: "donating_amount", class: "s-form-control", placeholder: this.donationAmount })]
|
|
155
155
|
: '')]
|
|
156
|
-
: '', h("div", { key: '
|
|
156
|
+
: '', h("div", { key: '148e979d2b36ed185e1bf5f8345096a442c94601', class: { 's-product-card-content-sub': true, 's-product-card-content-extra-padding': this.isSpecial } }, this.getProductPrice(), this.showOutOfStockBesidePrice && this.productData?.is_out_of_stock ?
|
|
157
157
|
h("span", { class: "s-product-card-out-of-stock-label" }, this.outOfStock)
|
|
158
158
|
: '', this.productData?.rating?.stars && !this.minimal ?
|
|
159
159
|
h("div", { class: "s-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
|
|
6
6
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
7
7
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -51,11 +51,11 @@ const SallaProductSizeGuide = class {
|
|
|
51
51
|
return h("salla-placeholder", { alignment: "center", iconSize: "xl" }, h("div", { slot: "title" }, this.placeholder_title), h("div", { slot: "description" }, this.placeholder_description));
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h("salla-modal", { key: '
|
|
54
|
+
return (h("salla-modal", { key: 'eeb477f6cd7831f06fb2b716e2391d684ae4e93c', class: "s-product-size-guide-wrapper", id: 'salla-product-size-guide-modal', isLoading: true, "has-skeleton": true, width: "md", ref: modal => this.modal = modal }, h("span", { key: '48f9e18ebfec9999dc856fe3c7bca7854e4f53b3', slot: 'icon', class: "s-product-size-guide-header-icon", innerHTML: PencilRuler }), h("div", { key: '9fc445cfb72dfdd5d0d306419041aa9f3acafb66', slot: "loading" }, h("div", { key: 'f5dbfb1560940a691f891e7d41eca22977693d79', class: "s-product-size-guide-skeleton" }, h("salla-skeleton", { key: 'c6790017016fc8b471601bf093051f80183645c9', height: '15px', width: '25%' }), h("div", { key: 'ba72c67c7b26e62ed4548444ba9083f83816f59e', class: "s-product-size-guide-skeleton-header" }, h("salla-skeleton", { key: '4fd934c7bf103bcd937028bacda524915a40f76a', height: '40px' }), h("salla-skeleton", { key: '3754ae6eca3938380261e221f6941b2ef2a381dd', height: '40px' }), h("salla-skeleton", { key: 'a2007afe625ce45713b3a2f64a62cf0da101c1e9', height: '40px' }), h("salla-skeleton", { key: '7ed982fa2c6c862bf724fa1b1dc059db2f5dbc41', height: '40px' })), h("div", { key: '3914b9dde80d2257a55b0aa156f61df5936f1bb5', class: "s-product-size-guide-skeleton-content" }, h("salla-skeleton", { key: '51b96df249504517e4c3fe1098be2937cbaeef63', height: '15px', width: '25%' }), h("salla-skeleton", { key: 'd5844e3c91eddc4821b97cc9991a2441dd0bb117', height: '10px', width: '75%' }), h("salla-skeleton", { key: '976e70a0aa160dd9b4dbe4d0f9f0675f5c3308ea', height: '10px', width: '50%' }), h("salla-skeleton", { key: '1baf5286915a708ea68850c9c82e7970c6521c86', height: '10px', width: '75%' }), h("salla-skeleton", { key: '8ecc89a3defd83637936023b0d0841c55c6799cd', height: '10px', width: '100%' }), h("salla-skeleton", { key: 'eb90ea350d6947596688595bb898a8c3a8dcac39', height: '10px', width: '25%' }), h("salla-skeleton", { key: '282d747e764c2761aa4b68f145467371acd66f32', height: '10px', width: '60%' }), h("salla-skeleton", { key: '610491fa3769027ceebec2ab46e7166d0bfac9f2', height: '10px', width: '45%' }), h("salla-skeleton", { key: '8162ba3bec487efe6fa1c0adf2355bd175d8310a', height: '10px', width: '30%' })))), h("slot", { key: 'b55b29cfeb52e41c0c56a79bded075fda7f49fab', name: "header" }), !this.hasError && !!this.guides ?
|
|
55
55
|
[
|
|
56
56
|
h("salla-tabs", null, this.guides.map((guide) => h("salla-tab-header", { slot: "header", name: guide.name }, h("span", null, guide.name))), this.guides.map((guide) => h("salla-tab-content", { slot: "content", name: guide.name }, h("div", { innerHTML: guide.description }))))
|
|
57
57
|
]
|
|
58
|
-
: this.showPlaceholder(), h("slot", { key: '
|
|
58
|
+
: this.showPlaceholder(), h("slot", { key: '6e37eb73078f786ce5dda8cf9ed6bae16eb3acfc', name: "footer" })));
|
|
59
59
|
}
|
|
60
60
|
get host() { return getElement(this); }
|
|
61
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { S as ShoppingBag } from './shopping-bag-DiKTtDW5.js';
|
|
7
7
|
import { H as Helper } from './Helper-ivBHT_nn.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { H as Helper } from './Helper-ivBHT_nn.js';
|
|
6
6
|
import './anime.es-CgtvEd63.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { I as IphoneXIcon } from './iphone-x-Z7udRKSZ.js';
|
|
6
6
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
7
7
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { S as ShippingFast, a as Star } from './star-cq6TcfoH.js';
|
|
6
6
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
7
7
|
import { H as Helper } from './Helper-ivBHT_nn.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { C as CheckCircle2 } from './check-circle2-BV4kqbdL.js';
|
|
7
7
|
import { I as ImageIcon } from './image-C-tzSDxw.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BAXTlrSC.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { f as fetchOrder, r as resolveReviewFactors } from './helpers-DqXpn47Z.js';
|
|
7
7
|
|
|
@@ -51,7 +51,7 @@ const SallaReviewFactorsTags = class {
|
|
|
51
51
|
return (h("div", { class: "s-review-factors-tags-factors" }, factors.map(factor => (h("div", { class: "s-review-factors-tags-factor-tag" }, h("span", { class: "s-review-factors-tags-factor-name" }, factor.name), h("span", { class: "s-review-factors-tags-factor-star", innerHTML: Star }), h("span", { class: "s-review-factors-tags-factor-rating" }, factor.rating || ''))))));
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '8360dda7ca017f934d4e2c284b3d35be81dce9a3', class: "s-review-factors-tags-wrapper" }, this.renderFactorTags()));
|
|
55
55
|
}
|
|
56
56
|
static get watchers() { return {
|
|
57
57
|
"factors": ["onPropsChange"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BAXTlrSC.js';
|
|
5
5
|
import { f as fetchOrder, g as getProductRatings } from './helpers-DqXpn47Z.js';
|
|
6
6
|
|
|
7
7
|
const SallaReviewOrderItem = class {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BAXTlrSC.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
|
|
7
7
|
var StoreAlt = `<!-- Generated by IcoMoon.io -->
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { S as Star } from './star2-D4oPi1Ov.js';
|
|
6
6
|
import { C as Cart } from './cart-gFG8By9O.js';
|
|
7
7
|
|
|
@@ -97,7 +97,7 @@ const SallaSearchProductCard = class {
|
|
|
97
97
|
const hrefProp = this.productData?.url
|
|
98
98
|
? { href: this.productData.url, title: `Learn more about ${this.productData?.name}` }
|
|
99
99
|
: {};
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
return (h(Host, { key: '7d27bff6bbcbd9358f74a80e2508bf55e2a803f2', id: `search-product-${this.productData?.id}`, class: classes }, h("div", { key: 'c5b4779eb70efac08ef667a39a9d7e10c29ad06d', class: "s-search-product-card-image" }, h("a", { key: '743fa57c70e013dd06dffcd3fd08e647277ea691', ...hrefProp }, h("img", { key: 'ffd45205931e889f7720ec82facbaefb7b1ee6a7', class: `s-search-product-card-image-${salla.url.is_placeholder(this.productData?.image?.url) ? 'contain' : 'cover'} lazy`, src: this.placeholder, alt: this.productData?.image?.alt || this.productData?.name, "data-src": this.productData?.image?.url || this.productData?.thumbnail }), this.getProductBadge())), h("div", { key: '0325f34877b04501982d37d5c5716e92b7bde4bd', class: "s-search-product-card-content" }, h("div", { key: '9fd59aca92bb6afadd203c3c43a41cc43a34ec6a', class: "s-search-product-card-content-main" }, h("h3", { key: '5d42d98468f76c41da5d6590894625228811eaf0', class: "s-search-product-card-content-title" }, h("a", { key: '9cf79321593a3609fae3eeef0f0af9e3d0aebfa5', ...hrefProp }, this.getDisplayTitle())), this.productData?.subtitle ? (h("p", { class: "s-search-product-card-content-subtitle" }, this.productData?.subtitle)) : ('')), !!this.showDonationAmount && !!this.productData?.donation
|
|
101
101
|
? [
|
|
102
102
|
h("salla-progress-bar", { donation: this.productData?.donation }),
|
|
103
103
|
h("div", { class: "s-search-product-card-donation-input" }, this.productData?.donation?.can_donate
|
|
@@ -112,7 +112,7 @@ const SallaSearchProductCard = class {
|
|
|
112
112
|
]
|
|
113
113
|
: ''),
|
|
114
114
|
]
|
|
115
|
-
: '', h("div", { key: '
|
|
115
|
+
: '', h("div", { key: 'd5b23f2572548e577576abe8dc0241f9823fd3ab', class: "s-search-product-card-content-sub" }, this.getProductPrice(), this.productData?.is_out_of_stock ? (h("span", { class: "s-search-product-card-out-of-stock-label" }, this.outOfStock)) : (''), this.productData?.rating?.stars ? (h("div", { class: "s-search-product-card-rating" }, h("span", { innerHTML: Star }), h("span", null, this.productData.rating.stars))) : (''))), !this.hideAddBtn ? (h("div", { class: "s-search-product-card-content-footer" }, h("salla-add-product-button", { ref: el => (this.addBtn = el), "product-id": this.productData.id, "product-status": this.productData.status, "product-type": this.productData.type, class: "s-add-product-button-compact" }, this.renderAddToCartLabel()))) : ('')));
|
|
116
116
|
}
|
|
117
117
|
componentDidLoad() {
|
|
118
118
|
document.lazyLoadInstance?.update(this.host?.querySelectorAll('.lazy'));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { S as Search } from './search-BscTeWDc.js';
|
|
6
6
|
import { C as Cancel } from './cancel-BsLF_HK7.js';
|
|
7
7
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-BAXTlrSC.js';
|
|
5
5
|
|
|
6
6
|
const sallaSkeletonCss = "/*!twlt*/:host{display:block}.s-loyalty-skeleton .s-loyalty-prize-item .s-skeleton-wrapper{margin-left:auto;margin-right:auto}.s-skeleton-wrapper{display:block}@keyframes pulse{50%{opacity:.5}}.s-skeleton-wrapper{animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}.s-skeleton-item{height:100%;width:100%;border-radius:0.375rem;--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.s-skeleton-item:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.s-skeleton-item-circular{border-radius:9999px}";
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ const SallaSkeleton = class {
|
|
|
26
26
|
's-skeleton-item': true,
|
|
27
27
|
's-skeleton-item-circular': this.type == 'circle',
|
|
28
28
|
};
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '5568fdecb56f5513ffbe8f9b82da106a525af6a8', class: "s-skeleton-wrapper", style: { width: this.width, height: this.height } }, h("div", { key: '0a69bf54dff8093adea503ec6dbcb3f07aba9e13', class: classes }, "\u00A0")));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
SallaSkeleton.style = sallaSkeletonCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { a as anime } from './anime.es-CgtvEd63.js';
|
|
6
6
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
7
7
|
import { M as MailIcon } from './mail-DmgxDvXL.js';
|
|
@@ -381,7 +381,7 @@ const SallaSocialShare = class {
|
|
|
381
381
|
})));
|
|
382
382
|
}
|
|
383
383
|
render() {
|
|
384
|
-
return (h("div", { key: '
|
|
384
|
+
return (h("div", { key: '1aa2cfd0b97f66f68ba831908cfa208fac841acd', class: "s-social-share-wrapper" }, h("slot", { key: '570372d3e572314dc69642ee186ba4c09a836808', name: "widget" }, h("salla-button", { key: 'a06c19703990158f6c1897162ea0f814ed8b0d59', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: 'a1e19a318cb21c0c0a54d5df0c132e2c273d71c8', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
385
385
|
}
|
|
386
386
|
get host() { return getElement(this); }
|
|
387
387
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
import { f as facebook, t as twitter } from './facebook-CO-PeZ27.js';
|
|
6
6
|
|
|
7
7
|
var instagram = `<!-- Generated by IcoMoon.io -->
|
|
@@ -55,7 +55,7 @@ const SallaSocial = class {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const linksArray = this.getLinksArray();
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'dfd63f034c588f6f6f08200d531187bd51e0b3b4' }, h("ul", { key: 'e4ec12ccb3c63a1dfdd64c5d3186734bed37db77', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
59
59
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
60
60
|
.replace(/\{type\}/g, link.type)
|
|
61
61
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, c as createEvent, a as getElement } from './index-BAXTlrSC.js';
|
|
5
5
|
|
|
6
6
|
const sallaTabContentCss = "";
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ const SallaTabContent = class {
|
|
|
31
31
|
's-tabs-content': true,
|
|
32
32
|
's-tabs-content-selected': this.isSelected
|
|
33
33
|
};
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'f2deb9c1508aafe3aff5352094cccc97bdcd42ef', class: classes }, h("slot", { key: '460588864047444acdb06e757a7124d28935c24b' })));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
SallaTabContent.style = sallaTabContentCss;
|
|
@@ -90,7 +90,7 @@ const SallaTabHeader = class {
|
|
|
90
90
|
's-tabs-active': this.isSelected,
|
|
91
91
|
};
|
|
92
92
|
return [
|
|
93
|
-
h("div", { key: '
|
|
93
|
+
h("div", { key: '153247ab5a7c73819ccc506a45e60b9c084c391c', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '417a3ae0c0aec8a965b5d3be9a4f917f290d2109' })),
|
|
94
94
|
];
|
|
95
95
|
}
|
|
96
96
|
};
|
|
@@ -143,7 +143,7 @@ const SallaTabs = class {
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
return [
|
|
146
|
-
h("div", { key: '
|
|
146
|
+
h("div", { key: 'ae50836f68ee92459720fa9bf00d73848d849627', class: "s-tabs" }, h("div", { key: '55e8186e80381902269f9bad5738d9a555f71d37', class: "s-tabs-header" }, h("slot", { key: '46ce3e1ea75f92165b3d5ee7c16f19f8693f6d31', name: "header" })), h("div", { key: '3669e643abb37ed2edca73fc0577822a3f7fbb90', class: "s-tabs-content-wrapper" }, h("slot", { key: '2cf8b79f44630e21103991325ceff2cd3a4019ba', name: "content" })))
|
|
147
147
|
];
|
|
148
148
|
}
|
|
149
149
|
get host() { return getElement(this); }
|