@abtnode/blocklet-services 1.16.30-beta-00e8bdd1 → 1.16.30-beta-b7f31b10
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/connect/session.js +6 -2
- package/api/routes/federated.js +3 -14
- package/api/routes/user.js +7 -6
- package/api/services/auth/connect/setup.js +2 -2
- package/dist/assets/{Add-BN237Fn5.js → Add-DYawrlLL.js} +1 -1
- package/dist/assets/{AddBox-3LaPVxwU.js → AddBox-DWPBW2qZ.js} +1 -1
- package/dist/assets/{Alert-D6ASJuaD.js → Alert-BTshuaNi.js} +1 -1
- package/dist/assets/{ArrowDropDown-BHT7uJ-_.js → ArrowDropDown-DwPUfbYb.js} +1 -1
- package/dist/assets/Avatar-D-B0yhoX.js +1 -0
- package/dist/assets/{ButtonGroup-BJxGB-mf.js → ButtonGroup-Ptc-1Uqx.js} +1 -1
- package/dist/assets/{CheckCircle-CczUamTZ.js → CheckCircle-CZPS3iaO.js} +1 -1
- package/dist/assets/{ChevronRight-Cg14uJfK.js → ChevronRight-CpIf_r2f.js} +1 -1
- package/dist/assets/{Close-x7Tkk0S3.js → Close-CvoO2-Uz.js} +1 -1
- package/dist/assets/{CloseOutlined-QOb8qkQe.js → CloseOutlined-CfMZZN4J.js} +1 -1
- package/dist/assets/{Delete-C6X9S_ep.js → Delete-Be_ghnzM.js} +1 -1
- package/dist/assets/{DeleteOutline-DPoIruJ5.js → DeleteOutline-Cw4nevZ-.js} +1 -1
- package/dist/assets/{Done-CoG4jV3h.js → Done-DVI_YEXw.js} +1 -1
- package/dist/assets/{Download-CgS76hkn.js → Download-BHLTRa1Z.js} +1 -1
- package/dist/assets/{Edit-CuIVEZdJ.js → Edit-BmGTZxAx.js} +1 -1
- package/dist/assets/{EditIcon-Ca6HYpZk.js → EditIcon-BudHelws.js} +1 -1
- package/dist/assets/{Error-DPYTfE3e.js → Error-CdaFXW5Q.js} +1 -1
- package/dist/assets/{ExpandMore-D04IjVlX.js → ExpandMore-C8Kjhem0.js} +1 -1
- package/dist/assets/{FilterList-DUOw_RoL.js → FilterList-8sV2VTL2.js} +5 -5
- package/dist/assets/FormControl-Bf6hyrkL.js +1 -0
- package/dist/assets/{FormControlLabel-BpMix3qK.js → FormControlLabel-mzUMyHHG.js} +1 -1
- package/dist/assets/FormGroup-D-Gv1gnJ.js +1 -0
- package/dist/assets/{Google-DIEocVvQ.js → Google-DwWp9qzD.js} +4 -4
- package/dist/assets/Hidden-xeAig8ZS.js +1 -0
- package/dist/assets/{InfoOutlined-C5vT7BTM.js → InfoOutlined-xAH33Hqk.js} +1 -1
- package/dist/assets/{InputAdornment-4EnHL3SV.js → InputAdornment-D_yABNDh.js} +1 -1
- package/dist/assets/{InputLabel-BY35PBOn.js → InputLabel-B0gnxWIe.js} +1 -1
- package/dist/assets/{LastPage-DSqwop6h.js → LastPage-Cz9h-Qem.js} +1 -1
- package/dist/assets/{Launch-BYwPKhG2.js → Launch-DDcDaH6b.js} +1 -1
- package/dist/assets/{LaunchOutlined-DkrAS-ts.js → LaunchOutlined-95qHz-RO.js} +1 -1
- package/dist/assets/Link-DEgb7b4S.js +1 -0
- package/dist/assets/ListItemText-BsB4f1L-.js +1 -0
- package/dist/assets/{LoadingButton-_EYRn4Wx.js → LoadingButton-B-2TPjWV.js} +1 -1
- package/dist/assets/{LockIcon-Bz8VQwMT.js → LockIcon-3Wp4auIp.js} +1 -1
- package/dist/assets/{Loop-D0mtfhOu.js → Loop-DWgfoSrj.js} +1 -1
- package/dist/assets/{MoreVert-xcNzKdjG.js → MoreVert-UNF7JO2W.js} +1 -1
- package/dist/assets/{OpenInNew-DLQ33Rpf.js → OpenInNew-CVAUGBhw.js} +1 -1
- package/dist/assets/Pagination-B0y6upZZ.js +2 -0
- package/dist/assets/{PlayArrow-BdFq1DDL.js → PlayArrow-BmBaKxOl.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-BfRCnC--.js → QuestionMarkCircle-d4NSwAKE.js} +1 -1
- package/dist/assets/{RadioGroup-sdHfzBzc.js → RadioGroup-CnjaGoeZ.js} +1 -1
- package/dist/assets/{Search-Dg-t_NHQ.js → Search-BaB0jKO7.js} +1 -1
- package/dist/assets/{Select-0bmPPjw1.js → Select-BVyfzCHz.js} +2 -2
- package/dist/assets/{ServerLogo-CXDpSA8g.js → ServerLogo-BJUly2v9.js} +1 -1
- package/dist/assets/{Skeleton-DuHnu_TW.js → Skeleton-C1o9U3A_.js} +4 -4
- package/dist/assets/{Slider-DaijA7CN.js → Slider-Desss8SV.js} +1 -1
- package/dist/assets/{Stepper-QmSO1CtE.js → Stepper-mdoczOkX.js} +1 -1
- package/dist/assets/{TextField-BBIigLRk.js → TextField-wNnDxiyn.js} +1 -1
- package/dist/assets/Toolbar-BjU2foSj.js +1 -0
- package/dist/assets/{ViewList-BU2uRr73.js → ViewList-ejR6DIXj.js} +1 -1
- package/dist/assets/access-control-CO_2bHIV.js +13 -0
- package/dist/assets/{actions-Ds_jVVND.js → actions-C1eqo0hd.js} +1 -1
- package/dist/assets/{add-component-core-CCOhSWQB.js → add-component-core-CvAUzaip.js} +1 -1
- package/dist/assets/add-resource-BxlGfcRN.js +1 -0
- package/dist/assets/{addon-BcSb2Zzp.js → addon-Dru3HZqF.js} +1 -1
- package/dist/assets/{analytics-Ce187M51.js → analytics-BmR1ZGFq.js} +6 -6
- package/dist/assets/api-CDVr_ngS.js +1 -0
- package/dist/assets/ar-BOQhQYjx.js +1 -0
- package/dist/assets/{audit-logs-LoED-8gk.js → audit-logs-C7blov8C.js} +1 -1
- package/dist/assets/{button-Dfb9hD8n.js → button-Dh36Whbv.js} +1 -1
- package/dist/assets/{click-to-copy-D62iwIju.js → click-to-copy-a_WhsuTv.js} +1 -1
- package/dist/assets/{complete-CRtPvgDa.js → complete-BoonLutQ.js} +2 -2
- package/dist/assets/{component-BS6BClYg.js → component-GJ2Ih7o1.js} +1 -1
- package/dist/assets/{config-2JcKGcTt.js → config-B3GInTdX.js} +1 -1
- package/dist/assets/{config-DRlEBb7g.js → config-DCvKS3BB.js} +1 -1
- package/dist/assets/{config-navigation-BecqFtHY.js → config-navigation-D4EW71cl.js} +1 -1
- package/dist/assets/confirm-BYJUxBIc.js +7 -0
- package/dist/assets/{connect-CmVMyWtw.js → connect-CIdC8-aG.js} +1 -1
- package/dist/assets/{connect-to-B7lXTaqa.js → connect-to-CGsiYjyv.js} +2 -2
- package/dist/assets/{connect-BSc706Qe.js → connect-veT2mTQj.js} +1 -1
- package/dist/assets/{content-layout-fifpb2hF.js → content-layout-CQh4TzyI.js} +1 -1
- package/dist/assets/dashboard-Bc7xljHi.js +165 -0
- package/dist/assets/de-t1rC40NN.js +1 -0
- package/dist/assets/{did-address-CuLpyDcV.js → did-address-Do2yzULT.js} +1 -1
- package/dist/assets/{domain-Eb-kKi8N.js → domain-5hwWx6MJ.js} +1 -1
- package/dist/assets/{domain-list-B2eOAUf9.js → domain-list-On7x8b1i.js} +2 -2
- package/dist/assets/es-DfbI4mbP.js +1 -0
- package/dist/assets/{exchange-passport-D5yUNMgm.js → exchange-passport-d-xizSJJ.js} +1 -1
- package/dist/assets/{fallback-DnwN40Eu.js → fallback-CbJRVXwl.js} +1 -1
- package/dist/assets/{format-error-eqRBGF1p.js → format-error-Blhy9VT0.js} +2 -2
- package/dist/assets/fr-_U79lUBj.js +1 -0
- package/dist/assets/{fuel-DL8WMBx8.js → fuel-CUY-uBKy.js} +1 -1
- package/dist/assets/{fullpage-4QhjDOeH.js → fullpage-CJ3iyD2f.js} +1 -1
- package/dist/assets/hi-Di6UaHUZ.js +1 -0
- package/dist/assets/{home-BWibX2vn.js → home-Obf_S8f7.js} +1 -1
- package/dist/assets/id-CuP-z2YS.js +1 -0
- package/dist/assets/{iframe-BmoLkGVE.js → iframe-Be_yHlIO.js} +1 -1
- package/dist/assets/{index-CTW4nb9G.js → index-4yn1YsbW.js} +1 -1
- package/dist/assets/{index-Dbbnbznm.js → index-8cDbzyJl.js} +1 -1
- package/dist/assets/{index-QDFDl478.js → index-8tm1Ihzh.js} +34 -34
- package/dist/assets/{index-AiTSrLp-.js → index-B12cEALh.js} +1 -1
- package/dist/assets/{index-CuX6Kr95.js → index-BDvagjrk.js} +1 -1
- package/dist/assets/{index-iEN5H5Ls.js → index-BITDcOni.js} +1 -1
- package/dist/assets/{index-BLek-3-t.js → index-BO_OKxnM.js} +5 -5
- package/dist/assets/{index-D0sxPxR3.js → index-BUplKQEg.js} +1 -1
- package/dist/assets/index-BUs00uPs.js +1290 -0
- package/dist/assets/{index-BN8ZIYdG.js → index-BV6Ha6ib.js} +1 -1
- package/dist/assets/{index-DkVlOvts.js → index-BaU6d9wU.js} +2 -2
- package/dist/assets/{index-CekjYFHx.js → index-Bky9d3tQ.js} +1 -1
- package/dist/assets/{index-Bp8EriMk.js → index-BmyGxs6V.js} +1 -1
- package/dist/assets/{index-dIqjPoOB.js → index-Bu9MpwgG.js} +9 -9
- package/dist/assets/{index-Cxiv-wGv.js → index-Bv7ZWFxT.js} +1 -1
- package/dist/assets/{index-UZz8l3in.js → index-BvpzJMEC.js} +9 -9
- package/dist/assets/{index-DdoI0wbz.js → index-CA3xlu-k.js} +1 -1
- package/dist/assets/index-CY-YbrSN.js +16 -0
- package/dist/assets/{index-FHIuVSDt.js → index-Cag6-Yt4.js} +1 -1
- package/dist/assets/{index-CJ9qEL1_.js → index-CkhxO230.js} +1 -1
- package/dist/assets/{index-C7BxfHre.js → index-Cu7JOoBD.js} +1 -1
- package/dist/assets/{index-BEHMH1Pr.js → index-Cz_xI6xM.js} +8 -8
- package/dist/assets/{index-DpuZJtBf.js → index-DCK0LZKG.js} +4 -4
- package/dist/assets/{index-Bg9DIh8M.js → index-DSqbwZ5j.js} +1 -1
- package/dist/assets/{index-CKBTEFra.js → index-Dhqy9-yY.js} +1 -1
- package/dist/assets/{index-DIJWsYQq.js → index-DvHUoMvf.js} +1 -1
- package/dist/assets/{index-Bhy-Ufb6.js → index-RTMFvlSa.js} +1 -1
- package/dist/assets/{index-BU0saRrz.js → index-_ZvuFtZB.js} +7 -7
- package/dist/assets/{index-DuOVToRf.js → index-eM_9zSWz.js} +1 -1
- package/dist/assets/{index-BykkL-cr.js → index-f8jvmbqW.js} +1 -1
- package/dist/assets/{index-CoBC9oVU.js → index-q23BC-cq.js} +2 -2
- package/dist/assets/index-tt24MRYq.js +4 -0
- package/dist/assets/{index.es-BJiRNQw2.js → index.es-DXjYep8j.js} +2 -2
- package/dist/assets/{index.esm-DCtFyquI.js → index.esm-BZVs89Un.js} +1 -1
- package/dist/assets/{invitation-CWO1OGzi.js → invitation-CjUgfrC2.js} +1 -1
- package/dist/assets/{invite-BybXZqJ_.js → invite-BlCoxCyf.js} +1 -1
- package/dist/assets/{issue-passport-_8jsDZ5J.js → issue-passport-CzmDWgQh.js} +1 -1
- package/dist/assets/{item-_msBYiLo.js → item-CuP7BKY_.js} +1 -1
- package/dist/assets/ja-CsYEjFuw.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-CuwRRnMZ.js → jss-plugin-props-sort.esm-BZSIPan7.js} +5 -5
- package/dist/assets/ko-DwcGU2RJ.js +1 -0
- package/dist/assets/{launch-result-message-nnQ4Z0fd.js → launch-result-message-B6CiQFBL.js} +1 -1
- package/dist/assets/{layout-0mxgsXb8.js → layout-DFuxjkrE.js} +1 -1
- package/dist/assets/{list-header-CbhWtFvh.js → list-header-DRYmm-Xm.js} +1 -1
- package/dist/assets/localization-IL-dv9qY.js +1 -0
- package/dist/assets/{log-ydyp6rKH.js → log-BpY9Dsfn.js} +1 -1
- package/dist/assets/{login-CgXrWK_2.js → login-D1BDJ22h.js} +1 -1
- package/dist/assets/{login-oauth-callback-B-Y4WGSI.js → login-oauth-callback-utiO-rvS.js} +1 -1
- package/dist/assets/{logo-uploader-B0LO5vvb.js → logo-uploader-BBtbbc7r.js} +3 -3
- package/dist/assets/{lost-passport-BhsqypQO.js → lost-passport-D2u0myAt.js} +3 -3
- package/dist/assets/{lottie-DadbWVpc.js → lottie-BxejBzYz.js} +1 -1
- package/dist/assets/notifications-Cu_cDaRO.js +62 -0
- package/dist/assets/{open-window-CrkLeex9.js → open-window-B0KmmItG.js} +1 -1
- package/dist/assets/overview-BRmNWvge.js +12 -0
- package/dist/assets/{page-header-CSU48K3Q.js → page-header-DtuvpAXI.js} +1 -1
- package/dist/assets/{permission-BNHM2xAP.js → permission-DaCv0YJT.js} +1 -1
- package/dist/assets/{preferences-Ccc7r_v8.js → preferences-CMNxa5wG.js} +1 -1
- package/dist/assets/pt-DF-luAxv.js +1 -0
- package/dist/assets/publish-resource-JyXjlwzc.js +1 -0
- package/dist/assets/{react-Z_lC3NCb.js → react-BpP-0QBx.js} +3 -3
- package/dist/assets/{redux-Nz09j_eP.js → redux-L6olCJRi.js} +1 -1
- package/dist/assets/{resource-dialog-TfZOe9lD.js → resource-dialog-D4qjrv55.js} +3 -3
- package/dist/assets/ru-DKnB6G3S.js +1 -0
- package/dist/assets/sdk-CxiaGf8d.js +1 -0
- package/dist/assets/selector-CmjH6iEF.js +48 -0
- package/dist/assets/session-C2GbCLtF.js +1 -0
- package/dist/assets/setup-CNxh7prE.js +19 -0
- package/dist/assets/{shorten-label-BlugIeNc.js → shorten-label-BHO8zxp1.js} +1 -1
- package/dist/assets/{slicedToArray-BDmAXaQb.js → slicedToArray-CZ-cNsNk.js} +2 -2
- package/dist/assets/{spaces-0FuTU5il.js → spaces-BxlYf4BN.js} +1 -1
- package/dist/assets/start-BqHKq4sL.js +187 -0
- package/dist/assets/{step-actions-RI-mCX0p.js → step-actions-BzKdFGVC.js} +2 -2
- package/dist/assets/{studio-Bjf7gAq8.js → studio-1ObqO9ii.js} +1 -1
- package/dist/assets/{switch-control-C1_R7-zR.js → switch-control-Ccs3ud0m.js} +1 -1
- package/dist/assets/th-Dna3ZHAu.js +1 -0
- package/dist/assets/{toUpper-uyyCk01r.js → toUpper-t5Izbkea.js} +1 -1
- package/dist/assets/{transfer-DkniK5Ag.js → transfer-DDaNRomR.js} +1 -1
- package/dist/assets/{uniqBy-nqPJ5tkT.js → uniqBy-Dbt5Nj8I.js} +1 -1
- package/dist/assets/{unsubscribe-BAK1nb4o.js → unsubscribe-DJ3dAD1T.js} +1 -1
- package/dist/assets/{url-join-xP4FWyyN.js → url-join-BPMtGM0_.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-ChbGnu2B.js → use-blocklet-info-for-connect-did-spaces-Dh6Qca14.js} +1 -1
- package/dist/assets/{use-mobile-BOCpywmu.js → use-mobile-BecyuRyS.js} +1 -1
- package/dist/assets/{useAsync-D7PX5RWx.js → useAsync-D7A4lSIu.js} +1 -1
- package/dist/assets/{useFormControl-B5XnXwzO.js → useFormControl-BPoGiGgv.js} +1 -1
- package/dist/assets/{useLocalStorage-t8zs4VAz.js → useLocalStorage-BWJpWQ8e.js} +1 -1
- package/dist/assets/{useSetState-Br77TPgt.js → useSetState-BQyW0id3.js} +1 -1
- package/dist/assets/useSlot-Cpwm_EEO.js +1 -0
- package/dist/assets/{useSlotProps-CSBBXTuv.js → useSlotProps-Stj87BQ_.js} +1 -1
- package/dist/assets/useThemeProps-B5GmRF_7.js +1 -0
- package/dist/assets/{user-center-CvySLBqs.js → user-center-CD-K_xkg.js} +1 -1
- package/dist/assets/user-sessions-Bf3BBZ6T.js +1 -0
- package/dist/assets/{util-BWib46eW.js → util-9GOVpsde.js} +1 -1
- package/dist/assets/vi-tHyNmIs-.js +1 -0
- package/dist/assets/{wrap-locale-WOY0-059.js → wrap-locale-B_-NipDA.js} +1 -1
- package/dist/assets/{zh-CIqkKG4c.js → zh-BxFByN8K.js} +1 -1
- package/dist/assets/zh-CZ75v_KR.js +1 -0
- package/dist/assets/zh-tw-BDv-O3sb.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +25 -25
- package/dist/assets/Avatar-CaF_-TIa.js +0 -1
- package/dist/assets/FormControl-Bh9aSU12.js +0 -1
- package/dist/assets/FormGroup-BfB-iN7c.js +0 -1
- package/dist/assets/Hidden-BLcFQ9WU.js +0 -1
- package/dist/assets/Link-CHkL2_F8.js +0 -1
- package/dist/assets/ListItemText-TxfvzIQH.js +0 -1
- package/dist/assets/Pagination-IIYxtOn3.js +0 -2
- package/dist/assets/Toolbar-DT4-YRKk.js +0 -1
- package/dist/assets/access-control-C4ERDDDO.js +0 -13
- package/dist/assets/add-resource-Do98YBVD.js +0 -1
- package/dist/assets/api-CWevC1Kw.js +0 -1
- package/dist/assets/ar-B7BWKAT0.js +0 -1
- package/dist/assets/confirm-DK53kjF4.js +0 -7
- package/dist/assets/dashboard-zGeemO7s.js +0 -165
- package/dist/assets/de-ELpbFffa.js +0 -1
- package/dist/assets/es-4F6iKSAU.js +0 -1
- package/dist/assets/fr-DOPIs7lg.js +0 -1
- package/dist/assets/hi-Dzp-4zoH.js +0 -1
- package/dist/assets/id-Bumv1FYl.js +0 -1
- package/dist/assets/index-CCgZIcqf.js +0 -16
- package/dist/assets/index-CQ5dtdkj.js +0 -1290
- package/dist/assets/index-QU1KoDg_.js +0 -4
- package/dist/assets/ja-CqCu7wgc.js +0 -1
- package/dist/assets/ko-RwPO5IMK.js +0 -1
- package/dist/assets/localization-Ck45g-8d.js +0 -1
- package/dist/assets/notifications-DuPGt4pQ.js +0 -62
- package/dist/assets/overview-Y5W0VfGN.js +0 -12
- package/dist/assets/pt-BwOCnpCh.js +0 -1
- package/dist/assets/publish-resource-BfHdYGQt.js +0 -1
- package/dist/assets/ru-CBC11P4x.js +0 -1
- package/dist/assets/sdk-DtesNhKW.js +0 -1
- package/dist/assets/selector-Bbx9AGcC.js +0 -48
- package/dist/assets/session-CPBKqm92.js +0 -1
- package/dist/assets/setup-ClQU62xP.js +0 -14
- package/dist/assets/start-BF5svAaM.js +0 -186
- package/dist/assets/th-CzfAwl4e.js +0 -1
- package/dist/assets/useSlot-CeeEaDXE.js +0 -1
- package/dist/assets/useThemeProps-Bp8oreMA.js +0 -1
- package/dist/assets/user-sessions-B1MeydkJ.js +0 -1
- package/dist/assets/vi-BDUtfRQR.js +0 -1
- package/dist/assets/zh-BiD8p9-Q.js +0 -1
- package/dist/assets/zh-tw-DTnWxJQa.js +0 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
const __vite__fileDeps=["assets/overview-BRmNWvge.js","assets/index-BUs00uPs.js","assets/index-CCovGSMB.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-RTMFvlSa.js","assets/index-BV6Ha6ib.js","assets/did-address-Do2yzULT.js","assets/Link-DEgb7b4S.js","assets/domain-list-On7x8b1i.js","assets/Add-DYawrlLL.js","assets/ExpandMore-C8Kjhem0.js","assets/LockIcon-3Wp4auIp.js","assets/index-DSqbwZ5j.js","assets/permission-DaCv0YJT.js","assets/useAsync-D7A4lSIu.js","assets/session-C2GbCLtF.js","assets/confirm-BYJUxBIc.js","assets/format-error-Blhy9VT0.js","assets/Alert-BTshuaNi.js","assets/useSlot-Cpwm_EEO.js","assets/useSetState-BQyW0id3.js","assets/use-mobile-BecyuRyS.js","assets/InfoOutlined-xAH33Hqk.js","assets/OpenInNew-CVAUGBhw.js","assets/index-BmyGxs6V.js","assets/api-CDVr_ngS.js","assets/util-9GOVpsde.js","assets/TextField-wNnDxiyn.js","assets/FormControl-Bf6hyrkL.js","assets/useFormControl-BPoGiGgv.js","assets/InputLabel-B0gnxWIe.js","assets/Select-BVyfzCHz.js","assets/LoadingButton-B-2TPjWV.js","assets/useThemeProps-B5GmRF_7.js","assets/Delete-Be_ghnzM.js","assets/actions-C1eqo0hd.js","assets/ListItemText-BsB4f1L-.js","assets/index-f8jvmbqW.js","assets/useLocalStorage-BWJpWQ8e.js","assets/MoreVert-UNF7JO2W.js","assets/PlayArrow-BmBaKxOl.js","assets/ButtonGroup-Ptc-1Uqx.js","assets/RadioGroup-CnjaGoeZ.js","assets/FormControlLabel-mzUMyHHG.js","assets/FormGroup-D-Gv1gnJ.js","assets/Avatar-D-B0yhoX.js","assets/fallback-CbJRVXwl.js","assets/index-BvpzJMEC.js","assets/Toolbar-BjU2foSj.js","assets/Hidden-xeAig8ZS.js","assets/index-BaU6d9wU.js","assets/selector-CmjH6iEF.js","assets/index-8tm1Ihzh.js","assets/index-BDvagjrk.js","assets/Loop-DWgfoSrj.js","assets/ViewList-ejR6DIXj.js","assets/list-header-DRYmm-Xm.js","assets/Search-BaB0jKO7.js","assets/index-Bv7ZWFxT.js","assets/FilterList-8sV2VTL2.js","assets/toPropertyKey-hKuLU48H.js","assets/LastPage-Cz9h-Qem.js","assets/index-Cz_xI6xM.js","assets/redux-L6olCJRi.js","assets/index-BO_OKxnM.js","assets/resource-dialog-D4qjrv55.js","assets/CloseOutlined-CfMZZN4J.js","assets/index-eM_9zSWz.js","assets/user-sessions-Bf3BBZ6T.js","assets/click-to-copy-a_WhsuTv.js","assets/sdk-CxiaGf8d.js","assets/index-HqFqdQ4r.js","assets/shorten-label-BHO8zxp1.js","assets/index-_ZvuFtZB.js","assets/index-CY-YbrSN.js","assets/EditIcon-BudHelws.js","assets/Google-DwWp9qzD.js","assets/InputAdornment-D_yABNDh.js","assets/index-CkhxO230.js","assets/iframe-Be_yHlIO.js","assets/Edit-BmGTZxAx.js","assets/Done-DVI_YEXw.js","assets/logo-uploader-BBtbbc7r.js","assets/ArrowDropDown-DwPUfbYb.js","assets/ChevronRight-CpIf_r2f.js","assets/index.esm-BZVs89Un.js","assets/mode-B2dWMeTO.js","assets/Launch-DDcDaH6b.js","assets/config-DCvKS3BB.js","assets/switch-control-Ccs3ud0m.js","assets/Slider-Desss8SV.js","assets/index-BITDcOni.js","assets/index-Dhqy9-yY.js","assets/index-DU3JORH0.css","assets/audit-logs-C7blov8C.js","assets/index-Cag6-Yt4.js","assets/index-D4PP6P2d.css","assets/Pagination-B0y6upZZ.js","assets/index-DvHUoMvf.js","assets/log-BpY9Dsfn.js","assets/Download-BHLTRa1Z.js","assets/log-D33dFtt_.css","assets/index-Bu9MpwgG.js","assets/AddBox-DWPBW2qZ.js","assets/Error-CdaFXW5Q.js","assets/QuestionMarkCircle-d4NSwAKE.js","assets/useSlotProps-Stj87BQ_.js","assets/DeleteOutline-Cw4nevZ-.js","assets/item-CuP7BKY_.js","assets/jss-plugin-props-sort.esm-BZSIPan7.js","assets/Stepper-mdoczOkX.js","assets/config-navigation-D4EW71cl.js","assets/slicedToArray-CZ-cNsNk.js","assets/index-CA3xlu-k.js","assets/index-8cDbzyJl.js","assets/Skeleton-C1o9U3A_.js","assets/index-q23BC-cq.js","assets/use-blocklet-info-for-connect-did-spaces-Dh6Qca14.js","assets/spaces-BxlYf4BN.js","assets/component-GJ2Ih7o1.js","assets/index-BUplKQEg.js","assets/toUpper-t5Izbkea.js","assets/add-component-core-CvAUzaip.js","assets/lottie-BxejBzYz.js","assets/index-4yn1YsbW.js","assets/url-join-BPMtGM0_.js","assets/launch-result-message-B6CiQFBL.js","assets/Close-CvoO2-Uz.js","assets/page-header-DtuvpAXI.js","assets/uniqBy-Dbt5Nj8I.js","assets/index-Cu7JOoBD.js","assets/connect-to-CGsiYjyv.js","assets/content-layout-CQh4TzyI.js","assets/preact.module-B1z5cdvs.js","assets/add-component-core-CxkJY_14.css","assets/analytics-BmR1ZGFq.js","assets/LaunchOutlined-95qHz-RO.js","assets/notifications-Cu_cDaRO.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{r as x,aE as Xn,aF as Yn,aG as Mt,aH as q,aI as Zn,aJ as Jn,aK as ge,aL as On,aM as yt,j as c,aN as er,aO as ho,c as Oe,X as W,Y as G,P as m,Z as Je,e as et,aP as ye,a0 as Bt,a7 as U,a9 as Z,aQ as pe,aC as Ut,aR as vo,L as kt,aS as xt,aT as yo,m as ne,a1 as he,F as $,T as K,s as J,aU as xo,aV as bo,aW as wo,aX as bt,u as Q,aY as So,B as D,J as jo,aZ as _o,a as qe,a_ as Co,a$ as Oo,b0 as Po,b1 as Io,b2 as Eo,b3 as Ro,b4 as Lo,b5 as To,b6 as Do,b7 as tr,b8 as Ao,b9 as $o,ba as No,bb as nr,bc as rr,bd as or,$ as tt,be as sr,bf as ce,bg as me,bh as zt,bi as ir,bj as Mo,ae as Ke,ai as Bo,bk as Uo,bl as ko,bm as zo,ah as Fo,bn as Ho,bo as Vo,aj as Te,bp as qo,aB as Ko,C as We,bq as Wo,br as Go,bs as Ce,bt as ar,bu as Qo,ac as Pn,a6 as Xo,aa as Yo,ad as Zo,af as Jo,bv as Fe,a5 as Ue,bw as es,H as ts,a2 as k,bx as ns,ao as rs,R as In}from"./index-BUs00uPs.js";import{T as os}from"./index-f8jvmbqW.js";import{_ as ss}from"./useLocalStorage-BWJpWQ8e.js";import{d as is}from"./MoreVert-UNF7JO2W.js";import{C as En}from"./confirm-BYJUxBIc.js";import{d as as}from"./Delete-Be_ghnzM.js";import{d as cs,u as ls}from"./PlayArrow-BmBaKxOl.js";import{A as cr}from"./Alert-BTshuaNi.js";import{L as us,a as lr}from"./ListItemText-BsB4f1L-.js";import{B as ds}from"./ButtonGroup-Ptc-1Uqx.js";import{R as fs,a as Rn}from"./RadioGroup-CnjaGoeZ.js";import{F as wt,C as ps}from"./FormControlLabel-mzUMyHHG.js";import{f as Ft}from"./format-error-Blhy9VT0.js";import{A as ur}from"./Avatar-D-B0yhoX.js";import{u as ms}from"./session-C2GbCLtF.js";import{D as gs,_ as dr,P as hs}from"./permission-DaCv0YJT.js";import{T as fr,b as vs}from"./index-BV6Ha6ib.js";import{E as pr}from"./Link-DEgb7b4S.js";import{_ as mr}from"./useSetState-BQyW0id3.js";import{E as ys}from"./fallback-CbJRVXwl.js";import{u as xs}from"./index-BvpzJMEC.js";import{L as bs,D as ws}from"./index-BaU6d9wU.js";const gr=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function Ss(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gr({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,u=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:u}}function js(e){return Yn("MuiBadge",e)}const _s=Xn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),oe=_s,Cs=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],dt=10,ft=4,Os=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${q(n.vertical)}${q(n.horizontal)}`,`anchorOrigin${q(n.vertical)}${q(n.horizontal)}${q(o)}`,`overlap${q(o)}`,t!=="default"&&`color${q(t)}`]};return er(a,js,s)},Ps=Mt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Is=Mt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${q(n.anchorOrigin.vertical)}${q(n.anchorOrigin.horizontal)}${q(n.overlap)}`],n.color!=="default"&&t[`color${q(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:dt*2,lineHeight:1,padding:"0 6px",height:dt*2,borderRadius:dt,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:ft,height:ft*2,minWidth:ft*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${oe.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),Es=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=Zn({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:w="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:S,slots:O,slotProps:j,showZero:E=!1,variant:C="standard"}=u,P=Jn(u,Cs),{badgeContent:R,invisible:L,max:re,displayValue:M}=Ss({max:_,invisible:g,badgeContent:S,showZero:E}),be=gr({anchorOrigin:d,color:I,overlap:w,variant:C,badgeContent:S}),we=L||R==null&&C!=="dot",{color:at=I,overlap:ct=w,anchorOrigin:lt=d,variant:Se=C}=we?be:u,y=Se!=="dot"?M:void 0,T=ge({},u,{badgeContent:R,invisible:we,max:re,displayValue:y,showZero:E,anchorOrigin:lt,color:at,overlap:ct,variant:Se}),z=Os(T),F=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:Ps,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:Is,H=(a=j==null?void 0:j.root)!=null?a:b.root,N=(l=j==null?void 0:j.badge)!=null?l:b.badge,ut=On({elementType:F,externalSlotProps:H,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:T,className:yt(H==null?void 0:H.className,z.root,f)}),de=On({elementType:X,externalSlotProps:N,ownerState:T,className:yt(z.badge,N==null?void 0:N.className)});return c.jsxs(F,ge({},ut,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))}),hr=Es;function Rs(e){return Yn("MuiListItemAvatar",e)}Xn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Ls=["className"],Ts=e=>{const{alignItems:t,classes:n}=e;return er({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Rs,n)},Ds=Mt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ge({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),As=x.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=Jn(r,Ls),s=x.useContext(ho),a=ge({},r,{alignItems:s.alignItems}),l=Ts(a);return c.jsx(Ds,ge({className:yt(l.root,o),ownerState:a,ref:n},i))}),$s=As,Ns=(e,t)=>{if(!e)return"";if(!t)return e;const n=new URL(e),r=new URLSearchParams(n.searchParams),o=new URL(Oe(n.origin,t));return o.search=r.toString(),o.toString()};var Ht={},Ms=G;Object.defineProperty(Ht,"__esModule",{value:!0});var vr=Ht.default=void 0,Bs=Ms(W()),Us=c;vr=Ht.default=(0,Bs.default)((0,Us.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},ks=G;Object.defineProperty(Vt,"__esModule",{value:!0});var yr=Vt.default=void 0,zs=ks(W()),Fs=c;yr=Vt.default=(0,zs.default)((0,Fs.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var qt={},Hs=G;Object.defineProperty(qt,"__esModule",{value:!0});var xr=qt.default=void 0,Vs=Hs(W()),qs=c;xr=qt.default=(0,Vs.default)((0,qs.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Kt={},Ks=G;Object.defineProperty(Kt,"__esModule",{value:!0});var br=Kt.default=void 0,Ws=Ks(W()),Gs=c;br=Kt.default=(0,Ws.default)((0,Gs.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Wt={},Qs=G;Object.defineProperty(Wt,"__esModule",{value:!0});var wr=Wt.default=void 0,Xs=Qs(W()),Ys=c;wr=Wt.default=(0,Xs.default)((0,Ys.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Gt={},Zs=G;Object.defineProperty(Gt,"__esModule",{value:!0});var Sr=Gt.default=void 0,Js=Zs(W()),ei=c;Sr=Gt.default=(0,Js.default)((0,ei.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Qt={},ti=G;Object.defineProperty(Qt,"__esModule",{value:!0});var jr=Qt.default=void 0,ni=ti(W()),ri=c;jr=Qt.default=(0,ni.default)((0,ri.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});var _r=Xt.default=void 0;oi(x);var Ln=c;function oi(e){return e&&e.__esModule?e:{default:e}}function Tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tn(Object(n),!0).forEach(function(r){si(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function si(e,t,n){return t=ii(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e){var t=ai(e,"string");return typeof t=="symbol"?t:String(t)}function ai(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yt=function(t){return(0,Ln.jsx)("svg",Dn(Dn({},t),{},{children:(0,Ln.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33 8.207A11.52 11.52 0 0 1 23.504 26.34H8.496A11.52 11.52 0 0 1 9.33 8.207zM16 3.52a14.08 14.08 0 0 0-8.76 25.102c.226.18.506.278.796.278h15.928c.29 0 .57-.098.797-.278A14.08 14.08 0 0 0 16 3.52zm5.883 10.072a1.28 1.28 0 0 0-1.81-1.81l-2.205 2.205a4.124 4.124 0 1 0 1.81 1.81l2.205-2.205zm-7.447 4.073a1.564 1.564 0 1 1 3.128 0 1.564 1.564 0 0 1-3.129 0z",fill:"currentColor"})}))};Yt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Yt.displayName="dashboard";_r=Xt.default=Yt;const te={Start:cs,Stop:vr,Restart:yr,Reload:xr,Remove:as,Config:br,Log:wr,Group:Sr,Cancel:jr,Dashboard:_r};function Zt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=et(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[w,I]=x.useState(null),{t:g}=x.useContext(Bt),[_]=ss("skip-blocklet-setup",!1),{loading:S,recommendedUrl:O}=s(e),j=U.isInProgress(e.status),[E,C]=x.useState(!1);x.useEffect(()=>{var T,z;if(!(e!=null&&e.controller))return;C(((z=(T=e==null?void 0:e.controller)==null?void 0:T.status)==null?void 0:z.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var F,X,H;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(F=e==null?void 0:e.controller)==null?void 0:F.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(N!=null&&N.error){console.error("get launcher session failed",N.error);return}C([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((H=N==null?void 0:N.launcherSession)==null?void 0:H.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:P}=u,R=()=>{const y=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),T=i==null?void 0:i({mountPoint:y,blocklet:e});window.open(Ns(T,".well-known/service/admin"))},L=(y,T,z=!1)=>async()=>{const F=async de=>{var Be;t({action:y,blocklet:e}),h(!0),v(y);let Me=!1;try{if(y==="remove")await T(de);else if(y==="start"){if(!U.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!P&&!_&&!((Be=e.settings)!=null&&Be.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){const Y=xo(u.info),Cn=new URL(O);Cn.searchParams.set("serverUrl",Y),window.open(Cn.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Y=>!U.isInProgress(Y.status)&&Y.status!=="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await T({input:fe})}else if(["stop","restart","reload"].includes(y)){const ae=e.children.filter(Y=>Y.status==="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await T({input:fe})}else{const ae={did:e.meta.did};await T({input:ae})}y==="remove"?Me=!0:await bo(1e3),y==="reload"&&J.success(g("blocklet.reloadSuccess")),I(null),n({action:y,blocklet:e})}catch(ae){const fe=`Blocklet ${y} failed: ${Ft(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Me||h(!1)}},X=()=>{h(!1),I(null)},H=U.getDisplayName(e,!0),N=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(K,{component:"div",children:c.jsx(K,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Me)=>c.jsxs(K,{component:"div",children:[c.jsx(K,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(fs,{name:"removeType",value:de.removeType,onChange:Be=>Me({...de,removeType:Be.target.value}),children:[c.jsx(wt,{value:"backup",control:c.jsx(Rn,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(wt,{value:"complete",control:c.jsx(Rn,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ut={stop:{title:`${g("common.stop")} ${H}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:F,onCancel:X},restart:{title:`${g("common.restart")} ${H}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:F,onCancel:X},remove:{title:`${g("common.remove")} ${H}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:F,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:H}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:F,onCancel:X}};z?I(ut[y]):await F()},re=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},we=async(y,T)=>{try{T.stopPropagation(),T.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(z){console.error(`Blocklet ${y.name} failed: `,z)}finally{h(!1),f(null)}else f(null)},at=!P&&U.isDeletableBlocklet(e)?{action:"remove",icon:te.Remove,name:g("common.remove"),handler:L("remove",async({removeType:y})=>{y==="backup"&&await u.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await u.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:j}:null,ct={action:"remove",icon:({sx:y,...T})=>c.jsx(te.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...T}),name:g("common.cancel"),handler:L("cancelDownload",u.api.cancelDownloadBlocklet,!0)},lt=U.getAppMissingConfigs(e),Se=[{action:"start",icon:te.Start,name:g("common.start"),handler:L("start",u.api.startBlocklet),disabled:E||e.children.every(y=>y.status==="running")||pe(e.status)||S||j},{action:"stop",icon:te.Stop,name:g("common.stop"),handler:L("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:te.Restart,name:g("common.restart"),handler:L("restart",u.api.restartBlocklet,!0),disabled:E||e.status!=="running"},pe(e.status)?ct:at,{separator:!0},P?null:{action:"dashboard",icon:({style:y,...T})=>c.jsx(te.Dashboard,{...T,style:{...y,width:"26px",height:"26px",paddingRight:"3px"}}),name:g("sidebar.dashboard"),handler:R,disabled:E||e.status!=="running"},{separator:!0},{onlyInMenu:!0,action:"config",icon:te.Config,name:g("common.config"),handler:()=>{l(`/blocklets/${e.meta.did}/configuration`)},disabled:pe(e.status)},{onlyInMenu:!0,action:"team",icon:te.Group,name:g("common.manageTeam"),handler:()=>{l(`/blocklets/${e.meta.did}/members`)},disabled:pe(e.status)},{onlyInMenu:!0,action:"log",icon:te.Log,name:g("common.log"),handler:()=>{l(`/logs/blocklet-${e.meta.did}`)},disabled:pe(e.status)}].filter(Boolean);return r==="menu"?c.jsxs(An,{"data-cy":"blocklet-actions",children:[c.jsx(Ut,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:M,size:"small",disabled:!o||!pe(e.status)&&b,children:c.jsx(is,{})}),c.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:re,onClose:be,PaperProps:{},children:[lt.length>0&&c.jsxs(cr,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(kt,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),Se.map((y,T)=>y.separator?c.jsx(xt,{},`separator-${T}`):c.jsxs(yo,{dense:!0,onClick:z=>we(y,z),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(us,{style:{minWidth:24},children:p===y.action&&b?c.jsx(ne,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(lr,{primary:y.name})]},y.name))]}),w&&c.jsx(En,{title:w.title,description:w.description,confirm:w.confirm,cancel:w.cancel,params:w.params,onConfirm:w.onConfirm,onCancel:w.onCancel})]}):c.jsxs(An,{"data-cy":"blocklet-actions",...a,children:[c.jsx(ds,{children:Se.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>we(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(ne,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),w&&c.jsx(En,{title:w.title,description:w.description,confirm:w.confirm,cancel:w.cancel,params:w.params,onConfirm:w.onConfirm,onCancel:w.onCancel})]})}Zt.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};Zt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const An=Je.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
|
+
`,pt=(e,t)=>{var r;let n="?v=";return t?n+=wo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${bt(e==null?void 0:e.status)?"~":""}`,n};function ci({blocklet:e}){var u,d,f,p;const{inService:t}=ye(),n=(u=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:u.value,r=(d=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:d.value,o=(f=((e==null?void 0:e.environments)||[]).find(v=>v.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:f.value,i=((p=window.env)==null?void 0:p.apiPrefix)||"/",s=`${Oe(i,`/blocklet/logo/${t?"":e.meta.did}`)}${pt(e,n)}`,a=`${Oe(i,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${pt(e,r)}`,l=`${Oe(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${pt(e,o)}`;return{logoUrl:s,rectLogoUrl:a,faviconUrl:l}}function Jt({blocklet:e,style:t,size:n,...r}){const{logoUrl:o}=ci({blocklet:e}),{variant:i}=r;return c.jsx(ur,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...r,children:c.jsx("img",{src:o,alt:"",style:{width:n}})})}Jt.propTypes={blocklet:m.object.isRequired,style:m.object,size:m.oneOfType([m.number,m.string])};Jt.defaultProps={style:{},size:40};const li=e=>{const t={};let n=null;return U.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=U.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},ui=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;const l=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Cr(){const{t:e}=Q(),{api:t}=ms(),{blocklet:n}=So(),{inService:r}=ye(),[o,i]=x.useState(!1),[s,a]=x.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const p=li(n);if(p){J.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){J.error(Ft(p))}},d=()=>{const p=ui(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),a(5),setInterval(()=>{a(v=>v-1)},1e3)},f=()=>i(!1);return[l&&c.jsxs(cr,{severity:"warning",style:{margin:"12px 0"},children:[c.jsxs(D,{display:"flex",alignItems:"center",children:[c.jsx(he,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),c.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>c.jsx(D,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&c.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:_o(n,!0),title:U.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:f},"connect")]}Cr.propTypes={};function en({children:e,style:t,...n}){return c.jsx(fr,{style:t,...n,children:e})}en.propTypes={children:m.any.isRequired,style:m.object};en.defaultProps={style:{}};const B={yellow:"#FFCF71",grey:"#888888"};function tn({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=x.useContext(Bt),a={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:B.grey,waiting:B.yellow,downloading:B.yellow,extracting:B.yellow,downloaded:B.grey,installing:B.yellow,installed:B.grey,starting:B.yellow,running:"success",stopping:B.yellow,stopped:B.grey,error:"error",upgrading:B.yellow,restarting:B.yellow,corrupted:"error",deleting:B.yellow,resource:"primary"},u=U.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="dot"?c.jsx(qe,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(gs,{color:l[d],...i})}):c.jsxs(en,{type:a[d],...i,children:[u&&c.jsx(ne,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&o?c.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}tn.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag"]),source:m.string,progress:m.number,isResource:m.bool};tn.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var di=Co,fi=Io,pi=Eo,mi=Oo,gi=Po,hi=Ro,vi=200;function yi(e,t,n,r){var o=-1,i=fi,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=mi(t,gi(n))),r?(i=pi,s=!1):t.length>=vi&&(i=hi,s=!1,t=new di(t));e:for(;++o<a;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(d)}else i(t,f,r)||l.push(d)}return l}var xi=yi,bi=xi,wi=Lo,$n=To;function Si(e,t,n){var r=e.length;if(r<2)return r?$n(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=bi(i[o]||s,e[a],t,n));return $n(wi(i,1),t,n)}var ji=Si,_i=Ao,Ci=Do,Oi=ji,Pi=No,Ii=$o,Ei=Ci(function(e){var t=Ii(e);return t=typeof t=="function"?t:void 0,Oi(_i(e,Pi),void 0,t)}),Ri=Ei;const Li=tr(Ri),Or=x.createContext({});function nn({children:e,type:t}){const[n,r]=x.useState([]),o=x.useRef([]),i=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},s=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},a=l=>{const u=n.filter(f=>l.find(p=>p===f));Li(u,n).forEach(f=>s(f))};return c.jsx(Or.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}nn.propTypes={type:m.string,children:m.node.isRequired};nn.defaultProps={type:"blocklets"};function Ll(){return x.useContext(Or)}function A(e,t,n){return nr.call(t,"css")?c.jsx(rr,or(e,t),n):c.jsx(e,t,n)}function mt(e,t,n){return nr.call(t,"css")?c.jsxs(rr,or(e,t),n):c.jsxs(e,t,n)}/**
|
|
13
|
+
* (c) Iconify
|
|
14
|
+
*
|
|
15
|
+
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
16
|
+
* files at https://github.com/iconify/iconify
|
|
17
|
+
*
|
|
18
|
+
* Licensed under MIT.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
* @version 3.1.1
|
|
22
|
+
*/const Pr=Object.freeze({left:0,top:0,width:16,height:16}),Ge=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),De=Object.freeze({...Pr,...Ge}),St=Object.freeze({...De,body:"",hidden:!1});function Ti(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 Nn(e,t){const n=Ti(e,t);for(const r in St)r in Ge?r in e&&!(r in n)&&(n[r]=Ge[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Di(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function Ai(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Nn(r[a]||o[a],i)}return s(t),n.forEach(s),Nn(e,i)}function Ir(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=Di(e);for(const o in r){const i=r[o];i&&(t(o,Ai(e,o,i)),n.push(o))}return n}const Pe=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(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 a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!He(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!He(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!He(a,n)?null:a}return null},He=(e,t)=>e?!!((e.provider===""||e.provider.match(Pe))&&(t&&e.prefix===""||e.prefix.match(Pe))&&e.name.match(Pe)):!1,$i={provider:"",aliases:{},not_found:{},...Pr};function gt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Er(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!gt(e,$i))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Pe)||typeof i.body!="string"||!gt(i,St))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Pe)||typeof s!="string"||!n[s]&&!r[s]||!gt(i,St))return null}return t}const Qe=Object.create(null);function Ni(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Qe[e]||(Qe[e]=Object.create(null));return n[t]||(n[t]=Ni(e,t))}function rn(e,t){return Er(t)?Ir(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Mi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Bi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Qe)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Qe[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let Re=!1;function Ui(e){return typeof e=="boolean"&&(Re=e),Re}function Ae(e){const t=typeof e=="string"?xe(e,!0,Re):e;if(t){const n=ee(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Rr(e,t){const n=xe(e,!0,Re);if(!n)return!1;const r=ee(n.provider,n.prefix);return Mi(r,n.name,t)}function Lr(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Re&&!t&&!e.prefix){let o=!1;return Er(e)&&(e.prefix="",Ir(e,(i,s)=>{s&&Rr(i,s)&&(o=!0)})),o}const n=e.prefix;if(!He({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!rn(r,e)}function ki(e){return!!Ae(e)}function zi(e){const t=Ae(e);return t?{...De,...t}:null}const Tr=Object.freeze({width:null,height:null}),Dr=Object.freeze({...Tr,...Ge}),Fi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Hi=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function jt(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(Fi);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Hi.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const Vi=e=>e==="unset"||e==="undefined"||e==="none";function nt(e,t){const n={...De,...e},r={...Dr,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(b=>{const h=[],w=b.hFlip,I=b.vFlip;let g=b.rotate;w?I?g+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):I&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let _;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:_=o.height/2+o.top,h.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,h.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}g%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=r.width,a=r.height,l=o.width,u=o.height;let d,f;s===null?(f=a===null?"1em":a==="auto"?u:a,d=jt(f,l/u)):(d=s==="auto"?l:s,f=a===null?jt(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{Vi(h)||(p[b]=h.toString())};return v("width",d),v("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const qi=/\sid="(\S+)"/g,Ki="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Wi=0;function Ar(e,t=Ki){const n=[];let r;for(;r=qi.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Wi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const le={local:!0,session:!0},$r={local:new Set,session:new Set};let on=!1;function Gi(e){on=e}const Mn="iconify2",Le="iconify",Nr=Le+"-count",Bn=Le+"-version",Mr=36e5,Qi=168;function _t(e,t){try{return e.getItem(t)}catch{}}function sn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Un(e,t){try{e.removeItem(t)}catch{}}function Ct(e,t){return sn(e,Nr,t.toString())}function Ot(e){return parseInt(_t(e,Nr))||0}let ke=typeof window>"u"?{}:window;function Br(e){const t=e+"Storage";try{if(ke&&ke[t]&&typeof ke[t].length=="number")return ke[t]}catch{}le[e]=!1}function Ur(e,t){const n=Br(e);if(!n)return;const r=_t(n,Bn);if(r!==Mn){if(r){const a=Ot(n);for(let l=0;l<a;l++)Un(n,Le+l.toString())}sn(n,Bn,Mn),Ct(n,0);return}const o=Math.floor(Date.now()/Mr)-Qi,i=a=>{const l=Le+a.toString(),u=_t(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,a))return!0}catch{}Un(n,l)}};let s=Ot(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,Ct(n,s)):$r[e].add(a))}function kr(){if(!on){Gi(!0);for(const e in le)Ur(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ee(r,o);if(!rn(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function zr(e,t){switch(e){case"local":case"session":le[e]=t;break;case"all":for(const n in le)le[n]=t;break}}const Pt=Object.create(null);function Fr(e,t){Pt[e]=t}function It(e){return Pt[e]||Pt[""]}function an(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 rt=Object.create(null),je=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;je.length>0;)je.length===1||Math.random()>.5?Ve.push(je.shift()):Ve.push(je.pop());rt[""]=an({resources:["https://api.iconify.design"].concat(Ve)});function Hr(e,t){const n=an(t);return n===null?!1:(rt[e]=n,!0)}function ot(e){return rt[e]}function Xi(){return Object.keys(rt)}const Yi=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Xe=Yi();function Zi(e){Xe=e}function Ji(){return Xe}function ea(e,t){const n=ot(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function ta(e){return e===404}const na=(e,t,n)=>{const r=[],o=ea(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function ra(e){if(typeof e=="string"){const t=ot(e);if(t)return t.path}return"/"}const oa=(e,t,n)=>{if(!Xe){n("abort",424);return}let r=ra(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;Xe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(ta(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},sa={prepare:na,send:oa};function ia(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.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 i=o.provider,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),u=l[s]||(l[s]=ee(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const f={provider:i,prefix:s,name:a};d.push(f)}),t}function Vr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function aa(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(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||Vr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let ca=0;function la(e,t,n){const r=ca++,o=Vr.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function ua(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?xe(o,t,n):o;i&&r.push(i)}),r}var da={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function fa(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let j=e.resources.slice(0);for(s=[];j.length>1;){const E=Math.floor(Math.random()*j.length);s.push(j[E]),j=j.slice(0,E).concat(j.slice(E+1))}s=s.concat(j)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,d,f=null,p=[],v=[];typeof r=="function"&&v.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function w(j,E){E&&(v=[]),typeof j=="function"&&v.push(j)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:w,abort:h}}function g(){l="failed",v.forEach(j=>{j(void 0,d)})}function _(){p.forEach(j=>{j.status==="pending"&&(j.status="aborted")}),p=[]}function S(j,E,C){const P=E!=="success";switch(p=p.filter(R=>R!==j),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const R=e.resources.indexOf(j.resource);R!==-1&&R!==e.index&&(e.index=R)}l="completed",v.forEach(R=>{R(C)})}function O(){if(l!=="pending")return;b();const j=s.shift();if(j===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const E={status:"pending",resource:j,callback:(C,P)=>{S(E,C,P)}};p.push(E),u++,f=setTimeout(O,e.rotate),n(j,t,E.callback)}return setTimeout(O),I}function qr(e){const t={...da,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=fa(t,a,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function kn(){}const ht=Object.create(null);function pa(e){if(!ht[e]){const t=ot(e);if(!t)return;const n=qr(t),r={config:t,redundancy:n};ht[e]=r}return ht[e]}function Kr(e,t,n){let r,o;if(typeof e=="string"){const i=It(e);if(!i)return n(void 0,424),kn;o=i.send;const s=pa(e);s&&(r=s.redundancy)}else{const i=an(e);if(i){r=qr(i);const s=e.resources?e.resources[0]:"",a=It(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),kn):r.query(t,o,n)().abort}function ma(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)Ur(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function ga(e,t){on||kr();function n(r){let o;if(!le[r]||!(o=Br(r)))return;const i=$r[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ot(o),!Ct(o,s+1))return;const a={cached:Math.floor(Date.now()/Mr),provider:e.provider,data:t};return sn(o,Le+s.toString(),JSON.stringify(a))}t.lastModified&&!ma(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function zn(){}function ha(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,aa(e)}))}function va(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 i;if(!o||!(i=It(n)))return;i.prepare(n,r,o).forEach(a=>{Kr(n,a,l=>{if(typeof l!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=rn(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),ga(e,l)}catch(u){console.error(u)}ha(e)})})}))}const ya=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},cn=(e,t)=>{const n=ua(e,!0,Ui()),r=ia(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,zn)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===a&&u===s)return;s=u,a=d,i.push(ee(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=ee(u,d),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(f)||(v.add(f),o[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&va(l,o[u][d])}),t?la(t,r,i):zn},xa=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}cn([r||e],o=>{if(o.length&&r){const i=Ae(r);if(i){t({...De,...i});return}}n(e)})});function Wr(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Tr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const st={...Dr,inline:!1},vt="iconify",Et="iconify-inline",ie="iconifyData"+Date.now();let ue=[];function $e(e){for(let t=0;t<ue.length;t++){const n=ue[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Gr(e,t=!1){let n=$e(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function ba(){if(document.documentElement)return Gr(document.documentElement);ue.push({node:()=>document.documentElement})}function wa(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Ne(){return ue}function Sa(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Ie=null;const ja={childList:!0,subtree:!0,attributes:!0};function Qr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Ie&&Ie(e)}))}function _a(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[ie]!==void 0){n.paused||Qr(e);return}}}function Xr(e,t){e.observer.instance.observe(t,ja)}function Ye(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(_a.bind(null,e)),Xr(e,n),t.paused||Qr(e))}function Fn(){Ne().forEach(Ye)}function Yr(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 Ca(e){const t=Ie!==null;if(Ie!==e&&(Ie=e,t&&Ne().forEach(Yr)),t){Fn();return}Sa(Fn)}function Rt(e){(e?[e]:Ne()).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 Oa(e){if(e){const t=$e(e);t&&Rt(t)}else Rt()}function Lt(e){(e?[e]:Ne()).forEach(t=>{if(!t.observer){Ye(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?Xr(t,r):Ye(t);else return}})}function Pa(e){if(e){const t=$e(e);t&&Lt(t)}else Lt()}function Zr(e,t=!1){const n=Gr(e,t);return Ye(n),n}function Jr(e){const t=$e(e);t&&(Yr(t),wa(e))}function Ia(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in st)if(n[o]!==r[o])return!0;return!1}function Ea(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 i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const Ra=/[\s,]+/;function La(e,t){t.split(Ra).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ta=["width","height"],Da=["inline","hFlip","vFlip"];function Aa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function $a(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...st,inline:e.classList&&e.classList.contains(Et)};Ta.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Ea(o));const i=e.getAttribute("data-flip");typeof i=="string"&&La(r,i),Da.forEach(a=>{const l="data-"+a,u=Aa(e.getAttribute(l),l);typeof u=="boolean"&&(r[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:s}}const Na="svg."+vt+", i."+vt+", span."+vt+", i."+Et+", span."+Et;function Ma(e){const t=[];return e.querySelectorAll(Na).forEach(n=>{const r=n[ie]||n.tagName.toLowerCase()!=="svg"?$a(n):null;r&&t.push({node:n,props:r})}),t}function eo(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 Ee;function Ba(){try{Ee=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Ee=null}}function Ua(e){return Ee===void 0&&Ba(),Ee?Ee.createHTML(e):e}function to(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function no(e,t,n,r){const o=e.classList;if(r){const s=r.classList;Array.from(s).forEach(a=>{o.add(a)})}const i=[];return t.forEach(s=>{o.contains(s)?n.has(s)&&i.push(s):(o.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||o.remove(s)}),i}function ro(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function oo(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=nt(n,o),s=e[ie],a=eo(Ar(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Ua(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),w=h.name;w!=="class"&&!l.hasAttribute(w)&&l.setAttribute(w,h.value)}const d=to(t.icon),f=no(l,d,new Set(s&&s.addedClasses),e),p=ro(l,o.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),v={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[ie]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function ka(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function za(e){return"data:image/svg+xml,"+ka(e)}function Fa(e){return'url("'+za(e)+'")'}const Ha={display:"inline-block"},Tt={"background-color":"currentColor"},so={"background-color":"transparent"},Hn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Vn={"-webkit-mask":Tt,mask:Tt,background:so};for(const e in Vn){const t=Vn[e];for(const n in Hn)t[e+"-"+n]=Hn[n]}function qn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Va(e,t,n,r){const o=t.customisations,i=nt(n,o),s=i.attributes,a=e[ie],l=eo(i.body,{...s,width:n.width+"",height:n.height+""}),u=to(t.icon),d=no(e,u,new Set(a&&a.addedClasses)),p={"--svg":Fa(l),width:qn(s.width),height:qn(s.height),...Ha,...r?Tt:so};o.inline&&(p["vertical-align"]="-0.125em");const v=ro(e,p,a&&a.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:v};return e[ie]=b,e}let ze=!1;function qa(){ze||(ze=!0,setTimeout(()=>{ze&&(ze=!1,ve())}))}function ve(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:s,prefix:a,name:l}=o,u=ee(s,a),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!ya(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:Ne()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function l(u,d,f){if(a||(a=!0,Rt(o)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,v=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof v=="boolean"){Va(u,d,{...De,...f},v);return}}oo(u,d,f)}Ma(i).forEach(({node:u,props:d})=>{const f=u[ie];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[ie]={...d,status:v};return}let p;if(Ia(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){s=s||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),o.temporary&&!s?Jr(i):t&&s?Zr(i,!0):a&&o.observer&&Lt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];cn(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),qa)}}}function Ka(e){const t=$e(e);t?ve(t):ve({node:e,temporary:!0},!0)}function io(e,t,n=!1){const r=Ae(e);if(!r)return null;const o=xe(e),i=Wr(st,t||{}),s=oo(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Wa(){return"3.1.1"}function Ga(e,t){return io(e,t,!1)}function Qa(e,t){return io(e,t,!0)}function Xa(e,t){const n=Ae(e);if(!n)return null;const r=Wr(st,t||{});return nt(n,r)}function Ya(e){e?Ka(e):ve()}if(typeof document<"u"&&typeof window<"u"){ba();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"||!Lr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ca(ve),ve()})}function Za(e,t){zr(e,t!==!1)}function Ja(e){zr(e,!0)}Fr("",sa);if(typeof document<"u"&&typeof window<"u"){kr();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;Hr(n,o)||console.error(r)}catch{console.error(r)}}}}const ec={getAPIConfig:ot,setAPIModule:Fr,sendAPIQuery:Kr,setFetch:Zi,getFetch:Ji,listAPIProviders:Xi},tc={_api:ec,addAPIProvider:Hr,loadIcons:cn,loadIcon:xa,iconExists:ki,getIcon:zi,listIcons:Bi,addIcon:Rr,addCollection:Lr,replaceIDs:Ar,calculateSize:jt,buildIcon:nt,getVersion:Wa,renderSVG:Ga,renderHTML:Qa,renderIcon:Xa,scan:Ya,observe:Zr,stopObserving:Jr,pauseObserver:Oa,resumeObserver:Pa,enableCache:Za,disableCache:Ja};try{self.Iconify===void 0&&(self.Iconify=tc)}catch{}var ln={},nc=G;Object.defineProperty(ln,"__esModule",{value:!0});var ao=ln.default=void 0,rc=nc(W()),oc=c;ao=ln.default=(0,rc.default)((0,oc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function un({infos:e}){const{t}=Q(),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(`
|
|
23
|
+
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<!--
|
|
28
|
+
[Server Info]
|
|
29
|
+
${r}
|
|
30
|
+
* Page: ${window.location.href}
|
|
31
|
+
-->
|
|
32
|
+
`),A(D,{sx:{mx:{xs:0,md:2}},children:A(pr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}un.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};un.defaultProps={infos:[]};var sc={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"}},ic={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Dt=new Map,ac=(e,t)=>{Dt.set(e,t)},cc=(e="en_US")=>Dt.get(e)||Dt.get("en_US");var co={registerLang:ac,getLang:cc},lc=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}};const uc=lc,{getLang:_e}=co,dc=(e,t)=>t===1?e:`${e}s`,fc=1e-7;var pc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=_e(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+fc);return(Math.round(u)/10**l).toFixed(l)},i=(a,l,u)=>{if((r.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=n[l]||_e("en_US")[l],{short:f}=n[l]||_e("en_US")[l];let p=(u||a||"0").toString(),v,b;if(t.colonNotation){v=r.length>0?":":"",b="";const h=p.includes(".")?p.split(".")[0].length:p.length,w=r.length>0?2:1;p="0".repeat(Math.max(0,w-h))+p}else v="",t.locale==="zh_CN"?Object.values(s).filter(h=>h>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?b=d:b=f:s.minutes?b=d:b=f:b=t.verbose?` ${dc(d,a)}`:f;r.push(v+p+b)},s=uc(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=o(a,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(r.length===0){const a=(n.millisecond||_e("en_US").millisecond).long,l=(n.millisecond||_e("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:l}`:`0${t.verbose?` ${a}s`:l}`}if(t.compact)return r[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?r.join(""):r.join(" ")};const mc=sc,gc=ic,{registerLang:dn}=co,lo=pc;dn("en_US",mc);dn("zh_CN",gc);lo.registerLang=dn;var hc=lo;const Ze=tr(hc);var fn={},vc=G;Object.defineProperty(fn,"__esModule",{value:!0});var At=fn.default=void 0,yc=vc(W()),Kn=c;At=fn.default=(0,yc.default)([(0,Kn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Kn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function se({children:e}){return tt(n=>n.breakpoints.down("md"))?c.jsx(qe,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(At,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(At,{fontSize:"small"}),e]})}se.propTypes={children:m.node.isRequired};const xc="https://launcher.arcblock.io/",bc=30*24*60*60*1e3;function pn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,j,E,C,P,R;const{t:i,locale:s}=Q(),a=ye(),[l,u]=mr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=tt(L=>L.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=dr(async()=>{const[L,re]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),sr({launcherUrl:e||xc,nftDid:n,launcherSessionId:r,locale:s})]);if(L!=null&&L.error)throw new Error(L.error);return{launcherSession:L.launcherSession,subscriptionURL:re}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(se,{children:[!f&&i("expiration.desktop.loading"),c.jsx(ne,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(se,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const w=L=>{u({popoverAnchorEl:L.currentTarget})},I=()=>{u({popoverAnchorEl:null})},g=(O=h.value)==null?void 0:O.launcherSession;let _="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((E=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:E.status)&&(_="error");let S=null;if(g.expirationDate&&!g.subscription){const L=me(g.expirationDate).diff(me(),"ms");S=i(`expiration.${b}.tips.${_}`,{validity:Ze(L,{locale:zt(s),compact:!0,verbose:!0})}),L>0&&L<=bc&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(se,{children:S||((P=(C=g==null?void 0:g.subscription)==null?void 0:C.product)==null?void 0:P.name)||i("common.subscription")}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(ir,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(R=h.value)==null?void 0:R.subscriptionURL})})]})}pn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};pn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const wc=30*24*60*60*1e3,Sc="https://launcher.arcblock.io/";function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var j,E,C,P,R,L,re;const{t:i,locale:s}=Q(),[a,l]=mr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=tt(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=dr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),sr({launcherUrl:e||Sc,nftDid:n,launcherSessionId:r,locale:s})]);if(M!=null&&M.error)throw new Error(M.error);return{launcherSession:M.launcherSession,subscriptionURL:be}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(se,{children:[!d&&i("expiration.desktop.loading"),c.jsx(ne,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(se,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const w=(E=(j=h.value)==null?void 0:j.launcherSession)==null?void 0:E.expirationDate,I=me(w).isBefore(me()),g=me(w).diff(me(),"ms");let _="success";g<=wc&&(_="warning"),I&&(_="error");const S=M=>{l({popoverAnchorEl:M.currentTarget})},O=()=>{l({popoverAnchorEl:null})};return c.jsxs(c.Fragment,{children:[((P=(C=h.value)==null?void 0:C.launcherSession)==null?void 0:P.subscription)&&c.jsx(ce,{label:c.jsx(se,{children:i("expiration.desktop.nextInvoice",{date:Mo(w,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:S}),!((L=(R=h.value)==null?void 0:R.launcherSession)!=null&&L.subscription)&&c.jsx(ce,{label:c.jsx(se,{children:i(`expiration.${b}.tips.${_}`,{validity:Ze(g,{locale:zt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:S}),c.jsx(ir,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(re=h.value)==null?void 0:re.subscriptionURL})})]})}mn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};mn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var gn={},jc=G;Object.defineProperty(gn,"__esModule",{value:!0});var uo=gn.default=void 0,_c=jc(W()),Cc=c;uo=gn.default=(0,_c.default)((0,Cc.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var hn={},Oc=G;Object.defineProperty(hn,"__esModule",{value:!0});var fo=hn.default=void 0,Pc=Oc(W()),Ic=c;fo=hn.default=(0,Pc.default)((0,Ic.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var vn={};Object.defineProperty(vn,"__esModule",{value:!0});var $t=vn.default=void 0;Ec(x);var Wn=c;function Ec(e){return e&&e.__esModule?e:{default:e}}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gn(Object(n),!0).forEach(function(r){Rc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rc(e,t,n){return t=Lc(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lc(e){var t=Tc(e,"string");return typeof t=="symbol"?t:String(t)}function Tc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yn=function(t){return(0,Wn.jsx)("svg",Qn(Qn({},t),{},{children:(0,Wn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})}))};yn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};yn.displayName="notification";$t=vn.default=yn;function po({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(fr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}po.propTypes={status:m.string.isRequired};function xn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:zt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ze(i-s,o);return c.jsx(qe,{title:Ke(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Ze(s-i,o);return c.jsx(qe,{title:Ke(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}xn.propTypes={value:m.any};xn.defaultProps={value:""};function Dc(e,t){const n=x.useRef(t);x.useEffect(()=>{const r=o=>n.current(o.detail);return window.addEventListener(e,r),()=>window.removeEventListener(e,r)},[e])}function Ac(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function Tl(e){const t=et(),{t:n}=Q(),r=()=>{const o=new URLSearchParams(window.location.search);o.get("checkUpdate")&&(o.delete("checkUpdate"),t(o.toString()),e(),J.success(n("notification.checkingForUpdates")))};x.useEffect(r,[]),Dc("checkUpdate",r)}function bn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Bt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=et(),b=Bo();let h=u?n:n.filter(S=>S.read===!1);h=h.slice(0,5);const w=n.filter(S=>S.read===!1).length>0,I=async()=>{p(!0);const S=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:S,teamDid:i}}):await t.readNotifications({input:{id:S}}),r(),p(!1)},g=(S,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(S),v(o)},_=(S,O)=>{S.preventDefault(),S.stopPropagation(),v(O),Ac()};return c.jsxs($c,{children:[c.jsxs(K,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(he,{component:kt,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(xt,{}),c.jsxs(Uo,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(K,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(S=>c.jsxs(bs,{alignItems:"flex-start",disabled:S.read,onClick:O=>g(O,S),children:[c.jsx($s,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(ur,{children:S.entityType.substr(0,1).toUpperCase()}),c.jsx(po,{className:"notification-tag",status:S.severity})]})}),c.jsx(lr,{primary:S.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(K,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:S.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(xn,{value:S.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),S.action&&!S.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,S.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},S.id))]}),c.jsx(xt,{}),c.jsxs(K,{component:"div",className:"notification-footer",children:[c.jsx(wt,{control:c.jsx(ps,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(hs,{permission:s?"":"mutate_notification",role:s?ko:[],children:w&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(ne,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const $c=Je.div`
|
|
33
|
+
width: 420px;
|
|
34
|
+
|
|
35
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
36
|
+
width: calc(100vw - 10px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.notification-header {
|
|
40
|
+
padding: 8px 16px;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.notification-tip {
|
|
46
|
+
padding: 8px 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.notification-footer {
|
|
50
|
+
padding: 8px 16px;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.MuiButtonBase-root {
|
|
56
|
+
white-space: pre-wrap;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.list-item-avatar {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
63
|
+
min-width: 80px;
|
|
64
|
+
|
|
65
|
+
.notification-tag {
|
|
66
|
+
margin-top: 4px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.MuiButtonBase-root:not(.Mui-disabled) {
|
|
71
|
+
.MuiAvatar-root {
|
|
72
|
+
background: ${e=>e.theme.palette.primary.light};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`;bn.propTypes={onHide:m.func,api:m.shape({readNotifications:m.func.isRequired,readBlockletNotifications:m.func.isRequired}).isRequired,notifications:m.arrayOf(m.shape({id:m.string,read:m.bool,entityType:m.string,title:m.string,createdAt:m.string,description:m.string}).isRequired).isRequired,updateNotifications:m.func.isRequired,viewAllUrl:m.string.isRequired,teamDid:m.string};bn.defaultProps={onHide:()=>{},teamDid:""};function wn({api:e,notifications:t,updateNotifications:n,viewAllUrl:r,teamDid:o}){const[i,s]=x.useState(!1),a=x.useRef(null),l=()=>{s(f=>!f)},u=f=>{a.current&&a.current.contains(f.target)||s(!1)},d=t.filter(f=>f.read===!1).length;return c.jsxs("div",{className:"notification-addon",children:[c.jsx(Ut,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:l,children:d>0?c.jsx(hr,{badgeContent:d,max:99,color:"primary",children:c.jsx($t,{style:{width:"auto",height:24}})}):c.jsx($t,{style:{width:"auto",height:24}})}),i&&c.jsx(zo,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:c.jsx(Fo,{id:"notify-list-grow",children:c.jsx(Ho,{onClickAway:u,children:c.jsx("div",{children:c.jsx(bn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:r,onHide:u,teamDid:o})})})})})]})}wn.propTypes={notifications:m.arrayOf(m.object),viewAllUrl:m.string.isRequired,api:m.object.isRequired,updateNotifications:m.func.isRequired,teamDid:m.string};wn.defaultProps={notifications:[],teamDid:""};const Nc=`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=Vo();return c.jsx(wn,{api:t,viewAllUrl:Nc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function Mc(){const{inFullPage:e,toggleFullPage:t}=xs();return A(Ut,{onClick:t,children:e?A(fo,{sx:{transform:"scale(1.3)"}}):A(uo,{sx:{transform:"scale(1.3)"}})})}function jn({children:e}){var h;const{t}=Q(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Te(),{info:a}=qo(),l=Ko(),u=tt(w=>w.breakpoints.down("md")),{appId:d,version:f}=i,p=[{label:"App ID",value:d},{label:"App Version",value:f},{label:"App Bundle Name",value:(h=s==null?void 0:s.meta)==null?void 0:h.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],v=w=>{var g,_,S,O;const I=Array.isArray(w)?w:[w];if(I.unshift(A(Sn,{})),u||I.unshift(A(Mc,{})),s){const j={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Go(s)?I.unshift(A(pn,{chainHost:(g=s==null?void 0:s.controller)==null?void 0:g.chainHost,nftId:(_=s==null?void 0:s.controller)==null?void 0:_.nftId,launcherSessionId:(S=s==null?void 0:s.controller)==null?void 0:S.launcherSessionId,launcherUrl:(O=s==null?void 0:s.controller)==null?void 0:O.launcherUrl,sx:j})):a.ownerNft&&a.launcher&&I.unshift(A(mn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:j}))}return I},b={};return u&&(b.logo=null),mt(Bc,{legacy:!1,fullWidth:!0,headerAddons:v,headerProps:b,isMobile:u,footerProps:{addon:A(un,{infos:p})},children:[!s&&n&&A(We,{relative:"parent",children:A(ne,{})}),!s&&r&&mt(We,{relative:"parent",children:[mt(D,{display:"flex",alignItems:"center",children:[A(ao,{color:"error",sx:{marginRight:1}}),Ft(r)]}),A(he,{onClick:()=>o(),children:A("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&A(D,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:A(Wo,{FallbackComponent:ys,resetKeys:[l.pathname],children:e})})]})}jn.propTypes={children:m.any};jn.defaultProps={children:null};const Bc=Je(ws)`
|
|
76
|
+
div.dashboard-content {
|
|
77
|
+
padding: 0;
|
|
78
|
+
}
|
|
79
|
+
.header-addons .locales {
|
|
80
|
+
max-height: 400px;
|
|
81
|
+
overflow-y: auto;
|
|
82
|
+
}
|
|
83
|
+
`,mo=(e,{name:t,alternative:n})=>function(o){return x.useEffect(()=>{},[]),c.jsx(e,{...o})},Uc={light:"fal",regular:"far",solid:"fas"};function _n({name:e,color:t,size:n,variant:r,rounded:o,style:i,className:s,forwardedRef:a,...l}){const u=c.jsx("i",{ref:a,className:`${Uc[r]} fa-${e} ${o?"":s}`,style:Object.assign({color:t,fontSize:`${n}px`},i||{})});return o?c.jsx(kc,{ref:a,size:n,color:t,className:s,...l,children:u}):u}_n.propTypes={name:m.string.isRequired,className:m.string,color:m.string,rounded:m.bool,variant:m.string,size:m.number,style:m.object};_n.defaultProps={rounded:!1,variant:"light",color:Ce.grey[900],className:"",size:24,style:{}};const kc=ar("span")`
|
|
84
|
+
width: ${e=>e.size*2}px;
|
|
85
|
+
height: ${e=>e.size*2}px;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
border: 1px solid ${e=>e.color};
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
|
|
92
|
+
.fa,
|
|
93
|
+
.fas,
|
|
94
|
+
.fal,
|
|
95
|
+
.far {
|
|
96
|
+
line-height: ${e=>e.size}px;
|
|
97
|
+
}
|
|
98
|
+
`,zc=mo(x.forwardRef((e,t)=>c.jsx(_n,{...e,forwardedRef:t})),{name:"Icon",alternative:"SVG icons"}),Nt={error:{icon:"exclamation-circle",color:Ce.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:Ce.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:Ce.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:Ce.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function it(e){const t=Qo(e,it,["style"]),{type:n,children:r,style:o,className:i,variant:s,...a}=t,{icon:l,color:u,backgroundColor:d,borderColor:f}=Nt[n]||Nt.success,p=Object.assign({color:vs[500],backgroundColor:s==="border"?d:"transparent",borderLeft:s==="border"?`5px solid ${f}`:"none"},o);return c.jsxs(Hc,{...a,className:`alert alert--${n} alert--${s} ${i}`.trim(),style:p,children:[s==="icon"&&c.jsx(zc,{className:"alert-icon",name:l,size:24,style:{color:u}}),c.jsx(K,{component:"div",className:"alert-content",children:r})]})}it.propTypes={type:m.oneOf(Object.keys(Nt)),children:m.any.isRequired,className:m.string,style:m.oneOfType([m.object,m.string]),variant:m.oneOf(["border","icon"])};it.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const Fc=mo(it,{name:"Alert",alternative:"@mui/material/Alert"}),Hc=ar("div")`
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
font-size: 16px;
|
|
102
|
+
margin: 0;
|
|
103
|
+
padding: 16px;
|
|
104
|
+
margin: 16px 0;
|
|
105
|
+
|
|
106
|
+
strong {
|
|
107
|
+
margin: 0 5px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.alert-icon {
|
|
111
|
+
margin-right: 16px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.alert-content {
|
|
115
|
+
flex: 1;
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
}
|
|
119
|
+
`;function Vc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Te(),[o,i]=ls({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;Pn(n,r)&&Xo({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!Yo(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let s=null,a="";return Pn(n,r)?(s=c.jsx(pr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:Ke(r==null?void 0:r.reservedUntil,t)})):Zo(n,r)&&(s=c.jsx(kt,{to:Oe($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:Ke(r==null?void 0:r.terminatedAt,t),deadline:Jo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(D,{component:Fc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(K,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const go=x.createContext({});function Dl(){return x.useContext(go)}const{Provider:qc,Consumer:Al}=go,{did:V,appId:Kc}=window.env;function Wc({children:e}){var j,E;const{t,locale:n}=Q(),{blocklet:r}=Te(),[o,i]=x.useState([]),[s,a]=x.useState([]),[l,u]=x.useState([]),d=U.getDisplayName(r),f=((j=((r==null?void 0:r.environments)||[]).find(C=>C.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:j.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],v=(r==null?void 0:r.trustedFactories)||[],b=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const C=await Ue.doBatchQuery({getRoles:{input:{teamDid:V}},getPermissions:{input:{teamDid:V}},getInvitations:{input:{teamDid:V}}});a((C.getRoles.roles||[]).filter(P=>!$.RBAC_CONFIG.roles.some(R=>R.name===P.name&&(!R.passport||R.ci))).map(P=>(P.hasDescription=!!P.description,P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),P))),u(C.getPermissions.permissions||[]),i(C.getInvitations.invitations||[])}catch(C){J.error(C.message)}},w=({did:C}={})=>{const P={teamDid:V,user:{did:C}};return Ue.getUser({input:P})},I=({query:C,paging:P}={})=>{const R={teamDid:V};return P&&(R.paging=P),C&&(R.query=C),R.sort={lastLoginAt:-1},Ue.getUsers({input:R})},g=()=>Ue.getUsersCountPerRole({input:{teamDid:V}}),_=()=>h();x.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(E=r==null?void 0:r.meta)==null?void 0:E.did]),x.useEffect(()=>{a(C=>C.map(P=>(P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),{...P})))},[t,n]);const S=C=>{C.teamDid===V&&h()};Fe(Z.TeamEvents.userAdded,S,[V]),Fe(Z.TeamEvents.userRemoved,S,[V]),Fe(Z.TeamEvents.userUpdated,S,[V]);const O={teamDid:V,teamIssuerDid:Kc,teamName:d,invitations:o,roles:s,permissions:l,trustedPassports:p,trustedFactories:v,isNodeTeam:!1,enablePassportIssuance:b,refresh:_,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:w,getUsers:I,getUsersCountPerRole:g}};return c.jsx(qc,{value:O,children:e})}const Gc=x.lazy(()=>k(()=>import("./overview-BRmNWvge.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]))),Qc=x.lazy(()=>k(()=>import("./index-8tm1Ihzh.js"),__vite__mapDeps([52,1,2,53,9,54,55,56,57,27,28,29,30,31,58,59,33,60,43,44,36,37,61,48,62,63,34,12,39,64,46,47,49,50,51,10,45,19,65,23,66,21,7,67,68,6,13,14,15,69,17,18,4,16,70,71,35,72,38,40,41,42,5,20]))),Xc=x.lazy(()=>k(()=>import("./index-_ZvuFtZB.js"),__vite__mapDeps([73,1,2,9,74,10,41,75,11,56,57,27,28,29,30,31,13,14,15,16,17,18,19,43,76,12,6,7,5,20,77,37,38,39,34,40,36,42,44,45,46,47,48,49,50,51]))),Yc=x.lazy(()=>k(()=>import("./index-CkhxO230.js"),__vite__mapDeps([78,1,2,79,80,81,82,53,75,83,41,27,28,29,30,31,84,45,19,10,37,54,85,18,86,13,14,15,16,17,20,69,43,67,12,87,88,36,62,63,60,89,3,90,58,59,33,44,61,48,57,34,39,4,91,92,38,40,42,5,7,46,47,49,50,51,93]))),Zc=x.lazy(()=>k(()=>import("./audit-logs-C7blov8C.js"),__vite__mapDeps([94,1,2,95,96,12,5,38,28,29,30,31,97,61,98,37,39,16,17,18,19,34,40,36,41,42,43,44,45,15,13,14,7,20,46,47,48,49,50,51]))),Jc=x.lazy(()=>k(()=>import("./log-BpY9Dsfn.js"),__vite__mapDeps([99,1,2,38,41,100,28,29,31,101]))),el=x.lazy(()=>k(()=>import("./index-Bu9MpwgG.js"),__vite__mapDeps([102,1,2,9,103,34,104,58,59,33,60,43,29,28,44,30,36,31,27,37,61,48,62,63,57,12,39,5,16,17,18,19,15,6,7,84,45,72,100,105,20,53,71,25,92,10,23,106,107,108,87,81,69,41,109,83,77,67,95,96,98,110,42]))),tl=x.lazy(()=>k(()=>import("./config-navigation-D4EW71cl.js"),__vite__mapDeps([111,1,2,62,63,60,112,109,85,31,28,29,18,19,113,114,30,36,27,37,77,64,46,47,48,49,50,39,51,10,45,115,17,41,32,33,38,16,34,40,42,43,44,15,13,14,5,7,20]))),nl=x.lazy(()=>k(()=>import("./index-q23BC-cq.js"),__vite__mapDeps([116,1,2,74,10,41,25,117,66,118,92,17,27,28,29,30,31,18,19,4,7,6,89,67,43,39,107,36,86,5,58,59,33,60,44,37,61,48,62,63,57,34,12]))),rl=x.lazy(()=>k(()=>import("./component-GJ2Ih7o1.js"),__vite__mapDeps([119,1,2,9,80,81,82,53,75,83,41,27,28,29,30,31,12,89,67,43,13,14,15,37,59,33,60,44,36,61,48,63,57,120,84,45,19,107,103,112,109,115,77,121,69,34,18,17,122,123,124,118,92,25,125,49,126,127,128,129,130,76,95,96,113,4,6,7,110,108,39,87,72,16,26,131,117,66,74,10,132,38,46,133,134,11,22,42,40,35,5,20,47,50,51]))),ol=x.lazy(()=>k(()=>import("./analytics-BmR1ZGFq.js"),__vite__mapDeps([135,1,2,37,13,14,15,79,136,120,60,84,45,19,63,39,36,28,29,31,18,17,33,106,27,30,77,58,59,43,44,61,48,62,57,34,12,38,16,40,41,42,5,7,20,46,47,49,50,51]))),sl=x.lazy(()=>k(()=>import("./notifications-Cu_cDaRO.js"),__vite__mapDeps([137,1,2,13,14,15,43,29,39,45,19,36,97,61,37,38,16,17,18,34,40,41,42,44,5,7,20,46,47,48,49,50,51])));function il(){var h,w;const e=et(),{tab:t="overview"}=ns(),{blocklet:n,actions:{refreshBlocklet:r}}=Te(),{t:o}=Q(),i=(h=n==null?void 0:n.meta)==null?void 0:h.did,s=I=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${I}`)},a=()=>{r()},l=!n||bt(n.status)?[]:U.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(hr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];bt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((w=n.children)!=null&&w.length)&&n.structVersion===$.APP_STRUCT_VERSION&&u.push({label:o("common.logs"),value:"logs"}),u.push({label:o("common.configNavigation"),value:"navigation"}),u.push({label:o("common.storage"),value:"storage"});const d=c.jsx(Zc,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});Fe($.EVENTS.NOTIFICATION_BLOCKLET_CREATE,I=>{const{severity:g,title:_,description:S}=I||{};g==="error"?J.error(S||_):J.success(S||_)});const f={overview:c.jsx(Gc,{}),members:c.jsx(D,{mt:-5,children:c.jsx(Qc,{type:"blocklet",createPassportSvg:In})}),passports:c.jsx(D,{mt:-4.5,children:c.jsx(Xc,{createPassportSvg:In})}),components:rl,configuration:c.jsx(Yc,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:Jc,navigation:tl,storage:c.jsx(nl,{}),analytics:c.jsx(D,{mt:-5,children:c.jsx(ol,{})}),publish:c.jsx(D,{mt:-3,children:c.jsx(el,{})}),notifications:c.jsx(sl,{})},p=f[t]||f.overview,v=!["members","passports","analytics","publish","notifications"].includes(t),b=n?c.jsxs(nn,{type:"components",children:[v&&c.jsx(D,{pt:3,children:c.jsx(os,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),c.jsx("div",{className:"page-content",children:c.jsx(x.Suspense,{fallback:c.jsx(We,{relative:"parent",children:c.jsx(ne,{})}),children:x.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(We,{relative:"parent",children:c.jsx(ne,{})});return c.jsx(rs,{children:c.jsx(Wc,{children:c.jsx(jn,{children:c.jsxs(cl,{children:[v&&c.jsxs(D,{component:"div",className:"page-header",children:[c.jsxs(K,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?c.jsx(Jt,{blocklet:n,style:{marginRight:16}}):null,n?c.jsxs(D,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[c.jsx(D,{children:U.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&c.jsx(tn,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?c.jsx(Zt,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:I}={})=>{I&&J.error(I.message)},variant:"group"}):null]}),c.jsx(Cr,{}),c.jsx(Vc,{}),b]})})})})}function al(){var r;const{blocklet:e}=Te(),{t}=Q(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return x.useEffect(()=>{const o=es();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),c.jsxs(c.Fragment,{children:[c.jsx(ts,{children:c.jsx("title",{children:t("pageTitle.dashboard")})}),c.jsx(il,{})]})}const cl=Je.main`
|
|
120
|
+
.page-header {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
align-items: center;
|
|
124
|
+
flex-wrap: wrap;
|
|
125
|
+
gap: 16px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.page-title {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
|
|
132
|
+
.page-link {
|
|
133
|
+
font-size: 15px;
|
|
134
|
+
margin-top: 8px;
|
|
135
|
+
margin-left: 8px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.page-content {
|
|
140
|
+
margin-top: 18px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
|
|
144
|
+
.page-header {
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
.page-actions,
|
|
148
|
+
.MuiButtonGroup-root {
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
.MuiButtonGroup-root {
|
|
152
|
+
.MuiButtonBase-root {
|
|
153
|
+
flex: 1;
|
|
154
|
+
}
|
|
155
|
+
.blocklet-action-text {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.page-title {
|
|
162
|
+
margin-bottom: 15px;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,$l=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));export{tn as B,$s as L,po as N,xn as R,en as W,xi as _,hr as a,ci as b,Sr as c,ao as d,Jt as e,gr as f,Vt as g,te as h,vr as i,Ll as j,yr as k,Tl as l,$l as m,Ze as p,Dl as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={auth:{noPermission:{title:"Keine Erlaubnis",description:"Du bist nicht der Administrator des Blocklets"}},login:{reLogin:"Verbinden",description:"Du musst deine DIDs Wallet verbinden, um auf {name} zuzugreifen",already:"Du bist verbunden als",connectWallet:"Verbinde das DID Wallet",closeWindow:"Fenster schließen",accessLimit:{title:"Seitenzugriff eingeschränkt",description:"Diese Seite erfordert die folgenden Pässe zum Zugriff, verbinden Sie sich bitte mit dem Portemonnaie, um den entsprechenden Pass zu ändern oder zu beantragen.",alreadyHavePassport:"Habe bereits den Reisepass",connectWithPassport:"Verbinde mit diesem Reisepass",buyPassport:"Kaufen Sie einen Reisepass"},switchDid:{title:"Wechseln Sie das DID Wallet",scan:"Scannen Sie den folgenden QR-Code, um den Account zu wechseln",confirm:"Bestätige den Wechsel in deiner DID-Wallet",success:"Erfolgreich umgeschaltet"},switchSpecifiedDid:{title:"Wechsle DID Wallet",scan:"Du musst die DID zu {did} wechseln, um die folgenden Aktionen abzuschließen.",confirm:"Bestätigen Sie den Wechsel in Ihrer DID-Brieftasche",success:"Erfolgreich gewechselt"},connect:{title:"Verbinde DID Wallet",scan:"Verbinden Sie Ihre DID-Brieftasche, um auf diese Anwendung zuzugreifen",confirm:"Bestätigen Sie in Ihrer DID-Geldbörse",success:"Sie sind erfolgreich verbunden"},needManualClose:"Anmeldung erfolgreich. Wenn sich dieses Fenster nicht automatisch schließt, bitte schließen.",connectWithPassport:"Verbinde dich mit diesem Reisepass"},studio:{home:"Studio",preferences:"Präferenzaufbau",localization:"Lokalisierung"},blocklet:{startApplication:"Starte Anwendung",startDescription:"Bereit, {name} zu starten",start:"Start",starting:"Starten...",open:"Öffnen",suspended:"Anwendung ausgesetzt",manageSubscription:"Abonnement verwalten",suspendedCausedByExpired:"Diese Anwendung wurde aufgrund abgelaufener Bezahlung vorübergehend gestoppt. Bitte erneuern Sie vor {deadline}, um fortzufahren. Erfolgt in der angegebenen Frist keine Erneuerung, kann sie nicht mehr erneuert oder fortgesetzt werden.",suspendedCausedByTerminated:"Die Anwendung wurde aufgrund der am {canceledAt} gekündigten Subscription beendet und die Daten werden bis zum {deadline} vorgehalten. Bevor die Daten gelöscht werden, können Sie die Daten in DID Spaces sichern.",terminated:"Anwendung beendet"},setup:{steps:{connect:"Verbinden",didSpace:"DID Spaces",config:"Konfiguration",domain:"Domain",access:"Zugangskontrolle",fuel:"Kraftstoff",complete:"Komplett",introduction:"Einführung",selectNodeDesc:"Wähle Blocklet Server aus",launchAppDesc:"Blocklet auf Server installieren",setupAppDesc:"Setup Blocklet",launched:"Vervollständigen"},connect:{title:"Verbinde mit Anwendung",scan:"Verbinden Sie Ihre DID Wallet, um das Benutzerprofil und die Eigentümerrechte des Blocklets bereitzustellen. Anschließend können Sie die App konfigurieren und starten.",confirm:"Bestätigen Sie in Ihrer DID-Brieftasche",success:"Sie sind erfolgreich verbunden"},domain:{addTitle:"Fügen Sie einen neuen Domänennamen hinzu (Optional)",title:"Domain Einstellung",subTitle:"Legen Sie eine benutzerdefinierte Domain für die Anwendung fest",label:"Bitte geben Sie einen gültigen Domainnamen an",tipStart:"Bitte stellen Sie sicher",tipEnd:"Hat Punkt zum aktuellen Server",cannotResolve:"{domain} kann nicht aufgelöst werden, bitte überprüfen Sie Ihre DNS-Konfiguration.",checkingResolvable:"Überprüfe den Domain-Status...",addingCert:"Zertifikat wird erstellt...",addingDomain:"Domain wird hinzugefügt...",recordType:"Datentyp",recordValue:"Aufzeichnungswert",skipStart:"Du kannst",skip:"Überspringe die benutzerdefinierte Domaineinstellung",skipEnd:"und verwenden Sie die Standarddomäne, um auf die Anwendung zuzugreifen",genCertSuccess:"Das {domain}-Zertifikat wurde erfolgreich ausgestellt",genCertFailed:"Fehler beim Ausstellen des Zertifikats für {domain}: {message}",genCertFailedForNFTDomain:"NFT-Domain erfolgreich hinzugefügt, aber das HTTPS-Zertifikat konnte nicht generiert werden. Bitte versuche es später erneut.",resolvedAddressError:"{domain} zeigt nicht auf die gleiche IP-Adresse wie {curDomain}",invalidDNSReminder:"{error}. Sie können jedoch weiterhin die Domain hinzufügen, aber eine automatische Zertifikatserstellung ist nicht verfügbar.",continueAdd:"Weiter hinzufügen"},didSpace:{title:"Konfigurieren Sie DID Spaces",subTitle:"Bitte schließen Sie den folgenden Verbindungsvorgang ab, um Anwendungsdaten in DID Spaces zu speichern.",tips:"Tipps",description:"Konfigurieren Sie die DID Spaces Instanzadresse und speichern Sie die Anwendungsdaten in DID Spaces nach einer erfolgreichen Verbindung",label:"Bitte wählen Sie den DID Spaces-Dienst",connected:"Sie haben erfolgreich eine Verbindung mit DID Spaces hergestellt",connect:"Verbinden Sie jetzt",reconnect:"Verbinden",addressCannotEmpty:"Die Adresse darf nicht leer sein",addressNotValid:"{url} ist keine gültige Adresse.",authorize:{title:"Verbinde {appName} mit DID Spaces",scan:"Verwenden Sie Ihre DID-Geldbörse, um den QR-Code unten zu scannen und der App {appName} den Zugriff auf DID-Räume zu ermöglichen",success:"Erfolgreich verbunden"}},config:{title:"Konfiguration",subTitle:"Andere Konfigurationselemente (Sie müssen auch die folgenden Elemente festlegen)"},complete:{title:"Alles ist bereit",failedTitle:"Fehler beim Starten des Blocklets",backToServer:"Zurück zum Blocklet Server",notRunning:"Blocklet konnte beim ersten Versuch nicht gestartet werden, bitte erneut versuchen"},fuel:{title:"Kraftstoff zum Starten erforderlich",tipStart:"Schlitz",tipEnd:"Für diese Anwendung ist eine Guthaben erforderlich, damit die Anwendung ordnungsgemäß funktionieren kann. Die Gelder werden in der Anwendungsbrieftasche gespeichert und können für Transaktionsgebühren verwendet werden. Sie können Ihr Guthaben jederzeit abheben, wenn Sie die App nicht mehr verwenden.",addressTitle:"Anwendungskonto",addressTip:"Befüllen Sie die Anwendung mit einer DID Wallet",need:"Brauchen",current:"Aktuell",fuelApp:"Anwendung mit Treibstoff versorgen"},title:"Aufbau",next:"Nächster",previous:"Vorherige",continue:"Weiter",skip:"Überspringen",startNow:"Starte jetzt",confirm:"Bestätigen",cancel:"Abbrechen"},user:{walletNotification:"DID Wallet Benachrichtigung",emailNotification:"E-Mail-Benachrichtigung",smsNotification:"SMS-Benachrichtigung",addWebhook:"Neuen Webhook hinzufügen"},pageTitle:{login:"Anmelden",dashboard:"Blocklet-Dashboard",userCenter:"Benutzerzentrum",invite:"Einladen",issuePassport:"Reisepass ausstellen",lostPassort:"Verloren Reisepass"}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,D as p,L as d,P as r}from"./index-
|
|
1
|
+
import{j as s,D as p,L as d,P as r}from"./index-BUs00uPs.js";import{E as l}from"./Link-DEgb7b4S.js";function a({did:n,href:t,external:o,avatarProps:x,...i}){const e=s.jsx(p,{did:n,...i});return t?o?s.jsx(l,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}a.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};a.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{a as W};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,r,a0 as P,
|
|
1
|
+
import{j as i,r,a0 as P,aj as C,a7 as T,fy as B,a4 as h,B as a,P as f,Z as w}from"./index-BUs00uPs.js";import{D as E,a as b,A as I}from"./domain-list-On7x8b1i.js";import{P as A}from"./page-header-DtuvpAXI.js";import{_ as L}from"./useSetState-BQyW0id3.js";import{S as d}from"./button-Dh36Whbv.js";import{S as W}from"./layout-DFuxjkrE.js";import{S as _}from"./step-actions-BzKdFGVC.js";import"./Add-DYawrlLL.js";import"./ExpandMore-C8Kjhem0.js";import"./LockIcon-3Wp4auIp.js";import"./index-DSqbwZ5j.js";import"./did-address-Do2yzULT.js";import"./Link-DEgb7b4S.js";import"./permission-DaCv0YJT.js";import"./useAsync-D7A4lSIu.js";import"./session-C2GbCLtF.js";import"./confirm-BYJUxBIc.js";import"./format-error-Blhy9VT0.js";import"./Alert-BTshuaNi.js";import"./useSlot-Cpwm_EEO.js";import"./use-mobile-BecyuRyS.js";import"./InfoOutlined-xAH33Hqk.js";import"./OpenInNew-CVAUGBhw.js";import"./index-BmyGxs6V.js";import"./api-CDVr_ngS.js";import"./index-RTMFvlSa.js";import"./util-9GOVpsde.js";import"./TextField-wNnDxiyn.js";import"./FormControl-Bf6hyrkL.js";import"./useFormControl-BPoGiGgv.js";import"./InputLabel-B0gnxWIe.js";import"./Select-BVyfzCHz.js";import"./LoadingButton-B-2TPjWV.js";import"./useThemeProps-B5GmRF_7.js";import"./Delete-Be_ghnzM.js";import"./actions-C1eqo0hd.js";import"./ListItemText-BsB4f1L-.js";import"./content-layout-CQh4TzyI.js";function p({onNext:s,onPrevious:D}){var u,x;const{t:e}=r.useContext(P),[S,l]=r.useState(!1),{blocklet:o}=C(),[c,j]=r.useState(""),y=(((o==null?void 0:o.site)||{}).domainAliases||[]).map(t=>T.replaceSlotToIp(t.value,c)),[n,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),v=(x=(u=o.environments)==null?void 0:u.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:x.value,g=y.find(t=>B.isDidDomain(t));return r.useEffect(()=>{h.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{j(t.address||"")}).catch(t=>{console.error(t.message)})},[]),i.jsxs(z,{children:[i.jsx("div",{className:"header",children:i.jsx(A,{title:e("setup.domain.title"),subTitle:e("setup.domain.subTitle"),onClickBack:D})}),i.jsxs(a,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[i.jsxs(a,{children:[i.jsxs(a,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[i.jsx(a,{display:"inline",children:e("setup.domain.skipStart")}),i.jsx(d,{variant:"text",size:"small",disabled:!!n.addDomainState.text,onClick:()=>s(),style:{paddingTop:0},children:i.jsx("span",{style:{textDecoration:"underline"},children:e("setup.domain.skip")})}),i.jsx(a,{display:"inline",children:e("setup.domain.skipEnd")})]}),i.jsx(a,{sx:{marginTop:"12px"},children:i.jsx(b,{listOnly:!0,inSetup:!0})})]}),i.jsxs(a,{children:[i.jsx(a,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:e("setup.domain.addTitle")}),i.jsx(I,{autoFocus:!1,appPk:v,appId:o.appPid,siteId:o.site.id,teamDid:o.meta.did,sx:{marginTop:"12px"},cnameDomain:g,currentIp:c,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:t=>h.get(`/dns-resolve?hostname=${t}`),onInputDomain:t=>{m({domain:t.domain,type:t.type}),l(t.error)},onStateChange:t=>m({addDomainState:t}),onSuccess:t=>{const k={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};m(k),s()},onError:l})]})]}),i.jsx(_,{mt:8,disabled:!!n.addDomainState.text,blocklet:o,onStartNow:()=>s("complete"),children:n.domain?i.jsx(d,{variant:"contained",loading:!!n.addDomainState.text,disabled:S||!!n.addDomainState.text||!n.domain,onClick:()=>s(),children:n.addDomainState.text||e("setup.next")}):i.jsx(d,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:e("setup.skip")})})]})}function kt(s){return i.jsx(E,{children:i.jsx(p,{...s})})}p.propTypes={onNext:f.func,onPrevious:f.func};p.defaultProps={onNext:()=>{},onPrevious:()=>{}};const z=w(W)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: hidden;
|
|
4
4
|
.form {
|