@abtnode/blocklet-services 1.16.29-beta-2eaf40bc → 1.16.29-beta-112566d5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/util/index.js +7 -0
- package/dist/assets/{Add-C5zWPWbi.js → Add-CY4Vajpf.js} +1 -1
- package/dist/assets/{AddBox-C4A7DDm4.js → AddBox-DeNDC_On.js} +1 -1
- package/dist/assets/{Alert-D91U5h--.js → Alert-X8Tf_Ya2.js} +1 -1
- package/dist/assets/{ArrowDropDown-Cq32DOpt.js → ArrowDropDown-B1ERiCZ6.js} +1 -1
- package/dist/assets/{Avatar-XXXVLUFk.js → Avatar-DzypDi2F.js} +1 -1
- package/dist/assets/{ButtonGroup-k3SZjeUa.js → ButtonGroup-Yl1SMoBq.js} +1 -1
- package/dist/assets/{CheckCircle-CbXxG2JL.js → CheckCircle-lTVG_pn6.js} +1 -1
- package/dist/assets/{ChevronRight-BKcNccG9.js → ChevronRight-yT0593W6.js} +1 -1
- package/dist/assets/{Close-CdBP5F4J.js → Close-DJPwlagN.js} +1 -1
- package/dist/assets/{CloseOutlined-Crg0BDr4.js → CloseOutlined-D1ZA66gd.js} +1 -1
- package/dist/assets/{Delete-DlfFien6.js → Delete-LnXfw8II.js} +1 -1
- package/dist/assets/{DeleteOutline-De4xAGvs.js → DeleteOutline-yfbdyPMw.js} +1 -1
- package/dist/assets/{Done-DO1tfb2_.js → Done-CegxfXGS.js} +1 -1
- package/dist/assets/{Download-CVseEK0o.js → Download-CbdL3-JP.js} +1 -1
- package/dist/assets/{Edit-DOJCHJ5p.js → Edit-mj0warXM.js} +1 -1
- package/dist/assets/{EditIcon-Bg4AkV00.js → EditIcon-BWMMTTyf.js} +1 -1
- package/dist/assets/{Error-CQmWghPs.js → Error-CnzO6x6f.js} +1 -1
- package/dist/assets/{ExpandMore-DD2GykPj.js → ExpandMore-BoZqCbU8.js} +1 -1
- package/dist/assets/{FilterList-QafrkXbd.js → FilterList-C75puMMo.js} +1 -1
- package/dist/assets/{FormControl-Kt4xANtI.js → FormControl-02YkGBiU.js} +1 -1
- package/dist/assets/{FormControlLabel-B6ISinfm.js → FormControlLabel-BZuIe-KU.js} +1 -1
- package/dist/assets/{FormGroup-BEMyIGSj.js → FormGroup-CUYWiNiM.js} +1 -1
- package/dist/assets/{Google-DGP2JaKw.js → Google-D6M8c4go.js} +1 -1
- package/dist/assets/{Hidden-kl5Tbw1B.js → Hidden-BtwYfeyy.js} +1 -1
- package/dist/assets/{InfoOutlined-BRuBRFbl.js → InfoOutlined-DzWheCe4.js} +1 -1
- package/dist/assets/{InputAdornment-C5IWgB4u.js → InputAdornment-B3Ml-Pew.js} +1 -1
- package/dist/assets/{InputLabel-DbdmcDbJ.js → InputLabel-D_H-0SoX.js} +1 -1
- package/dist/assets/{LastPage-DXISIPs8.js → LastPage-D-3vv4wE.js} +1 -1
- package/dist/assets/{Launch-CDcio2Tm.js → Launch-B0EjmiiU.js} +1 -1
- package/dist/assets/{LaunchOutlined-D8a8pCOt.js → LaunchOutlined-sgP85ul9.js} +1 -1
- package/dist/assets/{Link-DFzOJFD-.js → Link-1nuQkwqf.js} +1 -1
- package/dist/assets/{ListItemText-Bnnk7Gbj.js → ListItemText-Bn_r5n_z.js} +1 -1
- package/dist/assets/{LoadingButton-DGVicOWa.js → LoadingButton-D9fUIMmf.js} +1 -1
- package/dist/assets/{LockIcon-CTWJWfSc.js → LockIcon-CkuBg3Hn.js} +1 -1
- package/dist/assets/{Loop-CbV2fFUd.js → Loop-CIkJKfB9.js} +1 -1
- package/dist/assets/{MoreVert-er-bltGF.js → MoreVert-DhDSKiqk.js} +1 -1
- package/dist/assets/{OpenInNew-Bu6iI6eA.js → OpenInNew-DUIHrnXo.js} +1 -1
- package/dist/assets/{Pagination-Dz7kgZlB.js → Pagination-BlS75-dT.js} +1 -1
- package/dist/assets/{PlayArrow-2r36AAmk.js → PlayArrow-MoLzECrB.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-CoIXItlb.js → QuestionMarkCircle-D2W4KMR_.js} +1 -1
- package/dist/assets/{RadioGroup-C7j1KJ7y.js → RadioGroup-C3L5xJaa.js} +1 -1
- package/dist/assets/{Search-CMyGk9R2.js → Search-DTUqGlmf.js} +1 -1
- package/dist/assets/{Select-BeNQ99oP.js → Select-DCbRxmUU.js} +1 -1
- package/dist/assets/{ServerLogo-D12k9g2u.js → ServerLogo-BhzjzHzD.js} +1 -1
- package/dist/assets/{Skeleton-FXGSJdkA.js → Skeleton-5Ejh8uW9.js} +1 -1
- package/dist/assets/{Slider-GjDHfyBj.js → Slider-Cl86dPUi.js} +1 -1
- package/dist/assets/{Stepper-BF6lz4ut.js → Stepper-BFMAEaBf.js} +1 -1
- package/dist/assets/{TextField-D3XEyFR4.js → TextField-BHSEV3Ac.js} +1 -1
- package/dist/assets/{Toolbar-_9it32pJ.js → Toolbar-D3YIXjSy.js} +1 -1
- package/dist/assets/{ViewList-BhIE_M4V.js → ViewList-cURATctI.js} +1 -1
- package/dist/assets/{access-control-BWh_6uO-.js → access-control-D8X_8z7A.js} +1 -1
- package/dist/assets/{actions-DLO5dlyV.js → actions-CbsTrVFd.js} +1 -1
- package/dist/assets/{add-component-core-C3OBXrft.js → add-component-core-CATRvviC.js} +2 -4
- package/dist/assets/add-resource-B0nzFGxn.js +1 -0
- package/dist/assets/{addon-1j40gf6h.js → addon-D0jt9co0.js} +1 -1
- package/dist/assets/{analytics-DVd3xO2s.js → analytics-wO1onAqc.js} +3 -3
- package/dist/assets/api-BFSOae_v.js +1 -0
- package/dist/assets/audit-logs-DDUnfrlt.js +58 -0
- package/dist/assets/blocklet-storage-Bbhcz6In.js +1 -0
- package/dist/assets/{button-2f4tapJk.js → button-DTeWpy9g.js} +1 -1
- package/dist/assets/{click-to-copy-CNizZfqS.js → click-to-copy-CaJFO5Kq.js} +1 -1
- package/dist/assets/{complete-CTg4NtH_.js → complete-3uapgH3n.js} +1 -1
- package/dist/assets/{component-DyLPRRkR.js → component-BCvhjsjE.js} +6 -6
- package/dist/assets/{config-Cl9yfIWh.js → config-DJ2yOOMa.js} +1 -1
- package/dist/assets/{config-BBl1Og8k.js → config-DRVy3XZK.js} +2 -2
- package/dist/assets/{config-navigation-RZ9QpkFv.js → config-navigation-DRALpukx.js} +2 -2
- package/dist/assets/{confirm-CD6_CMUq.js → confirm-BzNK2mDA.js} +1 -1
- package/dist/assets/{connect-B-qpRVvn.js → connect-BSe0CQFh.js} +1 -1
- package/dist/assets/{connect-DDELE721.js → connect-BegmDQRh.js} +1 -1
- package/dist/assets/connect-to-CsUlyY6l.js +54 -0
- package/dist/assets/{content-layout-CK5XQfmW.js → content-layout-7iVGY_ud.js} +1 -1
- package/dist/assets/dashboard-Dy_5eyk1.js +165 -0
- package/dist/assets/{did-address-GzRMEyk7.js → did-address-01PnQBPQ.js} +1 -1
- package/dist/assets/{domain-C3D9kcXD.js → domain-BXr1Jxdg.js} +1 -1
- package/dist/assets/{domain-list-BRcBrFVB.js → domain-list-DRd4BKdS.js} +1 -1
- package/dist/assets/{exchange-passport-B9ZrHETZ.js → exchange-passport-DBlhf64U.js} +1 -1
- package/dist/assets/{fallback-rg9fefdL.js → fallback-D4IbwHOh.js} +1 -1
- package/dist/assets/{format-error-B3RYdl6q.js → format-error-BLTYbOE0.js} +1 -1
- package/dist/assets/{fuel-BDMvUxVC.js → fuel-BFrr131p.js} +1 -1
- package/dist/assets/{fullpage-DFMbQYE_.js → fullpage-o_U-2IGS.js} +1 -1
- package/dist/assets/{home-YZ2dUhxo.js → home--rxR-cTY.js} +1 -1
- package/dist/assets/{iframe-s25HWReH.js → iframe-DAPuN1dW.js} +1 -1
- package/dist/assets/{index-CcddEj1V.js → index-1I7IXhML.js} +1 -1
- package/dist/assets/{index-D12KUiCG.js → index-7PLdtDxY.js} +1 -1
- package/dist/assets/{index-WDF_phnR.js → index-B0KUbTqG.js} +1 -1
- package/dist/assets/{index-u_IDQFrq.js → index-BB-3C_7E.js} +1 -1
- package/dist/assets/{index-BPSr4f2j.js → index-BCLn-9S9.js} +1 -1
- package/dist/assets/{index-CHJwugzh.js → index-BRzBZXpP.js} +1 -1
- package/dist/assets/{index-5qacoeSv.js → index-B_Mn_6jy.js} +1 -1
- package/dist/assets/{index-BU9mgEVG.js → index-Bf4S7Fg9.js} +1 -1
- package/dist/assets/{index-Bva9FLKW.js → index-BrXFspW6.js} +1 -1
- package/dist/assets/{index-DJLK29SJ.js → index-Bs7XqsZf.js} +1 -1
- package/dist/assets/{index-Db5U7Aba.js → index-CHegi_Ee.js} +1 -1
- package/dist/assets/{index-Dn7MhkOZ.js → index-CLFX4mT1.js} +2 -2
- package/dist/assets/{index-BfhVorqV.js → index-CZq1iuqc.js} +224 -224
- package/dist/assets/{index-Xh4BYwzS.js → index-CbcN4v3T.js} +1 -1
- package/dist/assets/{index-DOU4d3bN.js → index-Cd20iNJ4.js} +1 -1
- package/dist/assets/{index-nyOsFIwy.js → index-Cf2_yBdK.js} +1 -1
- package/dist/assets/{index-UmXxvIz7.js → index-ClrMer_1.js} +1 -1
- package/dist/assets/{index-Dcp0-2H6.js → index-CmmFWW8f.js} +1 -1
- package/dist/assets/{config-space-DTE8U19b.js → index-CptRhWH5.js} +20 -20
- package/dist/assets/index-Cy3QGaUZ.js +54 -0
- package/dist/assets/{index-BCpZXkUS.js → index-CyUODU0b.js} +1 -1
- package/dist/assets/{index-DU7-35nh.js → index-CzsxjdeJ.js} +1 -1
- package/dist/assets/{index-CvOK9BmX.js → index-DHRl1pLr.js} +1 -1
- package/dist/assets/{index-Cx1j9azw.js → index-DW7MULcX.js} +1 -1
- package/dist/assets/{index-DMq0_62n.js → index-DZWxxu-P.js} +1 -1
- package/dist/assets/{index-VRudjsk_.js → index-Diwtza0T.js} +8 -8
- package/dist/assets/{index-Ce3CP3Jp.js → index-Dvf9hLBW.js} +1 -1
- package/dist/assets/{index-_y2ZXCMC.js → index-K7xQGL1m.js} +2 -2
- package/dist/assets/{index-CGXAjTXD.js → index-NKypbT5t.js} +3 -3
- package/dist/assets/index-Wy8tXmp4.js +4 -0
- package/dist/assets/{index-CHbscbku.js → index-l8yj4zzE.js} +1 -1
- package/dist/assets/{index.es-BySfVRax.js → index.es-DIBj3Jq4.js} +1 -1
- package/dist/assets/{index.esm-Cpbu1bqz.js → index.esm-N7xOi6VN.js} +1 -1
- package/dist/assets/{invitation-ZiYOpo0m.js → invitation-Hu8jHCIo.js} +1 -1
- package/dist/assets/{invite-CP_9mlTp.js → invite-tCvD1Emp.js} +1 -1
- package/dist/assets/{issue-passport-OdsEQRgF.js → issue-passport-BQo4G1nz.js} +1 -1
- package/dist/assets/{item-B9vXmxNy.js → item-DbGtGKeZ.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-InWevx1Y.js → jss-plugin-props-sort.esm-DvQhW7jP.js} +1 -1
- package/dist/assets/{launch-result-message-Z1C1sG3K.js → launch-result-message-Bur7t6_c.js} +1 -1
- package/dist/assets/{layout-BJYUy5aS.js → layout-B0uAwIQe.js} +1 -1
- package/dist/assets/{list-header-7mHFR-6j.js → list-header-DFekr1NL.js} +1 -1
- package/dist/assets/localization-Dyeek5nb.js +1 -0
- package/dist/assets/{log-D0ihnCPe.js → log-CjsiT4t8.js} +1 -1
- package/dist/assets/{login-BJ99c8Da.js → login-1J5BbYVV.js} +1 -1
- package/dist/assets/{login-oauth-callback-DXPZbXE8.js → login-oauth-callback-Blrq-pTH.js} +1 -1
- package/dist/assets/{logo-uploader-Cb8u4LYv.js → logo-uploader-KJa3kg20.js} +3 -3
- package/dist/assets/{lost-passport-PezCqF0f.js → lost-passport-B-xv32w5.js} +3 -3
- package/dist/assets/{lottie-BCG4dny2.js → lottie-DHZm2Pp-.js} +1 -1
- package/dist/assets/notifications-D9-n_25q.js +62 -0
- package/dist/assets/{open-window-CuGAzF2Z.js → open-window-C6VjWW94.js} +1 -1
- package/dist/assets/overview-DkYsGUOj.js +12 -0
- package/dist/assets/{page-header-C5ecJ6Qd.js → page-header-Doy1SeXs.js} +1 -1
- package/dist/assets/{permission-BEPRmEw3.js → permission-BWAp0U1U.js} +1 -1
- package/dist/assets/{preferences-knw56gSD.js → preferences-C-rgtZ7Y.js} +1 -1
- package/dist/assets/publish-resource-C5iQ3qEW.js +1 -0
- package/dist/assets/{react-Di5TTO9l.js → react-CT3HMgMp.js} +3 -3
- package/dist/assets/{redux-tOVF_oDT.js → redux-DJ4kW5cs.js} +1 -1
- package/dist/assets/{resource-dialog-5vdlaAuh.js → resource-dialog-Dyf09u0L.js} +1 -1
- package/dist/assets/{selector-CNsCKDRb.js → selector-CoXEpXpq.js} +3 -3
- package/dist/assets/session-Ci3gpI0a.js +1 -0
- package/dist/assets/setup-D47fcxKa.js +14 -0
- package/dist/assets/{shorten-label-CunJMulX.js → shorten-label-FpBR8oOW.js} +1 -1
- package/dist/assets/{slicedToArray-C9-uQLEN.js → slicedToArray-D6tWlK6Z.js} +1 -1
- package/dist/assets/{spaces-Dm4toCmL.js → spaces-Dxw-EmTw.js} +1 -1
- package/dist/assets/{start-CrrzSOx-.js → start-D1WI9rVf.js} +1 -1
- package/dist/assets/{step-actions-BkxasUm3.js → step-actions-D3Bgjg32.js} +1 -1
- package/dist/assets/{studio-Cz2NXhoj.js → studio-SFi0TZqU.js} +1 -1
- package/dist/assets/{switch-control-BOre_YDJ.js → switch-control-D_6oISXT.js} +1 -1
- package/dist/assets/{toUpper-6wIhNvu3.js → toUpper-DA5F5eP3.js} +1 -1
- package/dist/assets/{transfer-DQPf7r9j.js → transfer-YRbXZ2oQ.js} +1 -1
- package/dist/assets/{uniqBy-C3O4Rmks.js → uniqBy-moVi8I9O.js} +1 -1
- package/dist/assets/{unsubscribe-DhdgpWxi.js → unsubscribe-B-8N_G1A.js} +1 -1
- package/dist/assets/{url-join-DH_b1eAH.js → url-join-BUXfHAG-.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-gtr1x-_o.js → use-blocklet-info-for-connect-did-spaces-DhpD5O4W.js} +1 -1
- package/dist/assets/{use-mobile-CnnusHmf.js → use-mobile-C_ONEjf6.js} +1 -1
- package/dist/assets/{useAsync-6Zzjy7PW.js → useAsync-BLjRrBya.js} +1 -1
- package/dist/assets/{useFormControl-DUzGwbSY.js → useFormControl-BrCPFkZH.js} +1 -1
- package/dist/assets/{useLocalStorage-B-I-NsSz.js → useLocalStorage-DrhIkVxO.js} +1 -1
- package/dist/assets/{useSetState-Be-I2Gl-.js → useSetState-CbQrbQss.js} +1 -1
- package/dist/assets/{useSlot-LBVvloQJ.js → useSlot-BSk477LF.js} +1 -1
- package/dist/assets/{user-center-BXOQaeTd.js → user-center-BYfQOHt3.js} +1 -1
- package/dist/assets/{user-sessions-CdgU8G0J.js → user-sessions-CAX_hHjv.js} +1 -1
- package/dist/assets/{util-CoWq6oMk.js → util-Do8cOsC3.js} +1 -1
- package/dist/assets/{wrap-locale-Cn1jipF7.js → wrap-locale-D6fNmzs0.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-DdlMvNYe.js +0 -1
- package/dist/assets/api-C37A8mCN.js +0 -1
- package/dist/assets/audit-logs-CJh_A9OZ.js +0 -58
- package/dist/assets/connect-to-DMAPIkc9.js +0 -54
- package/dist/assets/dashboard-BOQEjKT8.js +0 -165
- package/dist/assets/index-BEbMx7tF.js +0 -54
- package/dist/assets/index-CscyFLCJ.js +0 -4
- package/dist/assets/localization-DH4Rcoxd.js +0 -1
- package/dist/assets/notifications-CKxrvr1-.js +0 -62
- package/dist/assets/overview-BSBWgzbj.js +0 -12
- package/dist/assets/publish-resource-D_KlfXTF.js +0 -1
- package/dist/assets/session-Cf-ZqG4P.js +0 -1
- package/dist/assets/setup-CbG6rF4U.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as U,h as y,f as k,bj as be,j as o,B as x,A as ve,bA as N,T as B,be as Pe,M as m,bB as I,bC as Se,D as Ie,az as W,bD as z,bE as Ae,bF as je,bG as ue,bH as J,c as Be,bI as Re,bJ as Te,N as V,l as te,aQ as Z,bK as Ue,bL as Le,O as ee,bM as xe,aP as ze,a1 as re,q as $,r as G,bN as we,bO as ne,bP as De,a as he,bQ as P,bR as Ee,bS as Me,bT as Fe,bU as _e,p as Oe,o as We,b9 as $e,bV as He,bW as Ne,bX as Ge,bY as Ve,bZ as qe,b_ as Qe,b$ as Xe,c0 as Je,k as Ke,w as fe,bx as Ye,H as Ze}from"./index-BfhVorqV.js";import{H as eo,F as oo}from"./index-CHJwugzh.js";import{f as to,g as ro}from"./index-Dn7MhkOZ.js";import{S as no,t as D,a as ao,b as io,M as so,C as lo,P as co,c as po,E as uo,D as xo,A as ho,d as F,I as fo,L as go,e as mo,f as bo}from"./resource-dialog-5vdlaAuh.js";import{T as ye}from"./index-DJLK29SJ.js";import{E as K}from"./index-D12KUiCG.js";import{E as vo}from"./fallback-rg9fefdL.js";import{u as jo}from"./uniqBy-C3O4Rmks.js";import{S as ke}from"./index-nyOsFIwy.js";import{i as wo}from"./index-UmXxvIz7.js";import{S as Ce}from"./Select-BeNQ99oP.js";import{T as yo}from"./TextField-D3XEyFR4.js";import{M as ko}from"./InputAdornment-C5IWgB4u.js";import{A as Co}from"./Alert-D91U5h--.js";import{S as Po}from"./FormControlLabel-B6ISinfm.js";import{U as So}from"./user-sessions-CdgU8G0J.js";import"./index-5qacoeSv.js";import"./index-Ce3CP3Jp.js";import"./Toolbar-_9it32pJ.js";import"./Hidden-kl5Tbw1B.js";import"./ExpandMore-DD2GykPj.js";import"./Avatar-XXXVLUFk.js";import"./useSlot-LBVvloQJ.js";import"./MoreVert-er-bltGF.js";import"./selector-CNsCKDRb.js";import"./use-mobile-CnnusHmf.js";import"./OpenInNew-Bu6iI6eA.js";import"./CloseOutlined-Crg0BDr4.js";import"./FormControl-Kt4xANtI.js";import"./useFormControl-DUzGwbSY.js";import"./InputLabel-DbdmcDbJ.js";import"./FilterList-QafrkXbd.js";import"./toPropertyKey-hKuLU48H.js";import"./FormGroup-BEMyIGSj.js";import"./ListItemText-Bnnk7Gbj.js";import"./LastPage-DXISIPs8.js";import"./index-BPSr4f2j.js";import"./redux-tOVF_oDT.js";import"./Search-CMyGk9R2.js";import"./Delete-DlfFien6.js";function ge({user:e,isMyself:l=!0,showFullDid:i=!0,switchPassport:g,switchProfile:a,openSettings:d,...h}){const{locale:n}=U(),c=y((v,p={})=>z(D,v,n,"en",p)),t=k(()=>{var v;return(v=(e==null?void 0:e.passports)||[])==null?void 0:v.find(p=>p.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),f=be().breakpoints.down("md");return e?o.jsxs(x,{...h,sx:{position:"relative",...h.sx},children:[o.jsx(ve,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:f?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...l?{cursor:"pointer","&:hover":{"&::after":{content:`"${c("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:l?a:N}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,l?o.jsx(Pe,{label:(t==null?void 0:t.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:m.textBase,borderColor:m.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(I,{icon:Se,color:m.textBase}),onDelete:g,onClick:g}):null]}),o.jsx(Ie,{did:e.did,showQrcode:!0,copyable:!0,compact:!i,responsive:!i,locale:n}),l?o.jsx(W,{sx:{borderRadius:2,color:m.textBase,backgroundColor:"white",border:`1px solid ${m.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:d,children:o.jsx(I,{icon:no})}):null]}):null}function Io({data:e,...l}){return o.jsxs(x,{...l,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...l.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:m.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsx(B,{sx:{color:m.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content})]})}function Ao({user:e,isMySelf:l=!1,...i}){const{locale:g}=U(),a=y((n,c={})=>z(D,n,g,"en",c)),d=k(()=>(e==null?void 0:e.sourceProvider)&&Ae[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),h=[];return l&&(h.push({icon:o.jsx(I,{fontSize:16,icon:je}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField")}),h.push({icon:o.jsx(I,{fontSize:16,icon:ao}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(ue,{locale:g,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),h.push({icon:o.jsx(I,{fontSize:16,icon:io}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),h.push({icon:o.jsx(I,{fontSize:16,icon:so}),title:a("createdAt"),content:e!=null&&e.createdAt?o.jsx(ue,{locale:g,value:e==null?void 0:e.createdAt}):a("unknown")}),l&&h.push({icon:o.jsx(I,{fontSize:16,icon:lo}),title:a("registerFrom"),content:d}),o.jsx(x,{...i,sx:{display:"flex",flexDirection:"column",gap:1.5,...i==null?void 0:i.sx},children:h.map(n=>o.jsx(Io,{data:n,sx:{flex:1}},n.title))})}const Bo=(e,l)=>{let i;return e==="default"?i=J.DEFAULT_COLORS["app-passport"]:e==="auto"?i=J.getNftBGColorFromDid(l):i=J.getNftBGColor(e),i},Ro=({issuer:e="",title:l="",issuerDid:i="",issuerAvatarUrl:g="",ownerDid:a="",ownerName:d="",ownerAvatarUrl:h="",preferredColor:n="default",revoked:c=!1,isDataUrl:t=!1,width:u="100%",height:f="100%"})=>{const v=Bo(n,i),p=J.getSvg({width:u,height:f,tag:c?"revoked":"",tagVariant:c?"error":"info",color:v,did:a,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:g},header:{name:l,icon:h},extra:{key:"Exp",value:"2123-01-01"}});return t?`data:image/svg+xml;utf8,${encodeURIComponent(p)}`:p},oe=e=>{const{response:l}=e;return l?`Request failed: ${l.status} ${l.statusText}: ${JSON.stringify(l.data)}`:e.message},To=e=>Ro({...e,issuerAvatarUrl:Be(window.location.origin,Re,"/blocklet/logo")});function Uo({user:e,...l}){var c,t;const{locale:i}=U(),g=y((u,f={})=>z(D,u,i,"en",f)),a=be(),d=k(()=>{const u=((e==null?void 0:e.passports)||[]).map(f=>({...f,revoked:f.status===Te.REVOKED}));return u.sort((f,v)=>f.revoked===v.revoked?0:f.revoked?1:-1),jo(u,"role")},[e==null?void 0:e.passports]),h=k(()=>d==null?void 0:d.find(u=>u.name===e.role),[d,e==null?void 0:e.role]),n=k(()=>{var u,f;return((f=(u=a==null?void 0:a.palette)==null?void 0:u.primary)==null?void 0:f.main)||m.textBase},[(t=(c=a==null?void 0:a.palette)==null?void 0:c.primary)==null?void 0:t.main]);return d.length===0?o.jsx(x,{children:o.jsx(K,{children:g("noPassport")})}):o.jsx(x,{...l,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...l.sx},children:d.map(u=>o.jsx(co,{passport:u,user:e,color:window.blocklet.passportColor,createPassportSvg:To,title:h&&h.role===u.role?g("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:m.backgroundsBgComponent,boxShadow:h&&h.role===u.role?`0px 2px 4px 0px ${n}, 0px 1px 2px -1px ${n}, 0px 0px 0px 1px ${n} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},u.id))})}function me({onTest:e=N,onDelete:l=N,onSave:i=N,onCancel:g=N,type:a="slack",url:d="",edit:h=!1}){const{locale:n}=U(),c=y((r,b={})=>z(D,r,n,"en",b)),t=V({type:a||"slack",url:d||"",edit:h??!1,error:"",loading:!1}),u=y(()=>t.url?wo(t.url)?(t.error="",!0):(t.error=c("common.invalid"),!1):(t.error=c("common.required"),!1)),f=y(()=>{t.edit=!1,t.url=d||"",t.type=a||"slack",t.error="",t.loading=!1,g()}),v=y(async r=>{t.loading=!0,await e(r),t.loading=!1}),p=y(r=>()=>{u()&&r({type:t.type,url:t.url})}),s=k(()=>t.error?o.jsx(B,{component:"span",color:"error",children:t.error}):t.edit?t.loading?o.jsx(te,{size:16}):o.jsx(W,{size:"small",onClick:p(v),sx:{mr:-1},children:o.jsx(I,{icon:po})}):null,[t.error,t.edit,t.loading]);return o.jsxs(x,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Ce,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:m.backgroundsBgField}},disabled:!t.edit||t.loading,size:"small",value:t.type,onChange:r=>{t.type=r.target.value},children:[o.jsx(Z,{value:"api",children:c("webhook.url")}),o.jsx(Z,{value:"slack",children:c("webhook.slack")})]}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(yo,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:m.backgroundsBgField}}},disabled:!t.edit||t.loading,fullWidth:!0,size:"small",required:!0,value:t.url,onChange:r=>{t.url=r.target.value,u()},error:!!t.error,InputProps:{endAdornment:o.jsx(ko,{position:"end",children:s})}}),o.jsx(x,{sx:{display:"flex",gap:.5},children:t.edit?o.jsxs(o.Fragment,{children:[o.jsx(W,{color:"success",onClick:p((...r)=>{i(...r),t.edit=!1}),sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:Ue})}),o.jsx(W,{color:"error",onClick:f,sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:Le})})]}):o.jsxs(o.Fragment,{children:[o.jsx(W,{onClick:()=>{t.edit=!0},sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:uo})}),o.jsx(W,{color:"error",onClick:()=>{l({type:t.type,url:t.url})},sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:xo})})]})})]})]})}function Y({title:e,description:l,value:i,onChange:g}){return o.jsx(ke,{checked:i,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,l]})},size:"small",onChange:g})}function Lo({user:e}){var p,s;const{locale:l}=U(),i=y((r,b={})=>z(D,r,l,"en",b)),g=V({showAdd:!1}),a=ee(async()=>await F.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),d=k(()=>{var r;return{wallet:!0,email:!0,phone:!1,push:!0,...((r=a==null?void 0:a.data)==null?void 0:r.notifications)||{}}},[(p=a==null?void 0:a.data)==null?void 0:p.notifications]),h=k(()=>{var r;return((r=a==null?void 0:a.data)==null?void 0:r.webhooks)||[]},[(s=a==null?void 0:a.data)==null?void 0:s.webhooks]),n=y(async r=>{try{await F.user.saveUserNotificationConfig(r),$.success(i("saveSuccess")),a.run()}catch(b){$.error(oe(b))}}),c=y(async(r,b)=>{await n({notifications:{[r]:b}})}),t=async r=>{try{await F.user.testNotificationWebhook(r),$.success(i("webhookTested"))}catch(b){$.error(oe(b))}},u=y(async r=>{await n({webhooks:h.filter((b,j)=>j!==r)})}),f=y(async(r,b)=>{await n({webhooks:h.map((j,C)=>C===r?b:j)})}),v=y(async r=>{await n({webhooks:[...h,r]}),g.showAdd=!1});return a.error?o.jsx(Co,{severity:"error",children:a.error.message}):a.loading||!a.data?o.jsx(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(te,{})}):o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(Y,{value:d.wallet,title:i("walletNotification"),onChange:r=>c("wallet",r.target.checked),description:xe(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:xe(e)})}),o.jsx(Y,{value:d.email,onChange:r=>c("email",r.target.checked),title:i("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(Y,{value:d.push,title:i("pushNotification"),onChange:r=>c("push",r.target.checked)})]}),o.jsx(ze,{}),o.jsxs(Po,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[h.map((r,b)=>o.jsx(me,{onTest:t,onDelete:()=>u(b),onSave:(...j)=>f(b,...j),type:r.type,url:r.url,edit:!1},`${b}_${r.url}`)),g.showAdd&&o.jsx(me,{onTest:t,onCancel:()=>{g.showAdd=!1},onSave:(...r)=>v(...r),edit:!0},"add"),o.jsx(re,{variant:"outlined",size:"small",sx:{color:m.foregroundsFgBase,borderColor:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutral,"&:hover":{borderColor:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(I,{icon:ho}),onClick:()=>{g.showAdd=!0},children:i("addWebhook")})]})]})}function zo({configList:e,onSave:l}){const[i,g]=G.useState(e),{locale:a}=U(),d=y((n,c={})=>z(D,n,a,"en",c)),h=y(async(n,c)=>{try{const t=await F.user.saveUserPrivacyConfig({[n]:!c});g(i.map(u=>({...u,value:(t==null?void 0:t[u.key])??u.value}))),$.success(d("saveSuccess")),l("privacy")}catch(t){$.error(oe(t))}});return o.jsx(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:i.map(n=>o.jsx(ke,{checked:!n.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:d("toPublic",{name:n.name})})},size:"small",onChange:c=>h(n.key,c.target.checked)},n.key))})}function Do({item:e}){var r,b,j,C,q;const{confirmApi:l,confirmHolder:i}=we(),g=V({loading:!1}),{locale:a}=U(),d=y((T,A={})=>z(D,T,a,"en",A)),{session:h}=G.useContext(ne),{bindOAuth:n,unbindOAuth:c,setBaseUrl:t,baseUrl:u}=h.useOAuth(),f={[P.AUTH0]:je,[P.APPLE]:Ee,[P.GITHUB]:Me,[P.GOOGLE]:Fe},v=k(()=>f[e==null?void 0:e.provider],[e==null?void 0:e.provider]),p=k(()=>De[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),s=y(async()=>{try{g.loading=!0,await new Promise((T,A)=>{var R;if(e!=null&&e._bind)l.open({title:d("thirdPartyLogin.confirmUnbind",{name:p}),content:d("thirdPartyLogin.confirmUnbindDescription",{name:p}),confirmButtonText:d("common.confirm"),cancelButtonText:d("common.cancel"),onConfirm(E){c({session:h,connectedAccount:{..._e(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(T).catch(A),E()},onCancel:T});else{const E=u,Q=window==null?void 0:window.blocklet;let _="/";const H=Oe(Q),O=We(Q);H&&(O!=null&&O.appPid)&&((R=h==null?void 0:h.user)!=null&&R.sourceAppPid)&&(_=O.appUrl),t(_),n({session:h,oauthItem:{...e,provider:e._rawProvider}}).then(T).catch(A).finally(()=>{t(E)})}})}catch(T){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,T)}finally{g.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`,background:m.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(x,{component:I,icon:v,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(x,{sx:{flex:1},children:p}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(x,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((r=e.userInfo)==null?void 0:r.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(he,{title:o.jsx(o.Fragment,{children:o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(ve,{size:36,variant:"circle",shape:"circle",src:(j=e.userInfo)==null?void 0:j.picture,did:e.did}),o.jsxs(x,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(C=e.userInfo)==null?void 0:C.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(q=e.userInfo)==null?void 0:q.email})]})]})}),children:o.jsx(x,{component:I,icon:fo,color:m.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(he,{title:e._mainProvider?d("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(x,{children:o.jsx(re,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?m.red:m.foregroundsFgBase,borderColor:e!=null&&e._bind?m.red:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?m.red:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:g.loading?null:o.jsx(I,{icon:go}),onClick:s,disabled:e._mainProvider,loading:g.loading,children:e!=null&&e._bind?d("thirdPartyLogin.disconnect"):d("thirdPartyLogin.connect")})})}),i]})}function Eo({user:e}){const{session:l}=G.useContext(ne),[i,g]=G.useState({}),{getOAuthConfigs:a}=l.useOAuth();$e(async()=>{const n=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});g(n)},[e==null?void 0:e.sourceAppPid]);const d=k(()=>Object.keys(i).map(c=>({...i[c],provider:c})).filter(c=>c.enabled),[i]),h=k(()=>{const n=He(e);let c=!1,t="",u=Ne(e);const f=n.find(p=>p.provider===P.AUTH0);return f&&(f.id.startsWith("google-oauth2|")&&(n.some(p=>p.provider==="google")||(c=!0,t=P.GOOGLE,u===P.AUTH0&&(u=P.GOOGLE))),f.id.startsWith("appleid|")&&(n.some(p=>p.provider===P.APPLE)||(c=!0,t=P.APPLE,u===P.AUTH0&&(u=P.APPLE))),f.id.startsWith("github|")&&(n.some(p=>p.provider===P.GITHUB)||(c=!0,t=P.GITHUB,u===P.AUTH0&&(u=P.GITHUB)))),d.map(p=>{if(p.provider===P.AUTH0&&c)return null;const s=c&&p.provider===t?n.find(r=>r.provider===P.AUTH0):n.find(r=>r.provider===p.provider);return s?{...p,provider:p.provider,did:s.did,pk:s.pk,userInfo:s.userInfo,_bind:!0,_rawProvider:s.provider,_mainProvider:p.provider===u}:{...p,provider:p.provider,_rawProvider:p.provider,_mainProvider:p.provider===u}}).filter(Boolean).sort((p,s)=>(p==null?void 0:p.order)!==void 0&&(s==null?void 0:s.order)!==void 0?p.order-s.order:(p==null?void 0:p.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,d]);return o.jsx(x,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:h.map(n=>o.jsx(Do,{item:n},n==null?void 0:n.provider))})}const Mo=[{label:"English",value:"en"},{label:"中文",value:"zh"}];function Fo({user:e,onSave:l}){const{locale:i,changeLocale:g}=U(),a=y((n,c={})=>z(D,n,i,"en",c)),d=V({locale:e.locale,loading:!1}),h=y(async n=>{try{const{value:c}=n.target;d.loading=!0,await Promise.all([F.user.saveProfile({locale:c}),Ve(350)]),await l("profile"),g(c),d.locale=c}finally{d.loading=!1}});return o.jsxs(x,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(x,{children:a("commonSetting.locale")}),o.jsxs(x,{children:[o.jsx(Ge,{color:"primary",sx:{visibility:d.loading?"visible":"hidden",height:2}}),o.jsx(Ce,{fullWidth:!0,value:d.locale,onChange:h,size:"small",children:Mo.map(n=>o.jsx(Z,{value:n.value,children:n.label}))})]})]})}function _o({user:e,settings:l,onSave:i,...g}){const{locale:a}=U(),d=y((f,v={})=>z(D,f,a,"en",v)),h=k(()=>((l==null?void 0:l.userCenterTabs)||[]).map(v=>({key:v.value,name:v.label,value:v.protected})),[l==null?void 0:l.userCenterTabs]),n=k(()=>{var f;return[{label:d("commonSetting.title"),value:"common",content:o.jsx(Fo,{user:e,onSave:i})},{label:d("notificationManagement"),value:"notification",content:o.jsx(Lo,{user:e})},{label:d("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(Eo,{user:e})},{label:d("privacyManagement"),value:"privacy",content:o.jsx(zo,{configList:h,onSave:i})},((f=e==null?void 0:e.didSpace)==null?void 0:f.endpoint)&&{label:d("storageManagement"),value:"storage",content:o.jsx(mo,{children:o.jsx(bo,{})})},{label:d("sessionManagement"),value:"session",content:o.jsx(So,{user:e})}].filter(Boolean)},[e,h]),c=V({tab:n[0].value}),t=k(()=>n.find(f=>f.value===c.tab),[c.tab,n]),u=y(f=>{c.tab=f});return t&&o.jsxs(x,{...g,sx:{...g==null?void 0:g.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(ye,{variant:"card",tabs:n,current:t.value,onChange:u}),o.jsx(x,{mt:2.5,children:t.content})]})}function Oo({children:e,notLoginContent:l=null,currentTab:i,contentProps:g={},disableAutoRedirect:a=!1,autoPopupSetting:d=!1,hideFooter:h=!1,headerProps:n={},footerProps:c={},userDid:t=void 0,stickySidebar:u=!1}){var ae,ie,se,le,ce,de;const{locale:f}=U(),v=y((w,S={})=>z(D,w,f,"en",S)),p=G.useContext(ne),s=p==null?void 0:p.session,r=k(()=>{var L;if(t)return t;const w=window.location.href,S=qe(w);return S!=null&&S.did?Array.isArray(S.did)?S.did[0]:S.did:(L=s==null?void 0:s.user)==null?void 0:L.did},[(ae=s==null?void 0:s.user)==null?void 0:ae.did,t]),b=k(()=>{var w;return s!=null&&s.user?r===((w=s==null?void 0:s.user)==null?void 0:w.did):!1},[r,(ie=s==null?void 0:s.user)==null?void 0:ie.did]),j=ee(async()=>{if(await Qe(()=>s==null?void 0:s.initialized),b)return s.user;if(r)return F.user.getUserPublicInfo({did:r})},{refreshDeps:[r,b,s==null?void 0:s.initialized,s==null?void 0:s.user]}),C=ee(async()=>j.data&&i?await F.user.getUserPrivacyConfig({did:r}):null,{refreshDeps:[r,j.data,i],loadingDelay:300}),{confirmHolder:q,confirmApi:T}=we({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=k(()=>{const w=Xe(window.blocklet);try{return to(w)}catch(S){return console.error("Failed to format blocklet info",S,w),w}},[]),R=k(()=>{var L;const w=((L=A==null?void 0:A.navigation)==null?void 0:L.userCenter)||[];return(ro(w,f)||[]).map(M=>{var pe;const X=M._rawLink??M.link;return{value:X,label:M.title,url:M.link,protected:((pe=C==null?void 0:C.data)==null?void 0:pe[X])??!1}})},[A,j.data,C==null?void 0:C.data,f]),E=k(()=>R.find(w=>w.value===i),[R]),Q=y(w=>{const S=R.find(L=>L.value===w);S&&(window.location.href=fe(S.url,{did:b?void 0:r}))}),_=k(()=>o.jsx(_o,{user:j.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await C.runAsync(),C.data):(w==="profile"&&await s.refresh(),null)}),[j.data,R,C.data,C.runAsync]),H=y(()=>{T.open({title:v("settings"),content:_,showCancelButton:!1,confirmButtonText:v("done"),onConfirm:T.close})});Je(()=>{T.update({content:_})},[_]),Ke(()=>{d&&H()});const O=k(()=>{var w,S,L;if(j.loading||s.loading)return null;if(j.error){const X={message:((S=(w=j.error.response)==null?void 0:w.data)==null?void 0:S.error)||j.error.message||"error occurred"};return o.jsx(x,{sx:{width:"100%"},children:o.jsx(vo,{error:X})})}return!r&&!j.data?l||o.jsx(x,{sx:{width:"100%"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(K,{children:v("viewAfterLogin")}),o.jsx(re,{size:"small",variant:"contained",onClick:()=>s.login(),children:v("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:{flex:1,overflow:"hidden"},children:[(L=j==null?void 0:j.data)!=null&&L.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:j.data.fullName}):null,o.jsx(ge,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:H,user:j.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&i?o.jsxs(x,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(ye,{variant:"line",tabs:R,current:i,onChange:Q,sx:{mb:1.5}}),!C.data||C.loading?o.jsx(x,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(te,{sx:{color:m.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(x,{children:o.jsx(K,{children:v("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(x,{...g,children:e})})})]}):null,R.length===0?o.jsx(x,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(K,{children:v("emptyContent")})}):null]}),o.jsx(x,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:m.strokeSep}}),o.jsx(x,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:u?"sticky":"static"},top:M=>u?M.spacing(3):"unset"},children:[o.jsx(ge,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:H,user:j.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v(b?"myInfo":"hisInfo")}),o.jsx(Ao,{user:j.data,isMySelf:b})]}),b?o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v("passport")}),o.jsx(Uo,{user:j.data})]}):null]})})]})},[j,R,b,E,C,i,u]);if(!a&&!i&&((le=(se=A==null?void 0:A.navigation)==null?void 0:se.userCenter)==null?void 0:le.length)>0){const w=(de=(ce=A==null?void 0:A.navigation)==null?void 0:ce.userCenter[0])==null?void 0:de.link;return w&&window.location.replace(fe(w,{did:b?void 0:r})),null}return o.jsxs(x,{sx:{backgroundColor:m.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(eo,{bordered:!0,...n}),o.jsxs(x,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[O,q]}),h?null:o.jsx(oo,{bordered:!0,...c})]})}function It(){const l=Ye().tab,{t:i}=U();return o.jsxs(o.Fragment,{children:[o.jsx(Ze,{children:o.jsx("title",{children:i("pageTitle.userCenter")})}),o.jsx(Oo,{disableAutoRedirect:l==="settings",autoPopupSetting:l==="settings"})]})}export{It as default};
|
|
1
|
+
import{u as U,h as y,f as k,bh as be,j as o,B as x,A as ve,by as N,T as B,bc as Pe,M as m,bz as I,bA as Se,D as Ie,az as W,bB as L,bC as Ae,bD as je,bE as ue,bF as J,c as Be,bG as Re,bH as Te,N as V,l as te,aQ as Z,bI as Ue,bJ as ze,O as ee,bK as xe,aP as Le,a1 as re,q as $,r as G,bL as we,bM as ne,bN as De,a as he,bO as P,bP as Ee,bQ as Me,bR as Fe,bS as _e,p as Oe,o as We,bT as $e,bU as He,bV as Ne,bW as Ge,bX as Ve,bY as qe,bZ as Qe,b_ as Xe,b$ as Je,k as Ke,w as fe,bv as Ye,H as Ze}from"./index-CZq1iuqc.js";import{H as eo,F as oo}from"./index-BRzBZXpP.js";import{f as to,g as ro}from"./index-CLFX4mT1.js";import{S as no,t as D,a as ao,b as io,M as so,C as lo,P as co,c as po,E as uo,D as xo,A as ho,d as F,I as fo,L as go,e as mo,f as bo}from"./resource-dialog-Dyf09u0L.js";import{T as ye}from"./index-Bs7XqsZf.js";import{E as K}from"./index-7PLdtDxY.js";import{E as vo}from"./fallback-D4IbwHOh.js";import{u as jo}from"./uniqBy-moVi8I9O.js";import{S as ke}from"./index-Cf2_yBdK.js";import{i as wo}from"./index-ClrMer_1.js";import{S as Ce}from"./Select-DCbRxmUU.js";import{T as yo}from"./TextField-BHSEV3Ac.js";import{M as ko}from"./InputAdornment-B3Ml-Pew.js";import{A as Co}from"./Alert-X8Tf_Ya2.js";import{S as Po}from"./FormControlLabel-BZuIe-KU.js";import{U as So}from"./user-sessions-CAX_hHjv.js";import"./index-B_Mn_6jy.js";import"./index-Dvf9hLBW.js";import"./Toolbar-D3YIXjSy.js";import"./Hidden-BtwYfeyy.js";import"./ExpandMore-BoZqCbU8.js";import"./Avatar-DzypDi2F.js";import"./useSlot-BSk477LF.js";import"./MoreVert-DhDSKiqk.js";import"./selector-CoXEpXpq.js";import"./use-mobile-C_ONEjf6.js";import"./OpenInNew-DUIHrnXo.js";import"./CloseOutlined-D1ZA66gd.js";import"./FormControl-02YkGBiU.js";import"./useFormControl-BrCPFkZH.js";import"./InputLabel-D_H-0SoX.js";import"./FilterList-C75puMMo.js";import"./toPropertyKey-hKuLU48H.js";import"./FormGroup-CUYWiNiM.js";import"./ListItemText-Bn_r5n_z.js";import"./LastPage-D-3vv4wE.js";import"./index-BCLn-9S9.js";import"./redux-DJ4kW5cs.js";import"./Search-DTUqGlmf.js";import"./Delete-LnXfw8II.js";function ge({user:e,isMyself:l=!0,showFullDid:i=!0,switchPassport:g,switchProfile:a,openSettings:d,...h}){const{locale:n}=U(),c=y((v,p={})=>L(D,v,n,"en",p)),t=k(()=>{var v;return(v=(e==null?void 0:e.passports)||[])==null?void 0:v.find(p=>p.name===e.role)},[e==null?void 0:e.passports,e==null?void 0:e.role]),f=be().breakpoints.down("md");return e?o.jsxs(x,{...h,sx:{position:"relative",...h.sx},children:[o.jsx(ve,{src:e==null?void 0:e.avatar,did:e==null?void 0:e.did,size:f?64:80,variant:"circle",shape:"circle",sx:{borderRadius:"100%",backgroundColor:"#fff",position:"relative",overflow:"hidden",mb:1.5,...l?{cursor:"pointer","&:hover":{"&::after":{content:`"${c("switchProfile")}"`}},"&::after":{color:"white",position:"absolute",fontSize:"12px",bottom:0,left:0,right:0,height:"50%",backgroundColor:"rgba(0, 0, 0, 0.3)",display:"flex",justifyContent:"center",alignItems:"center"}}:{}},onClick:l?a:N}),o.jsxs(B,{variant:"h6",sx:{fontWeight:"bold",display:"flex",alignItems:"center",gap:1,fontSize:"24px !important"},children:[e==null?void 0:e.fullName,l?o.jsx(Pe,{label:(t==null?void 0:t.title)||(e==null?void 0:e.role)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:m.textBase,borderColor:m.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:o.jsx(I,{icon:Se,color:m.textBase}),onDelete:g,onClick:g}):null]}),o.jsx(Ie,{did:e.did,showQrcode:!0,copyable:!0,compact:!i,responsive:!i,locale:n}),l?o.jsx(W,{sx:{borderRadius:2,color:m.textBase,backgroundColor:"white",border:`1px solid ${m.strokeBorderBase}`,position:"absolute",top:0,right:0},disableFocusRipple:!0,onClick:d,children:o.jsx(I,{icon:no})}):null]}):null}function Io({data:e,...l}){return o.jsxs(x,{...l,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",...l.sx},children:[o.jsxs(B,{sx:{display:"flex",alignItems:"center",color:m.textBase,fontSize:"14px",gap:1,fontWeight:500},children:[e.icon,e.title]}),o.jsx(B,{sx:{color:m.textSubtitle,whiteSpace:"pre-wrap",fontSize:"14px"},children:e.content})]})}function Ao({user:e,isMySelf:l=!1,...i}){const{locale:g}=U(),a=y((n,c={})=>L(D,n,g,"en",c)),d=k(()=>(e==null?void 0:e.sourceProvider)&&Ae[e.sourceProvider]||a("unknown"),[e==null?void 0:e.sourceProvider]),h=[];return l&&(h.push({icon:o.jsx(I,{fontSize:16,icon:je}),title:a("email"),content:(e==null?void 0:e.email)||a("emptyField")}),h.push({icon:o.jsx(I,{fontSize:16,icon:ao}),title:a("lastLoginAt"),content:e!=null&&e.lastLoginAt?o.jsx(ue,{locale:g,value:e==null?void 0:e.lastLoginAt,relativeRange:3*86400*1e3}):a("unknown")}),h.push({icon:o.jsx(I,{fontSize:16,icon:io}),title:a("lastLoginIp"),content:(e==null?void 0:e.lastLoginIp)||a("unknown")})),h.push({icon:o.jsx(I,{fontSize:16,icon:so}),title:a("createdAt"),content:e!=null&&e.createdAt?o.jsx(ue,{locale:g,value:e==null?void 0:e.createdAt}):a("unknown")}),l&&h.push({icon:o.jsx(I,{fontSize:16,icon:lo}),title:a("registerFrom"),content:d}),o.jsx(x,{...i,sx:{display:"flex",flexDirection:"column",gap:1.5,...i==null?void 0:i.sx},children:h.map(n=>o.jsx(Io,{data:n,sx:{flex:1}},n.title))})}const Bo=(e,l)=>{let i;return e==="default"?i=J.DEFAULT_COLORS["app-passport"]:e==="auto"?i=J.getNftBGColorFromDid(l):i=J.getNftBGColor(e),i},Ro=({issuer:e="",title:l="",issuerDid:i="",issuerAvatarUrl:g="",ownerDid:a="",ownerName:d="",ownerAvatarUrl:h="",preferredColor:n="default",revoked:c=!1,isDataUrl:t=!1,width:u="100%",height:f="100%"})=>{const v=Bo(n,i),p=J.getSvg({width:u,height:f,tag:c?"revoked":"",tagVariant:c?"error":"info",color:v,did:a,variant:"app-passport",verifiable:!0,issuer:{name:e,icon:g},header:{name:l,icon:h},extra:{key:"Exp",value:"2123-01-01"}});return t?`data:image/svg+xml;utf8,${encodeURIComponent(p)}`:p},oe=e=>{const{response:l}=e;return l?`Request failed: ${l.status} ${l.statusText}: ${JSON.stringify(l.data)}`:e.message},To=e=>Ro({...e,issuerAvatarUrl:Be(window.location.origin,Re,"/blocklet/logo")});function Uo({user:e,...l}){var c,t;const{locale:i}=U(),g=y((u,f={})=>L(D,u,i,"en",f)),a=be(),d=k(()=>{const u=((e==null?void 0:e.passports)||[]).map(f=>({...f,revoked:f.status===Te.REVOKED}));return u.sort((f,v)=>f.revoked===v.revoked?0:f.revoked?1:-1),jo(u,"role")},[e==null?void 0:e.passports]),h=k(()=>d==null?void 0:d.find(u=>u.name===e.role),[d,e==null?void 0:e.role]),n=k(()=>{var u,f;return((f=(u=a==null?void 0:a.palette)==null?void 0:u.primary)==null?void 0:f.main)||m.textBase},[(t=(c=a==null?void 0:a.palette)==null?void 0:c.primary)==null?void 0:t.main]);return d.length===0?o.jsx(x,{children:o.jsx(K,{children:g("noPassport")})}):o.jsx(x,{...l,sx:{display:"grid",gridTemplateColumns:{xs:"repeat(2, 1fr)",sm:"repeat(3, 1fr)",md:"repeat(2, 1fr)"},gap:2.5,...l.sx},children:d.map(u=>o.jsx(co,{passport:u,user:e,color:window.blocklet.passportColor,createPassportSvg:To,title:h&&h.role===u.role?g("currentPassport"):"",sx:{flexDirection:"column",alignItems:"center",gap:1,".passport-item__display":{width:166,height:166,borderRadius:2,px:2,display:"flex",justifyContent:"center",backgroundColor:m.backgroundsBgComponent,boxShadow:h&&h.role===u.role?`0px 2px 4px 0px ${n}, 0px 1px 2px -1px ${n}, 0px 0px 0px 1px ${n} !important`:"unset"},".passport-item__body":{marginLeft:"0 !important"}}},u.id))})}function me({onTest:e=N,onDelete:l=N,onSave:i=N,onCancel:g=N,type:a="slack",url:d="",edit:h=!1}){const{locale:n}=U(),c=y((r,b={})=>L(D,r,n,"en",b)),t=V({type:a||"slack",url:d||"",edit:h??!1,error:"",loading:!1}),u=y(()=>t.url?wo(t.url)?(t.error="",!0):(t.error=c("common.invalid"),!1):(t.error=c("common.required"),!1)),f=y(()=>{t.edit=!1,t.url=d||"",t.type=a||"slack",t.error="",t.loading=!1,g()}),v=y(async r=>{t.loading=!0,await e(r),t.loading=!1}),p=y(r=>()=>{u()&&r({type:t.type,url:t.url})}),s=k(()=>t.error?o.jsx(B,{component:"span",color:"error",children:t.error}):t.edit?t.loading?o.jsx(te,{size:16}):o.jsx(W,{size:"small",onClick:p(v),sx:{mr:-1},children:o.jsx(I,{icon:po})}):null,[t.error,t.edit,t.loading]);return o.jsxs(x,{sx:{display:"flex",gap:1.5,width:"100%",alignItems:{xs:"flex-start",md:"center"},flexDirection:{xs:"column",md:"row"}},children:[o.jsxs(Ce,{sx:{borderRadius:2,"&.Mui-disabled":{backgroundColor:m.backgroundsBgField}},disabled:!t.edit||t.loading,size:"small",value:t.type,onChange:r=>{t.type=r.target.value},children:[o.jsx(Z,{value:"api",children:c("webhook.url")}),o.jsx(Z,{value:"slack",children:c("webhook.slack")})]}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5,width:"100%"},children:[o.jsx(yo,{sx:{flex:1,".MuiInputBase-root":{borderRadius:2,"&.Mui-disabled":{backgroundColor:m.backgroundsBgField}}},disabled:!t.edit||t.loading,fullWidth:!0,size:"small",required:!0,value:t.url,onChange:r=>{t.url=r.target.value,u()},error:!!t.error,InputProps:{endAdornment:o.jsx(ko,{position:"end",children:s})}}),o.jsx(x,{sx:{display:"flex",gap:.5},children:t.edit?o.jsxs(o.Fragment,{children:[o.jsx(W,{color:"success",onClick:p((...r)=>{i(...r),t.edit=!1}),sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:Ue})}),o.jsx(W,{color:"error",onClick:f,sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:ze})})]}):o.jsxs(o.Fragment,{children:[o.jsx(W,{onClick:()=>{t.edit=!0},sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:uo})}),o.jsx(W,{color:"error",onClick:()=>{l({type:t.type,url:t.url})},sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`},children:o.jsx(I,{icon:xo})})]})})]})]})}function Y({title:e,description:l,value:i,onChange:g}){return o.jsx(ke,{checked:i,labelProps:{label:o.jsxs(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:[e,l]})},size:"small",onChange:g})}function zo({user:e}){var p,s;const{locale:l}=U(),i=y((r,b={})=>L(D,r,l,"en",b)),g=V({showAdd:!1}),a=ee(async()=>await F.user.getUserNotificationConfig(),{refreshDeps:[e],loadingDelay:300}),d=k(()=>{var r;return{wallet:!0,email:!0,phone:!1,push:!0,...((r=a==null?void 0:a.data)==null?void 0:r.notifications)||{}}},[(p=a==null?void 0:a.data)==null?void 0:p.notifications]),h=k(()=>{var r;return((r=a==null?void 0:a.data)==null?void 0:r.webhooks)||[]},[(s=a==null?void 0:a.data)==null?void 0:s.webhooks]),n=y(async r=>{try{await F.user.saveUserNotificationConfig(r),$.success(i("saveSuccess")),a.run()}catch(b){$.error(oe(b))}}),c=y(async(r,b)=>{await n({notifications:{[r]:b}})}),t=async r=>{try{await F.user.testNotificationWebhook(r),$.success(i("webhookTested"))}catch(b){$.error(oe(b))}},u=y(async r=>{await n({webhooks:h.filter((b,j)=>j!==r)})}),f=y(async(r,b)=>{await n({webhooks:h.map((j,C)=>C===r?b:j)})}),v=y(async r=>{await n({webhooks:[...h,r]}),g.showAdd=!1});return a.error?o.jsx(Co,{severity:"error",children:a.error.message}):a.loading||!a.data?o.jsx(x,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px"},children:o.jsx(te,{})}):o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2},children:[o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:[o.jsx(Y,{value:d.wallet,title:i("walletNotification"),onChange:r=>c("wallet",r.target.checked),description:xe(e)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:xe(e)})}),o.jsx(Y,{value:d.email,onChange:r=>c("email",r.target.checked),title:i("emailNotification"),description:(e==null?void 0:e.email)&&o.jsx(B,{component:"span",color:"text.secondary",fontSize:13,children:e==null?void 0:e.email})}),o.jsx(Y,{value:d.push,title:i("pushNotification"),onChange:r=>c("push",r.target.checked)})]}),o.jsx(Le,{}),o.jsxs(Po,{spacing:1.5,useFlexGap:!0,direction:"column",alignItems:"start",children:[h.map((r,b)=>o.jsx(me,{onTest:t,onDelete:()=>u(b),onSave:(...j)=>f(b,...j),type:r.type,url:r.url,edit:!1},`${b}_${r.url}`)),g.showAdd&&o.jsx(me,{onTest:t,onCancel:()=>{g.showAdd=!1},onSave:(...r)=>v(...r),edit:!0},"add"),o.jsx(re,{variant:"outlined",size:"small",sx:{color:m.foregroundsFgBase,borderColor:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutral,"&:hover":{borderColor:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutralHover},py:.5,borderRadius:2},startIcon:o.jsx(I,{icon:ho}),onClick:()=>{g.showAdd=!0},children:i("addWebhook")})]})]})}function Lo({configList:e,onSave:l}){const[i,g]=G.useState(e),{locale:a}=U(),d=y((n,c={})=>L(D,n,a,"en",c)),h=y(async(n,c)=>{try{const t=await F.user.saveUserPrivacyConfig({[n]:!c});g(i.map(u=>({...u,value:(t==null?void 0:t[u.key])??u.value}))),$.success(d("saveSuccess")),l("privacy")}catch(t){$.error(oe(t))}});return o.jsx(x,{sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"start",".MuiFormControlLabel-root":{gap:1,m:0,flexDirection:{xs:"row-reverse",md:"row"},width:{xs:"100%",md:"unset"}},".MuiSwitch-track":{borderRadius:"100vw"},".MuiSwitch-thumb":{borderRadius:"100%"},".MuiSwitch-root.MuiSwitch-sizeSmall":{height:"20px",width:"36px",".MuiSwitch-thumb":{width:"16px",height:"16px"}}},children:i.map(n=>o.jsx(ke,{checked:!n.value,labelProps:{label:o.jsx(B,{color:"text.primary",sx:{fontSize:14,display:"flex",flexFlow:"wrap",columnGap:1,flex:1},children:d("toPublic",{name:n.name})})},size:"small",onChange:c=>h(n.key,c.target.checked)},n.key))})}function Do({item:e}){var r,b,j,C,q;const{confirmApi:l,confirmHolder:i}=we(),g=V({loading:!1}),{locale:a}=U(),d=y((T,A={})=>L(D,T,a,"en",A)),{session:h}=G.useContext(ne),{bindOAuth:n,unbindOAuth:c,setBaseUrl:t,baseUrl:u}=h.useOAuth(),f={[P.AUTH0]:je,[P.APPLE]:Ee,[P.GITHUB]:Me,[P.GOOGLE]:Fe},v=k(()=>f[e==null?void 0:e.provider],[e==null?void 0:e.provider]),p=k(()=>De[e==null?void 0:e.provider]||"unknown",[e==null?void 0:e.provider]),s=y(async()=>{try{g.loading=!0,await new Promise((T,A)=>{var R;if(e!=null&&e._bind)l.open({title:d("thirdPartyLogin.confirmUnbind",{name:p}),content:d("thirdPartyLogin.confirmUnbindDescription",{name:p}),confirmButtonText:d("common.confirm"),cancelButtonText:d("common.cancel"),onConfirm(E){c({session:h,connectedAccount:{..._e(e,["did","pk"]),showProvider:e.provider,provider:e._rawProvider}}).then(T).catch(A),E()},onCancel:T});else{const E=u,Q=window==null?void 0:window.blocklet;let _="/";const H=Oe(Q),O=We(Q);H&&(O!=null&&O.appPid)&&((R=h==null?void 0:h.user)!=null&&R.sourceAppPid)&&(_=O.appUrl),t(_),n({session:h,oauthItem:{...e,provider:e._rawProvider}}).then(T).catch(A).finally(()=>{t(E)})}})}catch(T){console.error(`Failed to ${e!=null&&e._bind?"unbind":"bind"} oauth account`,T)}finally{g.loading=!1}});return o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:{borderRadius:2,border:`1px solid ${m.strokeBorderBase}`,background:m.backgroundsBgField,display:"flex",alignItems:"center",py:1,px:1.5,gap:.75,fontSize:"14px",lineHeight:1,overflow:"hidden"},children:[o.jsx(x,{component:I,icon:v,width:"1em",height:"1em",sx:{flexShrink:0,fontSize:16}}),o.jsx(x,{sx:{flex:1},children:p}),o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:.5},children:[o.jsx(x,{sx:{flex:1,textOverflow:"ellipsis",overflow:"hidden",lineHeight:"normal"},children:((r=e.userInfo)==null?void 0:r.email)||e.did}),(b=e.userInfo)!=null&&b.email?o.jsx(he,{title:o.jsx(o.Fragment,{children:o.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(ve,{size:36,variant:"circle",shape:"circle",src:(j=e.userInfo)==null?void 0:j.picture,did:e.did}),o.jsxs(x,{children:[o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(C=e.userInfo)==null?void 0:C.name}),o.jsx(B,{sx:{whiteSpace:"normal",wordBreak:"break-all",fontSize:"0.9rem"},children:(q=e.userInfo)==null?void 0:q.email})]})]})}),children:o.jsx(x,{component:I,icon:fo,color:m.textSubtitle,fontSize:16,sx:{cursor:"pointer",flexShrink:0}})}):null]})]}),o.jsx(he,{title:e._mainProvider?d("thirdPartyLogin.mainProviderCantRemove"):"",children:o.jsx(x,{children:o.jsx(re,{variant:"outlined",size:"small",sx:{color:e!=null&&e._bind?m.red:m.foregroundsFgBase,borderColor:e!=null&&e._bind?m.red:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutral,"&:hover":{borderColor:e!=null&&e._bind?m.red:m.strokeBorderBase,backgroundColor:m.buttonsButtonNeutralHover},py:.5,borderRadius:2,fontWeight:500,whiteSpace:"nowrap"},fullWidth:!0,startIcon:g.loading?null:o.jsx(I,{icon:go}),onClick:s,disabled:e._mainProvider,loading:g.loading,children:e!=null&&e._bind?d("thirdPartyLogin.disconnect"):d("thirdPartyLogin.connect")})})}),i]})}function Eo({user:e}){const{session:l}=G.useContext(ne),[i,g]=G.useState({}),{getOAuthConfigs:a}=l.useOAuth();$e(async()=>{const n=await a({sourceAppPid:e==null?void 0:e.sourceAppPid});g(n)},[e==null?void 0:e.sourceAppPid]);const d=k(()=>Object.keys(i).map(c=>({...i[c],provider:c})).filter(c=>c.enabled),[i]),h=k(()=>{const n=He(e);let c=!1,t="",u=Ne(e);const f=n.find(p=>p.provider===P.AUTH0);return f&&(f.id.startsWith("google-oauth2|")&&(n.some(p=>p.provider==="google")||(c=!0,t=P.GOOGLE,u===P.AUTH0&&(u=P.GOOGLE))),f.id.startsWith("appleid|")&&(n.some(p=>p.provider===P.APPLE)||(c=!0,t=P.APPLE,u===P.AUTH0&&(u=P.APPLE))),f.id.startsWith("github|")&&(n.some(p=>p.provider===P.GITHUB)||(c=!0,t=P.GITHUB,u===P.AUTH0&&(u=P.GITHUB)))),d.map(p=>{if(p.provider===P.AUTH0&&c)return null;const s=c&&p.provider===t?n.find(r=>r.provider===P.AUTH0):n.find(r=>r.provider===p.provider);return s?{...p,provider:p.provider,did:s.did,pk:s.pk,userInfo:s.userInfo,_bind:!0,_rawProvider:s.provider,_mainProvider:p.provider===u}:{...p,provider:p.provider,_rawProvider:p.provider,_mainProvider:p.provider===u}}).filter(Boolean).sort((p,s)=>(p==null?void 0:p.order)!==void 0&&(s==null?void 0:s.order)!==void 0?p.order-s.order:(p==null?void 0:p.order)!==void 0?-1:1)},[e==null?void 0:e.connectedAccounts,d]);return o.jsx(x,{sx:{gap:1,display:"grid",gridTemplateColumns:"1fr min-content"},children:h.map(n=>o.jsx(Do,{item:n},n==null?void 0:n.provider))})}const Mo=[{label:"English",value:"en"},{label:"中文",value:"zh"}];function Fo({user:e,onSave:l}){const{locale:i,changeLocale:g}=U(),a=y((n,c={})=>L(D,n,i,"en",c)),d=V({locale:e.locale,loading:!1}),h=y(async n=>{try{const{value:c}=n.target;d.loading=!0,await Promise.all([F.user.saveProfile({locale:c}),Ve(350)]),await l("profile"),g(c),d.locale=c}finally{d.loading=!1}});return o.jsxs(x,{sx:{gap:1,display:"grid",alignItems:"center",gridTemplateColumns:{xs:"1fr",sm:"max-content 1fr"}},children:[o.jsx(x,{children:a("commonSetting.locale")}),o.jsxs(x,{children:[o.jsx(Ge,{color:"primary",sx:{visibility:d.loading?"visible":"hidden",height:2}}),o.jsx(Ce,{fullWidth:!0,value:d.locale,onChange:h,size:"small",children:Mo.map(n=>o.jsx(Z,{value:n.value,children:n.label}))})]})]})}function _o({user:e,settings:l,onSave:i,...g}){const{locale:a}=U(),d=y((f,v={})=>L(D,f,a,"en",v)),h=k(()=>((l==null?void 0:l.userCenterTabs)||[]).map(v=>({key:v.value,name:v.label,value:v.protected})),[l==null?void 0:l.userCenterTabs]),n=k(()=>{var f;return[{label:d("commonSetting.title"),value:"common",content:o.jsx(Fo,{user:e,onSave:i})},{label:d("notificationManagement"),value:"notification",content:o.jsx(zo,{user:e})},{label:d("thirdPartyLogin.title"),value:"thirdPartyLogin",content:o.jsx(Eo,{user:e})},{label:d("privacyManagement"),value:"privacy",content:o.jsx(Lo,{configList:h,onSave:i})},((f=e==null?void 0:e.didSpace)==null?void 0:f.endpoint)&&{label:d("storageManagement"),value:"storage",content:o.jsx(mo,{children:o.jsx(bo,{})})},{label:d("sessionManagement"),value:"session",content:o.jsx(So,{user:e})}].filter(Boolean)},[e,h]),c=V({tab:n[0].value}),t=k(()=>n.find(f=>f.value===c.tab),[c.tab,n]),u=y(f=>{c.tab=f});return t&&o.jsxs(x,{...g,sx:{...g==null?void 0:g.sx,minWidth:{md:500},maxWidth:"100%"},children:[o.jsx(ye,{variant:"card",tabs:n,current:t.value,onChange:u}),o.jsx(x,{mt:2.5,children:t.content})]})}function Oo({children:e,notLoginContent:l=null,currentTab:i,contentProps:g={},disableAutoRedirect:a=!1,autoPopupSetting:d=!1,hideFooter:h=!1,headerProps:n={},footerProps:c={},userDid:t=void 0,stickySidebar:u=!1}){var ae,ie,se,le,ce,de;const{locale:f}=U(),v=y((w,S={})=>L(D,w,f,"en",S)),p=G.useContext(ne),s=p==null?void 0:p.session,r=k(()=>{var z;if(t)return t;const w=window.location.href,S=qe(w);return S!=null&&S.did?Array.isArray(S.did)?S.did[0]:S.did:(z=s==null?void 0:s.user)==null?void 0:z.did},[(ae=s==null?void 0:s.user)==null?void 0:ae.did,t]),b=k(()=>{var w;return s!=null&&s.user?r===((w=s==null?void 0:s.user)==null?void 0:w.did):!1},[r,(ie=s==null?void 0:s.user)==null?void 0:ie.did]),j=ee(async()=>{if(await Qe(()=>s==null?void 0:s.initialized),b)return s.user;if(r)return F.user.getUserPublicInfo({did:r})},{refreshDeps:[r,b,s==null?void 0:s.initialized,s==null?void 0:s.user]}),C=ee(async()=>j.data&&i?await F.user.getUserPrivacyConfig({did:r}):null,{refreshDeps:[r,j.data,i],loadingDelay:300}),{confirmHolder:q,confirmApi:T}=we({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1200},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),A=k(()=>{const w=Xe(window.blocklet);try{return to(w)}catch(S){return console.error("Failed to format blocklet info",S,w),w}},[]),R=k(()=>{var z;const w=((z=A==null?void 0:A.navigation)==null?void 0:z.userCenter)||[];return(ro(w,f)||[]).map(M=>{var pe;const X=M._rawLink??M.link;return{value:X,label:M.title,url:M.link,protected:((pe=C==null?void 0:C.data)==null?void 0:pe[X])??!1}})},[A,j.data,C==null?void 0:C.data,f]),E=k(()=>R.find(w=>w.value===i),[R]),Q=y(w=>{const S=R.find(z=>z.value===w);S&&(window.location.href=fe(S.url,{did:b?void 0:r}))}),_=k(()=>o.jsx(_o,{user:j.data,settings:{userCenterTabs:R},onSave:async w=>w==="privacy"?(await C.runAsync(),C.data):(w==="profile"&&await s.refresh(),null)}),[j.data,R,C.data,C.runAsync]),H=y(()=>{T.open({title:v("settings"),content:_,showCancelButton:!1,confirmButtonText:v("done"),onConfirm:T.close})});Je(()=>{T.update({content:_})},[_]),Ke(()=>{d&&H()});const O=k(()=>{var w,S,z;if(j.loading||s.loading)return null;if(j.error){const X={message:((S=(w=j.error.response)==null?void 0:w.data)==null?void 0:S.error)||j.error.message||"error occurred"};return o.jsx(x,{sx:{width:"100%"},children:o.jsx(vo,{error:X})})}return!r&&!j.data?l||o.jsx(x,{sx:{width:"100%"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:1},children:[o.jsx(K,{children:v("viewAfterLogin")}),o.jsx(re,{size:"small",variant:"contained",onClick:()=>s.login(),children:v("loginNow")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs(x,{sx:{flex:1,overflow:"hidden"},children:[(z=j==null?void 0:j.data)!=null&&z.fullName?o.jsx(B,{variant:"h4",sx:{py:1.5,fontWeight:700,display:{xs:"none",md:"block"}},children:j.data.fullName}):null,o.jsx(ge,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:H,user:j.data,showFullDid:!1,sx:{display:{md:"none",xs:"block"},mb:1.5}}),R.length>0&&i?o.jsxs(x,{sx:{overflow:"auto",padding:"1px"},children:[o.jsx(ye,{variant:"line",tabs:R,current:i,onChange:Q,sx:{mb:1.5}}),!C.data||C.loading?o.jsx(x,{sx:{height:"100%",minWidth:"160px",minHeight:"160px",display:"flex",justifyContent:"center",alignItems:"center"},children:o.jsx(te,{sx:{color:m.primary100}})}):o.jsx(o.Fragment,{children:E!=null&&E.protected&&!b?o.jsx(x,{children:o.jsx(K,{children:v("underProtected")})}):o.jsx(o.Fragment,{children:e&&o.jsx(x,{...g,children:e})})})]}):null,R.length===0?o.jsx(x,{sx:{display:{xs:b?"none":"block",md:"block"},py:3},children:o.jsx(K,{children:v("emptyContent")})}):null]}),o.jsx(x,{sx:{display:{xs:"none",md:"block"},width:"1px",my:-3,backgroundColor:m.strokeSep}}),o.jsx(x,{sx:{width:{sx:"100%",md:420},maxWidth:"100%",position:"relative"},children:o.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2.5,position:{xs:"static",md:u?"sticky":"static"},top:M=>u?M.spacing(3):"unset"},children:[o.jsx(ge,{isMyself:b,switchPassport:s.switchPassport,switchProfile:s.switchProfile,openSettings:H,user:j.data,sx:{display:{xs:"none",md:"block"}}}),o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v(b?"myInfo":"hisInfo")}),o.jsx(Ao,{user:j.data,isMySelf:b})]}),b?o.jsxs(x,{children:[o.jsx(B,{sx:{fontWeight:600,mb:1.5},children:v("passport")}),o.jsx(Uo,{user:j.data})]}):null]})})]})},[j,R,b,E,C,i,u]);if(!a&&!i&&((le=(se=A==null?void 0:A.navigation)==null?void 0:se.userCenter)==null?void 0:le.length)>0){const w=(de=(ce=A==null?void 0:A.navigation)==null?void 0:ce.userCenter[0])==null?void 0:de.link;return w&&window.location.replace(fe(w,{did:b?void 0:r})),null}return o.jsxs(x,{sx:{backgroundColor:m.backgroundsBgSubtitle,minHeight:"100vh",display:"flex",flexDirection:"column"},children:[o.jsx(eo,{bordered:!0,...n}),o.jsxs(x,{flex:1,sx:{width:"100%",maxWidth:1200,margin:"0 auto",p:3,display:"flex",alignItems:"stretch",flexDirection:{xs:"column",md:"row"},gap:2.5},children:[O,q]}),h?null:o.jsx(oo,{bordered:!0,...c})]})}function It(){const l=Ye().tab,{t:i}=U();return o.jsxs(o.Fragment,{children:[o.jsx(Ze,{children:o.jsx("title",{children:i("pageTitle.userCenter")})}),o.jsx(Oo,{disableAutoRedirect:l==="settings",autoPopupSetting:l==="settings"})]})}export{It as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as
|
|
1
|
+
import{f as B,j as a,B as m,A as q,a as R,T as S,bc as G,M as L,g as H,u as J,bL as Y,h as E,O as K,b as O,bE as k,bB as Q,dM as U}from"./index-CZq1iuqc.js";import{D as X}from"./index-B_Mn_6jy.js";import{U as T,d as F}from"./resource-dialog-Dyf09u0L.js";class Z extends Error{constructor(n){super(),this.name="AbortError",this.message=n}}const N=e=>globalThis.DOMException===void 0?new Z(e):new DOMException(e),M=e=>{const n=e.reason===void 0?N("This operation was aborted."):e.reason;return n instanceof Error?n:N(n)};async function ee(e,n,{concurrency:s=Number.POSITIVE_INFINITY,stopOnError:i=!0,signal:u}={}){return new Promise((w,C)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof n!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(s)||s===Number.POSITIVE_INFINITY)&&s>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${s}\` (${typeof s})`);const r=[],A=[],g=new Map;let c=!1,x=!1,v=!1,y=0,b=0;const D=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),h=t=>{c=!0,x=!0,C(t)};u&&(u.aborted&&h(M(u)),u.addEventListener("abort",()=>{h(M(u))}));const I=async()=>{if(x)return;const t=await D.next(),o=b;if(b++,t.done){if(v=!0,y===0&&!x){if(!i&&A.length>0){h(new AggregateError(A));return}if(x=!0,g.size===0){w(r);return}const l=[];for(const[d,p]of r.entries())g.get(d)!==z&&l.push(p);w(l)}return}y++,(async()=>{try{const l=await t.value;if(x)return;const d=await n(l,o);d===z&&g.set(o,d),r[o]=d,y--,await I()}catch(l){if(i)h(l);else{A.push(l),y--;try{await I()}catch(d){h(d)}}}})()};(async()=>{for(let t=0;t<s;t++){try{await I()}catch(o){h(o);break}if(v||c)break}})()})}const z=Symbol("skip");async function te(e,n){return ee(e,s=>s(),n)}function oe({user:e,sessionUser:n}){const s=B(()=>{var i;return(i=(e==null?void 0:e.passports)||[])==null?void 0:i.find(u=>u.name===n.role)},[e==null?void 0:e.passports,n==null?void 0:n.role]);return a.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(q,{size:40,variant:"circle",shape:"circle",src:n.avatar,did:n.did,sx:{flexShrink:0}}),a.jsxs(m,{sx:{flex:1,overflow:"hidden"},children:[a.jsxs(m,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(R,{title:n.fullName,children:a.jsx(S,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:n.fullName})}),a.jsx(G,{label:(s==null?void 0:s.title)||(s==null?void 0:s.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:L.textBase,borderColor:L.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),a.jsx(R,{title:n.email,children:a.jsx(S,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.email})})]})]})}const ne={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},V="Reserved IP",P="ip-region-cache";async function re(e){const n=`https://ipapi.co/${e}/json/`,i=await(await fetch(n)).json();let u="";return i.error?i.reserved&&(u=V):u=[i.country_name,i.region,i.city].filter(Boolean).join("/"),u}async function se(e){const n=`https://api.ip.sb/geoip/${e}`,i=await(await fetch(n)).json();let u="";return i.error?i.reserved&&(u=V):u=[i.country,i.region,i.city].filter(Boolean).join("/"),u}async function ie(e){let n="",s={};try{const i=localStorage.getItem(P);i&&(s=JSON.parse(i))}catch{s={}}if(s[e])n=s[e];else{try{n=await se(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!n)try{n=await re(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(n){const i=Object.keys(s);i.length>100&&delete s[i[0]],s[e]&&delete s[e],s[e]=n,localStorage.setItem(P,JSON.stringify(s))}return n}async function ae(e){return Promise.all(e.map(n=>ie(n)))}const W=e=>new T(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[T.BROWSER.NAME,T.BROWSER.VERSION]]}).getResult();function de({user:e,showAction:n=!0,showUser:s=!0}){const i=H(),{locale:u}=J(),{confirmApi:w,confirmHolder:C}=Y(),r=E((t,o={})=>Q(ne,t,u,"en",o)),A=E(async()=>{let t=e==null?void 0:e.userSessions;t||(t=await F.userSession.getUserSessions({did:e.did}));try{const l=t==null?void 0:t.map((f,j)=>[j,f.lastLoginIp]).filter(f=>!!f[1]),d=l==null?void 0:l.map(f=>f[1]),p=await ae(d);for(let f=0;f<p.length;f++){const j=p[f],_=l[f],$=t[_[0]];$.ipRegion=j}}catch(l){console.warn("Failed to convert ip to region"),console.error(l)}const o=new Date().getTime();return U(t,l=>l.visitorId===i?-1:o-new Date(l.updatedAt).getTime())}),g=K(A),c=B(()=>g.data||[],[g.data]),x=B(()=>c.reduce((t,o)=>(t[o.lastLoginIp]=o.ipRegion,t),{}),[c]),v=E(({visitorId:t})=>{w.open({title:r("logoutThisSession"),content:r("logoutThisSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{await F.user.logout({visitorId:t}),g.refresh(),w.close()}})}),y=B(()=>c.filter(o=>o.visitorId!==i),[c]),b=E(()=>{w.open({title:r("logoutAllSession"),content:r("logoutAllSessionConfirm"),confirmButtonText:r("confirm"),cancelButtonText:r("cancel"),onConfirm:async()=>{const t=y.map(o=>()=>F.user.logout({visitorId:o.visitorId}));await te(t,{concurrency:3,stopOnError:!1}),g.refresh(),w.close()}})}),D=[];n&&D.push(a.jsx(R,{title:r("logoutAllTips"),children:a.jsx(O,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:b,disabled:y.length===0,children:r("logoutAll")})},"logoutAll"));const h=B(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),I=[{label:r("platform"),name:"platform",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return a.jsx(m,{children:[(d=l.os)==null?void 0:d.name,(p=l.os)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("deviceType"),name:"deviceType",options:{customBodyRenderLite:t=>{var d,p;const o=c[t],l=W(o.ua);return a.jsx(m,{children:[(d=l.browser)==null?void 0:d.name,(p=l.browser)==null?void 0:p.version].filter(Boolean).join("/")||r("unknown")})}}},{label:r("walletOS"),name:"walletOS",options:{customBodyRenderLite:t=>{var l;const o=c[t];return a.jsx(m,{children:((l=o.extra)==null?void 0:l.walletOS)||r("unknown")})}}},s&&{label:r("user"),name:"user",options:{customBodyRenderLite:t=>{const o=c[t];return a.jsx(m,{sx:{minWidth:150,maxWidth:250},children:a.jsx(oe,{sessionUser:o.user,user:e})})}}},{label:r("createdAt"),name:"createdAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.createdAt?a.jsx(k,{value:o.createdAt,relativeRange:3*86400*1e3,locale:u}):r("unknown")}}},{label:r("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:t=>{const o=c[t];return o.status==="expired"?r("expired"):a.jsx(k,{value:o.updatedAt,relativeRange:3*86400*1e3,locale:u})}}},{label:r("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:t=>{const o=c[t];return a.jsx(m,{children:x[o.lastLoginIp]?a.jsxs(a.Fragment,{children:[a.jsx(S,{variant:"body2",children:x[o.lastLoginIp]}),a.jsx(S,{variant:"body2",color:"grey",children:o.lastLoginIp||r("unknown")})]}):a.jsx(S,{children:o.lastLoginIp||r("unknown")})})}}},n&&{label:r("actions"),name:"actions",options:{customBodyRenderLite:t=>{const o=c[t];return a.jsx(m,{children:a.jsx(O,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:i===o.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>v({visitorId:o.visitorId}),children:o.status==="expired"?r("remove"):i===o.visitorId?r("currentSession"):r("logout")})})}}}].filter(Boolean);return a.jsxs(m,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[C,a.jsx(X,{locale:u,data:c,columns:I,customButtons:D,options:h,loading:g.loading})]})}export{de as U};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b4 as s,f1 as h,f2 as l,a9 as P,E as u}from"./index-
|
|
1
|
+
import{b4 as s,f1 as h,f2 as l,a9 as P,E as u}from"./index-CZq1iuqc.js";const d=h;var E=(e,r)=>d(e)===d(r);const c=s(E),x=(e,r)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${r("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${r("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(r("router.validation.didRequired"));return null},R=(e,r)=>{const t=x(e,r);return t||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(r("router.validation.pathPrefixTooLong",{length:150})):null:new Error(r("router.validation.pathPrefixCannotBeEmpty")))},v=({params:e,blocklets:r,blocklet:t,locale:o="en"})=>{if(t){let i=(t.children||[]).find(f=>l.hasStartEngine(f.meta)&&c(f.mountPoint,e.pathPrefix));if(t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i)return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[o]}const a=r.find(i=>i.meta.did===e.did);if(!a)return"";const n=a.meta.interfaces.find(i=>i.type==="web");return n&&n.prefix!==P.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==n.prefix?{zh:`该 blocklet 只能挂载在 ${n.prefix}`,en:`This blocklet can only be mounted on ${n.prefix}`}[o]:""},T=e=>{if(!e||typeof e!="string")return e;let r=e.trim();try{return r=r.toLowerCase(),r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r}catch(t){return console.error("format domain failed",t),r}};export{R as a,T as p,v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as _,aw as i,a2 as e,j as r,ax as a}from"./index-
|
|
1
|
+
import{av as _,aw as i,a2 as e,j as r,ax as a}from"./index-CZq1iuqc.js";const u={en:_(i),ar:()=>e(()=>import("./ar-DAUz5_Ej.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-JXmbvsP-.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-D_uIRKnu.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-BocLckhV.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-Bn38t0nX.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-DuC9mOr4.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-B2J7-ZGM.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-TAMb2jXz.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-DAmg1w9n.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-BqJl8PYs.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-CGcwcZWK.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-lYszmNr_.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-BkGc-T4k.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-DMGrvlv0.js"),[]).then(t=>_(t.default))};function E(t){return function(o){return r.jsx(a,{translations:u,children:r.jsx(t,{...o})})}}export{E as w};
|
package/dist/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
padding: 0;
|
|
14
14
|
}
|
|
15
15
|
</style>
|
|
16
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
16
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-CZq1iuqc.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/index-CCovGSMB.css">
|
|
18
18
|
<link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
|
|
19
19
|
|
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function $(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=$(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=$(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const r=s.clone(),a={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},i=e?e(a):a,n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
-
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-BWh_6uO-.js"},{"revision":null,"url":"assets/actions-DLO5dlyV.js"},{"revision":null,"url":"assets/Add-C5zWPWbi.js"},{"revision":null,"url":"assets/add-component-core-C3OBXrft.js"},{"revision":null,"url":"assets/add-component-core-CxkJY_14.css"},{"revision":null,"url":"assets/add-resource-DdlMvNYe.js"},{"revision":null,"url":"assets/AddBox-C4A7DDm4.js"},{"revision":null,"url":"assets/addon-1j40gf6h.js"},{"revision":null,"url":"assets/Alert-D91U5h--.js"},{"revision":null,"url":"assets/analytics-DVd3xO2s.js"},{"revision":null,"url":"assets/api-C37A8mCN.js"},{"revision":null,"url":"assets/ar-B7BWKAT0.js"},{"revision":null,"url":"assets/ar-DAUz5_Ej.js"},{"revision":null,"url":"assets/ArrowDropDown-Cq32DOpt.js"},{"revision":null,"url":"assets/audit-logs-CJh_A9OZ.js"},{"revision":null,"url":"assets/Avatar-XXXVLUFk.js"},{"revision":null,"url":"assets/button-2f4tapJk.js"},{"revision":null,"url":"assets/ButtonGroup-k3SZjeUa.js"},{"revision":null,"url":"assets/CheckCircle-CbXxG2JL.js"},{"revision":null,"url":"assets/ChevronRight-BKcNccG9.js"},{"revision":null,"url":"assets/click-to-copy-CNizZfqS.js"},{"revision":null,"url":"assets/Close-CdBP5F4J.js"},{"revision":null,"url":"assets/CloseOutlined-Crg0BDr4.js"},{"revision":null,"url":"assets/complete-CTg4NtH_.js"},{"revision":null,"url":"assets/component-DyLPRRkR.js"},{"revision":null,"url":"assets/config-BBl1Og8k.js"},{"revision":null,"url":"assets/config-Cl9yfIWh.js"},{"revision":null,"url":"assets/config-navigation-RZ9QpkFv.js"},{"revision":null,"url":"assets/config-space-DTE8U19b.js"},{"revision":null,"url":"assets/confirm-CD6_CMUq.js"},{"revision":null,"url":"assets/connect-B-qpRVvn.js"},{"revision":null,"url":"assets/connect-DDELE721.js"},{"revision":null,"url":"assets/connect-to-DMAPIkc9.js"},{"revision":null,"url":"assets/content-layout-CK5XQfmW.js"},{"revision":null,"url":"assets/dashboard-BOQEjKT8.js"},{"revision":null,"url":"assets/de-ELpbFffa.js"},{"revision":null,"url":"assets/de-JXmbvsP-.js"},{"revision":null,"url":"assets/Delete-DlfFien6.js"},{"revision":null,"url":"assets/DeleteOutline-De4xAGvs.js"},{"revision":null,"url":"assets/did-address-GzRMEyk7.js"},{"revision":null,"url":"assets/domain-C3D9kcXD.js"},{"revision":null,"url":"assets/domain-list-BRcBrFVB.js"},{"revision":null,"url":"assets/Done-DO1tfb2_.js"},{"revision":null,"url":"assets/Download-CVseEK0o.js"},{"revision":null,"url":"assets/Edit-DOJCHJ5p.js"},{"revision":null,"url":"assets/EditIcon-Bg4AkV00.js"},{"revision":null,"url":"assets/Error-CQmWghPs.js"},{"revision":null,"url":"assets/es-4F6iKSAU.js"},{"revision":null,"url":"assets/es-D_uIRKnu.js"},{"revision":null,"url":"assets/exchange-passport-B9ZrHETZ.js"},{"revision":null,"url":"assets/ExpandMore-DD2GykPj.js"},{"revision":null,"url":"assets/fallback-rg9fefdL.js"},{"revision":null,"url":"assets/FilterList-QafrkXbd.js"},{"revision":null,"url":"assets/format-error-B3RYdl6q.js"},{"revision":null,"url":"assets/FormControl-Kt4xANtI.js"},{"revision":null,"url":"assets/FormControlLabel-B6ISinfm.js"},{"revision":null,"url":"assets/FormGroup-BEMyIGSj.js"},{"revision":null,"url":"assets/fr-BocLckhV.js"},{"revision":null,"url":"assets/fr-DOPIs7lg.js"},{"revision":null,"url":"assets/fuel-BDMvUxVC.js"},{"revision":null,"url":"assets/fullpage-DFMbQYE_.js"},{"revision":null,"url":"assets/Google-DGP2JaKw.js"},{"revision":null,"url":"assets/hi-Bn38t0nX.js"},{"revision":null,"url":"assets/hi-Dzp-4zoH.js"},{"revision":null,"url":"assets/Hidden-kl5Tbw1B.js"},{"revision":null,"url":"assets/home-YZ2dUhxo.js"},{"revision":null,"url":"assets/id-Bumv1FYl.js"},{"revision":null,"url":"assets/id-DuC9mOr4.js"},{"revision":null,"url":"assets/iframe-s25HWReH.js"},{"revision":null,"url":"assets/index-_y2ZXCMC.js"},{"revision":null,"url":"assets/index-5qacoeSv.js"},{"revision":null,"url":"assets/index-BCpZXkUS.js"},{"revision":null,"url":"assets/index-BEbMx7tF.js"},{"revision":null,"url":"assets/index-BfhVorqV.js"},{"revision":null,"url":"assets/index-BPSr4f2j.js"},{"revision":null,"url":"assets/index-BU9mgEVG.js"},{"revision":null,"url":"assets/index-Bva9FLKW.js"},{"revision":null,"url":"assets/index-CcddEj1V.js"},{"revision":null,"url":"assets/index-CCovGSMB.css"},{"revision":null,"url":"assets/index-Ce3CP3Jp.js"},{"revision":null,"url":"assets/index-CGXAjTXD.js"},{"revision":null,"url":"assets/index-CHbscbku.js"},{"revision":null,"url":"assets/index-CHJwugzh.js"},{"revision":null,"url":"assets/index-CscyFLCJ.js"},{"revision":null,"url":"assets/index-CvOK9BmX.js"},{"revision":null,"url":"assets/index-Cx1j9azw.js"},{"revision":null,"url":"assets/index-D12KUiCG.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-Db5U7Aba.js"},{"revision":null,"url":"assets/index-Dcp0-2H6.js"},{"revision":null,"url":"assets/index-DJLK29SJ.js"},{"revision":null,"url":"assets/index-DMq0_62n.js"},{"revision":null,"url":"assets/index-Dn7MhkOZ.js"},{"revision":null,"url":"assets/index-DOU4d3bN.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-DU3JORH0.css"},{"revision":null,"url":"assets/index-DU7-35nh.js"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-nyOsFIwy.js"},{"revision":null,"url":"assets/index-u_IDQFrq.js"},{"revision":null,"url":"assets/index-UmXxvIz7.js"},{"revision":null,"url":"assets/index-VRudjsk_.js"},{"revision":null,"url":"assets/index-WDF_phnR.js"},{"revision":null,"url":"assets/index-Xh4BYwzS.js"},{"revision":null,"url":"assets/index.es-BySfVRax.js"},{"revision":null,"url":"assets/index.esm-Cpbu1bqz.js"},{"revision":null,"url":"assets/InfoOutlined-BRuBRFbl.js"},{"revision":null,"url":"assets/InputAdornment-C5IWgB4u.js"},{"revision":null,"url":"assets/InputLabel-DbdmcDbJ.js"},{"revision":null,"url":"assets/invitation-ZiYOpo0m.js"},{"revision":null,"url":"assets/invite-CP_9mlTp.js"},{"revision":null,"url":"assets/issue-passport-OdsEQRgF.js"},{"revision":null,"url":"assets/item-B9vXmxNy.js"},{"revision":null,"url":"assets/ja-B2J7-ZGM.js"},{"revision":null,"url":"assets/ja-CqCu7wgc.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-InWevx1Y.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-RwPO5IMK.js"},{"revision":null,"url":"assets/ko-TAMb2jXz.js"},{"revision":null,"url":"assets/LastPage-DXISIPs8.js"},{"revision":null,"url":"assets/Launch-CDcio2Tm.js"},{"revision":null,"url":"assets/launch-result-message-Z1C1sG3K.js"},{"revision":null,"url":"assets/LaunchOutlined-D8a8pCOt.js"},{"revision":null,"url":"assets/layout-BJYUy5aS.js"},{"revision":null,"url":"assets/Link-DFzOJFD-.js"},{"revision":null,"url":"assets/list-header-7mHFR-6j.js"},{"revision":null,"url":"assets/ListItemText-Bnnk7Gbj.js"},{"revision":null,"url":"assets/LoadingButton-DGVicOWa.js"},{"revision":null,"url":"assets/localization-DH4Rcoxd.js"},{"revision":null,"url":"assets/LockIcon-CTWJWfSc.js"},{"revision":null,"url":"assets/log-D0ihnCPe.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-BJ99c8Da.js"},{"revision":null,"url":"assets/login-oauth-callback-DXPZbXE8.js"},{"revision":null,"url":"assets/logo-uploader-Cb8u4LYv.js"},{"revision":null,"url":"assets/Loop-CbV2fFUd.js"},{"revision":null,"url":"assets/lost-passport-PezCqF0f.js"},{"revision":null,"url":"assets/lottie-BCG4dny2.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreVert-er-bltGF.js"},{"revision":null,"url":"assets/notifications-CKxrvr1-.js"},{"revision":null,"url":"assets/open-window-CuGAzF2Z.js"},{"revision":null,"url":"assets/OpenInNew-Bu6iI6eA.js"},{"revision":null,"url":"assets/overview-BSBWgzbj.js"},{"revision":null,"url":"assets/page-header-C5ecJ6Qd.js"},{"revision":null,"url":"assets/Pagination-Dz7kgZlB.js"},{"revision":null,"url":"assets/permission-BEPRmEw3.js"},{"revision":null,"url":"assets/PlayArrow-2r36AAmk.js"},{"revision":null,"url":"assets/preact.module-B1z5cdvs.js"},{"revision":null,"url":"assets/preferences-knw56gSD.js"},{"revision":null,"url":"assets/pt-BwOCnpCh.js"},{"revision":null,"url":"assets/pt-DAmg1w9n.js"},{"revision":null,"url":"assets/publish-resource-D_KlfXTF.js"},{"revision":null,"url":"assets/QuestionMarkCircle-CoIXItlb.js"},{"revision":null,"url":"assets/RadioGroup-C7j1KJ7y.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-Di5TTO9l.js"},{"revision":null,"url":"assets/redux-tOVF_oDT.js"},{"revision":null,"url":"assets/resource-dialog-5vdlaAuh.js"},{"revision":null,"url":"assets/ru-BqJl8PYs.js"},{"revision":null,"url":"assets/ru-CBC11P4x.js"},{"revision":null,"url":"assets/Search-CMyGk9R2.js"},{"revision":null,"url":"assets/Select-BeNQ99oP.js"},{"revision":null,"url":"assets/selector-CNsCKDRb.js"},{"revision":null,"url":"assets/ServerLogo-D12k9g2u.js"},{"revision":null,"url":"assets/session-Cf-ZqG4P.js"},{"revision":null,"url":"assets/setup-CbG6rF4U.js"},{"revision":null,"url":"assets/shorten-label-CunJMulX.js"},{"revision":null,"url":"assets/Skeleton-FXGSJdkA.js"},{"revision":null,"url":"assets/slicedToArray-C9-uQLEN.js"},{"revision":null,"url":"assets/Slider-GjDHfyBj.js"},{"revision":null,"url":"assets/spaces-Dm4toCmL.js"},{"revision":null,"url":"assets/start-CrrzSOx-.js"},{"revision":null,"url":"assets/step-actions-BkxasUm3.js"},{"revision":null,"url":"assets/Stepper-BF6lz4ut.js"},{"revision":null,"url":"assets/studio-Cz2NXhoj.js"},{"revision":null,"url":"assets/switch-control-BOre_YDJ.js"},{"revision":null,"url":"assets/TextField-D3XEyFR4.js"},{"revision":null,"url":"assets/th-CGcwcZWK.js"},{"revision":null,"url":"assets/th-CzfAwl4e.js"},{"revision":null,"url":"assets/Toolbar-_9it32pJ.js"},{"revision":null,"url":"assets/toPropertyKey-hKuLU48H.js"},{"revision":null,"url":"assets/toUpper-6wIhNvu3.js"},{"revision":null,"url":"assets/transfer-DQPf7r9j.js"},{"revision":null,"url":"assets/uniqBy-C3O4Rmks.js"},{"revision":null,"url":"assets/unsubscribe-DhdgpWxi.js"},{"revision":null,"url":"assets/url-join-DH_b1eAH.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-gtr1x-_o.js"},{"revision":null,"url":"assets/use-mobile-CnnusHmf.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-6Zzjy7PW.js"},{"revision":null,"url":"assets/useFormControl-DUzGwbSY.js"},{"revision":null,"url":"assets/useLocalStorage-B-I-NsSz.js"},{"revision":null,"url":"assets/user-center-BXOQaeTd.js"},{"revision":null,"url":"assets/user-sessions-CdgU8G0J.js"},{"revision":null,"url":"assets/useSetState-Be-I2Gl-.js"},{"revision":null,"url":"assets/useSlot-LBVvloQJ.js"},{"revision":null,"url":"assets/util-CoWq6oMk.js"},{"revision":null,"url":"assets/vi-BDUtfRQR.js"},{"revision":null,"url":"assets/vi-lYszmNr_.js"},{"revision":null,"url":"assets/ViewList-BhIE_M4V.js"},{"revision":null,"url":"assets/wrap-locale-Cn1jipF7.js"},{"revision":null,"url":"assets/zh-BiD8p9-Q.js"},{"revision":null,"url":"assets/zh-DMGrvlv0.js"},{"revision":null,"url":"assets/zh-tw-BkGc-T4k.js"},{"revision":null,"url":"assets/zh-tw-DTnWxJQa.js"},{"revision":"f3e81570c3c5985dedf6eafff5c2fb75","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/access-control-D8X_8z7A.js"},{"revision":null,"url":"assets/actions-CbsTrVFd.js"},{"revision":null,"url":"assets/add-component-core-CATRvviC.js"},{"revision":null,"url":"assets/add-component-core-CxkJY_14.css"},{"revision":null,"url":"assets/Add-CY4Vajpf.js"},{"revision":null,"url":"assets/add-resource-B0nzFGxn.js"},{"revision":null,"url":"assets/AddBox-DeNDC_On.js"},{"revision":null,"url":"assets/addon-D0jt9co0.js"},{"revision":null,"url":"assets/Alert-X8Tf_Ya2.js"},{"revision":null,"url":"assets/analytics-wO1onAqc.js"},{"revision":null,"url":"assets/api-BFSOae_v.js"},{"revision":null,"url":"assets/ar-B7BWKAT0.js"},{"revision":null,"url":"assets/ar-DAUz5_Ej.js"},{"revision":null,"url":"assets/ArrowDropDown-B1ERiCZ6.js"},{"revision":null,"url":"assets/audit-logs-DDUnfrlt.js"},{"revision":null,"url":"assets/Avatar-DzypDi2F.js"},{"revision":null,"url":"assets/blocklet-storage-Bbhcz6In.js"},{"revision":null,"url":"assets/button-DTeWpy9g.js"},{"revision":null,"url":"assets/ButtonGroup-Yl1SMoBq.js"},{"revision":null,"url":"assets/CheckCircle-lTVG_pn6.js"},{"revision":null,"url":"assets/ChevronRight-yT0593W6.js"},{"revision":null,"url":"assets/click-to-copy-CaJFO5Kq.js"},{"revision":null,"url":"assets/Close-DJPwlagN.js"},{"revision":null,"url":"assets/CloseOutlined-D1ZA66gd.js"},{"revision":null,"url":"assets/complete-3uapgH3n.js"},{"revision":null,"url":"assets/component-BCvhjsjE.js"},{"revision":null,"url":"assets/config-DJ2yOOMa.js"},{"revision":null,"url":"assets/config-DRVy3XZK.js"},{"revision":null,"url":"assets/config-navigation-DRALpukx.js"},{"revision":null,"url":"assets/confirm-BzNK2mDA.js"},{"revision":null,"url":"assets/connect-BegmDQRh.js"},{"revision":null,"url":"assets/connect-BSe0CQFh.js"},{"revision":null,"url":"assets/connect-to-CsUlyY6l.js"},{"revision":null,"url":"assets/content-layout-7iVGY_ud.js"},{"revision":null,"url":"assets/dashboard-Dy_5eyk1.js"},{"revision":null,"url":"assets/de-ELpbFffa.js"},{"revision":null,"url":"assets/de-JXmbvsP-.js"},{"revision":null,"url":"assets/Delete-LnXfw8II.js"},{"revision":null,"url":"assets/DeleteOutline-yfbdyPMw.js"},{"revision":null,"url":"assets/did-address-01PnQBPQ.js"},{"revision":null,"url":"assets/domain-BXr1Jxdg.js"},{"revision":null,"url":"assets/domain-list-DRd4BKdS.js"},{"revision":null,"url":"assets/Done-CegxfXGS.js"},{"revision":null,"url":"assets/Download-CbdL3-JP.js"},{"revision":null,"url":"assets/Edit-mj0warXM.js"},{"revision":null,"url":"assets/EditIcon-BWMMTTyf.js"},{"revision":null,"url":"assets/Error-CnzO6x6f.js"},{"revision":null,"url":"assets/es-4F6iKSAU.js"},{"revision":null,"url":"assets/es-D_uIRKnu.js"},{"revision":null,"url":"assets/exchange-passport-DBlhf64U.js"},{"revision":null,"url":"assets/ExpandMore-BoZqCbU8.js"},{"revision":null,"url":"assets/fallback-D4IbwHOh.js"},{"revision":null,"url":"assets/FilterList-C75puMMo.js"},{"revision":null,"url":"assets/format-error-BLTYbOE0.js"},{"revision":null,"url":"assets/FormControl-02YkGBiU.js"},{"revision":null,"url":"assets/FormControlLabel-BZuIe-KU.js"},{"revision":null,"url":"assets/FormGroup-CUYWiNiM.js"},{"revision":null,"url":"assets/fr-BocLckhV.js"},{"revision":null,"url":"assets/fr-DOPIs7lg.js"},{"revision":null,"url":"assets/fuel-BFrr131p.js"},{"revision":null,"url":"assets/fullpage-o_U-2IGS.js"},{"revision":null,"url":"assets/Google-D6M8c4go.js"},{"revision":null,"url":"assets/hi-Bn38t0nX.js"},{"revision":null,"url":"assets/hi-Dzp-4zoH.js"},{"revision":null,"url":"assets/Hidden-BtwYfeyy.js"},{"revision":null,"url":"assets/home--rxR-cTY.js"},{"revision":null,"url":"assets/id-Bumv1FYl.js"},{"revision":null,"url":"assets/id-DuC9mOr4.js"},{"revision":null,"url":"assets/iframe-DAPuN1dW.js"},{"revision":null,"url":"assets/index-1I7IXhML.js"},{"revision":null,"url":"assets/index-7PLdtDxY.js"},{"revision":null,"url":"assets/index-B_Mn_6jy.js"},{"revision":null,"url":"assets/index-B0KUbTqG.js"},{"revision":null,"url":"assets/index-BB-3C_7E.js"},{"revision":null,"url":"assets/index-BCLn-9S9.js"},{"revision":null,"url":"assets/index-Bf4S7Fg9.js"},{"revision":null,"url":"assets/index-BrXFspW6.js"},{"revision":null,"url":"assets/index-BRzBZXpP.js"},{"revision":null,"url":"assets/index-Bs7XqsZf.js"},{"revision":null,"url":"assets/index-CbcN4v3T.js"},{"revision":null,"url":"assets/index-CCovGSMB.css"},{"revision":null,"url":"assets/index-Cd20iNJ4.js"},{"revision":null,"url":"assets/index-Cf2_yBdK.js"},{"revision":null,"url":"assets/index-CHegi_Ee.js"},{"revision":null,"url":"assets/index-CLFX4mT1.js"},{"revision":null,"url":"assets/index-ClrMer_1.js"},{"revision":null,"url":"assets/index-CmmFWW8f.js"},{"revision":null,"url":"assets/index-CptRhWH5.js"},{"revision":null,"url":"assets/index-Cy3QGaUZ.js"},{"revision":null,"url":"assets/index-CyUODU0b.js"},{"revision":null,"url":"assets/index-CZq1iuqc.js"},{"revision":null,"url":"assets/index-CzsxjdeJ.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-DHRl1pLr.js"},{"revision":null,"url":"assets/index-Diwtza0T.js"},{"revision":null,"url":"assets/index-DTEEl-sV.js"},{"revision":null,"url":"assets/index-DU3JORH0.css"},{"revision":null,"url":"assets/index-Dvf9hLBW.js"},{"revision":null,"url":"assets/index-DW7MULcX.js"},{"revision":null,"url":"assets/index-DZWxxu-P.js"},{"revision":null,"url":"assets/index-HqFqdQ4r.js"},{"revision":null,"url":"assets/index-K7xQGL1m.js"},{"revision":null,"url":"assets/index-l8yj4zzE.js"},{"revision":null,"url":"assets/index-NKypbT5t.js"},{"revision":null,"url":"assets/index-Wy8tXmp4.js"},{"revision":null,"url":"assets/index.es-DIBj3Jq4.js"},{"revision":null,"url":"assets/index.esm-N7xOi6VN.js"},{"revision":null,"url":"assets/InfoOutlined-DzWheCe4.js"},{"revision":null,"url":"assets/InputAdornment-B3Ml-Pew.js"},{"revision":null,"url":"assets/InputLabel-D_H-0SoX.js"},{"revision":null,"url":"assets/invitation-Hu8jHCIo.js"},{"revision":null,"url":"assets/invite-tCvD1Emp.js"},{"revision":null,"url":"assets/issue-passport-BQo4G1nz.js"},{"revision":null,"url":"assets/item-DbGtGKeZ.js"},{"revision":null,"url":"assets/ja-B2J7-ZGM.js"},{"revision":null,"url":"assets/ja-CqCu7wgc.js"},{"revision":null,"url":"assets/jss-plugin-props-sort.esm-DvQhW7jP.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-RwPO5IMK.js"},{"revision":null,"url":"assets/ko-TAMb2jXz.js"},{"revision":null,"url":"assets/LastPage-D-3vv4wE.js"},{"revision":null,"url":"assets/Launch-B0EjmiiU.js"},{"revision":null,"url":"assets/launch-result-message-Bur7t6_c.js"},{"revision":null,"url":"assets/LaunchOutlined-sgP85ul9.js"},{"revision":null,"url":"assets/layout-B0uAwIQe.js"},{"revision":null,"url":"assets/Link-1nuQkwqf.js"},{"revision":null,"url":"assets/list-header-DFekr1NL.js"},{"revision":null,"url":"assets/ListItemText-Bn_r5n_z.js"},{"revision":null,"url":"assets/LoadingButton-D9fUIMmf.js"},{"revision":null,"url":"assets/localization-Dyeek5nb.js"},{"revision":null,"url":"assets/LockIcon-CkuBg3Hn.js"},{"revision":null,"url":"assets/log-CjsiT4t8.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/login-1J5BbYVV.js"},{"revision":null,"url":"assets/login-oauth-callback-Blrq-pTH.js"},{"revision":null,"url":"assets/logo-uploader-KJa3kg20.js"},{"revision":null,"url":"assets/Loop-CIkJKfB9.js"},{"revision":null,"url":"assets/lost-passport-B-xv32w5.js"},{"revision":null,"url":"assets/lottie-DHZm2Pp-.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/MoreVert-DhDSKiqk.js"},{"revision":null,"url":"assets/notifications-D9-n_25q.js"},{"revision":null,"url":"assets/open-window-C6VjWW94.js"},{"revision":null,"url":"assets/OpenInNew-DUIHrnXo.js"},{"revision":null,"url":"assets/overview-DkYsGUOj.js"},{"revision":null,"url":"assets/page-header-Doy1SeXs.js"},{"revision":null,"url":"assets/Pagination-BlS75-dT.js"},{"revision":null,"url":"assets/permission-BWAp0U1U.js"},{"revision":null,"url":"assets/PlayArrow-MoLzECrB.js"},{"revision":null,"url":"assets/preact.module-B1z5cdvs.js"},{"revision":null,"url":"assets/preferences-C-rgtZ7Y.js"},{"revision":null,"url":"assets/pt-BwOCnpCh.js"},{"revision":null,"url":"assets/pt-DAmg1w9n.js"},{"revision":null,"url":"assets/publish-resource-C5iQ3qEW.js"},{"revision":null,"url":"assets/QuestionMarkCircle-D2W4KMR_.js"},{"revision":null,"url":"assets/RadioGroup-C3L5xJaa.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-CT3HMgMp.js"},{"revision":null,"url":"assets/redux-DJ4kW5cs.js"},{"revision":null,"url":"assets/resource-dialog-Dyf09u0L.js"},{"revision":null,"url":"assets/ru-BqJl8PYs.js"},{"revision":null,"url":"assets/ru-CBC11P4x.js"},{"revision":null,"url":"assets/Search-DTUqGlmf.js"},{"revision":null,"url":"assets/Select-DCbRxmUU.js"},{"revision":null,"url":"assets/selector-CoXEpXpq.js"},{"revision":null,"url":"assets/ServerLogo-BhzjzHzD.js"},{"revision":null,"url":"assets/session-Ci3gpI0a.js"},{"revision":null,"url":"assets/setup-D47fcxKa.js"},{"revision":null,"url":"assets/shorten-label-FpBR8oOW.js"},{"revision":null,"url":"assets/Skeleton-5Ejh8uW9.js"},{"revision":null,"url":"assets/slicedToArray-D6tWlK6Z.js"},{"revision":null,"url":"assets/Slider-Cl86dPUi.js"},{"revision":null,"url":"assets/spaces-Dxw-EmTw.js"},{"revision":null,"url":"assets/start-D1WI9rVf.js"},{"revision":null,"url":"assets/step-actions-D3Bgjg32.js"},{"revision":null,"url":"assets/Stepper-BFMAEaBf.js"},{"revision":null,"url":"assets/studio-SFi0TZqU.js"},{"revision":null,"url":"assets/switch-control-D_6oISXT.js"},{"revision":null,"url":"assets/TextField-BHSEV3Ac.js"},{"revision":null,"url":"assets/th-CGcwcZWK.js"},{"revision":null,"url":"assets/th-CzfAwl4e.js"},{"revision":null,"url":"assets/Toolbar-D3YIXjSy.js"},{"revision":null,"url":"assets/toPropertyKey-hKuLU48H.js"},{"revision":null,"url":"assets/toUpper-DA5F5eP3.js"},{"revision":null,"url":"assets/transfer-YRbXZ2oQ.js"},{"revision":null,"url":"assets/uniqBy-moVi8I9O.js"},{"revision":null,"url":"assets/unsubscribe-B-8N_G1A.js"},{"revision":null,"url":"assets/url-join-BUXfHAG-.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-DhpD5O4W.js"},{"revision":null,"url":"assets/use-mobile-C_ONEjf6.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-BLjRrBya.js"},{"revision":null,"url":"assets/useFormControl-BrCPFkZH.js"},{"revision":null,"url":"assets/useLocalStorage-DrhIkVxO.js"},{"revision":null,"url":"assets/user-center-BYfQOHt3.js"},{"revision":null,"url":"assets/user-sessions-CAX_hHjv.js"},{"revision":null,"url":"assets/useSetState-CbQrbQss.js"},{"revision":null,"url":"assets/useSlot-BSk477LF.js"},{"revision":null,"url":"assets/util-Do8cOsC3.js"},{"revision":null,"url":"assets/vi-BDUtfRQR.js"},{"revision":null,"url":"assets/vi-lYszmNr_.js"},{"revision":null,"url":"assets/ViewList-cURATctI.js"},{"revision":null,"url":"assets/wrap-locale-D6fNmzs0.js"},{"revision":null,"url":"assets/zh-BiD8p9-Q.js"},{"revision":null,"url":"assets/zh-DMGrvlv0.js"},{"revision":null,"url":"assets/zh-tw-BkGc-T4k.js"},{"revision":null,"url":"assets/zh-tw-DTnWxJQa.js"},{"revision":"ff56251e782c5dc6a92002f8d9c09318","url":"index.html"},{"revision":"186b2f1889d7c89ecd30e422ab415c8a","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"ecdddc9b1297e7511cad18529d5cfd89","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new yt);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.29-beta-
|
|
6
|
+
"version": "1.16.29-beta-112566d5",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.29-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.29-beta-
|
|
38
|
-
"@abtnode/client": "1.16.29-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.29-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.29-beta-
|
|
41
|
-
"@abtnode/core": "1.16.29-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.29-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.29-beta-
|
|
44
|
-
"@abtnode/models": "1.16.29-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.29-beta-
|
|
46
|
-
"@abtnode/util": "1.16.29-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.29-beta-112566d5",
|
|
37
|
+
"@abtnode/auth": "1.16.29-beta-112566d5",
|
|
38
|
+
"@abtnode/client": "1.16.29-beta-112566d5",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.29-beta-112566d5",
|
|
40
|
+
"@abtnode/constant": "1.16.29-beta-112566d5",
|
|
41
|
+
"@abtnode/core": "1.16.29-beta-112566d5",
|
|
42
|
+
"@abtnode/cron": "1.16.29-beta-112566d5",
|
|
43
|
+
"@abtnode/logger": "1.16.29-beta-112566d5",
|
|
44
|
+
"@abtnode/models": "1.16.29-beta-112566d5",
|
|
45
|
+
"@abtnode/router-templates": "1.16.29-beta-112566d5",
|
|
46
|
+
"@abtnode/util": "1.16.29-beta-112566d5",
|
|
47
47
|
"@arcblock/did": "^1.18.126",
|
|
48
48
|
"@arcblock/did-auth": "1.18.126",
|
|
49
49
|
"@arcblock/did-ext": "^1.18.126",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@arcblock/jwt": "1.18.126",
|
|
53
53
|
"@arcblock/validator": "^1.18.126",
|
|
54
54
|
"@arcblock/ws": "1.18.126",
|
|
55
|
-
"@blocklet/constant": "1.16.29-beta-
|
|
55
|
+
"@blocklet/constant": "1.16.29-beta-112566d5",
|
|
56
56
|
"@blocklet/form-builder": "^0.1.11",
|
|
57
57
|
"@blocklet/form-collector": "^0.1.8",
|
|
58
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
59
|
-
"@blocklet/sdk": "1.16.29-beta-
|
|
58
|
+
"@blocklet/meta": "1.16.29-beta-112566d5",
|
|
59
|
+
"@blocklet/sdk": "1.16.29-beta-112566d5",
|
|
60
60
|
"@did-connect/authenticator": "^2.2.4",
|
|
61
61
|
"@did-connect/relay-adapter-express": "^2.2.4",
|
|
62
62
|
"@ocap/client": "1.18.126",
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
"minimatch": "9.0.4"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@abtnode/ux": "1.16.29-beta-
|
|
103
|
+
"@abtnode/ux": "1.16.29-beta-112566d5",
|
|
104
104
|
"@arcblock/bridge": "^2.10.5",
|
|
105
105
|
"@arcblock/did-connect": "^2.10.5",
|
|
106
106
|
"@arcblock/icons": "^2.10.5",
|
|
107
107
|
"@arcblock/react-hooks": "^2.10.5",
|
|
108
108
|
"@arcblock/ux": "^2.10.5",
|
|
109
109
|
"@blocklet/launcher-layout": "2.3.30",
|
|
110
|
-
"@blocklet/tracker": "1.16.29-beta-
|
|
110
|
+
"@blocklet/tracker": "1.16.29-beta-112566d5",
|
|
111
111
|
"@blocklet/ui-react": "^2.10.5",
|
|
112
112
|
"@emotion/react": "^11.11.4",
|
|
113
113
|
"@emotion/styled": "^11.11.5",
|
|
@@ -180,5 +180,5 @@
|
|
|
180
180
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
181
181
|
"email": "shijun@arcblock.io"
|
|
182
182
|
},
|
|
183
|
-
"gitHead": "
|
|
183
|
+
"gitHead": "4c6213560b79dc862b0b5e48b50f65c39de54aef"
|
|
184
184
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as B,af as L,bx as W,$ as O,r,c as A,c1 as T,bw as _,k as h,h as $,c2 as F,j as w,ap as K}from"./index-BfhVorqV.js";import{A as z,S as G}from"./add-component-core-C3OBXrft.js";import"./lottie-BCG4dny2.js";import"./config-space-DTE8U19b.js";import"./url-join-DH_b1eAH.js";import"./Skeleton-FXGSJdkA.js";import"./Hidden-kl5Tbw1B.js";import"./spaces-Dm4toCmL.js";import"./index-UmXxvIz7.js";import"./api-C37A8mCN.js";import"./launch-result-message-Z1C1sG3K.js";import"./Close-CdBP5F4J.js";import"./page-header-C5ecJ6Qd.js";import"./uniqBy-C3O4Rmks.js";import"./logo-uploader-Cb8u4LYv.js";import"./index-DU7-35nh.js";import"./index-CHbscbku.js";import"./EditIcon-Bg4AkV00.js";import"./Done-DO1tfb2_.js";import"./Google-DGP2JaKw.js";import"./TextField-D3XEyFR4.js";import"./FormControl-Kt4xANtI.js";import"./useFormControl-DUzGwbSY.js";import"./InputLabel-DbdmcDbJ.js";import"./Select-BeNQ99oP.js";import"./index-BCpZXkUS.js";import"./FormControlLabel-B6ISinfm.js";import"./index-u_IDQFrq.js";import"./session-Cf-ZqG4P.js";import"./did-address-GzRMEyk7.js";import"./Link-DFzOJFD-.js";import"./Stepper-BF6lz4ut.js";import"./format-error-B3RYdl6q.js";import"./Alert-D91U5h--.js";import"./useSlot-LBVvloQJ.js";import"./item-B9vXmxNy.js";import"./Add-C5zWPWbi.js";import"./MoreVert-er-bltGF.js";import"./Launch-CDcio2Tm.js";import"./DeleteOutline-De4xAGvs.js";import"./click-to-copy-CNizZfqS.js";import"./shorten-label-CunJMulX.js";import"./confirm-CD6_CMUq.js";import"./Avatar-XXXVLUFk.js";import"./ButtonGroup-k3SZjeUa.js";import"./jss-plugin-props-sort.esm-InWevx1Y.js";import"./toPropertyKey-hKuLU48H.js";import"./ListItemText-Bnnk7Gbj.js";import"./util-CoWq6oMk.js";import"./connect-to-DMAPIkc9.js";import"./use-blocklet-info-for-connect-did-spaces-gtr1x-_o.js";import"./CloseOutlined-Crg0BDr4.js";import"./index-_y2ZXCMC.js";import"./ExpandMore-DD2GykPj.js";import"./content-layout-CK5XQfmW.js";import"./ArrowDropDown-Cq32DOpt.js";import"./useLocalStorage-B-I-NsSz.js";import"./fallback-rg9fefdL.js";import"./index-D12KUiCG.js";import"./Search-CMyGk9R2.js";import"./index-nyOsFIwy.js";import"./InputAdornment-C5IWgB4u.js";import"./preact.module-B1z5cdvs.js";function Zt(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",S=e.searchParams.get("showFromUrl")!=="false",y=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",n=(u=a==null?void 0:a.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(m.map(t=>({url:t,name:t.replace("https://","")}))),[x,U]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(m.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[m.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return n&&t.connect(),()=>{n&&t.isConnected()&&t.disconnect()}},[n]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=$(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(U(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const d=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:x,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:y,showFromUrl:S,enableRunBackground:E,showCategory:P});return C?w.jsx(K,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Zt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c1 as a}from"./index-BfhVorqV.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|