@mercurjs/admin 2.3.6-canary.1 → 2.3.6-canary.10
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-PBGDZSCD.js → add-campaign-promotions-EIQFBRHD.js} +13 -8
- package/dist/{adjust-inventory-BBAU3NMM.js → adjust-inventory-H46YCNLT.js} +8 -3
- package/dist/{api-key-management-detail-ZGGQBQAM.js → api-key-management-detail-Z4KSJHUC.js} +6 -8
- package/dist/{api-key-management-list-T2WHT6MT.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-C435ZHB2.js → attribute-create-7I5GNYFM.js} +6 -5
- package/dist/{attribute-detail-SPYDB3I5.js → attribute-detail-GP4PEFJ7.js} +17 -11
- package/dist/{attribute-edit-AAEAOP5B.js → attribute-edit-YNKCBXLU.js} +2 -2
- package/dist/{attribute-edit-possible-value-BJSQCTNO.js → attribute-edit-possible-value-XY7W42FB.js} +2 -2
- package/dist/{attribute-list-SCFBKH4L.js → attribute-list-ZC3CG5LS.js} +7 -7
- package/dist/{campaign-detail-BHRCOKL3.js → campaign-detail-OZWTK26Z.js} +11 -11
- package/dist/{campaign-list-GIMU2QVW.js → campaign-list-XCO4FJDZ.js} +5 -5
- package/dist/{categories-metadata-MJAYSCTW.js → categories-metadata-QYH5U77W.js} +3 -3
- package/dist/{category-detail-GVEDFNM7.js → category-detail-V2QUSUF3.js} +11 -12
- package/dist/{category-list-J7XYQDJU.js → category-list-XDOYTQ4X.js} +6 -6
- package/dist/{category-products-VVF5NXCE.js → category-products-DL4KV6NX.js} +16 -9
- 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-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
- package/dist/{chunk-M6X7KIBW.js → chunk-2XBNM6TM.js} +4 -4
- package/dist/{chunk-BQZ5P3IA.js → chunk-36KEGXUQ.js} +112 -75
- package/dist/{chunk-475XGX3J.js → chunk-3BKRMIWA.js} +24 -13
- package/dist/{chunk-NCDKLTDP.js → chunk-3H3BJSIK.js} +34 -12
- package/dist/chunk-3PPYNV2Q.js +268 -0
- package/dist/chunk-3UOYBH5O.js +8 -0
- package/dist/{chunk-GFHUI2QK.js → chunk-473QGQSA.js} +9 -6
- package/dist/{chunk-3XS5ADKJ.js → chunk-4AOVNA5G.js} +31 -20
- package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
- package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
- package/dist/{chunk-RW3NEG36.js → chunk-4W77EUYY.js} +9 -7
- package/dist/{chunk-6UYV7B42.js → chunk-4Y7SBHXE.js} +10 -8
- package/dist/{chunk-VVIJHBKM.js → chunk-5MXEKSK4.js} +1 -1
- package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
- package/dist/{chunk-S4WDCOQD.js → chunk-5QW3GY37.js} +27 -14
- package/dist/{chunk-5TIADRZ7.js → chunk-63JSBXD5.js} +8 -6
- package/dist/{chunk-5ENOJFDI.js → chunk-7CGMFCSU.js} +1 -1
- package/dist/{chunk-7QZFRDTU.js → chunk-7GCMYYFL.js} +7 -4
- package/dist/{chunk-OWWE5Y6T.js → chunk-7URQCA3H.js} +8 -6
- package/dist/{chunk-R2ODJ3D3.js → chunk-A3LCORSK.js} +11 -7
- package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
- package/dist/{chunk-PFQO7UQG.js → chunk-AW4RL2SA.js} +60 -33
- package/dist/{chunk-2NOIR4BR.js → chunk-AZV22U4V.js} +20 -2
- package/dist/chunk-BORT2CVW.js +2927 -0
- package/dist/{chunk-VYSTJIAD.js → chunk-CX5XB56X.js} +4 -3
- package/dist/{chunk-VWPX7GLC.js → chunk-DBGBLXBS.js} +1 -1
- package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
- package/dist/{chunk-6AQYZWOC.js → chunk-DL5J4DV2.js} +2 -2
- package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
- package/dist/{chunk-EJGGX3ON.js → chunk-DMLXILXG.js} +12 -10
- package/dist/{chunk-VBHKRUON.js → chunk-DUKOOIQD.js} +6 -5
- package/dist/{chunk-BLU2WLIJ.js → chunk-DWPBJEEM.js} +21 -8
- package/dist/{chunk-6P7HBAUM.js → chunk-E4CMR4T2.js} +21 -13
- package/dist/{chunk-QEBISX7V.js → chunk-EBAFVGM3.js} +1 -1
- package/dist/{chunk-J34YB5R4.js → chunk-EHLCUND7.js} +12 -10
- package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
- package/dist/{chunk-KWFSBUD6.js → chunk-ESRIX7ZH.js} +1485 -1411
- package/dist/{chunk-YM5X7CQL.js → chunk-FCAJQFYT.js} +32 -12
- package/dist/{chunk-437KXVGO.js → chunk-G63BL5AB.js} +8 -5
- package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
- package/dist/{chunk-G2KWNZV6.js → chunk-GMJLK3IK.js} +2 -2
- package/dist/{chunk-P2KYQNXQ.js → chunk-GQYB3OOC.js} +108 -65
- package/dist/{chunk-4FAYO6UJ.js → chunk-GZUXEIEB.js} +3 -3
- package/dist/{chunk-7ASAC2FM.js → chunk-H4TJZB26.js} +26 -18
- package/dist/{chunk-5SNW2DCY.js → chunk-HXDCSVQP.js} +42 -18
- package/dist/{chunk-NQEXDESI.js → chunk-IBTEL5KA.js} +32 -14
- package/dist/{chunk-Q732RWRD.js → chunk-IQRFJO4N.js} +7 -5
- package/dist/{chunk-LBFX6AVE.js → chunk-JFRYC6GK.js} +17 -10
- package/dist/{chunk-7YBZ2PEZ.js → chunk-JQ7GOJK6.js} +135 -58
- package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
- package/dist/{chunk-IHCKU5FR.js → chunk-K6OBX6ZR.js} +8 -7
- package/dist/{chunk-RSDTHO3I.js → chunk-KB3BTLIB.js} +6 -4
- package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
- package/dist/{chunk-D6WRJZPH.js → chunk-LCUAIH7P.js} +7 -5
- package/dist/{chunk-F5EZQMOA.js → chunk-M7VHCFCW.js} +10 -8
- package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
- package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
- package/dist/{chunk-MQFPD5J4.js → chunk-MNKJHZZT.js} +10 -6
- package/dist/{chunk-YUL4ES52.js → chunk-MSJ2QS4Y.js} +6 -4
- package/dist/{chunk-VE5FQQTG.js → chunk-MTP3MDAA.js} +10 -7
- package/dist/{chunk-24JEBPKI.js → chunk-NJ2NRKAJ.js} +57 -14
- package/dist/{chunk-XMIDY45X.js → chunk-NRRSESP2.js} +32 -13
- package/dist/{chunk-B7QLJF77.js → chunk-NUE5ZL5N.js} +11 -5
- package/dist/{chunk-B6KT5U7W.js → chunk-NZIDSNBJ.js} +10 -8
- package/dist/{chunk-PAG3PYAQ.js → chunk-O5W5DCKH.js} +1 -1
- package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
- package/dist/{chunk-KTO2WJ75.js → chunk-OGTWBHJC.js} +2 -2
- package/dist/{chunk-3KRUGI6C.js → chunk-ONTZADVX.js} +1 -1
- package/dist/{chunk-W62DN2I2.js → chunk-OWSAXYGH.js} +1 -1
- package/dist/{chunk-ESNSDIEC.js → chunk-PDPCFFFH.js} +1 -1
- package/dist/{chunk-Q6M2TNLO.js → chunk-PGOJH3NS.js} +61 -329
- package/dist/{chunk-LXW3L56Z.js → chunk-Q2XWHI6K.js} +6 -3
- package/dist/{chunk-ENKVW7JW.js → chunk-QKW6ZECR.js} +29 -14
- package/dist/{chunk-JBT2FR4K.js → chunk-QPDL77XZ.js} +21 -10
- package/dist/{chunk-D7E6HL5O.js → chunk-QPXGSVW4.js} +10 -8
- package/dist/{chunk-M336ZIRO.js → chunk-QQ2UM2KH.js} +9 -7
- package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
- package/dist/{chunk-AOLP2YDZ.js → chunk-RAD3UMQ3.js} +7 -5
- package/dist/{chunk-HFM6N7R3.js → chunk-RLF7ADLP.js} +21 -13
- package/dist/{chunk-A2UTT4YX.js → chunk-SLXOKSG4.js} +58 -28
- package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
- package/dist/{chunk-F644YFJZ.js → chunk-SZSAJHN7.js} +7 -6
- package/dist/{chunk-GR7S7WTT.js → chunk-TPWSE5HE.js} +16 -11
- package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
- package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
- package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
- package/dist/chunk-USY2322P.js +17 -0
- package/dist/{chunk-6ASLWQB3.js → chunk-V3UQOU5W.js} +4 -2
- package/dist/{chunk-XXYVUV5F.js → chunk-VD2CKAYG.js} +21 -10
- package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
- package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
- package/dist/{chunk-MXM5ZD4Y.js → chunk-W5U6NPSN.js} +10 -25
- package/dist/{chunk-MM5RRCPX.js → chunk-WVHNOE7Y.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-7I7G5ZJE.js → chunk-YIXWAK3A.js} +12 -7
- package/dist/{chunk-ZFPASY4R.js → chunk-Z2FX5GG4.js} +24 -12
- package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
- package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
- package/dist/{collection-add-products-HCY2YT3W.js → collection-add-products-FWEVXBYC.js} +16 -9
- package/dist/{collection-detail-QAEPOJZX.js → collection-detail-U4AW4QJ3.js} +11 -12
- package/dist/{collection-list-AWLZYMWL.js → collection-list-PFXGNWL7.js} +15 -15
- package/dist/{collection-metadata-XM2EBCWF.js → collection-metadata-IKYBHHEU.js} +3 -3
- 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-MUKIEJWZ.js → commissions-list-AQUW636T.js} +6 -6
- package/dist/{customer-detail-XO7RBVUC.js → customer-detail-TBGKTNQQ.js} +9 -9
- package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
- package/dist/{customer-group-detail-4G53UKOS.js → customer-group-detail-47IPD337.js} +7 -8
- package/dist/{customer-group-list-5VA7HGD5.js → customer-group-list-Q2AYIVO4.js} +7 -8
- package/dist/{customer-group-metadata-FUJFFWCO.js → customer-group-metadata-T3WFBL7U.js} +3 -3
- package/dist/{customer-list-NEPELR3R.js → customer-list-JOPTF4QB.js} +5 -6
- package/dist/{customer-metadata-GWZC456X.js → customer-metadata-YSMWL4L3.js} +3 -3
- package/dist/{customers-add-customer-group-MYC76YGW.js → customers-add-customer-group-AVRYBS6Q.js} +14 -7
- package/dist/{edit-inventory-item-ZSV4WF6G.js → edit-inventory-item-7M7Q6HL4.js} +2 -2
- package/dist/{edit-inventory-item-attributes-NWSAQMKX.js → edit-inventory-item-attributes-E7J2WFPF.js} +2 -2
- package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
- package/dist/{edit-rules-RJC3AYJN.js → edit-rules-NRF7U4AT.js} +2 -2
- package/dist/extension-targets.d.ts +27 -0
- package/dist/home-E7IVATD3.js +64 -0
- package/dist/index.css +226 -9
- package/dist/index.d.ts +10 -30
- package/dist/index.js +631 -3918
- package/dist/{inventory-detail-7HB5QEL4.js → inventory-detail-U6TRGZRY.js} +8 -8
- package/dist/{inventory-list-FN7FCI4W.js → inventory-list-JWA7U2LB.js} +4 -5
- package/dist/{inventory-metadata-FGHOW3YG.js → inventory-metadata-KO622YEI.js} +3 -3
- package/dist/{inventory-stock-PZ2ENOGF.js → inventory-stock-WWXYVFK2.js} +21 -11
- package/dist/{location-detail-B2BWLVAD.js → location-detail-27FBZML7.js} +5 -7
- package/dist/{location-fulfillment-providers-XIYMIEFN.js → location-fulfillment-providers-WT72L5JS.js} +21 -13
- package/dist/{location-list-VIAP63HV.js → location-list-RMHT36AO.js} +5 -7
- 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-6O2JXV6I.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +4 -4
- 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-TZHRVYA5.js → login-ISNIWXU2.js} +3 -3
- package/dist/{manage-locations-ZFIRHMNH.js → manage-locations-5FKFNJQN.js} +158 -36
- package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
- package/dist/{marketplace-detail-4IP5HIEW.js → marketplace-detail-A76FTENH.js} +7 -7
- package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
- package/dist/{marketplace-metadata-EGDXYKCE.js → marketplace-metadata-364KJG43.js} +3 -3
- package/dist/{offer-detail-page-WWEUCEFC.js → offer-detail-page-BDDDZSPL.js} +36 -13
- package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
- package/dist/{offers-VG334CFD.js → offers-2JDCFVN4.js} +10 -11
- 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-CC7CQECO.js → order-create-exchange-TOPPZZGS.js} +107 -63
- package/dist/{order-create-refund-FJLL4CUD.js → order-create-refund-M3K5MZDM.js} +39 -24
- package/dist/{order-create-return-USO7AS7R.js → order-create-return-64GZ2LCL.js} +109 -70
- package/dist/{order-detail-3ODC5NOT.js → order-detail-DIUKR6ZJ.js} +9 -9
- package/dist/{order-edit-billing-address-SBVWRA25.js → order-edit-billing-address-ZAR5DETE.js} +3 -3
- package/dist/{order-edit-email-BREEW246.js → order-edit-email-V45SEUCO.js} +2 -2
- package/dist/{order-edit-shipping-address-XUG74AFY.js → order-edit-shipping-address-45Z6TNHL.js} +2 -2
- package/dist/{order-list-I6JZT6JK.js → order-list-KZHROLY3.js} +7 -7
- package/dist/{order-metadata-VIG5MGYV.js → order-metadata-7245QRUQ.js} +3 -3
- package/dist/{order-request-transfer-RYVK4WYW.js → order-request-transfer-JYPDXCY2.js} +28 -14
- package/dist/pages/index.d.ts +2 -2
- package/dist/pages/index.js +99 -98
- package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
- package/dist/{price-list-create-JFXLTNOJ.js → price-list-create-H3KJPUF4.js} +12 -12
- package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
- package/dist/{price-list-detail-5YTX66KF.js → price-list-detail-I44VTKE6.js} +10 -11
- package/dist/{price-list-list-5CNSLAUF.js → price-list-list-TD5JIO7L.js} +5 -5
- package/dist/{price-list-prices-add-HVTEQOWQ.js → price-list-prices-add-XEJKCRTM.js} +11 -11
- package/dist/{price-list-prices-edit-OVHIDATP.js → price-list-prices-edit-WELHT4O4.js} +19 -10
- package/dist/{product-add-existing-attributes-2UFTXE2N.js → product-add-existing-attributes-5B6HD2M3.js} +10 -8
- package/dist/{product-create-SHIGHLQN.js → product-create-DTITIXGY.js} +12 -11
- package/dist/{product-create-attribute-QYRCPUFC.js → product-create-attribute-7TV3OHW7.js} +1 -1
- package/dist/{product-create-variant-MZLHG5JF.js → product-create-variant-S3UJRMMJ.js} +3 -3
- package/dist/{product-detail-UGSTCK7J.js → product-detail-2MYEE5AM.js} +9 -10
- package/dist/{product-edit-2CMVTDWT.js → product-edit-TAVV5CWR.js} +8 -3
- package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
- package/dist/{product-list-XDJB3HX7.js → product-list-QYZXPM4I.js} +11 -12
- package/dist/{product-media-CO3F57JT.js → product-media-MFDAEXNQ.js} +3 -3
- package/dist/{product-metadata-5CRGB7TR.js → product-metadata-SC5BXN66.js} +3 -3
- package/dist/{product-organization-TNS7GBKN.js → product-organization-GCIGER6X.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-QORH6X2D.js → product-tag-create-PX7Q2AXU.js} +2 -2
- package/dist/{product-tag-detail-CDSYBTAM.js → product-tag-detail-4CGCZVSL.js} +18 -18
- package/dist/{product-tag-edit-JWYVCPCC.js → product-tag-edit-PXSZMCCT.js} +2 -2
- package/dist/{product-tag-list-RKLCU3UE.js → product-tag-list-2S6PHBIB.js} +18 -18
- package/dist/{product-tag-metadata-BCUPIIJ5.js → product-tag-metadata-2SO7ICOZ.js} +3 -3
- package/dist/{product-type-detail-IY7TWXUQ.js → product-type-detail-M4QLNFSG.js} +11 -12
- package/dist/{product-type-list-N3E5HQFW.js → product-type-list-JXU3446J.js} +5 -5
- package/dist/{product-type-metadata-DKBBQB6R.js → product-type-metadata-7D3J3NSO.js} +3 -3
- package/dist/{product-variant-detail-XHMS2UT5.js → product-variant-detail-VQ55W7PD.js} +4 -6
- package/dist/{product-variant-edit-4DPXTYPT.js → product-variant-edit-XEC7BR5G.js} +4 -4
- package/dist/{product-variant-metadata-ETVJBXSW.js → product-variant-metadata-KFLIOCU2.js} +3 -3
- package/dist/{profile-detail-KFLXUGQ5.js → profile-detail-SQZ6JFAN.js} +3 -5
- package/dist/{profile-edit-4FDALFG5.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-7ZUJ4W2J.js → promotion-create-6TMK6PEP.js} +5 -4
- package/dist/{promotion-detail-SWO4PZDC.js → promotion-detail-YRWEIXY7.js} +7 -9
- package/dist/{promotion-list-S4B6SVD6.js → promotion-list-NFVGSR23.js} +9 -9
- package/dist/{refund-reason-create-P5FUFEGK.js → refund-reason-create-HZOBFOPB.js} +2 -2
- package/dist/{refund-reason-edit-AKOTWXCE.js → refund-reason-edit-KS6NMC22.js} +2 -2
- package/dist/{refund-reason-list-ABRFC3OQ.js → refund-reason-list-RL7WOHKC.js} +11 -12
- 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-Q6HEMCHD.js → region-metadata-ADPG7OLJ.js} +3 -3
- package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
- package/dist/{reservation-detail-5GYGVM3M.js → reservation-detail-EBIDXEVF.js} +4 -6
- package/dist/{reservation-list-VRRSKQ4W.js → reservation-list-5QNXC2WU.js} +4 -5
- package/dist/{reservation-metadata-P4G3JEDW.js → reservation-metadata-TWJE777O.js} +3 -3
- package/dist/{reset-password-VJY5CXJU.js → reset-password-FIZYJ2R4.js} +1 -1
- package/dist/{return-reason-list-6MQKG72S.js → return-reason-list-VDX6CFJL.js} +10 -10
- 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-MPJ7UCEJ.js → sales-channel-add-products-MBSSIGYE.js} +19 -10
- package/dist/{sales-channel-detail-F37LBP6R.js → sales-channel-detail-R2BCF7TA.js} +11 -12
- package/dist/{sales-channel-list-XAWN5OKC.js → sales-channel-list-246V7NV3.js} +5 -7
- package/dist/{sales-channel-metadata-NBWFH4QX.js → sales-channel-metadata-PMLMQIKU.js} +3 -3
- package/dist/settings-UG4P6CCP.js +63 -0
- package/dist/{shipping-option-type-create-M23CI42D.js → shipping-option-type-create-NOFP2DOM.js} +2 -2
- package/dist/{shipping-option-type-detail-QIJZQ5WW.js → shipping-option-type-detail-47AZVCFP.js} +5 -7
- package/dist/{shipping-option-type-edit-WXTEQM32.js → shipping-option-type-edit-42JILKHX.js} +2 -2
- package/dist/{shipping-option-type-list-PRXZQSPR.js → shipping-option-type-list-TTAA63ZN.js} +8 -8
- package/dist/{shipping-profile-detail-KPRFJE4V.js → shipping-profile-detail-RGB67K3C.js} +2 -4
- package/dist/{shipping-profile-metadata-S7Z3IC6I.js → shipping-profile-metadata-GXMY5E57.js} +3 -3
- package/dist/{shipping-profiles-list-LK5ZXRJG.js → shipping-profiles-list-DD3G2THE.js} +4 -5
- package/dist/{store-bulk-edit-NBWZMDP7.js → store-bulk-edit-RRNJZEOU.js} +2 -2
- package/dist/{store-create-J4SL6SY3.js → store-create-UQ333C5F.js} +37 -15
- package/dist/{store-details-ITYKAZSI.js → store-details-D7RUCH5Y.js} +13 -14
- package/dist/{store-edit-NZMI7PNS.js → store-edit-RCNV5XI4.js} +3 -3
- package/dist/{store-list-RXPN3VVO.js → store-list-BMPOSAAE.js} +13 -14
- package/dist/{store-member-invite-IEUG54XA.js → store-member-invite-ALW6E3XA.js} +15 -6
- package/dist/{tax-region-create-PIDKQEWT.js → tax-region-create-3B6FWGWS.js} +3 -3
- package/dist/{tax-region-detail-7RNNZ4UE.js → tax-region-detail-PU4Q42KO.js} +8 -9
- package/dist/{tax-region-edit-I27QZZPB.js → tax-region-edit-P4L2CUFV.js} +2 -2
- package/dist/{tax-region-list-BXLYIYQT.js → tax-region-list-PUNXDH34.js} +5 -6
- package/dist/{tax-region-metadata-6YIZSRLO.js → tax-region-metadata-EDZ7YGYR.js} +3 -3
- package/dist/{tax-region-province-detail-AHS5SRP5.js → tax-region-province-detail-3ZQOCKZ2.js} +7 -8
- package/dist/{tax-region-tax-override-create-Z6S43XQ6.js → tax-region-tax-override-create-J5ZUAELL.js} +15 -15
- package/dist/{tax-region-tax-override-edit-4EOURL2M.js → tax-region-tax-override-edit-HDVKIL5P.js} +46 -26
- package/dist/{user-detail-5LOE6QGK.js → user-detail-4H37KBIP.js} +3 -5
- package/dist/{user-edit-O2M5II52.js → user-edit-42A2VX5E.js} +1 -1
- package/dist/{user-invite-SZIUG2WK.js → user-invite-5EJ3CIQZ.js} +35 -134
- package/dist/{user-list-6YRC6HYX.js → user-list-EZ56HFI3.js} +5 -6
- package/dist/{user-metadata-2PEU2IJE.js → user-metadata-3GENWLUS.js} +3 -3
- package/package.json +14 -14
- package/dist/chunk-4F6SHS7A.js +0 -83
- package/dist/chunk-BDGZ4EQO.js +0 -86
- package/dist/chunk-WMA3WTCM.js +0 -117
- 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
|
@@ -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 {
|
|
92
98
|
useShippingOptions
|
|
93
99
|
} from "./chunk-SCLV2T6Z.js";
|
|
@@ -99,10 +105,6 @@ import {
|
|
|
99
105
|
useOrderPreview,
|
|
100
106
|
useOrderShippingOptions
|
|
101
107
|
} from "./chunk-DYCCRR7B.js";
|
|
102
|
-
import {
|
|
103
|
-
ActionMenu
|
|
104
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
105
|
-
import "./chunk-LAVHRER2.js";
|
|
106
108
|
import "./chunk-Y7QKP6QU.js";
|
|
107
109
|
import "./chunk-INNFZYX2.js";
|
|
108
110
|
import "./chunk-RHKRREUU.js";
|
|
@@ -117,6 +119,7 @@ import { useTranslation as useTranslation11 } from "react-i18next";
|
|
|
117
119
|
import { useNavigate, useParams } from "react-router-dom";
|
|
118
120
|
|
|
119
121
|
// src/pages/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx
|
|
122
|
+
import { usePermissionGate as usePermissionGate2 } from "@mercurjs/dashboard-shared";
|
|
120
123
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
121
124
|
import { PencilSquare } from "@medusajs/icons";
|
|
122
125
|
import {
|
|
@@ -482,6 +485,7 @@ var filterByNumber = (items, value, field, currency_code) => {
|
|
|
482
485
|
};
|
|
483
486
|
|
|
484
487
|
// src/pages/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx
|
|
488
|
+
import { usePermissionGate } from "@mercurjs/dashboard-shared";
|
|
485
489
|
import { ChatBubble, DocumentText, XCircle, XMark } from "@medusajs/icons";
|
|
486
490
|
import { IconButton, Input, Text } from "@medusajs/ui";
|
|
487
491
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
@@ -498,7 +502,11 @@ function ClaimInboundItem({
|
|
|
498
502
|
locationName
|
|
499
503
|
}) {
|
|
500
504
|
const { t } = useTranslation4();
|
|
501
|
-
const
|
|
505
|
+
const reasonsGate = usePermissionGate("return_reasons:view");
|
|
506
|
+
const { return_reasons = [] } = useReturnReasons(
|
|
507
|
+
{ fields: "+label" },
|
|
508
|
+
{ enabled: reasonsGate.allowed }
|
|
509
|
+
);
|
|
502
510
|
const formItem = form.watch(`inbound_items.${index}`);
|
|
503
511
|
const showReturnReason = typeof formItem.reason_id === "string";
|
|
504
512
|
const showNote = typeof formItem.note === "string";
|
|
@@ -625,22 +633,30 @@ function ClaimInboundItem({
|
|
|
625
633
|
name: `inbound_items.${index}.reason_id`,
|
|
626
634
|
render: ({ field: { ref: _ref, value, onChange, ...field } }) => {
|
|
627
635
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
628
|
-
/* @__PURE__ */ jsx3(
|
|
629
|
-
|
|
636
|
+
/* @__PURE__ */ jsx3(
|
|
637
|
+
ConditionalTooltip,
|
|
630
638
|
{
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
639
|
+
showTooltip: reasonsGate.denied,
|
|
640
|
+
content: reasonsGate.tooltip,
|
|
641
|
+
children: /* @__PURE__ */ jsx3("div", { children: /* @__PURE__ */ jsx3(Form.Control, { children: /* @__PURE__ */ jsx3(
|
|
642
|
+
Combobox,
|
|
643
|
+
{
|
|
644
|
+
className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover",
|
|
645
|
+
value,
|
|
646
|
+
onChange: (v) => {
|
|
647
|
+
onUpdate({ reason_id: v });
|
|
648
|
+
onChange(v);
|
|
649
|
+
},
|
|
650
|
+
...field,
|
|
651
|
+
disabled: reasonsGate.denied,
|
|
652
|
+
options: return_reasons.map((reason) => ({
|
|
653
|
+
label: reason.label,
|
|
654
|
+
value: reason.id
|
|
655
|
+
}))
|
|
656
|
+
}
|
|
657
|
+
) }) })
|
|
642
658
|
}
|
|
643
|
-
)
|
|
659
|
+
),
|
|
644
660
|
/* @__PURE__ */ jsx3(Form.ErrorMessage, {})
|
|
645
661
|
] });
|
|
646
662
|
}
|
|
@@ -740,6 +756,7 @@ import { useFieldArray } from "react-hook-form";
|
|
|
740
756
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
741
757
|
|
|
742
758
|
// src/pages/orders/order-create-claim/components/add-claim-outbound-items-table/add-claim-outbound-items-table.tsx
|
|
759
|
+
import { SectionNoAccess, useCan } from "@mercurjs/dashboard-shared";
|
|
743
760
|
import { useMemo as useMemo4, useState as useState2 } from "react";
|
|
744
761
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
745
762
|
|
|
@@ -917,10 +934,14 @@ var AddClaimOutboundItemsTable = ({
|
|
|
917
934
|
pageSize: PAGE_SIZE2,
|
|
918
935
|
prefix: PREFIX2
|
|
919
936
|
});
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
937
|
+
const canViewOffers = useCan("offers");
|
|
938
|
+
const offersResponse = useOffers(
|
|
939
|
+
{
|
|
940
|
+
...searchParams,
|
|
941
|
+
fields: OFFER_PICKER_FIELDS
|
|
942
|
+
},
|
|
943
|
+
{ enabled: canViewOffers }
|
|
944
|
+
);
|
|
924
945
|
const rawCount = offersResponse.count ?? 0;
|
|
925
946
|
const offers = useMemo4(() => {
|
|
926
947
|
const rawOffers = offersResponse.offers ?? [];
|
|
@@ -969,6 +990,9 @@ var AddClaimOutboundItemsTable = ({
|
|
|
969
990
|
},
|
|
970
991
|
prefix: PREFIX2
|
|
971
992
|
});
|
|
993
|
+
if (!canViewOffers) {
|
|
994
|
+
return /* @__PURE__ */ jsx5(SectionNoAccess, {});
|
|
995
|
+
}
|
|
972
996
|
return /* @__PURE__ */ jsx5(
|
|
973
997
|
"div",
|
|
974
998
|
{
|
|
@@ -1459,10 +1483,15 @@ var ClaimCreateForm = ({
|
|
|
1459
1483
|
});
|
|
1460
1484
|
const locationId = form.watch("location_id");
|
|
1461
1485
|
const sellerId = order.seller?.id;
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1486
|
+
const locationsGate = usePermissionGate2("stock_locations:view");
|
|
1487
|
+
const shippingOptionsGate = usePermissionGate2("shipping_options:view");
|
|
1488
|
+
const { stock_locations = [] } = useStockLocations(
|
|
1489
|
+
{
|
|
1490
|
+
limit: 999,
|
|
1491
|
+
...sellerId ? { seller_id: sellerId } : {}
|
|
1492
|
+
},
|
|
1493
|
+
{ enabled: locationsGate.allowed }
|
|
1494
|
+
);
|
|
1466
1495
|
const { shipping_options = [] } = useShippingOptions(
|
|
1467
1496
|
{
|
|
1468
1497
|
limit: 999,
|
|
@@ -1471,7 +1500,7 @@ var ClaimCreateForm = ({
|
|
|
1471
1500
|
...sellerId ? { seller_id: sellerId } : {}
|
|
1472
1501
|
},
|
|
1473
1502
|
{
|
|
1474
|
-
enabled: !!locationId
|
|
1503
|
+
enabled: !!locationId && shippingOptionsGate.allowed
|
|
1475
1504
|
}
|
|
1476
1505
|
);
|
|
1477
1506
|
const inboundShippingOptions = shipping_options.filter(
|
|
@@ -1822,23 +1851,31 @@ var ClaimCreateForm = ({
|
|
|
1822
1851
|
control: form.control,
|
|
1823
1852
|
name: "location_id",
|
|
1824
1853
|
render: ({ field: { value, onChange, ...field } }) => {
|
|
1825
|
-
return /* @__PURE__ */ jsx8(Form.Item, { children: /* @__PURE__ */ jsx8(
|
|
1826
|
-
|
|
1854
|
+
return /* @__PURE__ */ jsx8(Form.Item, { children: /* @__PURE__ */ jsx8(
|
|
1855
|
+
ConditionalTooltip,
|
|
1827
1856
|
{
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1857
|
+
showTooltip: locationsGate.denied,
|
|
1858
|
+
content: locationsGate.tooltip,
|
|
1859
|
+
children: /* @__PURE__ */ jsx8("div", { children: /* @__PURE__ */ jsx8(Form.Control, { children: /* @__PURE__ */ jsx8(
|
|
1860
|
+
Combobox,
|
|
1861
|
+
{
|
|
1862
|
+
...field,
|
|
1863
|
+
value: value ?? void 0,
|
|
1864
|
+
onChange: (v) => {
|
|
1865
|
+
onChange(v);
|
|
1866
|
+
onLocationChange(v);
|
|
1867
|
+
},
|
|
1868
|
+
disabled: locationsGate.denied,
|
|
1869
|
+
options: (stock_locations ?? []).map(
|
|
1870
|
+
(stockLocation) => ({
|
|
1871
|
+
label: stockLocation.name,
|
|
1872
|
+
value: stockLocation.id
|
|
1873
|
+
})
|
|
1874
|
+
)
|
|
1875
|
+
}
|
|
1876
|
+
) }) })
|
|
1840
1877
|
}
|
|
1841
|
-
) })
|
|
1878
|
+
) });
|
|
1842
1879
|
}
|
|
1843
1880
|
}
|
|
1844
1881
|
)
|
|
@@ -1869,24 +1906,31 @@ var ClaimCreateForm = ({
|
|
|
1869
1906
|
control: form.control,
|
|
1870
1907
|
name: "inbound_option_id",
|
|
1871
1908
|
render: ({ field: { value, onChange, ...field } }) => {
|
|
1872
|
-
return /* @__PURE__ */ jsx8(Form.Item, { children: /* @__PURE__ */ jsx8(
|
|
1873
|
-
|
|
1909
|
+
return /* @__PURE__ */ jsx8(Form.Item, { children: /* @__PURE__ */ jsx8(
|
|
1910
|
+
ConditionalTooltip,
|
|
1874
1911
|
{
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1912
|
+
showTooltip: shippingOptionsGate.denied,
|
|
1913
|
+
content: shippingOptionsGate.tooltip,
|
|
1914
|
+
children: /* @__PURE__ */ jsx8("div", { children: /* @__PURE__ */ jsx8(Form.Control, { children: /* @__PURE__ */ jsx8(
|
|
1915
|
+
Combobox,
|
|
1916
|
+
{
|
|
1917
|
+
allowClear: true,
|
|
1918
|
+
value: value ?? void 0,
|
|
1919
|
+
onChange: (val) => {
|
|
1920
|
+
onChange(val);
|
|
1921
|
+
onShippingOptionChange(val);
|
|
1922
|
+
},
|
|
1923
|
+
...field,
|
|
1924
|
+
options: inboundShippingOptions.map((so) => ({
|
|
1925
|
+
label: so.name,
|
|
1926
|
+
value: so.id
|
|
1927
|
+
})),
|
|
1928
|
+
disabled: !locationId || shippingOptionsGate.denied,
|
|
1929
|
+
noResultsPlaceholder: /* @__PURE__ */ jsx8(ReturnShippingPlaceholder, {})
|
|
1930
|
+
}
|
|
1931
|
+
) }) })
|
|
1888
1932
|
}
|
|
1889
|
-
) })
|
|
1933
|
+
) });
|
|
1890
1934
|
}
|
|
1891
1935
|
}
|
|
1892
1936
|
)
|
|
@@ -46,21 +46,20 @@ import "./chunk-FQERBIVS.js";
|
|
|
46
46
|
import {
|
|
47
47
|
_DataTable,
|
|
48
48
|
useDataTable
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SU36MZXC.js";
|
|
50
50
|
import "./chunk-YN3FGNJM.js";
|
|
51
51
|
import "./chunk-ZAOEFQ6K.js";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-4J74G7N2.js";
|
|
53
53
|
import "./chunk-EIWPJWKF.js";
|
|
54
54
|
import "./chunk-46WEBDVJ.js";
|
|
55
|
+
import {
|
|
56
|
+
ActionMenu
|
|
57
|
+
} from "./chunk-3UOYBH5O.js";
|
|
55
58
|
import "./chunk-S7TEUVP7.js";
|
|
56
59
|
import {
|
|
57
60
|
useOrder,
|
|
58
61
|
useOrderPreview
|
|
59
62
|
} from "./chunk-DYCCRR7B.js";
|
|
60
|
-
import {
|
|
61
|
-
ActionMenu
|
|
62
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
63
|
-
import "./chunk-LAVHRER2.js";
|
|
64
63
|
import "./chunk-Y7QKP6QU.js";
|
|
65
64
|
import "./chunk-INNFZYX2.js";
|
|
66
65
|
import "./chunk-Z476HUMI.js";
|
|
@@ -89,6 +88,7 @@ import debounce from "lodash.debounce";
|
|
|
89
88
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
90
89
|
|
|
91
90
|
// src/pages/orders/order-create-edit/components/add-order-edit-items-table/add-order-edit-items-table.tsx
|
|
91
|
+
import { SectionNoAccess, useCan } from "@mercurjs/dashboard-shared";
|
|
92
92
|
import { useMemo as useMemo2, useState } from "react";
|
|
93
93
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
94
94
|
|
|
@@ -260,10 +260,14 @@ var AddOrderEditItemsTable = ({
|
|
|
260
260
|
pageSize: PAGE_SIZE,
|
|
261
261
|
prefix: PREFIX
|
|
262
262
|
});
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
const canViewOffers = useCan("offers");
|
|
264
|
+
const offersResponse = useOffers(
|
|
265
|
+
{
|
|
266
|
+
...searchParams,
|
|
267
|
+
fields: OFFER_PICKER_FIELDS
|
|
268
|
+
},
|
|
269
|
+
{ enabled: canViewOffers }
|
|
270
|
+
);
|
|
267
271
|
const rawCount = offersResponse.count ?? 0;
|
|
268
272
|
const offers = useMemo2(() => {
|
|
269
273
|
const rawOffers = offersResponse.offers ?? [];
|
|
@@ -313,6 +317,9 @@ var AddOrderEditItemsTable = ({
|
|
|
313
317
|
updater
|
|
314
318
|
}
|
|
315
319
|
});
|
|
320
|
+
if (!canViewOffers) {
|
|
321
|
+
return /* @__PURE__ */ jsx2(SectionNoAccess, {});
|
|
322
|
+
}
|
|
316
323
|
return /* @__PURE__ */ jsx2(
|
|
317
324
|
"div",
|
|
318
325
|
{
|
|
@@ -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,13 +85,16 @@ 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";
|
|
91
|
-
import
|
|
94
|
+
import {
|
|
95
|
+
ActionMenu
|
|
96
|
+
} from "./chunk-3UOYBH5O.js";
|
|
97
|
+
import "./chunk-W5U6NPSN.js";
|
|
92
98
|
import "./chunk-DSQRFZCO.js";
|
|
93
99
|
import "./chunk-LHE6LM6S.js";
|
|
94
100
|
import "./chunk-BOPIWKTU.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
|
{
|