@salla.sa/twilight-components 2.14.487 → 2.14.489
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-D8YNIT7U.js → filepond-C-1J1qrF.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-DSZGbtH3.js → filepond-plugin-file-poster-B8fUrKqJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-CDPCt-vD.js → filepond-plugin-file-validate-size-BJ4Bw3Ju.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-PPR9wk_f.js → filepond-plugin-file-validate-type-D_Smjf6h.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CbzNxXz5.js → filepond-plugin-image-edit-BDZBDL-U.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-CHOCkxIA.js → filepond-plugin-image-exif-orientation-B68mU2op.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-DPzPSwHT.js → filepond-plugin-image-preview-B2RzZ9r9.js} +1 -1
- package/dist/cjs/{functions-BJ567SZR.js → functions-DdZX56J7.js} +1 -1
- package/dist/cjs/{index-AuVRM2C2.js → index-B5CW9Xve.js} +1 -1
- package/dist/cjs/{index-KEg0BIuu.js → index-DWea49r_.js} +6 -2
- 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 +3 -2
- 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-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +21 -13
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-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.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-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 +296 -0
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- 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 +5 -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-DFl5fI3j.js → tracked-promise-DNxhV4_1.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CUpM_-PS.js → vanilla-picker-ClijNDRd.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/salla-breadcrumb/salla-breadcrumb.js +2 -1
- package/dist/collection/components/salla-bullet-delivery/salla-bullet-delivery.js +20 -12
- package/dist/collection/components/salla-order-cancel/interfaces.js +1 -0
- package/dist/collection/components/salla-order-cancel/salla-order-cancel.css +17 -0
- package/dist/collection/components/salla-order-cancel/salla-order-cancel.js +366 -0
- package/dist/collection/components/salla-user-menu/salla-user-menu.js +4 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-breadcrumb.js +2 -1
- package/dist/components/salla-bullet-delivery.js +20 -12
- package/dist/components/salla-order-cancel.d.ts +11 -0
- package/dist/components/salla-order-cancel.js +347 -0
- package/dist/components/salla-user-menu.js +4 -1
- package/dist/esm/{filepond-plugin-file-poster-Bm-5APBo.js → filepond-plugin-file-poster-B9sxi6Yz.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-DkYobKMY.js → filepond-plugin-file-validate-size-HWpVatr_.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-BXKbNDGH.js → filepond-plugin-file-validate-type-SgpUhQB_.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-B64dqBYZ.js → filepond-plugin-image-edit-0F90Q6lM.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BelOzBrj.js → filepond-plugin-image-exif-orientation-CXJDp_1v.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-X67Ek3oE.js → filepond-plugin-image-preview-APl1nt4k.js} +1 -1
- package/dist/esm/{filepond-BsLighF8.js → filepond-z2hEBvHC.js} +1 -1
- package/dist/esm/{functions-DobdGlrA.js → functions-BCdJLPcs.js} +1 -1
- package/dist/esm/{index-DBMDFsFH.js → index-DNWyGkAx.js} +6 -2
- package/dist/esm/{index-yDeCyY3S.js → index-DhwQVX77.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 +3 -2
- 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-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +21 -13
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-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.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-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 +294 -0
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- 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 +5 -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-6uJz7V9Q.js → tracked-promise-CjtqaGP2.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-Bw2Vk5YA.js → vanilla-picker-DPMDb9SB.js} +1 -1
- package/dist/twilight/{p-519551ab.entry.js → p-02e2f661.entry.js} +1 -1
- package/dist/twilight/{p-ef06457d.entry.js → p-04a6cb8f.entry.js} +1 -1
- package/dist/twilight/p-06966ed6.entry.js +4 -0
- package/dist/twilight/{p-51fbf1bb.entry.js → p-082f3913.entry.js} +1 -1
- package/dist/twilight/{p-4a3ccff2.entry.js → p-08641aeb.entry.js} +1 -1
- package/dist/twilight/{p-c253f69c.entry.js → p-094dcf0c.entry.js} +1 -1
- package/dist/twilight/{p-000022be.entry.js → p-0a9af711.entry.js} +1 -1
- package/dist/twilight/{p-14e936b0.entry.js → p-0cd023d2.entry.js} +1 -1
- package/dist/twilight/{p-d3d2a114.entry.js → p-12ccff98.entry.js} +1 -1
- package/dist/twilight/{p-29620c50.entry.js → p-14f8ba23.entry.js} +1 -1
- package/dist/twilight/{p-57785b92.entry.js → p-160fc21e.entry.js} +1 -1
- package/dist/twilight/{p-24d268c7.entry.js → p-1a957d13.entry.js} +1 -1
- package/dist/twilight/{p-f856fe4d.entry.js → p-1aeeb0f0.entry.js} +1 -1
- package/dist/twilight/{p-c9608410.entry.js → p-1efc0eed.entry.js} +1 -1
- package/dist/twilight/{p-7bd7baa5.entry.js → p-24127075.entry.js} +1 -1
- package/dist/twilight/{p-fd99de6e.entry.js → p-26faf85e.entry.js} +1 -1
- package/dist/twilight/{p-fdb0f6cc.entry.js → p-338a55c1.entry.js} +1 -1
- package/dist/twilight/{p-ce0685d1.entry.js → p-39b8ffcd.entry.js} +1 -1
- package/dist/twilight/{p-4836c3eb.entry.js → p-3c10826c.entry.js} +1 -1
- package/dist/twilight/{p-7b0f537a.entry.js → p-3ce46edf.entry.js} +1 -1
- package/dist/twilight/{p-6e2b2072.entry.js → p-3e7a3c6e.entry.js} +1 -1
- package/dist/twilight/{p-0c219cad.entry.js → p-3f924fc5.entry.js} +2 -2
- package/dist/twilight/{p-b7da726a.entry.js → p-40407996.entry.js} +1 -1
- package/dist/twilight/{p-4f8ec3a6.entry.js → p-43a2f42e.entry.js} +1 -1
- package/dist/twilight/p-46cd5ece.entry.js +4 -0
- package/dist/twilight/{p-60545378.entry.js → p-47dd6817.entry.js} +1 -1
- package/dist/twilight/{p-5119fe5d.entry.js → p-4ab4e5ea.entry.js} +1 -1
- package/dist/twilight/{p-f5d229a7.entry.js → p-4b17c9a0.entry.js} +1 -1
- package/dist/twilight/{p-d01178f0.entry.js → p-5171b440.entry.js} +1 -1
- package/dist/twilight/{p-f267ac72.entry.js → p-52283d18.entry.js} +1 -1
- package/dist/twilight/{p-5e14fbf5.entry.js → p-56365c64.entry.js} +1 -1
- package/dist/twilight/p-5993b7d0.entry.js +4 -0
- package/dist/twilight/{p-18f264f9.entry.js → p-5b989746.entry.js} +1 -1
- package/dist/twilight/{p-C_vo3xPL.js → p-5wempgCB.js} +1 -1
- package/dist/twilight/{p-c46cf468.entry.js → p-602df9ed.entry.js} +1 -1
- package/dist/twilight/{p-ad1d3cdf.entry.js → p-61813e83.entry.js} +1 -1
- package/dist/twilight/{p-d8fb7f9a.entry.js → p-6494c6bf.entry.js} +1 -1
- package/dist/twilight/{p-3a7f5c6e.entry.js → p-6852162e.entry.js} +1 -1
- package/dist/twilight/{p-de41e9b5.entry.js → p-6891f00b.entry.js} +1 -1
- package/dist/twilight/{p-ddd22625.entry.js → p-69766916.entry.js} +1 -1
- package/dist/twilight/{p-ab404907.entry.js → p-6ab60f90.entry.js} +1 -1
- package/dist/twilight/{p-e84f7790.entry.js → p-6e7a6f4b.entry.js} +1 -1
- package/dist/twilight/{p-CDTIhPDr.js → p-6sBYUIya.js} +1 -1
- package/dist/twilight/{p-da827143.entry.js → p-78f161f2.entry.js} +1 -1
- package/dist/twilight/{p-67ce35b0.entry.js → p-7a0d2f4d.entry.js} +1 -1
- package/dist/twilight/{p-11f843fd.entry.js → p-7bbea228.entry.js} +1 -1
- package/dist/twilight/{p-acd8aa32.entry.js → p-7fb92e0b.entry.js} +1 -1
- package/dist/twilight/{p-b4f4e0b7.entry.js → p-844c6c1f.entry.js} +1 -1
- package/dist/twilight/{p-08dfa3c5.entry.js → p-85c6c44f.entry.js} +1 -1
- package/dist/twilight/{p-0412fe67.entry.js → p-85fc94be.entry.js} +1 -1
- package/dist/twilight/{p-00fcfe8e.entry.js → p-8fec15f8.entry.js} +1 -1
- package/dist/twilight/{p-1bb06699.entry.js → p-90534314.entry.js} +1 -1
- package/dist/twilight/{p-8336df51.entry.js → p-9273a620.entry.js} +1 -1
- package/dist/twilight/{p-546b31a3.entry.js → p-9474d525.entry.js} +1 -1
- package/dist/twilight/{p-46294bef.entry.js → p-991b1e85.entry.js} +1 -1
- package/dist/twilight/{p-39a49ae9.entry.js → p-9fc965a7.entry.js} +1 -1
- package/dist/twilight/{p-uiIu01tD.js → p-Bw7P5SwX.js} +1 -1
- package/dist/twilight/{p-Dwu1e7SR.js → p-BwggHXVj.js} +1 -1
- package/dist/twilight/{p-CcfoPQKG.js → p-C5HojqDY.js} +1 -1
- package/dist/twilight/{p-BR9zeoCF.js → p-C72A7Y44.js} +1 -1
- package/dist/twilight/{p-qj0-UBFk.js → p-Ca18LMTl.js} +1 -1
- package/dist/twilight/{p-BTYXaopE.js → p-CsSICzhL.js} +1 -1
- package/dist/twilight/{p-C_htBBK4.js → p-DJ3ziTwG.js} +1 -1
- package/dist/twilight/{p-DBMDFsFH.js → p-DNWyGkAx.js} +1 -1
- package/dist/twilight/{p-lQbFKmnv.js → p-DQUSqsnq.js} +1 -1
- package/dist/twilight/{p-CMW3pjiL.js → p-Dp4UckOj.js} +1 -1
- package/dist/twilight/{p-76672fe3.entry.js → p-a965c431.entry.js} +1 -1
- package/dist/twilight/{p-967d356e.entry.js → p-aaf7cbb1.entry.js} +1 -1
- package/dist/twilight/{p-fa900f26.entry.js → p-ab2a5243.entry.js} +1 -1
- package/dist/twilight/{p-49275f85.entry.js → p-ac7c0ea4.entry.js} +1 -1
- package/dist/twilight/{p-18efb27e.entry.js → p-afc451ef.entry.js} +1 -1
- package/dist/twilight/{p-79bff80a.entry.js → p-b0d5084c.entry.js} +1 -1
- package/dist/twilight/{p-52cab4a6.entry.js → p-b5d32897.entry.js} +1 -1
- package/dist/twilight/{p-130633cc.entry.js → p-b6cdfd09.entry.js} +1 -1
- package/dist/twilight/{p-cf1b9798.entry.js → p-c4c32432.entry.js} +1 -1
- package/dist/twilight/{p-ce1bc4b0.entry.js → p-c84ada78.entry.js} +1 -1
- package/dist/twilight/{p-6bdcd67d.entry.js → p-c9aa80c3.entry.js} +1 -1
- package/dist/twilight/{p-5dfb7601.entry.js → p-ca028945.entry.js} +1 -1
- package/dist/twilight/{p-f12670a1.entry.js → p-cbc66d20.entry.js} +1 -1
- package/dist/twilight/{p-636e6994.entry.js → p-cee1f87a.entry.js} +1 -1
- package/dist/twilight/{p-9ab52d09.entry.js → p-cfc209db.entry.js} +1 -1
- package/dist/twilight/{p-4336dce1.entry.js → p-d239611f.entry.js} +1 -1
- package/dist/twilight/{p-1e418b8f.entry.js → p-d3f3eed5.entry.js} +1 -1
- package/dist/twilight/{p-e21a23d2.entry.js → p-da66f939.entry.js} +1 -1
- package/dist/twilight/{p-3f153e79.entry.js → p-db9dc344.entry.js} +1 -1
- package/dist/twilight/{p-44f67d40.entry.js → p-de942889.entry.js} +1 -1
- package/dist/twilight/{p-8a7f48ce.entry.js → p-e2da0555.entry.js} +1 -1
- package/dist/twilight/{p-1b4fd0db.entry.js → p-e9cdcf2f.entry.js} +1 -1
- package/dist/twilight/{p-1547f282.entry.js → p-ed02b506.entry.js} +1 -1
- package/dist/twilight/{p-cc75ae11.entry.js → p-edc4193f.entry.js} +1 -1
- package/dist/twilight/{p-61332673.entry.js → p-ef2d94d3.entry.js} +1 -1
- package/dist/twilight/{p-b3b050e7.entry.js → p-f01c12dc.entry.js} +1 -1
- package/dist/twilight/{p-1450bf80.entry.js → p-f12a28f9.entry.js} +1 -1
- package/dist/twilight/{p-2f48e8e1.entry.js → p-f14fe365.entry.js} +1 -1
- package/dist/twilight/{p-a767d9fe.entry.js → p-f2dbde1c.entry.js} +1 -1
- package/dist/twilight/{p-b3b78bf5.entry.js → p-f2e9d83b.entry.js} +1 -1
- package/dist/twilight/{p-b835777d.entry.js → p-f6205375.entry.js} +1 -1
- package/dist/twilight/{p-ffd6ad27.entry.js → p-f6d6dada.entry.js} +1 -1
- package/dist/twilight/p-f8933bd5.entry.js +4 -0
- package/dist/twilight/{p-96779a0c.entry.js → p-f9192741.entry.js} +1 -1
- package/dist/twilight/{p-7a5894fb.entry.js → p-fa5fa155.entry.js} +1 -1
- package/dist/twilight/{p-37ced7ab.entry.js → p-fc676125.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-order-cancel/interfaces.d.ts +20 -0
- package/dist/types/components/salla-order-cancel/salla-order-cancel.d.ts +42 -0
- package/dist/types/components/salla-user-menu/salla-user-menu.d.ts +1 -0
- package/dist/types/components.d.ts +31 -0
- package/package.json +5 -5
- package/dist/twilight/p-b3f26711.entry.js +0 -4
- package/dist/twilight/p-cf96947a.entry.js +0 -4
- package/dist/twilight/p-e5022e8f.entry.js +0 -4
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
|
+
|
|
8
|
+
const sallaOrderCancelCss = ".s-order-cancel-reason .s-order-cancel-radio::before,.s-order-cancel-reason .s-radio::before{content:\"\";width:10px;height:10px;border-radius:50%;transform:scale(0);transition:120ms transform ease-in-out;background-color:#fff;box-shadow:inset 1em 1em #fff}.s-order-cancel-reason .s-order-cancel-radio:checked::before,.s-order-cancel-reason .s-radio:checked::before{transform:scale(1);background-color:var(--color-primary);box-shadow:inset 1em 1em var(--color-primary)}";
|
|
9
|
+
|
|
10
|
+
const MAX_NOTE = 250;
|
|
11
|
+
const ORDER_WAIT_MS = 2500;
|
|
12
|
+
const DATE_HEADER = 'td.single-order-header-item:not(.flex)';
|
|
13
|
+
const CANCELLED_MARKER = '[data-salla-order-cancelled-reason]';
|
|
14
|
+
const CANCELLED_BY_LABELS = {
|
|
15
|
+
customer: 'أُلغي الطلب من قِبل العميل',
|
|
16
|
+
merchant: 'أُلغي الطلب من قِبل المتجر',
|
|
17
|
+
};
|
|
18
|
+
const LANG_PAIRS = [
|
|
19
|
+
['pages.orders.cancel_modal_title', 'إلغاء الطلب', 'Cancel order'],
|
|
20
|
+
['pages.orders.cancel_reason_title', 'لماذا ترغب في إلغاء الطلب؟', 'Why do you want to cancel this order?'],
|
|
21
|
+
['pages.orders.cancel_reason_subtitle', 'ساعدنا نعرف السبب لتحسين تجربتك.', 'Help us understand why to improve your experience.'],
|
|
22
|
+
['pages.orders.cancel_reason_confirm', 'تأكيد إلغاء الطلب', 'Confirm order cancellation'],
|
|
23
|
+
['pages.orders.cancel_reason_back', 'تراجع', 'Go back'],
|
|
24
|
+
['pages.orders.cancel_reason_note_placeholder', 'اذكر السبب', 'Mention the reason'],
|
|
25
|
+
['pages.orders.cancelled_by_customer', CANCELLED_BY_LABELS.customer, 'Order cancelled by the customer'],
|
|
26
|
+
['pages.orders.cancelled_by_merchant', CANCELLED_BY_LABELS.merchant, 'Order cancelled by the merchant'],
|
|
27
|
+
['pages.orders.cancel_reason_char_limit', 'يتجاوز النص حد الأحرف المسموح', 'Text exceeds the allowed character limit'],
|
|
28
|
+
];
|
|
29
|
+
const parseJson = (value) => {
|
|
30
|
+
if (!value)
|
|
31
|
+
return null;
|
|
32
|
+
try {
|
|
33
|
+
const data = typeof value === 'string' ? JSON.parse(value) : value;
|
|
34
|
+
return data && typeof data === 'object' ? data : null;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const parseCancelledReason = (raw) => {
|
|
41
|
+
const data = parseJson(raw);
|
|
42
|
+
const reasons = Array.isArray(data?.reasons)
|
|
43
|
+
? data.reasons.filter((r) => typeof r === 'string' && r.length > 0)
|
|
44
|
+
: [];
|
|
45
|
+
if (!reasons.length)
|
|
46
|
+
return null;
|
|
47
|
+
return { cancelled_by: data?.cancelled_by === 'merchant' ? 'merchant' : 'customer', reasons };
|
|
48
|
+
};
|
|
49
|
+
const normalizeReasons = (reasons) => reasons.filter(r => r.is_active !== false).sort((a, b) => (a.sort ?? 0) - (b.sort ?? 0));
|
|
50
|
+
const parseReasonsProp = (value) => {
|
|
51
|
+
if (value == null || value === '')
|
|
52
|
+
return null;
|
|
53
|
+
const parsed = typeof value === 'string' ? parseJson(value) : value;
|
|
54
|
+
return Array.isArray(parsed) && parsed.length ? parsed : null;
|
|
55
|
+
};
|
|
56
|
+
const SallaOrderCancel = class {
|
|
57
|
+
constructor(hostRef) {
|
|
58
|
+
index.registerInstance(this, hostRef);
|
|
59
|
+
this.reasons = [];
|
|
60
|
+
this.selectedReasonId = null;
|
|
61
|
+
this.reasonNote = '';
|
|
62
|
+
this.confirmLoading = false;
|
|
63
|
+
this.loading = true;
|
|
64
|
+
this.modalTitleLabel = '';
|
|
65
|
+
this.questionLabel = '';
|
|
66
|
+
this.subtitleLabel = '';
|
|
67
|
+
this.confirmLabel = '';
|
|
68
|
+
this.backLabel = '';
|
|
69
|
+
this.notePlaceholder = '';
|
|
70
|
+
this.charLimitLabel = '';
|
|
71
|
+
salla.lang.onLoaded(() => {
|
|
72
|
+
const ar = salla.lang.messages?.['ar.trans'];
|
|
73
|
+
const en = salla.lang.messages?.['en.trans'];
|
|
74
|
+
if (ar && en && salla.helpers?.setNested) {
|
|
75
|
+
for (const [key, arText, enText] of LANG_PAIRS) {
|
|
76
|
+
salla.helpers.setNested(ar, key, arText);
|
|
77
|
+
salla.helpers.setNested(en, key, enText);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
this.refreshLabels();
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
onCancellationReasonsChange() {
|
|
84
|
+
void this.load();
|
|
85
|
+
}
|
|
86
|
+
async componentWillLoad() {
|
|
87
|
+
await salla.onReady();
|
|
88
|
+
this.refreshLabels();
|
|
89
|
+
await this.load();
|
|
90
|
+
}
|
|
91
|
+
refreshLabels() {
|
|
92
|
+
const t = (key, fb) => salla.lang.getWithDefault(key, fb);
|
|
93
|
+
this.modalTitleLabel = t('pages.orders.cancel_modal_title', 'إلغاء الطلب');
|
|
94
|
+
this.questionLabel = t('pages.orders.cancel_reason_title', 'لماذا ترغب في إلغاء الطلب؟');
|
|
95
|
+
this.subtitleLabel = t('pages.orders.cancel_reason_subtitle', 'ساعدنا نعرف السبب لتحسين تجربتك.');
|
|
96
|
+
this.confirmLabel = t('pages.orders.cancel_reason_confirm', 'تأكيد إلغاء الطلب');
|
|
97
|
+
this.backLabel = t('pages.orders.cancel_reason_back', 'تراجع');
|
|
98
|
+
this.notePlaceholder = t('pages.orders.cancel_reason_note_placeholder', 'اذكر السبب');
|
|
99
|
+
this.charLimitLabel = t('pages.orders.cancel_reason_char_limit', 'يتجاوز النص حد الأحرف المسموح');
|
|
100
|
+
}
|
|
101
|
+
get resolvedOrderId() {
|
|
102
|
+
const id = this.orderId ?? this.pageOrder?.id ?? salla.config.get('page.id');
|
|
103
|
+
const n = Number(id);
|
|
104
|
+
return Number.isFinite(n) ? n : id;
|
|
105
|
+
}
|
|
106
|
+
readPageOrder() {
|
|
107
|
+
const el = document.querySelector('salla-order-totals-card');
|
|
108
|
+
return el ? parseJson(el.order ?? el.getAttribute('order')) : null;
|
|
109
|
+
}
|
|
110
|
+
waitForPageOrder() {
|
|
111
|
+
const order = this.readPageOrder();
|
|
112
|
+
if (order)
|
|
113
|
+
return Promise.resolve(order);
|
|
114
|
+
if (typeof MutationObserver === 'undefined') {
|
|
115
|
+
// ponytail: jsdom has no MutationObserver; one microtask retry for spec DOM
|
|
116
|
+
return Promise.resolve().then(() => this.readPageOrder());
|
|
117
|
+
}
|
|
118
|
+
return new Promise(resolve => {
|
|
119
|
+
let settled = false;
|
|
120
|
+
const finish = () => {
|
|
121
|
+
if (settled)
|
|
122
|
+
return;
|
|
123
|
+
settled = true;
|
|
124
|
+
observer.disconnect();
|
|
125
|
+
clearTimeout(timer);
|
|
126
|
+
resolve(this.readPageOrder());
|
|
127
|
+
};
|
|
128
|
+
const card = document.querySelector('salla-order-totals-card');
|
|
129
|
+
const observer = new MutationObserver(finish);
|
|
130
|
+
observer.observe(card ?? document.documentElement, card
|
|
131
|
+
? { attributes: true, attributeFilter: ['order'] }
|
|
132
|
+
: { childList: true, subtree: true, attributes: true, attributeFilter: ['order'] });
|
|
133
|
+
const timer = setTimeout(finish, ORDER_WAIT_MS);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
cancelledByLabel(by) {
|
|
137
|
+
return salla.lang.getWithDefault(`pages.orders.cancelled_by_${by}`, CANCELLED_BY_LABELS[by]);
|
|
138
|
+
}
|
|
139
|
+
mountCancelledHeader(attempt = 0) {
|
|
140
|
+
const cancelled = this.orderCancelledReason;
|
|
141
|
+
const reason = cancelled?.reasons[0];
|
|
142
|
+
if (!reason || document.querySelector(CANCELLED_MARKER))
|
|
143
|
+
return;
|
|
144
|
+
const anchor = document.querySelector(DATE_HEADER);
|
|
145
|
+
if (!anchor) {
|
|
146
|
+
// ponytail: hook mounts before header table in single.twig; retry until anchor exists
|
|
147
|
+
if (attempt < 20)
|
|
148
|
+
requestAnimationFrame(() => this.mountCancelledHeader(attempt + 1));
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
const cell = document.createElement('td');
|
|
152
|
+
cell.className = 's-order-cancel-cancelled-header-item';
|
|
153
|
+
cell.setAttribute('data-salla-order-cancelled-reason', '');
|
|
154
|
+
const label = document.createElement('div');
|
|
155
|
+
label.className = 's-order-cancel-cancelled-header-label';
|
|
156
|
+
label.textContent = this.cancelledByLabel(cancelled.cancelled_by);
|
|
157
|
+
const value = document.createElement('b');
|
|
158
|
+
value.className = 's-order-cancel-cancelled-header-reason';
|
|
159
|
+
value.textContent = reason;
|
|
160
|
+
value.title = reason;
|
|
161
|
+
cell.append(label, value);
|
|
162
|
+
anchor.insertAdjacentElement('afterend', cell);
|
|
163
|
+
}
|
|
164
|
+
purgeLegacyModal() {
|
|
165
|
+
if (!this.reasons.length)
|
|
166
|
+
return;
|
|
167
|
+
for (const el of document.querySelectorAll('salla-modal#modal-order-cancel:not([data-salla-order-cancel])')) {
|
|
168
|
+
el.remove();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
applyPageOrder(order) {
|
|
172
|
+
this.pageOrder = order;
|
|
173
|
+
this.orderCancelledReason = parseCancelledReason(order.order_cancelled_reason) ?? undefined;
|
|
174
|
+
}
|
|
175
|
+
async load() {
|
|
176
|
+
this.loading = true;
|
|
177
|
+
try {
|
|
178
|
+
const fromProp = parseReasonsProp(this.cancellationReasons);
|
|
179
|
+
if (!this.pageOrder) {
|
|
180
|
+
const order = this.readPageOrder();
|
|
181
|
+
if (order)
|
|
182
|
+
this.applyPageOrder(order);
|
|
183
|
+
}
|
|
184
|
+
if (!this.pageOrder && !fromProp) {
|
|
185
|
+
const order = await this.waitForPageOrder();
|
|
186
|
+
if (order)
|
|
187
|
+
this.applyPageOrder(order);
|
|
188
|
+
}
|
|
189
|
+
else if (!this.pageOrder) {
|
|
190
|
+
void this.waitForPageOrder().then(order => {
|
|
191
|
+
if (order) {
|
|
192
|
+
this.applyPageOrder(order);
|
|
193
|
+
this.mountCancelledHeader();
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
const order = this.pageOrder;
|
|
198
|
+
this.reasons = fromProp
|
|
199
|
+
? normalizeReasons(fromProp)
|
|
200
|
+
: order
|
|
201
|
+
? normalizeReasons(Array.isArray(order.cancellation_reasons) ? order.cancellation_reasons : [])
|
|
202
|
+
: [];
|
|
203
|
+
}
|
|
204
|
+
finally {
|
|
205
|
+
this.loading = false;
|
|
206
|
+
this.purgeLegacyModal();
|
|
207
|
+
this.mountCancelledHeader();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
reasonLabel(reason) {
|
|
211
|
+
const locale = salla.lang.getLocale?.() || 'ar';
|
|
212
|
+
return reason.translations?.[locale]?.name || reason.name;
|
|
213
|
+
}
|
|
214
|
+
get hasOtherSelected() {
|
|
215
|
+
return this.selectedReasonId !== null && this.reasons.some(r => r.id === this.selectedReasonId && r.slug === 'other');
|
|
216
|
+
}
|
|
217
|
+
get canConfirm() {
|
|
218
|
+
if (this.selectedReasonId === null)
|
|
219
|
+
return false;
|
|
220
|
+
if (!this.hasOtherSelected)
|
|
221
|
+
return true;
|
|
222
|
+
const len = this.reasonNote.trim().length;
|
|
223
|
+
return len > 0 && len <= MAX_NOTE;
|
|
224
|
+
}
|
|
225
|
+
selectReason(id) {
|
|
226
|
+
if (this.selectedReasonId === id) {
|
|
227
|
+
if (this.reasons.find(r => r.id === id)?.slug === 'other')
|
|
228
|
+
this.reasonNote = '';
|
|
229
|
+
this.selectedReasonId = null;
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (this.reasons.find(r => r.id === this.selectedReasonId)?.slug === 'other') {
|
|
233
|
+
this.reasonNote = '';
|
|
234
|
+
}
|
|
235
|
+
this.selectedReasonId = id;
|
|
236
|
+
if (this.reasons.length && this.reasons[this.reasons.length - 1].id === id) {
|
|
237
|
+
const timer = setTimeout(() => {
|
|
238
|
+
requestAnimationFrame(() => {
|
|
239
|
+
document.getElementById(`s-order-cancel-reason-${id}`)?.scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
240
|
+
const textarea = document.querySelector('.s-order-cancel-textarea');
|
|
241
|
+
textarea?.focus();
|
|
242
|
+
clearTimeout(timer);
|
|
243
|
+
});
|
|
244
|
+
}, 200);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
resetForm() {
|
|
248
|
+
this.selectedReasonId = null;
|
|
249
|
+
this.reasonNote = '';
|
|
250
|
+
this.confirmLoading = false;
|
|
251
|
+
}
|
|
252
|
+
setReasonNote(event) {
|
|
253
|
+
this.reasonNote = event.target.value;
|
|
254
|
+
}
|
|
255
|
+
onKeyActivate(event, action) {
|
|
256
|
+
if (event.key === 'Enter' || event.key === ' ')
|
|
257
|
+
action();
|
|
258
|
+
}
|
|
259
|
+
async confirmCancel() {
|
|
260
|
+
if (!this.canConfirm || this.confirmLoading)
|
|
261
|
+
return;
|
|
262
|
+
this.confirmLoading = true;
|
|
263
|
+
try {
|
|
264
|
+
const note = this.hasOtherSelected ? this.reasonNote.trim() : '';
|
|
265
|
+
const payload = {
|
|
266
|
+
reasons: [String(this.selectedReasonId)],
|
|
267
|
+
...(note && { reason_note: note }),
|
|
268
|
+
};
|
|
269
|
+
await salla.order.api.cancel(this.resolvedOrderId, payload);
|
|
270
|
+
window.location.reload();
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
this.confirmLoading = false;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
render() {
|
|
277
|
+
if (this.loading || !this.reasons.length)
|
|
278
|
+
return index.h(index.Host, { class: "s-order-cancel-wrapper" });
|
|
279
|
+
return (index.h(index.Host, { class: "s-order-cancel-wrapper" }, index.h("salla-modal", { id: "modal-order-cancel", class: "s-order-cancel-modal", "data-salla-order-cancel": "", ref: el => {
|
|
280
|
+
this.modal = el;
|
|
281
|
+
void el?.setTitle?.(this.modalTitleLabel);
|
|
282
|
+
}, width: "sm", onModalVisibilityChanged: e => !e.detail && this.resetForm() }, index.h("div", { class: "s-order-cancel-content" }, index.h("div", { class: "s-order-cancel-intro" }, index.h("p", { class: "s-order-cancel-heading" }, this.questionLabel), index.h("p", { class: "s-order-cancel-subtitle" }, this.subtitleLabel)), index.h("div", { class: "s-order-cancel-reasons s-scrollbar" }, this.reasons.map(reason => {
|
|
283
|
+
const id = `s-order-cancel-reason-${reason.id}`;
|
|
284
|
+
return (index.h("label", { key: reason.id, class: "s-order-cancel-reason", htmlFor: id }, index.h("input", { type: "radio", name: "cancellation_reason", id: id, class: "s-order-cancel-radio s-radio", checked: this.selectedReasonId === reason.id, onChange: () => this.selectReason(reason.id) }), index.h("span", { class: "s-order-cancel-reason-label" }, this.reasonLabel(reason))));
|
|
285
|
+
})), this.hasOtherSelected && (index.h("div", { class: "s-order-cancel-other-field" }, index.h("textarea", { class: "s-order-cancel-textarea", placeholder: this.notePlaceholder, value: this.reasonNote, onInput: e => this.setReasonNote(e) }), index.h("p", { class: {
|
|
286
|
+
's-order-cancel-counter': true,
|
|
287
|
+
's-order-cancel-counter--limit': this.reasonNote.length >= MAX_NOTE,
|
|
288
|
+
} }, this.reasonNote.length >= MAX_NOTE && `${this.charLimitLabel} `, MAX_NOTE, "/", this.reasonNote.length))), index.h("div", { class: "s-order-cancel-actions" }, index.h("salla-button", { color: "primary", class: "w-full", width: "wide", disabled: !this.canConfirm, loading: this.confirmLoading, onClick: () => this.confirmCancel(), onKeyDown: e => this.onKeyActivate(e, () => this.confirmCancel()) }, this.confirmLabel), index.h("salla-button", { class: "w-full", width: "wide", fill: "outline", color: "gray", onClick: () => this.modal?.close(), onKeyDown: e => this.onKeyActivate(e, () => this.modal?.close()) }, this.backLabel))))));
|
|
289
|
+
}
|
|
290
|
+
static get watchers() { return {
|
|
291
|
+
"cancellationReasons": ["onCancellationReasonsChange"]
|
|
292
|
+
}; }
|
|
293
|
+
};
|
|
294
|
+
SallaOrderCancel.style = sallaOrderCancelCss;
|
|
295
|
+
|
|
296
|
+
exports.salla_order_cancel = SallaOrderCancel;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
7
|
|
|
8
8
|
const sallaProductCardEmbedCss = "@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}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
7
|
|
|
8
8
|
var PencilRuler = `<!-- Generated by IcoMoon.io -->
|
|
9
9
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
7
|
var anime_es = require('./anime.es-BqW8JHZi.js');
|
|
8
8
|
var shoppingBag = require('./shopping-bag-C1gvTVHr.js');
|
|
9
9
|
var Helper = require('./Helper-B2B-kxAI.js');
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var functions = require('./functions-
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
|
+
var functions = require('./functions-DdZX56J7.js');
|
|
8
8
|
var gift = require('./gift-DbNivqYO.js');
|
|
9
9
|
var tag = require('./tag-D-PcUR33.js');
|
|
10
10
|
var check = require('./check-BnVBPQNp.js');
|
|
11
11
|
var cancel = require('./cancel-B5SbMYEk.js');
|
|
12
|
-
var trackedPromise = require('./tracked-promise-
|
|
12
|
+
var trackedPromise = require('./tracked-promise-DNxhV4_1.js');
|
|
13
13
|
|
|
14
14
|
const sallaLoyaltyProgramCss$3 = "";
|
|
15
15
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
7
|
|
|
8
8
|
const sallaTooltipCss = ".s-tooltip-container{position:relative;display:inline-block}.s-tooltip-item{position:absolute;transform:translateX(-63%) translateY(-50%);background-color:var(--color-primary);color:var(--color-primary-reverse);bottom:100%;left:50%;text-align:center;border-radius:5px;z-index:1;white-space:nowrap;opacity:0;transition:opacity 0.3s;pointer-events:none;margin:0 0 16px 8px;padding:12px;max-width:150px;width:190px;white-space:normal;opacity:1}.s-tooltip-item::after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--color-primary) transparent transparent transparent}.s-tooltip-item:dir(ltr){transform:translateX(-72%)}.s-tooltip-item--dark{background-color:#555555;color:white;padding:5px 15px;border-radius:8px;font-size:12px;font-weight:normal;max-width:330px;width:max-content}.s-tooltip-item--dark::after{border-color:#555555 transparent transparent transparent}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DWea49r_.js');
|
|
7
7
|
var keyboard_arrow_down = require('./keyboard_arrow_down-DHJ3FFZq.js');
|
|
8
8
|
var bellRing = require('./bell-ring-BfKPinNo.js');
|
|
9
9
|
var cart = require('./cart-s-x1Fshk.js');
|
|
@@ -99,6 +99,8 @@ const SallaUserMenu = class {
|
|
|
99
99
|
this.opened = false;
|
|
100
100
|
};
|
|
101
101
|
this.OrderUpdate = 0;
|
|
102
|
+
// STD-13103: these pages moved under /account; link directly to avoid 301 redirects.
|
|
103
|
+
this.accountPrefixedKeys = ['orders', 'pending_orders', 'wallet', 'notifications', 'rating', 'profile', 'wishlist', 'settings'];
|
|
102
104
|
this.items = {
|
|
103
105
|
notifications: bellRing.BellRing,
|
|
104
106
|
orders: OrderIcon,
|
|
@@ -241,7 +243,8 @@ const SallaUserMenu = class {
|
|
|
241
243
|
return { href: this.profileUrl, target: '_blank', rel: 'noopener noreferrer' };
|
|
242
244
|
}
|
|
243
245
|
const urlKey = itemKey === 'loyalty_points' ? 'loyalty' : itemKey;
|
|
244
|
-
|
|
246
|
+
const path = this.accountPrefixedKeys.includes(urlKey) ? `account/${urlKey}` : urlKey;
|
|
247
|
+
return { href: Salla.url.get(path) };
|
|
245
248
|
}
|
|
246
249
|
getMenuItem([itemKey, itemValue], i) {
|
|
247
250
|
//todo:: enhancement support slot here
|