@abtnode/blocklet-services 1.16.14-beta-cb53c14b → 1.16.14-beta-963cb583
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/libs/connect/session.js +20 -18
- package/api/libs/image.js +16 -6
- package/api/routes/oauth.js +15 -7
- package/api/routes/user.js +2 -2
- package/build/asset-manifest.json +79 -73
- 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.c008fe16.chunk.js +3 -0
- package/build/static/js/1480.f89236fc.chunk.js +2 -0
- package/build/static/js/1565.4331eeaf.chunk.js +2 -0
- package/build/static/js/1660.e2ff5a21.chunk.js +2 -0
- package/build/static/js/1760.0f19b880.chunk.js +2 -0
- package/build/static/js/{2291.497ddae4.chunk.js → 2291.80adfd96.chunk.js} +2 -2
- package/build/static/js/{2653.0a8b831d.chunk.js → 2653.58a5430b.chunk.js} +2 -2
- package/build/static/js/{2664.706462f0.chunk.js → 2664.a42cbb96.chunk.js} +2 -2
- package/build/static/js/3179.03c92dcb.chunk.js +2 -0
- package/build/static/js/3551.a3cfa6aa.chunk.js +2 -0
- package/build/static/js/3593.98d9341a.chunk.js +2 -0
- package/build/static/js/{3595.3ac8a5df.chunk.js → 3595.d4510796.chunk.js} +3 -3
- package/build/static/js/4164.5adbbbba.chunk.js +2 -0
- package/build/static/js/{445.1f8bed72.chunk.js → 445.9fc4bb72.chunk.js} +3 -3
- package/build/static/js/4716.58477c5c.chunk.js +2 -0
- package/build/static/js/{5176.31463f87.chunk.js → 5176.9f08e927.chunk.js} +2 -2
- package/build/static/js/{5355.da516161.chunk.js → 5355.4b07ad55.chunk.js} +2 -2
- package/build/static/js/5465.f32033e1.chunk.js +2 -0
- package/build/static/js/{5859.64cba18d.chunk.js → 5859.9b88d959.chunk.js} +2 -2
- package/build/static/js/{617.324a4c7b.chunk.js → 617.ecc73170.chunk.js} +3 -3
- package/build/static/js/{6186.c6880563.chunk.js → 6186.cc8ce4a4.chunk.js} +2 -2
- package/build/static/js/6378.29466d9e.chunk.js +2 -0
- package/build/static/js/6700.e22cc266.chunk.js +2 -0
- package/build/static/js/6856.163537c7.chunk.js +2 -0
- package/build/static/js/7.c01bf0f4.chunk.js +2 -0
- package/build/static/js/7272.608c5875.chunk.js +3 -0
- package/build/static/js/8143.6b921364.chunk.js +2 -0
- package/build/static/js/8179.34de3f17.chunk.js +2 -0
- package/build/static/js/8365.9904e38d.chunk.js +3 -0
- package/build/static/js/8527.437a8769.chunk.js +2 -0
- package/build/static/js/{878.fe952f7d.chunk.js → 878.4424e6e9.chunk.js} +2 -2
- package/build/static/js/9107.967c2ac1.chunk.js +2 -0
- package/build/static/js/9260.d8f59a75.chunk.js +3 -0
- package/build/static/js/{9409.8f1cfa24.chunk.js → 9409.0d5d4de2.chunk.js} +2 -2
- package/build/static/js/9620.4b7c9e8b.chunk.js +2 -0
- package/build/static/js/9657.e974d577.chunk.js +2 -0
- package/build/static/js/9899.18509ac9.chunk.js +2 -0
- package/build/static/js/main.081afde0.js +3 -0
- package/build/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg +59 -0
- package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +3 -0
- package/package.json +35 -35
- package/api/libs/translate.js +0 -12
- package/build/static/js/1095.d6f2ef77.chunk.js +0 -2
- package/build/static/js/1660.13706e35.chunk.js +0 -2
- package/build/static/js/1830.7b197c4d.chunk.js +0 -2
- package/build/static/js/2216.089c1302.chunk.js +0 -3
- package/build/static/js/2724.3fa7fc88.chunk.js +0 -2
- package/build/static/js/2750.edf7d107.chunk.js +0 -2
- package/build/static/js/3110.9ff701b3.chunk.js +0 -3
- package/build/static/js/3241.eeba87d0.chunk.js +0 -2
- package/build/static/js/3593.afccdc50.chunk.js +0 -2
- package/build/static/js/4009.65d1c083.chunk.js +0 -2
- package/build/static/js/4164.3f21a941.chunk.js +0 -2
- package/build/static/js/4547.5b51d4f3.chunk.js +0 -2
- package/build/static/js/4715.c191216b.chunk.js +0 -2
- package/build/static/js/4716.b9fa5e09.chunk.js +0 -2
- package/build/static/js/4846.aa1ac1ac.chunk.js +0 -2
- package/build/static/js/6658.bce97eda.chunk.js +0 -2
- package/build/static/js/7056.5e345b05.chunk.js +0 -3
- package/build/static/js/7272.99410ed2.chunk.js +0 -3
- package/build/static/js/8610.89893a07.chunk.js +0 -2
- package/build/static/js/9292.803f7e05.chunk.js +0 -2
- package/build/static/js/9620.585d8c25.chunk.js +0 -2
- package/build/static/js/9899.3267a1e3.chunk.js +0 -2
- package/build/static/js/9996.9a2238b0.chunk.js +0 -2
- package/build/static/js/main.56713b6c.js +0 -3
- /package/build/static/js/{2216.089c1302.chunk.js.LICENSE.txt → 1132.c008fe16.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3595.3ac8a5df.chunk.js.LICENSE.txt → 3595.d4510796.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{445.1f8bed72.chunk.js.LICENSE.txt → 445.9fc4bb72.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{617.324a4c7b.chunk.js.LICENSE.txt → 617.ecc73170.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7272.99410ed2.chunk.js.LICENSE.txt → 7272.608c5875.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3110.9ff701b3.chunk.js.LICENSE.txt → 8365.9904e38d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7056.5e345b05.chunk.js.LICENSE.txt → 9260.d8f59a75.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.56713b6c.js.LICENSE.txt → main.081afde0.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[8610],{47768:function(e,r,t){r.Z=void 0;var n,o=c(t(16380)),a=c(t(24974)),i=c(t(15405)),s=t(37574),l=["title","subTitle","onClickBack"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){d(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function d(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===typeof r?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function m(e){var r=e.title,t=e.subTitle,n=e.onClickBack,o=p(e,l);return(0,s.jsxs)(b,f(f({},o),{},{children:[n&&(0,s.jsx)(i.default,{className:"back-btn",onClick:n}),(0,s.jsx)("div",{className:"title",children:r}),(0,s.jsx)("div",{className:"sub-title",children:t})]}))}var v,y,b=o.default.div(n||(v=["\n position: relative;\n width: 100%;\n text-align: center;\n\n .title {\n font-size: 24px;\n font-weight: 700;\n color: ",";\n\n "," {\n font-size: 20px;\n }\n }\n\n .sub-title {\n font-size: 14px;\n color: ",";\n padding: 0 14px;\n font-weight: 400;\n }\n\n .back-btn {\n position: absolute;\n left: 0;\n top: 8px;\n color: #9397a1;\n font-size: 18px;\n cursor: pointer;\n }\n"],y||(y=v.slice(0)),n=Object.freeze(Object.defineProperties(v,{raw:{value:Object.freeze(y)}}))),(function(e){return e.theme.palette.common.black}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.palette.grey[600]})),g=m;r.Z=g,m.propTypes={title:a.default.string,subTitle:a.default.string,onClickBack:a.default.oneOfType([a.default.func,a.default.string])},m.defaultProps={title:"",subTitle:"",onClickBack:""}},15405:function(e,r,t){var n=t(71600);Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(t(48035)),a=t(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");r.default=i},59467:function(e,r,t){t.d(r,{Z:function(){return x}});var n=t(96234),o=t(31461),a=t(7896),i=t(30969),s=t(81856),l=t(26540),c=t(45971),u=t(17363),f=t(17469),d=t(37574),p=(0,f.Z)((0,d.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),m=t(62746),v=t(2975);function y(e){return(0,v.Z)("MuiAvatar",e)}(0,m.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var b=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],g=(0,c.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,r){var t=e.ownerState;return[r.root,r[t.variant],t.colorDefault&&r.colorDefault]}})((function(e){var r=e.theme,t=e.ownerState;return(0,a.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:r.typography.fontFamily,fontSize:r.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&(0,a.Z)({color:(r.vars||r).palette.background.default},r.vars?{backgroundColor:r.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600]}))})),h=(0,c.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,r){return r.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Z=(0,c.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,r){return r.fallback}})({width:"75%",height:"75%"});var x=i.forwardRef((function(e,r){var t=(0,u.Z)({props:e,name:"MuiAvatar"}),c=t.alt,f=t.children,p=t.className,m=t.component,v=void 0===m?"div":m,x=t.imgProps,j=t.sizes,w=t.src,k=t.srcSet,O=t.variant,S=void 0===O?"circular":O,P=(0,o.Z)(t,b),I=null,T=function(e){var r=e.crossOrigin,t=e.referrerPolicy,o=e.src,a=e.srcSet,s=i.useState(!1),l=(0,n.Z)(s,2),c=l[0],u=l[1];return i.useEffect((function(){if(o||a){u(!1);var e=!0,n=new Image;return n.onload=function(){e&&u("loaded")},n.onerror=function(){e&&u("error")},n.crossOrigin=r,n.referrerPolicy=t,n.src=o,a&&(n.srcset=a),function(){e=!1}}}),[r,t,o,a]),c}((0,a.Z)({},x,{src:w,srcSet:k})),M=w||k,N=M&&"error"!==T,R=(0,a.Z)({},t,{colorDefault:!N,component:v,variant:S}),z=function(e){var r=e.classes,t={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,l.Z)(t,y,r)}(R);return I=N?(0,d.jsx)(h,(0,a.Z)({alt:c,src:w,srcSet:k,sizes:j,ownerState:R,className:z.img},x)):null!=f?f:M&&c?c[0]:(0,d.jsx)(Z,{ownerState:R,className:z.fallback}),(0,d.jsx)(g,(0,a.Z)({as:v,ownerState:R,className:(0,s.default)(z.root,p),ref:r},P,{children:I}))}))},25599:function(e,r,t){t.d(r,{Z:function(){return b}});var n=t(31461),o=t(7896),a=t(30969),i=t(81856),s=t(26540),l=t(22822),c=t(45971),u=t(17363),f=t(62746),d=t(2975);function p(e){return(0,d.Z)("MuiListItemAvatar",e)}(0,f.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var m=t(37574),v=["className"],y=(0,c.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:function(e,r){var t=e.ownerState;return[r.root,"flex-start"===t.alignItems&&r.alignItemsFlexStart]}})((function(e){var r=e.ownerState;return(0,o.Z)({minWidth:56,flexShrink:0},"flex-start"===r.alignItems&&{marginTop:8})})),b=a.forwardRef((function(e,r){var t=(0,u.Z)({props:e,name:"MuiListItemAvatar"}),c=t.className,f=(0,n.Z)(t,v),d=a.useContext(l.Z),b=(0,o.Z)({},t,{alignItems:d.alignItems}),g=function(e){var r=e.alignItems,t=e.classes,n={root:["root","flex-start"===r&&"alignItemsFlexStart"]};return(0,s.Z)(n,p,t)}(b);return(0,m.jsx)(y,(0,o.Z)({className:(0,i.default)(g.root,c),ownerState:b,ref:r},f))}))},86008:function(e,r,t){var n=t(56666),o=t(31461),a=t(7896),i=t(30969),s=t(81856),l=t(26540),c=t(33359),u=t(22822),f=t(17363),d=t(45971),p=t(74288),m=t(37574),v=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],y=(0,d.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,r){var t=e.ownerState;return[(0,n.Z)({},"& .".concat(p.Z.primary),r.primary),(0,n.Z)({},"& .".concat(p.Z.secondary),r.secondary),r.root,t.inset&&r.inset,t.primary&&t.secondary&&r.multiline,t.dense&&r.dense]}})((function(e){var r=e.ownerState;return(0,a.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},r.primary&&r.secondary&&{marginTop:6,marginBottom:6},r.inset&&{paddingLeft:56})})),b=i.forwardRef((function(e,r){var t=(0,f.Z)({props:e,name:"MuiListItemText"}),n=t.children,d=t.className,b=t.disableTypography,g=void 0!==b&&b,h=t.inset,Z=void 0!==h&&h,x=t.primary,j=t.primaryTypographyProps,w=t.secondary,k=t.secondaryTypographyProps,O=(0,o.Z)(t,v),S=i.useContext(u.Z).dense,P=null!=x?x:n,I=w,T=(0,a.Z)({},t,{disableTypography:g,inset:Z,primary:!!P,secondary:!!I,dense:S}),M=function(e){var r=e.classes,t=e.inset,n=e.primary,o=e.secondary,a={root:["root",t&&"inset",e.dense&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,l.Z)(a,p.L,r)}(T);return null==P||P.type===c.Z||g||(P=(0,m.jsx)(c.Z,(0,a.Z)({variant:S?"body2":"body1",className:M.primary,component:null!=j&&j.variant?void 0:"span",display:"block"},j,{children:P}))),null==I||I.type===c.Z||g||(I=(0,m.jsx)(c.Z,(0,a.Z)({variant:"body2",className:M.secondary,color:"text.secondary",display:"block"},k,{children:I}))),(0,m.jsxs)(y,(0,a.Z)({className:(0,s.default)(M.root,d),ownerState:T,ref:r},O,{children:[P,I]}))}));r.Z=b},42571:function(e,r,t){t(30969);var n=t(17469),o=t(37574);r.Z=(0,n.Z)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},15460:function(e,r,t){var n=t(30969);r.Z=function(e){var r=n.useRef({});return n.useEffect((function(){r.current=e})),r.current}}}]);
|
|
2
|
-
//# sourceMappingURL=8610.89893a07.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[9292],{92746:function(e,n,t){var r,a=t(71171),s=t(33028),i=t(59740),o=t(16380),c=t(50442),l=t(37574),p=["labelProps","className","style"];function d(e){var n=e.labelProps,t=e.className,r=e.style,a=(0,i.Z)(e,p),o=(0,s.Z)((0,s.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,l.jsx)(u,{className:t,style:r,children:(0,l.jsx)(c.Z,(0,s.Z)({labelProps:o},a))})}d.propTypes=c.Z.propTypes,d.defaultProps=c.Z.defaultProps;var u=o.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=d},69292:function(e,n,t){t.r(n),t.d(n,{default:function(){return cn}});var r=t(30969),a=t(45008),s=t(32723),i=t(34795),o=t(92522),c=t.n(o),l=t(59505),p=t(50576),d=t(54559),u=t(19611);function h(e){return e.replace(/\/$/,"").split("/").at(-4)}function f(e){return x.apply(this,arguments)}function x(){return(x=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,d.hi.head(n,{timeout:5e3});case 5:return t=e.sent,r=t.headers,e.abrupt("return","true"===r["x-listable"]&&"true"===r["x-readable"]&&"true"===r["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 m(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===l.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,i.Z)((0,s.Z)().mark((function e(n){var t,r,a,i;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=u(n,"space/api/did/one-click-authorization/token"),e.next=6,d.hi.get(t,{timeout:5e3});case 6:return r=e.sent,a=r.status,i=r.data,e.abrupt("return",200===a&&(0,p.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 y(e){return A.apply(this,arguments)}function A(){return(A=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r,a;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,c()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,d.hi.head(n,{timeout:3e3});case 5:return t=e.sent,r=t.headers,a=r["x-space-name"],e.abrupt("return",a?decodeURIComponent(a):"");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 Z(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return u(n,"/api/space/nft/display?spaceDid=".concat(t))}var j=t(33028),k=t(38361),b=t(33359),C=t(47333),w=t(96234),B=t(59740),I=t(94308),S=t(43207),U=t(87006),E=t(29996),R=t(83241),D=t(19611),F=t.n(D),M=t(94984),O=t(15419),T=t(50496),z=t(23299),L=t(24974),J=t.n(L),G=t(24891),Q=t(41395),N=t(7017);var P=function(e){var n,t,r,a=e.blocklet,s=a.appDid,i=(0,N.getAppName)(a),o=(0,N.getAppDescription)(a),c=null===a||void 0===a||null===(n=a.site)||void 0===n||null===(t=n.domainAliases)||void 0===t||null===(r=t.sort((function(e,n){return e.accessibility.accessible&&n.accessibility.accessible?+e.isProtected-+n.isProtected:+n.accessibility.accessible-+e.accessibility.accessible})))||void 0===r?void 0:r.map((function(e){var n,t=null!==e&&void 0!==e&&null!==(n=e.domainStatus)&&void 0!==n&&n.isHttps?"https://":"http://",r=null===e||void 0===e?void 0:e.value;return"".concat(t).concat(r)})).filter(Boolean),l=null===c||void 0===c?void 0:c[0];return{appDid:s,appName:i,appDescription:o,appUrl:l,scopes:"list:object read:object write:object",referrer:window.location.href,isReady:Boolean(l)}},V=t(37574),H=["spaceGateways","refreshSpaceGateways"];function X(e){var n=e.spaceGateways,t=e.refreshSpaceGateways,o=(0,B.Z)(e,H),p=(0,a.y0)().blocklet,u=(0,Q.h6)(),f=u.info,x=u.api,g=(0,C.PE)(),y=g.t,A=g.locale,Z=(0,r.useMemo)((function(){return m(null===p||void 0===p?void 0:p.environments)}),[p]),D=(0,r.useState)(""),L=(0,w.Z)(D,2),J=L[0],N=L[1],X=(0,r.useState)(!1),K=(0,w.Z)(X,2),Y=K[0],W=K[1],q=(0,r.useState)(!1),_=(0,w.Z)(q,2),$=_[0],ee=_[1],ne=(0,r.useState)(""),te=(0,w.Z)(ne,2),re=te[0],ae=te[1],se=P({blocklet:p}),ie=(0,G.yP)(f),oe=(0,r.useState)({open:!1,action:"get-did-spaces-endpoint",checkTimeout:3e5,checkFn:d.od.create({baseURL:F()(window.location.origin,(0,G.Y5)())}).get,messages:{title:y("storage.spaces.provideNFT.title",{appName:se.appName},A),scan:y("storage.spaces.provideNFT.scan",{appName:se.appName},A),confirm:"",success:(0,V.jsx)(b.Z,{gutterBottom:!0,children:y("storage.spaces.provideNFT.success")})},onClose:function(){pe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})}))}}),ce=(0,w.Z)(oe,2),le=ce[0],pe=ce[1],de=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:y("storage.spaces.authorize.title",{appName:se.appName},A),scan:y("storage.spaces.authorize.scan",{appName:se.appName},A),confirm:"",success:(0,V.jsx)(b.Z,{gutterBottom:!0,children:y("storage.spaces.authorize.success")})},onClose:function(){fe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})}))}}),ue=(0,w.Z)(de,2),he=ue[0],fe=ue[1],xe=function(e,n){setTimeout((0,i.Z)((0,s.Z)().mark((function t(){var r,a;return(0,s.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return fe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),pe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),r=n(e.endpoint),a=e.space?n(e.space):{},t.next=6,me((0,j.Z)((0,j.Z)({endpoint:r},{did:h(r),name:"DID Space"}),a));case 6:case"end":return t.stop()}}),t)}))),0)},me=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(r){var a,i,o,d,u,h,f,m;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d=r.endpoint,u=r.name,h=r.did,(f=null===d||void 0===d||null===(a=d.replace(/\/api\/.+/,""))||void 0===a||null===(i=a.trim())||void 0===i?void 0:i.replace(/\/$/,"")).startsWith("http")||(f="https://".concat(f)),c()(f)){e.next=6;break}return M.Z.error(y("storage.spaces.gateway.add.invalidUrl")),e.abrupt("return");case 6:if(!n.some((function(e){return e.endpoint===d}))){e.next=10;break}return M.Z.error(y("storage.spaces.gateway.add.duplicate",{name:u})),e.abrupt("return");case 10:return m={name:u,did:h,url:f,endpoint:d},e.next=13,x.addBlockletSpaceGateway({input:{did:p.meta.did,spaceGateway:m}});case 13:if(Z===d){e.next=16;break}return e.next=16,x.configBlocklet({input:{did:[p.meta.did],configs:[{key:l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:d}]}});case 16:M.Z.success(y("storage.spaces.connectedWithName",{name:null!==(o=null===m||void 0===m?void 0:m.name)&&void 0!==o?o:"DID Spaces"})),t();case 18:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ve=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){var n,t;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,W(!0),n=J.startsWith("http")?J:"https://".concat(J),e.next=5,v(n);case 5:if(e.sent){e.next=7;break}throw new Error(y("storage.spaces.gateway.add.invalidUrl"));case 7:fe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!0,prefix:F()(n,"space/api/did"),baseUrl:new URL(n).origin,checkFn:d.od.create({baseURL:F()(n,"space")}).get,extraParams:{appDid:se.appDid,appName:se.appName,appDescription:se.appDescription,scopes:se.scopes,appUrl:se.appUrl,referrer:se.referrer,nodeDid:f.did}})})),ee(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),t="".concat(y("storage.spaces.gateway.add.failed",A),": ").concat((0,G.Z)(e.t0)),ae(t);case 15:return e.prev=15,W(!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,V.jsxs)(k.Z,{children:[(0,V.jsx)(O.Z,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:function(){pe((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!0,extraParams:{appDid:se.appDid,appName:se.appName,appDescription:se.appDescription,scopes:se.scopes,appUrl:se.appUrl,referrer:se.referrer,nodeDid:f.did}})}))},menu:[(0,V.jsx)(O.Z.Item,(0,j.Z)((0,j.Z)({sx:{textTransform:"none"},onClick:function(){return ee(!0)},size:"small"},o),{},{children:y("storage.spaces.connect.useSpaceGateway")}),"1")],children:(0,V.jsx)(b.Z,{sx:{fontWeight:"bold",textTransform:"none"},children:y("storage.spaces.connect.useWallet")})}),(0,V.jsx)(R.default,{forceConnected:!1,saveConnect:!1,prefix:le.prefix,open:le.open,popup:!0,action:le.action,webWalletUrl:ie,baseUrl:le.baseUrl,checkFn:le.checkFn,onSuccess:xe,onClose:le.onClose,checkTimeout:le.checkTimeout,extraParams:le.extraParams,messages:le.messages,locale:A}),(0,V.jsx)(R.default,{forceConnected:!1,saveConnect:!1,prefix:he.prefix,open:he.open,popup:!0,action:he.action,baseUrl:he.baseUrl,checkFn:he.checkFn,onSuccess:xe,onClose:he.onClose,checkTimeout:he.checkTimeout,extraParams:he.extraParams,messages:he.messages,locale:A}),(0,V.jsxs)(T.Z,{title:y("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:$,onClose:function(){return ee(!1)},PaperProps:{style:{minHeight:"auto"}},actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(E.Z,{onClick:function(e){e.stopPropagation(),ee(!1)},color:"inherit",children:y("common.cancel")}),(0,V.jsxs)(E.Z,{onClick:ve,color:"primary",disabled:Y||!J,variant:"contained",autoFocus:!0,children:[Y&&(0,V.jsx)(I.Z,{size:16}),y("common.confirm")]})]}),children:[(0,V.jsx)("div",{style:{paddingTop:12,overflowY:"hidden"},children:(0,V.jsx)(S.Z,{component:"div",children:(0,V.jsx)(b.Z,{component:"div",children:(0,V.jsx)(U.Z,{label:y("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:J,onChange:function(e){ae(null),N(e.target.value)},disabled:Y,onKeyPress:function(){var e=(0,i.Z)((0,s.Z)().mark((function e(n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==n.key){e.next=3;break}return e.next=3,ve();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),autoFocus:!0})})})}),Boolean(re)&&(0,V.jsx)(z.Z,{type:"error",style:{width:"100%"},children:re})]})]})}X.propTypes={spaceGateways:L.array,refreshSpaceGateways:L.func},X.defaultProps={spaceGateways:[],refreshSpaceGateways:function(){}};var K,Y=X,W=t(71171),q=t(16380),_=t(99237),$=t.n(_),ee=t(19638),ne=t(70177),te=["blocklet"];function re(e){var n=e.blocklet,t=(0,B.Z)(e,te),a=(0,r.useContext)(C.RD).t;if(!n.diskInfo)return(0,V.jsx)(b.Z,{children:a("blocklet.diskInfo.empty")});var s=function(e,n,t){return(0,V.jsxs)(b.Z,{children:[t?(0,V.jsx)(ee.Z,{style:{cursor:"pointer"},onClick:t,underline:"hover",children:e}):e," ",(0,V.jsx)("strong",{children:n?$()(n):"empty"})]})},i=n.environments.reduce((function(e,n){return e[n.key]=n.value,e}),{}),o=[{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,V.jsx)(ae,(0,j.Z)((0,j.Z)({component:"div"},t),{},{children:o.map((function(e){return(0,V.jsx)(ne.Z,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.key)}))}))}re.propTypes={blocklet:J().object.isRequired},re.defaultProps={};var ae=(0,q.default)(b.Z)(K||(K=(0,W.Z)([""]))),se=function(e){return(0,V.jsxs)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:[(0,V.jsxs)("g",{filter:"url(#a)",children:[(0,V.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,V.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,V.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,V.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,V.jsxs)("g",{mask:"url(#b)",children:[(0,V.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,V.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,V.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,V.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,V.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,V.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,V.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,V.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,V.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,V.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,V.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,V.jsxs)("defs",{children:[(0,V.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,V.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,V.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,V.jsx)("feOffset",{dy:"2"}),(0,V.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,V.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,V.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,V.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,V.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,V.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,V.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,V.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#101010"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,V.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,V.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,V.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,V.jsx)("stop",{stopColor:"#016BED"}),(0,V.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,V.jsx)("clipPath",{id:"g",children:(0,V.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,V.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+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQ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QWZNGFywCCCF+7J1+B4vr0gBhFB6S+89eO6chpzkyM8s0MdCgW7njgiikAKvGH0fRKr9cXmycUjU8xfeY87PIXB3q1TK2GWGjxhtr146ZKTKWPp9sR8MWBNzQTNNrIt4XCVHh+OwfYAo9QybSeFUX5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]}))};function ie(){var e=(0,C.PE)().t,n=(0,a.y0)().blocklet;return(0,V.jsxs)(k.Z,{children:[(0,V.jsxs)(k.Z,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[(0,V.jsx)(se,{style:{width:200,height:250}}),(0,V.jsx)(b.Z,{marginTop:"24px",marginBottom:"24px",children:e("storage.spaces.connect.provider")}),(0,V.jsx)(Y,{})]}),(0,V.jsx)(b.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:e("common.dataStorage")}),(0,V.jsx)(re,{blocklet:n})]})}se.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"},ie.propTypes={};var oe=ie,ce=t(57982),le=t(7173),pe=t(38627),de=t(54164),ue=t(38996),he=t(36558),fe=t(92746),xe=t(94551),me=t(48082),ve=t(2689),ge=t(93310),ye=t(86008),Ae=t(37973),Ze=t(20352),je=t(61292),ke=t(60030),be=t(30291),Ce=t(67531);function we(e){var n=e.spaceGateway,t=e.onDelete,a=(0,C.PE)().t,o=(0,r.useState)(!1),c=(0,w.Z)(o,2),l=c[0],p=c[1],d=(0,r.useState)(!1),u=(0,w.Z)(d,2),h=u[0],f=u[1],x=function(e,n){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),p(n)},m=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(r){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,null===r||void 0===r||r.stopPropagation(),f(!0),e.next=5,t(n);case 5:p(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),M.Z.error("".concat(a("storage.space.gateway.delete.failed"),": ").concat((0,G.Z)(e.t0)));case 12:return e.prev=12,f(!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,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(ve.Z,{color:"red",onClick:function(e){return x(e,!0)},children:[(0,V.jsx)(ge.Z,{style:{minWidth:24,color:"red"},children:(0,V.jsx)(be.default,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{style:{color:"red"},children:a("common.delete")})]}),(0,V.jsx)(Ce.Z,{title:a("common.delConfirmDescription",{data:"".concat(null===n||void 0===n?void 0:n.name)}),open:l,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:h}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:m,onCancel:function(e){return x(e,!1)}})]})}we.propTypes={onDelete:J().func,spaceGateway:J().shape({name:J().string.isRequired,url:J().string.isRequired,protected:J().bool}).isRequired},we.defaultProps={onDelete:function(){}};var Be=we,Ie=["spaceGateway","connected","onDelete","onConnect","enableSwitchToSpace"];function Se(e){var n=e.spaceGateway,t=e.connected,a=e.onDelete,o=e.onConnect,c=e.enableSwitchToSpace,l=(0,B.Z)(e,Ie),p=(0,r.useState)(null),d=(0,w.Z)(p,2),h=d[0],f=d[1],x=(0,C.PE)().t,m=function(e,n){e.stopPropagation(),e.preventDefault(),f(n&&e.currentTarget)},v=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(t){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(t,!1),e.next=3,o(n);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(xe.Z,(0,j.Z)((0,j.Z)({"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:function(e){return m(e,!0)},size:"small"},l),{},{children:(0,V.jsx)(Ae.Z,{})})),(0,V.jsxs)(me.Z,{id:"simple-menu",anchorEl:h,keepMounted:!0,open:Boolean(h),onClose:function(e){return m(e,!1)},children:[(0,V.jsxs)(ve.Z,{onClick:function(e){m(e,!1),window.open(n.endpoint?function(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return u(n,"space",t)}(n.endpoint):n.url)},children:[(0,V.jsx)(ge.Z,{style:{minWidth:24},children:(0,V.jsx)(Ze.Z,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{children:x("common.open")})]}),(0,V.jsxs)(ve.Z,{onClick:function(e){m(e,!1),window.open(function(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),a=t.at(-2);return u(n,"space",r,"apps",a,"explorer","?key=/apps/".concat(a,"/.did-objects/").concat(a,"/"))}(n.endpoint))},children:[(0,V.jsx)(ge.Z,{style:{minWidth:24},children:(0,V.jsx)(ke.Z,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{children:x("storage.spaces.strategy.viewBackupFiles")})]}),!t&&c&&(0,V.jsxs)(ve.Z,{onClick:v,children:[(0,V.jsx)(ge.Z,{style:{minWidth:24},children:(0,V.jsx)(je.Z,{fontSize:"small"})}),(0,V.jsx)(ye.Z,{children:x("storage.spaces.connect.switchToSpace")})]}),!t&&(0,V.jsx)(Be,{spaceGateway:n,onDelete:a})]})]})}Se.propTypes={spaceGateway:J().shape({name:J().string.isRequired,url:J().string.isRequired,protected:J().bool,endpoint:J().string.isRequired}).isRequired,connected:J().bool.isRequired,enableSwitchToSpace:J().bool,onDelete:J().func,onConnect:J().func},Se.defaultProps={onDelete:function(){},onConnect:function(){},enableSwitchToSpace:!0};var Ue=Se,Ee=t(19066),Re=t(24962),De=t(84636),Fe=t(59071),Me=t(91913),Oe=function(e){return(0,V.jsxs)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:[(0,V.jsxs)("g",{filter:"url(#a)",children:[(0,V.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,V.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,V.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,V.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,V.jsxs)("g",{mask:"url(#b)",children:[(0,V.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,V.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,V.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,V.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,V.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,V.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,V.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,V.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,V.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,V.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,V.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,V.jsxs)("defs",{children:[(0,V.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,V.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,V.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,V.jsx)("feOffset",{dy:"2"}),(0,V.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,V.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,V.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,V.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,V.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,V.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,V.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,V.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#101010"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,V.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,V.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,V.jsx)("stop",{stopColor:"#fff"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,V.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,V.jsx)("stop",{stopColor:"#016BED"}),(0,V.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,V.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,V.jsx)("clipPath",{id:"g",children:(0,V.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,V.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZo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4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]}))};function Te(e){var n=e.src,t=e.alt,a=(0,r.useState)(!1),s=(0,w.Z)(a,2),i=s[0],o=s[1],c=(0,r.useState)(!1),l=(0,w.Z)(c,2),p=l[0],d=l[1],u=function(){return d(!0)},h=function(){return d(!1)};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Re.Z,{ready:i,customPlaceholder:(0,V.jsx)("img",{style:{cursor:"pointer"},alt:t,src:n,width:"58px",height:"58px",onError:function(){return o(!0)},onClick:u}),children:(0,V.jsx)(Oe,{style:{cursor:"pointer",width:"58px",height:"58px"},onClick:u})}),(0,V.jsx)(De.Z,{open:p,onClose:h,"aria-labelledby":"preview-space-nft-display","aria-describedby":"preview space nft display",fullWidth:!0,maxWidth:"md",children:(0,V.jsxs)(Fe.Z,{style:{padding:"8px 8px",backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,V.jsx)(xe.Z,{color:"inherit",onClick:h,"aria-label":"close",style:{position:"absolute",top:8,right:8,color:"white"},children:(0,V.jsx)(Me.Z,{})}),i?(0,V.jsx)(Oe,{style:{width:"100%",height:"75vh"}}):(0,V.jsx)("img",{src:n,alt:"",style:{width:"100%",height:"75vh",objectFit:"contain"}})]})})]})}Oe.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"},Te.propTypes={src:L.string.isRequired,alt:L.string.isRequired};var ze,Le=Te,Je=["spaceGateway","connected","progress","onDelete","onBackupNow","refreshSpaceGateways"],Ge=function(e){return(0,V.jsx)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:(0,V.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})}))};Ge.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var Qe=function(e){return(0,V.jsx)("svg",(0,j.Z)((0,j.Z)({},e),{},{children:(0,V.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})}))};function Ne(e){var n=e.spaceGateway,t=e.connected,o=e.progress,c=e.onDelete,u=e.onBackupNow,x=e.refreshSpaceGateways,v=(0,B.Z)(e,Je),g=(0,C.PE)(),y=g.t,A=g.locale,I=(0,r.useState)(!1),S=(0,w.Z)(I,2),U=S[0],D=S[1],O=(0,a.y0)().blocklet,T=(0,Q.h6)(),z=T.api,L=T.info.did,J=P({blocklet:O}),G=J.appDid,N=J.appName,H=J.appDescription,X=J.scopes,K=J.appUrl,Y=J.referrer,W=(0,r.useMemo)((function(){return m(null===O||void 0===O?void 0:O.environments)}),[O]),q=(0,r.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:y("storage.spaces.authorize.title",{appName:N},A),scan:y("storage.spaces.authorize.scan",{appName:N},A),confirm:"",success:(0,V.jsx)(b.Z,{gutterBottom:!0,children:y("storage.spaces.authorize.success")})},onClose:function(){ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})}))}}),_=(0,w.Z)(q,2),$=_[0],ee=_[1],ne=(0,de.Z)((0,i.Z)((0,s.Z)().mark((function e(){return(0,s.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",f(W));case 3:case"end":return e.stop()}}),e)}))),{refreshDeps:[t,W,null===$||void 0===$?void 0:$.open,U]}),te=ne.data,re=ne.loading,ae=t&&te,se=t&&!U&&te,ie=t&&U&&te,oe=t&&!te&&!re&&!U,ce=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(null===n||void 0===n?void 0:n.endpoint);case 2:if(!e.sent){e.next=8;break}return e.next=6,z.configBlocklet({input:{did:[O.meta.did],configs:[{key:l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 6:return M.Z.success(y("storage.spaces.connect.switchToSpaceSucceeded",{name:n.name?"(".concat(n.name,")"):""})),e.abrupt("return");case 8:ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!0,prefix:F()(n.url,"space/api/did"),baseUrl:new URL(n.url).origin,checkFn:d.od.create({baseURL:F()(n.url,"space")}).get,extraParams:{appDid:G,appName:N,appDescription:H,scopes:X,appUrl:K,referrer:Y,nodeDid:L}})}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xe=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(t,r){var a,i,o,c,p,d;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r(t.endpoint),p=h(c),d=t.space?r(t.space):{},!n.did||p===n.did){e.next=7;break}return ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),M.Z.error(y("storage.spaces.gateway.switch.failedForMismatchSpace",{name:null!==d&&void 0!==d&&d.name?d.name:""})),e.abrupt("return");case 7:return e.next=9,z.updateBlockletSpaceGateway({input:{did:O.meta.did,where:{url:null===n||void 0===n?void 0:n.url},spaceGateway:(0,j.Z)((0,j.Z)({},n),{},{name:null!==(a=d.name)&&void 0!==a?a:"DID Space",did:null!==(i=d.did)&&void 0!==i?i:h(c),endpoint:c})}});case 9:if(W===c){e.next=12;break}return e.next=12,z.configBlocklet({input:{did:[O.meta.did],configs:[{key:l.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:c}]}});case 12:M.Z.success(y("storage.spaces.connectedWithName",{name:null!==(o=null===n||void 0===n?void 0:n.name)&&void 0!==o?o:"DID Spaces"})),ee((function(e){return(0,j.Z)((0,j.Z)({},e),{},{open:!1})})),x();case 15:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),me=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!U){e.next=3;break}return e.abrupt("return");case 3:return D(!0),e.next=6,u();case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),M.Z.error(e.t0.message);case 12:return e.prev=12,D(!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!==o&&void 0!==o&&o.completed?(100===(null===o||void 0===o?void 0:o.progress)?M.Z.success(y("storage.spaces.backupSuccessfully")):-1===(null===o||void 0===o?void 0:o.progress)&&M.Z.error(null===o||void 0===o?void 0:o.message),D(!1),o.progress=0,o.message=""):o.progress&&D(!0)}),[o]),(0,V.jsxs)(Pe,{style:{position:"relative"},children:[(0,V.jsxs)(k.Z,(0,j.Z)((0,j.Z)({sx:{backgroundColor:t?"#F0FDFF":"inherit","&:hover":{backgroundColor:t?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px"},v),{},{children:[(0,V.jsx)(k.Z,{display:"flex",children:(0,V.jsx)(Le,{alt:n.did,src:Z(n.endpoint)})}),(0,V.jsxs)(k.Z,{className:"spaces-info",display:"flex",flexGrow:1,flexDirection:ie?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[(0,V.jsxs)(k.Z,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[(0,V.jsx)(b.Z,{color:t?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:n.name}),ae&&(0,V.jsx)(le.Z,{label:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ge,{style:{marginRight:"4px"}}),y("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),oe&&(0,V.jsx)(le.Z,{label:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Qe,{style:{marginRight:"4px"}}),y("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),(0,V.jsx)(k.Z,{className:"spaces-address",display:ie?"none":"flex",color:"#9397A1",marginTop:"8px",children:(0,V.jsx)(b.Z,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:n.did&&(0,V.jsx)(he.Z,{copyable:!1,size:14,compact:!0,responsive:!1,did:n.did})})})]}),(0,V.jsxs)(k.Z,{className:"spaces-backup",display:"flex",alignItems:"center",children:[se&&(0,V.jsxs)(k.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[(0,V.jsx)(E.Z,{variant:"contained",size:"small",onClick:me,children:y("storage.spaces.strategy.backupNow")}),Ee.C&&(0,V.jsx)(fe.Z,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:(0,V.jsx)(b.Z,{sx:{marginRight:"8px",fontSize:"16px"},children:(0,V.jsx)("span",{children:y("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),ie&&(0,V.jsxs)(k.Z,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:"640px",marginRight:"auto",alignSelf:"end",children:[(0,V.jsx)(b.Z,{color:"primary",children:null===o||void 0===o?void 0:o.message}),(0,V.jsxs)(k.Z,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[(0,V.jsx)(k.Z,{sx:{width:"100%",mr:1},children:(0,V.jsx)(pe.Z,{color:"primary",variant:"determinate",value:null===o||void 0===o?void 0:o.progress})}),(0,V.jsx)(k.Z,{sx:{minWidth:35},children:(0,V.jsxs)(b.Z,{variant:"body2",color:"text.secondary",children:[null===o||void 0===o?void 0:o.progress,"%"]})})]})]}),oe&&(0,V.jsx)(k.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:(0,V.jsx)(E.Z,{color:"error",variant:"contained",size:"small",onClick:ce,children:y("storage.spaces.disconnected.reconnectNow")})}),(0,V.jsx)(Ue,{sx:{marginLeft:"16px",marginRight:"16px"},spaceGateway:n,connected:t,onDelete:c,onConnect:ce,enableSwitchToSpace:(null===o||void 0===o?void 0:o.completed)||(0,p.isEmpty)(null===o||void 0===o?void 0:o.message)})]})]})),(0,V.jsx)(R.default,{forceConnected:!1,saveConnect:!1,prefix:$.prefix,open:$.open,popup:!0,action:$.action,baseUrl:$.baseUrl,checkFn:$.checkFn,onSuccess:xe,onClose:$.onClose,checkTimeout:$.checkTimeout,extraParams:$.extraParams,messages:$.messages,locale:A},"get-endpoint"),(0,V.jsx)(k.Z,{className:"selected-container ".concat(t?"selected":""),children:(0,V.jsx)(ue.default,{className:"selected-icon"})})]})}Qe.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ne.propTypes={spaceGateway:J().shape({did:J().string.isRequired,name:J().string.isRequired,url:J().string.isRequired,endpoint:J().string.isRequired,protected:J().bool}).isRequired,connected:J().bool.isRequired,progress:J().any.isRequired,refreshSpaceGateways:J().func.isRequired,onDelete:J().func,onBackupNow:J().func},Ne.defaultProps={onDelete:function(){},onBackupNow:function(){}};var Pe=(0,q.default)(k.Z)(ze||(ze=(0,W.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"]))),Ve=Ne,He=t(9715),Xe=t(2291),Ke=t(6779),Ye=t(20296),We=t(19886),qe=t.n(We),_e=t(88666),$e=["progress","spaceGateways"];function en(e){var n=e.progress,t=e.spaceGateways,o=(0,B.Z)(e,$e),c=(0,C.PE)(),l=c.t,d=c.locale,u=function(e){var n,t=e.blocklet,a=e.loading,o=e.progress,c=(0,r.useState)([]),l=(0,w.Z)(c,2),d=l[0],u=l[1],h=(0,Q.h6)().api,f=(0,r.useCallback)((0,p.throttle)((0,i.Z)((0,s.Z)().mark((function e(){var n,r,a;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getBlockletBackups({input:{did:null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.did}});case 2:r=e.sent,a=r.backups,u(null!==a&&void 0!==a?a:[]);case 5:case"end":return e.stop()}}),e)}))),2e3),[]);return(0,ce.Z)((0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f();case 1:case"end":return e.stop()}}),e)}))),[null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.did,o,a]),{backups:d}}({blocklet:(0,a.y0)().blocklet,progress:n}),h=u.backups,f=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:function(e){var n,r=h[e],a=r.targetUrl,s=r.targetName,i=(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,V.jsx)(ee.Z,{fontSize:"16px",href:a,target:"_blank",children:i})}}},{label:l("common.strategy"),name:"strategy",options:{customBodyRender:function(e){var n=l(0===e?"common.auto":"common.manual");return(0,V.jsx)(He.Z,{children:n})}}},{label:l("common.startTime"),name:"createdAt",options:{customBodyRender:function(e){return qe()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:l("common.endTime"),name:"updatedAt",options:{customBodyRender:function(e){return(0,p.isEmpty)(e)?"":qe()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:l("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n,t=null!==(n=null===h||void 0===h?void 0:h[e])&&void 0!==n?n:{},r=t.status,a=t.message;return(0,p.isNull)(r)?(0,V.jsxs)(b.Z,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[(0,V.jsx)(I.Z,{sx:{marginRight:"4px"},size:"12px"}),l("common.progress")]}):r?(0,V.jsxs)(k.Z,{display:"inline-flex",alignItems:"center",children:[(0,V.jsx)(He.Z,{type:"error",children:l("common.failed")})," \xa0",(0,V.jsx)(Ke.Z,{style:{display:"flex",alignItems:"center",flexShrink:0},title:a,children:(0,V.jsx)(Ye.Z,{children:(0,V.jsx)(_e.Z,{style:{width:"24px",height:"24px"},color:"error"})})})]}):(0,V.jsx)(He.Z,{type:"success",children:l("common.succeeded")})}}}];return(0,V.jsx)(k.Z,(0,j.Z)((0,j.Z)({},o),{},{children:null!==h&&void 0!==h&&h.length?(0,V.jsx)(Xe.Z,{title:(0,V.jsx)(b.Z,{fontSize:"1.2rem",fontWeight:"bold",children:l("storage.spaces.backup.records")}),data:h,columns:f,emptyNode:l("storage.spaces.record.emptyData",d),options:{download:!1,filter:!1,print:!1}}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(k.Z,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:(0,V.jsx)(b.Z,{fontSize:"1.2rem",fontWeight:"bold",children:l("storage.spaces.backup.records")})}),(0,V.jsx)(k.Z,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:l("storage.spaces.record.emptyData")})]})}))}en.propTypes={progress:L.object.isRequired,spaceGateways:L.array.isRequired};var nn=en;var tn=function(e){var n=e.appDid,t=(0,r.useState)({message:"",progress:0,completed:!1}),a=(0,w.Z)(t,2),s=a[0],i=a[1];return(0,(0,Q.h6)().ws.useSubscription)(l.BlockletEvents.backupProgress,(function(e){i((function(){return(0,j.Z)({},e)}))}),[n]),s};function rn(e){return an.apply(this,arguments)}function an(){return an=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r,a,o,c;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.blockletDid,r=n.nodeApi,a=n.spaceGateways,o=!1,e.next=4,Promise.all(a.map(function(){var e=(0,i.Z)((0,s.Z)().mark((function e(n){var t,r;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,y(n.endpoint);case 3:return r=e.sent,(0,p.isEmpty)(r)||r===t||(t=r,o=!0),e.abrupt("return",(0,j.Z)((0,j.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,!o){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,j.Z)({},e)}})})));case 8:return e.abrupt("return",c);case 9:case"end":return e.stop()}}),e)}))),an.apply(this,arguments)}var sn=function(){var e,n=(0,C.PE)().t,t=(0,a.y0)(),o=t.blocklet,c=t.actions.refreshBlocklet,l=(0,Q.h6)().api,p=(0,r.useMemo)((function(){return m(null===o||void 0===o?void 0:o.environments)}),[o]),d=tn({appDid:null===o||void 0===o?void 0:o.appDid}),u=(0,r.useState)(!1),h=(0,w.Z)(u,2),f=h[0],x=h[1],v=function(e){var n=e.blockletDid,t=e.setLoading,a=void 0===t?function(){}:t,o=(0,r.useState)(!1),c=(0,w.Z)(o,2),l=c[0],p=c[1],d=(0,r.useState)([]),u=(0,w.Z)(d,2),h=u[0],f=u[1],x=(0,Q.h6)().api;return(0,ce.Z)((0,i.Z)((0,s.Z)().mark((function e(){var t,r,i;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n){e.next=4;break}return f([]),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,rn({blockletDid:n,nodeApi:x,spaceGateways:r});case 11:i=e.sent,f(null!==i&&void 0!==i?i:[]),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error(e.t0),M.Z.error((0,G.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,l]),{refreshSpaceGateways:function(){p((function(e){return!e}))},spaceGateways:h}}({blockletDid:null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,setLoading:x,refreshBlocklet:c}),g=v.spaceGateways,y=v.refreshSpaceGateways,A=f&&!(null!==g&&void 0!==g&&g.length),Z=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(t){return(0,s.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!==p){e.next=5;break}return M.Z.warning(n("storage.spaces.gateway.delete.failedForConnected")),e.abrupt("return");case 5:return e.next=7,l.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:null===t||void 0===t?void 0:t.did}});case 7:M.Z.success(n("storage.spaces.gateway.delete.succeeded",{name:"(".concat(t.name,")")})),y();case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),j=function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.backupBlocklet({input:{appDid:o.appDid,to:"spaces"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,V.jsxs)(k.Z,{display:"flex",flexDirection:"column",children:[(0,V.jsxs)(k.Z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[(0,V.jsx)(b.Z,{fontSize:"1.2rem",fontWeight:"bold",children:n("storage.spaces.connected.title")}),(0,V.jsx)(Y,{spaceGateways:g,refreshSpaceGateways:y})]}),(0,V.jsx)(k.Z,{children:A?(0,V.jsx)(k.Z,{display:"flex",justifyContent:"center",children:(0,V.jsx)(I.Z,{})}):g.map((function(e,n){return(0,V.jsx)(Ve,{style:{marginTop:"12px"},spaceGateway:e,connected:g.findIndex((function(e){return e.endpoint===p}))===n,onDelete:Z,onBackupNow:j,progress:d,refreshSpaceGateways:y},e.endpoint)}))}),(0,V.jsx)(nn,{sx:{marginTop:"24px"},spaceGateways:g,progress:d}),(0,V.jsx)(b.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:n("common.dataStorage")}),(0,V.jsx)(re,{blocklet:o})]})};function on(){var e=(0,a.y0)().blocklet;return(0,r.useMemo)((function(){return m(null===e||void 0===e?void 0:e.environments)}),[e])?(0,V.jsx)(sn,{}):(0,V.jsx)(oe,{})}on.propTypes={};var cn=on},36558:function(e,n,t){var r=t(33028),a=t(59740),s=t(24974),i=t.n(s),o=t(86822),c=t(19638),l=t(23586),p=t(37574),d=["did","href","external","avatarProps"];function u(e){var n=e.did,t=e.href,s=e.external,i=(e.avatarProps,(0,a.Z)(e,d)),u=(0,p.jsx)(l.Z,(0,r.Z)({did:n},i));return t?s?(0,p.jsx)(c.Z,{target:"_blank",href:t,underline:"hover",children:u}):(0,p.jsx)(o.rU,{to:t,children:u}):u}u.propTypes={did:i().string.isRequired,to:i().string,href:i().string,avatarProps:i().object,external:i().bool},u.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=u},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")}}]);
|
|
2
|
-
//# sourceMappingURL=9292.803f7e05.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[9620],{99620:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return de}});var t,r=i(71171),a=i(33028),o=i(32723),s=i(34795),c=i(30969),l=i(16380),p=i(30734),u=i(24974),d=i.n(u),v=i(54164),f=i(94308),h=i(20003),m=i(96234),x=i(47333),g=i(50496),_=i(17469),w=i(37574),j=(0,_.Z)((0,w.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"}),"Inbox");function y(e){var n=e.invitation,i=e.createPassportSvg,t=e.passportColor,r=(0,c.useState)(!1),a=(0,m.Z)(r,2),o=a[0],s=a[1],l=(0,c.useContext)(x.RD).t,p=(0,c.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),u=(0,c.useMemo)((function(){return i({title:p,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",ownerDid:n.info.appDid,isDataUrl:!0,preferredColor:n.info.passportColor||t})}),[n,p]),d=(0,c.useCallback)((function(){s(!0)}),[]),v=(0,c.useCallback)((function(){s(!1)}),[]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Z,{children:(0,w.jsx)("div",{className:"invite-passport__card",onClick:d,children:(0,w.jsx)("object",{data:u,alt:"passport",className:"invite-passport__cover"})})}),(0,w.jsx)(g.Z,{open:o,title:l("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:v,children:n.role.permissions&&n.role.permissions.length>0?(0,w.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,w.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,w.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,w.jsx)(j,{style:{width:"30px",height:"30px"}}),(0,w.jsx)("div",{children:l("invite.emptyPermission")})]})})]})}y.propTypes={invitation:d().object.isRequired,createPassportSvg:d().func.isRequired,passportColor:d().string},y.defaultProps={passportColor:"auto"};var b,Z=l.default.div(t||(t=(0,r.Z)(["\n display: flex;\n max-width: 350px;\n margin: 30px auto;\n .invite-passport__card {\n margin: 0 auto;\n width: 228px;\n height: 258px;\n flex-shrink: 0;\n .invite-passport__cover {\n width: 100%;\n height: 100%;\n }\n }\n .invite-passport__content {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n .invite-passport__title {\n font-weight: 700;\n font-size: 16px;\n }\n .invite-passport__description {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n height: 3em;\n color: #999;\n font-size: 14px;\n }\n .invite-passport__view-permission {\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n line-height: 18px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),k=y,z=i(83241),P=i(17323),C=i(82024),N=i(24891),R=i(86776);function S(e){var n,i,t,r=e.invitation,a=e.checkFn,o=e.onLogin,s=e.onReceive,l=(0,c.useState)(!1),p=(0,m.Z)(l,2),u=p[0],d=p[1],v=(0,x.PE)(),f=v.t,h=v.locale,g=(0,R.Z)().getPassportId;"undefined"!==typeof window&&(n=null===(i=window)||void 0===i||null===(t=i.blocklet)||void 0===t?void 0:t.componentId);var _={passportId:g(),inviteId:r.inviteId,baseUrl:window.location.origin,componentId:n},j=(0,c.useCallback)((function(){d(!1)}),[]),y=(0,c.useCallback)((function(){d(!1),o.apply(void 0,arguments)}),[o]),b=(0,c.useCallback)((function(){"function"!==typeof s?d(!0):s()}),[]);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(O,{children:[(0,w.jsx)(P.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:b,children:f("invite.receive")}),(0,w.jsxs)("div",{className:"invite-receive__until",children:[f("invite.validUntil"),(0,N.o0)(r.expireDate,h)]})]}),(0,w.jsx)(z.default,{popup:!0,open:u,className:"connect",action:"invite",checkFn:a,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:y,onClose:j,locale:h,webWalletUrl:(0,C.yP)(),messages:{title:f("receive.dialog.title"),scan:f("receive.dialog.scan"),confirm:f("receive.dialog.confirm"),success:f("receive.dialog.success")},extraParams:_})]})}S.propTypes={invitation:d().object.isRequired,checkFn:d().func.isRequired,onLogin:d().func,onReceive:d().func},S.defaultProps={onLogin:function(){},onReceive:null};var M,O=l.default.div(b||(b=(0,r.Z)(["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),L=S;function I(e){var n=e.onLogin,i=(0,x.PE)().t;return(0,w.jsx)(V,{children:(0,w.jsx)(P.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:i("common.connect")})})}I.propTypes={onLogin:d().func},I.defaultProps={onLogin:function(){}};var H,V=l.default.div(M||(M=(0,r.Z)(["\n text-align: center;\n .invite-receive__logo-wrapper {\n display: inline-flex;\n align-items: center;\n color: #9397a1;\n font-size: 14px;\n }\n .invite-receive__logo {\n height: 16px;\n margin-left: 8px;\n }\n .invite-receive__button {\n width: 100%;\n margin: 16px 0;\n white-space: nowrap;\n }\n .invite-receive__until {\n text-align: center;\n font-size: 14px;\n }\n .invite-receive__description {\n color: #999;\n text-align: left;\n list-style: decimal;\n padding: 0;\n padding-left: 1.2em;\n margin: 40px 0;\n }\n .invite-receive__description-item {\n list-style: decimal;\n }\n .invite-receive__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),T=I,D=i(62399);function E(e){var n=e.invitation,i=(0,x.PE)().t,t=(0,c.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),r=(0,c.useMemo)((function(){return i("invite.message",{name:"{{name}}",role:t,dapp:"{{dapp}}"})}),[i,t]),a=(0,N.E8)(n.info.chainHost,n.inviter.did,"account"),o=(0,N.Zp)(r,{name:function(){return a?(0,w.jsx)("a",{target:"_blank",href:a,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,w.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,w.jsxs)(q,{children:[(0,w.jsx)(D.Z,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,w.jsx)("div",{className:"invite-user__message",children:o})]})}E.propTypes={invitation:d().object.isRequired};var F,q=l.default.div(H||(H=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),U=E,W=i(38361),A=i(32901);function B(e){var n=e.invitation,i=e.type,t=(0,x.PE)().t,r=(0,c.useMemo)((function(){return t("invite.success",{dapp:"{{dapp}}"})}),[t]),a=(0,N.E8)(n.info.chainHost,n.inviter.did,"account"),o="receiver"===i?n.receiver:n.inviter,s=(0,N.Zp)(r,{name:function(){return a?(0,w.jsx)("a",{target:"_blank",href:a,className:"invite-user__link",rel:"noreferrer",children:o.fullName},"name"):o.fullName},dapp:function(){return(0,w.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,w.jsxs)(K,{children:[(0,w.jsx)(W.Z,{pt:1,color:"success.main",children:(0,w.jsx)(A.Z,{style:{fontSize:80}})}),(0,w.jsx)("div",{className:"invite-user__message",children:s})]})}B.propTypes={invitation:d().object.isRequired,type:d().oneOf("inviter","receiver")},B.defaultProps={type:"inviter"};var J,K=l.default.div(F||(F=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n .invite-user__name {\n font-weight: 700;\n font-size: 16px;\n margin: 8px 0 2px 0;\n }\n .invite-user__address {\n font-size: 12px;\n }\n .invite-user__message {\n margin-top: 20px;\n font-weight: 700;\n /* width: 90%; */\n text-align: center;\n font-size: 18px;\n }\n .invite-user__link {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),X=B,Y=i(59740),G=["invitation"];function Q(e){var n=e.invitation,i=(0,Y.Z)(e,G);return(0,w.jsxs)(ee,(0,a.Z)((0,a.Z)({},i),{},{children:[(0,w.jsx)(D.Z,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,w.jsxs)("div",{className:"invite-app__content",children:[(0,w.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,w.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}Q.propTypes={invitation:d().object.isRequired};var $,ee=l.default.div(J||(J=(0,r.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n overflow: hidden;\n .invite-app__content {\n flex: 1;\n margin: 0 12px;\n font-weight: 700;\n overflow: hidden;\n }\n .invite-app__title {\n line-height: 1;\n margin-bottom: 2px;\n overflow: hidden;\n }\n .invite-app__description {\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n height: 1.3em;\n color: #999;\n overflow: hidden;\n }\n"]))),ne=Q,ie=i(85752);function te(e){var n,i,t=e.getDataFn,r=e.passportColor,a=e.createPassportSvg,o=e.onLoginSuccess,s=e.checkFn,c=e.onReceive,l=(0,v.Z)(t);if(l.loading)return(0,w.jsx)(f.Z,{});if(l.error)return(0,w.jsx)(h.Z,{status:"404",title:null===(n=l.error)||void 0===n||null===(i=n.response)||void 0===i?void 0:i.data,description:""});var p="success"===l.data.status,u=p?X:U,d=p?T:L;return(0,w.jsxs)(ae,{className:"page-invite__wrapper",children:[(0,w.jsx)(ne,{invitation:l.data}),(0,w.jsxs)("div",{className:"page-invite__card",children:[(0,w.jsx)(u,{invitation:l.data}),(0,w.jsx)(k,{invitation:l.data,createPassportSvg:a,passportColor:r}),(0,w.jsx)(d,{invitation:l.data,onLogin:o,checkFn:s,onReceive:c})]})]})}te.propTypes={getDataFn:d().func.isRequired,checkFn:d().func.isRequired,createPassportSvg:d().func.isRequired,onLoginSuccess:d().func,onReceive:d().func,passportColor:d().string},te.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null};var re,ae=l.default.div($||($=(0,r.Z)(["\n max-width: 460px;\n max-height: 650px;\n min-height: 450px;\n width: 90%;\n height: 80%;\n display: flex;\n flex-direction: column;\n .page-invite__card {\n background-color: #fff;\n border-radius: 4px;\n flex: 1;\n padding: 20px 30px;\n margin-top: 10px;\n }\n .page-invite__app {\n margin-top: 20px;\n }\n"]))),oe=(0,ie.Z)(te),se=i(20244),ce=i(99042),le=i(38507),pe=i(4485);var ue=l.default.div(re||(re=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"]))),de=function(e){var n=(0,p.useNavigate)(),i=new URL(window.location.href).searchParams,t=(0,pe.Tt)(),r=t.api,l=t.session,u=i.get("inviteId"),d=i.get("redirect"),v=(0,c.useCallback)((0,s.Z)((0,o.Z)().mark((function e(){var n,i;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce.Z.get("invitation",{params:{inviteId:u}});case 2:return n=e.sent,i=n.data,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)}))),[u]),f=(0,c.useCallback)(function(){var e=(0,s.Z)((0,o.Z)().mark((function e(i,t){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i&&((0,le.ZB)(t(i.sessionToken)),(0,le.zI)(t(i.refreshToken))),e.next=3,l.refresh();case 3:setTimeout((function(){if(d){var e=decodeURIComponent(d);e.startsWith(se.WELLKNOWN_SERVICE_PATH_PREFIX)?n(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||"/"}),50);case 4:case"end":return e.stop()}}),e)})));return function(n,i){return e.apply(this,arguments)}}(),[]);return(0,w.jsx)(ue,{className:"page-invite",children:(0,w.jsx)(oe,(0,a.Z)((0,a.Z)({},e),{},{getDataFn:v,checkFn:r.get,createPassportSvg:le.Ju,onLoginSuccess:f}))})}},86776:function(e,n,i){"use strict";i.d(n,{Z:function(){return a}});var t=i(96234),r=i(17708);function a(){var e=(0,r.Z)("passportId",""),n=(0,t.Z)(e,3),i=n[0],a=n[1],o=n[2];return{getPassportId:function(){return setTimeout((function(){o()}),0),i||""},setPassportId:a}}},19477:function(e,n,i){var t=i(2717),r=i(37095),a=i(93113);e.exports={translations:{zh:t(a),en:t(r)}}},85752:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var t=i(33028),r=i(47333),a=i(19477),o=i(37574);function s(e){return function(n){return(0,o.jsx)(r.Iw,{translations:a.translations,children:(0,o.jsx)(e,(0,t.Z)({},n))})}}},17323:function(e,n,i){"use strict";i.d(n,{Z:function(){return u}});var t=i(33028),r=i(59740),a=i(24974),o=i.n(a),s=i(29996),c=i(82969),l=i(37574),p=["children"];function u(e){var n=e.children,i=(0,r.Z)(e,p);return(0,l.jsxs)(s.Z,(0,t.Z)((0,t.Z)({color:"did",variant:"contained"},i),{},{children:[(0,l.jsx)("span",{style:{fontWeight:400},children:n||"Continue With"}),(0,l.jsx)(c.Z,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]}))}u.propTypes={children:o().any},u.defaultProps={children:""}},82969:function(e,n,i){"use strict";n.Z=void 0;(t=i(30969))&&t.__esModule;var t,r=i(37574);function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function o(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?a(Object(i),!0).forEach((function(n){s(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function s(e,n,i){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var t=i.call(e,n||"default");if("object"!==typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}var c=function(e){return(0,r.jsxs)("svg",o(o({},e),{},{children:[(0,r.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,r.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};c.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},c.displayName="connect-logo";var l=c;n.Z=l},32901:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(48035)),a=i(37574),o=(0,r.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=o}}]);
|
|
2
|
-
//# sourceMappingURL=9620.585d8c25.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[9899],{39899:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return W}});var r,a=t(71171),o=t(96234),s=t(30969),i=t(16380),c=t(30734),l=t(86822),d=t(33359),u=t(1059),p=t(32901),f=t(38361),h=t(38219),m=t(70576),v=t(50624),x=t(315),g=t(89364),b=t(27724),Z=t(59467),w=t(29996),j=t(47333),S=t(92771),y=t(83241),P=t(20244),k=t(24974),C=t.n(k),N=t(37574);function z(e){var n,t=e.list,r=e.width,a=e.height,i=e.cardSpace,c=e.onSelect,l=e.defaultIndex,d=(0,s.useState)(0),u=(0,o.Z)(d,2),p=u[0],f=u[1],h=(0,s.useState)(0),m=(0,o.Z)(h,2),v=m[0],x=m[1],g=(0,s.useRef)(null),b=function(e){if(!(e<0||e>t.length-1)){f(e);var n=g.current.clientWidth;x(e*(r+i)-(n-r)/2+.5*i),c(e)}};(0,s.useEffect)((function(){b(l);g.current.addEventListener("touchmove",(function(e){return e.preventDefault()}),{passive:!1})}),[]);return(0,N.jsx)(I,{ref:g,onTouchStart:function(e){var t=e.touches[0];n=t.clientX},onTouchEnd:function(e){var t=e.changedTouches[0],r=n-t.clientX;Math.abs(r)>60&&b(r>0?p+1:p-1)},children:(0,N.jsx)("div",{className:"card-container",style:{transform:"translate(".concat(-v,"px, 0)")},children:t.map((function(e,n){return(0,N.jsx)("div",{className:"card-item ".concat(n===p?"selected":""),style:{width:r,height:a,margin:i/2},onClick:function(){return b(n)},children:(0,N.jsx)("object",{data:e.src,alt:e.name})},n)}))})})}var I=i.default.div(r||(r=(0,a.Z)(["\n overflow: hidden;\n mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);\n overflow: hidden;\n .card-container {\n display: flex;\n white-space: nowrap;\n width: max-content;\n transition: all ease 0.3s;\n }\n .card-item {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n\n object {\n pointer-events: none;\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n outline: #526ded solid 0;\n transition: all ease 0.2s;\n box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;\n }\n &.selected {\n cursor: default;\n object {\n outline: #526ded solid 5px;\n }\n }\n }\n"])));z.propTypes={list:C().array,width:C().number,height:C().number,cardSpace:C().number,onSelect:C().func,defaultIndex:C().number},z.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:function(){},defaultIndex:0};var R,M=t(36558),A=t(85752),L=t(86776);function D(e){var n=e.icon,t=e.active,r=e.completed,a={1:(0,N.jsx)(x.Z,{className:"step-icon"}),2:(0,N.jsx)(g.Z,{className:"step-icon"}),3:(0,N.jsx)(b.Z,{className:"step-icon"})},o=["step-icon-w"];return t&&o.push("step-icon-w--active"),r&&o.push("step-icon-w--completed"),(0,N.jsx)("div",{className:o.join(" "),children:a[String(n)]})}var T=(0,i.default)(u.Z)(R||(R=(0,a.Z)(["\n padding-top: 46px;\n padding-bottom: 46px;\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n @media (max-width: ","px) {\n display: block;\n }\n .header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .stepper {\n padding: 24px;\n height: auto;\n width: 100%;\n min-height: 640px;\n display: flex;\n flex-direction: column;\n\n .stepper-progress {\n padding: 0;\n flex: 0;\n margin-bottom: 24px;\n\n .MuiStepLabel-label.MuiStepLabel-alternativeLabel {\n margin-top: 8px;\n }\n\n .MuiStepConnector-alternativeLabel {\n top: 24px;\n }\n\n .MuiStepConnector-lineHorizontal {\n height: 3px;\n border: none;\n background-color: #eaeaf0;\n border-radius: 1px;\n }\n\n .step-icon-w {\n background-color: ",";\n z-index: 1;\n color: ",";\n width: 50px;\n height: 50px;\n display: flex;\n border-radius: 50%;\n justify-content: center;\n align-items: center;\n .step-icon {\n font-size: 30px;\n }\n }\n\n .step-icon-w--active {\n background-color: ",";\n }\n\n .step-icon-w--completed {\n background-color: ",";\n }\n }\n\n .stepper-content {\n padding: 0 64px;\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n\n .stepper-icon {\n margin-left: 40px;\n }\n\n .stepper-auth {\n padding: 0;\n\n .auth-title {\n margin-bottom: 16px;\n }\n }\n\n .stepper-tip {\n text-align: center;\n margin-bottom: 16px;\n }\n @media (max-width: ","px) {\n padding: 0;\n }\n }\n\n .stepper-actions {\n flex: 0;\n text-align: right;\n padding: 0 64px;\n display: none;\n .step-button {\n margin-right: 8px;\n }\n }\n\n .select-passport {\n width: 80%;\n @media (max-width: ","px) {\n width: 100%;\n }\n }\n\n .user-info {\n .name {\n font-weight: 500;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n }\n\n .connect {\n background: #fafafa;\n }\n"])),(function(e){return e.theme.breakpoints.values.sm}),(function(e){return e.theme.palette.grey[500]}),(function(e){return e.theme.palette.common.white}),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.secondary.main}),(function(e){return e.theme.breakpoints.values.sm}),(function(e){return e.theme.breakpoints.values.sm})),H=(0,A.Z)((function(e){var n=e.SessionContext,r=e.webWalletUrl,a=e.createPassportSvg,i=e.passportColor,u=(0,s.useContext)(n),x=u.api,g=u.session,b=(0,s.useContext)(j.RD),k=b.t,C=b.locale,I=(0,s.useState)(!1),R=(0,o.Z)(I,2),A=R[0],H=R[1],_=(0,s.useState)(!1),E=(0,o.Z)(_,2),W=E[0],U=E[1],F=(0,s.useState)(!1),V=(0,o.Z)(F,2),B=V[0],O=V[1],X=(0,c.useNavigate)(),q=(0,s.useState)(0),K=(0,o.Z)(q,2),G=K[0],J=K[1],Q=(0,L.Z)().setPassportId,Y=(0,S.Z)().wallet,$=new URL(window.location.href).searchParams,ee=function(){J(G+1)},ne=function(e){H(e.user)},te=function(e){null!==e&&void 0!==e&&e.passportId&&Q(e.passportId),O(!0),ee()},re=function(){var e;if(Y&&"1"===new URL(window.location.href).searchParams.get("fromWallet"))t.e(5434).then(t.t.bind(t,45434,23)).then((function(e){e.call("arcClosePage")}));else{try{g.logout()}catch(r){}var n=$.get("redirect");n?X(n,{replace:!0}):((null===(e=window.env)||void 0===e?void 0:e.apiPrefix)||"").startsWith(P.WELLKNOWN_SERVICE_PATH_PREFIX)?X("".concat(P.WELLKNOWN_SERVICE_PATH_PREFIX,"/login"),{replace:!0}):X("/",{replace:!0})}},ae=[{label:k("lostPassport.selectPassport"),content:function(){return A?(0,N.jsxs)(f.Z,{className:"select-passport",children:[(0,N.jsxs)(f.Z,{my:1,display:"flex",alignItems:"center",className:"user-info",children:[(0,N.jsx)(Z.Z,{src:A.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,N.jsxs)(f.Z,{children:[(0,N.jsx)(f.Z,{className:"name",children:A.fullName}),(0,N.jsx)(f.Z,{className:"did",mt:1,children:(0,N.jsx)(M.Z,{did:A.did})})]})]}),(0,N.jsx)("div",{children:(0,N.jsx)(z,{width:230,height:306,cardSpace:24,list:A.passportTypes.map((function(e){return{src:a({title:e.title,issuer:e.issuer.name,issuerDid:e.issuer.id,ownerDid:A.did,ownerName:A.fullName,ownerAvatarUrl:A.avatar,isDataUrl:!0,preferredColor:i||"auto"}),name:e.title}})),onSelect:function(e){return n={target:{value:A.passportTypes[e].name}},void U(n.target.value);var n},defaultIndex:0})}),(0,N.jsx)(f.Z,{textAlign:"center",children:(0,N.jsx)(w.Z,{variant:"contained",color:"primary",onClick:function(){ee()},disabled:!W,children:k("common.next")})})]}):(0,N.jsx)(y.default,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:6e5,webWalletUrl:r,onSuccess:ne,locale:C,messages:{title:k("lostPassport.dialog.title"),scan:k("lostPassport.dialog.scan"),confirm:k("lostPassport.dialog.confirm"),success:k("lostPassport.dialog.success")}})}},{label:k("lostPassport.receivePassport"),content:function(){var e,n,t={receiverDid:A.did,passportName:W,teamDid:(null===(e=window)||void 0===e||null===(n=e.blocklet)||void 0===n?void 0:n.did)||""};return(0,N.jsx)(y.default,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:x.get,checkTimeout:6e5,webWalletUrl:r,onSuccess:te,locale:C,messages:{title:"".concat(k("lostPassport.dialog.title")),scan:k("lostPassport.dialog.scan"),confirm:k("lostPassport.dialog.confirm"),success:k("lostPassport.dialog.success")},extraParams:t})}},{label:k("common.complete"),content:function(){return(0,N.jsxs)(f.Z,{textAlign:"center",children:[(0,N.jsx)(f.Z,{mb:3,color:"success.main",children:(0,N.jsx)(p.Z,{style:{fontSize:60}})}),(0,N.jsx)(d.Z,{component:"p",variant:"body1",className:"subheader",children:k("issuePassport.dialog.success")}),(0,N.jsx)(w.Z,{style:{marginTop:40},variant:"contained",color:"primary",onClick:re,children:k("issuePassport.dialog.loginWithPassport")})]})}}];return(0,N.jsx)(T,{children:(0,N.jsxs)("div",{className:"stepper",children:[(0,N.jsx)(h.Z,{className:"stepper-progress",alternativeLabel:!0,activeStep:G,children:ae.map((function(e){var n=e.label;return(0,N.jsx)(m.Z,{children:(0,N.jsx)(v.Z,{StepIconComponent:D,children:n})},n)}))}),(0,N.jsx)("div",{className:"stepper-content",children:ae[G].content()}),!B&&(0,N.jsx)(f.Z,{textAlign:"center",fontSize:12,children:(0,N.jsx)(l.rU,{to:"/",style:{color:"#4598FA"},children:k("lostPassport.return")})})]})})})),_=t(4485),E=t(38507);function W(){var e,n,t=(0,E.yP)();return(0,N.jsx)(H,{SessionContext:_.B3,webWalletUrl:t,createPassportSvg:E.Ju,passportColor:(null===(e=window)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.passportColor)||"auto"})}},36558:function(e,n,t){"use strict";var r=t(33028),a=t(59740),o=t(24974),s=t.n(o),i=t(86822),c=t(19638),l=t(23586),d=t(37574),u=["did","href","external","avatarProps"];function p(e){var n=e.did,t=e.href,o=e.external,s=(e.avatarProps,(0,a.Z)(e,u)),p=(0,d.jsx)(l.Z,(0,r.Z)({did:n},s));return t?o?(0,d.jsx)(c.Z,{target:"_blank",href:t,underline:"hover",children:p}):(0,d.jsx)(i.rU,{to:t,children:p}):p}p.propTypes={did:s().string.isRequired,to:s().string,href:s().string,avatarProps:s().object,external:s().bool},p.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=p},86776:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(96234),a=t(17708);function o(){var e=(0,a.Z)("passportId",""),n=(0,r.Z)(e,3),t=n[0],o=n[1],s=n[2];return{getPassportId:function(){return setTimeout((function(){s()}),0),t||""},setPassportId:o}}},19477:function(e,n,t){var r=t(2717),a=t(37095),o=t(93113);e.exports={translations:{zh:r(o),en:r(a)}}},85752:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(33028),a=t(47333),o=t(19477),s=t(37574);function i(e){return function(n){return(0,s.jsx)(a.Iw,{translations:o.translations,children:(0,s.jsx)(e,(0,r.Z)({},n))})}}},32901:function(e,n,t){"use strict";var r=t(71600);n.Z=void 0;var a=r(t(48035)),o=t(37574),s=(0,a.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=s},89364:function(e,n,t){"use strict";var r=t(71600);n.Z=void 0;var a=r(t(48035)),o=t(37574),s=(0,a.default)((0,o.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");n.Z=s},315:function(e,n,t){"use strict";var r=t(71600);n.Z=void 0;var a=r(t(48035)),o=t(37574),s=(0,a.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h13v-4H8v4zm0 5h13v-4H8v4zM8 5v4h13V5H8z"}),"ViewList");n.Z=s},59467:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(96234),a=t(31461),o=t(7896),s=t(30969),i=t(81856),c=t(26540),l=t(45971),d=t(17363),u=t(17469),p=t(37574),f=(0,u.Z)((0,p.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),h=t(62746),m=t(2975);function v(e){return(0,m.Z)("MuiAvatar",e)}(0,h.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var x=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],g=(0,l.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,n[t.variant],t.colorDefault&&n.colorDefault]}})((function(e){var n=e.theme,t=e.ownerState;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&(0,o.Z)({color:(n.vars||n).palette.background.default},n.vars?{backgroundColor:n.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===n.palette.mode?n.palette.grey[400]:n.palette.grey[600]}))})),b=(0,l.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,n){return n.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Z=(0,l.ZP)(f,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,n){return n.fallback}})({width:"75%",height:"75%"});var w=s.forwardRef((function(e,n){var t=(0,d.Z)({props:e,name:"MuiAvatar"}),l=t.alt,u=t.children,f=t.className,h=t.component,m=void 0===h?"div":h,w=t.imgProps,j=t.sizes,S=t.src,y=t.srcSet,P=t.variant,k=void 0===P?"circular":P,C=(0,a.Z)(t,x),N=null,z=function(e){var n=e.crossOrigin,t=e.referrerPolicy,a=e.src,o=e.srcSet,i=s.useState(!1),c=(0,r.Z)(i,2),l=c[0],d=c[1];return s.useEffect((function(){if(a||o){d(!1);var e=!0,r=new Image;return r.onload=function(){e&&d("loaded")},r.onerror=function(){e&&d("error")},r.crossOrigin=n,r.referrerPolicy=t,r.src=a,o&&(r.srcset=o),function(){e=!1}}}),[n,t,a,o]),l}((0,o.Z)({},w,{src:S,srcSet:y})),I=S||y,R=I&&"error"!==z,M=(0,o.Z)({},t,{colorDefault:!R,component:m,variant:k}),A=function(e){var n=e.classes,t={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,c.Z)(t,v,n)}(M);return N=R?(0,p.jsx)(b,(0,o.Z)({alt:l,src:S,srcSet:y,sizes:j,ownerState:M,className:A.img},w)):null!=u?u:I&&l?l[0]:(0,p.jsx)(Z,{ownerState:M,className:A.fallback}),(0,p.jsx)(g,(0,o.Z)({as:m,ownerState:M,className:(0,i.default)(A.root,f),ref:n},C,{children:N}))}))}}]);
|
|
2
|
-
//# sourceMappingURL=9899.3267a1e3.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[9996],{9943:function(e,t,a){a.d(t,{ZP:function(){return G}});var o=a(56666),n=a(31461),i=a(7896),r=a(30969),s=a(81856),d=a(26540),c=a(15346),l=a(74262),u=a(45971),p=a(17363),v=a(4839),m=a(86209),b=a(32468),g=a(87352),f=a(22822),Z=a(62746),y=a(2975);function h(e){return(0,y.Z)("MuiListItem",e)}var C=(0,Z.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var x=(0,Z.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),I=a(65667),S=a(37574),A=["className"],P=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],k=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.dense&&t.dense,"flex-start"===a.alignItems&&t.alignItemsFlexStart,a.divider&&t.divider,!a.disableGutters&&t.gutters,!a.disablePadding&&t.padding,a.button&&t.button,a.hasSecondaryAction&&t.secondaryAction]}})((function(e){var t,a=e.theme,n=e.ownerState;return(0,i.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,i.Z)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&(0,o.Z)({},"& > .".concat(x.root),{paddingRight:48}),(t={},(0,o.Z)(t,"&.".concat(C.focusVisible),{backgroundColor:(a.vars||a).palette.action.focus}),(0,o.Z)(t,"&.".concat(C.selected),(0,o.Z)({backgroundColor:a.vars?"rgba(".concat(a.vars.palette.primary.mainChannel," / ").concat(a.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity)},"&.".concat(C.focusVisible),{backgroundColor:a.vars?"rgba(".concat(a.vars.palette.primary.mainChannel," / calc(").concat(a.vars.palette.action.selectedOpacity," + ").concat(a.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity+a.palette.action.focusOpacity)})),(0,o.Z)(t,"&.".concat(C.disabled),{opacity:(a.vars||a).palette.action.disabledOpacity}),t),"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((a.vars||a).palette.divider),backgroundClip:"padding-box"},n.button&&(0,o.Z)({transition:a.transitions.create("background-color",{duration:a.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(a.vars||a).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(C.selected,":hover"),{backgroundColor:a.vars?"rgba(".concat(a.vars.palette.primary.mainChannel," / calc(").concat(a.vars.palette.action.selectedOpacity," + ").concat(a.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity+a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:a.vars?"rgba(".concat(a.vars.palette.primary.mainChannel," / ").concat(a.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(a.palette.primary.main,a.palette.action.selectedOpacity)}}),n.hasSecondaryAction&&{paddingRight:48})})),w=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}})({position:"relative"}),G=r.forwardRef((function(e,t){var a=(0,p.Z)({props:e,name:"MuiListItem"}),o=a.alignItems,l=void 0===o?"center":o,u=a.autoFocus,Z=void 0!==u&&u,y=a.button,x=void 0!==y&&y,G=a.children,N=a.className,L=a.component,O=a.components,R=void 0===O?{}:O,F=a.componentsProps,M=void 0===F?{}:F,j=a.ContainerComponent,V=void 0===j?"li":j,_=a.ContainerProps,q=(void 0===_?{}:_).className,B=a.dense,D=void 0!==B&&B,T=a.disabled,z=void 0!==T&&T,Y=a.disableGutters,E=void 0!==Y&&Y,H=a.disablePadding,J=void 0!==H&&H,K=a.divider,Q=void 0!==K&&K,U=a.focusVisibleClassName,W=a.secondaryAction,X=a.selected,$=void 0!==X&&X,ee=a.slotProps,te=void 0===ee?{}:ee,ae=a.slots,oe=void 0===ae?{}:ae,ne=(0,n.Z)(a.ContainerProps,A),ie=(0,n.Z)(a,P),re=r.useContext(f.Z),se=r.useMemo((function(){return{dense:D||re.dense||!1,alignItems:l,disableGutters:E}}),[l,re.dense,D,E]),de=r.useRef(null);(0,b.Z)((function(){Z&&de.current&&de.current.focus()}),[Z]);var ce=r.Children.toArray(G),le=ce.length&&(0,m.Z)(ce[ce.length-1],["ListItemSecondaryAction"]),ue=(0,i.Z)({},a,{alignItems:l,autoFocus:Z,button:x,dense:se.dense,disabled:z,disableGutters:E,disablePadding:J,divider:Q,hasSecondaryAction:le,selected:$}),pe=function(e){var t=e.alignItems,a=e.button,o=e.classes,n=e.dense,i=e.disabled,r={root:["root",n&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",i&&"disabled",a&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return(0,d.Z)(r,h,o)}(ue),ve=(0,g.Z)(de,t),me=oe.root||R.Root||k,be=te.root||M.root||{},ge=(0,i.Z)({className:(0,s.default)(pe.root,be.className,N),disabled:z},ie),fe=L||"li";return x&&(ge.component=L||"div",ge.focusVisibleClassName=(0,s.default)(C.focusVisible,U),fe=v.Z),le?(fe=ge.component||L?fe:"div","li"===V&&("li"===fe?fe="div":"li"===ge.component&&(ge.component="div")),(0,S.jsx)(f.Z.Provider,{value:se,children:(0,S.jsxs)(w,(0,i.Z)({as:V,className:(0,s.default)(pe.container,q),ref:ve,ownerState:ue},ne,{children:[(0,S.jsx)(me,(0,i.Z)({},be,!(0,c.Z)(me)&&{as:fe,ownerState:(0,i.Z)({},ue,be.ownerState)},ge,{children:ce})),ce.pop()]}))})):(0,S.jsx)(f.Z.Provider,{value:se,children:(0,S.jsxs)(me,(0,i.Z)({},be,{as:fe,ref:ve},!(0,c.Z)(me)&&{ownerState:(0,i.Z)({},ue,be.ownerState)},ge,{children:[ce,W&&(0,S.jsx)(I.Z,{children:W})]}))})}))},65667:function(e,t,a){a.d(t,{Z:function(){return Z}});var o=a(31461),n=a(7896),i=a(30969),r=a(81856),s=a(26540),d=a(45971),c=a(17363),l=a(22822),u=a(62746),p=a(2975);function v(e){return(0,p.Z)("MuiListItemSecondaryAction",e)}(0,u.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var m=a(37574),b=["className"],g=(0,d.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return(0,n.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),f=i.forwardRef((function(e,t){var a=(0,c.Z)({props:e,name:"MuiListItemSecondaryAction"}),d=a.className,u=(0,o.Z)(a,b),p=i.useContext(l.Z),f=(0,n.Z)({},a,{disableGutters:p.disableGutters}),Z=function(e){var t=e.disableGutters,a=e.classes,o={root:["root",t&&"disableGutters"]};return(0,s.Z)(o,v,a)}(f);return(0,m.jsx)(g,(0,n.Z)({className:(0,r.default)(Z.root,d),ownerState:f,ref:t},u))}));f.muiName="ListItemSecondaryAction";var Z=f}}]);
|
|
2
|
-
//# sourceMappingURL=9996.9a2238b0.chunk.js.map
|