@abtnode/webapp 1.16.47-beta-20250717-221700-2d886a18 → 1.16.47-beta-20250721-025348-9ccb2d62
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-CY5F-qOY.js → AdapterDayjs-BFw8WrXl.js} +1 -1
- package/dist/assets/{Add-C-JGR7WX.js → Add-3_OvaFrP.js} +1 -1
- package/dist/assets/ArrowDropDown-BS9tp8MS.js +1 -0
- package/dist/assets/{Autocomplete-BUKgT1H8.js → Autocomplete-8ICuj-KH.js} +1 -1
- package/dist/assets/{Breadcrumbs-BHAIleTC.js → Breadcrumbs-BGvPLgGW.js} +1 -1
- package/dist/assets/{ButtonGroup-BpbIaw4r.js → ButtonGroup-C0aG4xOT.js} +1 -1
- package/dist/assets/{CSSTransition-CEGsXFa4.js → CSSTransition-KO9L5iBp.js} +1 -1
- package/dist/assets/{CallMerge-BG9sfWb7.js → CallMerge-F8oCB8nE.js} +1 -1
- package/dist/assets/{CardContent-Brh_eQ9r.js → CardContent-Cqmek5wY.js} +1 -1
- package/dist/assets/{ChevronLeft-mBfiaSS1.js → ChevronLeft-BPyHvtRf.js} +1 -1
- package/dist/assets/{ChevronRight-BhZK0m02.js → ChevronRight-BgqwQ3It.js} +1 -1
- package/dist/assets/{Clear-BgmnunuK.js → Clear-DMvY-1OH.js} +1 -1
- package/dist/assets/{DeleteOutline-CMvAWFzN.js → DeleteOutline-qcbzQjhi.js} +1 -1
- package/dist/assets/{Done-KBM5PYQe.js → Done-BowXQslF.js} +1 -1
- package/dist/assets/{Edit-qr4VAp95.js → Edit-BQ0nYDQE.js} +1 -1
- package/dist/assets/{ErrorOutline-DrbqnFJ2.js → ErrorOutline-DAMAJ1cH.js} +1 -1
- package/dist/assets/{FilterList-C5IPtX8B.js → FilterList-BZwgYvWc.js} +1 -1
- package/dist/assets/{Google-BISAgJ7z.js → Google-BbDWC590.js} +1 -1
- package/dist/assets/{HelpOutline-C5r6R3H8.js → HelpOutline-Dq1Jw2rR.js} +1 -1
- package/dist/assets/{Launch-DirijHL1.js → Launch-DXqdimna.js} +1 -1
- package/dist/assets/{Link-RiuSe0e2.js → Link-BRz6zIZp.js} +1 -1
- package/dist/assets/{ListItemButton-G0gHUcJH.js → ListItemButton-BQgIuXFI.js} +1 -1
- package/dist/assets/{ListSubheader-DA2-DVZb.js → ListSubheader-BOpeFxej.js} +1 -1
- package/dist/assets/{LoadingButton-zyVJPqWL.js → LoadingButton-BnL-MknW.js} +1 -1
- package/dist/assets/{MoreVert-_f7HjK7U.js → MoreVert-L8j8_EPz.js} +1 -1
- package/dist/assets/{OpenInNew-B8Hi9-Aa.js → OpenInNew-CNDlD7xM.js} +1 -1
- package/dist/assets/{Refresh-D5HBHck5.js → Refresh-DfIM0DIk.js} +1 -1
- package/dist/assets/{Search-BJ29HaSB.js → Search-DhxCIV3r.js} +1 -1
- package/dist/assets/{Slider-8UJs62jS.js → Slider-ClGXzRor.js} +1 -1
- package/dist/assets/{Stepper-DFkDVDUN.js → Stepper-JT4HRwKe.js} +1 -1
- package/dist/assets/{Switch-B-0geYaG.js → Switch-MO_QYoYi.js} +1 -1
- package/dist/assets/{TableSearch-B-T4xf1Y.js → TableSearch-DFzxfreZ.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-D0lgwkEn.js → ToggleButtonGroup-ByMjc-sd.js} +1 -1
- package/dist/assets/{Verified-D9QmxLSp.js → Verified-CsK6wp5l.js} +1 -1
- package/dist/assets/{VerifiedUser-W0URZfI1.js → VerifiedUser-CMhuvwNe.js} +1 -1
- package/dist/assets/{ViewList-CBW6lkQ9.js → ViewList-Duo-FkyC.js} +1 -1
- package/dist/assets/{_createAggregator-B7uAY9MP.js → _createAggregator-jhHxKsby.js} +1 -1
- package/dist/assets/{actions-J2QPqEIR.js → actions-CZaWtcNS.js} +1 -1
- package/dist/assets/{actions-Bqwe_eeJ.js → actions-qwmjFYBC.js} +1 -1
- package/dist/assets/{agreement-C3fURNDy.js → agreement-D5zRURFk.js} +1 -1
- package/dist/assets/api-BgPXZvcj.js +1 -0
- package/dist/assets/{appearance-BkUNpZVk.js → appearance-D0pksf5H.js} +1 -1
- package/dist/assets/{audit-logs-CgyzZo8L.js → audit-logs-CDjWOFeM.js} +1 -1
- package/dist/assets/{base-chart-CzIZI7kP.js → base-chart-CluI6A_u.js} +1 -1
- package/dist/assets/{blocklet-CxgGBUvX.js → blocklet-DmmVfj87.js} +1 -1
- package/dist/assets/{chain-C1BJFkRR.js → chain-DjRxb2FX.js} +1 -1
- package/dist/assets/{click-to-copy-BJD4pP2S.js → click-to-copy-C9lDYNLy.js} +1 -1
- package/dist/assets/client-DdpjvpuA.js +1 -0
- package/dist/assets/cloneDeep-BrIshN9W.js +1 -0
- package/dist/assets/{collapse-BChJU-xb.js → collapse-BQKIAHAH.js} +1 -1
- package/dist/assets/{config-navigation-ILBEBfla.js → config-navigation-CQIu6H-p.js} +3 -3
- package/dist/assets/{connect-to-D2f0TQaC.js → connect-to-DHpXpfiO.js} +1 -1
- package/dist/assets/{cssMode-Cq_mmr8j.js → cssMode-BBItj1D2.js} +1 -1
- package/dist/assets/{delete-confirm-CwBSbfmS.js → delete-confirm-BMlllWsg.js} +1 -1
- package/dist/assets/{depsEqual-DMHly6fz.js → depsEqual-CgwmaLj6.js} +1 -1
- package/dist/assets/{detail-DIUSlB-S.js → detail-C2QPTAoo.js} +3 -3
- package/dist/assets/{domains-DBt_qdYG.js → domains-Dl1bYLcB.js} +1 -1
- package/dist/assets/{download-BYyG4swb.js → download-BDQD3mNs.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-B0z8ZzTf.js +1 -0
- package/dist/assets/engine-DUBYjcGZ.js +1 -0
- package/dist/assets/{freemarker2-YNWsYPEX.js → freemarker2-CxtHcqRE.js} +1 -1
- package/dist/assets/{get-safe-url-D5Xp3EJt.js → get-safe-url-DjCQU-uR.js} +1 -1
- package/dist/assets/getValidReactChildren--K7J75d3.js +1 -0
- package/dist/assets/{graphqlMode-CkZj1Pkv.js → graphqlMode-CbjQQAvT.js} +2 -2
- package/dist/assets/{handlebars-CIYh89DK.js → handlebars-C66BpWqS.js} +1 -1
- package/dist/assets/{html-CzHkpzUZ.js → html-CcZE7wWD.js} +1 -1
- package/dist/assets/{htmlMode-BdxWzg-L.js → htmlMode-Co-CiFip.js} +1 -1
- package/dist/assets/{iframe-CKLYV5eL.js → iframe-CDG05FDN.js} +1 -1
- package/dist/assets/{index-C6eCVPuA.js → index-2lVCCQPq.js} +1 -1
- package/dist/assets/{index-DkQMdkDJ.js → index-7JYHSDyg.js} +1 -1
- package/dist/assets/{index-CrTw1v2G.js → index-Aeyu2TZE.js} +1 -1
- package/dist/assets/{index-BhwBVrhP.js → index-B78o0tBY.js} +1 -1
- package/dist/assets/{index-ukCxqYQ3.js → index-B9sYADXK.js} +3 -3
- package/dist/assets/{index-BTwjaad9.js → index-BDbOUXLI.js} +1 -1
- package/dist/assets/{index-D18QOAa2.js → index-BKWGpyEb.js} +1 -1
- package/dist/assets/{index-Cwf3bf57.js → index-BMSZcMWl.js} +1 -1
- package/dist/assets/{index-D1w_phcb.js → index-BMW6t5La.js} +3 -3
- package/dist/assets/{index-CViKQyIh.js → index-B_5pYJ4-.js} +1 -1
- package/dist/assets/{index-DNG5izj4.js → index-Bdl1ybk6.js} +1 -1
- package/dist/assets/{index-luUossMM.js → index-BeHzPQZj.js} +1 -1
- package/dist/assets/{index-CvywAZEv.js → index-Bf6iPAUC.js} +1 -1
- package/dist/assets/{index-C_L0YUuS.js → index-Bh_lBdo5.js} +1 -1
- package/dist/assets/{index-CMJ6xnSL.js → index-BnfGPxgW.js} +3 -3
- package/dist/assets/{index-DP68LpSl.js → index-By2wVIz8.js} +1 -1
- package/dist/assets/{index-ipzNz7Ju.js → index-C3kcppBt.js} +3 -3
- package/dist/assets/{index-_8oRZcHP.js → index-C4mOfCm_.js} +104 -105
- package/dist/assets/{index-D2I55BMO.js → index-C8N7W-i9.js} +1 -1
- package/dist/assets/{index-D2GtEPw5.js → index-CHuu0Peu.js} +1 -1
- package/dist/assets/{index-CJwX-OYV.js → index-COm9hgx_.js} +1 -1
- package/dist/assets/{index-Cul8PQ9A.js → index-COoCcBTs.js} +1 -1
- package/dist/assets/{index-BCocEWMy.js → index-CWitGXiK.js} +1 -1
- package/dist/assets/{index-C3hJRnJE.js → index-CgrNfQPb.js} +1 -1
- package/dist/assets/{index-C_Wb23_l.js → index-Ci4hOeJE.js} +9 -9
- package/dist/assets/{index-DUinRQw4.js → index-CrmgQXdO.js} +1 -1
- package/dist/assets/{index-DJ3LOVXA.js → index-DMDr-aHX.js} +1 -1
- package/dist/assets/{index-B8TH6W7H.js → index-DOUb8Oty.js} +1 -1
- package/dist/assets/{index-BkktSh-D.js → index-D_0TT77X.js} +1 -1
- package/dist/assets/{index-Bnzx_d6J.js → index-DcEAUxTy.js} +1 -1
- package/dist/assets/{index-BoCWZ9Ig.js → index-DiXzeHiX.js} +1 -1
- package/dist/assets/{index-CI3XNytL.js → index-DkZ-t39O.js} +1 -1
- package/dist/assets/{index-CSdvRvdf.js → index-Dl5cdLQr.js} +1 -1
- package/dist/assets/{index-DWevfoMr.js → index-Dn78lnTO.js} +1 -1
- package/dist/assets/{index-CNNYI2ZJ.js → index-Dogk0bXr.js} +1 -1
- package/dist/assets/{index-FGF_OyEg.js → index-DqEym-za.js} +1 -1
- package/dist/assets/{index-DRXB64XT.js → index-DwRrLRJc.js} +1 -1
- package/dist/assets/{index-WCnj110a.js → index-EO2zxFAb.js} +1 -1
- package/dist/assets/{index-aDhSn6Mb.js → index-IN1tBuCi.js} +2 -2
- package/dist/assets/index-P46fTVgx.js +1 -0
- package/dist/assets/{index-gcsLojkd.js → index-PpgfbTC9.js} +1 -1
- package/dist/assets/{index-CF-9tLrO.js → index-TN8GUnjq.js} +1 -1
- package/dist/assets/{index-10qlFG48.js → index-Zbp1kEfl.js} +1 -1
- package/dist/assets/{index-DyuzoqrM.js → index-aHwqwLCS.js} +1 -1
- package/dist/assets/{index-DSEgIocn.js → index-aTfhQ_l6.js} +1 -1
- package/dist/assets/{index-hcJKr5Kv.js → index-quoltoEL.js} +1 -1
- package/dist/assets/{index-UlSeBo7J.js → index-wt9OBpRJ.js} +1 -1
- package/dist/assets/{index.esm-BbCeLnEG.js → index.esm-DNwQmbRZ.js} +1 -1
- package/dist/assets/{install-from-url-Cssyl_EF.js → install-from-url-n_csAYU3.js} +1 -1
- package/dist/assets/{invitation-BbzPu4Vz.js → invitation-CJpjGArf.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-xOcqHaZi.js → is-path-prefix-equal-H7FSCLy3.js} +1 -1
- package/dist/assets/{item-CA0AhoeU.js → item-DB4nd60x.js} +1 -1
- package/dist/assets/{javascript-iz35kkfv.js → javascript-CRAJjnJB.js} +1 -1
- package/dist/assets/{jsonMode-DTMWRjiz.js → jsonMode-JVhrkI3w.js} +1 -1
- package/dist/assets/{liquid-D_2oxmDK.js → liquid-pnBuAzEz.js} +1 -1
- package/dist/assets/{list-header-rZDwQy84.js → list-header-BFKavQgG.js} +1 -1
- package/dist/assets/{log-UVsl0ja-.js → log-C7JSHIt2.js} +1 -1
- package/dist/assets/{lottie-react.esm-D-ZQShTC.js → lottie-react.esm-D1pS2-gK.js} +1 -1
- package/dist/assets/{mdx-9l6bUhTM.js → mdx-DHtsrRy5.js} +1 -1
- package/dist/assets/{memory-Bs7i-RSl.js → memory-oRFPonQg.js} +1 -1
- package/dist/assets/{metric-Bhfho-F8.js → metric-nsIZMw3V.js} +1 -1
- package/dist/assets/omit-B4Sq5gLR.js +1 -0
- package/dist/assets/{overview-Dpbkcjeq.js → overview-BP2YMbQO.js} +1 -1
- package/dist/assets/{permission-CjJ84P8d.js → permission-CAwWHgKo.js} +1 -1
- package/dist/assets/{preference-J3dyippO.js → preference-D2ak1a33.js} +3 -3
- package/dist/assets/{python-D62k2JIN.js → python-DXO2W9B9.js} +1 -1
- package/dist/assets/{raf-schd.esm-C1oPRTDZ.js → raf-schd.esm-ClEAlDQA.js} +1 -1
- package/dist/assets/{razor-B8qk-YVu.js → razor-CKVf_K1K.js} +1 -1
- package/dist/assets/{rotate-session-key-D91iBAY4.js → rotate-session-key-IpOZAFU_.js} +1 -1
- package/dist/assets/{runtime-tnq2Lk6e.js → runtime-K5Ixf2xG.js} +1 -1
- package/dist/assets/schema-Bp4DleAG.js +1 -0
- package/dist/assets/sdk-Bvs7QtVW.js +1 -0
- package/dist/assets/{service-WuUIzS1n.js → service-De8RUcAB.js} +1 -1
- package/dist/assets/{shorten-label-Daz_9q6V.js → shorten-label-BB7eBTVn.js} +1 -1
- package/dist/assets/{simple-select-DWPU6K2J.js → simple-select-DuFdntI_.js} +1 -1
- package/dist/assets/{spaces-GphSy-vT.js → spaces-DboV6EBE.js} +1 -1
- package/dist/assets/{status-8_e4qfZ_.js → status-D0iiky_Q.js} +1 -1
- package/dist/assets/{status-RQRQdpaf.js → status-YKpSQSD8.js} +1 -1
- package/dist/assets/{switch-control-CKSbA6D9.js → switch-control-BvELbAm3.js} +1 -1
- package/dist/assets/{table-icons-oE5i83sx.js → table-icons-BJW-SCQe.js} +1 -1
- package/dist/assets/{team-CSpa5Bju.js → team-D7M0Ye34.js} +1 -1
- package/dist/assets/{toLower-CN0NnjsS.js → toLower-aE-9IHcm.js} +1 -1
- package/dist/assets/toUpper-Bb2HGHT9.js +1 -0
- package/dist/assets/{traffic-C_abMGz2.js → traffic-BA1sKvQV.js} +1 -1
- package/dist/assets/{tsMode-DPBq0xUc.js → tsMode-cBsNNznm.js} +1 -1
- package/dist/assets/{typescript-EAZJ11vd.js → typescript-D0SX8RzB.js} +1 -1
- package/dist/assets/{url-evaluation-C9ybfEbS.js → url-evaluation-CNPtf5Sl.js} +1 -1
- package/dist/assets/{url-join-B-Ittgpb.js → url-join-BBoInSaA.js} +1 -1
- package/dist/assets/{use-mobile-CaA0LsNn.js → use-mobile-B1UpSPIX.js} +1 -1
- package/dist/assets/{use-mobile-CFs8fmsh.js → use-mobile-Cebu3wjw.js} +1 -1
- package/dist/assets/{useAsync-BKfoGger.js → useAsync-CBexZUTy.js} +1 -1
- package/dist/assets/{useAsyncRetry-NHLe7YO4.js → useAsyncRetry-CKBioJX5.js} +1 -1
- package/dist/assets/{useLocalStorage-BEs66pts.js → useLocalStorage-BTzsh1Lj.js} +1 -1
- package/dist/assets/{useThemeProps-DXk_HLKM.js → useThemeProps-d3GR3gue.js} +1 -1
- package/dist/assets/{util-Cbf8gAh_.js → util-DXUxNwaT.js} +1 -1
- package/dist/assets/{wait-container-C4klN3Th.js → wait-container-2gTMdAkJ.js} +1 -1
- package/dist/assets/{without-wallet-DaUHusY5.js → without-wallet-CIoRe4lL.js} +1 -1
- package/dist/assets/{wrap-locale-5NaChz5C.js → wrap-locale-3LS80w24.js} +1 -1
- package/dist/assets/{xml-ZkmPNLNd.js → xml-BUC5O1uY.js} +1 -1
- package/dist/assets/{yaml-CuZzQDBi.js → yaml-DiA-8wK9.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-CFSWcN3J.js +0 -1
- package/dist/assets/api-Dksjqhj9.js +0 -1
- package/dist/assets/client-D1yTa59W.js +0 -1
- package/dist/assets/cloneDeep-DymekVbc.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-2hka6KsY.js +0 -1
- package/dist/assets/engine-IPaOGJ95.js +0 -1
- package/dist/assets/getValidReactChildren-Cq-L2XG5.js +0 -1
- package/dist/assets/index-ZXKsu0i-.js +0 -1
- package/dist/assets/omit-DOuoJ5G3.js +0 -1
- package/dist/assets/schema-C2mGuU4x.js +0 -1
- package/dist/assets/sdk-fTtyOYPc.js +0 -1
- package/dist/assets/toUpper-Dul2guy6.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-
|
|
2
|
-
import{m as $e,n as Ue,bn as Et,r as y,E as N,j as d,X as He,N as Y,v as qe,w as _t,J as T,bx as Ct,H as W,Y as Qe,bm as Ge,A as Tt,u as jt,by as Pt,bz as At,bA as je,bB as Dt,bC as Ot,Z as Pe,C as Ae,K as Lt,bD as Bt,T as ae,M as Mt,bE as k,s as Rt}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-BP2YMbQO.js","./index-C4mOfCm_.js","./index-DGkT7afN.css","./HelpOutline-Dq1Jw2rR.js","./status-D0iiky_Q.js","./index-P46fTVgx.js","./ErrorOutline-DAMAJ1cH.js","./omit-B4Sq5gLR.js","./index-BojVbZw0.js","./index-Aeyu2TZE.js","./blocklet-DmmVfj87.js","./team-D7M0Ye34.js","./url-evaluation-CNPtf5Sl.js","./metric-nsIZMw3V.js","./spaces-DboV6EBE.js","./api-BgPXZvcj.js","./domains-Dl1bYLcB.js","./index-BeHzPQZj.js","./useAsync-CBexZUTy.js","./permission-CAwWHgKo.js","./actions-qwmjFYBC.js","./delete-confirm-BMlllWsg.js","./click-to-copy-C9lDYNLy.js","./status-YKpSQSD8.js","./VerifiedUser-CMhuvwNe.js","./CardContent-Cqmek5wY.js","./Add-3_OvaFrP.js","./CallMerge-F8oCB8nE.js","./toLower-aE-9IHcm.js","./use-mobile-Cebu3wjw.js","./util-DXUxNwaT.js","./is-path-prefix-equal-H7FSCLy3.js","./engine-DUBYjcGZ.js","./OpenInNew-CNDlD7xM.js","./LoadingButton-BnL-MknW.js","./index-Bf6iPAUC.js","./preference-D2ak1a33.js","./index-COm9hgx_.js","./index-quoltoEL.js","./iframe-CDG05FDN.js","./ChevronRight-BgqwQ3It.js","./index-DkZ-t39O.js","./Done-BowXQslF.js","./chain-DjRxb2FX.js","./ArrowDropDown-BS9tp8MS.js","./ButtonGroup-C0aG4xOT.js","./getValidReactChildren--K7J75d3.js","./Autocomplete-8ICuj-KH.js","./ListSubheader-BOpeFxej.js","./index-CHuu0Peu.js","./index.esm-DNwQmbRZ.js","./collapse-BQKIAHAH.js","./Switch-MO_QYoYi.js","./rotate-session-key-IpOZAFU_.js","./index-TN8GUnjq.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./switch-control-BvELbAm3.js","./Slider-ClGXzRor.js","./visuallyHidden-Dan1xhjv.js","./index-EO2zxFAb.js","./FilterList-BZwgYvWc.js","./CSSTransition-KO9L5iBp.js","./emotion-cache.browser.esm-B0z8ZzTf.js","./depsEqual-CgwmaLj6.js","./TableSearch-DFzxfreZ.js","./Search-DhxCIV3r.js","./Clear-DMvY-1OH.js","./MoreVert-L8j8_EPz.js","./index-DOUb8Oty.js","./index-Dl5cdLQr.js","./index-ZgkIHsf0.css","./use-mobile-B1UpSPIX.js","./simple-select-DuFdntI_.js","./actions-CZaWtcNS.js","./useLocalStorage-BTzsh1Lj.js","./get-safe-url-DjCQU-uR.js","./appearance-D0pksf5H.js","./config-navigation-CQIu6H-p.js","./cloneDeep-BrIshN9W.js","./_createAggregator-jhHxKsby.js","./raf-schd.esm-ClEAlDQA.js","./ListItemButton-BQgIuXFI.js","./client-DdpjvpuA.js","./index-aTfhQ_l6.js","./shorten-label-BB7eBTVn.js","./Refresh-DfIM0DIk.js","./traffic-BA1sKvQV.js","./ChevronLeft-BPyHvtRf.js","./index-DBii9-f-.js","./base-chart-CluI6A_u.js","./index-COoCcBTs.js","./AdapterDayjs-BFw8WrXl.js","./useThemeProps-d3GR3gue.js","./audit-logs-CDjWOFeM.js","./index-PpgfbTC9.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./index-C8N7W-i9.js","./index-Dn78lnTO.js","./Google-BbDWC590.js","./list-header-BFKavQgG.js","./ToggleButtonGroup-ByMjc-sd.js","./index-B78o0tBY.js","./ViewList-Duo-FkyC.js","./Verified-CsK6wp5l.js","./DeleteOutline-qcbzQjhi.js","./index-DiXzeHiX.js","./sdk-Bvs7QtVW.js","./service-De8RUcAB.js","./table-icons-BJW-SCQe.js","./Edit-BQ0nYDQE.js","./index-B9sYADXK.js","./Link-BRz6zIZp.js","./item-DB4nd60x.js","./Launch-DXqdimna.js","./item-G0iZE90Q.css","./index-CrmgQXdO.js","./url-join-BBoInSaA.js","./connect-to-DHpXpfiO.js","./index-DRYJ0xIl.js","./agreement-D5zRURFk.js","./install-from-url-n_csAYU3.js","./without-wallet-CIoRe4lL.js","./Stepper-JT4HRwKe.js","./toUpper-Bb2HGHT9.js","./log-C7JSHIt2.js","./download-BDQD3mNs.js","./download-1sZ_L4eJ.css","./runtime-K5Ixf2xG.js","./memory-oRFPonQg.js","./index-DwRrLRJc.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{m as $e,n as Ue,bn as Et,r as y,E as N,j as d,X as He,N as Y,v as qe,w as _t,J as T,bx as Ct,H as W,Y as Qe,bm as Ge,A as Tt,u as jt,by as Pt,bz as At,bA as je,bB as Dt,bC as Ot,Z as Pe,C as Ae,K as Lt,bD as Bt,T as ae,M as Mt,bE as k,s as Rt}from"./index-C4mOfCm_.js";import{T as Nt}from"./index-DkZ-t39O.js";import{B as Ft}from"./status-YKpSQSD8.js";import{D as Vt,B as zt}from"./actions-CZaWtcNS.js";import{u as $t}from"./blocklet-DmmVfj87.js";import{p as Ut}from"./index-BKWGpyEb.js";import{B as Ht,a as qt,T as Qt}from"./team-D7M0Ye34.js";import{P as Gt}from"./permission-CAwWHgKo.js";import{B as Kt}from"./Breadcrumbs-BGvPLgGW.js";import"./url-evaluation-CNPtf5Sl.js";import"./useLocalStorage-BTzsh1Lj.js";import"./MoreVert-L8j8_EPz.js";import"./get-safe-url-DjCQU-uR.js";import"./ButtonGroup-C0aG4xOT.js";import"./getValidReactChildren--K7J75d3.js";/**
|
|
3
3
|
* (c) Iconify
|
|
4
4
|
*
|
|
5
5
|
* For the full copyright and license information, please view the license.txt or license.gpl.txt
|
|
@@ -9,7 +9,7 @@ import{m as $e,n as Ue,bn as Et,r as y,E as N,j as d,X as He,N as Y,v as qe,w as
|
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
11
|
* @version 3.1.1
|
|
12
|
-
*/const Ke=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...Ke,...Z}),de=Object.freeze({...U,body:"",hidden:!1});function Wt(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 De(e,t){const n=Wt(e,t);for(const r in de)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Jt(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Xt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=De(r[c]||o[c],s)}return i(t),n.forEach(i),De(e,s)}function Yt(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=Jt(e);for(const o in r){const s=r[o];s&&(t(o,Xt(e,o,s)),n.push(o))}return n}const F=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!J(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!J(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!J(c,n)?null:c}return null},J=(e,t)=>e?!!((e.provider===""||e.provider.match(F))&&(t&&e.prefix===""||e.prefix.match(F))&&e.name.match(F)):!1,Zt={provider:"",aliases:{},not_found:{},...Ke};function le(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function en(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!le(e,Zt))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(F)||typeof s.body!="string"||!le(s,de))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(F)||typeof i!="string"||!n[i]&&!r[i]||!le(s,de))return null}return t}const ee=Object.create(null);function tn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ee[e]||(ee[e]=Object.create(null));return n[t]||(n[t]=tn(e,t))}function Ie(e,t){return en(t)?Yt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function nn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function on(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ee)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(ee[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let ke=!1;function rn(e){return ke}function H(e){const t=typeof e=="string"?B(e,!0,ke):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function sn(e,t){const n=B(e,!0,ke);if(!n)return!1;const r=C(n.provider,n.prefix);return nn(r,n.name,t)}function We(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!J({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ie(r,e)}function cn(e){return!!H(e)}function an(e){const t=H(e);return t?{...U,...t}:null}const Je=Object.freeze({width:null,height:null}),Xe=Object.freeze({...Je,...Z}),ln=/(-?[0-9.]*[0-9]+[0-9.]*)/g,un=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pe(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(ln);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=un.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const fn=e=>e==="unset"||e==="undefined"||e==="none";function oe(e,t){const n={...U,...e},r={...Xe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const v=[],_=g.hFlip,O=g.vFlip;let I=g.rotate;_?O?I+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):O&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let x;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:x=o.height/2+o.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}I%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=pe(p,l/a)):(u=i==="auto"?l:i,p=c===null?pe(u,a/l):c==="auto"?a:c);const f={},h=(g,v)=>{fn(v)||(f[g]=v.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const dn=/\sid="(\S+)"/g,pn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let mn=0;function Ye(e,t=pn){const n=[];let r;for(;r=dn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(mn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const A={local:!0,session:!0},Ze={local:new Set,session:new Set};let Ee=!1;function hn(e){Ee=e}const Oe="iconify2",$="iconify",et=$+"-count",Le=$+"-version",tt=36e5,gn=168;function me(e,t){try{return e.getItem(t)}catch{}}function _e(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Be(e,t){try{e.removeItem(t)}catch{}}function he(e,t){return _e(e,et,t.toString())}function ge(e){return parseInt(me(e,et))||0}let G=typeof window>"u"?{}:window;function nt(e){const t=e+"Storage";try{if(G&&G[t]&&typeof G[t].length=="number")return G[t]}catch{}A[e]=!1}function ot(e,t){const n=nt(e);if(!n)return;const r=me(n,Le);if(r!==Oe){if(r){const c=ge(n);for(let l=0;l<c;l++)Be(n,$+l.toString())}_e(n,Le,Oe),he(n,0);return}const o=Math.floor(Date.now()/tt)-gn,s=c=>{const l=$+c.toString(),a=me(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Be(n,l)}};let i=ge(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,he(n,i)):Ze[e].add(c))}function rt(){if(!Ee){hn(!0);for(const e in A)ot(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ie(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function st(e,t){switch(e){case"local":case"session":A[e]=t;break;case"all":for(const n in A)A[n]=t;break}}const be=Object.create(null);function it(e,t){be[e]=t}function ye(e){return be[e]||be[""]}function Ce(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 re=Object.create(null),R=["https://api.simplesvg.com","https://api.unisvg.com"],X=[];for(;R.length>0;)R.length===1||Math.random()>.5?X.push(R.shift()):X.push(R.pop());re[""]=Ce({resources:["https://api.iconify.design"].concat(X)});function ct(e,t){const n=Ce(t);return n===null?!1:(re[e]=n,!0)}function se(e){return re[e]}function bn(){return Object.keys(re)}const yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let te=yn();function vn(e){te=e}function xn(){return te}function wn(e,t){const n=se(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Sn(e){return e===404}const In=(e,t,n)=>{const r=[],o=wn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function kn(e){if(typeof e=="string"){const t=se(e);if(t)return t.path}return"/"}const En=(e,t,n)=>{if(!te){n("abort",424);return}let r=kn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;te(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Sn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},_n={prepare:In,send:En};function Cn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function at(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Tn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||at([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let jn=0;function Pn(e,t,n){const r=jn++,o=at.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function An(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Dn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function v(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function _(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function O(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:_,abort:v}}function I(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function w(m,S,P){const b=S!=="success";switch(f=f.filter(E=>E!==m),l){case"pending":break;case"failed":if(b||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,I();return}if(b){u=P,f.length||(i.length?M():I());return}if(g(),x(),!e.random){const E=e.resources.indexOf(m.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",h.forEach(E=>{E(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(x(),I())},e.timeout);return}I();return}const S={status:"pending",resource:m,callback:(P,b)=>{w(S,P,b)}};f.push(S),a++,p=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),O}function lt(e){const t={...Dn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=On(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Me(){}const ue=Object.create(null);function Ln(e){if(!ue[e]){const t=se(e);if(!t)return;const n=lt(t),r={config:t,redundancy:n};ue[e]=r}return ue[e]}function ut(e,t,n){let r,o;if(typeof e=="string"){const s=ye(e);if(!s)return n(void 0,424),Me;o=s.send;const i=Ln(e);i&&(r=i.redundancy)}else{const s=Ce(e);if(s){r=lt(s);const i=e.resources?e.resources[0]:"",c=ye(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Me):r.query(t,o,n)().abort}function Bn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in A)ot(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Mn(e,t){Ee||rt();function n(r){let o;if(!A[r]||!(o=nt(r)))return;const s=Ze[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ge(o),!he(o,i+1))return;const c={cached:Math.floor(Date.now()/tt),provider:e.provider,data:t};return _e(o,$+i.toString(),JSON.stringify(c))}t.lastModified&&!Bn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function Rn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Tn(e)}))}function Nn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ye(n)))return;s.prepare(n,r,o).forEach(c=>{ut(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ie(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Mn(e,l)}catch(a){console.error(a)}Rn(e)})})}))}const Fn=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Te=(e,t)=>{const n=An(e,!0,rn()),r=Cn(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Re)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&Nn(l,o[a][u])}),t?Pn(t,r,s):Re},Vn=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Te([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function ft(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Je?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ie={...Xe,inline:!1},fe="iconify",ve="iconify-inline",j="iconifyData"+Date.now();let D=[];function q(e){for(let t=0;t<D.length;t++){const n=D[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function dt(e,t=!1){let n=q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},D.push(n),n)}function zn(){if(document.documentElement)return dt(document.documentElement);D.push({node:()=>document.documentElement})}function $n(e){D=D.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Q(){return D}function Un(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let V=null;const Hn={childList:!0,subtree:!0,attributes:!0};function pt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,V&&V(e)}))}function qn(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[j]!==void 0){n.paused||pt(e);return}}}function mt(e,t){e.observer.instance.observe(t,Hn)}function ne(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(qn.bind(null,e)),mt(e,n),t.paused||pt(e))}function Ne(){Q().forEach(ne)}function ht(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 Qn(e){const t=V!==null;if(V!==e&&(V=e,t&&Q().forEach(ht)),t){Ne();return}Un(Ne)}function xe(e){(e?[e]:Q()).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 Gn(e){if(e){const t=q(e);t&&xe(t)}else xe()}function we(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){ne(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?mt(t,r):ne(t);else return}})}function Kn(e){if(e){const t=q(e);t&&we(t)}else we()}function gt(e,t=!1){const n=dt(e,t);return ne(n),n}function bt(e){const t=q(e);t&&(ht(t),$n(e))}function Wn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ie)if(n[o]!==r[o])return!0;return!1}function Jn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Xn=/[\s,]+/;function Yn(e,t){t.split(Xn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Zn=["width","height"],eo=["inline","hFlip","vFlip"];function to(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function no(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&B(t,!0);if(!n)return null;const r={...ie,inline:e.classList&&e.classList.contains(ve)};Zn.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Jn(o));const s=e.getAttribute("data-flip");typeof s=="string"&&Yn(r,s),eo.forEach(c=>{const l="data-"+c,a=to(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const oo="svg."+fe+", i."+fe+", span."+fe+", i."+ve+", span."+ve;function ro(e){const t=[];return e.querySelectorAll(oo).forEach(n=>{const r=n[j]||n.tagName.toLowerCase()!=="svg"?no(n):null;r&&t.push({node:n,props:r})}),t}function yt(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 z;function so(){try{z=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{z=null}}function io(e){return z===void 0&&so(),z?z.createHTML(e):e}function vt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function xt(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function wt(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function St(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=oe(n,o),i=e[j],c=yt(Ye(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=io(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const v=a.item(g),_=v.name;_!=="class"&&!l.hasAttribute(_)&&l.setAttribute(_,v.value)}const u=vt(t.icon),p=xt(l,u,new Set(i&&i.addedClasses),e),f=wt(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function co(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ao(e){return"data:image/svg+xml,"+co(e)}function lo(e){return'url("'+ao(e)+'")'}const uo={display:"inline-block"},Se={"background-color":"currentColor"},It={"background-color":"transparent"},Fe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ve={"-webkit-mask":Se,mask:Se,background:It};for(const e in Ve){const t=Ve[e];for(const n in Fe)t[e+"-"+n]=Fe[n]}function ze(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function fo(e,t,n,r){const o=t.customisations,s=oe(n,o),i=s.attributes,c=e[j],l=yt(s.body,{...i,width:n.width+"",height:n.height+""}),a=vt(t.icon),u=xt(e,a,new Set(c&&c.addedClasses)),f={"--svg":lo(l),width:ze(i.width),height:ze(i.height),...uo,...r?Se:It};o.inline&&(f["vertical-align"]="-0.125em");const h=wt(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let K=!1;function po(){K||(K=!0,setTimeout(()=>{K&&(K=!1,L())}))}function L(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Fn(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:Q()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,xe(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){fo(a,u,{...U,...p},h);return}}St(a,u,p)}ro(s).forEach(({node:a,props:u})=>{const p=a[j];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let f;if(Wn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?bt(s):t&&i?gt(s,!0):c&&o.observer&&we(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Te(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),po)}}}function mo(e){const t=q(e);t?L(t):L({node:e,temporary:!0},!0)}function kt(e,t,n=!1){const r=H(e);if(!r)return null;const o=B(e),s=ft(ie,t||{}),i=St(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function ho(){return"3.1.1"}function go(e,t){return kt(e,t,!1)}function bo(e,t){return kt(e,t,!0)}function yo(e,t){const n=H(e);if(!n)return null;const r=ft(ie,t||{});return oe(n,r)}function vo(e){e?mo(e):L()}if(typeof document<"u"&&typeof window<"u"){zn();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"||!We(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Qn(L),L()})}function xo(e,t){st(e,t!==!1)}function wo(e){st(e,!0)}it("",_n);if(typeof document<"u"&&typeof window<"u"){rt();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;ct(n,o)||console.error(r)}catch{console.error(r)}}}}const So={getAPIConfig:se,setAPIModule:it,sendAPIQuery:ut,setFetch:vn,getFetch:xn,listAPIProviders:bn},Io={_api:So,addAPIProvider:ct,loadIcons:Te,loadIcon:Vn,iconExists:cn,getIcon:an,listIcons:on,addIcon:sn,addCollection:We,replaceIDs:Ye,calculateSize:pe,buildIcon:oe,getVersion:ho,renderSVG:go,renderHTML:bo,renderIcon:yo,scan:vo,observe:gt,stopObserving:bt,pauseObserver:Gn,resumeObserver:Kn,enableCache:xo,disableCache:wo};try{self.Iconify===void 0&&(self.Iconify=Io)}catch{}const ko=e=>{const t={};let n=null;return T.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=T.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Eo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(N.DEFAULT_DID_DOMAIN))||"").replace(`.${N.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${N.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function _o(){const{t:e}=$e(),{api:t}=Ue(),{blocklet:n}=$t(),{inService:r}=Et(),[o,s]=y.useState(!1),[i,c]=y.useState(5),l=n&&n.structVersion!==N.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){W.error(e("blocklet.migrate.tip.running"));return}const f=ko(n);if(f){W.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){W.error(Qe(f))}},u=()=>{const f=Eo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(He,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(qe,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(_t,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ct(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const Co=y.lazy(()=>k(()=>import("./overview-Dpbkcjeq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),To=y.lazy(()=>k(()=>import("./domains-DBt_qdYG.js"),__vite__mapDeps([16,1,2,17,18,10,19,12,20,21,22,23,24,25,26,27,28,29,9,30,31,32,33,34,5]),import.meta.url)),jo=y.lazy(()=>k(()=>import("./index-CvywAZEv.js"),__vite__mapDeps([35,1,2,36,7,37,38,39,40,41,19,5,42,43,44,45,46,47,48,49,50,51,10,52,53,22,11,12,9,4,6,17,54,55,56,57,26,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,25]),import.meta.url)),Po=y.lazy(()=>k(()=>import("./appearance-BkUNpZVk.js"),__vite__mapDeps([77,1,2,10,72]),import.meta.url)),Ao=y.lazy(()=>k(()=>import("./config-navigation-ILBEBfla.js"),__vite__mapDeps([78,1,2,7,79,37,80,64,10,54,55,56,81,11,12,74,75,68,76,45,46,19,50,73,41,67,44,15,47,48,82,83,29,39,34]),import.meta.url)),Do=y.lazy(()=>k(()=>import("./index-DSEgIocn.js"),__vite__mapDeps([84,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,74,75,12,76,45,46,19,49,41,50,51,10,52,85,9,86,87,39,88,40,89,90,91,92,93,59,72]),import.meta.url)),Oo=y.lazy(()=>k(()=>import("./audit-logs-CgyzZo8L.js"),__vite__mapDeps([94,17,1,2,65,66,67,75,95,96,97,85,11,10,12]),import.meta.url)),Lo=y.lazy(()=>k(()=>import("./index-D2I55BMO.js").then(e=>e.i),__vite__mapDeps([98,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,41,11,10,12,72,99,45,46,19,100,79,26,43,101,102]),import.meta.url)),Bo=y.lazy(()=>k(()=>import("./index-BhwBVrhP.js").then(e=>e.i),__vite__mapDeps([103,1,2,26,104,60,61,62,63,54,55,56,64,17,65,66,67,68,29,83,12,11,10,19,22,92,93,59,41,9,105,106,6,107,108,20,85]),import.meta.url)),Mo=y.lazy(()=>k(()=>import("./service-WuUIzS1n.js"),__vite__mapDeps([109,1,2,110,61,62,63,89,56,81,55,93,41,26,12,67,111,40,88,66,44]),import.meta.url)),Ro=y.lazy(()=>k(()=>import("./index-ukCxqYQ3.js"),__vite__mapDeps([112,1,2,17,74,75,68,12,76,45,46,19,57,52,10,111,110,61,62,63,89,56,81,55,93,41,26,67,40,88,66,44,36,7,37,38,39,22,99,113,114,47,48,105,24,115,42,106,21,116,117,118,32,119,8,14,15,33,120,3,121,95,96,97,51,100,79,122,123,9,82,124,30,31,72,23,20,125,11]),import.meta.url)),No=y.lazy(()=>k(()=>import("./log-UVsl0ja-.js"),__vite__mapDeps([126,1,2,75,127,45,46,128,48]),import.meta.url)),Fo=y.lazy(()=>k(()=>import("./runtime-tnq2Lk6e.js"),__vite__mapDeps([129,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,10,120,130,90,91,23,12,102,46]),import.meta.url)),Vo=y.lazy(()=>k(()=>import("./traffic-C_abMGz2.js").then(e=>e.t),__vite__mapDeps([87,1,2,39,88,40,89,56,90,91,92,93,62,59]),import.meta.url)),zo=y.lazy(()=>k(()=>import("./index-DRXB64XT.js"),__vite__mapDeps([131,1,2,41,10,72,119,99,45,46,8,14,15,106,33,120,3,9,91,60,61,62,63,54,55,56,64,17,65,66,67,68,74,75,12,76,19,57,52,101]),import.meta.url)),$o=({children:e})=>e;function Uo(){const e=Tt(),{tab:t="overview"}=Ge(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=qt(),{refresh:l}=jt(),{t:a}=$e(),{session:u}=Ue(),p=Pt(()=>u.user?.role&&At.includes(u.user.role),[u]),f=y.useCallback(()=>d.jsx(Oo,{scope:n}),[n]),h=y.useCallback(()=>p?d.jsx(Do,{blocklet:r}):d.jsx(Ut,{status:403}),[r,p]),g=r?.environments.find(b=>b.key==="BLOCKLET_APP_URL")?.value||window.location.origin,v=b=>Ot(b,g),_=b=>{e(`/blocklets/${n}/${b}`)},O=b=>{b&&i(b),c()},I=!r||je(r.status)?[]:T.getAppMissingConfigs(r);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Dt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!I.length,children:a("common.components")}),value:"components"}];if(o)x=d.jsxs(d.Fragment,{children:[d.jsx(He,{severity:"error",variant:"icon",children:Qe(o)}),d.jsx(qe,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const b={overview:d.jsx(Co,{}),domains:d.jsx(To,{}),configuration:jo,appearance:Po,navigation:Ao,services:Mo,members:d.jsx(Bo,{type:"blocklet",createPassportSvg:v}),passports:Lo,components:Ro,"audit-logs":f,notifications:h,logs:No,runtime:d.jsx(Fo,{}),traffic:d.jsx(Vo,{client:s,did:n}),didSpaces:d.jsx(zo,{})};t==="configuration"&&je(r.status)&&_("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"}),w.push({label:a("common.auditLogs"),value:"audit-logs"}),p&&w.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===N.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),T.getBlockletServices(r).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ce=b[t]||b.overview;x=d.jsxs(Vt,{type:"components",children:[!T.isExternalBlocklet(r)&&d.jsx(Nt,{tabs:w,current:t,onChange:_,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(y.Suspense,{fallback:d.jsx(Pe,{relative:"parent",children:d.jsx(Ae,{})}),children:y.isValidElement(ce)?ce:d.jsx(ce,{blocklet:r,onUpdate:O,createPassportSvg:v})})})]})}else x=d.jsx(Pe,{relative:"parent",children:d.jsx(Ae,{})});const M=()=>{},m=({action:b,error:E})=>{if(E){W.error(E.message);return}b==="remove"?(l(),e("/blocklets")):c()},S=w.find(b=>b.value===t),P=r?Qt:$o;return d.jsx(P,{teamDid:n,children:d.jsxs(Ho,{children:[d.jsxs(Kt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Lt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Bt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ae,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),d.jsxs(ae,{component:"div",className:"page-header",children:[d.jsxs(ae,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Mt,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:T.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ft,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Gt,{permission:"mutate_blocklets",children:!!r&&!T.isExternalBlocklet(r)&&d.jsx(zt,{className:"page-actions",blocklet:r,onStart:M,onComplete:m,variant:"group"})})]}),d.jsx(_o,{}),x]})})}function ir(){const{did:e}=Ge();return e?d.jsx(Ht,{did:e,children:d.jsx(Uo,{})}):null}const Ho=Rt.main`
|
|
12
|
+
*/const Ke=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...Ke,...Z}),de=Object.freeze({...U,body:"",hidden:!1});function Wt(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 De(e,t){const n=Wt(e,t);for(const r in de)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Jt(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Xt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=De(r[c]||o[c],s)}return i(t),n.forEach(i),De(e,s)}function Yt(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=Jt(e);for(const o in r){const s=r[o];s&&(t(o,Xt(e,o,s)),n.push(o))}return n}const F=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!J(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!J(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!J(c,n)?null:c}return null},J=(e,t)=>e?!!((e.provider===""||e.provider.match(F))&&(t&&e.prefix===""||e.prefix.match(F))&&e.name.match(F)):!1,Zt={provider:"",aliases:{},not_found:{},...Ke};function le(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function en(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!le(e,Zt))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(F)||typeof s.body!="string"||!le(s,de))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(F)||typeof i!="string"||!n[i]&&!r[i]||!le(s,de))return null}return t}const ee=Object.create(null);function tn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ee[e]||(ee[e]=Object.create(null));return n[t]||(n[t]=tn(e,t))}function Ie(e,t){return en(t)?Yt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function nn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function on(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ee)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(ee[o]||{})).forEach(i=>{const c=C(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let ke=!1;function rn(e){return ke}function H(e){const t=typeof e=="string"?B(e,!0,ke):e;if(t){const n=C(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function sn(e,t){const n=B(e,!0,ke);if(!n)return!1;const r=C(n.provider,n.prefix);return nn(r,n.name,t)}function We(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!J({provider:t,prefix:n,name:"a"}))return!1;const r=C(t,n);return!!Ie(r,e)}function cn(e){return!!H(e)}function an(e){const t=H(e);return t?{...U,...t}:null}const Je=Object.freeze({width:null,height:null}),Xe=Object.freeze({...Je,...Z}),ln=/(-?[0-9.]*[0-9]+[0-9.]*)/g,un=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pe(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(ln);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=un.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const fn=e=>e==="unset"||e==="undefined"||e==="none";function oe(e,t){const n={...U,...e},r={...Xe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const v=[],_=g.hFlip,O=g.vFlip;let I=g.rotate;_?O?I+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):O&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let x;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:x=o.height/2+o.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}I%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=pe(p,l/a)):(u=i==="auto"?l:i,p=c===null?pe(u,a/l):c==="auto"?a:c);const f={},h=(g,v)=>{fn(v)||(f[g]=v.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const dn=/\sid="(\S+)"/g,pn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let mn=0;function Ye(e,t=pn){const n=[];let r;for(;r=dn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(mn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const A={local:!0,session:!0},Ze={local:new Set,session:new Set};let Ee=!1;function hn(e){Ee=e}const Oe="iconify2",$="iconify",et=$+"-count",Le=$+"-version",tt=36e5,gn=168;function me(e,t){try{return e.getItem(t)}catch{}}function _e(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Be(e,t){try{e.removeItem(t)}catch{}}function he(e,t){return _e(e,et,t.toString())}function ge(e){return parseInt(me(e,et))||0}let G=typeof window>"u"?{}:window;function nt(e){const t=e+"Storage";try{if(G&&G[t]&&typeof G[t].length=="number")return G[t]}catch{}A[e]=!1}function ot(e,t){const n=nt(e);if(!n)return;const r=me(n,Le);if(r!==Oe){if(r){const c=ge(n);for(let l=0;l<c;l++)Be(n,$+l.toString())}_e(n,Le,Oe),he(n,0);return}const o=Math.floor(Date.now()/tt)-gn,s=c=>{const l=$+c.toString(),a=me(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Be(n,l)}};let i=ge(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,he(n,i)):Ze[e].add(c))}function rt(){if(!Ee){hn(!0);for(const e in A)ot(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=C(r,o);if(!Ie(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function st(e,t){switch(e){case"local":case"session":A[e]=t;break;case"all":for(const n in A)A[n]=t;break}}const be=Object.create(null);function it(e,t){be[e]=t}function ye(e){return be[e]||be[""]}function Ce(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 re=Object.create(null),R=["https://api.simplesvg.com","https://api.unisvg.com"],X=[];for(;R.length>0;)R.length===1||Math.random()>.5?X.push(R.shift()):X.push(R.pop());re[""]=Ce({resources:["https://api.iconify.design"].concat(X)});function ct(e,t){const n=Ce(t);return n===null?!1:(re[e]=n,!0)}function se(e){return re[e]}function bn(){return Object.keys(re)}const yn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let te=yn();function vn(e){te=e}function xn(){return te}function wn(e,t){const n=se(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Sn(e){return e===404}const In=(e,t,n)=>{const r=[],o=wn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function kn(e){if(typeof e=="string"){const t=se(e);if(t)return t.path}return"/"}const En=(e,t,n)=>{if(!te){n("abort",424);return}let r=kn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;te(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Sn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},_n={prepare:In,send:En};function Cn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function at(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Tn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||at([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let jn=0;function Pn(e,t,n){const r=jn++,o=at.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function An(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Dn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function g(){p&&(clearTimeout(p),p=null)}function v(){l==="pending"&&(l="aborted"),g(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function _(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function O(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:_,abort:v}}function I(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function w(m,S,P){const b=S!=="success";switch(f=f.filter(E=>E!==m),l){case"pending":break;case"failed":if(b||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,I();return}if(b){u=P,f.length||(i.length?M():I());return}if(g(),x(),!e.random){const E=e.resources.indexOf(m.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",h.forEach(E=>{E(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{g(),l==="pending"&&(x(),I())},e.timeout);return}I();return}const S={status:"pending",resource:m,callback:(P,b)=>{w(S,P,b)}};f.push(S),a++,p=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),O}function lt(e){const t={...Dn,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=On(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Me(){}const ue=Object.create(null);function Ln(e){if(!ue[e]){const t=se(e);if(!t)return;const n=lt(t),r={config:t,redundancy:n};ue[e]=r}return ue[e]}function ut(e,t,n){let r,o;if(typeof e=="string"){const s=ye(e);if(!s)return n(void 0,424),Me;o=s.send;const i=Ln(e);i&&(r=i.redundancy)}else{const s=Ce(e);if(s){r=lt(s);const i=e.resources?e.resources[0]:"",c=ye(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Me):r.query(t,o,n)().abort}function Bn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in A)ot(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Mn(e,t){Ee||rt();function n(r){let o;if(!A[r]||!(o=nt(r)))return;const s=Ze[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ge(o),!he(o,i+1))return;const c={cached:Math.floor(Date.now()/tt),provider:e.provider,data:t};return _e(o,$+i.toString(),JSON.stringify(c))}t.lastModified&&!Bn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function Rn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Tn(e)}))}function Nn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ye(n)))return;s.prepare(n,r,o).forEach(c=>{ut(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=Ie(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Mn(e,l)}catch(a){console.error(a)}Rn(e)})})}))}const Fn=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Te=(e,t)=>{const n=An(e,!0,rn()),r=Cn(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Re)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=C(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&Nn(l,o[a][u])}),t?Pn(t,r,s):Re},Vn=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Te([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function ft(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Je?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ie={...Xe,inline:!1},fe="iconify",ve="iconify-inline",j="iconifyData"+Date.now();let D=[];function q(e){for(let t=0;t<D.length;t++){const n=D[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function dt(e,t=!1){let n=q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},D.push(n),n)}function zn(){if(document.documentElement)return dt(document.documentElement);D.push({node:()=>document.documentElement})}function $n(e){D=D.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Q(){return D}function Un(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let V=null;const Hn={childList:!0,subtree:!0,attributes:!0};function pt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,V&&V(e)}))}function qn(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[j]!==void 0){n.paused||pt(e);return}}}function mt(e,t){e.observer.instance.observe(t,Hn)}function ne(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(qn.bind(null,e)),mt(e,n),t.paused||pt(e))}function Ne(){Q().forEach(ne)}function ht(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 Qn(e){const t=V!==null;if(V!==e&&(V=e,t&&Q().forEach(ht)),t){Ne();return}Un(Ne)}function xe(e){(e?[e]:Q()).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 Gn(e){if(e){const t=q(e);t&&xe(t)}else xe()}function we(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){ne(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?mt(t,r):ne(t);else return}})}function Kn(e){if(e){const t=q(e);t&&we(t)}else we()}function gt(e,t=!1){const n=dt(e,t);return ne(n),n}function bt(e){const t=q(e);t&&(ht(t),$n(e))}function Wn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ie)if(n[o]!==r[o])return!0;return!1}function Jn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Xn=/[\s,]+/;function Yn(e,t){t.split(Xn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Zn=["width","height"],eo=["inline","hFlip","vFlip"];function to(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function no(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&B(t,!0);if(!n)return null;const r={...ie,inline:e.classList&&e.classList.contains(ve)};Zn.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Jn(o));const s=e.getAttribute("data-flip");typeof s=="string"&&Yn(r,s),eo.forEach(c=>{const l="data-"+c,a=to(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const oo="svg."+fe+", i."+fe+", span."+fe+", i."+ve+", span."+ve;function ro(e){const t=[];return e.querySelectorAll(oo).forEach(n=>{const r=n[j]||n.tagName.toLowerCase()!=="svg"?no(n):null;r&&t.push({node:n,props:r})}),t}function yt(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 z;function so(){try{z=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{z=null}}function io(e){return z===void 0&&so(),z?z.createHTML(e):e}function vt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function xt(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function wt(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function St(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=oe(n,o),i=e[j],c=yt(Ye(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=io(c);const l=r.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const v=a.item(g),_=v.name;_!=="class"&&!l.hasAttribute(_)&&l.setAttribute(_,v.value)}const u=vt(t.icon),p=xt(l,u,new Set(i&&i.addedClasses),e),f=wt(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function co(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ao(e){return"data:image/svg+xml,"+co(e)}function lo(e){return'url("'+ao(e)+'")'}const uo={display:"inline-block"},Se={"background-color":"currentColor"},It={"background-color":"transparent"},Fe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ve={"-webkit-mask":Se,mask:Se,background:It};for(const e in Ve){const t=Ve[e];for(const n in Fe)t[e+"-"+n]=Fe[n]}function ze(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function fo(e,t,n,r){const o=t.customisations,s=oe(n,o),i=s.attributes,c=e[j],l=yt(s.body,{...i,width:n.width+"",height:n.height+""}),a=vt(t.icon),u=xt(e,a,new Set(c&&c.addedClasses)),f={"--svg":lo(l),width:ze(i.width),height:ze(i.height),...uo,...r?Se:It};o.inline&&(f["vertical-align"]="-0.125em");const h=wt(e,f,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let K=!1;function po(){K||(K=!0,setTimeout(()=>{K&&(K=!1,L())}))}function L(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Fn(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:Q()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,xe(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){fo(a,u,{...U,...p},h);return}}St(a,u,p)}ro(s).forEach(({node:a,props:u})=>{const p=a[j];if(!p){const{status:h,icon:g}=r(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let f;if(Wn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?bt(s):t&&i?gt(s,!0):c&&o.observer&&we(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];Te(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),po)}}}function mo(e){const t=q(e);t?L(t):L({node:e,temporary:!0},!0)}function kt(e,t,n=!1){const r=H(e);if(!r)return null;const o=B(e),s=ft(ie,t||{}),i=St(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function ho(){return"3.1.1"}function go(e,t){return kt(e,t,!1)}function bo(e,t){return kt(e,t,!0)}function yo(e,t){const n=H(e);if(!n)return null;const r=ft(ie,t||{});return oe(n,r)}function vo(e){e?mo(e):L()}if(typeof document<"u"&&typeof window<"u"){zn();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"||!We(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Qn(L),L()})}function xo(e,t){st(e,t!==!1)}function wo(e){st(e,!0)}it("",_n);if(typeof document<"u"&&typeof window<"u"){rt();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;ct(n,o)||console.error(r)}catch{console.error(r)}}}}const So={getAPIConfig:se,setAPIModule:it,sendAPIQuery:ut,setFetch:vn,getFetch:xn,listAPIProviders:bn},Io={_api:So,addAPIProvider:ct,loadIcons:Te,loadIcon:Vn,iconExists:cn,getIcon:an,listIcons:on,addIcon:sn,addCollection:We,replaceIDs:Ye,calculateSize:pe,buildIcon:oe,getVersion:ho,renderSVG:go,renderHTML:bo,renderIcon:yo,scan:vo,observe:gt,stopObserving:bt,pauseObserver:Gn,resumeObserver:Kn,enableCache:xo,disableCache:wo};try{self.Iconify===void 0&&(self.Iconify=Io)}catch{}const ko=e=>{const t={};let n=null;return T.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=T.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Eo=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(N.DEFAULT_DID_DOMAIN))||"").replace(`.${N.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${N.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function _o(){const{t:e}=$e(),{api:t}=Ue(),{blocklet:n}=$t(),{inService:r}=Et(),[o,s]=y.useState(!1),[i,c]=y.useState(5),l=n&&n.structVersion!==N.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){W.error(e("blocklet.migrate.tip.running"));return}const f=ko(n);if(f){W.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){W.error(Qe(f))}},u=()=>{const f=Eo(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(He,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(qe,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(_t,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ct(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const Co=y.lazy(()=>k(()=>import("./overview-BP2YMbQO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),To=y.lazy(()=>k(()=>import("./domains-Dl1bYLcB.js"),__vite__mapDeps([16,1,2,17,18,10,19,12,20,21,22,23,24,25,26,27,28,29,9,30,31,32,33,34,5]),import.meta.url)),jo=y.lazy(()=>k(()=>import("./index-Bf6iPAUC.js"),__vite__mapDeps([35,1,2,36,7,37,38,39,40,41,19,5,42,43,44,45,46,47,48,49,50,51,10,52,53,22,11,12,9,4,6,17,54,55,56,57,26,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,25]),import.meta.url)),Po=y.lazy(()=>k(()=>import("./appearance-D0pksf5H.js"),__vite__mapDeps([77,1,2,10,72]),import.meta.url)),Ao=y.lazy(()=>k(()=>import("./config-navigation-CQIu6H-p.js"),__vite__mapDeps([78,1,2,7,79,37,80,64,10,54,55,56,81,11,12,74,75,68,76,45,46,19,50,73,41,67,44,15,47,48,82,83,29,39,34]),import.meta.url)),Do=y.lazy(()=>k(()=>import("./index-aTfhQ_l6.js"),__vite__mapDeps([84,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,74,75,12,76,45,46,19,49,41,50,51,10,52,85,9,86,87,39,88,40,89,90,91,92,93,59,72]),import.meta.url)),Oo=y.lazy(()=>k(()=>import("./audit-logs-CDjWOFeM.js"),__vite__mapDeps([94,17,1,2,65,66,67,75,95,96,97,85,11,10,12]),import.meta.url)),Lo=y.lazy(()=>k(()=>import("./index-C8N7W-i9.js").then(e=>e.i),__vite__mapDeps([98,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,41,11,10,12,72,99,45,46,19,100,79,26,43,101,102]),import.meta.url)),Bo=y.lazy(()=>k(()=>import("./index-B78o0tBY.js").then(e=>e.i),__vite__mapDeps([103,1,2,26,104,60,61,62,63,54,55,56,64,17,65,66,67,68,29,83,12,11,10,19,22,92,93,59,41,9,105,106,6,107,108,20,85]),import.meta.url)),Mo=y.lazy(()=>k(()=>import("./service-De8RUcAB.js"),__vite__mapDeps([109,1,2,110,61,62,63,89,56,81,55,93,41,26,12,67,111,40,88,66,44]),import.meta.url)),Ro=y.lazy(()=>k(()=>import("./index-B9sYADXK.js"),__vite__mapDeps([112,1,2,17,74,75,68,12,76,45,46,19,57,52,10,111,110,61,62,63,89,56,81,55,93,41,26,67,40,88,66,44,36,7,37,38,39,22,99,113,114,47,48,105,24,115,42,106,21,116,117,118,32,119,8,14,15,33,120,3,121,95,96,97,51,100,79,122,123,9,82,124,30,31,72,23,20,125,11]),import.meta.url)),No=y.lazy(()=>k(()=>import("./log-C7JSHIt2.js"),__vite__mapDeps([126,1,2,75,127,45,46,128,48]),import.meta.url)),Fo=y.lazy(()=>k(()=>import("./runtime-K5Ixf2xG.js"),__vite__mapDeps([129,1,2,60,61,62,63,54,55,56,64,17,65,66,67,68,10,120,130,90,91,23,12,102,46]),import.meta.url)),Vo=y.lazy(()=>k(()=>import("./traffic-BA1sKvQV.js").then(e=>e.t),__vite__mapDeps([87,1,2,39,88,40,89,56,90,91,92,93,62,59]),import.meta.url)),zo=y.lazy(()=>k(()=>import("./index-DwRrLRJc.js"),__vite__mapDeps([131,1,2,41,10,72,119,99,45,46,8,14,15,106,33,120,3,9,91,60,61,62,63,54,55,56,64,17,65,66,67,68,74,75,12,76,19,57,52,101]),import.meta.url)),$o=({children:e})=>e;function Uo(){const e=Tt(),{tab:t="overview"}=Ge(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=qt(),{refresh:l}=jt(),{t:a}=$e(),{session:u}=Ue(),p=Pt(()=>u.user?.role&&At.includes(u.user.role),[u]),f=y.useCallback(()=>d.jsx(Oo,{scope:n}),[n]),h=y.useCallback(()=>p?d.jsx(Do,{blocklet:r}):d.jsx(Ut,{status:403}),[r,p]),g=r?.environments.find(b=>b.key==="BLOCKLET_APP_URL")?.value||window.location.origin,v=b=>Ot(b,g),_=b=>{e(`/blocklets/${n}/${b}`)},O=b=>{b&&i(b),c()},I=!r||je(r.status)?[]:T.getAppMissingConfigs(r);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Dt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!I.length,children:a("common.components")}),value:"components"}];if(o)x=d.jsxs(d.Fragment,{children:[d.jsx(He,{severity:"error",variant:"icon",children:Qe(o)}),d.jsx(qe,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const b={overview:d.jsx(Co,{}),domains:d.jsx(To,{}),configuration:jo,appearance:Po,navigation:Ao,services:Mo,members:d.jsx(Bo,{type:"blocklet",createPassportSvg:v}),passports:Lo,components:Ro,"audit-logs":f,notifications:h,logs:No,runtime:d.jsx(Fo,{}),traffic:d.jsx(Vo,{client:s,did:n}),didSpaces:d.jsx(zo,{})};t==="configuration"&&je(r.status)&&_("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"}),w.push({label:a("common.auditLogs"),value:"audit-logs"}),p&&w.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===N.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),T.getBlockletServices(r).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ce=b[t]||b.overview;x=d.jsxs(Vt,{type:"components",children:[!T.isExternalBlocklet(r)&&d.jsx(Nt,{tabs:w,current:t,onChange:_,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(y.Suspense,{fallback:d.jsx(Pe,{relative:"parent",children:d.jsx(Ae,{})}),children:y.isValidElement(ce)?ce:d.jsx(ce,{blocklet:r,onUpdate:O,createPassportSvg:v})})})]})}else x=d.jsx(Pe,{relative:"parent",children:d.jsx(Ae,{})});const M=()=>{},m=({action:b,error:E})=>{if(E){W.error(E.message);return}b==="remove"?(l(),e("/blocklets")):c()},S=w.find(b=>b.value===t),P=r?Qt:$o;return d.jsx(P,{teamDid:n,children:d.jsxs(Ho,{children:[d.jsxs(Kt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Lt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Bt,{to:`/blocklets/${n}/overview`,style:b=>b?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(ae,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),d.jsxs(ae,{component:"div",className:"page-header",children:[d.jsxs(ae,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Mt,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:T.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(Ft,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Gt,{permission:"mutate_blocklets",children:!!r&&!T.isExternalBlocklet(r)&&d.jsx(zt,{className:"page-actions",blocklet:r,onStart:M,onComplete:m,variant:"group"})})]}),d.jsx(_o,{}),x]})})}function ir(){const{did:e}=Ge();return e?d.jsx(Ht,{did:e,children:d.jsx(Uo,{})}):null}const Ho=Rt.main`
|
|
13
13
|
.page-header {
|
|
14
14
|
display: flex;
|
|
15
15
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bX as W,bW as V,r as y,bY as G,j as e,gZ as Bt,b8 as Z,b_ as X,b$ as Y,bU as Ke,g_ as Te,av as ve,aG as Je,f8 as et,y as ae,g$ as Ft,z as Nt,cZ as tt,c$ as $t,m as S,cq as zt,cr as ne,h0 as Ht,$ as Ot,N as x,C as N,b7 as _t,T,X as de,q as ue,f as Q,F as me,az as E,b1 as nt,h1 as Wt,aY as ot,O as Vt,bn as L,e as Gt,b as Be,ad as pe,H as M,o,v as fe,aS as Zt,U as st,aF as Xt,a9 as Yt,b2 as Qt,i as Kt,b3 as Fe,b0 as Jt,bz as en,gW as it,b4 as rt,cj as Ce,aV as O,dF as at,h2 as tn,b5 as nn,fC as lt,gg as ke,s as on,h3 as ct,h4 as sn,h5 as rn,dt,h6 as an,bd as ln,h7 as cn,L as dn,h8 as H,Y as $,J as le,h9 as un,aW as mn,dD as oe,Z as Ne,t as pn,aR as fn,ha as xn}from"./index-_8oRZcHP.js";import{y as hn}from"./index-luUossMM.js";import{u as gn}from"./useAsync-BKfoGger.js";import{u as K}from"./blocklet-CxgGBUvX.js";import{w as ut}from"./permission-CjJ84P8d.js";import{D as mt}from"./url-evaluation-C9ybfEbS.js";import{A as yn}from"./actions-Bqwe_eeJ.js";import{D as Dn}from"./delete-confirm-CwBSbfmS.js";import{D as $e}from"./status-RQRQdpaf.js";import{S as bn,V as jn}from"./VerifiedUser-W0URZfI1.js";import{C as vn}from"./CardContent-Brh_eQ9r.js";import{A as Cn}from"./Add-C-JGR7WX.js";import{A as wn}from"./CallMerge-BG9sfWb7.js";import{a as Rn}from"./toLower-CN0NnjsS.js";import{u as Sn}from"./use-mobile-CFs8fmsh.js";import{v as Tn}from"./index-CrTw1v2G.js";import{g as kn,p as ze}from"./util-Cbf8gAh_.js";import{O as An}from"./OpenInNew-B8Hi9-Aa.js";import{C as In}from"./click-to-copy-BJD4pP2S.js";import{L as pt}from"./LoadingButton-zyVJPqWL.js";import{u as Pn}from"./index-ZXKsu0i-.js";import"./is-path-prefix-equal-xOcqHaZi.js";import"./engine-IPaOGJ95.js";function qn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const Mn=t=>{const{classes:n,stickyHeader:s}=t;return Y({root:["root",s&&"stickyHeader"]},qn,n)},En=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=Mn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Bt.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:X(u.root,i),ownerState:f,...p})})});function Un(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Bn=t=>{const{classes:n}=t;return Y({root:["root"]},Un,n)},Fn=Z("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",$n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Bn(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:X(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function zn(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Y({root:["root"]},zn,n)},On=Z("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:X(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Y({root:["root"]},Wn,n)},Gn=Z("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Zn={variant:"head"},_e="thead",Xn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Zn,children:e.jsx(Gn,{as:r,className:X(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Yn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Qn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Y({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Yn,n)},Kn=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Qn(f);return e.jsx(Kn,{as:r,ref:s,className:X(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Jn=Je(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Je(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=zt(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const q=setInterval(()=>{f.current?.closed&&(clearInterval(q),b())},1e3);return()=>clearInterval(q)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx($t,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Q(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=K(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?M.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&M.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Be.BlockletEvents.certError,A=>C(A,"error")),h(Be.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const q=()=>{p(!1),g(null)},B=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},U={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:B,onCancel:q},F=A=>{A.stopPropagation(),g(U)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Zt(2e3)}catch(j){M.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Xt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Yt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Qt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Kt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Jt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Jn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=K();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ze="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ze),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ze),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(hn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Q(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=on(x)`
|
|
1
|
+
import{bX as W,bW as V,r as y,bY as G,j as e,gZ as Bt,b8 as Z,b_ as X,b$ as Y,bU as Ke,g_ as Te,av as ve,aG as Je,f8 as et,y as ae,g$ as Ft,z as Nt,cZ as tt,c$ as $t,m as S,cq as zt,cr as ne,h0 as Ht,$ as Ot,N as x,C as N,b7 as _t,T,X as de,q as ue,f as Q,F as me,az as E,b1 as nt,h1 as Wt,aY as ot,O as Vt,bn as L,e as Gt,b as Be,ad as pe,H as M,o,v as fe,aS as Zt,U as st,aF as Xt,a9 as Yt,b2 as Qt,i as Kt,b3 as Fe,b0 as Jt,bz as en,gW as it,b4 as rt,cj as Ce,aV as O,dF as at,h2 as tn,b5 as nn,fC as lt,gg as ke,s as on,h3 as ct,h4 as sn,h5 as rn,dt,h6 as an,bd as ln,h7 as cn,L as dn,h8 as H,Y as $,J as le,h9 as un,aW as mn,dD as oe,Z as Ne,t as pn,aR as fn,ha as xn}from"./index-C4mOfCm_.js";import{y as hn}from"./index-BeHzPQZj.js";import{u as gn}from"./useAsync-CBexZUTy.js";import{u as K}from"./blocklet-DmmVfj87.js";import{w as ut}from"./permission-CAwWHgKo.js";import{D as mt}from"./url-evaluation-CNPtf5Sl.js";import{A as yn}from"./actions-qwmjFYBC.js";import{D as Dn}from"./delete-confirm-BMlllWsg.js";import{D as $e}from"./status-YKpSQSD8.js";import{S as bn,V as jn}from"./VerifiedUser-CMhuvwNe.js";import{C as vn}from"./CardContent-Cqmek5wY.js";import{A as Cn}from"./Add-3_OvaFrP.js";import{A as wn}from"./CallMerge-F8oCB8nE.js";import{a as Rn}from"./toLower-aE-9IHcm.js";import{u as Sn}from"./use-mobile-Cebu3wjw.js";import{v as Tn}from"./index-Aeyu2TZE.js";import{g as kn,p as ze}from"./util-DXUxNwaT.js";import{O as An}from"./OpenInNew-CNDlD7xM.js";import{C as In}from"./click-to-copy-C9lDYNLy.js";import{L as pt}from"./LoadingButton-BnL-MknW.js";import{u as Pn}from"./index-P46fTVgx.js";import"./is-path-prefix-equal-H7FSCLy3.js";import"./engine-DUBYjcGZ.js";function qn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const Mn=t=>{const{classes:n,stickyHeader:s}=t;return Y({root:["root",s&&"stickyHeader"]},qn,n)},En=Z("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=Mn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Bt.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:X(u.root,i),ownerState:f,...p})})});function Un(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Bn=t=>{const{classes:n}=t;return Y({root:["root"]},Un,n)},Fn=Z("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",$n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Bn(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:X(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function zn(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Y({root:["root"]},zn,n)},On=Z("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:X(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Y({root:["root"]},Wn,n)},Gn=Z("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Zn={variant:"head"},_e="thead",Xn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Zn,children:e.jsx(Gn,{as:r,className:X(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Yn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Qn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Y({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Yn,n)},Kn=Z("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Qn(f);return e.jsx(Kn,{as:r,ref:s,className:X(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Jn=Je(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Je(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=zt(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const q=setInterval(()=>{f.current?.closed&&(clearInterval(q),b())},1e3);return()=>clearInterval(q)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx($t,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Q(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=K(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?M.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&M.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Be.BlockletEvents.certError,A=>C(A,"error")),h(Be.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const q=()=>{p(!1),g(null)},B=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},U={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:B,onCancel:q},F=A=>{A.stopPropagation(),g(U)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Zt(2e3)}catch(j){M.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Xt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Yt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Qt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Kt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Jt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Jn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=K();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Ze="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Ze),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Ze),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(hn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Q(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=on(x)`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
vertical-align: middle;
|
|
4
4
|
|