@salla.sa/twilight-components 2.14.514 → 2.14.516
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-BrMz9lwQ.js → filepond-BVk_qugj.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CXLsx8it.js → filepond-plugin-file-poster-CevD4HdD.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-mSUTf-UR.js → filepond-plugin-file-validate-size-i7np7XCz.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CPCUe4I9.js → filepond-plugin-file-validate-type-Gacna2VA.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DCJZTAIe.js → filepond-plugin-image-edit-0x2DeM-H.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-B6tPPpp4.js → filepond-plugin-image-exif-orientation-Dmm3eMMZ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DSdtEzNX.js → filepond-plugin-image-preview-BSb1jOWO.js} +1 -1
- package/dist/cjs/{functions-DVR8KL8Z.js → functions-DfrV6G5_.js} +1 -1
- package/dist/cjs/{index-B1gojaKP.js → index-B6RWhkkR.js} +6 -2
- package/dist/cjs/{index-DbnRXAWJ.js → index-J4xGG6Hq.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +17 -4
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.cjs.entry.js +76 -0
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +32 -2
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-Co7zKJiC.js → tracked-promise-DfLohMkv.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-eIkf_cyq.js → vanilla-picker-FxKjXhjJ.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-cart-summary-card/salla-cart-summary-card.js +16 -3
- package/dist/collection/components/salla-order-shipments/interfaces.js +1 -0
- package/dist/collection/components/salla-order-shipments/salla-order-shipments.css +3 -0
- package/dist/collection/components/salla-order-shipments/salla-order-shipments.js +115 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +33 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-summary-card.js +16 -3
- package/dist/components/salla-order-shipments.d.ts +11 -0
- package/dist/components/salla-order-shipments.js +97 -0
- package/dist/components/salla-user-menu.js +33 -1
- package/dist/esm/{filepond-CuccuSQc.js → filepond-Bk0gHKob.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster--NsZeC2o.js → filepond-plugin-file-poster-YSUKdGOX.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Bkbx98ju.js → filepond-plugin-file-validate-size-pjLAQAWV.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-DTdnbkr6.js → filepond-plugin-file-validate-type-DrrN5Zs4.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-Cl4KCy_a.js → filepond-plugin-image-edit-CWWdz9kB.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-C8MwhzVz.js → filepond-plugin-image-exif-orientation-gUQtWcgV.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DsaHYKNd.js → filepond-plugin-image-preview-D5Nm8BIl.js} +1 -1
- package/dist/esm/{functions-MpYGQOQD.js → functions-BWx2LhvF.js} +1 -1
- package/dist/esm/{index-Crijf68j.js → index-CDoLIl29.js} +6 -2
- package/dist/esm/{index-BzdDNQAg.js → index-CqOF4yoZ.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +17 -4
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-shipments.entry.js +74 -0
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +32 -2
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/{tracked-promise-2_p0LVES.js → tracked-promise-B3rJfj6D.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-kYXU8Uvu.js → vanilla-picker-B0XMZPNF.js} +1 -1
- package/dist/twilight/{p-0de6624b.entry.js → p-029acfba.entry.js} +1 -1
- package/dist/twilight/{p-76f91b56.entry.js → p-0414245a.entry.js} +1 -1
- package/dist/twilight/{p-95c4740b.entry.js → p-073ae9d0.entry.js} +1 -1
- package/dist/twilight/{p-455eb768.entry.js → p-08dce1ce.entry.js} +1 -1
- package/dist/twilight/{p-5ab98967.entry.js → p-0a441ec3.entry.js} +1 -1
- package/dist/twilight/{p-772867ce.entry.js → p-0a6e70de.entry.js} +1 -1
- package/dist/twilight/{p-087c9b34.entry.js → p-0b8bc1b8.entry.js} +1 -1
- package/dist/twilight/{p-be0c7a2c.entry.js → p-0e143834.entry.js} +1 -1
- package/dist/twilight/{p-e1c914a2.entry.js → p-0f54049f.entry.js} +1 -1
- package/dist/twilight/{p-aed022fb.entry.js → p-133422b1.entry.js} +1 -1
- package/dist/twilight/{p-4ef1d5a2.entry.js → p-1351493b.entry.js} +1 -1
- package/dist/twilight/{p-1e488c9d.entry.js → p-1505d5c0.entry.js} +1 -1
- package/dist/twilight/{p-1734962f.entry.js → p-153729e1.entry.js} +1 -1
- package/dist/twilight/{p-b4dc0e25.entry.js → p-185da5d3.entry.js} +1 -1
- package/dist/twilight/{p-3c47611b.entry.js → p-1a40876f.entry.js} +1 -1
- package/dist/twilight/{p-3aa8cb71.entry.js → p-1cac4e8c.entry.js} +1 -1
- package/dist/twilight/{p-63689f46.entry.js → p-22ac4488.entry.js} +1 -1
- package/dist/twilight/{p-21baa6de.entry.js → p-295e29ba.entry.js} +1 -1
- package/dist/twilight/{p-d3ecdf0c.entry.js → p-2a5baa1c.entry.js} +1 -1
- package/dist/twilight/{p-21522361.entry.js → p-2d97e204.entry.js} +1 -1
- package/dist/twilight/{p-200a53c6.entry.js → p-2df8a90f.entry.js} +1 -1
- package/dist/twilight/{p-efbfe361.entry.js → p-2e0c4aba.entry.js} +1 -1
- package/dist/twilight/{p-a62c906d.entry.js → p-3081cb55.entry.js} +1 -1
- package/dist/twilight/{p-8370fbc8.entry.js → p-377578be.entry.js} +1 -1
- package/dist/twilight/{p-70bec3a4.entry.js → p-385698a7.entry.js} +1 -1
- package/dist/twilight/{p-8ae95976.entry.js → p-39261863.entry.js} +1 -1
- package/dist/twilight/{p-f07f0b62.entry.js → p-39ed61d1.entry.js} +1 -1
- package/dist/twilight/{p-a9e09e6d.entry.js → p-3ab079ee.entry.js} +1 -1
- package/dist/twilight/{p-a9438d40.entry.js → p-3ab2c131.entry.js} +1 -1
- package/dist/twilight/{p-3c8cc7b5.entry.js → p-3b0dcbcb.entry.js} +1 -1
- package/dist/twilight/{p-e50a4840.entry.js → p-3c77ac19.entry.js} +1 -1
- package/dist/twilight/{p-bfcbd8fd.entry.js → p-43cdcb03.entry.js} +1 -1
- package/dist/twilight/{p-705c5caf.entry.js → p-4acb81b8.entry.js} +1 -1
- package/dist/twilight/{p-5050358e.entry.js → p-4d725c13.entry.js} +1 -1
- package/dist/twilight/{p-e48ec124.entry.js → p-515699ab.entry.js} +1 -1
- package/dist/twilight/{p-1f9d9730.entry.js → p-58f8109b.entry.js} +1 -1
- package/dist/twilight/{p-559f69c1.entry.js → p-5aa34e28.entry.js} +1 -1
- package/dist/twilight/{p-76089609.entry.js → p-5b75d7a7.entry.js} +1 -1
- package/dist/twilight/p-5be1c192.entry.js +4 -0
- package/dist/twilight/{p-696435b9.entry.js → p-5d44bc7c.entry.js} +1 -1
- package/dist/twilight/{p-2240ca58.entry.js → p-624897fa.entry.js} +1 -1
- package/dist/twilight/{p-d359fa2d.entry.js → p-6af0d2ca.entry.js} +1 -1
- package/dist/twilight/{p-32d45913.entry.js → p-6b70c316.entry.js} +1 -1
- package/dist/twilight/{p-49c75e82.entry.js → p-772aed9b.entry.js} +1 -1
- package/dist/twilight/{p-e4dc59db.entry.js → p-7cd4f855.entry.js} +1 -1
- package/dist/twilight/{p-4dcd11f6.entry.js → p-7ef7e64b.entry.js} +1 -1
- package/dist/twilight/{p-6a205626.entry.js → p-852fd338.entry.js} +1 -1
- package/dist/twilight/{p-13f0e9a6.entry.js → p-86678003.entry.js} +1 -1
- package/dist/twilight/{p-4f956c6f.entry.js → p-8cb30cca.entry.js} +1 -1
- package/dist/twilight/{p-ded95666.entry.js → p-917e46be.entry.js} +1 -1
- package/dist/twilight/{p-902e9028.entry.js → p-938afc60.entry.js} +1 -1
- package/dist/twilight/{p-6eca5aed.entry.js → p-984013c3.entry.js} +1 -1
- package/dist/twilight/{p-feadc0c9.entry.js → p-98ec6e04.entry.js} +1 -1
- package/dist/twilight/{p-4349783f.entry.js → p-9c63ee4e.entry.js} +1 -1
- package/dist/twilight/{p-CyTaLJo3.js → p-B2F0YSfq.js} +1 -1
- package/dist/twilight/p-BN-W7MPg.js +4 -0
- package/dist/twilight/{p-C36yOeFI.js → p-BRjoSniA.js} +1 -1
- package/dist/twilight/{p-C2FQvIq0.js → p-BqtdPtV1.js} +1 -1
- package/dist/twilight/{p-Bjl1PEUS.js → p-C2UWOjWB.js} +1 -1
- package/dist/twilight/{p-Crijf68j.js → p-CDoLIl29.js} +2 -2
- package/dist/twilight/{p-D97pUIlk.js → p-CMHTSC6o.js} +1 -1
- package/dist/twilight/{p-D-_uPomU.js → p-CUPXifBZ.js} +1 -1
- package/dist/twilight/{p-CdQOKISG.js → p-CVw6aBvl.js} +1 -1
- package/dist/twilight/{p-Ba2rQmJW.js → p-DMLBy1NO.js} +1 -1
- package/dist/twilight/{p-88e4d404.entry.js → p-a4469aa0.entry.js} +1 -1
- package/dist/twilight/{p-f31cac68.entry.js → p-a4a2465c.entry.js} +1 -1
- package/dist/twilight/p-ac0254de.entry.js +4 -0
- package/dist/twilight/{p-ad2dff14.entry.js → p-ac428bc4.entry.js} +1 -1
- package/dist/twilight/{p-8e3ea4e7.entry.js → p-ac9a1a33.entry.js} +1 -1
- package/dist/twilight/{p-dac7d5b1.entry.js → p-ad3ae322.entry.js} +1 -1
- package/dist/twilight/{p-51bee591.entry.js → p-b3662c2a.entry.js} +1 -1
- package/dist/twilight/{p-926db077.entry.js → p-b3cabdb3.entry.js} +1 -1
- package/dist/twilight/{p-720034f2.entry.js → p-b578a997.entry.js} +1 -1
- package/dist/twilight/{p-88d2a8aa.entry.js → p-b66fe08b.entry.js} +1 -1
- package/dist/twilight/{p-7d86d46a.entry.js → p-bafeade1.entry.js} +1 -1
- package/dist/twilight/{p-29e299b8.entry.js → p-bcd0be09.entry.js} +1 -1
- package/dist/twilight/{p-5bd9401a.entry.js → p-bcf9d2a2.entry.js} +1 -1
- package/dist/twilight/{p-3356808f.entry.js → p-bd8d866d.entry.js} +1 -1
- package/dist/twilight/{p-a7656ecb.entry.js → p-c0bf2216.entry.js} +1 -1
- package/dist/twilight/{p-6ae9fc35.entry.js → p-c37406c2.entry.js} +1 -1
- package/dist/twilight/{p-fcbf208b.entry.js → p-c7ae5ce3.entry.js} +1 -1
- package/dist/twilight/{p-f4050df2.entry.js → p-cf63495e.entry.js} +1 -1
- package/dist/twilight/{p-4c30d956.entry.js → p-d222cefc.entry.js} +1 -1
- package/dist/twilight/{p-b1c4b976.entry.js → p-d250c573.entry.js} +1 -1
- package/dist/twilight/{p-89691a0a.entry.js → p-d279cb22.entry.js} +1 -1
- package/dist/twilight/{p-5da7e2ad.entry.js → p-d2906cde.entry.js} +1 -1
- package/dist/twilight/{p-0935d707.entry.js → p-d2e2db87.entry.js} +1 -1
- package/dist/twilight/{p-3c885439.entry.js → p-d345c7b2.entry.js} +1 -1
- package/dist/twilight/{p-57f9e1e1.entry.js → p-d37ceff0.entry.js} +1 -1
- package/dist/twilight/{p-573aafb0.entry.js → p-d58195a2.entry.js} +1 -1
- package/dist/twilight/{p-ef990719.entry.js → p-d6ba436b.entry.js} +1 -1
- package/dist/twilight/{p-b7cef4bd.entry.js → p-d70f3b34.entry.js} +1 -1
- package/dist/twilight/{p-2012b777.entry.js → p-dc1adf40.entry.js} +1 -1
- package/dist/twilight/p-e4be3123.entry.js +4 -0
- package/dist/twilight/{p-e5063b7f.entry.js → p-e81fcaf5.entry.js} +1 -1
- package/dist/twilight/{p-d6ee8aec.entry.js → p-ec3aedf8.entry.js} +1 -1
- package/dist/twilight/{p-32774ff0.entry.js → p-f2011a00.entry.js} +1 -1
- package/dist/twilight/{p-7fa23855.entry.js → p-f47a06bf.entry.js} +1 -1
- package/dist/twilight/{p-60e74f7f.entry.js → p-f7e080d7.entry.js} +1 -1
- package/dist/twilight/{p-ce2cef62.entry.js → p-f8bb7a1b.entry.js} +1 -1
- package/dist/twilight/p-f9ec6fd3.entry.js +4 -0
- package/dist/twilight/{p-eeccd9c0.entry.js → p-fcf42564.entry.js} +1 -1
- package/dist/twilight/{p-41387dee.entry.js → p-fd4f51b0.entry.js} +1 -1
- package/dist/twilight/{p-1a2b7660.entry.js → p-fdbedc30.entry.js} +1 -1
- package/dist/twilight/{p-2d6cb58e.entry.js → p-ff8b92fe.entry.js} +1 -1
- package/dist/twilight/{p-CLi67lW6.js → p-gBZJcPA-.js} +1 -1
- package/dist/twilight/{p-D35nGmrk.js → p-hRifplWF.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-summary-card/salla-cart-summary-card.d.ts +1 -0
- package/dist/types/components/salla-order-shipments/interfaces.d.ts +15 -0
- package/dist/types/components/salla-order-shipments/salla-order-shipments.d.ts +20 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +4 -0
- package/dist/types/components.d.ts +45 -0
- package/package.json +5 -5
- package/dist/twilight/p-1fd7917d.entry.js +0 -4
- package/dist/twilight/p-422798b3.entry.js +0 -4
- package/dist/twilight/p-D5YJIW7-.js +0 -4
- package/dist/twilight/p-b3848ba3.entry.js +0 -4
|
@@ -47,6 +47,17 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
47
47
|
'cart::coupon.deleted',
|
|
48
48
|
];
|
|
49
49
|
this.cartEventHandler = (payload) => this.applyCartData(this.extractCart(payload));
|
|
50
|
+
// Failed submit → release the pinned loading right away instead of waiting
|
|
51
|
+
// out the 10s safety timeout next to the error toast.
|
|
52
|
+
this.releaseSubmitLoading = () => {
|
|
53
|
+
this.submitObserver?.disconnect();
|
|
54
|
+
this.submitObserver = null;
|
|
55
|
+
if (this.submitObserverTimeout) {
|
|
56
|
+
clearTimeout(this.submitObserverTimeout);
|
|
57
|
+
this.submitObserverTimeout = undefined;
|
|
58
|
+
}
|
|
59
|
+
this.host.querySelector('#s-cart-summary-card-submit')?.removeAttribute?.('loading');
|
|
60
|
+
};
|
|
50
61
|
this.toggleSheet = () => {
|
|
51
62
|
if (!this.isDesktop)
|
|
52
63
|
this.isOpen = !this.isOpen;
|
|
@@ -66,7 +77,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
66
77
|
return;
|
|
67
78
|
}
|
|
68
79
|
const btn = this.host.querySelector('#s-cart-summary-card-submit');
|
|
69
|
-
if (
|
|
80
|
+
if (btn) {
|
|
70
81
|
btn.load?.();
|
|
71
82
|
// Pin loading across re-renders; auto-clear after 10s so a failed submit
|
|
72
83
|
// doesn't lock the button forever.
|
|
@@ -85,8 +96,8 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
85
96
|
}, 10000);
|
|
86
97
|
}
|
|
87
98
|
salla.cart?.submit?.();
|
|
88
|
-
// Release after submit kicks off: success navigates away
|
|
89
|
-
//
|
|
99
|
+
// Release after submit kicks off: success navigates away. Short delay
|
|
100
|
+
// blocks the double-tap race without a long lock.
|
|
90
101
|
window.setTimeout(() => { this.isSubmitting = false; }, 1500);
|
|
91
102
|
};
|
|
92
103
|
}
|
|
@@ -106,6 +117,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
106
117
|
this.loadTranslations();
|
|
107
118
|
// 'cart::updated' is in cartEventNames — don't also use onUpdated (it leaks, no off()).
|
|
108
119
|
this.cartEventNames.forEach(name => salla.event.on(name, this.cartEventHandler));
|
|
120
|
+
salla.event.on('cart::submit.failed', this.releaseSubmitLoading);
|
|
109
121
|
this.fetchCart();
|
|
110
122
|
}
|
|
111
123
|
loadTranslations() {
|
|
@@ -222,6 +234,7 @@ const SallaCartSummaryCard$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartS
|
|
|
222
234
|
}
|
|
223
235
|
this.mediaQueryList = null;
|
|
224
236
|
this.cartEventNames.forEach(name => salla.event.off(name, this.cartEventHandler));
|
|
237
|
+
salla.event.off('cart::submit.failed', this.releaseSubmitLoading);
|
|
225
238
|
});
|
|
226
239
|
}
|
|
227
240
|
fetchCart() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SallaOrderShipments extends Components.SallaOrderShipments, HTMLElement {}
|
|
4
|
+
export const SallaOrderShipments: {
|
|
5
|
+
prototype: SallaOrderShipments;
|
|
6
|
+
new (): SallaOrderShipments;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
5
|
+
import { i as iconCopy } from './swap-stroke.js';
|
|
6
|
+
|
|
7
|
+
const sallaOrderShipmentsCss = ":host{display:block}";
|
|
8
|
+
|
|
9
|
+
const SallaOrderShipments$1 = /*@__PURE__*/ proxyCustomElement(class SallaOrderShipments extends HTMLElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.shipments = [];
|
|
14
|
+
}
|
|
15
|
+
async componentWillLoad() {
|
|
16
|
+
await salla.onReady();
|
|
17
|
+
return this.fetchShipments();
|
|
18
|
+
}
|
|
19
|
+
async onOrderIdChange() {
|
|
20
|
+
this.shipments = [];
|
|
21
|
+
await this.fetchShipments();
|
|
22
|
+
}
|
|
23
|
+
async fetchShipments() {
|
|
24
|
+
if (!salla.config.get('store.features', []).includes('thankyou-page-multi-shipments'))
|
|
25
|
+
return;
|
|
26
|
+
const orderId = this.orderId || salla.config.get('page.id');
|
|
27
|
+
if (!orderId)
|
|
28
|
+
return;
|
|
29
|
+
try {
|
|
30
|
+
const response = await salla.order.api.getShipments(orderId);
|
|
31
|
+
const data = response?.data;
|
|
32
|
+
this.shipments = Array.isArray(data) ? data : Array.isArray(data?.data) ? data.data : [];
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
const message = error?.response?.data?.error?.message || error?.response?.data?.message;
|
|
36
|
+
if (message)
|
|
37
|
+
salla.notify.error(message);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
label(key, fallback) {
|
|
41
|
+
return salla.lang.getWithDefault(key, fallback);
|
|
42
|
+
}
|
|
43
|
+
async copyTracking(value) {
|
|
44
|
+
try {
|
|
45
|
+
await navigator.clipboard.writeText(value);
|
|
46
|
+
salla.notify.success(this.label('common.elements.copied', 'تم النسخ'));
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
// clipboard write failed silently
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
renderTracking(shipment) {
|
|
53
|
+
const number = shipment.number;
|
|
54
|
+
if (!number) {
|
|
55
|
+
return (h("span", { class: "s-order-shipments-placeholder" }, this.label('pages.thank_you.tracking_placeholder', 'سيتم تعيين رقم تتبع بمجرد تجهيز الشحنة')));
|
|
56
|
+
}
|
|
57
|
+
return (h("span", { class: "s-order-shipments-tracking" }, this.label('pages.thank_you.tracking_no', 'رقم تتبع الشحنة'), h("b", { dir: "ltr" }, "#", number), h("button", { type: "button", class: "s-order-shipments-copy", title: this.label('common.elements.copy', 'نسخ'), onClick: () => this.copyTracking(String(number)) }, h("span", { innerHTML: iconCopy }))));
|
|
58
|
+
}
|
|
59
|
+
renderShipment(shipment, index) {
|
|
60
|
+
return (h("div", { class: "s-order-shipments-card" }, h("div", { class: "s-order-shipments-header" }, shipment.logo ? (h("img", { src: shipment.logo, class: "s-order-shipments-logo", alt: shipment.name || '', width: "56", height: "32" })) : null, h("span", { class: "s-order-shipments-title" }, this.label('pages.thank_you.shipment', 'الشحنة'), " (", index + 1, ")")), h("div", { class: "s-order-shipments-info" }, this.renderTracking(shipment)), h("div", { class: "s-order-shipments-items" }, (shipment.products || []).map(product => (h("span", { class: "s-order-shipments-item", title: product.name }, product.image ? (h("img", { src: product.image, alt: product.name, width: "56", height: "56" })) : (h("span", { class: "s-order-shipments-item-name" }, product.name))))))));
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
// Only surface the section for split shipments (2+); single-shipment orders render nothing.
|
|
64
|
+
if (this.shipments.length < 2) {
|
|
65
|
+
return h(Host, { class: "s-order-shipments-empty" });
|
|
66
|
+
}
|
|
67
|
+
return (h(Host, { class: "s-order-shipments-wrapper" }, h("div", { class: "s-order-shipments-list" }, this.shipments.map((shipment, index) => this.renderShipment(shipment, index)))));
|
|
68
|
+
}
|
|
69
|
+
static get watchers() { return {
|
|
70
|
+
"orderId": ["onOrderIdChange"]
|
|
71
|
+
}; }
|
|
72
|
+
static get style() { return sallaOrderShipmentsCss; }
|
|
73
|
+
}, [0, "salla-order-shipments", {
|
|
74
|
+
"orderId": [8, "order-id"],
|
|
75
|
+
"shipments": [32]
|
|
76
|
+
}, undefined, {
|
|
77
|
+
"orderId": ["onOrderIdChange"]
|
|
78
|
+
}]);
|
|
79
|
+
function defineCustomElement$1() {
|
|
80
|
+
if (typeof customElements === "undefined") {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const components = ["salla-order-shipments"];
|
|
84
|
+
components.forEach(tagName => { switch (tagName) {
|
|
85
|
+
case "salla-order-shipments":
|
|
86
|
+
if (!customElements.get(tagName)) {
|
|
87
|
+
customElements.define(tagName, SallaOrderShipments$1);
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
} });
|
|
91
|
+
}
|
|
92
|
+
defineCustomElement$1();
|
|
93
|
+
|
|
94
|
+
const SallaOrderShipments = SallaOrderShipments$1;
|
|
95
|
+
const defineCustomElement = defineCustomElement$1;
|
|
96
|
+
|
|
97
|
+
export { SallaOrderShipments, defineCustomElement };
|
|
@@ -75,6 +75,10 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
75
75
|
pending_orders: salla.helpers.number(salla.storage.get('user.pending_orders') || 0),
|
|
76
76
|
};
|
|
77
77
|
this.sallaAccountEnabled = false;
|
|
78
|
+
this.walletBalance = '';
|
|
79
|
+
this.walletBalanceLoading = false;
|
|
80
|
+
// Fetched once per page load; resets on remount (page refresh), not on open.
|
|
81
|
+
this.walletBalanceLoaded = false;
|
|
78
82
|
this.hasBadges = Number(salla.storage.get('user.pending_orders')) > 0 ||
|
|
79
83
|
Number(salla.storage.get('user.notifications')) > 0;
|
|
80
84
|
/**
|
|
@@ -154,6 +158,28 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
154
158
|
this.loyalty_points = Salla.lang.get('pages.loyalty_program.loyalty_points');
|
|
155
159
|
this.logout = Salla.lang.get('blocks.header.logout');
|
|
156
160
|
}
|
|
161
|
+
async loadWalletBalance() {
|
|
162
|
+
// Live balance instead of the cached (stale) config; light skips transactions.
|
|
163
|
+
if (Salla.config.isGuest())
|
|
164
|
+
return;
|
|
165
|
+
this.walletBalanceLoading = true;
|
|
166
|
+
try {
|
|
167
|
+
// withoutNotifier: a failed background fetch must not toast the shopper.
|
|
168
|
+
const resp = await salla.api.withoutNotifier(() => salla.api.request('/balance/wallet?light=1'));
|
|
169
|
+
const balance = Number(resp?.data?.balance) || 0;
|
|
170
|
+
// Currency stays from config — it doesn't go stale like the amount.
|
|
171
|
+
this.walletBalance = balance
|
|
172
|
+
? Salla.money({ amount: Number(balance.toFixed(2)), currency: Salla.config.get('user.currency_code') })
|
|
173
|
+
: '';
|
|
174
|
+
this.walletBalanceLoaded = true; // cache for the rest of this page load
|
|
175
|
+
}
|
|
176
|
+
catch {
|
|
177
|
+
// keep the last value on failure (retries on next open)
|
|
178
|
+
}
|
|
179
|
+
finally {
|
|
180
|
+
this.walletBalanceLoading = false;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
157
183
|
initiate() {
|
|
158
184
|
if (Salla.config.isGuest()) {
|
|
159
185
|
return this.autoMountLoginModal();
|
|
@@ -215,6 +241,10 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
215
241
|
this.opened = !this.opened;
|
|
216
242
|
e.stopPropagation();
|
|
217
243
|
if (this.opened) {
|
|
244
|
+
// Fetch once per page load; reuse the cached value on later opens.
|
|
245
|
+
if (window.can_access_wallet && !this.walletBalanceLoaded && !this.walletBalanceLoading) {
|
|
246
|
+
this.loadWalletBalance();
|
|
247
|
+
}
|
|
218
248
|
window.addEventListener('click', this.onClickOutside);
|
|
219
249
|
}
|
|
220
250
|
}
|
|
@@ -257,7 +287,7 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
257
287
|
return (h("li", { class: {
|
|
258
288
|
's-user-menu-dropdown-item': true,
|
|
259
289
|
's-user-menu-dropdown-item-logout': i + 1 === Object.entries(this.items).length,
|
|
260
|
-
} }, h("a", { ...this.getItemAnchorLinkAttrs(itemKey), class: "s-user-menu-dropdown-item-link", onClick: event => this.menuItemClicked(event, itemKey) }, h("i", { class: "s-user-menu-dropdown-item-prefix", innerHTML: itemValue }), h("span", { class: "s-user-menu-dropdown-item-title" }, this[itemKey]), !['٠', '0', undefined].includes(this.badges[itemKey]) ? (h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[itemKey])) : (''))));
|
|
290
|
+
} }, h("a", { ...this.getItemAnchorLinkAttrs(itemKey), class: "s-user-menu-dropdown-item-link", onClick: event => this.menuItemClicked(event, itemKey) }, h("i", { class: "s-user-menu-dropdown-item-prefix", innerHTML: itemValue }), h("span", { class: "s-user-menu-dropdown-item-title" }, this[itemKey]), itemKey === 'wallet' && !this.inline && (this.walletBalance || this.walletBalanceLoading) ? (h("span", { class: "s-user-menu-dropdown-item-balance", style: { display: 'inline-flex', alignItems: 'center', gap: '4px' } }, this.walletBalance ? h("span", { innerHTML: this.walletBalance }) : '', this.walletBalanceLoading ? h("salla-loading", { size: "14" }) : '')) : (''), !['٠', '0', undefined].includes(this.badges[itemKey]) ? (h("span", { class: "s-user-menu-dropdown-item-badge" }, this.badges[itemKey])) : (''))));
|
|
261
291
|
}
|
|
262
292
|
componentShouldUpdate() {
|
|
263
293
|
if (!this.opened) {
|
|
@@ -310,6 +340,8 @@ const SallaUserMenu$1 = /*@__PURE__*/ proxyCustomElement(class SallaUserMenu ext
|
|
|
310
340
|
"is_loggedIn": [32],
|
|
311
341
|
"badges": [32],
|
|
312
342
|
"sallaAccountEnabled": [32],
|
|
343
|
+
"walletBalance": [32],
|
|
344
|
+
"walletBalanceLoading": [32],
|
|
313
345
|
"hasBadges": [32],
|
|
314
346
|
"profileUrl": [32],
|
|
315
347
|
"OrderUpdate": [32]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-CDoLIl29.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|