@cfxjs/sirius-next-common 0.0.8 → 0.0.9-patch.1
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/chunk-26BGPSLL.js +141 -0
- package/dist/chunk-26BGPSLL.js.map +1 -0
- package/dist/chunk-2D3FHQMA.js +212 -0
- package/dist/chunk-2D3FHQMA.js.map +1 -0
- package/dist/chunk-2GMSPXII.js +212 -0
- package/dist/chunk-2GMSPXII.js.map +1 -0
- package/dist/chunk-2KKN5I7Z.js +108 -0
- package/dist/chunk-2KKN5I7Z.js.map +1 -0
- package/dist/chunk-2KZQEDWJ.js +63 -0
- package/dist/chunk-2KZQEDWJ.js.map +1 -0
- package/dist/chunk-2LXJPD6E.js +141 -0
- package/dist/chunk-2LXJPD6E.js.map +1 -0
- package/dist/chunk-2MQDR6YX.js +63 -0
- package/dist/chunk-2MQDR6YX.js.map +1 -0
- package/dist/chunk-2NX2L2RI.js +875 -0
- package/dist/chunk-2NX2L2RI.js.map +1 -0
- package/dist/chunk-2Q4BOUN5.js +143 -0
- package/dist/chunk-2Q4BOUN5.js.map +1 -0
- package/dist/chunk-2QCODSHF.js +108 -0
- package/dist/chunk-2QCODSHF.js.map +1 -0
- package/dist/chunk-363U57H2.js +108 -0
- package/dist/chunk-363U57H2.js.map +1 -0
- package/dist/chunk-37YTMWL5.js +127 -0
- package/dist/chunk-37YTMWL5.js.map +1 -0
- package/dist/chunk-3AVURPM5.js +108 -0
- package/dist/chunk-3AVURPM5.js.map +1 -0
- package/dist/chunk-3D4DD2UA.js +141 -0
- package/dist/chunk-3D4DD2UA.js.map +1 -0
- package/dist/chunk-3DSBII47.js +58 -0
- package/dist/chunk-3DSBII47.js.map +1 -0
- package/dist/chunk-3EYF446K.js +3629 -0
- package/dist/chunk-3EYF446K.js.map +1 -0
- package/dist/chunk-3FE7I3KQ.js +101 -0
- package/dist/chunk-3FE7I3KQ.js.map +1 -0
- package/dist/chunk-3Z26LHYR.js +128 -0
- package/dist/chunk-3Z26LHYR.js.map +1 -0
- package/dist/chunk-43RJJ6FE.js +3629 -0
- package/dist/chunk-43RJJ6FE.js.map +1 -0
- package/dist/chunk-4A3R7D6E.js +127 -0
- package/dist/chunk-4A3R7D6E.js.map +1 -0
- package/dist/chunk-4CHUPYY3.js +108 -0
- package/dist/chunk-4CHUPYY3.js.map +1 -0
- package/dist/chunk-4DOOVZYQ.js +127 -0
- package/dist/chunk-4DOOVZYQ.js.map +1 -0
- package/dist/chunk-4EWR72ZL.js +127 -0
- package/dist/chunk-4EWR72ZL.js.map +1 -0
- package/dist/chunk-4GX5DBPW.js +108 -0
- package/dist/chunk-4GX5DBPW.js.map +1 -0
- package/dist/chunk-4K7JRPVX.js +108 -0
- package/dist/chunk-4K7JRPVX.js.map +1 -0
- package/dist/chunk-4LUXUY33.js +212 -0
- package/dist/chunk-4LUXUY33.js.map +1 -0
- package/dist/chunk-4PRRUA3K.js +212 -0
- package/dist/chunk-4PRRUA3K.js.map +1 -0
- package/dist/chunk-4VMXIEIU.js +63 -0
- package/dist/chunk-4VMXIEIU.js.map +1 -0
- package/dist/chunk-4VU6H4HE.js +141 -0
- package/dist/chunk-4VU6H4HE.js.map +1 -0
- package/dist/chunk-4WGHU5GK.js +211 -0
- package/dist/chunk-4WGHU5GK.js.map +1 -0
- package/dist/chunk-4XIFV7FM.js +212 -0
- package/dist/chunk-4XIFV7FM.js.map +1 -0
- package/dist/chunk-4ZV6PYNB.js +100 -0
- package/dist/chunk-4ZV6PYNB.js.map +1 -0
- package/dist/chunk-52AANUOT.js +108 -0
- package/dist/chunk-52AANUOT.js.map +1 -0
- package/dist/chunk-557Y4PWU.js +100 -0
- package/dist/chunk-557Y4PWU.js.map +1 -0
- package/dist/chunk-5HDGGTJ6.js +127 -0
- package/dist/chunk-5HDGGTJ6.js.map +1 -0
- package/dist/chunk-5IPKZP5U.js +108 -0
- package/dist/chunk-5IPKZP5U.js.map +1 -0
- package/dist/chunk-5KZCV745.js +213 -0
- package/dist/chunk-5KZCV745.js.map +1 -0
- package/dist/chunk-5N2JN63A.js +213 -0
- package/dist/chunk-5N2JN63A.js.map +1 -0
- package/dist/chunk-5NS2U723.js +108 -0
- package/dist/chunk-5NS2U723.js.map +1 -0
- package/dist/chunk-5TRFE737.js +127 -0
- package/dist/chunk-5TRFE737.js.map +1 -0
- package/dist/chunk-65X53DMW.js +47 -0
- package/dist/chunk-65X53DMW.js.map +1 -0
- package/dist/chunk-6DOIQYVP.js +223 -0
- package/dist/chunk-6DOIQYVP.js.map +1 -0
- package/dist/chunk-6IYWU6KW.js +141 -0
- package/dist/chunk-6IYWU6KW.js.map +1 -0
- package/dist/chunk-6MM34SOW.js +108 -0
- package/dist/chunk-6MM34SOW.js.map +1 -0
- package/dist/chunk-6R3YL2BS.js +211 -0
- package/dist/chunk-6R3YL2BS.js.map +1 -0
- package/dist/chunk-6U2DN3LG.js +141 -0
- package/dist/chunk-6U2DN3LG.js.map +1 -0
- package/dist/chunk-6VG6W7P4.js +126 -0
- package/dist/chunk-6VG6W7P4.js.map +1 -0
- package/dist/chunk-7CRUFCGX.js +211 -0
- package/dist/chunk-7CRUFCGX.js.map +1 -0
- package/dist/chunk-7HT2BVQG.js +127 -0
- package/dist/chunk-7HT2BVQG.js.map +1 -0
- package/dist/chunk-7JJQSXBV.js +141 -0
- package/dist/chunk-7JJQSXBV.js.map +1 -0
- package/dist/chunk-7NJ4VOJB.js +108 -0
- package/dist/chunk-7NJ4VOJB.js.map +1 -0
- package/dist/chunk-7OAWG2IZ.js +44 -0
- package/dist/chunk-7OAWG2IZ.js.map +1 -0
- package/dist/chunk-7QSEQLE4.js +212 -0
- package/dist/chunk-7QSEQLE4.js.map +1 -0
- package/dist/chunk-7S3BOXGS.js +212 -0
- package/dist/chunk-7S3BOXGS.js.map +1 -0
- package/dist/chunk-7SH3YCJ7.js +875 -0
- package/dist/chunk-7SH3YCJ7.js.map +1 -0
- package/dist/chunk-7Z3HADG2.js +141 -0
- package/dist/chunk-7Z3HADG2.js.map +1 -0
- package/dist/chunk-A7RMNSCW.js +250 -0
- package/dist/chunk-A7RMNSCW.js.map +1 -0
- package/dist/chunk-AAQMTCV5.js +875 -0
- package/dist/chunk-AAQMTCV5.js.map +1 -0
- package/dist/chunk-ABXVKRIH.js +63 -0
- package/dist/chunk-ABXVKRIH.js.map +1 -0
- package/dist/chunk-ACLZEBHM.js +251 -0
- package/dist/chunk-ACLZEBHM.js.map +1 -0
- package/dist/chunk-AEF5YUNM.js +212 -0
- package/dist/chunk-AEF5YUNM.js.map +1 -0
- package/dist/chunk-AHY4G53B.js +212 -0
- package/dist/chunk-AHY4G53B.js.map +1 -0
- package/dist/chunk-AIEBC7N6.js +211 -0
- package/dist/chunk-AIEBC7N6.js.map +1 -0
- package/dist/chunk-AMXXTGCE.js +143 -0
- package/dist/chunk-AMXXTGCE.js.map +1 -0
- package/dist/chunk-ANXMM5LH.js +2296 -0
- package/dist/chunk-ANXMM5LH.js.map +1 -0
- package/dist/chunk-ASADUYXC.js +141 -0
- package/dist/chunk-ASADUYXC.js.map +1 -0
- package/dist/chunk-BDSJ5P63.js +49 -0
- package/dist/chunk-BDSJ5P63.js.map +1 -0
- package/dist/chunk-BGTUC3AF.js +141 -0
- package/dist/chunk-BGTUC3AF.js.map +1 -0
- package/dist/chunk-BJ5IIEVM.js +141 -0
- package/dist/chunk-BJ5IIEVM.js.map +1 -0
- package/dist/chunk-BPRHSATO.js +127 -0
- package/dist/chunk-BPRHSATO.js.map +1 -0
- package/dist/chunk-BSSE7DI3.js +257 -0
- package/dist/chunk-BSSE7DI3.js.map +1 -0
- package/dist/chunk-C2TFELML.js +257 -0
- package/dist/chunk-C2TFELML.js.map +1 -0
- package/dist/chunk-CBLGPZ6N.js +108 -0
- package/dist/chunk-CBLGPZ6N.js.map +1 -0
- package/dist/chunk-CDRAINRR.js +143 -0
- package/dist/chunk-CDRAINRR.js.map +1 -0
- package/dist/chunk-CDYJDIZL.js +100 -0
- package/dist/chunk-CDYJDIZL.js.map +1 -0
- package/dist/chunk-CKLBKRDB.js +212 -0
- package/dist/chunk-CKLBKRDB.js.map +1 -0
- package/dist/chunk-CNBENNSA.js +141 -0
- package/dist/chunk-CNBENNSA.js.map +1 -0
- package/dist/chunk-CTAGQUXS.js +213 -0
- package/dist/chunk-CTAGQUXS.js.map +1 -0
- package/dist/chunk-CZNTYDII.js +141 -0
- package/dist/chunk-CZNTYDII.js.map +1 -0
- package/dist/chunk-D246WRFL.js +108 -0
- package/dist/chunk-D246WRFL.js.map +1 -0
- package/dist/chunk-D3CVJAPF.js +143 -0
- package/dist/chunk-D3CVJAPF.js.map +1 -0
- package/dist/chunk-DBEZZTKI.js +63 -0
- package/dist/chunk-DBEZZTKI.js.map +1 -0
- package/dist/chunk-DI4EC4C5.js +108 -0
- package/dist/chunk-DI4EC4C5.js.map +1 -0
- package/dist/chunk-DMYFV67U.js +108 -0
- package/dist/chunk-DMYFV67U.js.map +1 -0
- package/dist/chunk-DOTVUBGL.js +37 -0
- package/dist/chunk-DOTVUBGL.js.map +1 -0
- package/dist/chunk-DOYWQVTM.js +2296 -0
- package/dist/chunk-DOYWQVTM.js.map +1 -0
- package/dist/chunk-DPSCMWIB.js +49 -0
- package/dist/chunk-DPSCMWIB.js.map +1 -0
- package/dist/chunk-DRM4YQL3.js +108 -0
- package/dist/chunk-DRM4YQL3.js.map +1 -0
- package/dist/chunk-DVZP6PO3.js +257 -0
- package/dist/chunk-DVZP6PO3.js.map +1 -0
- package/dist/chunk-EE5JCC2N.js +3629 -0
- package/dist/chunk-EE5JCC2N.js.map +1 -0
- package/dist/chunk-EED2CWB3.js +141 -0
- package/dist/chunk-EED2CWB3.js.map +1 -0
- package/dist/chunk-EOMPNXYW.js +141 -0
- package/dist/chunk-EOMPNXYW.js.map +1 -0
- package/dist/chunk-ESE4IOXB.js +101 -0
- package/dist/chunk-ESE4IOXB.js.map +1 -0
- package/dist/chunk-EVCNR7M7.js +150 -0
- package/dist/chunk-EVCNR7M7.js.map +1 -0
- package/dist/chunk-EXVWVGQ3.js +108 -0
- package/dist/chunk-EXVWVGQ3.js.map +1 -0
- package/dist/chunk-EY4IMAYQ.js +108 -0
- package/dist/chunk-EY4IMAYQ.js.map +1 -0
- package/dist/chunk-F4H73EBR.js +2296 -0
- package/dist/chunk-F4H73EBR.js.map +1 -0
- package/dist/chunk-F5GW75SB.js +37 -0
- package/dist/chunk-F5GW75SB.js.map +1 -0
- package/dist/chunk-FB2DC3ZK.js +250 -0
- package/dist/chunk-FB2DC3ZK.js.map +1 -0
- package/dist/chunk-FF7ZGRIB.js +108 -0
- package/dist/chunk-FF7ZGRIB.js.map +1 -0
- package/dist/chunk-FGNBG722.js +108 -0
- package/dist/chunk-FGNBG722.js.map +1 -0
- package/dist/chunk-FJ4YMYZH.js +257 -0
- package/dist/chunk-FJ4YMYZH.js.map +1 -0
- package/dist/chunk-FJNLD4NH.js +150 -0
- package/dist/chunk-FJNLD4NH.js.map +1 -0
- package/dist/chunk-FLS3MUW7.js +252 -0
- package/dist/chunk-FLS3MUW7.js.map +1 -0
- package/dist/chunk-FPG5UDK3.js +212 -0
- package/dist/chunk-FPG5UDK3.js.map +1 -0
- package/dist/chunk-FPPTWXIF.js +108 -0
- package/dist/chunk-FPPTWXIF.js.map +1 -0
- package/dist/chunk-G5EM47DR.js +127 -0
- package/dist/chunk-G5EM47DR.js.map +1 -0
- package/dist/chunk-G6DGYERB.js +108 -0
- package/dist/chunk-G6DGYERB.js.map +1 -0
- package/dist/chunk-GFXXZQRQ.js +150 -0
- package/dist/chunk-GFXXZQRQ.js.map +1 -0
- package/dist/chunk-GIG7IMSP.js +141 -0
- package/dist/chunk-GIG7IMSP.js.map +1 -0
- package/dist/chunk-GSJZA53J.js +213 -0
- package/dist/chunk-GSJZA53J.js.map +1 -0
- package/dist/chunk-GUCQ4F2G.js +49 -0
- package/dist/chunk-GUCQ4F2G.js.map +1 -0
- package/dist/chunk-GX6VTQVX.js +211 -0
- package/dist/chunk-GX6VTQVX.js.map +1 -0
- package/dist/chunk-GZNIZX63.js +108 -0
- package/dist/chunk-GZNIZX63.js.map +1 -0
- package/dist/chunk-H4SQSFJ7.js +63 -0
- package/dist/chunk-H4SQSFJ7.js.map +1 -0
- package/dist/chunk-HFFYGGBO.js +252 -0
- package/dist/chunk-HFFYGGBO.js.map +1 -0
- package/dist/chunk-HGM2CICP.js +212 -0
- package/dist/chunk-HGM2CICP.js.map +1 -0
- package/dist/chunk-HLR7FF2K.js +211 -0
- package/dist/chunk-HLR7FF2K.js.map +1 -0
- package/dist/chunk-HP3DEVBA.js +141 -0
- package/dist/chunk-HP3DEVBA.js.map +1 -0
- package/dist/chunk-HTAWLIFJ.js +3629 -0
- package/dist/chunk-HTAWLIFJ.js.map +1 -0
- package/dist/chunk-HTZUI3AR.js +212 -0
- package/dist/chunk-HTZUI3AR.js.map +1 -0
- package/dist/chunk-HZGDXEM3.js +63 -0
- package/dist/chunk-HZGDXEM3.js.map +1 -0
- package/dist/chunk-ICBCEIZZ.js +212 -0
- package/dist/chunk-ICBCEIZZ.js.map +1 -0
- package/dist/chunk-IEJJYHZZ.js +108 -0
- package/dist/chunk-IEJJYHZZ.js.map +1 -0
- package/dist/chunk-IEXGTZFG.js +37 -0
- package/dist/chunk-IEXGTZFG.js.map +1 -0
- package/dist/chunk-ILJFYWLB.js +353 -0
- package/dist/chunk-ILJFYWLB.js.map +1 -0
- package/dist/chunk-IM3YUUBE.js +257 -0
- package/dist/chunk-IM3YUUBE.js.map +1 -0
- package/dist/chunk-IODNITVN.js +127 -0
- package/dist/chunk-IODNITVN.js.map +1 -0
- package/dist/chunk-IRJC5VRG.js +212 -0
- package/dist/chunk-IRJC5VRG.js.map +1 -0
- package/dist/chunk-ISLACP6M.js +63 -0
- package/dist/chunk-ISLACP6M.js.map +1 -0
- package/dist/chunk-ITM2OXYW.js +143 -0
- package/dist/chunk-ITM2OXYW.js.map +1 -0
- package/dist/chunk-IWOZXJJF.js +108 -0
- package/dist/chunk-IWOZXJJF.js.map +1 -0
- package/dist/chunk-IZG7VX7U.js +3629 -0
- package/dist/chunk-IZG7VX7U.js.map +1 -0
- package/dist/chunk-IZPKXC5T.js +108 -0
- package/dist/chunk-IZPKXC5T.js.map +1 -0
- package/dist/chunk-J77O43SY.js +263 -0
- package/dist/chunk-J77O43SY.js.map +1 -0
- package/dist/chunk-JDIUA4L5.js +141 -0
- package/dist/chunk-JDIUA4L5.js.map +1 -0
- package/dist/chunk-JFXEBKE5.js +141 -0
- package/dist/chunk-JFXEBKE5.js.map +1 -0
- package/dist/chunk-JKFK7BHM.js +108 -0
- package/dist/chunk-JKFK7BHM.js.map +1 -0
- package/dist/chunk-JLDIEGDJ.js +38 -0
- package/dist/chunk-JLDIEGDJ.js.map +1 -0
- package/dist/chunk-JO5SBPNS.js +109 -0
- package/dist/chunk-JO5SBPNS.js.map +1 -0
- package/dist/chunk-JOQA6SDG.js +38 -0
- package/dist/chunk-JOQA6SDG.js.map +1 -0
- package/dist/chunk-JUKLHM7G.js +108 -0
- package/dist/chunk-JUKLHM7G.js.map +1 -0
- package/dist/chunk-K7DXQUWY.js +141 -0
- package/dist/chunk-K7DXQUWY.js.map +1 -0
- package/dist/chunk-KBVUDACJ.js +212 -0
- package/dist/chunk-KBVUDACJ.js.map +1 -0
- package/dist/chunk-KC2DY22D.js +141 -0
- package/dist/chunk-KC2DY22D.js.map +1 -0
- package/dist/chunk-KDYHX27X.js +108 -0
- package/dist/chunk-KDYHX27X.js.map +1 -0
- package/dist/chunk-KGJUIHQK.js +127 -0
- package/dist/chunk-KGJUIHQK.js.map +1 -0
- package/dist/chunk-KIKGZIYW.js +63 -0
- package/dist/chunk-KIKGZIYW.js.map +1 -0
- package/dist/chunk-KJU5OLS3.js +150 -0
- package/dist/chunk-KJU5OLS3.js.map +1 -0
- package/dist/chunk-KM2ZAN4M.js +257 -0
- package/dist/chunk-KM2ZAN4M.js.map +1 -0
- package/dist/chunk-KY2ZDGIF.js +141 -0
- package/dist/chunk-KY2ZDGIF.js.map +1 -0
- package/dist/chunk-KYCICVKS.js +141 -0
- package/dist/chunk-KYCICVKS.js.map +1 -0
- package/dist/chunk-KZZPBI6J.js +108 -0
- package/dist/chunk-KZZPBI6J.js.map +1 -0
- package/dist/chunk-L5CUEXS7.js +108 -0
- package/dist/chunk-L5CUEXS7.js.map +1 -0
- package/dist/chunk-L6SPTHRK.js +63 -0
- package/dist/chunk-L6SPTHRK.js.map +1 -0
- package/dist/chunk-L7CPEX5Q.js +212 -0
- package/dist/chunk-L7CPEX5Q.js.map +1 -0
- package/dist/chunk-L7LRX5XU.js +2296 -0
- package/dist/chunk-L7LRX5XU.js.map +1 -0
- package/dist/chunk-LKVGVLCW.js +844 -0
- package/dist/chunk-LKVGVLCW.js.map +1 -0
- package/dist/chunk-LQYA5NK2.js +108 -0
- package/dist/chunk-LQYA5NK2.js.map +1 -0
- package/dist/chunk-M2YX7FI7.js +141 -0
- package/dist/chunk-M2YX7FI7.js.map +1 -0
- package/dist/chunk-M2ZETO4K.js +127 -0
- package/dist/chunk-M2ZETO4K.js.map +1 -0
- package/dist/chunk-M6MAOPX3.js +108 -0
- package/dist/chunk-M6MAOPX3.js.map +1 -0
- package/dist/chunk-M7IWXN2K.js +211 -0
- package/dist/chunk-M7IWXN2K.js.map +1 -0
- package/dist/chunk-MEOSGIZR.js +127 -0
- package/dist/chunk-MEOSGIZR.js.map +1 -0
- package/dist/chunk-MFUFGYIO.js +127 -0
- package/dist/chunk-MFUFGYIO.js.map +1 -0
- package/dist/chunk-MRTDMFMC.js +257 -0
- package/dist/chunk-MRTDMFMC.js.map +1 -0
- package/dist/chunk-MRUU7EZF.js +212 -0
- package/dist/chunk-MRUU7EZF.js.map +1 -0
- package/dist/chunk-MV35VQI2.js +37 -0
- package/dist/chunk-MV35VQI2.js.map +1 -0
- package/dist/chunk-MWUMNQPB.js +63 -0
- package/dist/chunk-MWUMNQPB.js.map +1 -0
- package/dist/chunk-MZXB5IJP.js +141 -0
- package/dist/chunk-MZXB5IJP.js.map +1 -0
- package/dist/chunk-N4GMCDSM.js +224 -0
- package/dist/chunk-N4GMCDSM.js.map +1 -0
- package/dist/chunk-NB7U63VS.js +141 -0
- package/dist/chunk-NB7U63VS.js.map +1 -0
- package/dist/chunk-NF5DG7TF.js +3629 -0
- package/dist/chunk-NF5DG7TF.js.map +1 -0
- package/dist/chunk-NGAB4S4A.js +63 -0
- package/dist/chunk-NGAB4S4A.js.map +1 -0
- package/dist/chunk-NJ3KYZJZ.js +141 -0
- package/dist/chunk-NJ3KYZJZ.js.map +1 -0
- package/dist/chunk-NPOOQ65V.js +127 -0
- package/dist/chunk-NPOOQ65V.js.map +1 -0
- package/dist/chunk-NQNVZ2Y2.js +127 -0
- package/dist/chunk-NQNVZ2Y2.js.map +1 -0
- package/dist/chunk-NRTH44GV.js +63 -0
- package/dist/chunk-NRTH44GV.js.map +1 -0
- package/dist/chunk-NSN2ONFI.js +212 -0
- package/dist/chunk-NSN2ONFI.js.map +1 -0
- package/dist/chunk-NW5PDW5B.js +143 -0
- package/dist/chunk-NW5PDW5B.js.map +1 -0
- package/dist/chunk-NZFOINXV.js +212 -0
- package/dist/chunk-NZFOINXV.js.map +1 -0
- package/dist/chunk-O4IEY4EN.js +876 -0
- package/dist/chunk-O4IEY4EN.js.map +1 -0
- package/dist/chunk-O6RHDLE7.js +141 -0
- package/dist/chunk-O6RHDLE7.js.map +1 -0
- package/dist/chunk-OGSXDW7D.js +108 -0
- package/dist/chunk-OGSXDW7D.js.map +1 -0
- package/dist/chunk-OHYGCU53.js +141 -0
- package/dist/chunk-OHYGCU53.js.map +1 -0
- package/dist/chunk-OLV63UML.js +127 -0
- package/dist/chunk-OLV63UML.js.map +1 -0
- package/dist/chunk-ORR54EIG.js +212 -0
- package/dist/chunk-ORR54EIG.js.map +1 -0
- package/dist/chunk-OUK5KBFP.js +129 -0
- package/dist/chunk-OUK5KBFP.js.map +1 -0
- package/dist/chunk-OWG2UJNF.js +150 -0
- package/dist/chunk-OWG2UJNF.js.map +1 -0
- package/dist/chunk-OXSSHXEW.js +875 -0
- package/dist/chunk-OXSSHXEW.js.map +1 -0
- package/dist/chunk-P53JJSIX.js +212 -0
- package/dist/chunk-P53JJSIX.js.map +1 -0
- package/dist/chunk-PJOGAA4H.js +141 -0
- package/dist/chunk-PJOGAA4H.js.map +1 -0
- package/dist/chunk-PTADNY4J.js +212 -0
- package/dist/chunk-PTADNY4J.js.map +1 -0
- package/dist/chunk-Q3VVCDVP.js +127 -0
- package/dist/chunk-Q3VVCDVP.js.map +1 -0
- package/dist/chunk-QF5ASUBG.js +3629 -0
- package/dist/chunk-QF5ASUBG.js.map +1 -0
- package/dist/chunk-QFZXB4CD.js +108 -0
- package/dist/chunk-QFZXB4CD.js.map +1 -0
- package/dist/chunk-QJN22YYL.js +128 -0
- package/dist/chunk-QJN22YYL.js.map +1 -0
- package/dist/chunk-QKA7H4EX.js +37 -0
- package/dist/chunk-QKA7H4EX.js.map +1 -0
- package/dist/chunk-QKQG47IV.js +82 -0
- package/dist/chunk-QKQG47IV.js.map +1 -0
- package/dist/chunk-QMBWCVMY.js +108 -0
- package/dist/chunk-QMBWCVMY.js.map +1 -0
- package/dist/chunk-QS2I4PG7.js +212 -0
- package/dist/chunk-QS2I4PG7.js.map +1 -0
- package/dist/chunk-QTN7QLML.js +63 -0
- package/dist/chunk-QTN7QLML.js.map +1 -0
- package/dist/chunk-QYKEGDLO.js +224 -0
- package/dist/chunk-QYKEGDLO.js.map +1 -0
- package/dist/chunk-RDJOMUZH.js +211 -0
- package/dist/chunk-RDJOMUZH.js.map +1 -0
- package/dist/chunk-RGPLJJ2Y.js +141 -0
- package/dist/chunk-RGPLJJ2Y.js.map +1 -0
- package/dist/chunk-RJTRSA4P.js +49 -0
- package/dist/chunk-RJTRSA4P.js.map +1 -0
- package/dist/chunk-RQXQFLB4.js +63 -0
- package/dist/chunk-RQXQFLB4.js.map +1 -0
- package/dist/chunk-RS3YOF5F.js +108 -0
- package/dist/chunk-RS3YOF5F.js.map +1 -0
- package/dist/chunk-RTUI55OW.js +212 -0
- package/dist/chunk-RTUI55OW.js.map +1 -0
- package/dist/chunk-RVARUZVC.js +27 -0
- package/dist/chunk-RVARUZVC.js.map +1 -0
- package/dist/chunk-RVFAWL3I.js +141 -0
- package/dist/chunk-RVFAWL3I.js.map +1 -0
- package/dist/chunk-RYKWAX5X.js +63 -0
- package/dist/chunk-RYKWAX5X.js.map +1 -0
- package/dist/chunk-S5CR7IEA.js +2296 -0
- package/dist/chunk-S5CR7IEA.js.map +1 -0
- package/dist/chunk-S6N5P5OD.js +212 -0
- package/dist/chunk-S6N5P5OD.js.map +1 -0
- package/dist/chunk-SA2LSZDP.js +252 -0
- package/dist/chunk-SA2LSZDP.js.map +1 -0
- package/dist/chunk-SGICH6RI.js +213 -0
- package/dist/chunk-SGICH6RI.js.map +1 -0
- package/dist/chunk-SIX7XLAC.js +49 -0
- package/dist/chunk-SIX7XLAC.js.map +1 -0
- package/dist/chunk-SIZI2YWP.js +212 -0
- package/dist/chunk-SIZI2YWP.js.map +1 -0
- package/dist/chunk-SKRS6PSA.js +141 -0
- package/dist/chunk-SKRS6PSA.js.map +1 -0
- package/dist/chunk-SLWMHHRZ.js +141 -0
- package/dist/chunk-SLWMHHRZ.js.map +1 -0
- package/dist/chunk-SSOJ2LOM.js +141 -0
- package/dist/chunk-SSOJ2LOM.js.map +1 -0
- package/dist/chunk-SVU7AMXV.js +141 -0
- package/dist/chunk-SVU7AMXV.js.map +1 -0
- package/dist/chunk-THZXOHDJ.js +141 -0
- package/dist/chunk-THZXOHDJ.js.map +1 -0
- package/dist/chunk-TLC6WXQ6.js +37 -0
- package/dist/chunk-TLC6WXQ6.js.map +1 -0
- package/dist/chunk-TOTKLZTZ.js +49 -0
- package/dist/chunk-TOTKLZTZ.js.map +1 -0
- package/dist/chunk-TSAG437R.js +49 -0
- package/dist/chunk-TSAG437R.js.map +1 -0
- package/dist/chunk-TTEMP3QU.js +108 -0
- package/dist/chunk-TTEMP3QU.js.map +1 -0
- package/dist/chunk-TXNXFHTS.js +63 -0
- package/dist/chunk-TXNXFHTS.js.map +1 -0
- package/dist/chunk-U7OZK37L.js +63 -0
- package/dist/chunk-U7OZK37L.js.map +1 -0
- package/dist/chunk-UB7MM3A3.js +108 -0
- package/dist/chunk-UB7MM3A3.js.map +1 -0
- package/dist/chunk-UBBJF27D.js +127 -0
- package/dist/chunk-UBBJF27D.js.map +1 -0
- package/dist/chunk-UF4HNAIE.js +108 -0
- package/dist/chunk-UF4HNAIE.js.map +1 -0
- package/dist/chunk-UF7UWXSC.js +127 -0
- package/dist/chunk-UF7UWXSC.js.map +1 -0
- package/dist/chunk-UHLTNS5S.js +2296 -0
- package/dist/chunk-UHLTNS5S.js.map +1 -0
- package/dist/chunk-ULTQZ5FS.js +63 -0
- package/dist/chunk-ULTQZ5FS.js.map +1 -0
- package/dist/chunk-URVGL7OD.js +2296 -0
- package/dist/chunk-URVGL7OD.js.map +1 -0
- package/dist/chunk-USQFD6IR.js +63 -0
- package/dist/chunk-USQFD6IR.js.map +1 -0
- package/dist/chunk-UVPSXDVG.js +100 -0
- package/dist/chunk-UVPSXDVG.js.map +1 -0
- package/dist/chunk-UVURDTXJ.js +212 -0
- package/dist/chunk-UVURDTXJ.js.map +1 -0
- package/dist/chunk-V2QIYGY7.js +127 -0
- package/dist/chunk-V2QIYGY7.js.map +1 -0
- package/dist/chunk-VCE2DP4V.js +100 -0
- package/dist/chunk-VCE2DP4V.js.map +1 -0
- package/dist/chunk-VGCTU7HB.js +127 -0
- package/dist/chunk-VGCTU7HB.js.map +1 -0
- package/dist/chunk-VR7OODCZ.js +150 -0
- package/dist/chunk-VR7OODCZ.js.map +1 -0
- package/dist/chunk-VVJ7Z3KU.js +143 -0
- package/dist/chunk-VVJ7Z3KU.js.map +1 -0
- package/dist/chunk-VVVHFBW7.js +127 -0
- package/dist/chunk-VVVHFBW7.js.map +1 -0
- package/dist/chunk-VXOIIFIY.js +37 -0
- package/dist/chunk-VXOIIFIY.js.map +1 -0
- package/dist/chunk-W3A6JEOD.js +224 -0
- package/dist/chunk-W3A6JEOD.js.map +1 -0
- package/dist/chunk-W4BQSWJN.js +212 -0
- package/dist/chunk-W4BQSWJN.js.map +1 -0
- package/dist/chunk-WJK2VUHR.js +65 -0
- package/dist/chunk-WJK2VUHR.js.map +1 -0
- package/dist/chunk-WPBZEYKB.js +212 -0
- package/dist/chunk-WPBZEYKB.js.map +1 -0
- package/dist/chunk-WV2RUP2Y.js +141 -0
- package/dist/chunk-WV2RUP2Y.js.map +1 -0
- package/dist/chunk-WXVV7KLP.js +127 -0
- package/dist/chunk-WXVV7KLP.js.map +1 -0
- package/dist/chunk-X3BV2HV3.js +212 -0
- package/dist/chunk-X3BV2HV3.js.map +1 -0
- package/dist/chunk-X6E5Y3LR.js +141 -0
- package/dist/chunk-X6E5Y3LR.js.map +1 -0
- package/dist/chunk-X6FBYNQG.js +108 -0
- package/dist/chunk-X6FBYNQG.js.map +1 -0
- package/dist/chunk-X73K44QV.js +49 -0
- package/dist/chunk-X73K44QV.js.map +1 -0
- package/dist/chunk-XC4OHJZG.js +250 -0
- package/dist/chunk-XC4OHJZG.js.map +1 -0
- package/dist/chunk-XDDZHBM4.js +101 -0
- package/dist/chunk-XDDZHBM4.js.map +1 -0
- package/dist/chunk-XEPPP6D4.js +252 -0
- package/dist/chunk-XEPPP6D4.js.map +1 -0
- package/dist/chunk-XG6O7CXO.js +141 -0
- package/dist/chunk-XG6O7CXO.js.map +1 -0
- package/dist/chunk-XN5HKZNZ.js +63 -0
- package/dist/chunk-XN5HKZNZ.js.map +1 -0
- package/dist/chunk-XPL5VFRD.js +224 -0
- package/dist/chunk-XPL5VFRD.js.map +1 -0
- package/dist/chunk-XSIVI53W.js +212 -0
- package/dist/chunk-XSIVI53W.js.map +1 -0
- package/dist/chunk-XU42NMC2.js +37 -0
- package/dist/chunk-XU42NMC2.js.map +1 -0
- package/dist/chunk-XWKRVTOF.js +141 -0
- package/dist/chunk-XWKRVTOF.js.map +1 -0
- package/dist/chunk-XWZ4TDO5.js +108 -0
- package/dist/chunk-XWZ4TDO5.js.map +1 -0
- package/dist/chunk-XX4L6GVN.js +63 -0
- package/dist/chunk-XX4L6GVN.js.map +1 -0
- package/dist/chunk-XXGZMUVM.js +63 -0
- package/dist/chunk-XXGZMUVM.js.map +1 -0
- package/dist/chunk-Y4HM4Z3B.js +108 -0
- package/dist/chunk-Y4HM4Z3B.js.map +1 -0
- package/dist/chunk-Y5QJD3KW.js +108 -0
- package/dist/chunk-Y5QJD3KW.js.map +1 -0
- package/dist/chunk-YNFLM23N.js +108 -0
- package/dist/chunk-YNFLM23N.js.map +1 -0
- package/dist/chunk-YPRAHGPU.js +150 -0
- package/dist/chunk-YPRAHGPU.js.map +1 -0
- package/dist/chunk-YURQ7MSJ.js +108 -0
- package/dist/chunk-YURQ7MSJ.js.map +1 -0
- package/dist/chunk-YVSUXU5I.js +141 -0
- package/dist/chunk-YVSUXU5I.js.map +1 -0
- package/dist/chunk-YXEH4FU4.js +141 -0
- package/dist/chunk-YXEH4FU4.js.map +1 -0
- package/dist/chunk-Z4Q3W7CZ.js +868 -0
- package/dist/chunk-Z4Q3W7CZ.js.map +1 -0
- package/dist/chunk-ZAKHKJLN.js +65 -0
- package/dist/chunk-ZAKHKJLN.js.map +1 -0
- package/dist/chunk-ZE2A3A2S.js +224 -0
- package/dist/chunk-ZE2A3A2S.js.map +1 -0
- package/dist/chunk-ZFHH2EIQ.js +126 -0
- package/dist/chunk-ZFHH2EIQ.js.map +1 -0
- package/dist/chunk-ZL4VSCCE.js +224 -0
- package/dist/chunk-ZL4VSCCE.js.map +1 -0
- package/dist/chunk-ZN3N7CZK.js +141 -0
- package/dist/chunk-ZN3N7CZK.js.map +1 -0
- package/dist/chunk-ZOZ75ANX.js +2296 -0
- package/dist/chunk-ZOZ75ANX.js.map +1 -0
- package/dist/chunk-ZPSNQP7M.js +141 -0
- package/dist/chunk-ZPSNQP7M.js.map +1 -0
- package/dist/chunk-ZW4AXQU4.js +141 -0
- package/dist/chunk-ZW4AXQU4.js.map +1 -0
- package/dist/chunk-ZX3CUM6K.js +212 -0
- package/dist/chunk-ZX3CUM6K.js.map +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +11 -11
- package/dist/components/AddressContainer/EVMAddressContainer.js +9 -9
- package/dist/components/AddressContainer/addressSwitcher.js +7 -7
- package/dist/components/AddressContainer/addressView.js +6 -6
- package/dist/components/AddressContainer/label.js +3 -3
- package/dist/components/Charts/PreviewChartTemplate.js +2 -2
- package/dist/components/Charts/StockChartTemplate.js +2 -2
- package/dist/components/CopyButton/index.js +2 -2
- package/dist/components/CountDown/index.js +3 -3
- package/dist/components/DownloadCSV/index.js +3 -3
- package/dist/components/GasPriceDropdown/index.d.ts +5 -2
- package/dist/components/GasPriceDropdown/index.js +9 -7
- package/dist/components/GasPriceDropdown/index.js.map +1 -1
- package/dist/components/IncreasePercent/Icons.d.ts +6 -0
- package/dist/components/IncreasePercent/Icons.js +9 -0
- package/dist/components/IncreasePercent/Icons.js.map +1 -0
- package/dist/components/IncreasePercent/index.d.ts +20 -0
- package/dist/components/IncreasePercent/index.js +42 -0
- package/dist/components/IncreasePercent/index.js.map +1 -0
- package/dist/components/InfoIconWithTooltip/index.js +2 -2
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Price/index.js +2 -2
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Select/select.js +2 -2
- package/dist/components/Text/index.js +3 -3
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/TransactionAction/coreTransactionAction.js +11 -11
- package/dist/components/TransactionAction/evmTransactionAction.js +10 -10
- package/dist/utils/address.d.ts +23 -20
- package/dist/utils/address.js +7 -3
- package/dist/utils/hooks/useENS.js +5 -5
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/request.js +2 -2
- package/dist/utils/rpcRequest.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useENS
|
|
3
|
+
} from "./chunk-4WXBNSCI.js";
|
|
4
|
+
import {
|
|
5
|
+
ContractAddress,
|
|
6
|
+
ContractCreatedAddress,
|
|
7
|
+
CoreHexAddress,
|
|
8
|
+
InvalidAddress,
|
|
9
|
+
MyAddress,
|
|
10
|
+
PosAddress
|
|
11
|
+
} from "./chunk-ICBCEIZZ.js";
|
|
12
|
+
import {
|
|
13
|
+
RenderAddress
|
|
14
|
+
} from "./chunk-6FTTLWSN.js";
|
|
15
|
+
import {
|
|
16
|
+
formatAddress,
|
|
17
|
+
isCoreAddress,
|
|
18
|
+
isCoreContractAddress,
|
|
19
|
+
isZeroAddress
|
|
20
|
+
} from "./chunk-WKT3L6C4.js";
|
|
21
|
+
import {
|
|
22
|
+
getLabelInfo
|
|
23
|
+
} from "./chunk-72WUTI2U.js";
|
|
24
|
+
import {
|
|
25
|
+
getTranslations,
|
|
26
|
+
useGlobalData
|
|
27
|
+
} from "./chunk-HRW4BUP4.js";
|
|
28
|
+
|
|
29
|
+
// src/components/AddressContainer/CoreAddressContainer.tsx
|
|
30
|
+
import { memo } from "react";
|
|
31
|
+
import { withTranslation } from "react-i18next";
|
|
32
|
+
import _ from "lodash";
|
|
33
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
34
|
+
var parseProps = (props, globalData) => {
|
|
35
|
+
const {
|
|
36
|
+
alias,
|
|
37
|
+
ensInfo,
|
|
38
|
+
t,
|
|
39
|
+
showAddressLabel,
|
|
40
|
+
showNametag,
|
|
41
|
+
nametagInfo,
|
|
42
|
+
showENSLabel
|
|
43
|
+
} = props;
|
|
44
|
+
const value = props.value || "";
|
|
45
|
+
const cfxAddress = formatAddress(value, "base32");
|
|
46
|
+
let ENSMap = ensInfo || {};
|
|
47
|
+
const translations = getTranslations();
|
|
48
|
+
let aliasLabel = alias;
|
|
49
|
+
if (!alias && isZeroAddress(cfxAddress)) {
|
|
50
|
+
aliasLabel = t(translations.general.zeroAddress);
|
|
51
|
+
}
|
|
52
|
+
let prefixIcon = null;
|
|
53
|
+
let officalNametag = null;
|
|
54
|
+
let addressLabel = null;
|
|
55
|
+
let ENSLabel = null;
|
|
56
|
+
const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;
|
|
57
|
+
if (cfxAddress && showAddressLabel) {
|
|
58
|
+
const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
|
|
59
|
+
const gAddressLabel = addressLabels?.[cfxAddress];
|
|
60
|
+
if (gAddressLabel) {
|
|
61
|
+
const { label } = getLabelInfo(gAddressLabel, "tag");
|
|
62
|
+
addressLabel = label;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (cfxAddress && showNametag) {
|
|
66
|
+
const nametags = nametagInfo?.[cfxAddress];
|
|
67
|
+
if (nametags) {
|
|
68
|
+
const nametag = nametags?.nametag ?? "";
|
|
69
|
+
const { label } = getLabelInfo(nametag, "nametag");
|
|
70
|
+
officalNametag = label;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (showENSLabel && gENSLabel) {
|
|
74
|
+
const { label, icon } = getLabelInfo(gENSLabel, "ens");
|
|
75
|
+
ENSLabel = label;
|
|
76
|
+
prefixIcon = icon;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
alias: aliasLabel,
|
|
80
|
+
prefix: prefixIcon,
|
|
81
|
+
nametag: officalNametag,
|
|
82
|
+
addressLabel,
|
|
83
|
+
ENSLabel,
|
|
84
|
+
cfxAddress
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
var CoreAddressContainer = withTranslation()(
|
|
88
|
+
memo((props) => {
|
|
89
|
+
const { globalData } = useGlobalData();
|
|
90
|
+
const unnecessaryEns = props.ensInfo || props.showENSLabel === false;
|
|
91
|
+
const { ens } = useENS(unnecessaryEns ? null : props.value);
|
|
92
|
+
if (!props.value && !props.contractCreated) {
|
|
93
|
+
return /* @__PURE__ */ jsx(Fragment, { children: "--" });
|
|
94
|
+
}
|
|
95
|
+
const defaultProps = {
|
|
96
|
+
isFull: false,
|
|
97
|
+
isFullNameTag: false,
|
|
98
|
+
link: true,
|
|
99
|
+
isMe: false,
|
|
100
|
+
showIcon: true,
|
|
101
|
+
verify: false,
|
|
102
|
+
showAddressLabel: true,
|
|
103
|
+
showENSLabel: true,
|
|
104
|
+
showNametag: true,
|
|
105
|
+
ensInfo: ens
|
|
106
|
+
};
|
|
107
|
+
const mergeDefaultProps = _.assign({}, defaultProps, props);
|
|
108
|
+
const mergeParseProps = _.merge(
|
|
109
|
+
{},
|
|
110
|
+
mergeDefaultProps,
|
|
111
|
+
parseProps(mergeDefaultProps, globalData)
|
|
112
|
+
);
|
|
113
|
+
if (mergeParseProps.isPosAddress) {
|
|
114
|
+
return PosAddress(mergeParseProps);
|
|
115
|
+
}
|
|
116
|
+
if (!mergeParseProps.value && mergeParseProps.contractCreated) {
|
|
117
|
+
return ContractCreatedAddress({
|
|
118
|
+
...mergeParseProps,
|
|
119
|
+
outputType: "base32"
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
if (mergeParseProps.isEspaceAddress) {
|
|
123
|
+
return CoreHexAddress(mergeParseProps);
|
|
124
|
+
}
|
|
125
|
+
if (!isCoreAddress(mergeParseProps.value)) {
|
|
126
|
+
return InvalidAddress(mergeParseProps);
|
|
127
|
+
}
|
|
128
|
+
if (isCoreContractAddress(mergeParseProps.cfxAddress)) {
|
|
129
|
+
return ContractAddress(mergeParseProps);
|
|
130
|
+
}
|
|
131
|
+
if (mergeParseProps.isMe) {
|
|
132
|
+
return MyAddress(mergeParseProps);
|
|
133
|
+
}
|
|
134
|
+
return RenderAddress(mergeParseProps);
|
|
135
|
+
})
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
export {
|
|
139
|
+
CoreAddressContainer
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=chunk-EED2CWB3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AddressContainer/CoreAddressContainer.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { WithTranslation, withTranslation } from 'react-i18next';\nimport _ from 'lodash';\nimport {\n formatAddress,\n isCoreAddress,\n isCoreContractAddress,\n isZeroAddress,\n convertCheckSum,\n} from '../../utils/address';\nimport { useGlobalData, getTranslations } from '../../store';\nimport { LOCALSTORAGE_KEYS_MAP } from '../../utils/constants';\nimport { getLabelInfo } from './label';\nimport { useENS } from '../../utils/hooks/useENS';\n\nimport { RenderAddress } from './addressView';\nimport {\n ContractCreatedAddress,\n CoreHexAddress,\n InvalidAddress,\n ContractAddress,\n MyAddress,\n PosAddress,\n} from './addressSwitcher';\nimport { GlobalDataType } from 'src/store/types';\nimport { CoreAddressContainerProps } from './types';\n\nconst parseProps = (\n props: CoreAddressContainerProps & WithTranslation,\n globalData: GlobalDataType,\n) => {\n const {\n alias,\n ensInfo,\n t,\n showAddressLabel,\n showNametag,\n nametagInfo,\n showENSLabel,\n } = props;\n const value: string = props.value || '';\n const cfxAddress = formatAddress(value, 'base32');\n\n let ENSMap = ensInfo || {};\n\n const translations = getTranslations();\n\n let aliasLabel = alias;\n if (!alias && isZeroAddress(cfxAddress)) {\n aliasLabel = t(translations.general.zeroAddress);\n }\n\n let prefixIcon: React.ReactNode = null;\n // official name tag\n let officalNametag: React.ReactNode = null;\n // private name tag\n let addressLabel: React.ReactNode = null;\n // ens name tag\n let ENSLabel: React.ReactNode = null;\n // global ens name tag\n const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;\n\n if (cfxAddress && showAddressLabel) {\n // global private name tag\n const addressLabels = globalData?.[LOCALSTORAGE_KEYS_MAP.addressLabel];\n const gAddressLabel = addressLabels?.[cfxAddress];\n\n if (gAddressLabel) {\n const { label } = getLabelInfo(gAddressLabel, 'tag');\n addressLabel = label;\n }\n }\n\n if (cfxAddress && showNametag) {\n const nametags = nametagInfo?.[cfxAddress];\n\n if (nametags) {\n const nametag = nametags?.nametag ?? '';\n const { label } = getLabelInfo(nametag, 'nametag');\n officalNametag = label;\n }\n }\n\n if (showENSLabel && gENSLabel) {\n const { label, icon } = getLabelInfo(gENSLabel, 'ens');\n ENSLabel = label;\n prefixIcon = icon;\n }\n\n return {\n alias: aliasLabel,\n prefix: prefixIcon,\n nametag: officalNametag,\n addressLabel,\n ENSLabel,\n cfxAddress,\n };\n};\n\nexport const CoreAddressContainer = withTranslation()(\n memo((props: CoreAddressContainerProps & WithTranslation) => {\n const { globalData } = useGlobalData();\n\n // If the interface returns Ens content, there is no need to obtain it separately, or disable the display of Ens content (in most cases on the list page).\n const unnecessaryEns = props.ensInfo || props.showENSLabel === false;\n const { ens } = useENS(unnecessaryEns ? null : props.value);\n\n // If a txn receipt has no 'to' address or 'contractCreated', show -- for temp\n if (!props.value && !props.contractCreated) {\n return <>--</>;\n }\n\n const defaultProps = {\n isFull: false,\n isFullNameTag: false,\n link: true,\n isMe: false,\n showIcon: true,\n verify: false,\n showAddressLabel: true,\n showENSLabel: true,\n showNametag: true,\n ensInfo: ens,\n };\n\n const mergeDefaultProps = _.assign({}, defaultProps, props);\n\n const mergeParseProps = _.merge(\n {},\n mergeDefaultProps,\n parseProps(mergeDefaultProps, globalData),\n );\n\n if (mergeParseProps.isPosAddress) {\n return PosAddress(mergeParseProps);\n }\n\n if (!mergeParseProps.value && mergeParseProps.contractCreated) {\n return ContractCreatedAddress({\n ...mergeParseProps,\n outputType: 'base32',\n });\n }\n\n if (mergeParseProps.isEspaceAddress) {\n return CoreHexAddress(mergeParseProps);\n }\n\n if (!isCoreAddress(mergeParseProps.value)) {\n return InvalidAddress(mergeParseProps);\n }\n\n if (isCoreContractAddress(mergeParseProps.cfxAddress)) {\n return ContractAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isMe) {\n return MyAddress(mergeParseProps);\n }\n\n return RenderAddress(mergeParseProps);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB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
import {
|
|
5
|
+
ContractAddress,
|
|
6
|
+
ContractCreatedAddress,
|
|
7
|
+
CoreHexAddress,
|
|
8
|
+
InvalidAddress,
|
|
9
|
+
MyAddress,
|
|
10
|
+
PosAddress
|
|
11
|
+
} from "./chunk-X3BV2HV3.js";
|
|
12
|
+
import {
|
|
13
|
+
RenderAddress
|
|
14
|
+
} from "./chunk-KGJUIHQK.js";
|
|
15
|
+
import {
|
|
16
|
+
formatAddress,
|
|
17
|
+
isCoreAddress,
|
|
18
|
+
isCoreContractAddress,
|
|
19
|
+
isZeroAddress
|
|
20
|
+
} from "./chunk-IM3YUUBE.js";
|
|
21
|
+
import {
|
|
22
|
+
getLabelInfo
|
|
23
|
+
} from "./chunk-X73K44QV.js";
|
|
24
|
+
import {
|
|
25
|
+
getTranslations,
|
|
26
|
+
useGlobalData
|
|
27
|
+
} from "./chunk-QKQG47IV.js";
|
|
28
|
+
|
|
29
|
+
// src/components/AddressContainer/CoreAddressContainer.tsx
|
|
30
|
+
import { memo } from "react";
|
|
31
|
+
import { withTranslation } from "react-i18next";
|
|
32
|
+
import _ from "lodash";
|
|
33
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
34
|
+
var parseProps = (props, globalData) => {
|
|
35
|
+
const {
|
|
36
|
+
alias,
|
|
37
|
+
ensInfo,
|
|
38
|
+
t,
|
|
39
|
+
showAddressLabel,
|
|
40
|
+
showNametag,
|
|
41
|
+
nametagInfo,
|
|
42
|
+
showENSLabel
|
|
43
|
+
} = props;
|
|
44
|
+
const value = props.value || "";
|
|
45
|
+
const cfxAddress = formatAddress(value, "base32");
|
|
46
|
+
let ENSMap = ensInfo || {};
|
|
47
|
+
const translations = getTranslations();
|
|
48
|
+
let aliasLabel = alias;
|
|
49
|
+
if (!alias && isZeroAddress(cfxAddress)) {
|
|
50
|
+
aliasLabel = t(translations.general.zeroAddress);
|
|
51
|
+
}
|
|
52
|
+
let prefixIcon = null;
|
|
53
|
+
let officalNametag = null;
|
|
54
|
+
let addressLabel = null;
|
|
55
|
+
let ENSLabel = null;
|
|
56
|
+
const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;
|
|
57
|
+
if (cfxAddress && showAddressLabel) {
|
|
58
|
+
const addressLabels = globalData?.["CONFLUX_SCAN_ADDRESS_LABELS" /* addressLabel */];
|
|
59
|
+
const gAddressLabel = addressLabels?.[cfxAddress];
|
|
60
|
+
if (gAddressLabel) {
|
|
61
|
+
const { label } = getLabelInfo(gAddressLabel, "tag");
|
|
62
|
+
addressLabel = label;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (cfxAddress && showNametag) {
|
|
66
|
+
const nametags = nametagInfo?.[cfxAddress];
|
|
67
|
+
if (nametags) {
|
|
68
|
+
const nametag = nametags?.nametag ?? "";
|
|
69
|
+
const { label } = getLabelInfo(nametag, "nametag");
|
|
70
|
+
officalNametag = label;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (showENSLabel && gENSLabel) {
|
|
74
|
+
const { label, icon } = getLabelInfo(gENSLabel, "ens");
|
|
75
|
+
ENSLabel = label;
|
|
76
|
+
prefixIcon = icon;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
alias: aliasLabel,
|
|
80
|
+
prefix: prefixIcon,
|
|
81
|
+
nametag: officalNametag,
|
|
82
|
+
addressLabel,
|
|
83
|
+
ENSLabel,
|
|
84
|
+
cfxAddress
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
var CoreAddressContainer = withTranslation()(
|
|
88
|
+
memo((props) => {
|
|
89
|
+
const { globalData } = useGlobalData();
|
|
90
|
+
const unnecessaryEns = props.ensInfo || props.showENSLabel === false;
|
|
91
|
+
const { ens } = useENS(unnecessaryEns ? null : props.value);
|
|
92
|
+
if (!props.value && !props.contractCreated) {
|
|
93
|
+
return /* @__PURE__ */ jsx(Fragment, { children: "--" });
|
|
94
|
+
}
|
|
95
|
+
const defaultProps = {
|
|
96
|
+
isFull: false,
|
|
97
|
+
isFullNameTag: false,
|
|
98
|
+
link: true,
|
|
99
|
+
isMe: false,
|
|
100
|
+
showIcon: true,
|
|
101
|
+
verify: false,
|
|
102
|
+
showAddressLabel: true,
|
|
103
|
+
showENSLabel: true,
|
|
104
|
+
showNametag: true,
|
|
105
|
+
ensInfo: ens
|
|
106
|
+
};
|
|
107
|
+
const mergeDefaultProps = _.assign({}, defaultProps, props);
|
|
108
|
+
const mergeParseProps = _.merge(
|
|
109
|
+
{},
|
|
110
|
+
mergeDefaultProps,
|
|
111
|
+
parseProps(mergeDefaultProps, globalData)
|
|
112
|
+
);
|
|
113
|
+
if (mergeParseProps.isPosAddress) {
|
|
114
|
+
return PosAddress(mergeParseProps);
|
|
115
|
+
}
|
|
116
|
+
if (!mergeParseProps.value && mergeParseProps.contractCreated) {
|
|
117
|
+
return ContractCreatedAddress({
|
|
118
|
+
...mergeParseProps,
|
|
119
|
+
outputType: "base32"
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
if (mergeParseProps.isEspaceAddress) {
|
|
123
|
+
return CoreHexAddress(mergeParseProps);
|
|
124
|
+
}
|
|
125
|
+
if (!isCoreAddress(mergeParseProps.value)) {
|
|
126
|
+
return InvalidAddress(mergeParseProps);
|
|
127
|
+
}
|
|
128
|
+
if (isCoreContractAddress(mergeParseProps.cfxAddress)) {
|
|
129
|
+
return ContractAddress(mergeParseProps);
|
|
130
|
+
}
|
|
131
|
+
if (mergeParseProps.isMe) {
|
|
132
|
+
return MyAddress(mergeParseProps);
|
|
133
|
+
}
|
|
134
|
+
return RenderAddress(mergeParseProps);
|
|
135
|
+
})
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
export {
|
|
139
|
+
CoreAddressContainer
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=chunk-EOMPNXYW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AddressContainer/CoreAddressContainer.tsx"],"sourcesContent":["import { memo } from 'react';\nimport { WithTranslation, withTranslation } from 'react-i18next';\nimport _ from 'lodash';\nimport {\n formatAddress,\n isCoreAddress,\n isCoreContractAddress,\n isZeroAddress,\n convertCheckSum,\n} from '../../utils/address';\nimport { useGlobalData, getTranslations } from '../../store';\nimport { LOCALSTORAGE_KEYS_MAP } from '../../utils/constants';\nimport { getLabelInfo } from './label';\nimport { useENS } from '../../utils/hooks/useENS';\n\nimport { RenderAddress } from './addressView';\nimport {\n ContractCreatedAddress,\n CoreHexAddress,\n InvalidAddress,\n ContractAddress,\n MyAddress,\n PosAddress,\n} from './addressSwitcher';\nimport { GlobalDataType } from 'src/store/types';\nimport { CoreAddressContainerProps } from './types';\n\nconst parseProps = (\n props: CoreAddressContainerProps & WithTranslation,\n globalData: GlobalDataType,\n) => {\n const {\n alias,\n ensInfo,\n t,\n showAddressLabel,\n showNametag,\n nametagInfo,\n showENSLabel,\n } = props;\n const value: string = props.value || '';\n const cfxAddress = formatAddress(value, 'base32');\n\n let ENSMap = ensInfo || {};\n\n const translations = getTranslations();\n\n let aliasLabel = alias;\n if (!alias && isZeroAddress(cfxAddress)) {\n aliasLabel = t(translations.general.zeroAddress);\n }\n\n let prefixIcon: React.ReactNode = null;\n // official name tag\n let officalNametag: React.ReactNode = null;\n // private name tag\n let addressLabel: React.ReactNode = null;\n // ens name tag\n let ENSLabel: React.ReactNode = null;\n // global ens name tag\n const gENSLabel = cfxAddress && ENSMap[cfxAddress]?.name;\n\n if (cfxAddress && showAddressLabel) {\n // global private name tag\n const addressLabels = globalData?.[LOCALSTORAGE_KEYS_MAP.addressLabel];\n const gAddressLabel = addressLabels?.[cfxAddress];\n\n if (gAddressLabel) {\n const { label } = getLabelInfo(gAddressLabel, 'tag');\n addressLabel = label;\n }\n }\n\n if (cfxAddress && showNametag) {\n const nametags = nametagInfo?.[cfxAddress];\n\n if (nametags) {\n const nametag = nametags?.nametag ?? '';\n const { label } = getLabelInfo(nametag, 'nametag');\n officalNametag = label;\n }\n }\n\n if (showENSLabel && gENSLabel) {\n const { label, icon } = getLabelInfo(gENSLabel, 'ens');\n ENSLabel = label;\n prefixIcon = icon;\n }\n\n return {\n alias: aliasLabel,\n prefix: prefixIcon,\n nametag: officalNametag,\n addressLabel,\n ENSLabel,\n cfxAddress,\n };\n};\n\nexport const CoreAddressContainer = withTranslation()(\n memo((props: CoreAddressContainerProps & WithTranslation) => {\n const { globalData } = useGlobalData();\n\n // If the interface returns Ens content, there is no need to obtain it separately, or disable the display of Ens content (in most cases on the list page).\n const unnecessaryEns = props.ensInfo || props.showENSLabel === false;\n const { ens } = useENS(unnecessaryEns ? null : props.value);\n\n // If a txn receipt has no 'to' address or 'contractCreated', show -- for temp\n if (!props.value && !props.contractCreated) {\n return <>--</>;\n }\n\n const defaultProps = {\n isFull: false,\n isFullNameTag: false,\n link: true,\n isMe: false,\n showIcon: true,\n verify: false,\n showAddressLabel: true,\n showENSLabel: true,\n showNametag: true,\n ensInfo: ens,\n };\n\n const mergeDefaultProps = _.assign({}, defaultProps, props);\n\n const mergeParseProps = _.merge(\n {},\n mergeDefaultProps,\n parseProps(mergeDefaultProps, globalData),\n );\n\n if (mergeParseProps.isPosAddress) {\n return PosAddress(mergeParseProps);\n }\n\n if (!mergeParseProps.value && mergeParseProps.contractCreated) {\n return ContractCreatedAddress({\n ...mergeParseProps,\n outputType: 'base32',\n });\n }\n\n if (mergeParseProps.isEspaceAddress) {\n return CoreHexAddress(mergeParseProps);\n }\n\n if (!isCoreAddress(mergeParseProps.value)) {\n return InvalidAddress(mergeParseProps);\n }\n\n if (isCoreContractAddress(mergeParseProps.cfxAddress)) {\n return ContractAddress(mergeParseProps);\n }\n\n if (mergeParseProps.isMe) {\n return MyAddress(mergeParseProps);\n }\n\n return RenderAddress(mergeParseProps);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAA0B,uBAAuB;AACjD,OAAO,OAAO;AA2GD;AAlFb,IAAM,aAAa,CACjB,OACA,eACG;AAC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{
|
|
8
|
+
selectText
|
|
9
|
+
} from "./chunk-7SH3YCJ7.js";
|
|
10
|
+
|
|
11
|
+
// src/components/Text/index.tsx
|
|
12
|
+
import React from "react";
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var getTypeColor = (type) => {
|
|
16
|
+
const colors = {
|
|
17
|
+
default: "inherit",
|
|
18
|
+
primary: "#7cd77b",
|
|
19
|
+
secondary: "#666",
|
|
20
|
+
success: "#7cd77b",
|
|
21
|
+
warning: "#ffc438",
|
|
22
|
+
error: "#e15c56"
|
|
23
|
+
};
|
|
24
|
+
return colors[type] || colors.default;
|
|
25
|
+
};
|
|
26
|
+
var Text = React.memo(
|
|
27
|
+
({
|
|
28
|
+
className,
|
|
29
|
+
children,
|
|
30
|
+
maxWidth,
|
|
31
|
+
maxCount,
|
|
32
|
+
hoverValue,
|
|
33
|
+
hoverValueMaxCount: outerHoverValueMaxCount,
|
|
34
|
+
tag = "p",
|
|
35
|
+
type = "default",
|
|
36
|
+
hideTooltip = false,
|
|
37
|
+
...props
|
|
38
|
+
}) => {
|
|
39
|
+
const Component = tag;
|
|
40
|
+
const bp = useBreakpoint();
|
|
41
|
+
let child = children;
|
|
42
|
+
if (maxWidth === void 0 && maxCount && typeof children === "string") {
|
|
43
|
+
child = String.prototype.substr.call(children, 0, maxCount) + "...";
|
|
44
|
+
}
|
|
45
|
+
let textContent = hoverValue || children;
|
|
46
|
+
if (bp === "s" && typeof textContent === "string") {
|
|
47
|
+
const hoverValueMaxCount = outerHoverValueMaxCount || 34;
|
|
48
|
+
let textContentCopy = textContent;
|
|
49
|
+
let newTextContent = [];
|
|
50
|
+
let count = 0;
|
|
51
|
+
while (textContentCopy.length > hoverValueMaxCount) {
|
|
52
|
+
newTextContent.push(
|
|
53
|
+
/* @__PURE__ */ jsx("span", { children: textContentCopy.substr(0, hoverValueMaxCount) }, count)
|
|
54
|
+
);
|
|
55
|
+
newTextContent.push(/* @__PURE__ */ jsx("br", {}, `br${count}`));
|
|
56
|
+
textContentCopy = textContentCopy.substr(hoverValueMaxCount);
|
|
57
|
+
if (count > 3) {
|
|
58
|
+
textContentCopy = textContentCopy.substr(0, hoverValueMaxCount - 3) + "...";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
newTextContent.push(/* @__PURE__ */ jsx("span", { children: textContentCopy }, ++count));
|
|
62
|
+
textContent = newTextContent;
|
|
63
|
+
}
|
|
64
|
+
const tooltipText = !hideTooltip && React.createElement(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
onClick: (e) => {
|
|
68
|
+
e.preventDefault();
|
|
69
|
+
e.stopPropagation();
|
|
70
|
+
selectText(e.currentTarget);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
textContent
|
|
74
|
+
);
|
|
75
|
+
const p = { title: tooltipText };
|
|
76
|
+
return React.createElement(Tooltip, p, [
|
|
77
|
+
/* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
78
|
+
Component,
|
|
79
|
+
{
|
|
80
|
+
className: clsx(
|
|
81
|
+
"sirius-text truncate vertical-bottom",
|
|
82
|
+
"all-[a]:truncate all-[a]:vertical-bottom all-[a]:cursor-pointer all-[a:hover]:text-#0626ae",
|
|
83
|
+
className
|
|
84
|
+
),
|
|
85
|
+
style: {
|
|
86
|
+
maxWidth,
|
|
87
|
+
display: maxWidth === void 0 ? "inherit" : "inline-block",
|
|
88
|
+
color: getTypeColor(type)
|
|
89
|
+
},
|
|
90
|
+
...props,
|
|
91
|
+
children: child
|
|
92
|
+
}
|
|
93
|
+
) }, "text")
|
|
94
|
+
]);
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
Text
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=chunk-ESE4IOXB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Text/index.tsx"],"sourcesContent":["import React from 'react';\nimport clsx from 'clsx';\nimport { Tooltip } from '../Tooltip';\nimport { selectText } from '../../utils';\nimport { useBreakpoint } from '../../utils/media';\n\ntype NormalTypes =\n | 'default'\n | 'secondary'\n | 'success'\n | 'warning'\n | 'error'\n | 'primary';\n\ntype TextProps = {\n children?: React.ReactNode;\n maxWidth?: string;\n maxCount?: number;\n hoverValue?: React.ReactNode;\n hoverValueMaxCount?: number;\n tag?: 'p' | 'span';\n type?: NormalTypes;\n hideTooltip?: boolean;\n};\ntype NativeAttrs = Omit<React.HTMLAttributes<any>, keyof TextProps>;\n\nconst getTypeColor = (type: NormalTypes) => {\n const colors: { [key in NormalTypes]: string } = {\n default: 'inherit',\n primary: '#7cd77b',\n secondary: '#666',\n success: '#7cd77b',\n warning: '#ffc438',\n error: '#e15c56',\n };\n\n return colors[type] || colors.default;\n};\n\n// note:\n// 1. maxWidth priority is higher than maxCount\n// 2. maxCount only apply to string\n// 3. if hoverValue is provided, use hoverValue as Tooltip text, otherwise use children\n// if text of prop tooltip is provided, use as Tooltip text\nexport const Text = React.memo(\n ({\n className,\n children,\n maxWidth,\n maxCount,\n hoverValue,\n hoverValueMaxCount: outerHoverValueMaxCount,\n tag = 'p',\n type = 'default',\n hideTooltip = false,\n ...props\n }: NativeAttrs & TextProps) => {\n const Component = tag;\n const bp = useBreakpoint();\n let child: React.ReactNode = children;\n if (maxWidth === undefined && maxCount && typeof children === 'string') {\n child = String.prototype.substr.call(children, 0, maxCount) + '...';\n }\n\n let textContent = hoverValue || children;\n // 控制移动端字符串类型 tooltip 的长度\n // 这里有个问题,就是截断的位置可能是一个完整的单词,暂时没有办法处理,如果为了避免这种情况,需要由外面传入前对内容进行处理,比如设置固定宽度小于 24rem\n // @todo 后续可以试下读取文本长度,动态设置容器宽度值的方式,可以避免截断位置的问题\n if (bp === 's' && typeof textContent === 'string') {\n const hoverValueMaxCount = outerHoverValueMaxCount || 34; // default text count is 36\n let textContentCopy: string = textContent;\n let newTextContent: Array<React.ReactNode> = [];\n let count = 0;\n while (textContentCopy.length > hoverValueMaxCount) {\n newTextContent.push(\n <span key={count}>\n {textContentCopy.substr(0, hoverValueMaxCount)}\n </span>,\n );\n newTextContent.push(<br key={`br${count}`} />);\n textContentCopy = textContentCopy.substr(hoverValueMaxCount);\n // 防止文本过长的情况\n if (count > 3) {\n textContentCopy =\n textContentCopy.substr(0, hoverValueMaxCount - 3) + '...';\n }\n }\n newTextContent.push(<span key={++count}>{textContentCopy}</span>);\n textContent = newTextContent;\n }\n const tooltipText =\n !hideTooltip &&\n React.createElement(\n 'div',\n {\n onClick: e => {\n e.preventDefault();\n e.stopPropagation();\n selectText(e.currentTarget);\n },\n },\n textContent,\n );\n\n const p = { title: tooltipText };\n return React.createElement(Tooltip, p, [\n <span key=\"text\">\n <Component\n className={clsx(\n 'sirius-text truncate vertical-bottom',\n 'all-[a]:truncate all-[a]:vertical-bottom all-[a]:cursor-pointer all-[a:hover]:text-#0626ae',\n className,\n )}\n style={{\n maxWidth,\n display: maxWidth === undefined ? 'inherit' : 'inline-block',\n color: getTypeColor(type),\n }}\n {...props}\n >\n {child}\n </Component>\n </span>,\n ]);\n },\n);\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AA0EP;AAjDV,IAAM,eAAe,CAAC,SAAsB;AAC1C,QAAM,SAA2C;AAAA,IAC/C,SAAS;AAAA,IACT,SAAS;AAAA,IACT,WAAW;AAAA,IACX,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AAEA,SAAO,OAAO,IAAI,KAAK,OAAO;AAChC;AAOO,IAAM,OAAO,MAAM;AAAA,EACxB,CAAC;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,oBAAoB;AAAA,IACpB,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,GAAG;AAAA,EACL,MAA+B;AAC7B,UAAM,YAAY;AAClB,UAA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A,MACH,KAfQ,MAgBV;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Spin
|
|
3
|
+
} from "./chunk-XCKMXAL2.js";
|
|
4
|
+
import {
|
|
5
|
+
cn
|
|
6
|
+
} from "./chunk-LKVGVLCW.js";
|
|
7
|
+
|
|
8
|
+
// src/components/Modal/index.tsx
|
|
9
|
+
import { useEffect, useCallback, useMemo } from "react";
|
|
10
|
+
import ReactDOM from "react-dom";
|
|
11
|
+
import { X } from "lucide-react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var Backdrop = ({
|
|
14
|
+
onClick,
|
|
15
|
+
children,
|
|
16
|
+
className
|
|
17
|
+
}) => /* @__PURE__ */ jsx("div", { className, onClick, children });
|
|
18
|
+
var ModalContent = ({
|
|
19
|
+
containerClassName,
|
|
20
|
+
closable,
|
|
21
|
+
onClose,
|
|
22
|
+
children,
|
|
23
|
+
loading,
|
|
24
|
+
modalStyles
|
|
25
|
+
}) => /* @__PURE__ */ jsx(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: cn("relative bg-[#FFF] rounded shadow-lg", containerClassName),
|
|
29
|
+
tabIndex: -1,
|
|
30
|
+
style: modalStyles,
|
|
31
|
+
children: /* @__PURE__ */ jsxs(Spin, { spinning: loading, children: [
|
|
32
|
+
closable && /* @__PURE__ */ jsx(X, { className: "h-4 w-4 absolute right-5 top-5", onClick: onClose }),
|
|
33
|
+
/* @__PURE__ */ jsx("div", { className: "p-4", children })
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
var useEventListener = (eventName, handler, active) => {
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (active) {
|
|
40
|
+
const eventListener = (event) => handler(event);
|
|
41
|
+
document.addEventListener(eventName, eventListener);
|
|
42
|
+
return () => {
|
|
43
|
+
document.removeEventListener(eventName, eventListener);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}, [eventName, handler, active]);
|
|
47
|
+
};
|
|
48
|
+
var Modal = ({
|
|
49
|
+
open,
|
|
50
|
+
closeOnEsc = true,
|
|
51
|
+
closable = true,
|
|
52
|
+
preventScroll = true,
|
|
53
|
+
backdropClassName = "",
|
|
54
|
+
containerClassName = "",
|
|
55
|
+
onOpen = () => {
|
|
56
|
+
},
|
|
57
|
+
onClose,
|
|
58
|
+
children,
|
|
59
|
+
width = "600px",
|
|
60
|
+
maskClosable = true,
|
|
61
|
+
centered = true,
|
|
62
|
+
loading = false
|
|
63
|
+
}) => {
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
if (open) {
|
|
66
|
+
onOpen?.();
|
|
67
|
+
if (preventScroll) {
|
|
68
|
+
document.body.style.overflow = "hidden";
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
if (preventScroll) {
|
|
72
|
+
document.body.style.overflow = "";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return () => {
|
|
76
|
+
if (preventScroll) {
|
|
77
|
+
document.body.style.overflow = "";
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}, [open, onOpen, preventScroll]);
|
|
81
|
+
const handleKeyDown = useCallback(
|
|
82
|
+
(event) => {
|
|
83
|
+
if (event.key === "Escape" && closeOnEsc && onClose) {
|
|
84
|
+
onClose?.();
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
[closeOnEsc, onClose]
|
|
88
|
+
);
|
|
89
|
+
const handleClickOutside = useCallback(() => {
|
|
90
|
+
if (onClose && maskClosable) {
|
|
91
|
+
onClose?.();
|
|
92
|
+
}
|
|
93
|
+
}, [onClose, maskClosable]);
|
|
94
|
+
const handleBackdropClick = useCallback(
|
|
95
|
+
(event) => {
|
|
96
|
+
if (maskClosable && event.target === event.currentTarget && onClose) {
|
|
97
|
+
onClose?.();
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
[maskClosable, onClose]
|
|
101
|
+
);
|
|
102
|
+
const modalStyles = useMemo(
|
|
103
|
+
() => ({
|
|
104
|
+
width: typeof width === "string" ? width : `${width}px`,
|
|
105
|
+
margin: centered ? "auto" : void 0
|
|
106
|
+
}),
|
|
107
|
+
[width, centered]
|
|
108
|
+
);
|
|
109
|
+
useEventListener(
|
|
110
|
+
"keydown",
|
|
111
|
+
handleKeyDown,
|
|
112
|
+
open && closeOnEsc
|
|
113
|
+
);
|
|
114
|
+
useEventListener(
|
|
115
|
+
"mousedown",
|
|
116
|
+
handleClickOutside,
|
|
117
|
+
open && maskClosable
|
|
118
|
+
);
|
|
119
|
+
if (!open)
|
|
120
|
+
return null;
|
|
121
|
+
return ReactDOM.createPortal(
|
|
122
|
+
/* @__PURE__ */ jsx(
|
|
123
|
+
Backdrop,
|
|
124
|
+
{
|
|
125
|
+
onClick: handleBackdropClick,
|
|
126
|
+
className: cn(
|
|
127
|
+
"fixed inset-0 bg-[#000] bg-opacity-25 flex items-center justify-center z-10000",
|
|
128
|
+
backdropClassName
|
|
129
|
+
),
|
|
130
|
+
children: /* @__PURE__ */ jsx(
|
|
131
|
+
ModalContent,
|
|
132
|
+
{
|
|
133
|
+
containerClassName,
|
|
134
|
+
closable,
|
|
135
|
+
onClose,
|
|
136
|
+
children,
|
|
137
|
+
loading,
|
|
138
|
+
modalStyles
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
document.body
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
Modal
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=chunk-EVCNR7M7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Modal/index.tsx"],"sourcesContent":["import React, { useEffect, useCallback, useMemo } from 'react';\nimport ReactDOM from 'react-dom';\nimport { X } from 'lucide-react';\nimport { Spin } from '../Spin';\nimport { cn } from '../../utils';\n\ninterface ModalProps {\n open: boolean;\n closeOnEsc?: boolean;\n closable?: boolean;\n preventScroll?: boolean;\n backdropClassName?: string;\n containerClassName?: string;\n onOpen?: () => void;\n onClose?: () => void;\n children?: React.ReactNode;\n width?: string | number;\n maskClosable?: boolean;\n centered?: boolean;\n loading?: boolean;\n}\n\ninterface ModalContentProps {\n containerClassName: string;\n closable: boolean;\n onClose?: VoidFunction;\n children?: React.ReactNode;\n loading?: boolean;\n modalStyles: React.CSSProperties;\n}\n\ninterface BackdropProps {\n onClick: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;\n className: string;\n children?: React.ReactNode;\n}\n\nconst Backdrop: React.FC<BackdropProps> = ({\n onClick,\n children,\n className,\n}) => (\n <div className={className} onClick={onClick}>\n {children}\n </div>\n);\n\nconst ModalContent = ({\n containerClassName,\n closable,\n onClose,\n children,\n loading,\n modalStyles,\n}: ModalContentProps) => (\n <div\n className={cn('relative bg-[#FFF] rounded shadow-lg', containerClassName)}\n tabIndex={-1}\n style={modalStyles}\n >\n <Spin spinning={loading}>\n {closable && (\n <X className=\"h-4 w-4 absolute right-5 top-5\" onClick={onClose} />\n )}\n <div className=\"p-4\">{children}</div>\n </Spin>\n </div>\n);\n\nconst useEventListener = (\n eventName: string,\n handler: (event: Event) => void,\n active: boolean,\n) => {\n useEffect(() => {\n if (active) {\n const eventListener = (event: Event) => handler(event);\n\n document.addEventListener(eventName, eventListener);\n return () => {\n document.removeEventListener(eventName, eventListener);\n };\n }\n }, [eventName, handler, active]);\n};\n\nconst Modal: React.FC<ModalProps> = ({\n open,\n closeOnEsc = true,\n closable = true,\n preventScroll = true,\n backdropClassName = '',\n containerClassName = '',\n onOpen = () => {},\n onClose,\n children,\n width = '600px',\n maskClosable = true,\n centered = true,\n loading = false,\n}) => {\n useEffect(() => {\n if (open) {\n onOpen?.();\n if (preventScroll) {\n document.body.style.overflow = 'hidden';\n }\n } else {\n if (preventScroll) {\n document.body.style.overflow = '';\n }\n }\n return () => {\n if (preventScroll) {\n document.body.style.overflow = '';\n }\n };\n }, [open, onOpen, preventScroll]);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent) => {\n if (event.key === 'Escape' && closeOnEsc && onClose) {\n onClose?.();\n }\n },\n [closeOnEsc, onClose],\n );\n\n const handleClickOutside = useCallback(() => {\n if (onClose && maskClosable) {\n onClose?.();\n }\n }, [onClose, maskClosable]);\n\n const handleBackdropClick = useCallback(\n (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n if (maskClosable && event.target === event.currentTarget && onClose) {\n onClose?.();\n }\n },\n [maskClosable, onClose],\n );\n\n const modalStyles: React.CSSProperties = useMemo(\n () => ({\n width: typeof width === 'string' ? width : `${width}px`,\n margin: centered ? 'auto' : undefined,\n }),\n [width, centered],\n );\n\n useEventListener(\n 'keydown',\n handleKeyDown as (event: Event) => void,\n open && closeOnEsc,\n );\n useEventListener(\n 'mousedown',\n handleClickOutside as (event: Event) => void,\n open && maskClosable,\n );\n\n if (!open) return null;\n\n return ReactDOM.createPortal(\n <Backdrop\n onClick={handleBackdropClick}\n className={cn(\n 'fixed inset-0 bg-[#000] bg-opacity-25 flex items-center justify-center z-10000',\n backdropClassName,\n )}\n >\n <ModalContent\n containerClassName={containerClassName}\n closable={closable}\n onClose={onClose}\n children={children}\n loading={loading}\n modalStyles={modalStyles}\n />\n </Backdrop>,\n document.body,\n );\n};\n\nexport { Modal };\n"],"mappings":";;;;;;;;AAAA,SAAgB,WAAW,aAAa,eAAe;AACvD,OAAO,cAAc;AACrB,SAAS,SAAS;AAwChB,cAkBE,YAlBF;AALF,IAAM,WAAoC,CAAC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AACF,MACE,oBAAC,SAAI,WAAsB,SACxB,UACH;AAGF,IAAM,eAAe,CAAC;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE;AAAA,EAAC;AAAA;AAAA,IACC,WAAW,GAAG,wCAAwC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