@abtnode/blocklet-services 1.16.24-beta-3d2e25fd → 1.16.24-beta-08e03567
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/dist/assets/Add-3reuUM3z.js +1 -0
- package/dist/assets/Alert-3weYF8oY.js +1 -0
- package/dist/assets/ArrowDropDown-z1y8v5lw.js +1 -0
- package/dist/assets/Avatar-9LHtHVbG.js +1 -0
- package/dist/assets/ButtonGroup-_3WxlUrw.js +1 -0
- package/dist/assets/CheckCircle-ndShlL70.js +1 -0
- package/dist/assets/Checkbox-e4jUOmXE.js +1 -0
- package/dist/assets/ChevronRight-9IJjB1MC.js +1 -0
- package/dist/assets/CloseOutlined-S6oRBxfn.js +1 -0
- package/dist/assets/DeleteOutline-qPrbZX2p.js +1 -0
- package/dist/assets/Done-nII4TJ9y.js +1 -0
- package/dist/assets/Download-X6kpNp2-.js +1 -0
- package/dist/assets/Edit-Wi5knUfg.js +1 -0
- package/dist/assets/{EditIcon-IW0H1D75.js → EditIcon-Judz4lXP.js} +1 -1
- package/dist/assets/ExpandMore-3o_4auth.js +1 -0
- package/dist/assets/FilterList-5yqiBThM.js +25 -0
- package/dist/assets/FormControl-Hq21vo36.js +1 -0
- package/dist/assets/FormControlLabel-VUR__kd6.js +1 -0
- package/dist/assets/FormGroup-eI6teEvF.js +1 -0
- package/dist/assets/{Google-dAgdBBcr.js → Google-n0w8ylMH.js} +4 -4
- package/dist/assets/Grid-K2G-pMy1.js +1 -0
- package/dist/assets/Hidden-_x-p5-c8.js +1 -0
- package/dist/assets/InfoOutlined-F-fcUsuK.js +1 -0
- package/dist/assets/InputAdornment-RvJytqlt.js +1 -0
- package/dist/assets/InputLabel-DAiUnwQ_.js +1 -0
- package/dist/assets/LastPage-GoGs5u1y.js +1 -0
- package/dist/assets/Launch-ap1MvaLo.js +1 -0
- package/dist/assets/LaunchOutlined-CNxZR0ek.js +1 -0
- package/dist/assets/Link-k8qEtvaJ.js +1 -0
- package/dist/assets/ListItem-TF57Gvtr.js +1 -0
- package/dist/assets/{LockIcon-FLDZWusz.js → LockIcon-CfmgVjz6.js} +1 -1
- package/dist/assets/Loop-9GtSik_P.js +1 -0
- package/dist/assets/MoreHoriz-TBuR7SHx.js +1 -0
- package/dist/assets/MoreVert-iOoqkjlW.js +13 -0
- package/dist/assets/OpenInNew-wJU0Utoy.js +1 -0
- package/dist/assets/Pagination-vDyU0B2g.js +2 -0
- package/dist/assets/PlayArrow-CIW1SPsG.js +1 -0
- package/dist/assets/RadioGroup-nADfQV7g.js +1 -0
- package/dist/assets/{RevokeIcon-jYLu3XZj.js → RevokeIcon-nxVvvzeN.js} +1 -1
- package/dist/assets/Search-bYHznpbL.js +1 -0
- package/dist/assets/Select-1Iqp37-c.js +2 -0
- package/dist/assets/{ServerLogo-BOwBDDWD.js → ServerLogo-jnEODh9e.js} +1 -1
- package/dist/assets/{Skeleton-oGjzra-r.js → Skeleton-QpDD7VoP.js} +5 -5
- package/dist/assets/Slider-ZpHqbqdu.js +1 -0
- package/dist/assets/{Stepper-fzf4Xcxa.js → Stepper-ixRtqnzT.js} +1 -1
- package/dist/assets/TableRow-nLhHe6eJ.js +2 -0
- package/dist/assets/TextField-wm9EADyE.js +1 -0
- package/dist/assets/Toolbar-j4eKTcJN.js +1 -0
- package/dist/assets/access-control-NazcIGgK.js +13 -0
- package/dist/assets/actions-9YfURVFC.js +1 -0
- package/dist/assets/add-component-core-ZtlaRi2c.js +900 -0
- package/dist/assets/add-resource-P2T5Cqdb.js +1 -0
- package/dist/assets/addon-zAo-fFnG.js +31 -0
- package/dist/assets/analytics-ps48NGcM.js +52 -0
- package/dist/assets/api-bNO0nT94.js +1 -0
- package/dist/assets/{audit-logs-MLzFLQJb.js → audit-logs-6lJwHNaK.js} +4 -4
- package/dist/assets/button-Oh8hnisK.js +1 -0
- package/dist/assets/click-to-copy-gSzX1Uv1.js +1 -0
- package/dist/assets/{complete-hY_3OBe_.js → complete-ZxKVi9he.js} +4 -4
- package/dist/assets/{component-risT1avx.js → component-i3LTsPsu.js} +52 -52
- package/dist/assets/config-gR-fAViM.js +32 -0
- package/dist/assets/config-navigation-r8PbNnIY.js +25 -0
- package/dist/assets/config-ohsmwM2c.js +1 -0
- package/dist/assets/{config-space-zmhknsPG.js → config-space-SxYUjfNN.js} +1 -1
- package/dist/assets/confirm-fDla8WEZ.js +7 -0
- package/dist/assets/connect-57F_9HYO.js +5 -0
- package/dist/assets/connect-lmtlahVa.js +1 -0
- package/dist/assets/connect-to-CXDeGftb.js +54 -0
- package/dist/assets/{content-layout-81JQKJBH.js → content-layout-ktmgvata.js} +1 -1
- package/dist/assets/dashboard-odF2xCvK.js +134 -0
- package/dist/assets/{did-address-_LHq3tEU.js → did-address-7IRUD3Uz.js} +1 -1
- package/dist/assets/domain-list-YB254WrI.js +12 -0
- package/dist/assets/domain-zwWLk4Oi.js +9 -0
- package/dist/assets/exchange-passport-QbseRdlh.js +1 -0
- package/dist/assets/fallback-enKsQZoh.js +15 -0
- package/dist/assets/fuel-pihAlt3N.js +32 -0
- package/dist/assets/fullpage-rwUKh04N.js +1 -0
- package/dist/assets/home-Zi_E0p8M.js +1 -0
- package/dist/assets/{iframe-1DEE0_Ye.js → iframe-M7y38Ggk.js} +1 -1
- package/dist/assets/index--vWGMkzY.js +262 -0
- package/dist/assets/{index-pLybK7me.js → index-0AcJwYAZ.js} +7 -7
- package/dist/assets/{index-m-qy72TB.js → index-0Wr3YcLB.js} +1 -1
- package/dist/assets/index-1m8VOySO.js +232 -0
- package/dist/assets/index-3KAklYY-.js +16 -0
- package/dist/assets/{index-TUp7NQib.js → index-4EbVQ4po.js} +1 -1
- package/dist/assets/{index-kBq4KQhQ.js → index-5ICvbtVu.js} +18 -18
- package/dist/assets/{index-W2LETq0q.js → index-6tNnygmP.js} +9 -9
- package/dist/assets/index-89F_l2jQ.js +268 -0
- package/dist/assets/index-LbN4qBeT.js +1 -0
- package/dist/assets/index-M-Acbmw6.js +1 -0
- package/dist/assets/index-PuxUqloW.js +38 -0
- package/dist/assets/index-Qjx3pYVM.js +1 -0
- package/dist/assets/index-RrjjseY8.js +225 -0
- package/dist/assets/{index-VgsACbEm.js → index-U6p6yf7O.js} +25 -25
- package/dist/assets/{index-n4Z0RpuU.js → index-VFbM558O.js} +165 -192
- package/dist/assets/{index-2NINk0TP.js → index-X_3cLosr.js} +1 -1
- package/dist/assets/index-YI9r0aOP.js +4 -0
- package/dist/assets/index-YZbnw0Dc.js +54 -0
- package/dist/assets/{index-2zyYsK8P.js → index-Zf1GAtwM.js} +2 -2
- package/dist/assets/index-a8KVcBMh.js +1 -0
- package/dist/assets/{index-ttqAvE9e.js → index-bUvRFIp5.js} +1 -1
- package/dist/assets/{index-_wuKVfLB.js → index-fT1hGU5r.js} +1 -1
- package/dist/assets/index-gvIRsz6H.js +57 -0
- package/dist/assets/index-js0XlLbe.js +1 -0
- package/dist/assets/{index-y0aT5sDP.js → index-jujW4TY6.js} +1 -1
- package/dist/assets/index-k8HmxYAs.js +1 -0
- package/dist/assets/index-sBFGXENX.js +17 -0
- package/dist/assets/index-tkZruqg7.js +180 -0
- package/dist/assets/{index.es-IAdXvsn-.js → index.es-FFredDYC.js} +2 -2
- package/dist/assets/index.esm-LZ2_FNfb.js +1 -0
- package/dist/assets/{invitation-s-QY6lB-.js → invitation-i9I7M_LZ.js} +7 -7
- package/dist/assets/invite-L4d8pRXI.js +10 -0
- package/dist/assets/issue-passport-bTwaJUCQ.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-YxuDE8w2.js → jss-plugin-props-sort.esm-zbSXozm3.js} +5 -5
- package/dist/assets/{launch-result-message-w2z35b57.js → launch-result-message-1vDLXQni.js} +1 -1
- package/dist/assets/{layout-Qrb9GJk1.js → layout-uDpHg6p_.js} +2 -2
- package/dist/assets/list-header-qfdTmZnf.js +57 -0
- package/dist/assets/localization-sQwaD0RU.js +1 -0
- package/dist/assets/{log-oFNg6PuZ.js → log-TYxEQJcq.js} +9 -9
- package/dist/assets/login-oD7wsFJU.js +1 -0
- package/dist/assets/logo-uploader-5c6qf9gK.js +127 -0
- package/dist/assets/lost-passport-jpRWkpso.js +169 -0
- package/dist/assets/{lottie-c1H5TMUw.js → lottie-wQ6lAFez.js} +1 -1
- package/dist/assets/notifications-QXDRV_Ou.js +62 -0
- package/dist/assets/overview-ujjSrxjW.js +12 -0
- package/dist/assets/page-header-X5GQ4baK.js +31 -0
- package/dist/assets/permission-qEel4RAn.js +7 -0
- package/dist/assets/preact.module-lMgcnEc-.js +1 -0
- package/dist/assets/preferences-AHiFv-az.js +1 -0
- package/dist/assets/publish-resource-smeads1e.js +1 -0
- package/dist/assets/react-LZH-uOkf.js +60 -0
- package/dist/assets/react-i1f7jPtW.css +9 -0
- package/dist/assets/selector-YiZnjHi6.js +46 -0
- package/dist/assets/session-R5Hue5lh.js +1 -0
- package/dist/assets/setup-MK9AOUbC.js +19 -0
- package/dist/assets/slicedToArray-0et3hApW.js +2 -0
- package/dist/assets/{spaces-4PlNMpJD.js → spaces-WOki0fy4.js} +1 -1
- package/dist/assets/start-Iq4D8UBZ.js +186 -0
- package/dist/assets/step-actions-J6aAqLlQ.js +31 -0
- package/dist/assets/studio-2XhDlP-h.js +6 -0
- package/dist/assets/switch-control-n3IjcJ3x.js +13 -0
- package/dist/assets/{toUpper-7xxGygCH.js → toUpper-HaquyHtS.js} +1 -1
- package/dist/assets/transfer-6ZS5d7JC.js +16 -0
- package/dist/assets/{uniqBy-ZERnPlDr.js → uniqBy-Ytm66eWQ.js} +1 -1
- package/dist/assets/unsubscribe-pWo4Ns_f.js +1 -0
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-M43Nk3p2.js +1 -0
- package/dist/assets/{useAsync-qmShthIA.js → useAsync-WqOLyAcB.js} +1 -1
- package/dist/assets/useFormControl-88jh3xGP.js +1 -0
- package/dist/assets/useLocalStorage-OHZceqcK.js +1 -0
- package/dist/assets/useSetState-f7afgTil.js +1 -0
- package/dist/assets/useSlot-FbY1c2vm.js +1 -0
- package/dist/assets/user-center-5outvs52.js +1 -0
- package/dist/assets/{util-UbxUJo4O.js → util-IS1RxPdf.js} +1 -1
- package/dist/assets/wrap-locale-1CFMumuQ.js +7 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +25 -25
- package/dist/assets/Add-xw0VPhUX.js +0 -1
- package/dist/assets/Avatar-pkfTP8LL.js +0 -1
- package/dist/assets/Box-Mzxrj_ms.js +0 -1
- package/dist/assets/Box-ymbhgC6s.js +0 -1
- package/dist/assets/Button-waFbg3F5.js +0 -1
- package/dist/assets/ButtonBase-ZY-kwIIP.js +0 -74
- package/dist/assets/ButtonBase-tNmPCxkS.js +0 -74
- package/dist/assets/CardContent-qqSI72K_.js +0 -1
- package/dist/assets/CheckCircle-TJ9uy3Wm.js +0 -1
- package/dist/assets/ChevronLeft-XpRfFiMu.js +0 -1
- package/dist/assets/ChevronRight-mxftLxS6.js +0 -1
- package/dist/assets/Chip-4OIS7pJJ.js +0 -1
- package/dist/assets/CircularProgress-mL4HGxwV.js +0 -28
- package/dist/assets/Close-eQPAWfH3.js +0 -1
- package/dist/assets/Collapse-zsDBgH70.js +0 -1
- package/dist/assets/DeleteOutline-0JuGoCB3.js +0 -1
- package/dist/assets/Done-J1DM69Y3.js +0 -1
- package/dist/assets/Download-GeeuH3-D.js +0 -1
- package/dist/assets/Edit-ON321_pp.js +0 -1
- package/dist/assets/ExpandMore-5SD6DQ9o.js +0 -1
- package/dist/assets/ExpandMore-9wbICA8P.js +0 -1
- package/dist/assets/FilterList-17XYjH8-.js +0 -25
- package/dist/assets/FormControlLabel-1pXR5D_L.js +0 -1
- package/dist/assets/Grid-A23s_WMK.js +0 -1
- package/dist/assets/Grid-nIzyaPAH.js +0 -1
- package/dist/assets/Hidden-yTvMauqk.js +0 -1
- package/dist/assets/IconButton--fw9rRG6.js +0 -1
- package/dist/assets/IconButton-65Al1qzB.js +0 -74
- package/dist/assets/InfoOutlined-YY-GLaI9.js +0 -1
- package/dist/assets/InputAdornment-39iVvC2R.js +0 -1
- package/dist/assets/InputAdornment-vl0GzDiV.js +0 -1
- package/dist/assets/InputLabel-UmCJZZKI.js +0 -1
- package/dist/assets/Launch-EfpAooWi.js +0 -1
- package/dist/assets/Link-V546ZdtQ.js +0 -1
- package/dist/assets/Link-hMRZZ27H.js +0 -1
- package/dist/assets/ListItem-vI5Afq-A.js +0 -1
- package/dist/assets/ListItemText-b2Pv44v9.js +0 -1
- package/dist/assets/Loop-FGclfmCX.js +0 -1
- package/dist/assets/Menu-Q6CST5Fm.js +0 -1
- package/dist/assets/OpenInNew-STkcDiWf.js +0 -1
- package/dist/assets/Pagination-QXWz8N5u.js +0 -2
- package/dist/assets/Paper-3vpNUzbl.js +0 -1
- package/dist/assets/Search-G-bFxbVP.js +0 -2
- package/dist/assets/Search-dlxRL32L.js +0 -1
- package/dist/assets/Select-Y43h-ZPM.js +0 -2
- package/dist/assets/TextField-HrauFGHL.js +0 -2
- package/dist/assets/TextField-cpFnkqwz.js +0 -1
- package/dist/assets/Toolbar-RhgTXWjZ.js +0 -1
- package/dist/assets/Tooltip-H38cA38-.js +0 -1
- package/dist/assets/Typography-4eHv4jzQ.js +0 -1
- package/dist/assets/access-control-PNWPperD.js +0 -13
- package/dist/assets/actions-vTjF3gM3.js +0 -1
- package/dist/assets/add-component-core-C6-BgrtO.js +0 -1001
- package/dist/assets/add-resource-RBcGqFZw.js +0 -1
- package/dist/assets/addon-cG27C1lB.js +0 -31
- package/dist/assets/analytics-3DvP1bUh.js +0 -52
- package/dist/assets/api-6sTSTXtu.js +0 -1
- package/dist/assets/button-k_ihtp8L.js +0 -1
- package/dist/assets/click-to-copy-4g_PCFdW.js +0 -1
- package/dist/assets/config-U_FM2u2r.js +0 -1
- package/dist/assets/config-eEN4mhDF.js +0 -32
- package/dist/assets/config-navigation-yCPsMTU4.js +0 -102
- package/dist/assets/confirm-LwvUQtQ5.js +0 -7
- package/dist/assets/connect-EWyJPwDq.js +0 -5
- package/dist/assets/connect-dQ6Kjquz.js +0 -1
- package/dist/assets/connect-to-7FJOTzoE.js +0 -54
- package/dist/assets/createStack-SPjiDxUo.js +0 -1
- package/dist/assets/createSvgIcon-Z7nXRTVe.js +0 -1
- package/dist/assets/createSvgIcon-qXtjGHwG.js +0 -1
- package/dist/assets/dashboard-zD7uaZqs.js +0 -134
- package/dist/assets/domain-QG-qLniB.js +0 -9
- package/dist/assets/domain-list-6TdwYOfA.js +0 -12
- package/dist/assets/exchange-passport-8LzYmKv8.js +0 -1
- package/dist/assets/fallback-OnsgrSt_.js +0 -15
- package/dist/assets/fuel-Eg4nPbEN.js +0 -32
- package/dist/assets/fullpage-dYVcx4Oy.js +0 -1
- package/dist/assets/home-v3GQUp5J.js +0 -1
- package/dist/assets/index--o8jZjS1.js +0 -268
- package/dist/assets/index-4lAcbdeW.js +0 -1
- package/dist/assets/index-BX3f3OkK.js +0 -1
- package/dist/assets/index-CCUhhBoZ.js +0 -4
- package/dist/assets/index-GTwAtV22.js +0 -1
- package/dist/assets/index-GnHpAF8l.js +0 -13
- package/dist/assets/index-NA2XmpbA.js +0 -1
- package/dist/assets/index-OQZXz6Qv.js +0 -38
- package/dist/assets/index-Th-q5fgl.js +0 -232
- package/dist/assets/index-UHPuljiE.js +0 -57
- package/dist/assets/index-Z53m5Jr9.js +0 -180
- package/dist/assets/index-_ytoqVmf.js +0 -1
- package/dist/assets/index-fQkyqMmH.js +0 -16
- package/dist/assets/index-hhrnVUMr.js +0 -1
- package/dist/assets/index-m4KuD7jq.js +0 -107
- package/dist/assets/index-vbxoQcWN.js +0 -17
- package/dist/assets/index-ym8TMTLC.js +0 -225
- package/dist/assets/index-zlYnQIs2.js +0 -262
- package/dist/assets/index.esm-dCJCboOF.js +0 -1
- package/dist/assets/invite-S6HQju3b.js +0 -10
- package/dist/assets/issue-passport-5x8Y3A6H.js +0 -1
- package/dist/assets/list-header-hJZntI4Z.js +0 -57
- package/dist/assets/listItemButtonClasses-7VRE33OE.js +0 -1
- package/dist/assets/localization-HvdqkES9.js +0 -1
- package/dist/assets/login-npuQF0m3.js +0 -1
- package/dist/assets/logo-uploader-m-6hlwX6.js +0 -127
- package/dist/assets/lost-passport-GuD2ZvdI.js +0 -169
- package/dist/assets/notifications-39FbHwVw.js +0 -62
- package/dist/assets/overview-f1LXTg5q.js +0 -12
- package/dist/assets/page-header-a2DfzH5f.js +0 -31
- package/dist/assets/permission-atKN6kD5.js +0 -7
- package/dist/assets/preact.module-yJdvQMHZ.js +0 -1
- package/dist/assets/preferences-LY91L_K_.js +0 -1
- package/dist/assets/publish-resource-HXCiJN0N.js +0 -1
- package/dist/assets/react-sgoEWMb0.js +0 -60
- package/dist/assets/react-yqGXLqWb.css +0 -9
- package/dist/assets/selector-P6GyReBJ.js +0 -46
- package/dist/assets/session-lZsQQh1c.js +0 -1
- package/dist/assets/setup-enDeybsg.js +0 -19
- package/dist/assets/slicedToArray-bGD6g48i.js +0 -2
- package/dist/assets/start-JDKnEfn9.js +0 -186
- package/dist/assets/step-actions-UidTkp7-.js +0 -31
- package/dist/assets/studio-T2evmKLJ.js +0 -6
- package/dist/assets/styled-WG-zaVFj.js +0 -1
- package/dist/assets/switch-control-1p-cSCbv.js +0 -13
- package/dist/assets/transfer-slG2ib_n.js +0 -16
- package/dist/assets/unsubscribe-HnrllV2C.js +0 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-Z-67_Lpa.js +0 -1
- package/dist/assets/useLocalStorage-ccv3joN-.js +0 -1
- package/dist/assets/useMediaQuery-v6VLo8wf.js +0 -1
- package/dist/assets/useSetState-0m8nPN-_.js +0 -1
- package/dist/assets/useSlotProps-a0sEBGvX.js +0 -1
- package/dist/assets/useTheme-kWRz7cx5.js +0 -1
- package/dist/assets/user-center-G1qJZ1Zg.js +0 -1
- package/dist/assets/visuallyHidden-DVicuktI.js +0 -1
- package/dist/assets/wrap-locale-L0mprnM_.js +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as S,a as x,Q as d,c as r,_ as e,d as k,bt as y,bs as C,r as m,U as M,f as z,j as s,h as j,i as R,bQ as B,P as T}from"./index-n4Z0RpuU.js";import{a as E,F as P}from"./FormControlLabel-1pXR5D_L.js";function N(o){return x("MuiSwitch",o)}const D=S("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),a=D,I=["className","color","edge","size","sx"],O=o=>{const{classes:t,edge:i,size:c,color:p,checked:u,disabled:h}=o,g={root:["root",i&&`edge${r(i)}`,`size${r(c)}`],switchBase:["switchBase",`color${r(p)}`,u&&"checked",h&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=R(g,N,t);return e({},t,b)},U=d("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:i}=o;return[t.root,i.edge&&t[`edge${r(i.edge)}`],t[`size${r(i.size)}`]]}})(({ownerState:o})=>e({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},o.edge==="start"&&{marginLeft:-8},o.edge==="end"&&{marginRight:-8},o.size==="small"&&{width:40,height:24,padding:7,[`& .${a.thumb}`]:{width:16,height:16},[`& .${a.switchBase}`]:{padding:4,[`&.${a.checked}`]:{transform:"translateX(16px)"}}})),A=d(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(o,t)=>{const{ownerState:i}=o;return[t.switchBase,{[`& .${a.input}`]:t.input},i.color!=="default"&&t[`color${r(i.color)}`]]}})(({theme:o})=>({position:"absolute",top:0,left:0,zIndex:1,color:o.vars?o.vars.palette.Switch.defaultColor:`${o.palette.mode==="light"?o.palette.common.white:o.palette.grey[300]}`,transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest}),[`&.${a.checked}`]:{transform:"translateX(20px)"},[`&.${a.disabled}`]:{color:o.vars?o.vars.palette.Switch.defaultDisabledColor:`${o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]}`},[`&.${a.checked} + .${a.track}`]:{opacity:.5},[`&.${a.disabled} + .${a.track}`]:{opacity:o.vars?o.vars.opacity.switchTrackDisabled:`${o.palette.mode==="light"?.12:.2}`},[`& .${a.input}`]:{left:"-100%",width:"300%"}}),({theme:o,ownerState:t})=>e({"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:k(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a.checked}`]:{color:(o.vars||o).palette[t.color].main,"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[t.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:k(o.palette[t.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a.disabled}`]:{color:o.vars?o.vars.palette.Switch[`${t.color}DisabledColor`]:`${o.palette.mode==="light"?y(o.palette[t.color].main,.62):C(o.palette[t.color].main,.55)}`}},[`&.${a.checked} + .${a.track}`]:{backgroundColor:(o.vars||o).palette[t.color].main}})),_=d("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(o,t)=>t.track})(({theme:o})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:o.transitions.create(["opacity","background-color"],{duration:o.transitions.duration.shortest}),backgroundColor:o.vars?o.vars.palette.common.onBackground:`${o.palette.mode==="light"?o.palette.common.black:o.palette.common.white}`,opacity:o.vars?o.vars.opacity.switchTrack:`${o.palette.mode==="light"?.38:.3}`})),L=d("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(o,t)=>t.thumb})(({theme:o})=>({boxShadow:(o.vars||o).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),V=m.forwardRef(function(t,i){const c=M({props:t,name:"MuiSwitch"}),{className:p,color:u="primary",edge:h=!1,size:g="medium",sx:b}=c,$=z(c,I),l=e({},c,{color:u,edge:h,size:g}),n=O(l),w=s.jsx(L,{className:n.thumb,ownerState:l});return s.jsxs(U,{className:j(n.root,p),sx:b,ownerState:l,children:[s.jsx(A,e({type:"checkbox",icon:w,checkedIcon:w,ref:i,ownerState:l},$,{classes:e({},n,{root:n.switchBase})})),s.jsx(_,{className:n.track,ownerState:l})]})}),X=V,v=B(o=>s.jsx(X,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...o}))(({theme:o})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:o.palette.mode==="dark"?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:o.palette.mode==="light"?o.palette.grey[100]:o.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:o.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:o.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:o.transitions.create(["background-color"],{duration:500})}}));function f({labelProps:o,...t}){return o?s.jsx(P,{control:s.jsx(v,{...t}),...o}):s.jsx(v,{...t})}f.propTypes={labelProps:T.object};f.defaultProps={labelProps:null};export{f as S};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{g as I,a as V,Q as F,_ as p,d as N,r as m,U,f as _,j as n,e5 as A,e6 as H,h as Q,c as a,i as q,bF as G,cq as E,br as D,co as J,cp as K,P as u,bz as X,bQ as M,ct as Y}from"./index-n4Z0RpuU.js";import{d as Z}from"./ExpandMore-9wbICA8P.js";import{g as S}from"./Chip-4OIS7pJJ.js";function w(t){return V("MuiButtonGroup",t)}const i=I("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),oo=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],to=(t,o)=>{const{ownerState:r}=t;return[{[`& .${i.grouped}`]:o.grouped},{[`& .${i.grouped}`]:o[`grouped${a(r.orientation)}`]},{[`& .${i.grouped}`]:o[`grouped${a(r.variant)}`]},{[`& .${i.grouped}`]:o[`grouped${a(r.variant)}${a(r.orientation)}`]},{[`& .${i.grouped}`]:o[`grouped${a(r.variant)}${a(r.color)}`]},{[`& .${i.firstButton}`]:o.firstButton},{[`& .${i.lastButton}`]:o.lastButton},{[`& .${i.middleButton}`]:o.middleButton},o.root,o[r.variant],r.disableElevation===!0&&o.disableElevation,r.fullWidth&&o.fullWidth,r.orientation==="vertical"&&o.vertical]},ro=t=>{const{classes:o,color:r,disabled:l,disableElevation:g,fullWidth:B,orientation:d,variant:s}=t,v={root:["root",s,d==="vertical"&&"vertical",B&&"fullWidth",g&&"disableElevation"],grouped:["grouped",`grouped${a(d)}`,`grouped${a(s)}`,`grouped${a(s)}${a(d)}`,`grouped${a(s)}${a(r)}`,l&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return q(v,w,o)},io=F("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:to})(({theme:t,ownerState:o})=>p({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},o.variant==="contained"&&{boxShadow:(t.vars||t).shadows[2]},o.disableElevation&&{boxShadow:"none"},o.fullWidth&&{width:"100%"},o.orientation==="vertical"&&{flexDirection:"column"},{[`& .${i.grouped}`]:p({minWidth:40,"&:hover":p({},o.variant==="contained"&&{boxShadow:"none"})},o.variant==="contained"&&{boxShadow:"none"}),[`& .${i.firstButton},& .${i.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},o.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},o.variant==="text"&&o.orientation==="horizontal"&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${i.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.orientation==="vertical"&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${i.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.color!=="inherit"&&{borderColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / 0.5)`:N(t.palette[o.color].main,.5)},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"transparent"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"transparent"},o.variant==="contained"&&o.orientation==="horizontal"&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${i.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.orientation==="vertical"&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${i.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.color!=="inherit"&&{borderColor:(t.vars||t).palette[o.color].dark},{"&:hover":p({},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"currentColor"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${i.lastButton},& .${i.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},o.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},o.variant==="outlined"&&o.orientation==="horizontal"&&{marginLeft:-1},o.variant==="outlined"&&o.orientation==="vertical"&&{marginTop:-1})})),no=m.forwardRef(function(o,r){const l=U({props:o,name:"MuiButtonGroup"}),{children:g,className:B,color:d="primary",component:s="div",disabled:v=!1,disableElevation:h=!1,disableFocusRipple:b=!1,disableRipple:c=!1,fullWidth:x=!1,orientation:P="horizontal",size:$="medium",variant:C="outlined"}=l,e=_(l,oo),z=p({},l,{color:d,component:s,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,orientation:P,size:$,variant:C}),f=ro(z),L=m.useMemo(()=>({className:f.grouped,color:d,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,size:$,variant:C}),[d,v,h,b,c,x,$,C,f.grouped]),T=S(g),O=T.length,W=y=>{const R=y===0,k=y===O-1;return R&&k?"":R?f.firstButton:k?f.lastButton:f.middleButton};return n.jsx(io,p({as:s,role:"group",className:Q(f.root,B),ref:r,ownerState:z},e,{children:n.jsx(A.Provider,{value:L,children:T.map((y,R)=>n.jsx(H.Provider,{value:W(R),children:y},R))})}))}),ao=no;function j(t){const{size:o,color:r,menu:l,children:g,variant:B,onClick:d,menuButtonProps:s,...v}=t,[h,b]=m.useState(!1),c=m.useRef(null),x=Array.isArray(l)?l.map((e,z)=>m.isValidElement(e)?e:m.createElement(G,{...e,key:z})):l,P=()=>{b(e=>!e)},$=e=>{c.current&&c.current.contains(e.target)||b(!1)},C=e=>{e.target.closest(".MuiMenuItem-root")&&b(!1)};return n.jsxs(n.Fragment,{children:[n.jsxs(eo,{variant:B,size:o,color:r,ref:c,...v,children:[typeof g=="function"?g():n.jsx(E,{onClick:d,color:r,children:g}),n.jsx(E,{onClick:P,color:r,...s,"aria-label":"more functions",children:n.jsx(Z,{})})]}),n.jsx(lo,{open:h,anchorEl:c.current,placement:"bottom-end",disablePortal:!1,children:n.jsx(D,{children:n.jsx(J,{onClickAway:$,children:n.jsx(K,{onClick:C,children:x})})})})]})}j.propTypes={size:u.oneOf(["small","medium","large"]),color:u.oneOf(["primary","secondary","inherit"]),menu:u.oneOfType([u.node,u.array]),children:u.node,variant:u.oneOf(["outlined","contained"]),onClick:u.func,menuButtonProps:u.object};j.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:X,menuButtonProps:{}};j.Item=G;const eo=M(ao)`
|
|
2
|
-
> .MuiButtonBase-root:last-of-type {
|
|
3
|
-
min-width: 2em;
|
|
4
|
-
padding-left: 0;
|
|
5
|
-
padding-right: 0;
|
|
6
|
-
}
|
|
7
|
-
`,lo=M(Y)`
|
|
8
|
-
z-index: ${t=>t.theme.zIndex.tooltip};
|
|
9
|
-
.MuiList-root {
|
|
10
|
-
padding: 4px 0;
|
|
11
|
-
}
|
|
12
|
-
.MuiListItem-root {
|
|
13
|
-
padding-top: 4px;
|
|
14
|
-
padding-bottom: 4px;
|
|
15
|
-
}
|
|
16
|
-
`;export{j as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as vt,a as mt,Q as O,cH as jt,c as Ht,_ as p,r as d,U as St,f as at,h as N,j as u,i as gt,bq as At,aG as ae,cf as Ot,ci as _t,by as Xt,cI as st,aE as ft,aF as ie,bQ as ce,Z as $,P as W}from"./index-n4Z0RpuU.js";let Y;function Dt(){if(Y)return Y;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),Y="reverse",t.scrollLeft>0?Y="default":(t.scrollLeft=1,t.scrollLeft===0&&(Y="negative")),document.body.removeChild(t),Y}function de(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Dt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ue(t){return mt("MuiTab",t)}const be=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=be,pe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fe=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:r,icon:a,label:v,selected:h,disabled:b}=t,S={root:["root",a&&v&&"labelIcon",`textColor${Ht(l)}`,s&&"fullWidth",r&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return gt(S,ue,e)},he=O(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${Ht(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>p({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:p({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ve=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTab"}),{className:r,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:S="top",indicator:T,label:w,onChange:y,onClick:g,onFocus:_,selected:M,selectionFollowsFocus:x,textColor:X="inherit",value:C,wrapped:it=!1}=s,D=at(s,pe),V=p({},s,{disabled:a,disableFocusRipple:v,selected:M,icon:!!b,iconPosition:S,label:!!w,fullWidth:h,textColor:X,wrapped:it}),q=fe(V),L=b&&w&&d.isValidElement(b)?d.cloneElement(b,{className:N(q.iconWrapper,b.props.className)}):b,tt=E=>{!M&&y&&y(E,C),g&&g(E)},U=E=>{x&&!M&&y&&y(E,C),_&&_(E)};return u.jsxs(he,p({focusRipple:!v,className:N(q.root,r),ref:l,role:"tab","aria-selected":M,disabled:a,onClick:tt,onFocus:U,ownerState:V,tabIndex:M?0:-1},D,{children:[S==="top"||S==="start"?u.jsxs(d.Fragment,{children:[L,w]}):u.jsxs(d.Fragment,{children:[w,L]}),T]}))}),xt=ve,me=At(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Se=At(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ge(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function xe(t,e,l,s={},r=()=>{}){const{ease:a=ge,duration:v=300}=s;let h=null;const b=e[t];let S=!1;const T=()=>{S=!0},w=y=>{if(S){r(new Error("Animation cancelled"));return}h===null&&(h=y);const g=Math.min(1,(y-h)/v);if(e[t]=a(g)*(l-b)+b,g>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(w)};return b===l?(r(new Error("Element already at target position")),T):(requestAnimationFrame(w),T)}const ye=["onChange"],Ce={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Be(t){const{onChange:e}=t,l=at(t,ye),s=d.useRef(),r=d.useRef(null),a=()=>{s.current=r.current.offsetHeight-r.current.clientHeight};return ae(()=>{const v=Ot(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),h=_t(r.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",p({style:Ce,ref:r},l))}function Te(t){return mt("MuiTabScrollButton",t)}const we=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Me=we,Ie=["className","slots","slotProps","direction","orientation","disabled"],Re=t=>{const{classes:e,orientation:l,disabled:s}=t;return gt({root:["root",l,s&&"disabled"]},Te,e)},Ee=O(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>p({width:40,flexShrink:0,opacity:.8,[`&.${Me.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ze=d.forwardRef(function(e,l){var s,r;const a=St({props:e,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:S}=a,T=at(a,Ie),y=Xt().direction==="rtl",g=p({isRtl:y},a),_=Re(g),M=(s=h.StartScrollButtonIcon)!=null?s:me,x=(r=h.EndScrollButtonIcon)!=null?r:Se,X=st({elementType:M,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=st({elementType:x,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return u.jsx(Ee,p({component:"div",className:N(_.root,v),ref:l,role:null,ownerState:g,tabIndex:null},T,{children:S==="left"?u.jsx(M,p({},X)):u.jsx(x,p({},C))}))}),We=ze;function Pe(t){return mt("MuiTabs",t)}const ke=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ht=ke,Ne=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,$t=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,nt=(t,e,l)=>{let s=!1,r=l(t,e);for(;r;){if(r===t.firstChild){if(s)return;s=!0}const a=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||a)r=l(t,r);else{r.focus();return}}},$e=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:r,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=t;return gt({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",r&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Pe,b)},Le=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${ht.scrollButtons}`]:e.scrollButtons},{[`& .${ht.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ht.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Fe=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),je=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>p({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),He=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Ae=O(Be)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},Oe=d.forwardRef(function(e,l){const s=St({props:e,name:"MuiTabs"}),r=Xt(),a=r.direction==="rtl",{"aria-label":v,"aria-labelledby":h,action:b,centered:S=!1,children:T,className:w,component:y="div",allowScrollButtonsMobile:g=!1,indicatorColor:_="primary",onChange:M,orientation:x="horizontal",ScrollButtonComponent:X=We,scrollButtons:C="auto",selectionFollowsFocus:it,slots:D={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:L={},textColor:tt="primary",value:U,variant:E="standard",visibleScrollbar:ct=!1}=s,Yt=at(s,Ne),I=E==="scrollable",B=x==="vertical",G=B?"scrollTop":"scrollLeft",et=B?"top":"left",ot=B?"bottom":"right",dt=B?"clientHeight":"clientWidth",Q=B?"height":"width",F=p({},s,{component:y,allowScrollButtonsMobile:g,indicatorColor:_,orientation:x,vertical:B,scrollButtons:C,textColor:tt,variant:E,visibleScrollbar:ct,fixed:!I,hideScrollbar:I&&!ct,scrollableX:I&&!B,scrollableY:I&&B,centered:S&&!I,scrollButtonsHideMobile:!g}),P=$e(F),Kt=st({elementType:D.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:F}),Vt=st({elementType:D.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:F}),[Ct,Gt]=d.useState(!1),[j,Bt]=d.useState(Lt),[Tt,Qt]=d.useState(!1),[wt,Zt]=d.useState(!1),[Mt,Jt]=d.useState(!1),[It,te]=d.useState({overflow:"hidden",scrollbarWidth:0}),Rt=new Map,z=d.useRef(null),H=d.useRef(null),Et=()=>{const o=z.current;let n;if(o){const i=o.getBoundingClientRect();n={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:de(o,r.direction),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&U!==!1){const i=H.current.children;if(i.length>0){const f=i[Rt.get(U)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:n,tabMeta:c}},Z=ft(()=>{const{tabsMeta:o,tabMeta:n}=Et();let c=0,i;if(B)i="top",n&&o&&(c=n.top-o.top+o.scrollTop);else if(i=a?"right":"left",n&&o){const m=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(n[i]-o[i]+m)}const f={[i]:c,[Q]:n?n[Q]:0};if(isNaN(j[i])||isNaN(j[Q]))Bt(f);else{const m=Math.abs(j[i]-f[i]),R=Math.abs(j[Q]-f[Q]);(m>=1||R>=1)&&Bt(f)}}),ut=(o,{animation:n=!0}={})=>{n?xe(G,z.current,o,{duration:r.transitions.duration.standard}):z.current[G]=o},zt=o=>{let n=z.current[G];B?n+=o:(n+=o*(a?-1:1),n*=a&&Dt()==="reverse"?-1:1),ut(n)},Wt=()=>{const o=z.current[dt];let n=0;const c=Array.from(H.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(n+f[dt]>o){i===0&&(n=o);break}n+=f[dt]}return n},ee=()=>{zt(-1*Wt())},oe=()=>{zt(Wt())},le=d.useCallback(o=>{te({overflow:null,scrollbarWidth:o})},[]),re=()=>{const o={};o.scrollbarSizeListener=I?u.jsx(Ae,{onChange:le,className:N(P.scrollableX,P.hideScrollbar)}):null;const c=I&&(C==="auto"&&(Tt||wt)||C===!0);return o.scrollButtonStart=c?u.jsx(X,p({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Kt},orientation:x,direction:a?"right":"left",onClick:ee,disabled:!Tt},L,{className:N(P.scrollButtons,L.className)})):null,o.scrollButtonEnd=c?u.jsx(X,p({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Vt},orientation:x,direction:a?"left":"right",onClick:oe,disabled:!wt},L,{className:N(P.scrollButtons,L.className)})):null,o},Pt=ft(o=>{const{tabsMeta:n,tabMeta:c}=Et();if(!(!c||!n)){if(c[et]<n[et]){const i=n[G]+(c[et]-n[et]);ut(i,{animation:o})}else if(c[ot]>n[ot]){const i=n[G]+(c[ot]-n[ot]);ut(i,{animation:o})}}}),lt=ft(()=>{I&&C!==!1&&Jt(!Mt)});d.useEffect(()=>{const o=Ot(()=>{z.current&&Z()});let n;const c=m=>{m.forEach(R=>{R.removedNodes.forEach(J=>{var k;(k=n)==null||k.unobserve(J)}),R.addedNodes.forEach(J=>{var k;(k=n)==null||k.observe(J)})}),o(),lt()},i=_t(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(n=new ResizeObserver(o),Array.from(H.current.children).forEach(m=>{n.observe(m)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(H.current,{childList:!0})),()=>{var m,R;o.clear(),i.removeEventListener("resize",o),(m=f)==null||m.disconnect(),(R=n)==null||R.disconnect()}},[Z,lt]),d.useEffect(()=>{const o=Array.from(H.current.children),n=o.length;if(typeof IntersectionObserver<"u"&&n>0&&I&&C!==!1){const c=o[0],i=o[n-1],f={root:z.current,threshold:.99},m=pt=>{Qt(!pt[0].isIntersecting)},R=new IntersectionObserver(m,f);R.observe(c);const J=pt=>{Zt(!pt[0].isIntersecting)},k=new IntersectionObserver(J,f);return k.observe(i),()=>{R.disconnect(),k.disconnect()}}},[I,C,Mt,T==null?void 0:T.length]),d.useEffect(()=>{Gt(!0)},[]),d.useEffect(()=>{Z()}),d.useEffect(()=>{Pt(Lt!==j)},[Pt,j]),d.useImperativeHandle(b,()=>({updateIndicator:Z,updateScrollButtons:lt}),[Z,lt]);const kt=u.jsx(He,p({},q,{className:N(P.indicator,q.className),ownerState:F,style:p({},j,q.style)}));let rt=0;const ne=d.Children.map(T,o=>{if(!d.isValidElement(o))return null;const n=o.props.value===void 0?rt:o.props.value;Rt.set(n,rt);const c=n===U;return rt+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ct&&kt,selected:c,selectionFollowsFocus:it,onChange:M,textColor:tt,value:n},rt===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),se=o=>{const n=H.current,c=ie(n).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",m=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",m="ArrowLeft"),o.key){case f:o.preventDefault(),nt(n,c,$t);break;case m:o.preventDefault(),nt(n,c,Nt);break;case"Home":o.preventDefault(),nt(n,null,Nt);break;case"End":o.preventDefault(),nt(n,null,$t);break}},bt=re();return u.jsxs(Le,p({className:N(P.root,w),ownerState:F,ref:l,as:y},Yt,{children:[bt.scrollButtonStart,bt.scrollbarSizeListener,u.jsxs(Fe,{className:P.scroller,ownerState:F,style:{overflow:It.overflow,[B?`margin${a?"Left":"Right"}`:"marginBottom"]:ct?void 0:-It.scrollbarWidth},ref:z,children:[u.jsx(je,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:F,onKeyDown:se,ref:H,role:"tablist",children:ne}),Ct&&kt]}),bt.scrollButtonEnd]}))}),yt=Oe,Ft="index",K={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},_e=ce(yt)(({theme:t})=>({[`& .${K.tabs}`]:{},[`& .${K.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qt({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(r,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:$.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:$.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:$.lineBorderBase,color:$.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}qt.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ut({tabs:t,current:e,onChange:l,...s}){return u.jsx(yt,{scrollButtons:"auto",value:e,onChange:(r,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:$.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:$.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:$.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:$.foregroundsFgBase},...s.sx},children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}Ut.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Xe({tabs:t,current:e,onChange:l,...s}){return s.variant==="card"?u.jsx(qt,{...s,tabs:t,current:e,onChange:l}):s.variant==="line"?u.jsx(Ut,{...s,tabs:t,current:e,onChange:l}):u.jsx(_e,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(r,a)=>l(a),indicatorColor:"primary",...s,className:[K.tabs,s.className||""].join(" "),children:t.map(r=>u.jsx(xt,{className:K.tab,value:r.value,label:r.label,icon:r.icon||null},r.value))})}Xe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{Se as K,Xe as T,me as a,yt as b,xt as c,Dt as d,de as g,ht as t};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import{a as Fe,g as Oe,c as k,r as j,f as Ne,_ as E,j as e,h as Pe,i as Je,bV as fe,ak as he,bt as lt,bs as ct,aZ as ee,aY as xe,l as z,dw as dt,bO as de,m as V,d_ as pt,K as pe,au as mt,a6 as _,b8 as ge,T as B,P as h,a3 as Qe,a4 as ut,gg as ft,k as te,dZ as ht,a0 as xt,ad as gt,J as F,bg as Z}from"./index-n4Z0RpuU.js";import{S as Be}from"./index-fQkyqMmH.js";import{b as yt,A as vt,f as me,u as jt}from"./index-OQZXz6Qv.js";import"./api-6sTSTXtu.js";import{u as He,P as Ct,d as bt}from"./use-blocklet-info-for-connect-did-spaces-Z-67_Lpa.js";import{e as $,f as ke,h as St,i as De,j as At,k as It,l as Re,d as Bt}from"./spaces-4PlNMpJD.js";import{h as J,i as kt}from"./dashboard-zD7uaZqs.js";import{T as g,E as Ve}from"./Link-V546ZdtQ.js";import{B as x}from"./Box-Mzxrj_ms.js";import{S as oe}from"./CircularProgress-mL4HGxwV.js";import{M as Dt}from"./TextField-cpFnkqwz.js";import{I as Rt}from"./index-y0aT5sDP.js";import{W as Ut}from"./did-address-_LHq3tEU.js";import{S as Ke}from"./switch-control-1p-cSCbv.js";import{r as re}from"./createSvgIcon-qXtjGHwG.js";import{d as Tt}from"./DeleteOutline-0JuGoCB3.js";import{M as q}from"./confirm-LwvUQtQ5.js";import{L as G,a as Y}from"./ListItemText-b2Pv44v9.js";import{I as Et}from"./IconButton-65Al1qzB.js";import{b as zt,M as wt}from"./Menu-Q6CST5Fm.js";import{e as Lt}from"./mode-Ip8p6ZjP.js";import{C as Ue}from"./Chip-4OIS7pJJ.js";import{s as K,u as Xe}from"./styled-WG-zaVFj.js";import{T as ce}from"./index-GnHpAF8l.js";import{D as Mt}from"./index-kBq4KQhQ.js";import{T as Ft}from"./permission-atKN6kD5.js";import"./ExpandMore-9wbICA8P.js";import"./index-GTwAtV22.js";import"./index-TUp7NQib.js";import"./index-fjKBcmH5.js";import"./index-hhrnVUMr.js";import"./useLocalStorage-ccv3joN-.js";import"./createStack-SPjiDxUo.js";import"./useSetState-0m8nPN-_.js";import"./Avatar-pkfTP8LL.js";import"./session-lZsQQh1c.js";import"./createSvgIcon-Z7nXRTVe.js";import"./fallback-OnsgrSt_.js";import"./index-vbxoQcWN.js";import"./index-VgsACbEm.js";import"./Toolbar-RhgTXWjZ.js";import"./Hidden-yTvMauqk.js";import"./selector-P6GyReBJ.js";import"./listItemButtonClasses-7VRE33OE.js";import"./useMediaQuery-v6VLo8wf.js";import"./Box-ymbhgC6s.js";import"./IconButton--fw9rRG6.js";import"./ButtonBase-ZY-kwIIP.js";import"./useSlotProps-a0sEBGvX.js";import"./Typography-4eHv4jzQ.js";import"./Select-Y43h-ZPM.js";import"./InputLabel-UmCJZZKI.js";import"./index-_ytoqVmf.js";import"./FormControlLabel-1pXR5D_L.js";import"./FilterList-17XYjH8-.js";import"./Search-G-bFxbVP.js";import"./TextField-HrauFGHL.js";import"./Grid-A23s_WMK.js";import"./index-W2LETq0q.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./useAsync-qmShthIA.js";function Ot(t){return Fe("MuiIcon",t)}Oe("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nt=["baseClassName","className","color","component","fontSize"],Pt=t=>{const{color:o,fontSize:r,classes:s}=t,a={root:["root",o!=="inherit"&&`color${k(o)}`,`fontSize${k(r)}`]};return Je(a,Ot,s)},Jt=K("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.color!=="inherit"&&o[`color${k(r.color)}`],o[`fontSize${k(r.fontSize)}`]]}})(({theme:t,ownerState:o})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[o.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[o.color]})),We=j.forwardRef(function(o,r){const s=Xe({props:o,name:"MuiIcon"}),{baseClassName:a="material-icons",className:u,color:n="inherit",component:c="span",fontSize:f="medium"}=s,m=Ne(s,Nt),d=E({},s,{baseClassName:a,color:n,component:c,fontSize:f}),y=Pt(d);return e.jsx(Jt,E({as:c,className:Pe(a,"notranslate",y.root,u),ownerState:d,"aria-hidden":!0,ref:r},m))});We.muiName="Icon";const Qt=We;function Ht(t){return Fe("MuiLinearProgress",t)}Oe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Vt=["className","color","value","valueBuffer","variant"];let Q=t=>t,Te,Ee,ze,we,Le,Me;const ue=4,Kt=fe(Te||(Te=Q`
|
|
2
|
-
0% {
|
|
3
|
-
left: -35%;
|
|
4
|
-
right: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
60% {
|
|
8
|
-
left: 100%;
|
|
9
|
-
right: -90%;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
100% {
|
|
13
|
-
left: 100%;
|
|
14
|
-
right: -90%;
|
|
15
|
-
}
|
|
16
|
-
`)),Xt=fe(Ee||(Ee=Q`
|
|
17
|
-
0% {
|
|
18
|
-
left: -200%;
|
|
19
|
-
right: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
60% {
|
|
23
|
-
left: 107%;
|
|
24
|
-
right: -8%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
100% {
|
|
28
|
-
left: 107%;
|
|
29
|
-
right: -8%;
|
|
30
|
-
}
|
|
31
|
-
`)),Wt=fe(ze||(ze=Q`
|
|
32
|
-
0% {
|
|
33
|
-
opacity: 1;
|
|
34
|
-
background-position: 0 -23px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
60% {
|
|
38
|
-
opacity: 0;
|
|
39
|
-
background-position: 0 -23px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
100% {
|
|
43
|
-
opacity: 1;
|
|
44
|
-
background-position: -200px -23px;
|
|
45
|
-
}
|
|
46
|
-
`)),Zt=t=>{const{classes:o,variant:r,color:s}=t,a={root:["root",`color${k(s)}`,r],dashed:["dashed",`dashedColor${k(s)}`],bar1:["bar",`barColor${k(s)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar",r!=="buffer"&&`barColor${k(s)}`,r==="buffer"&&`color${k(s)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Je(a,Ht,o)},ye=(t,o)=>o==="inherit"?"currentColor":t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?lt(t.palette[o].main,.62):ct(t.palette[o].main,.5),qt=K("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[`color${k(r.color)}`],o[r.variant]]}})(({ownerState:t,theme:o})=>E({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:ye(o,t.color)},t.color==="inherit"&&t.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},t.variant==="buffer"&&{backgroundColor:"transparent"},t.variant==="query"&&{transform:"rotate(180deg)"})),Gt=K("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.dashed,o[`dashedColor${k(r.color)}`]]}})(({ownerState:t,theme:o})=>{const r=ye(o,t.color);return E({position:"absolute",marginTop:0,height:"100%",width:"100%"},t.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},he(we||(we=Q`
|
|
47
|
-
animation: ${0} 3s infinite linear;
|
|
48
|
-
`),Wt)),Yt=K("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.bar,o[`barColor${k(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&o.bar1Indeterminate,r.variant==="determinate"&&o.bar1Determinate,r.variant==="buffer"&&o.bar1Buffer]}})(({ownerState:t,theme:o})=>E({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:t.color==="inherit"?"currentColor":(o.vars||o).palette[t.color].main},t.variant==="determinate"&&{transition:`transform .${ue}s linear`},t.variant==="buffer"&&{zIndex:1,transition:`transform .${ue}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&he(Le||(Le=Q`
|
|
49
|
-
width: auto;
|
|
50
|
-
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
51
|
-
`),Kt)),_t=K("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.bar,o[`barColor${k(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&o.bar2Indeterminate,r.variant==="buffer"&&o.bar2Buffer]}})(({ownerState:t,theme:o})=>E({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},t.variant!=="buffer"&&{backgroundColor:t.color==="inherit"?"currentColor":(o.vars||o).palette[t.color].main},t.color==="inherit"&&{opacity:.3},t.variant==="buffer"&&{backgroundColor:ye(o,t.color),transition:`transform .${ue}s linear`}),({ownerState:t})=>(t.variant==="indeterminate"||t.variant==="query")&&he(Me||(Me=Q`
|
|
52
|
-
width: auto;
|
|
53
|
-
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
54
|
-
`),Xt)),$t=j.forwardRef(function(o,r){const s=Xe({props:o,name:"MuiLinearProgress"}),{className:a,color:u="primary",value:n,valueBuffer:c,variant:f="indeterminate"}=s,m=Ne(s,Vt),d=E({},s,{color:u,variant:f}),y=Zt(d),C=zt(),i={},v={bar1:{},bar2:{}};if((f==="determinate"||f==="buffer")&&n!==void 0){i["aria-valuenow"]=Math.round(n),i["aria-valuemin"]=0,i["aria-valuemax"]=100;let b=n-100;C.direction==="rtl"&&(b=-b),v.bar1.transform=`translateX(${b}%)`}if(f==="buffer"&&c!==void 0){let b=(c||0)-100;C.direction==="rtl"&&(b=-b),v.bar2.transform=`translateX(${b}%)`}return e.jsxs(qt,E({className:Pe(y.root,a),ownerState:d,role:"progressbar"},i,{ref:r},m,{children:[f==="buffer"?e.jsx(Gt,{className:y.dashed,ownerState:d}):null,e.jsx(Yt,{className:y.bar1,ownerState:d,style:v.bar1}),f==="determinate"?null:e.jsx(_t,{className:y.bar2,ownerState:d,style:v.bar2})]}))}),eo=$t;function se({...t}){const{blocklet:o}=ee(),{info:r}=xe(),{t:s,locale:a}=z(),[u,n]=j.useState(""),[c,f]=j.useState(!1),[m,d]=j.useState(!1),[y,C]=j.useState(""),i=He({blocklet:o}),v=dt(r),{spaceGateways:b,addSpaceGateway:ae}=J(),[D,O]=j.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:de.create({baseURL:V(window.location.origin,pt())}).get,messages:{title:s("storage.spaces.provideNFT.title",{appName:i.appName},a),scan:s("storage.spaces.provideNFT.scan",{appName:i.appName},a),confirm:"",success:e.jsx(g,{gutterBottom:!0,children:s("storage.spaces.provideNFT.success")})},onClose:()=>{O(p=>({...p,open:!1}))}}),[l,H]=j.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:s("storage.spaces.authorize.title",{appName:i.appName},a),scan:s("storage.spaces.authorize.scan",{appName:i.appName},a),confirm:"",success:e.jsx(g,{gutterBottom:!0,children:s("storage.spaces.authorize.success")})},onClose:()=>{H(p=>({...p,open:!1}))}}),U=async({endpoint:p,name:S,did:A})=>{const T=await ke(p);if(!await De(T)){B.error(s("storage.spaces.gateway.add.invalidUrl"));return}if(b.some(X=>X.endpoint===p)){B.error(s("storage.spaces.gateway.add.duplicate",{name:S}));return}const M={name:S,did:A,url:T,endpoint:p};await ae(M,p),B.success(s("storage.spaces.connectedWithName",{name:(M==null?void 0:M.name)??"DID Spaces"}))},w=async(p,S)=>{try{if(!ge.isEmpty(p.spaceGateway))await U(S(p.spaceGateway));else{const A=S(p.endpoint),T=p.space?S(p.space):{};await U({endpoint:A,did:$(A),name:"DID Space",...T})}H(A=>({...A,open:!1})),n(null),O(A=>({...A,open:!1}))}catch(A){console.error(A),B.error(me(A))}},I=()=>{O(p=>({...p,open:!0,extraParams:{appPid:o.appPid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:r.did}}))},L=async()=>{try{f(!0);const p=await ke(u),S=St(p),A=new URL(p).searchParams.get("spaceDid");if(!await De(S))throw new Error(s("storage.spaces.gateway.add.invalidUrl"));H(T=>({...T,open:!0,prefix:V(S,"space/api/did"),baseUrl:new URL(S).origin,checkFn:de.create({baseURL:V(S,"space")}).get,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:r.did,spaceDid:A}})),d(!1)}catch(p){const S=`${s("storage.spaces.gateway.add.failed",a)}: ${me(p)}`;C(S)}finally{f(!1)}};return e.jsxs(x,{children:[e.jsx(Be,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:I,menu:[e.jsx(Be.Item,{sx:{textTransform:"none"},onClick:()=>d(!0),size:"small",...t,children:s("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(g,{sx:{fontWeight:"bold",textTransform:"none"},children:s("storage.spaces.connect.useWallet")})}),e.jsx(pe,{forceConnected:!1,saveConnect:!1,prefix:D.prefix,open:D.open,popup:!0,action:D.action,webWalletUrl:v,baseUrl:D.baseUrl,checkFn:D.checkFn,onSuccess:w,onClose:D.onClose,checkTimeout:D.checkTimeout,extraParams:D.extraParams,messages:D.messages,locale:a}),e.jsx(pe,{forceConnected:!1,saveConnect:!1,prefix:l.prefix,open:l.open,popup:!0,action:l.action,baseUrl:l.baseUrl,checkFn:l.checkFn,onSuccess:w,onClose:l.onClose,checkTimeout:l.checkTimeout,extraParams:l.extraParams,messages:l.messages,locale:a}),e.jsxs(mt,{title:s("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:m,onClose:()=>d(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(_,{onClick:p=>{p.stopPropagation(),d(!1)},color:"inherit",children:s("common.cancel")}),e.jsxs(_,{onClick:L,color:"primary",disabled:c||!u,variant:"contained",autoFocus:!0,children:[c&&e.jsx(oe,{size:16}),s("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(yt,{component:"div",children:e.jsx(g,{component:"div",children:e.jsx(Dt,{label:s("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:u,onChange:p=>{C(null),n(p.target.value)},disabled:c,onKeyPress:async p=>{p.key==="Enter"&&await L()},autoFocus:!0})})})}),!!y&&e.jsx(vt,{type:"error",style:{width:"100%"},children:y})]})]})}se.propTypes={};se.defaultProps={};function ne({blocklet:t,...o}){const{t:r}=j.useContext(ut);if(!t.diskInfo)return e.jsx(g,{children:r("blocklet.diskInfo.empty")});const s=(n,c,f)=>e.jsxs(g,{children:[f?e.jsx(Ve,{style:{cursor:"pointer"},onClick:f,underline:"hover",children:n}):n," ",e.jsx("strong",{children:c?ft(c):"empty"})]}),a=t.environments.reduce((n,c)=>(n[c.key]=c.value,n),{}),u=[{key:"appDir",name:r("blocklet.diskInfo.appDir"),value:s(a.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:r("blocklet.diskInfo.dataDir"),value:s(a.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:r("blocklet.diskInfo.logDir"),value:s(a.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:r("blocklet.diskInfo.cacheDir"),value:s(a.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(to,{component:"div",...o,children:u.map(n=>e.jsx(Rt,{valueComponent:"div",nameWidth:120,name:n.name,children:n.value},n.key))})}ne.propTypes={blocklet:h.object.isRequired};ne.defaultProps={};const to=Qe(g)``;var Ze=function(o){return e.jsxs("svg",{...o,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.222l-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm11.546-10.102V169h-1.756v-11.636h1.756zM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263L121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"M50.928 216.089l1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911zm2.439.564h-1.13v1.193h1.13v-1.193zm-1.13 2.983h1.13v1.193h-1.13v-1.193z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762zM36.355 214h-1.011v7.783h1.01V214zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75zM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894zm6.946 1.803h1.13v1.193h-1.13v-1.193zm1.13 2.983h-1.13v1.193h1.13v-1.193zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"M192.064 213.333l.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IBstE0E8kxJLeKaVhNA/uEwIslv1JmRwcSzAo+URPCF5M8AGzEF8yG+QVBFl53FqhfYqd7/PM6AmJouW4cVge9pZuMJga2NQH918Sp4VIXddVCKizUTFu3CbUMxyxgOUoSpidf+JEuRy/g3EyyCTz0yw2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ZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};Ze.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function qe(){const{t}=z(),{blocklet:o}=ee();return e.jsxs(x,{children:[e.jsxs(x,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Ze,{style:{width:200,height:250}}),e.jsx(g,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(se,{})]}),e.jsx(g,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ne,{blocklet:o})]})}qe.propTypes={};var ve={},oo=te;Object.defineProperty(ve,"__esModule",{value:!0});var Ge=ve.default=void 0,ro=oo(re()),so=e;Ge=ve.default=(0,ro.default)((0,so.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var je={},no=te;Object.defineProperty(je,"__esModule",{value:!0});var Ye=je.default=void 0,ao=no(re()),io=e;Ye=je.default=(0,ao.default)((0,io.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var Ce={},lo=te;Object.defineProperty(Ce,"__esModule",{value:!0});var _e=Ce.default=void 0,co=lo(re()),po=e;_e=Ce.default=(0,co.default)((0,po.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function be({spaceGateway:t,onDelete:o}){const{t:r}=z(),[s,a]=j.useState(!1),[u,n]=j.useState(!1),c=(m,d)=>{m==null||m.preventDefault(),m==null||m.stopPropagation(),a(d)},f=async m=>{try{m==null||m.stopPropagation(),n(!0),await o(t),a(!1)}catch(d){console.error(d),B.error(`${r("storage.space.gateway.delete.failed")}: ${me(d)}`)}finally{n(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(q,{color:"red",onClick:m=>c(m,!0),children:[e.jsx(G,{style:{minWidth:24,color:"red"},children:e.jsx(Tt,{fontSize:"small"})}),e.jsx(Y,{style:{color:"red"},children:r("common.delete")})]}),e.jsx(ht,{title:r("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:s,confirmButton:{text:r("common.confirm"),props:{variant:"contained",color:"error",loading:u}},cancelButton:{text:r("common.cancel"),props:{variant:"contained",color:"primary"},loading:u},onConfirm:f,onCancel:m=>c(m,!1)})]})}be.propTypes={onDelete:h.func,spaceGateway:h.shape({name:h.string.isRequired,url:h.string.isRequired,protected:h.bool}).isRequired};be.defaultProps={onDelete:()=>{}};function Se({spaceGateway:t,connected:o,onDelete:r,onConnect:s,enableSwitchToSpace:a,...u}){const[n,c]=j.useState(null),{t:f}=z(),[m,d]=j.useState(!1),y=(i,v)=>{i.stopPropagation(),i.preventDefault(),c(v&&i.currentTarget)},C=async i=>{try{d(!0),y(i,!1),await s(t)}catch(v){console.error(v),B.error(v.message)}finally{d(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Et,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:i=>y(i,!0),size:"small",...u,children:m||t!=null&&t.loading?e.jsx(oe,{size:"24px"}):e.jsx(kt,{})}),e.jsxs(wt,{id:"simple-menu",anchorEl:n,keepMounted:!0,open:!!n,onClose:i=>y(i,!1),children:[e.jsxs(q,{onClick:i=>{y(i,!1),window.open(t.endpoint?At(t.endpoint):t.url)},children:[e.jsx(G,{style:{minWidth:24},children:e.jsx(Ge,{fontSize:"small"})}),e.jsx(Y,{children:f("common.open")})]}),e.jsxs(q,{onClick:i=>{y(i,!1),window.open(It(t.endpoint))},children:[e.jsx(G,{style:{minWidth:24},children:e.jsx(_e,{fontSize:"small"})}),e.jsx(Y,{children:f("storage.spaces.strategy.viewBackupFiles")})]}),!o&&a&&e.jsxs(q,{onClick:C,children:[e.jsx(G,{style:{minWidth:24},children:e.jsx(Ye,{fontSize:"small"})}),e.jsx(Y,{children:f("storage.spaces.connect.switchToSpace")})]}),!o&&e.jsx(be,{spaceGateway:t,onDelete:r})]})]})}Se.propTypes={spaceGateway:h.shape({name:h.string.isRequired,url:h.string.isRequired,protected:h.bool,endpoint:h.string.isRequired,loading:h.bool}).isRequired,connected:h.bool.isRequired,enableSwitchToSpace:h.bool,onDelete:h.func,onConnect:h.func};Se.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0};var $e=function(o){return e.jsx("svg",{...o,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};$e.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var et=function(o){return e.jsx("svg",{...o,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};et.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ae({spaceGateway:t,connected:o,onDelete:r,onBackupNow:s,...a}){const u=jt(R=>R.breakpoints.down("md")),{t:n,locale:c}=z(),{blocklet:f}=ee(),{api:m,info:{did:d}}=xe(),{appDid:y,appName:C,appDescription:i,scopes:v,appUrl:b,referrer:ae}=He({blocklet:f}),{updateSpaceGateway:D,backupEndpoint:O,backupProgress:l,refreshBackupEndpoint:H}=J(),[U,w]=j.useState(!1),[I,L]=j.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:n("storage.spaces.authorize.title",{appName:C},c),scan:n("storage.spaces.authorize.scan",{appName:C},c),confirm:"",success:e.jsx(g,{gutterBottom:!0,children:n("storage.spaces.authorize.success")})},onClose:()=>{L(R=>({...R,open:!1}))}}),{data:p,loading:S}=xt(async()=>o?Re(O):!0,{refreshDeps:[o,O,I==null?void 0:I.open,U]}),A=o&&p,T=o&&!U&&p&&!(t!=null&&t.loading),N=o&&U&&p,M=o&&!p&&!S&&!U,X=async()=>{if(await Re(t==null?void 0:t.endpoint)){await m.configBlocklet({input:{did:[f.meta.did],configs:[{key:gt.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),H(),B.success(n("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}L(W=>({...W,open:!0,prefix:V(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:de.create({baseURL:V(t.url,"space")}).get,extraParams:{appDid:y,appName:C,appDescription:i,scopes:v,appUrl:b,referrer:ae,nodeDid:d,spaceDid:t.did}}))},st=async(R,W)=>{const ie=W(R.endpoint),at=$(ie),P=R.space?W(R.space):{};if(t.did&&at!==t.did){L(le=>({...le,open:!1})),B.error(n("storage.spaces.gateway.switch.failedForMismatchSpace",{name:P!=null&&P.name?P.name:""}));return}const it={...t,name:P.name??"DID Space",did:P.did??$(ie),endpoint:ie};await D(it),L(le=>({...le,open:!1}))},nt=async()=>{try{if(U)return;w(!0),await s()}catch(R){console.error(R),B.error(R.message)}finally{w(!0)}};return j.useEffect(()=>{l!=null&&l.completed?((l==null?void 0:l.progress)===100?B.success(n("storage.spaces.backupSuccessfully")):(l==null?void 0:l.progress)===-1&&B.error(l==null?void 0:l.message),w(!1),l.progress=0,l.message=""):l.progress&&w(!0)},[l]),e.jsxs(mo,{style:{position:"relative"},children:[e.jsxs(x,{sx:{backgroundColor:o?"#F0FDFF":"inherit","&:hover":{backgroundColor:o?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...a,children:[e.jsx(x,{display:"flex",children:e.jsx(Ct,{alt:t.did,src:Bt(t.endpoint)})}),e.jsxs(x,{className:"spaces-info",display:"flex",flexGrow:(!u||!N)&&1,minWidth:"180px",flexDirection:N?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(x,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(g,{color:o?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),A&&e.jsx(Ue,{label:e.jsxs(e.Fragment,{children:[e.jsx($e,{style:{marginRight:"4px"}}),n("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),M&&e.jsx(Ue,{label:e.jsxs(e.Fragment,{children:[e.jsx(et,{style:{marginRight:"4px"}}),n("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(x,{className:"spaces-address",display:N?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(g,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(Ut,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(x,{className:"spaces-backup",display:"flex",alignItems:"center",flex:u&&N&&1,children:[T&&e.jsxs(x,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(_,{variant:"contained",size:"small",onClick:nt,children:n("storage.spaces.strategy.backupNow")}),Lt&&e.jsx(Ke,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(g,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:n("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),N&&e.jsxs(x,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!u&&"640px",marginLeft:u&&"16px",width:u&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(g,{color:"primary",children:l==null?void 0:l.message}),e.jsxs(x,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(x,{sx:{width:"100%",mr:1},children:e.jsx(eo,{color:"primary",variant:"determinate",value:l==null?void 0:l.progress})}),e.jsx(x,{sx:{maxWidth:"100%"},children:e.jsxs(g,{variant:"body2",color:"text.secondary",children:[l==null?void 0:l.progress,"%"]})})]})]}),M&&e.jsx(x,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(_,{color:"error",variant:"contained",size:"small",onClick:X,children:n("storage.spaces.disconnected.reconnectNow")})}),e.jsx(Se,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:o,onDelete:r,onConnect:X,enableSwitchToSpace:(l==null?void 0:l.completed)||ge.isEmpty(l==null?void 0:l.message)})]})]}),e.jsx(pe,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:st,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:c},"get-endpoint"),e.jsx(x,{className:`selected-container ${o?"selected":""}`,children:e.jsx(bt,{className:"selected-icon"})})]})}Ae.propTypes={spaceGateway:h.shape({did:h.string.isRequired,name:h.string.isRequired,url:h.string.isRequired,endpoint:h.string.isRequired,protected:h.bool,loading:h.bool}).isRequired,connected:h.bool.isRequired,progress:h.any.isRequired,onDelete:h.func,onBackupNow:h.func};Ae.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const mo=Qe(x)`
|
|
55
|
-
.selected-container {
|
|
56
|
-
position: absolute;
|
|
57
|
-
right: 0px;
|
|
58
|
-
bottom: 0px;
|
|
59
|
-
display: flex;
|
|
60
|
-
-webkit-box-pack: end;
|
|
61
|
-
justify-content: flex-end;
|
|
62
|
-
align-items: flex-end;
|
|
63
|
-
width: 32px;
|
|
64
|
-
height: 32px;
|
|
65
|
-
border-radius: 0px 0px 8px;
|
|
66
|
-
color: rgb(255, 255, 255);
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
transition: all 0.4s ease 0s;
|
|
69
|
-
|
|
70
|
-
&::after {
|
|
71
|
-
position: absolute;
|
|
72
|
-
z-index: 0;
|
|
73
|
-
left: 60px;
|
|
74
|
-
top: 60px;
|
|
75
|
-
display: block;
|
|
76
|
-
width: 0px;
|
|
77
|
-
height: 0px;
|
|
78
|
-
border-width: 16px;
|
|
79
|
-
border-style: solid;
|
|
80
|
-
border-color: transparent #1dc1c7 #1dc1c7 transparent;
|
|
81
|
-
transition: all 0.1s ease 0s;
|
|
82
|
-
content: '';
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.selected-icon {
|
|
86
|
-
visibility: hidden;
|
|
87
|
-
width: 60%;
|
|
88
|
-
height: 60%;
|
|
89
|
-
position: relative;
|
|
90
|
-
z-index: 2;
|
|
91
|
-
margin: 0px 1px 1px 0px;
|
|
92
|
-
font-size: 16px;
|
|
93
|
-
transition: all 0.2s ease 0s;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.selected-container.selected {
|
|
98
|
-
&::after {
|
|
99
|
-
left: 0px;
|
|
100
|
-
top: 0px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.selected-icon {
|
|
104
|
-
visibility: visible;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
`;var Ie={},uo=te;Object.defineProperty(Ie,"__esModule",{value:!0});var tt=Ie.default=void 0,fo=uo(re()),ho=e;tt=Ie.default=(0,fo.default)((0,ho.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline");function ot({...t}){const{t:o,locale:r}=z(),{spaceGateways:s,backups:a}=J(),u=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:n=>{var v;const{targetUrl:c,targetName:f,status:m,createdAt:d}=a[n],y=m===F.BACKUPS.STATUS.PROGRESS&&Z().diff(d,"hours")>=F.BACKUPS.TIMEOUT_HOURS,C=m===F.BACKUPS.STATUS.SUCCEEDED&&!y,i=f||((v=s.find(b=>c==null?void 0:c.includes($(b==null?void 0:b.endpoint))))==null?void 0:v.name)||"Unknown DID Space";return C?e.jsx(Ve,{fontSize:"16px",href:c,target:"_blank",children:i}):e.jsx(g,{variant:"body1",fontSize:"16px",children:i})}}},{label:o("common.strategy"),name:"strategy",options:{customBodyRender:n=>{const c=o(n===0?"common.auto":"common.manual");return e.jsx(ce,{children:c})}}},{label:o("common.startTime"),name:"createdAt",options:{customBodyRender:n=>Z(n).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.endTime"),name:"updatedAt",options:{customBodyRender:n=>ge.isEmpty(n)?"":Z(n).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.status"),name:"status",options:{customBodyRenderLite:n=>{const{status:c,message:f,createdAt:m}=(a==null?void 0:a[n])??{},d=c===F.BACKUPS.STATUS.PROGRESS&&Z().diff(m,"hours")>=F.BACKUPS.TIMEOUT_HOURS,y=d&&o("common.timeoutError"),C=c===F.BACKUPS.STATUS.PROGRESS&&!d,i=c===F.BACKUPS.STATUS.SUCCEEDED&&!d;return C?e.jsxs(g,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(oe,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):i?e.jsx(ce,{type:"success",children:o("common.succeeded")}):e.jsxs(x,{display:"inline-flex",alignItems:"center",children:[e.jsx(ce,{type:"error",children:o("common.failed")})," ",e.jsx(Ft,{style:{display:"flex",alignItems:"center",flexShrink:0},title:f||y,children:e.jsx(Qt,{children:e.jsx(tt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(x,{...t,children:a!=null&&a.length?e.jsx(Mt,{title:e.jsx(g,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")}),data:a,columns:u,emptyNode:o("storage.spaces.record.emptyData",r),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(x,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(g,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")})}),e.jsx(x,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:o("storage.spaces.record.emptyData")})]})})}ot.propTypes={};function rt({...t}){const{t:o}=z(),{autoBackup:r,updateAutoBackup:s}=J(),a=async()=>{try{const u=!r.enabled;await s({enabled:u}),B.success(o(u?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(u){B.error(u.message)}};return e.jsx(Ke,{checked:!!(r!=null&&r.enabled),onChange:a,name:"enableWelcomePage",labelProps:{label:e.jsx(g,{marginRight:"8px",children:e.jsx("span",{children:o("storage.spaces.autoBackup.title")})})},style:{...t.style}})}rt.propTypes={};function xo(){const{t}=z(),{blocklet:o}=ee(),{api:r}=xe(),{spaceGateways:s,spaceGatewaysLoading:a,deleteSpaceGateway:u,spaceGatewayIsSelected:n}=J(),c=a&&!(s!=null&&s.length),f=async d=>{await u(d),B.success(t("storage.spaces.gateway.delete.succeeded",{name:`(${d.name})`}))},m=async()=>{await r.backupBlocklet({input:{appDid:o.appDid,to:"spaces"}})};return e.jsxs(x,{display:"flex",flexDirection:"column",children:[e.jsxs(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[e.jsx(g,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(rt,{style:{marginRight:"32px"}}),e.jsx(se,{})]}),e.jsx(x,{children:c?e.jsx(x,{display:"flex",justifyContent:"center",children:e.jsx(oe,{})}):s.map(d=>e.jsx(Ae,{style:{marginTop:"12px"},spaceGateway:d,connected:n(d),onDelete:f,onBackupNow:m},d.endpoint))}),e.jsx(ot,{sx:{marginTop:"24px"}}),e.jsx(g,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ne,{blocklet:o})]})}function go(){const{backupEndpoint:t}=J();return t?e.jsx(xo,{}):e.jsx(qe,{})}go.propTypes={};export{go as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var Be=Object.defineProperty;var ze=(t,e,n)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var tt=(t,e,n)=>(ze(t,typeof e!="symbol"?e+"":e,n),n);import{g as Pt,a as Tt,Q as lt,cH as ae,cM as He,_ as P,d as M,r as I,U as Lt,f as st,cN as B,aG as le,W as ue,j as h,h as z,i as jt,ch as Ve,cO as zt,P as d,$ as De,t as Ge,bu as Ue,bv as Ht,ct as Qe,co as We,cP as Ze,br as Je,Z as k,cQ as Ye,Y as Xe,cR as Ke,R as tn,cS as en,a6 as nn,cT as on,bK as de,l as fe,aD as sn,a5 as rn,a7 as cn}from"./index-n4Z0RpuU.js";import{D as an}from"./index-VgsACbEm.js";import{L as ln}from"./selector-P6GyReBJ.js";function un(t){return Tt("MuiListItem",t)}const dn=Pt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),F=dn;function fn(t){return Tt("MuiListItemButton",t)}const pn=Pt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),q=pn,hn=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],gn=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters]},mn=t=>{const{alignItems:e,classes:n,dense:s,disabled:o,disableGutters:r,divider:i,selected:a}=t,l=jt({root:["root",s&&"dense",!r&&"gutters",i&&"divider",o&&"disabled",e==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},fn,n);return P({},n,l)},bn=lt(ae,{shouldForwardProp:t=>He(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:gn})(({theme:t,ownerState:e})=>P({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${q.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:M(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${q.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:M(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${q.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:M(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:M(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${q.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${q.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.alignItems==="flex-start"&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),yn=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:f,selected:p=!1,className:m}=s,b=st(s,hn),x=I.useContext(B),w=I.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=I.useRef(null);le(()=>{r&&T.current&&T.current.focus()},[r]);const v=P({},s,{alignItems:o,dense:w.dense,disableGutters:l,divider:u,selected:p}),y=mn(v),R=ue(T,n);return h.jsx(B.Provider,{value:w,children:h.jsx(bn,P({ref:R,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:z(y.focusVisible,f),ownerState:v,className:z(y.root,m)},b,{classes:y,children:a}))})}),xn=yn;function vn(t){return Tt("MuiListItemSecondaryAction",t)}Pt("MuiListItemSecondaryAction",["root","disableGutters"]);const In=["className"],wn=t=>{const{disableGutters:e,classes:n}=t;return jt({root:["root",e&&"disableGutters"]},vn,n)},Cn=lt("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})(({ownerState:t})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),pe=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=s,r=st(s,In),i=I.useContext(B),a=P({},s,{disableGutters:i.disableGutters}),c=wn(a);return h.jsx(Cn,P({className:z(c.root,o),ownerState:a,ref:n},r))});pe.muiName="ListItemSecondaryAction";const Sn=pe,An=["className"],Pn=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Tn=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]},Ln=t=>{const{alignItems:e,button:n,classes:s,dense:o,disabled:r,disableGutters:i,disablePadding:a,divider:c,hasSecondaryAction:l,selected:u}=t;return jt({root:["root",o&&"dense",!i&&"gutters",!a&&"padding",c&&"divider",r&&"disabled",n&&"button",e==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",u&&"selected"],container:["container"]},un,s)},jn=lt("div",{name:"MuiListItem",slot:"Root",overridesResolver:Tn})(({theme:t,ownerState:e})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&P({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{[`& > .${q.root}`]:{paddingRight:48}},{[`&.${F.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${F.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:M(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${F.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:M(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${F.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.alignItems==="flex-start"&&{alignItems:"flex-start"},e.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${F.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:M(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:M(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),kn=lt("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Rn=I.forwardRef(function(e,n){const s=Lt({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:r=!1,button:i=!1,children:a,className:c,component:l,components:u={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:b=!1,disabled:x=!1,disableGutters:w=!1,disablePadding:T=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:R,selected:C=!1,slotProps:g={},slots:S={}}=s,L=st(s.ContainerProps,An),A=st(s,Pn),j=I.useContext(B),ft=I.useMemo(()=>({dense:b||j.dense||!1,alignItems:o,disableGutters:w}),[o,j.dense,b,w]),pt=I.useRef(null);le(()=>{r&&pt.current&&pt.current.focus()},[r]);const E=I.Children.toArray(a),Ft=E.length&&Ve(E[E.length-1],["ListItemSecondaryAction"]),X=P({},s,{alignItems:o,autoFocus:r,button:i,dense:ft.dense,disabled:x,disableGutters:w,disablePadding:T,divider:v,hasSecondaryAction:Ft,selected:C}),qt=Ln(X),Bt=ue(pt,n),K=S.root||u.Root||jn,H=g.root||f.root||{},N=P({className:z(qt.root,H.className,c),disabled:x},A);let _=l||"li";return i&&(N.component=l||"div",N.focusVisibleClassName=z(F.focusVisible,y),_=ae),Ft?(_=!N.component&&!l?"div":_,p==="li"&&(_==="li"?_="div":N.component==="li"&&(N.component="div")),h.jsx(B.Provider,{value:ft,children:h.jsxs(kn,P({as:p,className:z(qt.container,m),ref:Bt,ownerState:X},L,{children:[h.jsx(K,P({},H,!zt(K)&&{as:_,ownerState:P({},X,H.ownerState)},N,{children:E})),E.pop()]}))})):h.jsx(B.Provider,{value:ft,children:h.jsxs(K,P({},H,{as:_,ref:Bt},!zt(K)&&{ownerState:P({},X,H.ownerState)},N,{children:[E,R&&h.jsx(Sn,{children:R})]}))})}),Mn=Rn;/**
|
|
2
|
-
* (c) Iconify
|
|
3
|
-
*
|
|
4
|
-
* For the full copyright and license information, please view the license.txt
|
|
5
|
-
* files at https://github.com/iconify/iconify
|
|
6
|
-
*
|
|
7
|
-
* Licensed under MIT.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
* @version 1.0.8
|
|
11
|
-
*/const he=Object.freeze({left:0,top:0,width:16,height:16}),rt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Z=Object.freeze({...he,...rt}),yt=Object.freeze({...Z,body:"",hidden:!1}),On=Object.freeze({width:null,height:null}),ge=Object.freeze({...On,...rt});function Nn(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:s(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(t.slice(0,t.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return e}const _n=/[\s,]+/;function $n(t,e){e.split(_n).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const me={...ge,preserveAspectRatio:""};function Vt(t){const e={...me},n=(s,o)=>t.getAttribute(s)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=Nn(n("rotate","")),$n(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function En(t,e){for(const n in me)if(t[n]!==e[n])return!0;return!1}const D=/^[a-z0-9]+(-[a-z0-9]+)*$/,J=(t,e,n,s="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:s,prefix:c,name:a};return e&&!nt(l)?null:l}const r=o[0],i=r.split("-");if(i.length>1){const a={provider:s,prefix:i.shift(),name:i.join("-")};return e&&!nt(a)?null:a}if(n&&s===""){const a={provider:s,prefix:"",name:r};return e&&!nt(a,n)?null:a}return null},nt=(t,e)=>t?!!((t.provider===""||t.provider.match(D))&&(e&&t.prefix===""||t.prefix.match(D))&&t.name.match(D)):!1;function Fn(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function Dt(t,e){const n=Fn(t,e);for(const s in yt)s in rt?s in t&&!(s in n)&&(n[s]=rt[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function qn(t,e){const n=t.icons,s=t.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=s[i]&&s[i].parent,c=a&&r(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Bn(t,e,n){const s=t.icons,o=t.aliases||Object.create(null);let r={};function i(a){r=Dt(s[a]||o[a],r)}return i(e),n.forEach(i),Dt(t,r)}function be(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const s=qn(t);for(const o in s){const r=s[o];r&&(e(o,Bn(t,o,r)),n.push(o))}return n}const zn={provider:"",aliases:{},not_found:{},...he};function ht(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function ye(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ht(t,zn))return null;const n=e.icons;for(const o in n){const r=n[o];if(!o.match(D)||typeof r.body!="string"||!ht(r,yt))return null}const s=e.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o.match(D)||typeof i!="string"||!n[i]&&!s[i]||!ht(r,yt))return null}return e}const it=Object.create(null);function Hn(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function O(t,e){const n=it[t]||(it[t]=Object.create(null));return n[e]||(n[e]=Hn(t,e))}function kt(t,e){return ye(e)?be(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function Vn(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function Dn(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys(it)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(it[o]||{})).forEach(i=>{const a=O(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let U=!1;function xe(t){return typeof t=="boolean"&&(U=t),U}function Q(t){const e=typeof t=="string"?J(t,!0,U):t;if(e){const n=O(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function ve(t,e){const n=J(t,!0,U);if(!n)return!1;const s=O(n.provider,n.prefix);return Vn(s,n.name,e)}function Gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),U&&!e&&!t.prefix){let o=!1;return ye(t)&&(t.prefix="",be(t,(r,i)=>{i&&ve(r,i)&&(o=!0)})),o}const n=t.prefix;if(!nt({provider:e,prefix:n,name:"a"}))return!1;const s=O(e,n);return!!kt(s,t)}function Gn(t){return!!Q(t)}function Un(t){const e=Q(t);return e?{...Z,...e}:null}function Qn(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return t.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,a=o.name,c=n[r]||(n[r]=Object.create(null)),l=c[i]||(c[i]=O(r,i));let u;a in l.icons?u=e.loaded:i===""||l.missing.has(a)?u=e.missing:u=e.pending;const f={provider:r,prefix:i,name:a};u.push(f)}),e}function Ie(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==e))})}function Wn(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,o=t.prefix;e.forEach(r=>{const i=r.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(t.icons[l])i.loaded.push({provider:s,prefix:o,name:l});else if(t.missing.has(l))i.missing.push({provider:s,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ie([t],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let Zn=0;function Jn(t,e,n){const s=Zn++,o=Ie.bind(null,n,s);if(!e.pending.length)return o;const r={id:s,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}const xt=Object.create(null);function Ut(t,e){xt[t]=e}function vt(t){return xt[t]||xt[""]}function Yn(t,e=!0,n=!1){const s=[];return t.forEach(o=>{const r=typeof o=="string"?J(o,e,n):o;r&&s.push(r)}),s}var Xn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Kn(t,e,n,s){const o=t.resources.length,r=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let g=t.resources.slice(0);for(i=[];g.length>1;){const S=Math.floor(Math.random()*g.length);i.push(g[S]),g=g.slice(0,S).concat(g.slice(S+1))}i=i.concat(g)}else i=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let c="pending",l=0,u,f=null,p=[],m=[];typeof s=="function"&&m.push(s);function b(){f&&(clearTimeout(f),f=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function w(g,S){S&&(m=[]),typeof g=="function"&&m.push(g)}function T(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:p.length,subscribe:w,abort:x}}function v(){c="failed",m.forEach(g=>{g(void 0,u)})}function y(){p.forEach(g=>{g.status==="pending"&&(g.status="aborted")}),p=[]}function R(g,S,L){const A=S!=="success";switch(p=p.filter(j=>j!==g),c){case"pending":break;case"failed":if(A||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=L,v();return}if(A){u=L,p.length||(i.length?C():v());return}if(b(),y(),!t.random){const j=t.resources.indexOf(g.resource);j!==-1&&j!==t.index&&(t.index=j)}c="completed",m.forEach(j=>{j(L)})}function C(){if(c!=="pending")return;b();const g=i.shift();if(g===void 0){if(p.length){f=setTimeout(()=>{b(),c==="pending"&&(y(),v())},t.timeout);return}v();return}const S={status:"pending",resource:g,callback:(L,A)=>{R(S,L,A)}};p.push(S),l++,f=setTimeout(C,t.rotate),n(g,e,S.callback)}return setTimeout(C),T}function we(t){const e={...Xn,...t};let n=[];function s(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=Kn(e,a,c,(f,p)=>{s(),l&&l(f,p)});return n.push(u),u}function r(a){return n.find(c=>a(c))||null}return{query:o,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function Rt(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const ut=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],ot=[];for(;V.length>0;)V.length===1||Math.random()>.5?ot.push(V.shift()):ot.push(V.pop());ut[""]=Rt({resources:["https://api.iconify.design"].concat(ot)});function Qt(t,e){const n=Rt(e);return n===null?!1:(ut[t]=n,!0)}function dt(t){return ut[t]}function to(){return Object.keys(ut)}function Wt(){}const gt=Object.create(null);function eo(t){if(!gt[t]){const e=dt(t);if(!e)return;const n=we(e),s={config:e,redundancy:n};gt[t]=s}return gt[t]}function Ce(t,e,n){let s,o;if(typeof t=="string"){const r=vt(t);if(!r)return n(void 0,424),Wt;o=r.send;const i=eo(t);i&&(s=i.redundancy)}else{const r=Rt(t);if(r){s=we(r);const i=t.resources?t.resources[0]:"",a=vt(i);a&&(o=a.send)}}return!s||!o?(n(void 0,424),Wt):s.query(e,o,n)().abort}const Zt="iconify2",W="iconify",Se=W+"-count",Jt=W+"-version",Ae=36e5,no=168;function It(t,e){try{return t.getItem(e)}catch{}}function Mt(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Yt(t,e){try{t.removeItem(e)}catch{}}function wt(t,e){return Mt(t,Se,e.toString())}function Ct(t){return parseInt(It(t,Se))||0}const $={local:!0,session:!0},Pe={local:new Set,session:new Set};let Ot=!1;function oo(t){Ot=t}let et=typeof window>"u"?{}:window;function Te(t){const e=t+"Storage";try{if(et&&et[e]&&typeof et[e].length=="number")return et[e]}catch{}$[t]=!1}function Le(t,e){const n=Te(t);if(!n)return;const s=It(n,Jt);if(s!==Zt){if(s){const a=Ct(n);for(let c=0;c<a;c++)Yt(n,W+c.toString())}Mt(n,Jt,Zt),wt(n,0);return}const o=Math.floor(Date.now()/Ae)-no,r=a=>{const c=W+a.toString(),l=It(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Yt(n,c)}};let i=Ct(n);for(let a=i-1;a>=0;a--)r(a)||(a===i-1?(i--,wt(n,i)):Pe[t].add(a))}function je(){if(!Ot){oo(!0);for(const t in $)Le(t,e=>{const n=e.data,s=e.provider,o=n.prefix,r=O(s,o);if(!kt(r,n).length)return!1;const i=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,i):i,!0})}}function so(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in $)Le(s,o=>{const r=o.data;return o.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===e});return!0}function ro(t,e){Ot||je();function n(s){let o;if(!$[s]||!(o=Te(s)))return;const r=Pe[s];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Ct(o),!wt(o,i+1))return;const a={cached:Math.floor(Date.now()/Ae),provider:t.provider,data:e};return Mt(o,W+i.toString(),JSON.stringify(a))}e.lastModified&&!so(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Xt(){}function io(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Wn(t)}))}function co(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,o=t.iconsToLoad;delete t.iconsToLoad;let r;if(!o||!(r=vt(n)))return;r.prepare(n,s,o).forEach(a=>{Ce(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=kt(t,c);if(!l.length)return;const u=t.pendingIcons;u&&l.forEach(f=>{u.delete(f)}),ro(t,c)}catch(l){console.error(l)}io(t)})})}))}const Nt=(t,e)=>{const n=Yn(t,!0,xe()),s=Qn(n);if(!s.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(s.loaded,s.missing,s.pending,Xt)}),()=>{c=!1}}const o=Object.create(null),r=[];let i,a;return s.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,r.push(O(l,u));const f=o[l]||(o[l]=Object.create(null));f[u]||(f[u]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:u,name:f}=c,p=O(l,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(f)||(m.add(f),o[l][u].push(f))}),r.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&co(c,o[l][u])}),e?Jn(e,s,r):Xt},ao=t=>new Promise((e,n)=>{const s=typeof t=="string"?J(t,!0):t;if(!s){n(t);return}Nt([s||t],o=>{if(o.length&&s){const r=Q(s);if(r){e({...Z,...r});return}}n(t)})});function lo(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function uo(t,e){const n=typeof t=="string"?J(t,!0,!0):null;if(!n){const r=lo(t);return{value:t,data:r}}const s=Q(n);if(s!==void 0||!n.prefix)return{value:t,name:n,data:s};const o=Nt([n],()=>e(t,n,Q(n)));return{value:t,name:n,loading:o}}function mt(t){return t.hasAttribute("inline")}let ke=!1;try{ke=navigator.vendor.indexOf("Apple")===0}catch{}function fo(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(ke||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const po=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ho=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function St(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(po);if(s===null||!s.length)return t;const o=[];let r=s.shift(),i=ho.test(r);for(;;){if(i){const a=parseFloat(r);isNaN(a)?o.push(r):o.push(Math.ceil(a*e*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}const go=t=>t==="unset"||t==="undefined"||t==="none";function Re(t,e){const n={...Z,...t},s={...ge,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(b=>{const x=[],w=b.hFlip,T=b.vFlip;let v=b.rotate;w?T?v+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}v%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(r='<g transform="'+x.join(" ")+'">'+r+"</g>")});const i=s.width,a=s.height,c=o.width,l=o.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?l:a,u=St(f,c/l)):(u=i==="auto"?c:i,f=a===null?St(u,l/c):a==="auto"?l:a);const p={},m=(b,x)=>{go(x)||(p[b]=x.toString())};return m("width",u),m("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:r}}const mo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let ct=mo();function bo(t){ct=t}function yo(){return ct}function xo(t,e){const n=dt(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=e+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function vo(t){return t===404}const Io=(t,e,n)=>{const s=[],o=xo(t,e),r="icons";let i={type:r,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(s.push(i),i={type:r,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),s.push(i),s};function wo(t){if(typeof t=="string"){const e=dt(t);if(e)return e.path}return"/"}const Co=(t,e,n)=>{if(!ct){n("abort",424);return}let s=wo(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=e.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;ct(t+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(vo(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},So={prepare:Io,send:Co};function Kt(t,e){switch(t){case"local":case"session":$[t]=e;break;case"all":for(const n in $)$[n]=e;break}}const bt="data-style";let Me="";function Ao(t){Me=t}function te(t,e){let n=Array.from(t.childNodes).find(s=>s.hasAttribute&&s.hasAttribute(bt));n||(n=document.createElement("style"),n.setAttribute(bt,bt),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Me}function Oe(){Ut("",So),xe(!0);let t;try{t=window}catch{}if(t){if(je(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Gt(o))&&console.error(s)}catch{console.error(s)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const s in n){const o="IconifyProviders["+s+"] is invalid.";try{const r=n[s];if(typeof r!="object"||!r||r.resources===void 0)continue;Qt(s,r)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Kt(n,!0),disableCache:n=>Kt(n,!1),iconExists:Gn,getIcon:Un,listIcons:Dn,addIcon:ve,addCollection:Gt,calculateSize:St,buildIcon:Re,loadIcons:Nt,loadIcon:ao,addAPIProvider:Qt,appendCustomStyle:Ao,_api:{getAPIConfig:dt,setAPIModule:Ut,sendAPIQuery:Ce,setFetch:bo,getFetch:yo,listAPIProviders:to}}}function Ne(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function Po(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function To(t){return"data:image/svg+xml,"+Po(t)}function Lo(t){return'url("'+To(t)+'")'}const At={"background-color":"currentColor"},_e={"background-color":"transparent"},ee={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ne={"-webkit-mask":At,mask:At,background:_e};for(const t in ne){const e=ne[t];for(const n in ee)e[t+"-"+n]=ee[n]}function oe(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function jo(t,e,n){const s=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const r=t.attributes,i=Ne(o,{...r,width:e.width+"",height:e.height+""}),a=Lo(i),c=s.style,l={"--svg":a,width:oe(r.width),height:oe(r.height),...n?At:_e};for(const u in l)c.setProperty(u,l[u]);return s}let G;function ko(){try{G=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{G=null}}function Ro(t){return G===void 0&&ko(),G?G.createHTML(t):t}function Mo(t){const e=document.createElement("span"),n=t.attributes;let s="";n.width||(s="width: inherit;"),n.height||(s+="height: inherit;"),s&&(n.style=s);const o=Ne(t.body,n);return e.innerHTML=Ro(o),e.firstChild}function se(t,e){const n=e.icon.data,s=e.customisations,o=Re(n,s);s.preserveAspectRatio&&(o.attributes.preserveAspectRatio=s.preserveAspectRatio);const r=e.renderedMode;let i;switch(r){case"svg":i=Mo(o);break;default:i=jo(o,{...Z,...n},r==="mask")}const a=Array.from(t.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function re(t,e,n){const s=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:s}}function Oo(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const s=e.get(t);if(s)return s;const o=["icon","mode","inline","width","height","rotate","flip"],r=class extends n{constructor(){super();tt(this,"_shadowRoot");tt(this,"_state");tt(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=mt(this);te(c,l),this._state=re({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=mt(this),u=this._state;l!==u.inline&&(u.inline=l,te(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return mt(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}se(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),f=Vt(this);(c.attrMode!==u||En(c.customisations,f))&&this._renderIcon(c.icon,f,u)}_iconChanged(c){const l=uo(c,(u,f,p)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:f,data:p};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=re(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Vt(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const f=fo(c.data.body,u),p=this._state.inline;se(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:f})}};o.forEach(a=>{a in r.prototype||Object.defineProperty(r.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Oe();for(const a in i)r[a]=r.prototype[a]=i[a];return e.define(t,r),r}Oo()||Oe();const No=d.shape({appLogo:d.node,appName:d.string,theme:d.shape({background:d.string}),enableConnect:d.bool,enableLocale:d.bool,navigation:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object]),icon:d.string,items:d.arrayOf(d.shape({title:d.oneOfType([d.string,d.object]),link:d.oneOfType([d.string,d.object])}))}))}),$e=d.shape({showText:d.bool,showRole:d.bool,switchDid:d.bool,switchProfile:d.bool,switchPassport:d.bool,disableLogout:d.bool,onLogin:d.func,onLogout:d.func,onSwitchDid:d.func,onSwitchProfile:d.func,onSwitchPassport:d.func,menu:d.array,menuRender:d.func,dark:d.bool,size:d.number}),Y=(t,e,n="children")=>t.map(s=>Array.isArray(s[n])?e({...s,[n]:Y(s[n],e,n)}):e(s)),_o=(t,e="children")=>{const n=[];return Y(t,s=>n.push(s),e),n},_t=(t,e,n="children")=>t.map(s=>({...s})).filter(s=>{const o=s[n];if(Array.isArray(o)){const i=_t(o,e,n);s[n]=i!=null&&i.length?i:void 0}const r={filteredChildren:s[n],isLeaf:!(o!=null&&o.length)};return e(s,r)}),$o=t=>/^https?:\/\//.test(t),Yo=t=>/^[\w-]+:[\w-]+$/.test(t),Eo=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),s=e(new URL(t,window.location.origin).pathname);return n.startsWith(s)},Fo=(t=[])=>{const e=t.map((s,o)=>({path:s,index:o})).filter(s=>Eo(s.path));return e!=null&&e.length?e.slice(1).reduce((s,o)=>s.path.length>=o.path.length?s:o,e[0]).index:-1};var ie,ce;const at=((ie=window==null?void 0:window.blocklet)==null?void 0:ie.groupPrefix)||((ce=window==null?void 0:window.blocklet)==null?void 0:ce.prefix)||"/",qo=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},Ee=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,r)=>typeof o=="string"?o:typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,s=(o,r)=>{if(typeof o=="string"){if($o(o)){const a=new URL(o);return a.searchParams.set("locale",r),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",r),i.pathname+i.search}return typeof o=="object"?o[r]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return Y(t,o=>{var r;return{...o,title:n(o.title,e),link:(r=o.items)!=null&&r.length?o.link:s(o.link,e),_rawLink:o.link}},"items")},Bo=t=>Y(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),zo=t=>{if(!(t!=null&&t.length))return null;const e=Bo(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return e.forEach(s=>{var o;s.section?Array.isArray(s.section)?s.section.forEach(r=>{var i;(i=n[r])==null||i.push(s)}):typeof s.section=="string"&&((o=n[s.section])==null||o.push(s)):n.header.push(s)}),n},Ho=t=>{if(!t)return null;const e={...t};return e.theme=qo(e.theme),e.navigation=zo(Vo(e.navigation)),e},Vo=(t=[])=>_t(t,(e,n)=>{var s;return!!e.link||((s=n.filteredChildren)==null?void 0:s.length)},"items"),Fe=(t,e)=>_t(t,(n,s)=>{var r;const o=!n.role||e&&n.role.includes(e);return s.isLeaf?o:o&&((r=s.filteredChildren)==null?void 0:r.length)},"items"),Do={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Go={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function $t({session:t,locale:e,size:n}){const s=(window==null?void 0:window.blocklet)||{},o=(s.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=t==null?void 0:t.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((s==null?void 0:s.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),r=I.useRef(null),i=De({open:!1}),a=Ge((c=!i.open)=>{i.open=c});return o.length===0||!(t!=null&&t.user)?null:h.jsxs(h.Fragment,{children:[h.jsx(Ue,{size:"medium",ref:r,onClick:()=>a(),children:h.jsx(Ht,{icon:Do,fontSize:n,style:{transform:"scale(1.08)"}})}),h.jsx(Qe,{open:i.open,onClose:()=>a(!1),anchorEl:r.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>h.jsx(We,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:h.jsx(Ze,{...c,timeout:350,children:h.jsxs(Je,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:k.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${k.gray6}, 0px 0px 0px 1px ${k.gray6}`},children:[h.jsx(Ye,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u,f;return h.jsx(Mn,{disablePadding:!0,children:h.jsxs(xn,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:k.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?h.jsx(Xe,{component:"img",src:`${Ke}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):h.jsx(Ht,{fontSize:50,icon:l.icon||Go,color:k.textSubtitle}),h.jsx(tn,{sx:{fontSize:"12px",color:k.textBase,textAlign:"center",lineHeight:"normal"},children:((f=l.title)==null?void 0:f.zh)||l.title})]})},l.id)})}),h.jsx(en,{session:t,children:h.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:k.textBase,borderColor:k.lineBorderStrong,"&:hover":{color:k.primaryBase,borderColor:k.primaryBase}},children:e==="zh"?"管理":"Manage"})})]})})})})]})}$t.propTypes={session:d.object.isRequired,locale:d.string,size:d.number};$t.defaultProps={locale:"en",size:24};function Et({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var p,m,b,x;const s=I.useContext(de),{locale:o}=fe()||{},{enableConnect:r=!0,enableLocale:i=!0}=t,a=!!((p=s==null?void 0:s.session)!=null&&p.user);let c=Ee((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=Fe(c,(x=(b=s==null?void 0:s.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let w=[];if(i&&o&&w.push(h.jsx(ln,{showText:!1},"locale-selector")),r&&s){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?h.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),w.push(h.jsx($t,{session:s.session,locale:o},"session-blocklet")),w.push(h.jsx(sn,{session:s.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof e=="function"&&(w=e(w)||[]),w})();return I.createElement(h.Fragment,null,...Array.isArray(u)?u:[u])}Et.propTypes={formattedBlocklet:d.object.isRequired,addons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e};Et.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Uo=()=>{const t=rn();I.useEffect(()=>{t.wallet&&cn(()=>import("./index-ttqAvE9e.js").then(e=>e.i),__vite__mapDeps([0,1,2])).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};function qe({meta:t,fallbackUrl:e,invalidPathFallback:n,headerAddons:s,sessionManagerProps:o,links:r,...i}){var R;Uo();const a=I.useContext(de),c=(R=a==null?void 0:a.session)==null?void 0:R.user,l=c==null?void 0:c.role,{locale:u}=fe()||{},f=I.useMemo(()=>{const C=Object.assign({},window.blocklet,t);try{return Ho(C)}catch(g){return console.error("Failed to format blocklet info",g,C),C}},[t]),{localizedNav:p,flattened:m,matchedIndex:b}=I.useMemo(()=>{var L;let C=Ee((L=f==null?void 0:f.navigation)==null?void 0:L.dashboard,u)||[];C=Fe(C,l),C=Y(C,A=>({title:A.title,url:A.link,icon:A.icon?h.jsx("iconify-icon",{height:"100%",width:"100%",icon:A.icon}):null,external:!0,children:A.items}),"items");const g=_o(C).filter(A=>!!A.url),S=Fo(g.map(A=>A.url));return S!==-1&&(g[S].active=!0),{localizedNav:C,flattened:g,matchedIndex:S}},[f,u,l]),x=typeof r=="function"?r(p):[...p,...r];if(I.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&e&&(window.location.href=e)},[e]),I.useLayoutEffect(()=>{var C;c&&(m!=null&&m.length)&&b===-1&&(n?n():window.location.href=((C=m[0])==null?void 0:C.url)||at)},[n,m,b]),!f.appName)return null;const{appLogo:w,appLogoRect:T,appName:v}=f,y=h.jsx(Et,{formattedBlocklet:f,addons:s,sessionManagerProps:o});return h.jsx(an,{title:v,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:at,logo:h.jsx("img",{src:T||w,alt:"logo"}),addons:y,...i.headerProps}})}qe.propTypes={meta:No,fallbackUrl:d.string,invalidPathFallback:d.func,headerAddons:d.oneOfType([d.func,d.node]),sessionManagerProps:$e,links:d.oneOfType([d.array,d.func])};qe.defaultProps={meta:{},fallbackUrl:at,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=at}},links:[]};export{qe as D,Et as H,Yo as a,No as b,_o as c,Fo as d,Ho as f,Ee as g,$o as i,Y as m,at as p,$e as s,Uo as u};
|
|
12
|
-
function __vite__mapDeps(indexes) {
|
|
13
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
14
|
-
__vite__mapDeps.viteFileDeps = ["assets/index-ttqAvE9e.js","assets/index-n4Z0RpuU.js","assets/index-TCTrVMXW.css"]
|
|
15
|
-
}
|
|
16
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
17
|
-
}
|