@cfxjs/sirius-next-common 0.1.35 → 0.1.36
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-2KIA7SM5.js +283 -0
- package/dist/chunk-2KIA7SM5.js.map +1 -0
- package/dist/chunk-2MVOPDKC.js +293 -0
- package/dist/chunk-2MVOPDKC.js.map +1 -0
- package/dist/chunk-2SD7XVS3.js +63 -0
- package/dist/chunk-2SD7XVS3.js.map +1 -0
- package/dist/chunk-2XYHVY3K.js +63 -0
- package/dist/chunk-2XYHVY3K.js.map +1 -0
- package/dist/chunk-2YI45EVS.js +141 -0
- package/dist/chunk-2YI45EVS.js.map +1 -0
- package/dist/chunk-353FBQGP.js +108 -0
- package/dist/chunk-353FBQGP.js.map +1 -0
- package/dist/chunk-36HGUBTU.js +127 -0
- package/dist/chunk-36HGUBTU.js.map +1 -0
- package/dist/chunk-376CSTQC.js +63 -0
- package/dist/chunk-376CSTQC.js.map +1 -0
- package/dist/chunk-3H2ZBKI3.js +212 -0
- package/dist/chunk-3H2ZBKI3.js.map +1 -0
- package/dist/chunk-3NQG7C6E.js +108 -0
- package/dist/chunk-3NQG7C6E.js.map +1 -0
- package/dist/chunk-4AL3F7NV.js +63 -0
- package/dist/chunk-4AL3F7NV.js.map +1 -0
- package/dist/chunk-4FBZ7HWS.js +63 -0
- package/dist/chunk-4FBZ7HWS.js.map +1 -0
- package/dist/chunk-4FKVBLAY.js +108 -0
- package/dist/chunk-4FKVBLAY.js.map +1 -0
- package/dist/chunk-4NDMEQGR.js +63 -0
- package/dist/chunk-4NDMEQGR.js.map +1 -0
- package/dist/chunk-4QJEGIPC.js +796 -0
- package/dist/chunk-4QJEGIPC.js.map +1 -0
- package/dist/chunk-4YTMW6GI.js +108 -0
- package/dist/chunk-4YTMW6GI.js.map +1 -0
- package/dist/chunk-574XKMZK.js +127 -0
- package/dist/chunk-574XKMZK.js.map +1 -0
- package/dist/chunk-5CQLUTBV.js +49 -0
- package/dist/chunk-5CQLUTBV.js.map +1 -0
- package/dist/chunk-5K7UO3LW.js +108 -0
- package/dist/chunk-5K7UO3LW.js.map +1 -0
- package/dist/chunk-5RPFJLOI.js +141 -0
- package/dist/chunk-5RPFJLOI.js.map +1 -0
- package/dist/chunk-5TAPU2ZE.js +291 -0
- package/dist/chunk-5TAPU2ZE.js.map +1 -0
- package/dist/chunk-6JS5W55K.js +127 -0
- package/dist/chunk-6JS5W55K.js.map +1 -0
- package/dist/chunk-6KNLHBN5.js +141 -0
- package/dist/chunk-6KNLHBN5.js.map +1 -0
- package/dist/chunk-6NX4BHDJ.js +141 -0
- package/dist/chunk-6NX4BHDJ.js.map +1 -0
- package/dist/chunk-6OAV4IVF.js +284 -0
- package/dist/chunk-6OAV4IVF.js.map +1 -0
- package/dist/chunk-72AV4UB3.js +290 -0
- package/dist/chunk-72AV4UB3.js.map +1 -0
- package/dist/chunk-7423KPGQ.js +63 -0
- package/dist/chunk-7423KPGQ.js.map +1 -0
- package/dist/chunk-7AOOJUYX.js +212 -0
- package/dist/chunk-7AOOJUYX.js.map +1 -0
- package/dist/chunk-7L2RA5IK.js +49 -0
- package/dist/chunk-7L2RA5IK.js.map +1 -0
- package/dist/chunk-7LQB5JCP.js +108 -0
- package/dist/chunk-7LQB5JCP.js.map +1 -0
- package/dist/chunk-7M7VEA5B.js +284 -0
- package/dist/chunk-7M7VEA5B.js.map +1 -0
- package/dist/chunk-A3657UZ7.js +108 -0
- package/dist/chunk-A3657UZ7.js.map +1 -0
- package/dist/chunk-A6P2YHYB.js +108 -0
- package/dist/chunk-A6P2YHYB.js.map +1 -0
- package/dist/chunk-A7K6NGFZ.js +150 -0
- package/dist/chunk-A7K6NGFZ.js.map +1 -0
- package/dist/chunk-ADJVLOE4.js +295 -0
- package/dist/chunk-ADJVLOE4.js.map +1 -0
- package/dist/chunk-AIQ2UBC2.js +284 -0
- package/dist/chunk-AIQ2UBC2.js.map +1 -0
- package/dist/chunk-ALLKEYU2.js +63 -0
- package/dist/chunk-ALLKEYU2.js.map +1 -0
- package/dist/chunk-AUTSZO6X.js +290 -0
- package/dist/chunk-AUTSZO6X.js.map +1 -0
- package/dist/chunk-AUWJGZPI.js +127 -0
- package/dist/chunk-AUWJGZPI.js.map +1 -0
- package/dist/chunk-AYD3HJZF.js +796 -0
- package/dist/chunk-AYD3HJZF.js.map +1 -0
- package/dist/chunk-B45UNRU2.js +127 -0
- package/dist/chunk-B45UNRU2.js.map +1 -0
- package/dist/chunk-B527FZFT.js +108 -0
- package/dist/chunk-B527FZFT.js.map +1 -0
- package/dist/chunk-BEPCRPPI.js +45 -0
- package/dist/chunk-BEPCRPPI.js.map +1 -0
- package/dist/chunk-BHHZCWKJ.js +141 -0
- package/dist/chunk-BHHZCWKJ.js.map +1 -0
- package/dist/chunk-BIZKI7IP.js +150 -0
- package/dist/chunk-BIZKI7IP.js.map +1 -0
- package/dist/chunk-BVIUV7LQ.js +290 -0
- package/dist/chunk-BVIUV7LQ.js.map +1 -0
- package/dist/chunk-BXR4FLVL.js +212 -0
- package/dist/chunk-BXR4FLVL.js.map +1 -0
- package/dist/chunk-BY3YF547.js +284 -0
- package/dist/chunk-BY3YF547.js.map +1 -0
- package/dist/chunk-C4MRUKWN.js +127 -0
- package/dist/chunk-C4MRUKWN.js.map +1 -0
- package/dist/chunk-CBJDT2JH.js +127 -0
- package/dist/chunk-CBJDT2JH.js.map +1 -0
- package/dist/chunk-CMF5AYGR.js +290 -0
- package/dist/chunk-CMF5AYGR.js.map +1 -0
- package/dist/chunk-CU4VIKEL.js +212 -0
- package/dist/chunk-CU4VIKEL.js.map +1 -0
- package/dist/chunk-CYFX26GP.js +3629 -0
- package/dist/chunk-CYFX26GP.js.map +1 -0
- package/dist/chunk-D7NNOVQY.js +127 -0
- package/dist/chunk-D7NNOVQY.js.map +1 -0
- package/dist/chunk-DA364DMG.js +141 -0
- package/dist/chunk-DA364DMG.js.map +1 -0
- package/dist/chunk-DR6NL7ET.js +130 -0
- package/dist/chunk-DR6NL7ET.js.map +1 -0
- package/dist/chunk-E6N6EFFW.js +141 -0
- package/dist/chunk-E6N6EFFW.js.map +1 -0
- package/dist/chunk-E7SUIRVI.js +63 -0
- package/dist/chunk-E7SUIRVI.js.map +1 -0
- package/dist/chunk-EY6NBWLM.js +108 -0
- package/dist/chunk-EY6NBWLM.js.map +1 -0
- package/dist/chunk-F2EPCZWK.js +63 -0
- package/dist/chunk-F2EPCZWK.js.map +1 -0
- package/dist/chunk-F4PFUG36.js +212 -0
- package/dist/chunk-F4PFUG36.js.map +1 -0
- package/dist/chunk-F6GBGTNG.js +63 -0
- package/dist/chunk-F6GBGTNG.js.map +1 -0
- package/dist/chunk-FOX4XRLH.js +127 -0
- package/dist/chunk-FOX4XRLH.js.map +1 -0
- package/dist/chunk-FVFHHX7P.js +130 -0
- package/dist/chunk-FVFHHX7P.js.map +1 -0
- package/dist/chunk-G5LRQOH6.js +141 -0
- package/dist/chunk-G5LRQOH6.js.map +1 -0
- package/dist/chunk-GC3CBRNH.js +63 -0
- package/dist/chunk-GC3CBRNH.js.map +1 -0
- package/dist/chunk-GSQTH7WW.js +108 -0
- package/dist/chunk-GSQTH7WW.js.map +1 -0
- package/dist/chunk-GX5FHBTN.js +141 -0
- package/dist/chunk-GX5FHBTN.js.map +1 -0
- package/dist/chunk-HLJJOOGU.js +63 -0
- package/dist/chunk-HLJJOOGU.js.map +1 -0
- package/dist/chunk-HNVXPCV4.js +63 -0
- package/dist/chunk-HNVXPCV4.js.map +1 -0
- package/dist/chunk-HW27DN22.js +49 -0
- package/dist/chunk-HW27DN22.js.map +1 -0
- package/dist/chunk-HYUTXKYU.js +3629 -0
- package/dist/chunk-HYUTXKYU.js.map +1 -0
- package/dist/chunk-I7HRM722.js +212 -0
- package/dist/chunk-I7HRM722.js.map +1 -0
- package/dist/chunk-IA25UNZZ.js +141 -0
- package/dist/chunk-IA25UNZZ.js.map +1 -0
- package/dist/chunk-IBMP5SCX.js +141 -0
- package/dist/chunk-IBMP5SCX.js.map +1 -0
- package/dist/chunk-IFMYLJEP.js +127 -0
- package/dist/chunk-IFMYLJEP.js.map +1 -0
- package/dist/chunk-IHGBU43N.js +63 -0
- package/dist/chunk-IHGBU43N.js.map +1 -0
- package/dist/chunk-ILC4RRWU.js +212 -0
- package/dist/chunk-ILC4RRWU.js.map +1 -0
- package/dist/chunk-ITAVTA3W.js +130 -0
- package/dist/chunk-ITAVTA3W.js.map +1 -0
- package/dist/chunk-JI6VGCU4.js +108 -0
- package/dist/chunk-JI6VGCU4.js.map +1 -0
- package/dist/chunk-JIVR34UF.js +108 -0
- package/dist/chunk-JIVR34UF.js.map +1 -0
- package/dist/chunk-JJ4K6ZJO.js +108 -0
- package/dist/chunk-JJ4K6ZJO.js.map +1 -0
- package/dist/chunk-JJGSIAZJ.js +127 -0
- package/dist/chunk-JJGSIAZJ.js.map +1 -0
- package/dist/chunk-JK54QGX5.js +63 -0
- package/dist/chunk-JK54QGX5.js.map +1 -0
- package/dist/chunk-JUV5BY6S.js +212 -0
- package/dist/chunk-JUV5BY6S.js.map +1 -0
- package/dist/chunk-JVDOTIWK.js +63 -0
- package/dist/chunk-JVDOTIWK.js.map +1 -0
- package/dist/chunk-JWEGZT6Y.js +127 -0
- package/dist/chunk-JWEGZT6Y.js.map +1 -0
- package/dist/chunk-KGIYTDWO.js +212 -0
- package/dist/chunk-KGIYTDWO.js.map +1 -0
- package/dist/chunk-KKXM6DVT.js +292 -0
- package/dist/chunk-KKXM6DVT.js.map +1 -0
- package/dist/chunk-KOD3PEV3.js +212 -0
- package/dist/chunk-KOD3PEV3.js.map +1 -0
- package/dist/chunk-KQUGFRVE.js +796 -0
- package/dist/chunk-KQUGFRVE.js.map +1 -0
- package/dist/chunk-KWJ73Y2D.js +294 -0
- package/dist/chunk-KWJ73Y2D.js.map +1 -0
- package/dist/chunk-L6BFE632.js +127 -0
- package/dist/chunk-L6BFE632.js.map +1 -0
- package/dist/chunk-LVNT62YR.js +292 -0
- package/dist/chunk-LVNT62YR.js.map +1 -0
- package/dist/chunk-LWMEGN6S.js +294 -0
- package/dist/chunk-LWMEGN6S.js.map +1 -0
- package/dist/chunk-LZZ7NIR4.js +293 -0
- package/dist/chunk-LZZ7NIR4.js.map +1 -0
- package/dist/chunk-MCP23ZPY.js +285 -0
- package/dist/chunk-MCP23ZPY.js.map +1 -0
- package/dist/chunk-MGLRAR2D.js +212 -0
- package/dist/chunk-MGLRAR2D.js.map +1 -0
- package/dist/chunk-MJZVUA2T.js +212 -0
- package/dist/chunk-MJZVUA2T.js.map +1 -0
- package/dist/chunk-MK27NKQR.js +2324 -0
- package/dist/chunk-MK27NKQR.js.map +1 -0
- package/dist/chunk-MNVZLYD2.js +108 -0
- package/dist/chunk-MNVZLYD2.js.map +1 -0
- package/dist/chunk-MPKSCMSQ.js +127 -0
- package/dist/chunk-MPKSCMSQ.js.map +1 -0
- package/dist/chunk-MZ6URSWK.js +108 -0
- package/dist/chunk-MZ6URSWK.js.map +1 -0
- package/dist/chunk-MZTA3L4X.js +150 -0
- package/dist/chunk-MZTA3L4X.js.map +1 -0
- package/dist/chunk-ND2CSITG.js +127 -0
- package/dist/chunk-ND2CSITG.js.map +1 -0
- package/dist/chunk-NEYIY22U.js +284 -0
- package/dist/chunk-NEYIY22U.js.map +1 -0
- package/dist/chunk-NFOLFLWA.js +150 -0
- package/dist/chunk-NFOLFLWA.js.map +1 -0
- package/dist/chunk-NFS5YLSJ.js +108 -0
- package/dist/chunk-NFS5YLSJ.js.map +1 -0
- package/dist/chunk-NIUVCEJO.js +212 -0
- package/dist/chunk-NIUVCEJO.js.map +1 -0
- package/dist/chunk-NKKWDQOM.js +2324 -0
- package/dist/chunk-NKKWDQOM.js.map +1 -0
- package/dist/chunk-NNHMECSG.js +141 -0
- package/dist/chunk-NNHMECSG.js.map +1 -0
- package/dist/chunk-NPV3ZP6T.js +141 -0
- package/dist/chunk-NPV3ZP6T.js.map +1 -0
- package/dist/chunk-NQTJEBIJ.js +290 -0
- package/dist/chunk-NQTJEBIJ.js.map +1 -0
- package/dist/chunk-NTOFGIYH.js +108 -0
- package/dist/chunk-NTOFGIYH.js.map +1 -0
- package/dist/chunk-NXBI6ED2.js +212 -0
- package/dist/chunk-NXBI6ED2.js.map +1 -0
- package/dist/chunk-OHN4J5DW.js +141 -0
- package/dist/chunk-OHN4J5DW.js.map +1 -0
- package/dist/chunk-ON6XCYGT.js +283 -0
- package/dist/chunk-ON6XCYGT.js.map +1 -0
- package/dist/chunk-ONMNA33N.js +45 -0
- package/dist/chunk-ONMNA33N.js.map +1 -0
- package/dist/chunk-ONSETHR4.js +105 -0
- package/dist/chunk-ONSETHR4.js.map +1 -0
- package/dist/chunk-OWAB7CCQ.js +127 -0
- package/dist/chunk-OWAB7CCQ.js.map +1 -0
- package/dist/chunk-P2CMBBPI.js +289 -0
- package/dist/chunk-P2CMBBPI.js.map +1 -0
- package/dist/chunk-P2UEWOEU.js +127 -0
- package/dist/chunk-P2UEWOEU.js.map +1 -0
- package/dist/chunk-P3DMJU7D.js +141 -0
- package/dist/chunk-P3DMJU7D.js.map +1 -0
- package/dist/chunk-PFGTCJPQ.js +141 -0
- package/dist/chunk-PFGTCJPQ.js.map +1 -0
- package/dist/chunk-PFSXXJYL.js +108 -0
- package/dist/chunk-PFSXXJYL.js.map +1 -0
- package/dist/chunk-PK7M6K76.js +212 -0
- package/dist/chunk-PK7M6K76.js.map +1 -0
- package/dist/chunk-PSTNJU66.js +288 -0
- package/dist/chunk-PSTNJU66.js.map +1 -0
- package/dist/chunk-PVIOYLIT.js +108 -0
- package/dist/chunk-PVIOYLIT.js.map +1 -0
- package/dist/chunk-PXSXWN7G.js +63 -0
- package/dist/chunk-PXSXWN7G.js.map +1 -0
- package/dist/chunk-Q6GDS4KG.js +141 -0
- package/dist/chunk-Q6GDS4KG.js.map +1 -0
- package/dist/chunk-QBLVQYVY.js +212 -0
- package/dist/chunk-QBLVQYVY.js.map +1 -0
- package/dist/chunk-QBV2D5NU.js +284 -0
- package/dist/chunk-QBV2D5NU.js.map +1 -0
- package/dist/chunk-QDUOI6ZD.js +212 -0
- package/dist/chunk-QDUOI6ZD.js.map +1 -0
- package/dist/chunk-QJH74FQI.js +108 -0
- package/dist/chunk-QJH74FQI.js.map +1 -0
- package/dist/chunk-QJXSCYDA.js +212 -0
- package/dist/chunk-QJXSCYDA.js.map +1 -0
- package/dist/chunk-QJYLL4XT.js +3629 -0
- package/dist/chunk-QJYLL4XT.js.map +1 -0
- package/dist/chunk-QOKNGZ72.js +141 -0
- package/dist/chunk-QOKNGZ72.js.map +1 -0
- package/dist/chunk-QONMQY4Z.js +63 -0
- package/dist/chunk-QONMQY4Z.js.map +1 -0
- package/dist/chunk-QPRZL6LO.js +49 -0
- package/dist/chunk-QPRZL6LO.js.map +1 -0
- package/dist/chunk-QQXDVN7O.js +105 -0
- package/dist/chunk-QQXDVN7O.js.map +1 -0
- package/dist/chunk-QXMEJLR4.js +290 -0
- package/dist/chunk-QXMEJLR4.js.map +1 -0
- package/dist/chunk-R2DOYAW4.js +141 -0
- package/dist/chunk-R2DOYAW4.js.map +1 -0
- package/dist/chunk-R65VACGY.js +212 -0
- package/dist/chunk-R65VACGY.js.map +1 -0
- package/dist/chunk-RDDTVGAP.js +108 -0
- package/dist/chunk-RDDTVGAP.js.map +1 -0
- package/dist/chunk-RKEZGAXK.js +63 -0
- package/dist/chunk-RKEZGAXK.js.map +1 -0
- package/dist/chunk-RKSFAP6Z.js +141 -0
- package/dist/chunk-RKSFAP6Z.js.map +1 -0
- package/dist/chunk-RSUVHVRY.js +108 -0
- package/dist/chunk-RSUVHVRY.js.map +1 -0
- package/dist/chunk-S24ORVD5.js +294 -0
- package/dist/chunk-S24ORVD5.js.map +1 -0
- package/dist/chunk-SCSMAKMH.js +63 -0
- package/dist/chunk-SCSMAKMH.js.map +1 -0
- package/dist/chunk-SDDB2F2F.js +108 -0
- package/dist/chunk-SDDB2F2F.js.map +1 -0
- package/dist/chunk-SJCQAQX4.js +796 -0
- package/dist/chunk-SJCQAQX4.js.map +1 -0
- package/dist/chunk-STZGQGGZ.js +212 -0
- package/dist/chunk-STZGQGGZ.js.map +1 -0
- package/dist/chunk-T43YVODW.js +277 -0
- package/dist/chunk-T43YVODW.js.map +1 -0
- package/dist/chunk-T53TBWIB.js +212 -0
- package/dist/chunk-T53TBWIB.js.map +1 -0
- package/dist/chunk-T5UZYLJ5.js +212 -0
- package/dist/chunk-T5UZYLJ5.js.map +1 -0
- package/dist/chunk-T7N6FTNW.js +127 -0
- package/dist/chunk-T7N6FTNW.js.map +1 -0
- package/dist/chunk-TFZDMOYM.js +105 -0
- package/dist/chunk-TFZDMOYM.js.map +1 -0
- package/dist/chunk-TWWB7FGO.js +141 -0
- package/dist/chunk-TWWB7FGO.js.map +1 -0
- package/dist/chunk-U5JCZGW6.js +130 -0
- package/dist/chunk-U5JCZGW6.js.map +1 -0
- package/dist/chunk-UAFLNWEA.js +212 -0
- package/dist/chunk-UAFLNWEA.js.map +1 -0
- package/dist/chunk-UE2UX7T6.js +212 -0
- package/dist/chunk-UE2UX7T6.js.map +1 -0
- package/dist/chunk-UENBCJ2Z.js +108 -0
- package/dist/chunk-UENBCJ2Z.js.map +1 -0
- package/dist/chunk-UII32QDY.js +108 -0
- package/dist/chunk-UII32QDY.js.map +1 -0
- package/dist/chunk-ULWSG4PL.js +127 -0
- package/dist/chunk-ULWSG4PL.js.map +1 -0
- package/dist/chunk-UR2UYNPF.js +286 -0
- package/dist/chunk-UR2UYNPF.js.map +1 -0
- package/dist/chunk-V3HJ66PP.js +105 -0
- package/dist/chunk-V3HJ66PP.js.map +1 -0
- package/dist/chunk-VFBMMG3M.js +141 -0
- package/dist/chunk-VFBMMG3M.js.map +1 -0
- package/dist/chunk-VOIYIVZF.js +2324 -0
- package/dist/chunk-VOIYIVZF.js.map +1 -0
- package/dist/chunk-VUEVN22O.js +212 -0
- package/dist/chunk-VUEVN22O.js.map +1 -0
- package/dist/chunk-W74PEWES.js +108 -0
- package/dist/chunk-W74PEWES.js.map +1 -0
- package/dist/chunk-WKADYA3X.js +141 -0
- package/dist/chunk-WKADYA3X.js.map +1 -0
- package/dist/chunk-WT6J7YEJ.js +127 -0
- package/dist/chunk-WT6J7YEJ.js.map +1 -0
- package/dist/chunk-WW2QYYHP.js +289 -0
- package/dist/chunk-WW2QYYHP.js.map +1 -0
- package/dist/chunk-XAQTA6XL.js +108 -0
- package/dist/chunk-XAQTA6XL.js.map +1 -0
- package/dist/chunk-XC4PADOS.js +212 -0
- package/dist/chunk-XC4PADOS.js.map +1 -0
- package/dist/chunk-XCR37CPQ.js +63 -0
- package/dist/chunk-XCR37CPQ.js.map +1 -0
- package/dist/chunk-XFQNDZFW.js +292 -0
- package/dist/chunk-XFQNDZFW.js.map +1 -0
- package/dist/chunk-XGRJYI4P.js +63 -0
- package/dist/chunk-XGRJYI4P.js.map +1 -0
- package/dist/chunk-XHBEHDIK.js +63 -0
- package/dist/chunk-XHBEHDIK.js.map +1 -0
- package/dist/chunk-XKWXQVAQ.js +63 -0
- package/dist/chunk-XKWXQVAQ.js.map +1 -0
- package/dist/chunk-XMV22YIZ.js +63 -0
- package/dist/chunk-XMV22YIZ.js.map +1 -0
- package/dist/chunk-XOK7DPQQ.js +127 -0
- package/dist/chunk-XOK7DPQQ.js.map +1 -0
- package/dist/chunk-XQ4MCRX6.js +127 -0
- package/dist/chunk-XQ4MCRX6.js.map +1 -0
- package/dist/chunk-XVT7XSTZ.js +141 -0
- package/dist/chunk-XVT7XSTZ.js.map +1 -0
- package/dist/chunk-YAUITW33.js +141 -0
- package/dist/chunk-YAUITW33.js.map +1 -0
- package/dist/chunk-YEUH2K6Z.js +56 -0
- package/dist/chunk-YEUH2K6Z.js.map +1 -0
- package/dist/chunk-YGPVJ5XR.js +212 -0
- package/dist/chunk-YGPVJ5XR.js.map +1 -0
- package/dist/chunk-YJX5YXE3.js +2324 -0
- package/dist/chunk-YJX5YXE3.js.map +1 -0
- package/dist/chunk-YPGJQF7B.js +212 -0
- package/dist/chunk-YPGJQF7B.js.map +1 -0
- package/dist/chunk-ZHQRGXFP.js +141 -0
- package/dist/chunk-ZHQRGXFP.js.map +1 -0
- package/dist/chunk-ZJIBJEEY.js +127 -0
- package/dist/chunk-ZJIBJEEY.js.map +1 -0
- package/dist/chunk-ZL2SUXFQ.js +127 -0
- package/dist/chunk-ZL2SUXFQ.js.map +1 -0
- package/dist/chunk-ZN5L7CIN.js +3629 -0
- package/dist/chunk-ZN5L7CIN.js.map +1 -0
- package/dist/chunk-ZS5PA2VF.js +141 -0
- package/dist/chunk-ZS5PA2VF.js.map +1 -0
- package/dist/chunk-ZVEEIEJJ.js +141 -0
- package/dist/chunk-ZVEEIEJJ.js.map +1 -0
- package/dist/chunk-ZZPL5FV7.js +45 -0
- package/dist/chunk-ZZPL5FV7.js.map +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +11 -10
- package/dist/components/AddressContainer/EVMAddressContainer.js +10 -9
- package/dist/components/AddressContainer/addressSwitcher.js +8 -7
- package/dist/components/AddressContainer/addressView.js +7 -6
- package/dist/components/AddressContainer/label.js +5 -4
- package/dist/components/Age/index.js +5 -4
- package/dist/components/Age/index.js.map +1 -1
- package/dist/components/Charts/PreviewChartTemplate.js +2 -1
- package/dist/components/Charts/PreviewChartTemplate.js.map +1 -1
- package/dist/components/Charts/StockChartTemplate.js +2 -1
- package/dist/components/Charts/StockChartTemplate.js.map +1 -1
- package/dist/components/CopyButton/index.js +4 -3
- package/dist/components/CopyButton/index.js.map +1 -1
- package/dist/components/DownloadCSV/index.js +5 -4
- package/dist/components/DownloadCSV/index.js.map +1 -1
- package/dist/components/EOACodeIcon/index.d.ts +2 -0
- package/dist/components/EOACodeIcon/index.js +1 -0
- package/dist/components/EOACodeIcon/index.js.map +1 -0
- package/dist/components/GasPriceDropdown/index.js +4 -3
- package/dist/components/GasPriceDropdown/index.js.map +1 -1
- package/dist/components/IncreasePercent/index.js +3 -2
- package/dist/components/IncreasePercent/index.js.map +1 -1
- package/dist/components/InfoIconWithTooltip/index.js +4 -3
- package/dist/components/InfoIconWithTooltip/index.js.map +1 -1
- package/dist/components/Modal/index.js +4 -3
- package/dist/components/NetworkIcon/index.js +3 -2
- package/dist/components/NetworkIcon/index.js.map +1 -1
- package/dist/components/PhishingAddressContainer/index.js +5 -4
- package/dist/components/PhishingAddressContainer/index.js.map +1 -1
- package/dist/components/Price/index.js +4 -3
- package/dist/components/Price/index.js.map +1 -1
- package/dist/components/Radio/index.js +3 -2
- package/dist/components/Radio/index.js.map +1 -1
- package/dist/components/Select/index.js +4 -3
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/select.js +4 -3
- package/dist/components/SkeletonContainer/index.js +1 -1
- package/dist/components/Text/index.js +5 -4
- package/dist/components/Tooltip/index.js +4 -3
- package/dist/components/TransactionAction/coreTransactionAction.js +11 -10
- package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -1
- package/dist/components/TransactionAction/evmTransactionAction.js +10 -9
- package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -1
- package/dist/utils/address.d.ts +2 -1
- package/dist/utils/address.js +5 -2
- package/dist/utils/cache.js +3 -52
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/contractManagerTool.js +3 -2
- package/dist/utils/contractManagerTool.js.map +1 -1
- package/dist/utils/hooks/useENS.js +4 -3
- package/dist/utils/index.js +3 -2
- package/dist/utils/request.js +2 -1
- package/dist/utils/request.types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useENS
|
|
3
|
+
} from "./chunk-HNVXPCV4.js";
|
|
4
|
+
import {
|
|
5
|
+
ContractAddress,
|
|
6
|
+
ContractCreatedAddress,
|
|
7
|
+
CoreHexAddress,
|
|
8
|
+
InvalidAddress,
|
|
9
|
+
MyAddress,
|
|
10
|
+
PosAddress
|
|
11
|
+
} from "./chunk-MGLRAR2D.js";
|
|
12
|
+
import {
|
|
13
|
+
RenderAddress
|
|
14
|
+
} from "./chunk-JJGSIAZJ.js";
|
|
15
|
+
import {
|
|
16
|
+
formatAddress,
|
|
17
|
+
isCoreAddress,
|
|
18
|
+
isCoreContractAddress,
|
|
19
|
+
isZeroAddress
|
|
20
|
+
} from "./chunk-5TAPU2ZE.js";
|
|
21
|
+
import {
|
|
22
|
+
getLabelInfo
|
|
23
|
+
} from "./chunk-HW27DN22.js";
|
|
24
|
+
import {
|
|
25
|
+
getTranslations,
|
|
26
|
+
useGlobalData
|
|
27
|
+
} from "./chunk-DQGLZCIG.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-ZS5PA2VF.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;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,QAAgB,MAAM,SAAS;AACrC,QAAM,aAAa,cAAc,OAAO,QAAQ;AAEhD,MAAI,SAAS,WAAW,CAAC;AAEzB,QAAM,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;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,kBAAkB;AAAA,MAClB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,SAAS;AAAA,IACX;AAEA,UAAM,oBAAoB,EAAE,OAAO,CAAC,GAAG,cAAc,KAAK;AAE1D,UAAM,kBAAkB,EAAE;AAAA,MACxB,CAAC;AAAA,MACD;AAAA,MACA,WAAW,mBAAmB,UAAU;AAAA,IAC1C;AAEA,QAAI,gBAAgB,cAAc;AAChC,aAAO,WAAW,eAAe;AAAA,IACnC;AAEA,QAAI,CAAC,gBAAgB,SAAS,gBAAgB,iBAAiB;AAC7D,aAAO,uBAAuB;AAAA,QAC5B,GAAG;AAAA,QACH,YAAY;AAAA,MACd,CAAC;AAAA,IACH;AAEA,QAAI,gBAAgB,iBAAiB;AACnC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,CAAC,cAAc,gBAAgB,KAAK,GAAG;AACzC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,sBAAsB,gBAAgB,UAAU,GAAG;AACrD,aAAO,gBAAgB,eAAe;AAAA,IACxC;AAEA,QAAI,gBAAgB,MAAM;AACxB,aAAO,UAAU,eAAe;AAAA,IAClC;AAEA,WAAO,cAAc,eAAe;AAAA,EACtC,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useENS
|
|
3
|
+
} from "./chunk-F2EPCZWK.js";
|
|
4
|
+
import {
|
|
5
|
+
ContractAddress,
|
|
6
|
+
ContractCreatedAddress,
|
|
7
|
+
CoreHexAddress,
|
|
8
|
+
InvalidAddress,
|
|
9
|
+
MyAddress,
|
|
10
|
+
PosAddress
|
|
11
|
+
} from "./chunk-UAFLNWEA.js";
|
|
12
|
+
import {
|
|
13
|
+
RenderAddress
|
|
14
|
+
} from "./chunk-ITAVTA3W.js";
|
|
15
|
+
import {
|
|
16
|
+
formatAddress,
|
|
17
|
+
isCoreAddress,
|
|
18
|
+
isCoreContractAddress,
|
|
19
|
+
isZeroAddress
|
|
20
|
+
} from "./chunk-AIQ2UBC2.js";
|
|
21
|
+
import {
|
|
22
|
+
getLabelInfo
|
|
23
|
+
} from "./chunk-5CQLUTBV.js";
|
|
24
|
+
import {
|
|
25
|
+
getTranslations,
|
|
26
|
+
useGlobalData
|
|
27
|
+
} from "./chunk-DQGLZCIG.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-ZVEEIEJJ.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;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,QAAgB,MAAM,SAAS;AACrC,QAAM,aAAa,cAAc,OAAO,QAAQ;AAEhD,MAAI,SAAS,WAAW,CAAC;AAEzB,QAAM,eAAe,gBAAgB;AAErC,MAAI,aAAa;AACjB,MAAI,CAAC,SAAS,cAAc,UAAU,GA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;AAAA,MAClB,cAAc;AAAA,MACd,aAAa;AAAA,MACb,SAAS;AAAA,IACX;AAEA,UAAM,oBAAoB,EAAE,OAAO,CAAC,GAAG,cAAc,KAAK;AAE1D,UAAM,kBAAkB,EAAE;AAAA,MACxB,CAAC;AAAA,MACD;AAAA,MACA,WAAW,mBAAmB,UAAU;AAAA,IAC1C;AAEA,QAAI,gBAAgB,cAAc;AAChC,aAAO,WAAW,eAAe;AAAA,IACnC;AAEA,QAAI,CAAC,gBAAgB,SAAS,gBAAgB,iBAAiB;AAC7D,aAAO,uBAAuB;AAAA,QAC5B,GAAG;AAAA,QACH,YAAY;AAAA,MACd,CAAC;AAAA,IACH;AAEA,QAAI,gBAAgB,iBAAiB;AACnC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,CAAC,cAAc,gBAAgB,KAAK,GAAG;AACzC,aAAO,eAAe,eAAe;AAAA,IACvC;AAEA,QAAI,sBAAsB,gBAAgB,UAAU,GAAG;AACrD,aAAO,gBAAgB,eAAe;AAAA,IACxC;AAEA,QAAI,gBAAgB,MAAM;AACxB,aAAO,UAAU,eAAe;AAAA,IAClC;AAEA,WAAO,cAAc,eAAe;AAAA,EACtC,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
publishRequestError
|
|
3
|
+
} from "./chunk-J2I22Q2M.js";
|
|
4
|
+
|
|
5
|
+
// src/utils/rpcRequest.ts
|
|
6
|
+
var request = async (method, ...args) => {
|
|
7
|
+
const CFX = window.CFX;
|
|
8
|
+
try {
|
|
9
|
+
const [namespace, m] = method.split("_");
|
|
10
|
+
if (namespace && m && typeof CFX[namespace][m] === "function") {
|
|
11
|
+
return await CFX[namespace][m](...args);
|
|
12
|
+
} else {
|
|
13
|
+
throw new Error(
|
|
14
|
+
`Method ${m} is not a function in namespace ${namespace}`
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
} catch (e) {
|
|
18
|
+
if (e instanceof Error) {
|
|
19
|
+
publishRequestError(e, "rpc");
|
|
20
|
+
} else {
|
|
21
|
+
console.error("Unexpected error", e);
|
|
22
|
+
}
|
|
23
|
+
throw e;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var getAccount = async (...args) => {
|
|
27
|
+
try {
|
|
28
|
+
return request("cfx_getAccount", ...args);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var getAddressCode = async (...args) => {
|
|
34
|
+
try {
|
|
35
|
+
return request("cfx_getCode", ...args);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
throw e;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
getAccount,
|
|
43
|
+
getAddressCode
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=chunk-ZZPL5FV7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/rpcRequest.ts"],"sourcesContent":["import { publishRequestError } from './pubsub';\n\nconst request = async <T>(method: string, ...args: any[]): Promise<T> => {\n const CFX = (window as any).CFX;\n\n try {\n const [namespace, m] = method.split('_');\n // 断言 CFX[namespace][m] 为一个函数,并调用它\n if (namespace && m && typeof CFX[namespace][m] === 'function') {\n return await CFX[namespace][m](...args);\n } else {\n throw new Error(\n `Method ${m} is not a function in namespace ${namespace}`,\n );\n }\n } catch (e: unknown) {\n if (e instanceof Error) {\n publishRequestError(e, 'rpc');\n } else {\n console.error('Unexpected error', e);\n }\n throw e;\n }\n};\n\nexport const getAccount = async (...args: unknown[]) => {\n try {\n return request('cfx_getAccount', ...args);\n } catch (e) {\n throw e;\n }\n};\n\nexport const getAddressCode = async (...args: unknown[]) => {\n try {\n return request<`0x${string}` | null>('cfx_getCode', ...args);\n } catch (e) {\n throw e;\n }\n};\n"],"mappings":";;;;;AAEA,IAAM,UAAU,OAAU,WAAmB,SAA4B;AACvE,QAAM,MAAO,OAAe;AAE5B,MAAI;AACF,UAAM,CAAC,WAAW,CAAC,IAAI,OAAO,MAAM,GAAG;AAEvC,QAAI,aAAa,KAAK,OAAO,IAAI,SAAS,EAAE,CAAC,MAAM,YAAY;AAC7D,aAAO,MAAM,IAAI,SAAS,EAAE,CAAC,EAAE,GAAG,IAAI;AAAA,IACxC,OAAO;AACL,YAAM,IAAI;AAAA,QACR,UAAU,oCAAoC;AAAA,MAChD;AAAA,IACF;AAAA,EACF,SAAS,GAAP;AACA,QAAI,aAAa,OAAO;AACtB,0BAAoB,GAAG,KAAK;AAAA,IAC9B,OAAO;AACL,cAAQ,MAAM,oBAAoB,CAAC;AAAA,IACrC;AACA,UAAM;AAAA,EACR;AACF;AAEO,IAAM,aAAa,UAAU,SAAoB;AACtD,MAAI;AACF,WAAO,QAAQ,kBAAkB,GAAG,IAAI;AAAA,EAC1C,SAAS,GAAP;AACA,UAAM;AAAA,EACR;AACF;AAEO,IAAM,iBAAiB,UAAU,SAAoB;AAC1D,MAAI;AACF,WAAO,QAA8B,eAAe,GAAG,IAAI;AAAA,EAC7D,SAAS,GAAP;AACA,UAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CoreAddressContainer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ZVEEIEJJ.js";
|
|
4
|
+
import "../../chunk-F2EPCZWK.js";
|
|
5
|
+
import "../../chunk-UAFLNWEA.js";
|
|
6
|
+
import "../../chunk-ITAVTA3W.js";
|
|
7
|
+
import "../../chunk-AIQ2UBC2.js";
|
|
8
|
+
import "../../chunk-5CQLUTBV.js";
|
|
9
|
+
import "../../chunk-V3HJ66PP.js";
|
|
10
10
|
import "../../chunk-TOKKKTFG.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-VOIYIVZF.js";
|
|
12
12
|
import "../../chunk-LRCAKRPK.js";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-AYD3HJZF.js";
|
|
14
14
|
import "../../chunk-7RH7LJYB.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-UR2UYNPF.js";
|
|
16
16
|
import "../../chunk-J2I22Q2M.js";
|
|
17
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
17
18
|
import "../../chunk-DQGLZCIG.js";
|
|
18
19
|
export {
|
|
19
20
|
CoreAddressContainer
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EVMAddressContainer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-RDDTVGAP.js";
|
|
4
|
+
import "../../chunk-UAFLNWEA.js";
|
|
5
|
+
import "../../chunk-ITAVTA3W.js";
|
|
6
|
+
import "../../chunk-AIQ2UBC2.js";
|
|
7
|
+
import "../../chunk-5CQLUTBV.js";
|
|
8
|
+
import "../../chunk-V3HJ66PP.js";
|
|
9
9
|
import "../../chunk-TOKKKTFG.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-VOIYIVZF.js";
|
|
11
11
|
import "../../chunk-LRCAKRPK.js";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-AYD3HJZF.js";
|
|
13
13
|
import "../../chunk-7RH7LJYB.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-UR2UYNPF.js";
|
|
15
15
|
import "../../chunk-J2I22Q2M.js";
|
|
16
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
16
17
|
import "../../chunk-DQGLZCIG.js";
|
|
17
18
|
export {
|
|
18
19
|
EVMAddressContainer
|
|
@@ -5,17 +5,18 @@ import {
|
|
|
5
5
|
InvalidAddress,
|
|
6
6
|
MyAddress,
|
|
7
7
|
PosAddress
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-UAFLNWEA.js";
|
|
9
|
+
import "../../chunk-ITAVTA3W.js";
|
|
10
|
+
import "../../chunk-AIQ2UBC2.js";
|
|
11
|
+
import "../../chunk-V3HJ66PP.js";
|
|
12
12
|
import "../../chunk-TOKKKTFG.js";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-VOIYIVZF.js";
|
|
14
14
|
import "../../chunk-LRCAKRPK.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-AYD3HJZF.js";
|
|
16
16
|
import "../../chunk-7RH7LJYB.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-UR2UYNPF.js";
|
|
18
18
|
import "../../chunk-J2I22Q2M.js";
|
|
19
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
19
20
|
import "../../chunk-DQGLZCIG.js";
|
|
20
21
|
export {
|
|
21
22
|
ContractAddress,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RenderAddress
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ITAVTA3W.js";
|
|
4
|
+
import "../../chunk-AIQ2UBC2.js";
|
|
5
|
+
import "../../chunk-V3HJ66PP.js";
|
|
6
6
|
import "../../chunk-TOKKKTFG.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-VOIYIVZF.js";
|
|
8
8
|
import "../../chunk-LRCAKRPK.js";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-AYD3HJZF.js";
|
|
10
10
|
import "../../chunk-7RH7LJYB.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-UR2UYNPF.js";
|
|
12
12
|
import "../../chunk-J2I22Q2M.js";
|
|
13
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
13
14
|
import "../../chunk-DQGLZCIG.js";
|
|
14
15
|
export {
|
|
15
16
|
RenderAddress
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLabelInfo
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-5CQLUTBV.js";
|
|
4
|
+
import "../../chunk-VOIYIVZF.js";
|
|
5
5
|
import "../../chunk-LRCAKRPK.js";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-AYD3HJZF.js";
|
|
7
7
|
import "../../chunk-7RH7LJYB.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-UR2UYNPF.js";
|
|
9
9
|
import "../../chunk-J2I22Q2M.js";
|
|
10
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
10
11
|
import "../../chunk-DQGLZCIG.js";
|
|
11
12
|
export {
|
|
12
13
|
getLabelInfo
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Text
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-V3HJ66PP.js";
|
|
4
4
|
import "../../chunk-TOKKKTFG.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-VOIYIVZF.js";
|
|
6
6
|
import "../../chunk-LRCAKRPK.js";
|
|
7
7
|
import {
|
|
8
8
|
getDuration
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-AYD3HJZF.js";
|
|
10
10
|
import "../../chunk-7RH7LJYB.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-UR2UYNPF.js";
|
|
12
12
|
import "../../chunk-J2I22Q2M.js";
|
|
13
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
13
14
|
import {
|
|
14
15
|
getTranslations
|
|
15
16
|
} from "../../chunk-DQGLZCIG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Age/index.tsx"],"sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { getDuration } from '../../utils';\nimport { Text } from '../Text';\nimport { getTranslations } from '../../store';\n\ninterface AgeProps {\n from: number;\n to?: number;\n retainDurations?: 1 | 2 | 3 | 4;\n}\nexport const Age = React.memo(({ from, to, retainDurations = 2 }: AgeProps) => {\n const translations = getTranslations();\n const { t } = useTranslation();\n const duration = getDuration(from, to);\n const str = [\n translations.general.countdown.day,\n translations.general.countdown.hour,\n translations.general.countdown.minute,\n translations.general.countdown.second,\n ];\n\n const label = duration.reduce(\n (acc, cur, index) => {\n // default max to retain 2 duration, and min to retain 1 duration\n if (Number(acc[1]) < retainDurations && (cur > 0 || index === 3)) {\n const next = t(str[index] || '', { count: cur });\n acc[0] = acc[0] ? `${acc[0]} ${next}` : `${next}`;\n acc[1] = Number(acc[1]) + 1;\n }\n return acc;\n },\n ['', 0],\n );\n\n const fullLabel = duration.reduce(\n (acc, cur, index) => {\n if (Number(acc[1]) < 4 && (cur > 0 || index === 3)) {\n const next = t(str[index] || '', { count: cur });\n acc[0] = acc[0] ? `${acc[0]} ${next}` : `${next}`;\n acc[1] = Number(acc[1]) + 1;\n }\n return acc;\n },\n ['', 0],\n );\n\n return (\n <Text\n tag=\"span\"\n hoverValue={`${fullLabel[0]} ${t(translations.general.countdown.ago)}`}\n >\n {label[0]} {t(translations.general.countdown.ago)}\n </Text>\n );\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Age/index.tsx"],"sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { getDuration } from '../../utils';\nimport { Text } from '../Text';\nimport { getTranslations } from '../../store';\n\ninterface AgeProps {\n from: number;\n to?: number;\n retainDurations?: 1 | 2 | 3 | 4;\n}\nexport const Age = React.memo(({ from, to, retainDurations = 2 }: AgeProps) => {\n const translations = getTranslations();\n const { t } = useTranslation();\n const duration = getDuration(from, to);\n const str = [\n translations.general.countdown.day,\n translations.general.countdown.hour,\n translations.general.countdown.minute,\n translations.general.countdown.second,\n ];\n\n const label = duration.reduce(\n (acc, cur, index) => {\n // default max to retain 2 duration, and min to retain 1 duration\n if (Number(acc[1]) < retainDurations && (cur > 0 || index === 3)) {\n const next = t(str[index] || '', { count: cur });\n acc[0] = acc[0] ? `${acc[0]} ${next}` : `${next}`;\n acc[1] = Number(acc[1]) + 1;\n }\n return acc;\n },\n ['', 0],\n );\n\n const fullLabel = duration.reduce(\n (acc, cur, index) => {\n if (Number(acc[1]) < 4 && (cur > 0 || index === 3)) {\n const next = t(str[index] || '', { count: cur });\n acc[0] = acc[0] ? `${acc[0]} ${next}` : `${next}`;\n acc[1] = Number(acc[1]) + 1;\n }\n return acc;\n },\n ['', 0],\n );\n\n return (\n <Text\n tag=\"span\"\n hoverValue={`${fullLabel[0]} ${t(translations.general.countdown.ago)}`}\n >\n {label[0]} {t(translations.general.countdown.ago)}\n </Text>\n );\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAClB,SAAS,sBAAsB;AA+C3B;AArCG,IAAM,MAAM,MAAM,KAAK,CAAC,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAgB;AAC7E,QAAM,eAAe,gBAAgB;AACrC,QAAM,EAAE,EAAE,IAAI,eAAe;AAC7B,QAAM,WAAW,YAAY,MAAM,EAAE;AACrC,QAAM,MAAM;AAAA,IACV,aAAa,QAAQ,UAAU;AAAA,IAC/B,aAAa,QAAQ,UAAU;AAAA,IAC/B,aAAa,QAAQ,UAAU;AAAA,IAC/B,aAAa,QAAQ,UAAU;AAAA,EACjC;AAEA,QAAM,QAAQ,SAAS;AAAA,IACrB,CAAC,KAAK,KAAK,UAAU;AAEnB,UAAI,OAAO,IAAI,CAAC,CAAC,IAAI,oBAAoB,MAAM,KAAK,UAAU,IAAI;AAChE,cAAM,OAAO,EAAE,IAAI,KAAK,KAAK,IAAI,EAAE,OAAO,IAAI,CAAC;AAC/C,YAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,SAAS,GAAG;AAC3C,YAAI,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC,IAAI;AAAA,MAC5B;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC,IAAI,CAAC;AAAA,EACR;AAEA,QAAM,YAAY,SAAS;AAAA,IACzB,CAAC,KAAK,KAAK,UAAU;AACnB,UAAI,OAAO,IAAI,CAAC,CAAC,IAAI,MAAM,MAAM,KAAK,UAAU,IAAI;AAClD,cAAM,OAAO,EAAE,IAAI,KAAK,KAAK,IAAI,EAAE,OAAO,IAAI,CAAC;AAC/C,YAAI,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,SAAS,GAAG;AAC3C,YAAI,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC,IAAI;AAAA,MAC5B;AACA,aAAO;AAAA,IACT;AAAA,IACA,CAAC,IAAI,CAAC;AAAA,EACR;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA,MACJ,YAAY,GAAG,UAAU,CAAC,KAAK,EAAE,aAAa,QAAQ,UAAU,GAAG;AAAA,MAElE;AAAA,cAAM,CAAC;AAAA,QAAE;AAAA,QAAE,EAAE,aAAa,QAAQ,UAAU,GAAG;AAAA;AAAA;AAAA,EAClD;AAEJ,CAAC;","names":[]}
|
|
@@ -16,8 +16,9 @@ import "../../chunk-2Y57U43P.js";
|
|
|
16
16
|
import "../../chunk-TGK5LP2H.js";
|
|
17
17
|
import {
|
|
18
18
|
sendRequestChart
|
|
19
|
-
} from "../../chunk-
|
|
19
|
+
} from "../../chunk-UR2UYNPF.js";
|
|
20
20
|
import "../../chunk-J2I22Q2M.js";
|
|
21
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
21
22
|
import "../../chunk-DQGLZCIG.js";
|
|
22
23
|
|
|
23
24
|
// src/components/Charts/PreviewChartTemplate.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Charts/PreviewChartTemplate.tsx"],"sourcesContent":["import { useEffect, useRef, useCallback } from 'react';\nimport Highcharts from 'highcharts/highstock';\nimport HighchartsReact from 'highcharts-react-official';\nimport useSWR from 'swr';\nimport PreviewTitle from './PreviewTitle';\nimport { sendRequestChart } from '../../utils/request';\nimport lodash from 'lodash';\nimport {\n ChartsProps,\n optsOrigin,\n previewOpts,\n defaultLimit,\n defaultIntervalType,\n ConstructorType,\n} from './config';\nimport { useHighCharts } from './useHighCharts';\n\nexport function PreviewChartTemplate({ options, request }: ChartsProps) {\n const chart = useRef(null);\n const limit = request?.query?.limit || defaultLimit;\n const intervalType = request?.query?.intervalType || defaultIntervalType;\n\n const sendRequestCallback = useCallback(() => {\n return sendRequestChart({\n url: request.url,\n query: {\n ...request.query,\n limit,\n intervalType,\n },\n });\n }, [request.url, request.query, intervalType]);\n\n const { data, isLoading } = useSWR(\n request.url + intervalType + limit,\n sendRequestCallback,\n {\n revalidateOnFocus: false,\n },\n );\n\n useHighCharts(chart);\n\n useEffect(() => {\n if (isLoading) {\n // @ts-ignore\n chart.current?.chart.showLoading();\n } else {\n // @ts-ignore\n chart.current?.chart.hideLoading();\n }\n }, [isLoading]);\n\n const optsOrigins = optsOrigin({ options, request, data });\n const opts = lodash.merge(optsOrigins, options, previewOpts);\n opts.intervalType = { value: intervalType };\n const constructorType = ConstructorType({ options, request });\n return (\n <div className=\"bg-[#FFFFFF] border border-[#E5E5E5] rounded-lg shadow-sm\">\n <PreviewTitle header={opts.header}></PreviewTitle>\n <div className=\"p-[1.2857rem]\">\n <HighchartsReact\n constructorType={constructorType}\n highcharts={Highcharts}\n options={opts}\n ref={chart}\n />\n </div>\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Charts/PreviewChartTemplate.tsx"],"sourcesContent":["import { useEffect, useRef, useCallback } from 'react';\nimport Highcharts from 'highcharts/highstock';\nimport HighchartsReact from 'highcharts-react-official';\nimport useSWR from 'swr';\nimport PreviewTitle from './PreviewTitle';\nimport { sendRequestChart } from '../../utils/request';\nimport lodash from 'lodash';\nimport {\n ChartsProps,\n optsOrigin,\n previewOpts,\n defaultLimit,\n defaultIntervalType,\n ConstructorType,\n} from './config';\nimport { useHighCharts } from './useHighCharts';\n\nexport function PreviewChartTemplate({ options, request }: ChartsProps) {\n const chart = useRef(null);\n const limit = request?.query?.limit || defaultLimit;\n const intervalType = request?.query?.intervalType || defaultIntervalType;\n\n const sendRequestCallback = useCallback(() => {\n return sendRequestChart({\n url: request.url,\n query: {\n ...request.query,\n limit,\n intervalType,\n },\n });\n }, [request.url, request.query, intervalType]);\n\n const { data, isLoading } = useSWR(\n request.url + intervalType + limit,\n sendRequestCallback,\n {\n revalidateOnFocus: false,\n },\n );\n\n useHighCharts(chart);\n\n useEffect(() => {\n if (isLoading) {\n // @ts-ignore\n chart.current?.chart.showLoading();\n } else {\n // @ts-ignore\n chart.current?.chart.hideLoading();\n }\n }, [isLoading]);\n\n const optsOrigins = optsOrigin({ options, request, data });\n const opts = lodash.merge(optsOrigins, options, previewOpts);\n opts.intervalType = { value: intervalType };\n const constructorType = ConstructorType({ options, request });\n return (\n <div className=\"bg-[#FFFFFF] border border-[#E5E5E5] rounded-lg shadow-sm\">\n <PreviewTitle header={opts.header}></PreviewTitle>\n <div className=\"p-[1.2857rem]\">\n <HighchartsReact\n constructorType={constructorType}\n highcharts={Highcharts}\n options={opts}\n ref={chart}\n />\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,WAAW,QAAQ,mBAAmB;AAC/C,OAAO,gBAAgB;AACvB,OAAO,qBAAqB;AAC5B,OAAO,Y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|
|
21
21
|
import "../../chunk-TGK5LP2H.js";
|
|
22
22
|
import {
|
|
23
23
|
sendRequestChart
|
|
24
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-UR2UYNPF.js";
|
|
25
25
|
import "../../chunk-J2I22Q2M.js";
|
|
26
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
26
27
|
import "../../chunk-DQGLZCIG.js";
|
|
27
28
|
|
|
28
29
|
// src/components/Charts/StockChartTemplate.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Charts/StockChartTemplate.tsx"],"sourcesContent":["import { useState, useEffect, useRef, useCallback } from 'react';\nimport Highcharts from 'highcharts/highstock';\nimport HighchartsReact from 'highcharts-react-official';\nimport Exporting from 'highcharts/modules/exporting';\nimport ExportData from 'highcharts/modules/export-data';\nimport useSWR from 'swr';\nimport { sendRequestChart } from '../../utils/request';\nimport StockTitle from './StockTitle';\nimport BreadcrumbNav from './BreadcrumbNav';\nimport ChartOptions from './ChartOptions';\nimport lodash from 'lodash';\nimport {\n ChartsProps,\n optsOrigin,\n defaultLimit,\n defaultIntervalType,\n ScopeType,\n onCombination,\n ConstructorType,\n} from './config';\nimport { useHighCharts } from './useHighCharts';\n\nExporting(Highcharts);\nExportData(Highcharts);\n\nexport function StockChartTemplate({ options, request }: ChartsProps) {\n const chart = useRef<HighchartsReact.RefObject>(null);\n const [limit, setLimit] = useState(request?.query?.limit || defaultLimit);\n const [intervalType, setIntervalType] = useState<keyof ScopeType>(\n (request?.query?.intervalType as keyof ScopeType) || defaultIntervalType,\n );\n\n const sendRequestCallback = useCallback(() => {\n return sendRequestChart({\n url: request.url,\n query: {\n ...request.query,\n limit: limit || defaultLimit,\n intervalType: intervalType,\n },\n });\n }, [request.url, request.query, intervalType, limit, defaultLimit]);\n\n const { data, isLoading } = useSWR(\n request.url + intervalType + limit,\n sendRequestCallback,\n {\n revalidateOnFocus: false,\n },\n );\n\n useHighCharts(chart);\n\n const handleCombination: onCombination = (type, limit) => {\n // @ts-ignore\n // chart.current?.chart.xAxis[0].setExtremes(null, null);\n\n if (type) setIntervalType(type);\n if (limit) setLimit(limit);\n };\n\n useEffect(() => {\n if (isLoading) {\n chart.current?.chart.showLoading();\n } else {\n chart.current?.chart.hideLoading();\n }\n }, [isLoading]);\n\n const optsOrigins = optsOrigin({ options, request, data });\n const opts = lodash.merge(optsOrigins, options);\n opts.intervalType = { value: intervalType };\n const constructorType = ConstructorType({ options, request });\n return (\n <div>\n {opts.header.breadcrumbShow !== false ? (\n <BreadcrumbNav breadcrumb={opts.header.breadcrumb}></BreadcrumbNav>\n ) : (\n <></>\n )}\n {opts.header.titleShow !== false ? (\n <StockTitle header={opts.header}></StockTitle>\n ) : (\n <></>\n )}\n <div\n className=\"bg-[#FFF] relative p-[1.2857rem] rounded-[4px] color-[#333]\"\n style={{ boxShadow: 'rgba(20, 27, 50, 0.12) 0.8571rem' }}\n >\n {opts.header.optionShow !== false ? (\n <ChartOptions\n intervalScope={opts.intervalScope}\n intervalType={intervalType}\n limit={limit}\n onCombination={handleCombination}\n />\n ) : (\n <></>\n )}\n\n <HighchartsReact\n constructorType={constructorType}\n highcharts={Highcharts}\n options={opts}\n ref={chart}\n />\n </div>\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Charts/StockChartTemplate.tsx"],"sourcesContent":["import { useState, useEffect, useRef, useCallback } from 'react';\nimport Highcharts from 'highcharts/highstock';\nimport HighchartsReact from 'highcharts-react-official';\nimport Exporting from 'highcharts/modules/exporting';\nimport ExportData from 'highcharts/modules/export-data';\nimport useSWR from 'swr';\nimport { sendRequestChart } from '../../utils/request';\nimport StockTitle from './StockTitle';\nimport BreadcrumbNav from './BreadcrumbNav';\nimport ChartOptions from './ChartOptions';\nimport lodash from 'lodash';\nimport {\n ChartsProps,\n optsOrigin,\n defaultLimit,\n defaultIntervalType,\n ScopeType,\n onCombination,\n ConstructorType,\n} from './config';\nimport { useHighCharts } from './useHighCharts';\n\nExporting(Highcharts);\nExportData(Highcharts);\n\nexport function StockChartTemplate({ options, request }: ChartsProps) {\n const chart = useRef<HighchartsReact.RefObject>(null);\n const [limit, setLimit] = useState(request?.query?.limit || defaultLimit);\n const [intervalType, setIntervalType] = useState<keyof ScopeType>(\n (request?.query?.intervalType as keyof ScopeType) || defaultIntervalType,\n );\n\n const sendRequestCallback = useCallback(() => {\n return sendRequestChart({\n url: request.url,\n query: {\n ...request.query,\n limit: limit || defaultLimit,\n intervalType: intervalType,\n },\n });\n }, [request.url, request.query, intervalType, limit, defaultLimit]);\n\n const { data, isLoading } = useSWR(\n request.url + intervalType + limit,\n sendRequestCallback,\n {\n revalidateOnFocus: false,\n },\n );\n\n useHighCharts(chart);\n\n const handleCombination: onCombination = (type, limit) => {\n // @ts-ignore\n // chart.current?.chart.xAxis[0].setExtremes(null, null);\n\n if (type) setIntervalType(type);\n if (limit) setLimit(limit);\n };\n\n useEffect(() => {\n if (isLoading) {\n chart.current?.chart.showLoading();\n } else {\n chart.current?.chart.hideLoading();\n }\n }, [isLoading]);\n\n const optsOrigins = optsOrigin({ options, request, data });\n const opts = lodash.merge(optsOrigins, options);\n opts.intervalType = { value: intervalType };\n const constructorType = ConstructorType({ options, request });\n return (\n <div>\n {opts.header.breadcrumbShow !== false ? (\n <BreadcrumbNav breadcrumb={opts.header.breadcrumb}></BreadcrumbNav>\n ) : (\n <></>\n )}\n {opts.header.titleShow !== false ? (\n <StockTitle header={opts.header}></StockTitle>\n ) : (\n <></>\n )}\n <div\n className=\"bg-[#FFF] relative p-[1.2857rem] rounded-[4px] color-[#333]\"\n style={{ boxShadow: 'rgba(20, 27, 50, 0.12) 0.8571rem' }}\n >\n {opts.header.optionShow !== false ? (\n <ChartOptions\n intervalScope={opts.intervalScope}\n intervalType={intervalType}\n limit={limit}\n onCombination={handleCombination}\n />\n ) : (\n <></>\n )}\n\n <HighchartsReact\n constructorType={constructorType}\n highcharts={Highcharts}\n options={opts}\n ref={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AW,EAAE,SAAS,SAAS,KAAK,CAAC;AACzD,QAAM,OAAO,OAAO,MAAM,aAAa,OAAO;AAC9C,OAAK,eAAe,EAAE,OAAO,aAAa;AAC1C,QAAM,kBAAkB,gBAAgB,EAAE,SAAS,QAAQ,CAAC;AAC5D,SACE,qBAAC,SACE;AAAA,SAAK,OAAO,mBAAmB,QAC9B,oBAAC,yBAAc,YAAY,KAAK,OAAO,YAAY,IAEnD,gCAAE;AAAA,IAEH,KAAK,OAAO,cAAc,QACzB,oBAAC,sBAAW,QAAQ,KAAK,QAAQ,IAEjC,gCAAE;AAAA,IAEJ;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,OAAO,EAAE,WAAW,mCAAmC;AAAA,QAEtD;AAAA,eAAK,OAAO,eAAe,QAC1B;AAAA,YAAC;AAAA;AAAA,cACC,eAAe,KAAK;AAAA,cACpB;AAAA,cACA;AAAA,cACA,eAAe;AAAA;AAAA,UACjB,IAEA,gCAAE;AAAA,UAGJ;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,YAAY;AAAA,cACZ,SAAS;AAAA,cACT,KAAK;AAAA;AAAA,UACP;AAAA;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;","names":["limit"]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-VOIYIVZF.js";
|
|
4
4
|
import "../../chunk-LRCAKRPK.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-AYD3HJZF.js";
|
|
6
6
|
import "../../chunk-7RH7LJYB.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-UR2UYNPF.js";
|
|
8
8
|
import "../../chunk-J2I22Q2M.js";
|
|
9
|
+
import "../../chunk-YEUH2K6Z.js";
|
|
9
10
|
import {
|
|
10
11
|
useI18n
|
|
11
12
|
} from "../../chunk-DQGLZCIG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/CopyButton/index.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Tooltip } from '../Tooltip';\nimport { useI18n } from '../../store';\n\ninterface CopyButtonProps {\n size?: number;\n copyText: string;\n tooltipText?: string;\n className?: string;\n color?: string;\n}\n\nexport const CopyButton = React.memo(\n ({ size, copyText, tooltipText, className, color }: CopyButtonProps) => {\n const { translations } = useI18n();\n const { t } = useTranslation();\n const [text, setText] = useState(\n tooltipText || t(translations.general.copyButton.copyToClipboard),\n );\n const handleClick = () => {\n const oInput = document.createElement('input');\n oInput.value = copyText;\n document.body.appendChild(oInput);\n oInput.select();\n const copyResult = document.execCommand('copy');\n document.body.removeChild(oInput);\n if (copyResult) {\n setText(t(translations.general.copyButton.success));\n } else {\n setText(t(translations.general.copyButton.failed));\n }\n };\n\n const handleClose = () => {\n setText(\n tooltipText || t(translations.general.copyButton.copyToClipboard),\n );\n };\n return (\n <Tooltip\n title={text}\n onClose={handleClose}\n closeOnPointerDown={false}\n positioning={{ placement: 'top-start' }}\n className=\"inline-flex items-center\"\n >\n <div onClick={handleClick} className=\"cursor-pointer flex\">\n <svg\n className={`icon ${className}`}\n viewBox=\"0 0 1024 1024\"\n width={size || 12}\n height={size || 12}\n >\n <defs>\n <style type=\"text/css\" />\n </defs>\n <path\n fill={color || '#4b4b4b'}\n d=\"M967.552 760.448H304.896a41.472 41.472 0 0 1-41.344-41.344V56.32c0-22.912 18.56-41.344 41.344-41.344H967.68c22.912 0 41.344 18.432 41.344 41.344v662.656a41.472 41.472 0 0 1-41.344 41.344z m-621.184-82.816h579.84V97.792h-579.84v579.84z\"\n />\n <path\n fill={color || '#4b4b4b'}\n d=\"M719.104 1008.896H56.32a41.472 41.472 0 0 1-41.344-41.344V304.896c0-22.784 18.432-41.344 41.344-41.344h124.16v82.816H98.048v579.84h579.84V847.36h82.688v120.064a41.472 41.472 0 0 1-41.344 41.344z\"\n />\n </svg>\n </div>\n </Tooltip>\n );\n },\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/CopyButton/index.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Tooltip } from '../Tooltip';\nimport { useI18n } from '../../store';\n\ninterface CopyButtonProps {\n size?: number;\n copyText: string;\n tooltipText?: string;\n className?: string;\n color?: string;\n}\n\nexport const CopyButton = React.memo(\n ({ size, copyText, tooltipText, className, color }: CopyButtonProps) => {\n const { translations } = useI18n();\n const { t } = useTranslation();\n const [text, setText] = useState(\n tooltipText || t(translations.general.copyButton.copyToClipboard),\n );\n const handleClick = () => {\n const oInput = document.createElement('input');\n oInput.value = copyText;\n document.body.appendChild(oInput);\n oInput.select();\n const copyResult = document.execCommand('copy');\n document.body.removeChild(oInput);\n if (copyResult) {\n setText(t(translations.general.copyButton.success));\n } else {\n setText(t(translations.general.copyButton.failed));\n }\n };\n\n const handleClose = () => {\n setText(\n tooltipText || t(translations.general.copyButton.copyToClipboard),\n );\n };\n return (\n <Tooltip\n title={text}\n onClose={handleClose}\n closeOnPointerDown={false}\n positioning={{ placement: 'top-start' }}\n className=\"inline-flex items-center\"\n >\n <div onClick={handleClick} className=\"cursor-pointer flex\">\n <svg\n className={`icon ${className}`}\n viewBox=\"0 0 1024 1024\"\n width={size || 12}\n height={size || 12}\n >\n <defs>\n <style type=\"text/css\" />\n </defs>\n <path\n fill={color || '#4b4b4b'}\n d=\"M967.552 760.448H304.896a41.472 41.472 0 0 1-41.344-41.344V56.32c0-22.912 18.56-41.344 41.344-41.344H967.68c22.912 0 41.344 18.432 41.344 41.344v662.656a41.472 41.472 0 0 1-41.344 41.344z m-621.184-82.816h579.84V97.792h-579.84v579.84z\"\n />\n <path\n fill={color || '#4b4b4b'}\n d=\"M719.104 1008.896H56.32a41.472 41.472 0 0 1-41.344-41.344V304.896c0-22.784 18.432-41.344 41.344-41.344h124.16v82.816H98.048v579.84h579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