@abtnode/blocklet-services 1.16.41 → 1.16.42-beta-20250402-131159-7647e64d
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/api/emails/_templates/verify-code-body.js +4 -4
- package/api/routes/blocklet.js +1 -1
- package/api/routes/oauth.js +56 -270
- package/api/routes/user-session.js +1 -1
- package/api/routes/user.js +247 -254
- package/api/services/notification/queue.js +9 -1
- package/api/socket/util.js +1 -4
- package/api/util/federated.js +1 -1
- package/api/util/user-util.js +298 -0
- package/dist/assets/{ArrowDropDown-odHjNJIs.js → ArrowDropDown-B6RijoMg.js} +1 -1
- package/dist/assets/{CheckCircle-BqOSvJMp.js → CheckCircle-Bme_BHSe.js} +1 -1
- package/dist/assets/{ChevronLeft-Dv7rlUf5.js → ChevronLeft-CDiNoyQS.js} +1 -1
- package/dist/assets/{ChevronRight-CWeJn1iz.js → ChevronRight-DyMxK2ti.js} +1 -1
- package/dist/assets/{DeleteOutline-Cr-TyrUV.js → DeleteOutline-C5oIt-tc.js} +1 -1
- package/dist/assets/{Done-C1TA1wbA.js → Done-uAJ8-whC.js} +1 -1
- package/dist/assets/{Download-DxhnUTM_.js → Download-CAwoUjYq.js} +1 -1
- package/dist/assets/{Error-pXXvJFxN.js → Error-J1wFafzM.js} +1 -1
- package/dist/assets/{ExpandLess-Dc_dI20M.js → ExpandLess-B0AhRxh8.js} +1 -1
- package/dist/assets/{Google-DNUuYFIA.js → Google-blbcHt2R.js} +1 -1
- package/dist/assets/{InfoOutlined-CEUhR4DY.js → InfoOutlined-BjH1JBg3.js} +1 -1
- package/dist/assets/{Launch-BUTOr3cR.js → Launch-DJqhcPtC.js} +1 -1
- package/dist/assets/{LaunchOutlined-QHq-RUJt.js → LaunchOutlined-CzBae9mQ.js} +1 -1
- package/dist/assets/{MoreHoriz-D1SOL47a.js → MoreHoriz-Dd-9O1iw.js} +1 -1
- package/dist/assets/{PlayArrow-D7cGSxeN.js → PlayArrow-BEPk9nzV.js} +1 -1
- package/dist/assets/{ViewList-vu1qOJ6P.js → ViewList-CNnrIxVS.js} +1 -1
- package/dist/assets/{access-control-CpxcJItK.js → access-control-PfmU_lzC.js} +1 -1
- package/dist/assets/{actions-4oGfCMlR.js → actions-pYJdaWX5.js} +1 -1
- package/dist/assets/{add-component-core-CE0nArG4.js → add-component-core-CgEuYlWv.js} +31 -31
- package/dist/assets/{add-resource-BYM4JwzE.js → add-resource-Dw_ZKqq3.js} +1 -1
- package/dist/assets/{addon-B9bb2bvM.js → addon-BqlSMpSy.js} +1 -1
- package/dist/assets/{analytics-BXLe73MI.js → analytics-DLD8w-rR.js} +2 -2
- package/dist/assets/api-0KF6Hg7c.js +1 -0
- package/dist/assets/appearance-DyZRbR6W.js +1 -0
- package/dist/assets/ar-HpV-sy4C.js +3 -0
- package/dist/assets/{audit-logs-D8H5E0fC.js → audit-logs-BFKcADf-.js} +2 -2
- package/dist/assets/base32-C0ClYUu9.js +1 -0
- package/dist/assets/{branding-BW1rhy8d.js → branding-8XaHoIBD.js} +2 -2
- package/dist/assets/{bundle-avatar-DHwmIozH.js → bundle-avatar-BYZp7KRE.js} +1 -1
- package/dist/assets/{button-CNnuiac8.js → button-K0-gOTcS.js} +1 -1
- package/dist/assets/{click-to-copy-B0HMuCN_.js → click-to-copy-BfRimSvL.js} +1 -1
- package/dist/assets/{complete-BNf0-iqY.js → complete-1MMVAc2H.js} +1 -1
- package/dist/assets/{component-1r0VSsqq.js → component-BZKPS6he.js} +3 -3
- package/dist/assets/{config-BeD5_8kr.js → config-DRS6lRly.js} +1 -1
- package/dist/assets/{config-CqHmZdZv.js → config-DtYY5NrA.js} +1 -1
- package/dist/assets/{config-navigation-DtN0_qFZ.js → config-navigation-BHoOsyWp.js} +5 -5
- package/dist/assets/{config-space-DlwZewcm.js → config-space-DxdlQBdo.js} +1 -1
- package/dist/assets/{confirm-DmMN-34s.js → confirm-C57Q7ZWM.js} +1 -1
- package/dist/assets/{connect-CC9dcVMV.js → connect-PChwPX8g.js} +1 -1
- package/dist/assets/connect-p9koIBBk.js +1 -0
- package/dist/assets/{connect-to-CzffwD9G.js → connect-to-QLfyUtYC.js} +1 -1
- package/dist/assets/{dashboard-C_Q4TjPa.js → dashboard-Di0Efjh1.js} +4 -4
- package/dist/assets/de-zgFs6Kvs.js +3 -0
- package/dist/assets/{delete-confirm-BTaU_6Kx.js → delete-confirm-L9JNVh3W.js} +1 -1
- package/dist/assets/{did-address-BC-0j4Pt.js → did-address-Bz2Y86pP.js} +1 -1
- package/dist/assets/{domain-action-card-DwQ7Q8wY.js → domain-action-card-Bovam4dU.js} +2 -2
- package/dist/assets/domain-fVU92lIu.js +9 -0
- package/dist/assets/domains-Cs6tdpUa.js +1 -0
- package/dist/assets/{email-mj0bVFDS.js → email-SVI5bjle.js} +2 -2
- package/dist/assets/es-CmwByMO0.js +3 -0
- package/dist/assets/exchange-passport-B3N7KRar.js +1 -0
- package/dist/assets/{form-text-input-BYF6lVnE.js → form-text-input-Cp0lmtAk.js} +2 -2
- package/dist/assets/fr-CLYepc9p.js +3 -0
- package/dist/assets/{fuel-D-kOZuF6.js → fuel-DT6O2ymR.js} +1 -1
- package/dist/assets/{get-safe-url-BKl2A9x2.js → get-safe-url-CJRwqFgD.js} +1 -1
- package/dist/assets/{get-safe-url-QFq5JNoE.js → get-safe-url-DLBNTOpr.js} +1 -1
- package/dist/assets/hi-CSSYN7n8.js +1 -0
- package/dist/assets/{home-CpnMpXiw.js → home-CQ7SI4ml.js} +1 -1
- package/dist/assets/id-C5CwopKG.js +3 -0
- package/dist/assets/{iframe-B9mCpo4I.js → iframe-DPBwIvsP.js} +1 -1
- package/dist/assets/{index-gTQQ3SoE.js → index-8I2oAbEz.js} +9 -9
- package/dist/assets/index-B5HkvoQC.js +4 -0
- package/dist/assets/{index-CmKAznDh.js → index-BYkIfvmH.js} +4 -4
- package/dist/assets/index-B_pl8AF-.js +11 -0
- package/dist/assets/{index-B4Q2DAdn.js → index-Bg3m8iJ-.js} +11 -11
- package/dist/assets/{index-BZvVDfZ4.js → index-Bhnq0cVQ.js} +1 -1
- package/dist/assets/{index-C44fECmB.js → index-BzblYn_P.js} +2 -2
- package/dist/assets/index-C9qItKIC.js +138 -0
- package/dist/assets/{index-Ct7s2LPI.js → index-CAFqxbeJ.js} +3 -3
- package/dist/assets/{index-u-lA6P_E.js → index-CLIxjSVZ.js} +1 -1
- package/dist/assets/{index-BJ2lJo7L.js → index-Cdm81c0H.js} +42 -42
- package/dist/assets/index-DAE7cdom.js +2 -0
- package/dist/assets/{index-DQ_RzIwU.js → index-DGkTgpZy.js} +1 -1
- package/dist/assets/{index-BsUr7wGb.js → index-DZAi-K_N.js} +47 -47
- package/dist/assets/{index-gcSQTx25.js → index-Db6WuAj_.js} +1 -1
- package/dist/assets/index-RSW2vc0s.js +2 -0
- package/dist/assets/{index-CJCg9yIK.js → index-RuFDBiVt.js} +1 -1
- package/dist/assets/{index-79U1RPaq.js → index-bIuZaDHS.js} +1 -1
- package/dist/assets/{index-CGK3FEjY.js → index-kAPvimmq.js} +2 -2
- package/dist/assets/{invitation-B8Qx_pFq.js → invitation-DG6QrvdE.js} +8 -7
- package/dist/assets/invite-CYIssZ1G.js +1 -0
- package/dist/assets/issue-passport-Cft19VvI.js +1 -0
- package/dist/assets/{item-BSGXym2I.js → item-at_gI9OW.js} +1 -1
- package/dist/assets/ja-BPVyKlMZ.js +3 -0
- package/dist/assets/ko-DGmHCGCI.js +3 -0
- package/dist/assets/landing-page-CXo1fefz.js +1 -0
- package/dist/assets/{layout-BqhTD729.js → layout-ChcSB0Y2.js} +1 -1
- package/dist/assets/list-DcSgz3EU.js +211 -0
- package/dist/assets/localization-DXf17X8p.js +1 -0
- package/dist/assets/{log-o_Cadt8j.js → log-D7ImQrI7.js} +1 -1
- package/dist/assets/{login-BQozrLDm.js → login-B9xuIjhY.js} +1 -1
- package/dist/assets/{login-oauth-callback-D7lIww1c.js → login-oauth-callback-BoFezOw0.js} +1 -1
- package/dist/assets/{logo-uploader-CUQ3aWZJ.js → logo-uploader-Bzpld3yG.js} +3 -3
- package/dist/assets/{lost-passport-DkETH2Lu.js → lost-passport-j4coS07J.js} +3 -3
- package/dist/assets/{omit-DZNQhOf-.js → omit-BXVmqD4a.js} +1 -1
- package/dist/assets/{open-window-BOl-kTC2.js → open-window-B8cxsAbD.js} +1 -1
- package/dist/assets/{overview-Bxm05EH6.js → overview-C9x4HKRi.js} +1 -1
- package/dist/assets/{page-header-Dm1v9v5q.js → page-header-YN9FqnGT.js} +1 -1
- package/dist/assets/{permission-B5jnw9r2.js → permission-CTDKdktZ.js} +1 -1
- package/dist/assets/{preferences-uri2RXdB.js → preferences-DM6b-Vr4.js} +1 -1
- package/dist/assets/{profile-embed-DnIQcD-H.js → profile-embed-8sjLgVfn.js} +1 -1
- package/dist/assets/pt-u5ojPOFS.js +1 -0
- package/dist/assets/publish-resource-BJIce778.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-B9MfX9Xl.js → react-beautiful-dnd.esm-CkNk1XBJ.js} +4 -4
- package/dist/assets/{relative-time-RQnsWZQc.js → relative-time-BCARyhz6.js} +1 -1
- package/dist/assets/roboto-cyrillic-400-normal-DAIM1_dR.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-400-normal-Dry59Hjn.woff +0 -0
- package/dist/assets/roboto-cyrillic-500-normal-CsCirF4J.woff +0 -0
- package/dist/assets/roboto-cyrillic-500-normal-hCeO1jFL.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-700-normal-CB1Rmiii.woff +0 -0
- package/dist/assets/roboto-cyrillic-700-normal-CzEIZVQR.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-ext-400-normal-BxX1-eA_.woff +0 -0
- package/dist/assets/roboto-cyrillic-ext-400-normal-DzMWdK87.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-ext-500-normal-B7rQpwPu.woff2 +0 -0
- package/dist/assets/roboto-cyrillic-ext-500-normal-ElvJfk8V.woff +0 -0
- package/dist/assets/roboto-cyrillic-ext-700-normal-CIu0AXX2.woff +0 -0
- package/dist/assets/roboto-cyrillic-ext-700-normal-D_fA0fHY.woff2 +0 -0
- package/dist/assets/roboto-greek-400-normal-CAI06USH.woff +0 -0
- package/dist/assets/roboto-greek-400-normal-jFM2czAU.woff2 +0 -0
- package/dist/assets/roboto-greek-500-normal-BJMS0heP.woff2 +0 -0
- package/dist/assets/roboto-greek-500-normal-D8eQD5zT.woff +0 -0
- package/dist/assets/roboto-greek-700-normal-DCrt6r9F.woff +0 -0
- package/dist/assets/roboto-greek-700-normal-DpKAje7q.woff2 +0 -0
- package/dist/assets/roboto-latin-400-normal-551zQQ7R.woff +0 -0
- package/dist/assets/roboto-latin-400-normal-CNwBRw8h.woff2 +0 -0
- package/dist/assets/roboto-latin-500-normal-CkrA1NAy.woff2 +0 -0
- package/dist/assets/roboto-latin-500-normal-_8jDuD7w.woff +0 -0
- package/dist/assets/roboto-latin-700-normal-CTLkNcF_.woff +0 -0
- package/dist/assets/roboto-latin-700-normal-DZr4b_KL.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-400-normal-ZYmyxeOy.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-400-normal-uRIBRJt5.woff +0 -0
- package/dist/assets/roboto-latin-ext-500-normal-C_ARlJGk.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-500-normal-eJ10kk0m.woff +0 -0
- package/dist/assets/roboto-latin-ext-700-normal-BNPgmEQS.woff2 +0 -0
- package/dist/assets/roboto-latin-ext-700-normal-Cnx4FGpK.woff +0 -0
- package/dist/assets/roboto-math-400-normal-B3wgz80t.woff2 +0 -0
- package/dist/assets/roboto-math-400-normal-DHrwdhE6.woff +0 -0
- package/dist/assets/roboto-math-500-normal-CFNaIMFC.woff2 +0 -0
- package/dist/assets/roboto-math-500-normal-CetgDdIa.woff +0 -0
- package/dist/assets/roboto-math-700-normal-CpTCM92H.woff +0 -0
- package/dist/assets/roboto-math-700-normal-xbpggnJp.woff2 +0 -0
- package/dist/assets/roboto-symbols-400-normal-bG5rsNFs.woff +0 -0
- package/dist/assets/roboto-symbols-400-normal-fF1SLJBj.woff2 +0 -0
- package/dist/assets/roboto-symbols-500-normal-BXFTxrNR.woff2 +0 -0
- package/dist/assets/roboto-symbols-500-normal-toKUCDph.woff +0 -0
- package/dist/assets/roboto-symbols-700-normal-B2QKVW64.woff +0 -0
- package/dist/assets/roboto-symbols-700-normal-DKkQdRpM.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-400-normal-CDDxGrUb.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-400-normal-DgufTq8s.woff +0 -0
- package/dist/assets/roboto-vietnamese-500-normal-Dw5heWgq.woff +0 -0
- package/dist/assets/roboto-vietnamese-500-normal-HYpufUYk.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-700-normal-BFWtvCOj.woff2 +0 -0
- package/dist/assets/roboto-vietnamese-700-normal-ChAl_rRV.woff +0 -0
- package/dist/assets/ru-DBl90RHJ.js +1 -0
- package/dist/assets/sdk-DbmS8LqQ.js +1 -0
- package/dist/assets/session-BaYtKD4f.js +1 -0
- package/dist/assets/{setup-7Gq9K_8k.js → setup-BtUUdr-p.js} +3 -3
- package/dist/assets/{start-BSUY3DBl.js → start-CdXw9NWC.js} +1 -1
- package/dist/assets/{status-C52-BFuY.js → status-B6cew_GQ.js} +1 -1
- package/dist/assets/{step-actions-CA74dwgt.js → step-actions-D-RgRm8H.js} +1 -1
- package/dist/assets/{studio-CAnZfyBM.js → studio-KYZUr4tT.js} +1 -1
- package/dist/assets/{switch-control-BBlLGjaH.js → switch-control-CpOzvDua.js} +1 -1
- package/dist/assets/th-CbjesoRG.js +1 -0
- package/dist/assets/{traffic-CJDIGmp5.js → traffic-CvAD-wB3.js} +1 -1
- package/dist/assets/transfer-BSgBIknw.js +16 -0
- package/dist/assets/{unsubscribe-afXXIHEf.js → unsubscribe-I8S6Tbwg.js} +1 -1
- package/dist/assets/{useAsync-DM8qaMe4.js → useAsync-Cq0wbMuR.js} +1 -1
- package/dist/assets/{useAsyncRetry-B7SbzXVI.js → useAsyncRetry-BNLrNsx3.js} +1 -1
- package/dist/assets/{useLocalStorage-Dd4pybDP.js → useLocalStorage-Cligjpwl.js} +1 -1
- package/dist/assets/user-center-C1k0oYvY.js +67 -0
- package/dist/assets/{util-C_BCTHfw.js → util-BFBz0dr8.js} +1 -1
- package/dist/assets/{util-YyWTpLT7.js → util-COcKIr8L.js} +1 -1
- package/dist/assets/vendor-arcblock-krD2mwVA.js +1598 -0
- package/dist/assets/{vendor-hooks-sw5wvnca.js → vendor-hooks-BdjOQw7q.js} +1 -1
- package/dist/assets/vendor-utils-BbDUMsIF.js +11 -0
- package/dist/assets/vendor-ux-did-connect-BDmhBveY.css +1 -0
- package/dist/assets/vendor-ux-did-connect-YqGDzQ2U.js +1843 -0
- package/dist/assets/vi-xat6Zv0n.js +1 -0
- package/dist/assets/wrap-locale-BCL-ID0T.js +1 -0
- package/dist/assets/zh-BgH3IZTD.js +4 -0
- package/dist/assets/zh-tw-UWzs9p3g.js +3 -0
- package/dist/images/all-done.png +0 -0
- package/dist/index.html +6 -6
- package/dist/service-worker.js +1 -1
- package/package.json +37 -39
- package/dist/assets/api-D9Yi7Zdr.js +0 -1
- package/dist/assets/appearance-DX7SoW1u.js +0 -1
- package/dist/assets/ar-2k9jaPIk.js +0 -3
- package/dist/assets/base32-BNpDT-6Q.js +0 -1
- package/dist/assets/connect-BfSOEYV-.js +0 -1
- package/dist/assets/de-B9cLhykn.js +0 -3
- package/dist/assets/domain-CLMRXecU.js +0 -9
- package/dist/assets/domains-DF7TtN5q.js +0 -1
- package/dist/assets/es-BoQohonz.js +0 -3
- package/dist/assets/exchange-passport--DeUPzbW.js +0 -1
- package/dist/assets/fr-doSYAOrt.js +0 -3
- package/dist/assets/fullpage-DO8Hcbkl.js +0 -1
- package/dist/assets/hi-B_BwhpD8.js +0 -1
- package/dist/assets/id-BgYIZCvk.js +0 -3
- package/dist/assets/index-BVOYP6aR.js +0 -11
- package/dist/assets/index-DqC2o5PB.js +0 -4
- package/dist/assets/index-DyTFEgKr.js +0 -1
- package/dist/assets/index-eCY24sH9.js +0 -137
- package/dist/assets/inter-latin-300-normal-CvRFFuZy.woff2 +0 -0
- package/dist/assets/inter-latin-300-normal-ORCTF8i-.woff +0 -0
- package/dist/assets/inter-latin-400-normal-BOOGhInR.woff2 +0 -0
- package/dist/assets/inter-latin-400-normal-gitzw0hO.woff +0 -0
- package/dist/assets/inter-latin-500-normal-D2bGa7uu.woff2 +0 -0
- package/dist/assets/inter-latin-500-normal-deR1Tlfd.woff +0 -0
- package/dist/assets/inter-latin-700-normal-B8MtJ_2k.woff +0 -0
- package/dist/assets/inter-latin-700-normal-Sckx8rpT.woff2 +0 -0
- package/dist/assets/inter-latin-ext-300-normal-C2kLfG2J.woff2 +0 -0
- package/dist/assets/inter-latin-ext-300-normal-n8Ps4oXY.woff +0 -0
- package/dist/assets/inter-latin-ext-400-normal-C1t-h-pH.woff +0 -0
- package/dist/assets/inter-latin-ext-400-normal-hnt3BR84.woff2 +0 -0
- package/dist/assets/inter-latin-ext-500-normal-CIS2RHJS.woff2 +0 -0
- package/dist/assets/inter-latin-ext-500-normal-UMdmhHu2.woff +0 -0
- package/dist/assets/inter-latin-ext-700-normal-6V9MnIL5.woff +0 -0
- package/dist/assets/inter-latin-ext-700-normal-CzikT_rs.woff2 +0 -0
- package/dist/assets/invite-BBaF_vyc.js +0 -1
- package/dist/assets/issue-passport-DC-ly7xg.js +0 -1
- package/dist/assets/ja-FMMLI8YD.js +0 -3
- package/dist/assets/ko-C0kmRXYE.js +0 -3
- package/dist/assets/list-BHs8uNT5.js +0 -200
- package/dist/assets/localization-daPAWMzR.js +0 -1
- package/dist/assets/login-bg-Cbfh9Uc2.png +0 -0
- package/dist/assets/pt-C2UJZK-O.js +0 -1
- package/dist/assets/publish-resource-V53U1NNv.js +0 -1
- package/dist/assets/ru-DDA5s4-r.js +0 -1
- package/dist/assets/sdk-BKSsfgrc.js +0 -1
- package/dist/assets/session-6ZeN-aF2.js +0 -1
- package/dist/assets/th-DmqOUn4C.js +0 -1
- package/dist/assets/transfer-cG2e24sz.js +0 -16
- package/dist/assets/user-center-T8Xw464s.js +0 -67
- package/dist/assets/vendor-arcblock-DvaaLvvM.js +0 -2361
- package/dist/assets/vendor-utils-DR57WNxP.js +0 -11
- package/dist/assets/vendor-ux-did-connect-Bciw9Ypu.js +0 -1077
- package/dist/assets/vendor-ux-did-connect-DhgPdlEj.css +0 -1
- package/dist/assets/vi-Cf__CtPD.js +0 -1
- package/dist/assets/wrap-locale-CX50Vz0w.js +0 -1
- package/dist/assets/zh-NXspK2yu.js +0 -4
- package/dist/assets/zh-tw-DYYDVX5I.js +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e,T as w,ai as y,t as P,a4 as i,E as r}from"./vendor-mui-core-DxqV1NVn.js";import{bv as k,bw as z,bx as A,V as b,by as C,h as j}from"./vendor-ux-did-connect-YqGDzQ2U.js";import{f as E}from"./vendor-hooks-BdjOQw7q.js";function L({linkProps:s,showExtra:o,...a}){return e.jsxs(w,{...a,children:["Powered by"," ",e.jsx(y,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...s,children:"ArcBlock"}),"'s"," ",e.jsx(y,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...s,children:"Blocklet Technology"}),o?", the decentralized web engine.":null]})}function v({did:s,children:o,title:a,description:d,actions:h,logo:t,logoSize:c,poweredBy:f,termsOfUse:g}){const n=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{},x=P(l=>l.breakpoints.down("lg")),I=E(()=>{const l=n.appPid,m=k.isEthereumDid(l),B=m?void 0:z(l);return m?A(l):B.color},[n==null?void 0:n.appPid]);if(!s)return o;a===void 0&&(a=n.appName),d===void 0&&(d=n.appDescription),t===void 0&&(t=(n==null?void 0:n.appLogoRect)||(n==null?void 0:n.appLogo)||""),typeof t=="string"&&(t?t=e.jsx(i,{sx:{height:c,maxHeight:c,objectFit:"contain"},component:"img",src:t,alt:`${n.appName}'s logo`}):t=e.jsx(b,{size:c,did:s,src:t,variant:"rounded"})),f===void 0&&(f=e.jsx(L,{linkProps:{underline:"always",color:j.textSubtitle},showExtra:!x,sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"12px",color:j.textSubtitle}}));let p=o;!o&&!x&&(p=e.jsx(i,{sx:{filter:"blur(180px)",display:"flex"},children:e.jsx(b,{size:210,did:s,variant:"rounded"})}));const T=!!o;let u=!0;return x&&(u=!T),e.jsxs(i,{sx:{width:"100vw",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",px:8,py:6,background:`radial-gradient(circle at bottom right, ${C(I,.3)} 10%, #ffffff 50%)`,position:"relative"},children:[e.jsxs(i,{sx:{maxWidth:1200,display:"flex",alignItems:"center",justifyContent:[u,p].filter(Boolean).length>1?"space-between":"space-around",width:"100%",margin:"auto"},children:[u?e.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[e.jsx(i,{sx:{display:"flex",alignItems:"center"},children:t}),e.jsx(w,{variant:"h2",sx:{fontWeight:"bold",fontSize:{sm:"2.25rem",md:"2.75rem",xl:"3.5rem"}},children:a}),d?e.jsx(i,{variant:"h5",sx:{mb:2,color:"text.secondary"},children:d}):null,h?e.jsx(i,{sx:{mt:8},children:h}):null,g?e.jsx(i,{sx:{mt:-1,color:"grey"},children:g}):null]}):null,p]}),e.jsx(i,{sx:{position:"absolute",bottom:10,left:0,right:0,textAlign:"center"},children:f})]})}v.propTypes={did:r.string.isRequired,children:r.any.isRequired,title:r.any,description:r.any,logo:r.any,logoSize:r.number,actions:r.any,poweredBy:r.any,termsOfUse:r.any};v.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:50};export{v as L};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,aa as m}from"./vendor-mui-core-DxqV1NVn.js";import{C as u}from"./content-layout-7vu3yv_f.js";import{u as c,W as s}from"./vendor-ux-did-connect-
|
|
1
|
+
import{j as r,aa as m}from"./vendor-mui-core-DxqV1NVn.js";import{C as u}from"./content-layout-7vu3yv_f.js";import{u as c,W as s}from"./vendor-ux-did-connect-YqGDzQ2U.js";import{J as d,h as i}from"./index-DZAi-K_N.js";const p=m(u)`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import{r as u}from"./vendor-react-DoD83n6N.js";import{E as i,j as t,ai as J,a4 as p,T as I,aa as H,t as D,al as Z,bF as ve,a5 as Fe,bG as Ve,am as Ge,ab as Qe,a2 as je,e as ee,m as Ke,bi as U,bR as Xe,x as Ye,s as Je,I as Ze}from"./vendor-mui-core-DxqV1NVn.js";import{f as _,u as X}from"./vendor-hooks-BdjOQw7q.js";import{Q as te,G as et,bj as re,h as E,U as tt,u as be,r as we,g as Re,m as rt,bz as nt}from"./vendor-ux-did-connect-YqGDzQ2U.js";import{S as st}from"./index-D_wVtHmh.js";import{B as it}from"./bundle-avatar-BYZp7KRE.js";import{c as W,s as O,g as Ce,H as ot,h as F,f as ke,u as Se,M as $e,d as at,m as lt,a as xe,i as ct,B as dt}from"./index-DAE7cdom.js";import{R as Me}from"./relative-time-BCARyhz6.js";import{y as ne,aa as ut,z as A,Y as pt,x as ht}from"./vendor-utils-BbDUMsIF.js";import{p as mt,e as ft}from"./vendor-arcblock-krD2mwVA.js";import{F as Ie,A as xt}from"./index-DZAi-K_N.js";import{d as gt}from"./InfoOutlined-BjH1JBg3.js";import{d as yt}from"./CheckCircle-Bme_BHSe.js";import{p as vt}from"./util-COcKIr8L.js";function Te({attachment:e}){const{data:r}=e;let n="";try{n=new URL(r.url).host}catch{n=r.url}return t.jsxs(J,{target:"_blank",rel:"noopener noreferrer",href:r.url,className:"link",style:{wordBreak:"break-all"},onClick:s=>{s.customPreventRedirect=!0},children:[!!n&&t.jsx("span",{className:"url",children:n}),!!r.title&&t.jsx(p,{className:"title",style:{whiteSpace:"unset"},children:r.title}),!!r.description&&t.jsx(p,{className:"description",style:{whiteSpace:"unset",color:"rgba(75, 85, 99, 1)"},children:r.description}),!!r.image&&t.jsx("img",{src:Ie.getImagePath(r.image),alt:r.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}Te.propTypes={attachment:i.object.isRequired};function Pe({attachment:e}){const{data:r}=e;return t.jsx("img",{src:Ie.getImagePath(r.url),alt:r.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}Pe.propTypes={attachment:i.object.isRequired};function se({attachment:e,...r}){var c;const{data:n}=e,s=((c=n.color)==null?void 0:c.toLowerCase())||r.color,o=n.size||r.size,l=n.fontWeight||r.fontWeight||400;let a="14px";return o==="small"?a="12px":o==="normal"?a="14px":o==="big"?a="16px":o==="large"&&(a="18px"),t.jsx("span",{className:"title",style:{fontSize:a,color:s,whiteSpace:"unset",fontWeight:l},children:n.text})}se.propTypes={attachment:i.object.isRequired};ie.propTypes={locale:i.string,data:i.object.isRequired};ie.defaultProps={locale:"en"};function ie({locale:e="en",data:r}){const n={zh:"来自",en:"from"}[e]||"from",s={zh:"接收",en:"Received"}[e]||"Received",l=`https://${W.getUrlHost(r.chainHost)||W.getChainHost(r.chainId)}/explorer/tokens/${r.address}/tx`;let a=r.amount;r.decimal&&(a=r.amount/10**r.decimal);const c=_(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx("a",{href:l,target:"_blank",rel:"noreferrer",onClick:v=>{v.customPreventRedirect=!0},children:t.jsxs(p,{display:"flex",flexDirection:"column",children:[t.jsxs(p,{sx:c,children:[t.jsx(I,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:s}),t.jsxs(I,{component:"div",align:"right",style:O.summaryStyle,flex:1,children:["+",a," ",r.symbol]})]}),t.jsxs(p,{sx:c,children:[t.jsx(I,{component:"div",style:{...O.remarkStyle,fontSize:14},children:n}),t.jsx(p,{sx:{maxWidth:"252px",fontSize:"14px"},children:t.jsx(te,{did:r.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}oe.propTypes={locale:i.string,data:i.object.isRequired};oe.defaultProps={locale:"en"};function oe({locale:e,data:r}){var v,j;const n={zh:"接收",en:"Received"}[e]||"Received",s={zh:"来自",en:"from"}[e]||"from",o=W.getUrlHost(r.chainHost)||W.getChainHost(r.chainId),l=r.did||((j=(v=r==null?void 0:r.credential)==null?void 0:v.issuer)==null?void 0:j.id)||"",a=`https://${o}/explorer/assets/${l}`,c=_(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx(p,{sx:{pr:1},children:t.jsx("a",{href:a,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block"},onClick:f=>{f.customPreventRedirect=!0},rel:"noreferrer",children:t.jsxs(p,{display:"flex",flexDirection:"column",children:[t.jsxs(p,{sx:c,children:[t.jsx(I,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),t.jsx(I,{component:"div",align:"right",style:O.summaryStyle,children:"+1 Asset"})]}),l?t.jsxs(p,{sx:c,children:[t.jsx(I,{component:"div",style:{...O.remarkStyle,fontSize:14},children:s}),t.jsx(p,{sx:{maxWidth:"252px",fontSize:"14px"},children:t.jsx(te,{did:l,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}ze.propTypes={data:i.object.isRequired,locale:i.string};function ze({data:e,locale:r="en"}){return t.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},onClick:n=>{n.customPreventRedirect=!0},rel:"noreferrer",children:[t.jsx("img",{className:"image",src:e.logo,width:50,height:50,alt:""}),t.jsxs("div",{style:{flex:1,marginLeft:"10px"},children:[t.jsx("div",{style:{marginBottom:"6px"},children:e.title}),t.jsx("div",{style:{color:"#a5a5a5",fontSize:10,maxWidth:"252px"},children:t.jsx(te,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:r})})]})]})}ae.propTypes={locale:i.string,data:i.object.isRequired};ae.defaultProps={locale:"en"};function ae({locale:e,data:r}){const n=W.getChainHost(r.chainId),s=`https://${n}/explorer/txs/${r.hash}`,o={zh:"交易详情",en:"Transaction Details"}[e]||"Transaction Details",l={zh:"交易哈希",en:"Transaction Hash"}[e]||"Transaction Hash";return t.jsxs("a",{href:s,target:"_blank",style:{textDecoration:"none",color:"initial",display:"block",fontSize:14},onClick:a=>{a.customPreventRedirect=!0},rel:"noreferrer",children:[t.jsx("h6",{style:{color:"#a5a5a5",margin:0},children:n}),t.jsx("p",{style:{color:"#4598fa",margin:0},children:o}),t.jsxs("div",{style:{wordBreak:"break-all"},children:[l,": ",r.hash]})]})}function Ne({data:e,isMd:r=!1}){return t.jsx(p,{display:"flex",flexDirection:r?"row":"column",justifyContent:"space-between",sx:{width:r?"100%":"auto",flexWrap:"nowrap",gap:1},children:e.items.map((n,s)=>t.jsx(se,{attachment:n,color:s===0?"rgba(156, 163, 175, 1)":"",size:s===0?"normal":"big",fontWeight:s===0?400:600,sx:et(s===0?{flexShrink:0}:{flex:1})},s))})}Ne.propTypes={data:i.array.isRequired,isMd:i.bool};function Ae({attachment:e,...r}){const{local:n}=u.useContext(re),s=D(o=>o.breakpoints.down("md"));return t.jsxs(jt,{"data-testid":"attachment-preview",...r,isMd:s,children:[e.type==="link"&&t.jsx(Te,{attachment:e,...r,isMd:s}),e.type==="image"&&t.jsx(Pe,{attachment:e,isMd:s}),e.type==="text"&&t.jsx(se,{attachment:e,isMd:s}),e.type==="token"&&t.jsx(ie,{data:e.data,local:n,isMd:s}),e.type==="asset"||e.type==="vc"?t.jsx(oe,{data:e.data,local:n,isMd:s}):null,e.type==="dapp"&&t.jsx(ze,{data:e.data,local:n,isMd:s}),e.type==="transaction"&&t.jsx(ae,{data:e.data,local:n,...r,isMd:s}),e.type==="divider"&&t.jsx(Z,{sx:{mb:1,mt:1},style:{color:E.dividerColor}}),e.type==="combined"&&t.jsx(Ne,{data:e,isMd:s})]})}const jt=H.div`
|
|
2
|
+
display: ${({sx:e={}})=>e.display||"flex"};
|
|
3
|
+
flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
|
|
4
|
+
gap: ${({sx:e={}})=>e.gap||1};
|
|
5
|
+
width: ${({isMd:e=!1})=>e?"100%":"auto"};
|
|
6
|
+
&:last-child {
|
|
7
|
+
margin-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
`;Ae.propTypes={attachment:i.object.isRequired};function Le({data:e,...r}){const{items:n}=e;return t.jsx(bt,{...r,children:n.map(s=>t.jsxs(ve,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[t.jsxs(p,{display:"flex",alignItems:"center",gap:1,children:[s.icon?t.jsx("img",{src:s.icon,alt:s.title,style:{width:16,height:16}}):null,t.jsxs(p,{className:"metric-name",display:"flex",alignItems:"center",children:[s.title,s.subtitle?t.jsx(Fe,{title:s.subtitle,arrow:!0,placement:"top",children:t.jsx(gt,{fontSize:"small",sx:{fontSize:14,ml:.5}})}):null]})]}),t.jsxs(p,{className:"metric-number",sx:{color:s.content_color||"rgba(3, 7, 18, 1)"},children:[s.content,s.sub_content?t.jsxs("span",{className:"sub-content",style:{color:s.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",s.sub_content,")"]}):null]})]},s.title))})}const bt=H(p)`
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: flex-start;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
gap: 16px;
|
|
14
|
+
.metric-number {
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
.sub-content {
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
margin-left: 4px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.metric-name {
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
color: rgba(156, 163, 175, 1);
|
|
26
|
+
}
|
|
27
|
+
`;Le.propTypes={data:i.object.isRequired};function De({data:e}){const{items:r}=e,n=D(a=>a.breakpoints.down("sm")),s=D(a=>a.breakpoints.down("md")),o=D(a=>a.breakpoints.down("lg")),l=()=>n?1:s?3:o?4:6;return t.jsx(Ve,{variant:"quilted",cols:l(),gap:8,rowHeight:128,sx:{margin:0},children:r.map(a=>{const c=a.cover||a.display;return c?t.jsx("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",children:t.jsx(Ge,{children:t.jsx("img",{src:c,alt:a.title||"",style:{borderRadius:"8px"}})})},c):null})})}De.propTypes={data:i.object.isRequired};function le({data:e,feedType:r,...n}){return t.jsxs(wt,{...n,children:[r==="data-tracker"&&e.type==="table"&&t.jsx(Le,{data:e}),(r==="graphic"||r==="gallery")&&t.jsx(De,{data:e})]})}const wt=H.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
width: 100%;
|
|
31
|
+
margin-bottom: 4px;
|
|
32
|
+
&:last-child {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
`;le.propTypes={data:i.object.isRequired,feedType:i.string};le.defaultProps={feedType:"data-tracker"};const Rt=e=>{let r="rgba(0, 0, 0, 0.12)";return e==="warning"?r="#DE9E37":e==="error"?r="#F16E6E":r="rgba(0, 0, 0, 0.12)",r},Ct=e=>e.every(r=>r.type==="text"),kt=e=>e.every(r=>r.type==="image"),St=e=>ut(e,2).map(r=>({type:"combined",items:r})).filter(r=>(r.items||[]).every(n=>{var s,o,l;return(l=(o=(s=n==null?void 0:n.data)==null?void 0:s.text)==null?void 0:o.trim)==null?void 0:l.call(o)})),$t=e=>{if(!e.length||e.length<=1)return!1;const r=e[0].type;return e.every(n=>n.type===r)},Mt=async(e,r)=>{const s=new tt().user;if(s)try{return await s.getUserPublicInfo({did:e})?await s.getProfileUrl({did:e,locale:r}):void 0}catch(o){console.error(o);return}},It=(e,r)=>{var s;const n=(s=r==null?void 0:r.componentMountPoints)==null?void 0:s.find(o=>o.did===e);return n==null?void 0:n.mountPoint},Tt=(e,r)=>{var o,l,a;if(!e)return null;if(((o=e.actions)==null?void 0:o.length)===1)return e.actions[0].link||null;const n=Ce(e.activity),s=(n==null?void 0:n.metaLink)||(n==null?void 0:n.targetLink);if(s)return ne(r,s);if(((l=e.attachments)==null?void 0:l.length)===1){const c=e.attachments[0];if(c.type==="link")return((a=c.data)==null?void 0:a.url)||null}return null},Pt=e=>{const{receivers:r=[]}=e;return r.length?r.every(n=>n.read):!0};function ce({notification:e,severity:r,showSke:n=!0}){const{attachments:s,data:o,...l}=e,a=D(f=>f.breakpoints.down("md"));if((!s||!s.length)&&A(o))return null;const c=Rt(r),v=(f,C=!1)=>{if(!f&&!Array.isArray(f))return null;let y=f,$={},d="horizontal";C&&Ct(f)&&(y=St(f),d="vertical",$={display:"flex",gap:8,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%"});const x=$t(y);return t.jsx(p,{sx:{width:"100%",display:"flex",gap:1,flexDirection:C?"row":"column",justifyContent:"flex-start",alignItems:C?"center":"unset",flexWrap:"wrap"},children:y.map((h,b)=>h.type==="section"?t.jsx(u.Fragment,{children:v(h.fields,!0)},b):t.jsxs(u.Fragment,{children:[t.jsx(Ae,{attachment:h,sx:$,...l}),!(a&&d==="vertical")&&x&&y.length>1&&b!==y.length-1?t.jsx(Z,{orientation:d,style:{color:E.dividerColor},sx:d==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},b))})},j=kt(s);return t.jsx(zt,{children:t.jsxs("div",{className:"message-in-list",children:[s.length>0&&t.jsx("div",{className:"message-container",style:a?{width:"100%"}:{},children:j?v(s):t.jsx(ve,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:v(s)})}),!A(o)&&t.jsx("div",{className:"message-container",children:t.jsx("div",{className:"data-container",children:t.jsx(le,{data:o,feedType:e.feedType})})}),s.length===0&&A(o)&&n&&t.jsx(Qe,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const zt=H.div`
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
.message-in-list {
|
|
39
|
+
padding: 8px 8px 8px 0;
|
|
40
|
+
display: flex;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
}
|
|
43
|
+
.message-title {
|
|
44
|
+
color: #25292f;
|
|
45
|
+
font-size: 18px;
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
word-break: break-all;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.attach-ske {
|
|
51
|
+
position: relative;
|
|
52
|
+
margin-left: 10px;
|
|
53
|
+
&::after {
|
|
54
|
+
content: '';
|
|
55
|
+
position: absolute;
|
|
56
|
+
left: -10px;
|
|
57
|
+
top: 0;
|
|
58
|
+
height: 100%;
|
|
59
|
+
width: 4px;
|
|
60
|
+
background-color: ${e=>e.leftLineColor};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.message-body {
|
|
65
|
+
color: #25292f;
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
word-break: break-all;
|
|
68
|
+
white-space: pre-line;
|
|
69
|
+
}
|
|
70
|
+
.message-container {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: flex-start;
|
|
74
|
+
.data-container,
|
|
75
|
+
.attachment-container {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.actions-container {
|
|
82
|
+
margin-top: 10px;
|
|
83
|
+
.actions-item {
|
|
84
|
+
margin-right: 8px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
`;ce.propTypes={severity:i.string.isRequired,notification:i.object.isRequired,showSke:i.bool};ce.defaultProps={showSke:!0};const K=e=>mt.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),Nt=async(e,r)=>{const{type:n,did:s}=e;return ke.isSameAddr(n,"did")?await Mt(s,r)||F.getLink(e):F.getLink(e)},At=async(e,r,n=!0)=>{const s=F.toTextList(e);return await Promise.all(s.map(async l=>{if(l instanceof F.Link){if(n){const a=await Nt(l,r),{type:c,chainId:v,did:j}=l;return ke.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${v}" data-did="${j}">${l.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${l.text}</a>`:`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${v}" data-did="${j}">${l.text}</em>`}return l.text}return l})).then(l=>l.join(""))};_e.propTypes={notification:i.object,rows:i.number,minimal:i.bool};function _e({notification:e,rows:r=2,minimal:n=!1}){const[s,o]=u.useState(!1),[l,a]=u.useState(""),{t:c,locale:v}=be(),j=u.useMemo(()=>{const{attachments:h}=e||{};if(!h)return!1;try{return h.length>0}catch{return!1}},[e]),f=u.useMemo(()=>{const{blocks:h}=e||{};if(!h)return!1;try{return h.length>0}catch{return!1}},[e]),C=u.useMemo(()=>{const{description:h}=e||{};return!!h},[e]),y=u.useMemo(()=>{const{data:h}=e||{};return!A(h)},[e]),$=u.useMemo(()=>j||f||C||y,[j,f,C,y]);if(u.useEffect(()=>{At((e==null?void 0:e.description)??"",v).then(h=>{a(h)})},[e==null?void 0:e.description,v]),!$)return null;const d=()=>r===0?"":s?`<span class='toggle-btn' data-name='toggle-expanded'>${c("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${c("common.expand")}</span>`,x=h=>{const{target:b}=h;b.getAttribute("data-name")==="toggle-expanded"&&(o(!s),h.customPreventRedirect=!0)};return t.jsxs(Lt,{color:n?"#fff":"",children:[t.jsx(p,{className:"text-container",component:"div",onClick:x,children:l&&(!s&&r>0?t.jsx(ot,{basedOn:"letters",unsafeHTML:K(l),maxLine:r,ellipsisHTML:K(d())}):t.jsx(I,{component:"div",className:`content ${r===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important"},dangerouslySetInnerHTML:{__html:K(`${l}${d()}`)}}))}),!n&&(j||y)?t.jsx(ce,{severity:e.severity,notification:e}):null]})}const Lt=H(p)`
|
|
88
|
+
width: 100%;
|
|
89
|
+
color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
|
|
90
|
+
.text-container {
|
|
91
|
+
word-wrap: break-word;
|
|
92
|
+
word-break: break-all;
|
|
93
|
+
color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
|
|
94
|
+
.toggle-btn {
|
|
95
|
+
display: inline-block;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
margin-left: 4px;
|
|
99
|
+
color: rgba(59, 130, 246, 1);
|
|
100
|
+
}
|
|
101
|
+
.content.ellipsis {
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
word-break: break-all;
|
|
105
|
+
display: block;
|
|
106
|
+
display: -webkit-box;
|
|
107
|
+
-webkit-box-orient: vertical;
|
|
108
|
+
-webkit-line-clamp: 2;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`,Dt=u.memo(_e);var de={},_t=je;Object.defineProperty(de,"__esModule",{value:!0});var Ee=de.default=void 0,Et=_t(we()),Ht=t;Ee=de.default=(0,Et.default)((0,Ht.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var ue={},qt=je;Object.defineProperty(ue,"__esModule",{value:!0});var He=ue.default=void 0,Wt=qt(we()),Bt=t;He=ue.default=(0,Wt.default)((0,Bt.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");const Ut={error:Ee,warning:He,info:ft,success:yt};pe.propTypes={severity:i.oneOf(["error","warning","info","success"]).isRequired,size:i.number};pe.defaultProps={size:32};function pe({severity:e="info",size:r=32}){const n=ee(),o=_(()=>({error:n.palette.error.main,warning:n.palette.warning.main,info:n.palette.info.main,success:n.palette.success.main}))[e],l=Ut[e],a=Ke(o,.1);return t.jsx(U,{sx:{width:r,height:r,bgcolor:a,color:o},children:t.jsx(l,{fontSize:"small"})})}const Ot={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M5.821 4.91c3.898-2.765 9.469-2.539 13.073.536c3.667 3.127 4.168 8.238 1.152 11.897c-2.842 3.447-7.965 4.583-12.231 2.805l-.232-.101l-4.375.931l-.075.013l-.11.009l-.113-.004l-.044-.005l-.11-.02l-.105-.034l-.1-.044l-.076-.042l-.108-.077l-.081-.074l-.073-.083l-.053-.075l-.065-.115l-.042-.106l-.031-.113l-.013-.075l-.009-.11l.004-.113l.005-.044l.02-.11l.022-.072l1.15-3.451l-.022-.036C.969 12.45 1.97 7.805 5.59 5.079l.23-.168z"/></g>'},Ft={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M12 2a5 5 0 1 1-5 5l.005-.217A5 5 0 0 1 12 2zm2 12a5 5 0 0 1 5 5v1a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-1a5 5 0 0 1 5-5h4z"/></g>'},Vt={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M17 3.34A10 10 0 1 1 2 12l.005-.324A10 10 0 0 1 17 3.34zM12 6a1 1 0 0 0-1 1a3 3 0 1 0 0 6v2a1.024 1.024 0 0 1-.866-.398l-.068-.101a1 1 0 0 0-1.732.998a3 3 0 0 0 2.505 1.5H11a1 1 0 0 0 .883.994L12 18a1 1 0 0 0 1-1l.176-.005A3 3 0 0 0 13 11V9c.358-.012.671.14.866.398l.068.101a1 1 0 0 0 1.732-.998A3 3 0 0 0 13.161 7H13a1 1 0 0 0-1-1zm1 7a1 1 0 0 1 0 2v-2zm-2-4v2a1 1 0 0 1 0-2z"/></g>'},Gt={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0"/><path d="M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-5.5 8.28"/></g>'},Qt={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 10l-4 4l6 6l4-16l-18 7l4 2l2 6l3-4"/>'},ge={comment:{icon:Ot,bgColor:"rgba(239, 246, 255, 1)",color:"rgba(43, 127, 255, 1)"},like:{icon:"👍",bgColor:"rgba(244, 244, 245, 1)",color:"yellow",renderType:"emoji"},follow:{icon:Ft,bgColor:"rgba(238, 242, 255, 1)",color:"rgba(97, 95, 255, 1)"},tips:{icon:Vt,bgColor:"rgba(254, 252, 232, 1)",color:"rgba(240, 177, 0, 1)"},mention:{icon:Gt,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"},assign:{icon:Qt,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"}};he.propTypes={activity:i.oneOf(["comment","like","follow","tips","mention","assign"]).isRequired,size:i.number};he.defaultProps={size:32};function he({activity:e,size:r=32}){const n=ge[e]||ge.comment,s=n.icon;return t.jsx(U,{sx:{bgcolor:n.bgColor,color:n.color,width:r,height:r},children:n.renderType==="emoji"?t.jsx("span",{style:{fontSize:"14px"},children:s}):t.jsx(Re,{icon:s})})}const Y={avatar:i.string,fullName:i.string,did:i.string};function V({actor:e,size:r,teamDid:n,inService:s,showName:o}){const l=e!=null&&e.avatar?vt(e.avatar,n,s):null,a=c=>{e&&(c.stopPropagation(),window.open(ht(ne(rt.WELLKNOWN_SERVICE_PATH_PREFIX,"user"),{did:e.did}),"_blank"),c.customPreventRedirect=!0)};return t.jsxs(p,{display:"flex",alignItems:"center",gap:1,onClick:a,role:"button",style:{cursor:"pointer"},title:(e==null?void 0:e.fullName)||"",children:[l?t.jsx(U,{alt:(e==null?void 0:e.fullName)||"",src:`${l}?imageFilter=resize&w=${r*1.5}&h=${r*1.5}`,size:r,did:e==null?void 0:e.did,shape:"circle",sx:{width:r,height:r,borderRadius:"100%",overflow:"hidden",transition:"transform 0.2s ease-in-out","&:hover":{transform:"scale(1.1)"}}}):t.jsx(U,{sx:{width:r,height:r}}),o&&t.jsx("span",{children:e==null?void 0:e.fullName})]})}V.propTypes={actor:i.shape(Y).isRequired,size:i.number.isRequired,teamDid:i.string,inService:i.bool,showName:i.bool};V.defaultProps={teamDid:"",inService:!1,showName:!1};G.propTypes={actors:i.oneOfType([i.shape(Y),i.arrayOf(i.shape(Y))]).isRequired,size:i.number,maxDisplay:i.number,teamDid:i.string,inService:i.bool,showName:i.bool};G.defaultProps={size:32,maxDisplay:9,teamDid:"",inService:!0,showName:!1};function G({actors:e,size:r=32,maxDisplay:n=9,teamDid:s="",inService:o=!0,showName:l=!1}){const a=_(()=>{const c=Array.isArray(e)?e:[e];return pt(c,"did").filter(Boolean)},[e]);return a.length===1||!a.length?t.jsx(V,{actor:a[0],size:r,teamDid:s,inService:o,showName:l}):t.jsx(Xe,{total:a.length,renderSurplus:c=>c<100?t.jsxs("span",{children:["+",c]}):t.jsx("span",{children:"99+"}),max:n,sx:{justifyContent:"flex-end",height:`${r}px`,".MuiAvatar-root":{width:`${r}px`,height:`${r}px`,fontSize:`${r/2.5}px`,border:0,zIndex:2}},children:a.map((c,v)=>t.jsx(V,{actor:c,size:r,teamDid:s,inService:o},(c==null?void 0:c.did)||v))})}const ye=3;Be.propTypes={notification:i.object.isRequired,isMultiple:i.bool,blocklet:i.object,mountPoint:i.string};qe.propTypes={notification:i.object.isRequired,mountPoint:i.string};We.propTypes={items:i.array.isRequired,activity:i.object.isRequired,blocklet:i.object,mountPoint:i.string};function qe({notification:e,mountPoint:r=""}){var a;const{activity:n}=e,{type:s,meta:o={}}=n||{},l=Se({activity:n,users:[e==null?void 0:e.actorInfo],actors:[(a=e==null?void 0:e.activity)==null?void 0:a.actor],mountPoint:r});return A(n)||!n.type||!n.actor||A(n.target)?null:t.jsxs(p,{children:[t.jsx(I,{variant:"body1",color:E.textBase,sx:{mb:.5},children:l}),t.jsx($e,{meta:o,type:s})]})}function We({items:e,activity:r,blocklet:n,mountPoint:s=""}){const{target:o={}}=r||{},l=ee(),a=_(()=>{var d;return(n==null?void 0:n.did)||((d=n==null?void 0:n.meta)==null?void 0:d.did)||""},[n]),{locale:c}=u.useContext(re),v=_(()=>!A(r.meta)&&Object.values(r.meta).some(d=>d!=null),[r]),j=Se({activity:r,users:e.map(d=>d==null?void 0:d.actorInfo),actors:e.map(d=>{var x;return(x=d==null?void 0:d.activity)==null?void 0:x.actor}),mountPoint:s}),f=X(d=>{if(!d.activity)return null;const x=Ce(d.activity);return x!=null&&x.metaLink?ne(s,x.metaLink):null}),C=X((d,x)=>{if(d.stopPropagation(),!x)return;const h=f(x);h&&(window.open(h,"_blank"),d.customPreventRedirect=!0)}),y=e.length>ye,$=e.slice(0,ye);return t.jsxs(p,{sx:{width:"100%"},children:[t.jsx(I,{variant:"body1",color:E.textBase,sx:{mb:3},children:j}),v?t.jsxs(p,{className:"sub-content",display:"flex",flexDirection:"column",gap:3,children:[$.map(d=>{var x;return t.jsxs(p,{display:"flex",flexDirection:"column",gap:1,onClick:h=>C(h,d),children:[t.jsxs(p,{display:"flex",alignItems:"center",gap:1,children:[t.jsx(G,{actors:d.actorInfo,size:32,teamDid:a}),t.jsx(I,{variant:"subtitle1",color:E.textBase,children:(x=d==null?void 0:d.actorInfo)==null?void 0:x.fullName})," ","·",t.jsx(Me,{value:d.createdAt,locale:c,shouldUpdate:!0,style:{color:l.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),t.jsx(p,{pl:5,children:t.jsx($e,{meta:d.activity.meta,type:d.activity.type})})]},d.id)}),y&&t.jsx(p,{mt:1,display:"flex",justifyContent:"center",children:t.jsxs(Ye,{size:"large",variant:"text",component:J,href:o.id,target:"_blank",rel:"noopener noreferrer",onClick:d=>{d.customPreventRedirect=!0},children:["View More ",t.jsx(Re,{icon:at,style:{marginLeft:4}})]})})]}):null]})}function Be({notification:e,isMultiple:r=!1,blocklet:n,mountPoint:s=""}){return r?t.jsx(We,{items:e.items,activity:e.activity,blocklet:n,mountPoint:s}):t.jsx(qe,{notification:e,mountPoint:s})}const Kt=Je(p)`
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
height: 100%;
|
|
117
|
+
min-height: 100px;
|
|
118
|
+
color: #999;
|
|
119
|
+
.empty-icon {
|
|
120
|
+
margin: 10px 0;
|
|
121
|
+
}
|
|
122
|
+
`;function me({color:e,children:r,...n}){const s=xt();return t.jsxs(Kt,{...n,children:[t.jsx("img",{src:`${s.imgPrefix}/all-done.png`,alt:"All Done",style:{maxHeight:"100%",maxWidth:"100%"},onError:o=>{o.target.style.display="none"}}),t.jsx(p,{className:"empty-content",children:r})]})}me.propTypes={color:i.string,children:i.any};me.defaultProps={color:"inherit",children:null};Xt.propTypes={data:i.array,blockletMap:i.object,onReadNotification:i.func,onReadBatch:i.func,inDialog:i.bool,highlightId:i.string,highlight:i.bool,type:i.oneOf(["server","service"])};Oe.propTypes={notification:i.object,blocklet:i.object,onReadNotification:i.func,inDialog:i.bool,highlight:i.bool};Ue.propTypes={blocklet:i.object,size:i.number,showName:i.bool,hideDot:i.bool};function Ue({blocklet:e,size:r=40,showName:n=!1,hideDot:s=!1}){var a,c;const o=(e==null?void 0:e.did)||((a=e==null?void 0:e.meta)==null?void 0:a.did)||"",l=((e==null?void 0:e.alsoKnownAs)||[]).concat((e==null?void 0:e.appId)||(e==null?void 0:e.appDid)||(e==null?void 0:e.appPid)||"");return t.jsxs(p,{className:"component-avatar",display:"flex",alignItems:"center",sx:{gap:s?"8px":"4px"},children:[!s&&t.jsx("span",{className:"dot"}),e?t.jsx(p,{children:l.includes(o)?t.jsx(dt,{blocklet:e,size:r,style:{borderRadius:8}}):t.jsx(it,{blocklet:e,ancestors:e.ancestors??[],size:r,style:{borderRadius:8}})}):t.jsx(st,{width:r,height:r}),n&&t.jsx("span",{className:"component-name",children:(c=e==null?void 0:e.meta)==null?void 0:c.title})]})}function Oe({notification:e,blocklet:r,onReadNotification:n=()=>{},inDialog:s=!1,highlight:o}){const{locale:l}=u.useContext(re),a=ee(),c=D(g=>g.breakpoints.down("md")),v=u.useRef(null),j=u.useMemo(()=>Pt(e),[e]),f=u.useMemo(()=>ct(e),[e]),C=u.useMemo(()=>{const{actions:g,action:w}=e;let k=g??[];return!k.length&&w&&(k=[{name:"Visit",link:w}]),k},[e]),y=u.useMemo(()=>e.items||[],[e]),$=u.useMemo(()=>y.length>0,[y]),d=u.useMemo(()=>f?$?y.map(g=>g.actorInfo).filter(Boolean):e.actorInfo??[]:[],[y,e.actorInfo,$,f]),x=u.useMemo(()=>{var g;return(r==null?void 0:r.did)||((g=r==null?void 0:r.meta)==null?void 0:g.did)||""},[r]),h=u.useMemo(()=>It(x,window.blocklet),[x]),b=X((g,w)=>{if(j||n(g),w&&!w.customPreventRedirect){const k=Tt(g,h);k&&typeof k=="string"&&window.open(k,"_blank","noopener,noreferrer")}});return t.jsxs(Yt,{ref:v,className:"notification-row",id:e.id,isRead:j,inDialog:s,highlight:o,isMd:c,onClick:g=>b(e,g),children:[f?t.jsx(he,{activity:e.activity.type,size:c?24:32}):t.jsx(pe,{severity:e.severity,size:c?24:32}),t.jsxs(p,{className:"notification",display:"flex",flexDirection:"column",alignItems:"start",children:[t.jsxs(p,{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,className:"header",mb:1.5,children:[f?t.jsx(G,{actors:d,teamDid:x,size:c?24:32}):t.jsx(Ue,{blocklet:r,hideDot:!0,size:c?24:32}),t.jsx(Me,{value:e.createdAt,locale:l,shouldUpdate:!0,style:{color:a.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),f?t.jsx(Be,{notification:e,isMultiple:$,blocklet:r,mountPoint:h}):t.jsxs(t.Fragment,{children:[t.jsx(I,{variant:"body1",className:"title",color:"rgba(24, 24, 27, 1)",sx:{mb:.5},children:e.title}),t.jsx(Dt,{notification:e,rows:s?0:2})]}),C.length>0?t.jsx(p,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,mt:1.5,children:C.map((g,w)=>t.jsxs(u.Fragment,{children:[t.jsx(J,{href:g.link,target:"_blank",className:"link",rel:"noopener noreferrer",sx:{fontSize:"15px"},onClick:k=>{k.customPreventRedirect=!0},children:g.name},g.link),w<C.length-1?t.jsx(Z,{orientation:"vertical",sx:{ml:1,mr:1,height:12,borderWidth:"1px"}}):null]},g.link))}):null]}),(e==null?void 0:e.description)&&e.severity==="error"&&t.jsx(p,{className:"copy-button",children:t.jsx(Ze,{size:"small",children:t.jsx(nt,{sx:{fontSize:22},content:(e==null?void 0:e.description)||""})})})]})}function Xt({data:e,blockletMap:r,onReadNotification:n=()=>{},onReadBatch:s=()=>{},inDialog:o=!1,highlightId:l,highlight:a=!1,type:c="service"}){const{t:v}=be(),j=u.useRef(null),[f,C]=u.useState(!1),[y,$]=u.useState(!0),[d,x]=u.useState(!1),h=u.useRef(new Set),b=u.useRef(new Set),g=u.useRef(null),w=u.useRef(null),k=u.useRef(!1),Q=u.useMemo(()=>o?e==null?void 0:e.slice(0,5):e,[o,e]),T=u.useMemo(()=>lt(Q),[Q]),q=u.useMemo(()=>{const m=new Map;return T&&T.length&&T.forEach(R=>{m.set(R.id,R)}),m},[T]);u.useEffect(()=>{const m=()=>{$(document.visibilityState==="visible")};return document.addEventListener("visibilitychange",m),()=>{document.removeEventListener("visibilitychange",m)}},[]);const B=u.useCallback(()=>{if(!o&&h.current.size>0){const m=[];h.current.forEach(R=>{if(b.current.has(R))return;const M=q.get(R);if(M){const{receivers:z=[],items:N=[]}=M;if(z.length&&!z[0].read&&(xe(M)&&(m.push(R),b.current.add(R)),N.length>0&&N.forEach(S=>{const P=S.id;P&&xe(S)&&!b.current.has(P)&&(m.push(P),b.current.add(P))}),w.current)){const S=document.getElementById(R);S&&w.current.unobserve(S)}}}),m.length>0&&(s(m),setTimeout(()=>{C(!1)},300)),h.current.clear()}},[o,q,s]),L=u.useCallback(()=>{if(o||!j.current||!y)return;w.current&&w.current.disconnect();const m={root:null,rootMargin:"0px",threshold:.5},R=new IntersectionObserver(z=>{f&&z.forEach(N=>{const S=N.target.id;if(b.current.has(S))return;const P=q.get(S);if(P){const{receivers:fe=[]}=P;fe.length&&!fe[0].read&&(N.isIntersecting?(h.current.add(S),d||B()):h.current.delete(S))}})},m);w.current=R,Array.from(j.current.querySelectorAll(".notification-row")).filter(z=>{const N=z.id;if(b.current.has(N))return!1;const S=q.get(N);if(S){const{receivers:P=[]}=S;return P.length&&!P[0].read}return!1}).forEach(z=>{R.observe(z)}),k.current=!1},[f,o,d,y,q,B]);return u.useEffect(()=>{o||(k.current=!0,w.current&&y&&f&&setTimeout(()=>{L()},0))},[Q,f,y,L,o]),u.useEffect(()=>{if(o||!j.current||!y)return;let m=window;if(c==="server"&&(m=document.getElementById("arc__dashboard-main")),!m){const M=document.getElementsByClassName("dashboard-main")[0];M&&(m=M)}if(!m)return;const R=M=>{M.isTrusted&&(f||C(!0),x(!0),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{x(!1),B(),k.current&&L()},300))};return m.addEventListener("scroll",R,{passive:!0}),()=>{m.removeEventListener("scroll",R),g.current&&clearTimeout(g.current)}},[o,f,y,B,L,c]),u.useEffect(()=>(o||L(),()=>{w.current&&w.current.disconnect()}),[L,o]),T!=null&&T.length?t.jsx(p,{ref:j,display:"flex",flexDirection:"column",sx:{...o?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:T==null?void 0:T.map(m=>{var M;const R=m.source==="system"?r.get(m.entityId||m.sender):r.get(m.componentDid||m.sender);return((M=m==null?void 0:m.type)==null?void 0:M.toLowerCase())==="passthrough"?null:t.jsx(Oe,{highlight:a&&l===m.id,inDialog:o,notification:m,blocklet:R,onReadNotification:()=>n(m)},m.id)})}):t.jsx(me,{children:v("notification.allDone")})}const Yt=H("div")`
|
|
123
|
+
@keyframes flash-bg {
|
|
124
|
+
0% {
|
|
125
|
+
background-color: ${e=>e.theme.palette.warning.light};
|
|
126
|
+
}
|
|
127
|
+
100% {
|
|
128
|
+
background-color: unset;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
position: relative;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: flex-start;
|
|
134
|
+
gap: ${e=>e.isMd?e.theme.spacing(1):e.theme.spacing(1.5)};
|
|
135
|
+
padding: ${e=>e.isMd?`${e.theme.spacing(2)} 0`:e.theme.spacing(3)};
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
animation: ${e=>e.highlight?"flash-bg 3s ease-out 0s 1 normal none running":"none"};
|
|
138
|
+
background-color: ${e=>e.isRead?"transparent":e.theme.palette.primary.lightest||"rgba(239, 246, 255, 0.5)"};
|
|
139
|
+
border-bottom: 1px solid ${E.dividerColor};
|
|
140
|
+
&:last-child {
|
|
141
|
+
border-bottom: none;
|
|
142
|
+
}
|
|
143
|
+
&:hover {
|
|
144
|
+
background-color: ${e=>e.theme.palette.action.hover};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.copy-button {
|
|
148
|
+
position: absolute;
|
|
149
|
+
right: ${e=>e.inDialog?e.theme.spacing(2):"0"};
|
|
150
|
+
top: ${e=>e.inDialog?e.theme.spacing(5):e.theme.spacing(4)};
|
|
151
|
+
display: none;
|
|
152
|
+
background: ${e=>e.theme.palette.action.disabledBackground};
|
|
153
|
+
border-radius: 50%;
|
|
154
|
+
svg {
|
|
155
|
+
width: ${e=>e.theme.spacing(2.25)};
|
|
156
|
+
height: ${e=>e.theme.spacing(2.25)};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
&:hover {
|
|
160
|
+
.copy-button {
|
|
161
|
+
display: block;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.component-avatar {
|
|
166
|
+
.dot {
|
|
167
|
+
width: ${e=>e.theme.spacing(1)};
|
|
168
|
+
height: ${e=>e.theme.spacing(1)};
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
background-color: ${e=>e.theme.palette.primary.main};
|
|
171
|
+
visibility: ${e=>e.isRead?"hidden":"visible"};
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.notification {
|
|
176
|
+
width: calc(100% - ${e=>e.theme.spacing(6.25)});
|
|
177
|
+
|
|
178
|
+
> .header {
|
|
179
|
+
width: 100%;
|
|
180
|
+
@media (min-width: 900px) {
|
|
181
|
+
.title {
|
|
182
|
+
max-width: calc(100vw - ${e=>e.theme.spacing(50)});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@media (min-width: 1200px) {
|
|
186
|
+
.title {
|
|
187
|
+
max-width: ${e=>e.theme.spacing(102.5)};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
@media (max-width: 900px) {
|
|
191
|
+
.title {
|
|
192
|
+
max-width: calc(100vw - ${e=>e.theme.spacing(25)});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.title {
|
|
198
|
+
min-width: 0;
|
|
199
|
+
overflow: hidden;
|
|
200
|
+
text-overflow: ellipsis;
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
color: ${e=>e.theme.palette.text.primary};
|
|
203
|
+
font-size: ${e=>e.theme.typography.fontSize*1.15}px;
|
|
204
|
+
}
|
|
205
|
+
.link {
|
|
206
|
+
color: ${e=>e.theme.palette.primary.main};
|
|
207
|
+
font-size: ${e=>e.theme.typography.fontSize}px;
|
|
208
|
+
text-decoration: none;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
`;export{G as A,Xt as N,Ue as S,Be as a,Dt as b,Pt as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./vendor-mui-core-DxqV1NVn.js";import"./vendor-react-DoD83n6N.js";import{S as t}from"./studio-KYZUr4tT.js";import"./vendor-ux-did-connect-YqGDzQ2U.js";import"./vendor-utils-BbDUMsIF.js";import"./vendor-hooks-BdjOQw7q.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-krD2mwVA.js";function e(){return o.jsx(t,{children:"Coming soon..."})}export{e as default};
|