@mercurjs/admin 2.3.6-canary.5 → 2.3.6-canary.7
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/{add-campaign-promotions-6OB7BUPK.js → add-campaign-promotions-LGCLOFOD.js} +13 -8
- package/dist/{adjust-inventory-32UZ4BZC.js → adjust-inventory-H46YCNLT.js} +7 -2
- package/dist/{api-key-management-detail-P5C3F2D7.js → api-key-management-detail-Z4KSJHUC.js} +5 -7
- package/dist/{api-key-management-list-XV66E2LA.js → api-key-management-list-QZIRPINF.js} +5 -5
- package/dist/{api-key-management-sales-channels-FS3KXQQ6.js → api-key-management-sales-channels-RGZ3QITG.js} +9 -7
- package/dist/{attribute-create-UWLP2DZY.js → attribute-create-OFTZRQCO.js} +3 -2
- package/dist/{attribute-detail-KUJ337KW.js → attribute-detail-WVN5KOH2.js} +15 -9
- package/dist/{attribute-list-FLTRNSFI.js → attribute-list-ZC3CG5LS.js} +6 -6
- package/dist/{campaign-detail-4IEM5BGI.js → campaign-detail-MGDL2TQC.js} +10 -10
- package/dist/{campaign-list-ZRUBHJEA.js → campaign-list-XCO4FJDZ.js} +5 -5
- package/dist/{categories-metadata-6F6EFZRQ.js → categories-metadata-QYH5U77W.js} +2 -2
- package/dist/{category-detail-3YY7FVY4.js → category-detail-FAP76OQB.js} +7 -8
- package/dist/{category-list-LESUC6ZK.js → category-list-XDOYTQ4X.js} +6 -6
- package/dist/{category-products-RTOFMB25.js → category-products-35ZZYVWJ.js} +12 -5
- package/dist/{chunk-NIDM2VQO.js → chunk-23CSVCQK.js} +28 -17
- package/dist/{chunk-DUFGVZ6H.js → chunk-25TWJMWE.js} +2 -2
- package/dist/{chunk-VTXMQTXK.js → chunk-26REB3B6.js} +4 -3
- package/dist/{chunk-5EGLQSSH.js → chunk-2IOADJUM.js} +29 -11
- package/dist/{chunk-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
- package/dist/{chunk-YHWDMARX.js → chunk-2XBNM6TM.js} +4 -4
- package/dist/{chunk-XGB456O5.js → chunk-3BKRMIWA.js} +23 -12
- package/dist/chunk-3UOYBH5O.js +8 -0
- package/dist/{chunk-XAF7FKWZ.js → chunk-473QGQSA.js} +8 -5
- package/dist/{chunk-JCRDVMIA.js → chunk-4AOVNA5G.js} +31 -20
- package/dist/{chunk-EWDBPCX7.js → chunk-4J4JAXXQ.js} +7 -5
- package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
- package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
- package/dist/{chunk-5CKBM4RI.js → chunk-4W77EUYY.js} +6 -4
- package/dist/{chunk-XABVCD7R.js → chunk-5K4WEF2N.js} +21 -10
- package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
- package/dist/{chunk-S4WDCOQD.js → chunk-5QW3GY37.js} +27 -14
- package/dist/{chunk-OZKHBVDV.js → chunk-72DFLNNI.js} +11 -5
- package/dist/{chunk-7QZFRDTU.js → chunk-7GCMYYFL.js} +7 -4
- package/dist/{chunk-AYKMFPKF.js → chunk-7LUKMT5J.js} +4 -2
- package/dist/{chunk-I6HCTKMK.js → chunk-7OTRTHLL.js} +6 -4
- package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
- package/dist/{chunk-PFQO7UQG.js → chunk-AW4RL2SA.js} +60 -33
- package/dist/{chunk-62YRQVR7.js → chunk-AZV22U4V.js} +20 -5
- package/dist/{chunk-VYSTJIAD.js → chunk-CX5XB56X.js} +4 -3
- package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
- package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
- package/dist/{chunk-ZGNLAPV6.js → chunk-DUKOOIQD.js} +5 -4
- package/dist/{chunk-ACEEFNIX.js → chunk-DVFILGNQ.js} +9 -7
- package/dist/{chunk-DJ73BQSS.js → chunk-DWPBJEEM.js} +20 -7
- package/dist/{chunk-6ZMSV6PN.js → chunk-E43YJQ2B.js} +42 -18
- package/dist/{chunk-FCOYAYQE.js → chunk-EHLCUND7.js} +11 -9
- package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
- package/dist/{chunk-UXA6RZMP.js → chunk-EVYQCNVT.js} +6 -4
- package/dist/{chunk-YM5X7CQL.js → chunk-FCAJQFYT.js} +32 -12
- package/dist/{chunk-VC2GAWL4.js → chunk-G63BL5AB.js} +7 -4
- package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
- package/dist/{chunk-O3RDRDCO.js → chunk-GQGCXLVP.js} +32 -13
- package/dist/{chunk-DDZPK7BW.js → chunk-GQYB3OOC.js} +107 -64
- package/dist/{chunk-IFG5ONPV.js → chunk-GZUXEIEB.js} +2 -2
- package/dist/{chunk-VOXWLJHA.js → chunk-H3TOETGJ.js} +11 -6
- package/dist/{chunk-7ASAC2FM.js → chunk-H4TJZB26.js} +26 -18
- package/dist/{chunk-26WXQ6LI.js → chunk-HHAM76HD.js} +43 -25
- package/dist/{chunk-XAQLGDAI.js → chunk-HPMMGA5B.js} +1 -1
- package/dist/{chunk-QK3HIMET.js → chunk-I3RGMOTM.js} +20 -12
- package/dist/{chunk-FS4E6GS6.js → chunk-IQRFJO4N.js} +5 -3
- package/dist/{chunk-LBFX6AVE.js → chunk-JFRYC6GK.js} +17 -10
- package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
- package/dist/{chunk-KYVPZH3D.js → chunk-K6OBX6ZR.js} +7 -6
- package/dist/{chunk-V6UH5UQT.js → chunk-KB3BTLIB.js} +6 -4
- package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
- package/dist/{chunk-DOEBGZMA.js → chunk-LCUAIH7P.js} +6 -4
- package/dist/{chunk-5VHQX7Q3.js → chunk-M7VHCFCW.js} +9 -7
- package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
- package/dist/{chunk-RU5IUJC2.js → chunk-MFGLOUTZ.js} +32 -10
- package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
- package/dist/{chunk-MQFPD5J4.js → chunk-MNKJHZZT.js} +10 -6
- package/dist/{chunk-XV4YW4GE.js → chunk-NDS246VB.js} +20 -12
- package/dist/{chunk-IHTYHAOC.js → chunk-NHZU2M7Z.js} +8 -6
- package/dist/{chunk-24JEBPKI.js → chunk-NJ2NRKAJ.js} +57 -14
- package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
- package/dist/{chunk-GDFMWKL6.js → chunk-OGTWBHJC.js} +1 -1
- package/dist/{chunk-LXW3L56Z.js → chunk-Q2XWHI6K.js} +6 -3
- package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
- package/dist/{chunk-IKDIEJZC.js → chunk-RAD3UMQ3.js} +6 -4
- package/dist/{chunk-WA3UZTKD.js → chunk-RUGB47D3.js} +1 -1
- package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
- package/dist/{chunk-HGFMHWPB.js → chunk-SW46WBFA.js} +29 -14
- package/dist/{chunk-G7444ISU.js → chunk-SZSAJHN7.js} +6 -5
- package/dist/{chunk-GR7S7WTT.js → chunk-TPWSE5HE.js} +16 -11
- package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
- package/dist/{chunk-ZPHVFD4N.js → chunk-TXZWIFWX.js} +1 -0
- package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
- package/dist/{chunk-AZMXFIDY.js → chunk-USEE6QNQ.js} +67 -27
- package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
- package/dist/{chunk-7C7YLUYT.js → chunk-V3UQOU5W.js} +4 -2
- package/dist/{chunk-XXYVUV5F.js → chunk-VD2CKAYG.js} +21 -10
- package/dist/{chunk-D3KEKNYN.js → chunk-VHO6ZXW2.js} +9 -5
- package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
- package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
- package/dist/{chunk-LFFWPZQK.js → chunk-WD5XBWAN.js} +120 -55
- package/dist/chunk-WSK532ZA.js +236 -0
- package/dist/chunk-XI4SB5YZ.js +2891 -0
- package/dist/{chunk-KMLQ2ENL.js → chunk-XNGTE2VC.js} +1 -1
- package/dist/{chunk-RFENVF7Y.js → chunk-XUOGIKEE.js} +3 -3
- package/dist/{chunk-R22UAHRF.js → chunk-YDESULL7.js} +3 -1
- package/dist/{chunk-AGQ2BWD4.js → chunk-YN4KTMRA.js} +9 -7
- package/dist/{chunk-IVWSTXBV.js → chunk-YUKJJHI7.js} +8 -5
- package/dist/{chunk-ZFPASY4R.js → chunk-Z2FX5GG4.js} +24 -12
- package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
- package/dist/{chunk-FX7HVGV5.js → chunk-ZQZFY3UY.js} +6 -4
- package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
- package/dist/{collection-add-products-O5ILXKFY.js → collection-add-products-IIBLH7XQ.js} +12 -5
- package/dist/{collection-detail-CTXO7RMM.js → collection-detail-IYZKDR4L.js} +7 -8
- package/dist/{collection-list-MWXFS7UY.js → collection-list-EIDV4DEH.js} +12 -12
- package/dist/{collection-metadata-QUMWZABV.js → collection-metadata-IKYBHHEU.js} +2 -2
- package/dist/{commission-rule-create-CDLLQIY4.js → commission-rule-create-QDNXXBTV.js} +64 -30
- package/dist/{commission-rule-detail-LFEZ5U6V.js → commission-rule-detail-QYJIK375.js} +3 -5
- package/dist/{commission-rule-edit-5CFKPI7U.js → commission-rule-edit-HICDPDLK.js} +58 -24
- package/dist/{commissions-list-PQUFPRZK.js → commissions-list-AQUW636T.js} +6 -6
- package/dist/{customer-detail-ZYETGMFF.js → customer-detail-TBGKTNQQ.js} +8 -8
- package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
- package/dist/{customer-group-detail-RPDRZGPZ.js → customer-group-detail-47IPD337.js} +6 -7
- package/dist/{customer-group-list-MZ7H4XLD.js → customer-group-list-Q2AYIVO4.js} +6 -7
- package/dist/{customer-group-metadata-UQ2SCLOK.js → customer-group-metadata-T3WFBL7U.js} +2 -2
- package/dist/{customer-list-46W5PJR3.js → customer-list-JOPTF4QB.js} +5 -6
- package/dist/{customer-metadata-UEQSIGLT.js → customer-metadata-YSMWL4L3.js} +2 -2
- package/dist/{customers-add-customer-group-AZYAIQ7E.js → customers-add-customer-group-AVRYBS6Q.js} +13 -6
- package/dist/{edit-inventory-item-ENA2OFSQ.js → edit-inventory-item-7M7Q6HL4.js} +1 -1
- package/dist/{edit-inventory-item-attributes-Z26UDTSH.js → edit-inventory-item-attributes-E7J2WFPF.js} +1 -1
- package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
- package/dist/{edit-rules-3DCWA5UF.js → edit-rules-NRF7U4AT.js} +1 -1
- package/dist/home-KKOF4FWS.js +64 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +10 -28
- package/dist/index.js +553 -3448
- package/dist/{inventory-detail-MMONC625.js → inventory-detail-U6TRGZRY.js} +7 -7
- package/dist/{inventory-list-FN7FCI4W.js → inventory-list-JWA7U2LB.js} +4 -5
- package/dist/{inventory-metadata-OGS7JMZ5.js → inventory-metadata-KO622YEI.js} +2 -2
- package/dist/{inventory-stock-LDBJQCJF.js → inventory-stock-WWXYVFK2.js} +20 -10
- package/dist/{location-detail-74247BA4.js → location-detail-27FBZML7.js} +4 -6
- package/dist/{location-fulfillment-providers-JGJOTGMZ.js → location-fulfillment-providers-XTYJWAVP.js} +19 -11
- package/dist/{location-list-JJN42JSH.js → location-list-RMHT36AO.js} +4 -6
- package/dist/{location-sales-channels-TNP3C7UW.js → location-sales-channels-JB5OIMXE.js} +13 -6
- package/dist/{location-service-zone-create-KPM4RSCF.js → location-service-zone-create-JKAKZCZ2.js} +3 -3
- package/dist/{location-service-zone-manage-areas-NW5JUTCH.js → location-service-zone-manage-areas-K2BMFI5Y.js} +3 -3
- package/dist/{location-service-zone-shipping-option-create-RYAIECRU.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +3 -3
- package/dist/{location-service-zone-shipping-option-edit-UUIR7B5S.js → location-service-zone-shipping-option-edit-I7BJGH76.js} +23 -10
- package/dist/{location-service-zone-shipping-option-pricing-Z5HCXRHG.js → location-service-zone-shipping-option-pricing-47Y3CP4U.js} +36 -12
- package/dist/{login-2NBVRH4U.js → login-ISNIWXU2.js} +2 -2
- package/dist/{manage-locations-TCMY6A4J.js → manage-locations-5FKFNJQN.js} +13 -2
- package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
- package/dist/{marketplace-detail-JSUMZVZS.js → marketplace-detail-A76FTENH.js} +6 -6
- package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
- package/dist/{marketplace-metadata-2TZTRDRJ.js → marketplace-metadata-364KJG43.js} +2 -2
- package/dist/{offer-detail-page-JGS52M66.js → offer-detail-page-BDDDZSPL.js} +22 -11
- package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
- package/dist/{offers-6MDVGCJK.js → offers-OVX5AAQL.js} +7 -8
- package/dist/{order-create-claim-4CIL76V5.js → order-create-claim-4ERPSGPD.js} +105 -61
- package/dist/{order-create-edit-BFE4N7RN.js → order-create-edit-BGLNMKKI.js} +17 -10
- package/dist/{order-create-exchange-CBQ5PA6M.js → order-create-exchange-TOPPZZGS.js} +106 -62
- package/dist/{order-create-refund-ZWMXQGUA.js → order-create-refund-M3K5MZDM.js} +38 -23
- package/dist/{order-create-return-USO7AS7R.js → order-create-return-64GZ2LCL.js} +109 -70
- package/dist/{order-detail-U3HDRBBG.js → order-detail-DIUKR6ZJ.js} +8 -8
- package/dist/{order-edit-billing-address-V6QS5DYF.js → order-edit-billing-address-CCRTK5E2.js} +2 -2
- package/dist/{order-edit-email-AGJU7YHU.js → order-edit-email-V45SEUCO.js} +1 -1
- package/dist/{order-edit-shipping-address-TKLEEHOE.js → order-edit-shipping-address-45Z6TNHL.js} +1 -1
- package/dist/{order-list-L2WZX5ED.js → order-list-C7PHMQ64.js} +5 -5
- package/dist/{order-metadata-NVC3A3A5.js → order-metadata-7245QRUQ.js} +2 -2
- package/dist/{order-request-transfer-7EZX5UOQ.js → order-request-transfer-JYPDXCY2.js} +27 -13
- package/dist/pages/index.d.ts +2 -2
- package/dist/pages/index.js +89 -89
- package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
- package/dist/{price-list-create-RNVWVB5D.js → price-list-create-UZRCHVU7.js} +9 -9
- package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
- package/dist/{price-list-detail-WHJKFDYZ.js → price-list-detail-IL7VSABK.js} +7 -8
- package/dist/{price-list-list-AM2GMQ7P.js → price-list-list-TD5JIO7L.js} +5 -5
- package/dist/{price-list-prices-add-ZDKNOJRU.js → price-list-prices-add-DSRYUJUT.js} +8 -8
- package/dist/{price-list-prices-edit-S4V5ACN3.js → price-list-prices-edit-WELHT4O4.js} +18 -9
- package/dist/{product-add-existing-attributes-VWM3LNIO.js → product-add-existing-attributes-RPIHTSCE.js} +7 -5
- package/dist/{product-create-NVAKRIPS.js → product-create-PMV3LO62.js} +9 -9
- package/dist/{product-detail-DZRYNPRT.js → product-detail-KVLZYO76.js} +7 -8
- package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
- package/dist/{product-list-SYMPZR6W.js → product-list-M6B42KCG.js} +7 -8
- package/dist/{product-media-6XS74AU3.js → product-media-R2FIBFR5.js} +2 -2
- package/dist/{product-metadata-GKQUURAL.js → product-metadata-SC5BXN66.js} +2 -2
- package/dist/{product-organization-3PIQ4IY2.js → product-organization-BSPYZYZR.js} +87 -43
- package/dist/{product-sales-channels-PJNEIY4J.js → product-sales-channels-MNAFJKAI.js} +10 -5
- package/dist/{product-shipping-profile-SWB5FK7S.js → product-shipping-profile-G4NCDKSR.js} +25 -11
- package/dist/{product-tag-create-SYOFR5EK.js → product-tag-create-PX7Q2AXU.js} +1 -1
- package/dist/{product-tag-detail-HM2AWFGU.js → product-tag-detail-LXO43RMB.js} +12 -12
- package/dist/{product-tag-edit-FJPBCFBH.js → product-tag-edit-PXSZMCCT.js} +1 -1
- package/dist/{product-tag-list-OBV7CZZL.js → product-tag-list-XWTZGQTT.js} +12 -12
- package/dist/{product-tag-metadata-WQEGISQ5.js → product-tag-metadata-2SO7ICOZ.js} +2 -2
- package/dist/{product-type-detail-D3OYCXGR.js → product-type-detail-NO4PKFYQ.js} +7 -8
- package/dist/{product-type-list-LCLWJPIT.js → product-type-list-JXU3446J.js} +5 -5
- package/dist/{product-type-metadata-WCGB3U4N.js → product-type-metadata-7D3J3NSO.js} +2 -2
- package/dist/{product-variant-detail-7B26FRNG.js → product-variant-detail-VQ55W7PD.js} +3 -5
- package/dist/{product-variant-edit-UC34WTO7.js → product-variant-edit-3WSHMGDI.js} +1 -1
- package/dist/{product-variant-metadata-CTKNNNLM.js → product-variant-metadata-KFLIOCU2.js} +2 -2
- package/dist/{profile-detail-TQWGKYRK.js → profile-detail-SQZ6JFAN.js} +3 -5
- package/dist/{profile-edit-ZBD6N5SC.js → profile-edit-IVU3SBQA.js} +3 -3
- package/dist/{promotion-add-campaign-VAF3HTLK.js → promotion-add-campaign-SWTS4TM5.js} +2 -1
- package/dist/{promotion-create-FKRGXGI4.js → promotion-create-6TMK6PEP.js} +4 -3
- package/dist/{promotion-detail-IC5LHRSY.js → promotion-detail-WBTMSCTX.js} +6 -8
- package/dist/{promotion-list-TVTDBBJ3.js → promotion-list-FPOTDLHX.js} +9 -9
- package/dist/{refund-reason-create-TOH2D225.js → refund-reason-create-HZOBFOPB.js} +1 -1
- package/dist/{refund-reason-edit-B32E4WHH.js → refund-reason-edit-KS6NMC22.js} +1 -1
- package/dist/{refund-reason-list-G5QJEYPW.js → refund-reason-list-4T7DIRZV.js} +6 -7
- package/dist/{region-add-countries-4CTAVHYW.js → region-add-countries-47QLUMX7.js} +2 -2
- package/dist/{region-create-S2WUJ4RA.js → region-create-7DI3QEPU.js} +25 -11
- package/dist/{region-detail-IBLHFR57.js → region-detail-S5OT2PGL.js} +4 -5
- package/dist/{region-edit-NUMG2V5L.js → region-edit-IXCS3MRH.js} +32 -14
- package/dist/{region-list-JTR3SEWI.js → region-list-2MWAGD2D.js} +4 -5
- package/dist/{region-metadata-NAHNXAHQ.js → region-metadata-ADPG7OLJ.js} +2 -2
- package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
- package/dist/{reservation-detail-OCIIVYIN.js → reservation-detail-EBIDXEVF.js} +3 -5
- package/dist/{reservation-list-JQFVSRW5.js → reservation-list-5QNXC2WU.js} +4 -5
- package/dist/{reservation-metadata-AKR6FRG5.js → reservation-metadata-TWJE777O.js} +2 -2
- package/dist/{reset-password-RJ5VSBQV.js → reset-password-3YLCNWLP.js} +1 -1
- package/dist/{return-reason-list-PKAJDA6A.js → return-reason-list-BDR7VUEV.js} +6 -6
- package/dist/{review-detail-K555FECH.js → review-detail-NPB3OKCE.js} +2 -4
- package/dist/{review-list-E56WE7VS.js → review-list-NXBVRP5T.js} +4 -5
- package/dist/{sales-channel-add-products-RRTMXVAT.js → sales-channel-add-products-VAHBFZP3.js} +15 -6
- package/dist/{sales-channel-detail-7GAGHWEP.js → sales-channel-detail-A7HHMQVX.js} +7 -8
- package/dist/{sales-channel-list-BCL62DTX.js → sales-channel-list-246V7NV3.js} +4 -6
- package/dist/{sales-channel-metadata-BKNILVQ2.js → sales-channel-metadata-PMLMQIKU.js} +2 -2
- package/dist/settings-UYGKDTNO.js +63 -0
- package/dist/{shipping-option-type-create-ZVOMA222.js → shipping-option-type-create-NOFP2DOM.js} +1 -1
- package/dist/{shipping-option-type-detail-BKMYJMQY.js → shipping-option-type-detail-47AZVCFP.js} +3 -5
- package/dist/{shipping-option-type-edit-CZFRAZPJ.js → shipping-option-type-edit-42JILKHX.js} +1 -1
- package/dist/{shipping-option-type-list-R76AQI26.js → shipping-option-type-list-TTAA63ZN.js} +6 -6
- package/dist/{shipping-profile-detail-KPRFJE4V.js → shipping-profile-detail-RGB67K3C.js} +2 -4
- package/dist/{shipping-profile-metadata-UEZYRBZQ.js → shipping-profile-metadata-GXMY5E57.js} +2 -2
- package/dist/{shipping-profiles-list-W25ZUWGV.js → shipping-profiles-list-DD3G2THE.js} +4 -5
- package/dist/{store-create-JBY2MAIT.js → store-create-UQ333C5F.js} +36 -14
- package/dist/{store-details-5FBLCWOV.js → store-details-OAONJZHB.js} +9 -10
- package/dist/{store-edit-BXWV5H4Z.js → store-edit-6Q3GLLJE.js} +2 -2
- package/dist/{store-list-MAT74WSB.js → store-list-PANSKKVA.js} +10 -11
- package/dist/{store-member-invite-A2WAB5GK.js → store-member-invite-235YGK55.js} +14 -5
- package/dist/{tax-region-create-OGVIIVMO.js → tax-region-create-ECRRD74Z.js} +2 -2
- package/dist/{tax-region-detail-O4DZFMT5.js → tax-region-detail-PU4Q42KO.js} +7 -8
- package/dist/{tax-region-edit-DUBTSOQ4.js → tax-region-edit-P4L2CUFV.js} +1 -1
- package/dist/{tax-region-list-ETNXAC2A.js → tax-region-list-PUNXDH34.js} +5 -6
- package/dist/{tax-region-metadata-KHODQCDW.js → tax-region-metadata-EDZ7YGYR.js} +2 -2
- package/dist/{tax-region-province-detail-LOOLLFNO.js → tax-region-province-detail-3ZQOCKZ2.js} +6 -7
- package/dist/{tax-region-tax-override-create-NMLHLS7J.js → tax-region-tax-override-create-CPWWLRMI.js} +10 -10
- package/dist/{tax-region-tax-override-edit-4SJ3DRAF.js → tax-region-tax-override-edit-TQCB5GSO.js} +41 -21
- package/dist/{user-detail-MJ3ITMNK.js → user-detail-4H37KBIP.js} +3 -5
- package/dist/{user-edit-Y5VP6CKB.js → user-edit-42A2VX5E.js} +1 -1
- package/dist/{user-invite-YVLFH6HU.js → user-invite-5EJ3CIQZ.js} +10 -9
- package/dist/{user-list-6IYBI6HY.js → user-list-EZ56HFI3.js} +5 -6
- package/dist/{user-metadata-XNM2JNNO.js → user-metadata-3GENWLUS.js} +2 -2
- package/package.json +6 -6
- package/dist/chunk-BDGZ4EQO.js +0 -86
- package/dist/home-I3OILW5Z.js +0 -16
- package/dist/settings-AVE3VCCM.js +0 -19
- package/dist/{customer-edit-5EH2AUGN.js → customer-edit-LDKAXHZ6.js} +3 -3
- package/dist/{invite-6WUERQLW.js → invite-IZ2YTVPF.js} +1 -1
- package/dist/{store-bulk-edit-FQPQQR46.js → store-bulk-edit-XWDZQPFO.js} +1 -1
|
@@ -72,6 +72,9 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
Form
|
|
74
74
|
} from "./chunk-3QSRE5LS.js";
|
|
75
|
+
import {
|
|
76
|
+
ConditionalTooltip
|
|
77
|
+
} from "./chunk-LAVHRER2.js";
|
|
75
78
|
import {
|
|
76
79
|
Thumbnail
|
|
77
80
|
} from "./chunk-U3I6S3RO.js";
|
|
@@ -82,12 +85,15 @@ import "./chunk-FQERBIVS.js";
|
|
|
82
85
|
import {
|
|
83
86
|
_DataTable,
|
|
84
87
|
useDataTable
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-SU36MZXC.js";
|
|
86
89
|
import "./chunk-YN3FGNJM.js";
|
|
87
90
|
import "./chunk-ZAOEFQ6K.js";
|
|
88
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-4J74G7N2.js";
|
|
89
92
|
import "./chunk-EIWPJWKF.js";
|
|
90
93
|
import "./chunk-46WEBDVJ.js";
|
|
94
|
+
import {
|
|
95
|
+
ActionMenu
|
|
96
|
+
} from "./chunk-3UOYBH5O.js";
|
|
91
97
|
import "./chunk-W5U6NPSN.js";
|
|
92
98
|
import "./chunk-DSQRFZCO.js";
|
|
93
99
|
import "./chunk-LHE6LM6S.js";
|
|
@@ -99,7 +105,7 @@ import "./chunk-AQHEU7OA.js";
|
|
|
99
105
|
import "./chunk-JW5SGRFC.js";
|
|
100
106
|
import "./chunk-AEBQQ2EG.js";
|
|
101
107
|
import "./chunk-CMVQ5SAG.js";
|
|
102
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-AZV22U4V.js";
|
|
103
109
|
import "./chunk-2SCR7R3C.js";
|
|
104
110
|
import "./chunk-YMMREB3P.js";
|
|
105
111
|
import "./chunk-UNS2F7DK.js";
|
|
@@ -123,13 +129,9 @@ import {
|
|
|
123
129
|
import "./chunk-OQ2J45XW.js";
|
|
124
130
|
import "./chunk-XWOFQSGH.js";
|
|
125
131
|
import "./chunk-HRMANL53.js";
|
|
126
|
-
import {
|
|
127
|
-
ActionMenu
|
|
128
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
129
132
|
import "./chunk-JC2FFAMW.js";
|
|
130
133
|
import "./chunk-OFW63WXL.js";
|
|
131
134
|
import "./chunk-SQ7J4KTS.js";
|
|
132
|
-
import "./chunk-LAVHRER2.js";
|
|
133
135
|
import "./chunk-Y7QKP6QU.js";
|
|
134
136
|
import "./chunk-INNFZYX2.js";
|
|
135
137
|
import "./chunk-Z476HUMI.js";
|
|
@@ -184,6 +186,7 @@ var ExchangeCreateSchema = z.object({
|
|
|
184
186
|
});
|
|
185
187
|
|
|
186
188
|
// src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx
|
|
189
|
+
import { usePermissionGate as usePermissionGate2 } from "@mercurjs/dashboard-shared";
|
|
187
190
|
import { Button, Heading, Text as Text2, toast } from "@medusajs/ui";
|
|
188
191
|
import { useEffect, useMemo as useMemo3 } from "react";
|
|
189
192
|
import { useFieldArray } from "react-hook-form";
|
|
@@ -440,6 +443,7 @@ var filterByDate = (items, date, field) => {
|
|
|
440
443
|
};
|
|
441
444
|
|
|
442
445
|
// src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx
|
|
446
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
443
447
|
import { ChatBubble, DocumentText, XCircle, XMark } from "@medusajs/icons";
|
|
444
448
|
import { IconButton, Input, Text } from "@medusajs/ui";
|
|
445
449
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
@@ -456,7 +460,11 @@ function ExchangeInboundItem({
|
|
|
456
460
|
locationName
|
|
457
461
|
}) {
|
|
458
462
|
const { t } = useTranslation4();
|
|
459
|
-
const
|
|
463
|
+
const reasonsGate = usePermissionGate("return_reasons:view");
|
|
464
|
+
const { return_reasons = [] } = useReturnReasons(
|
|
465
|
+
{ fields: "+label" },
|
|
466
|
+
{ enabled: reasonsGate.allowed }
|
|
467
|
+
);
|
|
460
468
|
const formItem = form.watch(`inbound_items.${index}`);
|
|
461
469
|
const showReturnReason = typeof formItem.reason_id === "string";
|
|
462
470
|
const showNote = typeof formItem.note === "string";
|
|
@@ -583,22 +591,30 @@ function ExchangeInboundItem({
|
|
|
583
591
|
name: `inbound_items.${index}.reason_id`,
|
|
584
592
|
render: ({ field: { ref: _ref, value, onChange, ...field } }) => {
|
|
585
593
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
586
|
-
/* @__PURE__ */ jsx3(
|
|
587
|
-
|
|
594
|
+
/* @__PURE__ */ jsx3(
|
|
595
|
+
ConditionalTooltip,
|
|
588
596
|
{
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
597
|
+
showTooltip: reasonsGate.denied,
|
|
598
|
+
content: reasonsGate.tooltip,
|
|
599
|
+
children: /* @__PURE__ */ jsx3("div", { children: /* @__PURE__ */ jsx3(Form.Control, { children: /* @__PURE__ */ jsx3(
|
|
600
|
+
Combobox,
|
|
601
|
+
{
|
|
602
|
+
className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover",
|
|
603
|
+
value,
|
|
604
|
+
onChange: (v) => {
|
|
605
|
+
onUpdate({ reason_id: v });
|
|
606
|
+
onChange(v);
|
|
607
|
+
},
|
|
608
|
+
...field,
|
|
609
|
+
disabled: reasonsGate.denied,
|
|
610
|
+
options: return_reasons.map((reason) => ({
|
|
611
|
+
label: reason.label,
|
|
612
|
+
value: reason.id
|
|
613
|
+
}))
|
|
614
|
+
}
|
|
615
|
+
) }) })
|
|
600
616
|
}
|
|
601
|
-
)
|
|
617
|
+
),
|
|
602
618
|
/* @__PURE__ */ jsx3(Form.ErrorMessage, {})
|
|
603
619
|
] });
|
|
604
620
|
}
|
|
@@ -716,10 +732,15 @@ var ExchangeInboundSection = ({
|
|
|
716
732
|
);
|
|
717
733
|
const locationId = form.watch("location_id");
|
|
718
734
|
const sellerId = order.seller?.id;
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
735
|
+
const locationsGate = usePermissionGate2("stock_locations:view");
|
|
736
|
+
const shippingOptionsGate = usePermissionGate2("shipping_options:view");
|
|
737
|
+
const { stock_locations = [] } = useStockLocations(
|
|
738
|
+
{
|
|
739
|
+
limit: 999,
|
|
740
|
+
...sellerId ? { seller_id: sellerId } : {}
|
|
741
|
+
},
|
|
742
|
+
{ enabled: locationsGate.allowed }
|
|
743
|
+
);
|
|
723
744
|
const { shipping_options = [] } = useShippingOptions(
|
|
724
745
|
{
|
|
725
746
|
limit: 999,
|
|
@@ -728,7 +749,7 @@ var ExchangeInboundSection = ({
|
|
|
728
749
|
...sellerId ? { seller_id: sellerId } : {}
|
|
729
750
|
},
|
|
730
751
|
{
|
|
731
|
-
enabled: !!locationId
|
|
752
|
+
enabled: !!locationId && shippingOptionsGate.allowed
|
|
732
753
|
}
|
|
733
754
|
);
|
|
734
755
|
const inboundShippingOptions = shipping_options.filter(
|
|
@@ -958,23 +979,31 @@ var ExchangeInboundSection = ({
|
|
|
958
979
|
control: form.control,
|
|
959
980
|
name: "location_id",
|
|
960
981
|
render: ({ field: { value, onChange, ...field } }) => {
|
|
961
|
-
return /* @__PURE__ */ jsx4(Form.Item, { children: /* @__PURE__ */ jsx4(
|
|
962
|
-
|
|
982
|
+
return /* @__PURE__ */ jsx4(Form.Item, { children: /* @__PURE__ */ jsx4(
|
|
983
|
+
ConditionalTooltip,
|
|
963
984
|
{
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
985
|
+
showTooltip: locationsGate.denied,
|
|
986
|
+
content: locationsGate.tooltip,
|
|
987
|
+
children: /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(Form.Control, { children: /* @__PURE__ */ jsx4(
|
|
988
|
+
Combobox,
|
|
989
|
+
{
|
|
990
|
+
...field,
|
|
991
|
+
value: value ?? void 0,
|
|
992
|
+
onChange: (v) => {
|
|
993
|
+
onChange(v);
|
|
994
|
+
onLocationChange(v);
|
|
995
|
+
},
|
|
996
|
+
disabled: locationsGate.denied,
|
|
997
|
+
options: (stock_locations ?? []).map(
|
|
998
|
+
(stockLocation) => ({
|
|
999
|
+
label: stockLocation.name,
|
|
1000
|
+
value: stockLocation.id
|
|
1001
|
+
})
|
|
1002
|
+
)
|
|
1003
|
+
}
|
|
1004
|
+
) }) })
|
|
976
1005
|
}
|
|
977
|
-
) })
|
|
1006
|
+
) });
|
|
978
1007
|
}
|
|
979
1008
|
}
|
|
980
1009
|
)
|
|
@@ -1005,24 +1034,31 @@ var ExchangeInboundSection = ({
|
|
|
1005
1034
|
control: form.control,
|
|
1006
1035
|
name: "inbound_option_id",
|
|
1007
1036
|
render: ({ field: { value, onChange, ...field } }) => {
|
|
1008
|
-
return /* @__PURE__ */ jsx4(Form.Item, { children: /* @__PURE__ */ jsx4(
|
|
1009
|
-
|
|
1037
|
+
return /* @__PURE__ */ jsx4(Form.Item, { children: /* @__PURE__ */ jsx4(
|
|
1038
|
+
ConditionalTooltip,
|
|
1010
1039
|
{
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1040
|
+
showTooltip: shippingOptionsGate.denied,
|
|
1041
|
+
content: shippingOptionsGate.tooltip,
|
|
1042
|
+
children: /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(Form.Control, { children: /* @__PURE__ */ jsx4(
|
|
1043
|
+
Combobox,
|
|
1044
|
+
{
|
|
1045
|
+
allowClear: true,
|
|
1046
|
+
value: value ?? void 0,
|
|
1047
|
+
onChange: (val) => {
|
|
1048
|
+
onChange(val);
|
|
1049
|
+
onShippingOptionChange(val);
|
|
1050
|
+
},
|
|
1051
|
+
...field,
|
|
1052
|
+
options: inboundShippingOptions.map((so) => ({
|
|
1053
|
+
label: so.name,
|
|
1054
|
+
value: so.id
|
|
1055
|
+
})),
|
|
1056
|
+
disabled: !locationId || shippingOptionsGate.denied,
|
|
1057
|
+
noResultsPlaceholder: /* @__PURE__ */ jsx4(ReturnShippingPlaceholder, {})
|
|
1058
|
+
}
|
|
1059
|
+
) }) })
|
|
1024
1060
|
}
|
|
1025
|
-
) })
|
|
1061
|
+
) });
|
|
1026
1062
|
}
|
|
1027
1063
|
}
|
|
1028
1064
|
)
|
|
@@ -1038,6 +1074,7 @@ import { useFieldArray as useFieldArray2 } from "react-hook-form";
|
|
|
1038
1074
|
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
1039
1075
|
|
|
1040
1076
|
// src/pages/orders/order-create-exchange/components/add-exchange-outbound-items-table/add-exchange-outbound-items-table.tsx
|
|
1077
|
+
import { SectionNoAccess, useCan } from "@mercurjs/dashboard-shared";
|
|
1041
1078
|
import { useMemo as useMemo5, useState as useState2 } from "react";
|
|
1042
1079
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
1043
1080
|
|
|
@@ -1215,10 +1252,14 @@ var AddExchangeOutboundItemsTable = ({
|
|
|
1215
1252
|
pageSize: PAGE_SIZE2,
|
|
1216
1253
|
prefix: PREFIX2
|
|
1217
1254
|
});
|
|
1218
|
-
const
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1255
|
+
const canViewOffers = useCan("offers");
|
|
1256
|
+
const offersResponse = useOffers(
|
|
1257
|
+
{
|
|
1258
|
+
...searchParams,
|
|
1259
|
+
fields: OFFER_PICKER_FIELDS
|
|
1260
|
+
},
|
|
1261
|
+
{ enabled: canViewOffers }
|
|
1262
|
+
);
|
|
1222
1263
|
const rawCount = offersResponse.count ?? 0;
|
|
1223
1264
|
const offers = useMemo5(() => {
|
|
1224
1265
|
const rawOffers = offersResponse.offers ?? [];
|
|
@@ -1266,6 +1307,9 @@ var AddExchangeOutboundItemsTable = ({
|
|
|
1266
1307
|
updater
|
|
1267
1308
|
}
|
|
1268
1309
|
});
|
|
1310
|
+
if (!canViewOffers) {
|
|
1311
|
+
return /* @__PURE__ */ jsx6(SectionNoAccess, {});
|
|
1312
|
+
}
|
|
1269
1313
|
return /* @__PURE__ */ jsx6(
|
|
1270
1314
|
"div",
|
|
1271
1315
|
{
|
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
Form
|
|
29
29
|
} from "./chunk-3QSRE5LS.js";
|
|
30
|
+
import {
|
|
31
|
+
ConditionalTooltip
|
|
32
|
+
} from "./chunk-LAVHRER2.js";
|
|
30
33
|
import {
|
|
31
34
|
useRefundPayment,
|
|
32
35
|
useRefundReasons
|
|
@@ -41,7 +44,7 @@ import "./chunk-AQHEU7OA.js";
|
|
|
41
44
|
import "./chunk-JW5SGRFC.js";
|
|
42
45
|
import "./chunk-AEBQQ2EG.js";
|
|
43
46
|
import "./chunk-CMVQ5SAG.js";
|
|
44
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-AZV22U4V.js";
|
|
45
48
|
import "./chunk-2SCR7R3C.js";
|
|
46
49
|
import "./chunk-YMMREB3P.js";
|
|
47
50
|
import "./chunk-UNS2F7DK.js";
|
|
@@ -77,6 +80,7 @@ import { useTranslation as useTranslation2 } from "react-i18next";
|
|
|
77
80
|
import { useParams } from "react-router-dom";
|
|
78
81
|
|
|
79
82
|
// src/pages/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx
|
|
83
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
80
84
|
import { useEffect, useMemo, useState } from "react";
|
|
81
85
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
82
86
|
import {
|
|
@@ -105,7 +109,10 @@ var CreateRefundSchema = zod.object({
|
|
|
105
109
|
var CreateRefundForm = ({ order }) => {
|
|
106
110
|
const { t } = useTranslation();
|
|
107
111
|
const { handleSuccess } = useRouteModal();
|
|
108
|
-
const
|
|
112
|
+
const reasonsGate = usePermissionGate("refund_reasons:view");
|
|
113
|
+
const { refund_reasons } = useRefundReasons(void 0, {
|
|
114
|
+
enabled: reasonsGate.allowed
|
|
115
|
+
});
|
|
109
116
|
const [searchParams] = useSearchParams();
|
|
110
117
|
const hasPaymentIdInSearchParams = !!searchParams.get("paymentId");
|
|
111
118
|
const [paymentId, setPaymentId] = useState(
|
|
@@ -310,29 +317,37 @@ var CreateRefundForm = ({ order }) => {
|
|
|
310
317
|
children: t("fields.refundReason")
|
|
311
318
|
}
|
|
312
319
|
),
|
|
313
|
-
/* @__PURE__ */ jsx(
|
|
314
|
-
|
|
320
|
+
/* @__PURE__ */ jsx(
|
|
321
|
+
ConditionalTooltip,
|
|
315
322
|
{
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
323
|
+
showTooltip: reasonsGate.denied,
|
|
324
|
+
content: reasonsGate.tooltip,
|
|
325
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Form.Control, { "data-testid": "order-create-refund-reason-control", children: /* @__PURE__ */ jsxs(
|
|
326
|
+
Select,
|
|
327
|
+
{
|
|
328
|
+
dir: direction,
|
|
329
|
+
value: field.value,
|
|
330
|
+
disabled: reasonsGate.denied,
|
|
331
|
+
onValueChange: field.onChange,
|
|
332
|
+
"data-testid": "order-create-refund-reason-select",
|
|
333
|
+
children: [
|
|
334
|
+
/* @__PURE__ */ jsx(Select.Trigger, { "data-testid": "order-create-refund-reason-trigger", children: /* @__PURE__ */ jsx(Select.Value, {}) }),
|
|
335
|
+
/* @__PURE__ */ jsx(Select.Content, { "data-testid": "order-create-refund-reason-content", children: refund_reasons?.map(
|
|
336
|
+
(reason) => /* @__PURE__ */ jsx(
|
|
337
|
+
Select.Item,
|
|
338
|
+
{
|
|
339
|
+
value: reason.id,
|
|
340
|
+
"data-testid": `order-create-refund-reason-option-${reason.id}`,
|
|
341
|
+
children: reason.label
|
|
342
|
+
},
|
|
343
|
+
reason.id
|
|
344
|
+
)
|
|
345
|
+
) })
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
) }) })
|
|
334
349
|
}
|
|
335
|
-
)
|
|
350
|
+
),
|
|
336
351
|
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "order-create-refund-reason-error" })
|
|
337
352
|
] });
|
|
338
353
|
}
|
|
@@ -52,6 +52,9 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
Form
|
|
54
54
|
} from "./chunk-3QSRE5LS.js";
|
|
55
|
+
import {
|
|
56
|
+
ConditionalTooltip
|
|
57
|
+
} from "./chunk-LAVHRER2.js";
|
|
55
58
|
import {
|
|
56
59
|
Thumbnail
|
|
57
60
|
} from "./chunk-U3I6S3RO.js";
|
|
@@ -62,12 +65,15 @@ import "./chunk-FQERBIVS.js";
|
|
|
62
65
|
import {
|
|
63
66
|
_DataTable,
|
|
64
67
|
useDataTable
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-SU36MZXC.js";
|
|
66
69
|
import "./chunk-YN3FGNJM.js";
|
|
67
70
|
import "./chunk-ZAOEFQ6K.js";
|
|
68
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-4J74G7N2.js";
|
|
69
72
|
import "./chunk-EIWPJWKF.js";
|
|
70
73
|
import "./chunk-46WEBDVJ.js";
|
|
74
|
+
import {
|
|
75
|
+
ActionMenu
|
|
76
|
+
} from "./chunk-3UOYBH5O.js";
|
|
71
77
|
import {
|
|
72
78
|
useShippingOptions
|
|
73
79
|
} from "./chunk-SCLV2T6Z.js";
|
|
@@ -78,10 +84,6 @@ import {
|
|
|
78
84
|
useOrder,
|
|
79
85
|
useOrderPreview
|
|
80
86
|
} from "./chunk-DYCCRR7B.js";
|
|
81
|
-
import {
|
|
82
|
-
ActionMenu
|
|
83
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
84
|
-
import "./chunk-LAVHRER2.js";
|
|
85
87
|
import "./chunk-Y7QKP6QU.js";
|
|
86
88
|
import "./chunk-INNFZYX2.js";
|
|
87
89
|
import "./chunk-RHKRREUU.js";
|
|
@@ -98,6 +100,7 @@ import { useTranslation as useTranslation6 } from "react-i18next";
|
|
|
98
100
|
import { toast as toast2 } from "@medusajs/ui";
|
|
99
101
|
|
|
100
102
|
// src/pages/orders/order-create-return/components/return-create-form/return-create-form.tsx
|
|
103
|
+
import { usePermissionGate as usePermissionGate2 } from "@mercurjs/dashboard-shared";
|
|
101
104
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
102
105
|
import { PencilSquare } from "@medusajs/icons";
|
|
103
106
|
import {
|
|
@@ -464,6 +467,7 @@ var filterByNumber = (items, value, field, currency_code) => {
|
|
|
464
467
|
};
|
|
465
468
|
|
|
466
469
|
// src/pages/orders/order-create-return/components/return-create-form/return-item.tsx
|
|
470
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
467
471
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
468
472
|
import { IconButton, Input, Text } from "@medusajs/ui";
|
|
469
473
|
import { ChatBubble, DocumentText, XCircle, XMark } from "@medusajs/icons";
|
|
@@ -480,7 +484,11 @@ function ReturnItem({
|
|
|
480
484
|
locationName
|
|
481
485
|
}) {
|
|
482
486
|
const { t } = useTranslation4();
|
|
483
|
-
const
|
|
487
|
+
const reasonsGate = usePermissionGate("return_reasons:view");
|
|
488
|
+
const { return_reasons = [] } = useReturnReasons(
|
|
489
|
+
{ fields: "+label" },
|
|
490
|
+
{ enabled: reasonsGate.allowed }
|
|
491
|
+
);
|
|
484
492
|
const formItem = form.watch(`items.${index}`);
|
|
485
493
|
const showReturnReason = typeof formItem.reason_id === "string";
|
|
486
494
|
const showNote = typeof formItem.note === "string";
|
|
@@ -607,22 +615,30 @@ function ReturnItem({
|
|
|
607
615
|
name: `items.${index}.reason_id`,
|
|
608
616
|
render: ({ field: { ref: _ref, value, onChange, ...field } }) => {
|
|
609
617
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
610
|
-
/* @__PURE__ */ jsx3(
|
|
611
|
-
|
|
618
|
+
/* @__PURE__ */ jsx3(
|
|
619
|
+
ConditionalTooltip,
|
|
612
620
|
{
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
showTooltip: reasonsGate.denied,
|
|
622
|
+
content: reasonsGate.tooltip,
|
|
623
|
+
children: /* @__PURE__ */ jsx3("div", { children: /* @__PURE__ */ jsx3(Form.Control, { children: /* @__PURE__ */ jsx3(
|
|
624
|
+
Combobox,
|
|
625
|
+
{
|
|
626
|
+
className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover",
|
|
627
|
+
value,
|
|
628
|
+
onChange: (v) => {
|
|
629
|
+
onUpdate({ reason_id: v });
|
|
630
|
+
onChange(v);
|
|
631
|
+
},
|
|
632
|
+
...field,
|
|
633
|
+
disabled: reasonsGate.denied,
|
|
634
|
+
options: return_reasons.map((reason) => ({
|
|
635
|
+
label: reason.label,
|
|
636
|
+
value: reason.id
|
|
637
|
+
}))
|
|
638
|
+
}
|
|
639
|
+
) }) })
|
|
624
640
|
}
|
|
625
|
-
)
|
|
641
|
+
),
|
|
626
642
|
/* @__PURE__ */ jsx3(Form.ErrorMessage, {})
|
|
627
643
|
] });
|
|
628
644
|
}
|
|
@@ -742,18 +758,26 @@ var ReturnCreateForm = ({
|
|
|
742
758
|
});
|
|
743
759
|
const [inventoryMap, setInventoryMap] = useState2({});
|
|
744
760
|
const sellerId = order.seller?.id;
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
761
|
+
const locationsGate = usePermissionGate2("stock_locations:view");
|
|
762
|
+
const shippingOptionsGate = usePermissionGate2("shipping_options:view");
|
|
763
|
+
const { stock_locations = [] } = useStockLocations(
|
|
764
|
+
{
|
|
765
|
+
limit: 999,
|
|
766
|
+
...sellerId ? { seller_id: sellerId } : {}
|
|
767
|
+
},
|
|
768
|
+
{ enabled: locationsGate.allowed }
|
|
769
|
+
);
|
|
770
|
+
const { shipping_options = [] } = useShippingOptions(
|
|
771
|
+
{
|
|
772
|
+
limit: 999,
|
|
773
|
+
fields: "*prices,+service_zone.fulfillment_set.location.id",
|
|
774
|
+
...sellerId ? { seller_id: sellerId } : {}
|
|
775
|
+
/**
|
|
776
|
+
* TODO: this should accept filter for location_id
|
|
777
|
+
*/
|
|
778
|
+
},
|
|
779
|
+
{ enabled: shippingOptionsGate.allowed }
|
|
780
|
+
);
|
|
757
781
|
const { mutateAsync: confirmReturnRequest, isPending: isConfirming } = useConfirmReturnRequest(activeReturn.id, order.id);
|
|
758
782
|
const { mutateAsync: cancelReturnRequest, isPending: isCanceling } = useCancelReturnRequest(activeReturn.id, order.id);
|
|
759
783
|
const { mutateAsync: updateReturnRequest, isPending: isUpdating } = useUpdateReturn(activeReturn.id, order.id);
|
|
@@ -1076,24 +1100,32 @@ var ReturnCreateForm = ({
|
|
|
1076
1100
|
control: form.control,
|
|
1077
1101
|
name: "location_id",
|
|
1078
1102
|
render: ({ field: { value, onChange, ...field } }) => {
|
|
1079
|
-
return /* @__PURE__ */ jsx4(Form.Item, { "data-testid": "order-create-return-location-item", children: /* @__PURE__ */ jsx4(
|
|
1080
|
-
|
|
1103
|
+
return /* @__PURE__ */ jsx4(Form.Item, { "data-testid": "order-create-return-location-item", children: /* @__PURE__ */ jsx4(
|
|
1104
|
+
ConditionalTooltip,
|
|
1081
1105
|
{
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1106
|
+
showTooltip: locationsGate.denied,
|
|
1107
|
+
content: locationsGate.tooltip,
|
|
1108
|
+
children: /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(Form.Control, { "data-testid": "order-create-return-location-control", children: /* @__PURE__ */ jsx4(
|
|
1109
|
+
Combobox,
|
|
1110
|
+
{
|
|
1111
|
+
value,
|
|
1112
|
+
onChange: (v) => {
|
|
1113
|
+
onChange(v);
|
|
1114
|
+
onLocationChange(v);
|
|
1115
|
+
},
|
|
1116
|
+
...field,
|
|
1117
|
+
disabled: locationsGate.denied,
|
|
1118
|
+
options: (stock_locations ?? []).map(
|
|
1119
|
+
(stockLocation) => ({
|
|
1120
|
+
label: stockLocation.name,
|
|
1121
|
+
value: stockLocation.id
|
|
1122
|
+
})
|
|
1123
|
+
),
|
|
1124
|
+
"data-testid": "order-create-return-location-combobox"
|
|
1125
|
+
}
|
|
1126
|
+
) }) })
|
|
1095
1127
|
}
|
|
1096
|
-
) })
|
|
1128
|
+
) });
|
|
1097
1129
|
}
|
|
1098
1130
|
}
|
|
1099
1131
|
)
|
|
@@ -1124,29 +1156,36 @@ var ReturnCreateForm = ({
|
|
|
1124
1156
|
control: form.control,
|
|
1125
1157
|
name: "option_id",
|
|
1126
1158
|
render: ({ field: { value, onChange, ...field } }) => {
|
|
1127
|
-
return /* @__PURE__ */ jsx4(Form.Item, { "data-testid": "order-create-return-shipping-item", children: /* @__PURE__ */ jsx4(
|
|
1128
|
-
|
|
1159
|
+
return /* @__PURE__ */ jsx4(Form.Item, { "data-testid": "order-create-return-shipping-item", children: /* @__PURE__ */ jsx4(
|
|
1160
|
+
ConditionalTooltip,
|
|
1129
1161
|
{
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1162
|
+
showTooltip: shippingOptionsGate.denied,
|
|
1163
|
+
content: shippingOptionsGate.tooltip,
|
|
1164
|
+
children: /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(Form.Control, { "data-testid": "order-create-return-shipping-control", children: /* @__PURE__ */ jsx4(
|
|
1165
|
+
Combobox,
|
|
1166
|
+
{
|
|
1167
|
+
allowClear: true,
|
|
1168
|
+
value,
|
|
1169
|
+
onChange: (v) => {
|
|
1170
|
+
onChange(v);
|
|
1171
|
+
onShippingOptionChange(v);
|
|
1172
|
+
},
|
|
1173
|
+
...field,
|
|
1174
|
+
options: (shipping_options ?? []).filter(
|
|
1175
|
+
(so) => (locationId ? so.service_zone.fulfillment_set.location.id === locationId : true) && !!so.rules.find(
|
|
1176
|
+
(r) => r.attribute === "is_return" && r.value === "true"
|
|
1177
|
+
)
|
|
1178
|
+
).map((so) => ({
|
|
1179
|
+
label: so.name,
|
|
1180
|
+
value: so.id
|
|
1181
|
+
})),
|
|
1182
|
+
disabled: !locationId || shippingOptionsGate.denied,
|
|
1183
|
+
noResultsPlaceholder: /* @__PURE__ */ jsx4(ReturnShippingPlaceholder, {}),
|
|
1184
|
+
"data-testid": "order-create-return-shipping-combobox"
|
|
1185
|
+
}
|
|
1186
|
+
) }) })
|
|
1148
1187
|
}
|
|
1149
|
-
) })
|
|
1188
|
+
) });
|
|
1150
1189
|
}
|
|
1151
1190
|
}
|
|
1152
1191
|
)
|