@abtnode/blocklet-services 1.16.21-beta-bd0e2503 → 1.16.21-beta-445a8baa
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/routes/blocklet.js +2 -2
- package/api/services/dashboard/index.js +8 -0
- package/api/util/index.js +2 -29
- package/dist/assets/{Add-0fa52156.js → Add-3a4e9bf2.js} +1 -1
- package/dist/assets/{Alert-037193c9.js → Alert-88ccddfd.js} +1 -1
- package/dist/assets/{ArrowDropDown-72517964.js → ArrowDropDown-a2deccb8.js} +1 -1
- package/dist/assets/{Autocomplete-a10f99e0.js → Autocomplete-a2328d71.js} +1 -1
- package/dist/assets/{Avatar-45cfefc3.js → Avatar-31b251b1.js} +1 -1
- package/dist/assets/{ButtonGroup-f91d24e2.js → ButtonGroup-d9cd68eb.js} +1 -1
- package/dist/assets/{CardContent-3db164ef.js → CardContent-e96dbcb2.js} +1 -1
- package/dist/assets/{CheckCircle-272b0fa1.js → CheckCircle-a6858d5d.js} +1 -1
- package/dist/assets/{Checkbox-e5abf3e7.js → Checkbox-bf851887.js} +1 -1
- package/dist/assets/{ChevronRight-ad424d62.js → ChevronRight-0de6ef39.js} +1 -1
- package/dist/assets/{DeleteOutline-9cba8fb2.js → DeleteOutline-978854b1.js} +1 -1
- package/dist/assets/{DialogContentText-83546651.js → DialogContentText-6418436c.js} +1 -1
- package/dist/assets/{Done-515b6971.js → Done-e501bd33.js} +1 -1
- package/dist/assets/{Download-2be25bd9.js → Download-ee01aba6.js} +1 -1
- package/dist/assets/{Edit-acf0e713.js → Edit-fd7c9bed.js} +1 -1
- package/dist/assets/{EditIcon-9f26e207.js → EditIcon-b1d73915.js} +1 -1
- package/dist/assets/{ExpandMore-affb00ec.js → ExpandMore-7c173148.js} +1 -1
- package/dist/assets/{FilterList-4d23556a.js → FilterList-4f490637.js} +3 -3
- package/dist/assets/{FormControl-776d5fa1.js → FormControl-a1fbecf5.js} +1 -1
- package/dist/assets/{FormControlLabel-2ee3fa4b.js → FormControlLabel-4a842c06.js} +1 -1
- package/dist/assets/{FormGroup-502e9f4e.js → FormGroup-b7d9ef97.js} +1 -1
- package/dist/assets/{Google-8aa094b0.js → Google-91a8c0fe.js} +1 -1
- package/dist/assets/{Grid-e588a591.js → Grid-c5601a70.js} +1 -1
- package/dist/assets/{Hidden-4855abd5.js → Hidden-35230dda.js} +1 -1
- package/dist/assets/{Icon-7576b0de.js → Icon-29934361.js} +1 -1
- package/dist/assets/{InfoOutlined-516f0f5e.js → InfoOutlined-eb4ab650.js} +1 -1
- package/dist/assets/{InputAdornment-6977d85a.js → InputAdornment-e4c90a63.js} +1 -1
- package/dist/assets/{InputLabel-4899f2ad.js → InputLabel-49e6958a.js} +1 -1
- package/dist/assets/{LastPage-68881e08.js → LastPage-c187ae76.js} +1 -1
- package/dist/assets/{Launch-40ac7bb5.js → Launch-8e54c9a5.js} +1 -1
- package/dist/assets/{LaunchOutlined-f2e3acb1.js → LaunchOutlined-9dd9c853.js} +1 -1
- package/dist/assets/ListItem-e314bf12.js +1 -0
- package/dist/assets/{LockIcon-f7bc794a.js → LockIcon-93d28688.js} +1 -1
- package/dist/assets/{Loop-74bde14b.js → Loop-9bace654.js} +1 -1
- package/dist/assets/{MoreVert-07b57b33.js → MoreVert-3d0977ab.js} +1 -1
- package/dist/assets/{OpenInNew-acb47561.js → OpenInNew-e7cd0cc2.js} +1 -1
- package/dist/assets/{Pagination-fc24638e.js → Pagination-6fcfcfda.js} +1 -1
- package/dist/assets/{PlayArrow-d3193b6d.js → PlayArrow-961eaacd.js} +1 -1
- package/dist/assets/{RadioGroup-3beb2b33.js → RadioGroup-8d4ab553.js} +1 -1
- package/dist/assets/{Search-d3d559ed.js → Search-f8fe0d11.js} +1 -1
- package/dist/assets/{Select-c9c71312.js → Select-86168230.js} +2 -2
- package/dist/assets/{ServerLogo-6cf48c4f.js → ServerLogo-b9434abe.js} +1 -1
- package/dist/assets/{Slider-6bcdb3ad.js → Slider-dc450dee.js} +1 -1
- package/dist/assets/{Stepper-58c95989.js → Stepper-0951e629.js} +1 -1
- package/dist/assets/{Switch-572c6623.js → Switch-183772a5.js} +1 -1
- package/dist/assets/{TableRow-2ff7461b.js → TableRow-c019aa76.js} +1 -1
- package/dist/assets/{TextField-9def9dd1.js → TextField-fedebf1f.js} +1 -1
- package/dist/assets/{Toolbar-58430b9d.js → Toolbar-3eef999e.js} +1 -1
- package/dist/assets/{access-control-17d1ef9c.js → access-control-9ae6bc7e.js} +1 -1
- package/dist/assets/{actions-6a1d12bc.js → actions-28620eeb.js} +1 -1
- package/dist/assets/{add-component-core-0b1b4342.js → add-component-core-a389deaa.js} +54 -54
- package/dist/assets/add-resource-9509ff95.js +1 -0
- package/dist/assets/{addon-6378289d.js → addon-67a138a5.js} +1 -1
- package/dist/assets/{analytics-41b1c113.js → analytics-1cc14b8d.js} +8 -8
- package/dist/assets/api-cf320b38.js +1 -0
- package/dist/assets/{audit-logs-aa0926e8.js → audit-logs-b77b5880.js} +1 -1
- package/dist/assets/{button-b9e224ed.js → button-df38f255.js} +1 -1
- package/dist/assets/{click-to-copy-011eba01.js → click-to-copy-aea6a9bd.js} +1 -1
- package/dist/assets/{complete-c2324df2.js → complete-50b01711.js} +2 -2
- package/dist/assets/{component-a8ae0bd3.js → component-ca8cf1c6.js} +33 -33
- package/dist/assets/{config-d5e2cf8e.js → config-d3b02cb4.js} +2 -2
- package/dist/assets/{config-1833951a.js → config-df87ad09.js} +1 -1
- package/dist/assets/{config-navigation-753fcb5c.js → config-navigation-cecc3eed.js} +2 -2
- package/dist/assets/{confirm-0a872969.js → confirm-06053193.js} +1 -1
- package/dist/assets/{confirm-37e025f8.js → confirm-ddc8b167.js} +1 -1
- package/dist/assets/{connect-fe6d1f89.js → connect-b9415d0d.js} +1 -1
- package/dist/assets/{connect-a95acc3b.js → connect-eb42cf82.js} +1 -1
- package/dist/assets/{content-layout-3e926711.js → content-layout-c45180bc.js} +1 -1
- package/dist/assets/dashboard-869969b3.js +126 -0
- package/dist/assets/{did-address-75f80f5d.js → did-address-6f8ac748.js} +1 -1
- package/dist/assets/{did-utils-4012db50.js → did-utils-e5a93c03.js} +1 -1
- package/dist/assets/{domain-e4165149.js → domain-ce3d68ba.js} +1 -1
- package/dist/assets/domain-list-c01d42a2.js +12 -0
- package/dist/assets/{exchange-passport-488fb54a.js → exchange-passport-49de9567.js} +1 -1
- package/dist/assets/{fallback-e6908990.js → fallback-0a2aea38.js} +2 -2
- package/dist/assets/{format-error-89fc5b13.js → format-error-cb03fbac.js} +1 -1
- package/dist/assets/{fuel-8062b1cb.js → fuel-60fee1f9.js} +1 -1
- package/dist/assets/{home-e193c644.js → home-13a41811.js} +1 -1
- package/dist/assets/{iframe-fa15b0d6.js → iframe-e27aa5eb.js} +1 -1
- package/dist/assets/index-0f945049.js +54 -0
- package/dist/assets/{index-32a94750.js → index-1bb44511.js} +1 -1
- package/dist/assets/{index-95ed5c0e.js → index-263c5c47.js} +1 -1
- package/dist/assets/{index-03db2990.js → index-40d4e6fe.js} +1 -1
- package/dist/assets/{index-4b84d3b2.js → index-48a58a22.js} +1 -1
- package/dist/assets/{index-2c4ca7b3.js → index-564c075f.js} +1 -1
- package/dist/assets/{index-82b46fb5.js → index-5ecec248.js} +1 -1
- package/dist/assets/{index-5e26b138.js → index-63a4e02a.js} +1 -1
- package/dist/assets/{index-78c79b7d.js → index-67652289.js} +2 -2
- package/dist/assets/{index-ab44e574.js → index-6d7aa2de.js} +1 -1
- package/dist/assets/{index-74681384.js → index-710f1958.js} +5 -5
- package/dist/assets/{index-45230b38.js → index-81318943.js} +8 -8
- package/dist/assets/{index-4f076ed3.js → index-88adaebe.js} +5 -5
- package/dist/assets/{index-110fb170.js → index-a472b88f.js} +1 -1
- package/dist/assets/{index-f43e988e.js → index-a575450e.js} +2 -2
- package/dist/assets/{index-9871b95b.js → index-a8342096.js} +10 -10
- package/dist/assets/{index-7cfe9bef.js → index-aadc33f3.js} +1 -1
- package/dist/assets/{index-4effadb2.js → index-ad20f5d3.js} +1 -1
- package/dist/assets/{index-f2a9779e.js → index-b68f9890.js} +1 -1
- package/dist/assets/{index-408ef489.js → index-b938b74f.js} +1 -1
- package/dist/assets/{index-c014ee1d.js → index-c093e71f.js} +1 -1
- package/dist/assets/{index-f112ae7e.js → index-c284b28f.js} +1 -1
- package/dist/assets/{index-ed3b9f25.js → index-ca1233b4.js} +1 -1
- package/dist/assets/{index-24e445a7.js → index-ca434966.js} +1 -1
- package/dist/assets/{index-35962c8a.js → index-d5c608a0.js} +1 -1
- package/dist/assets/{index-2668c3ea.js → index-f5164e7a.js} +197 -197
- package/dist/assets/{index-2580c7d8.js → index-fb610e48.js} +1 -1
- package/dist/assets/{index-0ce26e3b.js → index-ffef1c73.js} +1 -1
- package/dist/assets/{index.es-c9de3081.js → index.es-9b2db4aa.js} +3 -3
- package/dist/assets/{index.esm-3acd0530.js → index.esm-8eb4e6fc.js} +1 -1
- package/dist/assets/{invite-46602c25.js → invite-0ce1ce33.js} +1 -1
- package/dist/assets/{issue-passport-c6316a00.js → issue-passport-eeb74a6b.js} +1 -1
- package/dist/assets/jss-plugin-props-sort.esm-bce6f159.js +14 -0
- package/dist/assets/{launch-result-message-bc3d34f8.js → launch-result-message-b57dfcd0.js} +1 -1
- package/dist/assets/{layout-d2846d27.js → layout-30e687a6.js} +1 -1
- package/dist/assets/{list-header-4d0954bf.js → list-header-cc4af7a1.js} +1 -1
- package/dist/assets/listItemButtonClasses-811dce88.js +1 -0
- package/dist/assets/localization-586c2161.js +1 -0
- package/dist/assets/{log-957c206d.js → log-30bb3f7c.js} +7 -7
- package/dist/assets/{login-7abb482f.js → login-c8bbda83.js} +1 -1
- package/dist/assets/{logo-uploader-2897cb85.js → logo-uploader-f1f683e3.js} +4 -4
- package/dist/assets/{lost-passport-ca597911.js → lost-passport-8d3360a7.js} +2 -2
- package/dist/assets/{lottie-a8abc821.js → lottie-ed0144dd.js} +1 -1
- package/dist/assets/{memoize-one.esm-c8bea7a2.js → memoize-one.esm-9b916d19.js} +1 -1
- package/dist/assets/{nav-menu-33b9a238.js → nav-menu-2e0bf9b0.js} +3 -3
- package/dist/assets/notifications-9acb30be.js +62 -0
- package/dist/assets/overview-b5205c37.js +12 -0
- package/dist/assets/{page-header-8a4c9c50.js → page-header-bd167e51.js} +1 -1
- package/dist/assets/{permission-dd5ceeea.js → permission-1721d6ff.js} +1 -1
- package/dist/assets/{preferences-0280505b.js → preferences-2cc81c57.js} +1 -1
- package/dist/assets/publish-resource-309461c6.js +1 -0
- package/dist/assets/{react-8bf99ad0.js → react-a6e6612e.js} +2 -2
- package/dist/assets/{redux-4a13b1ee.js → redux-2be0c609.js} +1 -1
- package/dist/assets/{selector-e7537a43.js → selector-8aed4b44.js} +1 -1
- package/dist/assets/session-5cca81f2.js +1 -0
- package/dist/assets/{setup-017ee02c.js → setup-4a3ca937.js} +2 -2
- package/dist/assets/{slicedToArray-b9314e6c.js → slicedToArray-44714d87.js} +2 -2
- package/dist/assets/{spaces-4402bfd9.js → spaces-884bd1bc.js} +1 -1
- package/dist/assets/{start-95b58f88.js → start-b1f2c2fa.js} +1 -1
- package/dist/assets/step-actions-e2c31c4a.js +31 -0
- package/dist/assets/{studio-e0d343f5.js → studio-6d583ba0.js} +1 -1
- package/dist/assets/{switch-control-944b9c84.js → switch-control-97423316.js} +1 -1
- package/dist/assets/toPropertyKey-acc744d8.js +1 -0
- package/dist/assets/{transfer-a19f0df2.js → transfer-38c48c41.js} +1 -1
- package/dist/assets/uniqBy-1a4484bb.js +1 -0
- package/dist/assets/{unsubscribe-84f56731.js → unsubscribe-7c8ecf1f.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-2c0b4729.js → use-blocklet-info-for-connect-did-spaces-02cb5725.js} +1 -1
- package/dist/assets/useAsync-e9cdf811.js +1 -0
- package/dist/assets/{useFormControl-1b3cb36f.js → useFormControl-be0583f6.js} +1 -1
- package/dist/assets/useLocalStorage-6f44c0e8.js +1 -0
- package/dist/assets/{useSetState-483ba319.js → useSetState-6d3b66bd.js} +1 -1
- package/dist/assets/{user-6d82a43f.js → user-b04d443a.js} +2 -2
- package/dist/assets/{util-c52b3ea9.js → util-9fdf979a.js} +1 -1
- package/dist/assets/{wallet-hidden-topbar-91b1f489.js → wallet-hidden-topbar-30953049.js} +2 -2
- package/dist/assets/wrap-locale-c74ee18c.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +18 -18
- package/dist/assets/ListItem-768ed029.js +0 -1
- package/dist/assets/add-resource-6825acb3.js +0 -1
- package/dist/assets/api-75ef978a.js +0 -1
- package/dist/assets/dashboard-adcdef94.js +0 -146
- package/dist/assets/domain-list-8a8a0d19.js +0 -12
- package/dist/assets/index-171ab69f.js +0 -54
- package/dist/assets/localization-0b26d7a6.js +0 -1
- package/dist/assets/makeStyles-af672e02.js +0 -14
- package/dist/assets/notifications-97251050.js +0 -62
- package/dist/assets/overview-97d0a79e.js +0 -12
- package/dist/assets/publish-resource-9e2fd88b.js +0 -1
- package/dist/assets/session-f52f379b.js +0 -1
- package/dist/assets/step-actions-c99de83a.js +0 -31
- package/dist/assets/toPropertyKey-ceeedea6.js +0 -1
- package/dist/assets/uniqBy-11474d2a.js +0 -1
- package/dist/assets/useAsync-2a7bf586.js +0 -1
- package/dist/assets/wrap-locale-7898963f.js +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import{a$ as Y,a7 as ce,u as T,r as S,ce as Qe,c as N,w as R,bW as ie,j as e,T as x,B as f,x as re,ak as Pe,G as Z,S as q,n as C,P as m,y as Ce,F as He,a0 as ve,fR as Ve,H as _,I as $,b5 as K,cf as Ke,av as Xe,b3 as We,O as Ze,ao as Ge,bj as ge,eL as Ye,aa as Be,bL as qe,X as _e,bl as V,a as $e}from"./index-2668c3ea.js";import{S as je}from"./index-2580c7d8.js";import{A as et}from"./index-03db2990.js";import"./api-75ef978a.js";import{u as Ie,P as tt}from"./use-blocklet-info-for-connect-did-spaces-2c0b4729.js";import{d as G,e as ye,i as Ae,f as st,j as ot,k as nt,l as Se,h as at}from"./spaces-4402bfd9.js";import{f as J}from"./dashboard-adcdef94.js";import{D as it}from"./DialogContentText-83546651.js";import{T as rt}from"./TextField-9def9dd1.js";import{f as le}from"./format-error-89fc5b13.js";import{I as lt}from"./index-24e445a7.js";import{W as ct}from"./did-address-75f80f5d.js";import{e as dt,S as De}from"./switch-control-944b9c84.js";import{d as pt,T as ae}from"./MoreVert-07b57b33.js";import{d as ht}from"./DeleteOutline-9cba8fb2.js";import{L as X,a as W}from"./confirm-0a872969.js";import{D as mt}from"./index-2c4ca7b3.js";import{I as ut}from"./Icon-7576b0de.js";import"./ExpandMore-affb00ec.js";import"./ButtonGroup-f91d24e2.js";import"./index-35962c8a.js";import"./index-0ce26e3b.js";import"./permission-dd5ceeea.js";import"./useAsync-2a7bf586.js";import"./session-f52f379b.js";import"./toPropertyKey-ceeedea6.js";import"./useSetState-483ba319.js";import"./PlayArrow-d3193b6d.js";import"./Alert-037193c9.js";import"./RadioGroup-3beb2b33.js";import"./FormControlLabel-2ee3fa4b.js";import"./useFormControl-1b3cb36f.js";import"./FormGroup-502e9f4e.js";import"./Avatar-45cfefc3.js";import"./fallback-e6908990.js";import"./wallet-hidden-topbar-91b1f489.js";import"./selector-e7537a43.js";import"./index-c014ee1d.js";import"./nav-menu-33b9a238.js";import"./Toolbar-58430b9d.js";import"./Hidden-4855abd5.js";import"./makeStyles-af672e02.js";import"./Checkbox-e5abf3e7.js";import"./FormControl-776d5fa1.js";import"./InputLabel-4899f2ad.js";import"./Select-c9c71312.js";import"./Switch-572c6623.js";import"./FilterList-4d23556a.js";import"./TableRow-2ff7461b.js";import"./LastPage-68881e08.js";import"./index-4f076ed3.js";import"./redux-4a13b1ee.js";import"./Grid-e588a591.js";import"./Search-d3d559ed.js";function ee({...t}){const{blocklet:s}=Y(),{info:d}=ce(),{t:a,locale:r}=T(),[u,o]=S.useState(""),[l,g]=S.useState(!1),[p,h]=S.useState(!1),[j,v]=S.useState(""),i=Ie({blocklet:s}),B=Qe(d),{spaceGateways:w,addSpaceGateway:se}=J(),[I,O]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,prefix:N(R.PROD_DID_SPACES.CORE_URL,"space/api/did"),baseUrl:new URL(R.PROD_DID_SPACES.CORE_URL).origin,checkFn:ie.create({baseURL:N(R.PROD_DID_SPACES.CORE_URL,"space")}).get,messages:{title:a("storage.spaces.provideNFT.title",{appName:i.appName},r),scan:a("storage.spaces.provideNFT.scan",{appName:i.appName},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.provideNFT.success")})},onClose:()=>{O(c=>({...c,open:!1}))}}),[n,Q]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:i.appName},r),scan:a("storage.spaces.authorize.scan",{appName:i.appName},r),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{Q(c=>({...c,open:!1}))}}),E=async(c,A)=>{try{const D=A(c.endpoint),b=c.space?A(c.space):{};await L({endpoint:D,did:G(D),name:"DID Space",...b}),Q(U=>({...U,open:!1})),o(null),O(U=>({...U,open:!1}))}catch(D){console.error(D),C.error(le(D))}},L=async({endpoint:c,name:A,did:D})=>{const b=await ye(c);if(!await Ae(b)){C.error(a("storage.spaces.gateway.add.invalidUrl"));return}if(w.some(P=>P.endpoint===c)){C.error(a("storage.spaces.gateway.add.duplicate",{name:A}));return}const F={name:A,did:D,url:b,endpoint:c};await se(F,c),C.success(a("storage.spaces.connectedWithName",{name:(F==null?void 0:F.name)??"DID Spaces"}))},y=()=>{O(c=>({...c,open:!0,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:d.did}}))},z=async()=>{try{g(!0);const c=await ye(u),A=st(c),D=new URL(c).searchParams.get("spaceDid");if(!await Ae(A))throw new Error(a("storage.spaces.gateway.add.invalidUrl"));Q(b=>({...b,open:!0,prefix:N(A,"space/api/did"),baseUrl:new URL(A).origin,checkFn:ie.create({baseURL:N(A,"space")}).get,extraParams:{appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,scopes:i.scopes,appUrl:i.appUrl,referrer:i.referrer,nodeDid:d.did,spaceDid:D}})),h(!1)}catch(c){const A=`${a("storage.spaces.gateway.add.failed",r)}: ${le(c)}`;v(A)}finally{g(!1)}};return e.jsxs(f,{children:[e.jsx(je,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:y,menu:[e.jsx(je.Item,{sx:{textTransform:"none"},onClick:()=>h(!0),size:"small",...t,children:a("storage.spaces.connect.useSpaceGateway")},"1")],children:e.jsx(x,{sx:{fontWeight:"bold",textTransform:"none"},children:a("storage.spaces.connect.useWallet")})}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,webWalletUrl:B,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:E,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:r}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:n.prefix,open:n.open,popup:!0,action:n.action,baseUrl:n.baseUrl,checkFn:n.checkFn,onSuccess:E,onClose:n.onClose,checkTimeout:n.checkTimeout,extraParams:n.extraParams,messages:n.messages,locale:r}),e.jsxs(Pe,{title:a("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:p,onClose:()=>h(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(Z,{onClick:c=>{c.stopPropagation(),h(!1)},color:"inherit",children:a("common.cancel")}),e.jsxs(Z,{onClick:z,color:"primary",disabled:l||!u,variant:"contained",autoFocus:!0,children:[l&&e.jsx(q,{size:16}),a("common.confirm")]})]}),children:[e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(it,{component:"div",children:e.jsx(x,{component:"div",children:e.jsx(rt,{label:a("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:u,onChange:c=>{v(null),o(c.target.value)},disabled:l,onKeyPress:async c=>{c.key==="Enter"&&await z()},autoFocus:!0})})})}),!!j&&e.jsx(et,{type:"error",style:{width:"100%"},children:j})]})]})}ee.propTypes={};ee.defaultProps={};function te({blocklet:t,...s}){const{t:d}=S.useContext(He);if(!t.diskInfo)return e.jsx(x,{children:d("blocklet.diskInfo.empty")});const a=(o,l,g)=>e.jsxs(x,{children:[g?e.jsx(ve,{style:{cursor:"pointer"},onClick:g,underline:"hover",children:o}):o," ",e.jsx("strong",{children:l?Ve(l):"empty"})]}),r=t.environments.reduce((o,l)=>(o[l.key]=l.value,o),{}),u=[{key:"appDir",name:d("blocklet.diskInfo.appDir"),value:a(r.BLOCKLET_APP_DIR,t.diskInfo.app)},{key:"dataDir",name:d("blocklet.diskInfo.dataDir"),value:a(r.BLOCKLET_DATA_DIR,t.diskInfo.data)},{key:"logDir",name:d("blocklet.diskInfo.logDir"),value:a(r.BLOCKLET_LOG_DIR,t.diskInfo.log)},{key:"cacheDir",name:d("blocklet.diskInfo.cacheDir"),value:a(r.BLOCKLET_CACHE_DIR,t.diskInfo.cache)}];return e.jsx(ft,{component:"div",...s,children:u.map(o=>e.jsx(lt,{valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.key))})}te.propTypes={blocklet:m.object.isRequired};te.defaultProps={};const ft=Ce(x)``;var ke=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.222l-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm11.546-10.102V169h-1.756v-11.636h1.756zM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263L121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"M50.928 216.089l1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911zm2.439.564h-1.13v1.193h1.13v-1.193zm-1.13 2.983h1.13v1.193h-1.13v-1.193z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762zM36.355 214h-1.011v7.783h1.01V214zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75zM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894zm6.946 1.803h1.13v1.193h-1.13v-1.193zm1.13 2.983h-1.13v1.193h1.13v-1.193zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"M192.064 213.333l.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322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258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ue(){const{t}=T(),{blocklet:s}=Y();return e.jsxs(f,{children:[e.jsxs(f,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(ke,{style:{width:200,height:250}}),e.jsx(x,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(ee,{})]}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}Ue.propTypes={};var de={},xt=$;Object.defineProperty(de,"__esModule",{value:!0});var Re=de.default=void 0,gt=xt(_()),jt=e,yt=(0,gt.default)((0,jt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");Re=de.default=yt;var pe={},At=$;Object.defineProperty(pe,"__esModule",{value:!0});var Ee=pe.default=void 0,St=At(_()),Ct=e,vt=(0,St.default)((0,Ct.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02z"}),"ElectricBoltOutlined");Ee=pe.default=vt;var he={},Bt=$;Object.defineProperty(he,"__esModule",{value:!0});var be=he.default=void 0,It=Bt(_()),Dt=e,kt=(0,It.default)((0,Dt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"FolderOutlined");be=he.default=kt;function me({spaceGateway:t,onDelete:s}){const{t:d}=T(),[a,r]=S.useState(!1),[u,o]=S.useState(!1),l=(p,h)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),r(h)},g=async p=>{try{p==null||p.stopPropagation(),o(!0),await s(t),r(!1)}catch(h){console.error(h),C.error(`${d("storage.space.gateway.delete.failed")}: ${le(h)}`)}finally{o(!1)}};return e.jsxs(e.Fragment,{children:[e.jsxs(K,{color:"red",onClick:p=>l(p,!0),children:[e.jsx(X,{style:{minWidth:24,color:"red"},children:e.jsx(ht,{fontSize:"small"})}),e.jsx(W,{style:{color:"red"},children:d("common.delete")})]}),e.jsx(Ke,{title:d("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`}),open:a,confirmButton:{text:d("common.confirm"),props:{variant:"contained",color:"error",loading:u}},cancelButton:{text:d("common.cancel"),props:{variant:"contained",color:"primary"},loading:u},onConfirm:g,onCancel:p=>l(p,!1)})]})}me.propTypes={onDelete:m.func,spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool}).isRequired};me.defaultProps={onDelete:()=>{}};function ue({spaceGateway:t,connected:s,onDelete:d,onConnect:a,enableSwitchToSpace:r,...u}){const[o,l]=S.useState(null),{t:g}=T(),[p,h]=S.useState(!1),j=(i,B)=>{i.stopPropagation(),i.preventDefault(),l(B&&i.currentTarget)},v=async i=>{try{h(!0),j(i,!1),await a(t)}catch(B){console.error(B),C.error(B.message)}finally{h(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(Xe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:i=>j(i,!0),size:"small",...u,children:p||t!=null&&t.loading?e.jsx(q,{size:"24px"}):e.jsx(pt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:o,keepMounted:!0,open:!!o,onClose:i=>j(i,!1),children:[e.jsxs(K,{onClick:i=>{j(i,!1),window.open(t.endpoint?ot(t.endpoint):t.url)},children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(Re,{fontSize:"small"})}),e.jsx(W,{children:g("common.open")})]}),e.jsxs(K,{onClick:i=>{j(i,!1),window.open(nt(t.endpoint))},children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(be,{fontSize:"small"})}),e.jsx(W,{children:g("storage.spaces.strategy.viewBackupFiles")})]}),!s&&r&&e.jsxs(K,{onClick:v,children:[e.jsx(X,{style:{minWidth:24},children:e.jsx(Ee,{fontSize:"small"})}),e.jsx(W,{children:g("storage.spaces.connect.switchToSpace")})]}),!s&&e.jsx(me,{spaceGateway:t,onDelete:d})]})]})}ue.propTypes={spaceGateway:m.shape({name:m.string.isRequired,url:m.string.isRequired,protected:m.bool,endpoint:m.string.isRequired,loading:m.bool}).isRequired,connected:m.bool.isRequired,enableSwitchToSpace:m.bool,onDelete:m.func,onConnect:m.func};ue.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0};var Te=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})})};Te.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var we=function(s){return e.jsx("svg",{...s,children:e.jsx("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})})};we.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fe({spaceGateway:t,connected:s,onDelete:d,onBackupNow:a,...r}){const u=Ze(k=>k.breakpoints.down("md")),{t:o,locale:l}=T(),{blocklet:g}=Y(),{api:p,info:{did:h}}=ce(),{appDid:j,appName:v,appDescription:i,scopes:B,appUrl:w,referrer:se}=Ie({blocklet:g}),{updateSpaceGateway:I,backupEndpoint:O,backupProgress:n,refreshBackupEndpoint:Q}=J(),[E,L]=S.useState(!1),[y,z]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:o("storage.spaces.authorize.title",{appName:v},l),scan:o("storage.spaces.authorize.scan",{appName:v},l),confirm:"",success:e.jsx(x,{gutterBottom:!0,children:o("storage.spaces.authorize.success")})},onClose:()=>{z(k=>({...k,open:!1}))}}),{data:c,loading:A}=Ge(async()=>s?Se(O):!0,{refreshDeps:[s,O,y==null?void 0:y.open,E]}),D=s&&c,b=s&&!E&&c&&!(t!=null&&t.loading),U=s&&E&&c,F=s&&!c&&!A&&!E,P=async()=>{if(await Se(t==null?void 0:t.endpoint)){await p.configBlocklet({input:{did:[g.meta.did],configs:[{key:_e.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),Q(),C.success(o("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""}));return}z(H=>({...H,open:!0,prefix:N(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ie.create({baseURL:N(t.url,"space")}).get,extraParams:{appDid:j,appName:v,appDescription:i,scopes:B,appUrl:w,referrer:se,nodeDid:h,spaceDid:t.did}}))},Le=async(k,H)=>{const oe=H(k.endpoint),Ne=G(oe),M=k.space?H(k.space):{};if(t.did&&Ne!==t.did){z(ne=>({...ne,open:!1})),C.error(o("storage.spaces.gateway.switch.failedForMismatchSpace",{name:M!=null&&M.name?M.name:""}));return}const Je={...t,name:M.name??"DID Space",did:M.did??G(oe),endpoint:oe};await I(Je),z(ne=>({...ne,open:!1}))},Me=async()=>{try{if(E)return;L(!0),await a()}catch(k){console.error(k),C.error(k.message)}finally{L(!0)}};return S.useEffect(()=>{n!=null&&n.completed?((n==null?void 0:n.progress)===100?C.success(o("storage.spaces.backupSuccessfully")):(n==null?void 0:n.progress)===-1&&C.error(n==null?void 0:n.message),L(!1),n.progress=0,n.message=""):n.progress&&L(!0)},[n]),e.jsxs(Ut,{style:{position:"relative"},children:[e.jsxs(f,{sx:{backgroundColor:s?"#F0FDFF":"inherit","&:hover":{backgroundColor:s?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px",...r,children:[e.jsx(f,{display:"flex",children:e.jsx(tt,{alt:t.did,src:at(t.endpoint)})}),e.jsxs(f,{className:"spaces-info",display:"flex",flexGrow:(!u||!U)&&1,minWidth:"180px",flexDirection:U?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[e.jsxs(f,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[e.jsx(x,{color:s?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:t.name}),D&&e.jsx(ge,{label:e.jsxs(e.Fragment,{children:[e.jsx(Te,{style:{marginRight:"4px"}}),o("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),F&&e.jsx(ge,{label:e.jsxs(e.Fragment,{children:[e.jsx(we,{style:{marginRight:"4px"}}),o("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),e.jsx(f,{className:"spaces-address",display:U?"none":"flex",color:"#9397A1",marginTop:"8px",children:e.jsx(x,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:t.did&&e.jsx(ct,{copyable:!1,size:14,compact:!0,responsive:!1,did:t.did})})})]}),e.jsxs(f,{className:"spaces-backup",display:"flex",alignItems:"center",flex:u&&U&&1,children:[b&&e.jsxs(f,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[e.jsx(Z,{variant:"contained",size:"small",onClick:Me,children:o("storage.spaces.strategy.backupNow")}),dt&&e.jsx(De,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:e.jsx(x,{sx:{marginRight:"8px",fontSize:"16px"},children:e.jsx("span",{children:o("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),U&&e.jsxs(f,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!u&&"640px",marginLeft:u&&"16px",width:u&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[e.jsx(x,{color:"primary",children:n==null?void 0:n.message}),e.jsxs(f,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[e.jsx(f,{sx:{width:"100%",mr:1},children:e.jsx(Ye,{color:"primary",variant:"determinate",value:n==null?void 0:n.progress})}),e.jsx(f,{sx:{maxWidth:"100%"},children:e.jsxs(x,{variant:"body2",color:"text.secondary",children:[n==null?void 0:n.progress,"%"]})})]})]}),F&&e.jsx(f,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:e.jsx(Z,{color:"error",variant:"contained",size:"small",onClick:P,children:o("storage.spaces.disconnected.reconnectNow")})}),e.jsx(ue,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:t,connected:s,onDelete:d,onConnect:P,enableSwitchToSpace:(n==null?void 0:n.completed)||Be.isEmpty(n==null?void 0:n.message)})]})]}),e.jsx(re,{forceConnected:!1,saveConnect:!1,prefix:y.prefix,open:y.open,popup:!0,action:y.action,baseUrl:y.baseUrl,checkFn:y.checkFn,onSuccess:Le,onClose:y.onClose,checkTimeout:y.checkTimeout,extraParams:y.extraParams,messages:y.messages,locale:l},"get-endpoint"),e.jsx(f,{className:`selected-container ${s?"selected":""}`,children:e.jsx(qe,{className:"selected-icon"})})]})}fe.propTypes={spaceGateway:m.shape({did:m.string.isRequired,name:m.string.isRequired,url:m.string.isRequired,endpoint:m.string.isRequired,protected:m.bool,loading:m.bool}).isRequired,connected:m.bool.isRequired,progress:m.any.isRequired,onDelete:m.func,onBackupNow:m.func};fe.defaultProps={onDelete:()=>{},onBackupNow:()=>{}};const Ut=Ce(f)`
|
|
2
|
-
.selected-container {
|
|
3
|
-
position: absolute;
|
|
4
|
-
right: 0px;
|
|
5
|
-
bottom: 0px;
|
|
6
|
-
display: flex;
|
|
7
|
-
-webkit-box-pack: end;
|
|
8
|
-
justify-content: flex-end;
|
|
9
|
-
align-items: flex-end;
|
|
10
|
-
width: 32px;
|
|
11
|
-
height: 32px;
|
|
12
|
-
border-radius: 0px 0px 8px;
|
|
13
|
-
color: rgb(255, 255, 255);
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
transition: all 0.4s ease 0s;
|
|
16
|
-
|
|
17
|
-
&::after {
|
|
18
|
-
position: absolute;
|
|
19
|
-
z-index: 0;
|
|
20
|
-
left: 60px;
|
|
21
|
-
top: 60px;
|
|
22
|
-
display: block;
|
|
23
|
-
width: 0px;
|
|
24
|
-
height: 0px;
|
|
25
|
-
border-width: 16px;
|
|
26
|
-
border-style: solid;
|
|
27
|
-
border-color: transparent #1dc1c7 #1dc1c7 transparent;
|
|
28
|
-
transition: all 0.1s ease 0s;
|
|
29
|
-
content: '';
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.selected-icon {
|
|
33
|
-
visibility: hidden;
|
|
34
|
-
width: 60%;
|
|
35
|
-
height: 60%;
|
|
36
|
-
position: relative;
|
|
37
|
-
z-index: 2;
|
|
38
|
-
margin: 0px 1px 1px 0px;
|
|
39
|
-
font-size: 16px;
|
|
40
|
-
transition: all 0.2s ease 0s;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.selected-container.selected {
|
|
45
|
-
&::after {
|
|
46
|
-
left: 0px;
|
|
47
|
-
top: 0px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.selected-icon {
|
|
51
|
-
visibility: visible;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
`;var xe={},Rt=$;Object.defineProperty(xe,"__esModule",{value:!0});var ze=xe.default=void 0,Et=Rt(_()),bt=e,Tt=(0,Et.default)((0,bt.jsx)("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline");ze=xe.default=Tt;function Fe({...t}){const{t:s,locale:d}=T(),{spaceGateways:a,backups:r}=J(),u=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:o=>{var B;const{targetUrl:l,targetName:g,status:p,createdAt:h}=r[o],j=p===R.BACKUPS.STATUS.PROGRESS&&V().diff(h,"hours")>=R.BACKUPS.TIMEOUT_HOURS,v=p===R.BACKUPS.STATUS.SUCCEEDED&&!j,i=g||((B=a.find(w=>l==null?void 0:l.includes(G(w==null?void 0:w.endpoint))))==null?void 0:B.name)||"Unknown DID Space";return v?e.jsx(ve,{fontSize:"16px",href:l,target:"_blank",children:i}):e.jsx(x,{variant:"body1",fontSize:"16px",children:i})}}},{label:s("common.strategy"),name:"strategy",options:{customBodyRender:o=>{const l=s(o===0?"common.auto":"common.manual");return e.jsx(ae,{children:l})}}},{label:s("common.startTime"),name:"createdAt",options:{customBodyRender:o=>V(o).format("YYYY-MM-DD HH:mm:ss")}},{label:s("common.endTime"),name:"updatedAt",options:{customBodyRender:o=>Be.isEmpty(o)?"":V(o).format("YYYY-MM-DD HH:mm:ss")}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:o=>{const{status:l,message:g,createdAt:p}=(r==null?void 0:r[o])??{},h=l===R.BACKUPS.STATUS.PROGRESS&&V().diff(p,"hours")>=R.BACKUPS.TIMEOUT_HOURS,j=h&&s("common.timeoutError"),v=l===R.BACKUPS.STATUS.PROGRESS&&!h,i=l===R.BACKUPS.STATUS.SUCCEEDED&&!h;return v?e.jsxs(x,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(q,{sx:{marginRight:"4px"},size:"12px"}),s("common.progress")]}):i?e.jsx(ae,{type:"success",children:s("common.succeeded")}):e.jsxs(f,{display:"inline-flex",alignItems:"center",children:[e.jsx(ae,{type:"error",children:s("common.failed")})," ",e.jsx($e,{style:{display:"flex",alignItems:"center",flexShrink:0},title:g||j,children:e.jsx(ut,{children:e.jsx(ze,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(f,{...t,children:r!=null&&r.length?e.jsx(mt,{title:e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")}),data:r,columns:u,emptyNode:s("storage.spaces.record.emptyData",d),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(f,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")})}),e.jsx(f,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:s("storage.spaces.record.emptyData")})]})})}Fe.propTypes={};function Oe({...t}){const{t:s}=T(),{autoBackup:d,updateAutoBackup:a}=J(),r=async()=>{try{const u=!d.enabled;await a({enabled:u}),C.success(s(u?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(u){C.error(u.message)}};return e.jsx(De,{checked:!!(d!=null&&d.enabled),onChange:r,name:"enableWelcomePage",labelProps:{label:e.jsx(x,{marginRight:"8px",children:e.jsx("span",{children:s("storage.spaces.autoBackup.title")})})},style:{...t.style}})}Oe.propTypes={};function wt(){const{t}=T(),{blocklet:s}=Y(),{api:d}=ce(),{spaceGateways:a,spaceGatewaysLoading:r,deleteSpaceGateway:u,spaceGatewayIsSelected:o}=J(),l=r&&!(a!=null&&a.length),g=async h=>{await u(h),C.success(t("storage.spaces.gateway.delete.succeeded",{name:`(${h.name})`}))},p=async()=>{await d.backupBlocklet({input:{appDid:s.appDid,to:"spaces"}})};return e.jsxs(f,{display:"flex",flexDirection:"column",children:[e.jsxs(f,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(Oe,{style:{marginRight:"32px"}}),e.jsx(ee,{})]}),e.jsx(f,{children:l?e.jsx(f,{display:"flex",justifyContent:"center",children:e.jsx(q,{})}):a.map(h=>e.jsx(fe,{style:{marginTop:"12px"},spaceGateway:h,connected:o(h),onDelete:g,onBackupNow:p},h.endpoint))}),e.jsx(Fe,{sx:{marginTop:"24px"}}),e.jsx(x,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(te,{blocklet:s})]})}function zt(){const{backupEndpoint:t}=J();return t?e.jsx(wt,{}):e.jsx(Ue,{})}zt.propTypes={};export{zt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-2668c3ea.js";import{S as t}from"./studio-e0d343f5.js";import"./index-c014ee1d.js";import"./nav-menu-33b9a238.js";import"./ExpandMore-affb00ec.js";import"./Toolbar-58430b9d.js";import"./Hidden-4855abd5.js";import"./fallback-e6908990.js";function e(){return o.jsx(t,{children:"Coming soon..."})}export{e as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{ax as Ze,ay as Xe,bX as Ye,aD as g,bY as Me,bZ as ve,aC as ue,r as R,aA as W,b_ as pe}from"./index-2668c3ea.js";import{t as Qe}from"./toPropertyKey-ceeedea6.js";import{u as et}from"./confirm-0a872969.js";function fn(i){return Xe("MuiListItemButton",i)}const tt=Ze("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),cn=tt,rt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function nt(i={}){const{disableGlobal:t=!1,productionPrefix:r="jss",seed:e=""}=i,n=e===""?"":`${e}-`;let s=0;const a=()=>(s+=1,s);return(o,l)=>{const f=l.options.name;if(f&&f.indexOf("Mui")===0&&!l.options.link&&!t){if(rt.indexOf(o.key)!==-1)return`Mui-${o.key}`;const c=`${n}${f}-${o.key}`;return!l.options.theme[Ye]||e!==""?c:`${c}-${a()}`}return`${n}${r}${a()}`}}var ye=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},N=(typeof window>"u"?"undefined":ye(window))==="object"&&(typeof document>"u"?"undefined":ye(document))==="object"&&document.nodeType===9;function me(i,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,Qe(e.key),e)}}function le(i,t,r){return t&&me(i.prototype,t),r&&me(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}const dn=Object.freeze(Object.defineProperty({__proto__:null,default:le},Symbol.toStringTag,{value:"Module"}));var it={}.constructor;function Y(i){if(i==null||typeof i!="object")return i;if(Array.isArray(i))return i.map(Y);if(i.constructor!==it)return i;var t={};for(var r in i)t[r]=Y(i[r]);return t}function fe(i,t,r){i===void 0&&(i="unnamed");var e=r.jss,n=Y(t),s=e.plugins.onCreateRule(i,n,r);return s||(i[0],null)}var be=function(t,r){for(var e="",n=0;n<t.length&&t[n]!=="!important";n++)e&&(e+=r),e+=t[n];return e},w=function(t){if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var e=0;e<t.length&&t[e]!=="!important";e++)r&&(r+=", "),r+=be(t[e]," ");else r=be(t,", ");return t[t.length-1]==="!important"&&(r+=" !important"),r};function O(i){return i&&i.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
2
|
-
`,space:" "}}function A(i,t){for(var r="",e=0;e<t;e++)r+=" ";return r+i}function $(i,t,r){r===void 0&&(r={});var e="";if(!t)return e;var n=r,s=n.indent,a=s===void 0?0:s,o=t.fallbacks;r.format===!1&&(a=-1/0);var l=O(r),f=l.linebreak,c=l.space;if(i&&a++,o)if(Array.isArray(o))for(var h=0;h<o.length;h++){var y=o[h];for(var p in y){var v=y[p];v!=null&&(e&&(e+=f),e+=A(p+":"+c+w(v)+";",a))}}else for(var m in o){var b=o[m];b!=null&&(e&&(e+=f),e+=A(m+":"+c+w(b)+";",a))}for(var U in t){var ge=t[U];ge!=null&&U!=="fallbacks"&&(e&&(e+=f),e+=A(U+":"+c+w(ge)+";",a))}return!e&&!r.allowEmpty||!i?e:(a--,e&&(e=""+f+e+f),A(""+i+c+"{"+e,a)+A("}",a))}var st=/([[\].#*$><+~=|^:(),"'`\s])/g,Se=typeof CSS<"u"&&CSS.escape,ce=function(i){return Se?Se(i):i.replace(st,"\\$1")},Te=function(){function i(r,e,n){this.type="style",this.isProcessed=!1;var s=n.sheet,a=n.Renderer;this.key=r,this.options=n,this.style=e,s?this.renderer=s.renderer:a&&(this.renderer=new a)}var t=i.prototype;return t.prop=function(e,n,s){if(n===void 0)return this.style[e];var a=s?s.force:!1;if(!a&&this.style[e]===n)return this;var o=n;(!s||s.process!==!1)&&(o=this.options.jss.plugins.onChangeValue(n,e,this));var l=o==null||o===!1,f=e in this.style;if(l&&!f&&!a)return this;var c=l&&f;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var h=this.options.sheet;return h&&h.attached,this},i}(),Q=function(i){Me(t,i);function t(e,n,s){var a;a=i.call(this,e,n,s)||this;var o=s.selector,l=s.scoped,f=s.sheet,c=s.generateId;return o?a.selectorText=o:l!==!1&&(a.id=c(ve(ve(a)),f),a.selectorText="."+ce(a.id)),a}var r=t.prototype;return r.applyTo=function(n){var s=this.renderer;if(s){var a=this.toJSON();for(var o in a)s.setProperty(n,o,a[o])}return this},r.toJSON=function(){var n={};for(var s in this.style){var a=this.style[s];typeof a!="object"?n[s]=a:Array.isArray(a)&&(n[s]=w(a))}return n},r.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?g({},n,{allowEmpty:!0}):n;return $(this.selectorText,this.style,o)},le(t,[{key:"selector",set:function(n){if(n!==this.selectorText){this.selectorText=n;var s=this.renderer,a=this.renderable;if(!(!a||!s)){var o=s.setSelector(a,n);o||s.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(Te),at={onCreateRule:function(t,r,e){return t[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Q(t,r,e)}},K={indent:1,children:!0},ot=/@([\w-]+)/,ut=function(){function i(r,e,n){this.type="conditional",this.isProcessed=!1,this.key=r;var s=r.match(ot);this.at=s?s[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new z(g({},n,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var t=i.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(e){e===void 0&&(e=K);var n=O(e),s=n.linebreak;if(e.indent==null&&(e.indent=K.indent),e.children==null&&(e.children=K.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+s+a+s+"}":""},i}(),lt=/@container|@media|@supports\s+/,ft={onCreateRule:function(t,r,e){return lt.test(t)?new ut(t,r,e):null}},q={indent:1,children:!0},ct=/@keyframes\s+([\w-]+)/,ee=function(){function i(r,e,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var s=r.match(ct);s&&s[1]?this.name=s[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,o=n.sheet,l=n.generateId;this.id=a===!1?this.name:ce(l(this,o)),this.rules=new z(g({},n,{parent:this}));for(var f in e)this.rules.add(f,e[f],g({},n,{parent:this}));this.rules.process()}var t=i.prototype;return t.toString=function(e){e===void 0&&(e=q);var n=O(e),s=n.linebreak;if(e.indent==null&&(e.indent=q.indent),e.children==null&&(e.children=q.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+s+a+s),this.at+" "+this.id+" {"+a+"}"},i}(),dt=/@keyframes\s+/,ht=/\$([\w-]+)/g,te=function(t,r){return typeof t=="string"?t.replace(ht,function(e,n){return n in r?r[n]:e}):t},Re=function(t,r,e){var n=t[r],s=te(n,e);s!==n&&(t[r]=s)},gt={onCreateRule:function(t,r,e){return typeof t=="string"&&dt.test(t)?new ee(t,r,e):null},onProcessStyle:function(t,r,e){return r.type!=="style"||!e||("animation-name"in t&&Re(t,"animation-name",e.keyframes),"animation"in t&&Re(t,"animation",e.keyframes)),t},onChangeValue:function(t,r,e){var n=e.options.sheet;if(!n)return t;switch(r){case"animation":return te(t,n.keyframes);case"animation-name":return te(t,n.keyframes);default:return t}}},vt=function(i){Me(t,i);function t(){return i.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?g({},n,{allowEmpty:!0}):n;return $(this.key,this.style,o)},t}(Te),pt={onCreateRule:function(t,r,e){return e.parent&&e.parent.type==="keyframes"?new vt(t,r,e):null}},yt=function(){function i(r,e,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=e,this.options=n}var t=i.prototype;return t.toString=function(e){var n=O(e),s=n.linebreak;if(Array.isArray(this.style)){for(var a="",o=0;o<this.style.length;o++)a+=$(this.at,this.style[o]),this.style[o+1]&&(a+=s);return a}return $(this.at,this.style,e)},i}(),mt=/@font-face/,bt={onCreateRule:function(t,r,e){return mt.test(t)?new yt(t,r,e):null}},St=function(){function i(r,e,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=e,this.options=n}var t=i.prototype;return t.toString=function(e){return $(this.key,this.style,e)},i}(),Rt={onCreateRule:function(t,r,e){return t==="@viewport"||t==="@-ms-viewport"?new St(t,r,e):null}},xt=function(){function i(r,e,n){this.type="simple",this.isProcessed=!1,this.key=r,this.value=e,this.options=n}var t=i.prototype;return t.toString=function(e){if(Array.isArray(this.value)){for(var n="",s=0;s<this.value.length;s++)n+=this.key+" "+this.value[s]+";",this.value[s+1]&&(n+=`
|
|
3
|
-
`);return n}return this.key+" "+this.value+";"},i}(),Pt={"@charset":!0,"@import":!0,"@namespace":!0},Ct={onCreateRule:function(t,r,e){return t in Pt?new xt(t,r,e):null}},xe=[at,ft,gt,pt,bt,Rt,Ct],wt={process:!0},Pe={force:!0,process:!0},z=function(){function i(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=i.prototype;return t.add=function(e,n,s){var a=this.options,o=a.parent,l=a.sheet,f=a.jss,c=a.Renderer,h=a.generateId,y=a.scoped,p=g({classes:this.classes,parent:o,sheet:l,jss:f,Renderer:c,generateId:h,scoped:y,name:e,keyframes:this.keyframes,selector:void 0},s),v=e;e in this.raw&&(v=e+"-d"+this.counter++),this.raw[v]=n,v in this.classes&&(p.selector="."+ce(this.classes[v]));var m=fe(v,n,p);if(!m)return null;this.register(m);var b=p.index===void 0?this.index.length:p.index;return this.index.splice(b,0,m),m},t.replace=function(e,n,s){var a=this.get(e),o=this.index.indexOf(a);a&&this.remove(a);var l=s;return o!==-1&&(l=g({},s,{index:o})),this.add(e,n,l)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Q?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ee&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Q?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ee&&delete this.keyframes[e.name]},t.update=function(){var e,n,s;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2]):(n=arguments.length<=0?void 0:arguments[0],s=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),n,s);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],n,s)},t.updateOne=function(e,n,s){s===void 0&&(s=wt);var a=this.options,o=a.jss.plugins,l=a.sheet;if(e.rules instanceof i){e.rules.update(n,s);return}var f=e.style;if(o.onUpdate(n,e,l,s),s.process&&f&&f!==e.style){o.onProcessStyle(e.style,e,l);for(var c in e.style){var h=e.style[c],y=f[c];h!==y&&e.prop(c,h,Pe)}for(var p in f){var v=e.style[p],m=f[p];v==null&&v!==m&&e.prop(p,null,Pe)}}},t.toString=function(e){for(var n="",s=this.options.sheet,a=s?s.options.link:!1,o=O(e),l=o.linebreak,f=0;f<this.index.length;f++){var c=this.index[f],h=c.toString(e);!h&&!a||(n&&(n+=l),n+=h)}return n},i}(),$e=function(){function i(r,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=g({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new z(this.options);for(var n in r)this.rules.add(n,r[n]);this.rules.process()}var t=i.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,n,s){var a=this.queue;this.attached&&!a&&(this.queue=[]);var o=this.rules.add(e,n,s);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&(a?a.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),o):(this.deployed=!1,o)):null},t.replaceRule=function(e,n,s){var a=this.rules.get(e);if(!a)return this.addRule(e,n,s);var o=this.rules.replace(e,n,s);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&this.renderer&&(o?a.renderable&&this.renderer.replaceRule(a.renderable,o):this.renderer.deleteRule(a)),o):(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,n){var s=[];for(var a in e){var o=this.addRule(a,e[a],n);o&&s.push(o)}return s},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var n=typeof e=="object"?e:this.rules.get(e);return!n||this.attached&&!n.renderable?!1:(this.rules.remove(n),this.attached&&n.renderable&&this.renderer?this.renderer.deleteRule(n.renderable):!0)},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,n,s){return this.rules.updateOne(e,n,s),this},t.toString=function(e){return this.rules.toString(e)},i}(),kt=function(){function i(){this.plugins={internal:[],external:[]},this.registry={}}var t=i.prototype;return t.onCreateRule=function(e,n,s){for(var a=0;a<this.registry.onCreateRule.length;a++){var o=this.registry.onCreateRule[a](e,n,s);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var n=e.options.sheet,s=0;s<this.registry.onProcessRule.length;s++)this.registry.onProcessRule[s](e,n);e.style&&this.onProcessStyle(e.style,e,n),e.isProcessed=!0}},t.onProcessStyle=function(e,n,s){for(var a=0;a<this.registry.onProcessStyle.length;a++)n.style=this.registry.onProcessStyle[a](n.style,n,s)},t.onProcessSheet=function(e){for(var n=0;n<this.registry.onProcessSheet.length;n++)this.registry.onProcessSheet[n](e)},t.onUpdate=function(e,n,s,a){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,n,s,a)},t.onChangeValue=function(e,n,s){for(var a=e,o=0;o<this.registry.onChangeValue.length;o++)a=this.registry.onChangeValue[o](a,n,s);return a},t.use=function(e,n){n===void 0&&(n={queue:"external"});var s=this.plugins[n.queue];s.indexOf(e)===-1&&(s.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,o){for(var l in o)l in a&&a[l].push(o[l]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},i}(),jt=function(){function i(){this.registry=[]}var t=i.prototype;return t.add=function(e){var n=this.registry,s=e.options.index;if(n.indexOf(e)===-1){if(n.length===0||s>=this.index){n.push(e);return}for(var a=0;a<n.length;a++)if(n[a].options.index>s){n.splice(a,0,e);return}}},t.reset=function(){this.registry=[]},t.remove=function(e){var n=this.registry.indexOf(e);this.registry.splice(n,1)},t.toString=function(e){for(var n=e===void 0?{}:e,s=n.attached,a=ue(n,["attached"]),o=O(a),l=o.linebreak,f="",c=0;c<this.registry.length;c++){var h=this.registry[c];s!=null&&h.attached!==s||(f&&(f+=l),f+=h.toString(a))}return f},le(i,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),i}(),M=new jt,re=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ne="2f1acc6c3a606b082e5eef5e54414ffb";re[ne]==null&&(re[ne]=0);var Ce=re[ne]++,we=function(t){t===void 0&&(t={});var r=0,e=function(s,a){r+=1;var o="",l="";return a&&(a.options.classNamePrefix&&(l=a.options.classNamePrefix),a.options.jss.id!=null&&(o=String(a.options.jss.id))),t.minify?""+(l||"c")+Ce+o+r:l+s.key+"-"+Ce+(o?"-"+o:"")+"-"+r};return e},Ne=function(t){var r;return function(){return r||(r=t()),r}},It=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},Ot=function(t,r,e){try{var n=e;if(Array.isArray(e)&&(n=w(e)),t.attributeStyleMap)t.attributeStyleMap.set(r,n);else{var s=n?n.indexOf("!important"):-1,a=s>-1?n.substr(0,s-1):n;t.style.setProperty(r,a,s>-1?"important":"")}}catch{return!1}return!0},At=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},_t=function(t,r){return t.selectorText=r,t.selectorText===r},Ve=Ne(function(){return document.querySelector("head")});function Et(i,t){for(var r=0;r<i.length;r++){var e=i[r];if(e.attached&&e.options.index>t.index&&e.options.insertionPoint===t.insertionPoint)return e}return null}function Mt(i,t){for(var r=i.length-1;r>=0;r--){var e=i[r];if(e.attached&&e.options.insertionPoint===t.insertionPoint)return e}return null}function Tt(i){for(var t=Ve(),r=0;r<t.childNodes.length;r++){var e=t.childNodes[r];if(e.nodeType===8&&e.nodeValue.trim()===i)return e}return null}function $t(i){var t=M.registry;if(t.length>0){var r=Et(t,i);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=Mt(t,i),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var e=i.insertionPoint;if(e&&typeof e=="string"){var n=Tt(e);if(n)return{parent:n.parentNode,node:n.nextSibling}}return!1}function Nt(i,t){var r=t.insertionPoint,e=$t(t);if(e!==!1&&e.parent){e.parent.insertBefore(i,e.node);return}if(r&&typeof r.nodeType=="number"){var n=r,s=n.parentNode;s&&s.insertBefore(i,n.nextSibling);return}Ve().appendChild(i)}var Vt=Ne(function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}),ke=function(t,r,e){try{"insertRule"in t?t.insertRule(r,e):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[e]},je=function(t,r){var e=t.cssRules.length;return r===void 0||r>e?e:r},Gt=function(){var t=document.createElement("style");return t.textContent=`
|
|
4
|
-
`,t},zt=function(){function i(r){this.getPropertyValue=It,this.setProperty=Ot,this.removeProperty=At,this.setSelector=_t,this.hasInsertedRules=!1,this.cssRules=[],r&&M.add(r),this.sheet=r;var e=this.sheet?this.sheet.options:{},n=e.media,s=e.meta,a=e.element;this.element=a||Gt(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),s&&this.element.setAttribute("data-meta",s);var o=Vt();o&&this.element.setAttribute("nonce",o)}var t=i.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){Nt(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
5
|
-
`)}},t.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
|
|
6
|
-
`+e.toString()+`
|
|
7
|
-
`}},t.insertRules=function(e,n){for(var s=0;s<e.index.length;s++)this.insertRule(e.index[s],s,n)},t.insertRule=function(e,n,s){if(s===void 0&&(s=this.element.sheet),e.rules){var a=e,o=s;if(e.type==="conditional"||e.type==="keyframes"){var l=je(s,n);if(o=ke(s,a.toString({children:!1}),l),o===!1)return!1;this.refCssRule(e,l,o)}return this.insertRules(a.rules,o),o}var f=e.toString();if(!f)return!1;var c=je(s,n),h=ke(s,f,c);return h===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,c,h),h)},t.refCssRule=function(e,n,s){e.renderable=s,e.options.parent instanceof $e&&this.cssRules.splice(n,0,s)},t.deleteRule=function(e){var n=this.element.sheet,s=this.indexOf(e);return s===-1?!1:(n.deleteRule(s),this.cssRules.splice(s,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,n){var s=this.indexOf(e);return s===-1?!1:(this.element.sheet.deleteRule(s),this.cssRules.splice(s,1),this.insertRule(n,s))},t.getRules=function(){return this.element.sheet.cssRules},i}(),Ut=0,Wt=function(){function i(r){this.id=Ut++,this.version="10.10.0",this.plugins=new kt,this.options={id:{minify:!1},createGenerateId:we,Renderer:N?zt:null,plugins:[]},this.generateId=we({minify:!1});for(var e=0;e<xe.length;e++)this.plugins.use(xe[e],{queue:"internal"});this.setup(r)}var t=i.prototype;return t.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=g({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,n){n===void 0&&(n={});var s=n,a=s.index;typeof a!="number"&&(a=M.index===0?0:M.index+1);var o=new $e(e,g({},n,{jss:this,generateId:n.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),M.remove(e),this},t.createRule=function(e,n,s){if(n===void 0&&(n={}),s===void 0&&(s={}),typeof e=="object")return this.createRule(void 0,e,n);var a=g({},s,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var o=fe(e,n,a);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return s.forEach(function(o){e.plugins.use(o)}),this},i}(),Ge=function(t){return new Wt(t)},de=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function ze(i){var t=null;for(var r in i){var e=i[r],n=typeof e;if(n==="function")t||(t={}),t[r]=e;else if(n==="object"&&e!==null&&!Array.isArray(e)){var s=ze(e);s&&(t||(t={}),t[r]=s)}}return t}/**
|
|
8
|
-
* A better abstraction over CSS.
|
|
9
|
-
*
|
|
10
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
11
|
-
* @website https://github.com/cssinjs/jss
|
|
12
|
-
* @license MIT
|
|
13
|
-
*/Ge();var Ue=Date.now(),L="fnValues"+Ue,J="fnStyle"+ ++Ue,Kt=function(){return{onCreateRule:function(r,e,n){if(typeof e!="function")return null;var s=fe(r,{},n);return s[J]=e,s},onProcessStyle:function(r,e){if(L in e||J in e)return r;var n={};for(var s in r){var a=r[s];typeof a=="function"&&(delete r[s],n[s]=a)}return e[L]=n,r},onUpdate:function(r,e,n,s){var a=e,o=a[J];o&&(a.style=o(r)||{});var l=a[L];if(l)for(var f in l)a.prop(f,l[f](r),s)}}};const qt=Kt;var x="@global",ie="@global ",Lt=function(){function i(r,e,n){this.type="global",this.at=x,this.isProcessed=!1,this.key=r,this.options=n,this.rules=new z(g({},n,{parent:this}));for(var s in e)this.rules.add(s,e[s]);this.rules.process()}var t=i.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},i}(),Jt=function(){function i(r,e,n){this.type="global",this.at=x,this.isProcessed=!1,this.key=r,this.options=n;var s=r.substr(ie.length);this.rule=n.jss.createRule(s,e,g({},n,{parent:this}))}var t=i.prototype;return t.toString=function(e){return this.rule?this.rule.toString(e):""},i}(),Bt=/\s*,\s*/g;function We(i,t){for(var r=i.split(Bt),e="",n=0;n<r.length;n++)e+=t+" "+r[n].trim(),r[n+1]&&(e+=", ");return e}function Dt(i,t){var r=i.options,e=i.style,n=e?e[x]:null;if(n){for(var s in n)t.addRule(s,n[s],g({},r,{selector:We(s,i.selector)}));delete e[x]}}function Ft(i,t){var r=i.options,e=i.style;for(var n in e)if(!(n[0]!=="@"||n.substr(0,x.length)!==x)){var s=We(n.substr(x.length),i.selector);t.addRule(s,e[n],g({},r,{selector:s})),delete e[n]}}function Ht(){function i(r,e,n){if(!r)return null;if(r===x)return new Lt(r,e,n);if(r[0]==="@"&&r.substr(0,ie.length)===ie)return new Jt(r,e,n);var s=n.parent;return s&&(s.type==="global"||s.options.parent&&s.options.parent.type==="global")&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=r),null}function t(r,e){r.type!=="style"||!e||(Dt(r,e),Ft(r,e))}return{onCreateRule:i,onProcessRule:t}}var Ie=/\s*,\s*/g,Zt=/&/g,Xt=/\$([\w-]+)/g;function Yt(){function i(n,s){return function(a,o){var l=n.getRule(o)||s&&s.getRule(o);return l?l.selector:o}}function t(n,s){for(var a=s.split(Ie),o=n.split(Ie),l="",f=0;f<a.length;f++)for(var c=a[f],h=0;h<o.length;h++){var y=o[h];l&&(l+=", "),l+=y.indexOf("&")!==-1?y.replace(Zt,c):c+" "+y}return l}function r(n,s,a){if(a)return g({},a,{index:a.index+1});var o=n.options.nestingLevel;o=o===void 0?1:o+1;var l=g({},n.options,{nestingLevel:o,index:s.indexOf(n)+1});return delete l.name,l}function e(n,s,a){if(s.type!=="style")return n;var o=s,l=o.options.parent,f,c;for(var h in n){var y=h.indexOf("&")!==-1,p=h[0]==="@";if(!(!y&&!p)){if(f=r(o,l,f),y){var v=t(h,o.selector);c||(c=i(l,a)),v=v.replace(Xt,c);var m=o.key+"-"+h;"replaceRule"in l?l.replaceRule(m,n[h],g({},f,{selector:v})):l.addRule(m,n[h],g({},f,{selector:v}))}else p&&l.addRule(h,{},f).addRule(o.key,n[h],{selector:o.selector});delete n[h]}}return n}return{onProcessStyle:e}}var Qt=/[A-Z]/g,er=/^ms-/,B={};function tr(i){return"-"+i.toLowerCase()}function Ke(i){if(B.hasOwnProperty(i))return B[i];var t=i.replace(Qt,tr);return B[i]=er.test(t)?"-"+t:t}function G(i){var t={};for(var r in i){var e=r.indexOf("--")===0?r:Ke(r);t[e]=i[r]}return i.fallbacks&&(Array.isArray(i.fallbacks)?t.fallbacks=i.fallbacks.map(G):t.fallbacks=G(i.fallbacks)),t}function rr(){function i(r){if(Array.isArray(r)){for(var e=0;e<r.length;e++)r[e]=G(r[e]);return r}return G(r)}function t(r,e,n){if(e.indexOf("--")===0)return r;var s=Ke(e);return e===s?r:(n.prop(s,r),null)}return{onProcessStyle:i,onChangeValue:t}}var u=de&&CSS?CSS.px:"px",V=de&&CSS?CSS.ms:"ms",k=de&&CSS?CSS.percent:"%",nr={"animation-delay":V,"animation-duration":V,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":k,"perspective-origin-y":k,"transform-origin":k,"transform-origin-x":k,"transform-origin-y":k,"transform-origin-z":k,"transition-delay":V,"transition-duration":V,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function qe(i){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},e={};for(var n in i)e[n]=i[n],e[n.replace(t,r)]=i[n];return e}var ir=qe(nr);function T(i,t,r){if(t==null)return t;if(Array.isArray(t))for(var e=0;e<t.length;e++)t[e]=T(i,t[e],r);else if(typeof t=="object")if(i==="fallbacks")for(var n in t)t[n]=T(n,t[n],r);else for(var s in t)t[s]=T(i+"-"+s,t[s],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[i]||ir[i];return a&&!(t===0&&a===u)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function sr(i){i===void 0&&(i={});var t=qe(i);function r(n,s){if(s.type!=="style")return n;for(var a in n)n[a]=T(a,n[a],t);return n}function e(n,s){return T(s,n,t)}return{onProcessStyle:r,onChangeValue:e}}function se(i,t){(t==null||t>i.length)&&(t=i.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=i[r];return e}function ar(i){if(Array.isArray(i))return se(i)}function or(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function ur(i,t){if(i){if(typeof i=="string")return se(i,t);var r=Object.prototype.toString.call(i).slice(8,-1);if(r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set")return Array.from(i);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(i,t)}}function lr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(i){return ar(i)||or(i)||ur(i)||lr()}const hn=Object.freeze(Object.defineProperty({__proto__:null,default:Le},Symbol.toStringTag,{value:"Module"}));var _="",ae="",Je="",Be="",fr=N&&"ontouchstart"in document.documentElement;if(N){var D={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},cr=document.createElement("p"),F=cr.style,dr="Transform";for(var H in D)if(H+dr in F){_=H,ae=D[H];break}_==="Webkit"&&"msHyphens"in F&&(_="ms",ae=D.ms,Be="edge"),_==="Webkit"&&"-apple-trailing-word"in F&&(Je="apple")}var d={js:_,css:ae,vendor:Je,browser:Be,isTouch:fr};function hr(i){return i[1]==="-"||d.js==="ms"?i:"@"+d.css+"keyframes"+i.substr(10)}var gr={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:d.js==="ms"?"-webkit-"+t:d.css+t}},vr={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:d.js==="Webkit"?d.css+"print-"+t:t}},pr=/[-\s]+(.)?/g;function yr(i,t){return t?t.toUpperCase():""}function he(i){return i.replace(pr,yr)}function P(i){return he("-"+i)}var mr={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(d.js==="Webkit"){var e="mask-image";if(he(e)in r)return t;if(d.js+P(e)in r)return d.css+t}return t}},br={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:d.vendor==="apple"&&!d.isTouch?d.css+t:t}},Sr={noPrefill:["transform"],supportedProperty:function(t,r,e){return t!=="transform"?!1:e.transform?t:d.css+t}},Rr={noPrefill:["transition"],supportedProperty:function(t,r,e){return t!=="transition"?!1:e.transition?t:d.css+t}},xr={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:d.js==="Webkit"||d.js==="ms"&&d.browser!=="edge"?d.css+t:t}},Pr={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:d.js==="Moz"||d.js==="ms"||d.vendor==="apple"?d.css+t:t}},Cr={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(d.js==="Webkit"){var e="WebkitColumn"+P(t);return e in r?d.css+"column-"+t:!1}if(d.js==="Moz"){var n="page"+P(t);return n in r?"page-"+t:!1}return!1}},wr={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(d.js==="Moz")return t;var e=t.replace("-inline","");return d.js+P(e)in r?d.css+e:!1}},kr={supportedProperty:function(t,r){return he(t)in r?t:!1}},jr={supportedProperty:function(t,r){var e=P(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:d.js+e in r?d.css+t:d.js!=="Webkit"&&"Webkit"+e in r?"-webkit-"+t:!1}},Ir={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:d.js==="ms"?""+d.css+t:t}},Or={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:d.js==="ms"?d.css+"scroll-chaining":t}},Ar={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},_r={supportedProperty:function(t,r){var e=Ar[t];return e&&d.js+P(e)in r?d.css+e:!1}},De={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Er=Object.keys(De),Mr=function(t){return d.css+t},Tr={supportedProperty:function(t,r,e){var n=e.multiple;if(Er.indexOf(t)>-1){var s=De[t];if(!Array.isArray(s))return d.js+P(s)in r?d.css+s:!1;if(!n)return!1;for(var a=0;a<s.length;a++)if(!(d.js+P(s[0])in r))return!1;return s.map(Mr)}return!1}},Fe=[gr,vr,mr,br,Sr,Rr,xr,Pr,Cr,wr,kr,jr,Ir,Or,_r,Tr],Oe=Fe.filter(function(i){return i.supportedProperty}).map(function(i){return i.supportedProperty}),$r=Fe.filter(function(i){return i.noPrefill}).reduce(function(i,t){return i.push.apply(i,Le(t.noPrefill)),i},[]),E,C={};if(N){E=document.createElement("p");var Z=window.getComputedStyle(document.documentElement,"");for(var X in Z)isNaN(X)||(C[Z[X]]=Z[X]);$r.forEach(function(i){return delete C[i]})}function oe(i,t){if(t===void 0&&(t={}),!E)return i;if(C[i]!=null)return C[i];(i==="transition"||i==="transform")&&(t[i]=i in E.style);for(var r=0;r<Oe.length&&(C[i]=Oe[r](i,E.style,t),!C[i]);r++);try{E.style[i]=""}catch{return!1}return C[i]}var j={},Nr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,S;function Gr(i,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var e=t?oe(t):", "+oe(r);return e||t||r}N&&(S=document.createElement("p"));function Ae(i,t){var r=t;if(!S||i==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var e=i+r;if(j[e]!=null)return j[e];try{S.style[i]=r}catch{return j[e]=!1,!1}if(Nr[i])r=r.replace(Vr,Gr);else if(S.style[i]===""&&(r=d.css+r,r==="-ms-flex"&&(S.style[i]="-ms-flexbox"),S.style[i]=r,S.style[i]===""))return j[e]=!1,!1;return S.style[i]="",j[e]=r,j[e]}function zr(){function i(n){if(n.type==="keyframes"){var s=n;s.at=hr(s.at)}}function t(n){for(var s in n){var a=n[s];if(s==="fallbacks"&&Array.isArray(a)){n[s]=a.map(t);continue}var o=!1,l=oe(s);l&&l!==s&&(o=!0);var f=!1,c=Ae(l,w(a));c&&c!==a&&(f=!0),(o||f)&&(o&&delete n[s],n[l||s]=c||a)}return n}function r(n,s){return s.type!=="style"?n:t(n)}function e(n,s){return Ae(s,w(n))||n}return{onProcessRule:i,onProcessStyle:r,onChangeValue:e}}function Ur(){var i=function(r,e){return r.length===e.length?r>e?1:-1:r.length-e.length};return{onProcessStyle:function(r,e){if(e.type!=="style")return r;for(var n={},s=Object.keys(r).sort(i),a=0;a<s.length;a++)n[s[a]]=r[s[a]];return n}}}function Wr(){return{plugins:[qt(),Ht(),Yt(),rr(),sr(),typeof window>"u"?null:zr(),Ur()]}}function He(i={}){const{baseClasses:t,newClasses:r,Component:e}=i;if(!r)return t;const n=g({},t);return Object.keys(r).forEach(s=>{r[s]&&(n[s]=`${t[s]} ${r[s]}`)}),n}const Kr={set:(i,t,r,e)=>{let n=i.get(t);n||(n=new Map,i.set(t,n)),n.set(r,e)},get:(i,t,r)=>{const e=i.get(t);return e?e.get(r):void 0},delete:(i,t,r)=>{i.get(t).delete(r)}},I=Kr,qr=Ge(Wr()),Lr=nt(),Jr=new Map,Br={disableGeneration:!1,generateClassName:Lr,jss:qr,sheetsCache:null,sheetsManager:Jr,sheetsRegistry:null},Dr=R.createContext(Br);let _e=-1e9;function Fr(){return _e+=1,_e}const Hr=["variant"];function Ee(i){return i.length===0}function Zr(i){const{variant:t}=i,r=ue(i,Hr);let e=t||"";return Object.keys(r).sort().forEach(n=>{n==="color"?e+=Ee(e)?i[n]:W(i[n]):e+=`${Ee(e)?n:W(n)}${W(i[n].toString())}`}),e}const Xr={},Yr=Xr;function Qr(i){const t=typeof i=="function";return{create:(r,e)=>{let n;try{n=t?i(r):i}catch(l){throw l}if(!e||!r.components||!r.components[e]||!r.components[e].styleOverrides&&!r.components[e].variants)return n;const s=r.components[e].styleOverrides||{},a=r.components[e].variants||[],o=g({},n);return Object.keys(s).forEach(l=>{o[l]=pe(o[l]||{},s[l])}),a.forEach(l=>{const f=Zr(l.props);o[f]=pe(o[f]||{},l.style)}),o},options:{}}}const en=["name","classNamePrefix","Component","defaultTheme"];function tn({state:i,stylesOptions:t},r,e){if(t.disableGeneration)return r||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});let n=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,n=!0),r!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=r,n=!0),n&&(i.cacheClasses.value=He({baseClasses:i.cacheClasses.lastJSS,newClasses:r,Component:e})),i.cacheClasses.value}function rn({state:i,theme:t,stylesOptions:r,stylesCreator:e,name:n},s){if(r.disableGeneration)return;let a=I.get(r.sheetsManager,e,t);a||(a={refs:0,staticSheet:null,dynamicStyles:null},I.set(r.sheetsManager,e,t,a));const o=g({},e.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});o.generateId=o.serverGenerateClassName||o.generateClassName;const l=r.sheetsRegistry;if(a.refs===0){let f;r.sheetsCache&&(f=I.get(r.sheetsCache,e,t));const c=e.create(t,n);f||(f=r.jss.createStyleSheet(c,g({link:!1},o)),f.attach(),r.sheetsCache&&I.set(r.sheetsCache,e,t,f)),l&&l.add(f),a.staticSheet=f,a.dynamicStyles=ze(c)}if(a.dynamicStyles){const f=r.jss.createStyleSheet(a.dynamicStyles,g({link:!0},o));f.update(s),f.attach(),i.dynamicSheet=f,i.classes=He({baseClasses:a.staticSheet.classes,newClasses:f.classes}),l&&l.add(f)}else i.classes=a.staticSheet.classes;a.refs+=1}function nn({state:i},t){i.dynamicSheet&&i.dynamicSheet.update(t)}function sn({state:i,theme:t,stylesOptions:r,stylesCreator:e}){if(r.disableGeneration)return;const n=I.get(r.sheetsManager,e,t);n.refs-=1;const s=r.sheetsRegistry;n.refs===0&&(I.delete(r.sheetsManager,e,t),r.jss.removeStyleSheet(n.staticSheet),s&&s.remove(n.staticSheet)),i.dynamicSheet&&(r.jss.removeStyleSheet(i.dynamicSheet),s&&s.remove(i.dynamicSheet))}function an(i,t){const r=R.useRef([]);let e;const n=R.useMemo(()=>({}),t);r.current!==n&&(r.current=n,e=i()),R.useEffect(()=>()=>{e&&e()},[n])}function gn(i,t={}){const{name:r,classNamePrefix:e,Component:n,defaultTheme:s=Yr}=t,a=ue(t,en),o=Qr(i),l=r||e||"makeStyles";return o.options={index:Fr(),name:r,meta:l,classNamePrefix:l},(c={})=>{const h=et()||s,y=g({},R.useContext(Dr),a),p=R.useRef(),v=R.useRef();return an(()=>{const b={name:r,state:{},stylesCreator:o,stylesOptions:y,theme:h};return rn(b,c),v.current=!1,p.current=b,()=>{sn(b)}},[h,o]),R.useEffect(()=>{v.current&&nn(p.current,c),v.current=!0}),tn(p.current,c.classes,n)}}export{le as _,Le as a,Yt as b,rr as c,sr as d,zr as e,qt as f,fn as g,Ur as h,Ge as i,Ht as j,ze as k,cn as l,gn as m,dn as n,ur as o,hn as t};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{H as E,I as F,j as t,a7 as O,r as u,F as H,T as g,br as V,G as Z,S as k,b4 as G,bq as Y,L as J,a as A,av as S,B as K,bo as Q,y as P,P as s,gj as W,bz as X}from"./index-2668c3ea.js";import{L as D,N as L}from"./dashboard-adcdef94.js";import{P as ee}from"./permission-dd5ceeea.js";import{F as te}from"./FormControlLabel-2ee3fa4b.js";import{C as ie}from"./Checkbox-e5abf3e7.js";import{L as _,a as I}from"./ListItem-768ed029.js";import{A as T}from"./Avatar-45cfefc3.js";import{a as z}from"./confirm-0a872969.js";import{P as ae}from"./Pagination-fc24638e.js";import"./index-0ce26e3b.js";import"./MoreVert-07b57b33.js";import"./toPropertyKey-ceeedea6.js";import"./useSetState-483ba319.js";import"./PlayArrow-d3193b6d.js";import"./Alert-037193c9.js";import"./ButtonGroup-f91d24e2.js";import"./RadioGroup-3beb2b33.js";import"./FormGroup-502e9f4e.js";import"./useFormControl-1b3cb36f.js";import"./format-error-89fc5b13.js";import"./index-03db2990.js";import"./session-f52f379b.js";import"./spaces-4402bfd9.js";import"./index-35962c8a.js";import"./api-75ef978a.js";import"./fallback-e6908990.js";import"./wallet-hidden-topbar-91b1f489.js";import"./selector-e7537a43.js";import"./index-c014ee1d.js";import"./nav-menu-33b9a238.js";import"./ExpandMore-affb00ec.js";import"./Toolbar-58430b9d.js";import"./Hidden-4855abd5.js";import"./makeStyles-af672e02.js";import"./useAsync-2a7bf586.js";import"./DialogContentText-83546651.js";import"./LastPage-68881e08.js";var re=["second","minute","hour","day","week","month","year"];function se(e,a){if(a===0)return["just now","right now"];var r=re[Math.floor(a/2)];return e>1&&(r+="s"),[e+" "+r+" ago","in "+e+" "+r]}var oe=["秒","分钟","小时","天","周","个月","年"];function ne(e,a){if(a===0)return["刚刚","片刻后"];var r=oe[~~(a/2)];return[e+" "+r+"前",e+" "+r+"后"]}var x={},q=function(e,a){x[e]=a},le=function(e){return x[e]||x.en_US},h=[60,60,24,7,365/7/12,12];function M(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function ce(e,a){var r=e<0?1:0;e=Math.abs(e);for(var n=e,o=0;e>=h[o]&&o<h.length;o++)e/=h[o];return e=Math.floor(e),o*=2,e>(o===0?9:1)&&(o+=1),a(e,o,n)[r].replace("%s",e.toString())}function de(e,a){var r=a?M(a):new Date;return(+r-+M(e))/1e3}var me=function(e,a,r){var n=de(e,r&&r.relativeDate);return ce(n,le(a))};q("en_US",se);q("zh_CN",ne);var y={},pe=F;Object.defineProperty(y,"__esModule",{value:!0});var j=y.default=void 0,fe=pe(E()),ue=t,ge=(0,fe.default)((0,ue.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");j=y.default=ge;function v({api:e,paging:a,loading:r,notifications:n,updateNotifications:o,teamDid:d}){const{inService:m}=O(),[f,U]=u.useState(!0),[b,N]=u.useState(!1),{t:l,locale:C}=u.useContext(H),B=async()=>{N(!0);const i=n.filter(c=>c.read===!1).map(c=>c.id).join(",");m?await e.readBlockletNotifications({input:{id:i,teamDid:d}}):await e.readNotifications({input:{id:i}}),o(),N(!1)},w=async i=>{m?await e.readBlockletNotifications({input:{id:i,teamDid:d}}):await e.readNotifications({input:{id:i}}),o()},p=f?n:n.filter(i=>i.read===!1),$=n.filter(i=>i.read===!1).length>0,R=i=>t.jsxs("div",{className:"title",children:[i.title," ",t.jsx("span",{className:"time-ago",title:Q(i.createdAt,C),children:me(new Date(i.createdAt),W(C))})]});return t.jsxs(he,{children:[t.jsxs(g,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:[l("notification.title"),t.jsxs(g,{component:"span",className:"notification-actions",children:[t.jsx(te,{control:t.jsx(ie,{checked:f,onChange:()=>U(!f),name:"showRead",color:"primary"}),label:l("notification.showRead")}),t.jsx(ee,{permission:m?"":"mutate_notification",role:m?V:[],children:$&&t.jsxs(Z,{disabled:b,onClick:B,className:"",children:[b&&t.jsx(k,{size:16,style:{marginRight:"1em"}}),l("notification.markAllAsRead")]})})]})]}),t.jsx(G,{}),t.jsxs(Y,{className:"notification-list",children:[r&&t.jsx(k,{size:[32,20],style:{opacity:"0.8",zIndex:1e4,position:"fixed",top:30,left:"50%",marginLeft:-16}}),p.length===0&&t.jsx(g,{component:"p",variant:"body1",className:"notification-tip",children:l("notification.empty")}),p.length>0&&p.map(i=>i.action?t.jsxs(_,{component:J,to:i.action,alignItems:"flex-start",disabled:i.read,children:[t.jsx(D,{className:"list-item-avatar",children:t.jsxs(t.Fragment,{children:[t.jsx(T,{children:i.entityType.substr(0,1).toUpperCase()}),t.jsx(L,{className:"notification-tag",status:i.severity})]})}),t.jsx(z,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:R(i),secondary:i.description}),i.read===!1&&t.jsx(I,{children:t.jsx(A,{title:l("notification.markAsRead"),children:t.jsx(S,{edge:"end","aria-label":"delete",onClick:()=>w(i.id),size:"large",children:t.jsx(j,{})})})})]},i.id):t.jsxs(_,{alignItems:"flex-start",disabled:i.read,children:[t.jsx(D,{className:"list-item-avatar",children:t.jsxs(t.Fragment,{children:[t.jsx(T,{children:i.entityType.substr(0,1).toUpperCase()}),t.jsx(L,{className:"notification-tag",status:i.severity})]})}),t.jsx(z,{className:"list-item-text",classes:{secondary:"list-item-secondary-text"},primary:R(i),secondary:i.description}),i.read===!1&&t.jsx(I,{children:t.jsx(A,{title:l("notification.markAsRead"),children:t.jsx(S,{edge:"end","aria-label":"delete",onClick:()=>w(i.id),size:"large",children:t.jsx(j,{})})})})]},i.id))]}),!!p.length&&a.pageCount>1&&t.jsx(K,{mt:2,display:"flex",justifyContent:"flex-end",children:t.jsx(ae,{disabled:r,count:a.pageCount,page:a.page,onChange:(i,c)=>{o({page:c})}})})]})}const he=P.div`
|
|
2
|
-
min-height: 60vh;
|
|
3
|
-
|
|
4
|
-
.page-header {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
.notification-actions {
|
|
10
|
-
width: auto;
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.page-content {
|
|
17
|
-
margin-top: 16px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.list-item-avatar {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
min-width: 80px;
|
|
25
|
-
|
|
26
|
-
.notification-tag {
|
|
27
|
-
margin-top: 4px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.MuiListItem-root:not(.Mui-disabled) {
|
|
32
|
-
.MuiAvatar-root {
|
|
33
|
-
background: ${e=>e.theme.palette.primary.light};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.list-item-text {
|
|
38
|
-
.title {
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
.time-ago {
|
|
42
|
-
background: #bdbdbd;
|
|
43
|
-
font-size: 11px;
|
|
44
|
-
margin-left: 8px;
|
|
45
|
-
color: #f7f8f8;
|
|
46
|
-
border-radius: 3px;
|
|
47
|
-
padding: 1px 4px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
.Mui-disabled .list-item-text .title .time-ago {
|
|
52
|
-
background: #666;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.list-item-secondary-text {
|
|
56
|
-
word-break: break-word;
|
|
57
|
-
}
|
|
58
|
-
`;v.propTypes={loading:s.bool,paging:s.objectOf(s.any),api:s.shape({readNotifications:s.func.isRequired,readBlockletNotifications:s.func.isRequired}).isRequired,notifications:s.arrayOf(s.shape({id:s.string,read:s.bool,entityType:s.string,title:s.string,createdAt:s.string,description:s.string}).isRequired).isRequired,updateNotifications:s.func.isRequired,teamDid:s.string};v.defaultProps={paging:!1,loading:!1,teamDid:""};function tt(){const{did:e}=window.env,{api:a,data:r,paging:n,refresh:o,loading:d}=X();return t.jsx(xe,{className:"list",children:t.jsx(v,{paging:n,loading:d,api:a,notifications:r,updateNotifications:o,teamDid:e})})}const xe=P.div`
|
|
59
|
-
padding: 1em;
|
|
60
|
-
padding-top: 0px;
|
|
61
|
-
margin-top: -1em;
|
|
62
|
-
`;export{tt as default};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{u as I,a7 as w,r as y,a$ as A,j as t,G as C,V as T,bC as b,am as S,bo as B,cx as E,y as L,T as N}from"./index-2668c3ea.js";import{d as P,a as W}from"./domain-list-8a8a0d19.js";import{d as _}from"./ExpandMore-affb00ec.js";import{I as $}from"./index-24e445a7.js";import{T as R}from"./MoreVert-07b57b33.js";import{W as r}from"./did-address-75f80f5d.js";import{B as H}from"./dashboard-adcdef94.js";import"./Add-0fa52156.js";import"./LockIcon-f7bc794a.js";import"./permission-dd5ceeea.js";import"./useAsync-2a7bf586.js";import"./session-f52f379b.js";import"./index-03db2990.js";import"./confirm-0a872969.js";import"./DialogContentText-83546651.js";import"./Alert-037193c9.js";import"./format-error-89fc5b13.js";import"./useSetState-483ba319.js";import"./InfoOutlined-516f0f5e.js";import"./OpenInNew-acb47561.js";import"./api-75ef978a.js";import"./util-c52b3ea9.js";import"./TextField-9def9dd1.js";import"./FormControl-776d5fa1.js";import"./useFormControl-1b3cb36f.js";import"./InputLabel-4899f2ad.js";import"./Select-c9c71312.js";import"./actions-6a1d12bc.js";import"./CardContent-3db164ef.js";import"./index-0ce26e3b.js";import"./toPropertyKey-ceeedea6.js";import"./PlayArrow-d3193b6d.js";import"./ButtonGroup-f91d24e2.js";import"./RadioGroup-3beb2b33.js";import"./FormControlLabel-2ee3fa4b.js";import"./FormGroup-502e9f4e.js";import"./Avatar-45cfefc3.js";import"./spaces-4402bfd9.js";import"./index-35962c8a.js";import"./fallback-e6908990.js";import"./wallet-hidden-topbar-91b1f489.js";import"./selector-e7537a43.js";import"./index-c014ee1d.js";import"./nav-menu-33b9a238.js";import"./Toolbar-58430b9d.js";import"./Hidden-4855abd5.js";import"./makeStyles-af672e02.js";import"./Checkbox-e5abf3e7.js";const K={arcblock:"ArcBlock",ethereum:"Ethereum"};function O(){var u,x,f,v,h;const{t:o,locale:j}=I(),{info:m,inService:g}=w(),[a,k]=y.useState(!1),{blocklet:e}=A(),{appDid:l,appPid:p,migratedFrom:s=[]}=e,c=(u=e.environments.find(i=>i.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:u.value,d=[l?{name:o("blocklet.appId"),value:t.jsx(r,{did:l})}:null,p?{name:o("blocklet.appPid"),value:t.jsx(r,{did:p})}:null,(s==null?void 0:s.length)>1?{name:o("blocklet.alsoKnownAs"),value:t.jsxs("div",{children:[(a?s.slice(1):s.slice(1,2)).map(i=>t.jsx(r,{did:i.appDid})),s.length>2&&t.jsx(C,{style:{marginLeft:"18px"},endIcon:a?t.jsx(P,{}):t.jsx(_,{}),onClick:()=>k(!a),children:o(a?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:o("common.name"),value:T(e,!0)},{name:o("common.status"),value:t.jsx(H,{status:e.status,source:e.source})},b(e)?{name:"NFT",value:t.jsx(r,{external:!0,href:S((x=e==null?void 0:e.controller)==null?void 0:x.chainHost,(f=e==null?void 0:e.controller)==null?void 0:f.nftId,"asset"),did:(v=e==null?void 0:e.controller)==null?void 0:v.nftId})}:null,{name:o("blocklet.installedAt"),value:B(e.installedAt,j)},{name:o("blocklet.overview.accessControl"),value:o(`team.whoCanAccess.${E(e)}.title`)},{name:o("common.owner"),value:(h=e.settings)!=null&&h.owner?t.jsx(r,{did:e.settings.owner.did}):"--"},{name:o("blocklet.config.walletType.name"),value:K[c||"arcblock"]||c},e.externalSkSource?{name:o("blocklet.skSource"),value:e.externalSkSource}:null].filter(Boolean);g&&d.push({name:o("common.serverDid"),value:t.jsx(r,{did:m.did})},{name:o("common.serverVersion"),value:t.jsx(R,{children:m.version})});const D=i=>i.map(n=>t.jsx($,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:n.name,nameFormatter:()=>n.name,children:n.value},n.name));return t.jsxs(V,{component:"div",children:[t.jsx(W,{}),t.jsx("div",{className:"title",children:t.jsx("span",{children:o("common.basicInfo")})}),t.jsx("div",{className:"basicInfo",children:D(d)})]})}O.propTypes={};const V=L(N)`
|
|
2
|
-
.title {
|
|
3
|
-
font-size: 1.2rem;
|
|
4
|
-
font-weight: bold;
|
|
5
|
-
margin-top: ${o=>o.theme.spacing(5)};
|
|
6
|
-
margin-bottom: ${o=>o.theme.spacing(3)};
|
|
7
|
-
|
|
8
|
-
&.first {
|
|
9
|
-
margin-top: 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
`;export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as n,bE as l,O as c,j as o,ak as d,B as u}from"./index-2668c3ea.js";import h from"./index-9871b95b.js";import"./useSetState-483ba319.js";import"./index-2c4ca7b3.js";import"./FilterList-4d23556a.js";import"./TableRow-2ff7461b.js";import"./Checkbox-e5abf3e7.js";import"./FormControlLabel-2ee3fa4b.js";import"./useFormControl-1b3cb36f.js";import"./FormControl-776d5fa1.js";import"./FormGroup-502e9f4e.js";import"./InputLabel-4899f2ad.js";import"./confirm-0a872969.js";import"./DialogContentText-83546651.js";import"./Alert-037193c9.js";import"./format-error-89fc5b13.js";import"./Select-c9c71312.js";import"./TextField-9def9dd1.js";import"./index-0ce26e3b.js";import"./LastPage-68881e08.js";import"./Toolbar-58430b9d.js";import"./index-4f076ed3.js";import"./redux-4a13b1ee.js";import"./toPropertyKey-ceeedea6.js";import"./Grid-e588a591.js";import"./Search-d3d559ed.js";import"./MoreVert-07b57b33.js";import"./did-address-75f80f5d.js";import"./ChevronRight-ad424d62.js";import"./Avatar-45cfefc3.js";import"./session-f52f379b.js";import"./InputAdornment-6977d85a.js";import"./Download-2be25bd9.js";import"./DeleteOutline-9cba8fb2.js";import"./index-f2a9779e.js";import"./index-35962c8a.js";import"./ExpandMore-affb00ec.js";import"./OpenInNew-acb47561.js";import"./api-75ef978a.js";const i=new URL(window.location.href),r=i.searchParams.get("mode")==="dialog",g=r?"":i.searchParams.get("padding")||"";function to(){const{t:e}=n(),{componentDid:s}=l(),p=c(a=>a.breakpoints.down("md")),m=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")},t=o.jsx(h,{padding:g});return r?o.jsx(d,{className:"resource-dialog",title:e("blocklet.publish.createResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:p?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:m,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:o.jsx(u,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:t})}):t}export{to as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,bh as t}from"./index-2668c3ea.js";function e(){return o.useContext(t)}export{e as u};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import{bp as m,O as w,u as x,cy as b,j as n,G as h,B as r,P as e,y}from"./index-2668c3ea.js";function f({key:t}={key:"sm"}){const o=m();return w(o.breakpoints.down(t))}function p({blocklet:t,onStartNow:o,children:s,disabled:l,startNowText:d,startNowProps:u}){const{t:c}=x(),a=f();return!t||b(t.meta)?n.jsx(i,{isMobile:a,children:s}):n.jsxs(i,{isMobile:a,children:[n.jsx(h,{className:"start-now",variant:"outlined",disabled:l,onClick:()=>o(),...u,children:d??c("setup.startNow")}),n.jsx(r,{display:"flex",variant:"contained",color:"primary",alignItems:"center",marginLeft:"32px",children:s})]})}p.propTypes={blocklet:e.object,onStartNow:e.func,children:e.any,disabled:e.bool,startNowText:e.string,startNowProps:e.any};p.defaultProps={blocklet:null,onStartNow:()=>{},children:null,disabled:!1,startNowText:void 0,startNowProps:{}};const i=y(r)`
|
|
2
|
-
padding-top: 24px;
|
|
3
|
-
margin-top: auto;
|
|
4
|
-
width: 100%;
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: flex-end;
|
|
8
|
-
.start-now {
|
|
9
|
-
min-width: 140px;
|
|
10
|
-
}
|
|
11
|
-
.bottom-button {
|
|
12
|
-
min-width: 120px;
|
|
13
|
-
}
|
|
14
|
-
${t=>t.theme.breakpoints.down("lg")} {
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
${t=>t.theme.breakpoints.down("md")} {
|
|
19
|
-
.start-now {
|
|
20
|
-
min-width: inherit;
|
|
21
|
-
}
|
|
22
|
-
.bottom-button {
|
|
23
|
-
min-width: 100px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
${t=>t.isMobile} {
|
|
28
|
-
justify-content: space-between;
|
|
29
|
-
gap: '32px',
|
|
30
|
-
}}
|
|
31
|
-
`;export{p as S,f as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as p,c6 as d}from"./index-2668c3ea.js";var v={};Object.defineProperty(v,"__esModule",{value:!0});var u=p,s=d,_=function(r,e,t){if(!s.isBrowser)return[e,s.noop,s.noop];if(!r)throw new Error("useLocalStorage key may not be falsy");var n=t?t.raw?function(i){return i}:t.deserializer:JSON.parse,l=u.useRef(function(i){try{var f=t?t.raw?String:t.serializer:JSON.stringify,o=localStorage.getItem(i);return o!==null?n(o):(e&&localStorage.setItem(i,f(e)),e)}catch{return e}}),y=u.useState(function(){return l.current(r)}),m=y[0],a=y[1];u.useLayoutEffect(function(){return a(l.current(r))},[r]);var b=u.useCallback(function(i){try{var f=typeof i=="function"?i(m):i;if(typeof f>"u")return;var o=void 0;t?t.raw?typeof f=="string"?o=f:o=JSON.stringify(f):t.serializer?o=t.serializer(f):o=JSON.stringify(f):o=JSON.stringify(f),localStorage.setItem(r,o),a(n(o))}catch{}},[r,a]),g=u.useCallback(function(){try{localStorage.removeItem(r),a(void 0)}catch{}},[r,a]);return[m,b,g]},N=v.default=_;function c(r){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(r)}function h(r,e){if(c(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function J(r){var e=h(r,"string");return c(e)=="symbol"?e:String(e)}export{N as _,c as a,J as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aW as a,eb as n,aU as s}from"./index-2668c3ea.js";var i=n,o=s;function r(e,t){return e&&e.length?o(e,i(t)):[]}var u=r;const q=a(u);export{q as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cv as R,cw as $,r as d}from"./index-2668c3ea.js";const p=R($);var q={},c={},f={},M;function h(){if(M)return f;M=1,Object.defineProperty(f,"__esModule",{value:!0});var e=d;function r(){var t=e.useRef(!1),a=e.useCallback(function(){return t.current},[]);return e.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),a}return f.default=r,f}var A;function k(){if(A)return c;A=1,Object.defineProperty(c,"__esModule",{value:!0});var e=p,r=d,t=e.__importDefault(h());function a(n,o,l){o===void 0&&(o=[]),l===void 0&&(l={loading:!1});var i=r.useRef(0),_=t.default(),g=r.useState(l),y=g[0],v=g[1],F=r.useCallback(function(){for(var b=[],s=0;s<arguments.length;s++)b[s]=arguments[s];var m=++i.current;return y.loading||v(function(u){return e.__assign(e.__assign({},u),{loading:!0})}),n.apply(void 0,b).then(function(u){return _()&&m===i.current&&v({value:u,loading:!1}),u},function(u){return _()&&m===i.current&&v({error:u,loading:!1}),u})},o);return[y,F]}return c.default=a,c}Object.defineProperty(q,"__esModule",{value:!0});var S=p,U=d,j=S.__importDefault(k());function C(e,r){r===void 0&&(r=[]);var t=j.default(e,r,{loading:!0}),a=t[0],n=t[1];return U.useEffect(function(){n()},[n]),a}var O=q.default=C;export{O as _,p as r,q as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aq as a,ar as t,as as e,j as r,at as o}from"./index-2668c3ea.js";const i={zh:a(t),en:a(e)};function p(s){return function(n){return r.jsx(o,{translations:i,children:r.jsx(s,{...n})})}}export{p as w};
|