@abtnode/blocklet-services 1.16.32-beta-04a5da00 → 1.16.32-beta-4d47ae7f
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/services/auth/connect/receive-transfer-app-owner.js +8 -5
- package/dist/assets/{Add-2VoKTpUb.js → Add-D8_0U-mi.js} +1 -1
- package/dist/assets/{AddBox-Dl7mso27.js → AddBox-BpwHbwbG.js} +1 -1
- package/dist/assets/{Alert-DPUEB95E.js → Alert-Dlco0B3L.js} +1 -1
- package/dist/assets/{ArrowDropDown-0yDa2aHH.js → ArrowDropDown-exkF-BIK.js} +1 -1
- package/dist/assets/{Avatar-Cw952dlh.js → Avatar-B1SFM1MR.js} +1 -1
- package/dist/assets/{ButtonGroup-d0oDm0RO.js → ButtonGroup-CTrZ2Hyv.js} +1 -1
- package/dist/assets/{CheckCircle-CyZ2-BIj.js → CheckCircle-BNxyw6NJ.js} +1 -1
- package/dist/assets/{ChevronRight-DDyzifk9.js → ChevronRight-DBpo88DV.js} +1 -1
- package/dist/assets/{Close-BkBXMJo_.js → Close-DgxsFA7q.js} +1 -1
- package/dist/assets/{CloseOutlined-DmlGPmzq.js → CloseOutlined-CN4iKY7n.js} +1 -1
- package/dist/assets/{Delete-B2wSgiTE.js → Delete-BaSq9RZZ.js} +1 -1
- package/dist/assets/{DeleteOutline-BMqkCxEq.js → DeleteOutline-Du2BPdlg.js} +1 -1
- package/dist/assets/{Done-ZAZhEq2L.js → Done-BG-Fw8ts.js} +1 -1
- package/dist/assets/{Download-1xH6mRbf.js → Download-C1y29u9K.js} +1 -1
- package/dist/assets/{Edit-MvOKdBEJ.js → Edit-u2-N8rQN.js} +1 -1
- package/dist/assets/{EditIcon-B68lRQt1.js → EditIcon-B2Y7T-CN.js} +1 -1
- package/dist/assets/{Error-xmdfCNYq.js → Error-B1K0WhCp.js} +1 -1
- package/dist/assets/{ExpandMore-DkoxrM3F.js → ExpandMore-DBQIHjkB.js} +1 -1
- package/dist/assets/{FilterList-DbTqBTrF.js → FilterList-DumRQ8ls.js} +4 -4
- package/dist/assets/{FormControl-BUn4wQGt.js → FormControl-CeSJJZgZ.js} +1 -1
- package/dist/assets/{FormControlLabel-Cn1ZEQIw.js → FormControlLabel-CpH9LTeH.js} +1 -1
- package/dist/assets/{FormGroup-BDqHH6R7.js → FormGroup-B0Xdxgiy.js} +1 -1
- package/dist/assets/{Google-DwKupHqA.js → Google-CvB2nYH_.js} +1 -1
- package/dist/assets/Hidden-DJwWGZh0.js +1 -0
- package/dist/assets/{InfoOutlined-CgNZyv9N.js → InfoOutlined-BIY-Lnxg.js} +1 -1
- package/dist/assets/{InputAdornment-DKErxOxA.js → InputAdornment-VVruavKc.js} +1 -1
- package/dist/assets/{InputLabel-BU0FzAth.js → InputLabel-3M9sMlBq.js} +1 -1
- package/dist/assets/{LastPage-BRQIhdX7.js → LastPage-CBInTPpp.js} +1 -1
- package/dist/assets/{Launch-DZvL7Btt.js → Launch-Dhq-grBI.js} +1 -1
- package/dist/assets/{LaunchOutlined-BEo8P2Tl.js → LaunchOutlined-DnkKRXxH.js} +1 -1
- package/dist/assets/{Link-CPGMRK--.js → Link-Cpnh7s1v.js} +1 -1
- package/dist/assets/{ListItemText-D00e-P7J.js → ListItemText-CHjUage1.js} +1 -1
- package/dist/assets/{LoadingButton-Dnokttyl.js → LoadingButton-C47nsxMx.js} +1 -1
- package/dist/assets/{LockIcon-lwFTQyw5.js → LockIcon-CoUaWmH-.js} +1 -1
- package/dist/assets/{Loop-UQ-nGsCg.js → Loop-CbcENVkw.js} +1 -1
- package/dist/assets/{MoreHoriz-ClHVZaho.js → MoreHoriz-B4gnOmnB.js} +1 -1
- package/dist/assets/{MoreVert-D7siuKO-.js → MoreVert-CBWkVJTE.js} +1 -1
- package/dist/assets/{OpenInNew-Dn1FcPSH.js → OpenInNew-svkkbJCn.js} +1 -1
- package/dist/assets/{Pagination-EqcGDqMl.js → Pagination-BBwBFjSJ.js} +1 -1
- package/dist/assets/{PlayArrow-CnWuAQ7W.js → PlayArrow-D-mvqfoj.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-B7Bpx0cE.js → QuestionMarkCircle-Duxt-AlB.js} +1 -1
- package/dist/assets/{RadioGroup-Bu2zmWw_.js → RadioGroup-C4DI71vM.js} +1 -1
- package/dist/assets/{Search-CQlVySI6.js → Search-BOxcXluh.js} +1 -1
- package/dist/assets/{Select-BzfN1x8W.js → Select-drnrjZt8.js} +1 -1
- package/dist/assets/{ServerLogo-DfCDjLNl.js → ServerLogo-CxVp5JLf.js} +1 -1
- package/dist/assets/{Skeleton-DqrgKJha.js → Skeleton-YurB3EC5.js} +1 -1
- package/dist/assets/{Slider-BtNkKS5B.js → Slider-BX1l_Lvj.js} +1 -1
- package/dist/assets/{Stepper-xGvqwz44.js → Stepper-UV_DHoEg.js} +1 -1
- package/dist/assets/{TextField-OgHHL_KP.js → TextField-D_Jtjg13.js} +1 -1
- package/dist/assets/{Toolbar-IW4D_zYa.js → Toolbar-D7_EWzTj.js} +1 -1
- package/dist/assets/{ViewList-BFQT-hmR.js → ViewList-Bwkry3LO.js} +1 -1
- package/dist/assets/access-control-YUBGali8.js +13 -0
- package/dist/assets/actions-5mXSkQB4.js +1 -0
- package/dist/assets/{add-component-core-BPcx3JYq.js → add-component-core-DFH5qH7x.js} +1 -1
- package/dist/assets/add-resource-BJ9u32jP.js +1 -0
- package/dist/assets/addon-CUxwPHa_.js +31 -0
- package/dist/assets/{analytics-C434vWOY.js → analytics-B29460Yu.js} +1 -1
- package/dist/assets/api-DbvHYaVa.js +1 -0
- package/dist/assets/audit-logs-C1AOwGce.js +58 -0
- package/dist/assets/{button-CR8UEQyZ.js → button-BqgSoT0h.js} +1 -1
- package/dist/assets/{click-to-copy-3x1G9XH4.js → click-to-copy-CM2U6JEg.js} +1 -1
- package/dist/assets/{complete-k3Qs8bm-.js → complete-DaiPBjLS.js} +4 -4
- package/dist/assets/{component-D-I8mVct.js → component-npmbPVSM.js} +1 -1
- package/dist/assets/{config-D3UgjDma.js → config-BygYwcXq.js} +1 -1
- package/dist/assets/{config-D5HYWnF4.js → config-CxG4Kz4G.js} +2 -2
- package/dist/assets/{config-navigation-CpN5oPZv.js → config-navigation-Rsc7sQGs.js} +1 -1
- package/dist/assets/confirm-3b8GTIgU.js +7 -0
- package/dist/assets/{connect-D07YGJkK.js → connect-26mFy5d9.js} +1 -1
- package/dist/assets/connect-B87FT6ev.js +5 -0
- package/dist/assets/connect-to-B0Td9yUD.js +54 -0
- package/dist/assets/{content-layout-DPij9Nh6.js → content-layout-B7X0Mv3n.js} +1 -1
- package/dist/assets/{dashboard-BeSQUyuf.js → dashboard-BrV_SESr.js} +8 -8
- package/dist/assets/{did-address-43xkXM21.js → did-address-BWnma-3-.js} +1 -1
- package/dist/assets/domain-CkCbH8sj.js +9 -0
- package/dist/assets/domain-list-wgNQeEgv.js +15 -0
- package/dist/assets/{exchange-passport--fiEF2lu.js → exchange-passport-BZ8Q-G3h.js} +1 -1
- package/dist/assets/{fallback-Cn_W-m4r.js → fallback-C5E1lZAR.js} +1 -1
- package/dist/assets/{format-error-Bn7NObKb.js → format-error-BVI56bJg.js} +1 -1
- package/dist/assets/fuel-XF4sXoDA.js +32 -0
- package/dist/assets/fullpage-BOyZgu9A.js +1 -0
- package/dist/assets/{home-C1E0r4u0.js → home-Dajv5NTd.js} +1 -1
- package/dist/assets/{iframe-EFuUBe3_.js → iframe-CmugPIuF.js} +1 -1
- package/dist/assets/{index-BnsMQNE7.js → index-2xySyQ5i.js} +2 -2
- package/dist/assets/{index-CKp5dXwW.js → index-B0NvcpjT.js} +1 -1
- package/dist/assets/index-B7Un-ZeO.js +68 -0
- package/dist/assets/{index-Bdey46ix.js → index-BK4259Qj.js} +1 -1
- package/dist/assets/index-BP53WpUP.js +4 -0
- package/dist/assets/{index-Cb0PVWPM.js → index-BRJLJSjg.js} +2 -2
- package/dist/assets/{index-CosdjVLd.js → index-BiafpQ0u.js} +16 -16
- package/dist/assets/index-BisUmH-h.js +1 -0
- package/dist/assets/index-BrcKk7u6.js +1 -0
- package/dist/assets/{index-QiNYWFY0.js → index-BtQK2llU.js} +1 -1
- package/dist/assets/{index-cz02fWRO.js → index-BtQOF6n3.js} +1 -1
- package/dist/assets/{index-DFjXeol_.js → index-BvZ1bsPZ.js} +1 -1
- package/dist/assets/{index-BtPZTcXb.js → index-C0qYe9TG.js} +1 -1
- package/dist/assets/{index-Dg03Eob-.js → index-C1Puqx4M.js} +1 -1
- package/dist/assets/{index-DesPWyQa.js → index-C2sin8wt.js} +1 -1
- package/dist/assets/{index-xkcMt7XQ.js → index-CFmNTsQh.js} +1 -1
- package/dist/assets/{index-s7iKiLXT.js → index-CLQi4cVY.js} +6 -6
- package/dist/assets/{index-CjW-BiBJ.js → index-CTFB4nHV.js} +1 -1
- package/dist/assets/{index-oDZbyv4v.js → index-Ca5y7O4k.js} +4 -4
- package/dist/assets/{index-BJtcCGWr.js → index-Cixwi4BX.js} +1 -1
- package/dist/assets/index-CrurRDDC.js +1 -0
- package/dist/assets/{index-C0SGixzY.js → index-D0ZBFe_v.js} +9 -9
- package/dist/assets/{index-UGGSjH4u.js → index-D5lkEFWM.js} +1 -1
- package/dist/assets/{index-CvPYqGkG.js → index-DCkU-F0r.js} +1 -1
- package/dist/assets/{index-BLVcicxZ.js → index-DHNVLiI8.js} +1 -1
- package/dist/assets/{index-CTfT52DI.js → index-DPyKucXe.js} +1 -1
- package/dist/assets/{index-BCp3frMn.js → index-Dcphtm5y.js} +1 -1
- package/dist/assets/{index-DIxJxM78.js → index-DfZjT3WA.js} +2 -2
- package/dist/assets/{index-BZUzIWGh.js → index-TlMkikTm.js} +1 -1
- package/dist/assets/{index-D5vX4Ooa.js → index-UKHQeYs5.js} +1 -1
- package/dist/assets/{index-DwqzQo9e.js → index-hv_yaUi2.js} +5 -5
- package/dist/assets/{index-Cvw6NSyS.js → index-p81jbN_h.js} +1 -1
- package/dist/assets/{index.es-DohPHCUD.js → index.es-w-0rtBPs.js} +1 -1
- package/dist/assets/{index.esm-Beu0fK3G.js → index.esm-CptJw3C8.js} +1 -1
- package/dist/assets/{invitation-c2LXgJZO.js → invitation-KAlNPJe6.js} +2 -2
- package/dist/assets/invite-C_RF0Rm2.js +10 -0
- package/dist/assets/{issue-passport-CCZaXyql.js → issue-passport-DM7CKvcB.js} +1 -1
- package/dist/assets/{item-CBjm7rgp.js → item-DIkrlQMP.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-D6EO5AkF.js → jss-plugin-props-sort.esm-BzROyw1n.js} +1 -1
- package/dist/assets/{launch-result-message-DAGuAhAQ.js → launch-result-message-CIfX9Pg1.js} +1 -1
- package/dist/assets/{layout-oG70Renu.js → layout-Bb2LZLxa.js} +2 -2
- package/dist/assets/list-header-BDhQIu5L.js +57 -0
- package/dist/assets/localization-V0WRiXKC.js +1 -0
- package/dist/assets/{log-BmIrjtPp.js → log-o0iKO5dx.js} +1 -1
- package/dist/assets/{login-juMWHvtW.js → login-B9UvusG-.js} +1 -1
- package/dist/assets/{login-oauth-callback-_A65YhiH.js → login-oauth-callback-cZ3oa4a_.js} +1 -1
- package/dist/assets/{logo-uploader-P1VlMV5V.js → logo-uploader-D4yqBa_O.js} +3 -3
- package/dist/assets/{lost-passport-BkiX_vW7.js → lost-passport-soFqeEb7.js} +4 -4
- package/dist/assets/{lottie-Cf2K1-ns.js → lottie-DsjCdNh-.js} +1 -1
- package/dist/assets/notifications-B9Mu8Fxb.js +62 -0
- package/dist/assets/{open-window-DvlHyaGG.js → open-window-B5RcEIrm.js} +1 -1
- package/dist/assets/overview-CFbnZdV0.js +12 -0
- package/dist/assets/page-header-BvuGyCDw.js +31 -0
- package/dist/assets/{permission-DaB1xF5g.js → permission-BuA9Zt4q.js} +1 -1
- package/dist/assets/{preferences-Td5o-d6-.js → preferences-BzcjmMUC.js} +1 -1
- package/dist/assets/publish-resource-DwhFCZXw.js +1 -0
- package/dist/assets/{react-CwZHH_b9.js → react-CwUjkFxY.js} +3 -3
- package/dist/assets/{redux-uiwtTAq3.js → redux-BDPBPXLM.js} +1 -1
- package/dist/assets/{resource-dialog-D8uC-XQU.js → resource-dialog-BBzXGjTp.js} +1 -1
- package/dist/assets/sdk-CI7TJ_xu.js +1 -0
- package/dist/assets/selector-DktPytoX.js +48 -0
- package/dist/assets/session-Cw-dytKR.js +1 -0
- package/dist/assets/setup-DRfpHXNv.js +19 -0
- package/dist/assets/{shorten-label-DHOOsTvW.js → shorten-label-3owfLRzi.js} +1 -1
- package/dist/assets/{slicedToArray-shTeAcQc.js → slicedToArray-CQG0j1sa.js} +1 -1
- package/dist/assets/{spaces-BirpDOm3.js → spaces-DDj9ynWl.js} +1 -1
- package/dist/assets/start-DCKDZC67.js +187 -0
- package/dist/assets/step-actions-CoJc8417.js +31 -0
- package/dist/assets/studio-B_0UB40R.js +6 -0
- package/dist/assets/switch-control-Bun_5Zkk.js +13 -0
- package/dist/assets/{toUpper-BAGcwHI1.js → toUpper-Bf_TQKK7.js} +1 -1
- package/dist/assets/transfer-C7Cxyvnx.js +16 -0
- package/dist/assets/{uniqBy-C2dKepDX.js → uniqBy-BqI7ffNX.js} +1 -1
- package/dist/assets/{unsubscribe-CLOTSJNJ.js → unsubscribe-B-iaO9gM.js} +1 -1
- package/dist/assets/{url-join-CTlMVeSl.js → url-join-BoNn2Qh7.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BniHEOwv.js → use-blocklet-info-for-connect-did-spaces-CfK0RcTD.js} +1 -1
- package/dist/assets/use-mobile-C19pzcVe.js +1 -0
- package/dist/assets/{useAsync-C-N7xB1Q.js → useAsync-Ca_M5Jhn.js} +1 -1
- package/dist/assets/{useFormControl-DqoBF9iH.js → useFormControl-Cs3LGXJe.js} +1 -1
- package/dist/assets/{useLocalStorage-kWCrVKjB.js → useLocalStorage-3-rj5S6B.js} +1 -1
- package/dist/assets/{useSetState-B68uVZku.js → useSetState-BTR-3GfC.js} +1 -1
- package/dist/assets/{useSlot-CQP4hUUG.js → useSlot-C1f6ZTLt.js} +1 -1
- package/dist/assets/{useSlotProps-DMBoZT8C.js → useSlotProps-CCXsWmb3.js} +1 -1
- package/dist/assets/{useThemeProps-V4iYGCCr.js → useThemeProps-BjkDmxHT.js} +1 -1
- package/dist/assets/user-center-BN2FDsvO.js +1 -0
- package/dist/assets/user-sessions-BIEmgTqD.js +1 -0
- package/dist/assets/{util-D_sPE-Qe.js → util-DBNeRhAr.js} +1 -1
- package/dist/assets/{wrap-locale-BrsNecIZ.js → wrap-locale-D7L9anic.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/Hidden-w-nWLLe2.js +0 -1
- package/dist/assets/access-control-2b9mvnB3.js +0 -13
- package/dist/assets/actions-DaKlRJnV.js +0 -1
- package/dist/assets/add-resource-2dxnZcDy.js +0 -1
- package/dist/assets/addon-CSAbVfSS.js +0 -31
- package/dist/assets/api-_ltIr2BU.js +0 -1
- package/dist/assets/audit-logs-CZte5uoR.js +0 -58
- package/dist/assets/confirm-CtLbKcS0.js +0 -7
- package/dist/assets/connect-B7XAaWGG.js +0 -5
- package/dist/assets/connect-to-COqWAMKF.js +0 -54
- package/dist/assets/domain-4Nq3hHWj.js +0 -9
- package/dist/assets/domain-list-M6G-dRKq.js +0 -15
- package/dist/assets/fuel-Df5fciLt.js +0 -32
- package/dist/assets/fullpage-DTRlawT9.js +0 -1
- package/dist/assets/index-98pN37bN.js +0 -4
- package/dist/assets/index-B29G6Shi.js +0 -1
- package/dist/assets/index-BrwvkAJ2.js +0 -68
- package/dist/assets/index-Bup-bUaa.js +0 -1
- package/dist/assets/index-D9l4FLNE.js +0 -1
- package/dist/assets/invite-um-OhXL2.js +0 -10
- package/dist/assets/list-header-DfX9T1rW.js +0 -57
- package/dist/assets/localization-C8kIKwrb.js +0 -1
- package/dist/assets/notifications-DwrtVs17.js +0 -62
- package/dist/assets/overview-BIRtop8p.js +0 -12
- package/dist/assets/page-header-CNwTM6gh.js +0 -31
- package/dist/assets/publish-resource-WQmyUOcm.js +0 -1
- package/dist/assets/sdk-ByGrtgOC.js +0 -1
- package/dist/assets/selector-CLP7imhL.js +0 -48
- package/dist/assets/session-BmQaZaGU.js +0 -1
- package/dist/assets/setup-WlrDU92w.js +0 -19
- package/dist/assets/start-pnT_BQvG.js +0 -187
- package/dist/assets/step-actions-Dj3cCBJ3.js +0 -31
- package/dist/assets/studio-D3LuzSrd.js +0 -6
- package/dist/assets/switch-control-dGBNspU7.js +0 -13
- package/dist/assets/transfer-BPGSieyR.js +0 -16
- package/dist/assets/use-mobile-coO1LYtd.js +0 -1
- package/dist/assets/user-center-B6VeBSYd.js +0 -1
- package/dist/assets/user-sessions-Bdav9S_E.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-
|
|
2
|
-
import{r as x,aF as Yn,aG as Jn,aH as Nt,aI as W,aJ as er,aK as tr,aL as ge,aM as Pn,aN as vt,j as c,aO as nr,aP as ho,Z as B,$ as z,P as m,a0 as Ye,e as Je,aQ as ye,a2 as Mt,a9 as k,ab as Y,aR as Ne,aD as Ut,aS as vo,L as kt,aT as yt,aU as yo,n as te,a3 as he,G as $,T as G,t as J,aV as xo,aW as bo,c as Be,aX as jo,aY as xt,u as Q,aZ as wo,B as D,K as So,a_ as _o,a as He,a$ as Co,b0 as Oo,b1 as Po,b2 as Io,b3 as Eo,b4 as Ro,b5 as To,b6 as Lo,b7 as Do,b8 as rr,b9 as Ao,ba as $o,bb as No,bc as or,bd as sr,be as ir,a1 as et,bf as ar,bg as ce,bh as me,bi as Bt,bj as cr,bk as Mo,ag as qe,ak as Uo,bl as ko,bm as Bo,bn as zo,aj as Fo,bo as Vo,bp as Ho,al as Ee,bq as qo,aC as Ko,C as Ke,br as Wo,bs as Go,bt as _e,bu as lr,bv as Qo,ae as In,a8 as Xo,ac as Zo,af as Yo,ah as Jo,bw as ze,a7 as Me,bx as es,H as ts,a4 as F,by as ns,aq as rs,V as En}from"./index-DIxJxM78.js";import{T as os}from"./index-B29G6Shi.js";import{_ as Rn}from"./useLocalStorage-kWCrVKjB.js";import{d as ss}from"./MoreVert-D7siuKO-.js";import{C as Tn}from"./confirm-CtLbKcS0.js";import{d as is}from"./Delete-B2wSgiTE.js";import{d as as,u as cs}from"./PlayArrow-CnWuAQ7W.js";import{A as ur}from"./Alert-DPUEB95E.js";import{L as ls,a as dr}from"./ListItemText-D00e-P7J.js";import{B as us}from"./ButtonGroup-d0oDm0RO.js";import{R as ds,a as Ln}from"./RadioGroup-Bu2zmWw_.js";import{F as bt,C as fs}from"./FormControlLabel-Cn1ZEQIw.js";import{f as zt}from"./format-error-Bn7NObKb.js";import{A as fr}from"./Avatar-Cw952dlh.js";import{u as ps}from"./session-BmQaZaGU.js";import{D as ms,_ as pr,P as gs}from"./permission-DaB1xF5g.js";import{T as mr,b as hs}from"./index-CvPYqGkG.js";import{L as gr}from"./Link-CPGMRK--.js";import{_ as hr}from"./useSetState-B68uVZku.js";import{E as vs}from"./fallback-Cn_W-m4r.js";import{u as ys}from"./index-C0SGixzY.js";import{L as xs,D as bs}from"./index-Cb0PVWPM.js";const vr=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function js(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=vr({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 ws(e){return Jn("MuiBadge",e)}const re=Yn("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"]),Ss=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,_s=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`,`anchorOrigin${W(n.vertical)}${W(n.horizontal)}${W(o)}`,`overlap${W(o)}`,t!=="default"&&`color${W(t)}`]};return nr(a,ws,s)},Cs=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Os=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}${W(n.overlap)}`],n.color!=="default"&&t[`color${W(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:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,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:dt,height:dt*2,minWidth:dt*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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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})}}]}}),yr=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=er({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:j="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:w,slots:O,slotProps:S,showZero:R=!1,variant:C="standard"}=u,P=tr(u,Ss),{badgeContent:E,invisible:T,max:ne,displayValue:M}=js({max:_,invisible:g,badgeContent:w,showZero:R}),be=vr({anchorOrigin:d,color:I,overlap:j,variant:C,badgeContent:w}),je=T||E==null&&C!=="dot",{color:it=I,overlap:at=j,anchorOrigin:ct=d,variant:ie=C}=je?be:u,y=ie!=="dot"?M:void 0,L=ge({},u,{badgeContent:E,invisible:je,max:ne,displayValue:y,showZero:R,anchorOrigin:ct,color:it,overlap:at,variant:ie}),V=_s(L),H=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:Cs,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:Os,q=(a=S==null?void 0:S.root)!=null?a:b.root,N=(l=S==null?void 0:S.badge)!=null?l:b.badge,lt=Pn({elementType:H,externalSlotProps:q,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:L,className:vt(q==null?void 0:q.className,V.root,f)}),de=Pn({elementType:X,externalSlotProps:N,ownerState:L,className:vt(V.badge,N==null?void 0:N.className)});return c.jsxs(H,ge({},lt,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))});function Ps(e){return Jn("MuiListItemAvatar",e)}Yn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Is=["className"],Es=e=>{const{alignItems:t,classes:n}=e;return nr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ps,n)},Rs=Nt("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})),Ts=x.forwardRef(function(t,n){const r=er({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=tr(r,Is),s=x.useContext(ho),a=ge({},r,{alignItems:s.alignItems}),l=Es(a);return c.jsx(Rs,ge({className:vt(l.root,o),ownerState:a,ref:n},i))});var Ft={},Ls=z;Object.defineProperty(Ft,"__esModule",{value:!0});var xr=Ft.default=void 0,Ds=Ls(B()),As=c;xr=Ft.default=(0,Ds.default)((0,As.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},$s=z;Object.defineProperty(Vt,"__esModule",{value:!0});var br=Vt.default=void 0,Ns=$s(B()),Ms=c;br=Vt.default=(0,Ns.default)((0,Ms.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 Ht={},Us=z;Object.defineProperty(Ht,"__esModule",{value:!0});var jr=Ht.default=void 0,ks=Us(B()),Bs=c;jr=Ht.default=(0,ks.default)((0,Bs.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 qt={},zs=z;Object.defineProperty(qt,"__esModule",{value:!0});var wr=qt.default=void 0,Fs=zs(B()),Vs=c;wr=qt.default=(0,Fs.default)((0,Vs.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 Kt={},Hs=z;Object.defineProperty(Kt,"__esModule",{value:!0});var Sr=Kt.default=void 0,qs=Hs(B()),Ks=c;Sr=Kt.default=(0,qs.default)((0,Ks.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 Wt={},Ws=z;Object.defineProperty(Wt,"__esModule",{value:!0});var _r=Wt.default=void 0,Gs=Ws(B()),Qs=c;_r=Wt.default=(0,Gs.default)((0,Qs.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 Gt={},Xs=z;Object.defineProperty(Gt,"__esModule",{value:!0});var Cr=Gt.default=void 0,Zs=Xs(B()),Ys=c;Cr=Gt.default=(0,Zs.default)((0,Ys.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 Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Or=Qt.default=void 0;Js(x);var Dn=c;function Js(e){return e&&e.__esModule?e:{default:e}}function An(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 $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ei(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e){var t=ni(e,"string");return typeof t=="symbol"?t:t+""}function ni(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 Xt=function(t){return(0,Dn.jsx)("svg",$n($n({},t),{},{children:(0,Dn.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"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";Or=Qt.default=Xt;var Zt={},ri=z;Object.defineProperty(Zt,"__esModule",{value:!0});var Pr=Zt.default=void 0,oi=ri(B()),si=c;Pr=Zt.default=(0,oi.default)((0,si.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const pe={Start:as,Stop:xr,Restart:br,Reload:jr,Remove:is,Config:wr,Log:Sr,Group:_r,Cancel:Cr,Dashboard:Or,Overview:Pr},ii="internal",ai="external";function Yt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=Je(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[j,I]=x.useState(null),{t:g}=x.useContext(Mt),[_]=Rn("skip-blocklet-setup",!1),{loading:w,recommendedUrl:O}=s(e),[S]=Rn("blocklet-type-filter",ii),R=k.isInProgress(e.status),[C,P]=x.useState(!1);x.useEffect(()=>{var L,V;if(!(e!=null&&e.controller))return;P(((V=(L=e==null?void 0:e.controller)==null?void 0:L.status)==null?void 0:V.value)===Y.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var H,X,q;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(H=e==null?void 0:e.controller)==null?void 0:H.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}P([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((q=N==null?void 0:N.launcherSession)==null?void 0:q.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:E}=u,T=(y,L,V=!1)=>async()=>{const H=async de=>{var $e;t({action:y,blocklet:e}),h(!0),v(y);let Ae=!1;try{if(y==="remove")await L(de);else if(y==="start"){if(!k.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!E&&!_&&!(($e=e.settings)!=null&&$e.initialized)&&e.mode!==Y.BLOCKLET_MODES.DEVELOPMENT){const Z=xo(u.info),On=new URL(O);On.searchParams.set("serverUrl",Z),window.open(On.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Z=>!k.isInProgress(Z.status)&&Z.status!=="running").map(Z=>Z.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else if(["stop","restart","reload"].includes(y)){const ae=e.children.filter(Z=>Z.status==="running").map(Z=>Z.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else{const ae={did:e.meta.did};await L({input:ae})}y==="remove"?Ae=!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: ${zt(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Ae||h(!1)}},X=()=>{h(!1),I(null)},q=k.getDisplayName(e,!0),N=e.mode===Y.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(G,{component:"div",children:c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Ae)=>c.jsxs(G,{component:"div",children:[c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ds,{name:"removeType",value:de.removeType,onChange:$e=>Ae({...de,removeType:$e.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},lt={stop:{title:`${g("common.stop")} ${q}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},restart:{title:`${g("common.restart")} ${q}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},remove:{title:`${g("common.remove")} ${q}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:H,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:q}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:H,onCancel:X}};V?I(lt[y]):await H()},ne=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},je=async(y,L)=>{try{L.stopPropagation(),L.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(V){console.error(`Blocklet ${y.name} failed: `,V)}finally{h(!1),f(null)}else f(null)},it=!E&&k.isDeletableBlocklet(e)?{action:"remove",icon:pe.Remove,name:g("common.remove"),handler:T("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:R}:null,at={action:"remove",icon:({sx:y,...L})=>c.jsx(pe.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...L}),name:g("common.cancel"),handler:T("cancelDownload",u.api.cancelDownloadBlocklet,!0)},ct=k.getAppMissingConfigs(e);let ie=[{action:"start",icon:pe.Start,name:g("common.start"),handler:T("start",u.api.startBlocklet),disabled:C||e.children.every(y=>y.status==="running")||Ne(e.status)||w||R},{action:"stop",icon:pe.Stop,name:g("common.stop"),handler:T("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:pe.Restart,name:g("common.restart"),handler:T("restart",u.api.restartBlocklet,!0),disabled:C||e.status!=="running"},Ne(e.status)?at:it,{separator:!0},E?null:{onlyInMenu:!0,action:"overview",icon:pe.Overview,name:g("common.overview"),handler:()=>{l(`/blocklets/${e.meta.did}/overview`)},disabled:Ne(e.status)}].filter(Boolean);return S===ai&&(ie=ie.filter(y=>y.onlyInMenu)),r==="menu"?c.jsxs(Nn,{"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||!Ne(e.status)&&b,children:c.jsx(ss,{})}),c.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:ne,onClose:be,PaperProps:{},children:[ct.length>0&&c.jsxs(ur,{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")})]}),ie.map((y,L)=>y.separator?c.jsx(yt,{},`separator-${L}`):c.jsxs(yo,{dense:!0,onClick:V=>je(y,V),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(ls,{style:{minWidth:24},children:p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(dr,{primary:y.name})]},y.name))]}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]}):c.jsxs(Nn,{"data-cy":"blocklet-actions",...a,children:[c.jsx(us,{children:ie.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>je(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]})}Yt.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};Yt.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 Nn=Ye.div`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-CFbnZdV0.js","assets/index-DfZjT3WA.js","assets/index-D8NuaJ66.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-C2sin8wt.js","assets/index-DCkU-F0r.js","assets/did-address-BWnma-3-.js","assets/Link-Cpnh7s1v.js","assets/domain-list-wgNQeEgv.js","assets/Add-D8_0U-mi.js","assets/ExpandMore-DBQIHjkB.js","assets/LockIcon-CoUaWmH-.js","assets/index-DHNVLiI8.js","assets/permission-BuA9Zt4q.js","assets/useAsync-Ca_M5Jhn.js","assets/session-Cw-dytKR.js","assets/confirm-3b8GTIgU.js","assets/format-error-BVI56bJg.js","assets/Alert-Dlco0B3L.js","assets/useSlot-C1f6ZTLt.js","assets/useSetState-BTR-3GfC.js","assets/use-mobile-C19pzcVe.js","assets/InfoOutlined-BIY-Lnxg.js","assets/OpenInNew-svkkbJCn.js","assets/index-BK4259Qj.js","assets/api-DbvHYaVa.js","assets/util-DBNeRhAr.js","assets/TextField-D_Jtjg13.js","assets/FormControl-CeSJJZgZ.js","assets/useFormControl-Cs3LGXJe.js","assets/InputLabel-3M9sMlBq.js","assets/Select-drnrjZt8.js","assets/LoadingButton-C47nsxMx.js","assets/useThemeProps-BjkDmxHT.js","assets/Delete-BaSq9RZZ.js","assets/actions-5mXSkQB4.js","assets/MoreHoriz-B4gnOmnB.js","assets/ListItemText-CHjUage1.js","assets/index-CrurRDDC.js","assets/useLocalStorage-3-rj5S6B.js","assets/MoreVert-CBWkVJTE.js","assets/PlayArrow-D-mvqfoj.js","assets/ButtonGroup-CTrZ2Hyv.js","assets/RadioGroup-C4DI71vM.js","assets/FormControlLabel-CpH9LTeH.js","assets/FormGroup-B0Xdxgiy.js","assets/Avatar-B1SFM1MR.js","assets/fallback-C5E1lZAR.js","assets/index-D0ZBFe_v.js","assets/Toolbar-D7_EWzTj.js","assets/Hidden-DJwWGZh0.js","assets/index-BRJLJSjg.js","assets/selector-DktPytoX.js","assets/index-BiafpQ0u.js","assets/index-TlMkikTm.js","assets/Loop-CbcENVkw.js","assets/ViewList-Bwkry3LO.js","assets/list-header-BDhQIu5L.js","assets/Search-BOxcXluh.js","assets/index-C1Puqx4M.js","assets/FilterList-DumRQ8ls.js","assets/toPropertyKey-PLuKRk1e.js","assets/LastPage-CBInTPpp.js","assets/index-BtQOF6n3.js","assets/redux-BDPBPXLM.js","assets/index-BvZ1bsPZ.js","assets/resource-dialog-BBzXGjTp.js","assets/CloseOutlined-CN4iKY7n.js","assets/index-DPyKucXe.js","assets/user-sessions-BIEmgTqD.js","assets/click-to-copy-CM2U6JEg.js","assets/sdk-CI7TJ_xu.js","assets/index-HqFqdQ4r.js","assets/shorten-label-3owfLRzi.js","assets/index-CLQi4cVY.js","assets/index-BtQK2llU.js","assets/EditIcon-B2Y7T-CN.js","assets/Google-CvB2nYH_.js","assets/InputAdornment-VVruavKc.js","assets/index-2xySyQ5i.js","assets/iframe-CmugPIuF.js","assets/Edit-u2-N8rQN.js","assets/Done-BG-Fw8ts.js","assets/logo-uploader-D4yqBa_O.js","assets/ArrowDropDown-exkF-BIK.js","assets/ChevronRight-DBpo88DV.js","assets/index.esm-CptJw3C8.js","assets/mode-B2dWMeTO.js","assets/Launch-Dhq-grBI.js","assets/config-BygYwcXq.js","assets/switch-control-Bun_5Zkk.js","assets/Slider-BX1l_Lvj.js","assets/index-C0qYe9TG.js","assets/index-CFmNTsQh.js","assets/index-foZCwT8M.css","assets/audit-logs-C1AOwGce.js","assets/index-CTFB4nHV.js","assets/index-D4PP6P2d.css","assets/Pagination-BBwBFjSJ.js","assets/index-Cixwi4BX.js","assets/log-o0iKO5dx.js","assets/Download-C1y29u9K.js","assets/log-D33dFtt_.css","assets/index-Ca5y7O4k.js","assets/AddBox-BpwHbwbG.js","assets/Error-B1K0WhCp.js","assets/QuestionMarkCircle-Duxt-AlB.js","assets/useSlotProps-CCXsWmb3.js","assets/DeleteOutline-Du2BPdlg.js","assets/item-DIkrlQMP.js","assets/jss-plugin-props-sort.esm-BzROyw1n.js","assets/Stepper-UV_DHoEg.js","assets/config-navigation-Rsc7sQGs.js","assets/slicedToArray-CQG0j1sa.js","assets/index-p81jbN_h.js","assets/index-UKHQeYs5.js","assets/Skeleton-YurB3EC5.js","assets/index-B7Un-ZeO.js","assets/use-blocklet-info-for-connect-did-spaces-CfK0RcTD.js","assets/spaces-DDj9ynWl.js","assets/component-npmbPVSM.js","assets/index-B0NvcpjT.js","assets/toUpper-Bf_TQKK7.js","assets/add-component-core-DFH5qH7x.js","assets/lottie-DsjCdNh-.js","assets/index-D5lkEFWM.js","assets/url-join-BoNn2Qh7.js","assets/launch-result-message-CIfX9Pg1.js","assets/Close-DgxsFA7q.js","assets/page-header-BvuGyCDw.js","assets/uniqBy-BqI7ffNX.js","assets/index-BisUmH-h.js","assets/connect-to-B0Td9yUD.js","assets/content-layout-B7X0Mv3n.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-D_j8BgsJ.css","assets/analytics-B29460Yu.js","assets/LaunchOutlined-DnkKRXxH.js","assets/notifications-B9Mu8Fxb.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as x,aF as Zn,aG as Jn,aH as Nt,aI as W,aJ as er,aK as tr,aL as ge,aM as Pn,aN as vt,j as c,aO as nr,aP as ho,X as k,Y as z,P as m,Z as Ze,e as Je,aQ as ye,a0 as Mt,a7 as B,a9 as Z,aR as Ne,aD as Ut,aS as vo,L as Bt,aT as yt,aU as yo,n as te,a1 as he,G as $,T as G,t as J,aV as xo,aW as bo,c as ke,aX as jo,aY as xt,u as Q,aZ as wo,B as D,K as So,a_ as _o,a as He,a$ as Co,b0 as Oo,b1 as Po,b2 as Io,b3 as Eo,b4 as Ro,b5 as To,b6 as Lo,b7 as Do,b8 as rr,b9 as Ao,ba as $o,bb as No,bc as or,bd as sr,be as ir,$ as et,bf as ar,bg as ce,bh as me,bi as kt,bj as cr,bk as Mo,ae as qe,ai as Uo,bl as Bo,bm as ko,bn as zo,ah as Fo,bo as Vo,bp as Ho,aj as Ee,bq as qo,aC as Ko,C as Ke,br as Wo,bs as Go,bt as _e,bu as lr,bv as Qo,ac as In,a6 as Xo,aa as Yo,ad as Zo,af as Jo,bw as ze,a5 as Me,bx as es,H as ts,a2 as F,by as ns,ao as rs,Q as En}from"./index-DfZjT3WA.js";import{T as os}from"./index-CrurRDDC.js";import{_ as Rn}from"./useLocalStorage-3-rj5S6B.js";import{d as ss}from"./MoreVert-CBWkVJTE.js";import{C as Tn}from"./confirm-3b8GTIgU.js";import{d as is}from"./Delete-BaSq9RZZ.js";import{d as as,u as cs}from"./PlayArrow-D-mvqfoj.js";import{A as ur}from"./Alert-Dlco0B3L.js";import{L as ls,a as dr}from"./ListItemText-CHjUage1.js";import{B as us}from"./ButtonGroup-CTrZ2Hyv.js";import{R as ds,a as Ln}from"./RadioGroup-C4DI71vM.js";import{F as bt,C as fs}from"./FormControlLabel-CpH9LTeH.js";import{f as zt}from"./format-error-BVI56bJg.js";import{A as fr}from"./Avatar-B1SFM1MR.js";import{u as ps}from"./session-Cw-dytKR.js";import{D as ms,_ as pr,P as gs}from"./permission-BuA9Zt4q.js";import{T as mr,b as hs}from"./index-DCkU-F0r.js";import{L as gr}from"./Link-Cpnh7s1v.js";import{_ as hr}from"./useSetState-BTR-3GfC.js";import{E as vs}from"./fallback-C5E1lZAR.js";import{u as ys}from"./index-D0ZBFe_v.js";import{L as xs,D as bs}from"./index-BRJLJSjg.js";const vr=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function js(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=vr({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 ws(e){return Jn("MuiBadge",e)}const re=Zn("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"]),Ss=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,_s=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`,`anchorOrigin${W(n.vertical)}${W(n.horizontal)}${W(o)}`,`overlap${W(o)}`,t!=="default"&&`color${W(t)}`]};return nr(a,ws,s)},Cs=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Os=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}${W(n.overlap)}`],n.color!=="default"&&t[`color${W(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:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,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:dt,height:dt*2,minWidth:dt*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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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%",[`&.${re.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})}}]}}),yr=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=er({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:j="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:w,slots:O,slotProps:S,showZero:R=!1,variant:C="standard"}=u,P=tr(u,Ss),{badgeContent:E,invisible:T,max:ne,displayValue:M}=js({max:_,invisible:g,badgeContent:w,showZero:R}),be=vr({anchorOrigin:d,color:I,overlap:j,variant:C,badgeContent:w}),je=T||E==null&&C!=="dot",{color:it=I,overlap:at=j,anchorOrigin:ct=d,variant:ie=C}=je?be:u,y=ie!=="dot"?M:void 0,L=ge({},u,{badgeContent:E,invisible:je,max:ne,displayValue:y,showZero:R,anchorOrigin:ct,color:it,overlap:at,variant:ie}),V=_s(L),H=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:Cs,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:Os,q=(a=S==null?void 0:S.root)!=null?a:b.root,N=(l=S==null?void 0:S.badge)!=null?l:b.badge,lt=Pn({elementType:H,externalSlotProps:q,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:L,className:vt(q==null?void 0:q.className,V.root,f)}),de=Pn({elementType:X,externalSlotProps:N,ownerState:L,className:vt(V.badge,N==null?void 0:N.className)});return c.jsxs(H,ge({},lt,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))});function Ps(e){return Jn("MuiListItemAvatar",e)}Zn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Is=["className"],Es=e=>{const{alignItems:t,classes:n}=e;return nr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ps,n)},Rs=Nt("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})),Ts=x.forwardRef(function(t,n){const r=er({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=tr(r,Is),s=x.useContext(ho),a=ge({},r,{alignItems:s.alignItems}),l=Es(a);return c.jsx(Rs,ge({className:vt(l.root,o),ownerState:a,ref:n},i))});var Ft={},Ls=z;Object.defineProperty(Ft,"__esModule",{value:!0});var xr=Ft.default=void 0,Ds=Ls(k()),As=c;xr=Ft.default=(0,Ds.default)((0,As.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},$s=z;Object.defineProperty(Vt,"__esModule",{value:!0});var br=Vt.default=void 0,Ns=$s(k()),Ms=c;br=Vt.default=(0,Ns.default)((0,Ms.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 Ht={},Us=z;Object.defineProperty(Ht,"__esModule",{value:!0});var jr=Ht.default=void 0,Bs=Us(k()),ks=c;jr=Ht.default=(0,Bs.default)((0,ks.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 qt={},zs=z;Object.defineProperty(qt,"__esModule",{value:!0});var wr=qt.default=void 0,Fs=zs(k()),Vs=c;wr=qt.default=(0,Fs.default)((0,Vs.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 Kt={},Hs=z;Object.defineProperty(Kt,"__esModule",{value:!0});var Sr=Kt.default=void 0,qs=Hs(k()),Ks=c;Sr=Kt.default=(0,qs.default)((0,Ks.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 Wt={},Ws=z;Object.defineProperty(Wt,"__esModule",{value:!0});var _r=Wt.default=void 0,Gs=Ws(k()),Qs=c;_r=Wt.default=(0,Gs.default)((0,Qs.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 Gt={},Xs=z;Object.defineProperty(Gt,"__esModule",{value:!0});var Cr=Gt.default=void 0,Ys=Xs(k()),Zs=c;Cr=Gt.default=(0,Ys.default)((0,Zs.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 Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Or=Qt.default=void 0;Js(x);var Dn=c;function Js(e){return e&&e.__esModule?e:{default:e}}function An(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 $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ei(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e){var t=ni(e,"string");return typeof t=="symbol"?t:t+""}function ni(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 Xt=function(t){return(0,Dn.jsx)("svg",$n($n({},t),{},{children:(0,Dn.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"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";Or=Qt.default=Xt;var Yt={},ri=z;Object.defineProperty(Yt,"__esModule",{value:!0});var Pr=Yt.default=void 0,oi=ri(k()),si=c;Pr=Yt.default=(0,oi.default)((0,si.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const pe={Start:as,Stop:xr,Restart:br,Reload:jr,Remove:is,Config:wr,Log:Sr,Group:_r,Cancel:Cr,Dashboard:Or,Overview:Pr},ii="internal",ai="external";function Zt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=Je(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[j,I]=x.useState(null),{t:g}=x.useContext(Mt),[_]=Rn("skip-blocklet-setup",!1),{loading:w,recommendedUrl:O}=s(e),[S]=Rn("blocklet-type-filter",ii),R=B.isInProgress(e.status),[C,P]=x.useState(!1);x.useEffect(()=>{var L,V;if(!(e!=null&&e.controller))return;P(((V=(L=e==null?void 0:e.controller)==null?void 0:L.status)==null?void 0:V.value)===Z.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var H,X,q;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(H=e==null?void 0:e.controller)==null?void 0:H.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}P([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((q=N==null?void 0:N.launcherSession)==null?void 0:q.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:E}=u,T=(y,L,V=!1)=>async()=>{const H=async de=>{var $e;t({action:y,blocklet:e}),h(!0),v(y);let Ae=!1;try{if(y==="remove")await L(de);else if(y==="start"){if(!B.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!E&&!_&&!(($e=e.settings)!=null&&$e.initialized)&&e.mode!==Z.BLOCKLET_MODES.DEVELOPMENT){const Y=xo(u.info),On=new URL(O);On.searchParams.set("serverUrl",Y),window.open(On.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Y=>!B.isInProgress(Y.status)&&Y.status!=="running").map(Y=>Y.meta.did),fe={did:e.meta.did,componentDids:ae};await L({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 L({input:fe})}else{const ae={did:e.meta.did};await L({input:ae})}y==="remove"?Ae=!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: ${zt(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Ae||h(!1)}},X=()=>{h(!1),I(null)},q=B.getDisplayName(e,!0),N=e.mode===Z.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(G,{component:"div",children:c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Ae)=>c.jsxs(G,{component:"div",children:[c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ds,{name:"removeType",value:de.removeType,onChange:$e=>Ae({...de,removeType:$e.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},lt={stop:{title:`${g("common.stop")} ${q}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},restart:{title:`${g("common.restart")} ${q}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},remove:{title:`${g("common.remove")} ${q}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:H,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:q}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:H,onCancel:X}};V?I(lt[y]):await H()},ne=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},je=async(y,L)=>{try{L.stopPropagation(),L.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(V){console.error(`Blocklet ${y.name} failed: `,V)}finally{h(!1),f(null)}else f(null)},it=!E&&B.isDeletableBlocklet(e)?{action:"remove",icon:pe.Remove,name:g("common.remove"),handler:T("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:R}:null,at={action:"remove",icon:({sx:y,...L})=>c.jsx(pe.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...L}),name:g("common.cancel"),handler:T("cancelDownload",u.api.cancelDownloadBlocklet,!0)},ct=B.getAppMissingConfigs(e);let ie=[{action:"start",icon:pe.Start,name:g("common.start"),handler:T("start",u.api.startBlocklet),disabled:C||e.children.every(y=>y.status==="running")||Ne(e.status)||w||R},{action:"stop",icon:pe.Stop,name:g("common.stop"),handler:T("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:pe.Restart,name:g("common.restart"),handler:T("restart",u.api.restartBlocklet,!0),disabled:C||e.status!=="running"},Ne(e.status)?at:it,{separator:!0},E?null:{onlyInMenu:!0,action:"overview",icon:pe.Overview,name:g("common.overview"),handler:()=>{l(`/blocklets/${e.meta.did}/overview`)},disabled:Ne(e.status)}].filter(Boolean);return S===ai&&(ie=ie.filter(y=>y.onlyInMenu)),r==="menu"?c.jsxs(Nn,{"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||!Ne(e.status)&&b,children:c.jsx(ss,{})}),c.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:ne,onClose:be,PaperProps:{},children:[ct.length>0&&c.jsxs(ur,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(Bt,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),ie.map((y,L)=>y.separator?c.jsx(yt,{},`separator-${L}`):c.jsxs(yo,{dense:!0,onClick:V=>je(y,V),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(ls,{style:{minWidth:24},children:p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(dr,{primary:y.name})]},y.name))]}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]}):c.jsxs(Nn,{"data-cy":"blocklet-actions",...a,children:[c.jsx(us,{children:ie.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>je(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.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 Nn=Ze.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ import{r as x,aF as Yn,aG as Jn,aH as Nt,aI as W,aJ as er,aK as tr,aL as ge,aM a
|
|
|
9
9
|
font-size: 10px;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
`,ft=(e,t)=>{var r;let n="?v=";return t?n+=jo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(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===
|
|
12
|
+
`,ft=(e,t)=>{var r;let n="?v=";return t?n+=jo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(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=`${ke(i,`/blocklet/logo/${t?"":e.meta.did}`)}${ft(e,n)}`,a=`${ke(i,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${ft(e,r)}`,l=`${ke(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${ft(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(fr,{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 B.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=B.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 Ir(){const{t:e}=Q(),{api:t}=ps(),{blocklet:n}=wo(),{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(zt(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(ur,{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(So,{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:B.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")]}Ir.propTypes={};function en({children:e,style:t,...n}){return c.jsx(mr,{style:t,...n,children:e})}en.propTypes={children:m.any.isRequired,style:m.object};en.defaultProps={style:{}};const U={yellow:"#FFCF71",grey:"#888888"};function tn({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=x.useContext(Mt),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:U.grey,waiting:U.yellow,downloading:U.yellow,extracting:U.yellow,downloaded:U.grey,installing:U.yellow,installed:U.grey,starting:U.yellow,running:"success",stopping:U.yellow,stopped:U.grey,error:"error",upgrading:U.yellow,restarting:U.yellow,corrupted:"error",deleting:U.yellow,resource:"primary"},u=B.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="dot"?c.jsx(He,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(ms,{color:l[d],...i})}):c.jsxs(en,{type:a[d],...i,children:[u&&c.jsx(te,{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,ji=To,Mn=Lo;function wi(e,t,n){var r=e.length;if(r<2)return r?Mn(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 Mn(ji(i,1),t,n)}var Si=wi,_i=Ao,Ci=Do,Oi=Si,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 Ti=rr(Ri),Er=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));Ti(u,n).forEach(f=>s(f))};return c.jsx(Er.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 Al(){return x.useContext(Er)}function A(e,t,n){return or.call(t,"css")?c.jsx(sr,ir(e,t),n):c.jsx(e,t,n)}function pt(e,t,n){return or.call(t,"css")?c.jsxs(sr,ir(e,t),n):c.jsxs(e,t,n)}/**
|
|
13
13
|
* (c) Iconify
|
|
14
14
|
*
|
|
15
15
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
@@ -19,7 +19,7 @@ import{r as x,aF as Yn,aG as Jn,aH as Nt,aI as W,aJ as er,aK as tr,aL as ge,aM a
|
|
|
19
19
|
*
|
|
20
20
|
* @license MIT
|
|
21
21
|
* @version 3.1.1
|
|
22
|
-
*/const Rr=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Re=Object.freeze({...Rr,...We}),jt=Object.freeze({...Re,body:"",hidden:!1});function Li(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 Un(e,t){const n=Li(e,t);for(const r in jt)r in We?r in e&&!(r in n)&&(n[r]=We[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 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=Un(r[a]||o[a],i)}return s(t),n.forEach(s),Un(e,i)}function $i(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 Ce=/^[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&&!Fe(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&&!Fe(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Fe(a,n)?null:a}return null},Fe=(e,t)=>e?!!((e.provider===""||e.provider.match(Ce))&&(t&&e.prefix===""||e.prefix.match(Ce))&&e.name.match(Ce)):!1,Ni={provider:"",aliases:{},not_found:{},...Rr};function mt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Mi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!mt(e,Ni))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ce)||typeof i.body!="string"||!mt(i,jt))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Ce)||typeof s!="string"||!n[s]&&!r[s]||!mt(i,jt))return null}return t}const Ge=Object.create(null);function Ui(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Ui(e,t))}function rn(e,t){return Mi(t)?$i(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function ki(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(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let on=!1;function zi(e){return on}function Te(e){const t=typeof e=="string"?xe(e,!0,on):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 Fi(e,t){const n=xe(e,!0,on);if(!n)return!1;const r=ee(n.provider,n.prefix);return ki(r,n.name,t)}function Tr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Fe({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!rn(r,e)}function Vi(e){return!!Te(e)}function Hi(e){const t=Te(e);return t?{...Re,...t}:null}const Lr=Object.freeze({width:null,height:null}),Dr=Object.freeze({...Lr,...We}),qi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ki=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wt(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(qi);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Ki.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 Wi=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,t){const n={...Re,...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=[],j=b.hFlip,I=b.vFlip;let g=b.rotate;j?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=wt(f,l/u)):(d=s==="auto"?l:s,f=a===null?wt(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{Wi(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 Gi=/\sid="(\S+)"/g,Qi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xi=0;function Ar(e,t=Qi){const n=[];let r;for(;r=Gi.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+(Xi++).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 sn=!1;function Zi(e){sn=e}const kn="iconify2",Ie="iconify",Nr=Ie+"-count",Bn=Ie+"-version",Mr=36e5,Yi=168;function St(e,t){try{return e.getItem(t)}catch{}}function an(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zn(e,t){try{e.removeItem(t)}catch{}}function _t(e,t){return an(e,Nr,t.toString())}function Ct(e){return parseInt(St(e,Nr))||0}let Ue=typeof window>"u"?{}:window;function Ur(e){const t=e+"Storage";try{if(Ue&&Ue[t]&&typeof Ue[t].length=="number")return Ue[t]}catch{}le[e]=!1}function kr(e,t){const n=Ur(e);if(!n)return;const r=St(n,Bn);if(r!==kn){if(r){const a=Ct(n);for(let l=0;l<a;l++)zn(n,Ie+l.toString())}an(n,Bn,kn),_t(n,0);return}const o=Math.floor(Date.now()/Mr)-Yi,i=a=>{const l=Ie+a.toString(),u=St(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{}zn(n,l)}};let s=Ct(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,_t(n,s)):$r[e].add(a))}function Br(){if(!sn){Zi(!0);for(const e in le)kr(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 Ot=Object.create(null);function Fr(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function cn(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 nt=Object.create(null),we=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;we.length>0;)we.length===1||Math.random()>.5?Ve.push(we.shift()):Ve.push(we.pop());nt[""]=cn({resources:["https://api.iconify.design"].concat(Ve)});function Vr(e,t){const n=cn(t);return n===null?!1:(nt[e]=n,!0)}function rt(e){return nt[e]}function Ji(){return Object.keys(nt)}const ea=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=ea();function ta(e){Qe=e}function na(){return Qe}function ra(e,t){const n=rt(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 oa(e){return e===404}const sa=(e,t,n)=>{const r=[],o=ra(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 ia(e){if(typeof e=="string"){const t=rt(e);if(t)return t.path}return"/"}const aa=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=ia(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;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(oa(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)})},ca={prepare:sa,send:aa};function la(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 Hr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function ua(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||Hr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let da=0;function fa(e,t,n){const r=da++,o=Hr.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 pa(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 ma={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ga(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 S=e.resources.slice(0);for(s=[];S.length>1;){const R=Math.floor(Math.random()*S.length);s.push(S[R]),S=S.slice(0,R).concat(S.slice(R+1))}s=s.concat(S)}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(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,R){R&&(v=[]),typeof S=="function"&&v.push(S)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:j,abort:h}}function g(){l="failed",v.forEach(S=>{S(void 0,d)})}function _(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function w(S,R,C){const P=R!=="success";switch(p=p.filter(E=>E!==S),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const E=e.resources.indexOf(S.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",v.forEach(E=>{E(C)})}function O(){if(l!=="pending")return;b();const S=s.shift();if(S===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const R={status:"pending",resource:S,callback:(C,P)=>{w(R,C,P)}};p.push(R),u++,f=setTimeout(O,e.rotate),n(S,t,R.callback)}return setTimeout(O),I}function qr(e){const t={...ma,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=ga(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 Fn(){}const gt=Object.create(null);function ha(e){if(!gt[e]){const t=rt(e);if(!t)return;const n=qr(t),r={config:t,redundancy:n};gt[e]=r}return gt[e]}function Kr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),Fn;o=i.send;const s=ha(e);s&&(r=s.redundancy)}else{const i=cn(e);if(i){r=qr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Fn):r.query(t,o,n)().abort}function va(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)kr(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function ya(e,t){sn||Br();function n(r){let o;if(!le[r]||!(o=Ur(r)))return;const i=$r[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ct(o),!_t(o,s+1))return;const a={cached:Math.floor(Date.now()/Mr),provider:e.provider,data:t};return an(o,Ie+s.toString(),JSON.stringify(a))}t.lastModified&&!va(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Vn(){}function xa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ua(e)}))}function ba(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=Pt(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)}),ya(e,l)}catch(u){console.error(u)}xa(e)})})}))}const ja=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},ln=(e,t)=>{const n=pa(e,!0,zi()),r=la(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vn)}),()=>{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&&ba(l,o[u][d])}),t?fa(t,r,i):Vn},wa=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}ln([r||e],o=>{if(o.length&&r){const i=Te(r);if(i){t({...Re,...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 Lr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ot={...Dr,inline:!1},ht="iconify",It="iconify-inline",se="iconifyData"+Date.now();let ue=[];function Le(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=Le(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function Sa(){if(document.documentElement)return Gr(document.documentElement);ue.push({node:()=>document.documentElement})}function _a(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function De(){return ue}function Ca(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Oe=null;const Oa={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,Oe&&Oe(e)}))}function Pa(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[se]!==void 0){n.paused||Qr(e);return}}}function Xr(e,t){e.observer.instance.observe(t,Oa)}function Xe(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(Pa.bind(null,e)),Xr(e,n),t.paused||Qr(e))}function Hn(){De().forEach(Xe)}function Zr(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 Ia(e){const t=Oe!==null;if(Oe!==e&&(Oe=e,t&&De().forEach(Zr)),t){Hn();return}Ca(Hn)}function Et(e){(e?[e]:De()).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 Ea(e){if(e){const t=Le(e);t&&Et(t)}else Et()}function Rt(e){(e?[e]:De()).forEach(t=>{if(!t.observer){Xe(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):Xe(t);else return}})}function Ra(e){if(e){const t=Le(e);t&&Rt(t)}else Rt()}function Yr(e,t=!1){const n=Gr(e,t);return Xe(n),n}function Jr(e){const t=Le(e);t&&(Zr(t),_a(e))}function Ta(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ot)if(n[o]!==r[o])return!0;return!1}function La(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 Da=/[\s,]+/;function Aa(e,t){t.split(Da).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const $a=["width","height"],Na=["inline","hFlip","vFlip"];function Ma(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ua(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...ot,inline:e.classList&&e.classList.contains(It)};$a.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=La(o));const i=e.getAttribute("data-flip");typeof i=="string"&&Aa(r,i),Na.forEach(a=>{const l="data-"+a,u=Ma(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 ka="svg."+ht+", i."+ht+", span."+ht+", i."+It+", span."+It;function Ba(e){const t=[];return e.querySelectorAll(ka).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?Ua(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 Pe;function za(){try{Pe=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Pe=null}}function Fa(e){return Pe===void 0&&za(),Pe?Pe.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=tt(n,o),s=e[se],a=eo(Ar(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Fa(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),j=h.name;j!=="class"&&!l.hasAttribute(j)&&l.setAttribute(j,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[se]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ha(e){return"data:image/svg+xml,"+Va(e)}function qa(e){return'url("'+Ha(e)+'")'}const Ka={display:"inline-block"},Tt={"background-color":"currentColor"},so={"background-color":"transparent"},qn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kn={"-webkit-mask":Tt,mask:Tt,background:so};for(const e in Kn){const t=Kn[e];for(const n in qn)t[e+"-"+n]=qn[n]}function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Wa(e,t,n,r){const o=t.customisations,i=tt(n,o),s=i.attributes,a=e[se],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":qa(l),width:Wn(s.width),height:Wn(s.height),...Ka,...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[se]=b,e}let ke=!1;function Ga(){ke||(ke=!0,setTimeout(()=>{ke&&(ke=!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&&!ja(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:De()).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,Et(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"){Wa(u,d,{...Re,...f},v);return}}oo(u,d,f)}Ba(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[se]={...d,status:v};return}let p;if(Ta(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?Yr(i,!0):a&&o.observer&&Rt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];ln(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Ga)}}}function Qa(e){const t=Le(e);t?ve(t):ve({node:e,temporary:!0},!0)}function io(e,t,n=!1){const r=Te(e);if(!r)return null;const o=xe(e),i=Wr(ot,t||{}),s=oo(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Xa(){return"3.1.1"}function Za(e,t){return io(e,t,!1)}function Ya(e,t){return io(e,t,!0)}function Ja(e,t){const n=Te(e);if(!n)return null;const r=Wr(ot,t||{});return tt(n,r)}function ec(e){e?Qa(e):ve()}if(typeof document<"u"&&typeof window<"u"){Sa();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"||!Tr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ia(ve),ve()})}function tc(e,t){zr(e,t!==!1)}function nc(e){zr(e,!0)}Fr("",ca);if(typeof document<"u"&&typeof window<"u"){Br();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;Vr(n,o)||console.error(r)}catch{console.error(r)}}}}const rc={getAPIConfig:rt,setAPIModule:Fr,sendAPIQuery:Kr,setFetch:ta,getFetch:na,listAPIProviders:Ji},oc={_api:rc,addAPIProvider:Vr,loadIcons:ln,loadIcon:wa,iconExists:Vi,getIcon:Hi,listIcons:Bi,addIcon:Fi,addCollection:Tr,replaceIDs:Ar,calculateSize:wt,buildIcon:tt,getVersion:Xa,renderSVG:Za,renderHTML:Ya,renderIcon:Ja,scan:ec,observe:Yr,stopObserving:Jr,pauseObserver:Ea,resumeObserver:Ra,enableCache:tc,disableCache:nc};try{self.Iconify===void 0&&(self.Iconify=oc)}catch{}var un={},sc=z;Object.defineProperty(un,"__esModule",{value:!0});var ao=un.default=void 0,ic=sc(B()),ac=c;ao=un.default=(0,ic.default)((0,ac.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 dn({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(`
|
|
22
|
+
*/const Rr=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Re=Object.freeze({...Rr,...We}),jt=Object.freeze({...Re,body:"",hidden:!1});function Li(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 Un(e,t){const n=Li(e,t);for(const r in jt)r in We?r in e&&!(r in n)&&(n[r]=We[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 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=Un(r[a]||o[a],i)}return s(t),n.forEach(s),Un(e,i)}function $i(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 Ce=/^[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&&!Fe(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&&!Fe(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Fe(a,n)?null:a}return null},Fe=(e,t)=>e?!!((e.provider===""||e.provider.match(Ce))&&(t&&e.prefix===""||e.prefix.match(Ce))&&e.name.match(Ce)):!1,Ni={provider:"",aliases:{},not_found:{},...Rr};function mt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Mi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!mt(e,Ni))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ce)||typeof i.body!="string"||!mt(i,jt))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Ce)||typeof s!="string"||!n[s]&&!r[s]||!mt(i,jt))return null}return t}const Ge=Object.create(null);function Ui(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Ui(e,t))}function rn(e,t){return Mi(t)?$i(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Bi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function ki(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let on=!1;function zi(e){return on}function Te(e){const t=typeof e=="string"?xe(e,!0,on):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 Fi(e,t){const n=xe(e,!0,on);if(!n)return!1;const r=ee(n.provider,n.prefix);return Bi(r,n.name,t)}function Tr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Fe({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!rn(r,e)}function Vi(e){return!!Te(e)}function Hi(e){const t=Te(e);return t?{...Re,...t}:null}const Lr=Object.freeze({width:null,height:null}),Dr=Object.freeze({...Lr,...We}),qi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ki=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wt(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(qi);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Ki.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 Wi=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,t){const n={...Re,...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=[],j=b.hFlip,I=b.vFlip;let g=b.rotate;j?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=wt(f,l/u)):(d=s==="auto"?l:s,f=a===null?wt(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{Wi(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 Gi=/\sid="(\S+)"/g,Qi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xi=0;function Ar(e,t=Qi){const n=[];let r;for(;r=Gi.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+(Xi++).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 sn=!1;function Yi(e){sn=e}const Bn="iconify2",Ie="iconify",Nr=Ie+"-count",kn=Ie+"-version",Mr=36e5,Zi=168;function St(e,t){try{return e.getItem(t)}catch{}}function an(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zn(e,t){try{e.removeItem(t)}catch{}}function _t(e,t){return an(e,Nr,t.toString())}function Ct(e){return parseInt(St(e,Nr))||0}let Ue=typeof window>"u"?{}:window;function Ur(e){const t=e+"Storage";try{if(Ue&&Ue[t]&&typeof Ue[t].length=="number")return Ue[t]}catch{}le[e]=!1}function Br(e,t){const n=Ur(e);if(!n)return;const r=St(n,kn);if(r!==Bn){if(r){const a=Ct(n);for(let l=0;l<a;l++)zn(n,Ie+l.toString())}an(n,kn,Bn),_t(n,0);return}const o=Math.floor(Date.now()/Mr)-Zi,i=a=>{const l=Ie+a.toString(),u=St(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{}zn(n,l)}};let s=Ct(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,_t(n,s)):$r[e].add(a))}function kr(){if(!sn){Yi(!0);for(const e in le)Br(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 Ot=Object.create(null);function Fr(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function cn(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 nt=Object.create(null),we=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;we.length>0;)we.length===1||Math.random()>.5?Ve.push(we.shift()):Ve.push(we.pop());nt[""]=cn({resources:["https://api.iconify.design"].concat(Ve)});function Vr(e,t){const n=cn(t);return n===null?!1:(nt[e]=n,!0)}function rt(e){return nt[e]}function Ji(){return Object.keys(nt)}const ea=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=ea();function ta(e){Qe=e}function na(){return Qe}function ra(e,t){const n=rt(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 oa(e){return e===404}const sa=(e,t,n)=>{const r=[],o=ra(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 ia(e){if(typeof e=="string"){const t=rt(e);if(t)return t.path}return"/"}const aa=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=ia(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;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(oa(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)})},ca={prepare:sa,send:aa};function la(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 Hr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function ua(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||Hr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let da=0;function fa(e,t,n){const r=da++,o=Hr.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 pa(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 ma={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ga(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 S=e.resources.slice(0);for(s=[];S.length>1;){const R=Math.floor(Math.random()*S.length);s.push(S[R]),S=S.slice(0,R).concat(S.slice(R+1))}s=s.concat(S)}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(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,R){R&&(v=[]),typeof S=="function"&&v.push(S)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:j,abort:h}}function g(){l="failed",v.forEach(S=>{S(void 0,d)})}function _(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function w(S,R,C){const P=R!=="success";switch(p=p.filter(E=>E!==S),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const E=e.resources.indexOf(S.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",v.forEach(E=>{E(C)})}function O(){if(l!=="pending")return;b();const S=s.shift();if(S===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const R={status:"pending",resource:S,callback:(C,P)=>{w(R,C,P)}};p.push(R),u++,f=setTimeout(O,e.rotate),n(S,t,R.callback)}return setTimeout(O),I}function qr(e){const t={...ma,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=ga(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 Fn(){}const gt=Object.create(null);function ha(e){if(!gt[e]){const t=rt(e);if(!t)return;const n=qr(t),r={config:t,redundancy:n};gt[e]=r}return gt[e]}function Kr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),Fn;o=i.send;const s=ha(e);s&&(r=s.redundancy)}else{const i=cn(e);if(i){r=qr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Fn):r.query(t,o,n)().abort}function va(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)Br(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function ya(e,t){sn||kr();function n(r){let o;if(!le[r]||!(o=Ur(r)))return;const i=$r[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ct(o),!_t(o,s+1))return;const a={cached:Math.floor(Date.now()/Mr),provider:e.provider,data:t};return an(o,Ie+s.toString(),JSON.stringify(a))}t.lastModified&&!va(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Vn(){}function xa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ua(e)}))}function ba(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=Pt(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)}),ya(e,l)}catch(u){console.error(u)}xa(e)})})}))}const ja=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},ln=(e,t)=>{const n=pa(e,!0,zi()),r=la(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vn)}),()=>{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&&ba(l,o[u][d])}),t?fa(t,r,i):Vn},wa=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}ln([r||e],o=>{if(o.length&&r){const i=Te(r);if(i){t({...Re,...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 Lr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ot={...Dr,inline:!1},ht="iconify",It="iconify-inline",se="iconifyData"+Date.now();let ue=[];function Le(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=Le(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function Sa(){if(document.documentElement)return Gr(document.documentElement);ue.push({node:()=>document.documentElement})}function _a(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function De(){return ue}function Ca(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Oe=null;const Oa={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,Oe&&Oe(e)}))}function Pa(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[se]!==void 0){n.paused||Qr(e);return}}}function Xr(e,t){e.observer.instance.observe(t,Oa)}function Xe(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(Pa.bind(null,e)),Xr(e,n),t.paused||Qr(e))}function Hn(){De().forEach(Xe)}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 Ia(e){const t=Oe!==null;if(Oe!==e&&(Oe=e,t&&De().forEach(Yr)),t){Hn();return}Ca(Hn)}function Et(e){(e?[e]:De()).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 Ea(e){if(e){const t=Le(e);t&&Et(t)}else Et()}function Rt(e){(e?[e]:De()).forEach(t=>{if(!t.observer){Xe(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):Xe(t);else return}})}function Ra(e){if(e){const t=Le(e);t&&Rt(t)}else Rt()}function Zr(e,t=!1){const n=Gr(e,t);return Xe(n),n}function Jr(e){const t=Le(e);t&&(Yr(t),_a(e))}function Ta(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ot)if(n[o]!==r[o])return!0;return!1}function La(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 Da=/[\s,]+/;function Aa(e,t){t.split(Da).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const $a=["width","height"],Na=["inline","hFlip","vFlip"];function Ma(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ua(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...ot,inline:e.classList&&e.classList.contains(It)};$a.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=La(o));const i=e.getAttribute("data-flip");typeof i=="string"&&Aa(r,i),Na.forEach(a=>{const l="data-"+a,u=Ma(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 Ba="svg."+ht+", i."+ht+", span."+ht+", i."+It+", span."+It;function ka(e){const t=[];return e.querySelectorAll(Ba).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?Ua(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 Pe;function za(){try{Pe=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Pe=null}}function Fa(e){return Pe===void 0&&za(),Pe?Pe.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=tt(n,o),s=e[se],a=eo(Ar(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Fa(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),j=h.name;j!=="class"&&!l.hasAttribute(j)&&l.setAttribute(j,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[se]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ha(e){return"data:image/svg+xml,"+Va(e)}function qa(e){return'url("'+Ha(e)+'")'}const Ka={display:"inline-block"},Tt={"background-color":"currentColor"},so={"background-color":"transparent"},qn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kn={"-webkit-mask":Tt,mask:Tt,background:so};for(const e in Kn){const t=Kn[e];for(const n in qn)t[e+"-"+n]=qn[n]}function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Wa(e,t,n,r){const o=t.customisations,i=tt(n,o),s=i.attributes,a=e[se],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":qa(l),width:Wn(s.width),height:Wn(s.height),...Ka,...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[se]=b,e}let Be=!1;function Ga(){Be||(Be=!0,setTimeout(()=>{Be&&(Be=!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&&!ja(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:De()).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,Et(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"){Wa(u,d,{...Re,...f},v);return}}oo(u,d,f)}ka(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[se]={...d,status:v};return}let p;if(Ta(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&&Rt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];ln(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Ga)}}}function Qa(e){const t=Le(e);t?ve(t):ve({node:e,temporary:!0},!0)}function io(e,t,n=!1){const r=Te(e);if(!r)return null;const o=xe(e),i=Wr(ot,t||{}),s=oo(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Xa(){return"3.1.1"}function Ya(e,t){return io(e,t,!1)}function Za(e,t){return io(e,t,!0)}function Ja(e,t){const n=Te(e);if(!n)return null;const r=Wr(ot,t||{});return tt(n,r)}function ec(e){e?Qa(e):ve()}if(typeof document<"u"&&typeof window<"u"){Sa();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"||!Tr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ia(ve),ve()})}function tc(e,t){zr(e,t!==!1)}function nc(e){zr(e,!0)}Fr("",ca);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;Vr(n,o)||console.error(r)}catch{console.error(r)}}}}const rc={getAPIConfig:rt,setAPIModule:Fr,sendAPIQuery:Kr,setFetch:ta,getFetch:na,listAPIProviders:Ji},oc={_api:rc,addAPIProvider:Vr,loadIcons:ln,loadIcon:wa,iconExists:Vi,getIcon:Hi,listIcons:ki,addIcon:Fi,addCollection:Tr,replaceIDs:Ar,calculateSize:wt,buildIcon:tt,getVersion:Xa,renderSVG:Ya,renderHTML:Za,renderIcon:Ja,scan:ec,observe:Zr,stopObserving:Jr,pauseObserver:Ea,resumeObserver:Ra,enableCache:tc,disableCache:nc};try{self.Iconify===void 0&&(self.Iconify=oc)}catch{}var un={},sc=z;Object.defineProperty(un,"__esModule",{value:!0});var ao=un.default=void 0,ic=sc(k()),ac=c;ao=un.default=(0,ic.default)((0,ac.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 dn({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
23
|
`);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ import{r as x,aF as Yn,aG as Jn,aH as Nt,aI as W,aJ as er,aK as tr,aL as ge,aM a
|
|
|
29
29
|
${r}
|
|
30
30
|
* Page: ${window.location.href}
|
|
31
31
|
-->
|
|
32
|
-
`),A(D,{sx:{mx:{xs:0,md:2}},children:A(gr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}dn.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};dn.defaultProps={infos:[]};var cc={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"}},lc={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 Lt=new Map,uc=(e,t)=>{Lt.set(e,t)},dc=(e="en_US")=>Lt.get(e)||Lt.get("en_US");var co={registerLang:uc,getLang:dc},fc=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 pc=fc,{getLang:Se}=co,mc=(e,t)=>t===1?e:`${e}s`,gc=1e-7;var hc=(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=Se(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+gc);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]||Se("en_US")[l],{short:f}=n[l]||Se("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,j=r.length>0?2:1;p="0".repeat(Math.max(0,j-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?` ${mc(d,a)}`:f;r.push(v+p+b)},s=pc(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||Se("en_US").millisecond).long,l=(n.millisecond||Se("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 vc=cc,yc=lc,{registerLang:fn}=co,lo=hc;fn("en_US",vc);fn("zh_CN",yc);lo.registerLang=fn;var xc=lo;const Ze=rr(xc);var pn={},bc=z;Object.defineProperty(pn,"__esModule",{value:!0});var Dt=pn.default=void 0,jc=bc(B()),Gn=c;Dt=pn.default=(0,jc.default)([(0,Gn.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,Gn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function oe({children:e}){return et(n=>n.breakpoints.down("md"))?c.jsx(He,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}oe.propTypes={children:m.node.isRequired};const wc="https://launcher.arcblock.io/",Sc=30*24*60*60*1e3;function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,S,R,C,P,E;const{t:i,locale:s}=Q(),a=ye(),[l,u]=hr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=et(T=>T.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=pr(async()=>{const[T,ne]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ar({launcherUrl:e||wc,nftDid:n,launcherSessionId:r,locale:s})]);if(T!=null&&T.error)throw new Error(T.error);return{launcherSession:T.launcherSession,subscriptionURL:ne}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!f&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=T=>{u({popoverAnchorEl:T.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((R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.status)&&(_="error");let w=null;if(g.expirationDate&&!g.subscription){const T=me(g.expirationDate).diff(me(),"ms");w=i(`expiration.${b}.tips.${_}`,{validity:Ze(T,{locale:Bt(s),compact:!0,verbose:!0})}),T>0&&T<=Sc&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(oe,{children:w||((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:j}),c.jsx(cr,{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:(E=h.value)==null?void 0:E.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:""};const _c=30*24*60*60*1e3,Cc="https://launcher.arcblock.io/";function gn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var S,R,C,P,E,T,ne;const{t:i,locale:s}=Q(),[a,l]=hr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=et(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=pr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ar({launcherUrl:e||Cc,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(oe,{children:[!d&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=(R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.expirationDate,I=me(j).isBefore(me()),g=me(j).diff(me(),"ms");let _="success";g<=_c&&(_="warning"),I&&(_="error");const w=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(oe,{children:i("expiration.desktop.nextInvoice",{date:Mo(j,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),!((T=(E=h.value)==null?void 0:E.launcherSession)!=null&&T.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.tips.${_}`,{validity:Ze(g,{locale:Bt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(cr,{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:(ne=h.value)==null?void 0:ne.subscriptionURL})})]})}gn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};gn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var hn={},Oc=z;Object.defineProperty(hn,"__esModule",{value:!0});var uo=hn.default=void 0,Pc=Oc(B()),Ic=c;uo=hn.default=(0,Pc.default)((0,Ic.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var vn={},Ec=z;Object.defineProperty(vn,"__esModule",{value:!0});var fo=vn.default=void 0,Rc=Ec(B()),Tc=c;fo=vn.default=(0,Rc.default)((0,Tc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var yn={};Object.defineProperty(yn,"__esModule",{value:!0});var At=yn.default=void 0;Lc(x);var Qn=c;function Lc(e){return e&&e.__esModule?e:{default:e}}function Xn(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xn(Object(n),!0).forEach(function(r){Dc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dc(e,t,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ac(e){var t=$c(e,"string");return typeof t=="symbol"?t:t+""}function $c(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 xn=function(t){return(0,Qn.jsx)("svg",Zn(Zn({},t),{},{children:(0,Qn.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"})}))};xn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};xn.displayName="notification";At=yn.default=xn;function po({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(mr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}po.propTypes={status:m.string.isRequired};function bn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:Bt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ze(i-s,o);return c.jsx(He,{title:qe(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(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}bn.propTypes={value:m.any};bn.defaultProps={value:""};function Nc(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 Mc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function $l(e){const t=Je(),{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,[]),Nc("checkUpdate",r)}function jn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Mt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=Je(),b=Uo();let h=u?n:n.filter(w=>w.read===!1);h=h.slice(0,5);const j=n.filter(w=>w.read===!1).length>0,I=async()=>{p(!0);const w=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:w,teamDid:i}}):await t.readNotifications({input:{id:w}}),r(),p(!1)},g=(w,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(w),v(o)},_=(w,O)=>{w.preventDefault(),w.stopPropagation(),v(O),Mc()};return c.jsxs(Uc,{children:[c.jsxs(G,{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(yt,{}),c.jsxs(ko,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(G,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(w=>c.jsxs(xs,{alignItems:"flex-start",disabled:w.read,onClick:O=>g(O,w),children:[c.jsx(Ts,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(fr,{children:w.entityType.substr(0,1).toUpperCase()}),c.jsx(po,{className:"notification-tag",status:w.severity})]})}),c.jsx(dr,{primary:w.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(G,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:w.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(bn,{value:w.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),w.action&&!w.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,w.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},w.id))]}),c.jsx(yt,{}),c.jsxs(G,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(fs,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(gs,{permission:s?"":"mutate_notification",role:s?Bo:[],children:j&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(te,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Uc=Ye.div`
|
|
32
|
+
`),A(D,{sx:{mx:{xs:0,md:2}},children:A(gr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}dn.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};dn.defaultProps={infos:[]};var cc={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"}},lc={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 Lt=new Map,uc=(e,t)=>{Lt.set(e,t)},dc=(e="en_US")=>Lt.get(e)||Lt.get("en_US");var co={registerLang:uc,getLang:dc},fc=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 pc=fc,{getLang:Se}=co,mc=(e,t)=>t===1?e:`${e}s`,gc=1e-7;var hc=(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=Se(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+gc);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]||Se("en_US")[l],{short:f}=n[l]||Se("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,j=r.length>0?2:1;p="0".repeat(Math.max(0,j-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?` ${mc(d,a)}`:f;r.push(v+p+b)},s=pc(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||Se("en_US").millisecond).long,l=(n.millisecond||Se("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 vc=cc,yc=lc,{registerLang:fn}=co,lo=hc;fn("en_US",vc);fn("zh_CN",yc);lo.registerLang=fn;var xc=lo;const Ye=rr(xc);var pn={},bc=z;Object.defineProperty(pn,"__esModule",{value:!0});var Dt=pn.default=void 0,jc=bc(k()),Gn=c;Dt=pn.default=(0,jc.default)([(0,Gn.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,Gn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function oe({children:e}){return et(n=>n.breakpoints.down("md"))?c.jsx(He,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}oe.propTypes={children:m.node.isRequired};const wc="https://launcher.arcblock.io/",Sc=30*24*60*60*1e3;function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,S,R,C,P,E;const{t:i,locale:s}=Q(),a=ye(),[l,u]=hr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=et(T=>T.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=pr(async()=>{const[T,ne]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ar({launcherUrl:e||wc,nftDid:n,launcherSessionId:r,locale:s})]);if(T!=null&&T.error)throw new Error(T.error);return{launcherSession:T.launcherSession,subscriptionURL:ne}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!f&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=T=>{u({popoverAnchorEl:T.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((R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.status)&&(_="error");let w=null;if(g.expirationDate&&!g.subscription){const T=me(g.expirationDate).diff(me(),"ms");w=i(`expiration.${b}.tips.${_}`,{validity:Ye(T,{locale:kt(s),compact:!0,verbose:!0})}),T>0&&T<=Sc&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(oe,{children:w||((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:j}),c.jsx(cr,{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:(E=h.value)==null?void 0:E.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:""};const _c=30*24*60*60*1e3,Cc="https://launcher.arcblock.io/";function gn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var S,R,C,P,E,T,ne;const{t:i,locale:s}=Q(),[a,l]=hr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=et(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=pr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ar({launcherUrl:e||Cc,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(oe,{children:[!d&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=(R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.expirationDate,I=me(j).isBefore(me()),g=me(j).diff(me(),"ms");let _="success";g<=_c&&(_="warning"),I&&(_="error");const w=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(oe,{children:i("expiration.desktop.nextInvoice",{date:Mo(j,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),!((T=(E=h.value)==null?void 0:E.launcherSession)!=null&&T.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.tips.${_}`,{validity:Ye(g,{locale:kt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(cr,{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:(ne=h.value)==null?void 0:ne.subscriptionURL})})]})}gn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};gn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var hn={},Oc=z;Object.defineProperty(hn,"__esModule",{value:!0});var uo=hn.default=void 0,Pc=Oc(k()),Ic=c;uo=hn.default=(0,Pc.default)((0,Ic.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var vn={},Ec=z;Object.defineProperty(vn,"__esModule",{value:!0});var fo=vn.default=void 0,Rc=Ec(k()),Tc=c;fo=vn.default=(0,Rc.default)((0,Tc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var yn={};Object.defineProperty(yn,"__esModule",{value:!0});var At=yn.default=void 0;Lc(x);var Qn=c;function Lc(e){return e&&e.__esModule?e:{default:e}}function Xn(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 Yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xn(Object(n),!0).forEach(function(r){Dc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dc(e,t,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ac(e){var t=$c(e,"string");return typeof t=="symbol"?t:t+""}function $c(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 xn=function(t){return(0,Qn.jsx)("svg",Yn(Yn({},t),{},{children:(0,Qn.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"})}))};xn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};xn.displayName="notification";At=yn.default=xn;function po({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(mr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}po.propTypes={status:m.string.isRequired};function bn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:kt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ye(i-s,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Ye(s-i,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}bn.propTypes={value:m.any};bn.defaultProps={value:""};function Nc(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 Mc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function $l(e){const t=Je(),{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,[]),Nc("checkUpdate",r)}function jn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Mt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=Je(),b=Uo();let h=u?n:n.filter(w=>w.read===!1);h=h.slice(0,5);const j=n.filter(w=>w.read===!1).length>0,I=async()=>{p(!0);const w=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:w,teamDid:i}}):await t.readNotifications({input:{id:w}}),r(),p(!1)},g=(w,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(w),v(o)},_=(w,O)=>{w.preventDefault(),w.stopPropagation(),v(O),Mc()};return c.jsxs(Uc,{children:[c.jsxs(G,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(he,{component:Bt,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(yt,{}),c.jsxs(Bo,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(G,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(w=>c.jsxs(xs,{alignItems:"flex-start",disabled:w.read,onClick:O=>g(O,w),children:[c.jsx(Ts,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(fr,{children:w.entityType.substr(0,1).toUpperCase()}),c.jsx(po,{className:"notification-tag",status:w.severity})]})}),c.jsx(dr,{primary:w.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(G,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:w.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(bn,{value:w.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),w.action&&!w.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,w.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},w.id))]}),c.jsx(yt,{}),c.jsxs(G,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(fs,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(gs,{permission:s?"":"mutate_notification",role:s?ko:[],children:j&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(te,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Uc=Ze.div`
|
|
33
33
|
width: 420px;
|
|
34
34
|
|
|
35
35
|
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
@@ -72,7 +72,7 @@ ${r}
|
|
|
72
72
|
background: ${e=>e.theme.palette.primary.light};
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
`;jn.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};jn.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(yr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{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(Vo,{onClickAway:u,children:c.jsx("div",{children:c.jsx(jn,{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
|
|
75
|
+
`;jn.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};jn.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(yr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{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(Vo,{onClickAway:u,children:c.jsx("div",{children:c.jsx(jn,{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 Bc=`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=Ho();return c.jsx(wn,{api:t,viewAllUrl:Bc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function kc(){const{inFullPage:e,toggleFullPage:t}=ys();return A(Ut,{onClick:t,children:e?A(fo,{sx:{transform:"scale(1.3)"}}):A(uo,{sx:{transform:"scale(1.3)"}})})}function _n({children:e}){var h;const{t}=Q(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Ee(),{info:a}=qo(),l=Ko(),u=et(j=>j.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=j=>{var g,_,w,O;const I=Array.isArray(j)?j:[j];if(I.unshift(A(Sn,{})),u||I.unshift(A(kc,{})),s){const S={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Go(s)?I.unshift(A(mn,{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:(w=s==null?void 0:s.controller)==null?void 0:w.launcherSessionId,launcherUrl:(O=s==null?void 0:s.controller)==null?void 0:O.launcherUrl,sx:S})):a.ownerNft&&a.launcher&&I.unshift(A(gn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:S}))}return I},b={};return u&&(b.logo=null),pt(zc,{legacy:!1,fullWidth:!0,headerAddons:v,headerProps:b,isMobile:u,footerProps:{addon:A(dn,{infos:p})},children:[!s&&n&&A(Ke,{relative:"parent",children:A(te,{})}),!s&&r&&pt(Ke,{relative:"parent",children:[pt(D,{display:"flex",alignItems:"center",children:[A(ao,{color:"error",sx:{marginRight:1}}),zt(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:vs,resetKeys:[l.pathname],children:e})})]})}_n.propTypes={children:m.any};_n.defaultProps={children:null};const zc=Ze(bs)`
|
|
76
76
|
div.dashboard-content {
|
|
77
77
|
padding: 0;
|
|
78
78
|
}
|
|
@@ -116,7 +116,7 @@ ${r}
|
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
}
|
|
119
|
-
`;function Wc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Ee(),[o,i]=cs({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;In(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||!
|
|
119
|
+
`;function Wc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Ee(),[o,i]=cs({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;In(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 In(n,r)?(s=c.jsx(gr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:qe(r==null?void 0:r.reservedUntil,t)})):Zo(n,r)&&(s=c.jsx(Bt,{to:ke($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:qe(r==null?void 0:r.terminatedAt,t),deadline:Jo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(D,{component:qc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(G,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const go=x.createContext({});function Nl(){return x.useContext(go)}const{Provider:Gc,Consumer:Ml}=go,{did:K,appId:Qc}=window.env;function Xc({children:e}){var S,R;const{t,locale:n}=Q(),{blocklet:r}=Ee(),[o,i]=x.useState([]),[s,a]=x.useState([]),[l,u]=x.useState([]),d=B.getDisplayName(r),f=((S=((r==null?void 0:r.environments)||[]).find(C=>C.key===Z.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:S.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 Me.doBatchQuery({getRoles:{input:{teamDid:K}},getPermissions:{input:{teamDid:K}},getInvitations:{input:{teamDid:K}}});a((C.getRoles.roles||[]).filter(P=>!$.RBAC_CONFIG.roles.some(E=>E.name===P.name&&(!E.passport||E.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)}},j=({did:C}={})=>{const P={teamDid:K,user:{did:C}};return Me.getUser({input:P})},I=({query:C,paging:P}={})=>{const E={teamDid:K};return P&&(E.paging=P),C&&(E.query=C),E.sort={lastLoginAt:-1},Me.getUsers({input:E})},g=()=>Me.getUsersCountPerRole({input:{teamDid:K}}),_=()=>h();x.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(R=r==null?void 0:r.meta)==null?void 0:R.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 w=C=>{C.teamDid===K&&h()};ze(Z.TeamEvents.userAdded,w,[K]),ze(Z.TeamEvents.userRemoved,w,[K]),ze(Z.TeamEvents.userUpdated,w,[K]);const O={teamDid:K,teamIssuerDid:Qc,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:j,getUsers:I,getUsersCountPerRole:g}};return c.jsx(Gc,{value:O,children:e})}const Yc=x.lazy(()=>F(()=>import("./overview-CFbnZdV0.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,52]))),Zc=x.lazy(()=>F(()=>import("./index-BiafpQ0u.js"),__vite__mapDeps([53,1,2,54,9,55,56,57,58,27,28,29,30,31,59,60,33,61,44,45,37,38,62,49,63,64,34,12,40,65,47,48,50,51,52,10,46,19,66,23,67,21,7,68,69,6,13,14,15,70,17,18,4,16,71,72,35,36,73,39,41,42,43,5,20]))),Jc=x.lazy(()=>F(()=>import("./index-CLQi4cVY.js"),__vite__mapDeps([74,1,2,9,75,10,42,76,11,57,58,27,28,29,30,31,13,14,15,16,17,18,19,44,77,12,6,7,5,20,78,38,39,40,34,41,37,43,45,46,47,48,49,50,51,52]))),el=x.lazy(()=>F(()=>import("./index-2xySyQ5i.js"),__vite__mapDeps([79,1,2,80,81,82,83,54,76,84,42,27,28,29,30,31,85,46,19,10,38,55,86,18,87,13,14,15,16,17,20,70,44,68,12,88,89,37,63,64,61,90,3,91,59,60,33,45,62,49,58,34,40,4,92,93,39,41,43,5,7,47,48,50,51,52,94]))),tl=x.lazy(()=>F(()=>import("./audit-logs-C1AOwGce.js"),__vite__mapDeps([95,1,2,96,97,12,5,39,28,29,30,31,98,62,99,38,40,16,17,18,19,34,41,37,42,43,44,45,46,15,13,14,7,20,47,48,49,50,51,52]))),nl=x.lazy(()=>F(()=>import("./log-o0iKO5dx.js"),__vite__mapDeps([100,1,2,39,42,101,28,29,31,102]))),rl=x.lazy(()=>F(()=>import("./index-Ca5y7O4k.js"),__vite__mapDeps([103,1,2,9,104,34,105,59,60,33,61,44,29,28,45,30,37,31,27,38,62,49,63,64,58,12,40,5,16,17,18,19,15,6,7,85,46,73,101,106,20,54,72,25,93,10,23,107,108,109,88,82,70,42,110,84,78,68,96,97,99,111,43]))),ol=x.lazy(()=>F(()=>import("./config-navigation-Rsc7sQGs.js"),__vite__mapDeps([112,1,2,63,64,61,113,110,86,31,28,29,18,19,114,115,30,37,27,38,78,65,47,48,49,50,51,40,52,10,46,116,17,42,32,33,39,16,34,41,43,44,45,15,13,14,5,7,20]))),sl=x.lazy(()=>F(()=>import("./index-B7Un-ZeO.js"),__vite__mapDeps([117,1,2,75,10,42,25,118,67,119,93,17,27,28,29,30,31,18,19,4,6,7,90,68,44,36,108,37,87,5,59,60,33,61,45,38,62,49,63,64,58,34,12,40]))),il=x.lazy(()=>F(()=>import("./component-npmbPVSM.js"),__vite__mapDeps([120,1,2,9,81,82,83,54,76,84,42,27,28,29,30,31,12,90,68,44,13,14,15,38,60,33,61,45,37,62,49,64,58,121,85,46,19,108,104,113,110,116,78,122,70,34,18,17,123,124,125,119,93,25,126,50,127,128,129,130,131,77,96,97,114,4,6,7,111,109,40,88,73,16,26,132,118,67,75,10,133,39,47,134,135,11,22,43,41,35,36,5,20,48,51,52]))),al=x.lazy(()=>F(()=>import("./analytics-B29460Yu.js"),__vite__mapDeps([136,1,2,38,13,14,15,80,137,121,61,85,46,19,64,40,37,28,29,31,18,17,33,107,27,30,78,59,60,44,45,62,49,63,58,34,12,39,16,41,42,43,5,7,20,47,48,50,51,52]))),cl=x.lazy(()=>F(()=>import("./notifications-B9Mu8Fxb.js"),__vite__mapDeps([138,1,2,13,14,15,44,29,40,46,19,37,98,62,38,39,16,17,18,34,41,42,43,45,5,7,20,47,48,49,50,51,52])));function ll(){var h,j;const e=Je(),{tab:t="overview"}=ns(),{blocklet:n,actions:{refreshBlocklet:r}}=Ee(),{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||xt(n.status)?[]:B.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(yr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((j=n.children)!=null&&j.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(tl,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});ze($.EVENTS.NOTIFICATION_BLOCKLET_CREATE,I=>{const{severity:g,title:_,description:w}=I||{};g==="error"?J.error(w||_):J.success(w||_)});const f={overview:c.jsx(Yc,{}),members:c.jsx(D,{mt:-5,children:c.jsx(Zc,{type:"blocklet",createPassportSvg:En})}),passports:c.jsx(D,{mt:-4.5,children:c.jsx(Jc,{createPassportSvg:En})}),components:il,configuration:c.jsx(el,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:nl,navigation:ol,storage:c.jsx(sl,{}),analytics:c.jsx(D,{mt:-5,children:c.jsx(al,{})}),publish:c.jsx(D,{mt:-3,children:c.jsx(rl,{})}),notifications:c.jsx(cl,{})},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(Ke,{relative:"parent",children:c.jsx(te,{})}),children:x.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})});return c.jsx(rs,{children:c.jsx(Xc,{children:c.jsx(_n,{children:c.jsxs(dl,{children:[v&&c.jsxs(D,{component:"div",className:"page-header",children:[c.jsxs(G,{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:B.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(Ir,{}),c.jsx(Wc,{}),b]})})})})}function ul(){var r;const{blocklet:e}=Ee(),{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(ll,{})]})}const dl=Ze.main`
|
|
120
120
|
.page-header {
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: space-between;
|
|
@@ -162,4 +162,4 @@ ${r}
|
|
|
162
162
|
margin-bottom: 15px;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,Ul=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));export{tn as B,Ts as L,po as N,bn as R,en as W,xi as _,yr as a,ci as b,_r as c,ao as d,Jt as e,vr as f,Vt as g,pe as h,xr as i,Al as j,br as k,$l as l,Ul as m,
|
|
165
|
+
`,Ul=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));export{tn as B,Ts as L,po as N,bn as R,en as W,xi as _,yr as a,ci as b,_r as c,ao as d,Jt as e,vr as f,Vt as g,pe as h,xr as i,Al as j,br as k,$l as l,Ul as m,Ye as p,Nl as u};
|
|
@@ -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-DfZjT3WA.js";import{L as l}from"./Link-Cpnh7s1v.js";function a({did:o,href:t,external:n,avatarProps:f,...i}){const e=s.jsx(p,{did:o,...i});return t?n?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};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{j as i,r,a0 as P,aj as C,a7 as T,fC as B,a4 as h,B as a,P as f,Z as w}from"./index-DfZjT3WA.js";import{D as E,a as b,A as I}from"./domain-list-wgNQeEgv.js";import{P as A}from"./page-header-BvuGyCDw.js";import{_ as L}from"./useSetState-BTR-3GfC.js";import{S as d}from"./button-BqgSoT0h.js";import{S as W}from"./layout-Bb2LZLxa.js";import{S as _}from"./step-actions-CoJc8417.js";import"./Add-D8_0U-mi.js";import"./ExpandMore-DBQIHjkB.js";import"./LockIcon-CoUaWmH-.js";import"./index-DHNVLiI8.js";import"./did-address-BWnma-3-.js";import"./Link-Cpnh7s1v.js";import"./permission-BuA9Zt4q.js";import"./useAsync-Ca_M5Jhn.js";import"./session-Cw-dytKR.js";import"./confirm-3b8GTIgU.js";import"./format-error-BVI56bJg.js";import"./Alert-Dlco0B3L.js";import"./useSlot-C1f6ZTLt.js";import"./use-mobile-C19pzcVe.js";import"./InfoOutlined-BIY-Lnxg.js";import"./OpenInNew-svkkbJCn.js";import"./index-BK4259Qj.js";import"./api-DbvHYaVa.js";import"./index-C2sin8wt.js";import"./util-DBNeRhAr.js";import"./TextField-D_Jtjg13.js";import"./FormControl-CeSJJZgZ.js";import"./useFormControl-Cs3LGXJe.js";import"./InputLabel-3M9sMlBq.js";import"./Select-drnrjZt8.js";import"./LoadingButton-C47nsxMx.js";import"./useThemeProps-BjkDmxHT.js";import"./Delete-BaSq9RZZ.js";import"./actions-5mXSkQB4.js";import"./MoreHoriz-B4gnOmnB.js";import"./ListItemText-CHjUage1.js";import"./content-layout-B7X0Mv3n.js";function p({onNext:s,onPrevious:D}){var u,x;const{t:o}=r.useContext(P),[S,l]=r.useState(!1),{blocklet:e}=C(),[c,j]=r.useState(""),y=(((e==null?void 0:e.site)||{}).domainAliases||[]).map(t=>T.replaceSlotToIp(t.value,c)),[n,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),v=(x=(u=e.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:o("setup.domain.title"),subTitle:o("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:o("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:o("setup.domain.skip")})}),i.jsx(a,{display:"inline",children:o("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:o("setup.domain.addTitle")}),i.jsx(I,{autoFocus:!1,appPk:v,appId:e.appPid,siteId:e.site.id,teamDid:e.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:e,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||o("setup.next")}):i.jsx(d,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:o("setup.skip")})})]})}function Pt(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
|
+
height: 100%;
|
|
3
|
+
overflow-y: hidden;
|
|
4
|
+
.form {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
word-break: break-all;
|
|
8
|
+
}
|
|
9
|
+
`;export{Pt as default};
|