@abtnode/blocklet-services 1.16.43-beta-20250427-132304-6da95c55 → 1.16.43-beta-20250429-130236-269254ff
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/_components/layout.js +2 -2
- package/api/emails/_libs/style.js +8 -3
- package/api/emails/_templates/kyc-code-verify.js +43 -0
- package/api/emails/_templates/new-user-session.js +2 -6
- package/api/emails/_templates/notification.js +2 -6
- package/api/emails/_templates/verify-code-body.js +4 -1
- package/api/emails/_templates/verify-code.js +2 -6
- package/api/index.js +31 -2
- package/api/libs/email.js +16 -0
- package/api/routes/blocklet.js +26 -17
- package/api/routes/ocap.js +1 -1
- package/api/routes/user.js +1 -1
- package/api/services/auth/session.js +2 -2
- package/api/services/kyc/index.js +5 -11
- package/dist/assets/{AdapterDayjs-BUGplkxR.js → AdapterDayjs-D5LoqHiU.js} +1 -1
- package/dist/assets/{ArrowDropDown-B0sLkJoY.js → ArrowDropDown-BCCa5uRn.js} +1 -1
- package/dist/assets/{CheckCircle-BNrN9mgy.js → CheckCircle-Bxk_pKUt.js} +1 -1
- package/dist/assets/{ChevronLeft-Dq00IS01.js → ChevronLeft-DgTQnUwX.js} +1 -1
- package/dist/assets/{ChevronRight-ZTqWK-Ga.js → ChevronRight-C-lajCDc.js} +1 -1
- package/dist/assets/{Community-DZCTPNMP.js → Community-DathqRsd.js} +1 -1
- package/dist/assets/{DeleteOutline-C2sY6hfm.js → DeleteOutline-Csdx_lih.js} +1 -1
- package/dist/assets/{Done-JLiLhELm.js → Done-DjB4uf97.js} +1 -1
- package/dist/assets/{Download-Ch4RfGRW.js → Download-CF6ZhZfD.js} +1 -1
- package/dist/assets/{Edit-CY6fFHQM.js → Edit-C-zkyYSj.js} +1 -1
- package/dist/assets/{EditIcon-Bi2cR-_u.js → EditIcon-DWRQ3fi6.js} +1 -1
- package/dist/assets/{Email-Dz2Eyqu0.js → Email-B0n6rLUZ.js} +1 -1
- package/dist/assets/{Error-CSFUqG0m.js → Error-DnzvDd2d.js} +1 -1
- package/dist/assets/{ExpandLess-BiMmSOBl.js → ExpandLess-DBN4huDO.js} +1 -1
- package/dist/assets/{Google-GOp5YvmZ.js → Google-VfyWFLKO.js} +1 -1
- package/dist/assets/{Holiday-Lc6woG1j.js → Holiday-BkY6LMfd.js} +1 -1
- package/dist/assets/{InfoOutlined-CQB5qKm-.js → InfoOutlined-BMb9Zu84.js} +1 -1
- package/dist/assets/{Launch-fxgQvk19.js → Launch-CVPYIHzD.js} +1 -1
- package/dist/assets/{LaunchOutlined-BV4_W1pb.js → LaunchOutlined-faHvtBle.js} +1 -1
- package/dist/assets/{Location-B8EOY3d0.js → Location-BQhEvGNL.js} +1 -1
- package/dist/assets/{LockIcon-fuTfhB_G.js → LockIcon-Bd69pSJI.js} +1 -1
- package/dist/assets/{Meeting-Epdyx36z.js → Meeting-BW-_XtSL.js} +1 -1
- package/dist/assets/{MoreHoriz-CX_pwfPT.js → MoreHoriz-CT231fLS.js} +1 -1
- package/dist/assets/{OffSick-VYgugWxu.js → OffSick-9I8vBA8l.js} +1 -1
- package/dist/assets/{Phone-KP65huHK.js → Phone-CKzC4712.js} +1 -1
- package/dist/assets/{PlayArrow-DFH1Psjx.js → PlayArrow-CVHX5RbU.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-p6m3avKp.js → QuestionMarkCircle-DpFFQWud.js} +1 -1
- package/dist/assets/{ServerLogo-Bssx1Eou.js → ServerLogo-AfxVBRdi.js} +1 -1
- package/dist/assets/{Timezone-Ce4E1Xey.js → Timezone-C3hiNX6j.js} +1 -1
- package/dist/assets/{TuneOutlined-Dy2qPFGI.js → TuneOutlined-DcBuSd1o.js} +1 -1
- package/dist/assets/{ViewList-e3CoNi3K.js → ViewList-rVo7d5VV.js} +1 -1
- package/dist/assets/{WorkingRemotely-CXFJ6pz8.js → WorkingRemotely-CHzRY2CT.js} +1 -1
- package/dist/assets/access-control-Cum8iIaB.js +14 -0
- package/dist/assets/{actions-DA-6s_nQ.js → actions-D-Helr6n.js} +1 -1
- package/dist/assets/{add-component-core-DG9mQFsr.js → add-component-core-kWUUw0fB.js} +43 -37
- package/dist/assets/add-resource-DEesv1LC.js +1 -0
- package/dist/assets/{addon-Bcc-Xwbf.js → addon-B5zwPHe5.js} +1 -1
- package/dist/assets/{advanced-DTe2fs5L.js → advanced-CjSPlkxp.js} +1 -1
- package/dist/assets/api-BkKTvlm_.js +1 -0
- package/dist/assets/appearance-rlMOco_Q.js +1 -0
- package/dist/assets/ar-BRKjvO8p.js +1 -0
- package/dist/assets/ar-Duy7ZH--.js +7 -0
- package/dist/assets/audit-logs-BpacJ0mq.js +35 -0
- package/dist/assets/{authorize-DUyL7MEU.js → authorize-Dup4yiJg.js} +1 -1
- package/dist/assets/{base32-p9VcJrwv.js → base32-yUUlhgnG.js} +1 -1
- package/dist/assets/branding-3E94pu9e.js +54 -0
- package/dist/assets/{branding-_VO2ZZ3t.js → branding-BB4z7dex.js} +2 -2
- package/dist/assets/bundle-avatar-njRzpG6o.js +1 -0
- package/dist/assets/button-DRqMfYjF.js +1 -0
- package/dist/assets/{click-to-copy-BGyXQL2i.js → click-to-copy-CSwBjJDI.js} +1 -1
- package/dist/assets/cloneDeep-Cg0h_FaY.js +1 -0
- package/dist/assets/complete-lhAOowgH.js +45 -0
- package/dist/assets/{component-5gjaNHCg.js → component-DG-t6Jac.js} +50 -46
- package/dist/assets/{config-Bh19ZUJ-.js → config-BWuaMoux.js} +1 -1
- package/dist/assets/config-Ct2icT-j.js +32 -0
- package/dist/assets/{config-navigation-Dvjz9nAh.js → config-navigation-BZ3T8tYK.js} +6 -6
- package/dist/assets/config-space-CKx83vmi.js +1 -0
- package/dist/assets/{confirm-DqvNmeoz.js → confirm-Bj4L0Vn8.js} +2 -2
- package/dist/assets/connect-BoejDqj-.js +5 -0
- package/dist/assets/connect-to-lcfZI_0b.js +1 -0
- package/dist/assets/connect-v2Zx9JEk.js +1 -0
- package/dist/assets/{content-layout-BPaAeaMQ.js → content-layout-C3Yd4mK9.js} +1 -1
- package/dist/assets/dashboard-0TEl6bJJ.js +280 -0
- package/dist/assets/de-D3cg0t9f.js +1 -0
- package/dist/assets/de-jJ-wrtW1.js +7 -0
- package/dist/assets/{delete-confirm-_BzUlhv2.js → delete-confirm-kpan5KFX.js} +1 -1
- package/dist/assets/did-address-CJZtrzhT.js +1 -0
- package/dist/assets/{domain-ag7_Ivc1.js → domain-C8nJlURa.js} +1 -1
- package/dist/assets/domain-action-card-BZ3CFKs5.js +24 -0
- package/dist/assets/domains-Cn_DfzNS.js +1 -0
- package/dist/assets/{dot-BE1YP292.js → dot-CaKxEi_0.js} +2 -2
- package/dist/assets/{email-DKpgximx.js → email-BjCEb0WI.js} +2 -2
- package/dist/assets/{empty-spinner-DmDm8XzF.js → empty-spinner-BYUFR95o.js} +1 -1
- package/dist/assets/es-CoGP0eAj.js +7 -0
- package/dist/assets/es-DPjqApVE.js +1 -0
- package/dist/assets/exchange-passport-B_b6xNH8.js +1 -0
- package/dist/assets/fr-Dscs9WsP.js +1 -0
- package/dist/assets/fr-yctlgsrj.js +7 -0
- package/dist/assets/{fuel-CcBzY6Bt.js → fuel-Dtvd1fJW.js} +1 -1
- package/dist/assets/{gen-access-key-DxKwgiGT.js → gen-access-key-DsGgHUvi.js} +1 -1
- package/dist/assets/get-safe-url-BTmcSfZP.js +1 -0
- package/dist/assets/get-safe-url-BYr2jgRv.js +1 -0
- package/dist/assets/hi-B8D3j6bs.js +1 -0
- package/dist/assets/hi-Dh_pGPBD.js +5 -0
- package/dist/assets/{home-Bi8fA3jh.js → home-ClwQWk4f.js} +1 -1
- package/dist/assets/{id-BderyGO5.js → id-DWMMQI0G.js} +1 -1
- package/dist/assets/id-cicarMJv.js +7 -0
- package/dist/assets/{iframe-DZ181i8X.js → iframe-B7H87IMw.js} +1 -1
- package/dist/assets/index-2eL6Ndgh.js +288 -0
- package/dist/assets/index-B9lBWxnt.js +113 -0
- package/dist/assets/index-BDaAwySV.js +1 -0
- package/dist/assets/index-BOvzhuNp.js +11 -0
- package/dist/assets/{index-BT0GBmWF.js → index-BUHlfcy3.js} +1 -1
- package/dist/assets/index-BUrD6xiH.js +241 -0
- package/dist/assets/index-Bco7nZ5q.js +6 -0
- package/dist/assets/{index-SDdS_qt8.js → index-Bt7GP-dU.js} +1 -1
- package/dist/assets/{index-CYeIiQ6Q.js → index-C-rP7qS0.js} +1 -1
- package/dist/assets/{index-DyxFC42L.js → index-C1UHqpp3.js} +3 -3
- package/dist/assets/index-CEmSUlto.js +192 -0
- package/dist/assets/{index-CHbpkZwO.js → index-CMFOn8T3.js} +1 -1
- package/dist/assets/index-CVKN_Jn1.js +55 -0
- package/dist/assets/index-Cb1OPKJL.js +708 -0
- package/dist/assets/index-CjZLIV87.js +10 -0
- package/dist/assets/{index-Dl4W1N74.js → index-Cx-tuAMi.js} +1 -1
- package/dist/assets/index-D9eW5l3E.js +345 -0
- package/dist/assets/index-DAer_mWn.js +137 -0
- package/dist/assets/{index-n0Q-fETi.js → index-DHIWtN6I.js} +5 -5
- package/dist/assets/{index-DKhrYmrN.js → index-DIe9psLc.js} +1 -1
- package/dist/assets/{index-YbJjfDTR.js → index-DyKjKMmu.js} +1 -1
- package/dist/assets/{index-DuH8q5ir.js → index-M6peJL7s.js} +1 -1
- package/dist/assets/index-a0ZdM5aG.js +4 -0
- package/dist/assets/{index-CGBZONPv.js → index-i5c4XeO-.js} +1 -1
- package/dist/assets/{invitation-BrAZQXQL.js → invitation-DGRUoRzD.js} +3 -3
- package/dist/assets/invite-uoA9amq7.js +1 -0
- package/dist/assets/{issue-passport-Dd_yyO08.js → issue-passport-2LsCG1Ym.js} +1 -1
- package/dist/assets/item-taL0aTyr.js +2 -0
- package/dist/assets/ja-3LoBq68U.js +1 -0
- package/dist/assets/ja-Bm56AvcM.js +7 -0
- package/dist/assets/ko-B0ZZ2RWO.js +7 -0
- package/dist/assets/ko-B2dxwXDl.js +1 -0
- package/dist/assets/landing-page-EY5bGAu7.js +1 -0
- package/dist/assets/{launch-result-message-C9huWJUf.js → launch-result-message-B_fS-f90.js} +1 -1
- package/dist/assets/{layout-Cw-hwCHs.js → layout-DAempiIX.js} +1 -1
- package/dist/assets/list-B1E5dxgu.js +236 -0
- package/dist/assets/list-header-8k1_C0K0.js +1 -0
- package/dist/assets/localization-Di0I0VVv.js +1 -0
- package/dist/assets/{log-Chqr_or_.js → log-CL673QLU.js} +1 -1
- package/dist/assets/{logger-zix81YaM.js → logger-OMyVyA8K.js} +1 -1
- package/dist/assets/login-CsMJeMSS.js +1 -0
- package/dist/assets/login-oauth-callback-Bh6TJ59S.js +1 -0
- package/dist/assets/{logo-uploader-CJrdpVcQ.js → logo-uploader-DFGj09Gp.js} +20 -19
- package/dist/assets/{lost-passport-Do1Pl0xI.js → lost-passport-D00cnWl_.js} +2 -2
- package/dist/assets/lottie-error-CMOXHtBH.js +1 -0
- package/dist/assets/lottie-loading-o-GBrhM9.js +1 -0
- package/dist/assets/lottie-welcome-C9B95FIi.js +1 -0
- package/dist/assets/omit-1zyydTZL.js +1 -0
- package/dist/assets/{open-window-D8MZhu_7.js → open-window-xLNOSl03.js} +1 -1
- package/dist/assets/{overview-DLA9wj6a.js → overview-Ds0WiSnv.js} +2 -2
- package/dist/assets/{page-header-CWY8mxlT.js → page-header-BXC_EZqA.js} +1 -1
- package/dist/assets/{passport-item-CWtlyIE_.js → passport-item-Dpr4rKdD.js} +1 -1
- package/dist/assets/{permission-BGM09622.js → permission-DDLyDuSn.js} +1 -1
- package/dist/assets/preferences-DXw1rfcr.js +1 -0
- package/dist/assets/profile-embed-co2rsGfl.js +1 -0
- package/dist/assets/pt-6Xqu-_a4.js +5 -0
- package/dist/assets/pt-eei1_Z4R.js +1 -0
- package/dist/assets/publish-resource-CBR18Gc3.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-ByydTUk4.js → react-beautiful-dnd.esm-CeODMcuS.js} +1 -1
- package/dist/assets/relative-time-DlN06RKr.js +1 -0
- package/dist/assets/ru-ZKgT6XdU.js +1 -0
- package/dist/assets/ru-y0N1jyVB.js +5 -0
- package/dist/assets/runtime-nJVx0iKJ.js +1 -0
- package/dist/assets/sdk-DICk2ZHP.js +1 -0
- package/dist/assets/{security-BhkfG23R.js → security-CHs7ENbZ.js} +4 -4
- package/dist/assets/session-j-9KoWbs.js +1 -0
- package/dist/assets/setup-CGwOCqjv.js +25 -0
- package/dist/assets/{shorten-label-DFzv9EKX.js → shorten-label-SbKUBkvs.js} +1 -1
- package/dist/assets/{simple-select-DlrdVbaI.js → simple-select-CLc0Q9sm.js} +1 -1
- package/dist/assets/{slicedToArray-CPl5_eGD.js → slicedToArray-C0YDCVwK.js} +2 -2
- package/dist/assets/{spaces-WkJCApHO.js → spaces-CZHg-rr5.js} +1 -1
- package/dist/assets/start-Chlvxw3J.js +187 -0
- package/dist/assets/starting-progress-DpqgCEFM.js +40 -0
- package/dist/assets/{status-CygZ0LuY.js → status-XLk6MkKv.js} +1 -1
- package/dist/assets/{step-actions-D_1PFeFs.js → step-actions-hjC-pbPT.js} +1 -1
- package/dist/assets/{studio-Byjzwg8q.js → studio-DrYhFxCD.js} +1 -1
- package/dist/assets/{switch-control-5fEOPVKs.js → switch-control-CqfXXgvP.js} +1 -1
- package/dist/assets/th-CG5eLRZo.js +1 -0
- package/dist/assets/th-CJa7646q.js +5 -0
- package/dist/assets/{traffic-T11hxc--.js → traffic-Dbf1L1c0.js} +1 -1
- package/dist/assets/{transfer-ROpxn9LD.js → transfer-GcIVZcyL.js} +1 -1
- package/dist/assets/unsubscribe-D2dQlJJM.js +1 -0
- package/dist/assets/use-blocklet-logo-DryhoHen.js +1 -0
- package/dist/assets/{use-mobile-C_flBrm-.js → use-mobile-BKvZ6hcv.js} +1 -1
- package/dist/assets/{use-mobile-DlKplWTG.js → use-mobile-BNUwcWCH.js} +1 -1
- package/dist/assets/{useAsync-CGW40D2-.js → useAsync-DXeWUWXr.js} +1 -1
- package/dist/assets/{useLocalStorage-DldnaMbZ.js → useLocalStorage-Cb6R1F6v.js} +1 -1
- package/dist/assets/user-center-D7lo6m0u.js +76 -0
- package/dist/assets/{util-Bjy-tP7q.js → util-BYQQqvk1.js} +1 -1
- package/dist/assets/util-BcFfyz6S.js +1 -0
- package/dist/assets/{vendor-arcblock-ScFEr-lj.js → vendor-arcblock-CX-5Ex_f.js} +100 -97
- package/dist/assets/vendor-hooks-DpLLpTSZ.js +7 -0
- package/dist/assets/vendor-mui-core-B6POpIBB.js +266 -0
- package/dist/assets/{vendor-mui-x-B0hsmEJ3.js → vendor-mui-x-CATHW1QL.js} +1 -1
- package/dist/assets/{vendor-utils-BNHJB5U7.js → vendor-utils-BUwfcN20.js} +13 -13
- package/dist/assets/{vendor-ux-did-connect-BdkhddhO.js → vendor-ux-did-connect-DVrP2LNw.js} +271 -241
- package/dist/assets/vi-CoZs3B42.js +1 -0
- package/dist/assets/vi-Rc5fwdQU.js +5 -0
- package/dist/assets/wrap-locale-CzSOEkvO.js +1 -0
- package/dist/assets/zh-CgkeS2I3.js +1 -0
- package/dist/assets/{zh-BYRCoK6F.js → zh-J32RyrWT.js} +2 -2
- package/dist/assets/zh-tw-BSUxp5LQ.js +7 -0
- package/dist/assets/zh-tw-CuakNRcW.js +1 -0
- package/dist/index.html +6 -6
- package/dist/service-worker.js +1 -1
- package/dist/share/shared-bridge.html +85 -0
- package/package.json +34 -34
- package/dist/assets/access-control-B20P1UrY.js +0 -14
- package/dist/assets/add-resource-BoS5YkVy.js +0 -1
- package/dist/assets/api-BrU7j0QA.js +0 -1
- package/dist/assets/appearance-DYi32tlk.js +0 -1
- package/dist/assets/ar-CmhpkjwX.js +0 -1
- package/dist/assets/ar-DupP3pla.js +0 -7
- package/dist/assets/audit-logs-CydL26ZC.js +0 -35
- package/dist/assets/branding-CAMtNLMU.js +0 -54
- package/dist/assets/bundle-avatar-D0t7RLGx.js +0 -1
- package/dist/assets/button-BeZibzB9.js +0 -1
- package/dist/assets/cloneDeep-SfcdeqEN.js +0 -1
- package/dist/assets/complete-BzCBoyhn.js +0 -45
- package/dist/assets/config-1xq1_d84.js +0 -32
- package/dist/assets/config-space-CYg-72ab.js +0 -1
- package/dist/assets/connect-Bbc2y5nS.js +0 -1
- package/dist/assets/connect-DM2xKEWk.js +0 -5
- package/dist/assets/connect-to-Ck5O2M1K.js +0 -1
- package/dist/assets/dashboard-8QXGSoVu.js +0 -280
- package/dist/assets/de-Doy9B4I7.js +0 -1
- package/dist/assets/de-TcDcBkI0.js +0 -7
- package/dist/assets/did-address-DUThaBlf.js +0 -1
- package/dist/assets/domain-action-card-D3w6jyPR.js +0 -24
- package/dist/assets/domains-BDxEOJh6.js +0 -1
- package/dist/assets/es-CDD0y3ur.js +0 -7
- package/dist/assets/es-CruF8tDk.js +0 -1
- package/dist/assets/exchange-passport-Izkf8qpM.js +0 -1
- package/dist/assets/fr-Bajh_D8H.js +0 -1
- package/dist/assets/fr-zYSSKlBw.js +0 -7
- package/dist/assets/get-safe-url-Bq9SFfX6.js +0 -1
- package/dist/assets/get-safe-url-DBsPGn--.js +0 -1
- package/dist/assets/hi-BsP-0YrU.js +0 -5
- package/dist/assets/hi-DOsApYK0.js +0 -1
- package/dist/assets/id-CY2FWdMB.js +0 -7
- package/dist/assets/index-B2yOcqTl.js +0 -192
- package/dist/assets/index-BGgGfqEc.js +0 -346
- package/dist/assets/index-B_vrglsK.js +0 -10
- package/dist/assets/index-BnmeT4Bk.js +0 -113
- package/dist/assets/index-C8QMe2NL.js +0 -138
- package/dist/assets/index-Cjjg2_Xp.js +0 -11
- package/dist/assets/index-DNG6b9sp.js +0 -224
- package/dist/assets/index-DO3_1y-L.js +0 -708
- package/dist/assets/index-DO4cSlUf.js +0 -290
- package/dist/assets/index-DcBUShKK.js +0 -1
- package/dist/assets/index-EnQ254k3.js +0 -6
- package/dist/assets/index-bb90BUf4.js +0 -55
- package/dist/assets/index-mDKG4SiY.js +0 -1
- package/dist/assets/index-slEV_y-C.js +0 -4
- package/dist/assets/invite-Cbz8B2uW.js +0 -1
- package/dist/assets/item-nK3D7WH5.js +0 -2
- package/dist/assets/ja-99RIjwwl.js +0 -1
- package/dist/assets/ja-BLPXqHM4.js +0 -7
- package/dist/assets/ko-8oFi6wHH.js +0 -1
- package/dist/assets/ko-Cxgk34co.js +0 -7
- package/dist/assets/landing-page-BMM_oJb1.js +0 -1
- package/dist/assets/list-Dmtz4mRb.js +0 -235
- package/dist/assets/list-header-CgF1S4js.js +0 -1
- package/dist/assets/localization-DATb3Y_j.js +0 -1
- package/dist/assets/login-DjB23H9M.js +0 -1
- package/dist/assets/login-oauth-callback-ILeP59KT.js +0 -1
- package/dist/assets/omit-bLid3PKQ.js +0 -1
- package/dist/assets/preferences-DYdbb0kG.js +0 -1
- package/dist/assets/profile-embed-CeEMHxEc.js +0 -1
- package/dist/assets/pt-BINIHul4.js +0 -5
- package/dist/assets/pt-ChXuTrrd.js +0 -1
- package/dist/assets/publish-resource-BEc_A5mC.js +0 -1
- package/dist/assets/relative-time-Djw-K4Zu.js +0 -1
- package/dist/assets/ru-BifF7u-P.js +0 -5
- package/dist/assets/ru-IkTTTY0K.js +0 -1
- package/dist/assets/runtime-DXl0lfXF.js +0 -1
- package/dist/assets/sdk-CTe6rL6c.js +0 -1
- package/dist/assets/session-VIMbdc9j.js +0 -1
- package/dist/assets/setup-BmYxTt6Z.js +0 -25
- package/dist/assets/start-CVexuuAk.js +0 -187
- package/dist/assets/th-CBxM23U5.js +0 -5
- package/dist/assets/th-OF8xr--T.js +0 -1
- package/dist/assets/unsubscribe-Cd3XOnSp.js +0 -1
- package/dist/assets/use-app-logo-B8Kl9EZt.js +0 -1
- package/dist/assets/user-center-CzyCbtWm.js +0 -77
- package/dist/assets/util-Dw9Eiuko.js +0 -1
- package/dist/assets/vendor-hooks-DftG_2gV.js +0 -7
- package/dist/assets/vendor-mui-core-CQ38ohp2.js +0 -266
- package/dist/assets/vi-DCBJBc4G.js +0 -1
- package/dist/assets/vi-DY_Y13jR.js +0 -5
- package/dist/assets/wrap-locale-DMTYAE64.js +0 -1
- package/dist/assets/zh-BRAYg0sY.js +0 -1
- package/dist/assets/zh-tw-BG0rlH8p.js +0 -7
- package/dist/assets/zh-tw-D5-DkgwC.js +0 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import{r as u}from"./vendor-react-DEoibe3W.js";import{H as i,j as t,be as K,ap as se,aa as p,ah as D,T as $,v as q,X as ne,bL as ke,ad as Qe,bM as Xe,ar as Ke,ai as Ye,e as Y,a9 as Ce,m as Ze,bZ as Je,y as et,s as tt,I as rt}from"./vendor-mui-core-B6POpIBB.js";import{f as L,u as te}from"./vendor-hooks-DpLLpTSZ.js";import{a0 as ie,b6 as oe,ba as W,u as Re,r as Te,I as Se,n as st,bl as nt}from"./vendor-ux-did-connect-DVrP2LNw.js";import{S as it}from"./index-DIe9psLc.js";import{B as ot}from"./bundle-avatar-njRzpG6o.js";import{a as at,c as B,s as V,g as ae,H as lt,u as $e,M as Ie,b as G,d as ct,m as dt,i as ut}from"./use-blocklet-logo-DryhoHen.js";import{R as Me}from"./relative-time-DlN06RKr.js";import{A as Z,af as pt,b as _,$ as ht,z as mt}from"./vendor-utils-BUwfcN20.js";import{u as Pe,p as ft,h as Q,f as ze,w as xt}from"./vendor-arcblock-CX-5Ex_f.js";import{d as gt}from"./InfoOutlined-BMb9Zu84.js";import{b as yt}from"./sdk-DICk2ZHP.js";import{d as vt}from"./CheckCircle-Bxk_pKUt.js";import{U as jt,C as bt,I as wt}from"./index-CjZLIV87.js";import{p as kt}from"./util-BcFfyz6S.js";import{z as Ct}from"./index-Cb1OPKJL.js";function le({blocklet:e,style:r,size:s,...n}){const o=at({blocklet:e,square:!0}),{variant:l}=n;return t.jsx(K,{variant:l||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},r),...n,children:t.jsx("img",{src:o,alt:"",style:{width:s}})})}le.propTypes={blocklet:i.object.isRequired,style:i.object,size:i.oneOfType([i.number,i.string])};le.defaultProps={style:{},size:40};function Ne({attachment:e}){const{data:r}=e;let s="";try{s=new URL(r.url).host}catch{s=r.url}return t.jsxs(se,{target:"_blank",rel:"noopener noreferrer",href:r.url,className:"link",style:{wordBreak:"break-all"},onClick:n=>{n.customPreventRedirect=!0},children:[!!s&&t.jsx("span",{className:"url",children:s}),!!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:Pe.getImagePath(r.image),alt:r.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})]})}Ne.propTypes={attachment:i.object.isRequired};function Ae({attachment:e}){const{data:r}=e;return t.jsx("img",{src:Pe.getImagePath(r.url),alt:r.title||"",height:128,style:{borderRadius:"8px",maxWidth:"256px",objectFit:"cover"}})}Ae.propTypes={attachment:i.object.isRequired};function Le({attachment:e,...r}){var c;const{data:s}=e,n=((c=s.color)==null?void 0:c.toLowerCase())||r.color,o=s.size||r.size,l=s.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(Rt,{className:"title",style:{fontSize:a,color:n,whiteSpace:"unset",fontWeight:l},children:s.text})}Le.propTypes={attachment:i.object.isRequired};const Rt=D.span`
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: -webkit-box;
|
|
4
|
+
-webkit-box-orient: vertical;
|
|
5
|
+
-webkit-line-clamp: 2;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
text-overflow: ellipsis;
|
|
8
|
+
white-space: normal;
|
|
9
|
+
word-break: break-word;
|
|
10
|
+
`;ce.propTypes={locale:i.string,data:i.object.isRequired};ce.defaultProps={locale:"en"};function ce({locale:e="en",data:r}){const s={zh:"来自",en:"from"}[e]||"from",n={zh:"接收",en:"Received"}[e]||"Received",l=`https://${B.getUrlHost(r.chainHost)||B.getChainHost(r.chainId)}/explorer/tokens/${r.address}/tx`;let a=r.amount;r.decimal&&(a=r.amount/10**r.decimal);const c=L(()=>({display:"flex",alignItems:"center",rowGap:2,columnGap:4,justifyContent:"space-between",flexWrap:"wrap"}));return t.jsx("a",{href:l,target:"_blank",rel:"noreferrer",onClick:m=>{m.customPreventRedirect=!0},children:t.jsxs(p,{display:"flex",flexDirection:"column",children:[t.jsxs(p,{sx:c,children:[t.jsx($,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:n}),t.jsxs($,{component:"div",align:"right",style:V.summaryStyle,flex:1,children:["+",a," ",r.symbol]})]}),t.jsxs(p,{sx:c,children:[t.jsx($,{component:"div",style:{...V.remarkStyle,fontSize:14},children:s}),t.jsx(p,{maxWidth:260,fontSize:14,children:t.jsx(ie,{did:r.address,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]})]})})}de.propTypes={locale:i.string,data:i.object.isRequired};de.defaultProps={locale:"en"};function de({locale:e,data:r}){var m,j;const s={zh:"接收",en:"Received"}[e]||"Received",n={zh:"来自",en:"from"}[e]||"from",o=B.getUrlHost(r.chainHost)||B.getChainHost(r.chainId),l=r.did||((j=(m=r==null?void 0:r.credential)==null?void 0:m.issuer)==null?void 0:j.id)||"",a=`https://${o}/explorer/assets/${l}`,c=L(()=>({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:y=>{y.customPreventRedirect=!0},rel:"noreferrer",children:t.jsxs(p,{display:"flex",flexDirection:"column",children:[t.jsxs(p,{sx:c,children:[t.jsx($,{component:"div",sx:{fontWeight:700,color:"rgba(3, 7, 18, 1)"},children:s}),t.jsx($,{component:"div",align:"right",style:V.summaryStyle,children:"+1 Asset"})]}),l?t.jsxs(p,{sx:c,children:[t.jsx($,{component:"div",style:{...V.remarkStyle,fontSize:14},children:n}),t.jsx(p,{maxWidth:260,fontSize:14,children:t.jsx(ie,{did:l,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:e})})]}):null]})})})}De.propTypes={data:i.object.isRequired,locale:i.string};function De({data:e,locale:r="en"}){return t.jsxs("a",{href:e.url,target:"_blank",style:{display:"flex",textDecoration:"none",color:"initial"},onClick:s=>{s.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(p,{maxWidth:260,fontSize:10,style:{color:"#a5a5a5"},children:t.jsx(ie,{did:e.appDID,showQrcode:!0,copyable:!0,compact:!0,responsive:!0,locale:r})})]})]})}ue.propTypes={locale:i.string,data:i.object.isRequired};ue.defaultProps={locale:"en"};function ue({locale:e,data:r}){const s=B.getChainHost(r.chainId),n=`https://${s}/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:n,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:s}),t.jsx("p",{style:{color:"#4598fa",margin:0},children:o}),t.jsxs("div",{style:{wordBreak:"break-all"},children:[l,": ",r.hash]})]})}function _e({attachment:e,...r}){const{local:s}=u.useContext(oe),n=q(o=>o.breakpoints.down("md"));return t.jsxs(Tt,{...r,isMd:n,children:[e.type==="link"&&t.jsx(Ne,{attachment:e,...r,isMd:n}),e.type==="image"&&t.jsx(Ae,{attachment:e,isMd:n}),e.type==="text"&&t.jsx(Le,{attachment:e,isMd:n}),e.type==="token"&&t.jsx(ce,{data:e.data,local:s,isMd:n}),e.type==="asset"||e.type==="vc"?t.jsx(de,{data:e.data,local:s,isMd:n}):null,e.type==="dapp"&&t.jsx(De,{data:e.data,local:s,isMd:n}),e.type==="transaction"&&t.jsx(ue,{data:e.data,local:s,...r,isMd:n}),e.type==="divider"&&t.jsx(ne,{sx:{mb:1,mt:1},style:{color:W.dividerColor}})]})}const Tt=D.div`
|
|
11
|
+
display: ${({sx:e={}})=>e.display||"flex"};
|
|
12
|
+
flex-direction: ${({sx:e={}})=>e.flexDirection||"column"};
|
|
13
|
+
gap: ${({sx:e={}})=>e.gap||1};
|
|
14
|
+
width: ${({isMd:e=!1})=>e?"100%":"auto"};
|
|
15
|
+
&:last-child {
|
|
16
|
+
margin-bottom: 0;
|
|
17
|
+
}
|
|
18
|
+
`;_e.propTypes={attachment:i.object.isRequired};function Ee({data:e,...r}){const{items:s}=e;return t.jsx(St,{...r,children:s.map(n=>t.jsxs(ke,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128},children:[t.jsxs(p,{display:"flex",alignItems:"center",gap:1,children:[n.icon?t.jsx("img",{src:n.icon,alt:n.title,style:{width:16,height:16}}):null,t.jsxs(p,{className:"metric-name",display:"flex",alignItems:"center",children:[n.title,n.subtitle?t.jsx(Qe,{title:n.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:n.content_color||"rgba(3, 7, 18, 1)"},children:[n.content,n.sub_content?t.jsxs("span",{className:"sub-content",style:{color:n.sub_content_color||"rgba(156, 163, 175, 1)"},children:["(",n.sub_content,")"]}):null]})]},n.title))})}const St=D(p)`
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
gap: 16px;
|
|
23
|
+
.metric-number {
|
|
24
|
+
font-size: 18px;
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
.sub-content {
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
margin-left: 4px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.metric-name {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
color: rgba(156, 163, 175, 1);
|
|
35
|
+
}
|
|
36
|
+
`;Ee.propTypes={data:i.object.isRequired};function qe({data:e}){const{items:r}=e,s=q(a=>a.breakpoints.down("sm")),n=q(a=>a.breakpoints.down("md")),o=q(a=>a.breakpoints.down("lg")),l=()=>s?1:n?3:o?4:6;return t.jsx(Xe,{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(Ke,{children:t.jsx("img",{src:c,alt:a.title||"",style:{borderRadius:"8px"}})})},c):null})})}qe.propTypes={data:i.object.isRequired};function pe({data:e,feedType:r,...s}){return t.jsxs($t,{...s,children:[r==="data-tracker"&&e.type==="table"&&t.jsx(Ee,{data:e}),(r==="graphic"||r==="gallery")&&t.jsx(qe,{data:e})]})}const $t=D.div`
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
width: 100%;
|
|
40
|
+
margin-bottom: 4px;
|
|
41
|
+
&:last-child {
|
|
42
|
+
margin-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
`;pe.propTypes={data:i.object.isRequired,feedType:i.string};pe.defaultProps={feedType:"data-tracker"};const It=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},Mt=e=>e.every(r=>r.type==="text"),Pt=e=>e.every(r=>r.type==="image"),zt=e=>pt(e,2).map(r=>({type:"combined",items:r})).filter(r=>(r.items||[]).every(s=>{var n,o,l;return(l=(o=(n=s==null?void 0:s.data)==null?void 0:n.text)==null?void 0:o.trim)==null?void 0:l.call(o)})),Nt=e=>{if(!e.length||e.length<=1)return!1;const r=e[0].type;return e.every(s=>s.type===r)},At=async(e,r)=>{const s=yt.user;if(s)try{return await s.getUserPublicInfo({did:e})?await s.getProfileUrl({did:e,locale:r}):void 0}catch(n){console.error(n);return}},Lt=(e,r)=>{var n;const s=(n=r==null?void 0:r.componentMountPoints)==null?void 0:n.find(o=>o.did===e);return s==null?void 0:s.mountPoint},Dt=(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 s=ae(e.activity),n=(s==null?void 0:s.metaLink)||(s==null?void 0:s.targetLink);if(n)return Z(r,n);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},_t=e=>{const{receivers:r=[]}=e;return r.length?r.every(s=>s.read):!0};O.propTypes={data:i.array.isRequired,style:i.object};function O({data:e,style:r={}}){return t.jsx($,{style:{color:e.color||"initial",margin:0,whiteSpace:"pre-line!important",...r},children:e.text})}function He({data:e}){const r=[];for(let s=0;s<(e==null?void 0:e.length);s+=2){const n=e[s],o=e[s+1];n&&o?r.push(t.jsxs(je,{children:[t.jsx("td",{className:"label-col",children:t.jsx(O,{data:n.data,style:{whiteSpace:"nowrap"}})}),t.jsx("td",{className:"value-col",children:t.jsx(O,{data:o.data,style:{wordBreak:"break-all"}})})]},s)):n&&r.push(t.jsx(je,{children:t.jsx("td",{className:"label-col",children:t.jsx(O,{data:n.data})})},s))}return t.jsx("table",{style:{width:"100%"},children:t.jsx("tbody",{children:r})})}He.propTypes={data:i.array.isRequired};const je=D.tr`
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: ${({theme:e})=>e.spacing(1)};
|
|
50
|
+
.label-col {
|
|
51
|
+
min-width: 130px;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
}
|
|
54
|
+
.value-col {
|
|
55
|
+
flex: 1;
|
|
56
|
+
}
|
|
57
|
+
`;function he({notification:e,severity:r,showSke:s=!0}){const{attachments:n,data:o,...l}=e,a=q(y=>y.breakpoints.down("md"));if((!n||!n.length)&&_(o))return null;const c=It(r),m=(y,R=!1)=>{if(!y&&!Array.isArray(y))return null;let v=y,w={},k="horizontal";R&&Mt(y)&&(v=zt(y),k="vertical",w={display:"flex",gap:8,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%",width:a||v.length===1?"100%":"28%"});const d=Nt(v);return t.jsx(p,{sx:{width:"100%",display:"flex",gap:1,flexDirection:R?"row":"column",justifyContent:"flex-start",alignItems:R?"center":"unset",flexWrap:"wrap"},children:v.map((x,h)=>x.type==="section"?t.jsx(He,{data:x.fields},h):t.jsxs(u.Fragment,{children:[t.jsx(_e,{attachment:x,style:w,...l}),!(a&&k==="vertical")&&d&&v.length>1&&h!==v.length-1?t.jsx(ne,{orientation:k,style:{color:W.dividerColor},sx:k==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},h))})},j=Pt(n);return t.jsx(Et,{children:t.jsxs("div",{className:"message-in-list",children:[n.length>0&&t.jsx("div",{className:"message-container",style:a?{width:"100%"}:{},children:j?m(n):t.jsx(ke,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:m(n)})}),!_(o)&&t.jsx("div",{className:"message-container",children:t.jsx("div",{className:"data-container",children:t.jsx(pe,{data:o,feedType:e.feedType})})}),n.length===0&&_(o)&&s&&t.jsx(Ye,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const Et=D.div`
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
.message-in-list {
|
|
61
|
+
padding: 8px 8px 8px 0;
|
|
62
|
+
display: flex;
|
|
63
|
+
border-radius: 8px;
|
|
64
|
+
}
|
|
65
|
+
.message-title {
|
|
66
|
+
color: #25292f;
|
|
67
|
+
font-size: 18px;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
word-break: break-all;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.attach-ske {
|
|
73
|
+
position: relative;
|
|
74
|
+
margin-left: 10px;
|
|
75
|
+
&::after {
|
|
76
|
+
content: '';
|
|
77
|
+
position: absolute;
|
|
78
|
+
left: -10px;
|
|
79
|
+
top: 0;
|
|
80
|
+
height: 100%;
|
|
81
|
+
width: 4px;
|
|
82
|
+
background-color: ${e=>e.leftLineColor};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.message-body {
|
|
87
|
+
color: #25292f;
|
|
88
|
+
font-size: 16px;
|
|
89
|
+
word-break: break-all;
|
|
90
|
+
white-space: pre-line;
|
|
91
|
+
}
|
|
92
|
+
.message-container {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
.data-container,
|
|
97
|
+
.attachment-container {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
width: 100%;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.actions-container {
|
|
104
|
+
margin-top: 10px;
|
|
105
|
+
.actions-item {
|
|
106
|
+
margin-right: 8px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
`;he.propTypes={severity:i.string.isRequired,notification:i.object.isRequired,showSke:i.bool};he.defaultProps={showSke:!0};const ee=e=>ft.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),qt=async(e,r)=>{const{type:s,did:n}=e;return ze.isSameAddr(s,"did")?await At(n,r)||Q.getLink(e):Q.getLink(e)},Ht=async(e,r,s=!0)=>{const n=Q.toTextList(e);return await Promise.all(n.map(async l=>{if(l instanceof Q.Link){if(s){const a=await qt(l,r),{type:c,chainId:m,did:j}=l;return ze.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${m}" 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="${m}" data-did="${j}">${l.text}</em>`}return l.text}return l})).then(l=>l.join(""))};We.propTypes={notification:i.object,rows:i.number,minimal:i.bool};function We({notification:e,rows:r=2,minimal:s=!1}){const[n,o]=u.useState(!1),[l,a]=u.useState(""),{t:c,locale:m}=Re(),{palette:j}=Y(),y=u.useMemo(()=>{const{attachments:h}=e||{};if(!h)return!1;try{return h.length>0}catch{return!1}},[e]),R=u.useMemo(()=>{const{blocks:h}=e||{};if(!h)return!1;try{return h.length>0}catch{return!1}},[e]),v=u.useMemo(()=>{const{description:h}=e||{};return!!h},[e]),w=u.useMemo(()=>{const{data:h}=e||{};return!_(h)},[e]),k=u.useMemo(()=>y||R||v||w,[y,R,v,w]);if(u.useEffect(()=>{Ht((e==null?void 0:e.description)??"",m).then(h=>{a(h)})},[e==null?void 0:e.description,m]),!k)return null;const d=()=>r===0?"":n?`<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:I}=h;I.getAttribute("data-name")==="toggle-expanded"&&(o(!n),h.customPreventRedirect=!0)};return t.jsxs(Wt,{color:s?j.primary.contrastText:"",children:[t.jsx(p,{className:"text-container",component:"div",onClick:x,children:l&&(!n&&r>0?t.jsx(lt,{basedOn:"letters",unsafeHTML:ee(l),maxLine:r,ellipsisHTML:ee(d())}):t.jsx($,{component:"div",className:`content ${r===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important"},dangerouslySetInnerHTML:{__html:ee(`${l}${d()}`)}}))}),!s&&(y||w)?t.jsx(he,{severity:e.severity,notification:e}):null]})}const Wt=D(p)`
|
|
110
|
+
width: 100%;
|
|
111
|
+
color: ${e=>e.color?e.color:e.theme.palette.text.secondary};
|
|
112
|
+
.text-container {
|
|
113
|
+
word-wrap: break-word;
|
|
114
|
+
word-break: break-all;
|
|
115
|
+
color: ${e=>e.color?e.color:e.theme.palette.text.secondary};
|
|
116
|
+
.toggle-btn {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
margin-left: 4px;
|
|
121
|
+
color: ${e=>e.theme.palette.secondary.main};
|
|
122
|
+
}
|
|
123
|
+
.content.ellipsis {
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
word-break: break-all;
|
|
127
|
+
display: block;
|
|
128
|
+
display: -webkit-box;
|
|
129
|
+
-webkit-box-orient: vertical;
|
|
130
|
+
-webkit-line-clamp: 2;
|
|
131
|
+
line-height: 1.25;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`,Bt=u.memo(We);var me={},Ut=Ce;Object.defineProperty(me,"__esModule",{value:!0});var Be=me.default=void 0,Ot=Ut(Te()),Ft=t;Be=me.default=(0,Ot.default)((0,Ft.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 fe={},Vt=Ce;Object.defineProperty(fe,"__esModule",{value:!0});var Ue=fe.default=void 0,Gt=Vt(Te()),Qt=t;Ue=fe.default=(0,Gt.default)((0,Qt.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning");const Xt={error:Be,warning:Ue,info:xt,success:vt};xe.propTypes={severity:i.oneOf(["error","warning","info","success"]).isRequired,size:i.number};xe.defaultProps={size:32};function xe({severity:e="info",size:r=32}){const s=Y(),o=L(()=>({error:s.palette.error.main,warning:s.palette.warning.main,info:s.palette.info.main,success:s.palette.success.main}))[e],l=Xt[e],a=Ze(o,.1);return t.jsx(K,{sx:{width:r,height:r,bgcolor:a,color:o},children:t.jsx(l,{fontSize:"small"})})}const Kt={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>'},Yt={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>'},Zt={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>'},Jt={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>'},er={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"/>'},be={comment:{icon:Kt,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:Yt,bgColor:"rgba(238, 242, 255, 1)",color:"rgba(97, 95, 255, 1)"},tips:{icon:Zt,bgColor:"rgba(254, 252, 232, 1)",color:"rgba(240, 177, 0, 1)"},mention:{icon:Jt,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"},assign:{icon:er,bgColor:"rgba(244, 244, 245, 1)",color:"rgba(43, 127, 255, 1)"}};ge.propTypes={activity:i.oneOf(["comment","like","follow","tips","mention","assign"]).isRequired,size:i.number};ge.defaultProps={size:32};function ge({activity:e,size:r=32}){const s=be[e]||be.comment,n=s.icon;return t.jsx(K,{sx:{bgcolor:s.bgColor,color:s.color,width:r,height:r},children:s.renderType==="emoji"?t.jsx("span",{style:{fontSize:"14px"},children:n}):t.jsx(Se,{icon:n})})}const re={avatar:i.string,fullName:i.string,did:i.string};function X({actor:e,size:r,teamDid:s,inService:n,showName:o}){const l=L(()=>({...e,avatar:e!=null&&e.avatar?kt(e.avatar,s,n):null}),[e,s,n]),a=c=>{e&&(c.stopPropagation(),window.open(mt(Z(st.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.avatar?t.jsx(jt,{user:l,showDid:!0,cardType:bt.AvatarOnly,infoType:wt.Minimal,avatarSize:r,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(K,{sx:{width:r,height:r}}),o&&t.jsx("span",{children:e==null?void 0:e.fullName})]})}X.propTypes={actor:i.shape(re).isRequired,size:i.number.isRequired,teamDid:i.string,inService:i.bool,showName:i.bool};X.defaultProps={teamDid:"",inService:!1,showName:!1};J.propTypes={actors:i.oneOfType([i.shape(re),i.arrayOf(i.shape(re))]).isRequired,size:i.number,maxDisplay:i.number,teamDid:i.string,inService:i.bool,showName:i.bool,avatarFallback:i.node};J.defaultProps={size:32,maxDisplay:9,teamDid:"",inService:!0,showName:!1,avatarFallback:null};function J({actors:e,size:r=32,maxDisplay:s=9,teamDid:n="",inService:o=!0,showName:l=!1,avatarFallback:a=null}){const c=L(()=>{const m=Array.isArray(e)?e:[e];return ht(m,"did").filter(Boolean)},[e]);return c.length===1||!c.length?t.jsx(X,{actor:c[0],size:r,teamDid:n,inService:o,showName:l}):t.jsx(Je,{total:c.length,renderSurplus:m=>m<100?t.jsxs("span",{children:["+",m]}):t.jsx("span",{children:"99+"}),max:s,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:c.map((m,j)=>m!=null&&m.avatar?t.jsx(X,{actor:m,size:r,teamDid:n,inService:o},(m==null?void 0:m.did)||j):a)})}const we=3;Ve.propTypes={notification:i.object.isRequired,isMultiple:i.bool,blocklet:i.object,mountPoint:i.string,avatarFallback:i.node};Oe.propTypes={notification:i.object.isRequired,mountPoint:i.string};Fe.propTypes={items:i.array.isRequired,activity:i.object.isRequired,blocklet:i.object,mountPoint:i.string,viewMoreLink:i.string,avatarFallback:i.node};function Oe({notification:e,mountPoint:r=""}){var a;const{activity:s}=e,{type:n,meta:o={}}=s||{},l=$e({activity:s,users:[e==null?void 0:e.actorInfo],actors:[(a=e==null?void 0:e.activity)==null?void 0:a.actor],mountPoint:r});return _(s)||!s.type||!s.actor||_(s.target)?null:t.jsxs(p,{children:[t.jsx($,{variant:"body1",color:W.textBase,sx:{mb:.5},children:l}),t.jsx(Ie,{meta:o,type:n})]})}function Fe({items:e,activity:r,blocklet:s,mountPoint:n="",viewMoreLink:o="",avatarFallback:l=null}){const a=Y(),c=L(()=>{var d;return(s==null?void 0:s.did)||((d=s==null?void 0:s.meta)==null?void 0:d.did)||""},[s]),{locale:m}=u.useContext(oe),j=L(()=>!_(r.meta)&&Object.values(r.meta).some(d=>d!=null),[r]),y=$e({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:n}),R=te(d=>{if(!d.activity)return null;const x=ae(d.activity);return x!=null&&x.metaLink?Z(n,x.metaLink):null}),v=te((d,x)=>{if(d.stopPropagation(),!x)return;const h=R(x);h&&(window.open(h,"_blank"),d.customPreventRedirect=!0)}),w=e.length>we,k=e.slice(0,we);return t.jsxs(p,{sx:{width:"100%"},children:[t.jsx($,{variant:"body1",color:W.textBase,sx:{mb:3},children:y}),j?t.jsxs(p,{className:"sub-content",display:"flex",flexDirection:"column",gap:3,children:[k.map(d=>{var x;return t.jsxs(p,{display:"flex",flexDirection:"column",gap:1,onClick:h=>v(h,d),children:[t.jsxs(p,{display:"flex",alignItems:"center",gap:1,children:[G(d)?t.jsx(J,{actors:d.actorInfo,size:32,teamDid:c}):l,t.jsx($,{variant:"subtitle1",color:W.textBase,children:G(d)?(x=d==null?void 0:d.actorInfo)==null?void 0:x.fullName:"System"})," ","·",t.jsx(Me,{value:d.createdAt,locale:m,shouldUpdate:!0,style:{color:a.palette.text.secondary,fontSize:"0.875rem",minWidth:"50px",whiteSpace:"nowrap"}})]}),t.jsx(p,{pl:5,children:t.jsx(Ie,{meta:d.activity.meta,type:d.activity.type})})]},d.id)}),w&&o?t.jsx(p,{mt:1,display:"flex",justifyContent:"center",children:t.jsxs(et,{size:"large",variant:"text",component:se,href:o,target:"_blank",rel:"noopener noreferrer",onClick:d=>{d.customPreventRedirect=!0},children:["View More ",t.jsx(Se,{icon:ct,style:{marginLeft:4}})]})}):null]}):null]})}function Ve({notification:e,isMultiple:r=!1,blocklet:s,mountPoint:n="",avatarFallback:o}){const l=L(()=>{if(!e.activity)return null;const a=ae(e.activity);return a!=null&&a.targetLink?Z(n,a.targetLink):null},[e.activity,n]);return r?t.jsx(Fe,{items:e.items,activity:e.activity,blocklet:s,mountPoint:n,viewMoreLink:l,avatarFallback:o}):t.jsx(Oe,{notification:e,mountPoint:n})}const tr=tt(p)`
|
|
135
|
+
display: flex;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
align-items: center;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
height: 100%;
|
|
140
|
+
min-height: 100px;
|
|
141
|
+
color: #999;
|
|
142
|
+
.empty-icon {
|
|
143
|
+
margin: 10px 0;
|
|
144
|
+
}
|
|
145
|
+
`;function ye({color:e,children:r,...s}){const n=Ct();return t.jsxs(tr,{...s,children:[t.jsx("img",{src:`${n.imgPrefix}/all-done.png`,alt:"All Done",width:200,height:200,style:{maxHeight:"100%",maxWidth:"100%"},onError:o=>{o.target.style.display="none"}}),t.jsx(p,{className:"empty-content",children:r})]})}ye.propTypes={color:i.string,children:i.any};ye.defaultProps={color:"inherit",children:null};rr.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"])};Ge.propTypes={notification:i.object,blocklet:i.object,onReadNotification:i.func,inDialog:i.bool,highlight:i.bool};F.propTypes={blocklet:i.object,size:i.number,showName:i.bool,hideDot:i.bool};function F({blocklet:e,size:r=40,showName:s=!1,hideDot:n=!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:n?"8px":"4px"},children:[!n&&t.jsx("span",{className:"dot"}),e?t.jsx(p,{children:l.includes(o)?t.jsx(le,{blocklet:e,size:r,style:{borderRadius:8}}):t.jsx(ot,{blocklet:e,ancestors:e.ancestors??[],size:r,style:{borderRadius:8}})}):t.jsx(it,{width:r,height:r}),s&&t.jsx("span",{className:"component-name",children:(c=e==null?void 0:e.meta)==null?void 0:c.title})]})}function Ge({notification:e,blocklet:r,onReadNotification:s=()=>{},inDialog:n=!1,highlight:o}){const{locale:l}=u.useContext(oe),a=Y(),c=q(g=>g.breakpoints.down("md")),m=u.useRef(null),j=u.useMemo(()=>_t(e),[e]),y=u.useMemo(()=>ut(e),[e]),R=u.useMemo(()=>G(e),[e]),v=u.useMemo(()=>{const{actions:g,action:C}=e;let T=g??[];return!T.length&&C&&(T=[{name:"Visit",link:C}]),T},[e]),w=u.useMemo(()=>e.items||[],[e]),k=u.useMemo(()=>w.length>0,[w]),d=u.useMemo(()=>y?k?w.map(g=>{var C;return G(g)?g.actorInfo:{did:(C=g.activity)==null?void 0:C.actor}}).filter(Boolean):e.actorInfo??[]:[],[w,e.actorInfo,k,y]),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(()=>Lt(x,window.blocklet),[x]),I=te((g,C)=>{if(j||s(g),C&&!C.customPreventRedirect){const T=Dt(g,h);T&&typeof T=="string"&&window.open(T,"_blank","noopener,noreferrer")}});return t.jsxs(sr,{ref:m,className:"notification-row",id:e.id,isRead:j,inDialog:n,highlight:o,isMd:c,onClick:g=>I(e,g),children:[y?t.jsx(ge,{activity:e.activity.type,size:c?24:32}):t.jsx(xe,{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:[y&&R?t.jsx(J,{actors:d,teamDid:x,size:c?24:32,avatarFallback:t.jsx(F,{blocklet:r,hideDot:!0,size:c?24:32})}):t.jsx(F,{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"}})]}),y?t.jsx(Ve,{notification:e,isMultiple:k,blocklet:r,mountPoint:h,avatarFallback:t.jsx(F,{blocklet:r,hideDot:!0,size:c?24:32})}):t.jsxs(t.Fragment,{children:[t.jsx($,{variant:"body1",className:"title",color:"rgba(24, 24, 27, 1)",style:{marginTop:0},sx:{mb:.5},children:e.title}),t.jsx(Bt,{notification:e,rows:n?0:2})]}),v.length>0?t.jsx(p,{display:"flex",justifyContent:"start",alignItems:"center",gap:1,mt:1.5,children:v.map((g,C)=>t.jsxs(u.Fragment,{children:[t.jsx(se,{href:g.link,target:"_blank",className:"link",rel:"noopener noreferrer",sx:{fontSize:"15px"},onClick:T=>{T.customPreventRedirect=!0},children:g.name},g.link),C<v.length-1?t.jsx(ne,{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(rt,{size:"small",children:t.jsx(nt,{sx:{fontSize:22},content:(e==null?void 0:e.description)||""})})})]})}function rr({data:e,blockletMap:r,onReadNotification:s=()=>{},onReadBatch:n=()=>{},inDialog:o=!1,highlightId:l,highlight:a=!1,type:c="service"}){const{t:m}=Re(),j=u.useRef(null),[y,R]=u.useState(!1),[v,w]=u.useState(!0),[k,d]=u.useState(!1),x=u.useRef(new Set),h=u.useRef(new Set),I=u.useRef(null),g=u.useRef(null),C=u.useRef(!1),T=u.useMemo(()=>o?e==null?void 0:e.slice(0,5):e,[o,e]),P=u.useMemo(()=>dt(T),[T]),H=u.useMemo(()=>{const f=new Map;return P&&P.length&&P.forEach(b=>{f.set(b.id,b)}),f},[P]);u.useEffect(()=>{const f=()=>{w(document.visibilityState==="visible")};return document.addEventListener("visibilitychange",f),()=>{document.removeEventListener("visibilitychange",f)}},[]);const U=u.useCallback(()=>{if(!o&&x.current.size>0){const f=[];x.current.forEach(b=>{if(h.current.has(b))return;const M=H.get(b);if(M){const{receivers:N=[],items:A=[]}=M;if(N.length&&!N[0].read&&(f.push(b),h.current.add(b),A.length>0&&A.forEach(S=>{const z=S.id;z&&!h.current.has(z)&&(f.push(z),h.current.add(z))}),g.current)){const S=document.getElementById(b);S&&g.current.unobserve(S)}}}),f.length>0&&(n(f),setTimeout(()=>{R(!1)},300)),x.current.clear()}},[o,H,n]),E=u.useCallback(()=>{if(o||!j.current||!v)return;g.current&&g.current.disconnect();const f={root:null,rootMargin:"0px",threshold:.5},b=new IntersectionObserver(N=>{y&&N.forEach(A=>{const S=A.target.id;if(h.current.has(S))return;const z=H.get(S);if(z){const{receivers:ve=[]}=z;ve.length&&!ve[0].read&&(A.isIntersecting?(x.current.add(S),k||U()):x.current.delete(S))}})},f);g.current=b,Array.from(j.current.querySelectorAll(".notification-row")).filter(N=>{const A=N.id;if(h.current.has(A))return!1;const S=H.get(A);if(S){const{receivers:z=[]}=S;return z.length&&!z[0].read}return!1}).forEach(N=>{b.observe(N)}),C.current=!1},[y,o,k,v,H,U]);return u.useEffect(()=>{o||(C.current=!0,g.current&&v&&y&&setTimeout(()=>{E()},0))},[T,y,v,E,o]),u.useEffect(()=>{if(o||!j.current||!v)return;let f=window;if(c==="server"&&(f=document.getElementById("arc__dashboard-main")),!f){const M=document.getElementsByClassName("dashboard-main")[0];M&&(f=M)}if(!f)return;const b=M=>{M.isTrusted&&(y||R(!0),d(!0),I.current&&clearTimeout(I.current),I.current=setTimeout(()=>{d(!1),U(),C.current&&E()},300))};return f.addEventListener("scroll",b,{passive:!0}),()=>{f.removeEventListener("scroll",b),I.current&&clearTimeout(I.current)}},[o,y,v,U,E,c]),u.useEffect(()=>(o||E(),()=>{g.current&&g.current.disconnect()}),[E,o]),P!=null&&P.length?t.jsx(p,{ref:j,display:"flex",flexDirection:"column",sx:{...o?{maxHeight:"calc(-200px + 100vh)",overflow:"auto"}:{}},children:P==null?void 0:P.map(f=>{var M;const b=f.source==="system"?r.get(f.entityId||f.sender):r.get(f.componentDid||f.sender);return((M=f==null?void 0:f.type)==null?void 0:M.toLowerCase())==="passthrough"?null:t.jsx(Ge,{highlight:a&&l===f.id,inDialog:o,notification:f,blocklet:b,onReadNotification:()=>s(f)},f.id)})}):t.jsx(ye,{children:m("notification.allDone")})}const sr=D("div")`
|
|
146
|
+
@keyframes flash-bg {
|
|
147
|
+
0% {
|
|
148
|
+
background-color: ${e=>e.theme.palette.warning.light};
|
|
149
|
+
}
|
|
150
|
+
100% {
|
|
151
|
+
background-color: unset;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
position: relative;
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: flex-start;
|
|
157
|
+
gap: ${e=>e.isMd?e.theme.spacing(1):e.theme.spacing(1.5)};
|
|
158
|
+
padding: ${e=>e.isMd?`${e.theme.spacing(2)} 0`:e.theme.spacing(3)};
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
animation: ${e=>e.highlight?"flash-bg 3s ease-out 0s 1 normal none running":"none"};
|
|
161
|
+
background-color: ${e=>e.isRead?"transparent":e.theme.palette.grey[100]};
|
|
162
|
+
border-bottom: 1px solid;
|
|
163
|
+
border-color: ${({theme:e})=>e.palette.grey[200]};
|
|
164
|
+
&:last-child {
|
|
165
|
+
border-bottom: none;
|
|
166
|
+
}
|
|
167
|
+
&:hover {
|
|
168
|
+
background-color: ${e=>e.theme.palette.action.hover};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.copy-button {
|
|
172
|
+
position: absolute;
|
|
173
|
+
right: ${e=>e.inDialog?e.theme.spacing(2):"0"};
|
|
174
|
+
top: ${e=>e.inDialog?e.theme.spacing(5):e.theme.spacing(4)};
|
|
175
|
+
display: none;
|
|
176
|
+
background: ${e=>e.theme.palette.action.disabledBackground};
|
|
177
|
+
border-radius: 50%;
|
|
178
|
+
svg {
|
|
179
|
+
width: ${e=>e.theme.spacing(2.25)};
|
|
180
|
+
height: ${e=>e.theme.spacing(2.25)};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
&:hover {
|
|
184
|
+
.copy-button {
|
|
185
|
+
display: block;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.component-avatar {
|
|
190
|
+
.dot {
|
|
191
|
+
width: ${e=>e.theme.spacing(1)};
|
|
192
|
+
height: ${e=>e.theme.spacing(1)};
|
|
193
|
+
border-radius: 50%;
|
|
194
|
+
background-color: ${e=>e.theme.palette.primary.main};
|
|
195
|
+
visibility: ${e=>e.isRead?"hidden":"visible"};
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.notification {
|
|
200
|
+
width: calc(100% - ${e=>e.theme.spacing(6.25)});
|
|
201
|
+
|
|
202
|
+
> .header {
|
|
203
|
+
width: 100%;
|
|
204
|
+
@media (min-width: 900px) {
|
|
205
|
+
.title {
|
|
206
|
+
max-width: calc(100vw - ${e=>e.theme.spacing(50)});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
@media (min-width: 1200px) {
|
|
210
|
+
.title {
|
|
211
|
+
max-width: ${e=>e.theme.spacing(102.5)};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
@media (max-width: 900px) {
|
|
215
|
+
.title {
|
|
216
|
+
max-width: calc(100vw - ${e=>e.theme.spacing(25)});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.title {
|
|
222
|
+
min-width: 0;
|
|
223
|
+
max-width: 100%;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
text-overflow: ellipsis;
|
|
226
|
+
white-space: nowrap;
|
|
227
|
+
color: ${e=>e.theme.palette.text.primary};
|
|
228
|
+
font-size: ${e=>e.theme.typography.fontSize*1.15}px;
|
|
229
|
+
}
|
|
230
|
+
.link {
|
|
231
|
+
color: ${e=>e.theme.palette.primary.main};
|
|
232
|
+
font-size: ${e=>e.theme.typography.fontSize}px;
|
|
233
|
+
text-decoration: none;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`;export{J as A,le as B,rr as N,F as S,Ve as a,Bt as b,_t as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./vendor-react-DEoibe3W.js";import{s as d,w as h,j as e,aa as a,al as t,H as i}from"./vendor-mui-core-B6POpIBB.js";const l=d(h)(({theme:r})=>({backgroundColor:r.palette.background.default,"& .header-row":{display:"flex",justifyContent:"space-between",alignItems:"center",gap:r.spacing(1)},"& .right":{display:"flex",alignItems:"center",gap:r.spacing(1.5)},"& .tabs":{marginTop:r.spacing(2),"& .MuiButton-root":{border:"none",color:"#999","&.active":{color:"#222"}}},"@media (max-width: 900px)":{"& .header-row":{flexDirection:"column",alignItems:"flex-start"},"& .right":{flexDirection:"column",width:"100%",".search-always-open, .toolbar-btn-show, a, button, .MuiButtonGroup-root":{width:"100% !important"}}}}));function c({left:r,tabs:s,actions:n,...o}){return!r&&!s?e.jsx(l,{elevation:0,...o,children:e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left"}),e.jsx(t,{direction:"row",className:"right",children:n})]})}):r&&!s||!r&&s?e.jsx(l,{elevation:0,...o,children:e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left",children:r||s}),e.jsx(t,{direction:"row",className:"right",children:n})]})}):e.jsxs(l,{elevation:0,...o,children:[e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left",children:r}),e.jsx(t,{direction:"row",className:"right",children:n})]}),s&&e.jsx(a,{mt:2,children:s})]})}c.propTypes={left:i.node,tabs:i.node,actions:i.node};c.defaultProps={left:null,tabs:null,actions:null};export{c as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./vendor-mui-core-B6POpIBB.js";import"./vendor-react-DEoibe3W.js";import{S as t}from"./studio-DrYhFxCD.js";import"./vendor-ux-did-connect-DVrP2LNw.js";import"./vendor-utils-BUwfcN20.js";import"./vendor-hooks-DpLLpTSZ.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-CX-5Ex_f.js";import"./TuneOutlined-DcBuSd1o.js";function d(){return o.jsx(t,{children:"Coming soon..."})}export{d as default};
|