@mercurjs/vendor 2.1.6 → 2.2.0-canary.11
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/[id]-A55T2ORL.js +3066 -0
- package/dist/[id]-B4YZTANM.js +1571 -0
- package/dist/{[id]-UTKO3VG4.js → [id]-EKLRGVBA.js} +10 -10
- package/dist/{[id]-TO6KT3ZE.js → [id]-FE5GYYVZ.js} +28 -25
- package/dist/{[id]-4VCL3MMM.js → [id]-GBT6VB4S.js} +29 -23
- package/dist/{[id]-3G5G7ZFV.js → [id]-GC3ZYPK4.js} +25 -22
- package/dist/{[id]-6PXEWRG7.js → [id]-J6BZG5PU.js} +14 -14
- package/dist/{[id]-B3LHVQM5.js → [id]-QOEO3JOV.js} +29 -23
- package/dist/{[id]-H3C3ZSC6.js → [id]-QQU5HVFU.js} +29 -23
- package/dist/{[id]-PDGHF5J2.js → [id]-SHAJTJNZ.js} +43 -36
- package/dist/{[id]-X4DDKOMQ.js → [id]-T5ECVBPF.js} +30 -24
- package/dist/{[id]-T2ROPEGY.js → [id]-U5KZEQDR.js} +7 -7
- package/dist/{[id]-7RUAH3TI.js → [id]-YPCO3DJV.js} +5 -5
- package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
- package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
- package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-6GUA4PV5.js} +23 -20
- package/dist/{add-C6OX5C54.js → add-NTRYWOJF.js} +42 -35
- package/dist/add-RU3WL4YB.js +428 -0
- package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-U5RZWW4B.js} +19 -16
- package/dist/{add-products-INOLNPO6.js → add-products-Q4MMDQKT.js} +26 -20
- package/dist/{add-promotions-AHDOP52Q.js → add-promotions-3AYXQXTP.js} +8 -8
- package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-QKYQCSR2.js} +4 -4
- package/dist/{address-KRENKSLP.js → address-77Y3AOQ3.js} +19 -16
- package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-AFJLWF5R.js} +2 -2
- package/dist/{allocate-items-SUCUZU4D.js → allocate-items-TCM5A55Y.js} +141 -126
- package/dist/{areas-UUMZDXLX.js → areas-XUC5V5UO.js} +8 -8
- package/dist/{attributes-CALEHJJG.js → attributes-SZP2MM5L.js} +3 -3
- package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-2XA2WOK7.js} +1 -1
- package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-5NP23D6X.js} +15 -12
- package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-EVZIOB2G.js} +14 -11
- package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-FPWBT76A.js} +8 -2
- package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-IK6XCQOQ.js} +2 -2
- package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-KTARIL65.js} +2 -2
- package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-PBR27GGX.js} +3 -3
- package/dist/breadcrumb-THJ2HPRB.js +26 -0
- package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-TNJSGX4T.js} +15 -12
- package/dist/{campaigns-HS6MIO7X.js → campaigns-JAQTSA4Z.js} +6 -6
- package/dist/{categories-PKWR3FM3.js → categories-T4QJYX4R.js} +8 -8
- package/dist/{chunk-4URLUCTD.js → chunk-25E4KME5.js} +3 -3
- package/dist/chunk-27KRIXMQ.js +71 -0
- package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
- package/dist/{chunk-ZYOXKUKZ.js → chunk-2QTNCGKX.js} +1 -1
- package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
- package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
- package/dist/{chunk-VQ5EKDA3.js → chunk-3PMM6AMP.js} +3 -3
- package/dist/{chunk-J6BRLL3F.js → chunk-463CNCJC.js} +3 -3
- package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
- package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
- package/dist/{chunk-RUE5BPC2.js → chunk-5QI3NDJG.js} +1 -1
- package/dist/{chunk-PPLC4IKI.js → chunk-5T6UWTRU.js} +10 -5
- package/dist/{chunk-WITQNQXN.js → chunk-6FUIK3PX.js} +4 -4
- package/dist/{chunk-HGQTL7NX.js → chunk-6K6EQOJF.js} +3 -3
- package/dist/{chunk-KAZ5BYTQ.js → chunk-6OUPJNYO.js} +5 -3
- package/dist/{chunk-PEKANQ3T.js → chunk-6UZERVBI.js} +2 -2
- package/dist/{chunk-RTAWYMQP.js → chunk-7CMRFP5Q.js} +2 -2
- package/dist/{chunk-I2IKYOZX.js → chunk-7IPCLQ5V.js} +19 -19
- package/dist/chunk-ADGVQVHP.js +101 -0
- package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
- package/dist/chunk-BER45EYD.js +82 -0
- package/dist/{chunk-PCMNEUMV.js → chunk-BXRNZS5K.js} +1 -1
- package/dist/chunk-CFRWIQIZ.js +43 -0
- package/dist/{chunk-RL7SFZOF.js → chunk-DDJQRV6E.js} +1 -1
- package/dist/{chunk-D2MA5TAP.js → chunk-DO4F5FIO.js} +2 -2
- package/dist/{chunk-X4FLOQ45.js → chunk-DQKK43PR.js} +3 -3
- package/dist/{chunk-6WY5X4PE.js → chunk-E6W57UP3.js} +35 -125
- package/dist/chunk-FP6U6BPH.js +61 -0
- package/dist/chunk-FWPGOIFA.js +22 -0
- package/dist/{chunk-BLVJAKBA.js → chunk-FWS4YJ4B.js} +1 -1
- package/dist/chunk-GAE6TKOR.js +811 -0
- package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
- package/dist/{chunk-PDQSPKG5.js → chunk-GN6KB75Z.js} +1 -1
- package/dist/chunk-HDEOZN2Q.js +60 -0
- package/dist/chunk-IBEUR3J7.js +173 -0
- package/dist/chunk-J6XCRFBW.js +30 -0
- package/dist/{chunk-ZEVYT6IX.js → chunk-JAUZ73XE.js} +151 -266
- package/dist/{chunk-CNLP35S7.js → chunk-K6LOZ4S3.js} +54 -18
- package/dist/{chunk-JQP7MOFH.js → chunk-KIFSQOM2.js} +2 -2
- package/dist/{chunk-DARJTN4I.js → chunk-L4KBTV57.js} +9 -2
- package/dist/chunk-L57USMYC.js +39 -0
- package/dist/chunk-LARLBYU6.js +127 -0
- package/dist/chunk-LDZCCWJB.js +518 -0
- package/dist/chunk-LEWA4BPH.js +18 -0
- package/dist/chunk-LFX6WU4A.js +36 -0
- package/dist/{chunk-ITI54CII.js → chunk-LKUW5SV4.js} +6 -6
- package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
- package/dist/{chunk-4MFMCZEJ.js → chunk-MJCL3WID.js} +2 -2
- package/dist/{chunk-32RYSB2V.js → chunk-NBKWY6XN.js} +2 -2
- package/dist/{chunk-GYV6SKY7.js → chunk-O7VOGTLX.js} +4 -6
- package/dist/{chunk-KQGVSLUI.js → chunk-OYKUQXJX.js} +1926 -957
- package/dist/{chunk-CYTNBXWF.js → chunk-OZ44ATGE.js} +8 -8
- package/dist/{chunk-7Q5SDEK7.js → chunk-PAVZ6FPK.js} +7 -7
- package/dist/{chunk-2RHAI7WK.js → chunk-QLBIBLOY.js} +2 -2
- package/dist/chunk-RXV7INUV.js +426 -0
- package/dist/chunk-S23FD6FA.js +210 -0
- package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
- package/dist/{chunk-OXXL4WQU.js → chunk-SPOHNK4X.js} +6 -6
- package/dist/{chunk-AIF2KTEE.js → chunk-SSUUT5LK.js} +12 -2
- package/dist/{chunk-QX45GVAL.js → chunk-SZBERGA4.js} +8 -8
- package/dist/{chunk-6SBMVLJ2.js → chunk-T5MJWWDX.js} +2 -2
- package/dist/chunk-T6LHVNWO.js +27 -0
- package/dist/chunk-TBYCZRZ7.js +248 -0
- package/dist/chunk-TF6V3TFG.js +438 -0
- package/dist/chunk-TW324MAT.js +185 -0
- package/dist/{chunk-4ZGFODSC.js → chunk-TYESCFYW.js} +1 -1
- package/dist/chunk-U5G3AVED.js +64 -0
- package/dist/chunk-U6PBLMXD.js +14 -0
- package/dist/{chunk-GZMXTNDN.js → chunk-UCYSCKZV.js} +1432 -1380
- package/dist/{chunk-P3ZTO6T2.js → chunk-UFFVRF4V.js} +2 -2
- package/dist/chunk-UM7ZR3VU.js +14 -0
- package/dist/chunk-UORPTGV2.js +114 -0
- package/dist/{chunk-5M3SL4UZ.js → chunk-VCOQ7WQ2.js} +30 -106
- package/dist/chunk-VCUUITW6.js +35 -0
- package/dist/{chunk-PTW7JNAP.js → chunk-VDHW6H5F.js} +5 -5
- package/dist/chunk-VZUA5SRD.js +62 -0
- package/dist/{chunk-DKQ4XMSN.js → chunk-X4GWB6AT.js} +6 -6
- package/dist/{chunk-6YA3C4NB.js → chunk-XCIMOIX6.js} +3 -12
- package/dist/chunk-XP23ZVQT.js +2183 -0
- package/dist/{chunk-WBI7FEGI.js → chunk-Y2MQ5EMD.js} +29 -24
- package/dist/chunk-YBF45CX5.js +23 -0
- package/dist/{chunk-N7OVXN72.js → chunk-YGJCJBPM.js} +1 -1
- package/dist/{chunk-WNVEMFIK.js → chunk-YHIJCI4U.js} +3 -3
- package/dist/{chunk-WFE6CT6M.js → chunk-YQZBAP3S.js} +22 -76
- package/dist/chunk-ZHFFTT3I.js +17 -0
- package/dist/{collections-DJZI2RM2.js → collections-URH2TCWJ.js} +28 -24
- package/dist/{configuration-GN3TO77H.js → configuration-7IYZ6GNP.js} +3 -3
- package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
- package/dist/{create-7S7CZWEN.js → create-5PSOIHIT.js} +4 -4
- package/dist/create-7R6CZU53.js +215 -0
- package/dist/{create-3EK5CNNX.js → create-A7B3MLJX.js} +41 -34
- package/dist/create-F5R76QML.js +1178 -0
- package/dist/create-FKRYB7ZS.js +1784 -0
- package/dist/create-GGACODDN.js +1914 -0
- package/dist/{create-YO55Z3YD.js → create-HVZYJ3YC.js} +35 -38
- package/dist/{create-IDVCZHIX.js → create-JF2OUZQA.js} +16 -13
- package/dist/{create-3ZVXEPX5.js → create-JGYG5SBM.js} +29 -23
- package/dist/{create-G4T2PAJH.js → create-MS6KKFSV.js} +21 -18
- package/dist/{create-OCFPLNNY.js → create-MZYXMGKP.js} +6 -6
- package/dist/{create-HKJVSFB7.js → create-O35JRZEF.js} +25 -22
- package/dist/{create-OGLPDVOI.js → create-ODOFJF5N.js} +40 -37
- package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
- package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
- package/dist/create-TKXH5KQY.js +239 -0
- package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
- package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
- package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
- package/dist/{customers-6ZLE65UX.js → customers-SOLJ2KQQ.js} +5 -5
- package/dist/{edit-QBISX7D3.js → edit-2R5QCPTB.js} +16 -13
- package/dist/{edit-IR6V2IDN.js → edit-3E4ZO7HT.js} +21 -18
- package/dist/{edit-ZSOI56BQ.js → edit-4G5D7TES.js} +52 -40
- package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
- package/dist/{edit-B75KK5ZX.js → edit-5CROKEJE.js} +41 -34
- package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
- package/dist/{edit-7HTH2UJF.js → edit-FXNXTVIW.js} +3 -3
- package/dist/{edit-RNT555GP.js → edit-G2E5SNGU.js} +15 -12
- package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
- package/dist/{edit-2KRJIPRK.js → edit-HTLLYECP.js} +21 -18
- package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
- package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
- package/dist/{edit-FNDDSSMT.js → edit-OKU6FMHJ.js} +60 -9
- package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
- package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
- package/dist/edit-VVLITC2E.js +910 -0
- package/dist/edit-XSICGAVO.js +176 -0
- package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
- package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
- package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
- package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-ZKXXL3QK.js} +2 -2
- package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-GSKUMORD.js} +3 -3
- package/dist/{fulfillment-DCS67LTK.js → fulfillment-76IVZ266.js} +32 -22
- package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-G2L6LEVO.js} +24 -20
- package/dist/index.css +104 -65
- package/dist/index.d.ts +3 -10
- package/dist/index.js +549 -456
- package/dist/{inventory-OPZ2FSEE.js → inventory-WSFLTA6Z.js} +7 -7
- package/dist/{invite-KEJLNXEZ.js → invite-2673PU4I.js} +17 -13
- package/dist/{invite-CQCKEQW2.js → invite-HRXZ5YBP.js} +28 -24
- package/dist/loader-VDYPD3RI.js +31 -0
- package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
- package/dist/{login-OUHRNNXA.js → login-TWUBU6I6.js} +14 -11
- package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-XHH5DVIR.js} +2 -2
- package/dist/{media-4KYFHB5V.js → media-Z4N5MKFG.js} +42 -9
- package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
- package/dist/{metadata-OCE6A3JE.js → metadata-D6M66NQK.js} +17 -14
- package/dist/{metadata-PYY4IB7K.js → metadata-NIDIBXJT.js} +17 -14
- package/dist/{metadata-XP3ZYW2M.js → metadata-Q74OJWUD.js} +18 -15
- package/dist/{metadata-NYYL26MQ.js → metadata-REQIFWWH.js} +18 -15
- package/dist/{metadata-G7KZXVNE.js → metadata-YVHJPDLD.js} +17 -14
- package/dist/offer-create-page-E4FLSDJQ.js +743 -0
- package/dist/offer-detail-page-6SIBQTLP.js +492 -0
- package/dist/offer-edit-page-3MO566RP.js +151 -0
- package/dist/offer-inventory-batch-page-BD6PMDLW.js +290 -0
- package/dist/offer-pricing-edit-page-4TINK42V.js +199 -0
- package/dist/offers-GVN5LCK6.js +32 -0
- package/dist/{onboarding-WXZHW62K.js → onboarding-MK2RIFD4.js} +24 -21
- package/dist/{orders-LWJ472VM.js → orders-TVQDR4OJ.js} +30 -26
- package/dist/organization-XO3T2K2X.js +340 -0
- package/dist/{organize-RFOMQCBG.js → organize-5XRZWD5C.js} +4 -4
- package/dist/{organize-OVKJ3HZO.js → organize-Z7JTTDH4.js} +4 -4
- package/dist/pages/index.d.ts +439 -758
- package/dist/pages/index.js +85 -78
- package/dist/{payment-details-UVXYCTUK.js → payment-details-CFTX3QDL.js} +19 -16
- package/dist/{payouts-TR7K5I37.js → payouts-7Q7D4FET.js} +8 -8
- package/dist/{price-lists-S2WNELFZ.js → price-lists-6TFLA53G.js} +9 -9
- package/dist/{pricing-UF27DAXA.js → pricing-ECXV6K7G.js} +41 -37
- package/dist/{product-tags-2CKH2M6D.js → product-tags-5O7ZG6SA.js} +40 -33
- package/dist/{product-types-FX43JEO2.js → product-types-PKUEL7X5.js} +6 -6
- package/dist/product-variant-detail-PUWOMVHQ.js +210 -0
- package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-WZNO4CQX.js} +134 -66
- package/dist/{products-H5EMRJYS.js → products-BM3IIH5P.js} +27 -21
- package/dist/{products-2LHGS7X3.js → products-CPTRYL2Z.js} +44 -45
- package/dist/{professional-details-HYKTH44B.js → professional-details-ED4HNYXY.js} +18 -15
- package/dist/{profile-PB27WIRW.js → profile-6TGCNNUU.js} +21 -18
- package/dist/{promotions-5EYPGHJP.js → promotions-4336KI7E.js} +9 -9
- package/dist/receive-224KLULH.js +578 -0
- package/dist/refund-IGMSXQNX.js +268 -0
- package/dist/{register-X45K325N.js → register-OZ5CRANZ.js} +18 -15
- package/dist/{reset-password-GTWLBOFK.js → reset-password-5UHZU4D3.js} +1 -1
- package/dist/{return-reasons-LOKYRGMI.js → return-reasons-QJRA2ZX6.js} +21 -17
- package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-CZDU7VTE.js} +7 -6
- package/dist/{sales-channels-7R2IY3KG.js → sales-channels-U55MUDQP.js} +7 -6
- package/dist/{settings-2XDLFYMS.js → settings-2GCQQTO6.js} +47 -40
- package/dist/shipment-HWQHMX2L.js +242 -0
- package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-ZP7M6VSS.js} +2 -2
- package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-C5WBXWZ2.js} +21 -18
- package/dist/{stock-5RXNUPUT.js → stock-MQA7PRO6.js} +21 -18
- package/dist/{store-MPYOWMZT.js → store-5ZHZR4JI.js} +84 -149
- package/dist/{store-closure-DNMCHUXD.js → store-closure-H5WHV3LA.js} +24 -16
- package/dist/{store-select-UTPJ7DM7.js → store-select-PZS556FB.js} +19 -16
- package/dist/{tax-regions-UD6P5FVC.js → tax-regions-HDLBFZVG.js} +6 -6
- package/dist/{team-IMS66MVP.js → team-CLKJCZNH.js} +29 -26
- package/dist/types-CtCEtTE6.d.ts +16 -0
- package/package.json +5 -5
- package/dist/[id]-BYP37PU4.js +0 -1314
- package/dist/[id]-INOFZHL7.js +0 -1219
- package/dist/add-KRAGFFBJ.js +0 -158
- package/dist/bulk-edit-3SMBLIOA.js +0 -244
- package/dist/chunk-47SXTGLN.js +0 -397
- package/dist/chunk-4KX6CBJ4.js +0 -178
- package/dist/chunk-DLNNTQRY.js +0 -217
- package/dist/chunk-FX4V5JCF.js +0 -37
- package/dist/chunk-GC33DBKG.js +0 -143
- package/dist/chunk-LQYMBSRQ.js +0 -66
- package/dist/chunk-NK4NR6MN.js +0 -173
- package/dist/chunk-PFU6FSXY.js +0 -430
- package/dist/chunk-QJEOPT2P.js +0 -330
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-STR3NGWE.js +0 -3736
- package/dist/create-3DOO3RNH.js +0 -716
- package/dist/create-I7HV3RM6.js +0 -150
- package/dist/edit-K2AD335I.js +0 -237
- package/dist/edit-VO5XLIEL.js +0 -362
- package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
- package/dist/organization-LPYQRTQC.js +0 -303
- package/dist/prices-3OXV5RGY.js +0 -270
- package/dist/product-variant-detail-WV4KXVXR.js +0 -590
- package/dist/shipment-4GW2JFWB.js +0 -174
- package/dist/stock-GPC3BCL6.js +0 -500
- package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
- /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
|
@@ -2,6 +2,7 @@ import "./chunk-NXDFDEKP.js";
|
|
|
2
2
|
import {
|
|
3
3
|
CountrySelect
|
|
4
4
|
} from "./chunk-7CAFYKKA.js";
|
|
5
|
+
import "./chunk-JRTZWK77.js";
|
|
5
6
|
import "./chunk-TKGWSUEI.js";
|
|
6
7
|
import {
|
|
7
8
|
KeyboundForm
|
|
@@ -9,34 +10,36 @@ import {
|
|
|
9
10
|
import {
|
|
10
11
|
RouteDrawer,
|
|
11
12
|
useRouteModal
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GDWBOQI5.js";
|
|
13
14
|
import {
|
|
14
15
|
Form
|
|
15
16
|
} from "./chunk-3QSRE5LS.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
useMe,
|
|
19
|
-
useUpdateSellerAddress
|
|
20
|
-
} from "./chunk-47SXTGLN.js";
|
|
17
|
+
import "./chunk-TBYCZRZ7.js";
|
|
21
18
|
import "./chunk-F4OJN2F2.js";
|
|
22
19
|
import "./chunk-LRARA622.js";
|
|
23
20
|
import "./chunk-M6N4ISXL.js";
|
|
24
21
|
import "./chunk-S7EKBD2C.js";
|
|
25
|
-
import "./chunk-VXMOPVRH.js";
|
|
26
|
-
import "./chunk-IQWK723D.js";
|
|
27
22
|
import "./chunk-VV6IKGCN.js";
|
|
28
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-BXRNZS5K.js";
|
|
29
24
|
import "./chunk-BOZJOOGW.js";
|
|
30
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-T6LHVNWO.js";
|
|
26
|
+
import "./chunk-4S6XGIC6.js";
|
|
27
|
+
import {
|
|
28
|
+
useMe,
|
|
29
|
+
useUpdateSellerAddress
|
|
30
|
+
} from "./chunk-S23FD6FA.js";
|
|
31
|
+
import "./chunk-IQWK723D.js";
|
|
32
|
+
import "./chunk-DDJQRV6E.js";
|
|
31
33
|
import "./chunk-LWJF63JW.js";
|
|
32
|
-
import "./chunk-NBPMNUKZ.js";
|
|
33
|
-
import "./chunk-WBI7FEGI.js";
|
|
34
34
|
import "./chunk-VXWN37PT.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-5QI3NDJG.js";
|
|
36
|
+
import "./chunk-VZUA5SRD.js";
|
|
37
|
+
import "./chunk-VXMOPVRH.js";
|
|
38
|
+
import "./chunk-NBPMNUKZ.js";
|
|
39
|
+
import "./chunk-UORPTGV2.js";
|
|
40
|
+
import "./chunk-Y2MQ5EMD.js";
|
|
37
41
|
import "./chunk-3B34B2M2.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-ZEVYT6IX.js";
|
|
42
|
+
import "./chunk-JAUZ73XE.js";
|
|
40
43
|
import "./chunk-A5DJIOHN.js";
|
|
41
44
|
import "./chunk-RHKRREUU.js";
|
|
42
45
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
RouteDrawer,
|
|
10
10
|
useRouteModal
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GDWBOQI5.js";
|
|
12
12
|
import {
|
|
13
13
|
Form
|
|
14
14
|
} from "./chunk-3QSRE5LS.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
useInventoryItem,
|
|
20
20
|
useInventoryItemLevels,
|
|
21
21
|
useUpdateInventoryLevel
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JAUZ73XE.js";
|
|
23
23
|
import "./chunk-A5DJIOHN.js";
|
|
24
24
|
import "./chunk-RHKRREUU.js";
|
|
25
25
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -8,10 +8,13 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
RouteFocusModal,
|
|
10
10
|
useRouteModal
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GDWBOQI5.js";
|
|
12
12
|
import {
|
|
13
13
|
Form
|
|
14
14
|
} from "./chunk-3QSRE5LS.js";
|
|
15
|
+
import {
|
|
16
|
+
Thumbnail
|
|
17
|
+
} from "./chunk-WIYFXWRI.js";
|
|
15
18
|
import {
|
|
16
19
|
useStockLocations
|
|
17
20
|
} from "./chunk-NBPMNUKZ.js";
|
|
@@ -19,11 +22,8 @@ import {
|
|
|
19
22
|
ordersQueryKeys,
|
|
20
23
|
useCreateReservationItem,
|
|
21
24
|
useOrder
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import
|
|
24
|
-
Thumbnail
|
|
25
|
-
} from "./chunk-WIYFXWRI.js";
|
|
26
|
-
import "./chunk-ZEVYT6IX.js";
|
|
25
|
+
} from "./chunk-Y2MQ5EMD.js";
|
|
26
|
+
import "./chunk-JAUZ73XE.js";
|
|
27
27
|
import "./chunk-A5DJIOHN.js";
|
|
28
28
|
import {
|
|
29
29
|
queryClient
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
import { useWatch } from "react-hook-form";
|
|
61
61
|
import { Input, Text, clx } from "@medusajs/ui";
|
|
62
62
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
63
|
+
var resolveInventoryItemId = (link) => link.inventory_item?.id ?? link.inventory_item_id ?? null;
|
|
63
64
|
function OrderAllocateItemsItem({
|
|
64
65
|
item,
|
|
65
66
|
form,
|
|
@@ -67,19 +68,20 @@ function OrderAllocateItemsItem({
|
|
|
67
68
|
onQuantityChange
|
|
68
69
|
}) {
|
|
69
70
|
const { t } = useTranslation();
|
|
70
|
-
const
|
|
71
|
-
const inventory = item.variant?.inventory || [];
|
|
71
|
+
const inventoryLinks = item.offer?.inventory_item_link ?? [];
|
|
72
72
|
const [isOpen, setIsOpen] = useState(false);
|
|
73
73
|
const quantityField = useWatch({
|
|
74
74
|
control: form.control,
|
|
75
75
|
name: "quantity"
|
|
76
76
|
});
|
|
77
|
-
const hasInventoryKit =
|
|
77
|
+
const hasInventoryKit = inventoryLinks.length > 1;
|
|
78
|
+
const firstLink = inventoryLinks[0];
|
|
79
|
+
const firstLinkId = firstLink ? resolveInventoryItemId(firstLink) : null;
|
|
78
80
|
const { availableQuantity, inStockQuantity } = useMemo(() => {
|
|
79
|
-
if (!
|
|
81
|
+
if (!firstLink || !locationId) {
|
|
80
82
|
return {};
|
|
81
83
|
}
|
|
82
|
-
const locationInventory =
|
|
84
|
+
const locationInventory = firstLink.inventory_item?.location_levels?.find(
|
|
83
85
|
(inv) => inv.location_id === locationId
|
|
84
86
|
);
|
|
85
87
|
if (!locationInventory) {
|
|
@@ -89,8 +91,8 @@ function OrderAllocateItemsItem({
|
|
|
89
91
|
availableQuantity: locationInventory.available_quantity,
|
|
90
92
|
inStockQuantity: locationInventory.stocked_quantity
|
|
91
93
|
};
|
|
92
|
-
}, [
|
|
93
|
-
const hasQuantityError = !hasInventoryKit && availableQuantity &&
|
|
94
|
+
}, [firstLink, locationId]);
|
|
95
|
+
const hasQuantityError = !hasInventoryKit && availableQuantity && firstLinkId && quantityField[`${item.id}-${firstLinkId}`] && Number(quantityField[`${item.id}-${firstLinkId}`]) > availableQuantity;
|
|
94
96
|
const minValue = 0;
|
|
95
97
|
const maxValue = Math.min(
|
|
96
98
|
getFulfillableQuantity(item) ?? 0,
|
|
@@ -104,10 +106,10 @@ function OrderAllocateItemsItem({
|
|
|
104
106
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
105
107
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-row", children: [
|
|
106
108
|
/* @__PURE__ */ jsx(Text, { className: "txt-small flex", as: "span", weight: "plus", children: item.product_title }),
|
|
107
|
-
item.variant_sku && /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-subtle", children: [
|
|
109
|
+
(item.offer?.sku ?? item.variant_sku) && /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-subtle", children: [
|
|
108
110
|
" ",
|
|
109
111
|
"(",
|
|
110
|
-
item.variant_sku,
|
|
112
|
+
item.offer?.sku ?? item.variant_sku,
|
|
111
113
|
")"
|
|
112
114
|
] }),
|
|
113
115
|
hasInventoryKit && /* @__PURE__ */ jsx(Component, { className: "text-ui-fg-muted ml-2 overflow-visible pt-[2px]" })
|
|
@@ -130,9 +132,9 @@ function OrderAllocateItemsItem({
|
|
|
130
132
|
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle font-medium", children: t("labels.available") }),
|
|
131
133
|
/* @__PURE__ */ jsxs("span", { className: "text-ui-fg-muted", children: [
|
|
132
134
|
availableQuantity || "-",
|
|
133
|
-
availableQuantity && !hasInventoryKit &&
|
|
135
|
+
availableQuantity && !hasInventoryKit && firstLinkId && quantityField[`${item.id}-${firstLinkId}`] && /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-error txt-small ml-1", children: [
|
|
134
136
|
"-",
|
|
135
|
-
quantityField[`${item.id}-${
|
|
137
|
+
quantityField[`${item.id}-${firstLinkId}`]
|
|
136
138
|
] })
|
|
137
139
|
] })
|
|
138
140
|
] })
|
|
@@ -152,7 +154,7 @@ function OrderAllocateItemsItem({
|
|
|
152
154
|
Form.Field,
|
|
153
155
|
{
|
|
154
156
|
control: form.control,
|
|
155
|
-
name: hasInventoryKit &&
|
|
157
|
+
name: hasInventoryKit && firstLinkId ? `quantity.${item.id}-` : `quantity.${item.id}-${firstLinkId ?? ""}`,
|
|
156
158
|
rules: {
|
|
157
159
|
required: !hasInventoryKit,
|
|
158
160
|
min: !hasInventoryKit ? minValue : void 0,
|
|
@@ -168,10 +170,9 @@ function OrderAllocateItemsItem({
|
|
|
168
170
|
disabled: !locationId,
|
|
169
171
|
onChange: (e) => {
|
|
170
172
|
const val = e.target.value === "" ? null : Number(e.target.value);
|
|
171
|
-
|
|
172
|
-
if (firstInventory) {
|
|
173
|
+
if (firstLink) {
|
|
173
174
|
onQuantityChange(
|
|
174
|
-
|
|
175
|
+
firstLink,
|
|
175
176
|
item,
|
|
176
177
|
hasInventoryKit,
|
|
177
178
|
val,
|
|
@@ -209,91 +210,100 @@ function OrderAllocateItemsItem({
|
|
|
209
210
|
}
|
|
210
211
|
),
|
|
211
212
|
/* @__PURE__ */ jsx("span", { className: "txt-small text-ui-fg-muted cursor-pointer", children: t("orders.allocateItems.consistsOf", {
|
|
212
|
-
num:
|
|
213
|
+
num: inventoryLinks.length
|
|
213
214
|
}) })
|
|
214
215
|
]
|
|
215
216
|
}
|
|
216
217
|
) }),
|
|
217
|
-
isOpen &&
|
|
218
|
-
const
|
|
218
|
+
isOpen && inventoryLinks.map((link, ind) => {
|
|
219
|
+
const inventoryItemId = resolveInventoryItemId(link);
|
|
220
|
+
const location = link.inventory_item?.location_levels?.find(
|
|
219
221
|
(l) => l.location_id === locationId
|
|
220
222
|
);
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle font-medium", children: t("labels.available") }),
|
|
237
|
-
/* @__PURE__ */ jsxs("span", { className: "text-ui-fg-muted", children: [
|
|
238
|
-
location?.available_quantity || "-",
|
|
239
|
-
location?.available_quantity && quantityField[`${item.id}-${i.id}`] && /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-error txt-small ml-1", children: [
|
|
240
|
-
"-",
|
|
241
|
-
quantityField[`${item.id}-${i.id}`]
|
|
242
|
-
] })
|
|
223
|
+
const required = link.required_quantity ?? 1;
|
|
224
|
+
const quantityKey = `${item.id}-${inventoryItemId ?? ""}`;
|
|
225
|
+
const childHasError = !!quantityField[quantityKey] && location && Number(quantityField[quantityKey]) > (location.available_quantity ?? 0);
|
|
226
|
+
return /* @__PURE__ */ jsxs(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
className: "txt-small flex items-center gap-x-3 p-4",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-row items-center gap-3", children: [
|
|
232
|
+
childHasError && /* @__PURE__ */ jsx(ExclamationCircleSolid, { className: "text-ui-fg-error" }),
|
|
233
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
234
|
+
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle", children: link.inventory_item?.title ?? link.inventory_item?.sku ?? `Inventory Item ${ind + 1}` }),
|
|
235
|
+
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted", children: t("orders.allocateItems.requires", {
|
|
236
|
+
num: required
|
|
237
|
+
}) })
|
|
243
238
|
] })
|
|
244
|
-
] })
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
239
|
+
] }),
|
|
240
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-row justify-between", children: [
|
|
241
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
242
|
+
/* @__PURE__ */ jsx("div", { className: "bg-ui-border-strong block h-[12px] w-[1px]" }),
|
|
243
|
+
/* @__PURE__ */ jsxs("div", { className: "txt-small flex flex-col", children: [
|
|
244
|
+
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle font-medium", children: t("labels.available") }),
|
|
245
|
+
/* @__PURE__ */ jsxs("span", { className: "text-ui-fg-muted", children: [
|
|
246
|
+
location?.available_quantity || "-",
|
|
247
|
+
location?.available_quantity && quantityField[quantityKey] && /* @__PURE__ */ jsxs("span", { className: "text-ui-fg-error txt-small ml-1", children: [
|
|
248
|
+
"-",
|
|
249
|
+
quantityField[quantityKey]
|
|
250
|
+
] })
|
|
251
|
+
] })
|
|
252
|
+
] })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
255
|
+
/* @__PURE__ */ jsx("div", { className: "bg-ui-border-strong block h-[12px] w-[1px]" }),
|
|
256
|
+
/* @__PURE__ */ jsxs("div", { className: "txt-small flex flex-col", children: [
|
|
257
|
+
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-subtle font-medium", children: t("labels.inStock") }),
|
|
258
|
+
/* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted", children: location?.stocked_quantity || "-" })
|
|
259
|
+
] })
|
|
260
|
+
] }),
|
|
261
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
262
|
+
/* @__PURE__ */ jsx("div", { className: "bg-ui-border-strong block h-[12px] w-[1px]" }),
|
|
263
|
+
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle txt-small mr-1 flex flex-row items-center gap-2", children: [
|
|
264
|
+
/* @__PURE__ */ jsx(
|
|
265
|
+
Form.Field,
|
|
266
|
+
{
|
|
267
|
+
control: form.control,
|
|
268
|
+
name: `quantity.${item.id}-${inventoryItemId ?? ""}`,
|
|
269
|
+
rules: {
|
|
270
|
+
required: true,
|
|
271
|
+
min: 0,
|
|
272
|
+
max: location?.available_quantity ?? void 0
|
|
273
|
+
},
|
|
274
|
+
render: ({ field }) => {
|
|
275
|
+
return /* @__PURE__ */ jsx(Form.Item, { children: /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
|
|
276
|
+
Input,
|
|
277
|
+
{
|
|
278
|
+
className: "bg-ui-bg-base txt-small w-[46px] rounded-lg text-right [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
279
|
+
type: "number",
|
|
280
|
+
...field,
|
|
281
|
+
disabled: !locationId,
|
|
282
|
+
onChange: (e) => {
|
|
283
|
+
const val = e.target.value === "" ? null : Number(e.target.value);
|
|
284
|
+
onQuantityChange(
|
|
285
|
+
link,
|
|
286
|
+
item,
|
|
287
|
+
hasInventoryKit,
|
|
288
|
+
val
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
) }) });
|
|
283
293
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
t("fields.qty")
|
|
294
|
+
}
|
|
295
|
+
),
|
|
296
|
+
"/ ",
|
|
297
|
+
item.quantity * required,
|
|
298
|
+
" ",
|
|
299
|
+
t("fields.qty")
|
|
300
|
+
] })
|
|
301
|
+
] })
|
|
293
302
|
] })
|
|
294
|
-
]
|
|
295
|
-
|
|
296
|
-
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
link.id ?? inventoryItemId ?? `link-${ind}`
|
|
306
|
+
);
|
|
297
307
|
})
|
|
298
308
|
] });
|
|
299
309
|
}
|
|
@@ -308,7 +318,7 @@ function OrderAllocateItemsForm({ order }) {
|
|
|
308
318
|
const { mutateAsync: allocateItems, isPending: isMutating } = useCreateReservationItem();
|
|
309
319
|
const itemsToAllocate = useMemo2(
|
|
310
320
|
() => order.items.filter(
|
|
311
|
-
(item) =>
|
|
321
|
+
(item) => !!item.offer?.inventory_item_link?.length && item?.quantity - (item.detail?.fulfilled_quantity ?? 0) > 0
|
|
312
322
|
),
|
|
313
323
|
[order.items]
|
|
314
324
|
);
|
|
@@ -357,18 +367,16 @@ function OrderAllocateItemsForm({ order }) {
|
|
|
357
367
|
});
|
|
358
368
|
}
|
|
359
369
|
});
|
|
360
|
-
const onQuantityChange = (
|
|
370
|
+
const onQuantityChange = (link, lineItem, hasInventoryKit, value, isRoot) => {
|
|
361
371
|
let shouldDisableSubmit = false;
|
|
362
|
-
const
|
|
372
|
+
const inventoryItemId = resolveInventoryItemId2(link);
|
|
373
|
+
const key = isRoot && hasInventoryKit ? `quantity.${lineItem.id}-` : `quantity.${lineItem.id}-${inventoryItemId ?? ""}`;
|
|
363
374
|
form.setValue(key, value ?? "");
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
)
|
|
368
|
-
|
|
369
|
-
if (location.available_quantity < value) {
|
|
370
|
-
shouldDisableSubmit = true;
|
|
371
|
-
}
|
|
375
|
+
const levels = link.inventory_item?.location_levels;
|
|
376
|
+
if (value && levels) {
|
|
377
|
+
const location = levels.find((l) => l.location_id === selectedLocationId);
|
|
378
|
+
if (location && (location.available_quantity ?? 0) < value) {
|
|
379
|
+
shouldDisableSubmit = true;
|
|
372
380
|
}
|
|
373
381
|
}
|
|
374
382
|
if (hasInventoryKit && !isRoot) {
|
|
@@ -376,23 +384,23 @@ function OrderAllocateItemsForm({ order }) {
|
|
|
376
384
|
}
|
|
377
385
|
if (hasInventoryKit && isRoot) {
|
|
378
386
|
const item = itemsToAllocate.find((i) => i.id === lineItem.id);
|
|
379
|
-
if (!item || !item.
|
|
380
|
-
item.
|
|
387
|
+
if (!item || !item.offer?.inventory_item_link) return;
|
|
388
|
+
item.offer.inventory_item_link.forEach((childLink) => {
|
|
381
389
|
const num = value || 0;
|
|
382
|
-
const
|
|
383
|
-
if (!
|
|
390
|
+
const childInventoryItemId = resolveInventoryItemId2(childLink);
|
|
391
|
+
if (!childInventoryItemId) return;
|
|
392
|
+
const required = childLink.required_quantity ?? 1;
|
|
384
393
|
form.setValue(
|
|
385
|
-
`quantity.${lineItem.id}-${
|
|
386
|
-
num *
|
|
394
|
+
`quantity.${lineItem.id}-${childInventoryItemId}`,
|
|
395
|
+
num * required
|
|
387
396
|
);
|
|
388
|
-
|
|
389
|
-
|
|
397
|
+
const childLevels = childLink.inventory_item?.location_levels;
|
|
398
|
+
if (value && childLevels) {
|
|
399
|
+
const location = childLevels.find(
|
|
390
400
|
(l) => l.location_id === selectedLocationId
|
|
391
401
|
);
|
|
392
|
-
if (location) {
|
|
393
|
-
|
|
394
|
-
shouldDisableSubmit = true;
|
|
395
|
-
}
|
|
402
|
+
if (location && (location.available_quantity ?? 0) < num * required) {
|
|
403
|
+
shouldDisableSubmit = true;
|
|
396
404
|
}
|
|
397
405
|
}
|
|
398
406
|
});
|
|
@@ -501,14 +509,18 @@ function OrderAllocateItemsForm({ order }) {
|
|
|
501
509
|
}
|
|
502
510
|
) });
|
|
503
511
|
}
|
|
512
|
+
var resolveInventoryItemId2 = (link) => link.inventory_item?.id ?? link.inventory_item_id ?? null;
|
|
504
513
|
function defaultAllocations(items) {
|
|
505
514
|
const ret = {};
|
|
506
515
|
items.forEach((item) => {
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
516
|
+
const links = item.offer?.inventory_item_link ?? [];
|
|
517
|
+
const hasInventoryKit = links.length > 1;
|
|
518
|
+
const firstInventoryItemId = resolveInventoryItemId2(links[0] ?? {});
|
|
519
|
+
ret[hasInventoryKit ? `${item.id}-` : `${item.id}-${firstInventoryItemId ?? ""}`] = "";
|
|
520
|
+
if (hasInventoryKit) {
|
|
521
|
+
links.forEach((link) => {
|
|
522
|
+
const id = resolveInventoryItemId2(link);
|
|
523
|
+
if (id) ret[`${item.id}-${id}`] = "";
|
|
512
524
|
});
|
|
513
525
|
}
|
|
514
526
|
});
|
|
@@ -520,7 +532,10 @@ import { jsx as jsx3 } from "react/jsx-runtime";
|
|
|
520
532
|
var Component2 = () => {
|
|
521
533
|
const { id } = useParams();
|
|
522
534
|
const { order, isLoading, isError, error } = useOrder(id, {
|
|
523
|
-
|
|
535
|
+
// `*foo,*foo.bar` or `+foo.bar.baz` makes Medusa's query parser try
|
|
536
|
+
// to look up a literal property `*items` / `+items` on Order and
|
|
537
|
+
// 500. Use `<rel>.*` plus bare scalar names.
|
|
538
|
+
fields: "currency_code,items.*,items.variant.*,items.variant.product.title,items.offer.*,items.offer.inventory_item_link.*,items.offer.inventory_item_link.required_quantity,items.offer.inventory_item_link.inventory_item.*,items.offer.inventory_item_link.inventory_item.location_levels.*,shipping_address.*"
|
|
524
539
|
});
|
|
525
540
|
if (isError) {
|
|
526
541
|
throw error;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GeoZoneForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VDHW6H5F.js";
|
|
4
4
|
import {
|
|
5
5
|
GEO_ZONE_STACKED_MODAL_ID
|
|
6
6
|
} from "./chunk-BCU3FKP2.js";
|
|
7
|
+
import {
|
|
8
|
+
countries
|
|
9
|
+
} from "./chunk-JRTZWK77.js";
|
|
7
10
|
import "./chunk-FQERBIVS.js";
|
|
8
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SSUUT5LK.js";
|
|
9
12
|
import "./chunk-YN3FGNJM.js";
|
|
10
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-6OUPJNYO.js";
|
|
11
14
|
import "./chunk-3EF54XFY.js";
|
|
12
15
|
import "./chunk-TKGWSUEI.js";
|
|
13
16
|
import {
|
|
@@ -17,13 +20,11 @@ import {
|
|
|
17
20
|
RouteFocusModal,
|
|
18
21
|
StackedFocusModal,
|
|
19
22
|
useRouteModal
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GDWBOQI5.js";
|
|
21
24
|
import "./chunk-3QSRE5LS.js";
|
|
22
25
|
import "./chunk-THHRRYRS.js";
|
|
23
26
|
import "./chunk-LRD242C7.js";
|
|
24
|
-
import
|
|
25
|
-
countries
|
|
26
|
-
} from "./chunk-JRTZWK77.js";
|
|
27
|
+
import "./chunk-INNFZYX2.js";
|
|
27
28
|
import {
|
|
28
29
|
useUpdateFulfillmentSetServiceZone
|
|
29
30
|
} from "./chunk-S7EKBD2C.js";
|
|
@@ -33,7 +34,6 @@ import {
|
|
|
33
34
|
} from "./chunk-NBPMNUKZ.js";
|
|
34
35
|
import "./chunk-QHQWEERJ.js";
|
|
35
36
|
import "./chunk-Y7QKP6QU.js";
|
|
36
|
-
import "./chunk-INNFZYX2.js";
|
|
37
37
|
import "./chunk-RHKRREUU.js";
|
|
38
38
|
import "./chunk-ZA2KFUFR.js";
|
|
39
39
|
import "./chunk-RIN4CBRB.js";
|
|
@@ -2,6 +2,7 @@ import "./chunk-NXDFDEKP.js";
|
|
|
2
2
|
import {
|
|
3
3
|
CountrySelect
|
|
4
4
|
} from "./chunk-7CAFYKKA.js";
|
|
5
|
+
import "./chunk-JRTZWK77.js";
|
|
5
6
|
import "./chunk-TKGWSUEI.js";
|
|
6
7
|
import {
|
|
7
8
|
KeyboundForm
|
|
@@ -9,15 +10,14 @@ import {
|
|
|
9
10
|
import {
|
|
10
11
|
RouteDrawer,
|
|
11
12
|
useRouteModal
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GDWBOQI5.js";
|
|
13
14
|
import {
|
|
14
15
|
Form
|
|
15
16
|
} from "./chunk-3QSRE5LS.js";
|
|
16
|
-
import "./chunk-JRTZWK77.js";
|
|
17
17
|
import {
|
|
18
18
|
useProduct,
|
|
19
19
|
useUpdateProduct
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JAUZ73XE.js";
|
|
21
21
|
import "./chunk-A5DJIOHN.js";
|
|
22
22
|
import "./chunk-RHKRREUU.js";
|
|
23
23
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductTagDetailBreadcrumb
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TYESCFYW.js";
|
|
4
|
+
import "./chunk-TBYCZRZ7.js";
|
|
5
5
|
import "./chunk-F4OJN2F2.js";
|
|
6
6
|
import "./chunk-LRARA622.js";
|
|
7
7
|
import "./chunk-M6N4ISXL.js";
|
|
8
8
|
import "./chunk-S7EKBD2C.js";
|
|
9
|
-
import "./chunk-VXMOPVRH.js";
|
|
10
|
-
import "./chunk-IQWK723D.js";
|
|
11
9
|
import "./chunk-VV6IKGCN.js";
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-BXRNZS5K.js";
|
|
13
11
|
import "./chunk-BOZJOOGW.js";
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-T6LHVNWO.js";
|
|
13
|
+
import "./chunk-4S6XGIC6.js";
|
|
14
|
+
import "./chunk-S23FD6FA.js";
|
|
15
|
+
import "./chunk-IQWK723D.js";
|
|
16
|
+
import "./chunk-DDJQRV6E.js";
|
|
15
17
|
import "./chunk-LWJF63JW.js";
|
|
16
|
-
import "./chunk-NBPMNUKZ.js";
|
|
17
|
-
import "./chunk-WBI7FEGI.js";
|
|
18
18
|
import "./chunk-VXWN37PT.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-5QI3NDJG.js";
|
|
20
|
+
import "./chunk-VZUA5SRD.js";
|
|
21
|
+
import "./chunk-VXMOPVRH.js";
|
|
22
|
+
import "./chunk-NBPMNUKZ.js";
|
|
23
|
+
import "./chunk-UORPTGV2.js";
|
|
24
|
+
import "./chunk-Y2MQ5EMD.js";
|
|
21
25
|
import "./chunk-3B34B2M2.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-ZEVYT6IX.js";
|
|
26
|
+
import "./chunk-JAUZ73XE.js";
|
|
24
27
|
import "./chunk-A5DJIOHN.js";
|
|
25
28
|
import "./chunk-RHKRREUU.js";
|
|
26
29
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-TBYCZRZ7.js";
|
|
2
2
|
import "./chunk-F4OJN2F2.js";
|
|
3
3
|
import "./chunk-LRARA622.js";
|
|
4
4
|
import "./chunk-M6N4ISXL.js";
|
|
5
5
|
import "./chunk-S7EKBD2C.js";
|
|
6
|
-
import "./chunk-VXMOPVRH.js";
|
|
7
|
-
import "./chunk-IQWK723D.js";
|
|
8
6
|
import {
|
|
9
7
|
useProductType
|
|
10
8
|
} from "./chunk-VV6IKGCN.js";
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-BXRNZS5K.js";
|
|
12
10
|
import "./chunk-BOZJOOGW.js";
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-T6LHVNWO.js";
|
|
12
|
+
import "./chunk-4S6XGIC6.js";
|
|
13
|
+
import "./chunk-S23FD6FA.js";
|
|
14
|
+
import "./chunk-IQWK723D.js";
|
|
15
|
+
import "./chunk-DDJQRV6E.js";
|
|
14
16
|
import "./chunk-LWJF63JW.js";
|
|
15
|
-
import "./chunk-NBPMNUKZ.js";
|
|
16
|
-
import "./chunk-WBI7FEGI.js";
|
|
17
17
|
import "./chunk-VXWN37PT.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-5QI3NDJG.js";
|
|
19
|
+
import "./chunk-VZUA5SRD.js";
|
|
20
|
+
import "./chunk-VXMOPVRH.js";
|
|
21
|
+
import "./chunk-NBPMNUKZ.js";
|
|
22
|
+
import "./chunk-UORPTGV2.js";
|
|
23
|
+
import "./chunk-Y2MQ5EMD.js";
|
|
20
24
|
import "./chunk-3B34B2M2.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-ZEVYT6IX.js";
|
|
25
|
+
import "./chunk-JAUZ73XE.js";
|
|
23
26
|
import "./chunk-A5DJIOHN.js";
|
|
24
27
|
import "./chunk-RHKRREUU.js";
|
|
25
28
|
import "./chunk-ZA2KFUFR.js";
|