@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
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PayoutsSection
|
|
3
|
+
} from "./chunk-7ASMQGI2.js";
|
|
4
|
+
import "./chunk-DQPTTURI.js";
|
|
5
|
+
import "./chunk-CEAFREUV.js";
|
|
6
|
+
import "./chunk-TWDUEIWF.js";
|
|
7
|
+
import {
|
|
8
|
+
getPayoutAccountKycProps,
|
|
9
|
+
getPayoutAccountStatusProps,
|
|
10
|
+
payoutAccountsQueryKeys,
|
|
11
|
+
usePayoutAccount,
|
|
12
|
+
useRefreshPayoutAccountLink,
|
|
13
|
+
useSyncPayoutAccount
|
|
14
|
+
} from "./chunk-IQZYBCVR.js";
|
|
15
|
+
import "./chunk-2Y3WMGN6.js";
|
|
16
|
+
import "./chunk-UPZP4CHG.js";
|
|
17
|
+
import "./chunk-F3XPA5ID.js";
|
|
18
|
+
import "./chunk-PXYDR7WQ.js";
|
|
19
|
+
import "./chunk-JHIMVLB2.js";
|
|
20
|
+
import "./chunk-DB6ANJBO.js";
|
|
21
|
+
import "./chunk-PHOCVOZ5.js";
|
|
22
|
+
import {
|
|
23
|
+
TwoColumnPage
|
|
24
|
+
} from "./chunk-E74OUNA3.js";
|
|
25
|
+
import "./chunk-H6MYB7GB.js";
|
|
26
|
+
import "./chunk-IQPN4PZJ.js";
|
|
27
|
+
import "./chunk-LAVHRER2.js";
|
|
28
|
+
import "./chunk-FI474ADU.js";
|
|
29
|
+
import {
|
|
30
|
+
SectionRow
|
|
31
|
+
} from "./chunk-3XPXUIK3.js";
|
|
32
|
+
import "./chunk-THHRRYRS.js";
|
|
33
|
+
import "./chunk-FQERBIVS.js";
|
|
34
|
+
import "./chunk-4JXRBULR.js";
|
|
35
|
+
import "./chunk-YN3FGNJM.js";
|
|
36
|
+
import "./chunk-ZAOEFQ6K.js";
|
|
37
|
+
import "./chunk-4J74G7N2.js";
|
|
38
|
+
import {
|
|
39
|
+
useDate
|
|
40
|
+
} from "./chunk-EIWPJWKF.js";
|
|
41
|
+
import "./chunk-46WEBDVJ.js";
|
|
42
|
+
import {
|
|
43
|
+
ActionMenu
|
|
44
|
+
} from "./chunk-3UOYBH5O.js";
|
|
45
|
+
import "./chunk-3EPP7VXZ.js";
|
|
46
|
+
import "./chunk-XJV4PVT5.js";
|
|
47
|
+
import "./chunk-J6FNB3IE.js";
|
|
48
|
+
import "./chunk-Y7QKP6QU.js";
|
|
49
|
+
import {
|
|
50
|
+
TwoColumnPageSkeleton
|
|
51
|
+
} from "./chunk-INNFZYX2.js";
|
|
52
|
+
import {
|
|
53
|
+
queryClient
|
|
54
|
+
} from "./chunk-2KCF3ZIB.js";
|
|
55
|
+
import {
|
|
56
|
+
sdk
|
|
57
|
+
} from "./chunk-PFJ2C667.js";
|
|
58
|
+
import "./chunk-NBMM2TZK.js";
|
|
59
|
+
|
|
60
|
+
// src/pages/payout-accounts/payout-account-detail/payout-account-detail.tsx
|
|
61
|
+
import { Children } from "react";
|
|
62
|
+
import { useLoaderData, useParams } from "react-router-dom";
|
|
63
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
64
|
+
|
|
65
|
+
// src/pages/payout-accounts/payout-account-detail/components/payout-account-capabilities-section.tsx
|
|
66
|
+
import { Container, Heading, Text, clx } from "@medusajs/ui";
|
|
67
|
+
import { useTranslation } from "react-i18next";
|
|
68
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
69
|
+
var barColor = {
|
|
70
|
+
green: "bg-ui-tag-green-icon",
|
|
71
|
+
orange: "bg-ui-tag-orange-icon",
|
|
72
|
+
red: "bg-ui-tag-red-icon",
|
|
73
|
+
blue: "bg-ui-tag-blue-icon",
|
|
74
|
+
grey: "bg-ui-tag-neutral-icon",
|
|
75
|
+
purple: "bg-ui-tag-purple-icon"
|
|
76
|
+
};
|
|
77
|
+
var CapabilityCard = ({
|
|
78
|
+
label,
|
|
79
|
+
value,
|
|
80
|
+
tone,
|
|
81
|
+
testId
|
|
82
|
+
}) => /* @__PURE__ */ jsxs(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
className: "shadow-elevation-card-rest bg-ui-bg-component text-ui-fg-subtle flex items-center gap-x-3 rounded-md px-3 py-1.5",
|
|
86
|
+
"data-testid": testId,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx("div", { className: clx("h-8 w-1 rounded-full", barColor[tone]) }),
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
90
|
+
/* @__PURE__ */ jsx(Text, { weight: "plus", size: "small", children: label }),
|
|
91
|
+
/* @__PURE__ */ jsx(Text, { size: "small", children: value })
|
|
92
|
+
] })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
var PayoutAccountCapabilitiesSection = ({
|
|
97
|
+
account
|
|
98
|
+
}) => {
|
|
99
|
+
const { t } = useTranslation();
|
|
100
|
+
const kyc = getPayoutAccountKycProps(account.kyc_status, t);
|
|
101
|
+
const enabled = (flag) => flag ? t("payoutAccounts.enabled") : t("payoutAccounts.disabled");
|
|
102
|
+
return /* @__PURE__ */ jsxs(
|
|
103
|
+
Container,
|
|
104
|
+
{
|
|
105
|
+
className: "flex flex-col gap-y-4",
|
|
106
|
+
"data-testid": "payout-account-capabilities-section",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("payoutAccounts.capabilities.header") }) }),
|
|
109
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-3", children: [
|
|
110
|
+
/* @__PURE__ */ jsx(
|
|
111
|
+
CapabilityCard,
|
|
112
|
+
{
|
|
113
|
+
label: t("payoutAccounts.fields.payoutsEnabled"),
|
|
114
|
+
value: enabled(account.payouts_enabled),
|
|
115
|
+
tone: account.payouts_enabled ? "green" : "orange",
|
|
116
|
+
testId: "payout-account-capabilities-payouts"
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
120
|
+
CapabilityCard,
|
|
121
|
+
{
|
|
122
|
+
label: t("payoutAccounts.fields.chargesEnabled"),
|
|
123
|
+
value: enabled(account.charges_enabled),
|
|
124
|
+
tone: account.charges_enabled ? "green" : "orange",
|
|
125
|
+
testId: "payout-account-capabilities-charges"
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
/* @__PURE__ */ jsx(
|
|
129
|
+
CapabilityCard,
|
|
130
|
+
{
|
|
131
|
+
label: t("payoutAccounts.fields.kycStatus"),
|
|
132
|
+
value: kyc?.label ?? t("payoutAccounts.capabilities.kycUnknown"),
|
|
133
|
+
tone: kyc?.color ?? "grey",
|
|
134
|
+
testId: "payout-account-capabilities-kyc"
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ jsx(
|
|
138
|
+
CapabilityCard,
|
|
139
|
+
{
|
|
140
|
+
label: t("payoutAccounts.fields.detailsSubmitted"),
|
|
141
|
+
value: account.details_submitted ? t("general.yes") : t("general.no"),
|
|
142
|
+
tone: account.details_submitted ? "green" : "orange",
|
|
143
|
+
testId: "payout-account-capabilities-details"
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] })
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// src/pages/payout-accounts/payout-account-detail/components/payout-account-general-section.tsx
|
|
153
|
+
import { ArrowPath, ArrowUpRightOnBox, Link as LinkIcon } from "@medusajs/icons";
|
|
154
|
+
import { Container as Container2, Heading as Heading2, StatusBadge, toast } from "@medusajs/ui";
|
|
155
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
156
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
157
|
+
var PayoutAccountGeneralSection = ({
|
|
158
|
+
account
|
|
159
|
+
}) => {
|
|
160
|
+
const { t } = useTranslation2();
|
|
161
|
+
const { getFullDate } = useDate();
|
|
162
|
+
const sync = useSyncPayoutAccount(account.id);
|
|
163
|
+
const refreshLink = useRefreshPayoutAccountLink(account.id);
|
|
164
|
+
const status = getPayoutAccountStatusProps(account.status, t);
|
|
165
|
+
const onboardingUrl = typeof account.onboarding?.data?.url === "string" ? account.onboarding.data.url : null;
|
|
166
|
+
const handleSync = () => {
|
|
167
|
+
sync.mutate(void 0, {
|
|
168
|
+
onSuccess: () => toast.success(t("payoutAccounts.sync.successToast")),
|
|
169
|
+
onError: (error) => toast.error(error.message)
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
const handleRefreshLink = () => {
|
|
173
|
+
refreshLink.mutate(void 0, {
|
|
174
|
+
onSuccess: () => toast.success(t("payoutAccounts.refreshLink.successToast")),
|
|
175
|
+
onError: (error) => toast.error(error.message)
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
const formatDate = (value) => value ? getFullDate({ date: value, includeTime: true }) : "-";
|
|
179
|
+
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "payout-account-general-section", children: [
|
|
180
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
181
|
+
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "payout-account-general-section-heading", children: account.seller?.name ?? account.id }),
|
|
182
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", children: [
|
|
183
|
+
/* @__PURE__ */ jsx2(
|
|
184
|
+
StatusBadge,
|
|
185
|
+
{
|
|
186
|
+
color: status.color,
|
|
187
|
+
"data-testid": "payout-account-general-section-status-badge",
|
|
188
|
+
children: status.label
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
/* @__PURE__ */ jsx2(
|
|
192
|
+
ActionMenu,
|
|
193
|
+
{
|
|
194
|
+
"data-testid": "payout-account-general-section-action-menu",
|
|
195
|
+
groups: [
|
|
196
|
+
{
|
|
197
|
+
actions: [
|
|
198
|
+
{
|
|
199
|
+
label: t("payoutAccounts.actions.sync"),
|
|
200
|
+
icon: /* @__PURE__ */ jsx2(ArrowPath, {}),
|
|
201
|
+
onClick: handleSync,
|
|
202
|
+
permission: "payouts:edit"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
label: t("payoutAccounts.actions.refreshLink"),
|
|
206
|
+
icon: /* @__PURE__ */ jsx2(LinkIcon, {}),
|
|
207
|
+
onClick: handleRefreshLink,
|
|
208
|
+
permission: "payouts:edit"
|
|
209
|
+
},
|
|
210
|
+
...onboardingUrl ? [
|
|
211
|
+
{
|
|
212
|
+
label: t("payoutAccounts.actions.openLink"),
|
|
213
|
+
icon: /* @__PURE__ */ jsx2(ArrowUpRightOnBox, {}),
|
|
214
|
+
onClick: () => window.open(onboardingUrl, "_blank")
|
|
215
|
+
}
|
|
216
|
+
] : []
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
)
|
|
222
|
+
] })
|
|
223
|
+
] }),
|
|
224
|
+
/* @__PURE__ */ jsx2(
|
|
225
|
+
SectionRow,
|
|
226
|
+
{
|
|
227
|
+
title: t("payoutAccounts.fields.lastSyncedAt"),
|
|
228
|
+
value: formatDate(account.last_synced_at)
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ jsx2(
|
|
232
|
+
SectionRow,
|
|
233
|
+
{
|
|
234
|
+
title: t("fields.createdAt"),
|
|
235
|
+
value: formatDate(account.created_at)
|
|
236
|
+
}
|
|
237
|
+
),
|
|
238
|
+
/* @__PURE__ */ jsx2(
|
|
239
|
+
SectionRow,
|
|
240
|
+
{
|
|
241
|
+
title: t("fields.updatedAt"),
|
|
242
|
+
value: formatDate(account.updated_at)
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
] });
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
// src/pages/payout-accounts/payout-account-detail/components/payout-account-status-alert.tsx
|
|
249
|
+
import { Alert } from "@medusajs/ui";
|
|
250
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
251
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
252
|
+
var disabledReasonMessage = (reason, t) => {
|
|
253
|
+
if (reason === "requirements.past_due") {
|
|
254
|
+
return t("payoutAccounts.disabledReason.pastDue");
|
|
255
|
+
}
|
|
256
|
+
if (reason === "requirements.pending_verification") {
|
|
257
|
+
return t("payoutAccounts.disabledReason.pendingVerification");
|
|
258
|
+
}
|
|
259
|
+
if (reason.startsWith("requirements.")) {
|
|
260
|
+
return t("payoutAccounts.disabledReason.requirements");
|
|
261
|
+
}
|
|
262
|
+
if (reason.startsWith("rejected.")) {
|
|
263
|
+
return t("payoutAccounts.disabledReason.rejected");
|
|
264
|
+
}
|
|
265
|
+
if (reason === "under_review" || reason === "listed") {
|
|
266
|
+
return t("payoutAccounts.disabledReason.underReview");
|
|
267
|
+
}
|
|
268
|
+
return t("payoutAccounts.disabledReason.other");
|
|
269
|
+
};
|
|
270
|
+
var PayoutAccountStatusAlert = ({
|
|
271
|
+
account
|
|
272
|
+
}) => {
|
|
273
|
+
const { t } = useTranslation3();
|
|
274
|
+
if (!account.disabled_reason) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
return /* @__PURE__ */ jsx3(
|
|
278
|
+
Alert,
|
|
279
|
+
{
|
|
280
|
+
variant: account.disabled_reason.startsWith("rejected.") ? "error" : "warning",
|
|
281
|
+
"data-testid": "payout-account-status-alert",
|
|
282
|
+
children: disabledReasonMessage(account.disabled_reason, t)
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// src/pages/payout-accounts/payout-account-detail/components/payout-account-store-section.tsx
|
|
288
|
+
import { TriangleRightMini } from "@medusajs/icons";
|
|
289
|
+
import { Avatar, Container as Container3, Heading as Heading3, Text as Text2 } from "@medusajs/ui";
|
|
290
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
291
|
+
import { Link } from "react-router-dom";
|
|
292
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
293
|
+
var PayoutAccountStoreSection = ({
|
|
294
|
+
account
|
|
295
|
+
}) => {
|
|
296
|
+
const { t } = useTranslation4();
|
|
297
|
+
const seller = account.seller;
|
|
298
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "p-0", "data-testid": "payout-account-store-section", children: [
|
|
299
|
+
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading3, { level: "h2", children: t("payoutAccounts.fields.store") }) }),
|
|
300
|
+
seller?.id ? /* @__PURE__ */ jsx4("div", { className: "txt-small flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx4(
|
|
301
|
+
Link,
|
|
302
|
+
{
|
|
303
|
+
to: `/stores/${seller.id}`,
|
|
304
|
+
className: "outline-none focus-within:shadow-borders-interactive-with-focus rounded-md [&:hover>div]:bg-ui-bg-component-hover",
|
|
305
|
+
"data-testid": "payout-account-store-link",
|
|
306
|
+
children: /* @__PURE__ */ jsx4("div", { className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors", children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-3", children: [
|
|
307
|
+
/* @__PURE__ */ jsx4(
|
|
308
|
+
Avatar,
|
|
309
|
+
{
|
|
310
|
+
size: "small",
|
|
311
|
+
fallback: (seller.name?.[0] ?? "?").toUpperCase(),
|
|
312
|
+
"data-testid": "payout-account-store-avatar"
|
|
313
|
+
}
|
|
314
|
+
),
|
|
315
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex flex-1 flex-col", children: [
|
|
316
|
+
/* @__PURE__ */ jsx4(
|
|
317
|
+
"span",
|
|
318
|
+
{
|
|
319
|
+
className: "text-ui-fg-base font-medium",
|
|
320
|
+
"data-testid": "payout-account-store-name",
|
|
321
|
+
children: seller.name ?? seller.id
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
seller.handle && /* @__PURE__ */ jsx4(
|
|
325
|
+
"span",
|
|
326
|
+
{
|
|
327
|
+
className: "text-ui-fg-subtle",
|
|
328
|
+
"data-testid": "payout-account-store-handle",
|
|
329
|
+
children: seller.handle
|
|
330
|
+
}
|
|
331
|
+
)
|
|
332
|
+
] }),
|
|
333
|
+
/* @__PURE__ */ jsx4("div", { className: "flex size-7 items-center justify-center", children: /* @__PURE__ */ jsx4(TriangleRightMini, { className: "text-ui-fg-muted rtl:rotate-180" }) })
|
|
334
|
+
] }) })
|
|
335
|
+
}
|
|
336
|
+
) }) : /* @__PURE__ */ jsx4("div", { className: "border-t px-6 py-4", children: /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: t("payoutAccounts.noStore") }) })
|
|
337
|
+
] });
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
// src/pages/payout-accounts/payout-account-detail/payout-account-detail.tsx
|
|
341
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
342
|
+
var Root = ({ children }) => {
|
|
343
|
+
const { id } = useParams();
|
|
344
|
+
const initialData = useLoaderData();
|
|
345
|
+
const { payout_account, isLoading, isError, error } = usePayoutAccount(
|
|
346
|
+
id,
|
|
347
|
+
void 0,
|
|
348
|
+
{ initialData }
|
|
349
|
+
);
|
|
350
|
+
if (isLoading || !payout_account) {
|
|
351
|
+
return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 2, sidebarSections: 2, showJSON: true });
|
|
352
|
+
}
|
|
353
|
+
if (isError) {
|
|
354
|
+
throw error;
|
|
355
|
+
}
|
|
356
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(TwoColumnPage, { data: payout_account, showJSON: true, children }) : /* @__PURE__ */ jsxs4(TwoColumnPage, { data: payout_account, showJSON: true, children: [
|
|
357
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs4(WidgetZone, { id: "payout_accounts.detail.main", data: payout_account, children: [
|
|
358
|
+
/* @__PURE__ */ jsx5(PayoutAccountStatusAlert, { account: payout_account }),
|
|
359
|
+
/* @__PURE__ */ jsx5(PayoutAccountGeneralSection, { account: payout_account }),
|
|
360
|
+
/* @__PURE__ */ jsx5(
|
|
361
|
+
PayoutsSection,
|
|
362
|
+
{
|
|
363
|
+
scope: { account_id: payout_account.id },
|
|
364
|
+
prefix: "pacpay",
|
|
365
|
+
"data-testid": "payout-account-payouts-section"
|
|
366
|
+
}
|
|
367
|
+
)
|
|
368
|
+
] }) }),
|
|
369
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsxs4(WidgetZone, { id: "payout_accounts.detail.side", data: payout_account, children: [
|
|
370
|
+
/* @__PURE__ */ jsx5(PayoutAccountStoreSection, { account: payout_account }),
|
|
371
|
+
/* @__PURE__ */ jsx5(PayoutAccountCapabilitiesSection, { account: payout_account })
|
|
372
|
+
] }) })
|
|
373
|
+
] });
|
|
374
|
+
};
|
|
375
|
+
var PayoutAccountDetailPage = Object.assign(Root, {
|
|
376
|
+
Main: TwoColumnPage.Main,
|
|
377
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
378
|
+
MainStatusAlert: PayoutAccountStatusAlert,
|
|
379
|
+
MainGeneralSection: PayoutAccountGeneralSection,
|
|
380
|
+
MainPayoutsSection: PayoutsSection,
|
|
381
|
+
SidebarStoreSection: PayoutAccountStoreSection,
|
|
382
|
+
SidebarCapabilitiesSection: PayoutAccountCapabilitiesSection
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
// src/pages/payout-accounts/payout-account-detail/breadcrumb.tsx
|
|
386
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
387
|
+
var PayoutAccountDetailBreadcrumb = (props) => {
|
|
388
|
+
const { id } = props.params || {};
|
|
389
|
+
const { payout_account } = usePayoutAccount(id, void 0, {
|
|
390
|
+
enabled: Boolean(id)
|
|
391
|
+
});
|
|
392
|
+
if (!payout_account) {
|
|
393
|
+
return null;
|
|
394
|
+
}
|
|
395
|
+
return /* @__PURE__ */ jsx6("span", { children: payout_account.seller?.name ?? payout_account.id });
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
// src/pages/payout-accounts/payout-account-detail/loader.ts
|
|
399
|
+
var payoutAccountDetailQuery = (id) => ({
|
|
400
|
+
queryKey: payoutAccountsQueryKeys.detail(id),
|
|
401
|
+
queryFn: async () => sdk.admin.payoutAccounts.$id.query({ $id: id })
|
|
402
|
+
});
|
|
403
|
+
var payoutAccountLoader = async ({ params }) => {
|
|
404
|
+
const id = params.id;
|
|
405
|
+
const query = payoutAccountDetailQuery(id);
|
|
406
|
+
return queryClient.ensureQueryData(query);
|
|
407
|
+
};
|
|
408
|
+
export {
|
|
409
|
+
PayoutAccountDetailBreadcrumb as Breadcrumb,
|
|
410
|
+
PayoutAccountDetailPage as Component,
|
|
411
|
+
payoutAccountLoader as loader
|
|
412
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getPayoutAccountKycProps,
|
|
3
|
+
getPayoutAccountStatusProps,
|
|
4
|
+
usePayoutAccounts
|
|
5
|
+
} from "./chunk-IQZYBCVR.js";
|
|
6
|
+
import {
|
|
7
|
+
DateCell
|
|
8
|
+
} from "./chunk-F3XPA5ID.js";
|
|
9
|
+
import {
|
|
10
|
+
TextCell,
|
|
11
|
+
TextHeader
|
|
12
|
+
} from "./chunk-JHIMVLB2.js";
|
|
13
|
+
import {
|
|
14
|
+
StatusCell
|
|
15
|
+
} from "./chunk-DB6ANJBO.js";
|
|
16
|
+
import "./chunk-PHOCVOZ5.js";
|
|
17
|
+
import "./chunk-E74OUNA3.js";
|
|
18
|
+
import {
|
|
19
|
+
SingleColumnPage
|
|
20
|
+
} from "./chunk-H6MYB7GB.js";
|
|
21
|
+
import "./chunk-LAVHRER2.js";
|
|
22
|
+
import {
|
|
23
|
+
useQueryParams
|
|
24
|
+
} from "./chunk-THHRRYRS.js";
|
|
25
|
+
import "./chunk-FQERBIVS.js";
|
|
26
|
+
import {
|
|
27
|
+
_DataTable,
|
|
28
|
+
useDataTable
|
|
29
|
+
} from "./chunk-4JXRBULR.js";
|
|
30
|
+
import "./chunk-YN3FGNJM.js";
|
|
31
|
+
import "./chunk-ZAOEFQ6K.js";
|
|
32
|
+
import "./chunk-4J74G7N2.js";
|
|
33
|
+
import "./chunk-EIWPJWKF.js";
|
|
34
|
+
import "./chunk-46WEBDVJ.js";
|
|
35
|
+
import {
|
|
36
|
+
useSellers
|
|
37
|
+
} from "./chunk-XJV4PVT5.js";
|
|
38
|
+
import "./chunk-J6FNB3IE.js";
|
|
39
|
+
import "./chunk-Y7QKP6QU.js";
|
|
40
|
+
import "./chunk-INNFZYX2.js";
|
|
41
|
+
import "./chunk-2KCF3ZIB.js";
|
|
42
|
+
import "./chunk-PFJ2C667.js";
|
|
43
|
+
import "./chunk-NBMM2TZK.js";
|
|
44
|
+
|
|
45
|
+
// src/pages/payout-accounts/payout-account-list/payout-account-list.tsx
|
|
46
|
+
import { Children } from "react";
|
|
47
|
+
import { Container, Heading, Text } from "@medusajs/ui";
|
|
48
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
49
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
50
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
51
|
+
|
|
52
|
+
// src/hooks/table/columns/use-payout-account-table-columns.tsx
|
|
53
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
54
|
+
import { useMemo } from "react";
|
|
55
|
+
import { useTranslation } from "react-i18next";
|
|
56
|
+
import { jsx } from "react/jsx-runtime";
|
|
57
|
+
var columnHelper = createColumnHelper();
|
|
58
|
+
var usePayoutAccountTableColumns = () => {
|
|
59
|
+
const { t } = useTranslation();
|
|
60
|
+
return useMemo(
|
|
61
|
+
() => [
|
|
62
|
+
columnHelper.display({
|
|
63
|
+
id: "store",
|
|
64
|
+
header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("payoutAccounts.fields.store") }),
|
|
65
|
+
cell: ({ row }) => /* @__PURE__ */ jsx(TextCell, { text: row.original.seller?.name })
|
|
66
|
+
}),
|
|
67
|
+
columnHelper.accessor("status", {
|
|
68
|
+
header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.status") }),
|
|
69
|
+
cell: ({ getValue }) => {
|
|
70
|
+
const { color, label } = getPayoutAccountStatusProps(getValue(), t);
|
|
71
|
+
return /* @__PURE__ */ jsx(StatusCell, { color, children: label });
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
columnHelper.accessor("kyc_status", {
|
|
75
|
+
header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("payoutAccounts.fields.kycStatus") }),
|
|
76
|
+
cell: ({ getValue }) => {
|
|
77
|
+
const props = getPayoutAccountKycProps(getValue(), t);
|
|
78
|
+
if (!props) {
|
|
79
|
+
return /* @__PURE__ */ jsx(TextCell, {});
|
|
80
|
+
}
|
|
81
|
+
return /* @__PURE__ */ jsx(StatusCell, { color: props.color, children: props.label });
|
|
82
|
+
}
|
|
83
|
+
}),
|
|
84
|
+
columnHelper.accessor("created_at", {
|
|
85
|
+
header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.createdAt") }),
|
|
86
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx(DateCell, { date: getValue() })
|
|
87
|
+
}),
|
|
88
|
+
columnHelper.accessor("updated_at", {
|
|
89
|
+
header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.updatedAt") }),
|
|
90
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx(DateCell, { date: getValue() })
|
|
91
|
+
})
|
|
92
|
+
],
|
|
93
|
+
[t]
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
// src/hooks/table/filters/use-payout-account-table-filters.tsx
|
|
98
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
99
|
+
var usePayoutAccountTableFilters = () => {
|
|
100
|
+
const { t } = useTranslation2();
|
|
101
|
+
const { sellers } = useSellers({ limit: 1e3, fields: "id,name" });
|
|
102
|
+
const statusFilter = {
|
|
103
|
+
key: "status",
|
|
104
|
+
label: t("fields.status"),
|
|
105
|
+
type: "select",
|
|
106
|
+
multiple: true,
|
|
107
|
+
options: ["pending", "active", "restricted", "rejected"].map((value) => ({
|
|
108
|
+
label: t(`payoutAccounts.status.${value}`),
|
|
109
|
+
value
|
|
110
|
+
}))
|
|
111
|
+
};
|
|
112
|
+
const kycFilter = {
|
|
113
|
+
key: "kyc_status",
|
|
114
|
+
label: t("payoutAccounts.fields.kycStatus"),
|
|
115
|
+
type: "select",
|
|
116
|
+
multiple: true,
|
|
117
|
+
options: [
|
|
118
|
+
"pending_submission",
|
|
119
|
+
"pending_approval",
|
|
120
|
+
"approved",
|
|
121
|
+
"refused"
|
|
122
|
+
].map((value) => ({
|
|
123
|
+
label: t(`payoutAccounts.kycStatus.${value}`),
|
|
124
|
+
value
|
|
125
|
+
}))
|
|
126
|
+
};
|
|
127
|
+
const sellerFilter = sellers?.length ? [
|
|
128
|
+
{
|
|
129
|
+
key: "seller_id",
|
|
130
|
+
label: t("payoutAccounts.fields.store"),
|
|
131
|
+
type: "select",
|
|
132
|
+
multiple: true,
|
|
133
|
+
options: sellers.filter((seller) => seller.name).map((seller) => ({ label: seller.name, value: seller.id }))
|
|
134
|
+
}
|
|
135
|
+
] : [];
|
|
136
|
+
const dateFilters = [
|
|
137
|
+
{ label: t("fields.createdAt"), key: "created_at" },
|
|
138
|
+
{ label: t("fields.updatedAt"), key: "updated_at" }
|
|
139
|
+
].map((f) => ({ key: f.key, label: f.label, type: "date" }));
|
|
140
|
+
return [statusFilter, kycFilter, ...sellerFilter, ...dateFilters];
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// src/hooks/table/query/use-payout-account-table-query.tsx
|
|
144
|
+
var usePayoutAccountTableQuery = ({
|
|
145
|
+
prefix,
|
|
146
|
+
pageSize = 20
|
|
147
|
+
}) => {
|
|
148
|
+
const queryObject = useQueryParams(
|
|
149
|
+
[
|
|
150
|
+
"offset",
|
|
151
|
+
"q",
|
|
152
|
+
"order",
|
|
153
|
+
"status",
|
|
154
|
+
"kyc_status",
|
|
155
|
+
"seller_id",
|
|
156
|
+
"created_at",
|
|
157
|
+
"updated_at"
|
|
158
|
+
],
|
|
159
|
+
prefix
|
|
160
|
+
);
|
|
161
|
+
const { offset, q, order, status, kyc_status, seller_id, created_at, updated_at } = queryObject;
|
|
162
|
+
const searchParams = {
|
|
163
|
+
limit: pageSize,
|
|
164
|
+
offset: offset ? Number(offset) : 0,
|
|
165
|
+
order: order ?? "-created_at",
|
|
166
|
+
status: status?.split(","),
|
|
167
|
+
kyc_status: kyc_status?.split(","),
|
|
168
|
+
seller_id: seller_id?.split(","),
|
|
169
|
+
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
170
|
+
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
171
|
+
...q ? { q } : {}
|
|
172
|
+
};
|
|
173
|
+
return {
|
|
174
|
+
searchParams,
|
|
175
|
+
raw: queryObject
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// src/pages/payout-accounts/payout-account-list/payout-account-list.tsx
|
|
180
|
+
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
181
|
+
var PAGE_SIZE = 20;
|
|
182
|
+
var PayoutAccountListTitle = () => {
|
|
183
|
+
const { t } = useTranslation3();
|
|
184
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
185
|
+
/* @__PURE__ */ jsx2(Heading, { "data-testid": "payout-account-list-heading", children: t("payoutAccounts.domain") }),
|
|
186
|
+
/* @__PURE__ */ jsx2(Text, { className: "text-ui-fg-subtle", size: "small", children: t("payoutAccounts.subtitle") })
|
|
187
|
+
] });
|
|
188
|
+
};
|
|
189
|
+
var PayoutAccountListActions = ({
|
|
190
|
+
children
|
|
191
|
+
}) => {
|
|
192
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : null });
|
|
193
|
+
};
|
|
194
|
+
var PayoutAccountListHeader = ({
|
|
195
|
+
children
|
|
196
|
+
}) => {
|
|
197
|
+
return /* @__PURE__ */ jsx2(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
201
|
+
"data-testid": "payout-account-list-header",
|
|
202
|
+
children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
203
|
+
/* @__PURE__ */ jsx2(PayoutAccountListTitle, {}),
|
|
204
|
+
/* @__PURE__ */ jsx2(PayoutAccountListActions, {})
|
|
205
|
+
] })
|
|
206
|
+
}
|
|
207
|
+
);
|
|
208
|
+
};
|
|
209
|
+
var PayoutAccountListDataTable = () => {
|
|
210
|
+
const { t } = useTranslation3();
|
|
211
|
+
const { searchParams, raw } = usePayoutAccountTableQuery({
|
|
212
|
+
pageSize: PAGE_SIZE
|
|
213
|
+
});
|
|
214
|
+
const { payout_accounts, count, isError, error, isLoading } = usePayoutAccounts(searchParams, {
|
|
215
|
+
placeholderData: keepPreviousData
|
|
216
|
+
});
|
|
217
|
+
const columns = usePayoutAccountTableColumns();
|
|
218
|
+
const filters = usePayoutAccountTableFilters();
|
|
219
|
+
const { table } = useDataTable({
|
|
220
|
+
data: payout_accounts ?? [],
|
|
221
|
+
columns,
|
|
222
|
+
enablePagination: true,
|
|
223
|
+
count: count ?? 0,
|
|
224
|
+
getRowId: (row) => row.id,
|
|
225
|
+
pageSize: PAGE_SIZE
|
|
226
|
+
});
|
|
227
|
+
if (isError) {
|
|
228
|
+
throw error;
|
|
229
|
+
}
|
|
230
|
+
return /* @__PURE__ */ jsx2(
|
|
231
|
+
_DataTable,
|
|
232
|
+
{
|
|
233
|
+
columns,
|
|
234
|
+
table,
|
|
235
|
+
pagination: true,
|
|
236
|
+
navigateTo: (row) => row.original.id,
|
|
237
|
+
count: count ?? 0,
|
|
238
|
+
filters,
|
|
239
|
+
isLoading,
|
|
240
|
+
pageSize: PAGE_SIZE,
|
|
241
|
+
orderBy: [
|
|
242
|
+
{ key: "status", label: t("fields.status") },
|
|
243
|
+
{ key: "kyc_status", label: t("payoutAccounts.fields.kycStatus") },
|
|
244
|
+
{ key: "created_at", label: t("fields.createdAt") },
|
|
245
|
+
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
246
|
+
],
|
|
247
|
+
defaultOrder: "-created_at",
|
|
248
|
+
queryObject: raw,
|
|
249
|
+
noRecords: {
|
|
250
|
+
message: t("payoutAccounts.list.noRecordsMessage")
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
var PayoutAccountListTable = ({
|
|
256
|
+
children
|
|
257
|
+
}) => {
|
|
258
|
+
return /* @__PURE__ */ jsx2(
|
|
259
|
+
Container,
|
|
260
|
+
{
|
|
261
|
+
className: "divide-y p-0",
|
|
262
|
+
"data-testid": "payout-account-list-container",
|
|
263
|
+
children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
264
|
+
/* @__PURE__ */ jsx2(PayoutAccountListHeader, {}),
|
|
265
|
+
/* @__PURE__ */ jsx2(PayoutAccountListDataTable, {})
|
|
266
|
+
] })
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
};
|
|
270
|
+
var Root = ({ children }) => {
|
|
271
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "payout_accounts.list", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PayoutAccountListTable, {}) }) });
|
|
272
|
+
};
|
|
273
|
+
var PayoutAccountListPage = Object.assign(Root, {
|
|
274
|
+
Table: PayoutAccountListTable,
|
|
275
|
+
Header: PayoutAccountListHeader,
|
|
276
|
+
HeaderTitle: PayoutAccountListTitle,
|
|
277
|
+
HeaderActions: PayoutAccountListActions,
|
|
278
|
+
DataTable: PayoutAccountListDataTable
|
|
279
|
+
});
|
|
280
|
+
export {
|
|
281
|
+
PayoutAccountListPage as Component
|
|
282
|
+
};
|