@mercurjs/admin 2.1.0-canary.4 → 2.1.0-canary.6
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-MTQ7OZDE.js → add-campaign-promotions-VKH6RC3R.js} +6 -6
- package/dist/{adjust-inventory-5KY3SJY4.js → adjust-inventory-NVBPZYOF.js} +33 -32
- package/dist/{api-key-management-create-FPBZMDBI.js → api-key-management-create-THDCXGWK.js} +5 -5
- package/dist/{api-key-management-detail-D7NH5LTC.js → api-key-management-detail-Q5RBMX4J.js} +36 -34
- package/dist/{api-key-management-edit-5EM4NJIM.js → api-key-management-edit-LTVNXP6T.js} +5 -5
- package/dist/{api-key-management-list-MRKJVQMI.js → api-key-management-list-4MCSXO5L.js} +5 -5
- package/dist/{api-key-management-sales-channels-AETOWQYM.js → api-key-management-sales-channels-UGAAKILD.js} +7 -6
- package/dist/{attribute-create-SXEM4KJD.js → attribute-create-IVRJPVG5.js} +33 -32
- package/dist/{attribute-create-possible-value-RG4VA2DG.js → attribute-create-possible-value-BIU2L7AN.js} +3 -3
- package/dist/{attribute-detail-Y3GONKA7.js → attribute-detail-E6ILEV4C.js} +32 -31
- package/dist/{attribute-edit-NGJEWLXP.js → attribute-edit-DRHFOHMK.js} +37 -36
- package/dist/{attribute-edit-possible-value-IBJA53MJ.js → attribute-edit-possible-value-G2ON2AE3.js} +6 -6
- package/dist/{attribute-edit-ranking-BLMESGR5.js → attribute-edit-ranking-CEBR5LJ7.js} +3 -3
- package/dist/attribute-list-SFUKKH25.js +64 -0
- package/dist/{campaign-budget-edit-PL7DTWCM.js → campaign-budget-edit-WKSYXTBX.js} +3 -3
- package/dist/{campaign-configuration-D6ROERRH.js → campaign-configuration-ZTK46EB5.js} +3 -3
- package/dist/{campaign-create-LABYKFMI.js → campaign-create-QFNB5XZ2.js} +7 -7
- package/dist/{campaign-detail-EFU3O644.js → campaign-detail-OJF24KXP.js} +36 -35
- package/dist/{campaign-edit-PMJMUUDW.js → campaign-edit-ZGLDY4X4.js} +3 -3
- package/dist/{campaign-list-B42U6XNF.js → campaign-list-TXTMGE6H.js} +3 -3
- package/dist/{categories-metadata-53FPHDOQ.js → categories-metadata-YVUNHMQT.js} +34 -33
- package/dist/{category-create-AMHFSXJI.js → category-create-XH6AM3NM.js} +7 -7
- package/dist/{category-detail-6BSTZK72.js → category-detail-YELQ7OSB.js} +35 -34
- package/dist/{category-edit-VZL6ROLF.js → category-edit-IXU6E3YT.js} +5 -5
- package/dist/{category-list-R66T472I.js → category-list-DVDOBE7O.js} +5 -5
- package/dist/{category-organize-CLCNXQSJ.js → category-organize-NCH6A57L.js} +4 -4
- package/dist/{category-products-SEL2KF5R.js → category-products-G6XFVWWK.js} +34 -33
- package/dist/{chunk-VTH3LTDK.js → chunk-22YCBNLL.js} +3 -3
- package/dist/{chunk-DKA6GR53.js → chunk-2ASJQTGT.js} +1 -1
- package/dist/{chunk-YVCBMOJG.js → chunk-2EME4AWX.js} +1 -1
- package/dist/{chunk-T7MQFDTF.js → chunk-2FGRDEAD.js} +1 -1
- package/dist/{chunk-AG4ORND4.js → chunk-2KWNTJGL.js} +2 -2
- package/dist/{chunk-ZDZYRCVH.js → chunk-33BERJSG.js} +1 -1
- package/dist/{chunk-VXPWOEUS.js → chunk-34I4QIBD.js} +1 -1
- package/dist/{chunk-ZCLF2O6X.js → chunk-36NDTZIV.js} +1 -1
- package/dist/{chunk-IAT6UDKU.js → chunk-3BBG3LC3.js} +1 -1
- package/dist/{chunk-TCA3ZYNO.js → chunk-3CU7XPUR.js} +2 -2
- package/dist/{chunk-EI6JBJYB.js → chunk-3IN6MMKV.js} +3 -3
- package/dist/{chunk-XJHXEWWX.js → chunk-3LPDWXLV.js} +1 -1
- package/dist/{chunk-XIHVSZ6I.js → chunk-3UZVMGC6.js} +1 -1
- package/dist/{chunk-2SNDWSS5.js → chunk-3WQCJEAS.js} +2 -2
- package/dist/{chunk-5PUHROK4.js → chunk-46M463BR.js} +1 -1
- package/dist/{chunk-KA3VYXNA.js → chunk-4LXBQTFN.js} +1 -1
- package/dist/{chunk-BA2HXHTW.js → chunk-5CK6XEFV.js} +1 -1
- package/dist/{chunk-O4STPJR2.js → chunk-5TRY5IMZ.js} +2 -2
- package/dist/{chunk-C4V5XT6K.js → chunk-6BOPJWOS.js} +2 -2
- package/dist/{chunk-HV7ETS5U.js → chunk-6F6T6O6R.js} +4 -4
- package/dist/{chunk-5VMJCLUP.js → chunk-6MJ5HPIP.js} +4 -4
- package/dist/{chunk-J555HFHV.js → chunk-6SND23WS.js} +2 -2
- package/dist/{chunk-U3OWJE7V.js → chunk-72Q2T2FK.js} +126 -45
- package/dist/{chunk-J24SOKSP.js → chunk-73JXHNUH.js} +3 -3
- package/dist/{chunk-XMVTX2EN.js → chunk-7O5NDICV.js} +1 -1
- package/dist/{chunk-SDPR7PGR.js → chunk-7URRKQIX.js} +1 -1
- package/dist/{chunk-4G5FEKRO.js → chunk-A3HOLGBF.js} +1 -1
- package/dist/{chunk-CBHNHLUZ.js → chunk-AEMDNTW5.js} +2 -2
- package/dist/{chunk-JSBQOQXC.js → chunk-AGB4RMSE.js} +1 -1
- package/dist/{chunk-SDQ6V2QY.js → chunk-ANHC5MBQ.js} +3 -3
- package/dist/{chunk-UBTAADSY.js → chunk-ARMMSJ7L.js} +4 -4
- package/dist/{chunk-22XJUSMM.js → chunk-B6FG7A6W.js} +2 -2
- package/dist/{chunk-TBREETGZ.js → chunk-BJFFCELF.js} +4 -4
- package/dist/{chunk-MCEEC3VH.js → chunk-BOGOBZVM.js} +3 -3
- package/dist/{chunk-GZWI6ROZ.js → chunk-C2GSCU65.js} +16 -86
- package/dist/{chunk-627NOMMX.js → chunk-C43DG3K3.js} +1 -1
- package/dist/{chunk-6NVEUQSL.js → chunk-C4JUURO5.js} +1 -1
- package/dist/{chunk-6D5BKKSQ.js → chunk-CDS2B2P6.js} +1 -1
- package/dist/{chunk-NZN7PFPB.js → chunk-CKNQJPAG.js} +6 -40
- package/dist/{chunk-4QX7QEWY.js → chunk-CMLDMKSO.js} +11 -11
- package/dist/{chunk-R2KXIBCX.js → chunk-CQ7HSDCL.js} +1 -1
- package/dist/{chunk-FNBKEF54.js → chunk-DAXXLQKB.js} +1 -1
- package/dist/{chunk-K4BGK3CO.js → chunk-DBNPVU3L.js} +3 -3
- package/dist/{chunk-N4JU7GWK.js → chunk-DL2ZIXBO.js} +2 -2
- package/dist/{chunk-DOZ3NXES.js → chunk-DSIZONVE.js} +1 -1
- package/dist/{chunk-RMMKSTB4.js → chunk-DW7BD2BR.js} +100 -50
- package/dist/{chunk-FMGXDDBU.js → chunk-EA5ADIDK.js} +2 -2
- package/dist/{chunk-HVLPRHZS.js → chunk-EKMBY4QP.js} +2 -2
- package/dist/{chunk-PLDGQ5PO.js → chunk-ENFPDBSU.js} +3 -3
- package/dist/{chunk-OFKUNYQJ.js → chunk-EPHVGD5Z.js} +1 -1
- package/dist/{chunk-W5UPPL3W.js → chunk-ESPLVOFC.js} +2 -2
- package/dist/{chunk-VWE3LQEJ.js → chunk-EV6CDI37.js} +4 -4
- package/dist/{chunk-L5SYZUAC.js → chunk-F2ZHPWHP.js} +4 -4
- package/dist/{chunk-JN3XBZHG.js → chunk-FCQMQF2U.js} +14 -14
- package/dist/{chunk-3FNX54TD.js → chunk-FNJNVUXR.js} +2 -2
- package/dist/{chunk-NNI6QKKZ.js → chunk-FQFW3DUZ.js} +13 -1
- package/dist/{chunk-OV7R2AH5.js → chunk-FWJLS7XD.js} +60 -58
- package/dist/{chunk-LC6TM5OT.js → chunk-FXWKGNRV.js} +2 -2
- package/dist/{chunk-TKRQTEWN.js → chunk-G2GB77RC.js} +3 -3
- package/dist/{chunk-QG3EYUDB.js → chunk-GAD5DQOY.js} +3 -3
- package/dist/{chunk-XKVXLDSJ.js → chunk-GKGLVDDV.js} +1 -1
- package/dist/{chunk-YTPCWCA3.js → chunk-GU4T2RAQ.js} +1 -1
- package/dist/chunk-HJ56YXBU.js +46 -0
- package/dist/{chunk-6TFS6ET5.js → chunk-I5THQVYP.js} +1 -1
- package/dist/{chunk-KMK4YAS2.js → chunk-IDBCFDIT.js} +1 -1
- package/dist/{chunk-OW6XTJ33.js → chunk-IF36RZZS.js} +3 -3
- package/dist/{chunk-EG2Y5Z2K.js → chunk-IK6MPP7K.js} +4 -4
- package/dist/{chunk-7U6RLIWB.js → chunk-IO3TLOTN.js} +8 -8
- package/dist/{chunk-5XWE6QZ3.js → chunk-IXWGJ4W7.js} +3 -3
- package/dist/{chunk-ZLBTDKSI.js → chunk-JCSPXBS3.js} +1 -1
- package/dist/{chunk-XRDP2SYY.js → chunk-JPNPTILP.js} +1 -1
- package/dist/{chunk-5WTGRSBC.js → chunk-JSLUA5Y4.js} +1 -1
- package/dist/{chunk-BE5QWX5N.js → chunk-KOURHC2N.js} +0 -4
- package/dist/{chunk-HHEQZTPC.js → chunk-L6LJB5HH.js} +2 -2
- package/dist/{chunk-XDZGOUCR.js → chunk-LAPEZATU.js} +1 -1
- package/dist/{chunk-OVPKR4G7.js → chunk-LEG67A2R.js} +48 -48
- package/dist/{chunk-CZSJ7E5Q.js → chunk-LGYQGZNR.js} +7 -7
- package/dist/{chunk-R2UP4YIY.js → chunk-LNAXUDW2.js} +4 -4
- package/dist/{chunk-DTUPDNN3.js → chunk-LNT72PI5.js} +4 -4
- package/dist/{chunk-HAZURA7S.js → chunk-LVEROZU4.js} +2 -2
- package/dist/{chunk-VME3CJER.js → chunk-LYD3C73Z.js} +1 -1
- package/dist/{chunk-PUNC2TLV.js → chunk-M3LFFRPG.js} +8 -8
- package/dist/chunk-MDABSESI.js +38 -0
- package/dist/{chunk-6O25AZDD.js → chunk-MVSHIITK.js} +1 -1
- package/dist/{chunk-CA4XLTI7.js → chunk-N2Y3OWEV.js} +2 -2
- package/dist/{chunk-DF3OGJAK.js → chunk-N6SI4IIT.js} +1 -1
- package/dist/{chunk-XGCSSCLB.js → chunk-NUMAHMW2.js} +4 -4
- package/dist/{chunk-CGVHXNWH.js → chunk-NZ4BXIO6.js} +3 -3
- package/dist/{chunk-ZJNRM77Y.js → chunk-O6X4QXB5.js} +4 -4
- package/dist/{chunk-MFL2TZ3W.js → chunk-OH4AABUT.js} +1 -1
- package/dist/{chunk-EHQESDH2.js → chunk-OHOWEMHO.js} +1 -1
- package/dist/{chunk-BMC2HG53.js → chunk-OQMBWJPH.js} +2 -2
- package/dist/{chunk-PBMB2LY5.js → chunk-P5VTTPU2.js} +2 -2
- package/dist/{chunk-3MDRW5MA.js → chunk-PBQ5M44A.js} +2 -2
- package/dist/{chunk-UU2RQMXS.js → chunk-PRBE5CM3.js} +1 -1
- package/dist/{chunk-WDASBBB5.js → chunk-Q4WP4LIW.js} +1 -1
- package/dist/{chunk-NDPTTHBH.js → chunk-QGXOLAXL.js} +2 -2
- package/dist/{chunk-4ESVWDQK.js → chunk-QJLICXCV.js} +2 -2
- package/dist/{chunk-ZRWRLDAH.js → chunk-QONWYA46.js} +5 -5
- package/dist/{chunk-5VBNFLG2.js → chunk-QP3ID4X3.js} +1 -1
- package/dist/{chunk-UI2BJVP5.js → chunk-R2FE3PBQ.js} +1 -1
- package/dist/{chunk-BUI5NC7I.js → chunk-RFYOW244.js} +1 -1
- package/dist/{chunk-G5WS77NL.js → chunk-SMPTZ2RM.js} +4 -4
- package/dist/{chunk-NYWECWZJ.js → chunk-SNH3O6QM.js} +5 -5
- package/dist/{chunk-LVUJDBZC.js → chunk-SZO2SCY2.js} +2 -2
- package/dist/{chunk-XVRT2TFF.js → chunk-T3ZRBKEC.js} +309 -244
- package/dist/{chunk-7IPA3CRG.js → chunk-T62OEGJG.js} +4 -4
- package/dist/{chunk-R74OHYTB.js → chunk-TAKEQAZZ.js} +3 -3
- package/dist/{chunk-WHLVH4RN.js → chunk-TFRTL5VZ.js} +2 -2
- package/dist/{chunk-RIC6PMBR.js → chunk-TGK2C73H.js} +8 -8
- package/dist/{chunk-34VX7KOL.js → chunk-TH4GYG3E.js} +4 -4
- package/dist/{chunk-FNHNSA3H.js → chunk-TLAUR5IR.js} +11 -11
- package/dist/{chunk-YYTI5JIC.js → chunk-U7WZYWGA.js} +2 -2
- package/dist/{chunk-M4VLYKT5.js → chunk-UZ52KLQM.js} +2 -2
- package/dist/{chunk-7SJC6BWZ.js → chunk-VDKOJ5WD.js} +1 -1
- package/dist/{chunk-25YTS3TI.js → chunk-VIGX66F7.js} +2 -2
- package/dist/{chunk-SKV7U4GW.js → chunk-VXPWIJZV.js} +7 -7
- package/dist/{chunk-IJWG755C.js → chunk-VYMODH6P.js} +1 -1
- package/dist/{chunk-FB4JUZFB.js → chunk-VZVB3ZR3.js} +4 -4
- package/dist/chunk-WJJXUXSO.js +23 -0
- package/dist/{chunk-TIMWFAPD.js → chunk-WRRMBJBQ.js} +1 -1
- package/dist/{chunk-UI2KUK3F.js → chunk-X3S5LZQO.js} +2 -2
- package/dist/{chunk-DYFB2ZZD.js → chunk-YEUUI6JF.js} +1 -1
- package/dist/{chunk-TPPONKYW.js → chunk-YFRC6GEN.js} +3 -3
- package/dist/{chunk-76FXHSMH.js → chunk-YHWY7YA3.js} +2 -2
- package/dist/{chunk-YNIIYGL4.js → chunk-YKDEE7ZL.js} +2 -2
- package/dist/{chunk-NJKJAYV2.js → chunk-YNHS5G26.js} +2 -2
- package/dist/{chunk-QLJKQS6P.js → chunk-YQ6JASMO.js} +6 -6
- package/dist/{chunk-52BRBQMY.js → chunk-Z2QQZOG3.js} +2 -2
- package/dist/{chunk-SZVIRQZ2.js → chunk-Z4OJNCER.js} +5 -5
- package/dist/{chunk-5N6S5K57.js → chunk-Z6DBHMEN.js} +2 -2
- package/dist/{chunk-MRFW7VTW.js → chunk-ZBJ56XDB.js} +2 -2
- package/dist/{chunk-RIN4CBRB.js → chunk-ZBWL72TB.js} +2 -8
- package/dist/{chunk-7STT4ZVP.js → chunk-ZD46XW74.js} +1 -1
- package/dist/{chunk-WYJSLRW5.js → chunk-ZFQ5XQ2W.js} +2 -2
- package/dist/{chunk-HAFZQK53.js → chunk-ZN7LWXVC.js} +1 -1
- package/dist/{chunk-PQGIRNRF.js → chunk-ZTAKV4UY.js} +6 -6
- package/dist/{chunk-O7UECTZO.js → chunk-ZW34ZAIP.js} +1 -1
- package/dist/{collection-add-products-4QUC6CYD.js → collection-add-products-VSSL3PJV.js} +34 -33
- package/dist/{collection-create-EBAELCA2.js → collection-create-3BTRORHU.js} +5 -5
- package/dist/{collection-detail-YS424JMR.js → collection-detail-AAD4X24M.js} +34 -33
- package/dist/{collection-edit-TGXPOOSX.js → collection-edit-L5GPFBBX.js} +4 -4
- package/dist/{collection-list-4LAFOABI.js → collection-list-J32PG7BB.js} +39 -37
- package/dist/{collection-metadata-GA7WIUTG.js → collection-metadata-KHGPTV5C.js} +34 -33
- package/dist/{commission-rate-create-NZY3GFV4.js → commission-rate-create-KTQR4WCZ.js} +40 -38
- package/dist/{commission-rate-detail-Z3P43MU7.js → commission-rate-detail-7I4M7GOE.js} +33 -32
- package/dist/{commission-rate-edit-EOO7YGWQ.js → commission-rate-edit-52CJF2EX.js} +40 -38
- package/dist/{commission-rate-list-OLAGFQNJ.js → commission-rate-list-TSEOC244.js} +3 -3
- package/dist/{customer-create-DT6MYVMQ.js → customer-create-QHA4KM6N.js} +3 -3
- package/dist/{customer-create-address-VIG65ALU.js → customer-create-address-TYWVWNUE.js} +3 -3
- package/dist/{customer-detail-EHMESZAY.js → customer-detail-4J4RSVSG.js} +34 -33
- package/dist/{customer-edit-MHNLUNUL.js → customer-edit-X4HQOUAE.js} +3 -3
- package/dist/{customer-group-add-customers-SI5TTT4S.js → customer-group-add-customers-Y4AIT37I.js} +4 -4
- package/dist/{customer-group-create-W3FV4OEH.js → customer-group-create-NA2UKCF6.js} +3 -3
- package/dist/{customer-group-detail-CXVPY32U.js → customer-group-detail-KCKJEPSN.js} +34 -33
- package/dist/{customer-group-edit-ZANHQ7RS.js → customer-group-edit-3O6HAYYN.js} +3 -3
- package/dist/customer-group-list-IQGAXHVE.js +59 -0
- package/dist/{customer-group-metadata-YO3J3DWX.js → customer-group-metadata-YJXZFSFG.js} +34 -33
- package/dist/{customer-list-CHRZJTNK.js → customer-list-MH5N6M5L.js} +4 -4
- package/dist/{customer-metadata-T4Y3LP5Y.js → customer-metadata-SG6M7X3Q.js} +34 -33
- package/dist/{customers-add-customer-group-J7EZP5OJ.js → customers-add-customer-group-ASX6POFR.js} +33 -32
- package/dist/{edit-inventory-item-DBMS75NM.js → edit-inventory-item-TDG2ZTPM.js} +33 -32
- package/dist/{edit-inventory-item-attributes-655BP5CZ.js → edit-inventory-item-attributes-T56PJTCT.js} +33 -32
- package/dist/{edit-reservation-OQCAZUIS.js → edit-reservation-T6SKOG2F.js} +5 -5
- package/dist/{edit-rules-JNV3HBLD.js → edit-rules-BRXIELG2.js} +34 -33
- package/dist/index.js +282 -278
- package/dist/inventory-create-3GAK5IYZ.js +58 -0
- package/dist/{inventory-detail-TQSQQAOS.js → inventory-detail-KU5IMRS6.js} +33 -32
- package/dist/{inventory-list-TAJ4T5JG.js → inventory-list-HGWKI5CF.js} +4 -4
- package/dist/{inventory-metadata-YHRVDL3T.js → inventory-metadata-LUGA3KNV.js} +34 -33
- package/dist/{inventory-stock-BF2G57RR.js → inventory-stock-JZNONQAL.js} +35 -34
- package/dist/{invite-YRARW3RW.js → invite-VQ2HR2OM.js} +3 -3
- package/dist/{location-create-GXPH4WZI.js → location-create-ZMNB7YKR.js} +3 -3
- package/dist/{location-detail-OMR5VQNR.js → location-detail-RY65FCD3.js} +33 -32
- package/dist/{location-edit-GNKQAXJG.js → location-edit-DMBF3CYZ.js} +3 -3
- package/dist/{location-fulfillment-providers-LRVFTKYQ.js → location-fulfillment-providers-FNXAQUCV.js} +37 -36
- package/dist/location-list-XGFUQY7T.js +55 -0
- package/dist/{location-sales-channels-U3MVWUAT.js → location-sales-channels-IRGVGAVC.js} +7 -6
- package/dist/{location-service-zone-create-E4LW45D7.js → location-service-zone-create-AC4JW4Y4.js} +6 -6
- package/dist/{location-service-zone-edit-UIVVQVMW.js → location-service-zone-edit-MTGU2O4C.js} +5 -5
- package/dist/{location-service-zone-manage-areas-F3SOZGVW.js → location-service-zone-manage-areas-M52WHSWM.js} +6 -6
- package/dist/location-service-zone-shipping-option-create-OOU6YVRS.js +59 -0
- package/dist/{location-service-zone-shipping-option-edit-3KNW7UBD.js → location-service-zone-shipping-option-edit-PLEDWIY3.js} +5 -5
- package/dist/{location-service-zone-shipping-option-pricing-35SMJ6XP.js → location-service-zone-shipping-option-pricing-MZHMML32.js} +9 -9
- package/dist/{login-2UEH2J2Z.js → login-T5DP5BZ3.js} +32 -31
- package/dist/{manage-locations-VIWHIN7B.js → manage-locations-BA7VMY3Q.js} +4 -4
- package/dist/{marketplace-add-currencies-Q4EJAXDN.js → marketplace-add-currencies-C6S4Z3VT.js} +5 -5
- package/dist/{marketplace-detail-RHJL3RKS.js → marketplace-detail-QQ2WZ27G.js} +33 -32
- package/dist/{marketplace-edit-AMRUND2Q.js → marketplace-edit-U5B6WA56.js} +4 -4
- package/dist/{marketplace-metadata-IPXXRTER.js → marketplace-metadata-VYCPYFJD.js} +34 -33
- package/dist/{order-allocate-items-AZ3FDELU.js → order-allocate-items-A365NKBM.js} +6 -6
- package/dist/{order-create-claim-KGBBZAJ4.js → order-create-claim-GAGJ7QNH.js} +36 -35
- package/dist/{order-create-edit-5IHO5BMD.js → order-create-edit-R5AK2LPP.js} +34 -33
- package/dist/{order-create-exchange-FRKAMGEB.js → order-create-exchange-P3PLSEME.js} +36 -35
- package/dist/{order-create-fulfillment-ZXPUXY2M.js → order-create-fulfillment-BB2FCLAH.js} +33 -32
- package/dist/{order-create-refund-SBU4PTFE.js → order-create-refund-LDODI2AP.js} +33 -32
- package/dist/{order-create-return-4PREWHB7.js → order-create-return-J35OSJJW.js} +9 -9
- package/dist/{order-create-shipment-BUDXW54A.js → order-create-shipment-7XP6PDTD.js} +33 -32
- package/dist/{order-detail-J7SR4MOZ.js → order-detail-RL4RFNAM.js} +38 -37
- package/dist/{order-edit-billing-address-LITRQ5LJ.js → order-edit-billing-address-C5OLRWHW.js} +34 -33
- package/dist/{order-edit-email-TACZI5EX.js → order-edit-email-AZIA6X5Q.js} +33 -32
- package/dist/{order-edit-shipping-address-FPTJB5L5.js → order-edit-shipping-address-GJMUSOPK.js} +33 -32
- package/dist/{order-list-D44NOK54.js → order-list-UBH5RRTI.js} +9 -8
- package/dist/{order-metadata-6JOL5X6I.js → order-metadata-RXIJOP4V.js} +34 -33
- package/dist/{order-receive-return-5YMKBTQ3.js → order-receive-return-6IU2HGAD.js} +34 -33
- package/dist/{order-request-transfer-LSANIPZ5.js → order-request-transfer-6IZVCHGV.js} +33 -32
- package/dist/pages/index.js +139 -137
- package/dist/{payout-detail-SQKDY2F6.js → payout-detail-C5WLFRRT.js} +3 -3
- package/dist/{payout-list-HPMP3CJH.js → payout-list-KUFWUKTH.js} +3 -3
- package/dist/{price-list-configuration-XGX6HV4Q.js → price-list-configuration-JNMKFGCK.js} +6 -6
- package/dist/price-list-create-VWLNTKY7.js +77 -0
- package/dist/{price-list-detail-Y5GY2XNE.js → price-list-detail-3XN7D2PU.js} +35 -34
- package/dist/{price-list-edit-OYRI7KZD.js → price-list-edit-BVVLQ5WV.js} +5 -5
- package/dist/{price-list-list-27QDRHNY.js → price-list-list-NFS344UG.js} +6 -6
- package/dist/price-list-prices-add-YY33AL6G.js +72 -0
- package/dist/{price-list-prices-edit-DCESLO3A.js → price-list-prices-edit-WSLGG7VC.js} +35 -34
- package/dist/{product-attributes-BM54QUBZ.js → product-attributes-ASPKDH7H.js} +3 -3
- package/dist/product-create-XCQ2TZ7B.js +72 -0
- package/dist/{product-create-option-53CW7HXH.js → product-create-option-WDFFZYTE.js} +3 -3
- package/dist/product-create-variant-TJB7NNKY.js +56 -0
- package/dist/{product-detail-57X454TL.js → product-detail-7T5PLGCJ.js} +33 -32
- package/dist/{product-edit-AY2UVE3V.js → product-edit-IASCMBET.js} +4 -4
- package/dist/{product-edit-option-ULBJKDOE.js → product-edit-option-UMOGVYLM.js} +3 -3
- package/dist/{product-export-I3PPG7KC.js → product-export-773L2V63.js} +39 -37
- package/dist/{product-import-MNEGYIKE.js → product-import-JB7S4EL6.js} +33 -32
- package/dist/{product-list-UZQDS36T.js → product-list-5WTGEHDX.js} +34 -33
- package/dist/{product-media-X6GYGJDU.js → product-media-4QKZILIM.js} +5 -5
- package/dist/{product-metadata-6P42YQNI.js → product-metadata-GJ7C2UJG.js} +34 -33
- package/dist/{product-organization-KHZQIBDK.js → product-organization-63ODFBLM.js} +5 -5
- package/dist/{product-prices-XCC26S77.js → product-prices-RLZBWN6C.js} +7 -7
- package/dist/{product-sales-channels-G22VD3VU.js → product-sales-channels-53YVZ5G5.js} +6 -5
- package/dist/{product-shipping-profile-OPOM33SD.js → product-shipping-profile-X5CZJCET.js} +3 -3
- package/dist/{product-stock-P2QSUR4K.js → product-stock-XB3HKT5G.js} +35 -34
- package/dist/{product-tag-create-QKHJET6O.js → product-tag-create-PHJICTE4.js} +33 -32
- package/dist/{product-tag-detail-NQGZEEFG.js → product-tag-detail-DAVCOGGL.js} +40 -38
- package/dist/{product-tag-edit-TC3UMIAJ.js → product-tag-edit-G4UNGXPT.js} +33 -32
- package/dist/{product-tag-list-3DLJ3G7X.js → product-tag-list-YBRNLXCK.js} +40 -38
- package/dist/{product-tag-metadata-DKYMVBXL.js → product-tag-metadata-I4V6CR6Z.js} +34 -33
- package/dist/{product-type-create-X6NFMD2J.js → product-type-create-RHG4KEAV.js} +3 -3
- package/dist/{product-type-detail-VJJITHJS.js → product-type-detail-JEFUXSFV.js} +35 -34
- package/dist/{product-type-edit-K5WDDPEY.js → product-type-edit-CABB7R7Y.js} +3 -3
- package/dist/{product-type-list-6CTXFZBZ.js → product-type-list-E2BUVXIT.js} +4 -4
- package/dist/{product-type-metadata-I4RC764V.js → product-type-metadata-KGVRMMTQ.js} +34 -33
- package/dist/{product-variant-detail-Z3BZJ6EJ.js → product-variant-detail-S4DAVZFS.js} +33 -32
- package/dist/{product-variant-edit-P3NBX6LJ.js → product-variant-edit-L77HDGTA.js} +33 -32
- package/dist/{product-variant-manage-inventory-items-RFKTIM5A.js → product-variant-manage-inventory-items-WENX2QCZ.js} +3 -3
- package/dist/{product-variant-metadata-HMBGDFCO.js → product-variant-metadata-HV72UBCP.js} +34 -33
- package/dist/{profile-detail-C5BGWHSQ.js → profile-detail-IWSYAO67.js} +3 -3
- package/dist/{profile-edit-RXXHWORE.js → profile-edit-Y5UUUKVH.js} +3 -3
- package/dist/{promotion-add-campaign-TWE6G4R7.js → promotion-add-campaign-GBB6M2OB.js} +7 -7
- package/dist/promotion-create-4ZEXEV4G.js +56 -0
- package/dist/{promotion-detail-CWBF3HPU.js → promotion-detail-DL52RQ5R.js} +35 -34
- package/dist/{promotion-edit-details-J2JWFT2L.js → promotion-edit-details-E2XKWY7L.js} +4 -4
- package/dist/{promotion-list-JVR5ZF26.js → promotion-list-CJJNLF5E.js} +6 -6
- package/dist/{refund-reason-create-H6BJDVQQ.js → refund-reason-create-M2CYTCEM.js} +33 -32
- package/dist/{refund-reason-edit-JXP5LXF6.js → refund-reason-edit-M4XBV633.js} +33 -32
- package/dist/{refund-reason-list-O26REP5X.js → refund-reason-list-VLARTCJF.js} +35 -33
- package/dist/{region-add-countries-OBJOMTGC.js → region-add-countries-6HKFPVNE.js} +4 -4
- package/dist/{region-create-NI7QPOS5.js → region-create-BOHJGJCB.js} +5 -5
- package/dist/{region-detail-TR3IRW6L.js → region-detail-VR2RSHCW.js} +4 -4
- package/dist/{region-edit-AGC3N4RU.js → region-edit-QNJ2HT76.js} +5 -5
- package/dist/{region-list-D4VLAQXD.js → region-list-IHOCFATO.js} +4 -4
- package/dist/{region-metadata-JUTPPKPR.js → region-metadata-4JWOEGTZ.js} +34 -33
- package/dist/{reservation-create-3PQ56FKT.js → reservation-create-26QAWABA.js} +5 -5
- package/dist/{reservation-detail-4EJK3HEF.js → reservation-detail-X3W6APD5.js} +33 -32
- package/dist/{reservation-list-56EFZDRI.js → reservation-list-EKIR6AET.js} +5 -5
- package/dist/{reservation-metadata-VOJDR77H.js → reservation-metadata-JFLJ27A3.js} +34 -33
- package/dist/{reset-password-FCS4752B.js → reset-password-PCKBFFXR.js} +3 -3
- package/dist/{return-reason-create-2HPI654O.js → return-reason-create-KED7446I.js} +3 -3
- package/dist/{return-reason-edit-NJSTWTP3.js → return-reason-edit-57EU3XSE.js} +3 -3
- package/dist/{return-reason-list-RYRELICQ.js → return-reason-list-FHE2DTG6.js} +5 -4
- package/dist/{sales-channel-add-products-MOA6UWOB.js → sales-channel-add-products-ABMGZC7O.js} +34 -33
- package/dist/{sales-channel-create-QJTXOKAM.js → sales-channel-create-NSZEHGZE.js} +4 -4
- package/dist/{sales-channel-detail-RZES4ARA.js → sales-channel-detail-PNWRSILX.js} +34 -33
- package/dist/{sales-channel-edit-CDOQ5WR3.js → sales-channel-edit-W6Z2ERBJ.js} +4 -4
- package/dist/sales-channel-list-QKFVTZ6A.js +53 -0
- package/dist/{sales-channel-metadata-U4JWJDUK.js → sales-channel-metadata-NDSKXOGH.js} +34 -33
- package/dist/{shipping-option-type-create-3S6VXMCK.js → shipping-option-type-create-MEL24PGH.js} +33 -32
- package/dist/{shipping-option-type-detail-6QINYVWX.js → shipping-option-type-detail-OAKOWHU7.js} +34 -33
- package/dist/{shipping-option-type-edit-2JFDG4D5.js → shipping-option-type-edit-IVBHURXR.js} +33 -32
- package/dist/shipping-option-type-list-AB2FPIQS.js +62 -0
- package/dist/{shipping-profile-create-T5WADNL2.js → shipping-profile-create-UJNCCKKK.js} +3 -3
- package/dist/{shipping-profile-detail-3II2GLOC.js → shipping-profile-detail-XKLW22RQ.js} +3 -3
- package/dist/{shipping-profile-metadata-NBCZ3JVM.js → shipping-profile-metadata-UZPX2PHJ.js} +34 -33
- package/dist/{shipping-profiles-list-DY4G7Z3K.js → shipping-profiles-list-CCMGZXHJ.js} +3 -3
- package/dist/{store-address-edit-ATQ6TYQO.js → store-address-edit-PKIBRFH4.js} +78 -100
- package/dist/store-bulk-edit-HCEEME3D.js +194 -0
- package/dist/{store-closure-edit-5KFXHH6R.js → store-closure-edit-OK7MTUHY.js} +3 -3
- package/dist/{store-create-3S5LJOUB.js → store-create-CUH7NDFG.js} +69 -76
- package/dist/{store-details-UB3QR3RN.js → store-details-6EJNLLJU.js} +38 -36
- package/dist/{store-edit-O4D6F4SA.js → store-edit-N2V2Z4UU.js} +126 -55
- package/dist/{store-list-35G4TP5I.js → store-list-TRXWHGBQ.js} +39 -38
- package/dist/store-member-invite-4GDKCSTT.js +231 -0
- package/dist/{store-payment-details-edit-DAULPMDU.js → store-payment-details-edit-HOGHZMZC.js} +32 -36
- package/dist/{store-professional-details-edit-CVQW4R4J.js → store-professional-details-edit-DPJ4ZFDR.js} +3 -3
- package/dist/{tax-region-create-Q6TXHTRE.js → tax-region-create-UTSDM5EN.js} +34 -33
- package/dist/tax-region-detail-IIKSTR7V.js +70 -0
- package/dist/{tax-region-edit-3FNGCVR2.js → tax-region-edit-OARZRBVK.js} +33 -32
- package/dist/{tax-region-list-52PPICIL.js → tax-region-list-BU5TV5MS.js} +6 -6
- package/dist/{tax-region-metadata-WSHLDCN6.js → tax-region-metadata-XJRFOG7I.js} +34 -33
- package/dist/{tax-region-province-create-PU53RZPV.js → tax-region-province-create-OVLIZPNP.js} +4 -4
- package/dist/{tax-region-province-detail-4RV3L5QO.js → tax-region-province-detail-SQHBO2XB.js} +35 -34
- package/dist/{tax-region-tax-override-create-HEY53Y3G.js → tax-region-tax-override-create-WSZTBKMS.js} +41 -39
- package/dist/{tax-region-tax-override-edit-6KET7TJP.js → tax-region-tax-override-edit-OE4WUDOA.js} +41 -39
- package/dist/{tax-region-tax-rate-create-4MTXOD2Z.js → tax-region-tax-rate-create-KDN6G52Y.js} +5 -5
- package/dist/{tax-region-tax-rate-edit-VUIEX4DT.js → tax-region-tax-rate-edit-D4BFDDJ7.js} +5 -5
- package/dist/{user-detail-C7ZG3JWC.js → user-detail-3KQDH6LZ.js} +4 -4
- package/dist/{user-edit-LSWGYWV3.js → user-edit-MXS2DV37.js} +3 -3
- package/dist/{user-invite-XYAU2UIS.js → user-invite-CTH3YNUV.js} +3 -3
- package/dist/{user-list-YXRP4JU5.js → user-list-2766SCTA.js} +3 -3
- package/dist/{user-metadata-JNQQLJAM.js → user-metadata-376YJMY3.js} +34 -33
- package/package.json +3 -3
- package/dist/attribute-list-VODH4R2I.js +0 -63
- package/dist/chunk-TLE6YHGH.js +0 -26
- package/dist/customer-group-list-L474CRAE.js +0 -58
- package/dist/inventory-create-ZHD7BUCH.js +0 -57
- package/dist/location-list-TJWKHGHC.js +0 -54
- package/dist/location-service-zone-shipping-option-create-TE7I3OGE.js +0 -58
- package/dist/price-list-create-P5JB34NQ.js +0 -76
- package/dist/price-list-prices-add-3PIDYNA4.js +0 -71
- package/dist/product-create-DRZFQDRY.js +0 -70
- package/dist/product-create-variant-ZB3IHAFV.js +0 -55
- package/dist/promotion-create-JMTQ5U53.js +0 -55
- package/dist/sales-channel-list-7VVGSGC5.js +0 -51
- package/dist/shipping-option-type-list-FGCS5LGL.js +0 -61
- package/dist/store-member-invite-2SEYT7EL.js +0 -338
- package/dist/tax-region-detail-BSLXK42P.js +0 -69
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_dist
|
|
3
|
-
} from "./chunk-ZZO3INVE.js";
|
|
4
1
|
import {
|
|
5
2
|
useOrderTableColumns
|
|
6
3
|
} from "./chunk-DBYUB2YI.js";
|
|
@@ -23,9 +20,15 @@ import {
|
|
|
23
20
|
_DataTable,
|
|
24
21
|
useDataTable
|
|
25
22
|
} from "./chunk-ULJ3OMWU.js";
|
|
23
|
+
import {
|
|
24
|
+
NoRecords
|
|
25
|
+
} from "./chunk-3EF54XFY.js";
|
|
26
26
|
import {
|
|
27
27
|
currencies
|
|
28
28
|
} from "./chunk-IQPN4PZJ.js";
|
|
29
|
+
import {
|
|
30
|
+
DataTableStatusCell
|
|
31
|
+
} from "./chunk-MDABSESI.js";
|
|
29
32
|
import {
|
|
30
33
|
TwoColumnPageSkeleton
|
|
31
34
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -34,36 +37,39 @@ import {
|
|
|
34
37
|
} from "./chunk-BDGZ4EQO.js";
|
|
35
38
|
import {
|
|
36
39
|
useOrderTableFilters
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VIGX66F7.js";
|
|
38
41
|
import {
|
|
39
42
|
useMemberTableQuery
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FQFW3DUZ.js";
|
|
44
|
+
import {
|
|
45
|
+
require_dist
|
|
46
|
+
} from "./chunk-ZZO3INVE.js";
|
|
41
47
|
import {
|
|
42
48
|
useOrderTableQuery
|
|
43
49
|
} from "./chunk-3B6MTW5G.js";
|
|
44
50
|
import {
|
|
45
51
|
useProductTableFilters
|
|
46
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LNAXUDW2.js";
|
|
47
53
|
import {
|
|
48
54
|
useProductTableQuery
|
|
49
55
|
} from "./chunk-VVWB3GIK.js";
|
|
50
56
|
import {
|
|
51
57
|
useSubscriptionPlans
|
|
52
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-PBQ5M44A.js";
|
|
53
59
|
import {
|
|
54
60
|
useApproveSeller,
|
|
61
|
+
useDeleteSellerInvite,
|
|
55
62
|
useRemoveSellerMember,
|
|
63
|
+
useResendSellerInvite,
|
|
56
64
|
useSeller,
|
|
65
|
+
useSellerInvites,
|
|
57
66
|
useSellerMembers,
|
|
58
67
|
useSellerProducts,
|
|
59
|
-
useSuspendSeller
|
|
60
|
-
|
|
61
|
-
useUnsuspendSeller,
|
|
62
|
-
useUnterminateSeller
|
|
63
|
-
} from "./chunk-OVPKR4G7.js";
|
|
68
|
+
useSuspendSeller
|
|
69
|
+
} from "./chunk-LEG67A2R.js";
|
|
64
70
|
import {
|
|
65
71
|
useOrders
|
|
66
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-TAKEQAZZ.js";
|
|
67
73
|
import {
|
|
68
74
|
__toESM
|
|
69
75
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -81,14 +87,8 @@ import { useTranslation as useTranslation2 } from "react-i18next";
|
|
|
81
87
|
|
|
82
88
|
// src/pages/stores/store-details/components/store-detail-header.tsx
|
|
83
89
|
import { Children } from "react";
|
|
84
|
-
import {
|
|
85
|
-
|
|
86
|
-
PencilSquare,
|
|
87
|
-
XCircleSolid,
|
|
88
|
-
XMarkMini,
|
|
89
|
-
ArrowUturnLeft
|
|
90
|
-
} from "@medusajs/icons";
|
|
91
|
-
import { Avatar, Heading, StatusBadge, toast, usePrompt } from "@medusajs/ui";
|
|
90
|
+
import { CheckCircleSolid, PencilSquare } from "@medusajs/icons";
|
|
91
|
+
import { Avatar, Heading, StatusBadge, Tooltip } from "@medusajs/ui";
|
|
92
92
|
import { useTranslation } from "react-i18next";
|
|
93
93
|
var import_types = __toESM(require_dist(), 1);
|
|
94
94
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -120,6 +120,7 @@ var getStatusLabel = (status, t) => {
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
var StoreDetailTitle = ({ seller }) => {
|
|
123
|
+
const { t } = useTranslation();
|
|
123
124
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-4", children: [
|
|
124
125
|
/* @__PURE__ */ jsx(
|
|
125
126
|
Avatar,
|
|
@@ -130,7 +131,10 @@ var StoreDetailTitle = ({ seller }) => {
|
|
|
130
131
|
fallback: seller.name.charAt(0).toUpperCase()
|
|
131
132
|
}
|
|
132
133
|
),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
135
|
+
/* @__PURE__ */ jsx(Heading, { children: seller.name }),
|
|
136
|
+
seller.is_premium && /* @__PURE__ */ jsx(Tooltip, { content: t("stores.fields.premium"), children: /* @__PURE__ */ jsx(CheckCircleSolid, { className: "text-ui-tag-blue-icon" }) })
|
|
137
|
+
] })
|
|
134
138
|
] });
|
|
135
139
|
};
|
|
136
140
|
var StoreDetailEditButton = ({ seller }) => {
|
|
@@ -157,98 +161,6 @@ var StoreDetailActions = ({
|
|
|
157
161
|
children
|
|
158
162
|
}) => {
|
|
159
163
|
const { t } = useTranslation();
|
|
160
|
-
const prompt = usePrompt();
|
|
161
|
-
const { mutateAsync: approveSeller } = useApproveSeller(seller.id);
|
|
162
|
-
const { mutateAsync: suspendSeller } = useSuspendSeller(seller.id);
|
|
163
|
-
const { mutateAsync: unsuspendSeller } = useUnsuspendSeller(seller.id);
|
|
164
|
-
const { mutateAsync: terminateSeller } = useTerminateSeller(seller.id);
|
|
165
|
-
const { mutateAsync: unterminateSeller } = useUnterminateSeller(seller.id);
|
|
166
|
-
const handleAction = async (action, label) => {
|
|
167
|
-
const res = await prompt({
|
|
168
|
-
title: label.title,
|
|
169
|
-
description: label.description,
|
|
170
|
-
verificationText: seller.email || seller.name || "",
|
|
171
|
-
confirmText: t("actions.confirm"),
|
|
172
|
-
cancelText: t("actions.cancel")
|
|
173
|
-
});
|
|
174
|
-
if (!res) return;
|
|
175
|
-
await action().then(
|
|
176
|
-
() => toast.success(label.success),
|
|
177
|
-
(error) => toast.error(error.message)
|
|
178
|
-
);
|
|
179
|
-
};
|
|
180
|
-
const statusActions = (() => {
|
|
181
|
-
switch (seller.status) {
|
|
182
|
-
case import_types.SellerStatus.PENDING_APPROVAL:
|
|
183
|
-
return [
|
|
184
|
-
{
|
|
185
|
-
label: t("stores.actions.approve.label"),
|
|
186
|
-
onClick: () => handleAction(() => approveSeller(), {
|
|
187
|
-
title: t("stores.actions.approve.title"),
|
|
188
|
-
description: t("stores.actions.approve.description"),
|
|
189
|
-
success: t("stores.actions.approve.success")
|
|
190
|
-
}),
|
|
191
|
-
icon: /* @__PURE__ */ jsx(CheckCircleSolid, {})
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
label: t("stores.actions.terminate.label"),
|
|
195
|
-
onClick: () => handleAction(() => terminateSeller(), {
|
|
196
|
-
title: t("stores.actions.terminate.title"),
|
|
197
|
-
description: t("stores.actions.terminate.description"),
|
|
198
|
-
success: t("stores.actions.terminate.success")
|
|
199
|
-
}),
|
|
200
|
-
icon: /* @__PURE__ */ jsx(XCircleSolid, {})
|
|
201
|
-
}
|
|
202
|
-
];
|
|
203
|
-
case import_types.SellerStatus.OPEN:
|
|
204
|
-
return [
|
|
205
|
-
{
|
|
206
|
-
label: t("stores.actions.suspend.label"),
|
|
207
|
-
onClick: () => handleAction(() => suspendSeller(), {
|
|
208
|
-
title: t("stores.actions.suspend.title"),
|
|
209
|
-
description: t("stores.actions.suspend.description"),
|
|
210
|
-
success: t("stores.actions.suspend.success")
|
|
211
|
-
}),
|
|
212
|
-
icon: /* @__PURE__ */ jsx(XMarkMini, {})
|
|
213
|
-
}
|
|
214
|
-
];
|
|
215
|
-
case import_types.SellerStatus.SUSPENDED:
|
|
216
|
-
return [
|
|
217
|
-
{
|
|
218
|
-
label: t("stores.actions.unsuspend.label"),
|
|
219
|
-
onClick: () => handleAction(() => unsuspendSeller(), {
|
|
220
|
-
title: t("stores.actions.unsuspend.title"),
|
|
221
|
-
description: t("stores.actions.unsuspend.description"),
|
|
222
|
-
success: t("stores.actions.unsuspend.success")
|
|
223
|
-
}),
|
|
224
|
-
icon: /* @__PURE__ */ jsx(ArrowUturnLeft, {})
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
label: t("stores.actions.terminate.label"),
|
|
228
|
-
onClick: () => handleAction(() => terminateSeller(), {
|
|
229
|
-
title: t("stores.actions.terminate.title"),
|
|
230
|
-
description: t("stores.actions.terminate.description"),
|
|
231
|
-
success: t("stores.actions.terminate.success")
|
|
232
|
-
}),
|
|
233
|
-
icon: /* @__PURE__ */ jsx(XCircleSolid, {})
|
|
234
|
-
}
|
|
235
|
-
];
|
|
236
|
-
case import_types.SellerStatus.TERMINATED:
|
|
237
|
-
return [
|
|
238
|
-
{
|
|
239
|
-
label: t("stores.actions.unterminate.label"),
|
|
240
|
-
onClick: () => handleAction(() => unterminateSeller(), {
|
|
241
|
-
title: t("stores.actions.unterminate.title"),
|
|
242
|
-
description: t("stores.actions.unterminate.description"),
|
|
243
|
-
success: t("stores.actions.unterminate.success")
|
|
244
|
-
}),
|
|
245
|
-
icon: /* @__PURE__ */ jsx(ArrowUturnLeft, {})
|
|
246
|
-
}
|
|
247
|
-
];
|
|
248
|
-
default:
|
|
249
|
-
return [];
|
|
250
|
-
}
|
|
251
|
-
})();
|
|
252
164
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
253
165
|
/* @__PURE__ */ jsx(StatusBadge, { color: getStatusColor(seller.status), children: getStatusLabel(seller.status, t) }),
|
|
254
166
|
/* @__PURE__ */ jsx(
|
|
@@ -263,9 +175,6 @@ var StoreDetailActions = ({
|
|
|
263
175
|
to: `/stores/${seller.id}/edit`
|
|
264
176
|
}
|
|
265
177
|
]
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
actions: statusActions
|
|
269
178
|
}
|
|
270
179
|
]
|
|
271
180
|
}
|
|
@@ -325,6 +234,10 @@ var StoreGeneralSection = ({
|
|
|
325
234
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.email") }),
|
|
326
235
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.email || "-" })
|
|
327
236
|
] }),
|
|
237
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
238
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.phone") }),
|
|
239
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
|
|
240
|
+
] }),
|
|
328
241
|
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", children: [
|
|
329
242
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.website") }),
|
|
330
243
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.website_url || "-" })
|
|
@@ -335,18 +248,6 @@ var StoreGeneralSection = ({
|
|
|
335
248
|
/* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: seller.currency_code?.toUpperCase() }),
|
|
336
249
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: currencies[seller.currency_code?.toUpperCase()]?.name || "-" })
|
|
337
250
|
] })
|
|
338
|
-
] }),
|
|
339
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
340
|
-
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.premium") }),
|
|
341
|
-
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.is_premium ? t("stores.premium.yes") : t("stores.premium.no") })
|
|
342
|
-
] }),
|
|
343
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
344
|
-
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.createdAt") }),
|
|
345
|
-
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: new Date(seller.created_at).toLocaleDateString(void 0, {
|
|
346
|
-
year: "numeric",
|
|
347
|
-
month: "long",
|
|
348
|
-
day: "numeric"
|
|
349
|
-
}) })
|
|
350
251
|
] })
|
|
351
252
|
] }) });
|
|
352
253
|
};
|
|
@@ -458,8 +359,8 @@ var StoreCompanyDetailsSection = ({
|
|
|
458
359
|
};
|
|
459
360
|
|
|
460
361
|
// src/pages/stores/store-details/components/store-configuration-section.tsx
|
|
461
|
-
import {
|
|
462
|
-
import { Container as Container4, Heading as Heading4, Table
|
|
362
|
+
import { CalendarMini } from "@medusajs/icons";
|
|
363
|
+
import { Container as Container4, Heading as Heading4, Table } from "@medusajs/ui";
|
|
463
364
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
464
365
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
465
366
|
var StoreConfigurationSection = ({
|
|
@@ -468,44 +369,32 @@ var StoreConfigurationSection = ({
|
|
|
468
369
|
const { t } = useTranslation5();
|
|
469
370
|
const hasTimeOff = Boolean(seller.closed_from || seller.closed_to);
|
|
470
371
|
return /* @__PURE__ */ jsxs5(Container4, { className: "divide-y p-0", children: [
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */ jsx5(Heading4, { level: "h2", children: t("store.timeOff.header") }),
|
|
473
|
-
/* @__PURE__ */ jsx5(
|
|
474
|
-
ActionMenu,
|
|
475
|
-
{
|
|
476
|
-
groups: [
|
|
477
|
-
{
|
|
478
|
-
actions: [
|
|
479
|
-
{
|
|
480
|
-
label: t("actions.edit"),
|
|
481
|
-
icon: /* @__PURE__ */ jsx5(PencilSquare4, {}),
|
|
482
|
-
to: `/stores/${seller.id}/store-closure`
|
|
483
|
-
}
|
|
484
|
-
]
|
|
485
|
-
}
|
|
486
|
-
]
|
|
487
|
-
}
|
|
488
|
-
)
|
|
489
|
-
] }),
|
|
372
|
+
/* @__PURE__ */ jsx5("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx5(Heading4, { level: "h2", children: t("store.timeOff.header") }) }),
|
|
490
373
|
hasTimeOff ? /* @__PURE__ */ jsxs5(Table, { children: [
|
|
491
374
|
/* @__PURE__ */ jsx5(Table.Header, { children: /* @__PURE__ */ jsxs5(Table.Row, { children: [
|
|
492
375
|
/* @__PURE__ */ jsx5(Table.HeaderCell, { children: t("fields.startDate") }),
|
|
493
|
-
/* @__PURE__ */ jsx5(Table.HeaderCell, { children: t("fields.endDate") })
|
|
376
|
+
/* @__PURE__ */ jsx5(Table.HeaderCell, { children: t("fields.endDate") }),
|
|
377
|
+
/* @__PURE__ */ jsx5(Table.HeaderCell, { children: t("fields.note") })
|
|
494
378
|
] }) }),
|
|
495
379
|
/* @__PURE__ */ jsx5(Table.Body, { children: /* @__PURE__ */ jsxs5(Table.Row, { children: [
|
|
496
380
|
/* @__PURE__ */ jsx5(Table.Cell, { children: /* @__PURE__ */ jsx5(DateCell, { date: seller.closed_from ?? null }) }),
|
|
497
|
-
/* @__PURE__ */ jsx5(Table.Cell, { children: /* @__PURE__ */ jsx5(DateCell, { date: seller.closed_to ?? null }) })
|
|
381
|
+
/* @__PURE__ */ jsx5(Table.Cell, { children: /* @__PURE__ */ jsx5(DateCell, { date: seller.closed_to ?? null }) }),
|
|
382
|
+
/* @__PURE__ */ jsx5(Table.Cell, { children: /* @__PURE__ */ jsx5("span", { className: "text-ui-fg-base", children: seller.closure_note || "-" }) })
|
|
498
383
|
] }) })
|
|
499
|
-
] }) : /* @__PURE__ */
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
384
|
+
] }) : /* @__PURE__ */ jsx5(
|
|
385
|
+
NoRecords,
|
|
386
|
+
{
|
|
387
|
+
icon: /* @__PURE__ */ jsx5(CalendarMini, { className: "text-ui-fg-subtle" }),
|
|
388
|
+
title: t("store.timeOff.empty.title"),
|
|
389
|
+
message: t("store.timeOff.empty.message")
|
|
390
|
+
}
|
|
391
|
+
)
|
|
503
392
|
] });
|
|
504
393
|
};
|
|
505
394
|
|
|
506
395
|
// src/pages/stores/store-details/components/store-address-section.tsx
|
|
507
|
-
import { BuildingStorefront, PencilSquare as
|
|
508
|
-
import { Container as Container5, Heading as Heading5, Text as
|
|
396
|
+
import { BuildingStorefront, PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
397
|
+
import { Container as Container5, Heading as Heading5, Text as Text4 } from "@medusajs/ui";
|
|
509
398
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
510
399
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
511
400
|
var StoreAddressSection = ({ seller }) => {
|
|
@@ -532,7 +421,7 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
532
421
|
actions: [
|
|
533
422
|
{
|
|
534
423
|
label: t("actions.edit"),
|
|
535
|
-
icon: /* @__PURE__ */ jsx6(
|
|
424
|
+
icon: /* @__PURE__ */ jsx6(PencilSquare4, {}),
|
|
536
425
|
to: `/stores/${seller.id}/edit-address`
|
|
537
426
|
}
|
|
538
427
|
]
|
|
@@ -544,9 +433,9 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
544
433
|
formattedAddress ? /* @__PURE__ */ jsx6("div", { className: "flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx6("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-4", children: [
|
|
545
434
|
/* @__PURE__ */ jsx6(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx6(BuildingStorefront, {}) }),
|
|
546
435
|
/* @__PURE__ */ jsxs6("div", { className: "flex flex-1 flex-col", children: [
|
|
547
|
-
/* @__PURE__ */ jsx6(
|
|
436
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: address?.name || t("store.address.defaultName") }),
|
|
548
437
|
/* @__PURE__ */ jsx6(
|
|
549
|
-
|
|
438
|
+
Text4,
|
|
550
439
|
{
|
|
551
440
|
size: "small",
|
|
552
441
|
leading: "compact",
|
|
@@ -556,15 +445,15 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
556
445
|
)
|
|
557
446
|
] })
|
|
558
447
|
] }) }) }) : /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-y-1 pb-6 pt-2", children: [
|
|
559
|
-
/* @__PURE__ */ jsx6(
|
|
560
|
-
/* @__PURE__ */ jsx6(
|
|
448
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", leading: "compact", weight: "plus", children: t("store.address.empty.title") }),
|
|
449
|
+
/* @__PURE__ */ jsx6(Text4, { size: "small", className: "text-ui-fg-muted", children: t("store.address.empty.message") })
|
|
561
450
|
] })
|
|
562
451
|
] });
|
|
563
452
|
};
|
|
564
453
|
|
|
565
454
|
// src/pages/stores/store-details/components/store-subscription-section.tsx
|
|
566
455
|
import { CurrencyDollar, TriangleRightMini } from "@medusajs/icons";
|
|
567
|
-
import { Container as Container6, Heading as Heading6, Text as
|
|
456
|
+
import { Container as Container6, Heading as Heading6, Text as Text5 } from "@medusajs/ui";
|
|
568
457
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
569
458
|
import { Link } from "react-router-dom";
|
|
570
459
|
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -597,9 +486,9 @@ var StoreSubscriptionSection = ({
|
|
|
597
486
|
children: /* @__PURE__ */ jsx7("div", { className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-4", children: [
|
|
598
487
|
/* @__PURE__ */ jsx7(IconAvatar, { size: "large", variant: "squared", children: /* @__PURE__ */ jsx7(CurrencyDollar, {}) }),
|
|
599
488
|
/* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
|
|
600
|
-
/* @__PURE__ */ jsx7(
|
|
489
|
+
/* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", weight: "plus", children: plan.currency_code.toUpperCase() }),
|
|
601
490
|
/* @__PURE__ */ jsxs7(
|
|
602
|
-
|
|
491
|
+
Text5,
|
|
603
492
|
{
|
|
604
493
|
size: "small",
|
|
605
494
|
leading: "compact",
|
|
@@ -626,8 +515,8 @@ import { Link as Link2 } from "react-router-dom";
|
|
|
626
515
|
|
|
627
516
|
// src/pages/stores/store-details/components/store-members-section/store-members-data-table.tsx
|
|
628
517
|
import { useMemo } from "react";
|
|
629
|
-
import { Trash } from "@medusajs/icons";
|
|
630
|
-
import { toast
|
|
518
|
+
import { ArrowPath, Link as LinkIcon, Trash } from "@medusajs/icons";
|
|
519
|
+
import { toast } from "@medusajs/ui";
|
|
631
520
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
632
521
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
633
522
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
@@ -645,18 +534,44 @@ var StoreMembersDataTable = ({
|
|
|
645
534
|
sellerId
|
|
646
535
|
}) => {
|
|
647
536
|
const { t } = useTranslation8();
|
|
648
|
-
const {
|
|
649
|
-
const {
|
|
650
|
-
|
|
651
|
-
|
|
537
|
+
const { raw } = useMemberTableQuery({ pageSize: PAGE_SIZE });
|
|
538
|
+
const {
|
|
539
|
+
seller_members,
|
|
540
|
+
isPending: isMembersPending,
|
|
541
|
+
isError,
|
|
542
|
+
error
|
|
543
|
+
} = useSellerMembers(
|
|
544
|
+
sellerId,
|
|
545
|
+
{ limit: 100, offset: 0 },
|
|
546
|
+
{ placeholderData: keepPreviousData }
|
|
547
|
+
);
|
|
548
|
+
const { member_invites, isPending: isInvitesPending } = useSellerInvites(sellerId);
|
|
549
|
+
const rows = useMemo(() => {
|
|
550
|
+
const members = (seller_members ?? []).map((m) => ({
|
|
551
|
+
kind: "member",
|
|
552
|
+
id: m.id,
|
|
553
|
+
email: m.member?.email ?? "-",
|
|
554
|
+
role_id: m.role_id,
|
|
555
|
+
is_owner: Boolean(m.is_owner),
|
|
556
|
+
member: m
|
|
557
|
+
}));
|
|
558
|
+
const invites = (member_invites ?? []).filter((invite) => !invite.accepted).map((invite) => ({
|
|
559
|
+
kind: "invite",
|
|
560
|
+
id: invite.id,
|
|
561
|
+
email: invite.email,
|
|
562
|
+
role_id: invite.role_id,
|
|
563
|
+
invite_url: invite.invite_url ?? null
|
|
564
|
+
}));
|
|
565
|
+
return [...invites, ...members];
|
|
566
|
+
}, [seller_members, member_invites]);
|
|
652
567
|
const columns = useColumns(sellerId);
|
|
653
568
|
const { table } = useDataTable({
|
|
654
|
-
data:
|
|
569
|
+
data: rows,
|
|
655
570
|
columns,
|
|
656
571
|
enablePagination: true,
|
|
657
|
-
count,
|
|
572
|
+
count: rows.length,
|
|
658
573
|
pageSize: PAGE_SIZE,
|
|
659
|
-
getRowId: (row) => row.id
|
|
574
|
+
getRowId: (row) => `${row.kind}:${row.id}`
|
|
660
575
|
});
|
|
661
576
|
if (isError) {
|
|
662
577
|
throw error;
|
|
@@ -666,17 +581,21 @@ var StoreMembersDataTable = ({
|
|
|
666
581
|
{
|
|
667
582
|
table,
|
|
668
583
|
columns,
|
|
669
|
-
count,
|
|
584
|
+
count: rows.length,
|
|
670
585
|
pageSize: PAGE_SIZE,
|
|
671
586
|
pagination: true,
|
|
672
|
-
isLoading:
|
|
587
|
+
isLoading: isMembersPending || isInvitesPending,
|
|
673
588
|
queryObject: raw,
|
|
674
589
|
orderBy: [
|
|
675
590
|
{ key: "created_at", label: t("fields.createdAt") },
|
|
676
591
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
677
592
|
],
|
|
678
593
|
noRecords: {
|
|
679
|
-
|
|
594
|
+
title: t("stores.emptyStates.users.title", "No users yet"),
|
|
595
|
+
message: t(
|
|
596
|
+
"stores.emptyStates.users.message",
|
|
597
|
+
"Invite the first user to manage this store."
|
|
598
|
+
)
|
|
680
599
|
}
|
|
681
600
|
}
|
|
682
601
|
);
|
|
@@ -686,11 +605,9 @@ var useColumns = (sellerId) => {
|
|
|
686
605
|
const { t } = useTranslation8();
|
|
687
606
|
return useMemo(
|
|
688
607
|
() => [
|
|
689
|
-
columnHelper.accessor("
|
|
608
|
+
columnHelper.accessor("email", {
|
|
690
609
|
header: () => /* @__PURE__ */ jsx8("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx8("span", { children: t("fields.email") }) }),
|
|
691
|
-
cell: ({ row }) => {
|
|
692
|
-
return /* @__PURE__ */ jsx8("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx8("span", { className: "truncate", children: row.original.member?.email }) });
|
|
693
|
-
}
|
|
610
|
+
cell: ({ row }) => /* @__PURE__ */ jsx8("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx8("span", { className: "truncate", children: row.original.email }) })
|
|
694
611
|
}),
|
|
695
612
|
columnHelper.accessor("role_id", {
|
|
696
613
|
header: () => /* @__PURE__ */ jsx8("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx8("span", { children: t("fields.role") }) }),
|
|
@@ -701,23 +618,105 @@ var useColumns = (sellerId) => {
|
|
|
701
618
|
return /* @__PURE__ */ jsx8("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx8("span", { className: "truncate", children: label }) });
|
|
702
619
|
}
|
|
703
620
|
}),
|
|
704
|
-
columnHelper.
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
621
|
+
columnHelper.display({
|
|
622
|
+
id: "status",
|
|
623
|
+
header: () => /* @__PURE__ */ jsx8("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx8("span", { children: t("fields.status") }) }),
|
|
624
|
+
cell: ({ row }) => {
|
|
625
|
+
const isPending = row.original.kind === "invite";
|
|
626
|
+
return /* @__PURE__ */ jsx8(DataTableStatusCell, { color: isPending ? "orange" : "green", children: isPending ? t("users.status.pending") : t("users.status.active") });
|
|
709
627
|
}
|
|
710
628
|
}),
|
|
711
629
|
columnHelper.display({
|
|
712
630
|
id: "actions",
|
|
713
631
|
cell: ({ row }) => {
|
|
714
|
-
|
|
632
|
+
if (row.original.kind === "member") {
|
|
633
|
+
if (row.original.is_owner) return null;
|
|
634
|
+
return /* @__PURE__ */ jsx8(
|
|
635
|
+
MemberActions,
|
|
636
|
+
{
|
|
637
|
+
member: row.original.member,
|
|
638
|
+
sellerId
|
|
639
|
+
}
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
return /* @__PURE__ */ jsx8(InviteActions, { invite: row.original, sellerId });
|
|
715
643
|
}
|
|
716
644
|
})
|
|
717
645
|
],
|
|
718
646
|
[t, sellerId]
|
|
719
647
|
);
|
|
720
648
|
};
|
|
649
|
+
var InviteActions = ({
|
|
650
|
+
invite,
|
|
651
|
+
sellerId
|
|
652
|
+
}) => {
|
|
653
|
+
const { t } = useTranslation8();
|
|
654
|
+
const { mutateAsync: resend } = useResendSellerInvite(sellerId);
|
|
655
|
+
const { mutateAsync: deleteInvite } = useDeleteSellerInvite(sellerId);
|
|
656
|
+
const handleResend = async () => {
|
|
657
|
+
try {
|
|
658
|
+
await resend({ invite_id: invite.id });
|
|
659
|
+
toast.success(
|
|
660
|
+
t("stores.members.invite.resendSuccess", { email: invite.email })
|
|
661
|
+
);
|
|
662
|
+
} catch (e) {
|
|
663
|
+
toast.error(e.message);
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
const handleCopyLink = async () => {
|
|
667
|
+
try {
|
|
668
|
+
let url = invite.invite_url;
|
|
669
|
+
if (!url) {
|
|
670
|
+
const response = await resend({ invite_id: invite.id });
|
|
671
|
+
url = response?.member_invite?.invite_url ?? null;
|
|
672
|
+
}
|
|
673
|
+
if (!url) {
|
|
674
|
+
toast.error(t("stores.members.invite.noVendorUrl"));
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
await navigator.clipboard.writeText(url);
|
|
678
|
+
toast.success(t("stores.members.invite.linkCopied"));
|
|
679
|
+
} catch (e) {
|
|
680
|
+
toast.error(e.message);
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
const handleDelete = async () => {
|
|
684
|
+
try {
|
|
685
|
+
await deleteInvite({ invite_id: invite.id });
|
|
686
|
+
toast.success(
|
|
687
|
+
t("stores.members.invite.deleteSuccess", { email: invite.email })
|
|
688
|
+
);
|
|
689
|
+
} catch (e) {
|
|
690
|
+
toast.error(e.message);
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
const groups = [
|
|
694
|
+
{
|
|
695
|
+
actions: [
|
|
696
|
+
{
|
|
697
|
+
icon: /* @__PURE__ */ jsx8(ArrowPath, {}),
|
|
698
|
+
label: t("users.resendInvite"),
|
|
699
|
+
onClick: handleResend
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
icon: /* @__PURE__ */ jsx8(LinkIcon, {}),
|
|
703
|
+
label: t("users.copyInviteLink"),
|
|
704
|
+
onClick: handleCopyLink
|
|
705
|
+
}
|
|
706
|
+
]
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
actions: [
|
|
710
|
+
{
|
|
711
|
+
icon: /* @__PURE__ */ jsx8(Trash, {}),
|
|
712
|
+
label: t("actions.delete"),
|
|
713
|
+
onClick: handleDelete
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
}
|
|
717
|
+
];
|
|
718
|
+
return /* @__PURE__ */ jsx8(ActionMenu, { groups });
|
|
719
|
+
};
|
|
721
720
|
var MemberActions = ({
|
|
722
721
|
member,
|
|
723
722
|
sellerId
|
|
@@ -730,13 +729,13 @@ var MemberActions = ({
|
|
|
730
729
|
const handleRemove = async () => {
|
|
731
730
|
try {
|
|
732
731
|
await removeMember();
|
|
733
|
-
|
|
732
|
+
toast.success(
|
|
734
733
|
t("users.deleteUserSuccess", {
|
|
735
734
|
name: member.member?.email
|
|
736
735
|
})
|
|
737
736
|
);
|
|
738
737
|
} catch (e) {
|
|
739
|
-
|
|
738
|
+
toast.error(e.message);
|
|
740
739
|
}
|
|
741
740
|
};
|
|
742
741
|
return /* @__PURE__ */ jsx8(
|
|
@@ -764,7 +763,7 @@ var StoreMembersSection = ({ sellerId }) => {
|
|
|
764
763
|
return /* @__PURE__ */ jsxs8(Container7, { className: "divide-y p-0", children: [
|
|
765
764
|
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
766
765
|
/* @__PURE__ */ jsx9(Heading7, { level: "h2", children: t("users.domain", "Users") }),
|
|
767
|
-
/* @__PURE__ */ jsx9(Link2, { to: "invite", children: /* @__PURE__ */ jsx9(Button, { size: "small", variant: "secondary", children: t("
|
|
766
|
+
/* @__PURE__ */ jsx9(Link2, { to: "invite", children: /* @__PURE__ */ jsx9(Button, { size: "small", variant: "secondary", children: t("stores.members.addUser.action", "Add") }) })
|
|
768
767
|
] }),
|
|
769
768
|
/* @__PURE__ */ jsx9(StoreMembersDataTable, { sellerId })
|
|
770
769
|
] });
|
|
@@ -777,78 +776,136 @@ import {
|
|
|
777
776
|
Button as Button2,
|
|
778
777
|
Container as Container8,
|
|
779
778
|
Heading as Heading8,
|
|
780
|
-
|
|
779
|
+
Prompt,
|
|
780
|
+
Text as Text6,
|
|
781
781
|
Textarea,
|
|
782
|
-
toast as
|
|
782
|
+
toast as toast2
|
|
783
783
|
} from "@medusajs/ui";
|
|
784
784
|
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
785
785
|
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
786
786
|
var StoreRequestSection = ({ seller }) => {
|
|
787
787
|
const { t } = useTranslation10();
|
|
788
|
-
const [reason, setReason] = useState("");
|
|
789
788
|
const { mutateAsync: approveSeller, isPending: isApproving } = useApproveSeller(seller.id);
|
|
790
|
-
const { mutateAsync: suspendSeller, isPending:
|
|
791
|
-
const
|
|
792
|
-
try {
|
|
793
|
-
await approveSeller();
|
|
794
|
-
toast3.success(
|
|
795
|
-
t("stores.approve.successToast", "Store approved successfully")
|
|
796
|
-
);
|
|
797
|
-
} catch (error) {
|
|
798
|
-
toast3.error(error.message);
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
const handleReject = async () => {
|
|
802
|
-
try {
|
|
803
|
-
await suspendSeller({ reason: reason || void 0 });
|
|
804
|
-
toast3.success(
|
|
805
|
-
t("stores.suspend.successToast", "Store suspended successfully")
|
|
806
|
-
);
|
|
807
|
-
} catch (error) {
|
|
808
|
-
toast3.error(error.message);
|
|
809
|
-
}
|
|
810
|
-
};
|
|
789
|
+
const { mutateAsync: suspendSeller, isPending: isRejecting } = useSuspendSeller(seller.id);
|
|
790
|
+
const requesterLabel = seller.email || seller.name;
|
|
811
791
|
return /* @__PURE__ */ jsxs9(Container8, { className: "p-0", children: [
|
|
812
792
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-3 border-b border-ui-border-base px-6 py-4", children: [
|
|
813
|
-
/* @__PURE__ */ jsx10(ExclamationCircleSolid, { className: "text-
|
|
793
|
+
/* @__PURE__ */ jsx10(ExclamationCircleSolid, { className: "text-ui-tag-blue-icon" }),
|
|
814
794
|
/* @__PURE__ */ jsx10(Heading8, { level: "h2", children: t("stores.request.title") })
|
|
815
795
|
] }),
|
|
816
|
-
/* @__PURE__ */ jsx10("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx10(
|
|
817
|
-
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-2 border-t border-ui-border-base px-6 py-4", children: [
|
|
818
|
-
/* @__PURE__ */ jsx10(Text7, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: t("stores.request.reasonLabel") }),
|
|
819
|
-
/* @__PURE__ */ jsx10(
|
|
820
|
-
Textarea,
|
|
821
|
-
{
|
|
822
|
-
placeholder: t("stores.request.reasonPlaceholder"),
|
|
823
|
-
value: reason,
|
|
824
|
-
onChange: (e) => setReason(e.target.value)
|
|
825
|
-
}
|
|
826
|
-
)
|
|
827
|
-
] }),
|
|
796
|
+
/* @__PURE__ */ jsx10("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx10(Text6, { className: "text-ui-fg-subtle", children: t("stores.request.description", { requester: requesterLabel }) }) }),
|
|
828
797
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-end gap-x-2 rounded-b-lg border-t border-ui-border-base bg-ui-bg-subtle px-6 py-4", children: [
|
|
829
798
|
/* @__PURE__ */ jsx10(
|
|
830
|
-
|
|
799
|
+
RequestActionPrompt,
|
|
831
800
|
{
|
|
832
|
-
size: "small",
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
801
|
+
trigger: /* @__PURE__ */ jsx10(Button2, { size: "small", variant: "secondary", children: t("stores.request.reject") }),
|
|
802
|
+
title: t("stores.request.rejectTitle", "Reject store request"),
|
|
803
|
+
description: t(
|
|
804
|
+
"stores.request.rejectDescription",
|
|
805
|
+
"Provide an optional reason. The vendor will be notified."
|
|
806
|
+
),
|
|
807
|
+
confirmLabel: t("stores.request.reject"),
|
|
808
|
+
confirmVariant: "danger",
|
|
809
|
+
isLoading: isRejecting,
|
|
810
|
+
onConfirm: async (note) => {
|
|
811
|
+
try {
|
|
812
|
+
await suspendSeller({ reason: note || void 0 });
|
|
813
|
+
toast2.success(t("stores.request.rejectSuccess"));
|
|
814
|
+
} catch (error) {
|
|
815
|
+
toast2.error(error.message);
|
|
816
|
+
throw error;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
837
819
|
}
|
|
838
820
|
),
|
|
839
821
|
/* @__PURE__ */ jsx10(
|
|
840
|
-
|
|
822
|
+
RequestActionPrompt,
|
|
841
823
|
{
|
|
842
|
-
size: "small",
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
824
|
+
trigger: /* @__PURE__ */ jsx10(Button2, { size: "small", variant: "primary", children: t("stores.request.confirm") }),
|
|
825
|
+
title: t("stores.request.confirmTitle", "Approve store request"),
|
|
826
|
+
description: t(
|
|
827
|
+
"stores.request.confirmDescription",
|
|
828
|
+
"Provide an optional note for the vendor."
|
|
829
|
+
),
|
|
830
|
+
confirmLabel: t("stores.request.confirm"),
|
|
831
|
+
confirmVariant: "primary",
|
|
832
|
+
isLoading: isApproving,
|
|
833
|
+
onConfirm: async (_note) => {
|
|
834
|
+
try {
|
|
835
|
+
await approveSeller();
|
|
836
|
+
toast2.success(t("stores.request.confirmSuccess"));
|
|
837
|
+
} catch (error) {
|
|
838
|
+
toast2.error(error.message);
|
|
839
|
+
throw error;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
847
842
|
}
|
|
848
843
|
)
|
|
849
844
|
] })
|
|
850
845
|
] });
|
|
851
846
|
};
|
|
847
|
+
var RequestActionPrompt = ({
|
|
848
|
+
trigger,
|
|
849
|
+
title,
|
|
850
|
+
description,
|
|
851
|
+
confirmLabel,
|
|
852
|
+
confirmVariant,
|
|
853
|
+
isLoading,
|
|
854
|
+
onConfirm
|
|
855
|
+
}) => {
|
|
856
|
+
const { t } = useTranslation10();
|
|
857
|
+
const [open, setOpen] = useState(false);
|
|
858
|
+
const [note, setNote] = useState("");
|
|
859
|
+
const handleSubmit = async () => {
|
|
860
|
+
try {
|
|
861
|
+
await onConfirm(note);
|
|
862
|
+
setOpen(false);
|
|
863
|
+
setNote("");
|
|
864
|
+
} catch {
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
return /* @__PURE__ */ jsxs9(Prompt, { open, onOpenChange: setOpen, variant: confirmVariant, children: [
|
|
868
|
+
/* @__PURE__ */ jsx10(Prompt.Trigger, { asChild: true, children: trigger }),
|
|
869
|
+
/* @__PURE__ */ jsxs9(Prompt.Content, { children: [
|
|
870
|
+
/* @__PURE__ */ jsxs9(Prompt.Header, { children: [
|
|
871
|
+
/* @__PURE__ */ jsx10(Prompt.Title, { children: title }),
|
|
872
|
+
/* @__PURE__ */ jsx10(Prompt.Description, { children: description })
|
|
873
|
+
] }),
|
|
874
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-2 px-6 pb-4", children: [
|
|
875
|
+
/* @__PURE__ */ jsxs9(Text6, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
876
|
+
t("stores.request.noteLabel", "Note"),
|
|
877
|
+
" ",
|
|
878
|
+
/* @__PURE__ */ jsxs9("span", { className: "text-ui-fg-muted font-normal", children: [
|
|
879
|
+
"(",
|
|
880
|
+
t("fields.optional", "Optional"),
|
|
881
|
+
")"
|
|
882
|
+
] })
|
|
883
|
+
] }),
|
|
884
|
+
/* @__PURE__ */ jsx10(
|
|
885
|
+
Textarea,
|
|
886
|
+
{
|
|
887
|
+
placeholder: t("stores.request.notePlaceholder"),
|
|
888
|
+
value: note,
|
|
889
|
+
onChange: (e) => setNote(e.target.value)
|
|
890
|
+
}
|
|
891
|
+
)
|
|
892
|
+
] }),
|
|
893
|
+
/* @__PURE__ */ jsxs9(Prompt.Footer, { children: [
|
|
894
|
+
/* @__PURE__ */ jsx10(Prompt.Cancel, { disabled: isLoading, children: t("actions.cancel") }),
|
|
895
|
+
/* @__PURE__ */ jsx10(
|
|
896
|
+
Button2,
|
|
897
|
+
{
|
|
898
|
+
size: "small",
|
|
899
|
+
variant: confirmVariant === "danger" ? "danger" : "primary",
|
|
900
|
+
onClick: handleSubmit,
|
|
901
|
+
isLoading,
|
|
902
|
+
children: confirmLabel
|
|
903
|
+
}
|
|
904
|
+
)
|
|
905
|
+
] })
|
|
906
|
+
] })
|
|
907
|
+
] });
|
|
908
|
+
};
|
|
852
909
|
|
|
853
910
|
// src/pages/stores/store-details/components/store-orders-section.tsx
|
|
854
911
|
import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
|
|
@@ -919,7 +976,11 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
919
976
|
queryObject: raw,
|
|
920
977
|
prefix: PREFIX,
|
|
921
978
|
noRecords: {
|
|
922
|
-
|
|
979
|
+
title: t("stores.emptyStates.orders.title", "No orders yet"),
|
|
980
|
+
message: t(
|
|
981
|
+
"stores.emptyStates.orders.message",
|
|
982
|
+
"Orders placed at this store will appear here."
|
|
983
|
+
)
|
|
923
984
|
}
|
|
924
985
|
}
|
|
925
986
|
)
|
|
@@ -990,7 +1051,11 @@ var StoreProductsSection = ({
|
|
|
990
1051
|
pagination: true,
|
|
991
1052
|
prefix: PREFIX2,
|
|
992
1053
|
noRecords: {
|
|
993
|
-
|
|
1054
|
+
title: t("stores.emptyStates.products.title", "No products yet"),
|
|
1055
|
+
message: t(
|
|
1056
|
+
"stores.emptyStates.products.message",
|
|
1057
|
+
"Products published by this store will appear here."
|
|
1058
|
+
)
|
|
994
1059
|
}
|
|
995
1060
|
}
|
|
996
1061
|
)
|
|
@@ -999,7 +1064,7 @@ var StoreProductsSection = ({
|
|
|
999
1064
|
|
|
1000
1065
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1001
1066
|
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1002
|
-
var TABS = ["orders", "
|
|
1067
|
+
var TABS = ["orders", "products", "users", "timeOff"];
|
|
1003
1068
|
var TabBar = ({
|
|
1004
1069
|
activeTab,
|
|
1005
1070
|
onTabChange
|
|
@@ -1054,7 +1119,7 @@ var Root = ({ children }) => {
|
|
|
1054
1119
|
}
|
|
1055
1120
|
return /* @__PURE__ */ jsxs12(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1056
1121
|
/* @__PURE__ */ jsxs12(TwoColumnPage.Main, { children: [
|
|
1057
|
-
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && /* @__PURE__ */ jsx13(StoreRequestSection, { seller }),
|
|
1122
|
+
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && /* @__PURE__ */ jsx13(StoreRequestSection, { seller }),
|
|
1058
1123
|
/* @__PURE__ */ jsx13(StoreGeneralSection, { seller }),
|
|
1059
1124
|
/* @__PURE__ */ jsx13(TabBar, { activeTab, onTabChange: setActiveTab }),
|
|
1060
1125
|
activeTab === "orders" && /* @__PURE__ */ jsx13(
|