@salla.sa/twilight-components 2.14.389 → 2.14.390
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-D-Sm5mfd.js → filepond-DFct_qpx.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-D_Q9tOzh.js → filepond-plugin-file-poster-B_Lr4Ulx.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-jE8i9yLT.js → filepond-plugin-file-validate-size-BqkoO_hr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-ClNK2GsY.js → filepond-plugin-file-validate-type-DyTH8eH0.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-BtI2loP1.js → filepond-plugin-image-edit-Cxg-WjCl.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DFksd-cT.js → filepond-plugin-image-exif-orientation-BSVkpMNu.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-B6iy7dvj.js → filepond-plugin-image-preview-DNcmQwuK.js} +1 -1
- package/dist/cjs/{index-CZzG9P8m.js → index-B8vh41va.js} +26 -10
- package/dist/cjs/{index-PbcABX0l.js → index-DnQaQgSB.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +63 -0
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.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-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery.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-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 +196 -0
- package/dist/cjs/salla-custom-fields.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-gifting.cjs.entry.js +91 -16
- 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-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/{salla-accordion-body_3.cjs.entry.js → salla-map.cjs.entry.js} +1 -57
- 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-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-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 +95 -0
- package/dist/cjs/salla-order-edit.cjs.entry.js +181 -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-count-down_2.cjs.entry.js → salla-product-card.cjs.entry.js} +1 -160
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-progress-bar.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-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 +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-BP4lqf-K.js → vanilla-picker-BZ48aiBi.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/salla-count-down/salla-count-down.css +4 -0
- package/dist/collection/components/salla-count-down/salla-count-down.js +122 -13
- package/dist/collection/components/salla-gifting/salla-gifting.js +96 -15
- package/dist/collection/components/salla-order-edit/interfaces.js +1 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.css +0 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit-item.js +185 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.css +0 -0
- package/dist/collection/components/salla-order-edit/salla-order-edit.js +256 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-count-down2.js +49 -13
- package/dist/components/salla-gifting.js +96 -15
- package/dist/components/salla-order-edit-item.d.ts +11 -0
- package/dist/components/salla-order-edit-item.js +9 -0
- package/dist/components/salla-order-edit-item2.js +184 -0
- package/dist/components/salla-order-edit.d.ts +11 -0
- package/dist/components/salla-order-edit.js +291 -0
- package/dist/components/salla-quantity-input.js +1 -125
- package/dist/components/salla-quantity-input2.js +130 -0
- package/dist/esm/{filepond-PPWykQxI.js → filepond-C9FlNeRD.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-BRSyNznG.js → filepond-plugin-file-poster-BfX4exY0.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-BKa_IBRc.js → filepond-plugin-file-validate-size-B5-cSfmI.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-B2Gqcysx.js → filepond-plugin-file-validate-type-DKvNhI35.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C0UvZ9iA.js → filepond-plugin-image-edit-DV1-ZICm.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Dmzu9ZJy.js → filepond-plugin-image-exif-orientation-idrSYwAk.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-CaZ36U6e.js → filepond-plugin-image-preview-os8BCUOs.js} +1 -1
- package/dist/esm/{index-CyfZeaV2.js → index-BcMtCVX0.js} +26 -10
- package/dist/esm/{index-C3w2qMi0.js → index-DQCZHaDc.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +60 -0
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.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-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery.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-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 +194 -0
- package/dist/esm/salla-custom-fields.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-gifting.entry.js +91 -16
- 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-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/{salla-accordion-body_3.entry.js → salla-map.entry.js} +2 -56
- 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-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-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 +93 -0
- package/dist/esm/salla-order-edit.entry.js +179 -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-count-down_2.entry.js → salla-product-card.entry.js} +2 -160
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-progress-bar.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-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 +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BnLjo9lg.js → vanilla-picker-BBEKwYz7.js} +1 -1
- package/dist/twilight/{p-49178d13.entry.js → p-00a2d261.entry.js} +1 -1
- package/dist/twilight/{p-0dcadf17.entry.js → p-0b27ca19.entry.js} +1 -1
- package/dist/twilight/{p-52249b73.entry.js → p-0d0ca330.entry.js} +1 -1
- package/dist/twilight/{p-749f87cc.entry.js → p-1054b66c.entry.js} +1 -1
- package/dist/twilight/{p-9dace77f.entry.js → p-129d6c0c.entry.js} +1 -1
- package/dist/twilight/{p-d0d9eaa7.entry.js → p-15a052c7.entry.js} +1 -1
- package/dist/twilight/{p-7367264c.entry.js → p-207950ad.entry.js} +1 -1
- package/dist/twilight/{p-4a0248ab.entry.js → p-2548fa30.entry.js} +1 -1
- package/dist/twilight/{p-77a89284.entry.js → p-26cb1fdf.entry.js} +1 -1
- package/dist/twilight/{p-313e016b.entry.js → p-2b74eb03.entry.js} +1 -1
- package/dist/twilight/{p-71199938.entry.js → p-359b2de3.entry.js} +1 -1
- package/dist/twilight/{p-3424772f.entry.js → p-35a2ea22.entry.js} +1 -1
- package/dist/twilight/{p-92aa6f9c.entry.js → p-3653ad70.entry.js} +1 -1
- package/dist/twilight/{p-0e064e79.entry.js → p-374057f7.entry.js} +1 -1
- package/dist/twilight/p-374c63c7.entry.js +4 -0
- package/dist/twilight/{p-3490e1f2.entry.js → p-412643eb.entry.js} +1 -1
- package/dist/twilight/{p-981aa6b2.entry.js → p-47cd7ceb.entry.js} +1 -1
- package/dist/twilight/{p-5db4f7be.entry.js → p-47d1003b.entry.js} +1 -1
- package/dist/twilight/{p-b6d4d88f.entry.js → p-48353d62.entry.js} +1 -1
- package/dist/twilight/{p-833e8364.entry.js → p-4866439f.entry.js} +1 -1
- package/dist/twilight/{p-549d8385.entry.js → p-4f3964d8.entry.js} +1 -1
- package/dist/twilight/{p-f8b53b4a.entry.js → p-4fefd2df.entry.js} +1 -1
- package/dist/twilight/{p-de4fc6d3.entry.js → p-5174aa32.entry.js} +1 -1
- package/dist/twilight/{p-6b642ef5.entry.js → p-58c66b0d.entry.js} +1 -1
- package/dist/twilight/{p-7b3e9e94.entry.js → p-58fa3856.entry.js} +1 -1
- package/dist/twilight/{p-6f230886.entry.js → p-596525f9.entry.js} +1 -1
- package/dist/twilight/p-5a629abd.entry.js +4 -0
- package/dist/twilight/{p-f713d4c1.entry.js → p-5d2ebf97.entry.js} +1 -1
- package/dist/twilight/{p-016b3b19.entry.js → p-65df6042.entry.js} +1 -1
- package/dist/twilight/{p-7eebae69.entry.js → p-67bc002a.entry.js} +1 -1
- package/dist/twilight/{p-b85269f0.entry.js → p-67cf0723.entry.js} +1 -1
- package/dist/twilight/{p-1a9b64ea.entry.js → p-687a597a.entry.js} +1 -1
- package/dist/twilight/{p-75744403.entry.js → p-689701b4.entry.js} +1 -1
- package/dist/twilight/{p-646ac137.entry.js → p-70e478a6.entry.js} +1 -1
- package/dist/twilight/{p-a3479656.entry.js → p-74472650.entry.js} +1 -1
- package/dist/twilight/{p-5a3fbfcc.entry.js → p-7855ae93.entry.js} +1 -1
- package/dist/twilight/p-8c86ba24.entry.js +4 -0
- package/dist/twilight/{p-9b03dc5f.entry.js → p-8d4d4a0e.entry.js} +1 -1
- package/dist/twilight/{p-85e08789.entry.js → p-8fbd92a2.entry.js} +1 -1
- package/dist/twilight/{p-f2a021d2.entry.js → p-983f9f1e.entry.js} +1 -1
- package/dist/twilight/{p-f9b6a945.entry.js → p-998a3b5f.entry.js} +1 -1
- package/dist/twilight/{p-56f20bf9.entry.js → p-9bf0a7df.entry.js} +1 -1
- package/dist/twilight/{p-414f399b.entry.js → p-9ff1a4dc.entry.js} +1 -1
- package/dist/twilight/{p-C11T4TVo.js → p-B21QGKK8.js} +1 -1
- package/dist/twilight/{p-DaXFe_AG.js → p-Bc2ExcVy.js} +1 -1
- package/dist/twilight/{p-CyfZeaV2.js → p-BcMtCVX0.js} +2 -2
- package/dist/twilight/{p-DV84B4Zf.js → p-C3Z9uRGX.js} +1 -1
- package/dist/twilight/{p-CKAWVE2E.js → p-DIeaJrGb.js} +1 -1
- package/dist/twilight/{p-CJnMMMxb.js → p-DbdyybJU.js} +1 -1
- package/dist/twilight/{p-oPo_An7U.js → p-UFbwqsEd.js} +1 -1
- package/dist/twilight/{p-9af46409.entry.js → p-a39a0eb8.entry.js} +1 -1
- package/dist/twilight/{p-6c5ab45f.entry.js → p-a54364a3.entry.js} +1 -1
- package/dist/twilight/{p-68e1946b.entry.js → p-a6bb162e.entry.js} +1 -1
- package/dist/twilight/{p-dccaabbe.entry.js → p-a6cbb4f5.entry.js} +1 -1
- package/dist/twilight/{p-b6924b12.entry.js → p-a8fd427d.entry.js} +1 -1
- package/dist/twilight/{p-9ae66ab7.entry.js → p-a909028d.entry.js} +1 -1
- package/dist/twilight/{p-fdb99998.entry.js → p-acd70c2f.entry.js} +1 -1
- package/dist/twilight/{p-8538541b.entry.js → p-ae1e338f.entry.js} +1 -1
- package/dist/twilight/{p-ccc3689d.entry.js → p-b19ace8d.entry.js} +1 -1
- package/dist/twilight/p-b697172b.entry.js +4 -0
- package/dist/twilight/{p-c48e2a05.entry.js → p-bb98a631.entry.js} +1 -1
- package/dist/twilight/{p-8c1f6ff5.entry.js → p-c18179ed.entry.js} +1 -1
- package/dist/twilight/{p-8c918f58.entry.js → p-c2d74b3d.entry.js} +1 -1
- package/dist/twilight/{p-83bb3e08.entry.js → p-c45f2128.entry.js} +1 -1
- package/dist/twilight/p-c5522363.entry.js +4 -0
- package/dist/twilight/{p-a5215f9c.entry.js → p-c6e7b06f.entry.js} +1 -1
- package/dist/twilight/{p-d224ad78.entry.js → p-cc6c624c.entry.js} +1 -1
- package/dist/twilight/{p-B5sTdzgA.js → p-ctIqN5Fo.js} +1 -1
- package/dist/twilight/{p-71e9036c.entry.js → p-d607bfd3.entry.js} +1 -1
- package/dist/twilight/{p-2d3c3fc0.entry.js → p-d862646f.entry.js} +1 -1
- package/dist/twilight/{p-e4984da6.entry.js → p-dbcc0a7f.entry.js} +1 -1
- package/dist/twilight/p-dc6f4d54.entry.js +4 -0
- package/dist/twilight/{p-28691a37.entry.js → p-deb74e2e.entry.js} +1 -1
- package/dist/twilight/{p-e51abff8.entry.js → p-dfa729d4.entry.js} +1 -1
- package/dist/twilight/p-e7671432.entry.js +4 -0
- package/dist/twilight/{p-1fa74395.entry.js → p-e7932d3d.entry.js} +1 -1
- package/dist/twilight/{p-46715ed4.entry.js → p-e879fb84.entry.js} +1 -1
- package/dist/twilight/p-e9c7f99a.entry.js +4 -0
- package/dist/twilight/{p-c782ba90.entry.js → p-f100cc25.entry.js} +1 -1
- package/dist/twilight/{p-fca12e58.entry.js → p-f63999f8.entry.js} +1 -1
- package/dist/twilight/{p-nDM6sAQW.js → p-fbLtV-T9.js} +1 -1
- package/dist/twilight/{p-282b2717.entry.js → p-fd22cd01.entry.js} +1 -1
- package/dist/twilight/{p-DgRZXtp7.js → p-ukob-enB.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-count-down/salla-count-down.d.ts +24 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +4 -0
- package/dist/types/components/salla-gifting/intefaces.d.ts +1 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +10 -1
- package/dist/types/components/salla-order-edit/interfaces.d.ts +114 -0
- package/dist/types/components/salla-order-edit/salla-order-edit-item.d.ts +35 -0
- package/dist/types/components/salla-order-edit/salla-order-edit.d.ts +42 -0
- package/dist/types/components.d.ts +170 -0
- package/package.json +5 -5
- package/dist/twilight/p-1048b469.entry.js +0 -4
- package/dist/twilight/p-69ae622f.entry.js +0 -4
- package/dist/twilight/p-d33f3c58.entry.js +0 -4
- package/dist/twilight/p-fbcc194e.entry.js +0 -4
|
@@ -1,63 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host,
|
|
5
|
-
import { p as plusIcon, m as minusIcon } from './minus-DfeagqF1.js';
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BcMtCVX0.js';
|
|
6
5
|
import { L as Location } from './location-BO5AoBAP.js';
|
|
7
6
|
|
|
8
|
-
const sallaAccordionBodyCss = "";
|
|
9
|
-
|
|
10
|
-
const SallaAccordionBody = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
registerInstance(this, hostRef);
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return (h(Host, { key: '298d42a5bf1bcefdb181ec35060220cf749b56ed', class: "s-accordion-body-wrapper" }, h("slot", { key: '6ab081e8b71b5dc69fb66fbdec82b4725ab53b0d' })));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
SallaAccordionBody.style = sallaAccordionBodyCss;
|
|
19
|
-
|
|
20
|
-
const sallaAccordionHeadCss = "";
|
|
21
|
-
|
|
22
|
-
const SallaAccordionHead = class {
|
|
23
|
-
constructor(hostRef) {
|
|
24
|
-
registerInstance(this, hostRef);
|
|
25
|
-
this.accordionToggle = createEvent(this, "accordionToggle");
|
|
26
|
-
/** Should the accordion be collapsible or not. */
|
|
27
|
-
this.collapsible = false;
|
|
28
|
-
/** Current collapsed state */
|
|
29
|
-
this.collapsed = true;
|
|
30
|
-
}
|
|
31
|
-
emitCollapsePanel() {
|
|
32
|
-
this.accordionToggle.emit({
|
|
33
|
-
payload: {
|
|
34
|
-
collapsed: this.collapsed,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
toggleCollapse() {
|
|
39
|
-
if (!this.collapsible)
|
|
40
|
-
return;
|
|
41
|
-
this.collapsed = !this.collapsed;
|
|
42
|
-
this.host.parentElement?.setAttribute('data-collapsed', this.collapsed.toString());
|
|
43
|
-
this.host.parentElement
|
|
44
|
-
?.querySelector('salla-accordion-body')
|
|
45
|
-
?.setAttribute('data-collapsed', this.collapsed.toString());
|
|
46
|
-
this.emitCollapsePanel();
|
|
47
|
-
}
|
|
48
|
-
render() {
|
|
49
|
-
return (h(Host, { key: '9d88d243306cdf451c20d7068fbb9f48807b22e9', "data-collapsed": this.collapsed.toString(), onClick: () => this.toggleCollapse(), class: "s-accordion-head-wrapper" }, h("div", { key: 'bad4c5a913ce1c4581b09c0b6d96fcbdb4236638', class: "s-accordion-head-wrapper-start" }, h("slot", { key: 'acb83cec8cbca5771a9f84e81c0b955c3edad731', name: "title" }), h("slot", { key: 'a4ad42ea6fad4f452c4c218a9ee02dca0adb4a67', name: "progress" }), h("slot", { key: '96ab95d413dc906ac299079f4008816f01881990', name: "html" })), (this.collapsible || this.host.querySelector('[slot="note"]')) && (h("div", { key: '8f9666a5038cd7b1ac6e357c6920ea26d31c5f03', class: "s-accordion-head-wrapper-end" }, h("slot", { key: '14895e8c1385e91c14f046c9ae38ce5e4a4c9a60', name: "note" }), this.collapsible && (h("button", { key: '97dc7fabbb207fcc8b68ebf0a86f6c8a980dca13', class: {
|
|
50
|
-
's-accordion-head-wrapper-toggle': true,
|
|
51
|
-
active: !this.collapsed,
|
|
52
|
-
}, onClick: e => {
|
|
53
|
-
e.stopPropagation();
|
|
54
|
-
this.toggleCollapse();
|
|
55
|
-
} }, h("span", { key: '3b24faf71dcd332663a354310b2ce09f7879eddc', class: "s-accordion-head-wrapper-toggle-icon", innerHTML: this.collapsed ? plusIcon : minusIcon })))))));
|
|
56
|
-
}
|
|
57
|
-
get host() { return getElement(this); }
|
|
58
|
-
};
|
|
59
|
-
SallaAccordionHead.style = sallaAccordionHeadCss;
|
|
60
|
-
|
|
61
7
|
var Edit = `<!-- Generated by IcoMoon.io -->
|
|
62
8
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
63
9
|
<title>edit</title>
|
|
@@ -762,4 +708,4 @@ const SallaMap = class {
|
|
|
762
708
|
};
|
|
763
709
|
SallaMap.style = sallaMapCss;
|
|
764
710
|
|
|
765
|
-
export {
|
|
711
|
+
export { SallaMap as salla_map };
|
|
@@ -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, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement, F as Fragment } from './index-BcMtCVX0.js';
|
|
5
5
|
|
|
6
6
|
const sallaMultipleBundleProductCartCss = "";
|
|
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-BcMtCVX0.js';
|
|
5
5
|
import { A as ArrowLeftIcon, a as ArrowRightIcon } from './keyboard_arrow_right-Vqpj4CWE.js';
|
|
6
6
|
|
|
7
7
|
const sallaMultipleBundleProductOptionsModalCss = ":host{display:block}";
|
|
@@ -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-BcMtCVX0.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.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, h, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, a as getElement } from './index-BcMtCVX0.js';
|
|
5
5
|
import { S as SpecialDiscountIcon } from './special-discount-Ctkfc4K-.js';
|
|
6
6
|
|
|
7
7
|
var Tag = `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
|
@@ -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-BcMtCVX0.js';
|
|
5
5
|
|
|
6
6
|
var copyIcon = `<!-- 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">
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BcMtCVX0.js';
|
|
5
|
+
|
|
6
|
+
const sallaOrderEditItemCss = "";
|
|
7
|
+
|
|
8
|
+
const SallaOrderEditItem = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.orderItemUpdated = createEvent(this, "orderItemUpdated");
|
|
12
|
+
this.orderItemRemoved = createEvent(this, "orderItemRemoved");
|
|
13
|
+
this.handleQuantityChange = (event) => {
|
|
14
|
+
const detail = event.detail;
|
|
15
|
+
const newQuantity = detail?.quantity ?? parseInt(event.target.value, 10);
|
|
16
|
+
if (isNaN(newQuantity) || newQuantity < 1)
|
|
17
|
+
return;
|
|
18
|
+
if (newQuantity === this.quantity)
|
|
19
|
+
return;
|
|
20
|
+
this.quantity = newQuantity;
|
|
21
|
+
this.emitUpdate(newQuantity);
|
|
22
|
+
};
|
|
23
|
+
this.handleOptionsChange = () => {
|
|
24
|
+
this.emitUpdate(this.quantity);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
this.quantity = this.item?.quantity || 1;
|
|
29
|
+
}
|
|
30
|
+
componentDidLoad() {
|
|
31
|
+
const quantityEl = this.host.querySelector('salla-quantity-input');
|
|
32
|
+
if (quantityEl) {
|
|
33
|
+
quantityEl.addEventListener('change', this.handleQuantityChange);
|
|
34
|
+
}
|
|
35
|
+
const optionsEl = this.host.querySelector('salla-product-options');
|
|
36
|
+
if (optionsEl) {
|
|
37
|
+
optionsEl.addEventListener('change', this.handleOptionsChange);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
disconnectedCallback() {
|
|
41
|
+
const quantityEl = this.host.querySelector('salla-quantity-input');
|
|
42
|
+
if (quantityEl) {
|
|
43
|
+
quantityEl.removeEventListener('change', this.handleQuantityChange);
|
|
44
|
+
}
|
|
45
|
+
const optionsEl = this.host.querySelector('salla-product-options');
|
|
46
|
+
if (optionsEl) {
|
|
47
|
+
optionsEl.removeEventListener('change', this.handleOptionsChange);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
get hasOptions() {
|
|
51
|
+
const options = this.item.product?.options;
|
|
52
|
+
return options && options.length > 0;
|
|
53
|
+
}
|
|
54
|
+
async getSelectedOptions() {
|
|
55
|
+
const optionsEl = this.host.querySelector(`salla-product-options[product-id="${this.item.product?.id}"]`);
|
|
56
|
+
return (await optionsEl?.getSelectedOptionsData()) || {};
|
|
57
|
+
}
|
|
58
|
+
async emitUpdate(quantity) {
|
|
59
|
+
const detail = { itemId: this.item?.id, quantity };
|
|
60
|
+
if (this.hasOptions) {
|
|
61
|
+
detail.options = await this.getSelectedOptions();
|
|
62
|
+
}
|
|
63
|
+
this.orderItemUpdated.emit(detail);
|
|
64
|
+
}
|
|
65
|
+
removeItem() {
|
|
66
|
+
const itemId = this.item?.id;
|
|
67
|
+
if (itemId == null)
|
|
68
|
+
return;
|
|
69
|
+
this.orderItemRemoved.emit({ itemId });
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
if (!this.item)
|
|
73
|
+
return null;
|
|
74
|
+
const product = this.item.product;
|
|
75
|
+
const productName = this.item.name || product?.name || '';
|
|
76
|
+
const imageUrl = product?.image?.url || '';
|
|
77
|
+
const imageAlt = product?.image?.alt || productName;
|
|
78
|
+
const productUrl = product?.url || '#';
|
|
79
|
+
const price = product?.price;
|
|
80
|
+
const maxQuantity = product?.max_quantity;
|
|
81
|
+
const weightLabel = product?.weight_label;
|
|
82
|
+
const options = this.item.product?.options;
|
|
83
|
+
const quantityAttrs = { value: this.quantity };
|
|
84
|
+
if (maxQuantity) {
|
|
85
|
+
quantityAttrs.max = maxQuantity;
|
|
86
|
+
}
|
|
87
|
+
return (h(Host, null, h("div", null, h("div", { class: "s-order-edit-item-header" }, h("div", { class: "s-order-edit-item-media" }, imageUrl && (h("a", { href: productUrl }, h("img", { src: imageUrl, alt: imageAlt, class: "s-order-edit-item-image" }))), h("div", { class: "s-order-edit-item-details" }, h("h2", { class: "s-order-edit-item-name" }, h("a", { href: productUrl, class: "s-order-edit-item-link" }, productName)), price != null && (h("span", { class: "s-order-edit-item-price", innerHTML: salla.money(price) })), weightLabel && (h("p", { class: "s-order-edit-item-weight" }, salla.lang.getWithDefault('pages.products.weight', 'الوزن'), " ", weightLabel)))), h("salla-button", { type: "button", shape: "icon", size: "small", color: "danger", "aria-label": salla.lang.getWithDefault('common.elements.delete', 'حذف'), onClick: () => this.removeItem() }, h("i", { class: "sicon-cancel" }))), h("div", { class: "s-order-edit-item-quantity" }, h("h3", { class: "s-order-edit-item-quantity-label" }, salla.lang.getWithDefault('common.elements.quantity', 'الكمية')), h("div", { class: "s-order-edit-item-quantity-input" }, h("salla-quantity-input", { ...quantityAttrs }))), this.hasOptions && (h("form", { onSubmit: e => e.preventDefault() }, h("salla-product-options", { "product-id": product.id, options: JSON.stringify(options), key: `${product.id}-order-edit-item-options` }))))));
|
|
88
|
+
}
|
|
89
|
+
get host() { return getElement(this); }
|
|
90
|
+
};
|
|
91
|
+
SallaOrderEditItem.style = sallaOrderEditItemCss;
|
|
92
|
+
|
|
93
|
+
export { SallaOrderEditItem as salla_order_edit_item };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BcMtCVX0.js';
|
|
5
|
+
|
|
6
|
+
const sallaOrderEditCss = "";
|
|
7
|
+
|
|
8
|
+
const SallaOrderEdit = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.loading = true;
|
|
12
|
+
this.saveLoading = false;
|
|
13
|
+
this.payload = { items: { update: [], remove: [] } };
|
|
14
|
+
this.expired = false;
|
|
15
|
+
this.editPreview = null;
|
|
16
|
+
this.confirming = false;
|
|
17
|
+
}
|
|
18
|
+
async componentWillLoad() {
|
|
19
|
+
await salla.onReady();
|
|
20
|
+
this.loadFromProp();
|
|
21
|
+
this.startExpiryCheck();
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
clearInterval(this.expiryInterval);
|
|
25
|
+
}
|
|
26
|
+
startExpiryCheck() {
|
|
27
|
+
const endsAt = this.order?.customer_editing_session?.ends_at;
|
|
28
|
+
if (!endsAt)
|
|
29
|
+
return;
|
|
30
|
+
const isExpired = () => new Date(`${endsAt.replace(' ', 'T')}+03:00`).getTime() <= Date.now();
|
|
31
|
+
if (isExpired()) {
|
|
32
|
+
this.expired = true;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.expiryInterval = setInterval(() => {
|
|
36
|
+
if (isExpired()) {
|
|
37
|
+
this.expired = true;
|
|
38
|
+
clearInterval(this.expiryInterval);
|
|
39
|
+
}
|
|
40
|
+
}, 1000);
|
|
41
|
+
}
|
|
42
|
+
loadFromProp() {
|
|
43
|
+
try {
|
|
44
|
+
if (!this.orderData) {
|
|
45
|
+
this.error = salla.lang.getWithDefault('pages.orders.order_not_found', 'الطلب غير موجود');
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const data = typeof this.orderData === 'string' ? JSON.parse(this.orderData) : this.orderData;
|
|
49
|
+
this.order = data;
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
this.error = salla.lang.getWithDefault('pages.orders.order_not_found', 'الطلب غير موجود');
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
this.loading = false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
handleItemUpdated(event) {
|
|
59
|
+
if (!this.order)
|
|
60
|
+
return;
|
|
61
|
+
const { itemId, quantity, options } = event.detail;
|
|
62
|
+
const updateList = this.payload.items.update.filter(u => u.id !== itemId);
|
|
63
|
+
const updateEntry = { id: itemId, quantity, options: options ?? [] };
|
|
64
|
+
updateList.push(updateEntry);
|
|
65
|
+
this.payload = {
|
|
66
|
+
...this.payload,
|
|
67
|
+
items: { ...this.payload.items, update: updateList },
|
|
68
|
+
};
|
|
69
|
+
this.order = {
|
|
70
|
+
...this.order,
|
|
71
|
+
items: this.order.items.map(item => item.id === itemId ? { ...item, quantity } : item),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
handleItemRemoved(event) {
|
|
75
|
+
if (!this.order)
|
|
76
|
+
return;
|
|
77
|
+
if (this.order.items.length <= 1) {
|
|
78
|
+
salla.notify.error(salla.lang.getWithDefault('pages.orders.order_cannot_be_empty', 'لا يمكن إزالة جميع المنتجات من الطلب'));
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const { itemId } = event.detail;
|
|
82
|
+
this.payload = {
|
|
83
|
+
...this.payload,
|
|
84
|
+
items: {
|
|
85
|
+
update: this.payload.items.update.filter(u => u.id !== itemId),
|
|
86
|
+
remove: [...this.payload.items.remove, itemId],
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
this.order = {
|
|
90
|
+
...this.order,
|
|
91
|
+
items: this.order.items.filter(item => item.id !== itemId),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
get hasChanges() {
|
|
95
|
+
return this.payload.items.update.length > 0 || this.payload.items.remove.length > 0;
|
|
96
|
+
}
|
|
97
|
+
async saveOrder() {
|
|
98
|
+
if (!this.hasChanges)
|
|
99
|
+
return;
|
|
100
|
+
this.saveLoading = true;
|
|
101
|
+
try {
|
|
102
|
+
const response = await salla.order.api.editOrder(this.orderId, this.payload);
|
|
103
|
+
this.editPreview = response?.data?.data || response?.data;
|
|
104
|
+
await this.saveModal?.open();
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
const message = error?.response?.data?.error?.message || error?.response?.data?.message;
|
|
108
|
+
if (message) {
|
|
109
|
+
salla.notify.error(message);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
finally {
|
|
113
|
+
this.saveLoading = false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
navigateToOrder() {
|
|
117
|
+
const url = new URL(window.location.href);
|
|
118
|
+
url.pathname = url.pathname.replace(/\/edit\/?$/, '');
|
|
119
|
+
url.search = '';
|
|
120
|
+
window.location.href = url.href;
|
|
121
|
+
}
|
|
122
|
+
handleConfirm() {
|
|
123
|
+
this.confirming = true;
|
|
124
|
+
if (this.editPreview?.payment?.required && this.editPreview.payment.payment_url) {
|
|
125
|
+
window.location.href = this.editPreview.payment.payment_url;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this.navigateToOrder();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
cancel() {
|
|
132
|
+
this.navigateToOrder();
|
|
133
|
+
}
|
|
134
|
+
renderSaveModal() {
|
|
135
|
+
const preview = this.editPreview;
|
|
136
|
+
const hasRemainingAmount = preview?.totals?.remaining_amount?.amount > 0;
|
|
137
|
+
const hasRefundAmount = preview?.totals?.refund_amount?.amount > 0;
|
|
138
|
+
const taxAmount = preview?.totals?.tax?.amount?.amount;
|
|
139
|
+
return (h("salla-modal", { ref: modal => (this.saveModal = modal), width: "md", onModalVisibilityChanged: (e) => {
|
|
140
|
+
if (!e.detail) {
|
|
141
|
+
this.editPreview = null;
|
|
142
|
+
if (!this.confirming) {
|
|
143
|
+
this.navigateToOrder();
|
|
144
|
+
}
|
|
145
|
+
this.confirming = false;
|
|
146
|
+
}
|
|
147
|
+
} }, h("div", { class: "s-order-edit-modal" }, h("h2", { class: "s-order-edit-modal-title" }, salla.lang.getWithDefault('pages.orders.edit_summary_title', 'ملخص الطلب بعد التعديل')), preview?.items?.length > 0 && (h("div", { class: "s-order-edit-modal-items" }, preview.items.map(item => {
|
|
148
|
+
const orderItem = this.order?.items?.find(oi => oi.id == item.id);
|
|
149
|
+
const imageUrl = orderItem?.product?.image?.url;
|
|
150
|
+
const optionsLabel = item.options?.join('/ ');
|
|
151
|
+
return (h("div", { class: "s-order-edit-modal-item" }, h("div", { class: "s-order-edit-modal-item-start" }, imageUrl && (h("img", { src: imageUrl, alt: item.name, class: "s-order-edit-modal-item-image" })), h("div", null, h("p", { class: "s-order-edit-modal-item-name" }, item.name), optionsLabel && (h("span", { class: "s-order-edit-modal-item-options" }, optionsLabel)))), h("div", { class: "s-order-edit-modal-item-end" }, h("span", { class: "s-order-edit-modal-item-price", innerHTML: salla.money(item.price.amount) }))));
|
|
152
|
+
}))), preview?.totals?.updated_products_total && (h("div", { class: "s-order-edit-modal-row" }, h("span", { class: "s-order-edit-modal-row-label" }, salla.lang.getWithDefault('pages.orders.modified_products_total', 'مجموع المنتجات المعدلة')), h("span", { class: "s-order-edit-modal-row-value", innerHTML: salla.money(preview.totals.updated_products_total.amount) }))), taxAmount > 0 && (h("div", { class: "s-order-edit-modal-row" }, h("span", { class: "s-order-edit-modal-tax-label" }, h("i", { class: "sicon-info-circle s-order-edit-modal-tax-icon" }), salla.lang.getWithDefault('pages.orders.vat', 'ضريبة القيمة المضافة')), h("span", { class: "s-order-edit-modal-row-value", innerHTML: salla.money(taxAmount) }))), preview?.totals?.total && (h("div", { class: "s-order-edit-modal-total" }, h("span", { class: "s-order-edit-modal-total-label" }, salla.lang.getWithDefault('pages.orders.order_total', 'اجمالي الطلب')), h("span", { class: "s-order-edit-modal-total-value", innerHTML: salla.money(preview.totals.total.amount) }))), hasRefundAmount && (h("div", { class: "s-order-edit-modal-refund" }, h("i", { class: "sicon-info-circle s-order-edit-modal-refund-icon" }), h("p", { class: "s-order-edit-modal-refund-text" }, salla.lang.getWithDefault('pages.orders.refund_message', 'سيتم تحويل فارق المبلغ على نفس وسيلة الدفع')))), h("div", { class: "s-order-edit-modal-btn-wrapper" }, h("salla-button", { onClick: () => this.handleConfirm() }, hasRemainingAmount
|
|
153
|
+
? salla.lang.getWithDefault('pages.orders.pay_difference', 'دفع فارق المبلغ')
|
|
154
|
+
: hasRefundAmount
|
|
155
|
+
? salla.lang.getWithDefault('pages.orders.confirm_and_receive_difference', 'تأكيد واستلام فارق المبلغ')
|
|
156
|
+
: salla.lang.getWithDefault('pages.orders.confirm_changes', 'تأكيد التعديلات'), h("i", { class: "sicon-keyboard_arrow_left s-order-edit-modal-btn-icon" }))))));
|
|
157
|
+
}
|
|
158
|
+
render() {
|
|
159
|
+
if (this.loading) {
|
|
160
|
+
return (h(Host, null, h("salla-loading", null)));
|
|
161
|
+
}
|
|
162
|
+
if (this.expired) {
|
|
163
|
+
return (h(Host, null, h("div", { class: "s-order-edit-expired" }, h("p", null, salla.lang.getWithDefault('pages.orders.edit_session_expired', 'انتهت مدة التعديل المتاحة')), h("salla-button", { onClick: () => this.navigateToOrder() }, salla.lang.getWithDefault('pages.orders.back_to_order', 'العودة إلى تفاصيل الطلب')))));
|
|
164
|
+
}
|
|
165
|
+
if (this.error || !this.order) {
|
|
166
|
+
return (h(Host, null, h("div", { class: "no-content-placeholder" }, h("i", { class: "sicon-shopping-bag icon" }), h("p", null, this.error))));
|
|
167
|
+
}
|
|
168
|
+
const hasItems = this.order.items && this.order.items.length > 0;
|
|
169
|
+
const endsAt = this.order.customer_editing_session?.ends_at;
|
|
170
|
+
return (h(Host, null, endsAt && (h("div", { class: "s-order-edit-timer-wrapper" }, h("salla-count-down", { prefixText: salla.lang.getWithDefault('pages.orders.edit_within', 'يمكنك التعديل خلال'), date: endsAt, horizontal: true, withButton: true, autoSegments: true, labeled: false, size: "sm", color: "primary" }))), h("div", { class: "s-order-edit-items-wrapper" }, h("h2", { class: "s-order-edit-items-title" }, salla.lang.getWithDefault('pages.orders.order_products', 'منتجات الطلب')), hasItems ? (this.order.items.map((item, index) => [
|
|
171
|
+
h("salla-order-edit-item", { key: item.id, item: item, orderId: this.orderId }),
|
|
172
|
+
index < this.order.items.length - 1 ? (h("div", { class: "s-order-edit-items-divider" })) : null,
|
|
173
|
+
])) : (h("div", { class: "no-content-placeholder" }, h("i", { class: "sicon-shopping-bag icon" }), h("p", null, salla.lang.getWithDefault('common.elements.no_items', 'لا توجد عناصر'))))), h("div", { class: "s-order-edit-actions" }, h("salla-button", { onClick: () => this.saveOrder(), loading: this.saveLoading, disabled: !this.hasChanges }, salla.lang.getWithDefault('pages.orders.save_changes', 'حفظ التعديلات')), h("salla-button", { color: "gray", fill: "outline", onClick: () => this.cancel() }, salla.lang.getWithDefault('common.elements.cancel', 'الغاء'))), this.renderSaveModal()));
|
|
174
|
+
}
|
|
175
|
+
get host() { return getElement(this); }
|
|
176
|
+
};
|
|
177
|
+
SallaOrderEdit.style = sallaOrderEditCss;
|
|
178
|
+
|
|
179
|
+
export { SallaOrderEdit as salla_order_edit };
|
|
@@ -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-BcMtCVX0.js';
|
|
5
5
|
import { i as iconCheck } from './check-BsXh13x8.js';
|
|
6
6
|
|
|
7
7
|
var iconFileArchive = `<!-- Generated by IcoMoon.io -->
|
|
@@ -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-BcMtCVX0.js';
|
|
5
5
|
import { H as Helper } from './Helper-DFMXF2_h.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, h, H as Host, a as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BcMtCVX0.js';
|
|
5
5
|
|
|
6
6
|
const sallaPaymentsCss = ":host{display:block}";
|
|
7
7
|
|
|
@@ -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-BcMtCVX0.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">
|
|
@@ -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-BcMtCVX0.js';
|
|
5
5
|
import { a as arrowLeft } from './arrow-left-BedNk7k1.js';
|
|
6
6
|
|
|
7
7
|
var arrowRight = `<!-- Generated by IcoMoon.io -->
|