@mercurjs/admin 2.3.9-canary.4 → 2.3.9-canary.5
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-XTGK7IRV.js → add-campaign-promotions-HBMPYBWL.js} +8 -9
- package/dist/{adjust-inventory-BZ6UCP4U.js → adjust-inventory-RTMTGO5T.js} +30 -31
- package/dist/{api-key-management-create-BUJVV7WQ.js → api-key-management-create-R2QRXLWU.js} +4 -5
- package/dist/{api-key-management-detail-K6YAPVVA.js → api-key-management-detail-2FMETKXR.js} +32 -33
- package/dist/{api-key-management-edit-72CM42BT.js → api-key-management-edit-3UJ7DIH2.js} +4 -5
- package/dist/{api-key-management-list-RSXFGADN.js → api-key-management-list-3YBD5KNP.js} +5 -6
- package/dist/{api-key-management-sales-channels-DWMMRNXG.js → api-key-management-sales-channels-VP5FPCMF.js} +4 -5
- package/dist/{attribute-create-Z7EA2DU4.js → attribute-create-R56WADNB.js} +33 -34
- package/dist/{attribute-create-possible-value-RZXBKJJZ.js → attribute-create-possible-value-3R4XNSXB.js} +2 -3
- package/dist/{attribute-detail-HVBXRAC4.js → attribute-detail-PU3LWSEC.js} +31 -32
- package/dist/{attribute-edit-Y5LOXAU7.js → attribute-edit-RK2QASAT.js} +4 -5
- package/dist/{attribute-edit-possible-value-ZCA4US7Z.js → attribute-edit-possible-value-WV5FR3A7.js} +4 -5
- package/dist/{attribute-edit-ranking-4USGUKRJ.js → attribute-edit-ranking-53TCHOGF.js} +2 -3
- package/dist/attribute-list-GXZY4A2K.js +59 -0
- package/dist/{breadcrumb-XREPUTQZ.js → breadcrumb-2IXSJGVH.js} +2 -3
- package/dist/{breadcrumb-2PIMELEE.js → breadcrumb-63W4ACRQ.js} +2 -3
- package/dist/{campaign-budget-edit-PLYMCATI.js → campaign-budget-edit-OG4JZ5Q4.js} +2 -3
- package/dist/{campaign-configuration-BJL7O7MB.js → campaign-configuration-ASHJSSD3.js} +2 -3
- package/dist/{campaign-create-NJMOJVIP.js → campaign-create-ZPHJYED3.js} +6 -7
- package/dist/{campaign-detail-RRUFKLZD.js → campaign-detail-ZNFVVNX4.js} +35 -36
- package/dist/{campaign-edit-RJ6PUA64.js → campaign-edit-RIQCPM5M.js} +2 -3
- package/dist/{campaign-list-BW32MXUZ.js → campaign-list-27HCFLS7.js} +5 -6
- package/dist/{categories-metadata-F3WXEYSD.js → categories-metadata-VOKG26IC.js} +30 -31
- package/dist/{category-create-MA263LED.js → category-create-MKENO5UC.js} +4 -5
- package/dist/{category-detail-3O5R5ERZ.js → category-detail-SJPQSYH2.js} +36 -37
- package/dist/{category-edit-4GY4B6YO.js → category-edit-SKLDLRHW.js} +3 -4
- package/dist/{category-icon-edit-BEJEYUQY.js → category-icon-edit-XJMM3O74.js} +3 -4
- package/dist/{category-list-WIM33ATO.js → category-list-KI2XDQ3A.js} +5 -6
- package/dist/{category-media-JRHFS7AC.js → category-media-HLDRYNWZ.js} +3 -4
- package/dist/{category-organize-M4GT6NTS.js → category-organize-SKRZFHUJ.js} +3 -4
- package/dist/{category-products-VAMYKSSO.js → category-products-6JFOCWYN.js} +34 -35
- package/dist/{chunk-73N655UO.js → chunk-23X5IBGZ.js} +1 -1
- package/dist/{chunk-VUTEJBUV.js → chunk-23XQKZVI.js} +4 -4
- package/dist/{chunk-D7Q23Y3N.js → chunk-2AXXZ6BQ.js} +1 -1
- package/dist/{chunk-2WC2HCAF.js → chunk-2GD4XTO7.js} +4 -4
- package/dist/{chunk-ZA2KFUFR.js → chunk-2KCF3ZIB.js} +13 -0
- package/dist/{chunk-BHQZHRYK.js → chunk-2MJHJ3VY.js} +2 -2
- package/dist/{chunk-NV6JFZUY.js → chunk-3435VAEX.js} +2 -2
- package/dist/{chunk-4ARPCKNT.js → chunk-35PCKHL7.js} +2 -2
- package/dist/chunk-3EPP7VXZ.js +58 -0
- package/dist/{chunk-LY4EOBD6.js → chunk-3F5TBRXC.js} +4 -4
- package/dist/{chunk-ETZHMA2C.js → chunk-3I2HNULG.js} +1 -1
- package/dist/{chunk-BGQIJMQS.js → chunk-3MT6RTJD.js} +3 -5
- package/dist/{chunk-5GPXMPGI.js → chunk-3QEYOHBB.js} +1 -1
- package/dist/{chunk-HMHKC3Y3.js → chunk-3YHS5YGW.js} +129 -60
- package/dist/{chunk-7V3JWYEO.js → chunk-46XA3DMZ.js} +5 -5
- package/dist/{chunk-EB2YI3JW.js → chunk-4BPYFH72.js} +1 -1
- package/dist/{chunk-JM6RKFUC.js → chunk-4KXDWQ5F.js} +2 -4
- package/dist/{chunk-DJ5CPXLV.js → chunk-4TKGJDGK.js} +4 -4
- package/dist/{chunk-Y6XFGGN6.js → chunk-4Y2LVCLK.js} +10 -5
- package/dist/chunk-5CNQLDVS.js +36 -0
- package/dist/{chunk-YSC3YUCQ.js → chunk-5F7OAHRW.js} +1 -1
- package/dist/{chunk-FEQNCTJI.js → chunk-5G4ZVGO7.js} +3 -3
- package/dist/{chunk-VJ2BXTVC.js → chunk-5GXFPPT5.js} +4 -6
- package/dist/{chunk-RBRLCVIY.js → chunk-5QORIQSD.js} +8 -8
- package/dist/{chunk-NHJEIVWT.js → chunk-65S7FFIR.js} +2 -2
- package/dist/{chunk-C3RYDQYL.js → chunk-6GWTUG63.js} +4 -6
- package/dist/{chunk-SF2HYJV3.js → chunk-6NR2MKZT.js} +1 -1
- package/dist/{chunk-QDBRSWFO.js → chunk-6ZNREXHT.js} +1 -1
- package/dist/{chunk-36IQHWEB.js → chunk-6ZQXTLI7.js} +2 -4
- package/dist/chunk-7ASMQGI2.js +92 -0
- package/dist/{chunk-IWXIM6ID.js → chunk-7DEZJGI6.js} +2 -4
- package/dist/{chunk-AMCYOXHT.js → chunk-7ZSLJUXV.js} +1 -1
- package/dist/{chunk-L5LRABUQ.js → chunk-AF4UKAMF.js} +2 -2
- package/dist/{chunk-HSJLKU4G.js → chunk-AQBW6KVN.js} +1 -1
- package/dist/{chunk-A5XBXCY7.js → chunk-BKSRMEDD.js} +2 -4
- package/dist/{chunk-BOGWUBYZ.js → chunk-BXLY5DI3.js} +2 -2
- package/dist/{chunk-CG53DXJH.js → chunk-BYW3OPEN.js} +2 -4
- package/dist/{chunk-WWJPHGHR.js → chunk-C24M2TDZ.js} +3 -3
- package/dist/{chunk-PIIK7BOZ.js → chunk-CCJPJKTY.js} +3 -3
- package/dist/chunk-CEAFREUV.js +79 -0
- package/dist/{chunk-2OBZVIAT.js → chunk-CEW7IUTB.js} +5 -5
- package/dist/{chunk-B6IP4AGA.js → chunk-CYRBIZLI.js} +3 -5
- package/dist/{chunk-2PITQ75C.js → chunk-CYV4ULEF.js} +61 -7
- package/dist/{chunk-JM57BRT5.js → chunk-DGFXNI7G.js} +2 -2
- package/dist/{chunk-Q2KAHVLJ.js → chunk-DPGIKIH6.js} +1 -1
- package/dist/chunk-DQPTTURI.js +41 -0
- package/dist/{chunk-BJHKA3Z2.js → chunk-DRURWEJR.js} +2 -2
- package/dist/{chunk-U5DAQEBO.js → chunk-DTZLKSWU.js} +1 -1
- package/dist/{chunk-KZQV37IG.js → chunk-E2R5JEQC.js} +4 -4
- package/dist/chunk-E6DSHSYR.js +328 -0
- package/dist/{chunk-FRM5FUCX.js → chunk-E7HU64ES.js} +2 -2
- package/dist/{chunk-6NPQUOD5.js → chunk-EKXHGK7S.js} +3 -5
- package/dist/{chunk-3HTGPMNY.js → chunk-ENSULQYA.js} +2 -2
- package/dist/{chunk-UQLOY5ZV.js → chunk-EQKM37O2.js} +3 -5
- package/dist/{chunk-E4VMZ23T.js → chunk-EVWDEDPV.js} +4 -4
- package/dist/{chunk-JPTK7IG4.js → chunk-EYOPD6DG.js} +1 -1
- package/dist/{chunk-RHC3DTT5.js → chunk-FNBJK2TJ.js} +3 -3
- package/dist/{chunk-YNMF33DB.js → chunk-FRU7FNLF.js} +1 -1
- package/dist/{chunk-OJX3CQSK.js → chunk-FT2MLA4F.js} +207 -147
- package/dist/{chunk-U5UHFRSQ.js → chunk-FYON63D2.js} +1 -1
- package/dist/{chunk-LH4AV4VB.js → chunk-GIPLONYW.js} +2 -2
- package/dist/{chunk-Z7EC4L7T.js → chunk-GLQH2FNY.js} +1 -1
- package/dist/{chunk-YRE4FYL4.js → chunk-GUNKK5PA.js} +7 -7
- package/dist/{chunk-R2MDLLRF.js → chunk-GVIW5ZJR.js} +2 -4
- package/dist/{chunk-P2HV6NWL.js → chunk-GY7HAFTG.js} +2 -2
- package/dist/{chunk-4CEAIFZT.js → chunk-H5G6SVUG.js} +1 -1
- package/dist/{chunk-EYIM4SDS.js → chunk-HEHM26GN.js} +1 -1
- package/dist/{chunk-U4DC4COG.js → chunk-HR26PDFY.js} +2 -4
- package/dist/{chunk-YJ35LRQW.js → chunk-HU6Z5HMO.js} +2 -4
- package/dist/{chunk-IA7CRX7T.js → chunk-HZBUSK2N.js} +2 -4
- package/dist/{chunk-UU5EUXNQ.js → chunk-I4UQLLSP.js} +1 -1
- package/dist/{chunk-NEUJTY2R.js → chunk-I7SKIUQJ.js} +5 -5
- package/dist/{chunk-SWN3TJKT.js → chunk-IIAKP25M.js} +7 -7
- package/dist/chunk-IQZYBCVR.js +109 -0
- package/dist/{chunk-OO7QUK3Y.js → chunk-ITMSX2KQ.js} +3 -5
- package/dist/{chunk-UKVEQ24N.js → chunk-IXSNEWUQ.js} +8 -8
- package/dist/{chunk-OZC7SQYO.js → chunk-J3U2QLEW.js} +1 -1
- package/dist/{chunk-SMC7EMBH.js → chunk-J6FNB3IE.js} +1 -1
- package/dist/{chunk-AONKTYFO.js → chunk-JAW2434H.js} +1 -1
- package/dist/{chunk-HJJXGJDO.js → chunk-JCXX4DNP.js} +2 -2
- package/dist/{chunk-HF2QMR4B.js → chunk-JJUA3AUY.js} +1 -1
- package/dist/{chunk-RELVICQN.js → chunk-JPZ5C6FD.js} +1 -1
- package/dist/{chunk-4SK6CDZZ.js → chunk-JQ6JP5U3.js} +2 -2
- package/dist/{chunk-QM7MOWSV.js → chunk-JT47JVMM.js} +11 -11
- package/dist/{chunk-WAYBZLBI.js → chunk-JV3J45SY.js} +5 -5
- package/dist/{chunk-NQG7WTKF.js → chunk-K2VXSJUF.js} +1 -1
- package/dist/{chunk-GIB6NTQL.js → chunk-KDGQJ37N.js} +2 -4
- package/dist/{chunk-VF3FAO5H.js → chunk-KP3LZSTC.js} +2 -2
- package/dist/{chunk-WNQEL3FE.js → chunk-KPYRXLOI.js} +1 -1
- package/dist/{chunk-TWHVBX3P.js → chunk-KQPZRFFT.js} +3 -3
- package/dist/{chunk-V2FHMPAK.js → chunk-KUR6AQRH.js} +2 -4
- package/dist/{chunk-FVAIWOM4.js → chunk-KVM4YVFU.js} +2 -2
- package/dist/{chunk-6GQUM5K7.js → chunk-KXEXGXFV.js} +4 -4
- package/dist/{chunk-Z7ZJAJMC.js → chunk-L6ZOJ3F5.js} +2 -2
- package/dist/{chunk-SK6XP7NB.js → chunk-L7UVRJU6.js} +2 -2
- package/dist/{chunk-S4QXORRY.js → chunk-LTAR5MLU.js} +30 -25
- package/dist/{chunk-TEPEMC3Z.js → chunk-M24NHTQL.js} +1 -1
- package/dist/{chunk-4PX63HUF.js → chunk-MAAVSBM6.js} +4 -4
- package/dist/{chunk-ST4AHZAE.js → chunk-MWSL7FLA.js} +1 -1
- package/dist/{chunk-ZN3YPJ7K.js → chunk-N2YEPXWG.js} +4 -4
- package/dist/{chunk-LLDKZKLC.js → chunk-NA2GDOU7.js} +3 -5
- package/dist/{chunk-JU4VN5TD.js → chunk-NMC4FYSN.js} +2 -2
- package/dist/{chunk-QDQHROFM.js → chunk-OA6BLEVL.js} +3 -3
- package/dist/{chunk-TS5KQSNH.js → chunk-OKXPZIGO.js} +2 -2
- package/dist/{chunk-OMUB4HUL.js → chunk-OPMPCYJX.js} +5 -5
- package/dist/{chunk-UXZ27L5P.js → chunk-OUTMAZS3.js} +2 -2
- package/dist/{chunk-CXRUBEFF.js → chunk-PLWBVBQJ.js} +2 -2
- package/dist/{chunk-BNDMVA3T.js → chunk-PSNKTHKS.js} +5 -5
- package/dist/{chunk-LEC3ENGO.js → chunk-PTXXNVII.js} +5 -5
- package/dist/{chunk-D2T6A6TA.js → chunk-PZRMVDNF.js} +1 -1
- package/dist/{chunk-N6FICBF5.js → chunk-PZXHCGSF.js} +2 -2
- package/dist/{chunk-VFP7NP63.js → chunk-QEUNVKSA.js} +4 -4
- package/dist/{chunk-4DU6DHG4.js → chunk-QFZK43H2.js} +2 -2
- package/dist/{chunk-KX73KMNY.js → chunk-RYOXVZEX.js} +1 -1
- package/dist/{chunk-TKCAGTFO.js → chunk-SI47AGBI.js} +2 -2
- package/dist/{chunk-QBQZ3GZP.js → chunk-SQYHUF4Y.js} +3 -3
- package/dist/{chunk-H6YXOK2A.js → chunk-SSHDOORP.js} +2 -2
- package/dist/{chunk-AK7YIEAT.js → chunk-SWLW2RIE.js} +1 -1
- package/dist/{chunk-O4HQWTND.js → chunk-TOAE7XZ7.js} +2 -4
- package/dist/{chunk-P3AG2KXU.js → chunk-TPHZ6MH5.js} +2 -2
- package/dist/{chunk-FGSYS2KD.js → chunk-TQ7X7BTA.js} +7 -7
- package/dist/{chunk-RT52JDBU.js → chunk-TVJ5Y6U5.js} +3 -5
- package/dist/chunk-TWDUEIWF.js +51 -0
- package/dist/{chunk-JLAKAWP5.js → chunk-UHHY2ND7.js} +4 -6
- package/dist/{chunk-OKTHVHAN.js → chunk-UKL34M7K.js} +2 -2
- package/dist/{chunk-GR6JUIRU.js → chunk-UPZP4CHG.js} +15 -4
- package/dist/{chunk-FK2KI5EM.js → chunk-VG3FVZJW.js} +4 -4
- package/dist/{chunk-YQV26XP3.js → chunk-VHAJNIVQ.js} +4 -4
- package/dist/{chunk-R4WBTEZL.js → chunk-VKEUZPVJ.js} +1 -1
- package/dist/{chunk-EEXFUHQT.js → chunk-VWFT6TH3.js} +3 -3
- package/dist/{chunk-2MK2FIVX.js → chunk-VYPJCJ5T.js} +75 -17
- package/dist/{chunk-G7GDAD7B.js → chunk-W3FZMS7E.js} +3 -3
- package/dist/{chunk-MW3PXEBW.js → chunk-WCKHI6BO.js} +2 -4
- package/dist/{chunk-KT4JCLQN.js → chunk-WH7WEJMX.js} +3 -3
- package/dist/{chunk-TYE2ULTZ.js → chunk-WJAFVDOO.js} +1 -1
- package/dist/{chunk-VJUBAHQN.js → chunk-XHJ64CM2.js} +3 -5
- package/dist/{chunk-XXNKE6HC.js → chunk-XJV4PVT5.js} +3 -5
- package/dist/{chunk-SWJRT5LI.js → chunk-XPRFPBDC.js} +3 -3
- package/dist/{chunk-MVTNCT5E.js → chunk-XZTJCIW5.js} +1 -1
- package/dist/{chunk-DOOASSS4.js → chunk-Y5ZZOV2D.js} +2 -4
- package/dist/{chunk-WRQPTVAH.js → chunk-YCAFOH7B.js} +1 -1
- package/dist/{chunk-WA5ATPE2.js → chunk-YHSJFILH.js} +5 -5
- package/dist/{chunk-RRDCRGAU.js → chunk-YPPV7PKA.js} +2 -2
- package/dist/{chunk-C2RGTTV6.js → chunk-YQX2GSSA.js} +3 -5
- package/dist/{chunk-J5NKP3PO.js → chunk-YYFBYF3Z.js} +1 -1
- package/dist/{chunk-LFIP5HLH.js → chunk-ZHI5INXR.js} +4 -6
- package/dist/{chunk-MW5TDV7U.js → chunk-ZPNDXVKU.js} +2 -4
- package/dist/{chunk-ETS5KFYF.js → chunk-ZRVOEBMM.js} +1 -1
- package/dist/{chunk-QB2L7K3U.js → chunk-ZSBHQBTB.js} +2 -2
- package/dist/{chunk-BCGTBSGP.js → chunk-ZTHL4V67.js} +5 -5
- package/dist/{chunk-BT23JEBF.js → chunk-ZTUJNVXJ.js} +3 -5
- package/dist/{chunk-YBZACDZB.js → chunk-ZVOBDGMH.js} +1 -1
- package/dist/{chunk-YGC3WSRP.js → chunk-ZYK6RTG2.js} +4 -4
- package/dist/{collection-add-products-TWJJ35QV.js → collection-add-products-HGAABSQG.js} +34 -35
- package/dist/{collection-create-VMJUEARG.js → collection-create-IROC3TUS.js} +3 -4
- package/dist/{collection-detail-SREJ5XM6.js → collection-detail-POPHBJTD.js} +35 -36
- package/dist/{collection-edit-K25PV4EM.js → collection-edit-VLCCN534.js} +3 -4
- package/dist/{collection-icon-edit-OEQJYX2P.js → collection-icon-edit-HGOORQUL.js} +3 -4
- package/dist/{collection-list-AZW2UZ6K.js → collection-list-QYOZOLH6.js} +39 -40
- package/dist/{collection-media-CIP3D6TK.js → collection-media-YK4XDMDC.js} +3 -4
- package/dist/{collection-metadata-HALVAS56.js → collection-metadata-NAUKYDWG.js} +30 -31
- package/dist/{commission-rule-commission-edit-XGSO5YKM.js → commission-rule-commission-edit-ORXDQKCX.js} +5 -6
- package/dist/{commission-rule-create-E6CMHSIE.js → commission-rule-create-3E62CKHW.js} +5 -6
- package/dist/{commission-rule-detail-5HWHY54Y.js → commission-rule-detail-3NH7ULIN.js} +9 -10
- package/dist/{commission-rule-edit-62EUPAQV.js → commission-rule-edit-4JVK6S76.js} +2 -3
- package/dist/{commissions-list-U43XF7PH.js → commissions-list-BADK7MSY.js} +9 -10
- package/dist/{customer-create-QPQ6CDZ5.js → customer-create-HPOKBBWF.js} +2 -3
- package/dist/{customer-create-address-BXF4BEBH.js → customer-create-address-X74BQEEF.js} +2 -3
- package/dist/{customer-detail-NCF2YMFC.js → customer-detail-SZT2SUP7.js} +33 -34
- package/dist/{customer-edit-GJSVC74Y.js → customer-edit-23V25VEJ.js} +2 -3
- package/dist/{customer-edit-address-T27ZZXZD.js → customer-edit-address-IKTNWMCQ.js} +2 -3
- package/dist/{customer-group-add-customers-ZA743HDV.js → customer-group-add-customers-Z3ZKTWF4.js} +3 -4
- package/dist/{customer-group-create-6UMMLXCU.js → customer-group-create-B33PV7LT.js} +2 -3
- package/dist/{customer-group-detail-EIONHXPW.js → customer-group-detail-FFMUXNIB.js} +32 -33
- package/dist/{customer-group-edit-TMIRTH32.js → customer-group-edit-R7GY2M7U.js} +2 -3
- package/dist/customer-group-list-EOSIHWXE.js +54 -0
- package/dist/{customer-group-metadata-M3LYBHNQ.js → customer-group-metadata-TJIDSJ6Z.js} +30 -31
- package/dist/{customer-list-NLL36VDK.js → customer-list-Y76GVUYI.js} +4 -5
- package/dist/{customer-metadata-AB26NQOY.js → customer-metadata-DE3WIXFE.js} +30 -31
- package/dist/{customers-add-customer-group-3DB5XQBR.js → customers-add-customer-group-6ITTWDUT.js} +31 -32
- package/dist/{edit-inventory-item-ZQRD5OR6.js → edit-inventory-item-JHEJ663F.js} +30 -31
- package/dist/{edit-inventory-item-attributes-CR756I6L.js → edit-inventory-item-attributes-GXSPW442.js} +30 -31
- package/dist/{edit-reservation-CR4IQZFA.js → edit-reservation-FJR7ZYJF.js} +4 -5
- package/dist/{edit-rules-4MSYXDEX.js → edit-rules-ACC2CU4N.js} +32 -33
- package/dist/extension-targets.d.ts +9 -0
- package/dist/{global-commission-edit-E2WVJPW7.js → global-commission-edit-6UEKJHWH.js} +5 -6
- package/dist/home-DBMCSDAX.js +62 -0
- package/dist/index.js +322 -290
- package/dist/{inventory-detail-VUGZZMVT.js → inventory-detail-NLQA355J.js} +31 -32
- package/dist/{inventory-list-F546ILKD.js → inventory-list-YH3VIQ4F.js} +6 -7
- package/dist/{inventory-metadata-VYSIDADV.js → inventory-metadata-NGKWP7VG.js} +30 -31
- package/dist/{inventory-stock-FRETNM2W.js → inventory-stock-MHGGME6C.js} +30 -31
- package/dist/{invite-W27REN73.js → invite-IDVA7HGQ.js} +2 -3
- package/dist/{loader-2DL2TFYB.js → loader-JVCNJIMP.js} +2 -3
- package/dist/{loader-SPPQQOE3.js → loader-PKVN2RNN.js} +2 -3
- package/dist/{location-create-M22DO6QH.js → location-create-6YTSKD7F.js} +2 -3
- package/dist/{location-detail-BQKNTL7R.js → location-detail-5J76LVYZ.js} +31 -32
- package/dist/{location-edit-TJDVZ4GS.js → location-edit-M6MJAFKF.js} +2 -3
- package/dist/{location-fulfillment-providers-XQ4NFOQ6.js → location-fulfillment-providers-BXNGW5FD.js} +36 -37
- package/dist/location-list-SJZNHDQ5.js +51 -0
- package/dist/{location-sales-channels-O2KUGUKX.js → location-sales-channels-TNLIHLYK.js} +4 -5
- package/dist/{location-service-zone-create-DXIMD7MY.js → location-service-zone-create-2UEUMJ33.js} +4 -5
- package/dist/{location-service-zone-edit-ZG3KDRGX.js → location-service-zone-edit-YHMPLIBL.js} +4 -5
- package/dist/{location-service-zone-manage-areas-K5UUU7GT.js → location-service-zone-manage-areas-5ALQ3XTP.js} +4 -5
- package/dist/location-service-zone-shipping-option-create-6D242QKG.js +58 -0
- package/dist/{location-service-zone-shipping-option-edit-KAESWO5Z.js → location-service-zone-shipping-option-edit-K6UP33QH.js} +3 -4
- package/dist/{location-service-zone-shipping-option-pricing-CTDN4AEZ.js → location-service-zone-shipping-option-pricing-7PC7CUC4.js} +6 -7
- package/dist/{login-G5M5N64D.js → login-NVTT2EHC.js} +30 -31
- package/dist/{manage-locations-LN32PNLH.js → manage-locations-VKDYHYYV.js} +3 -4
- package/dist/{marketplace-add-currencies-REYRQDDN.js → marketplace-add-currencies-3MQIZY5Q.js} +4 -5
- package/dist/{marketplace-detail-7OOEGKHV.js → marketplace-detail-HT4HIW5I.js} +32 -33
- package/dist/{marketplace-edit-HQNN6PBP.js → marketplace-edit-TTP44LZN.js} +4 -5
- package/dist/{marketplace-metadata-7EC2Q7IV.js → marketplace-metadata-2XEMGXBZ.js} +30 -31
- package/dist/{offer-condition-create-JZKZF3GW.js → offer-condition-create-J5Z3Q5MH.js} +30 -31
- package/dist/{offer-condition-edit-W4QPQQH2.js → offer-condition-edit-CPBKK54R.js} +30 -31
- package/dist/{offer-condition-list-MXQIBLBA.js → offer-condition-list-ELVULPI6.js} +38 -38
- package/dist/{offer-detail-page-SFMQXRGK.js → offer-detail-page-4P2NUI5V.js} +7 -8
- package/dist/{offer-variant-detail-page-MG6QWFMT.js → offer-variant-detail-page-WPBDFISE.js} +5 -6
- package/dist/{offers-V4QVHTHJ.js → offers-SQQ5SVNW.js} +35 -36
- package/dist/{order-create-claim-NOAME5ZU.js → order-create-claim-SK6YC7UT.js} +8 -9
- package/dist/{order-create-edit-FE3PB6BD.js → order-create-edit-KSOUDYKT.js} +6 -7
- package/dist/{order-create-exchange-IOFUN65A.js → order-create-exchange-GJ6VZUXC.js} +34 -35
- package/dist/{order-create-refund-AHVWKLIA.js → order-create-refund-I24FCJLL.js} +30 -31
- package/dist/{order-create-return-LDZIJEZO.js → order-create-return-M7UE3KTN.js} +6 -7
- package/dist/{order-detail-XRP4RPTU.js → order-detail-74FNI5EP.js} +36 -37
- package/dist/{order-edit-billing-address-3E5GBDZJ.js → order-edit-billing-address-BQUX6XE4.js} +31 -32
- package/dist/{order-edit-email-X6DQ7NXT.js → order-edit-email-PIF3KMMY.js} +30 -31
- package/dist/{order-edit-shipping-address-W4VQTY7S.js → order-edit-shipping-address-IWAXYN6Y.js} +30 -31
- package/dist/{order-list-C3EDQKC6.js → order-list-X5UIPQ2L.js} +12 -13
- package/dist/{order-metadata-TSUW3WSW.js → order-metadata-4IZB4TSA.js} +30 -31
- package/dist/{order-request-transfer-KPKFNR3L.js → order-request-transfer-RRFZTO2H.js} +30 -31
- package/dist/pages/index.d.ts +36 -3
- package/dist/pages/index.js +165 -161
- package/dist/payout-account-detail-XHWAJWNR.js +412 -0
- package/dist/payout-account-list-XCQFSEMY.js +282 -0
- package/dist/{payout-detail-AW244L2K.js → payout-detail-3Y4CDLYC.js} +24 -4
- package/dist/{payout-list-YDF6MRJQ.js → payout-list-GPITXLNR.js} +15 -5
- package/dist/{price-list-configuration-CPK6OKFW.js → price-list-configuration-TIVJZ4CD.js} +4 -5
- package/dist/price-list-create-2OSDP6YG.js +72 -0
- package/dist/{price-list-customer-availability-HOIAQMPK.js → price-list-customer-availability-XUW5CXVO.js} +4 -5
- package/dist/{price-list-detail-QXHYS6K2.js → price-list-detail-VBGZ56NK.js} +36 -37
- package/dist/{price-list-edit-YBRU66J5.js → price-list-edit-VO6QAM7N.js} +4 -5
- package/dist/{price-list-list-55JZMNAF.js → price-list-list-AOJQ3DYT.js} +6 -7
- package/dist/price-list-prices-add-K6UW7LCI.js +68 -0
- package/dist/{price-list-prices-edit-SP67DNIG.js → price-list-prices-edit-IR2HYR5F.js} +32 -33
- package/dist/{product-add-existing-attributes-XDORUURH.js → product-add-existing-attributes-SMP52KCJ.js} +32 -33
- package/dist/{product-attributes-VWP2FYD2.js → product-attributes-RREAPT6T.js} +2 -3
- package/dist/{product-bulk-edit-B4IJNNYK.js → product-bulk-edit-UMEOJQKA.js} +2 -3
- package/dist/{product-create-75ITVW4M.js → product-create-HBGQNARV.js} +35 -36
- package/dist/{product-create-attribute-P3TI6SQL.js → product-create-attribute-G3AUSBVE.js} +3 -4
- package/dist/{product-create-variant-KUNZRZQL.js → product-create-variant-MO7Z452J.js} +5 -6
- package/dist/{product-detail-D4C4BPM3.js → product-detail-SW2QUQRB.js} +33 -34
- package/dist/{product-edit-H7QSPDVL.js → product-edit-OLKZ6FO2.js} +2 -3
- package/dist/{product-edit-attribute-GX6HCZIO.js → product-edit-attribute-DIZFQ6ZP.js} +3 -4
- package/dist/{product-list-ZTCJZCB5.js → product-list-MEHDACOH.js} +35 -36
- package/dist/{product-media-EN27BB3X.js → product-media-DNP46LTI.js} +5 -6
- package/dist/{product-metadata-7CLLU5OI.js → product-metadata-SKGGZGMW.js} +30 -31
- package/dist/{product-organization-G3BGNSO3.js → product-organization-DLJBYZU3.js} +5 -6
- package/dist/{product-sales-channels-GLRQ2PFW.js → product-sales-channels-PK2FKY2X.js} +3 -4
- package/dist/{product-shipping-profile-NHGKKGOJ.js → product-shipping-profile-YLE4YIDL.js} +2 -3
- package/dist/{product-tag-create-THJMFS42.js → product-tag-create-BC7ACPGU.js} +30 -31
- package/dist/{product-tag-detail-GQLALAQ3.js → product-tag-detail-74SRZY5I.js} +44 -44
- package/dist/{product-tag-edit-KTHDQFEE.js → product-tag-edit-HSOUEU5D.js} +30 -31
- package/dist/{product-tag-list-ZNZ4I7XB.js → product-tag-list-YC6BIXAJ.js} +44 -44
- package/dist/{product-tag-metadata-2ECSF7NR.js → product-tag-metadata-2AIAO4B3.js} +30 -31
- package/dist/{product-type-create-EL7V3U3E.js → product-type-create-J7ELRHCC.js} +2 -3
- package/dist/{product-type-detail-VJH52I7J.js → product-type-detail-6R4BJSSQ.js} +36 -37
- package/dist/{product-type-edit-KZ4X4E75.js → product-type-edit-Y5ZIXWE4.js} +2 -3
- package/dist/{product-type-list-QSY643MN.js → product-type-list-I3YSKNZ2.js} +4 -5
- package/dist/{product-type-metadata-FTKOTS6A.js → product-type-metadata-34AOQ56P.js} +30 -31
- package/dist/{product-variant-detail-MSE22M45.js → product-variant-detail-Y2JPURSC.js} +31 -32
- package/dist/{product-variant-edit-T4GEXINL.js → product-variant-edit-FYT5JOLH.js} +32 -33
- package/dist/{product-variant-metadata-52ZNCCAV.js → product-variant-metadata-BJ4ESS42.js} +30 -31
- package/dist/{profile-detail-W27TUEFG.js → profile-detail-NJV3B3QG.js} +3 -4
- package/dist/{profile-edit-FRZFIHFU.js → profile-edit-5LG6ZD34.js} +2 -3
- package/dist/{promotion-add-campaign-RBPN5IEO.js → promotion-add-campaign-USH5DBXT.js} +7 -8
- package/dist/promotion-create-SIOUY7KZ.js +56 -0
- package/dist/{promotion-detail-ZF4STPC7.js → promotion-detail-QDF7I6KQ.js} +34 -35
- package/dist/{promotion-edit-details-3L2RCZ4N.js → promotion-edit-details-JUKUUBUL.js} +3 -4
- package/dist/{promotion-list-BISF4UE4.js → promotion-list-35QHP535.js} +9 -10
- package/dist/{refund-reason-create-ZT7YHX3R.js → refund-reason-create-NYGRLVIC.js} +30 -31
- package/dist/{refund-reason-edit-6QC3NVCU.js → refund-reason-edit-C2QOTJSU.js} +30 -31
- package/dist/{refund-reason-list-O6DPFVEN.js → refund-reason-list-QZ2Z7MNL.js} +38 -38
- package/dist/{region-add-countries-V6VN3WEO.js → region-add-countries-OL553I4U.js} +3 -4
- package/dist/{region-add-sellers-N7FDMKT6.js → region-add-sellers-K3AHYJYP.js} +7 -8
- package/dist/{region-create-HNFGBSPE.js → region-create-ISLRLCWK.js} +4 -5
- package/dist/{region-detail-CTJLFHP2.js → region-detail-73CVUMEC.js} +8 -9
- package/dist/{region-edit-PLVSI5SB.js → region-edit-YFHA3XUW.js} +4 -5
- package/dist/{region-list-Q6GVRF6Z.js → region-list-TV3DT5F6.js} +4 -5
- package/dist/{region-metadata-GIIRT3SF.js → region-metadata-MIQHNJWB.js} +30 -31
- package/dist/{reservation-create-PNZ5ABT7.js → reservation-create-UAEX2IIQ.js} +4 -5
- package/dist/{reservation-detail-I5TEWGOX.js → reservation-detail-7LNYITL4.js} +31 -32
- package/dist/{reservation-list-3OJRZFCX.js → reservation-list-HI4E5SD3.js} +7 -8
- package/dist/{reservation-metadata-COMUCD4D.js → reservation-metadata-S3364EKD.js} +30 -31
- package/dist/{reset-password-4NCLZ5NE.js → reset-password-RGFOVPEN.js} +1 -1
- package/dist/{return-reason-create-LDGP3XDZ.js → return-reason-create-5ZLISRAS.js} +2 -3
- package/dist/{return-reason-edit-KWDTHPCC.js → return-reason-edit-XAHTW76W.js} +2 -3
- package/dist/{return-reason-list-XYANUPSO.js → return-reason-list-CVANLLJB.js} +10 -10
- package/dist/{review-detail-5WFU232F.js → review-detail-L6E452SS.js} +4 -5
- package/dist/{review-edit-3UCGTNYH.js → review-edit-P2JB4PTK.js} +2 -3
- package/dist/{review-list-Q3D37L5U.js → review-list-PA6S6M3K.js} +7 -8
- package/dist/{review-respond-OWEXAPZ6.js → review-respond-GZAUHXQJ.js} +2 -3
- package/dist/{sales-channel-add-products-TJN7IRJH.js → sales-channel-add-products-MGVP4FFA.js} +34 -35
- package/dist/{sales-channel-create-DY6WO2AH.js → sales-channel-create-KCEMVUFL.js} +3 -4
- package/dist/{sales-channel-detail-5IFOCREY.js → sales-channel-detail-R7NN5C34.js} +35 -36
- package/dist/{sales-channel-edit-NHJ47CGL.js → sales-channel-edit-EE4HMRMK.js} +3 -4
- package/dist/sales-channel-list-KAGUTX7P.js +48 -0
- package/dist/{sales-channel-metadata-AAIEFOKT.js → sales-channel-metadata-6MT5BCGH.js} +30 -31
- package/dist/settings-5AJC22SM.js +61 -0
- package/dist/{shipping-option-type-create-OTUTEDKI.js → shipping-option-type-create-LGGBUTPM.js} +30 -31
- package/dist/{shipping-option-type-detail-OBHOSDNJ.js → shipping-option-type-detail-RDKLCL3M.js} +32 -33
- package/dist/{shipping-option-type-edit-VLLPUFVQ.js → shipping-option-type-edit-K2DRIE6Q.js} +30 -31
- package/dist/shipping-option-type-list-JIGYSRUS.js +58 -0
- package/dist/{shipping-profile-create-ONX2BVLP.js → shipping-profile-create-RKD7BJGH.js} +2 -3
- package/dist/{shipping-profile-detail-J5QNUKRA.js → shipping-profile-detail-HY362D6V.js} +3 -4
- package/dist/{shipping-profile-metadata-R2BTWLLO.js → shipping-profile-metadata-INM6HD5Y.js} +30 -31
- package/dist/{shipping-profiles-list-G74ZSQIT.js → shipping-profiles-list-4L2FFQ7C.js} +3 -4
- package/dist/{store-add-regions-XRA2RC4C.js → store-add-regions-2D5WXXAC.js} +3 -4
- package/dist/{store-address-edit-EB6SMTDX.js → store-address-edit-3FUQAVO6.js} +3 -4
- package/dist/{store-bulk-edit-OGATAAML.js → store-bulk-edit-WIPY4OI5.js} +4 -5
- package/dist/{store-closure-edit-AEJYD5MG.js → store-closure-edit-F2UB2UE3.js} +3 -4
- package/dist/{store-create-BEWLUGTH.js → store-create-XWRAEDU5.js} +30 -31
- package/dist/{store-details-DARW5N7Z.js → store-details-VPNLJEQW.js} +47 -40
- package/dist/{store-edit-YXUNYHEB.js → store-edit-6Z2ORG5F.js} +6 -7
- package/dist/store-list-FV2HPPVE.js +80 -0
- package/dist/{store-member-invite-WPKIJFKF.js → store-member-invite-HJ3HSQ6P.js} +5 -6
- package/dist/{store-payment-details-edit-3QIONG2Z.js → store-payment-details-edit-JRHVAWFJ.js} +3 -4
- package/dist/{store-professional-details-edit-2KGP4R4E.js → store-professional-details-edit-623AGHEB.js} +3 -4
- package/dist/{tax-region-create-KRRVZTOB.js → tax-region-create-NRY2FH4O.js} +31 -32
- package/dist/tax-region-detail-JA7S5HWF.js +66 -0
- package/dist/{tax-region-edit-P654YFDA.js → tax-region-edit-KYF2TUAA.js} +30 -31
- package/dist/{tax-region-list-G3DLBZXS.js → tax-region-list-EN2XGZLJ.js} +6 -7
- package/dist/{tax-region-metadata-TOMGHV4L.js → tax-region-metadata-PZNTQZ66.js} +30 -31
- package/dist/{tax-region-province-create-ZQBJSGDY.js → tax-region-province-create-DY7IEM2A.js} +2 -3
- package/dist/{tax-region-province-detail-OAPPLPWH.js → tax-region-province-detail-QPZUP6LC.js} +33 -34
- package/dist/{tax-region-tax-override-create-R4PQ7LV7.js → tax-region-tax-override-create-U5654PKU.js} +43 -43
- package/dist/{tax-region-tax-override-edit-BFSBKLLR.js → tax-region-tax-override-edit-DQCSKCYZ.js} +43 -43
- package/dist/{tax-region-tax-rate-create-GXUR4ROT.js → tax-region-tax-rate-create-N5FHHGV2.js} +3 -4
- package/dist/{tax-region-tax-rate-edit-RWBXWFW3.js → tax-region-tax-rate-edit-7E45DXUP.js} +3 -4
- package/dist/{user-detail-BQSC2WUU.js → user-detail-JVJCU3AN.js} +4 -5
- package/dist/{user-edit-JE4C5CRA.js → user-edit-UJMTZBPX.js} +2 -3
- package/dist/{user-invite-TV2OGAAM.js → user-invite-VDNGXSV3.js} +2 -3
- package/dist/{user-list-JTK5Z673.js → user-list-KBRBDW2H.js} +3 -4
- package/dist/{user-metadata-4XXJXZJO.js → user-metadata-A2GTLQEJ.js} +30 -31
- package/package.json +6 -6
- package/dist/attribute-list-M5IP6VR7.js +0 -60
- package/dist/chunk-6UZQ3NIF.js +0 -33
- package/dist/chunk-BUVPXS25.js +0 -97
- package/dist/chunk-MWEFUPRY.js +0 -61
- package/dist/chunk-RHKRREUU.js +0 -15
- package/dist/customer-group-list-IFM4YEVY.js +0 -55
- package/dist/home-D5MWSO5M.js +0 -63
- package/dist/location-list-YB27PV3R.js +0 -52
- package/dist/location-service-zone-shipping-option-create-VZVSNB3W.js +0 -59
- package/dist/price-list-create-K4NOZFAS.js +0 -73
- package/dist/price-list-prices-add-63TWHUTG.js +0 -69
- package/dist/promotion-create-LIYNZIUS.js +0 -57
- package/dist/sales-channel-list-AR3S2X23.js +0 -49
- package/dist/settings-PDVDZSWL.js +0 -62
- package/dist/shipping-option-type-list-643TZV6H.js +0 -59
- package/dist/store-list-SNHRYJLA.js +0 -81
- package/dist/tax-region-detail-SM4MTPMW.js +0 -67
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderTableColumns
|
|
3
3
|
} from "./chunk-ZVNGPUNQ.js";
|
|
4
|
+
import {
|
|
5
|
+
PayoutsSection
|
|
6
|
+
} from "./chunk-7ASMQGI2.js";
|
|
4
7
|
import {
|
|
5
8
|
useOfferTableCommands
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MWSL7FLA.js";
|
|
10
|
+
import {
|
|
11
|
+
getPayoutAccountStatusProps,
|
|
12
|
+
usePayoutAccounts
|
|
13
|
+
} from "./chunk-IQZYBCVR.js";
|
|
7
14
|
import {
|
|
8
15
|
useOfferTableColumns,
|
|
9
16
|
useOfferTableFilters,
|
|
10
17
|
useOfferTableQuery
|
|
11
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5QORIQSD.js";
|
|
19
|
+
import {
|
|
20
|
+
SidebarLink
|
|
21
|
+
} from "./chunk-UST2RGWB.js";
|
|
12
22
|
import {
|
|
13
23
|
IconAvatar
|
|
14
24
|
} from "./chunk-U2EI2ZLM.js";
|
|
15
25
|
import {
|
|
16
26
|
useOrderTableFilters
|
|
17
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L7UVRJU6.js";
|
|
18
28
|
import {
|
|
19
29
|
useOffers
|
|
20
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4KXDWQ5F.js";
|
|
21
31
|
import {
|
|
22
32
|
useMemberTableQuery
|
|
23
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EYOPD6DG.js";
|
|
24
34
|
import {
|
|
25
35
|
useOrderTableQuery
|
|
26
36
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -38,7 +48,7 @@ import {
|
|
|
38
48
|
} from "./chunk-IQPN4PZJ.js";
|
|
39
49
|
import {
|
|
40
50
|
require_dist
|
|
41
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VYPJCJ5T.js";
|
|
42
52
|
import {
|
|
43
53
|
_DataTable,
|
|
44
54
|
useDataTable
|
|
@@ -51,7 +61,7 @@ import {
|
|
|
51
61
|
} from "./chunk-3UOYBH5O.js";
|
|
52
62
|
import {
|
|
53
63
|
useOrders
|
|
54
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-KDGQJ37N.js";
|
|
55
65
|
import {
|
|
56
66
|
sellersQueryKeys,
|
|
57
67
|
useApproveSeller,
|
|
@@ -63,13 +73,13 @@ import {
|
|
|
63
73
|
useSellerInvites,
|
|
64
74
|
useSellerMembers,
|
|
65
75
|
useSuspendSeller
|
|
66
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-XJV4PVT5.js";
|
|
67
77
|
import {
|
|
68
78
|
TwoColumnPageSkeleton
|
|
69
79
|
} from "./chunk-INNFZYX2.js";
|
|
70
80
|
import {
|
|
71
81
|
queryClient
|
|
72
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-2KCF3ZIB.js";
|
|
73
83
|
import {
|
|
74
84
|
sdk
|
|
75
85
|
} from "./chunk-PFJ2C667.js";
|
|
@@ -98,7 +108,7 @@ var storeDetailLoader = async ({ params }) => {
|
|
|
98
108
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
99
109
|
import { Children as Children3, useState as useState3 } from "react";
|
|
100
110
|
import { useParams } from "react-router-dom";
|
|
101
|
-
import { useTranslation as
|
|
111
|
+
import { useTranslation as useTranslation14 } from "react-i18next";
|
|
102
112
|
import {
|
|
103
113
|
WidgetZone,
|
|
104
114
|
useLinkQuery,
|
|
@@ -514,22 +524,56 @@ var StoreAddressSection = ({ seller }) => {
|
|
|
514
524
|
] });
|
|
515
525
|
};
|
|
516
526
|
|
|
527
|
+
// src/pages/stores/store-details/components/store-payout-account-section.tsx
|
|
528
|
+
import { CurrencyDollar } from "@medusajs/icons";
|
|
529
|
+
import { Container as Container6, Heading as Heading6, StatusBadge as StatusBadge2, Text as Text5 } from "@medusajs/ui";
|
|
530
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
531
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
532
|
+
var StorePayoutAccountSection = ({ sellerId }) => {
|
|
533
|
+
const { t } = useTranslation7();
|
|
534
|
+
const { payout_accounts, isPending } = usePayoutAccounts({
|
|
535
|
+
seller_id: sellerId,
|
|
536
|
+
limit: 1
|
|
537
|
+
});
|
|
538
|
+
if (isPending) {
|
|
539
|
+
return null;
|
|
540
|
+
}
|
|
541
|
+
const account = payout_accounts?.[0];
|
|
542
|
+
const status = account ? getPayoutAccountStatusProps(account.status, t) : null;
|
|
543
|
+
return /* @__PURE__ */ jsxs7(Container6, { className: "p-0", "data-testid": "store-payout-account-section", children: [
|
|
544
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
545
|
+
/* @__PURE__ */ jsx7(Heading6, { level: "h2", children: t("payoutAccounts.storeSection.header") }),
|
|
546
|
+
status && /* @__PURE__ */ jsx7(StatusBadge2, { color: status.color, "data-testid": "store-payout-account-status", children: status.label })
|
|
547
|
+
] }),
|
|
548
|
+
account ? /* @__PURE__ */ jsx7(
|
|
549
|
+
SidebarLink,
|
|
550
|
+
{
|
|
551
|
+
to: `/payout-accounts/${account.id}`,
|
|
552
|
+
labelKey: t("payouts.fields.payoutAccount"),
|
|
553
|
+
descriptionKey: account.external_id ?? account.id,
|
|
554
|
+
icon: /* @__PURE__ */ jsx7(CurrencyDollar, {}),
|
|
555
|
+
dataTestid: "store-payout-account-link"
|
|
556
|
+
}
|
|
557
|
+
) : /* @__PURE__ */ jsx7("div", { className: "border-t px-6 py-4", children: /* @__PURE__ */ jsx7(Text5, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: t("payoutAccounts.storeSection.empty") }) })
|
|
558
|
+
] });
|
|
559
|
+
};
|
|
560
|
+
|
|
517
561
|
// src/pages/stores/store-details/components/store-regions-section.tsx
|
|
518
562
|
import { MapPin, PlusMini, Trash } from "@medusajs/icons";
|
|
519
|
-
import { Badge as Badge2, Container as
|
|
520
|
-
import { useTranslation as
|
|
563
|
+
import { Badge as Badge2, Container as Container7, Heading as Heading7, Text as Text6, toast, usePrompt } from "@medusajs/ui";
|
|
564
|
+
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
521
565
|
import { DisplayExtensionZone as DisplayExtensionZone6 } from "@mercurjs/dashboard-shared";
|
|
522
|
-
import { jsx as
|
|
566
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
523
567
|
var StoreRegionsSection = ({ seller }) => {
|
|
524
|
-
const { t } =
|
|
568
|
+
const { t } = useTranslation8();
|
|
525
569
|
const regions = seller.regions ?? [];
|
|
526
|
-
return /* @__PURE__ */
|
|
527
|
-
/* @__PURE__ */
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ jsxs8(Container7, { className: "divide-y p-0", "data-testid": "store-regions-section", children: [
|
|
571
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
572
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-y-1", children: [
|
|
573
|
+
/* @__PURE__ */ jsx8(Heading7, { level: "h2", children: t("stores.regions.header") }),
|
|
574
|
+
/* @__PURE__ */ jsx8(Text6, { size: "small", className: "text-ui-fg-subtle", children: t("stores.regions.hint") })
|
|
531
575
|
] }),
|
|
532
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ jsx8(
|
|
533
577
|
ActionMenu,
|
|
534
578
|
{
|
|
535
579
|
groups: [
|
|
@@ -537,7 +581,7 @@ var StoreRegionsSection = ({ seller }) => {
|
|
|
537
581
|
actions: [
|
|
538
582
|
{
|
|
539
583
|
label: t("stores.regions.add"),
|
|
540
|
-
icon: /* @__PURE__ */
|
|
584
|
+
icon: /* @__PURE__ */ jsx8(PlusMini, {}),
|
|
541
585
|
to: `/stores/${seller.id}/regions/add`,
|
|
542
586
|
permission: "sellers:edit"
|
|
543
587
|
}
|
|
@@ -548,7 +592,7 @@ var StoreRegionsSection = ({ seller }) => {
|
|
|
548
592
|
}
|
|
549
593
|
)
|
|
550
594
|
] }),
|
|
551
|
-
regions.length > 0 ? regions.map((region) => /* @__PURE__ */
|
|
595
|
+
regions.length > 0 ? regions.map((region) => /* @__PURE__ */ jsx8(
|
|
552
596
|
RegionRow,
|
|
553
597
|
{
|
|
554
598
|
sellerId: seller.id,
|
|
@@ -556,11 +600,11 @@ var StoreRegionsSection = ({ seller }) => {
|
|
|
556
600
|
isLast: regions.length === 1
|
|
557
601
|
},
|
|
558
602
|
region.id
|
|
559
|
-
)) : /* @__PURE__ */
|
|
560
|
-
/* @__PURE__ */
|
|
561
|
-
/* @__PURE__ */
|
|
603
|
+
)) : /* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-center gap-y-1 px-6 py-6", children: [
|
|
604
|
+
/* @__PURE__ */ jsx8(Text6, { size: "small", leading: "compact", weight: "plus", children: t("stores.regions.empty.title") }),
|
|
605
|
+
/* @__PURE__ */ jsx8(Text6, { size: "small", className: "text-ui-fg-muted", children: t("stores.regions.empty.message") })
|
|
562
606
|
] }),
|
|
563
|
-
/* @__PURE__ */
|
|
607
|
+
/* @__PURE__ */ jsx8(DisplayExtensionZone6, { model: "seller", zone: "regions", data: seller })
|
|
564
608
|
] });
|
|
565
609
|
};
|
|
566
610
|
var RegionRow = ({
|
|
@@ -568,7 +612,7 @@ var RegionRow = ({
|
|
|
568
612
|
region,
|
|
569
613
|
isLast
|
|
570
614
|
}) => {
|
|
571
|
-
const { t } =
|
|
615
|
+
const { t } = useTranslation8();
|
|
572
616
|
const prompt = usePrompt();
|
|
573
617
|
const { mutateAsync } = useBatchSellerRegions(sellerId);
|
|
574
618
|
const handleRemove = async () => {
|
|
@@ -593,22 +637,22 @@ var RegionRow = ({
|
|
|
593
637
|
}
|
|
594
638
|
);
|
|
595
639
|
};
|
|
596
|
-
return /* @__PURE__ */
|
|
640
|
+
return /* @__PURE__ */ jsxs8(
|
|
597
641
|
"div",
|
|
598
642
|
{
|
|
599
643
|
className: "flex items-center justify-between gap-x-4 px-6 py-4",
|
|
600
644
|
"data-testid": `store-regions-section-row-${region.id}`,
|
|
601
645
|
children: [
|
|
602
|
-
/* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
/* @__PURE__ */
|
|
606
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-3", children: [
|
|
647
|
+
/* @__PURE__ */ jsx8(IconAvatar, { children: /* @__PURE__ */ jsx8(MapPin, { className: "text-ui-fg-subtle" }) }),
|
|
648
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col", children: [
|
|
649
|
+
/* @__PURE__ */ jsx8(Text6, { size: "small", leading: "compact", weight: "plus", children: region.name }),
|
|
650
|
+
/* @__PURE__ */ jsx8(Text6, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: region.currency_code.toUpperCase() })
|
|
607
651
|
] })
|
|
608
652
|
] }),
|
|
609
|
-
/* @__PURE__ */
|
|
610
|
-
/* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2", children: [
|
|
654
|
+
/* @__PURE__ */ jsx8(Badge2, { size: "2xsmall", children: region.currency_code.toUpperCase() }),
|
|
655
|
+
/* @__PURE__ */ jsx8(
|
|
612
656
|
ActionMenu,
|
|
613
657
|
{
|
|
614
658
|
groups: [
|
|
@@ -616,7 +660,7 @@ var RegionRow = ({
|
|
|
616
660
|
actions: [
|
|
617
661
|
{
|
|
618
662
|
label: t("actions.remove"),
|
|
619
|
-
icon: /* @__PURE__ */
|
|
663
|
+
icon: /* @__PURE__ */ jsx8(Trash, {}),
|
|
620
664
|
onClick: handleRemove,
|
|
621
665
|
permission: "sellers:edit",
|
|
622
666
|
disabled: isLast,
|
|
@@ -635,8 +679,8 @@ var RegionRow = ({
|
|
|
635
679
|
};
|
|
636
680
|
|
|
637
681
|
// src/pages/stores/store-details/components/store-members-section/store-members-section.tsx
|
|
638
|
-
import { Button, Container as
|
|
639
|
-
import { useTranslation as
|
|
682
|
+
import { Button, Container as Container8, Heading as Heading8 } from "@medusajs/ui";
|
|
683
|
+
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
640
684
|
import { Link } from "react-router-dom";
|
|
641
685
|
import { DisplayExtensionZone as DisplayExtensionZone7, PermissionAction } from "@mercurjs/dashboard-shared";
|
|
642
686
|
|
|
@@ -647,9 +691,9 @@ import { ArrowPath, Link as LinkIcon, Trash as Trash2, User } from "@medusajs/ic
|
|
|
647
691
|
import { Badge as Badge3, toast as toast2 } from "@medusajs/ui";
|
|
648
692
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
649
693
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
650
|
-
import { useTranslation as
|
|
694
|
+
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
651
695
|
var import_types2 = __toESM(require_dist(), 1);
|
|
652
|
-
import { jsx as
|
|
696
|
+
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
653
697
|
var PAGE_SIZE = 20;
|
|
654
698
|
var ROLE_TRANSLATION_MAP = {
|
|
655
699
|
[import_types2.SellerRole.SELLER_ADMINISTRATION]: "users.roles.administration",
|
|
@@ -677,7 +721,7 @@ var buildVendorInviteUrl = (token) => {
|
|
|
677
721
|
var StoreMembersDataTable = ({
|
|
678
722
|
sellerId
|
|
679
723
|
}) => {
|
|
680
|
-
const { t } =
|
|
724
|
+
const { t } = useTranslation9();
|
|
681
725
|
const { raw } = useMemberTableQuery({ pageSize: PAGE_SIZE });
|
|
682
726
|
const {
|
|
683
727
|
seller_members,
|
|
@@ -733,7 +777,7 @@ var StoreMembersDataTable = ({
|
|
|
733
777
|
if (isError) {
|
|
734
778
|
throw error;
|
|
735
779
|
}
|
|
736
|
-
return /* @__PURE__ */
|
|
780
|
+
return /* @__PURE__ */ jsx9(
|
|
737
781
|
_DataTable,
|
|
738
782
|
{
|
|
739
783
|
table,
|
|
@@ -753,21 +797,21 @@ var StoreMembersDataTable = ({
|
|
|
753
797
|
"stores.emptyStates.users.message",
|
|
754
798
|
"Invite the first user to manage this store."
|
|
755
799
|
),
|
|
756
|
-
icon: /* @__PURE__ */
|
|
800
|
+
icon: /* @__PURE__ */ jsx9(User, { className: "text-ui-fg-subtle" })
|
|
757
801
|
}
|
|
758
802
|
}
|
|
759
803
|
);
|
|
760
804
|
};
|
|
761
805
|
var columnHelper = createColumnHelper();
|
|
762
806
|
var useColumns = (sellerId) => {
|
|
763
|
-
const { t } =
|
|
807
|
+
const { t } = useTranslation9();
|
|
764
808
|
return useMemo(
|
|
765
809
|
() => [
|
|
766
810
|
columnHelper.accessor("email", {
|
|
767
|
-
header: () => /* @__PURE__ */
|
|
768
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
769
|
-
/* @__PURE__ */
|
|
770
|
-
row.original.is_owner && /* @__PURE__ */
|
|
811
|
+
header: () => /* @__PURE__ */ jsx9("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx9("span", { children: t("fields.email") }) }),
|
|
812
|
+
cell: ({ row }) => /* @__PURE__ */ jsxs9("div", { className: "flex size-full items-center gap-x-2 overflow-hidden", children: [
|
|
813
|
+
/* @__PURE__ */ jsx9("span", { className: "truncate", children: row.original.email }),
|
|
814
|
+
row.original.is_owner && /* @__PURE__ */ jsx9(
|
|
771
815
|
Badge3,
|
|
772
816
|
{
|
|
773
817
|
size: "2xsmall",
|
|
@@ -779,20 +823,20 @@ var useColumns = (sellerId) => {
|
|
|
779
823
|
] })
|
|
780
824
|
}),
|
|
781
825
|
columnHelper.accessor("role_id", {
|
|
782
|
-
header: () => /* @__PURE__ */
|
|
826
|
+
header: () => /* @__PURE__ */ jsx9("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx9("span", { children: t("fields.role") }) }),
|
|
783
827
|
cell: ({ row }) => {
|
|
784
828
|
const roleId = row.original.role_id;
|
|
785
829
|
const translationKey = ROLE_TRANSLATION_MAP[roleId];
|
|
786
830
|
const label = translationKey ? t(translationKey) : "-";
|
|
787
|
-
return /* @__PURE__ */
|
|
831
|
+
return /* @__PURE__ */ jsx9("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx9("span", { className: "truncate", children: label }) });
|
|
788
832
|
}
|
|
789
833
|
}),
|
|
790
834
|
columnHelper.display({
|
|
791
835
|
id: "status",
|
|
792
|
-
header: () => /* @__PURE__ */
|
|
836
|
+
header: () => /* @__PURE__ */ jsx9("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx9("span", { children: t("fields.status") }) }),
|
|
793
837
|
cell: ({ row }) => {
|
|
794
838
|
const isPending = row.original.kind === "invite";
|
|
795
|
-
return /* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ jsx9(DataTableStatusCell, { color: isPending ? "orange" : "green", children: isPending ? t("users.status.pending") : t("users.status.active") });
|
|
796
840
|
}
|
|
797
841
|
}),
|
|
798
842
|
columnHelper.display({
|
|
@@ -800,7 +844,7 @@ var useColumns = (sellerId) => {
|
|
|
800
844
|
cell: ({ row }) => {
|
|
801
845
|
if (row.original.kind === "member") {
|
|
802
846
|
if (row.original.is_owner) return null;
|
|
803
|
-
return /* @__PURE__ */
|
|
847
|
+
return /* @__PURE__ */ jsx9(
|
|
804
848
|
MemberActions,
|
|
805
849
|
{
|
|
806
850
|
member: row.original.member,
|
|
@@ -808,7 +852,7 @@ var useColumns = (sellerId) => {
|
|
|
808
852
|
}
|
|
809
853
|
);
|
|
810
854
|
}
|
|
811
|
-
return /* @__PURE__ */
|
|
855
|
+
return /* @__PURE__ */ jsx9(InviteActions, { invite: row.original, sellerId });
|
|
812
856
|
}
|
|
813
857
|
})
|
|
814
858
|
],
|
|
@@ -819,7 +863,7 @@ var InviteActions = ({
|
|
|
819
863
|
invite,
|
|
820
864
|
sellerId
|
|
821
865
|
}) => {
|
|
822
|
-
const { t } =
|
|
866
|
+
const { t } = useTranslation9();
|
|
823
867
|
const { mutateAsync: resend } = useResendSellerInvite(sellerId);
|
|
824
868
|
const { mutateAsync: deleteInvite } = useDeleteSellerInvite(sellerId);
|
|
825
869
|
const handleResend = async () => {
|
|
@@ -863,13 +907,13 @@ var InviteActions = ({
|
|
|
863
907
|
{
|
|
864
908
|
actions: [
|
|
865
909
|
{
|
|
866
|
-
icon: /* @__PURE__ */
|
|
910
|
+
icon: /* @__PURE__ */ jsx9(ArrowPath, {}),
|
|
867
911
|
label: t("users.resendInvite"),
|
|
868
912
|
onClick: handleResend,
|
|
869
913
|
permission: "members.invites:edit"
|
|
870
914
|
},
|
|
871
915
|
{
|
|
872
|
-
icon: /* @__PURE__ */
|
|
916
|
+
icon: /* @__PURE__ */ jsx9(LinkIcon, {}),
|
|
873
917
|
label: t("users.copyInviteLink"),
|
|
874
918
|
onClick: handleCopyLink
|
|
875
919
|
}
|
|
@@ -878,7 +922,7 @@ var InviteActions = ({
|
|
|
878
922
|
{
|
|
879
923
|
actions: [
|
|
880
924
|
{
|
|
881
|
-
icon: /* @__PURE__ */
|
|
925
|
+
icon: /* @__PURE__ */ jsx9(Trash2, {}),
|
|
882
926
|
label: t("actions.delete"),
|
|
883
927
|
onClick: handleDelete,
|
|
884
928
|
permission: "members.invites:manage"
|
|
@@ -886,13 +930,13 @@ var InviteActions = ({
|
|
|
886
930
|
]
|
|
887
931
|
}
|
|
888
932
|
];
|
|
889
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ jsx9(ActionMenu, { groups });
|
|
890
934
|
};
|
|
891
935
|
var MemberActions = ({
|
|
892
936
|
member,
|
|
893
937
|
sellerId
|
|
894
938
|
}) => {
|
|
895
|
-
const { t } =
|
|
939
|
+
const { t } = useTranslation9();
|
|
896
940
|
const { mutateAsync: removeMember } = useRemoveSellerMember(
|
|
897
941
|
sellerId,
|
|
898
942
|
member.id
|
|
@@ -909,14 +953,14 @@ var MemberActions = ({
|
|
|
909
953
|
toast2.error(e.message);
|
|
910
954
|
}
|
|
911
955
|
};
|
|
912
|
-
return /* @__PURE__ */
|
|
956
|
+
return /* @__PURE__ */ jsx9(
|
|
913
957
|
ActionMenu,
|
|
914
958
|
{
|
|
915
959
|
groups: [
|
|
916
960
|
{
|
|
917
961
|
actions: [
|
|
918
962
|
{
|
|
919
|
-
icon: /* @__PURE__ */
|
|
963
|
+
icon: /* @__PURE__ */ jsx9(Trash2, {}),
|
|
920
964
|
label: t("actions.remove"),
|
|
921
965
|
onClick: handleRemove,
|
|
922
966
|
permission: "members:manage"
|
|
@@ -929,16 +973,16 @@ var MemberActions = ({
|
|
|
929
973
|
};
|
|
930
974
|
|
|
931
975
|
// src/pages/stores/store-details/components/store-members-section/store-members-section.tsx
|
|
932
|
-
import { jsx as
|
|
976
|
+
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
933
977
|
var StoreMembersSection = ({ sellerId }) => {
|
|
934
|
-
const { t } =
|
|
935
|
-
return /* @__PURE__ */
|
|
936
|
-
/* @__PURE__ */
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
978
|
+
const { t } = useTranslation10();
|
|
979
|
+
return /* @__PURE__ */ jsxs10(Container8, { className: "divide-y p-0", children: [
|
|
980
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
981
|
+
/* @__PURE__ */ jsx10(Heading8, { level: "h2", children: t("users.domain") }),
|
|
982
|
+
/* @__PURE__ */ jsx10(PermissionAction, { permission: "members.invites:edit", children: /* @__PURE__ */ jsx10(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx10(Link, { to: "invite", children: t("stores.members.addUser.action") }) }) })
|
|
939
983
|
] }),
|
|
940
|
-
/* @__PURE__ */
|
|
941
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ jsx10(StoreMembersDataTable, { sellerId }),
|
|
985
|
+
/* @__PURE__ */ jsx10(DisplayExtensionZone7, { model: "seller", zone: "members", data: sellerId })
|
|
942
986
|
] });
|
|
943
987
|
};
|
|
944
988
|
|
|
@@ -947,23 +991,23 @@ import { useState } from "react";
|
|
|
947
991
|
import { ExclamationCircleSolid } from "@medusajs/icons";
|
|
948
992
|
import {
|
|
949
993
|
Button as Button2,
|
|
950
|
-
Container as
|
|
951
|
-
Heading as
|
|
994
|
+
Container as Container9,
|
|
995
|
+
Heading as Heading9,
|
|
952
996
|
Prompt,
|
|
953
|
-
Text as
|
|
997
|
+
Text as Text7,
|
|
954
998
|
Textarea,
|
|
955
999
|
toast as toast3
|
|
956
1000
|
} from "@medusajs/ui";
|
|
957
|
-
import { useTranslation as
|
|
1001
|
+
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
958
1002
|
import {
|
|
959
1003
|
DisplayExtensionZone as DisplayExtensionZone8,
|
|
960
1004
|
PermissionAction as PermissionAction2,
|
|
961
1005
|
useCan as useCan2,
|
|
962
1006
|
usePermissionGate
|
|
963
1007
|
} from "@mercurjs/dashboard-shared";
|
|
964
|
-
import { jsx as
|
|
1008
|
+
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
965
1009
|
var StoreRequestSection = ({ seller }) => {
|
|
966
|
-
const { t } =
|
|
1010
|
+
const { t } = useTranslation11();
|
|
967
1011
|
const { mutateAsync: approveSeller, isPending: isApproving } = useApproveSeller(seller.id);
|
|
968
1012
|
const { mutateAsync: suspendSeller, isPending: isRejecting } = useSuspendSeller(seller.id);
|
|
969
1013
|
const canViewMembers = useCan2("members");
|
|
@@ -977,17 +1021,17 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
977
1021
|
);
|
|
978
1022
|
const ownerFullName = [owner?.member?.first_name, owner?.member?.last_name].filter(Boolean).join(" ").trim();
|
|
979
1023
|
const requesterLabel = ownerFullName || owner?.member?.email || seller.email || seller.name;
|
|
980
|
-
return /* @__PURE__ */
|
|
981
|
-
/* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
/* @__PURE__ */
|
|
1024
|
+
return /* @__PURE__ */ jsxs11(Container9, { className: "p-0", children: [
|
|
1025
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-x-3 border-b border-ui-border-base px-6 py-4", children: [
|
|
1026
|
+
/* @__PURE__ */ jsx11(ExclamationCircleSolid, { className: "text-ui-tag-blue-icon" }),
|
|
1027
|
+
/* @__PURE__ */ jsx11(Heading9, { level: "h2", children: t("stores.request.title") })
|
|
984
1028
|
] }),
|
|
985
|
-
/* @__PURE__ */
|
|
986
|
-
/* @__PURE__ */
|
|
987
|
-
/* @__PURE__ */
|
|
1029
|
+
/* @__PURE__ */ jsx11("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsx11(Text7, { className: "text-ui-fg-subtle", children: t("stores.request.description", { requester: requesterLabel }) }) }),
|
|
1030
|
+
/* @__PURE__ */ jsxs11("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: [
|
|
1031
|
+
/* @__PURE__ */ jsx11(
|
|
988
1032
|
RequestActionPrompt,
|
|
989
1033
|
{
|
|
990
|
-
trigger: /* @__PURE__ */
|
|
1034
|
+
trigger: /* @__PURE__ */ jsx11(Button2, { size: "small", variant: "secondary", children: t("stores.request.confirm") }),
|
|
991
1035
|
title: t("stores.request.confirmTitle"),
|
|
992
1036
|
description: t(
|
|
993
1037
|
"stores.request.confirmDescription",
|
|
@@ -1010,10 +1054,10 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
1010
1054
|
}
|
|
1011
1055
|
}
|
|
1012
1056
|
),
|
|
1013
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ jsx11(
|
|
1014
1058
|
RequestActionPrompt,
|
|
1015
1059
|
{
|
|
1016
|
-
trigger: /* @__PURE__ */
|
|
1060
|
+
trigger: /* @__PURE__ */ jsx11(Button2, { size: "small", variant: "secondary", children: t("stores.request.reject") }),
|
|
1017
1061
|
title: t("stores.request.rejectTitle"),
|
|
1018
1062
|
description: t(
|
|
1019
1063
|
"stores.request.rejectDescription",
|
|
@@ -1037,7 +1081,7 @@ var StoreRequestSection = ({ seller }) => {
|
|
|
1037
1081
|
}
|
|
1038
1082
|
)
|
|
1039
1083
|
] }),
|
|
1040
|
-
/* @__PURE__ */
|
|
1084
|
+
/* @__PURE__ */ jsx11(DisplayExtensionZone8, { model: "seller", zone: "requests", data: seller })
|
|
1041
1085
|
] });
|
|
1042
1086
|
};
|
|
1043
1087
|
var RequestActionPrompt = ({
|
|
@@ -1049,7 +1093,7 @@ var RequestActionPrompt = ({
|
|
|
1049
1093
|
isLoading,
|
|
1050
1094
|
onConfirm
|
|
1051
1095
|
}) => {
|
|
1052
|
-
const { t } =
|
|
1096
|
+
const { t } = useTranslation11();
|
|
1053
1097
|
const [open, setOpen] = useState(false);
|
|
1054
1098
|
const [note, setNote] = useState("");
|
|
1055
1099
|
const gate = usePermissionGate("sellers.approval:edit");
|
|
@@ -1061,25 +1105,25 @@ var RequestActionPrompt = ({
|
|
|
1061
1105
|
} catch {
|
|
1062
1106
|
}
|
|
1063
1107
|
};
|
|
1064
|
-
return /* @__PURE__ */
|
|
1065
|
-
gate.allowed ? /* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1108
|
+
return /* @__PURE__ */ jsxs11(Prompt, { open, onOpenChange: setOpen, children: [
|
|
1109
|
+
gate.allowed ? /* @__PURE__ */ jsx11(Prompt.Trigger, { asChild: true, children: trigger }) : /* @__PURE__ */ jsx11(PermissionAction2, { permission: "sellers.approval:edit", children: trigger }),
|
|
1110
|
+
/* @__PURE__ */ jsxs11(Prompt.Content, { children: [
|
|
1111
|
+
/* @__PURE__ */ jsxs11(Prompt.Header, { children: [
|
|
1112
|
+
/* @__PURE__ */ jsx11(Prompt.Title, { children: title }),
|
|
1113
|
+
/* @__PURE__ */ jsx11(Prompt.Description, { children: description })
|
|
1070
1114
|
] }),
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
/* @__PURE__ */
|
|
1115
|
+
/* @__PURE__ */ jsx11("div", { className: "border-ui-border-base border-t mt-3" }),
|
|
1116
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-y-3 px-6 py-3", children: [
|
|
1117
|
+
/* @__PURE__ */ jsxs11(Text7, { size: "small", weight: "plus", className: "text-ui-fg-base", children: [
|
|
1074
1118
|
t("stores.request.noteLabel"),
|
|
1075
1119
|
" ",
|
|
1076
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ jsxs11("span", { className: "text-ui-fg-muted font-normal", children: [
|
|
1077
1121
|
"(",
|
|
1078
1122
|
t("fields.optional"),
|
|
1079
1123
|
")"
|
|
1080
1124
|
] })
|
|
1081
1125
|
] }),
|
|
1082
|
-
/* @__PURE__ */
|
|
1126
|
+
/* @__PURE__ */ jsx11(
|
|
1083
1127
|
Textarea,
|
|
1084
1128
|
{
|
|
1085
1129
|
placeholder: notePlaceholder,
|
|
@@ -1088,10 +1132,10 @@ var RequestActionPrompt = ({
|
|
|
1088
1132
|
}
|
|
1089
1133
|
)
|
|
1090
1134
|
] }),
|
|
1091
|
-
/* @__PURE__ */
|
|
1092
|
-
/* @__PURE__ */
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ jsx11("div", { className: "border-ui-border-base border-t mt-2" }),
|
|
1136
|
+
/* @__PURE__ */ jsxs11(Prompt.Footer, { children: [
|
|
1137
|
+
/* @__PURE__ */ jsx11(Prompt.Cancel, { disabled: isLoading, children: t("actions.cancel") }),
|
|
1138
|
+
/* @__PURE__ */ jsx11(
|
|
1095
1139
|
Button2,
|
|
1096
1140
|
{
|
|
1097
1141
|
size: "small",
|
|
@@ -1108,17 +1152,17 @@ var RequestActionPrompt = ({
|
|
|
1108
1152
|
|
|
1109
1153
|
// src/pages/stores/store-details/components/store-orders-section.tsx
|
|
1110
1154
|
import { ShoppingCart } from "@medusajs/icons";
|
|
1111
|
-
import { Container as
|
|
1155
|
+
import { Container as Container10, Heading as Heading10 } from "@medusajs/ui";
|
|
1112
1156
|
import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
|
|
1113
|
-
import { useTranslation as
|
|
1157
|
+
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
1114
1158
|
import { DisplayExtensionZone as DisplayExtensionZone9 } from "@mercurjs/dashboard-shared";
|
|
1115
|
-
import { jsx as
|
|
1159
|
+
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1116
1160
|
var PAGE_SIZE2 = 10;
|
|
1117
1161
|
var PREFIX = "store-orders";
|
|
1118
1162
|
var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
|
|
1119
1163
|
var DEFAULT_FIELDS = "id,status,display_id,created_at,email,fulfillment_status,payment_status,total,currency_code";
|
|
1120
1164
|
var StoreOrdersSection = ({ sellerId }) => {
|
|
1121
|
-
const { t } =
|
|
1165
|
+
const { t } = useTranslation12();
|
|
1122
1166
|
const { searchParams, raw } = useOrderTableQuery({
|
|
1123
1167
|
pageSize: PAGE_SIZE2,
|
|
1124
1168
|
prefix: PREFIX
|
|
@@ -1148,16 +1192,16 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1148
1192
|
if (isError) {
|
|
1149
1193
|
throw error;
|
|
1150
1194
|
}
|
|
1151
|
-
return /* @__PURE__ */
|
|
1152
|
-
/* @__PURE__ */
|
|
1195
|
+
return /* @__PURE__ */ jsxs12(Container10, { className: "divide-y p-0", "data-testid": "store-orders-section", children: [
|
|
1196
|
+
/* @__PURE__ */ jsx12(
|
|
1153
1197
|
"div",
|
|
1154
1198
|
{
|
|
1155
1199
|
className: "flex items-center justify-between px-6 py-4",
|
|
1156
1200
|
"data-testid": "store-orders-section-header",
|
|
1157
|
-
children: /* @__PURE__ */
|
|
1201
|
+
children: /* @__PURE__ */ jsx12(Heading10, { level: "h2", "data-testid": "store-orders-section-heading", children: t("orders.domain") })
|
|
1158
1202
|
}
|
|
1159
1203
|
),
|
|
1160
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ jsx12(
|
|
1161
1205
|
_DataTable,
|
|
1162
1206
|
{
|
|
1163
1207
|
columns,
|
|
@@ -1182,26 +1226,26 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
1182
1226
|
"stores.emptyStates.orders.message",
|
|
1183
1227
|
"Orders placed at this store will appear here."
|
|
1184
1228
|
),
|
|
1185
|
-
icon: /* @__PURE__ */
|
|
1229
|
+
icon: /* @__PURE__ */ jsx12(ShoppingCart, { className: "text-ui-fg-subtle" })
|
|
1186
1230
|
}
|
|
1187
1231
|
}
|
|
1188
1232
|
),
|
|
1189
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ jsx12(DisplayExtensionZone9, { model: "seller", zone: "orders", data: sellerId })
|
|
1190
1234
|
] });
|
|
1191
1235
|
};
|
|
1192
1236
|
|
|
1193
1237
|
// src/pages/stores/store-details/components/store-offers-section.tsx
|
|
1194
1238
|
import { Tag } from "@medusajs/icons";
|
|
1195
|
-
import { Container as
|
|
1239
|
+
import { Container as Container11, Heading as Heading11 } from "@medusajs/ui";
|
|
1196
1240
|
import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
|
|
1197
1241
|
import { useState as useState2 } from "react";
|
|
1198
|
-
import { useTranslation as
|
|
1242
|
+
import { useTranslation as useTranslation13 } from "react-i18next";
|
|
1199
1243
|
import { DisplayExtensionZone as DisplayExtensionZone10 } from "@mercurjs/dashboard-shared";
|
|
1200
|
-
import { jsx as
|
|
1244
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1201
1245
|
var PAGE_SIZE3 = 10;
|
|
1202
1246
|
var PREFIX2 = "store-offers";
|
|
1203
1247
|
var StoreOffersSection = ({ sellerId }) => {
|
|
1204
|
-
const { t } =
|
|
1248
|
+
const { t } = useTranslation13();
|
|
1205
1249
|
const [selection, setSelection] = useState2({});
|
|
1206
1250
|
const { raw, searchParams } = useOfferTableQuery({
|
|
1207
1251
|
pageSize: PAGE_SIZE3,
|
|
@@ -1234,16 +1278,16 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1234
1278
|
if (isError) {
|
|
1235
1279
|
throw error;
|
|
1236
1280
|
}
|
|
1237
|
-
return /* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1281
|
+
return /* @__PURE__ */ jsxs13(Container11, { className: "divide-y p-0", "data-testid": "store-offers-section", children: [
|
|
1282
|
+
/* @__PURE__ */ jsx13(
|
|
1239
1283
|
"div",
|
|
1240
1284
|
{
|
|
1241
1285
|
className: "flex items-center justify-between px-6 py-4",
|
|
1242
1286
|
"data-testid": "store-offers-section-header",
|
|
1243
|
-
children: /* @__PURE__ */
|
|
1287
|
+
children: /* @__PURE__ */ jsx13(Heading11, { level: "h2", "data-testid": "store-offers-section-heading", children: t("offers.domain") })
|
|
1244
1288
|
}
|
|
1245
1289
|
),
|
|
1246
|
-
/* @__PURE__ */
|
|
1290
|
+
/* @__PURE__ */ jsx13(
|
|
1247
1291
|
_DataTable,
|
|
1248
1292
|
{
|
|
1249
1293
|
table,
|
|
@@ -1265,24 +1309,24 @@ var StoreOffersSection = ({ sellerId }) => {
|
|
|
1265
1309
|
noRecords: {
|
|
1266
1310
|
title: t("offers.empty.heading"),
|
|
1267
1311
|
message: t("offers.empty.storeDescription"),
|
|
1268
|
-
icon: /* @__PURE__ */
|
|
1312
|
+
icon: /* @__PURE__ */ jsx13(Tag, { className: "text-ui-fg-subtle" })
|
|
1269
1313
|
},
|
|
1270
1314
|
commands
|
|
1271
1315
|
}
|
|
1272
1316
|
),
|
|
1273
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ jsx13(DisplayExtensionZone10, { model: "seller", zone: "offers", data: sellerId })
|
|
1274
1318
|
] });
|
|
1275
1319
|
};
|
|
1276
1320
|
|
|
1277
1321
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1278
|
-
import { jsx as
|
|
1322
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1279
1323
|
var TabBar = ({
|
|
1280
1324
|
tabs,
|
|
1281
1325
|
activeTab,
|
|
1282
1326
|
onTabChange
|
|
1283
1327
|
}) => {
|
|
1284
|
-
const { t } =
|
|
1285
|
-
return /* @__PURE__ */
|
|
1328
|
+
const { t } = useTranslation14();
|
|
1329
|
+
return /* @__PURE__ */ jsx14(
|
|
1286
1330
|
"div",
|
|
1287
1331
|
{
|
|
1288
1332
|
role: "tablist",
|
|
@@ -1291,7 +1335,7 @@ var TabBar = ({
|
|
|
1291
1335
|
"data-testid": "store-detail-tabs",
|
|
1292
1336
|
children: tabs.map(({ id, label }) => {
|
|
1293
1337
|
const isActive = activeTab === id;
|
|
1294
|
-
return /* @__PURE__ */
|
|
1338
|
+
return /* @__PURE__ */ jsx14(
|
|
1295
1339
|
"button",
|
|
1296
1340
|
{
|
|
1297
1341
|
type: "button",
|
|
@@ -1312,25 +1356,25 @@ var TabBar = ({
|
|
|
1312
1356
|
};
|
|
1313
1357
|
var Root = ({ children }) => {
|
|
1314
1358
|
const { id } = useParams();
|
|
1315
|
-
const { t } =
|
|
1359
|
+
const { t } = useTranslation14();
|
|
1316
1360
|
const [selectedTab, setActiveTab] = useState3("orders");
|
|
1317
1361
|
const { can } = usePermissions();
|
|
1318
1362
|
const customTabs = useWidgetTabs("stores.detail.tabs");
|
|
1319
1363
|
const query = useLinkQuery("seller", STORE_DETAIL_FIELDS);
|
|
1320
1364
|
const { seller, isLoading, isError, error } = useSeller(id, query);
|
|
1321
1365
|
if (isLoading || !seller) {
|
|
1322
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ jsx14(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 4 });
|
|
1323
1367
|
}
|
|
1324
1368
|
if (isError) {
|
|
1325
1369
|
throw error;
|
|
1326
1370
|
}
|
|
1327
1371
|
if (Children3.count(children) > 0) {
|
|
1328
|
-
return /* @__PURE__ */
|
|
1372
|
+
return /* @__PURE__ */ jsx14(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children });
|
|
1329
1373
|
}
|
|
1330
1374
|
const toTab = ({ id: id2, label, Component }) => ({
|
|
1331
1375
|
id: id2,
|
|
1332
1376
|
label: t(label, { defaultValue: label }),
|
|
1333
|
-
content: /* @__PURE__ */
|
|
1377
|
+
content: /* @__PURE__ */ jsx14(Component, { data: seller })
|
|
1334
1378
|
});
|
|
1335
1379
|
const tabs = [
|
|
1336
1380
|
...customTabs.before.map(toTab),
|
|
@@ -1338,37 +1382,51 @@ var Root = ({ children }) => {
|
|
|
1338
1382
|
{
|
|
1339
1383
|
id: "orders",
|
|
1340
1384
|
label: t("orders.domain"),
|
|
1341
|
-
content: /* @__PURE__ */
|
|
1385
|
+
content: /* @__PURE__ */ jsx14(StoreOrdersSection, { sellerId: seller.id })
|
|
1342
1386
|
}
|
|
1343
1387
|
] : [],
|
|
1344
1388
|
...can("offers") ? [
|
|
1345
1389
|
{
|
|
1346
1390
|
id: "offers",
|
|
1347
1391
|
label: t("offers.domain"),
|
|
1348
|
-
content: /* @__PURE__ */
|
|
1392
|
+
content: /* @__PURE__ */ jsx14(StoreOffersSection, { sellerId: seller.id })
|
|
1393
|
+
}
|
|
1394
|
+
] : [],
|
|
1395
|
+
...can("payouts") ? [
|
|
1396
|
+
{
|
|
1397
|
+
id: "payouts",
|
|
1398
|
+
label: t("payouts.domain"),
|
|
1399
|
+
content: /* @__PURE__ */ jsx14(
|
|
1400
|
+
PayoutsSection,
|
|
1401
|
+
{
|
|
1402
|
+
scope: { seller_id: seller.id },
|
|
1403
|
+
prefix: "store-payouts",
|
|
1404
|
+
"data-testid": "store-payouts-section"
|
|
1405
|
+
}
|
|
1406
|
+
)
|
|
1349
1407
|
}
|
|
1350
1408
|
] : [],
|
|
1351
1409
|
...can("members") ? [
|
|
1352
1410
|
{
|
|
1353
1411
|
id: "users",
|
|
1354
1412
|
label: t("users.domain"),
|
|
1355
|
-
content: /* @__PURE__ */
|
|
1413
|
+
content: /* @__PURE__ */ jsx14(StoreMembersSection, { sellerId: seller.id })
|
|
1356
1414
|
}
|
|
1357
1415
|
] : [],
|
|
1358
1416
|
{
|
|
1359
1417
|
id: "timeOff",
|
|
1360
1418
|
label: t("store.timeOff.header"),
|
|
1361
|
-
content: /* @__PURE__ */
|
|
1419
|
+
content: /* @__PURE__ */ jsx14(StoreConfigurationSection, { seller })
|
|
1362
1420
|
},
|
|
1363
1421
|
...customTabs.after.map(toTab)
|
|
1364
1422
|
];
|
|
1365
1423
|
const activeTab = tabs.find((tab) => tab.id === selectedTab) ?? tabs[0];
|
|
1366
|
-
return /* @__PURE__ */
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */
|
|
1424
|
+
return /* @__PURE__ */ jsxs14(TwoColumnPage, { data: seller, hasOutlet: true, "data-testid": "store-detail-page", children: [
|
|
1425
|
+
/* @__PURE__ */ jsx14(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs14(WidgetZone, { id: "stores.detail.main", data: seller, children: [
|
|
1426
|
+
seller.status === import_types3.SellerStatus.PENDING_APPROVAL && !seller.approved_at && !seller.rejected_at && /* @__PURE__ */ jsx14(StoreRequestSection, { seller }),
|
|
1427
|
+
/* @__PURE__ */ jsx14(StoreGeneralSection, { seller }),
|
|
1428
|
+
/* @__PURE__ */ jsx14(TabBar, { tabs, activeTab: activeTab.id, onTabChange: setActiveTab }),
|
|
1429
|
+
/* @__PURE__ */ jsx14(
|
|
1372
1430
|
"div",
|
|
1373
1431
|
{
|
|
1374
1432
|
role: "tabpanel",
|
|
@@ -1379,11 +1437,12 @@ var Root = ({ children }) => {
|
|
|
1379
1437
|
activeTab.id
|
|
1380
1438
|
)
|
|
1381
1439
|
] }) }),
|
|
1382
|
-
/* @__PURE__ */
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ jsx14(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs14(WidgetZone, { id: "stores.detail.side", data: seller, children: [
|
|
1441
|
+
/* @__PURE__ */ jsx14(StoreAddressSection, { seller }),
|
|
1442
|
+
/* @__PURE__ */ jsx14(StoreRegionsSection, { seller }),
|
|
1443
|
+
/* @__PURE__ */ jsx14(StoreCompanyDetailsSection, { seller }),
|
|
1444
|
+
/* @__PURE__ */ jsx14(StorePaymentDetailsSection, { seller }),
|
|
1445
|
+
/* @__PURE__ */ jsx14(StorePayoutAccountSection, { sellerId: seller.id })
|
|
1387
1446
|
] }) })
|
|
1388
1447
|
] });
|
|
1389
1448
|
};
|
|
@@ -1395,6 +1454,7 @@ var StoreDetailPage = Object.assign(Root, {
|
|
|
1395
1454
|
MainPaymentDetailsSection: StorePaymentDetailsSection,
|
|
1396
1455
|
MainCompanyDetailsSection: StoreCompanyDetailsSection,
|
|
1397
1456
|
SidebarAddressSection: StoreAddressSection,
|
|
1457
|
+
SidebarPayoutAccountSection: StorePayoutAccountSection,
|
|
1398
1458
|
SidebarRegionsSection: StoreRegionsSection,
|
|
1399
1459
|
SidebarMembersSection: StoreMembersSection,
|
|
1400
1460
|
Header: StoreDetailHeader,
|