@abtnode/blocklet-services 1.16.15-beta-9318a201 → 1.16.15-beta-ed0db59e
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/index.js +2 -0
- package/api/libs/image.js +18 -6
- package/api/routes/blocklet.js +26 -1
- package/api/socket/channel/component.js +5 -1
- package/build/asset-manifest.json +91 -91
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/service-worker.js.map +1 -1
- package/build/static/js/1132.1597ceed.chunk.js +3 -0
- package/build/static/js/{1480.f89236fc.chunk.js → 1480.35a3e406.chunk.js} +2 -2
- package/build/static/js/{1546.05fce5c0.chunk.js → 1546.2866cfc3.chunk.js} +2 -2
- package/build/static/js/1565.ae3e8c49.chunk.js +2 -0
- package/build/static/js/{1660.e2ff5a21.chunk.js → 1660.c490fcee.chunk.js} +2 -2
- package/build/static/js/1760.fbe206b1.chunk.js +2 -0
- package/build/static/js/{7.b3c58209.chunk.js → 2100.1e7f0c60.chunk.js} +2 -2
- package/build/static/js/252.27d0e320.chunk.js +3 -0
- package/build/static/js/{2653.58a5430b.chunk.js → 2653.4f690d53.chunk.js} +2 -2
- package/build/static/js/{2664.a42cbb96.chunk.js → 2664.4c6d0f89.chunk.js} +2 -2
- package/build/static/js/2686.04a60159.chunk.js +2 -0
- package/build/static/js/{3551.49951db3.chunk.js → 3551.2f8e4afc.chunk.js} +2 -2
- package/build/static/js/3595.95fb245b.chunk.js +3 -0
- package/build/static/js/{4023.f88d8f4b.chunk.js → 4023.cb71646d.chunk.js} +2 -2
- package/build/static/js/4212.cc2c8542.chunk.js +2 -0
- package/build/static/js/{445.90a9dfcd.chunk.js → 445.21c0ec50.chunk.js} +3 -3
- package/build/static/js/{4716.58477c5c.chunk.js → 4716.60c7a9b1.chunk.js} +2 -2
- package/build/static/js/{5176.9f08e927.chunk.js → 5176.98a62a22.chunk.js} +2 -2
- package/build/static/js/5299.cf6e20df.chunk.js +2 -0
- package/build/static/js/{5355.2eaad302.chunk.js → 5355.cc6d4f2b.chunk.js} +2 -2
- package/build/static/js/5465.e0965b1d.chunk.js +2 -0
- package/build/static/js/{5541.581f1db7.chunk.js → 5541.aec2d90d.chunk.js} +2 -2
- package/build/static/js/5683.7e2e9b58.chunk.js +2 -0
- package/build/static/js/5848.996fcdf6.chunk.js +2 -0
- package/build/static/js/{5960.6c234993.chunk.js → 5960.adcd2848.chunk.js} +2 -2
- package/build/static/js/{6186.e711ab85.chunk.js → 6186.3514a3e4.chunk.js} +2 -2
- package/build/static/js/6700.6c404ac2.chunk.js +2 -0
- package/build/static/js/{6771.583c16c9.chunk.js → 6771.6efce01a.chunk.js} +3 -3
- package/build/static/js/{6856.163537c7.chunk.js → 6856.01a0c9a2.chunk.js} +2 -2
- package/build/static/js/{6869.2fb2d274.chunk.js → 6869.4d45fd2c.chunk.js} +2 -2
- package/build/static/js/6921.3ab94bf5.chunk.js +2 -0
- package/build/static/js/7006.f3628133.chunk.js +2 -0
- package/build/static/js/{7272.608c5875.chunk.js → 7272.c85146f8.chunk.js} +3 -3
- package/build/static/js/8128.e95991f7.chunk.js +3 -0
- package/build/static/js/{8143.6b921364.chunk.js → 8143.5bd71f08.chunk.js} +2 -2
- package/build/static/js/{8527.437a8769.chunk.js → 8527.e82f3a82.chunk.js} +2 -2
- package/build/static/js/{861.a19bf499.chunk.js → 861.2a22cbbf.chunk.js} +2 -2
- package/build/static/js/{878.4424e6e9.chunk.js → 878.3c3babd1.chunk.js} +2 -2
- package/build/static/js/{9107.967c2ac1.chunk.js → 9107.cde956f7.chunk.js} +2 -2
- package/build/static/js/926.2a63d835.chunk.js +2 -0
- package/build/static/js/9260.78822a10.chunk.js +3 -0
- package/build/static/js/{9409.0d5d4de2.chunk.js → 9409.21bf1e37.chunk.js} +2 -2
- package/build/static/js/{9620.4b7c9e8b.chunk.js → 9620.c8f2696a.chunk.js} +2 -2
- package/build/static/js/{9899.18509ac9.chunk.js → 9899.eb448353.chunk.js} +2 -2
- package/build/static/js/main.f72325db.js +3 -0
- package/package.json +23 -23
- package/build/static/js/1132.c008fe16.chunk.js +0 -3
- package/build/static/js/1565.74308e72.chunk.js +0 -2
- package/build/static/js/1760.3318c7ca.chunk.js +0 -2
- package/build/static/js/252.8dd19212.chunk.js +0 -3
- package/build/static/js/2686.3a7c583a.chunk.js +0 -2
- package/build/static/js/3179.03c92dcb.chunk.js +0 -2
- package/build/static/js/3595.d4510796.chunk.js +0 -3
- package/build/static/js/4212.d2a239de.chunk.js +0 -2
- package/build/static/js/5465.f32033e1.chunk.js +0 -2
- package/build/static/js/5683.46331372.chunk.js +0 -2
- package/build/static/js/5848.487098c8.chunk.js +0 -2
- package/build/static/js/6700.e22cc266.chunk.js +0 -2
- package/build/static/js/6921.2f39f974.chunk.js +0 -2
- package/build/static/js/7006.b21fb368.chunk.js +0 -2
- package/build/static/js/8365.f20d6e52.chunk.js +0 -3
- package/build/static/js/926.d1421ce1.chunk.js +0 -2
- package/build/static/js/9260.d8f59a75.chunk.js +0 -3
- package/build/static/js/main.dad0c18f.js +0 -3
- /package/build/static/js/{1132.c008fe16.chunk.js.LICENSE.txt → 1132.1597ceed.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{252.8dd19212.chunk.js.LICENSE.txt → 252.27d0e320.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3595.d4510796.chunk.js.LICENSE.txt → 3595.95fb245b.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{445.90a9dfcd.chunk.js.LICENSE.txt → 445.21c0ec50.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6771.583c16c9.chunk.js.LICENSE.txt → 6771.6efce01a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7272.608c5875.chunk.js.LICENSE.txt → 7272.c85146f8.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8365.f20d6e52.chunk.js.LICENSE.txt → 8128.e95991f7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9260.d8f59a75.chunk.js.LICENSE.txt → 9260.78822a10.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.dad0c18f.js.LICENSE.txt → main.f72325db.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6856,6378],{26658:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return k}});var o,s=t(71171),r=t(32723),a=t(34795),i=t(30969),c=t(16380),l=t(30734),u=t(94308),f=t(238),d=t(94984),p=t(
|
|
2
|
-
//# sourceMappingURL=6856.
|
|
1
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6856,6378],{26658:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return k}});var o,s=t(71171),r=t(32723),a=t(34795),i=t(30969),c=t(16380),l=t(30734),u=t(94308),f=t(238),d=t(94984),p=t(22100),v=t(47333),h=t(20244),x=t(85752),w=t(37574);var g=(0,x.Z)((function(e){var n=e.SessionContext,t=e.webWalletUrl,o=e.onSuccess,s=(0,i.useContext)(n),c=s.api,x=s.session,g=(0,v.PE)(),b=g.t,P=g.locale,k=(0,l.useNavigate)(),Z=new URL(window.location.href).searchParams,_=Z.get("redirect"),E=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n,t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o(n,t),e.next=3,x.refresh();case 3:d.Z.success(b("exchangePassport.success")),setTimeout((function(){if(_){var e=decodeURIComponent(_);e.startsWith(h.WELLKNOWN_SERVICE_PATH_PREFIX)?k(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"}),3e3);case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),j={},y=Z.get("componentId");return y&&(j.componentId=y),x.loading?(0,w.jsx)(f.Z,{children:(0,w.jsx)(u.Z,{})}):(0,w.jsx)(m,{children:(0,w.jsx)("div",{className:"connect-wrapper",children:(0,w.jsx)(p.default,{className:"connect",action:"exchange-passport",checkFn:c.get,checkTimeout:6e5,webWalletUrl:t,onSuccess:E,onError:function(e){d.Z.error(e.message)},locale:P,messages:{title:b("exchangePassport.dialog.title"),scan:b("exchangePassport.dialog.scan"),confirm:b("exchangePassport.dialog.confirm"),success:b("exchangePassport.dialog.success")},extraParams:j,extraContent:null})})})})),m=c.default.div(o||(o=(0,s.Z)(["\n box-sizing: border-box;\n width: 100%;\n height: 100vh;\n position: relative;\n display: flex;\n flex-direction: column;\n .connect-wrapper {\n flex: 1;\n }\n .connect {\n background: #fafafa;\n }\n"]))),b=t(4485),P=t(38507);function k(){var e=(0,P.yP)();return(0,w.jsx)(g,{SessionContext:b.B3,webWalletUrl:e,onSuccess:function(e,n){e.sessionToken&&((0,P.ZB)(n(e.sessionToken)),(0,P.zI)(n(e.refreshToken)))}})}},19477:function(e,n,t){var o=t(2717),s=t(37095),r=t(93113);e.exports={translations:{zh:o(r),en:o(s)}}},85752:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var o=t(33028),s=t(47333),r=t(19477),a=t(37574);function i(e){return function(n){return(0,a.jsx)(s.Iw,{translations:r.translations,children:(0,a.jsx)(e,(0,o.Z)({},n))})}}},46378:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isNavigator=n.isBrowser=n.off=n.on=n.noop=void 0;n.noop=function(){},n.on=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.addEventListener&&e.addEventListener.apply(e,n)},n.off=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)},n.isBrowser="undefined"!==typeof window,n.isNavigator="undefined"!==typeof navigator}}]);
|
|
2
|
+
//# sourceMappingURL=6856.01a0c9a2.chunk.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6869],{92746:function(e,n,t){var r,a=t(71171),s=t(33028),o=t(59740),i=t(16380),c=t(50442),l=t(37574),p=["labelProps","className","style"];function u(e){var n=e.labelProps,t=e.className,r=e.style,a=(0,o.Z)(e,p),i=(0,s.Z)((0,s.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,l.jsx)(d,{className:t,style:r,children:(0,l.jsx)(c.Z,(0,s.Z)({labelProps:i},a))})}u.propTypes=c.Z.propTypes,u.defaultProps=c.Z.defaultProps;var d=i.default.div(r||(r=(0,a.Z)(["\n max-width: 300px;\n > label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n }\n "," {\n max-width: 100%;\n }\n"])),(function(e){return e.theme.breakpoints.down("sm")}));n.Z=u},66869:function(e,n,t){t.r(n),t.d(n,{default:function(){return He}});var r=t(30969),a=t(45008),s=t(30134),o=t(33028),i=t(38361),c=t(33359),l=t(47333),p=t(32723),u=t(34795),d=t(96234),f=t(59740),h=t(94308),m=t(43207),x=t(87006),v=t(29996),g=t(50007),Z=t(19611),y=t.n(Z),k=t(94984),j=t(59505),b=t(15419),w=t(50496),A=t(23299),C=t(24974),B=t.n(C),S=t(20244),I=t(54559),D=t(24891),E=t(41395),R=t(83998),U=t(37574),T=["spaceGateways","refreshSpaceGateways"];function L(e){var n=e.spaceGateways,t=e.refreshSpaceGateways,Z=(0,f.Z)(e,T),C=(0,a.y0)().blocklet,B=(0,E.h6)(),L=B.info,F=B.api,O=(0,l.PE)(),G=O.t,N=O.locale,z=(0,r.useMemo)((function(){return(0,s.mo)(null===C||void 0===C?void 0:C.environments)}),[C]),P=(0,r.useState)(""),M=(0,d.Z)(P,2),J=M[0],Q=M[1],H=(0,r.useState)(!1),K=(0,d.Z)(H,2),V=K[0],X=K[1],Y=(0,r.useState)(!1),W=(0,d.Z)(Y,2),q=W[0],_=W[1],$=(0,r.useState)(""),ee=(0,d.Z)($,2),ne=ee[0],te=ee[1],re=(0,R.Z)({blocklet:C}),ae=(0,D.yP)(L),se=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,prefix:y()(S.PROD_DID_SPACES.CORE_URL,"space/api/did"),baseUrl:new URL(S.PROD_DID_SPACES.CORE_URL).origin,checkFn:I.od.create({baseURL:y()(S.PROD_DID_SPACES.CORE_URL,"space")}).get,messages:{title:G("storage.spaces.provideNFT.title",{appName:re.appName},N),scan:G("storage.spaces.provideNFT.scan",{appName:re.appName},N),confirm:"",success:(0,U.jsx)(c.Z,{gutterBottom:!0,children:G("storage.spaces.provideNFT.success")})},onClose:function(){ce((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})}))}}),oe=(0,d.Z)(se,2),ie=oe[0],ce=oe[1],le=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:G("storage.spaces.authorize.title",{appName:re.appName},N),scan:G("storage.spaces.authorize.scan",{appName:re.appName},N),confirm:"",success:(0,U.jsx)(c.Z,{gutterBottom:!0,children:G("storage.spaces.authorize.success")})},onClose:function(){de((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})}))}}),pe=(0,d.Z)(le,2),ue=pe[0],de=pe[1],fe=function(e,n){setTimeout((0,u.Z)((0,p.Z)().mark((function t(){var r,a;return(0,p.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return de((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),ce((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),r=n(e.endpoint),a=e.space?n(e.space):{},t.next=6,he((0,o.Z)((0,o.Z)({endpoint:r},{did:(0,s.LQ)(r),name:"DID Space"}),a));case 6:case"end":return t.stop()}}),t)}))),0)},he=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(r){var a,o,i,c,l,u,d,f;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=r.endpoint,l=r.name,u=r.did,(d=null===c||void 0===c||null===(a=c.replace(/\/api\/.+/,""))||void 0===a||null===(o=a.trim())||void 0===o?void 0:o.replace(/\/$/,"")).startsWith("http")||(d="https://".concat(d)),e.next=5,(0,s.w2)(d);case 5:if(e.sent){e.next=8;break}return k.Z.error(G("storage.spaces.gateway.add.invalidUrl")),e.abrupt("return");case 8:if(!n.some((function(e){return e.endpoint===c}))){e.next=12;break}return k.Z.error(G("storage.spaces.gateway.add.duplicate",{name:l})),e.abrupt("return");case 12:return f={name:l,did:u,url:d,endpoint:c},e.next=15,F.addBlockletSpaceGateway({input:{did:C.meta.did,spaceGateway:f}});case 15:if(z===c){e.next=18;break}return e.next=18,F.configBlocklet({input:{did:[C.meta.did],configs:[{key:j.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:c}]}});case 18:k.Z.success(G("storage.spaces.connectedWithName",{name:null!==(i=null===f||void 0===f?void 0:f.name)&&void 0!==i?i:"DID Spaces"})),t();case 20:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),me=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){var n,t;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,X(!0),n=J.startsWith("http")?J:"https://".concat(J),e.next=5,(0,s.w2)(n);case 5:if(e.sent){e.next=7;break}throw new Error(G("storage.spaces.gateway.add.invalidUrl"));case 7:de((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!0,prefix:y()(n,"space/api/did"),baseUrl:new URL(n).origin,checkFn:I.od.create({baseURL:y()(n,"space")}).get,extraParams:{appDid:re.appDid,appName:re.appName,appDescription:re.appDescription,scopes:re.scopes,appUrl:re.appUrl,referrer:re.referrer,nodeDid:L.did}})})),_(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),t="".concat(G("storage.spaces.gateway.add.failed",N),": ").concat((0,D.Z)(e.t0)),te(t);case 15:return e.prev=15,X(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,11,15,18]])})));return function(){return e.apply(this,arguments)}}();return(0,U.jsxs)(i.Z,{children:[(0,U.jsx)(b.Z,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:function(){ce((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!0,extraParams:{appDid:re.appDid,appName:re.appName,appDescription:re.appDescription,scopes:re.scopes,appUrl:re.appUrl,referrer:re.referrer,nodeDid:L.did}})}))},menu:[(0,U.jsx)(b.Z.Item,(0,o.Z)((0,o.Z)({sx:{textTransform:"none"},onClick:function(){return _(!0)},size:"small"},Z),{},{children:G("storage.spaces.connect.useSpaceGateway")}),"1")],children:(0,U.jsx)(c.Z,{sx:{fontWeight:"bold",textTransform:"none"},children:G("storage.spaces.connect.useWallet")})}),(0,U.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:ie.prefix,open:ie.open,popup:!0,action:ie.action,webWalletUrl:ae,baseUrl:ie.baseUrl,checkFn:ie.checkFn,onSuccess:fe,onClose:ie.onClose,checkTimeout:ie.checkTimeout,extraParams:ie.extraParams,messages:ie.messages,locale:N}),(0,U.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:ue.prefix,open:ue.open,popup:!0,action:ue.action,baseUrl:ue.baseUrl,checkFn:ue.checkFn,onSuccess:fe,onClose:ue.onClose,checkTimeout:ue.checkTimeout,extraParams:ue.extraParams,messages:ue.messages,locale:N}),(0,U.jsxs)(w.Z,{title:G("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:q,onClose:function(){return _(!1)},PaperProps:{style:{minHeight:"auto"}},actions:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(v.Z,{onClick:function(e){e.stopPropagation(),_(!1)},color:"inherit",children:G("common.cancel")}),(0,U.jsxs)(v.Z,{onClick:me,color:"primary",disabled:V||!J,variant:"contained",autoFocus:!0,children:[V&&(0,U.jsx)(h.Z,{size:16}),G("common.confirm")]})]}),children:[(0,U.jsx)("div",{style:{paddingTop:12,overflowY:"hidden"},children:(0,U.jsx)(m.Z,{component:"div",children:(0,U.jsx)(c.Z,{component:"div",children:(0,U.jsx)(x.Z,{label:G("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:J,onChange:function(e){te(null),Q(e.target.value)},disabled:V,onKeyPress:function(){var e=(0,u.Z)((0,p.Z)().mark((function e(n){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==n.key){e.next=3;break}return e.next=3,me();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),autoFocus:!0})})})}),Boolean(ne)&&(0,U.jsx)(A.Z,{type:"error",style:{width:"100%"},children:ne})]})]})}L.propTypes={spaceGateways:C.array,refreshSpaceGateways:C.func},L.defaultProps={spaceGateways:[],refreshSpaceGateways:function(){}};var F,O=L,G=t(71171),N=t(16380),z=t(99237),P=t.n(z),M=t(19638),J=t(70177),Q=["blocklet"];function H(e){var n=e.blocklet,t=(0,f.Z)(e,Q),a=(0,r.useContext)(l.RD).t;if(!n.diskInfo)return(0,U.jsx)(c.Z,{children:a("blocklet.diskInfo.empty")});var s=function(e,n,t){return(0,U.jsxs)(c.Z,{children:[t?(0,U.jsx)(M.Z,{style:{cursor:"pointer"},onClick:t,underline:"hover",children:e}):e," ",(0,U.jsx)("strong",{children:n?P()(n):"empty"})]})},i=n.environments.reduce((function(e,n){return e[n.key]=n.value,e}),{}),p=[{key:"appDir",name:a("blocklet.diskInfo.appDir"),value:s(i.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:a("blocklet.diskInfo.dataDir"),value:s(i.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:a("blocklet.diskInfo.logDir"),value:s(i.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:a("blocklet.diskInfo.cacheDir"),value:s(i.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return(0,U.jsx)(K,(0,o.Z)((0,o.Z)({component:"div"},t),{},{children:p.map((function(e){return(0,U.jsx)(J.Z,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.key)}))}))}H.propTypes={blocklet:B().object.isRequired},H.defaultProps={};var K=(0,N.default)(c.Z)(F||(F=(0,G.Z)([""]))),V=function(e){return(0,U.jsxs)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:[(0,U.jsxs)("g",{filter:"url(#a)",children:[(0,U.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"}),(0,U.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"}),(0,U.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,U.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"})}),(0,U.jsxs)("g",{mask:"url(#b)",children:[(0,U.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,U.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,U.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"}),(0,U.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)"}),(0,U.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)"}),(0,U.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,U.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"}),(0,U.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"})]}),(0,U.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,U.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"}),(0,U.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"})]})]}),(0,U.jsxs)("defs",{children:[(0,U.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,U.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,U.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"}),(0,U.jsx)("feOffset",{dy:"2"}),(0,U.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,U.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,U.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"}),(0,U.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,U.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,U.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,U.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,U.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,U.jsx)("stop",{stopColor:"#101010"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,U.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,U.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,U.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,U.jsx)("stop",{stopColor:"#fff"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,U.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:[(0,U.jsx)("stop",{stopColor:"#016BED"}),(0,U.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,U.jsx)("clipPath",{id:"g",children:(0,U.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,U.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IBstE0E8kxJLeKaVhNA/uEwIslv1JmRwcSzAo+URPCF5M8AGzEF8yG+QVBFl53FqhfYqd7/PM6AmJouW4cVge9pZuMJga2NQH918Sp4VIXddVCKizUT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pny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]}))};function X(){var e=(0,l.PE)().t,n=(0,a.y0)().blocklet;return(0,U.jsxs)(i.Z,{children:[(0,U.jsxs)(i.Z,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[(0,U.jsx)(V,{style:{width:200,height:250}}),(0,U.jsx)(c.Z,{marginTop:"24px",marginBottom:"24px",children:e("storage.spaces.connect.provider")}),(0,U.jsx)(O,{})]}),(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:e("common.dataStorage")}),(0,U.jsx)(H,{blocklet:n})]})}V.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},X.propTypes={};var Y=X,W=t(57982),q=t(7173),_=t(38627),$=t(54164),ee=t(50576),ne=t(38996),te=t(36558),re=t(92746),ae=t(94551),se=t(48082),oe=t(2689),ie=t(93310),ce=t(86008),le=t(37973),pe=t(20352),ue=t(61292),de=t(60030),fe=t(30291),he=t(67531);function me(e){var n=e.spaceGateway,t=e.onDelete,a=(0,l.PE)().t,s=(0,r.useState)(!1),o=(0,d.Z)(s,2),i=o[0],c=o[1],f=(0,r.useState)(!1),h=(0,d.Z)(f,2),m=h[0],x=h[1],v=function(e,n){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),c(n)},g=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(r){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,null===r||void 0===r||r.stopPropagation(),x(!0),e.next=5,t(n);case 5:c(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),k.Z.error("".concat(a("storage.space.gateway.delete.failed"),": ").concat((0,D.Z)(e.t0)));case 12:return e.prev=12,x(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(n){return e.apply(this,arguments)}}();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(oe.Z,{color:"red",onClick:function(e){return v(e,!0)},children:[(0,U.jsx)(ie.Z,{style:{minWidth:24,color:"red"},children:(0,U.jsx)(fe.default,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{style:{color:"red"},children:a("common.delete")})]}),(0,U.jsx)(he.Z,{title:a("common.delConfirmDescription",{data:"".concat(null===n||void 0===n?void 0:n.name)}),open:i,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:m}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:g,onCancel:function(e){return v(e,!1)}})]})}me.propTypes={onDelete:B().func,spaceGateway:B().shape({name:B().string.isRequired,url:B().string.isRequired,protected:B().bool}).isRequired},me.defaultProps={onDelete:function(){}};var xe=me,ve=["spaceGateway","connected","onDelete","onConnect","enableSwitchToSpace"];function ge(e){var n=e.spaceGateway,t=e.connected,a=e.onDelete,i=e.onConnect,c=e.enableSwitchToSpace,h=(0,f.Z)(e,ve),m=(0,r.useState)(null),x=(0,d.Z)(m,2),v=x[0],g=x[1],Z=(0,l.PE)().t,y=function(e,n){e.stopPropagation(),e.preventDefault(),g(n&&e.currentTarget)},k=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(t){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(t,!1),e.next=3,i(n);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ae.Z,(0,o.Z)((0,o.Z)({"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:function(e){return y(e,!0)},size:"small"},h),{},{children:(0,U.jsx)(le.Z,{})})),(0,U.jsxs)(se.Z,{id:"simple-menu",anchorEl:v,keepMounted:!0,open:Boolean(v),onClose:function(e){return y(e,!1)},children:[(0,U.jsxs)(oe.Z,{onClick:function(e){y(e,!1),window.open(n.endpoint?(0,s.nD)(n.endpoint):n.url)},children:[(0,U.jsx)(ie.Z,{style:{minWidth:24},children:(0,U.jsx)(pe.Z,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{children:Z("common.open")})]}),(0,U.jsxs)(oe.Z,{onClick:function(e){y(e,!1),window.open((0,s.Xv)(n.endpoint))},children:[(0,U.jsx)(ie.Z,{style:{minWidth:24},children:(0,U.jsx)(de.Z,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{children:Z("storage.spaces.strategy.viewBackupFiles")})]}),!t&&c&&(0,U.jsxs)(oe.Z,{onClick:k,children:[(0,U.jsx)(ie.Z,{style:{minWidth:24},children:(0,U.jsx)(ue.Z,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{children:Z("storage.spaces.connect.switchToSpace")})]}),!t&&(0,U.jsx)(xe,{spaceGateway:n,onDelete:a})]})]})}ge.propTypes={spaceGateway:B().shape({name:B().string.isRequired,url:B().string.isRequired,protected:B().bool,endpoint:B().string.isRequired}).isRequired,connected:B().bool.isRequired,enableSwitchToSpace:B().bool,onDelete:B().func,onConnect:B().func},ge.defaultProps={onDelete:function(){},onConnect:function(){},enableSwitchToSpace:!0};var Ze,ye=ge,ke=t(19066),je=t(50202),be=["spaceGateway","connected","progress","onDelete","onBackupNow","refreshSpaceGateways"],we=function(e){return(0,U.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,U.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})}))};we.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ae=function(e){return(0,U.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,U.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})}))};function Ce(e){var n=e.spaceGateway,t=e.connected,h=e.progress,m=e.onDelete,x=e.onBackupNow,Z=e.refreshSpaceGateways,b=(0,f.Z)(e,be),w=(0,l.PE)(),A=w.t,C=w.locale,B=(0,r.useState)(!1),S=(0,d.Z)(B,2),D=S[0],T=S[1],L=(0,a.y0)().blocklet,F=(0,E.h6)(),O=F.api,G=F.info.did,N=(0,R.Z)({blocklet:L}),z=N.appDid,P=N.appName,M=N.appDescription,J=N.scopes,Q=N.appUrl,H=N.referrer,K=(0,r.useMemo)((function(){return(0,s.mo)(null===L||void 0===L?void 0:L.environments)}),[L]),V=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:A("storage.spaces.authorize.title",{appName:P},C),scan:A("storage.spaces.authorize.scan",{appName:P},C),confirm:"",success:(0,U.jsx)(c.Z,{gutterBottom:!0,children:A("storage.spaces.authorize.success")})},onClose:function(){W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})}))}}),X=(0,d.Z)(V,2),Y=X[0],W=X[1],ae=(0,$.Z)((0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",!0);case 2:return e.abrupt("return",(0,s.Nb)(K));case 3:case"end":return e.stop()}}),e)}))),{refreshDeps:[t,K,null===Y||void 0===Y?void 0:Y.open,D]}),se=ae.data,oe=ae.loading,ie=t&&se,ce=t&&!D&&se,le=t&&D&&se,pe=t&&!se&&!oe&&!D,ue=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.Nb)(null===n||void 0===n?void 0:n.endpoint);case 2:if(!e.sent){e.next=8;break}return e.next=6,O.configBlocklet({input:{did:[L.meta.did],configs:[{key:j.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 6:return k.Z.success(A("storage.spaces.connect.switchToSpaceSucceeded",{name:n.name?"(".concat(n.name,")"):""})),e.abrupt("return");case 8:W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!0,prefix:y()(n.url,"space/api/did"),baseUrl:new URL(n.url).origin,checkFn:I.od.create({baseURL:y()(n.url,"space")}).get,extraParams:{appDid:z,appName:P,appDescription:M,scopes:J,appUrl:Q,referrer:H,nodeDid:G}})}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(t,r){var a,i,c,l,u,d;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=r(t.endpoint),u=(0,s.LQ)(l),d=t.space?r(t.space):{},!n.did||u===n.did){e.next=7;break}return W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),k.Z.error(A("storage.spaces.gateway.switch.failedForMismatchSpace",{name:null!==d&&void 0!==d&&d.name?d.name:""})),e.abrupt("return");case 7:return e.next=9,O.updateBlockletSpaceGateway({input:{did:L.meta.did,where:{url:null===n||void 0===n?void 0:n.url},spaceGateway:(0,o.Z)((0,o.Z)({},n),{},{name:null!==(a=d.name)&&void 0!==a?a:"DID Space",did:null!==(i=d.did)&&void 0!==i?i:(0,s.LQ)(l),endpoint:l})}});case 9:if(K===l){e.next=12;break}return e.next=12,O.configBlocklet({input:{did:[L.meta.did],configs:[{key:j.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:l}]}});case 12:k.Z.success(A("storage.spaces.connectedWithName",{name:null!==(c=null===n||void 0===n?void 0:n.name)&&void 0!==c?c:"DID Spaces"})),W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),Z();case 15:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),fe=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!D){e.next=3;break}return e.abrupt("return");case 3:return T(!0),e.next=6,x();case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),k.Z.error(e.t0.message);case 12:return e.prev=12,T(!0),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){null!==h&&void 0!==h&&h.completed?(100===(null===h||void 0===h?void 0:h.progress)?k.Z.success(A("storage.spaces.backupSuccessfully")):-1===(null===h||void 0===h?void 0:h.progress)&&k.Z.error(null===h||void 0===h?void 0:h.message),T(!1),h.progress=0,h.message=""):h.progress&&T(!0)}),[h]),(0,U.jsxs)(Be,{style:{position:"relative"},children:[(0,U.jsxs)(i.Z,(0,o.Z)((0,o.Z)({sx:{backgroundColor:t?"#F0FDFF":"inherit","&:hover":{backgroundColor:t?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px"},b),{},{children:[(0,U.jsx)(i.Z,{display:"flex",children:(0,U.jsx)(je.Z,{alt:n.did,src:(0,s.Jf)(n.endpoint)})}),(0,U.jsxs)(i.Z,{className:"spaces-info",display:"flex",flexGrow:1,flexDirection:le?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[(0,U.jsxs)(i.Z,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[(0,U.jsx)(c.Z,{color:t?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:n.name}),ie&&(0,U.jsx)(q.Z,{label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(we,{style:{marginRight:"4px"}}),A("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),pe&&(0,U.jsx)(q.Z,{label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ae,{style:{marginRight:"4px"}}),A("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),(0,U.jsx)(i.Z,{className:"spaces-address",display:le?"none":"flex",color:"#9397A1",marginTop:"8px",children:(0,U.jsx)(c.Z,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:n.did&&(0,U.jsx)(te.Z,{copyable:!1,size:14,compact:!0,responsive:!1,did:n.did})})})]}),(0,U.jsxs)(i.Z,{className:"spaces-backup",display:"flex",alignItems:"center",children:[ce&&(0,U.jsxs)(i.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[(0,U.jsx)(v.Z,{variant:"contained",size:"small",onClick:fe,children:A("storage.spaces.strategy.backupNow")}),ke.C&&(0,U.jsx)(re.Z,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:(0,U.jsx)(c.Z,{sx:{marginRight:"8px",fontSize:"16px"},children:(0,U.jsx)("span",{children:A("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),le&&(0,U.jsxs)(i.Z,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:"640px",marginRight:"auto",alignSelf:"end",children:[(0,U.jsx)(c.Z,{color:"primary",children:null===h||void 0===h?void 0:h.message}),(0,U.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[(0,U.jsx)(i.Z,{sx:{width:"100%",mr:1},children:(0,U.jsx)(_.Z,{color:"primary",variant:"determinate",value:null===h||void 0===h?void 0:h.progress})}),(0,U.jsx)(i.Z,{sx:{minWidth:35},children:(0,U.jsxs)(c.Z,{variant:"body2",color:"text.secondary",children:[null===h||void 0===h?void 0:h.progress,"%"]})})]})]}),pe&&(0,U.jsx)(i.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:(0,U.jsx)(v.Z,{color:"error",variant:"contained",size:"small",onClick:ue,children:A("storage.spaces.disconnected.reconnectNow")})}),(0,U.jsx)(ye,{sx:{marginLeft:"16px",marginRight:"16px"},spaceGateway:n,connected:t,onDelete:m,onConnect:ue,enableSwitchToSpace:(null===h||void 0===h?void 0:h.completed)||(0,ee.isEmpty)(null===h||void 0===h?void 0:h.message)})]})]})),(0,U.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:Y.prefix,open:Y.open,popup:!0,action:Y.action,baseUrl:Y.baseUrl,checkFn:Y.checkFn,onSuccess:de,onClose:Y.onClose,checkTimeout:Y.checkTimeout,extraParams:Y.extraParams,messages:Y.messages,locale:C},"get-endpoint"),(0,U.jsx)(i.Z,{className:"selected-container ".concat(t?"selected":""),children:(0,U.jsx)(ne.default,{className:"selected-icon"})})]})}Ae.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ce.propTypes={spaceGateway:B().shape({did:B().string.isRequired,name:B().string.isRequired,url:B().string.isRequired,endpoint:B().string.isRequired,protected:B().bool}).isRequired,connected:B().bool.isRequired,progress:B().any.isRequired,refreshSpaceGateways:B().func.isRequired,onDelete:B().func,onBackupNow:B().func},Ce.defaultProps={onDelete:function(){},onBackupNow:function(){}};var Be=(0,N.default)(i.Z)(Ze||(Ze=(0,G.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"]))),Se=Ce,Ie=t(9715),De=t(2291),Ee=t(6779),Re=t(20296),Ue=t(19886),Te=t.n(Ue),Le=t(88666);function Fe(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.loading,s=n.progress,o=(0,a.y0)().blocklet,i=(0,r.useState)([]),c=(0,d.Z)(i,2),l=c[0],f=c[1],h=(0,E.h6)().api,m=(0,r.useCallback)((0,ee.throttle)((0,u.Z)((0,p.Z)().mark((function e(){var n,t,r;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getBlockletBackups({input:{did:null===o||void 0===o||null===(n=o.meta)||void 0===n?void 0:n.did}});case 2:t=e.sent,r=t.backups,f(null!==r&&void 0!==r?r:[]);case 5:case"end":return e.stop()}}),e)}))),2e3),[]);return(0,W.Z)((0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m();case 1:case"end":return e.stop()}}),e)}))),[null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,s,t]),{backups:l}}var Oe=["progress","spaceGateways"];function Ge(e){var n=e.progress,t=e.spaceGateways,r=(0,f.Z)(e,Oe),a=(0,l.PE)(),s=a.t,p=a.locale,u=Fe({progress:n}).backups,d=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:function(e){var n,r=u[e],a=r.targetUrl,s=r.targetName,o=(null===(n=t.find((function(e){return null===a||void 0===a?void 0:a.includes(null===e||void 0===e?void 0:e.url)})))||void 0===n?void 0:n.name)||s||"DID Space";return(0,U.jsx)(M.Z,{fontSize:"16px",href:a,target:"_blank",children:o})}}},{label:s("common.strategy"),name:"strategy",options:{customBodyRender:function(e){var n=s(0===e?"common.auto":"common.manual");return(0,U.jsx)(Ie.Z,{children:n})}}},{label:s("common.startTime"),name:"createdAt",options:{customBodyRender:function(e){return Te()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:s("common.endTime"),name:"updatedAt",options:{customBodyRender:function(e){return(0,ee.isEmpty)(e)?"":Te()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n,t=null!==(n=null===u||void 0===u?void 0:u[e])&&void 0!==n?n:{},r=t.status,a=t.message,o=t.createdAt,l=(0,ee.isNull)(r)&&Te()().diff(o,"hours")>6,p=l&&s("common.timeoutError"),d=0===r&&!l;return(0,ee.isNull)(r)&&!l?(0,U.jsxs)(c.Z,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[(0,U.jsx)(h.Z,{sx:{marginRight:"4px"},size:"12px"}),s("common.progress")]}):d?(0,U.jsx)(Ie.Z,{type:"success",children:s("common.succeeded")}):(0,U.jsxs)(i.Z,{display:"inline-flex",alignItems:"center",children:[(0,U.jsx)(Ie.Z,{type:"error",children:s("common.failed")})," \xa0",(0,U.jsx)(Ee.Z,{style:{display:"flex",alignItems:"center",flexShrink:0},title:a||p,children:(0,U.jsx)(Re.Z,{children:(0,U.jsx)(Le.Z,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return(0,U.jsx)(i.Z,(0,o.Z)((0,o.Z)({},r),{},{children:null!==u&&void 0!==u&&u.length?(0,U.jsx)(De.Z,{title:(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")}),data:u,columns:d,emptyNode:s("storage.spaces.record.emptyData",p),options:{download:!1,filter:!1,print:!1}}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(i.Z,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")})}),(0,U.jsx)(i.Z,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:s("storage.spaces.record.emptyData")})]})}))}Ge.propTypes={progress:C.object.isRequired,spaceGateways:C.array.isRequired};var Ne=Ge;var ze=function(e){var n=e.appDid,t=Fe().backups,a=(0,r.useState)({message:"",progress:0,completed:!1}),s=(0,d.Z)(a,2),i=s[0],c=s[1];return(0,(0,E.h6)().ws.useSubscription)(j.BlockletEvents.backupProgress,(function(e){n===(null===e||void 0===e?void 0:e.appDid)&&c((function(){return(0,o.Z)({},e)}))}),[n]),(0,r.useEffect)((function(){var e;if(null!==t&&void 0!==t&&t.length&&(0,ee.isNull)(null===(e=t[0])||void 0===e?void 0:e.status)){var n=(0,d.Z)(t,1)[0];c((function(){return{message:n.message,progress:n.progress,completed:Boolean(n.progress>=100)}}))}}),[t]),i};function Pe(e){return Me.apply(this,arguments)}function Me(){return Me=(0,u.Z)((0,p.Z)().mark((function e(n){var t,r,a,i,c;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.blockletDid,r=n.nodeApi,a=n.spaceGateways,i=!1,e.next=4,Promise.all(a.map(function(){var e=(0,u.Z)((0,p.Z)().mark((function e(n){var t,r;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,(0,s.nU)(n.endpoint);case 3:return r=e.sent,(0,ee.isEmpty)(r)||r===t||(t=r,i=!0),e.abrupt("return",(0,o.Z)((0,o.Z)({},n),{},{name:t}));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:if(c=e.sent,!i){e.next=8;break}return e.next=8,Promise.all(c.filter((function(e){return e.did})).map((function(e){return r.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:(0,o.Z)({},e)}})})));case 8:return e.abrupt("return",c);case 9:case"end":return e.stop()}}),e)}))),Me.apply(this,arguments)}var Je=function(){var e,n=(0,l.PE)().t,t=(0,a.y0)(),o=t.blocklet,f=t.actions.refreshBlocklet,m=(0,E.h6)().api,x=(0,r.useMemo)((function(){return(0,s.mo)(null===o||void 0===o?void 0:o.environments)}),[o]),v=ze({appDid:null===o||void 0===o?void 0:o.appDid}),g=(0,r.useState)(!1),Z=(0,d.Z)(g,2),y=Z[0],j=Z[1],b=function(e){var n=e.blockletDid,t=e.setLoading,a=void 0===t?function(){}:t,s=(0,r.useState)(!1),o=(0,d.Z)(s,2),i=o[0],c=o[1],l=(0,r.useState)([]),f=(0,d.Z)(l,2),h=f[0],m=f[1],x=(0,E.h6)().api;return(0,W.Z)((0,u.Z)((0,p.Z)().mark((function e(){var t,r,s;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n){e.next=4;break}return m([]),e.abrupt("return");case 4:return a(!0),e.next=7,x.getBlockletSpaceGateways({input:{did:n}});case 7:return t=e.sent,r=t.spaceGateways,e.next=11,Pe({blockletDid:n,nodeApi:x,spaceGateways:r});case 11:s=e.sent,m(null!==s&&void 0!==s?s:[]),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error(e.t0),k.Z.error((0,D.Z)(e.t0));case 19:return e.prev=19,a(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])}))),[n,i]),{refreshSpaceGateways:function(){c((function(e){return!e}))},spaceGateways:h}}({blockletDid:null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,setLoading:j,refreshBlocklet:f}),w=b.spaceGateways,A=b.refreshSpaceGateways,C=y&&!(null!==w&&void 0!==w&&w.length),B=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(t){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.endpoint!==x){e.next=5;break}return k.Z.warning(n("storage.spaces.gateway.delete.failedForConnected")),e.abrupt("return");case 5:return e.next=7,m.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:null===t||void 0===t?void 0:t.did}});case 7:k.Z.success(n("storage.spaces.gateway.delete.succeeded",{name:"(".concat(t.name,")")})),A();case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),S=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.backupBlocklet({input:{appDid:o.appDid,to:"spaces"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,U.jsxs)(i.Z,{display:"flex",flexDirection:"column",children:[(0,U.jsxs)(i.Z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",children:n("storage.spaces.connected.title")}),(0,U.jsx)(O,{spaceGateways:w,refreshSpaceGateways:A})]}),(0,U.jsx)(i.Z,{children:C?(0,U.jsx)(i.Z,{display:"flex",justifyContent:"center",children:(0,U.jsx)(h.Z,{})}):w.map((function(e,n){return(0,U.jsx)(Se,{style:{marginTop:"12px"},spaceGateway:e,connected:w.findIndex((function(e){return e.endpoint===x}))===n,onDelete:B,onBackupNow:S,progress:v,refreshSpaceGateways:A},e.endpoint)}))}),(0,U.jsx)(Ne,{sx:{marginTop:"24px"},spaceGateways:w,progress:v}),(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:n("common.dataStorage")}),(0,U.jsx)(H,{blocklet:o})]})};function Qe(){var e=(0,a.y0)().blocklet;return(0,r.useMemo)((function(){return(0,s.mo)(null===e||void 0===e?void 0:e.environments)}),[e])?(0,U.jsx)(Je,{}):(0,U.jsx)(Y,{})}Qe.propTypes={};var He=Qe},54559:function(e,n,t){t.d(n,{hi:function(){return s},od:function(){return a.a}});var r=t(95803),a=t.n(r);a().defaults.timeout=1e4;var s=a().create()},19066:function(e,n,t){t.d(n,{C:function(){return r}});var r="true"===localStorage.getItem("enableDebug")},30134:function(e,n,t){t.d(n,{EJ:function(){return j},Jf:function(){return k},LQ:function(){return f},Nb:function(){return h},Xv:function(){return u},mo:function(){return x},nD:function(){return d},nU:function(){return Z},w2:function(){return v}});var r=t(32723),a=t(34795),s=t(92522),o=t.n(s),i=t(59505),c=t(50576),l=t(54559),p=t(19611);function u(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),a=t.at(-2);return p(n,"space",r,"apps",a,"explorer","?key=/apps/".concat(a,"/.did-objects/").concat(a,"/"))}function d(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return p(n,"space",t)}function f(e){return e.replace(/\/$/,"").split("/").at(-4)}function h(e){return m.apply(this,arguments)}function m(){return(m=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,l.hi.head(n,{timeout:5e3});case 5:return t=e.sent,a=t.headers,e.abrupt("return","true"===a["x-listable"]&&"true"===a["x-readable"]&&"true"===a["x-writeable"]);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function x(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT})))||void 0===n?void 0:n.value)||""}function v(e){return g.apply(this,arguments)}function g(){return(g=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,s,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=p(n,"space/api/did/one-click-authorization/token"),e.next=6,l.hi.get(t,{timeout:5e3});case 6:return a=e.sent,s=a.status,i=a.data,e.abrupt("return",200===s&&(0,c.isObject)(i));case 12:return e.prev=12,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function Z(e){return y.apply(this,arguments)}function y(){return(y=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,l.hi.head(n,{timeout:3e3});case 5:return t=e.sent,a=t.headers,s=a["x-space-name"],e.abrupt("return",s?decodeURIComponent(s):"");case 11:return e.prev=11,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return","");case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function k(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return p(n,"/api/space/nft/display?spaceDid=".concat(t))}var j=function(e){var n,t;return(null===e||void 0===e||null===(n=e.configs)||void 0===n||null===(t=n.find((function(e){return e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT})))||void 0===t?void 0:t.value)||null}}}]);
|
|
2
|
-
//# sourceMappingURL=6869.
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6869],{92746:function(e,n,t){var r,a=t(71171),s=t(33028),o=t(59740),i=t(16380),c=t(50442),l=t(37574),p=["labelProps","className","style"];function u(e){var n=e.labelProps,t=e.className,r=e.style,a=(0,o.Z)(e,p),i=(0,s.Z)((0,s.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,l.jsx)(d,{className:t,style:r,children:(0,l.jsx)(c.Z,(0,s.Z)({labelProps:i},a))})}u.propTypes=c.Z.propTypes,u.defaultProps=c.Z.defaultProps;var d=i.default.div(r||(r=(0,a.Z)(["\n max-width: 300px;\n > label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n }\n "," {\n max-width: 100%;\n }\n"])),(function(e){return e.theme.breakpoints.down("sm")}));n.Z=u},66869:function(e,n,t){t.r(n),t.d(n,{default:function(){return He}});var r=t(30969),a=t(45008),s=t(30134),o=t(33028),i=t(38361),c=t(33359),l=t(47333),p=t(32723),u=t(34795),d=t(96234),f=t(59740),h=t(94308),m=t(43207),x=t(87006),v=t(29996),g=t(22100),Z=t(19611),y=t.n(Z),k=t(94984),j=t(59505),b=t(15419),w=t(50496),A=t(23299),C=t(24974),B=t.n(C),S=t(20244),I=t(54559),D=t(24891),E=t(41395),R=t(83998),U=t(37574),T=["spaceGateways","refreshSpaceGateways"];function L(e){var n=e.spaceGateways,t=e.refreshSpaceGateways,Z=(0,f.Z)(e,T),C=(0,a.y0)().blocklet,B=(0,E.h6)(),L=B.info,F=B.api,O=(0,l.PE)(),G=O.t,N=O.locale,z=(0,r.useMemo)((function(){return(0,s.mo)(null===C||void 0===C?void 0:C.environments)}),[C]),P=(0,r.useState)(""),M=(0,d.Z)(P,2),J=M[0],Q=M[1],H=(0,r.useState)(!1),K=(0,d.Z)(H,2),V=K[0],X=K[1],Y=(0,r.useState)(!1),W=(0,d.Z)(Y,2),q=W[0],_=W[1],$=(0,r.useState)(""),ee=(0,d.Z)($,2),ne=ee[0],te=ee[1],re=(0,R.Z)({blocklet:C}),ae=(0,D.yP)(L),se=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,prefix:y()(S.PROD_DID_SPACES.CORE_URL,"space/api/did"),baseUrl:new URL(S.PROD_DID_SPACES.CORE_URL).origin,checkFn:I.od.create({baseURL:y()(S.PROD_DID_SPACES.CORE_URL,"space")}).get,messages:{title:G("storage.spaces.provideNFT.title",{appName:re.appName},N),scan:G("storage.spaces.provideNFT.scan",{appName:re.appName},N),confirm:"",success:(0,U.jsx)(c.Z,{gutterBottom:!0,children:G("storage.spaces.provideNFT.success")})},onClose:function(){ce((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})}))}}),oe=(0,d.Z)(se,2),ie=oe[0],ce=oe[1],le=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:G("storage.spaces.authorize.title",{appName:re.appName},N),scan:G("storage.spaces.authorize.scan",{appName:re.appName},N),confirm:"",success:(0,U.jsx)(c.Z,{gutterBottom:!0,children:G("storage.spaces.authorize.success")})},onClose:function(){de((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})}))}}),pe=(0,d.Z)(le,2),ue=pe[0],de=pe[1],fe=function(e,n){setTimeout((0,u.Z)((0,p.Z)().mark((function t(){var r,a;return(0,p.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return de((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),ce((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),r=n(e.endpoint),a=e.space?n(e.space):{},t.next=6,he((0,o.Z)((0,o.Z)({endpoint:r},{did:(0,s.LQ)(r),name:"DID Space"}),a));case 6:case"end":return t.stop()}}),t)}))),0)},he=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(r){var a,o,i,c,l,u,d,f;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=r.endpoint,l=r.name,u=r.did,(d=null===c||void 0===c||null===(a=c.replace(/\/api\/.+/,""))||void 0===a||null===(o=a.trim())||void 0===o?void 0:o.replace(/\/$/,"")).startsWith("http")||(d="https://".concat(d)),e.next=5,(0,s.w2)(d);case 5:if(e.sent){e.next=8;break}return k.Z.error(G("storage.spaces.gateway.add.invalidUrl")),e.abrupt("return");case 8:if(!n.some((function(e){return e.endpoint===c}))){e.next=12;break}return k.Z.error(G("storage.spaces.gateway.add.duplicate",{name:l})),e.abrupt("return");case 12:return f={name:l,did:u,url:d,endpoint:c},e.next=15,F.addBlockletSpaceGateway({input:{did:C.meta.did,spaceGateway:f}});case 15:if(z===c){e.next=18;break}return e.next=18,F.configBlocklet({input:{did:[C.meta.did],configs:[{key:j.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:c}]}});case 18:k.Z.success(G("storage.spaces.connectedWithName",{name:null!==(i=null===f||void 0===f?void 0:f.name)&&void 0!==i?i:"DID Spaces"})),t();case 20:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),me=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){var n,t;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,X(!0),n=J.startsWith("http")?J:"https://".concat(J),e.next=5,(0,s.w2)(n);case 5:if(e.sent){e.next=7;break}throw new Error(G("storage.spaces.gateway.add.invalidUrl"));case 7:de((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!0,prefix:y()(n,"space/api/did"),baseUrl:new URL(n).origin,checkFn:I.od.create({baseURL:y()(n,"space")}).get,extraParams:{appDid:re.appDid,appName:re.appName,appDescription:re.appDescription,scopes:re.scopes,appUrl:re.appUrl,referrer:re.referrer,nodeDid:L.did}})})),_(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),t="".concat(G("storage.spaces.gateway.add.failed",N),": ").concat((0,D.Z)(e.t0)),te(t);case 15:return e.prev=15,X(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,11,15,18]])})));return function(){return e.apply(this,arguments)}}();return(0,U.jsxs)(i.Z,{children:[(0,U.jsx)(b.Z,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:function(){ce((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!0,extraParams:{appDid:re.appDid,appName:re.appName,appDescription:re.appDescription,scopes:re.scopes,appUrl:re.appUrl,referrer:re.referrer,nodeDid:L.did}})}))},menu:[(0,U.jsx)(b.Z.Item,(0,o.Z)((0,o.Z)({sx:{textTransform:"none"},onClick:function(){return _(!0)},size:"small"},Z),{},{children:G("storage.spaces.connect.useSpaceGateway")}),"1")],children:(0,U.jsx)(c.Z,{sx:{fontWeight:"bold",textTransform:"none"},children:G("storage.spaces.connect.useWallet")})}),(0,U.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:ie.prefix,open:ie.open,popup:!0,action:ie.action,webWalletUrl:ae,baseUrl:ie.baseUrl,checkFn:ie.checkFn,onSuccess:fe,onClose:ie.onClose,checkTimeout:ie.checkTimeout,extraParams:ie.extraParams,messages:ie.messages,locale:N}),(0,U.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:ue.prefix,open:ue.open,popup:!0,action:ue.action,baseUrl:ue.baseUrl,checkFn:ue.checkFn,onSuccess:fe,onClose:ue.onClose,checkTimeout:ue.checkTimeout,extraParams:ue.extraParams,messages:ue.messages,locale:N}),(0,U.jsxs)(w.Z,{title:G("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:q,onClose:function(){return _(!1)},PaperProps:{style:{minHeight:"auto"}},actions:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(v.Z,{onClick:function(e){e.stopPropagation(),_(!1)},color:"inherit",children:G("common.cancel")}),(0,U.jsxs)(v.Z,{onClick:me,color:"primary",disabled:V||!J,variant:"contained",autoFocus:!0,children:[V&&(0,U.jsx)(h.Z,{size:16}),G("common.confirm")]})]}),children:[(0,U.jsx)("div",{style:{paddingTop:12,overflowY:"hidden"},children:(0,U.jsx)(m.Z,{component:"div",children:(0,U.jsx)(c.Z,{component:"div",children:(0,U.jsx)(x.Z,{label:G("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:J,onChange:function(e){te(null),Q(e.target.value)},disabled:V,onKeyPress:function(){var e=(0,u.Z)((0,p.Z)().mark((function e(n){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==n.key){e.next=3;break}return e.next=3,me();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),autoFocus:!0})})})}),Boolean(ne)&&(0,U.jsx)(A.Z,{type:"error",style:{width:"100%"},children:ne})]})]})}L.propTypes={spaceGateways:C.array,refreshSpaceGateways:C.func},L.defaultProps={spaceGateways:[],refreshSpaceGateways:function(){}};var F,O=L,G=t(71171),N=t(16380),z=t(99237),P=t.n(z),M=t(19638),J=t(70177),Q=["blocklet"];function H(e){var n=e.blocklet,t=(0,f.Z)(e,Q),a=(0,r.useContext)(l.RD).t;if(!n.diskInfo)return(0,U.jsx)(c.Z,{children:a("blocklet.diskInfo.empty")});var s=function(e,n,t){return(0,U.jsxs)(c.Z,{children:[t?(0,U.jsx)(M.Z,{style:{cursor:"pointer"},onClick:t,underline:"hover",children:e}):e," ",(0,U.jsx)("strong",{children:n?P()(n):"empty"})]})},i=n.environments.reduce((function(e,n){return e[n.key]=n.value,e}),{}),p=[{key:"appDir",name:a("blocklet.diskInfo.appDir"),value:s(i.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:a("blocklet.diskInfo.dataDir"),value:s(i.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:a("blocklet.diskInfo.logDir"),value:s(i.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:a("blocklet.diskInfo.cacheDir"),value:s(i.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return(0,U.jsx)(K,(0,o.Z)((0,o.Z)({component:"div"},t),{},{children:p.map((function(e){return(0,U.jsx)(J.Z,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.key)}))}))}H.propTypes={blocklet:B().object.isRequired},H.defaultProps={};var K=(0,N.default)(c.Z)(F||(F=(0,G.Z)([""]))),V=function(e){return(0,U.jsxs)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:[(0,U.jsxs)("g",{filter:"url(#a)",children:[(0,U.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"}),(0,U.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"}),(0,U.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,U.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"})}),(0,U.jsxs)("g",{mask:"url(#b)",children:[(0,U.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,U.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,U.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"}),(0,U.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)"}),(0,U.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)"}),(0,U.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,U.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"}),(0,U.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"})]}),(0,U.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,U.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"}),(0,U.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"})]})]}),(0,U.jsxs)("defs",{children:[(0,U.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,U.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,U.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"}),(0,U.jsx)("feOffset",{dy:"2"}),(0,U.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,U.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,U.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"}),(0,U.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,U.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,U.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,U.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,U.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,U.jsx)("stop",{stopColor:"#101010"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,U.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,U.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,U.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,U.jsx)("stop",{stopColor:"#fff"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,U.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:[(0,U.jsx)("stop",{stopColor:"#016BED"}),(0,U.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,U.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,U.jsx)("clipPath",{id:"g",children:(0,U.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,U.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1NMk5NAC3MffnLwiHnNH7IoyER5VEI6S4Um++uKyho0BwmD+1rA90yarpO4ZpjLgs8+BTUfU9w+gkwEi6ftxqyB9Wt6IBstE0E8kxJLeKaVhNA/uEwIslv1JmRwcSzAo+URPCF5M8AGzEF8yG+QVBFl53FqhfYqd7/PM6AmJouW4cVge9pZuMJga2NQH918Sp4VIXddVCKizUTFu3CbUMxyxgOUoSpidf+JEuRy/g3EyyCTz0yw2KRGtDs4fE8btEktCKZzL3J6mFoLZdl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puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]}))};function X(){var e=(0,l.PE)().t,n=(0,a.y0)().blocklet;return(0,U.jsxs)(i.Z,{children:[(0,U.jsxs)(i.Z,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[(0,U.jsx)(V,{style:{width:200,height:250}}),(0,U.jsx)(c.Z,{marginTop:"24px",marginBottom:"24px",children:e("storage.spaces.connect.provider")}),(0,U.jsx)(O,{})]}),(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:e("common.dataStorage")}),(0,U.jsx)(H,{blocklet:n})]})}V.defaultProps={width:"228",height:"258",viewBox:"0 0 228 258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},X.propTypes={};var Y=X,W=t(57982),q=t(7173),_=t(38627),$=t(54164),ee=t(50576),ne=t(38996),te=t(36558),re=t(92746),ae=t(94551),se=t(48082),oe=t(2689),ie=t(93310),ce=t(86008),le=t(37973),pe=t(20352),ue=t(61292),de=t(60030),fe=t(30291),he=t(67531);function me(e){var n=e.spaceGateway,t=e.onDelete,a=(0,l.PE)().t,s=(0,r.useState)(!1),o=(0,d.Z)(s,2),i=o[0],c=o[1],f=(0,r.useState)(!1),h=(0,d.Z)(f,2),m=h[0],x=h[1],v=function(e,n){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),c(n)},g=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(r){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,null===r||void 0===r||r.stopPropagation(),x(!0),e.next=5,t(n);case 5:c(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),k.Z.error("".concat(a("storage.space.gateway.delete.failed"),": ").concat((0,D.Z)(e.t0)));case 12:return e.prev=12,x(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(n){return e.apply(this,arguments)}}();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(oe.Z,{color:"red",onClick:function(e){return v(e,!0)},children:[(0,U.jsx)(ie.Z,{style:{minWidth:24,color:"red"},children:(0,U.jsx)(fe.default,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{style:{color:"red"},children:a("common.delete")})]}),(0,U.jsx)(he.Z,{title:a("common.delConfirmDescription",{data:"".concat(null===n||void 0===n?void 0:n.name)}),open:i,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:m}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:g,onCancel:function(e){return v(e,!1)}})]})}me.propTypes={onDelete:B().func,spaceGateway:B().shape({name:B().string.isRequired,url:B().string.isRequired,protected:B().bool}).isRequired},me.defaultProps={onDelete:function(){}};var xe=me,ve=["spaceGateway","connected","onDelete","onConnect","enableSwitchToSpace"];function ge(e){var n=e.spaceGateway,t=e.connected,a=e.onDelete,i=e.onConnect,c=e.enableSwitchToSpace,h=(0,f.Z)(e,ve),m=(0,r.useState)(null),x=(0,d.Z)(m,2),v=x[0],g=x[1],Z=(0,l.PE)().t,y=function(e,n){e.stopPropagation(),e.preventDefault(),g(n&&e.currentTarget)},k=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(t){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(t,!1),e.next=3,i(n);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ae.Z,(0,o.Z)((0,o.Z)({"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:function(e){return y(e,!0)},size:"small"},h),{},{children:(0,U.jsx)(le.Z,{})})),(0,U.jsxs)(se.Z,{id:"simple-menu",anchorEl:v,keepMounted:!0,open:Boolean(v),onClose:function(e){return y(e,!1)},children:[(0,U.jsxs)(oe.Z,{onClick:function(e){y(e,!1),window.open(n.endpoint?(0,s.nD)(n.endpoint):n.url)},children:[(0,U.jsx)(ie.Z,{style:{minWidth:24},children:(0,U.jsx)(pe.Z,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{children:Z("common.open")})]}),(0,U.jsxs)(oe.Z,{onClick:function(e){y(e,!1),window.open((0,s.Xv)(n.endpoint))},children:[(0,U.jsx)(ie.Z,{style:{minWidth:24},children:(0,U.jsx)(de.Z,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{children:Z("storage.spaces.strategy.viewBackupFiles")})]}),!t&&c&&(0,U.jsxs)(oe.Z,{onClick:k,children:[(0,U.jsx)(ie.Z,{style:{minWidth:24},children:(0,U.jsx)(ue.Z,{fontSize:"small"})}),(0,U.jsx)(ce.Z,{children:Z("storage.spaces.connect.switchToSpace")})]}),!t&&(0,U.jsx)(xe,{spaceGateway:n,onDelete:a})]})]})}ge.propTypes={spaceGateway:B().shape({name:B().string.isRequired,url:B().string.isRequired,protected:B().bool,endpoint:B().string.isRequired}).isRequired,connected:B().bool.isRequired,enableSwitchToSpace:B().bool,onDelete:B().func,onConnect:B().func},ge.defaultProps={onDelete:function(){},onConnect:function(){},enableSwitchToSpace:!0};var Ze,ye=ge,ke=t(19066),je=t(50202),be=["spaceGateway","connected","progress","onDelete","onBackupNow","refreshSpaceGateways"],we=function(e){return(0,U.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,U.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})}))};we.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Ae=function(e){return(0,U.jsx)("svg",(0,o.Z)((0,o.Z)({},e),{},{children:(0,U.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})}))};function Ce(e){var n=e.spaceGateway,t=e.connected,h=e.progress,m=e.onDelete,x=e.onBackupNow,Z=e.refreshSpaceGateways,b=(0,f.Z)(e,be),w=(0,l.PE)(),A=w.t,C=w.locale,B=(0,r.useState)(!1),S=(0,d.Z)(B,2),D=S[0],T=S[1],L=(0,a.y0)().blocklet,F=(0,E.h6)(),O=F.api,G=F.info.did,N=(0,R.Z)({blocklet:L}),z=N.appDid,P=N.appName,M=N.appDescription,J=N.scopes,Q=N.appUrl,H=N.referrer,K=(0,r.useMemo)((function(){return(0,s.mo)(null===L||void 0===L?void 0:L.environments)}),[L]),V=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:A("storage.spaces.authorize.title",{appName:P},C),scan:A("storage.spaces.authorize.scan",{appName:P},C),confirm:"",success:(0,U.jsx)(c.Z,{gutterBottom:!0,children:A("storage.spaces.authorize.success")})},onClose:function(){W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})}))}}),X=(0,d.Z)(V,2),Y=X[0],W=X[1],ae=(0,$.Z)((0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",!0);case 2:return e.abrupt("return",(0,s.Nb)(K));case 3:case"end":return e.stop()}}),e)}))),{refreshDeps:[t,K,null===Y||void 0===Y?void 0:Y.open,D]}),se=ae.data,oe=ae.loading,ie=t&&se,ce=t&&!D&&se,le=t&&D&&se,pe=t&&!se&&!oe&&!D,ue=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.Nb)(null===n||void 0===n?void 0:n.endpoint);case 2:if(!e.sent){e.next=8;break}return e.next=6,O.configBlocklet({input:{did:[L.meta.did],configs:[{key:j.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 6:return k.Z.success(A("storage.spaces.connect.switchToSpaceSucceeded",{name:n.name?"(".concat(n.name,")"):""})),e.abrupt("return");case 8:W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!0,prefix:y()(n.url,"space/api/did"),baseUrl:new URL(n.url).origin,checkFn:I.od.create({baseURL:y()(n.url,"space")}).get,extraParams:{appDid:z,appName:P,appDescription:M,scopes:J,appUrl:Q,referrer:H,nodeDid:G}})}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(t,r){var a,i,c,l,u,d;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=r(t.endpoint),u=(0,s.LQ)(l),d=t.space?r(t.space):{},!n.did||u===n.did){e.next=7;break}return W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),k.Z.error(A("storage.spaces.gateway.switch.failedForMismatchSpace",{name:null!==d&&void 0!==d&&d.name?d.name:""})),e.abrupt("return");case 7:return e.next=9,O.updateBlockletSpaceGateway({input:{did:L.meta.did,where:{url:null===n||void 0===n?void 0:n.url},spaceGateway:(0,o.Z)((0,o.Z)({},n),{},{name:null!==(a=d.name)&&void 0!==a?a:"DID Space",did:null!==(i=d.did)&&void 0!==i?i:(0,s.LQ)(l),endpoint:l})}});case 9:if(K===l){e.next=12;break}return e.next=12,O.configBlocklet({input:{did:[L.meta.did],configs:[{key:j.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:l}]}});case 12:k.Z.success(A("storage.spaces.connectedWithName",{name:null!==(c=null===n||void 0===n?void 0:n.name)&&void 0!==c?c:"DID Spaces"})),W((function(e){return(0,o.Z)((0,o.Z)({},e),{},{open:!1})})),Z();case 15:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),fe=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!D){e.next=3;break}return e.abrupt("return");case 3:return T(!0),e.next=6,x();case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),k.Z.error(e.t0.message);case 12:return e.prev=12,T(!0),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((function(){null!==h&&void 0!==h&&h.completed?(100===(null===h||void 0===h?void 0:h.progress)?k.Z.success(A("storage.spaces.backupSuccessfully")):-1===(null===h||void 0===h?void 0:h.progress)&&k.Z.error(null===h||void 0===h?void 0:h.message),T(!1),h.progress=0,h.message=""):h.progress&&T(!0)}),[h]),(0,U.jsxs)(Be,{style:{position:"relative"},children:[(0,U.jsxs)(i.Z,(0,o.Z)((0,o.Z)({sx:{backgroundColor:t?"#F0FDFF":"inherit","&:hover":{backgroundColor:t?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px"},b),{},{children:[(0,U.jsx)(i.Z,{display:"flex",children:(0,U.jsx)(je.Z,{alt:n.did,src:(0,s.Jf)(n.endpoint)})}),(0,U.jsxs)(i.Z,{className:"spaces-info",display:"flex",flexGrow:1,flexDirection:le?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[(0,U.jsxs)(i.Z,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[(0,U.jsx)(c.Z,{color:t?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:n.name}),ie&&(0,U.jsx)(q.Z,{label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(we,{style:{marginRight:"4px"}}),A("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),pe&&(0,U.jsx)(q.Z,{label:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ae,{style:{marginRight:"4px"}}),A("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),(0,U.jsx)(i.Z,{className:"spaces-address",display:le?"none":"flex",color:"#9397A1",marginTop:"8px",children:(0,U.jsx)(c.Z,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:n.did&&(0,U.jsx)(te.Z,{copyable:!1,size:14,compact:!0,responsive:!1,did:n.did})})})]}),(0,U.jsxs)(i.Z,{className:"spaces-backup",display:"flex",alignItems:"center",children:[ce&&(0,U.jsxs)(i.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[(0,U.jsx)(v.Z,{variant:"contained",size:"small",onClick:fe,children:A("storage.spaces.strategy.backupNow")}),ke.C&&(0,U.jsx)(re.Z,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:(0,U.jsx)(c.Z,{sx:{marginRight:"8px",fontSize:"16px"},children:(0,U.jsx)("span",{children:A("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),le&&(0,U.jsxs)(i.Z,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:"640px",marginRight:"auto",alignSelf:"end",children:[(0,U.jsx)(c.Z,{color:"primary",children:null===h||void 0===h?void 0:h.message}),(0,U.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[(0,U.jsx)(i.Z,{sx:{width:"100%",mr:1},children:(0,U.jsx)(_.Z,{color:"primary",variant:"determinate",value:null===h||void 0===h?void 0:h.progress})}),(0,U.jsx)(i.Z,{sx:{minWidth:35},children:(0,U.jsxs)(c.Z,{variant:"body2",color:"text.secondary",children:[null===h||void 0===h?void 0:h.progress,"%"]})})]})]}),pe&&(0,U.jsx)(i.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:(0,U.jsx)(v.Z,{color:"error",variant:"contained",size:"small",onClick:ue,children:A("storage.spaces.disconnected.reconnectNow")})}),(0,U.jsx)(ye,{sx:{marginLeft:"16px",marginRight:"16px"},spaceGateway:n,connected:t,onDelete:m,onConnect:ue,enableSwitchToSpace:(null===h||void 0===h?void 0:h.completed)||(0,ee.isEmpty)(null===h||void 0===h?void 0:h.message)})]})]})),(0,U.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:Y.prefix,open:Y.open,popup:!0,action:Y.action,baseUrl:Y.baseUrl,checkFn:Y.checkFn,onSuccess:de,onClose:Y.onClose,checkTimeout:Y.checkTimeout,extraParams:Y.extraParams,messages:Y.messages,locale:C},"get-endpoint"),(0,U.jsx)(i.Z,{className:"selected-container ".concat(t?"selected":""),children:(0,U.jsx)(ne.default,{className:"selected-icon"})})]})}Ae.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ce.propTypes={spaceGateway:B().shape({did:B().string.isRequired,name:B().string.isRequired,url:B().string.isRequired,endpoint:B().string.isRequired,protected:B().bool}).isRequired,connected:B().bool.isRequired,progress:B().any.isRequired,refreshSpaceGateways:B().func.isRequired,onDelete:B().func,onBackupNow:B().func},Ce.defaultProps={onDelete:function(){},onBackupNow:function(){}};var Be=(0,N.default)(i.Z)(Ze||(Ze=(0,G.Z)(["\n .selected-container {\n position: absolute;\n right: 0px;\n bottom: 0px;\n display: flex;\n -webkit-box-pack: end;\n justify-content: flex-end;\n align-items: flex-end;\n width: 32px;\n height: 32px;\n border-radius: 0px 0px 8px;\n color: rgb(255, 255, 255);\n overflow: hidden;\n transition: all 0.4s ease 0s;\n\n &::after {\n position: absolute;\n z-index: 0;\n left: 60px;\n top: 60px;\n display: block;\n width: 0px;\n height: 0px;\n border-width: 16px;\n border-style: solid;\n border-color: transparent #1dc1c7 #1dc1c7 transparent;\n transition: all 0.1s ease 0s;\n content: '';\n }\n\n .selected-icon {\n visibility: hidden;\n width: 60%;\n height: 60%;\n position: relative;\n z-index: 2;\n margin: 0px 1px 1px 0px;\n font-size: 16px;\n transition: all 0.2s ease 0s;\n }\n }\n\n .selected-container.selected {\n &::after {\n left: 0px;\n top: 0px;\n }\n\n .selected-icon {\n visibility: visible;\n }\n }\n"]))),Se=Ce,Ie=t(9715),De=t(2291),Ee=t(6779),Re=t(20296),Ue=t(19886),Te=t.n(Ue),Le=t(88666);function Fe(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.loading,s=n.progress,o=(0,a.y0)().blocklet,i=(0,r.useState)([]),c=(0,d.Z)(i,2),l=c[0],f=c[1],h=(0,E.h6)().api,m=(0,r.useCallback)((0,ee.throttle)((0,u.Z)((0,p.Z)().mark((function e(){var n,t,r;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getBlockletBackups({input:{did:null===o||void 0===o||null===(n=o.meta)||void 0===n?void 0:n.did}});case 2:t=e.sent,r=t.backups,f(null!==r&&void 0!==r?r:[]);case 5:case"end":return e.stop()}}),e)}))),2e3),[]);return(0,W.Z)((0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m();case 1:case"end":return e.stop()}}),e)}))),[null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,s,t]),{backups:l}}var Oe=["progress","spaceGateways"];function Ge(e){var n=e.progress,t=e.spaceGateways,r=(0,f.Z)(e,Oe),a=(0,l.PE)(),s=a.t,p=a.locale,u=Fe({progress:n}).backups,d=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:function(e){var n,r=u[e],a=r.targetUrl,s=r.targetName,o=(null===(n=t.find((function(e){return null===a||void 0===a?void 0:a.includes(null===e||void 0===e?void 0:e.url)})))||void 0===n?void 0:n.name)||s||"DID Space";return(0,U.jsx)(M.Z,{fontSize:"16px",href:a,target:"_blank",children:o})}}},{label:s("common.strategy"),name:"strategy",options:{customBodyRender:function(e){var n=s(0===e?"common.auto":"common.manual");return(0,U.jsx)(Ie.Z,{children:n})}}},{label:s("common.startTime"),name:"createdAt",options:{customBodyRender:function(e){return Te()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:s("common.endTime"),name:"updatedAt",options:{customBodyRender:function(e){return(0,ee.isEmpty)(e)?"":Te()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n,t=null!==(n=null===u||void 0===u?void 0:u[e])&&void 0!==n?n:{},r=t.status,a=t.message,o=t.createdAt,l=(0,ee.isNull)(r)&&Te()().diff(o,"hours")>6,p=l&&s("common.timeoutError"),d=0===r&&!l;return(0,ee.isNull)(r)&&!l?(0,U.jsxs)(c.Z,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[(0,U.jsx)(h.Z,{sx:{marginRight:"4px"},size:"12px"}),s("common.progress")]}):d?(0,U.jsx)(Ie.Z,{type:"success",children:s("common.succeeded")}):(0,U.jsxs)(i.Z,{display:"inline-flex",alignItems:"center",children:[(0,U.jsx)(Ie.Z,{type:"error",children:s("common.failed")})," \xa0",(0,U.jsx)(Ee.Z,{style:{display:"flex",alignItems:"center",flexShrink:0},title:a||p,children:(0,U.jsx)(Re.Z,{children:(0,U.jsx)(Le.Z,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return(0,U.jsx)(i.Z,(0,o.Z)((0,o.Z)({},r),{},{children:null!==u&&void 0!==u&&u.length?(0,U.jsx)(De.Z,{title:(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")}),data:u,columns:d,emptyNode:s("storage.spaces.record.emptyData",p),options:{download:!1,filter:!1,print:!1}}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(i.Z,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")})}),(0,U.jsx)(i.Z,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:s("storage.spaces.record.emptyData")})]})}))}Ge.propTypes={progress:C.object.isRequired,spaceGateways:C.array.isRequired};var Ne=Ge;var ze=function(e){var n=e.appDid,t=Fe().backups,a=(0,r.useState)({message:"",progress:0,completed:!1}),s=(0,d.Z)(a,2),i=s[0],c=s[1];return(0,(0,E.h6)().ws.useSubscription)(j.BlockletEvents.backupProgress,(function(e){n===(null===e||void 0===e?void 0:e.appDid)&&c((function(){return(0,o.Z)({},e)}))}),[n]),(0,r.useEffect)((function(){var e;if(null!==t&&void 0!==t&&t.length&&(0,ee.isNull)(null===(e=t[0])||void 0===e?void 0:e.status)){var n=(0,d.Z)(t,1)[0];c((function(){return{message:n.message,progress:n.progress,completed:Boolean(n.progress>=100)}}))}}),[t]),i};function Pe(e){return Me.apply(this,arguments)}function Me(){return Me=(0,u.Z)((0,p.Z)().mark((function e(n){var t,r,a,i,c;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.blockletDid,r=n.nodeApi,a=n.spaceGateways,i=!1,e.next=4,Promise.all(a.map(function(){var e=(0,u.Z)((0,p.Z)().mark((function e(n){var t,r;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,(0,s.nU)(n.endpoint);case 3:return r=e.sent,(0,ee.isEmpty)(r)||r===t||(t=r,i=!0),e.abrupt("return",(0,o.Z)((0,o.Z)({},n),{},{name:t}));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:if(c=e.sent,!i){e.next=8;break}return e.next=8,Promise.all(c.filter((function(e){return e.did})).map((function(e){return r.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:(0,o.Z)({},e)}})})));case 8:return e.abrupt("return",c);case 9:case"end":return e.stop()}}),e)}))),Me.apply(this,arguments)}var Je=function(){var e,n=(0,l.PE)().t,t=(0,a.y0)(),o=t.blocklet,f=t.actions.refreshBlocklet,m=(0,E.h6)().api,x=(0,r.useMemo)((function(){return(0,s.mo)(null===o||void 0===o?void 0:o.environments)}),[o]),v=ze({appDid:null===o||void 0===o?void 0:o.appDid}),g=(0,r.useState)(!1),Z=(0,d.Z)(g,2),y=Z[0],j=Z[1],b=function(e){var n=e.blockletDid,t=e.setLoading,a=void 0===t?function(){}:t,s=(0,r.useState)(!1),o=(0,d.Z)(s,2),i=o[0],c=o[1],l=(0,r.useState)([]),f=(0,d.Z)(l,2),h=f[0],m=f[1],x=(0,E.h6)().api;return(0,W.Z)((0,u.Z)((0,p.Z)().mark((function e(){var t,r,s;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n){e.next=4;break}return m([]),e.abrupt("return");case 4:return a(!0),e.next=7,x.getBlockletSpaceGateways({input:{did:n}});case 7:return t=e.sent,r=t.spaceGateways,e.next=11,Pe({blockletDid:n,nodeApi:x,spaceGateways:r});case 11:s=e.sent,m(null!==s&&void 0!==s?s:[]),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error(e.t0),k.Z.error((0,D.Z)(e.t0));case 19:return e.prev=19,a(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])}))),[n,i]),{refreshSpaceGateways:function(){c((function(e){return!e}))},spaceGateways:h}}({blockletDid:null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,setLoading:j,refreshBlocklet:f}),w=b.spaceGateways,A=b.refreshSpaceGateways,C=y&&!(null!==w&&void 0!==w&&w.length),B=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(t){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.endpoint!==x){e.next=5;break}return k.Z.warning(n("storage.spaces.gateway.delete.failedForConnected")),e.abrupt("return");case 5:return e.next=7,m.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:null===t||void 0===t?void 0:t.did}});case 7:k.Z.success(n("storage.spaces.gateway.delete.succeeded",{name:"(".concat(t.name,")")})),A();case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),S=function(){var e=(0,u.Z)((0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.backupBlocklet({input:{appDid:o.appDid,to:"spaces"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,U.jsxs)(i.Z,{display:"flex",flexDirection:"column",children:[(0,U.jsxs)(i.Z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",children:n("storage.spaces.connected.title")}),(0,U.jsx)(O,{spaceGateways:w,refreshSpaceGateways:A})]}),(0,U.jsx)(i.Z,{children:C?(0,U.jsx)(i.Z,{display:"flex",justifyContent:"center",children:(0,U.jsx)(h.Z,{})}):w.map((function(e,n){return(0,U.jsx)(Se,{style:{marginTop:"12px"},spaceGateway:e,connected:w.findIndex((function(e){return e.endpoint===x}))===n,onDelete:B,onBackupNow:S,progress:v,refreshSpaceGateways:A},e.endpoint)}))}),(0,U.jsx)(Ne,{sx:{marginTop:"24px"},spaceGateways:w,progress:v}),(0,U.jsx)(c.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:n("common.dataStorage")}),(0,U.jsx)(H,{blocklet:o})]})};function Qe(){var e=(0,a.y0)().blocklet;return(0,r.useMemo)((function(){return(0,s.mo)(null===e||void 0===e?void 0:e.environments)}),[e])?(0,U.jsx)(Je,{}):(0,U.jsx)(Y,{})}Qe.propTypes={};var He=Qe},54559:function(e,n,t){t.d(n,{hi:function(){return s},od:function(){return a.a}});var r=t(95803),a=t.n(r);a().defaults.timeout=1e4;var s=a().create()},19066:function(e,n,t){t.d(n,{C:function(){return r}});var r="true"===localStorage.getItem("enableDebug")},30134:function(e,n,t){t.d(n,{EJ:function(){return j},Jf:function(){return k},LQ:function(){return f},Nb:function(){return h},Xv:function(){return u},mo:function(){return x},nD:function(){return d},nU:function(){return Z},w2:function(){return v}});var r=t(32723),a=t(34795),s=t(92522),o=t.n(s),i=t(59505),c=t(50576),l=t(54559),p=t(19611);function u(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),a=t.at(-2);return p(n,"space",r,"apps",a,"explorer","?key=/apps/".concat(a,"/.did-objects/").concat(a,"/"))}function d(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return p(n,"space",t)}function f(e){return e.replace(/\/$/,"").split("/").at(-4)}function h(e){return m.apply(this,arguments)}function m(){return(m=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,l.hi.head(n,{timeout:5e3});case 5:return t=e.sent,a=t.headers,e.abrupt("return","true"===a["x-listable"]&&"true"===a["x-readable"]&&"true"===a["x-writeable"]);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function x(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT})))||void 0===n?void 0:n.value)||""}function v(e){return g.apply(this,arguments)}function g(){return(g=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,s,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=p(n,"space/api/did/one-click-authorization/token"),e.next=6,l.hi.get(t,{timeout:5e3});case 6:return a=e.sent,s=a.status,i=a.data,e.abrupt("return",200===s&&(0,c.isObject)(i));case 12:return e.prev=12,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function Z(e){return y.apply(this,arguments)}function y(){return(y=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,l.hi.head(n,{timeout:3e3});case 5:return t=e.sent,a=t.headers,s=a["x-space-name"],e.abrupt("return",s?decodeURIComponent(s):"");case 11:return e.prev=11,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return","");case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function k(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return p(n,"/api/space/nft/display?spaceDid=".concat(t))}var j=function(e){var n,t;return(null===e||void 0===e||null===(n=e.configs)||void 0===n||null===(t=n.find((function(e){return e.key===i.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT})))||void 0===t?void 0:t.value)||null}}}]);
|
|
2
|
+
//# sourceMappingURL=6869.4d45fd2c.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[6921],{23586:function(e,t,n){var r=n(33028),o=n(59740),a=n(30969),i=n(24974),l=n.n(i),c=n(9214),s=n(79164),d=n(22797),p=n(79216),v=n(37574),u=["did"],m={did:l().string.isRequired,size:l().number,component:l().string,copyable:l().bool,responsive:l().bool,showCopyButtonInTooltip:l().bool,inline:l().bool,append:l().any,compact:l().bool,startChars:l().number,endChars:l().number,locale:l().oneOf(["en","zh"])},f=function(e,t,n){if(n){var r=Uint8Array.from(e.slice(2).match(/.{1,2}/g).map((function(e){return parseInt(e,16)}))).slice(0,8).reduce((function(e,t){return e+t}),0)%c.colors.length;return c.colors[r]}return t.color},b=function(e,t,n){return t?.75*n:{0:!0,6:!0,17:!0}[e.roleType]?n:.75*n},Z=(0,a.forwardRef)((function(e,t){var n=e.did,a=(0,o.Z)(e,u),i=(0,p.Zu)(n),l=i?void 0:(0,c.getDIDMotifInfo)(n),m=(0,p.yv)(a.size),Z=[(0,v.jsx)("span",{style:{fontSize:m,color:f(n,l,i)},children:"DID:"},"prefix-did"),(0,v.jsx)("span",{className:"did-address-text",style:{fontSize:m},children:"ABT:"},"prefix-abt"),(0,v.jsx)(d.Z,{did:n,size:b(l,i,a.size||18),style:{display:"inline-flex",alignItems:"center",marginLeft:2,marginRight:4},blockiesPadding:!1,className:"did-address-avatar"},"avatar")];return(0,v.jsx)(s.Z,(0,r.Z)((0,r.Z)({ref:t},a),{},{prepend:Z,children:n}))}));t.Z=Z,Z.propTypes=m,Z.defaultProps={size:0,component:"span",copyable:!0,responsive:!0,showCopyButtonInTooltip:!1,inline:!1,append:null,compact:!1,startChars:6,endChars:6,locale:"en"}},27724:function(e,t,n){var r=n(71600);t.Z=void 0;var o=r(n(48035)),a=n(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");t.Z=i},70576:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(31461),o=n(7896),a=n(30969),i=n(57307),l=n(26540),c=n(40679),s=n(94982),d=n(17363),p=n(45971),v=n(62746),u=n(2975);function m(e){return(0,u.Z)("MuiStep",e)}(0,v.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);var f=n(37574),b=["active","children","className","component","completed","disabled","expanded","index","last"],Z=(0,p.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,o.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),h=a.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiStep"}),p=n.active,v=n.children,u=n.className,h=n.component,x=void 0===h?"div":h,S=n.completed,L=n.disabled,y=n.expanded,g=void 0!==y&&y,C=n.index,w=n.last,M=(0,r.Z)(n,b),z=a.useContext(c.Z),N=z.activeStep,R=z.connector,j=z.alternativeLabel,I=z.orientation,P=z.nonLinear,k=void 0!==p&&p,T=void 0!==S&&S,D=void 0!==L&&L;N===C?k=void 0===p||p:!P&&N>C?T=void 0===S||S:!P&&N<C&&(D=void 0===L||L);var A=a.useMemo((function(){return{index:C,last:w,expanded:g,icon:C+1,active:k,completed:T,disabled:D}}),[C,w,g,k,T,D]),_=(0,o.Z)({},n,{active:k,orientation:I,alternativeLabel:j,completed:T,disabled:D,expanded:g,component:x}),B=function(e){var t=e.classes,n={root:["root",e.orientation,e.alternativeLabel&&"alternativeLabel",e.completed&&"completed"]};return(0,l.Z)(n,m,t)}(_),W=(0,f.jsxs)(Z,(0,o.Z)({as:x,className:(0,i.Z)(B.root,u),ref:t,ownerState:_},M,{children:[R&&j&&0!==C?R:null,v]}));return(0,f.jsx)(s.Z.Provider,{value:A,children:R&&!j&&0!==C?(0,f.jsxs)(a.Fragment,{children:[R,W]}):W})}))},94982:function(e,t,n){var r=n(30969).createContext({});t.Z=r},50624:function(e,t,n){n.d(t,{Z:function(){return D}});var r=n(56666),o=n(31461),a=n(7896),i=n(30969),l=n(57307),c=n(26540),s=n(45971),d=n(17363),p=n(17469),v=n(37574),u=(0,p.Z)((0,v.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),m=(0,p.Z)((0,v.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),f=n(95088),b=n(62746),Z=n(2975);function h(e){return(0,Z.Z)("MuiStepIcon",e)}var x,S=(0,b.Z)("MuiStepIcon",["root","active","completed","error","text"]),L=["active","className","completed","error","icon"],y=(0,s.ZP)(f.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t,n=e.theme;return t={display:"block",transition:n.transitions.create("color",{duration:n.transitions.duration.shortest}),color:(n.vars||n).palette.text.disabled},(0,r.Z)(t,"&.".concat(S.completed),{color:(n.vars||n).palette.primary.main}),(0,r.Z)(t,"&.".concat(S.active),{color:(n.vars||n).palette.primary.main}),(0,r.Z)(t,"&.".concat(S.error),{color:(n.vars||n).palette.error.main}),t})),g=(0,s.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:function(e,t){return t.text}})((function(e){var t=e.theme;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}})),C=i.forwardRef((function(e,t){var n=(0,d.Z)({props:e,name:"MuiStepIcon"}),r=n.active,i=void 0!==r&&r,s=n.className,p=n.completed,f=void 0!==p&&p,b=n.error,Z=void 0!==b&&b,S=n.icon,C=(0,o.Z)(n,L),w=(0,a.Z)({},n,{active:i,completed:f,error:Z}),M=function(e){var t=e.classes,n={root:["root",e.active&&"active",e.completed&&"completed",e.error&&"error"],text:["text"]};return(0,c.Z)(n,h,t)}(w);if("number"===typeof S||"string"===typeof S){var z=(0,l.Z)(s,M.root);return Z?(0,v.jsx)(y,(0,a.Z)({as:m,className:z,ref:t,ownerState:w},C)):f?(0,v.jsx)(y,(0,a.Z)({as:u,className:z,ref:t,ownerState:w},C)):(0,v.jsxs)(y,(0,a.Z)({className:z,ref:t,ownerState:w},C,{children:[x||(x=(0,v.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,v.jsx)(g,{className:M.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:w,children:S})]}))}return S})),w=n(40679),M=n(94982);function z(e){return(0,Z.Z)("MuiStepLabel",e)}var N=(0,b.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),R=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],j=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation]]}})((function(e){var t,n=e.ownerState;return(0,a.Z)((t={display:"flex",alignItems:"center"},(0,r.Z)(t,"&.".concat(N.alternativeLabel),{flexDirection:"column"}),(0,r.Z)(t,"&.".concat(N.disabled),{cursor:"default"}),t),"vertical"===n.orientation&&{textAlign:"left",padding:"8px 0"})})),I=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:function(e,t){return t.label}})((function(e){var t,n=e.theme;return(0,a.Z)({},n.typography.body2,(t={display:"block",transition:n.transitions.create("color",{duration:n.transitions.duration.shortest})},(0,r.Z)(t,"&.".concat(N.active),{color:(n.vars||n).palette.text.primary,fontWeight:500}),(0,r.Z)(t,"&.".concat(N.completed),{color:(n.vars||n).palette.text.primary,fontWeight:500}),(0,r.Z)(t,"&.".concat(N.alternativeLabel),{marginTop:16}),(0,r.Z)(t,"&.".concat(N.error),{color:(n.vars||n).palette.error.main}),t))})),P=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:function(e,t){return t.iconContainer}})((function(){return(0,r.Z)({flexShrink:0,display:"flex",paddingRight:8},"&.".concat(N.alternativeLabel),{paddingRight:0})})),k=(0,s.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:function(e,t){return t.labelContainer}})((function(e){var t=e.theme;return(0,r.Z)({width:"100%",color:(t.vars||t).palette.text.secondary},"&.".concat(N.alternativeLabel),{textAlign:"center"})})),T=i.forwardRef((function(e,t){var n,r=(0,d.Z)({props:e,name:"MuiStepLabel"}),s=r.children,p=r.className,u=r.componentsProps,m=void 0===u?{}:u,f=r.error,b=void 0!==f&&f,Z=r.icon,h=r.optional,x=r.slotProps,S=void 0===x?{}:x,L=r.StepIconComponent,y=r.StepIconProps,g=(0,o.Z)(r,R),N=i.useContext(w.Z),T=N.alternativeLabel,D=N.orientation,A=i.useContext(M.Z),_=A.active,B=A.disabled,W=A.completed,F=A.icon,H=Z||F,q=L;H&&!q&&(q=C);var E=(0,a.Z)({},r,{active:_,alternativeLabel:T,completed:W,disabled:B,error:b,orientation:D}),O=function(e){var t=e.classes,n=e.orientation,r=e.active,o=e.completed,a=e.error,i=e.disabled,l=e.alternativeLabel,s={root:["root",n,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]};return(0,c.Z)(s,z,t)}(E),U=null!=(n=S.label)?n:m.label;return(0,v.jsxs)(j,(0,a.Z)({className:(0,l.Z)(O.root,p),ref:t,ownerState:E},g,{children:[H||q?(0,v.jsx)(P,{className:O.iconContainer,ownerState:E,children:(0,v.jsx)(q,(0,a.Z)({completed:W,active:_,error:b,icon:H},y))}):null,(0,v.jsxs)(k,{className:O.labelContainer,ownerState:E,children:[s?(0,v.jsx)(I,(0,a.Z)({ownerState:E},U,{className:(0,l.Z)(O.label,null==U?void 0:U.className),children:s})):null,h]})]}))}));T.muiName="StepLabel";var D=T},38219:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(31461),o=n(7896),a=n(30969),i=n(57307),l=n(26540),c=n(17363),s=n(45971),d=n(62746),p=n(2975);function v(e){return(0,p.Z)("MuiStepper",e)}(0,d.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);var u=n(24099),m=n(40679),f=n(94982);function b(e){return(0,p.Z)("MuiStepConnector",e)}(0,d.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);var Z=n(37574),h=["className"],x=(0,s.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,o.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),S=(0,s.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:function(e,t){var n=e.ownerState;return[t.line,t["line".concat((0,u.Z)(n.orientation))]]}})((function(e){var t=e.ownerState,n=e.theme,r="light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600];return(0,o.Z)({display:"block",borderColor:n.vars?n.vars.palette.StepConnector.border:r},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),L=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiStepConnector"}),s=n.className,d=(0,r.Z)(n,h),p=a.useContext(m.Z),v=p.alternativeLabel,L=p.orientation,y=void 0===L?"horizontal":L,g=a.useContext(f.Z),C=g.active,w=g.disabled,M=g.completed,z=(0,o.Z)({},n,{alternativeLabel:v,orientation:y,active:C,completed:M,disabled:w}),N=function(e){var t=e.classes,n=e.orientation,r={root:["root",n,e.alternativeLabel&&"alternativeLabel",e.active&&"active",e.completed&&"completed",e.disabled&&"disabled"],line:["line","line".concat((0,u.Z)(n))]};return(0,l.Z)(r,b,t)}(z);return(0,Z.jsx)(x,(0,o.Z)({className:(0,i.Z)(N.root,s),ref:t,ownerState:z},d,{children:(0,Z.jsx)(S,{className:N.line,ownerState:z})}))})),y=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],g=(0,s.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),C=(0,Z.jsx)(L,{}),w=a.forwardRef((function(e,t){var n=(0,c.Z)({props:e,name:"MuiStepper"}),s=n.activeStep,d=void 0===s?0:s,p=n.alternativeLabel,u=void 0!==p&&p,f=n.children,b=n.className,h=n.component,x=void 0===h?"div":h,S=n.connector,L=void 0===S?C:S,w=n.nonLinear,M=void 0!==w&&w,z=n.orientation,N=void 0===z?"horizontal":z,R=(0,r.Z)(n,y),j=(0,o.Z)({},n,{alternativeLabel:u,orientation:N,component:x}),I=function(e){var t=e.orientation,n=e.alternativeLabel,r=e.classes,o={root:["root",t,n&&"alternativeLabel"]};return(0,l.Z)(o,v,r)}(j),P=a.Children.toArray(f).filter(Boolean),k=P.map((function(e,t){return a.cloneElement(e,(0,o.Z)({index:t,last:t+1===P.length},e.props))})),T=a.useMemo((function(){return{activeStep:d,alternativeLabel:u,connector:L,nonLinear:M,orientation:N}}),[d,u,L,M,N]);return(0,Z.jsx)(m.Z.Provider,{value:T,children:(0,Z.jsx)(g,(0,o.Z)({as:x,ownerState:j,className:(0,i.Z)(I.root,b),ref:t},R,{children:k}))})}))},40679:function(e,t,n){var r=n(30969).createContext({});t.Z=r}}]);
|
|
2
|
+
//# sourceMappingURL=6921.3ab94bf5.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[7006],{98123:function(e,r,o){var a,t=o(56666),i=o(31461),n=o(7896),l=o(30969),s=o(57307),d=o(26540),c=o(42641),u=o(86171),m=o(45971),f=o(24099),p=o(57761),v=o(17363),Z=o(37574),h=["children","className","component","disabled","error","filled","focused","margin","required","variant"],b=(0,m.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,r){var o=e.ownerState;return[r.root,o.size&&r["size".concat((0,f.Z)(o.size))],o.contained&&r.contained,o.filled&&r.filled]}})((function(e){var r,o=e.theme,a=e.ownerState;return(0,n.Z)({color:(o.vars||o).palette.text.secondary},o.typography.caption,(r={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,t.Z)(r,"&.".concat(p.Z.disabled),{color:(o.vars||o).palette.text.disabled}),(0,t.Z)(r,"&.".concat(p.Z.error),{color:(o.vars||o).palette.error.main}),r),"small"===a.size&&{marginTop:4},a.contained&&{marginLeft:14,marginRight:14})})),x=l.forwardRef((function(e,r){var o=(0,v.Z)({props:e,name:"MuiFormHelperText"}),t=o.children,l=o.className,m=o.component,x=void 0===m?"p":m,k=(0,i.Z)(o,h),w=(0,u.Z)(),F=(0,c.Z)({props:o,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),z=(0,n.Z)({},o,{component:x,contained:"filled"===F.variant||"outlined"===F.variant,variant:F.variant,size:F.size,disabled:F.disabled,error:F.error,filled:F.filled,focused:F.focused,required:F.required}),q=function(e){var r=e.classes,o=e.contained,a=e.size,t=e.disabled,i=e.error,n=e.filled,l=e.focused,s=e.required,c={root:["root",t&&"disabled",i&&"error",a&&"size".concat((0,f.Z)(a)),o&&"contained",l&&"focused",n&&"filled",s&&"required"]};return(0,d.Z)(c,p.E,r)}(z);return(0,Z.jsx)(b,(0,n.Z)({as:x,ownerState:z,className:(0,s.Z)(q.root,l),ref:r},k,{children:" "===t?a||(a=(0,Z.jsx)("span",{className:"notranslate",children:"\u200b"})):t}))}));r.Z=x},57761:function(e,r,o){o.d(r,{E:function(){return i}});var a=o(62746),t=o(2975);function i(e){return(0,t.Z)("MuiFormHelperText",e)}var n=(0,a.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);r.Z=n},51385:function(e,r,o){o.d(r,{Z:function(){return g}});var a=o(56666),t=o(31461),i=o(7896),n=o(30969),l=o(26540),s=o(57307),d=o(42641),c=o(86171),u=o(24099),m=o(17363),f=o(45971),p=o(62746),v=o(2975);function Z(e){return(0,v.Z)("MuiFormLabel",e)}var h=(0,p.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),b=o(37574),x=["children","className","color","component","disabled","error","filled","focused","required"],k=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,r){var o=e.ownerState;return(0,i.Z)({},r.root,"secondary"===o.color&&r.colorSecondary,o.filled&&r.filled)}})((function(e){var r,o=e.theme,t=e.ownerState;return(0,i.Z)({color:(o.vars||o).palette.text.secondary},o.typography.body1,(r={lineHeight:"1.4375em",padding:0,position:"relative"},(0,a.Z)(r,"&.".concat(h.focused),{color:(o.vars||o).palette[t.color].main}),(0,a.Z)(r,"&.".concat(h.disabled),{color:(o.vars||o).palette.text.disabled}),(0,a.Z)(r,"&.".concat(h.error),{color:(o.vars||o).palette.error.main}),r))})),w=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,r){return r.asterisk}})((function(e){var r=e.theme;return(0,a.Z)({},"&.".concat(h.error),{color:(r.vars||r).palette.error.main})})),F=n.forwardRef((function(e,r){var o=(0,m.Z)({props:e,name:"MuiFormLabel"}),a=o.children,n=o.className,f=o.component,p=void 0===f?"label":f,v=(0,t.Z)(o,x),h=(0,c.Z)(),F=(0,d.Z)({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),z=(0,i.Z)({},o,{color:F.color||"primary",component:p,disabled:F.disabled,error:F.error,filled:F.filled,focused:F.focused,required:F.required}),q=function(e){var r=e.classes,o=e.color,a=e.focused,t=e.disabled,i=e.error,n=e.filled,s=e.required,d={root:["root","color".concat((0,u.Z)(o)),t&&"disabled",i&&"error",n&&"filled",a&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,l.Z)(d,Z,r)}(z);return(0,b.jsxs)(k,(0,i.Z)({as:p,ownerState:z,className:(0,s.Z)(q.root,n),ref:r},v,{children:[a,F.required&&(0,b.jsxs)(w,{ownerState:z,"aria-hidden":!0,className:q.asterisk,children:["\u2009","*"]})]}))})),z=o(50504),q=["disableAnimation","margin","shrink","variant","className"],R=(0,f.ZP)(F,{shouldForwardProp:function(e){return(0,f.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,r){var o=e.ownerState;return[(0,a.Z)({},"& .".concat(h.asterisk),r.asterisk),r.root,o.formControl&&r.formControl,"small"===o.size&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,r[o.variant]]}})((function(e){var r=e.theme,o=e.ownerState;return(0,i.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===o.size&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===o.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&(0,i.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===o.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===o.variant&&(0,i.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),g=n.forwardRef((function(e,r){var o=(0,m.Z)({name:"MuiInputLabel",props:e}),a=o.disableAnimation,n=void 0!==a&&a,u=o.shrink,f=o.className,p=(0,t.Z)(o,q),v=(0,c.Z)(),Z=u;"undefined"===typeof Z&&v&&(Z=v.filled||v.focused||v.adornedStart);var h=(0,d.Z)({props:o,muiFormControl:v,states:["size","variant","required"]}),x=(0,i.Z)({},o,{disableAnimation:n,formControl:v,shrink:Z,size:h.size,variant:h.variant,required:h.required}),k=function(e){var r=e.classes,o=e.formControl,a=e.size,t=e.shrink,n={root:["root",o&&"formControl",!e.disableAnimation&&"animated",t&&"shrink","small"===a&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},s=(0,l.Z)(n,z.Y,r);return(0,i.Z)({},r,s)}(x);return(0,b.jsx)(R,(0,i.Z)({"data-shrink":Z,ownerState:x,ref:r,className:(0,s.Z)(k.root,f)},p,{classes:k}))}))},50504:function(e,r,o){o.d(r,{Y:function(){return i}});var a=o(62746),t=o(2975);function i(e){return(0,t.Z)("MuiInputLabel",e)}var n=(0,a.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);r.Z=n},87006:function(e,r,o){var a=o(7896),t=o(31461),i=o(30969),n=o(57307),l=o(26540),s=o(3210),d=o(45971),c=o(17363),u=o(48525),m=o(42412),f=o(33656),p=o(51385),v=o(87535),Z=o(98123),h=o(39130),b=o(99453),x=o(37574),k=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],w={standard:u.Z,filled:m.Z,outlined:f.Z},F=(0,d.ZP)(v.Z,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,r){return r.root}})({}),z=i.forwardRef((function(e,r){var o=(0,c.Z)({props:e,name:"MuiTextField"}),i=o.autoComplete,d=o.autoFocus,u=void 0!==d&&d,m=o.children,f=o.className,v=o.color,z=void 0===v?"primary":v,q=o.defaultValue,R=o.disabled,g=void 0!==R&&R,S=o.error,y=void 0!==S&&S,C=o.FormHelperTextProps,M=o.fullWidth,P=void 0!==M&&M,N=o.helperText,T=o.id,I=o.InputLabelProps,L=o.inputProps,W=o.InputProps,j=o.inputRef,A=o.label,H=o.maxRows,E=o.minRows,_=o.multiline,O=void 0!==_&&_,B=o.name,V=o.onBlur,Y=o.onChange,D=o.onClick,G=o.onFocus,J=o.placeholder,K=o.required,Q=void 0!==K&&K,U=o.rows,X=o.select,$=void 0!==X&&X,ee=o.SelectProps,re=o.type,oe=o.value,ae=o.variant,te=void 0===ae?"outlined":ae,ie=(0,t.Z)(o,k),ne=(0,a.Z)({},o,{autoFocus:u,color:z,disabled:g,error:y,fullWidth:P,multiline:O,required:Q,select:$,variant:te}),le=function(e){var r=e.classes;return(0,l.Z)({root:["root"]},b.I,r)}(ne);var se={};"outlined"===te&&(I&&"undefined"!==typeof I.shrink&&(se.notched=I.shrink),se.label=A),$&&(ee&&ee.native||(se.id=void 0),se["aria-describedby"]=void 0);var de=(0,s.Z)(T),ce=N&&de?"".concat(de,"-helper-text"):void 0,ue=A&&de?"".concat(de,"-label"):void 0,me=w[te],fe=(0,x.jsx)(me,(0,a.Z)({"aria-describedby":ce,autoComplete:i,autoFocus:u,defaultValue:q,fullWidth:P,multiline:O,name:B,rows:U,maxRows:H,minRows:E,type:re,value:oe,id:de,inputRef:j,onBlur:V,onChange:Y,onFocus:G,onClick:D,placeholder:J,inputProps:L},se,W));return(0,x.jsxs)(F,(0,a.Z)({className:(0,n.Z)(le.root,f),disabled:g,error:y,fullWidth:P,ref:r,required:Q,color:z,variant:te,ownerState:ne},ie,{children:[null!=A&&""!==A&&(0,x.jsx)(p.Z,(0,a.Z)({htmlFor:de,id:ue},I,{children:A})),$?(0,x.jsx)(h.Z,(0,a.Z)({"aria-describedby":ce,id:de,labelId:ue,value:oe,input:fe},ee,{children:m})):fe,N&&(0,x.jsx)(Z.Z,(0,a.Z)({id:ce},C,{children:N}))]}))}));r.Z=z},99453:function(e,r,o){o.d(r,{I:function(){return i}});var a=o(62746),t=o(2975);function i(e){return(0,t.Z)("MuiTextField",e)}var n=(0,a.Z)("MuiTextField",["root"]);r.Z=n}}]);
|
|
2
|
+
//# sourceMappingURL=7006.f3628133.chunk.js.map
|