@abtnode/blocklet-services 1.16.47-beta-20250731-014139-e860268f → 1.16.47-beta-20250805-095401-14eb156b
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/libs/image.js +131 -77
- package/api/routes/blocklet.js +47 -32
- package/api/routes/csp-proxy.js +8 -8
- package/api/routes/user.js +6 -2
- package/api/services/auth/connect/verify-destroy.js +24 -2
- package/api/services/auth/session.js +6 -2
- package/api/services/image/index.js +6 -1
- package/dist/assets/AdapterDayjs-D8zlc0TS.js +3 -0
- package/dist/assets/{Google-JeDCA1Ra.js → Google-DxcTyhFe.js} +1 -1
- package/dist/assets/{access-control-CqcbwJmg.js → access-control-jFR93SsS.js} +1 -1
- package/dist/assets/{actions-CJMVMPKl.js → actions-B0rWiAuM.js} +1 -1
- package/dist/assets/{add-component-core-DycwSgX5.js → add-component-core-DfrJCl4a.js} +1 -1
- package/dist/assets/{add-resource-B2NC98Ho.js → add-resource-Ch4SZAWK.js} +1 -1
- package/dist/assets/{addon-BaoB37xg.js → addon-B-vtdIPn.js} +1 -1
- package/dist/assets/{advanced-D8HEmDva.js → advanced-B92lyz70.js} +1 -1
- package/dist/assets/aigne-BDdYezR9.js +10 -0
- package/dist/assets/api-Rnh95Dt4.js +1 -0
- package/dist/assets/{appearance-B497VXFd.js → appearance-C1k2L_bA.js} +1 -1
- package/dist/assets/{ar-DKohTs5n.js → ar-DDlrXmSt.js} +1 -1
- package/dist/assets/{ar-DxMZhab8.js → ar-cWkdH-wM.js} +1 -1
- package/dist/assets/{arrow-down.svg-CVjG1TNQ.js → arrow-down.svg-BnKvb8st.js} +1 -1
- package/dist/assets/{audit-logs-Dl8A9oRq.js → audit-logs-OO0l4GnY.js} +1 -1
- package/dist/assets/{authorize-Dq_NLQNa.js → authorize-BU6KP5W6.js} +1 -1
- package/dist/assets/{base-chart-Bq5ougoU.js → base-chart-B1XQ7Ytj.js} +1 -1
- package/dist/assets/{base32-DdRv86ir.js → base32-BeRPpTcK.js} +1 -1
- package/dist/assets/{branding-DGrOIsAX.js → branding-CEu-c8uQ.js} +1 -1
- package/dist/assets/{branding-BoSGCdxD.js → branding-D1JmhF3p.js} +2 -2
- package/dist/assets/{bundle-avatar-CbWsxcdV.js → bundle-avatar-BZQ_lZxy.js} +1 -1
- package/dist/assets/button-VEuIVOxr.js +1 -0
- package/dist/assets/{click-to-copy-D2vDgDFL.js → click-to-copy-EOhAhdSS.js} +1 -1
- package/dist/assets/{cloneDeep-Bp5oPxU3.js → cloneDeep-DwV-xVQF.js} +1 -1
- package/dist/assets/{collapse-C3V-lD7M.js → collapse-wumRocfe.js} +1 -1
- package/dist/assets/{complete-cbrNEz02.js → complete-DwaBuF4K.js} +1 -1
- package/dist/assets/{component-Cpwp1opW.js → component-D31UJpJQ.js} +3 -3
- package/dist/assets/{config-G8speQtC.js → config-AgncsJiw.js} +1 -1
- package/dist/assets/config-C6pSSzan.js +46 -0
- package/dist/assets/{config-BVstS2Nm.js → config-Df0dxvZZ.js} +1 -1
- package/dist/assets/{config-navigation-C1cOMpGw.js → config-navigation-JJehoQAV.js} +3 -3
- package/dist/assets/{config-space-DkL2gOSr.js → config-space-CrH2JnlQ.js} +1 -1
- package/dist/assets/{confirm-CRV2RKnN.js → confirm-Cx2owMMo.js} +1 -1
- package/dist/assets/{connect-B1rcOd6B.js → connect-BD9OoHaD.js} +1 -1
- package/dist/assets/{connect-DeAtTJ1r.js → connect-C7C7ILA6.js} +1 -1
- package/dist/assets/{connect-to-B8zygJqK.js → connect-to-nCPxtJH1.js} +1 -1
- package/dist/assets/{content-layout-CT98QJfh.js → content-layout-BZKNdb6s.js} +1 -1
- package/dist/assets/{createClass-D_MAnszY.js → createClass-BTaIsrxM.js} +1 -1
- package/dist/assets/dashboard-CDjptZox.js +106 -0
- package/dist/assets/{de-2FhiIZmh.js → de-CKHR0Dxi.js} +1 -1
- package/dist/assets/{de-CYm7FmiN.js → de-DSALrqI8.js} +1 -1
- package/dist/assets/{delete-confirm-za4gd8zO.js → delete-confirm-Wa3xVOUM.js} +1 -1
- package/dist/assets/{did-address-DM13r0GC.js → did-address-C7IHZs6x.js} +1 -1
- package/dist/assets/{domain-nJ5cWvRr.js → domain-DV7cdOEy.js} +1 -1
- package/dist/assets/{domain-action-card-Dt77CLty.js → domain-action-card-CnvZTstr.js} +1 -1
- package/dist/assets/domains-BpVmxPqY.js +1 -0
- package/dist/assets/{dot-BD1gx_6x.js → dot-CE8yAFCN.js} +1 -1
- package/dist/assets/{email-CvXCF8HC.js → email-DQnz-4Bc.js} +1 -1
- package/dist/assets/{empty-spinner-BMuZ6jkU.js → empty-spinner-DCdg-gxP.js} +1 -1
- package/dist/assets/engine-BD3-KjxK.js +1 -0
- package/dist/assets/{es-C2M40LGE.js → es-2tKCVVW6.js} +1 -1
- package/dist/assets/{es-5zob_8Of.js → es-DQvY5fGr.js} +1 -1
- package/dist/assets/{exchange-passport-T_o_EXW7.js → exchange-passport-D9HZFZwF.js} +1 -1
- package/dist/assets/{form-CXNMlv2k.js → form-D52FUB8q.js} +1 -1
- package/dist/assets/{form-text-input-CFrnnbRX.js → form-text-input-DanXI___.js} +1 -1
- package/dist/assets/{form-wrapper-CpayHdi1.js → form-wrapper-DgFURo9t.js} +1 -1
- package/dist/assets/{fr-GNzEzJIo.js → fr-BgvhEJ06.js} +1 -1
- package/dist/assets/{fr-_u2KT8VW.js → fr-C2hgGsGq.js} +1 -1
- package/dist/assets/{fuel-LAjBSdqB.js → fuel-DEa3ECY8.js} +1 -1
- package/dist/assets/{gen-access-key-BTl89uBT.js → gen-access-key-DrTcGDFb.js} +1 -1
- package/dist/assets/{gen-simple-access-key-CSNG83XC.js → gen-simple-access-key-DiDRmpFf.js} +1 -1
- package/dist/assets/get-safe-url-DOmcOTEp.js +1 -0
- package/dist/assets/{hi-D8HkmVe6.js → hi-DLl5_Grb.js} +1 -1
- package/dist/assets/hi-DtMqBGN3.js +5 -0
- package/dist/assets/{home-77gIsxv7.js → home-B7OWEVsn.js} +1 -1
- package/dist/assets/{id-BW7FB2Vj.js → id-BEDDZnYa.js} +1 -1
- package/dist/assets/{id-CbyxMpli.js → id-DfDk8Cxy.js} +1 -1
- package/dist/assets/{iframe-DUz4pKvd.js → iframe-CqwYISrF.js} +1 -1
- package/dist/assets/{index-BaofAoCa.js → index-296hnpGF.js} +1 -1
- package/dist/assets/{index-BVknf90c.js → index-78a5Cdpe.js} +1 -1
- package/dist/assets/{index-C9-vpsBs.js → index-AK4Fi3I2.js} +1 -1
- package/dist/assets/{index-D1UfZ73T.js → index-AbdeuSeu.js} +2 -2
- package/dist/assets/{index-CSX4LtVd.js → index-B-WiXXyt.js} +1 -1
- package/dist/assets/{index-BRrSUEyB.js → index-B-k9otcQ.js} +1 -1
- package/dist/assets/{index-BlUiIWvp.js → index-B0GLaTiX.js} +1 -1
- package/dist/assets/{index-CbB58MZZ.js → index-B4OZ6pVW.js} +1 -1
- package/dist/assets/{index-Vc0vthSd.js → index-BBIMESWU.js} +1 -1
- package/dist/assets/index-BDu1k7Fv.js +1 -0
- package/dist/assets/{index-9VirX3lP.js → index-BEmLxB7B.js} +1 -1
- package/dist/assets/{index-DL139d1R.js → index-BFOTYlfC.js} +3 -3
- package/dist/assets/{index-CLLf5x5M.js → index-Bbcgo0GF.js} +1 -1
- package/dist/assets/{index--zSWr4mJ.js → index-BetmKk0p.js} +1 -1
- package/dist/assets/{index-Bk_pomLR.js → index-C0mn0MnL.js} +2 -2
- package/dist/assets/{index-odXYgVVs.js → index-C4hly8RC.js} +1 -1
- package/dist/assets/index-CKesQXQW.js +1 -0
- package/dist/assets/{index-CGzwVlpv.js → index-Cbf4geph.js} +64 -64
- package/dist/assets/{index-GX1AZaVf.js → index-ChbREcnK.js} +1 -1
- package/dist/assets/{index-D1JnavLU.js → index-CiL_9BYm.js} +10 -10
- package/dist/assets/{index-BeEecuCm.js → index-CiW-jlCS.js} +1 -1
- package/dist/assets/{index-DFQY861i.js → index-Cylfu8Kg.js} +9 -9
- package/dist/assets/{index-BeaB_cKh.js → index-DLDRrQJH.js} +1 -1
- package/dist/assets/{index-BacwgICr.js → index-DSNvDaKK.js} +1 -1
- package/dist/assets/{index-DE4S7LPJ.js → index-Dj0TETp9.js} +1 -1
- package/dist/assets/{index-CdPVeM40.js → index-DlaHLSvf.js} +3 -3
- package/dist/assets/{index-Cvrw3K0w.js → index-DtuUsb1T.js} +1 -1
- package/dist/assets/{index-GX7JwwIf.js → index-LdkiJabL.js} +1 -1
- package/dist/assets/{index-Drthk0Vc.js → index-Nd6gD7eY.js} +1 -1
- package/dist/assets/{index-EQBtWV25.js → index-Yow2d7gN.js} +1 -1
- package/dist/assets/{index-DwQuzZ6W.js → index-diQW5vdJ.js} +1 -1
- package/dist/assets/{index-D7bQ7LFj.js → index-uY6moYTs.js} +1 -1
- package/dist/assets/{invitation-CxN6bhPz.js → invitation-D8IFGbTf.js} +6 -6
- package/dist/assets/{invite-heDOi1Gk.js → invite-bBNbkUJu.js} +1 -1
- package/dist/assets/{isURL-TswwHw1T.js → isURL-By2TdRfN.js} +1 -1
- package/dist/assets/{issue-passport-Bw40L4Ic.js → issue-passport-DaQDVQ7Y.js} +1 -1
- package/dist/assets/{item-ouNpV3tA.js → item-BhrhnieT.js} +1 -1
- package/dist/assets/{ja-CU32a4z_.js → ja-BXpHGJqS.js} +1 -1
- package/dist/assets/{ja-BPCCKkW4.js → ja-GXo4l4Hp.js} +1 -1
- package/dist/assets/{ko-Wbe93sio.js → ko-1dMP3P8A.js} +1 -1
- package/dist/assets/{ko-i76UFj1A.js → ko-CwVxJk3S.js} +1 -1
- package/dist/assets/{landing-page-DYuzaUFl.js → landing-page-k9p91AEv.js} +1 -1
- package/dist/assets/{launch-result-message-DDqxU5ge.js → launch-result-message-BTMFIbUm.js} +1 -1
- package/dist/assets/{layout-SbmsTmT-.js → layout-zg5WZEdp.js} +1 -1
- package/dist/assets/{list-9fyAFvMO.js → list-C6CNPBAR.js} +1 -1
- package/dist/assets/{list-DtmR-6Z4.js → list-CYJEZSon.js} +2 -2
- package/dist/assets/{list-header-BDPLDqO-.js → list-header-B8ZTLjYf.js} +1 -1
- package/dist/assets/localization-DFWXvHpl.js +1 -0
- package/dist/assets/{log-DvCqrgCp.js → log-ssfC90VX.js} +1 -1
- package/dist/assets/logger-D5kKPkv7.js +1 -0
- package/dist/assets/{login-BVFzm3Co.js → login-aFsf6-QM.js} +1 -1
- package/dist/assets/{login-oauth-callback-CMSYGfid.js → login-oauth-callback-dKBg8IoH.js} +1 -1
- package/dist/assets/{logo-uploader-BshflYAa.js → logo-uploader-D0Gz6YoY.js} +2 -2
- package/dist/assets/{lost-passport-CaPo9QEu.js → lost-passport-Bo6am6th.js} +1 -1
- package/dist/assets/{observability-C5Y6fafw.js → observability-Cfy3MVZa.js} +1 -1
- package/dist/assets/{omit-DDVAqzZq.js → omit-8QDODHip.js} +1 -1
- package/dist/assets/{open-window-BH5dHcbl.js → open-window-DBhAlL9B.js} +1 -1
- package/dist/assets/{over-due-invoice-payment-BA9fs62q.js → over-due-invoice-payment-D89GCKNm.js} +1 -1
- package/dist/assets/{overview-CHn4eBUK.js → overview-Xs3x6yXg.js} +1 -1
- package/dist/assets/{page-header-B9Q5ZOnJ.js → page-header-18voA300.js} +1 -1
- package/dist/assets/{passport-item-CqfuHfH-.js → passport-item-D-B7gJms.js} +1 -1
- package/dist/assets/{permission-BVTxHNeQ.js → permission-DqaOkW_Z.js} +1 -1
- package/dist/assets/{playground-DUuQxqZF.js → playground-CC7NZ-_A.js} +1 -1
- package/dist/assets/preferences-5iBfUn8N.js +1 -0
- package/dist/assets/profile-embed-MOxF7ggV.js +1 -0
- package/dist/assets/pt-5iS1WU13.js +5 -0
- package/dist/assets/{pt-CxrYVS03.js → pt-DM9_sWXT.js} +1 -1
- package/dist/assets/publish-resource-BBnSOgDd.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-DY5UIQEa.js → react-beautiful-dnd.esm-DkLcR42r.js} +1 -1
- package/dist/assets/{react-stripe.esm-DlCFj5cL.js → react-stripe.esm-BqogJv7y.js} +1 -1
- package/dist/assets/{required-mwCee7dE.js → required-Df9AZf0R.js} +1 -1
- package/dist/assets/ru-DpIRvFxj.js +5 -0
- package/dist/assets/{ru-DRqpALK7.js → ru-DvP9XKXg.js} +1 -1
- package/dist/assets/runtime-DjILMoeT.js +1 -0
- package/dist/assets/{sanitize-d0BswqQy.js → sanitize-BSjwjSMl.js} +1 -1
- package/dist/assets/sdk-B-MwbsI_.js +1 -0
- package/dist/assets/{section-DkbgrVvQ.js → section-X04H4Q-a.js} +1 -1
- package/dist/assets/{security-D5f09NAi.js → security-BXhgiheS.js} +1 -1
- package/dist/assets/{session-CJYcrokL.js → session-89Q1nGxB.js} +1 -1
- package/dist/assets/setup-Da3ReRWd.js +30 -0
- package/dist/assets/{shorten-label-CzJmma8P.js → shorten-label-CdBn9U0H.js} +1 -1
- package/dist/assets/{simple-select-WHx-v2hU.js → simple-select-BkbgqOQi.js} +1 -1
- package/dist/assets/{spaces-B0VryU-h.js → spaces-BJeg7L1z.js} +1 -1
- package/dist/assets/{start-DdQSLbG1.js → start-CLueiUKJ.js} +1 -1
- package/dist/assets/{starting-progress-BOAJA87-.js → starting-progress-DWesZE5w.js} +1 -1
- package/dist/assets/{status-3ePg3iDr.js → status-DheLJdlM.js} +1 -1
- package/dist/assets/{step-actions-JxTPDo-C.js → step-actions-DmraEWCH.js} +1 -1
- package/dist/assets/{studio-BpropsaK.js → studio-C4flChud.js} +1 -1
- package/dist/assets/{switch-control-C3A7Bzd7.js → switch-control-BbRt1rRM.js} +1 -1
- package/dist/assets/{table-tips-BqAxYXjm.js → table-tips-73VcKMz1.js} +1 -1
- package/dist/assets/{team-DL-1lYRh.js → team-ZJuYy81P.js} +1 -1
- package/dist/assets/th-BjX3AJzF.js +5 -0
- package/dist/assets/{th-B1dDJjWM.js → th-DyGOy3ap.js} +1 -1
- package/dist/assets/{traffic-TO0gOocP.js → traffic-CMI1Sbrr.js} +1 -1
- package/dist/assets/{transfer-y-ql-f3C.js → transfer-CW4yMg3K.js} +1 -1
- package/dist/assets/{unsubscribe-ysldRIx6.js → unsubscribe-D3ZXIJIb.js} +1 -1
- package/dist/assets/{use-mobile-D0T_V7RQ.js → use-mobile-BDciCFXT.js} +1 -1
- package/dist/assets/{use-mobile-IWOBvgsY.js → use-mobile-BlpLWscF.js} +1 -1
- package/dist/assets/{use-promise-window-open-C5suxy-U.js → use-promise-window-open-u0untujg.js} +1 -1
- package/dist/assets/{use-server-logo-CUO3ZK3W.js → use-server-logo-lZp3Hq92.js} +1 -1
- package/dist/assets/{use-window-close-RhOoosk-.js → use-window-close-wo9PxrTe.js} +1 -1
- package/dist/assets/{useAsync-CQhKDImp.js → useAsync-BdgUavMa.js} +1 -1
- package/dist/assets/{useAsync-VHQLt8EO.js → useAsync-DgPr_To1.js} +1 -1
- package/dist/assets/{useLocalStorage-DIjnXt7A.js → useLocalStorage-B_thopuV.js} +1 -1
- package/dist/assets/{user-center-B-cbZnEv.js → user-center-D6gs6-WZ.js} +3 -3
- package/dist/assets/{user-sessions-0TRZeeJ5.js → user-sessions-B56a-4tA.js} +1 -1
- package/dist/assets/{util-h89lj_Gk.js → util-DQF9oPrf.js} +1 -1
- package/dist/assets/{util-CZwlQQjD.js → util-Dcj6HCP7.js} +1 -1
- package/dist/assets/{vendor-arcblock-CY7eM47O.js → vendor-arcblock--zSibe1w.js} +1 -1
- package/dist/assets/{vendor-hooks-B2bT6Nqf.js → vendor-hooks-DTeIFVkk.js} +1 -1
- package/dist/assets/{vendor-mui-core-Bw-IjQ9m.js → vendor-mui-core-BOHKtf8y.js} +1 -1
- package/dist/assets/{vendor-mui-x-tGuaJHw_.js → vendor-mui-x-16EG-AFj.js} +4 -4
- package/dist/assets/{vendor-utils-B4mliPf7.js → vendor-utils-BOkrEpKO.js} +1 -1
- package/dist/assets/{vendor-ux-e4SIahY6.js → vendor-ux-Cra9XTth.js} +2 -2
- package/dist/assets/vi-0Dtw7069.js +5 -0
- package/dist/assets/{vi-C5hdDVgc.js → vi-BWy1Jg4e.js} +1 -1
- package/dist/assets/{wait-connect-DrZC6ybw.js → wait-connect-CqwL_aoj.js} +1 -1
- package/dist/assets/wrap-locale-DAzAra4f.js +1 -0
- package/dist/assets/{zh-ZjW3xV_P.js → zh-BoO0jdid.js} +2 -2
- package/dist/assets/{zh-B8FiZw5R.js → zh-D_lJZbI3.js} +1 -1
- package/dist/assets/{zh-mA44AG8z.js → zh-DxCg9Pae.js} +1 -1
- package/dist/assets/{zh-tw-DPJ5sxST.js → zh-tw-CfWhHTHL.js} +1 -1
- package/dist/assets/{zh-tw-BuqwZI-0.js → zh-tw-D4_7lUjD.js} +1 -1
- package/dist/index.html +6 -6
- package/dist/service-worker.js +1 -1
- package/package.json +37 -37
- package/dist/assets/AdapterDayjs-Dx6irzR8.js +0 -3
- package/dist/assets/aigne-B7-KeQ-z.js +0 -10
- package/dist/assets/api-B6VBwg-Z.js +0 -1
- package/dist/assets/button-NakGdoSQ.js +0 -1
- package/dist/assets/config-W238rhTW.js +0 -263
- package/dist/assets/dashboard-BDI5arRX.js +0 -106
- package/dist/assets/domains-BZ81E9og.js +0 -1
- package/dist/assets/engine-B2vjFFt9.js +0 -1
- package/dist/assets/get-safe-url-BSYF437j.js +0 -1
- package/dist/assets/hi-BMaS53lF.js +0 -5
- package/dist/assets/index-2oWhjD-V.js +0 -1
- package/dist/assets/index-DnYdLG8x.js +0 -1
- package/dist/assets/localization-Bi90G6aS.js +0 -1
- package/dist/assets/logger-DoOuw4D6.js +0 -1
- package/dist/assets/preferences--2YETF2t.js +0 -1
- package/dist/assets/profile-embed-BPQR6Tpe.js +0 -1
- package/dist/assets/pt-C1fHGXQk.js +0 -5
- package/dist/assets/publish-resource-qtIS1W3s.js +0 -1
- package/dist/assets/ru-DJ3aNml8.js +0 -5
- package/dist/assets/runtime-WLtCIkiy.js +0 -1
- package/dist/assets/sdk-CrmCUSu6.js +0 -1
- package/dist/assets/setup-chjxGOpx.js +0 -30
- package/dist/assets/th-C22KCFdo.js +0 -5
- package/dist/assets/vi-D_AWh4Q3.js +0 -5
- package/dist/assets/wrap-locale-vvkgV_w9.js +0 -1
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/log-DvCqrgCp.js","assets/vendor-mui-core-Bw-IjQ9m.js","assets/vendor-react-Dvs43sk9.js","assets/useLocalStorage-DIjnXt7A.js","assets/vendor-ux-e4SIahY6.js","assets/vendor-utils-B4mliPf7.js","assets/vendor-hooks-B2bT6Nqf.js","assets/lottie-web-4koyQiv_.js","assets/vendor-ux-DYcPPYq2.css","assets/index-CGzwVlpv.js","assets/vendor-arcblock-CY7eM47O.js","assets/index-DrVXX4fX.css","assets/bundle-avatar-CbWsxcdV.js","assets/log-1sZ_L4eJ.css","assets/index-D1JnavLU.js","assets/index-CSX4LtVd.js","assets/user-sessions-0TRZeeJ5.js","assets/index-odXYgVVs.js","assets/did-address-DM13r0GC.js","assets/team-DL-1lYRh.js","assets/session-CJYcrokL.js","assets/isURL-TswwHw1T.js","assets/permission-BVTxHNeQ.js","assets/click-to-copy-D2vDgDFL.js","assets/index-2oWhjD-V.js","assets/arrow-down.svg-CVjG1TNQ.js","assets/vendor-mui-x-tGuaJHw_.js","assets/AdapterDayjs-Dx6irzR8.js","assets/index-DBs9Ljax.js","assets/useAsync-VHQLt8EO.js","assets/useAsync-CQhKDImp.js","assets/index-BRrSUEyB.js","assets/confirm-CRV2RKnN.js","assets/index-Drthk0Vc.js","assets/util-CZwlQQjD.js","assets/base32-DdRv86ir.js","assets/sdk-CrmCUSu6.js","assets/actions-CJMVMPKl.js","assets/shorten-label-CzJmma8P.js","assets/get-safe-url-BSYF437j.js","assets/dot-BD1gx_6x.js","assets/useSetState-DFuQZPPV.js","assets/index-DE4S7LPJ.js","assets/over-due-invoice-payment-BA9fs62q.js","assets/use-mobile-D0T_V7RQ.js","assets/index-C9-vpsBs.js","assets/use-mobile-IWOBvgsY.js","assets/index.esm-JPZAjt0x.js","assets/table-tips-BqAxYXjm.js","assets/index-DFQY861i.js","assets/empty-spinner-BMuZ6jkU.js","assets/list-header-BDPLDqO-.js","assets/question-mark-circle.svg-B4stD6SS.js","assets/engine-B2vjFFt9.js","assets/api-B6VBwg-Z.js","assets/react-beautiful-dnd.esm-DY5UIQEa.js","assets/raf-schd.esm-CHNehTG3.js","assets/use-promise-window-open-C5suxy-U.js","assets/wait-connect-DrZC6ybw.js","assets/item-ouNpV3tA.js","assets/delete-confirm-za4gd8zO.js","assets/index-9VirX3lP.js","assets/index-Vc0vthSd.js","assets/index-gnjjKJuC.css","assets/index-BaofAoCa.js","assets/overview-CHn4eBUK.js","assets/keyboard-arrow-down-rounded-8U0_i9QO.js","assets/index-BojVbZw0.js","assets/status-3ePg3iDr.js","assets/omit-DDVAqzZq.js","assets/spaces-B0VryU-h.js","assets/domains-BZ81E9og.js","assets/domain-action-card-Dt77CLty.js","assets/util-h89lj_Gk.js","assets/index-Bk_pomLR.js","assets/passport-item-CqfuHfH-.js","assets/index-BacwgICr.js","assets/Google-JeDCA1Ra.js","assets/cloneDeep-Bp5oPxU3.js","assets/edit.svg-DycWG9v3.js","assets/lock.svg-COUP8tyO.js","assets/appearance-B497VXFd.js","assets/audit-logs-Dl8A9oRq.js","assets/index-GX7JwwIf.js","assets/section-DkbgrVvQ.js","assets/required-mwCee7dE.js","assets/collapse-C3V-lD7M.js","assets/list-9fyAFvMO.js","assets/server-logo-notext.svg-CKQB0tIp.js","assets/traffic-TO0gOocP.js","assets/iframe-DUz4pKvd.js","assets/index-CLLf5x5M.js","assets/base-chart-Bq5ougoU.js","assets/index-BeaB_cKh.js","assets/config-navigation-C1cOMpGw.js","assets/index-BPy8_fa2.js","assets/createClass-D_MAnszY.js","assets/simple-select-WHx-v2hU.js","assets/index-Cvrw3K0w.js","assets/index-D7bQ7LFj.js","assets/index-DL139d1R.js","assets/index-DRYJ0xIl.js","assets/connect-to-B8zygJqK.js","assets/config-space-DkL2gOSr.js","assets/switch-control-C3A7Bzd7.js","assets/index-BeEecuCm.js","assets/index-EQBtWV25.js","assets/security-D5f09NAi.js","assets/config-BVstS2Nm.js","assets/branding-DGrOIsAX.js","assets/sanitize-d0BswqQy.js","assets/form-text-input-CFrnnbRX.js","assets/form-wrapper-CpayHdi1.js","assets/logo-uploader-BshflYAa.js","assets/advanced-D8HEmDva.js","assets/runtime-WLtCIkiy.js","assets/index-BVknf90c.js","assets/list-DtmR-6Z4.js","assets/index--zSWr4mJ.js","assets/config-W238rhTW.js","assets/empty-DhZfJeme.js","assets/observability-C5Y6fafw.js","assets/playground-DUuQxqZF.js","assets/component-Cpwp1opW.js","assets/add-component-core-DycwSgX5.js","assets/launch-result-message-DDqxU5ge.js","assets/page-header-B9Q5ZOnJ.js","assets/index-DwQuzZ6W.js","assets/content-layout-CT98QJfh.js","assets/search-4YYphs0l.js","assets/add-component-core-G0iZE90Q.css","assets/index-CbB58MZZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{b as Yt,n as pt,H as F,T as z,ar as en,as as mo,M as tn,a0 as ho,I as go,E as bo,h as xo,G as yo,_ as T}from"./vendor-ux-e4SIahY6.js";import{j as a,W as w,aZ as vo,cM as So,cQ as wo,ca as jo,cR as Co,cS as Eo,cO as ko,cT as _o,cU as Io,cV as To,I as mt,aQ as Do,aR as Lo,aX as ht,a3 as Ao,M as Po,aO as Ro,a6 as H,aP as Mo,bg as Oo,at as Oe,T as se,bp as No,b6 as Et,bq as kt,ak as I,D as Ne,J as de,ah as Ue,ao as Uo,cW as $o,aj as Bo,cX as nn,cY as on,cZ as rn,a$ as ke,am as De,c_ as _t,U as G,aN as sn,bZ as Fo,c$ as zo,d0 as Vo,Q as Ho,d1 as Wo}from"./vendor-mui-core-Bw-IjQ9m.js";import{r as x,L as an,i as cn,g as qo,k as Ko,j as Go}from"./vendor-react-Dvs43sk9.js";import{U as $e,f as O,R as He,a9 as We,c as R,T as It,bc as Qo,af as Zo,a1 as Xo,v as Jo,bd as Yo,be as ln,ad as ee,bf as un,aK as er,bg as tr,Q as nr,a_ as or,a$ as rr,bh as sr,b0 as ir,bi as ar,bj as cr,a8 as lr,bk as qe,bl as ur,bm as dr,aZ as fr,m as fe,$ as pr,k as mr,a3 as hr,a as gr,n as Tt,bn as Dt,i as br,l as xr,r as yr,p as oe,o as vr,q as Sr,P as wr,E as jr,ap as Cr,at as Er,bo as kr,aq as _r,d as Lt,t as Ir}from"./index-CGzwVlpv.js";import{a5 as Tr,C as Q,J as Dr}from"./vendor-utils-B4mliPf7.js";import{o as Le}from"./vendor-arcblock-CY7eM47O.js";import{u as At}from"./useLocalStorage-DIjnXt7A.js";import{f as gt}from"./index-DBs9Ljax.js";import{C as Pt}from"./confirm-CRV2RKnN.js";import{g as Rt}from"./get-safe-url-BSYF437j.js";import{u as dn}from"./session-CJYcrokL.js";import{a as ie,l as Lr}from"./vendor-hooks-B2bT6Nqf.js";import{k as Ar,c as Pr,M as Rr,b as Mr,T as Or,N as Nr}from"./team-DL-1lYRh.js";import{u as fn,D as Ur}from"./dot-BD1gx_6x.js";import{u as pn}from"./useSetState-DFuQZPPV.js";import{u as $r,d as Br}from"./index-DE4S7LPJ.js";import{O as Fr}from"./over-due-invoice-payment-BA9fs62q.js";import{u as zr}from"./use-mobile-D0T_V7RQ.js";const mn=x.createContext({});function hn({children:e,type:t="blocklets"}){const[n,r]=x.useState([]),o=x.useRef([]),s=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},i=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},c=l=>{const u=n.filter(p=>l.find(f=>f===p));Tr(u,n).forEach(p=>i(p))};return a.jsx(mn.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:s,removeDeletingDid:i,matchDeletingDid:c},children:e})}hn.propTypes={type:w.string,children:w.node.isRequired};function Ha(){return x.useContext(mn)}const Vr=e=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})),Y={Start:vo,Stop:So,Restart:wo,Reload:To,Remove:jo,Config:Io,Log:_o,Group:ko,Cancel:Co,Dashboard:Vr,Overview:Eo},Hr=(e,t)=>{if(!e)return"";if(!t)return e;const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(Q(n.origin,t));return o.search=r.toString(),o.toString()},Wr="internal",qr="external";function gn({blocklet:e,onStart:t,onComplete:n,variant:r="menu",hasPermission:o=!1,getComponentUrl:s=null,useBlockletUrlEvaluation:i=()=>({loading:!1,recommendedUrl:window?.location?.href}),...c}){const l=$e(),[u,d]=x.useState(null),[p,f]=x.useState(null),[h,b]=x.useState(!1),[m,C]=x.useState(null),{t:v}=x.useContext(Yt),[j]=At("skip-blocklet-setup",!1),{loading:S,recommendedUrl:k}=i(e),[E]=At("blocklet-type-filter",Wr),g=O.isInProgress(e.status),[_,A]=x.useState(!1);x.useEffect(()=>{if(!e?.controller)return;A(e?.controller?.status?.value===He.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{try{const D=await l.api.getLauncherSession({input:{launcherSessionId:e?.controller?.launcherSessionId,launcherUrl:e?.controller?.launcherUrl}});if(D?.error){console.error("get launcher session failed",D.error);return}A([R.LAUNCH_SESSION_STATUS.overdue,R.LAUNCH_SESSION_STATUS.canceled,R.LAUNCH_SESSION_STATUS.terminated].includes(D?.launcherSession?.status))}catch(D){console.error("call getLauncherSession error",D)}})()},[]);const{inService:$}=l,M=(y,D,q=!1)=>async()=>{const K=async ve=>{t({action:y,blocklet:e}),b(!0),f(y);let Se=!1;try{if(y==="remove")await D(ve);else if(y==="start"){if(!O.hasRunnableComponent(e)){F.error(v("blocklet.noComponent"));return}if(!$&&!j&&!e.settings?.initialized&&e.mode!==He.BLOCKLET_MODES.DEVELOPMENT){if(!k||!It(k)){F.error(v("blocklet.gotoVisitError"));return}const N=Qo(l.info),Ct=new URL(k);Ct.searchParams.set("serverUrl",N),window.open(Rt(Ct.href,{allowDomains:null})),n({action:y,blocklet:e});return}const B=e.children.filter(N=>!O.isInProgress(N.status)&&N.status!=="running").map(N=>N.meta.did),J={did:e.meta.did,componentDids:B};await D({input:J})}else if(["stop","restart","reload"].includes(y)){const B=e.children.filter(N=>N.status==="running").map(N=>N.meta.did),J={did:e.meta.did,componentDids:B};await D({input:J})}else{const B={did:e.meta.did};await D({input:B})}y==="remove"?Se=!0:await Zo(1e3),y==="reload"&&F.success(v("blocklet.reloadSuccess")),C(null),n({action:y,blocklet:e})}catch(B){const J=`Blocklet ${y} failed: ${gt(B)}`;throw n({action:y,blocklet:e,error:new Error(J)}),new Error(J)}finally{Se||b(!1)}},xe=()=>{b(!1),C(null)},ye=O.getDisplayName(e,!0),fo=e.mode===He.BLOCKLET_MODES.DEVELOPMENT?{description:()=>a.jsx(se,{component:"div",children:a.jsx(se,{gutterBottom:!0,children:v("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(ve,Se)=>a.jsxs(se,{component:"div",children:[a.jsx(se,{gutterBottom:!0,children:v("blocklet.action.removeApplicationDescription")}),a.jsxs(No,{name:"removeType",value:ve.removeType,onChange:B=>Se({...ve,removeType:B.target.value}),children:[a.jsx(Et,{value:"backup",control:a.jsx(kt,{}),label:v("blocklet.action.removeApplicationAfterBackup")}),a.jsx(Et,{value:"complete",control:a.jsx(kt,{}),label:v("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},po={stop:{title:`${v("common.stop")} ${ye}`,description:v("blocklet.action.stopDescription"),confirm:v("blocklet.action.confirmStop"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe},restart:{title:`${v("common.restart")} ${ye}`,description:v("blocklet.action.restartDescription"),confirm:v("blocklet.action.confirmRestart"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe},remove:{title:`${v("common.remove")} ${ye}`,confirm:v("blocklet.action.confirmRemove"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe,...fo},cancelDownload:{title:`${v("common.cancel")}`,description:v("blocklet.action.cancelDownloadDescription",{name:ye}),confirm:v("common.confirm"),cancel:v("common.cancel"),onConfirm:K,onCancel:xe}};q?C(po[y]):await K()},ro=!!u,so=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}d(y.currentTarget)},io=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}d(null)},jt=async(y,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof y.handler=="function")try{b(!0),f(y.action),await y.handler()}catch(q){console.error(`Blocklet ${y.name} failed: `,q)}finally{b(!1),d(null)}else d(null)},ao=!$&&O.isDeletableBlocklet(e)?{action:"remove",icon:Y.Remove,name:v("common.remove"),handler:M("remove",async({removeType:y})=>{y==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:g}:null,co={action:"remove",icon:({sx:y,...D})=>a.jsx(Y.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...D}),name:v("common.cancel"),handler:M("cancelDownload",l.api.cancelDownloadBlocklet,!0)},lo=O.getAppMissingConfigs(e),uo=()=>{const y=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=s?.({mountPoint:y,blocklet:e});if(!D||!It(D)){F.error(v("blocklet.gotoVisitError"));return}const q=e?.site?.domainAliases;window.open(Rt(Hr(D,`${R.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`),{allowDomains:q?.map(K=>K.value)}))};let be=[{action:"start",icon:Y.Start,inExternal:!0,name:v("common.start"),handler:M("start",l.api.startBlocklet),disabled:_||e.children.every(y=>y.status==="running")||We(e.status)||S||g},{action:"stop",icon:Y.Stop,inExternal:!0,name:v("common.stop"),handler:M("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:Y.Restart,name:v("common.restart"),handler:M("restart",l.api.restartBlocklet,!0),disabled:_||e.status!=="running"},We(e.status)?co:ao,{separator:!0},$?null:{action:"dashboard",icon:({style:y,...D})=>a.jsx(Y.Dashboard,{...D,style:{...y,width:"26px",height:"26px",paddingRight:"3px"}}),name:v("sidebar.dashboard"),handler:uo}].filter(Boolean);return E===qr&&(be=be.filter(y=>y.inExternal)),r==="menu"?a.jsxs(Mt,{"data-cy":"blocklet-actions",children:[a.jsx(mt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:so,size:"small",disabled:!o||!We(e.status)&&h,children:a.jsx(Do,{})}),a.jsxs(Lo,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:ro,onClose:io,PaperProps:{},children:[lo.length>0&&a.jsxs(ht,{style:{maxWidth:"400px"},severity:"error",children:[v("blocklet.config.missingRequired"),a.jsx("br",{}),a.jsx(an,{to:`/blocklets/${e.meta.did}/components`,children:v("blocklet.config.gotoFix")})]}),be.map((y,D)=>y.separator?a.jsx(Ao,{},`separator-${D}`):a.jsxs(Po,{dense:!0,onClick:q=>jt(y,q),disabled:h||y.disabled,"data-cy":`${y.action}-blocklet`,children:[a.jsx(Ro,{style:{minWidth:24},children:p===y.action&&h?a.jsx(H,{size:16,sx:{marginRight:1}}):a.jsx(y.icon,{fontSize:"small"})}),a.jsx(Mo,{primary:y.name})]},y.name))]}),m&&a.jsx(Pt,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):a.jsxs(Mt,{"data-cy":"blocklet-actions",...c,children:[a.jsx(Oo,{children:be.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>a.jsxs(pt,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>jt(y),disabled:!!y.disabled||h,children:[p===y.action&&h?a.jsx(H,{size:16,sx:{marginRight:1}}):a.jsx(y.icon,{}),a.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),m&&a.jsx(Pt,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}gn.propTypes={getComponentUrl:w.func,blocklet:w.object.isRequired,onStart:w.func.isRequired,onComplete:w.func.isRequired,variant:w.oneOf(["menu","group"]),hasPermission:w.bool,useBlockletUrlEvaluation:w.func};const Mt=Oe.div`
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
|
|
6
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
-
.MuiButton-root {
|
|
8
|
-
padding: 4px;
|
|
9
|
-
font-size: 10px;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`,Ot=x.memo(gn),Kr=e=>{const t={};let n=null;return O.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=O.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Gr=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],u=((t.site?.domainAliases||[]).map(d=>d.value).filter(Boolean).find(d=>d.endsWith(R.DEFAULT_DID_DOMAIN))||"").replace(`.${R.DEFAULT_DID_DOMAIN}`,"");return u?o.replace(r,`${u}-${c}.${R.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Qr(){const{t:e}=z(),{api:t}=dn(),{blocklet:n}=Xo(),{inService:r}=$e(),[o,s]=x.useState(!1),[i,c]=x.useState(5),l=n&&n.structVersion!==R.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){F.error(e("blocklet.migrate.tip.running"));return}const f=Kr(n);if(f){F.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){F.error(gt(f))}},d=()=>{const f=Gr(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&a.jsxs(ht,{severity:"warning",style:{margin:"12px 0"},children:[a.jsxs(I,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(pt,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),a.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>a.jsx(I,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&a.jsx(Jo,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Yo(n,!0),title:O.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}function Zr(){const e=Ne();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const o=de(e.breakpoints.up(r));return!n&&o?r:n},null)||"xs"}function Xr(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function Jr(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Yr(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function es(e){return a.jsx(Ue,{...e,children:a.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const we={fontSize:20,marginInlineEnd:8},ts={success:a.jsx(Xr,{style:we}),warning:a.jsx(Jr,{style:we}),error:a.jsx(Yr,{style:we}),info:a.jsx(es,{style:we})},ns={xl:"400px",lg:"400px",md:"400px",sm:"300px"};function bn({keyId:e,notification:t={},viewAllUrl:n,content:r=null},o){const s=Ne(),i=ts[t.severity],{closeSnackbar:c}=en(),l=()=>c(e),u=cn(),d=()=>{c(e),u(n)},p=ie(()=>Ar(t),[t]),f=ie(()=>t?.activity,[t]),h=Pr({activity:f,users:[t?.actorInfo],actors:[t?.activity?.actor],extra:{linkColor:s.palette.primary.main,userDid:t?.receivers?.[0]?.did}}),b=Zr();return a.jsxs(I,{component:mo,ref:o,sx:[{...s.typography.body2,display:"flex",backgroundColor:s.palette.background.default,color:"#fff",alignItems:"center",pl:2.5,pr:2,py:.75,borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",width:ns[b]},t.severity==="success"?{backgroundColor:`${Uo[600]} !important`}:{},t.severity==="error"?{backgroundColor:`${s.palette.error.dark} !important`}:{},t.severity==="info"?{backgroundColor:`${s.palette.primary.main} !important`}:{},t.severity==="warning"?{backgroundColor:`${$o[700]} !important`}:{}],children:[a.jsxs(I,{sx:{display:"flex",alignItems:"center",py:1,flex:1},children:[i,a.jsx(rs,{onClick:d,sx:{flex:1},children:a.jsx(I,{children:p?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"title",children:h}),f.meta?a.jsx(Rr,{meta:f.meta,type:f.type,sx:{display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:"#fff"}}):null]}):a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"title",children:t.title}),r||a.jsx("span",{className:"desc",children:t.description})]})})})]}),a.jsx(I,{sx:{display:"flex",alignItems:"center",ml:"auto",mr:-1,width:44},children:a.jsx(mt,{"aria-label":"close",color:"inherit",onClick:l,size:"large",children:a.jsx(I,{component:Bo,sx:{fontSize:20}})},"close")})]})}const os=x.forwardRef(bn);bn.propTypes={viewAllUrl:w.string.isRequired,keyId:w.number.isRequired,notification:w.object.isRequired,content:w.node};const rs=Oe.div`
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
.title {
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
text-overflow: ellipsis;
|
|
19
|
-
display: -webkit-box;
|
|
20
|
-
-webkit-line-clamp: 1;
|
|
21
|
-
-webkit-box-orient: vertical;
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
}
|
|
24
|
-
.desc {
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
display: -webkit-box;
|
|
28
|
-
-webkit-line-clamp: 3;
|
|
29
|
-
-webkit-box-orient: vertical;
|
|
30
|
-
word-break: break-word;
|
|
31
|
-
}
|
|
32
|
-
`;var L=function(t,n,r){return nn.call(n,"css")?a.jsx(on,rn(t,n),r):a.jsx(t,n,r)},je=function(t,n,r){return nn.call(n,"css")?a.jsxs(on,rn(t,n),r):a.jsxs(t,n,r)};/**
|
|
33
|
-
* (c) Iconify
|
|
34
|
-
*
|
|
35
|
-
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
36
|
-
* files at https://github.com/iconify/iconify
|
|
37
|
-
*
|
|
38
|
-
* Licensed under MIT.
|
|
39
|
-
*
|
|
40
|
-
* @license MIT
|
|
41
|
-
* @version 3.1.1
|
|
42
|
-
*/const xn=Object.freeze({left:0,top:0,width:16,height:16}),Ae=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pe=Object.freeze({...xn,...Ae}),nt=Object.freeze({...pe,body:"",hidden:!1});function ss(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Nt(e,t){const n=ss(e,t);for(const r in nt)r in Ae?r in e&&!(r in n)&&(n[r]=Ae[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function is(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function as(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Nt(r[c]||o[c],s)}return i(t),n.forEach(i),Nt(e,s)}function cs(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=is(e);for(const o in r){const s=r[o];s&&(t(o,as(e,o,s)),n.push(o))}return n}const ae=/^[a-z0-9]+(-[a-z0-9]+)*$/,ne=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!_e(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!_e(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!_e(c,n)?null:c}return null},_e=(e,t)=>e?!!((e.provider===""||e.provider.match(ae))&&(t&&e.prefix===""||e.prefix.match(ae))&&e.name.match(ae)):!1,ls={provider:"",aliases:{},not_found:{},...xn};function Ke(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function us(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ke(e,ls))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(ae)||typeof s.body!="string"||!Ke(s,nt))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(ae)||typeof i!="string"||!n[i]&&!r[i]||!Ke(s,nt))return null}return t}const Pe=Object.create(null);function ds(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function U(e,t){const n=Pe[e]||(Pe[e]=Object.create(null));return n[t]||(n[t]=ds(e,t))}function bt(e,t){return us(t)?cs(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function fs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function ps(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Pe)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Pe[o]||{})).forEach(i=>{const c=U(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let xt=!1;function ms(e){return xt}function me(e){const t=typeof e=="string"?ne(e,!0,xt):e;if(t){const n=U(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function hs(e,t){const n=ne(e,!0,xt);if(!n)return!1;const r=U(n.provider,n.prefix);return fs(r,n.name,t)}function yn(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!_e({provider:t,prefix:n,name:"a"}))return!1;const r=U(t,n);return!!bt(r,e)}function gs(e){return!!me(e)}function bs(e){const t=me(e);return t?{...pe,...t}:null}const vn=Object.freeze({width:null,height:null}),Sn=Object.freeze({...vn,...Ae}),xs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ys=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ot(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(xs);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=ys.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const vs=e=>e==="unset"||e==="undefined"||e==="none";function Be(e,t){const n={...pe,...e},r={...Sn,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const m=[],C=b.hFlip,v=b.vFlip;let j=b.rotate;C?v?j+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):v&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let S;switch(j<0&&(j-=Math.floor(j/4)*4),j=j%4,j){case 1:S=o.height/2+o.top,m.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:S=o.width/2+o.left,m.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}j%2===1&&(o.left!==o.top&&(S=o.left,o.left=o.top,o.top=S),o.width!==o.height&&(S=o.width,o.width=o.height,o.height=S)),m.length&&(s='<g transform="'+m.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,u=o.height;let d,p;i===null?(p=c===null?"1em":c==="auto"?u:c,d=ot(p,l/u)):(d=i==="auto"?l:i,p=c===null?ot(d,u/l):c==="auto"?u:c);const f={},h=(b,m)=>{vs(m)||(f[b]=m.toString())};return h("width",d),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:f,body:s}}const Ss=/\sid="(\S+)"/g,ws="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let js=0;function wn(e,t=ws){const n=[];let r;for(;r=Ss.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(js++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const Z={local:!0,session:!0},jn={local:new Set,session:new Set};let yt=!1;function Cs(e){yt=e}const Ut="iconify2",ue="iconify",Cn=ue+"-count",$t=ue+"-version",En=36e5,Es=168;function rt(e,t){try{return e.getItem(t)}catch{}}function vt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Bt(e,t){try{e.removeItem(t)}catch{}}function st(e,t){return vt(e,Cn,t.toString())}function it(e){return parseInt(rt(e,Cn))||0}let Ce=typeof window>"u"?{}:window;function kn(e){const t=e+"Storage";try{if(Ce&&Ce[t]&&typeof Ce[t].length=="number")return Ce[t]}catch{}Z[e]=!1}function _n(e,t){const n=kn(e);if(!n)return;const r=rt(n,$t);if(r!==Ut){if(r){const c=it(n);for(let l=0;l<c;l++)Bt(n,ue+l.toString())}vt(n,$t,Ut),st(n,0);return}const o=Math.floor(Date.now()/En)-Es,s=c=>{const l=ue+c.toString(),u=rt(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}Bt(n,l)}};let i=it(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,st(n,i)):jn[e].add(c))}function In(){if(!yt){Cs(!0);for(const e in Z)_n(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=U(r,o);if(!bt(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Tn(e,t){switch(e){case"local":case"session":Z[e]=t;break;case"all":for(const n in Z)Z[n]=t;break}}const at=Object.create(null);function Dn(e,t){at[e]=t}function ct(e){return at[e]||at[""]}function St(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Fe=Object.create(null),re=["https://api.simplesvg.com","https://api.unisvg.com"],Ie=[];for(;re.length>0;)re.length===1||Math.random()>.5?Ie.push(re.shift()):Ie.push(re.pop());Fe[""]=St({resources:["https://api.iconify.design"].concat(Ie)});function Ln(e,t){const n=St(t);return n===null?!1:(Fe[e]=n,!0)}function ze(e){return Fe[e]}function ks(){return Object.keys(Fe)}const _s=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Re=_s();function Is(e){Re=e}function Ts(){return Re}function Ds(e,t){const n=ze(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Ls(e){return e===404}const As=(e,t,n)=>{const r=[],o=Ds(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function Ps(e){if(typeof e=="string"){const t=ze(e);if(t)return t.path}return"/"}const Rs=(e,t,n)=>{if(!Re){n("abort",424);return}let r=Ps(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Re(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Ls(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Ms={prepare:As,send:Rs};function Os(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),u=l[i]||(l[i]=U(s,i));let d;c in u.icons?d=t.loaded:i===""||u.missing.has(c)?d=t.missing:d=t.pending;const p={provider:s,prefix:i,name:c};d.push(p)}),t}function An(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Ns(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||An([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Us=0;function $s(e,t,n){const r=Us++,o=An.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Bs(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?ne(o,t,n):o;s&&r.push(s)}),r}var Fs={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function zs(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let g=e.resources.slice(0);for(i=[];g.length>1;){const _=Math.floor(Math.random()*g.length);i.push(g[_]),g=g.slice(0,_).concat(g.slice(_+1))}i=i.concat(g)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",u=0,d,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function b(){p&&(clearTimeout(p),p=null)}function m(){l==="pending"&&(l="aborted"),b(),f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function C(g,_){_&&(h=[]),typeof g=="function"&&h.push(g)}function v(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:C,abort:m}}function j(){l="failed",h.forEach(g=>{g(void 0,d)})}function S(){f.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),f=[]}function k(g,_,A){const $=_!=="success";switch(f=f.filter(M=>M!==g),l){case"pending":break;case"failed":if($||!e.dataAfterTimeout)return;break;default:return}if(_==="abort"){d=A,j();return}if($){d=A,f.length||(i.length?E():j());return}if(b(),S(),!e.random){const M=e.resources.indexOf(g.resource);M!==-1&&M!==e.index&&(e.index=M)}l="completed",h.forEach(M=>{M(A)})}function E(){if(l!=="pending")return;b();const g=i.shift();if(g===void 0){if(f.length){p=setTimeout(()=>{b(),l==="pending"&&(S(),j())},e.timeout);return}j();return}const _={status:"pending",resource:g,callback:(A,$)=>{k(_,A,$)}};f.push(_),u++,p=setTimeout(E,e.rotate),n(g,t,_.callback)}return setTimeout(E),v}function Pn(e){const t={...Fs,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,u){const d=zs(t,c,l,(p,f)=>{r(),u&&u(p,f)});return n.push(d),d}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ft(){}const Ge=Object.create(null);function Vs(e){if(!Ge[e]){const t=ze(e);if(!t)return;const n=Pn(t),r={config:t,redundancy:n};Ge[e]=r}return Ge[e]}function Rn(e,t,n){let r,o;if(typeof e=="string"){const s=ct(e);if(!s)return n(void 0,424),Ft;o=s.send;const i=Vs(e);i&&(r=i.redundancy)}else{const s=St(e);if(s){r=Pn(s);const i=e.resources?e.resources[0]:"",c=ct(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Ft):r.query(t,o,n)().abort}function Hs(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in Z)_n(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Ws(e,t){yt||In();function n(r){let o;if(!Z[r]||!(o=kn(r)))return;const s=jn[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=it(o),!st(o,i+1))return;const c={cached:Math.floor(Date.now()/En),provider:e.provider,data:t};return vt(o,ue+i.toString(),JSON.stringify(c))}t.lastModified&&!Hs(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function zt(){}function qs(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Ns(e)}))}function Ks(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ct(n)))return;s.prepare(n,r,o).forEach(c=>{Rn(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=bt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(p=>{d.delete(p)}),Ws(e,l)}catch(u){console.error(u)}qs(e)})})}))}const Gs=e=>{const n=U(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},wt=(e,t)=>{const n=Bs(e,!0,ms()),r=Os(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,zt)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===i)return;i=u,c=d,s.push(U(u,d));const p=o[u]||(o[u]=Object.create(null));p[d]||(p[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:p}=l,f=U(u,d),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[u][d].push(p))}),s.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&Ks(l,o[u][d])}),t?$s(t,r,s):zt},Qs=e=>new Promise((t,n)=>{const r=typeof e=="string"?ne(e,!0):e;if(!r){n(e);return}wt([r||e],o=>{if(o.length&&r){const s=me(r);if(s){t({...pe,...s});return}}n(e)})});function Mn(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in vn?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Ve={...Sn,inline:!1},Qe="iconify",lt="iconify-inline",W="iconifyData"+Date.now();let X=[];function he(e){for(let t=0;t<X.length;t++){const n=X[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function On(e,t=!1){let n=he(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},X.push(n),n)}function Zs(){if(document.documentElement)return On(document.documentElement);X.push({node:()=>document.documentElement})}function Xs(e){X=X.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function ge(){return X}function Js(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let ce=null;const Ys={childList:!0,subtree:!0,attributes:!0};function Nn(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,ce&&ce(e)}))}function ei(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[W]!==void 0){n.paused||Nn(e);return}}}function Un(e,t){e.observer.instance.observe(t,Ys)}function Me(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(ei.bind(null,e)),Un(e,n),t.paused||Nn(e))}function Vt(){ge().forEach(Me)}function $n(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function ti(e){const t=ce!==null;if(ce!==e&&(ce=e,t&&ge().forEach($n)),t){Vt();return}Js(Vt)}function ut(e){(e?[e]:ge()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function ni(e){if(e){const t=he(e);t&&ut(t)}else ut()}function dt(e){(e?[e]:ge()).forEach(t=>{if(!t.observer){Me(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Un(t,r):Me(t);else return}})}function oi(e){if(e){const t=he(e);t&&dt(t)}else dt()}function Bn(e,t=!1){const n=On(e,t);return Me(n),n}function Fn(e){const t=he(e);t&&($n(t),Xs(e))}function ri(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in Ve)if(n[o]!==r[o])return!0;return!1}function si(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const ii=/[\s,]+/;function ai(e,t){t.split(ii).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ci=["width","height"],li=["inline","hFlip","vFlip"];function ui(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function di(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&ne(t,!0);if(!n)return null;const r={...Ve,inline:e.classList&&e.classList.contains(lt)};ci.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=si(o));const s=e.getAttribute("data-flip");typeof s=="string"&&ai(r,s),li.forEach(c=>{const l="data-"+c,u=ui(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const fi="svg."+Qe+", i."+Qe+", span."+Qe+", i."+lt+", span."+lt;function pi(e){const t=[];return e.querySelectorAll(fi).forEach(n=>{const r=n[W]||n.tagName.toLowerCase()!=="svg"?di(n):null;r&&t.push({node:n,props:r})}),t}function zn(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let le;function mi(){try{le=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{le=null}}function hi(e){return le===void 0&&mi(),le?le.createHTML(e):e}function Vn(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Hn(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function Wn(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function qn(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=Be(n,o),i=e[W],c=zn(wn(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=hi(c);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const m=u.item(b),C=m.name;C!=="class"&&!l.hasAttribute(C)&&l.setAttribute(C,m.value)}const d=Vn(t.icon),p=Hn(l,d,new Set(i&&i.addedClasses),e),f=Wn(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[W]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function gi(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function bi(e){return"data:image/svg+xml,"+gi(e)}function xi(e){return'url("'+bi(e)+'")'}const yi={display:"inline-block"},ft={"background-color":"currentColor"},Kn={"background-color":"transparent"},Ht={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Wt={"-webkit-mask":ft,mask:ft,background:Kn};for(const e in Wt){const t=Wt[e];for(const n in Ht)t[e+"-"+n]=Ht[n]}function qt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function vi(e,t,n,r){const o=t.customisations,s=Be(n,o),i=s.attributes,c=e[W],l=zn(s.body,{...i,width:n.width+"",height:n.height+""}),u=Vn(t.icon),d=Hn(e,u,new Set(c&&c.addedClasses)),f={"--svg":xi(l),width:qt(i.width),height:qt(i.height),...yi,...r?ft:Kn};o.inline&&(f["vertical-align"]="-0.125em");const h=Wn(e,f,c&&c.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:h};return e[W]=b,e}let Ee=!1;function Si(){Ee||(Ee=!0,setTimeout(()=>{Ee&&(Ee=!1,te())}))}function te(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,u=U(i,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(s&&!Gs(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:ge()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(u,d,p){if(c||(c=!0,ut(o)),u.tagName.toUpperCase()!=="SVG"){const f=d.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){vi(u,d,{...pe,...p},h);return}}qn(u,d,p)}pi(s).forEach(({node:u,props:d})=>{const p=u[W];if(!p){const{status:h,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}i=i||h==="loading",u[W]={...d,status:h};return}let f;if(ri(p,d)){if(f=r(d.icon,p.name!==d.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...d,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(d.icon,!1),!f.icon){p.status=f.status;return}}l(u,d,f.icon)}),o.temporary&&!i?Fn(s):t&&i?Bn(s,!0):c&&o.observer&&dt(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];wt(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),Si)}}}function wi(e){const t=he(e);t?te(t):te({node:e,temporary:!0},!0)}function Gn(e,t,n=!1){const r=me(e);if(!r)return null;const o=ne(e),s=Mn(Ve,t||{}),i=qn(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function ji(){return"3.1.1"}function Ci(e,t){return Gn(e,t,!1)}function Ei(e,t){return Gn(e,t,!0)}function ki(e,t){const n=me(e);if(!n)return null;const r=Mn(Ve,t||{});return Be(n,r)}function _i(e){e?wi(e):te()}if(typeof document<"u"&&typeof window<"u"){Zs();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!yn(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ti(te),te()})}function Ii(e,t){Tn(e,t!==!1)}function Ti(e){Tn(e,!0)}Dn("",Ms);if(typeof document<"u"&&typeof window<"u"){In();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Ln(n,o)||console.error(r)}catch{console.error(r)}}}}const Di={getAPIConfig:ze,setAPIModule:Dn,sendAPIQuery:Rn,setFetch:Is,getFetch:Ts,listAPIProviders:ks},Li={_api:Di,addAPIProvider:Ln,loadIcons:wt,loadIcon:Qs,iconExists:gs,getIcon:bs,listIcons:ps,addIcon:hs,addCollection:yn,replaceIDs:wn,calculateSize:ot,buildIcon:Be,getVersion:ji,renderSVG:Ci,renderHTML:Ei,renderIcon:ki,scan:_i,observe:Bn,stopObserving:Fn,pauseObserver:ni,resumeObserver:oi,enableCache:Ii,disableCache:Ti};try{self.Iconify===void 0&&(self.Iconify=Li)}catch{}function Qn({infos:e=[]}){const{t}=z(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
|
|
43
|
-
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<!--
|
|
48
|
-
[Server Info]
|
|
49
|
-
${r}
|
|
50
|
-
* Page: ${window.location.href}
|
|
51
|
-
-->
|
|
52
|
-
`),L(I,{sx:{mx:{xs:0,md:2}},children:L(ke,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}Qn.propTypes={infos:w.arrayOf(w.shape({label:w.string,value:w.string}))};var Ze,Kt;function Ai(){return Kt||(Kt=1,Ze={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}}),Ze}var Xe,Gt;function Pi(){return Gt||(Gt=1,Xe={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}}),Xe}var Je,Qt;function Zn(){if(Qt)return Je;Qt=1;const e=new Map;return Je={registerLang:(r,o)=>{e.set(r,o)},getLang:(r="en_US")=>e.get(r)||e.get("en_US")},Je}var Ye,Zt;function Ri(){return Zt||(Zt=1,Ye=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}),Ye}var et,Xt;function Mi(){if(Xt)return et;Xt=1;const e=Ri(),{getLang:t}=Zn(),n=(o,s)=>s===1?o:`${o}s`,r=1e-7;return et=(o,s={})=>{if(!Number.isFinite(o))throw new TypeError("Expected a finite number");s.colonNotation&&(s.compact=!1,s.formatSubMilliseconds=!1,s.separateMilliseconds=!1,s.verbose=!1),s.compact&&(s.secondsDecimalDigits=0,s.millisecondsDecimalDigits=0);const i=t(s.locale),c=[],l=(p,f)=>{const h=Math.floor(p*10**f+r);return(Math.round(h)/10**f).toFixed(f)},u=(p,f,h)=>{if((c.length===0||!s.colonNotation)&&p===0&&!(s.colonNotation&&f==="minute"))return;const{long:b}=i[f]||t("en_US")[f],{short:m}=i[f]||t("en_US")[f];let C=(h||p||"0").toString(),v,j;if(s.colonNotation){v=c.length>0?":":"",j="";const S=C.includes(".")?C.split(".")[0].length:C.length,k=c.length>0?2:1;C="0".repeat(Math.max(0,k-S))+C}else v="",s.locale==="zh_CN"?Object.values(d).filter(S=>S>0).length>1?!d.days&&!d.hours&&d.minutes&&s.compact?j=b:j=m:d.minutes?j=b:j=m:j=s.verbose?` ${n(b,p)}`:m;c.push(v+C+j)},d=e(o);if(u(Math.trunc(d.days/365),"year"),u(d.days%365,"day"),u(d.hours,"hour"),u(d.minutes,"minute"),s.separateMilliseconds||s.formatSubMilliseconds||!s.colonNotation&&o<1e3)if(u(d.seconds,"second"),s.formatSubMilliseconds)u(d.milliseconds,"millisecond"),u(d.microseconds,"microsecond"),u(d.nanoseconds,"nanosecond");else{const p=d.milliseconds+d.microseconds/1e3+d.nanoseconds/1e6,f=typeof s.millisecondsDecimalDigits=="number"?s.millisecondsDecimalDigits:0,h=p>=1?Math.round(p):Math.ceil(p),b=f?p.toFixed(f):h;u(Number.parseFloat(b,10),"millisecond",b)}else{const p=o/1e3%60,f=typeof s.secondsDecimalDigits=="number"?s.secondsDecimalDigits:1,h=l(p,f),b=s.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");u(Number.parseFloat(b,10),"second",b)}if(c.length===0){const p=(i.millisecond||t("en_US").millisecond).long,f=(i.millisecond||t("en_US").millisecond).short;return s.locale==="zh_CN"?`0${s.verbose?`${p}`:f}`:`0${s.verbose?` ${p}s`:f}`}if(s.compact)return c[0];if(typeof s.unitCount=="number"){const p=s.colonNotation?"":" ";return c.slice(0,Math.max(s.unitCount,1)).join(p)}return s.colonNotation?c.join(""):c.join(" ")},et}var tt,Jt;function Oi(){if(Jt)return tt;Jt=1;const e=Ai(),t=Pi(),{registerLang:n}=Zn(),r=Mi();return n("en_US",e),n("zh_CN",t),r.registerLang=n,tt=r,tt}var Ni=Oi();const Xn=qo(Ni);function V({children:e}){return de(n=>n.breakpoints.down("md"))?a.jsx(De,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:a.jsx(I,{sx:{display:"flex",alignItems:"center",gap:1},children:a.jsx(_t,{fontSize:"small"})})}):a.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(_t,{fontSize:"small"}),e]})}V.propTypes={children:w.node.isRequired};const Ui="https://launcher.arcblock.io/",$i=30*24*60*60*1e3;function Jn({launcherUrl:e,chainHost:t,nftId:n="",launcherSessionId:r="",retention:o=0,sx:s={},...i}){const{t:c,locale:l}=z(),u=$e(),[d,p]=pn({safeIframeRef:null,popoverAnchorEl:null}),f=x.useRef(null),h=Ne(),b=de(g=>g.breakpoints.down("md")),m=b?"mobile":"desktop",C=fn(async()=>{const[g,_]=await Promise.all([u.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ln({launcherUrl:e||Ui,nftDid:n,launcherSessionId:r,locale:l,theme:h.palette.mode})]);if(g?.error)throw new Error(g.error);return{launcherSession:g.launcherSession,subscriptionURL:_}},[l]);if(C.loading)return a.jsx(G,{label:a.jsxs(V,{children:[!b&&c("expiration.desktop.loading"),a.jsx(H,{size:16})]}),variant:"success",sx:{cursor:"pointer",...s},...i,retention:o});if(C.error)return console.error(C.error),a.jsx(G,{label:a.jsx(V,{children:c(`expiration.${m}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...s},...i,retention:o,onClick:()=>C.retry()});const v=g=>{p({popoverAnchorEl:g.currentTarget})},j=()=>{p({popoverAnchorEl:null})},S=C.value?.launcherSession;let k="success";[R.LAUNCH_SESSION_STATUS.overdue,R.LAUNCH_SESSION_STATUS.canceled,R.LAUNCH_SESSION_STATUS.terminated].includes(C.value?.launcherSession?.status)&&(k="error");let E=null;if(S.expirationDate&&!S.subscription){const g=ee(S.expirationDate).diff(ee(),"ms");E=c(`expiration.${m}.tips.${k}`,{validity:Xn(g,{locale:un(l),compact:!0,verbose:!0})}),g>0&&g<=$i&&(k="warning")}return a.jsxs(a.Fragment,{children:[a.jsx(G,{label:a.jsx(V,{children:E||S?.subscription?.product?.name||c("common.subscription")}),color:k,variant:k!=="success"?"contained":"outlined",sx:{cursor:"pointer",...s},...i,retention:o,onClick:v}),a.jsx(sn,{id:"popover-info",open:!!d.popoverAnchorEl,anchorEl:d.popoverAnchorEl,onClose:j,anchorOrigin:{vertical:"bottom",horizontal:"right"},sx:{"& .MuiPopover-paper":{minHeight:0}},transformOrigin:{vertical:"top",horizontal:"right"},children:a.jsx(I,{sx:{width:{xs:"360px",md:"450px"},display:"flex",flexDirection:"column"},children:a.jsx("iframe",{ref:f,title:c("common.subscription"),width:"100%",height:"600px",style:{border:0,maxHeight:"800px"},src:C.value?.subscriptionURL})})})]})}Jn.propTypes={chainHost:w.string.isRequired,nftId:w.string,launcherSessionId:w.string,sx:w.object,retention:w.number,launcherUrl:w.string.isRequired};const Bi=30*24*60*60*1e3,Fi="https://launcher.arcblock.io/";function Yn({launcherUrl:e,chainHost:t,nftId:n="",launcherSessionId:r="",sx:o={},retention:s=0,...i}){const{t:c,locale:l}=z(),[u,d]=pn({safeIframeRef:null,popoverAnchorEl:null}),p=x.useRef(null),f=de(g=>g.breakpoints.down("md")),h=$e(),b=f?"mobile":"desktop",m=fn(async()=>{const[g,_]=await Promise.all([h.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ln({launcherUrl:e||Fi,nftDid:n,launcherSessionId:r,locale:l})]);if(g?.error)throw new Error(g.error);return{launcherSession:g.launcherSession,subscriptionURL:_}},[l]);if(m.loading)return a.jsx(G,{label:a.jsxs(V,{children:[!f&&c("expiration.desktop.loading"),a.jsx(H,{size:16})]}),variant:"success",sx:{cursor:"pointer",...o},...i,retention:s});if(m.error)return console.error(m.error),a.jsx(G,{label:a.jsx(V,{children:c(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...o},...i,retention:s,onClick:()=>m.retry()});const C=m.value?.launcherSession?.expirationDate,v=ee(C).isBefore(ee()),j=ee(C).diff(ee(),"ms");let S="success";j<=Bi&&(S="warning"),v&&(S="error");const k=g=>{d({popoverAnchorEl:g.currentTarget})},E=()=>{d({popoverAnchorEl:null})};return a.jsxs(a.Fragment,{children:[m.value?.launcherSession?.subscription&&a.jsx(G,{label:a.jsx(V,{children:c("expiration.desktop.nextInvoice",{date:er(C,l)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...o},...i,retention:s,onClick:k}),!m.value?.launcherSession?.subscription&&a.jsx(G,{label:a.jsx(V,{children:c(`expiration.${b}.tips.${S}`,{validity:Xn(j,{locale:un(l),compact:!0,verbose:!0})})}),color:S,variant:S!=="success"?"contained":"outlined",sx:{cursor:"pointer",...o},...i,retention:s,onClick:k}),a.jsx(sn,{id:"popover-info",open:!!u.popoverAnchorEl,anchorEl:u.popoverAnchorEl,onClose:E,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:a.jsx(I,{sx:{width:{xs:"360px",md:"450px"}},children:a.jsx("iframe",{ref:p,title:c("common.subscription"),width:"100%",height:"600px",style:{border:0},src:m.value?.subscriptionURL})})})]})}Yn.propTypes={chainHost:w.string.isRequired,nftId:w.string,launcherSessionId:w.string,sx:w.object,retention:w.number,launcherUrl:w.string.isRequired};function eo({meta:e={},fallbackUrl:t=qe,invalidPathFallback:n=null,headerAddons:r=void 0,sessionManagerProps:o={showRole:!0,onLogout:()=>{window.location.href=qe}},links:s=[],showDomainWarningDialog:i=!0,...c}){tr();const l=x.use(nr)?.session?.user,u=l?.role,{locale:d}=z()||{},p=x.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return or(j)}catch(S){return console.error("Failed to format blocklet info",S,j),j}},[e]),{localizedNav:f,flattened:h,matchedIndex:b}=x.useMemo(()=>{let j=rr(p?.navigation?.dashboard,d)||[];j=sr(j,u),j=ir(j,E=>{let g=null;return E.icon&&(E.icon.startsWith("http")||E.icon.startsWith("data:")?g=a.jsx(tn,{src:E.icon}):g=a.jsx("iconify-icon",{height:"100%",width:"100%",icon:E.icon})),{id:E.id,title:E.title,url:E.link,icon:g,external:!0,children:E.items}},"items");const S=ar(j).filter(E=>!!E.url),k=cr(S.map(E=>E.url));return k!==-1&&(S[k].active=!0),{localizedNav:j,flattened:S,matchedIndex:k}},[p,d,u]),m=typeof s=="function"?s(f):[...f,...s],C=lr({meta:e});if(x.useLayoutEffect(()=>{l&&!h?.length&&t&&(window.location.href=t)},[t]),x.useLayoutEffect(()=>{l&&h?.length&&b===-1&&n&&n()},[n,h,b]),!p.appName)return null;const{appName:v}=p;return a.jsx($r,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:m,...c,headerProps:{homeLink:qe,logo:a.jsx("img",{src:C,alt:"logo"}),addons:a.jsx(ur,{formattedBlocklet:p,addons:r,sessionManagerProps:o,showDomainWarningDialog:i}),...c.headerProps}})}eo.propTypes={meta:fr,fallbackUrl:w.string,invalidPathFallback:w.func,headerAddons:w.oneOfType([w.func,w.node]),sessionManagerProps:dr,links:w.oneOfType([w.array,w.func]),showDomainWarningDialog:w.bool};const zi={width:24,height:24,body:'<path fill="currentColor" d="M6.4 18L5 16.6L14.6 7H6V5h12v12h-2V8.4L6.4 18Z"/>'};function to({children:e,style:t={},...n}){return a.jsx(ho,{style:t,...n,children:e})}to.propTypes={children:w.any.isRequired,style:w.object};const P={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"},Te={added:P.grey,waiting:P.yellow,downloading:P.yellow,extracting:P.yellow,downloaded:P.grey,installing:P.yellow,installed:P.grey,starting:P.yellow,running:P.running,stopping:P.yellow,stopped:P.reverse,error:P.error,upgrading:P.yellow,restarting:P.yellow,corrupted:P.error,deleting:P.yellow,resource:P.primary},Vi={added:"primary",waiting:"info",downloading:"info",extracting:"info",downloaded:"primary",installing:"info",installed:"primary",starting:"info",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"info",restarting:"info",corrupted:"error",deleting:"warning",resource:"primary"};function Hi({isResource:e=!1,status:t,variant:n="tag",progress:r=0,...o}){const{t:s}=x.useContext(Yt),i=O.isInProgress(t),c=e&&t==="stopped"?"resource":t,l=s(`blocklet.status.${c}`);return n==="pin"?a.jsx(De,{title:s("blocklet.statusTip",{status:l}),children:a.jsxs(I,{...o,sx:[{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(o.sx)?o.sx:[o.sx]],children:[a.jsx(I,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Te[c]}}),a.jsx(I,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Te[c]}})]})}):n==="dot"?a.jsx(De,{title:s("blocklet.statusTip",{status:l}),children:a.jsx(Ur,{color:Te[c],...o})}):a.jsxs(to,{type:Vi[c],...o,children:[i&&a.jsx(H,{size:12,color:"inherit",style:{marginRight:5}}),l,c==="downloading"&&r?a.jsx("div",{style:{marginLeft:5},children:`${r} %`}):null]})}Hi.propTypes={status:w.string.isRequired,variant:w.oneOf(["dot","tag","pin"]),source:w.string,progress:w.number,isResource:w.bool};function Wi(){const{inFullPage:e,toggleFullPage:t}=Br();return L(mt,{onClick:t,children:e?L(zo,{sx:{transform:"scale(1.3)"}}):L(Vo,{sx:{transform:"scale(1.3)"}})})}function no({children:e=null,title:t=""}){const{t:n}=z(),{loading:r,error:o,actions:{refreshBlocklet:s},env:i,blocklet:c}=fe(),{info:l,imgPrefix:u}=pr(),d=Ko(),p=de(k=>k.breakpoints.down("md")),f=Ne(),{appId:h,version:b}=i,m=[{label:"App ID",value:h},{label:"App Version",value:b},{label:"App Bundle Name",value:c?.meta?.bundleName},{label:"Server Id",value:l.did},{label:"Server Version",value:l.version}],C=k=>{const E=Array.isArray(k)?k:[k];if(p||E.unshift(L(Wi,{})),c){const g={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};hr(c)?E.unshift(L(Jn,{chainHost:c?.controller?.chainHost,nftId:c?.controller?.nftId,launcherSessionId:c?.controller?.launcherSessionId,launcherUrl:c?.controller?.launcherUrl,sx:g})):l.ownerNft&&l.launcher&&E.unshift(L(Yn,{chainHost:l.launcher.chainHost,launcherUrl:l.launcher.url,nftId:l.ownerNft.did,launcherSessionId:l.ownerNft.launcherSessionId,sx:g}))}return E},v=Mr({blocklet:c}),j={logo:v?L("img",{src:v,alt:"logo"}):null,brandAddon:L(I,{children:c&&je(I,{component:"a",target:"_blank",href:window.blocklet.appUrl,rel:"noopener noreferrer",title:window.blocklet.appName,sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,py:1,px:2,border:"1px solid",borderColor:"text.disabled",borderRadius:"30px",cursor:"pointer"},children:[L(De,{title:O.isRunning(c?.status)?void 0:n(`blocklet.status.${c?.status}`),children:L(I,{sx:{bgcolor:Te[c?.status],width:8,height:8,borderRadius:"50%"}})}),L(I,{sx:{lineHeight:1,color:"text.secondary",maxWidth:p?66:240,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:O.getDisplayName(c)}),L(I,{component:go,icon:zi,sx:{color:"text.secondary"}})]})})};return je(qi,{legacy:!1,fullWidth:!0,headerAddons:C,headerProps:j,links:k=>k?.map(g=>(g.children=g.children?.map(_=>{if(_.id==="/team/aigne"){const A=u?Q(u,"/aigne-hub.png"):"/aigne-hub.pg";return{..._,icon:L(tn,{src:A,alt:"AIGNE Hub",style:f.palette.mode==="dark"?{filter:"invert(1)"}:{},fallback:_.icon})}}return _}),g)),title:t,footerProps:{addon:L(Qn,{infos:m})},children:[!c&&r&&L(Le,{relative:"parent",children:L(H,{})}),!c&&o&&je(Le,{relative:"parent",children:[je(I,{sx:{display:"flex",alignItems:"center"},children:[L(Fo,{color:"error",sx:{marginRight:1}}),gt(o)]}),L(pt,{onClick:()=>s(),children:L("span",{style:{textDecoration:"underline"},children:n("common.retry")})})]}),!!c&&L(I,{sx:{flex:1,padding:p?2:3,display:"flex",flexDirection:"column"},children:L(bo,{FallbackComponent:mr,resetKeys:[d.pathname],children:e})})]})}no.propTypes={children:w.any,title:w.string};const qi=Oe(eo)`
|
|
53
|
-
div.dashboard-content {
|
|
54
|
-
padding: 0;
|
|
55
|
-
}
|
|
56
|
-
.header-addons .locales {
|
|
57
|
-
max-height: 400px;
|
|
58
|
-
overflow-y: auto;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.header-brand-addon {
|
|
62
|
-
display: block;
|
|
63
|
-
}
|
|
64
|
-
`;function Ki(){const{t:e,locale:t}=z(),{blocklet:n,launcherSession:r,refreshSubscription:o}=fe(),{connectApi:s,session:i,api:c}=gr(),[l,u]=x.useState(!1),[d,p]=x.useState(""),[f,h]=Lr({subscriptionURL:"#"});if(x.useEffect(()=>{(Tt(n,r)||Dt(r))&&br({launcherSessionId:n?.controller?.launcherSessionId,launcherUrl:n?.controller?.launcherUrl,locale:t}).then(v=>{h({subscriptionURL:v})}).catch(v=>{console.error("get subscription url error:",v)})},[n,r]),x.useEffect(()=>{if(n.controller?.launcherUrl){const v=Q(n.controller.launcherUrl,"__blocklet__.js?type=json");fetch(v).then(j=>j.json()).then(j=>{const S=j.componentMountPoints?.find(E=>E.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk")?.mountPoint,k=Q(n.controller.launcherUrl,S);p(k)})}},[n.controller?.launcherUrl]),!n||!r)return"";let b=null,m="",C="error";return xr(r)?(b=yr(r)?a.jsx(ke,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}):a.jsx(Ho,{variant:"text",color:"error",onClick:()=>u(!0),sx:{lineHeight:"inherit",fontSize:"inherit"},children:e("blocklet.payNow")}),m=e("blocklet.suspendedCausedByPastDue",{deadline:oe(r?.reservedUntil,t)})):Dt(r)?(b=a.jsx(ke,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}),m=e("blocklet.willBeSuspendedSoon",{deadline:oe((r?.subscription?.cancel_at||0)*1e3,t)}),C="warning"):Tt(n,r)?(b=a.jsx(ke,{href:f.subscriptionURL,children:e("blocklet.manageSubscription")}),m=e("blocklet.suspendedCausedByExpired",{deadline:oe(r?.reservedUntil,t),canceledAt:oe((r?.subscription?.canceled_at||0)*1e3,t)})):vr(n,r)&&(b=a.jsx(an,{to:Q(R.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),m=e("blocklet.suspendedCausedByTerminated",{canceledAt:oe(r?.terminatedAt,t),deadline:Sr(r?.terminatedAt,t)})),m?a.jsxs(a.Fragment,{children:[a.jsxs(ht,{severity:C,sx:{mb:1},children:[m,a.jsx(se,{sx:{display:"inline-block",fontSize:"inherit",lineHeight:"inherit",ml:1,a:{textDecoration:"auto"},"& .MuiButtonBase-root":{p:0,minWidth:"auto"}},children:b})]}),l&&d&&r&&a.jsx(wr,{session:i,connect:s,baseUrl:d,authToken:r.subscription.authToken,children:a.jsx(Fr,{dialogProps:{open:l,onClose:()=>u(!1)},subscriptionId:r.subscription.id,successToast:!0,onPaid:()=>{c.post("/blocklet/start?fromSetup=1"),o(),u(!1)}})})]}):null}const Gi=x.lazy(()=>T(()=>import("./log-DvCqrgCp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),Qi=x.lazy(()=>T(()=>import("./index-D1JnavLU.js"),__vite__mapDeps([14,2,1,5,4,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,3,39,40,41,42,43,44]))),Zi=x.lazy(()=>T(()=>import("./index-C9-vpsBs.js"),__vite__mapDeps([45,4,2,1,5,6,7,8,15,9,10,11,19,20,21,46,47,32,28,37,48]))),Xi=x.lazy(()=>T(()=>import("./index-DFQY861i.js"),__vite__mapDeps([49,2,1,9,4,5,6,7,8,10,11,32,28,20,18,50,12,38,51,23,52,41,53,54,26,55,56,57,39,58,59,60,61,62,63,64]))),Ji=x.lazy(()=>T(()=>import("./overview-CHn4eBUK.js"),__vite__mapDeps([65,1,2,4,5,6,7,8,66,67,9,10,11,31,40,30,19,20,21,18,68,69,70,54,3,28,32,39,41,42,43,44]))),Yi=x.lazy(()=>T(()=>import("./domains-BZ81E9og.js"),__vite__mapDeps([71,2,4,1,5,6,7,8,9,10,11,72,41,22,20,40,30,32,28,37,60,23,29,31,73,53]))),ea=x.lazy(()=>T(()=>import("./index-Bk_pomLR.js"),__vite__mapDeps([74,2,6,5,1,4,7,8,9,10,11,18,19,20,21,75,15,34,35,46,76,22,77,78,79,32,28,51,41,80]))),ta=x.lazy(()=>T(()=>import("./appearance-B497VXFd.js"),__vite__mapDeps([81,5,2,9,1,4,6,7,8,10,11,46]))),na=x.lazy(()=>T(()=>import("./audit-logs-Dl8A9oRq.js"),__vite__mapDeps([82,4,2,1,5,6,7,8,9,10,11,34,35,3,62,63,38,64,19,20,21]))),oa=x.lazy(()=>T(()=>import("./index-GX7JwwIf.js"),__vite__mapDeps([83,2,1,5,4,6,7,8,9,10,11,47,21,84,85,86,38,31,87,88,12,19,20,15,34,35,18,89,40,30,90,91,28,92,93,26,27,46]))),ra=x.lazy(()=>T(()=>import("./config-navigation-C1cOMpGw.js"),__vite__mapDeps([94,2,1,4,5,6,7,8,9,10,11,69,78,95,96,47,97,19,20,21,54,98,55,56,90,28,3,32,39,40,30,41,42,43,44]))),sa=x.lazy(()=>T(()=>import("./index-D7bQ7LFj.js"),__vite__mapDeps([99,1,2,6,5,9,4,7,8,10,11,46,100,101,67,76,54,102,103,70,28,31,93,39,104,61,51]))),ia=x.lazy(()=>T(()=>import("./index-BeEecuCm.js"),__vite__mapDeps([105,4,2,1,5,6,7,8,9,10,11,47,104,61,84,85,66,31,35,106,46]))),aa=x.lazy(()=>T(()=>import("./security-D5f09NAi.js"),__vite__mapDeps([107,4,2,1,5,6,7,8,9,10,11,47,97,19,20,21,108,46]))),ca=x.lazy(()=>T(()=>import("./branding-DGrOIsAX.js"),__vite__mapDeps([109,2,1,4,5,6,7,8,9,10,11,110,69,95,111,85,112,79,22,20,19,21,113,84]))),la=x.lazy(()=>T(()=>import("./advanced-D8HEmDva.js"),__vite__mapDeps([114,2,1,9,4,5,6,7,8,10,11,22,20,32,28,41,84,85,23,19,21,31,18,68,69]))),ua=x.lazy(()=>T(()=>import("./traffic-TO0gOocP.js").then(e=>e.t),__vite__mapDeps([89,2,9,1,4,5,6,7,8,10,11,40,30,90,91,28,92,93,26,27]))),da=x.lazy(()=>T(()=>import("./runtime-WLtCIkiy.js"),__vite__mapDeps([115,2,1,4,5,6,7,8,9,10,11,101,92,93,12,3,28,32,39,20,19,21,40,30,41,42,43,44]))),fa=x.lazy(()=>T(()=>import("./index-BVknf90c.js"),__vite__mapDeps([116,2,1,4,5,6,7,8,28,15,9,10,11,75,18,34,35,19,20,21,24,25,26,27,32,23,67,60,22,12,37,46,48]))),pa=x.lazy(()=>T(()=>import("./list-DtmR-6Z4.js"),__vite__mapDeps([117,2,4,1,5,6,7,8,15,9,10,11,40,30,17,19,20,21,47,24,25,26,27,50,23,60,32,28,75,18,34,35,37,48,46]))),ma=x.lazy(()=>T(()=>import("./index--zSWr4mJ.js"),__vite__mapDeps([118,2,4,1,5,6,7,8,9,10,11,54,48,46,19,20,21]))),ha=x.lazy(()=>T(()=>import("./config-W238rhTW.js"),__vite__mapDeps([119,2,1,6,5,21,9,4,7,8,10,11,28,26,15,84,85,112,111,79,57,39,58,95,120]))),ga=x.lazy(()=>T(()=>import("./observability-C5Y6fafw.js"),__vite__mapDeps([121,1,2]))),ba=x.lazy(()=>T(()=>import("./playground-DUuQxqZF.js"),__vite__mapDeps([122,1,2]))),xa=x.lazy(()=>T(()=>import("./component-Cpwp1opW.js"),__vite__mapDeps([123,1,2,5,4,6,7,8,9,10,11,28,104,61,22,20,26,91,96,56,110,69,95,23,76,124,59,60,32,39,18,57,125,126,53,103,70,54,85,127,77,78,112,113,86,62,63,120,3,31,73,46,128,102,100,101,67,129,130,80,90,12,37,19,21,40,30,41,42,43,44]))),ya=x.lazy(()=>T(()=>import("./index-CbB58MZZ.js"),__vite__mapDeps([131,1,2,4,5,6,7,8,9,10,11]))),va=Q(R.WELLKNOWN_SERVICE_PATH_PREFIX,"user","notifications"),Sa=e=>{const{enqueueSnackbar:t}=en(),n=x.useCallback(r=>Dr(va,{id:r.id,severity:r.severity||"all",componentDid:r.source==="system"?"system":r.componentDid||"all"}),[]);kr(`${e}/${R.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,r=>{const o=n(r),{severity:s,description:i}=r||{},c=["error","warning"].includes(s)||r.sticky;r.source==="system"&&t(i,{variant:s,autoHideDuration:c?null:5e3,content:l=>a.jsx(os,{viewAllUrl:o,keyId:l,notification:r,content:a.jsx(Nr,{notification:r,minimal:!0,rows:0})})})},[],"user")};function oo({blocklet:e,isAdmin:t}){return t?a.jsx(oa,{blocklet:e}):a.jsx(Ir,{status:403})}oo.propTypes={blocklet:w.object.isRequired,isAdmin:w.bool.isRequired};const wa=e=>{const{t}=z(),{blocklet:n,actions:{refreshBlocklet:r},client:o,did:s}=fe(),i=n?.meta?.did,c=!n||_r(n.status)?[]:O.getAppMissingConfigs(n),l={overview:[{label:t("common.overview"),value:"overview"},{label:a.jsx(Wo,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!c.length,children:t("common.components")}),value:"components"}],"did-connect":[{label:t("common.members"),value:"members"},{label:t("team.member.passports"),value:"passports"},{label:t("common.setting"),value:"settings"},{label:t("common.security"),value:"security"},{label:t("oauth.client.tab"),value:"oauth"}],aigne:[{label:t("setup.aigne.config"),value:"aigne-config"}],website:[{label:t("common.domains"),value:"domains"},{label:t("common.branding"),value:"branding"},{label:t("common.theming"),value:"theming"},{label:t("common.navigation"),value:"navigation"}],operations:[{label:t("common.notificationRecords"),value:"notifications",show:e},{label:t("common.analytics"),value:"analytics"},{label:t("common.auditLogs"),value:"audit-logs"},{label:t("common.advancedConfig"),value:"advanced"}],integrations:[{label:"Webhooks",value:"webhooks",show:e},{label:t("common.accessKeys"),value:"access-keys"},{label:t("common.mcpServers"),value:"mcp-servers"}],developers:[{label:t("common.logs"),value:"logs",show:n?.children?.length&&n.structVersion===R.APP_STRUCT_VERSION},{label:t("common.performance"),value:"performance"},{label:t("common.docs"),value:"docs"}]},u={overview:Ji,components:xa,members:a.jsx(Qi,{type:"blocklet",createPassportSvg:Lt}),passports:a.jsx(ea,{createPassportSvg:Lt}),settings:a.jsx(ia,{orientation:"vertical"}),security:a.jsx(aa,{}),"did-spaces":a.jsx(sa,{navOrientation:"horizontal"}),domains:Yi,branding:a.jsx(ca,{blocklet:n,onUpdate:r}),theming:a.jsx(ta,{}),navigation:ra,sitemap:a.jsx(yo,{children:t("common.comingSoon")}),notifications:a.jsx(oo,{blocklet:n,isAdmin:e}),"audit-logs":a.jsx(na,{scope:i,categories:["blocklet","team","security","certificates","gateway"]}),analytics:a.jsx(ua,{client:o,did:s}),advanced:a.jsx(la,{blocklet:n,onUpdate:r}),webhooks:a.jsx(Zi,{}),"access-keys":a.jsx(fa,{}),"mcp-servers":a.jsx(ma,{}),logs:Gi,performance:a.jsx(da,{client:o,did:s}),docs:ya,publish:a.jsx(Xi,{}),oauth:a.jsx(pa,{}),"aigne-config":a.jsx(I,{sx:{maxWidth:1536},children:a.jsx(ha,{})}),"aigne-observability":a.jsx(ga,{}),"aigne-playground":a.jsx(ba,{})};return{tabGroups:l,renders:u}};function ja(){const e=cn(),{tab:t="overview",subtab:n}=Go(),{locale:r}=z(),{blocklet:o,refreshFlag:s}=fe(),{session:i}=dn(),c=ie(()=>i?.user?.did,[i]),l=zr(),u=ie(()=>i.user?.role&&Cr.includes(i.user.role),[i]);Sa(c);const{tabGroups:d,renders:p}=wa(u),f=S=>{e(`${R.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${t}/${S}`)},h=(d[t]||[]).filter(S=>S.show===void 0||S.show),b=(h||[]).find(S=>S.value===n)?.value||h?.[0]?.value||t,m=p[b]||p.overview,C=["overview"].includes(t),v=o?a.jsxs(hn,{type:"components",children:[h.length>0&&a.jsxs(I,{sx:{mb:2,display:"flex",alignItems:"center",gap:2},children:[a.jsx(xo,{tabs:h,current:b,onChange:f,scrollButtons:"auto"}),C&&!l&&a.jsx(I,{sx:{flex:1,display:"flex",justifyContent:"flex-end"},children:a.jsx(I,{component:"div",className:"page-header",children:o?a.jsx(Ot,{className:"page-actions",hasPermission:!0,blocklet:o,onStart:()=>{},onComplete:({error:S}={})=>{S&&F.error(S.message)},variant:"group"}):null})})]}),a.jsx(I,{className:"page-content",children:a.jsx(x.Suspense,{fallback:a.jsx(Le,{relative:"parent",children:a.jsx(H,{})}),children:x.isValidElement(m)?m:a.jsx(m,{blocklet:o})})})]}):a.jsx(Le,{relative:"parent",children:a.jsx(H,{})}),j=ie(()=>{const S=window.blocklet?.navigation?.find(A=>A.id==="/team"&&A.section==="dashboard"),k=o?.meta?.title||"";let E="";if(S){const A=Q(R.WELLKNOWN_BLOCKLET_ADMIN_PATH,t);E=S.items.find(M=>M.link===A)?.title?.[r]||""}const _=[h.find(A=>A.value===n)?.label||h?.[0]?.label||"",E].filter(Boolean).join(" - ");return k?_?`${_} | ${k}`:k:_||""},[t,n,o,r]);return a.jsx(Er,{children:a.jsx(Or,{children:a.jsx(no,{title:j,children:a.jsxs(Ea,{children:[l&&C&&a.jsx(I,{component:"div",className:"page-header",sx:{mb:2},children:o?a.jsx(Ot,{className:"page-actions",hasPermission:!0,blocklet:o,onStart:()=>{},onComplete:({error:S}={})=>{S&&F.error(S.message)},variant:"group"}):null}),a.jsx(Qr,{}),a.jsx(Ki,{}),v]})},`${s}`)})})}function Ca(){const{blocklet:e}=fe(),t=e?.meta?.did;return x.useEffect(()=>{const n=jr();return t&&n.connect(),()=>{t&&n.isConnected()&&n.disconnect()}},[t]),a.jsx(ja,{})}const Ea=Oe.main`
|
|
65
|
-
.page-header {
|
|
66
|
-
display: flex;
|
|
67
|
-
justify-content: space-between;
|
|
68
|
-
align-items: center;
|
|
69
|
-
flex-wrap: wrap;
|
|
70
|
-
gap: 16px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.page-title {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
|
|
77
|
-
.page-link {
|
|
78
|
-
font-size: 15px;
|
|
79
|
-
margin-top: 8px;
|
|
80
|
-
margin-left: 8px;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
85
|
-
.page-header {
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
align-items: flex-start;
|
|
88
|
-
.page-actions,
|
|
89
|
-
.MuiButtonGroup-root {
|
|
90
|
-
width: 100%;
|
|
91
|
-
}
|
|
92
|
-
.MuiButtonGroup-root {
|
|
93
|
-
.MuiButtonBase-root {
|
|
94
|
-
flex: 1;
|
|
95
|
-
}
|
|
96
|
-
.blocklet-action-text {
|
|
97
|
-
display: none;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.page-title {
|
|
103
|
-
margin-bottom: 15px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
`,Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Ca},Symbol.toStringTag,{value:"Module"}));export{Hi as B,eo as F,to as W,Y as b,Wa as d,Xn as p,Ha as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as m}from"./vendor-react-Dvs43sk9.js";import{T as n}from"./vendor-ux-e4SIahY6.js";import{a1 as p,U as l,a3 as c,f as u}from"./index-CGzwVlpv.js";import{a as x,b as d}from"./domain-action-card-Dt77CLty.js";import{j as t,ak as k,b1 as f,aX as h}from"./vendor-mui-core-Bw-IjQ9m.js";import"./vendor-utils-B4mliPf7.js";import"./vendor-hooks-B2bT6Nqf.js";import"./lottie-web-4koyQiv_.js";import"./vendor-arcblock-CY7eM47O.js";import"./useSetState-DFuQZPPV.js";import"./permission-BVTxHNeQ.js";import"./session-CJYcrokL.js";import"./dot-BD1gx_6x.js";import"./useAsync-CQhKDImp.js";import"./confirm-CRV2RKnN.js";import"./index-DBs9Ljax.js";import"./actions-CJMVMPKl.js";import"./delete-confirm-za4gd8zO.js";import"./click-to-copy-D2vDgDFL.js";import"./useAsync-VHQLt8EO.js";import"./index-BRrSUEyB.js";import"./util-h89lj_Gk.js";import"./engine-B2vjFFt9.js";function z(){const{blocklet:o,actions:{updateBlockletDomainAliases:i}}=p(),{inService:r}=l(),{t:e}=n(),a=m.useMemo(()=>{let s=!0;return c(o)&&(s=s&&r),s},[r,o]);return t.jsxs(k,{component:f,sx:{gap:3,maxWidth:820},children:[t.jsxs(t.Fragment,{children:[u.isAccessible(o.status)===!1&&t.jsx(h,{severity:"warning",children:e("blocklet.router.noRunning")}),a&&t.jsx(x,{blocklet:o,updateBlockletDomainAliases:i,connectDomainProps:{shouldCheckDomain:!0}})]}),t.jsx(d,{showAllDomains:!0,updateBlockletDomainAliases:i})]})}export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as e}from"./index-CGzwVlpv.js";var i=e();export{i as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as t}from"./index-CGzwVlpv.js";import{H as e}from"./vendor-ux-e4SIahY6.js";function c(...o){try{return t(...o)}catch(r){throw e.error("Invalid redirect url"),console.error("Invalid redirect url",r),r}}export{c as g};
|