@abtnode/webapp 1.16.17-beta-1cab4b42 → 1.16.17-beta-ce49fe0e

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[4650],{44784:function(e,n,t){var s,a=t(71171),r=t(33028),i=t(59740),o=t(33518),c=t(82790),l=t(96266),p=["labelProps","className","style"];function d(e){var n=e.labelProps,t=e.className,s=e.style,a=(0,i.Z)(e,p),o=(0,r.Z)((0,r.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,l.jsx)(h,{className:t,style:s,children:(0,l.jsx)(c.Z,(0,r.Z)({labelProps:o},a))})}d.propTypes=c.Z.propTypes,d.defaultProps=c.Z.defaultProps;var h=o.Z.div(s||(s=(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},34650:function(e,n,t){t.r(n),t.d(n,{default:function(){return We}});var s=t(5057),a=t(33028),r=t(39948),i=t(11750),o=t(68420),c=t(29054),l=t(32723),p=t(34795),d=t(96234),h=t(33665),u=t(44846),f=t(55372),x=t(47020),m=t(28726),g=t(55152),v=t(6352),A=t.n(v),y=t(86229),j=t(17682),Z=t(13128),k=t(88574),C=t(35432),B=t(60344),b=t(14491),I=t(58238),S=t(38242);var w=function(e){var n,t,s,a=e.blocklet,r=a.appDid,i=(0,S.getAppName)(a),o=(0,S.getAppDescription)(a),c=null===a||void 0===a||null===(n=a.site)||void 0===n||null===(t=n.domainAliases)||void 0===t||null===(s=t.sort((function(e,n){return e.accessibility.accessible&&n.accessibility.accessible?+e.isProtected-+n.isProtected:+n.accessibility.accessible-+e.accessibility.accessible})))||void 0===s?void 0:s.map((function(e){var n,t=null!==e&&void 0!==e&&null!==(n=e.domainStatus)&&void 0!==n&&n.isHttps?"https://":"http://",s=null===e||void 0===e?void 0:e.value;return"".concat(t).concat(s)})).filter(Boolean),l=null===c||void 0===c?void 0:c[0];return{appDid:r,appName:i,appDescription:o,appUrl:l,scopes:"list:object read:object write:object",referrer:window.location.href,isReady:Boolean(l)}},U=t(84584),R=t(43019),E=t(96266);function D(e){var n=Object.assign({},((0,h.Z)(e),e)),t=(0,c.y0)().blocklet,v=(0,I.h6)().info,S=(0,o.PE)(),D=S.t,F=S.locale,O=(0,s.useState)(""),T=(0,d.Z)(O,2),M=T[0],z=T[1],J=(0,s.useState)(!1),L=(0,d.Z)(J,2),Q=L[0],N=L[1],G=(0,s.useState)(!1),P=(0,d.Z)(G,2),V=P[0],H=P[1],X=(0,s.useState)(""),K=(0,d.Z)(X,2),Y=K[0],W=K[1],q=w({blocklet:t}),_=(0,b.yP)(v),$=(0,R.XN)(),ee=$.spaceGateways,ne=$.addSpaceGateway,te=(0,s.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,prefix:A()(C.PROD_DID_SPACES.CORE_URL,"space/api/did"),baseUrl:new URL(C.PROD_DID_SPACES.CORE_URL).origin,checkFn:B.od.create({baseURL:A()(C.PROD_DID_SPACES.CORE_URL,"space")}).get,messages:{title:D("storage.spaces.provideNFT.title",{appName:q.appName},F),scan:D("storage.spaces.provideNFT.scan",{appName:q.appName},F),confirm:"",success:(0,E.jsx)(i.Z,{gutterBottom:!0,children:D("storage.spaces.provideNFT.success")})},onClose:function(){re((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})}))}}),se=(0,d.Z)(te,2),ae=se[0],re=se[1],ie=(0,s.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:D("storage.spaces.authorize.title",{appName:q.appName},F),scan:D("storage.spaces.authorize.scan",{appName:q.appName},F),confirm:"",success:(0,E.jsx)(i.Z,{gutterBottom:!0,children:D("storage.spaces.authorize.success")})},onClose:function(){le((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})}))}}),oe=(0,d.Z)(ie,2),ce=oe[0],le=oe[1],pe=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(n,t){var s,r;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s=t(n.endpoint),r=n.space?t(n.space):{},e.next=5,de((0,a.Z)((0,a.Z)({endpoint:s},{did:(0,U.LQ)(s),name:"DID Space"}),r));case 5:le((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})})),z(null),re((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})})),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(e.t0),y.Z.error((0,b.Z)(e.t0));case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n,t){return e.apply(this,arguments)}}(),de=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(n){var t,s,a,r,i,o,c,p;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.endpoint,i=n.name,o=n.did,(c=null===r||void 0===r||null===(t=r.replace(/\/api\/.+/,""))||void 0===t||null===(s=t.trim())||void 0===s?void 0:s.replace(/\/$/,"")).startsWith("http")||(c="https://".concat(c)),e.next=5,(0,U.w2)(c);case 5:if(e.sent){e.next=8;break}return y.Z.error(D("storage.spaces.gateway.add.invalidUrl")),e.abrupt("return");case 8:if(!ee.some((function(e){return e.endpoint===r}))){e.next=12;break}return y.Z.error(D("storage.spaces.gateway.add.duplicate",{name:i})),e.abrupt("return");case 12:return p={name:i,did:o,url:c,endpoint:r},e.next=15,ne(p,r);case 15:y.Z.success(D("storage.spaces.connectedWithName",{name:null!==(a=null===p||void 0===p?void 0:p.name)&&void 0!==a?a:"DID Spaces"}));case 16:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),he=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(){var n,t,s,r;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,N(!0),n=M.startsWith("http")?M:"https://".concat(M),t=(0,U.ag)(n),s=new URL(n).searchParams.get("spaceDid"),e.next=7,(0,U.w2)(t);case 7:if(e.sent){e.next=9;break}throw new Error(D("storage.spaces.gateway.add.invalidUrl"));case 9:le((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!0,prefix:A()(t,"space/api/did"),baseUrl:new URL(t).origin,checkFn:B.od.create({baseURL:A()(t,"space")}).get,extraParams:{appDid:q.appDid,appName:q.appName,appDescription:q.appDescription,scopes:q.scopes,appUrl:q.appUrl,referrer:q.referrer,nodeDid:v.did,spaceDid:s}})})),H(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),r="".concat(D("storage.spaces.gateway.add.failed",F),": ").concat((0,b.Z)(e.t0)),W(r);case 17:return e.prev=17,N(!1),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[0,13,17,20]])})));return function(){return e.apply(this,arguments)}}();return(0,E.jsxs)(r.Z,{children:[(0,E.jsx)(j.Z,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:function(){re((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!0,extraParams:{appDid:q.appDid,appName:q.appName,appDescription:q.appDescription,scopes:q.scopes,appUrl:q.appUrl,referrer:q.referrer,nodeDid:v.did}})}))},menu:[(0,E.jsx)(j.Z.Item,(0,a.Z)((0,a.Z)({sx:{textTransform:"none"},onClick:function(){return H(!0)},size:"small"},n),{},{children:D("storage.spaces.connect.useSpaceGateway")}),"1")],children:(0,E.jsx)(i.Z,{sx:{fontWeight:"bold",textTransform:"none"},children:D("storage.spaces.connect.useWallet")})}),(0,E.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:ae.prefix,open:ae.open,popup:!0,action:ae.action,webWalletUrl:_,baseUrl:ae.baseUrl,checkFn:ae.checkFn,onSuccess:pe,onClose:ae.onClose,checkTimeout:ae.checkTimeout,extraParams:ae.extraParams,messages:ae.messages,locale:F}),(0,E.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:ce.prefix,open:ce.open,popup:!0,action:ce.action,baseUrl:ce.baseUrl,checkFn:ce.checkFn,onSuccess:pe,onClose:ce.onClose,checkTimeout:ce.checkTimeout,extraParams:ce.extraParams,messages:ce.messages,locale:F}),(0,E.jsxs)(Z.ZP,{title:D("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:V,onClose:function(){return H(!1)},PaperProps:{style:{minHeight:"auto"}},actions:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(m.Z,{onClick:function(e){e.stopPropagation(),H(!1)},color:"inherit",children:D("common.cancel")}),(0,E.jsxs)(m.Z,{onClick:he,color:"primary",disabled:Q||!M,variant:"contained",autoFocus:!0,children:[Q&&(0,E.jsx)(u.Z,{size:16}),D("common.confirm")]})]}),children:[(0,E.jsx)("div",{style:{paddingTop:12,overflowY:"hidden"},children:(0,E.jsx)(f.Z,{component:"div",children:(0,E.jsx)(i.Z,{component:"div",children:(0,E.jsx)(x.Z,{label:D("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:M,onChange:function(e){W(null),z(e.target.value)},disabled:Q,onKeyPress:function(){var e=(0,p.Z)((0,l.Z)().mark((function e(n){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==n.key){e.next=3;break}return e.next=3,he();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),autoFocus:!0})})})}),Boolean(Y)&&(0,E.jsx)(k.Z,{type:"error",style:{width:"100%"},children:Y})]})]})}D.propTypes={},D.defaultProps={};var F,O=D,T=t(71171),M=t(59740),z=t(33518),J=t(55898),L=t.n(J),Q=t(90049),N=t.n(Q),G=t(38898),P=t(64886),V=["blocklet"];function H(e){var n=e.blocklet,t=(0,M.Z)(e,V),r=(0,s.useContext)(o.RD).t;if(!n.diskInfo)return(0,E.jsx)(i.Z,{children:r("blocklet.diskInfo.empty")});var c=function(e,n,t){return(0,E.jsxs)(i.Z,{children:[t?(0,E.jsx)(G.Z,{style:{cursor:"pointer"},onClick:t,underline:"hover",children:e}):e," ",(0,E.jsx)("strong",{children:n?N()(n):"empty"})]})},l=n.environments.reduce((function(e,n){return e[n.key]=n.value,e}),{}),p=[{key:"appDir",name:r("blocklet.diskInfo.appDir"),value:c(l.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:r("blocklet.diskInfo.dataDir"),value:c(l.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:r("blocklet.diskInfo.logDir"),value:c(l.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:r("blocklet.diskInfo.cacheDir"),value:c(l.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return(0,E.jsx)(X,(0,a.Z)((0,a.Z)({component:"div"},t),{},{children:p.map((function(e){return(0,E.jsx)(P.Z,{valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.key)}))}))}H.propTypes={blocklet:L().object.isRequired},H.defaultProps={};var X=(0,z.Z)(i.Z)(F||(F=(0,T.Z)([""]))),K=function(e){return(0,E.jsxs)("svg",(0,a.Z)((0,a.Z)({},e),{},{children:[(0,E.jsxs)("g",{filter:"url(#a)",children:[(0,E.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.222l-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97z",fill:"#000",fillOpacity:".08"}),(0,E.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,E.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#D9D9D9"})}),(0,E.jsxs)("g",{mask:"url(#b)",children:[(0,E.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,E.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,E.jsx)("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm11.546-10.102V169h-1.756v-11.636h1.756zM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29z",fill:"#fff"}),(0,E.jsx)("path",{d:"M117.604 47.263L121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847z",fill:"url(#e)"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"url(#f)"}),(0,E.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,E.jsx)("path",{d:"M50.928 216.089l1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911zm2.439.564h-1.13v1.193h1.13v-1.193zm-1.13 2.983h1.13v1.193h-1.13v-1.193z",fillOpacity:".8"}),(0,E.jsx)("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762zM36.355 214h-1.011v7.783h1.01V214zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75zM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894zm6.946 1.803h1.13v1.193h-1.13v-1.193zm1.13 2.983h-1.13v1.193h1.13v-1.193zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751z"})]}),(0,E.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,E.jsx)("path",{d:"M192.064 213.333l.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46z",fill:"#fff"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26z",fill:"#fff"})]})]}),(0,E.jsxs)("defs",{children:[(0,E.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,E.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,E.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,E.jsx)("feOffset",{dy:"2"}),(0,E.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,E.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,E.jsx)("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),(0,E.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,E.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,E.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,E.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,E.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#101010"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,E.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,E.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#fff"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,E.jsxs)("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[(0,E.jsx)("stop",{stopColor:"#016BED"}),(0,E.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,E.jsx)("clipPath",{id:"g",children:(0,E.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,E.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANj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e=(0,o.PE)().t,n=(0,c.y0)().blocklet;return(0,E.jsxs)(r.Z,{children:[(0,E.jsxs)(r.Z,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[(0,E.jsx)(K,{style:{width:200,height:250}}),(0,E.jsx)(i.Z,{marginTop:"24px",marginBottom:"24px",children:e("storage.spaces.connect.provider")}),(0,E.jsx)(O,{})]}),(0,E.jsx)(i.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:e("common.dataStorage")}),(0,E.jsx)(H,{blocklet:n})]})}K.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"},Y.propTypes={};var W=Y,q=t(72904),_=t(19654),$=t(99154),ee=t(76811),ne=t(79366),te=t(65873),se=t(42876),ae=t(17450),re=t(44784),ie=t(67680),oe=t(61533),ce=t(74490),le=t(46954),pe=t(44067),de=t(83294),he=t(45396),ue=t(14482),fe=t(85733),xe=t(47595),me=t(60939);function ge(e){var n=e.spaceGateway,t=e.onDelete,a=(0,o.PE)().t,r=(0,s.useState)(!1),i=(0,d.Z)(r,2),c=i[0],h=i[1],u=(0,s.useState)(!1),f=(0,d.Z)(u,2),x=f[0],m=f[1],g=function(e,n){null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),h(n)},v=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(s){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,null===s||void 0===s||s.stopPropagation(),m(!0),e.next=5,t(n);case 5:h(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),y.Z.error("".concat(a("storage.space.gateway.delete.failed"),": ").concat((0,b.Z)(e.t0)));case 12:return e.prev=12,m(!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,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(ce.Z,{color:"red",onClick:function(e){return g(e,!0)},children:[(0,E.jsx)(le.Z,{style:{minWidth:24,color:"red"},children:(0,E.jsx)(xe.default,{fontSize:"small"})}),(0,E.jsx)(pe.Z,{style:{color:"red"},children:a("common.delete")})]}),(0,E.jsx)(me.Z,{title:a("common.delConfirmDescription",{data:"".concat(null===n||void 0===n?void 0:n.name)}),open:c,confirmButton:{text:a("common.confirm"),props:{variant:"contained",color:"error",loading:x}},cancelButton:{text:a("common.cancel"),props:{variant:"contained",color:"primary"},loading:x},onConfirm:v,onCancel:function(e){return g(e,!1)}})]})}ge.propTypes={onDelete:L().func,spaceGateway:L().shape({name:L().string.isRequired,url:L().string.isRequired,protected:L().bool}).isRequired},ge.defaultProps={onDelete:function(){}};var ve=ge,Ae=["spaceGateway","connected","onDelete","onConnect","enableSwitchToSpace"];function ye(e){var n=e.spaceGateway,t=e.connected,r=e.onDelete,i=e.onConnect,c=e.enableSwitchToSpace,h=(0,M.Z)(e,Ae),f=(0,s.useState)(null),x=(0,d.Z)(f,2),m=x[0],g=x[1],v=(0,o.PE)().t,A=(0,s.useState)(!1),j=(0,d.Z)(A,2),Z=j[0],k=j[1],C=function(e,n){e.stopPropagation(),e.preventDefault(),g(n&&e.currentTarget)},B=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(t){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,k(!0),C(t,!1),e.next=5,i(n);case 5:e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),y.Z.error(e.t0.message);case 11:return e.prev=11,k(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,7,11,14]])})));return function(n){return e.apply(this,arguments)}}();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ie.Z,(0,a.Z)((0,a.Z)({"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",onClick:function(e){return C(e,!0)},size:"small"},h),{},{children:Z||null!==n&&void 0!==n&&n.loading?(0,E.jsx)(u.Z,{size:"24px"}):(0,E.jsx)(de.Z,{})})),(0,E.jsxs)(oe.Z,{id:"simple-menu",anchorEl:m,keepMounted:!0,open:Boolean(m),onClose:function(e){return C(e,!1)},children:[(0,E.jsxs)(ce.Z,{onClick:function(e){C(e,!1),window.open(n.endpoint?(0,U.nD)(n.endpoint):n.url)},children:[(0,E.jsx)(le.Z,{style:{minWidth:24},children:(0,E.jsx)(he.Z,{fontSize:"small"})}),(0,E.jsx)(pe.Z,{children:v("common.open")})]}),(0,E.jsxs)(ce.Z,{onClick:function(e){C(e,!1),window.open((0,U.Xv)(n.endpoint))},children:[(0,E.jsx)(le.Z,{style:{minWidth:24},children:(0,E.jsx)(fe.Z,{fontSize:"small"})}),(0,E.jsx)(pe.Z,{children:v("storage.spaces.strategy.viewBackupFiles")})]}),!t&&c&&(0,E.jsxs)(ce.Z,{onClick:B,children:[(0,E.jsx)(le.Z,{style:{minWidth:24},children:(0,E.jsx)(ue.Z,{fontSize:"small"})}),(0,E.jsx)(pe.Z,{children:v("storage.spaces.connect.switchToSpace")})]}),!t&&(0,E.jsx)(ve,{spaceGateway:n,onDelete:r})]})]})}ye.propTypes={spaceGateway:L().shape({name:L().string.isRequired,url:L().string.isRequired,protected:L().bool,endpoint:L().string.isRequired,loading:L().bool}).isRequired,connected:L().bool.isRequired,enableSwitchToSpace:L().bool,onDelete:L().func,onConnect:L().func},ye.defaultProps={onDelete:function(){},onConnect:function(){},enableSwitchToSpace:!0};var je=ye,Ze=t(54063),ke=t(22256),Ce=t(37541),Be=t(7278),be=t(29042),Ie=function(e){return(0,E.jsxs)("svg",(0,a.Z)((0,a.Z)({},e),{},{children:[(0,E.jsxs)("g",{filter:"url(#a)",children:[(0,E.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#DDD"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.192 6.222l-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97z",fill:"#000",fillOpacity:".08"}),(0,E.jsx)("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:(0,E.jsx)("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97z",fill:"#D9D9D9"})}),(0,E.jsxs)("g",{mask:"url(#b)",children:[(0,E.jsx)("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),(0,E.jsx)("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),(0,E.jsx)("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm11.546-10.102V169h-1.756v-11.636h1.756zM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29z",fill:"#fff"}),(0,E.jsx)("path",{d:"M117.604 47.263L121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847z",fill:"url(#e)"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z",fill:"url(#f)"}),(0,E.jsxs)("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[(0,E.jsx)("path",{d:"M50.928 216.089l1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911zm2.439.564h-1.13v1.193h1.13v-1.193zm-1.13 2.983h1.13v1.193h-1.13v-1.193z",fillOpacity:".8"}),(0,E.jsx)("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762zM36.355 214h-1.011v7.783h1.01V214zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75zM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894zm6.946 1.803h1.13v1.193h-1.13v-1.193zm1.13 2.983h-1.13v1.193h1.13v-1.193zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751z"})]}),(0,E.jsx)("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),(0,E.jsx)("path",{d:"M192.064 213.333l.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46z",fill:"#fff"}),(0,E.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26z",fill:"#fff"})]})]}),(0,E.jsxs)("defs",{children:[(0,E.jsxs)("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,E.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,E.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,E.jsx)("feOffset",{dy:"2"}),(0,E.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,E.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,E.jsx)("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),(0,E.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),(0,E.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),(0,E.jsx)("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,E.jsx)("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),(0,E.jsxs)("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#101010"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#272727"})]}),(0,E.jsxs)("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#fff",stopOpacity:".4"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#fff"})]}),(0,E.jsxs)("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[(0,E.jsx)("stop",{stopColor:"#fff"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),(0,E.jsxs)("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[(0,E.jsx)("stop",{stopColor:"#016BED"}),(0,E.jsx)("stop",{offset:".699",stopColor:"#4498FB"}),(0,E.jsx)("stop",{offset:"1",stopColor:"#9DFFE8"})]}),(0,E.jsx)("clipPath",{id:"g",children:(0,E.jsx)("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),(0,E.jsx)("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2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7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]}))};function Se(e){var n=e.src,t=e.alt,a=(0,s.useState)(!1),r=(0,d.Z)(a,2),i=r[0],o=r[1],c=(0,s.useState)(!1),l=(0,d.Z)(c,2),p=l[0],h=l[1],u=function(){return h(!0)},f=function(){return h(!1)};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ke.Z,{ready:i,customPlaceholder:(0,E.jsx)("img",{style:{cursor:"pointer"},alt:t,src:n,width:"58px",height:"58px",onError:function(){return o(!0)},onClick:u}),children:(0,E.jsx)(Ie,{style:{cursor:"pointer",width:"58px",height:"58px"},onClick:u})}),(0,E.jsx)(Ce.Z,{open:p,onClose:f,"aria-labelledby":"preview-space-nft-display","aria-describedby":"preview space nft display",fullWidth:!0,maxWidth:"md",children:(0,E.jsxs)(Be.Z,{style:{padding:"8px 8px",backgroundColor:"rgba(0,0,0,0.8)"},children:[(0,E.jsx)(ie.Z,{color:"inherit",onClick:f,"aria-label":"close",style:{position:"absolute",top:8,right:8,color:"white"},children:(0,E.jsx)(be.Z,{})}),i?(0,E.jsx)(Ie,{style:{width:"100%",height:"75vh"}}):(0,E.jsx)("img",{src:n,alt:"",style:{width:"100%",height:"75vh",objectFit:"contain"}})]})})]})}Ie.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"},Se.propTypes={src:J.string.isRequired,alt:J.string.isRequired};var we,Ue=Se,Re=["spaceGateway","connected","onDelete","onBackupNow"],Ee=function(e){return(0,E.jsx)("svg",(0,a.Z)((0,a.Z)({},e),{},{children:(0,E.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#25C99B"})}))};Ee.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};var De=function(e){return(0,E.jsx)("svg",(0,a.Z)((0,a.Z)({},e),{},{children:(0,E.jsx)("circle",{cx:"4",cy:"4",r:"4",fill:"#F16E6E"})}))};function Fe(e){var n=e.spaceGateway,t=e.connected,h=e.onDelete,u=e.onBackupNow,f=(0,M.Z)(e,Re),x=(0,q.Z)((function(e){return e.breakpoints.down("md")})),v=(0,o.PE)(),j=v.t,Z=v.locale,k=(0,c.y0)().blocklet,C=(0,I.h6)(),b=C.api,S=C.info.did,D=w({blocklet:k}),F=D.appDid,O=D.appName,T=D.appDescription,z=D.scopes,J=D.appUrl,L=D.referrer,Q=(0,R.XN)(),N=Q.updateSpaceGateway,G=Q.backupEndpoint,P=Q.backupProgress,V=Q.refreshBackupEndpoint,H=(0,s.useState)(!1),X=(0,d.Z)(H,2),K=X[0],Y=X[1],W=(0,s.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:j("storage.spaces.authorize.title",{appName:O},Z),scan:j("storage.spaces.authorize.scan",{appName:O},Z),confirm:"",success:(0,E.jsx)(i.Z,{gutterBottom:!0,children:j("storage.spaces.authorize.success")})},onClose:function(){ce((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})}))}}),ie=(0,d.Z)(W,2),oe=ie[0],ce=ie[1],le=(0,ne.Z)((0,p.Z)((0,l.Z)().mark((function e(){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",!0);case 2:return e.abrupt("return",(0,U.Nb)(G));case 3:case"end":return e.stop()}}),e)}))),{refreshDeps:[t,G,null===oe||void 0===oe?void 0:oe.open,K]}),pe=le.data,de=le.loading,he=t&&pe,ue=t&&!K&&pe&&!(null!==n&&void 0!==n&&n.loading),fe=t&&K&&pe,xe=t&&!pe&&!de&&!K,me=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.Nb)(null===n||void 0===n?void 0:n.endpoint);case 2:if(!e.sent){e.next=9;break}return e.next=6,b.configBlocklet({input:{did:[k.meta.did],configs:[{key:ee.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 6:return V(),y.Z.success(j("storage.spaces.connect.switchToSpaceSucceeded",{name:n.name?"(".concat(n.name,")"):""})),e.abrupt("return");case 9:ce((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!0,prefix:A()(n.url,"space/api/did"),baseUrl:new URL(n.url).origin,checkFn:B.od.create({baseURL:A()(n.url,"space")}).get,extraParams:{appDid:F,appName:O,appDescription:T,scopes:z,appUrl:J,referrer:L,nodeDid:S,spaceDid:n.did}})}));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(t,s){var r,i,o,c,p,d;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=s(t.endpoint),c=(0,U.LQ)(o),p=t.space?s(t.space):{},!n.did||c===n.did){e.next=7;break}return ce((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})})),y.Z.error(j("storage.spaces.gateway.switch.failedForMismatchSpace",{name:null!==p&&void 0!==p&&p.name?p.name:""})),e.abrupt("return");case 7:return d=(0,a.Z)((0,a.Z)({},n),{},{name:null!==(r=p.name)&&void 0!==r?r:"DID Space",did:null!==(i=p.did)&&void 0!==i?i:(0,U.LQ)(o),endpoint:o}),e.next=10,N(d);case 10:ce((function(e){return(0,a.Z)((0,a.Z)({},e),{},{open:!1})}));case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),ve=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!K){e.next=3;break}return e.abrupt("return");case 3:return Y(!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),y.Z.error(e.t0.message);case 12:return e.prev=12,Y(!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,s.useEffect)((function(){null!==P&&void 0!==P&&P.completed?(100===(null===P||void 0===P?void 0:P.progress)?y.Z.success(j("storage.spaces.backupSuccessfully")):-1===(null===P||void 0===P?void 0:P.progress)&&y.Z.error(null===P||void 0===P?void 0:P.message),Y(!1),P.progress=0,P.message=""):P.progress&&Y(!0)}),[P]),(0,E.jsxs)(Oe,{style:{position:"relative"},children:[(0,E.jsxs)(r.Z,(0,a.Z)((0,a.Z)({sx:{backgroundColor:t?"#F0FDFF":"inherit","&:hover":{backgroundColor:t?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px"},f),{},{children:[(0,E.jsx)(r.Z,{display:"flex",children:(0,E.jsx)(Ue,{alt:n.did,src:(0,U.Jf)(n.endpoint)})}),(0,E.jsxs)(r.Z,{className:"spaces-info",display:"flex",flexGrow:(!x||!fe)&&1,minWidth:"180px",flexDirection:fe?"row":"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[(0,E.jsxs)(r.Z,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[(0,E.jsx)(i.Z,{color:t?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:n.name}),he&&(0,E.jsx)(_.Z,{label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Ee,{style:{marginRight:"4px"}}),j("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}}),xe&&(0,E.jsx)(_.Z,{label:(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(De,{style:{marginRight:"4px"}}),j("storage.spaces.disconnected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:"20px",fontWeight:"bold"}})]}),(0,E.jsx)(r.Z,{className:"spaces-address",display:fe?"none":"flex",color:"#9397A1",marginTop:"8px",children:(0,E.jsx)(i.Z,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:n.did&&(0,E.jsx)(ae.Z,{copyable:!1,size:14,compact:!0,responsive:!1,did:n.did})})})]}),(0,E.jsxs)(r.Z,{className:"spaces-backup",display:"flex",alignItems:"center",flex:x&&fe&&1,children:[ue&&(0,E.jsxs)(r.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:[(0,E.jsx)(m.Z,{variant:"contained",size:"small",onClick:ve,children:j("storage.spaces.strategy.backupNow")}),Ze.C&&(0,E.jsx)(re.Z,{name:"enable-auto-backup",title:"coming soon",disabled:!0,labelProps:{label:(0,E.jsx)(i.Z,{sx:{marginRight:"8px",fontSize:"16px"},children:(0,E.jsx)("span",{children:j("storage.spaces.strategy.autoBackup")})})},style:{marginLeft:"64px"}})]}),fe&&(0,E.jsxs)(r.Z,{className:"backup-progress",display:"flex",flexDirection:"column",alignItems:"center",minWidth:!x&&"640px",marginLeft:x&&"16px",width:x&&"360px",marginRight:"auto",alignSelf:"flex-end",children:[(0,E.jsx)(i.Z,{color:"primary",children:null===P||void 0===P?void 0:P.message}),(0,E.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center"},width:"100%",children:[(0,E.jsx)(r.Z,{sx:{width:"100%",mr:1},children:(0,E.jsx)($.Z,{color:"primary",variant:"determinate",value:null===P||void 0===P?void 0:P.progress})}),(0,E.jsx)(r.Z,{sx:{maxWidth:"100%"},children:(0,E.jsxs)(i.Z,{variant:"body2",color:"text.secondary",children:[null===P||void 0===P?void 0:P.progress,"%"]})})]})]}),xe&&(0,E.jsx)(r.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:(0,E.jsx)(m.Z,{color:"error",variant:"contained",size:"small",onClick:me,children:j("storage.spaces.disconnected.reconnectNow")})}),(0,E.jsx)(je,{sx:{marginLeft:"16px",marginRight:"16px",alignItems:"flex-end",justifyItems:"flex-end"},spaceGateway:n,connected:t,onDelete:h,onConnect:me,enableSwitchToSpace:(null===P||void 0===P?void 0:P.completed)||(0,te.isEmpty)(null===P||void 0===P?void 0:P.message)})]})]})),(0,E.jsx)(g.default,{forceConnected:!1,saveConnect:!1,prefix:oe.prefix,open:oe.open,popup:!0,action:oe.action,baseUrl:oe.baseUrl,checkFn:oe.checkFn,onSuccess:ge,onClose:oe.onClose,checkTimeout:oe.checkTimeout,extraParams:oe.extraParams,messages:oe.messages,locale:Z},"get-endpoint"),(0,E.jsx)(r.Z,{className:"selected-container ".concat(t?"selected":""),children:(0,E.jsx)(se.default,{className:"selected-icon"})})]})}De.defaultProps={width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fe.propTypes={spaceGateway:L().shape({did:L().string.isRequired,name:L().string.isRequired,url:L().string.isRequired,endpoint:L().string.isRequired,protected:L().bool,loading:L().bool}).isRequired,connected:L().bool.isRequired,progress:L().any.isRequired,onDelete:L().func,onBackupNow:L().func},Fe.defaultProps={onDelete:function(){},onBackupNow:function(){}};var Oe=(0,z.Z)(r.Z)(we||(we=(0,T.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"]))),Te=Fe,Me=t(19778),ze=t(75760),Je=t(75239),Le=t(21722),Qe=t(1577),Ne=t.n(Qe),Ge=t(73119);function Pe(e){var n=Object.assign({},((0,h.Z)(e),e)),t=(0,o.PE)(),s=t.t,c=t.locale,l=(0,R.XN)(),p=l.spaceGateways,d=l.backups,f=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:function(e){var n,t=d[e],s=t.targetUrl,a=t.targetName,r=t.status,o=t.createdAt,c=r===C.BACKUPS.STATUS.PROGRESS&&Ne()().diff(o,"hours")>=C.BACKUPS.TIMEOUT_HOURS,l=r===C.BACKUPS.STATUS.SUCCEEDED&&!c,h=a||(null===(n=p.find((function(e){return null===s||void 0===s?void 0:s.includes((0,U.LQ)(null===e||void 0===e?void 0:e.endpoint))})))||void 0===n?void 0:n.name)||"Unknown DID Space";return l?(0,E.jsx)(G.Z,{fontSize:"16px",href:s,target:"_blank",children:h}):(0,E.jsx)(i.Z,{variant:"body1",fontSize:"16px",children:h})}}},{label:s("common.strategy"),name:"strategy",options:{customBodyRender:function(e){var n=s(0===e?"common.auto":"common.manual");return(0,E.jsx)(Me.Z,{children:n})}}},{label:s("common.startTime"),name:"createdAt",options:{customBodyRender:function(e){return Ne()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:s("common.endTime"),name:"updatedAt",options:{customBodyRender:function(e){return(0,te.isEmpty)(e)?"":Ne()(e).format("YYYY-MM-DD HH:mm:ss")}}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n,t=null!==(n=null===d||void 0===d?void 0:d[e])&&void 0!==n?n:{},a=t.status,o=t.message,c=t.createdAt,l=a===C.BACKUPS.STATUS.PROGRESS&&Ne()().diff(c,"hours")>=C.BACKUPS.TIMEOUT_HOURS,p=l&&s("common.timeoutError"),h=a===C.BACKUPS.STATUS.PROGRESS&&!l,f=a===C.BACKUPS.STATUS.SUCCEEDED&&!l;return h?(0,E.jsxs)(i.Z,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[(0,E.jsx)(u.Z,{sx:{marginRight:"4px"},size:"12px"}),s("common.progress")]}):f?(0,E.jsx)(Me.Z,{type:"success",children:s("common.succeeded")}):(0,E.jsxs)(r.Z,{display:"inline-flex",alignItems:"center",children:[(0,E.jsx)(Me.Z,{type:"error",children:s("common.failed")})," \xa0",(0,E.jsx)(Je.Z,{style:{display:"flex",alignItems:"center",flexShrink:0},title:o||p,children:(0,E.jsx)(Le.Z,{children:(0,E.jsx)(Ge.Z,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return(0,E.jsx)(r.Z,(0,a.Z)((0,a.Z)({},n),{},{children:null!==d&&void 0!==d&&d.length?(0,E.jsx)(ze.Z,{title:(0,E.jsx)(i.Z,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")}),data:d,columns:f,emptyNode:s("storage.spaces.record.emptyData",c),options:{download:!1,filter:!1,print:!1}}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(r.Z,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:(0,E.jsx)(i.Z,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")})}),(0,E.jsx)(r.Z,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:s("storage.spaces.record.emptyData")})]})}))}Pe.propTypes={};var Ve=Pe;function He(e){var n=Object.assign({},((0,h.Z)(e),e)),t=(0,o.PE)().t,s=(0,R.XN)(),r=s.autoBackup,c=s.updateAutoBackup,d=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(){var n;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=!r.enabled,e.next=4,c({enabled:n});case 4:y.Z.success(t(n?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),y.Z.error(e.t0.message);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return(0,E.jsx)(re.Z,{checked:Boolean(null===r||void 0===r?void 0:r.enabled),onChange:d,name:"enableWelcomePage",labelProps:{label:(0,E.jsx)(i.Z,{marginRight:"8px",children:(0,E.jsx)("span",{children:t("storage.spaces.autoBackup.title")})})},style:(0,a.Z)({},n.style)})}He.propTypes={};var Xe=He;var Ke=function(){var e=(0,o.PE)().t,n=(0,c.y0)().blocklet,t=(0,I.h6)().api,s=(0,R.XN)(),a=s.spaceGateways,d=s.spaceGatewaysLoading,h=s.deleteSpaceGateway,f=s.spaceGatewayIsSelected,x=d&&!(null!==a&&void 0!==a&&a.length),m=function(){var n=(0,p.Z)((0,l.Z)().mark((function n(t){return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,h(t);case 2:y.Z.success(e("storage.spaces.gateway.delete.succeeded",{name:"(".concat(t.name,")")}));case 3:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),g=function(){var e=(0,p.Z)((0,l.Z)().mark((function e(){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.backupBlocklet({input:{appDid:n.appDid,to:"spaces"}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,E.jsxs)(r.Z,{display:"flex",flexDirection:"column",children:[(0,E.jsxs)(r.Z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:[(0,E.jsx)(i.Z,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:e("storage.spaces.connected.title")}),(0,E.jsx)(Xe,{style:{marginRight:"32px"}}),(0,E.jsx)(O,{})]}),(0,E.jsx)(r.Z,{children:x?(0,E.jsx)(r.Z,{display:"flex",justifyContent:"center",children:(0,E.jsx)(u.Z,{})}):a.map((function(e){return(0,E.jsx)(Te,{style:{marginTop:"12px"},spaceGateway:e,connected:f(e),onDelete:m,onBackupNow:g},e.endpoint)}))}),(0,E.jsx)(Ve,{sx:{marginTop:"24px"}}),(0,E.jsx)(i.Z,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:e("common.dataStorage")}),(0,E.jsx)(H,{blocklet:n})]})};function Ye(){return(0,R.XN)().backupEndpoint?(0,E.jsx)(Ke,{}):(0,E.jsx)(W,{})}Ye.propTypes={};var We=Ye},54063:function(e,n,t){t.d(n,{C:function(){return s}});var s="true"===localStorage.getItem("enableDebug")}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5953],{75953:function(e,t,n){n.d(t,{Z:function(){return Q}});var o=n(56666),r=n(31461),a=n(7896),i=n(5057),l=n(9978),c=n(91213),u=n(3182),s=n(66685),p=n(24202),d=n(62773),f=n(42908),v=n(6285),g=n(31821),h=n(18561);function m(e){return(0,h.Z)("MuiListSubheader",e)}(0,g.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var b=n(96266),Z=["className","color","component","disableGutters","disableSticky","inset"],x=(0,d.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,v.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),y=i.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiListSubheader"}),o=n.className,i=n.color,u=void 0===i?"default":i,s=n.component,p=void 0===s?"li":s,d=n.disableGutters,g=void 0!==d&&d,h=n.disableSticky,y=void 0!==h&&h,O=n.inset,I=void 0!==O&&O,S=(0,r.Z)(n,Z),P=(0,a.Z)({},n,{color:u,component:p,disableGutters:g,disableSticky:y,inset:I}),C=function(e){var t=e.classes,n=e.color,o=e.disableGutters,r=e.inset,a=e.disableSticky,i={root:["root","default"!==n&&"color".concat((0,v.Z)(n)),!o&&"gutters",r&&"inset",!a&&"sticky"]};return(0,c.Z)(i,m,t)}(P);return(0,b.jsx)(x,(0,a.Z)({as:p,className:(0,l.Z)(C.root,o),ref:t,ownerState:P},S))}));y.muiSkipListHighlight=!0;var O=y,I=n(25228),S=n(67680),P=n(19654),C=n(46234),k=n(9243),w=n(82226),L=n(75623),A=n(74235),T=n(60473);function R(e){return(0,h.Z)("MuiAutocomplete",e)}var N,M,D=(0,g.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),z=n(2286),E=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],F=["ref"],H=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,a=n.hasClearIcon,i=n.hasPopupIcon,l=n.inputFocused,c=n.size;return[(0,o.Z)({},"& .".concat(D.tag),t.tag),(0,o.Z)({},"& .".concat(D.tag),t["tagSize".concat((0,v.Z)(c))]),(0,o.Z)({},"& .".concat(D.inputRoot),t.inputRoot),(0,o.Z)({},"& .".concat(D.input),t.input),(0,o.Z)({},"& .".concat(D.input),l&&t.inputFocused),t.root,r&&t.fullWidth,i&&t.hasPopupIcon,a&&t.hasClearIcon]}})((function(e){var t,n,r,i,l,c=e.ownerState;return(0,a.Z)((t={},(0,o.Z)(t,"&.".concat(D.focused," .").concat(D.clearIndicator),{visibility:"visible"}),(0,o.Z)(t,"@media (pointer: fine)",(0,o.Z)({},"&:hover .".concat(D.clearIndicator),{visibility:"visible"})),t),c.fullWidth&&{width:"100%"},(l={},(0,o.Z)(l,"& .".concat(D.tag),(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===c.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,o.Z)(l,"& .".concat(D.inputRoot),(n={flexWrap:"wrap"},(0,o.Z)(n,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:30}),(0,o.Z)(n,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:56}),(0,o.Z)(n,"& .".concat(D.input),{width:0,minWidth:30}),n)),(0,o.Z)(l,"& .".concat(C.Z.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,o.Z)(l,"& .".concat(C.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({},"& .".concat(C.Z.input),{padding:"2px 4px 3px 0"})),(0,o.Z)(l,"& .".concat(w.Z.root),(r={padding:9},(0,o.Z)(r,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(r,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(r,"& .".concat(D.input),{padding:"7.5px 4px 7.5px 5px"}),(0,o.Z)(r,"& .".concat(D.endAdornment),{right:9}),r)),(0,o.Z)(l,"& .".concat(w.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(D.input),{padding:"2.5px 4px 2.5px 8px"})),(0,o.Z)(l,"& .".concat(L.Z.root),(i={paddingTop:19,paddingLeft:8},(0,o.Z)(i,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(i,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(i,"& .".concat(L.Z.input),{padding:"7px 4px"}),(0,o.Z)(i,"& .".concat(D.endAdornment),{right:9}),i)),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({paddingBottom:1},"& .".concat(L.Z.input),{padding:"2.5px 4px"})),(0,o.Z)(l,"& .".concat(k.Z.hiddenLabel),{paddingTop:8}),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.hiddenLabel),(0,o.Z)({paddingTop:0,paddingBottom:0},"& .".concat(D.input),{paddingTop:16,paddingBottom:17})),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.hiddenLabel,".").concat(k.Z.sizeSmall),(0,o.Z)({},"& .".concat(D.input),{paddingTop:8,paddingBottom:9})),(0,o.Z)(l,"& .".concat(D.input),(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},c.inputFocused&&{opacity:1})),l))})),W=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),j=(0,d.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),V=(0,d.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,a.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),B=(0,d.ZP)(p.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(D.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),q=(0,d.ZP)(I.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),G=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),K=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),U=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,o.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(D.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,o.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,o.Z)(n,"&.".concat(D.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,o.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,o.Z)(n,"&.".concat(D.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,o.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,o.Z)(t,"&.".concat(D.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,o.Z)(t,"&.".concat(D.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),_=(0,d.ZP)(O,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),J=(0,d.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,o.Z)({padding:0},"& .".concat(D.option),{paddingLeft:24})),Q=i.forwardRef((function(e,t){var n,o,s,d,g,h=(0,f.Z)({props:e,name:"MuiAutocomplete"}),m=(h.autoComplete,h.autoHighlight,h.autoSelect,h.blurOnSelect,h.ChipProps),Z=h.className,x=h.clearIcon,y=void 0===x?N||(N=(0,b.jsx)(A.Z,{fontSize:"small"})):x,O=h.clearOnBlur,S=(void 0===O&&h.freeSolo,h.clearOnEscape,h.clearText),C=void 0===S?"Clear":S,k=h.closeText,w=void 0===k?"Close":k,L=h.componentsProps,D=void 0===L?{}:L,Q=h.defaultValue,X=(void 0===Q&&h.multiple,h.disableClearable),Y=void 0!==X&&X,$=(h.disableCloseOnSelect,h.disabled),ee=void 0!==$&&$,te=(h.disabledItemsFocusable,h.disableListWrap,h.disablePortal),ne=void 0!==te&&te,oe=(h.filterSelectedOptions,h.forcePopupIcon),re=void 0===oe?"auto":oe,ae=h.freeSolo,ie=void 0!==ae&&ae,le=h.fullWidth,ce=void 0!==le&&le,ue=h.getLimitTagsText,se=void 0===ue?function(e){return"+".concat(e)}:ue,pe=h.getOptionLabel,de=h.groupBy,fe=h.handleHomeEndKeys,ve=(void 0===fe&&h.freeSolo,h.includeInputInList,h.limitTags),ge=void 0===ve?-1:ve,he=h.ListboxComponent,me=void 0===he?"ul":he,be=h.ListboxProps,Ze=h.loading,xe=void 0!==Ze&&Ze,ye=h.loadingText,Oe=void 0===ye?"Loading\u2026":ye,Ie=h.multiple,Se=void 0!==Ie&&Ie,Pe=h.noOptionsText,Ce=void 0===Pe?"No options":Pe,ke=(h.openOnFocus,h.openText),we=void 0===ke?"Open":ke,Le=h.PaperComponent,Ae=void 0===Le?I.Z:Le,Te=h.PopperComponent,Re=void 0===Te?p.Z:Te,Ne=h.popupIcon,Me=void 0===Ne?M||(M=(0,b.jsx)(T.Z,{})):Ne,De=h.readOnly,ze=void 0!==De&&De,Ee=h.renderGroup,Fe=h.renderInput,He=h.renderOption,We=h.renderTags,je=h.selectOnFocus,Ve=(void 0===je&&h.freeSolo,h.size),Be=void 0===Ve?"medium":Ve,qe=h.slotProps,Ge=void 0===qe?{}:qe,Ke=(0,r.Z)(h,E),Ue=(0,u.o)((0,a.Z)({},h,{componentName:"Autocomplete"})),_e=Ue.getRootProps,Je=Ue.getInputProps,Qe=Ue.getInputLabelProps,Xe=Ue.getPopupIndicatorProps,Ye=Ue.getClearProps,$e=Ue.getTagProps,et=Ue.getListboxProps,tt=Ue.getOptionProps,nt=Ue.value,ot=Ue.dirty,rt=Ue.expanded,at=Ue.id,it=Ue.popupOpen,lt=Ue.focused,ct=Ue.focusedTag,ut=Ue.anchorEl,st=Ue.setAnchorEl,pt=Ue.inputValue,dt=Ue.groupedOptions,ft=!Y&&!ee&&ot&&!ze,vt=(!ie||!0===re)&&!1!==re,gt=Je().onMouseDown,ht=(null!=be?be:{}).ref,mt=et(),bt=mt.ref,Zt=(0,r.Z)(mt,F),xt=(0,z.Z)(bt,ht),yt=pe||function(e){var t;return null!=(t=e.label)?t:e},Ot=(0,a.Z)({},h,{disablePortal:ne,expanded:rt,focused:lt,fullWidth:ce,getOptionLabel:yt,hasClearIcon:ft,hasPopupIcon:vt,inputFocused:-1===ct,popupOpen:it,size:Be}),It=function(e){var t=e.classes,n=e.disablePortal,o=e.expanded,r=e.focused,a=e.fullWidth,i=e.hasClearIcon,l=e.hasPopupIcon,u=e.inputFocused,s=e.popupOpen,p=e.size,d={root:["root",o&&"expanded",r&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag","tagSize".concat((0,v.Z)(p))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,c.Z)(d,R,t)}(Ot);if(Se&&nt.length>0){var St=function(e){return(0,a.Z)({className:It.tag,disabled:ee},$e(e))};g=We?We(nt,St,Ot):nt.map((function(e,t){return(0,b.jsx)(P.Z,(0,a.Z)({label:yt(e),size:Be},St({index:t}),m))}))}if(ge>-1&&Array.isArray(g)){var Pt=g.length-ge;!lt&&Pt>0&&(g=g.splice(0,ge)).push((0,b.jsx)("span",{className:It.tag,children:se(Pt)},g.length))}var Ct=Ee||function(e){return(0,b.jsxs)("li",{children:[(0,b.jsx)(_,{className:It.groupLabel,ownerState:Ot,component:"div",children:e.group}),(0,b.jsx)(J,{className:It.groupUl,ownerState:Ot,children:e.children})]},e.key)},kt=He||function(e,t){return(0,b.jsx)("li",(0,a.Z)({},e,{children:yt(t)}))},wt=function(e,t){var n=tt({option:e,index:t});return kt((0,a.Z)({},n,{className:It.option}),e,{selected:n["aria-selected"],index:t,inputValue:pt},Ot)},Lt=null!=(n=Ge.clearIndicator)?n:D.clearIndicator,At=null!=(o=Ge.paper)?o:D.paper,Tt=null!=(s=Ge.popper)?s:D.popper,Rt=null!=(d=Ge.popupIndicator)?d:D.popupIndicator;return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(H,(0,a.Z)({ref:t,className:(0,l.Z)(It.root,Z),ownerState:Ot},_e(Ke),{children:Fe({id:at,disabled:ee,fullWidth:!0,size:"small"===Be?"small":void 0,InputLabelProps:Qe(),InputProps:(0,a.Z)({ref:st,className:It.inputRoot,startAdornment:g,onClick:function(e){e.target===e.currentTarget&&gt(e)}},(ft||vt)&&{endAdornment:(0,b.jsxs)(W,{className:It.endAdornment,ownerState:Ot,children:[ft?(0,b.jsx)(j,(0,a.Z)({},Ye(),{"aria-label":C,title:C,ownerState:Ot},Lt,{className:(0,l.Z)(It.clearIndicator,null==Lt?void 0:Lt.className),children:y})):null,vt?(0,b.jsx)(V,(0,a.Z)({},Xe(),{disabled:ee,"aria-label":it?w:we,title:it?w:we,ownerState:Ot},Rt,{className:(0,l.Z)(It.popupIndicator,null==Rt?void 0:Rt.className),children:Me})):null]})}),inputProps:(0,a.Z)({className:It.input,disabled:ee,readOnly:ze},Je())})})),ut?(0,b.jsx)(B,(0,a.Z)({as:Re,disablePortal:ne,style:{width:ut?ut.clientWidth:null},ownerState:Ot,role:"presentation",anchorEl:ut,open:it},Tt,{className:(0,l.Z)(It.popper,null==Tt?void 0:Tt.className),children:(0,b.jsxs)(q,(0,a.Z)({ownerState:Ot,as:Ae},At,{className:(0,l.Z)(It.paper,null==At?void 0:At.className),children:[xe&&0===dt.length?(0,b.jsx)(G,{className:It.loading,ownerState:Ot,children:Oe}):null,0!==dt.length||ie||xe?null:(0,b.jsx)(K,{className:It.noOptions,ownerState:Ot,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Ce}),dt.length>0?(0,b.jsx)(U,(0,a.Z)({as:me,className:It.listbox,ownerState:Ot},Zt,be,{ref:xt,children:dt.map((function(e,t){return de?Ct({key:e.key,group:e.group,children:e.options.map((function(t,n){return wt(t,e.index+n)}))}):wt(e,t)}))})):null]}))})):null]})}))},3182:function(e,t,n){n.d(t,{D:function(){return d},o:function(){return m}});var o=n(96234),r=n(7896),a=n(5057),i=n(32852),l=n(62663),c=n(77590),u=n(2534),s=n(98038);function p(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,o=e.ignoreCase,r=void 0===o||o,a=e.limit,i=e.matchFrom,l=void 0===i?"any":i,c=e.stringify,u=e.trim,s=void 0!==u&&u;return function(e,t){var o=t.inputValue,i=t.getOptionLabel,u=s?o.trim():o;r&&(u=u.toLowerCase()),n&&(u=p(u));var d=u?e.filter((function(e){var t=(c||i)(e);return r&&(t=t.toLowerCase()),n&&(t=p(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1})):e;return"number"===typeof a?d.slice(0,a):d}}function f(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var v=d(),g=5,h=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function m(e){var t,n=e.unstable_isActiveElementInListbox,p=void 0===n?h:n,d=e.unstable_classNamePrefix,m=void 0===d?"Mui":d,b=e.autoComplete,Z=void 0!==b&&b,x=e.autoHighlight,y=void 0!==x&&x,O=e.autoSelect,I=void 0!==O&&O,S=e.blurOnSelect,P=void 0!==S&&S,C=e.clearOnBlur,k=void 0===C?!e.freeSolo:C,w=e.clearOnEscape,L=void 0!==w&&w,A=e.componentName,T=void 0===A?"useAutocomplete":A,R=e.defaultValue,N=void 0===R?e.multiple?[]:null:R,M=e.disableClearable,D=void 0!==M&&M,z=e.disableCloseOnSelect,E=void 0!==z&&z,F=e.disabled,H=e.disabledItemsFocusable,W=void 0!==H&&H,j=e.disableListWrap,V=void 0!==j&&j,B=e.filterOptions,q=void 0===B?v:B,G=e.filterSelectedOptions,K=void 0!==G&&G,U=e.freeSolo,_=void 0!==U&&U,J=e.getOptionDisabled,Q=e.getOptionLabel,X=void 0===Q?function(e){var t;return null!=(t=e.label)?t:e}:Q,Y=e.groupBy,$=e.handleHomeEndKeys,ee=void 0===$?!e.freeSolo:$,te=e.id,ne=e.includeInputInList,oe=void 0!==ne&&ne,re=e.inputValue,ae=e.isOptionEqualToValue,ie=void 0===ae?function(e,t){return e===t}:ae,le=e.multiple,ce=void 0!==le&&le,ue=e.onChange,se=e.onClose,pe=e.onHighlightChange,de=e.onInputChange,fe=e.onOpen,ve=e.open,ge=e.openOnFocus,he=void 0!==ge&&ge,me=e.options,be=e.readOnly,Ze=void 0!==be&&be,xe=e.selectOnFocus,ye=void 0===xe?!e.freeSolo:xe,Oe=e.value,Ie=(0,i.Z)(te);t=function(e){var t=X(e);return"string"!==typeof t?String(t):t};var Se=a.useRef(!1),Pe=a.useRef(!0),Ce=a.useRef(null),ke=a.useRef(null),we=a.useState(null),Le=(0,o.Z)(we,2),Ae=Le[0],Te=Le[1],Re=a.useState(-1),Ne=(0,o.Z)(Re,2),Me=Ne[0],De=Ne[1],ze=y?0:-1,Ee=a.useRef(ze),Fe=(0,l.Z)({controlled:Oe,default:N,name:T}),He=(0,o.Z)(Fe,2),We=He[0],je=He[1],Ve=(0,l.Z)({controlled:re,default:"",name:T,state:"inputValue"}),Be=(0,o.Z)(Ve,2),qe=Be[0],Ge=Be[1],Ke=a.useState(!1),Ue=(0,o.Z)(Ke,2),_e=Ue[0],Je=Ue[1],Qe=a.useCallback((function(e,n){if((ce?We.length<n.length:null!==n)||k){var o;if(ce)o="";else if(null==n)o="";else{var r=t(n);o="string"===typeof r?r:""}qe!==o&&(Ge(o),de&&de(e,o,"reset"))}}),[t,qe,ce,de,Ge,k,We]),Xe=(0,l.Z)({controlled:ve,default:!1,name:T,state:"open"}),Ye=(0,o.Z)(Xe,2),$e=Ye[0],et=Ye[1],tt=a.useState(!0),nt=(0,o.Z)(tt,2),ot=nt[0],rt=nt[1],at=!ce&&null!=We&&qe===t(We),it=$e&&!Ze,lt=it?q(me.filter((function(e){return!K||!(ce?We:[We]).some((function(t){return null!==t&&ie(e,t)}))})),{inputValue:at&&ot?"":qe,getOptionLabel:t}):[],ct=(0,c.Z)({filteredOptions:lt,value:We,inputValue:qe});a.useEffect((function(){var e=We!==ct.value;_e&&!e||_&&!e||Qe(null,We)}),[We,Qe,_e,ct.value,_]);var ut=$e&&lt.length>0&&!Ze,st=(0,u.Z)((function(e){-1===e?Ce.current.focus():Ae.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));a.useEffect((function(){ce&&Me>We.length-1&&(De(-1),st(-1))}),[We,ce,Me,st]);var pt=(0,u.Z)((function(e){var t=e.event,n=e.index,o=e.reason,r=void 0===o?"auto":o;if(Ee.current=n,-1===n?Ce.current.removeAttribute("aria-activedescendant"):Ce.current.setAttribute("aria-activedescendant","".concat(Ie,"-option-").concat(n)),pe&&pe(t,-1===n?null:lt[n],r),ke.current){var a=ke.current.querySelector('[role="option"].'.concat(m,"-focused"));a&&(a.classList.remove("".concat(m,"-focused")),a.classList.remove("".concat(m,"-focusVisible")));var i=ke.current;if("listbox"!==ke.current.getAttribute("role")&&(i=ke.current.parentElement.querySelector('[role="listbox"]')),i)if(-1!==n){var l=ke.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(m,"-focused")),"keyboard"===r&&l.classList.add("".concat(m,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){var c=l,u=i.clientHeight+i.scrollTop,s=c.offsetTop+c.offsetHeight;s>u?i.scrollTop=s-i.clientHeight:c.offsetTop-c.offsetHeight*(Y?1.3:0)<i.scrollTop&&(i.scrollTop=c.offsetTop-c.offsetHeight*(Y?1.3:0))}}else i.scrollTop=0}})),dt=(0,u.Z)((function(e){var n=e.event,o=e.diff,r=e.direction,a=void 0===r?"next":r,i=e.reason,l=void 0===i?"auto":i;if(it){var c=function(e,t){if(!ke.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===lt.length||"previous"===t&&-1===n)return-1;var o=ke.current.querySelector('[data-option-index="'.concat(n,'"]')),r=!W&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(!(o&&!o.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}(function(){var e=lt.length-1;if("reset"===o)return ze;if("start"===o)return 0;if("end"===o)return e;var t=Ee.current+o;return t<0?-1===t&&oe?-1:V&&-1!==Ee.current||Math.abs(o)>1?0:e:t>e?t===e+1&&oe?-1:V||Math.abs(o)>1?e:0:t}(),a);if(pt({index:c,reason:l,event:n}),Z&&"reset"!==o)if(-1===c)Ce.current.value=qe;else{var u=t(lt[c]);Ce.current.value=u,0===u.toLowerCase().indexOf(qe.toLowerCase())&&qe.length>0&&Ce.current.setSelectionRange(qe.length,u.length)}}})),ft=a.useCallback((function(){if(it&&!function(){var e,n;if(-1!==Ee.current&&ct.filteredOptions&&ct.filteredOptions.length!==lt.length&&ct.inputValue===qe&&(ce?We.length===ct.value.length&&ct.value.every((function(e,n){return t(We[n])===t(e)})):(e=ct.value,n=We,(e?t(e):"")===(n?t(n):"")))){var o=ct.filteredOptions[Ee.current];if(o&&lt.some((function(e){return t(e)===t(o)})))return!0}return!1}()){var e=ce?We[0]:We;if(0!==lt.length&&null!=e){if(ke.current)if(null==e)Ee.current>=lt.length-1?pt({index:lt.length-1}):pt({index:Ee.current});else{var n=lt[Ee.current];if(ce&&n&&-1!==f(We,(function(e){return ie(n,e)})))return;var o=f(lt,(function(t){return ie(t,e)}));-1===o?dt({diff:"reset"}):pt({index:o})}}else dt({diff:"reset"})}}),[lt.length,!ce&&We,K,dt,pt,it,qe,ce]),vt=(0,u.Z)((function(e){(0,s.Z)(ke,e),e&&ft()}));a.useEffect((function(){ft()}),[ft]);var gt=function(e){$e||(et(!0),rt(!0),fe&&fe(e))},ht=function(e,t){$e&&(et(!1),se&&se(e,t))},mt=function(e,t,n,o){if(ce){if(We.length===t.length&&We.every((function(e,n){return e===t[n]})))return}else if(We===t)return;ue&&ue(e,t,n,o),je(t)},bt=a.useRef(!1),Zt=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=t;if(ce){var a=f(r=Array.isArray(We)?We.slice():[],(function(e){return ie(t,e)}));-1===a?r.push(t):"freeSolo"!==n&&(r.splice(a,1),o="removeOption")}Qe(e,r),mt(e,r,o,{option:t}),E||e&&(e.ctrlKey||e.metaKey)||ht(e,o),(!0===P||"touch"===P&&bt.current||"mouse"===P&&!bt.current)&&Ce.current.blur()};var xt=function(e,t){if(ce){""===qe&&ht(e,"toggleInput");var n=Me;-1===Me?""===qe&&"previous"===t&&(n=We.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===We.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===We.length||"previous"===t&&-1===n)return-1;var o=Ae.querySelector('[data-tag-index="'.concat(n,'"]'));if(o&&o.hasAttribute("tabindex")&&!o.disabled&&"true"!==o.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),De(n),st(n)}},yt=function(e){Se.current=!0,Ge(""),de&&de(e,"","clear"),mt(e,ce?[]:null,"clear")},Ot=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Me&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(De(-1),st(-1)),229!==t.which))switch(t.key){case"Home":it&&ee&&(t.preventDefault(),dt({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":it&&ee&&(t.preventDefault(),dt({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),dt({diff:-g,direction:"previous",reason:"keyboard",event:t}),gt(t);break;case"PageDown":t.preventDefault(),dt({diff:g,direction:"next",reason:"keyboard",event:t}),gt(t);break;case"ArrowDown":t.preventDefault(),dt({diff:1,direction:"next",reason:"keyboard",event:t}),gt(t);break;case"ArrowUp":t.preventDefault(),dt({diff:-1,direction:"previous",reason:"keyboard",event:t}),gt(t);break;case"ArrowLeft":xt(t,"previous");break;case"ArrowRight":xt(t,"next");break;case"Enter":if(-1!==Ee.current&&it){var n=lt[Ee.current],o=!!J&&J(n);if(t.preventDefault(),o)return;Zt(t,n,"selectOption"),Z&&Ce.current.setSelectionRange(Ce.current.value.length,Ce.current.value.length)}else _&&""!==qe&&!1===at&&(ce&&t.preventDefault(),Zt(t,qe,"createOption","freeSolo"));break;case"Escape":it?(t.preventDefault(),t.stopPropagation(),ht(t,"escape")):L&&(""!==qe||ce&&We.length>0)&&(t.preventDefault(),t.stopPropagation(),yt(t));break;case"Backspace":if(ce&&!Ze&&""===qe&&We.length>0){var r=-1===Me?We.length-1:Me,a=We.slice();a.splice(r,1),mt(t,a,"removeOption",{option:We[r]})}break;case"Delete":if(ce&&!Ze&&""===qe&&We.length>0&&-1!==Me){var i=Me,l=We.slice();l.splice(i,1),mt(t,l,"removeOption",{option:We[i]})}}}},It=function(e){Je(!0),he&&!Se.current&&gt(e)},St=function(e){p(ke)?Ce.current.focus():(Je(!1),Pe.current=!0,Se.current=!1,I&&-1!==Ee.current&&it?Zt(e,lt[Ee.current],"blur"):I&&_&&""!==qe?Zt(e,qe,"blur","freeSolo"):k&&Qe(e,We),ht(e,"blur"))},Pt=function(e){var t=e.target.value;qe!==t&&(Ge(t),rt(!1),de&&de(e,t,"input")),""===t?D||ce||mt(e,null,"clear"):gt(e)},Ct=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ee.current!==t&&pt({event:e,index:t,reason:"mouse"})},kt=function(e){pt({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),bt.current=!0},wt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Zt(e,lt[t],"selectOption"),bt.current=!1},Lt=function(e){return function(t){var n=We.slice();n.splice(e,1),mt(t,n,"removeOption",{option:We[e]})}},At=function(e){$e?ht(e,"toggleInput"):gt(e)},Tt=function(e){e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Ie&&e.preventDefault()},Rt=function(e){e.currentTarget.contains(e.target)&&(Ce.current.focus(),ye&&Pe.current&&Ce.current.selectionEnd-Ce.current.selectionStart===0&&Ce.current.select(),Pe.current=!1)},Nt=function(e){F||""!==qe&&$e||At(e)},Mt=_&&qe.length>0;Mt=Mt||(ce?We.length>0:null!==We);var Dt=lt;if(Y){new Map;Dt=lt.reduce((function(e,t,n){var o=Y(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:n,index:n,group:o,options:[t]}),e}),[])}return F&&_e&&St(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.Z)({"aria-owns":ut?"".concat(Ie,"-listbox"):null},e,{onKeyDown:Ot(e),onMouseDown:Tt,onClick:Rt})},getInputLabelProps:function(){return{id:"".concat(Ie,"-label"),htmlFor:Ie}},getInputProps:function(){return{id:Ie,value:qe,onBlur:St,onFocus:It,onChange:Pt,onMouseDown:Nt,"aria-activedescendant":it?"":null,"aria-autocomplete":Z?"both":"list","aria-controls":ut?"".concat(Ie,"-listbox"):void 0,"aria-expanded":ut,autoComplete:"off",ref:Ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:F}},getClearProps:function(){return{tabIndex:-1,onClick:yt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:At}},getTagProps:function(e){var t=e.index;return(0,r.Z)({key:t,"data-tag-index":t,tabIndex:-1},!Ze&&{onDelete:Lt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(Ie,"-listbox"),"aria-labelledby":"".concat(Ie,"-label"),ref:vt,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,o=e.option,r=(ce?We:[We]).some((function(e){return null!=e&&ie(o,e)})),a=!!J&&J(o);return{key:t(o),tabIndex:-1,role:"option",id:"".concat(Ie,"-option-").concat(n),onMouseMove:Ct,onClick:wt,onTouchStart:kt,"data-option-index":n,"aria-disabled":a,"aria-selected":r}},id:Ie,inputValue:qe,value:We,dirty:Mt,expanded:it&&Ae,popupOpen:it,focused:_e||-1!==Me,anchorEl:Ae,setAnchorEl:Te,focusedTag:Me,groupedOptions:Dt}}}}]);
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[5953],{75953:function(e,t,n){n.d(t,{Z:function(){return Q}});var o=n(56666),r=n(31461),a=n(7896),i=n(5057),l=n(9978),c=n(91213),u=n(3182),p=n(66685),s=n(24202),d=n(62773),f=n(42908),v=n(6285),g=n(31821),h=n(18561);function m(e){return(0,h.Z)("MuiListSubheader",e)}(0,g.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var b=n(96266),Z=["className","color","component","disableGutters","disableSticky","inset"],x=(0,d.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,v.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),y=i.forwardRef((function(e,t){var n=(0,f.Z)({props:e,name:"MuiListSubheader"}),o=n.className,i=n.color,u=void 0===i?"default":i,p=n.component,s=void 0===p?"li":p,d=n.disableGutters,g=void 0!==d&&d,h=n.disableSticky,y=void 0!==h&&h,O=n.inset,I=void 0!==O&&O,S=(0,r.Z)(n,Z),P=(0,a.Z)({},n,{color:u,component:s,disableGutters:g,disableSticky:y,inset:I}),C=function(e){var t=e.classes,n=e.color,o=e.disableGutters,r=e.inset,a=e.disableSticky,i={root:["root","default"!==n&&"color".concat((0,v.Z)(n)),!o&&"gutters",r&&"inset",!a&&"sticky"]};return(0,c.Z)(i,m,t)}(P);return(0,b.jsx)(x,(0,a.Z)({as:s,className:(0,l.Z)(C.root,o),ref:t,ownerState:P},S))}));y.muiSkipListHighlight=!0;var O=y,I=n(25228),S=n(67680),P=n(19654),C=n(46234),k=n(9243),w=n(82226),L=n(75623),A=n(74235),T=n(60473);function R(e){return(0,h.Z)("MuiAutocomplete",e)}var N,M,D=(0,g.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),z=n(2286),E=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],F=["ref"],H=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,a=n.hasClearIcon,i=n.hasPopupIcon,l=n.inputFocused,c=n.size;return[(0,o.Z)({},"& .".concat(D.tag),t.tag),(0,o.Z)({},"& .".concat(D.tag),t["tagSize".concat((0,v.Z)(c))]),(0,o.Z)({},"& .".concat(D.inputRoot),t.inputRoot),(0,o.Z)({},"& .".concat(D.input),t.input),(0,o.Z)({},"& .".concat(D.input),l&&t.inputFocused),t.root,r&&t.fullWidth,i&&t.hasPopupIcon,a&&t.hasClearIcon]}})((function(e){var t,n,r,i,l,c=e.ownerState;return(0,a.Z)((t={},(0,o.Z)(t,"&.".concat(D.focused," .").concat(D.clearIndicator),{visibility:"visible"}),(0,o.Z)(t,"@media (pointer: fine)",(0,o.Z)({},"&:hover .".concat(D.clearIndicator),{visibility:"visible"})),t),c.fullWidth&&{width:"100%"},(l={},(0,o.Z)(l,"& .".concat(D.tag),(0,a.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===c.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,o.Z)(l,"& .".concat(D.inputRoot),(n={flexWrap:"wrap"},(0,o.Z)(n,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:30}),(0,o.Z)(n,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:56}),(0,o.Z)(n,"& .".concat(D.input),{width:0,minWidth:30}),n)),(0,o.Z)(l,"& .".concat(C.Z.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,o.Z)(l,"& .".concat(C.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({},"& .".concat(C.Z.input),{padding:"2px 4px 3px 0"})),(0,o.Z)(l,"& .".concat(w.Z.root),(r={padding:9},(0,o.Z)(r,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(r,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(r,"& .".concat(D.input),{padding:"7.5px 4px 7.5px 5px"}),(0,o.Z)(r,"& .".concat(D.endAdornment),{right:9}),r)),(0,o.Z)(l,"& .".concat(w.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(D.input),{padding:"2.5px 4px 2.5px 8px"})),(0,o.Z)(l,"& .".concat(L.Z.root),(i={paddingTop:19,paddingLeft:8},(0,o.Z)(i,".".concat(D.hasPopupIcon,"&, .").concat(D.hasClearIcon,"&"),{paddingRight:39}),(0,o.Z)(i,".".concat(D.hasPopupIcon,".").concat(D.hasClearIcon,"&"),{paddingRight:65}),(0,o.Z)(i,"& .".concat(L.Z.input),{padding:"7px 4px"}),(0,o.Z)(i,"& .".concat(D.endAdornment),{right:9}),i)),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.sizeSmall),(0,o.Z)({paddingBottom:1},"& .".concat(L.Z.input),{padding:"2.5px 4px"})),(0,o.Z)(l,"& .".concat(k.Z.hiddenLabel),{paddingTop:8}),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.hiddenLabel),(0,o.Z)({paddingTop:0,paddingBottom:0},"& .".concat(D.input),{paddingTop:16,paddingBottom:17})),(0,o.Z)(l,"& .".concat(L.Z.root,".").concat(k.Z.hiddenLabel,".").concat(k.Z.sizeSmall),(0,o.Z)({},"& .".concat(D.input),{paddingTop:8,paddingBottom:9})),(0,o.Z)(l,"& .".concat(D.input),(0,a.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},c.inputFocused&&{opacity:1})),l))})),W=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),j=(0,d.ZP)(S.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),V=(0,d.ZP)(S.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,a.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,a.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),B=(0,d.ZP)(s.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(D.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),q=(0,d.ZP)(I.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,a.Z)({},t.typography.body1,{overflow:"auto"})})),G=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),K=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),U=(0,d.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,o.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(D.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,o.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,o.Z)(n,"&.".concat(D.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,o.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,o.Z)(n,"&.".concat(D.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,o.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,p.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,o.Z)(t,"&.".concat(D.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,p.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,o.Z)(t,"&.".concat(D.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,p.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),_=(0,d.ZP)(O,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),J=(0,d.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,o.Z)({padding:0},"& .".concat(D.option),{paddingLeft:24})),Q=i.forwardRef((function(e,t){var n,o,p,d,g,h=(0,f.Z)({props:e,name:"MuiAutocomplete"}),m=(h.autoComplete,h.autoHighlight,h.autoSelect,h.blurOnSelect,h.ChipProps),Z=h.className,x=h.clearIcon,y=void 0===x?N||(N=(0,b.jsx)(A.Z,{fontSize:"small"})):x,O=h.clearOnBlur,S=(void 0===O&&h.freeSolo,h.clearOnEscape,h.clearText),C=void 0===S?"Clear":S,k=h.closeText,w=void 0===k?"Close":k,L=h.componentsProps,D=void 0===L?{}:L,Q=h.defaultValue,X=(void 0===Q&&h.multiple,h.disableClearable),Y=void 0!==X&&X,$=(h.disableCloseOnSelect,h.disabled),ee=void 0!==$&&$,te=(h.disabledItemsFocusable,h.disableListWrap,h.disablePortal),ne=void 0!==te&&te,oe=(h.filterSelectedOptions,h.forcePopupIcon),re=void 0===oe?"auto":oe,ae=h.freeSolo,ie=void 0!==ae&&ae,le=h.fullWidth,ce=void 0!==le&&le,ue=h.getLimitTagsText,pe=void 0===ue?function(e){return"+".concat(e)}:ue,se=h.getOptionLabel,de=h.groupBy,fe=h.handleHomeEndKeys,ve=(void 0===fe&&h.freeSolo,h.includeInputInList,h.limitTags),ge=void 0===ve?-1:ve,he=h.ListboxComponent,me=void 0===he?"ul":he,be=h.ListboxProps,Ze=h.loading,xe=void 0!==Ze&&Ze,ye=h.loadingText,Oe=void 0===ye?"Loading\u2026":ye,Ie=h.multiple,Se=void 0!==Ie&&Ie,Pe=h.noOptionsText,Ce=void 0===Pe?"No options":Pe,ke=(h.openOnFocus,h.openText),we=void 0===ke?"Open":ke,Le=h.PaperComponent,Ae=void 0===Le?I.Z:Le,Te=h.PopperComponent,Re=void 0===Te?s.Z:Te,Ne=h.popupIcon,Me=void 0===Ne?M||(M=(0,b.jsx)(T.Z,{})):Ne,De=h.readOnly,ze=void 0!==De&&De,Ee=h.renderGroup,Fe=h.renderInput,He=h.renderOption,We=h.renderTags,je=h.selectOnFocus,Ve=(void 0===je&&h.freeSolo,h.size),Be=void 0===Ve?"medium":Ve,qe=h.slotProps,Ge=void 0===qe?{}:qe,Ke=(0,r.Z)(h,E),Ue=(0,u.o)((0,a.Z)({},h,{componentName:"Autocomplete"})),_e=Ue.getRootProps,Je=Ue.getInputProps,Qe=Ue.getInputLabelProps,Xe=Ue.getPopupIndicatorProps,Ye=Ue.getClearProps,$e=Ue.getTagProps,et=Ue.getListboxProps,tt=Ue.getOptionProps,nt=Ue.value,ot=Ue.dirty,rt=Ue.expanded,at=Ue.id,it=Ue.popupOpen,lt=Ue.focused,ct=Ue.focusedTag,ut=Ue.anchorEl,pt=Ue.setAnchorEl,st=Ue.inputValue,dt=Ue.groupedOptions,ft=!Y&&!ee&&ot&&!ze,vt=(!ie||!0===re)&&!1!==re,gt=Je().onMouseDown,ht=(null!=be?be:{}).ref,mt=et(),bt=mt.ref,Zt=(0,r.Z)(mt,F),xt=(0,z.Z)(bt,ht),yt=se||function(e){var t;return null!=(t=e.label)?t:e},Ot=(0,a.Z)({},h,{disablePortal:ne,expanded:rt,focused:lt,fullWidth:ce,getOptionLabel:yt,hasClearIcon:ft,hasPopupIcon:vt,inputFocused:-1===ct,popupOpen:it,size:Be}),It=function(e){var t=e.classes,n=e.disablePortal,o=e.expanded,r=e.focused,a=e.fullWidth,i=e.hasClearIcon,l=e.hasPopupIcon,u=e.inputFocused,p=e.popupOpen,s=e.size,d={root:["root",o&&"expanded",r&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag","tagSize".concat((0,v.Z)(s))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,c.Z)(d,R,t)}(Ot);if(Se&&nt.length>0){var St=function(e){return(0,a.Z)({className:It.tag,disabled:ee},$e(e))};g=We?We(nt,St,Ot):nt.map((function(e,t){return(0,b.jsx)(P.Z,(0,a.Z)({label:yt(e),size:Be},St({index:t}),m))}))}if(ge>-1&&Array.isArray(g)){var Pt=g.length-ge;!lt&&Pt>0&&(g=g.splice(0,ge)).push((0,b.jsx)("span",{className:It.tag,children:pe(Pt)},g.length))}var Ct=Ee||function(e){return(0,b.jsxs)("li",{children:[(0,b.jsx)(_,{className:It.groupLabel,ownerState:Ot,component:"div",children:e.group}),(0,b.jsx)(J,{className:It.groupUl,ownerState:Ot,children:e.children})]},e.key)},kt=He||function(e,t){return(0,b.jsx)("li",(0,a.Z)({},e,{children:yt(t)}))},wt=function(e,t){var n=tt({option:e,index:t});return kt((0,a.Z)({},n,{className:It.option}),e,{selected:n["aria-selected"],index:t,inputValue:st},Ot)},Lt=null!=(n=Ge.clearIndicator)?n:D.clearIndicator,At=null!=(o=Ge.paper)?o:D.paper,Tt=null!=(p=Ge.popper)?p:D.popper,Rt=null!=(d=Ge.popupIndicator)?d:D.popupIndicator;return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(H,(0,a.Z)({ref:t,className:(0,l.Z)(It.root,Z),ownerState:Ot},_e(Ke),{children:Fe({id:at,disabled:ee,fullWidth:!0,size:"small"===Be?"small":void 0,InputLabelProps:Qe(),InputProps:(0,a.Z)({ref:pt,className:It.inputRoot,startAdornment:g,onClick:function(e){e.target===e.currentTarget&&gt(e)}},(ft||vt)&&{endAdornment:(0,b.jsxs)(W,{className:It.endAdornment,ownerState:Ot,children:[ft?(0,b.jsx)(j,(0,a.Z)({},Ye(),{"aria-label":C,title:C,ownerState:Ot},Lt,{className:(0,l.Z)(It.clearIndicator,null==Lt?void 0:Lt.className),children:y})):null,vt?(0,b.jsx)(V,(0,a.Z)({},Xe(),{disabled:ee,"aria-label":it?w:we,title:it?w:we,ownerState:Ot},Rt,{className:(0,l.Z)(It.popupIndicator,null==Rt?void 0:Rt.className),children:Me})):null]})}),inputProps:(0,a.Z)({className:It.input,disabled:ee,readOnly:ze},Je())})})),ut?(0,b.jsx)(B,(0,a.Z)({as:Re,disablePortal:ne,style:{width:ut?ut.clientWidth:null},ownerState:Ot,role:"presentation",anchorEl:ut,open:it},Tt,{className:(0,l.Z)(It.popper,null==Tt?void 0:Tt.className),children:(0,b.jsxs)(q,(0,a.Z)({ownerState:Ot,as:Ae},At,{className:(0,l.Z)(It.paper,null==At?void 0:At.className),children:[xe&&0===dt.length?(0,b.jsx)(G,{className:It.loading,ownerState:Ot,children:Oe}):null,0!==dt.length||ie||xe?null:(0,b.jsx)(K,{className:It.noOptions,ownerState:Ot,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Ce}),dt.length>0?(0,b.jsx)(U,(0,a.Z)({as:me,className:It.listbox,ownerState:Ot},Zt,be,{ref:xt,children:dt.map((function(e,t){return de?Ct({key:e.key,group:e.group,children:e.options.map((function(t,n){return wt(t,e.index+n)}))}):wt(e,t)}))})):null]}))})):null]})}))},3182:function(e,t,n){n.d(t,{D:function(){return d},o:function(){return m}});var o=n(96234),r=n(7896),a=n(5057),i=n(32852),l=n(62663),c=n(77590),u=n(2534),p=n(98038);function s(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,o=e.ignoreCase,r=void 0===o||o,a=e.limit,i=e.matchFrom,l=void 0===i?"any":i,c=e.stringify,u=e.trim,p=void 0!==u&&u;return function(e,t){var o=t.inputValue,i=t.getOptionLabel,u=p?o.trim():o;r&&(u=u.toLowerCase()),n&&(u=s(u));var d=u?e.filter((function(e){var t=(c||i)(e);return r&&(t=t.toLowerCase()),n&&(t=s(t)),"start"===l?0===t.indexOf(u):t.indexOf(u)>-1})):e;return"number"===typeof a?d.slice(0,a):d}}function f(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var v=d(),g=5,h=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function m(e){var t,n=e.unstable_isActiveElementInListbox,s=void 0===n?h:n,d=e.unstable_classNamePrefix,m=void 0===d?"Mui":d,b=e.autoComplete,Z=void 0!==b&&b,x=e.autoHighlight,y=void 0!==x&&x,O=e.autoSelect,I=void 0!==O&&O,S=e.blurOnSelect,P=void 0!==S&&S,C=e.clearOnBlur,k=void 0===C?!e.freeSolo:C,w=e.clearOnEscape,L=void 0!==w&&w,A=e.componentName,T=void 0===A?"useAutocomplete":A,R=e.defaultValue,N=void 0===R?e.multiple?[]:null:R,M=e.disableClearable,D=void 0!==M&&M,z=e.disableCloseOnSelect,E=void 0!==z&&z,F=e.disabled,H=e.disabledItemsFocusable,W=void 0!==H&&H,j=e.disableListWrap,V=void 0!==j&&j,B=e.filterOptions,q=void 0===B?v:B,G=e.filterSelectedOptions,K=void 0!==G&&G,U=e.freeSolo,_=void 0!==U&&U,J=e.getOptionDisabled,Q=e.getOptionLabel,X=void 0===Q?function(e){var t;return null!=(t=e.label)?t:e}:Q,Y=e.groupBy,$=e.handleHomeEndKeys,ee=void 0===$?!e.freeSolo:$,te=e.id,ne=e.includeInputInList,oe=void 0!==ne&&ne,re=e.inputValue,ae=e.isOptionEqualToValue,ie=void 0===ae?function(e,t){return e===t}:ae,le=e.multiple,ce=void 0!==le&&le,ue=e.onChange,pe=e.onClose,se=e.onHighlightChange,de=e.onInputChange,fe=e.onOpen,ve=e.open,ge=e.openOnFocus,he=void 0!==ge&&ge,me=e.options,be=e.readOnly,Ze=void 0!==be&&be,xe=e.selectOnFocus,ye=void 0===xe?!e.freeSolo:xe,Oe=e.value,Ie=(0,i.Z)(te);t=function(e){var t=X(e);return"string"!==typeof t?String(t):t};var Se=a.useRef(!1),Pe=a.useRef(!0),Ce=a.useRef(null),ke=a.useRef(null),we=a.useState(null),Le=(0,o.Z)(we,2),Ae=Le[0],Te=Le[1],Re=a.useState(-1),Ne=(0,o.Z)(Re,2),Me=Ne[0],De=Ne[1],ze=y?0:-1,Ee=a.useRef(ze),Fe=(0,l.Z)({controlled:Oe,default:N,name:T}),He=(0,o.Z)(Fe,2),We=He[0],je=He[1],Ve=(0,l.Z)({controlled:re,default:"",name:T,state:"inputValue"}),Be=(0,o.Z)(Ve,2),qe=Be[0],Ge=Be[1],Ke=a.useState(!1),Ue=(0,o.Z)(Ke,2),_e=Ue[0],Je=Ue[1],Qe=a.useCallback((function(e,n){if((ce?We.length<n.length:null!==n)||k){var o;if(ce)o="";else if(null==n)o="";else{var r=t(n);o="string"===typeof r?r:""}qe!==o&&(Ge(o),de&&de(e,o,"reset"))}}),[t,qe,ce,de,Ge,k,We]),Xe=(0,l.Z)({controlled:ve,default:!1,name:T,state:"open"}),Ye=(0,o.Z)(Xe,2),$e=Ye[0],et=Ye[1],tt=a.useState(!0),nt=(0,o.Z)(tt,2),ot=nt[0],rt=nt[1],at=!ce&&null!=We&&qe===t(We),it=$e&&!Ze,lt=it?q(me.filter((function(e){return!K||!(ce?We:[We]).some((function(t){return null!==t&&ie(e,t)}))})),{inputValue:at&&ot?"":qe,getOptionLabel:t}):[],ct=(0,c.Z)({filteredOptions:lt,value:We,inputValue:qe});a.useEffect((function(){var e=We!==ct.value;_e&&!e||_&&!e||Qe(null,We)}),[We,Qe,_e,ct.value,_]);var ut=$e&&lt.length>0&&!Ze,pt=(0,u.Z)((function(e){-1===e?Ce.current.focus():Ae.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));a.useEffect((function(){ce&&Me>We.length-1&&(De(-1),pt(-1))}),[We,ce,Me,pt]);var st=(0,u.Z)((function(e){var t=e.event,n=e.index,o=e.reason,r=void 0===o?"auto":o;if(Ee.current=n,-1===n?Ce.current.removeAttribute("aria-activedescendant"):Ce.current.setAttribute("aria-activedescendant","".concat(Ie,"-option-").concat(n)),se&&se(t,-1===n?null:lt[n],r),ke.current){var a=ke.current.querySelector('[role="option"].'.concat(m,"-focused"));a&&(a.classList.remove("".concat(m,"-focused")),a.classList.remove("".concat(m,"-focusVisible")));var i=ke.current;if("listbox"!==ke.current.getAttribute("role")&&(i=ke.current.parentElement.querySelector('[role="listbox"]')),i)if(-1!==n){var l=ke.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("".concat(m,"-focused")),"keyboard"===r&&l.classList.add("".concat(m,"-focusVisible")),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){var c=l,u=i.clientHeight+i.scrollTop,p=c.offsetTop+c.offsetHeight;p>u?i.scrollTop=p-i.clientHeight:c.offsetTop-c.offsetHeight*(Y?1.3:0)<i.scrollTop&&(i.scrollTop=c.offsetTop-c.offsetHeight*(Y?1.3:0))}}else i.scrollTop=0}})),dt=(0,u.Z)((function(e){var n=e.event,o=e.diff,r=e.direction,a=void 0===r?"next":r,i=e.reason,l=void 0===i?"auto":i;if(it){var c=function(e,t){if(!ke.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===lt.length||"previous"===t&&-1===n)return-1;var o=ke.current.querySelector('[data-option-index="'.concat(n,'"]')),r=!W&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(!(o&&!o.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}(function(){var e=lt.length-1;if("reset"===o)return ze;if("start"===o)return 0;if("end"===o)return e;var t=Ee.current+o;return t<0?-1===t&&oe?-1:V&&-1!==Ee.current||Math.abs(o)>1?0:e:t>e?t===e+1&&oe?-1:V||Math.abs(o)>1?e:0:t}(),a);if(st({index:c,reason:l,event:n}),Z&&"reset"!==o)if(-1===c)Ce.current.value=qe;else{var u=t(lt[c]);Ce.current.value=u,0===u.toLowerCase().indexOf(qe.toLowerCase())&&qe.length>0&&Ce.current.setSelectionRange(qe.length,u.length)}}})),ft=a.useCallback((function(){if(it&&!function(){var e,n;if(-1!==Ee.current&&ct.filteredOptions&&ct.filteredOptions.length!==lt.length&&ct.inputValue===qe&&(ce?We.length===ct.value.length&&ct.value.every((function(e,n){return t(We[n])===t(e)})):(e=ct.value,n=We,(e?t(e):"")===(n?t(n):"")))){var o=ct.filteredOptions[Ee.current];if(o&&lt.some((function(e){return t(e)===t(o)})))return!0}return!1}()){var e=ce?We[0]:We;if(0!==lt.length&&null!=e){if(ke.current)if(null==e)Ee.current>=lt.length-1?st({index:lt.length-1}):st({index:Ee.current});else{var n=lt[Ee.current];if(ce&&n&&-1!==f(We,(function(e){return ie(n,e)})))return;var o=f(lt,(function(t){return ie(t,e)}));-1===o?dt({diff:"reset"}):st({index:o})}}else dt({diff:"reset"})}}),[lt.length,!ce&&We,K,dt,st,it,qe,ce]),vt=(0,u.Z)((function(e){(0,p.Z)(ke,e),e&&ft()}));a.useEffect((function(){ft()}),[ft]);var gt=function(e){$e||(et(!0),rt(!0),fe&&fe(e))},ht=function(e,t){$e&&(et(!1),pe&&pe(e,t))},mt=function(e,t,n,o){if(ce){if(We.length===t.length&&We.every((function(e,n){return e===t[n]})))return}else if(We===t)return;ue&&ue(e,t,n,o),je(t)},bt=a.useRef(!1),Zt=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=t;if(ce){var a=f(r=Array.isArray(We)?We.slice():[],(function(e){return ie(t,e)}));-1===a?r.push(t):"freeSolo"!==n&&(r.splice(a,1),o="removeOption")}Qe(e,r),mt(e,r,o,{option:t}),E||e&&(e.ctrlKey||e.metaKey)||ht(e,o),(!0===P||"touch"===P&&bt.current||"mouse"===P&&!bt.current)&&Ce.current.blur()};var xt=function(e,t){if(ce){""===qe&&ht(e,"toggleInput");var n=Me;-1===Me?""===qe&&"previous"===t&&(n=We.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===We.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===We.length||"previous"===t&&-1===n)return-1;var o=Ae.querySelector('[data-tag-index="'.concat(n,'"]'));if(o&&o.hasAttribute("tabindex")&&!o.disabled&&"true"!==o.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),De(n),pt(n)}},yt=function(e){Se.current=!0,Ge(""),de&&de(e,"","clear"),mt(e,ce?[]:null,"clear")},Ot=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Me&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(De(-1),pt(-1)),229!==t.which))switch(t.key){case"Home":it&&ee&&(t.preventDefault(),dt({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":it&&ee&&(t.preventDefault(),dt({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),dt({diff:-g,direction:"previous",reason:"keyboard",event:t}),gt(t);break;case"PageDown":t.preventDefault(),dt({diff:g,direction:"next",reason:"keyboard",event:t}),gt(t);break;case"ArrowDown":t.preventDefault(),dt({diff:1,direction:"next",reason:"keyboard",event:t}),gt(t);break;case"ArrowUp":t.preventDefault(),dt({diff:-1,direction:"previous",reason:"keyboard",event:t}),gt(t);break;case"ArrowLeft":xt(t,"previous");break;case"ArrowRight":xt(t,"next");break;case"Enter":if(-1!==Ee.current&&it){var n=lt[Ee.current],o=!!J&&J(n);if(t.preventDefault(),o)return;Zt(t,n,"selectOption"),Z&&Ce.current.setSelectionRange(Ce.current.value.length,Ce.current.value.length)}else _&&""!==qe&&!1===at&&(ce&&t.preventDefault(),Zt(t,qe,"createOption","freeSolo"));break;case"Escape":it?(t.preventDefault(),t.stopPropagation(),ht(t,"escape")):L&&(""!==qe||ce&&We.length>0)&&(t.preventDefault(),t.stopPropagation(),yt(t));break;case"Backspace":if(ce&&!Ze&&""===qe&&We.length>0){var r=-1===Me?We.length-1:Me,a=We.slice();a.splice(r,1),mt(t,a,"removeOption",{option:We[r]})}break;case"Delete":if(ce&&!Ze&&""===qe&&We.length>0&&-1!==Me){var i=Me,l=We.slice();l.splice(i,1),mt(t,l,"removeOption",{option:We[i]})}}}},It=function(e){Je(!0),he&&!Se.current&&gt(e)},St=function(e){s(ke)?Ce.current.focus():(Je(!1),Pe.current=!0,Se.current=!1,I&&-1!==Ee.current&&it?Zt(e,lt[Ee.current],"blur"):I&&_&&""!==qe?Zt(e,qe,"blur","freeSolo"):k&&Qe(e,We),ht(e,"blur"))},Pt=function(e){var t=e.target.value;qe!==t&&(Ge(t),rt(!1),de&&de(e,t,"input")),""===t?D||ce||mt(e,null,"clear"):gt(e)},Ct=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ee.current!==t&&st({event:e,index:t,reason:"mouse"})},kt=function(e){st({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),bt.current=!0},wt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Zt(e,lt[t],"selectOption"),bt.current=!1},Lt=function(e){return function(t){var n=We.slice();n.splice(e,1),mt(t,n,"removeOption",{option:We[e]})}},At=function(e){$e?ht(e,"toggleInput"):gt(e)},Tt=function(e){e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==Ie&&e.preventDefault()},Rt=function(e){e.currentTarget.contains(e.target)&&(Ce.current.focus(),ye&&Pe.current&&Ce.current.selectionEnd-Ce.current.selectionStart===0&&Ce.current.select(),Pe.current=!1)},Nt=function(e){F||""!==qe&&$e||At(e)},Mt=_&&qe.length>0;Mt=Mt||(ce?We.length>0:null!==We);var Dt=lt;if(Y){new Map;Dt=lt.reduce((function(e,t,n){var o=Y(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:n,index:n,group:o,options:[t]}),e}),[])}return F&&_e&&St(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.Z)({"aria-owns":ut?"".concat(Ie,"-listbox"):null},e,{onKeyDown:Ot(e),onMouseDown:Tt,onClick:Rt})},getInputLabelProps:function(){return{id:"".concat(Ie,"-label"),htmlFor:Ie}},getInputProps:function(){return{id:Ie,value:qe,onBlur:St,onFocus:It,onChange:Pt,onMouseDown:Nt,"aria-activedescendant":it?"":null,"aria-autocomplete":Z?"both":"list","aria-controls":ut?"".concat(Ie,"-listbox"):void 0,"aria-expanded":ut,autoComplete:"off",ref:Ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:F}},getClearProps:function(){return{tabIndex:-1,type:"button",onClick:yt}},getPopupIndicatorProps:function(){return{tabIndex:-1,type:"button",onClick:At}},getTagProps:function(e){var t=e.index;return(0,r.Z)({key:t,"data-tag-index":t,tabIndex:-1},!Ze&&{onDelete:Lt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(Ie,"-listbox"),"aria-labelledby":"".concat(Ie,"-label"),ref:vt,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,o=e.option,r=(ce?We:[We]).some((function(e){return null!=e&&ie(o,e)})),a=!!J&&J(o);return{key:t(o),tabIndex:-1,role:"option",id:"".concat(Ie,"-option-").concat(n),onMouseMove:Ct,onClick:wt,onTouchStart:kt,"data-option-index":n,"aria-disabled":a,"aria-selected":r}},id:Ie,inputValue:qe,value:We,dirty:Mt,expanded:it&&Ae,popupOpen:it,focused:_e||-1!==Me,anchorEl:Ae,setAnchorEl:Te,focusedTag:Me,groupedOptions:Dt}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6511],{86511:function(e,n,t){t.r(n),t.d(n,{default:function(){return re}});var r=t(71171),a=t(5057),i=t(33518),o=t(85493),c=t(15849),u=t(68420),s=t(11750),l=t(39434),p=t(39948),d=t(10697),f=t(94464),v=t(88574),m=t(28726),h=t(38242),b=t(81010),x=t(87363),g=(t(68534),t(86229)),k=t(1722),Z=t(96234),y=t(35432),w=t(55152),j=t(58238),P=t(29054),B=t(73545),S=t(14491),L=t(4651),D=t(96266),E=function(e){var n={},t=null;return(0,h.forEachBlockletSync)(e,(function(e){n[e.meta.bundleDid]?t=(0,h.getDisplayName)(e,!0):e.meta.bundleDid&&(n[e.meta.bundleDid]=!0)})),t},_=function(e,n,t){var r=e.hostname,a=e.href;if(!n)return a;if(t){var i,o=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!o)return a;var c=o[0],u=(((null===(i=n.site)||void 0===i?void 0:i.domainAliases)||[]).map((function(e){return e.value})).filter(Boolean).find((function(e){return e.endsWith(y.DEFAULT_DID_DOMAIN)}))||"").replace(".".concat(y.DEFAULT_DID_DOMAIN),"");return u?a.replace(r,"".concat(u,"-").concat(c,".").concat(y.DEFAULT_IP_DOMAIN_SUFFIX)):a}return a.replace(n.meta.bundleDid,n.appPid)};function C(){var e=(0,u.PE)().t,n=(0,B.T)().api,t=(0,P.y0)().blocklet,r=(0,j.h6)().inService,i=(0,a.useState)(!1),o=(0,Z.Z)(i,2),c=o[0],s=o[1],l=(0,a.useState)(5),d=(0,Z.Z)(l,2),f=d[0],b=d[1],x=t&&t.structVersion!==y.APP_STRUCT_VERSION;return[x&&(0,D.jsxs)(v.Z,{type:"warning",style:{margin:"12px 0"},children:[(0,D.jsxs)(p.Z,{display:"flex",alignItems:"center",children:[(0,D.jsx)(m.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return function(){try{if("running"===t.status)return void g.Z.error(e("blocklet.migrate.tip.running"));var n=E(t);if(n)return void g.Z.error(e("blocklet.migrate.tip.duplicate",{name:n}));s(!0)}catch(r){g.Z.error((0,S.Z)(r))}}()},style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,D.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((function(n){return(0,D.jsx)(p.Z,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(n))},n)}))]},"alert"),t&&(0,D.jsx)(w.default,{popup:!0,open:c,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:n.get,checkTimeout:3e5,onSuccess:function(){var e=_(window.location,t,r);setTimeout((function(){window.location.href=e}),5e3),b(5),setInterval((function(){b((function(e){return e-1}))}),1e3)},extraParams:{appDid:t.appDid,did:t.meta.did,wt:(0,L.iK)(t,!0),title:(0,h.getDisplayName)(t)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:f>=0?e("blocklet.migrate.success",{sec:f}):"Redirecting..."},onClose:function(){return s(!1)}},"connect")]}C.propTypes={};var N,G=t(35966),A=t(43019),I=t(44846),T=t(78123),O=t(75793),U=t(17022),z=t(13671),K=t(74094),R=t(7199),F=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(6457),t.e(6591)]).then(t.bind(t,86591))})),M=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(2294),t.e(3716),t.e(6547),t.e(5760),t.e(2452),t.e(8059),t.e(5808),t.e(8973)]).then(t.bind(t,5119))})),V=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(105),t.e(6547),t.e(2452),t.e(5953),t.e(1035),t.e(4775)]).then(t.bind(t,14775))})),$=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(442),t.e(9662),t.e(7676),t.e(8986)]).then(t.bind(t,13239))})),X=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(1237),t.e(2305),t.e(5979),t.e(2537)]).then(t.bind(t,75979))})),Y=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(2294),t.e(3716),t.e(6547),t.e(5760),t.e(2657),t.e(6412),t.e(3216)]).then(t.bind(t,46412))})),W=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(2294),t.e(3716),t.e(4901),t.e(1685),t.e(5555)]).then(t.bind(t,85555))})),q=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(2294),t.e(3716),t.e(4901),t.e(442),t.e(9366),t.e(5526),t.e(1237),t.e(7638),t.e(1685),t.e(4407),t.e(5953),t.e(3135),t.e(875),t.e(2264),t.e(7126)]).then(t.bind(t,77126))})),J=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(9327),t.e(8219)]).then(t.bind(t,92379))})),Q=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(2294),t.e(3716),t.e(6547),t.e(5760),t.e(7534)]).then(t.bind(t,87534))})),H=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(4901),t.e(2743),t.e(2611)]).then(t.bind(t,42611))})),ee=(0,a.lazy)((function(){return Promise.all([t.e(7718),t.e(7020),t.e(8537),t.e(105),t.e(2294),t.e(3716),t.e(6547),t.e(5760),t.e(9366),t.e(9354),t.e(4650)]).then(t.bind(t,34650))})),ne=function(e){return e.children};function te(){var e,n=(0,o.useNavigate)(),t=(0,o.useParams)().tab,r=void 0===t?"overview":t,i=(0,z.y0)(),Z=i.did,w=i.blocklet,j=i.error,P=i.client,B=i.actions,S=B.setBlocklet,L=B.refreshBlocklet,E=(0,O.h6)().refresh,_=(0,u.PE)().t,N=(0,a.useCallback)((function(){return(0,D.jsx)($,{scope:Z})}),[Z]),A=(null===w||void 0===w||null===(e=w.environments.find((function(e){return"BLOCKLET_APP_URL"===e.key})))||void 0===e?void 0:e.value)||window.location.origin,te=function(e){return(0,K.bV)(e,A)},re=function(e){n("/blocklets/".concat(Z,"/").concat(e))},ie=!w||(0,K.wS)(w.status)?[]:(0,h.getAppMissingConfigs)(w),oe=null,ce=[{label:_("common.overview"),value:"overview"},{breadcrumbsLabel:_("common.components"),label:(0,D.jsx)(d.Z,{color:"error",variant:"dot",invisible:!ie.length,children:_("common.components")}),value:"components"}];if(j)oe=(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(v.Z,{type:"error",variant:"icon",children:(0,K.Z)(j)}),(0,D.jsx)(m.Z,{onClick:function(){return L()},children:(0,D.jsx)("span",{style:{textDecoration:"underline"},children:_("common.retry")})})]});else if(w){var ue,se={overview:(0,D.jsx)(F,{}),configuration:M,navigation:V,services:W,members:(0,D.jsx)(Y,{type:"blocklet",createPassportSvg:te}),passports:X,components:q,"audit-logs":N,logs:J,runtime:(0,D.jsx)(Q,{}),traffic:(0,D.jsx)(H,{client:P,did:Z}),storage:(0,D.jsx)(ee,{})};"configuration"===r&&(0,K.wS)(w.status)&&re("overview"),(0,K.wS)(w.status)||(ce.push({label:_("common.members"),value:"members"}),ce.push({label:_("common.passport"),value:"passports"}),ce.push({label:_("common.configuration"),value:"configuration"})),ce.push({label:_("common.auditLogs"),value:"audit-logs"}),w&&null!==(ue=w.children)&&void 0!==ue&&ue.length&&w.structVersion===y.APP_STRUCT_VERSION&&ce.push({label:_("common.logs"),value:"logs"}),ce.push({label:_("common.configNavigation"),value:"navigation"}),ce.push({label:_("common.runtime"),value:"runtime"}),ce.push({label:_("common.traffic"),value:"traffic"}),ce.push({label:_("common.storage"),value:"storage"}),(0,h.getBlockletServices)(w).length&&ce.splice(2,0,{label:_("blocklet.services"),value:"services"});var le=se[r]||se.overview;oe=(0,D.jsxs)(x.g,{type:"components",children:[!(0,h.isExternalBlocklet)(w)&&(0,D.jsx)(f.Z,{tabs:ce,current:r,onChange:re,scrollButtons:"auto"}),(0,D.jsx)("div",{className:"page-content",children:(0,D.jsx)(a.Suspense,{fallback:(0,D.jsx)(G.Z,{children:(0,D.jsx)(I.Z,{})}),children:(0,a.isValidElement)(le)?le:(0,D.jsx)(le,{blocklet:w,onUpdate:function(e){e&&S(e),L()},createPassportSvg:te})})})]})}else oe=(0,D.jsx)(G.Z,{children:(0,D.jsx)(I.Z,{})});var pe=ce.find((function(e){return e.value===r})),de=w?U.G6:ne;return(0,D.jsx)(de,{teamDid:Z,children:(0,D.jsxs)(ae,{children:[(0,D.jsxs)(l.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,D.jsx)(c.Link,{color:"textSecondary",to:"/blocklets",children:_("common.blocklets")}),(0,D.jsx)(c.NavLink,{to:"/blocklets/".concat(Z,"/overview"),style:function(e){return e?{color:"inherit"}:{}},children:_("common.detail")}),(0,D.jsx)(s.Z,{color:"textSecondary",children:pe?pe.breadcrumbsLabel||pe.label:""})]}),(0,D.jsxs)(s.Z,{component:"div",className:"page-header",children:[(0,D.jsxs)(s.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[w?(0,D.jsx)(k.Z,{blocklet:w,style:{marginRight:16}}):null,w?(0,D.jsxs)(p.Z,{display:"flex",alignItems:"center",children:[(0,D.jsx)(p.Z,{children:(0,h.getDisplayName)(w)}),"unknown"!==(null===w||void 0===w?void 0:w.status)&&(0,D.jsx)(b.Z,{size:"12px",style:{marginLeft:8},status:w.status,source:w.source})]}):"".concat(_("common.blocklet")," ").concat(_("common.detail"))]}),(0,D.jsx)(R.Z,{permission:"mutate_blocklets",children:!!w&&!(0,h.isExternalBlocklet)(w)&&(0,D.jsx)(T.Z,{className:"page-actions",blocklet:w,onStart:function(){},onComplete:function(e){var t=e.action,r=e.error;r?g.Z.error(r.message):"remove"===t?(E(),n("/blocklets")):L()},variant:"group"})})]}),(0,D.jsx)(C,{}),oe]})})}function re(){var e=(0,o.useParams)().did;return e?(0,D.jsx)(z.$8,{did:e,children:(0,D.jsx)(A.wV,{children:(0,D.jsx)(te,{})})}):null}var ae=i.Z.main(N||(N=(0,r.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 16px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.md}))},43019:function(e,n,t){t.d(n,{wV:function(){return S},XN:function(){return L}});var r=t(32723),a=t(33028),i=t(34795),o=t(96234),c=t(5057),u=t(55898),s=t.n(u),l=t(86229),p=t(68420),d=t(76811),f=t(29054),v=t(84584),m=t(41899),h=t(58238),b=t(65873);function x(e){return g.apply(this,arguments)}function g(){return g=(0,i.Z)((0,r.Z)().mark((function e(n){var t,o,c,u,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.blockletDid,o=n.nodeApi,c=n.spaceGateways,u=!1,e.next=4,Promise.all(c.map(function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var t,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.name,e.next=3,(0,v.nU)(n.endpoint);case 3:return i=e.sent,(0,b.isEmpty)(i)||i===t||(t=i,u=!0),e.abrupt("return",(0,a.Z)((0,a.Z)({},n),{},{name:t}));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 4:if(s=e.sent,!u){e.next=8;break}return e.next=8,Promise.all(s.filter((function(e){return e.did})).map((function(e){return o.updateBlockletSpaceGateway({input:{did:t,where:{did:e.did},spaceGateway:(0,a.Z)({},e)}})})));case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}var k=t(99875);var Z=t(14491);function y(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[],setLoading:function(){}},t=n.deps,a=n.setLoading,u=(0,f.y0)().blocklet,s=(0,c.useState)([]),p=(0,o.Z)(s,2),d=p[0],v=p[1],x=(0,h.h6)().api,g=(0,b.debounce)((0,i.Z)((0,r.Z)().mark((function e(){var n,t;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,a(!0),u){e.next=5;break}return v([]),e.abrupt("return");case 5:return e.next=7,x.getBlockletBackups({input:{did:u.meta.did}});case 7:n=e.sent,t=n.backups,v(null!==t&&void 0!==t?t:[]),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),console.error(e.t0),l.Z.error((0,Z.Z)(e.t0));case 16:return e.prev=16,a(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,12,16,19]])}))),2e3);return(0,m.Z)((0,i.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g();case 1:case"end":return e.stop()}}),e)}))),[null===u||void 0===u||null===(e=u.meta)||void 0===e?void 0:e.did].concat(t)),{backups:d}}var w=function(e){var n=e.appDid,t=y().backups,r=(0,c.useState)({message:"",progress:0,completed:!1}),i=(0,o.Z)(r,2),u=i[0],s=i[1];return(0,(0,h.h6)().ws.useSubscription)(d.BlockletEvents.backupProgress,(function(e){n===(null===e||void 0===e?void 0:e.appDid)&&s((function(){return(0,a.Z)({},e)}))}),[n]),(0,c.useEffect)((function(){var e;if(null!==t&&void 0!==t&&t.length&&(0,b.isNull)(null===(e=t[0])||void 0===e?void 0:e.status)){var n=(0,o.Z)(t,1)[0];s((function(){return{message:n.message,progress:n.progress,completed:Boolean(n.progress>=100)}}))}}),[t]),u};var j=t(96266),P=(0,c.createContext)({}),B=P.Provider;P.Consumer;function S(e){var n=e.children,t=(0,p.PE)().t,u=(0,h.h6)().api,s=(0,f.y0)().blocklet,b=(0,c.useState)(!1),g=(0,o.Z)(b,2),Z=g[0],P=g[1],S=(0,c.useState)(!1),L=(0,o.Z)(S,2),D=L[0],E=L[1],_=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.setLoading,a=n.refresh,u=(0,f.y0)(),s=u.blocklet,p=u.actions.refreshBlocklet,d=null===s||void 0===s||null===(e=s.meta)||void 0===e?void 0:e.did,v=(0,c.useState)([]),b=(0,o.Z)(v,2),g=b[0],Z=b[1],y=(0,h.h6)().api;return(0,m.Z)((0,i.Z)((0,r.Z)().mark((function e(){var n,a,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,d){e.next=4;break}return Z([]),e.abrupt("return");case 4:return null===t||void 0===t||t(!0),e.next=7,y.getBlockletSpaceGateways({input:{did:d}});case 7:return n=e.sent,a=n.spaceGateways,e.next=11,x({blockletDid:d,nodeApi:y,spaceGateways:a});case 11:i=e.sent,Z(null!==i&&void 0!==i?i:[]),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error(e.t0),l.Z.error((0,k.Z)(e.t0));case 19:return e.prev=19,null===t||void 0===t||t(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])}))),[d,p,a]),{spaceGateways:g}}({refresh:D,setLoading:P}),C=_.spaceGateways,N=w({appDid:null===s||void 0===s?void 0:s.appDid}),G=(0,c.useState)(!1),A=(0,o.Z)(G,2),I=A[0],T=A[1],O=(0,c.useMemo)((function(){return(0,v.mo)(null===s||void 0===s?void 0:s.environments)}),[s,D,I]),U=(0,c.useState)(!1),z=(0,o.Z)(U,2),K=z[0],R=y({deps:[N],setLoading:z[1]}).backups,F=(0,c.useState)(null===C||void 0===C?void 0:C.find((function(e){return e.endpoint===O}))),M=(0,o.Z)(F,2),V=M[0],$=M[1],X=(0,c.useState)(!1),Y=(0,o.Z)(X,2),W=Y[0],q=Y[1],J=function(){var e,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{deps:[]}).deps,t=(0,f.y0)().blocklet,a=(0,h.h6)().api,u=(0,c.useState)(null),s=(0,o.Z)(u,2),l=s[0],p=s[1];return(0,m.Z)((0,i.Z)((0,r.Z)().mark((function e(){var n,i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===t||void 0===t||null===(n=t.meta)||void 0===n||!n.did){e.next=6;break}return e.next=3,a.getAutoBackup({input:{did:t.meta.did}});case 3:i=e.sent,o=i.autoBackup,p(o);case 6:case"end":return e.stop()}}),e)}))),[null===t||void 0===t||null===(e=t.meta)||void 0===e?void 0:e.did].concat(n)),l}({deps:[W]}),Q=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n,t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C.push((0,a.Z)((0,a.Z)({},n),{},{loading:!0})),e.next=3,u.addBlockletSpaceGateway({input:{did:s.meta.did,spaceGateway:n}});case 3:if(O===t){e.next=6;break}return e.next=6,u.configBlocklet({input:{did:[s.meta.did],configs:[{key:d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t}]}});case 6:ne(),$(n);case 8:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),H=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:if(n.endpoint!==O){e.next=5;break}return l.Z.warning(t("storage.spaces.gateway.delete.failedForConnected")),e.abrupt("return");case 5:return e.next=7,u.deleteBlockletSpaceGateway({input:{did:s.meta.did,spaceGatewayDid:null===n||void 0===n?void 0:n.did}});case 7:ne(),$(n);case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ee=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){var a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.updateBlockletSpaceGateway({input:{did:s.meta.did,where:{did:n.did},spaceGateway:n}});case 2:if(O===n.endpoint){e.next=5;break}return e.next=5,u.configBlocklet({input:{did:[s.meta.did],configs:[{key:d.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:n.endpoint}]}});case 5:l.Z.success(t("storage.spaces.connectedWithName",{name:null!==(a=null===n||void 0===n?void 0:n.name)&&void 0!==a?a:"DID Spaces"})),ne();case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ne=function(){E((function(e){return!e}))},te=function(){var e=(0,i.Z)((0,r.Z)().mark((function e(n){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.updateAutoBackup({input:{did:s.meta.did,autoBackup:n}});case 2:re();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),re=function(){q((function(e){return!e}))};return(0,j.jsx)(B,{value:{spaceGateways:C,selectedSpaceGateway:V,addSpaceGateway:Q,deleteSpaceGateway:H,updateSpaceGateway:ee,refreshSpaceGateways:ne,spaceGatewaysLoading:Z,spaceGatewayIsSelected:function(e){return(null===e||void 0===e?void 0:e.endpoint)===O},updateAutoBackup:te,backupEndpoint:O,backupProgress:N,backups:R,backupsLoading:K,refreshBackupEndpoint:function(){T((function(e){return!e}))},autoBackup:J},children:n})}function L(){return(0,c.useContext)(P)}S.propTypes={children:s().any.isRequired},S.defaultProps={}},60344:function(e,n,t){t.d(n,{hi:function(){return i},od:function(){return a.a}});var r=t(10458),a=t.n(r);a().defaults.timeout=1e4;var i=a().create()},84584:function(e,n,t){t.d(n,{Jf:function(){return y},LQ:function(){return f},Nb:function(){return v},Xv:function(){return p},ag:function(){return b},mo:function(){return h},nD:function(){return d},nU:function(){return k},w2:function(){return x}});var r=t(32723),a=t(34795),i=t(82434),o=t.n(i),c=t(76811),u=t(65873),s=t(2842),l=t(60344);function p(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/"),r=t.at(-4),a=t.at(-2);return(0,s.xn)(n,"space",r,"apps",a,"explorer?key=/apps/".concat(a,"/.did-objects/").concat(a,"/"))}function d(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return(0,s.xn)(n,"space",t)}function f(e){return e.replace(/\/$/,"").split("/").at(-4)}function v(e){return m.apply(this,arguments)}function m(){return(m=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,l.hi.head(n,{timeout:5e3});case 5:return t=e.sent,a=t.headers,e.abrupt("return","true"===a["x-listable"]&&"true"===a["x-readable"]&&"true"===a["x-writeable"]);case 10:return e.prev=10,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function h(e){var n;return(null===e||void 0===e||null===(n=e.find((function(e){return e.key===c.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT})))||void 0===n?void 0:n.value)||""}function b(e){var n=new URL(e);return(0,s.xn)(n.origin,n.pathname)}function x(e){return g.apply(this,arguments)}function g(){return(g=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,i,c,p;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return",!1);case 3:return t=b(n),a=(0,s.xn)(t,"space/api/did/one-click-authorization/token"),e.next=7,l.hi.get(a,{timeout:5e3});case 7:return i=e.sent,c=i.status,p=i.data,e.abrupt("return",200===c&&(0,u.isObject)(p));case 13:return e.prev=13,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function k(e){return Z.apply(this,arguments)}function Z(){return(Z=(0,a.Z)((0,r.Z)().mark((function e(n){var t,a,i;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,o()(n)){e.next=3;break}return e.abrupt("return","");case 3:return e.next=5,l.hi.head(n,{timeout:3e3});case 5:return t=e.sent,a=t.headers,i=a["x-space-name"],e.abrupt("return",i?decodeURIComponent(i):"");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 y(e){var n=e.replace(/\/api\/space\/.+/,""),t=e.replace(/\/$/,"").split("/").at(-4);return(0,s.xn)(n,"/api/space/nft/display?spaceDid=".concat(t))}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6950],{16950:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return _e}});var t,r=i(71171),o=i(33028),a=i(32723),s=i(34795),c=i(96234),l=i(5057),u=i(33518),p=i(85493),d=i(10458),v=i.n(d),f=i(6352),x=i.n(f),m=i(43681),h=i.n(m),g=i(26796),_=i(55898),Z=i.n(_),j=i(79366),w=i(44846),y=i(35474),k=i(68420),b=i(13128),S=i(57471),P=i(96266),C=(0,S.Z)((0,P.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 z(e){var n=e.invitation,i=e.createPassportSvg,t=e.passportColor,r=(0,l.useState)(!1),o=(0,c.Z)(r,2),a=o[0],s=o[1],u=(0,l.useContext)(k.RD).t,p=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),d=(0,l.useMemo)((function(){return i({title:p,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",ownerDid:n.info.appDid,preferredColor:n.info.passportColor||t})}),[n,p]),v=(0,l.useCallback)((function(){s(!0)}),[]),f=(0,l.useCallback)((function(){s(!1)}),[]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(R,{children:(0,P.jsx)("div",{className:"invite-passport__card",onClick:v,children:(0,P.jsx)("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:d}})})}),(0,P.jsx)(b.ZP,{open:a,title:u("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:f,children:n.role.permissions&&n.role.permissions.length>0?(0,P.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,P.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,P.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,P.jsx)(C,{style:{width:"30px",height:"30px"}}),(0,P.jsx)("div",{children:u("invite.emptyPermission")})]})})]})}z.propTypes={invitation:Z().object.isRequired,createPassportSvg:Z().func.isRequired,passportColor:Z().string},z.defaultProps={passportColor:"auto"};var N,R=u.Z.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 cursor: pointer;\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})),F=z,T=i(55152),L=i(92459),I=i(5659),E=i(14491),D=i(70284);function U(e){var n,i,t,r=e.invitation,o=e.checkFn,a=e.onLogin,s=e.onReceive,u=(0,l.useState)(!1),p=(0,c.Z)(u,2),d=p[0],v=p[1],f=(0,k.PE)(),x=f.t,m=f.locale,h=(0,D.Z)().getPassportId;"undefined"!==typeof window&&(n=null===(i=window)||void 0===i||null===(t=i.blocklet)||void 0===t?void 0:t.componentId);var g={passportId:h(),inviteId:r.inviteId,baseUrl:window.location.origin,componentId:n},_=(0,l.useCallback)((function(){v(!1)}),[]),Z=(0,l.useCallback)((function(){v(!1),a.apply(void 0,arguments)}),[a]),j=(0,l.useCallback)((function(){"function"!==typeof s?v(!0):s()}),[]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(q,{children:[(0,P.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:j,children:x("invite.receive")}),(0,P.jsxs)("div",{className:"invite-receive__until",children:[x("invite.validUntil"),(0,E.o0)(r.expireDate,m)]})]}),(0,P.jsx)(T.default,{popup:!0,open:d,className:"connect",action:"invite",checkFn:o,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:Z,onClose:_,locale:m,webWalletUrl:(0,I.yP)(),messages:{title:x("receive.dialog.title"),scan:x("receive.dialog.scan"),confirm:x("receive.dialog.confirm"),success:x("receive.dialog.success")},extraParams:g})]})}U.propTypes={invitation:Z().object.isRequired,checkFn:Z().func.isRequired,onLogin:Z().func,onReceive:Z().func},U.defaultProps={onLogin:function(){},onReceive:null};var M,q=u.Z.div(N||(N=(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})),W=U;function H(e){var n=e.onLogin,i=(0,k.PE)().t;return(0,P.jsx)(A,{children:(0,P.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:i("common.connect")})})}H.propTypes={onLogin:Z().func},H.defaultProps={onLogin:function(){}};var O,A=u.Z.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})),V=H,B=i(72333);function Y(e){var n=e.invitation,i=(0,k.PE)().t,t=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),r=(0,l.useMemo)((function(){return i("invite.message",{name:"{{name}}",role:t,dapp:"{{dapp}}"})}),[i,t]),o=(0,E.E8)(n.info.chainHost,n.inviter.did,"account"),a=(0,E.Zp)(r,{name:function(){return o?(0,P.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,P.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,P.jsxs)(K,{children:[(0,P.jsx)(B.Z,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,P.jsx)("div",{className:"invite-user__message",children:a})]})}Y.propTypes={invitation:Z().object.isRequired};var J,K=u.Z.div(O||(O=(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})),G=Y,Q=i(39948),X=i(76005);function $(e){var n=e.invitation,i=e.type,t=(0,k.PE)().t,r=(0,l.useMemo)((function(){return t("invite.success",{dapp:"{{dapp}}"})}),[t]),o=(0,E.E8)(n.info.chainHost,n.inviter.did,"account"),a="receiver"===i?n.receiver:n.inviter,s=(0,E.Zp)(r,{name:function(){return o?(0,P.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:a.fullName},"name"):a.fullName},dapp:function(){return(0,P.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,P.jsxs)(ne,{children:[(0,P.jsx)(Q.Z,{pt:1,color:"success.main",children:(0,P.jsx)(X.Z,{style:{fontSize:80}})}),(0,P.jsx)("div",{className:"invite-user__message",children:s})]})}$.propTypes={invitation:Z().object.isRequired,type:Z().oneOf("inviter","receiver")},$.defaultProps={type:"inviter"};var ee,ne=u.Z.div(J||(J=(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})),ie=$,te=i(59740),re=["invitation"];function oe(e){var n=e.invitation,i=(0,te.Z)(e,re);return(0,P.jsxs)(se,(0,o.Z)((0,o.Z)({},i),{},{children:[(0,P.jsx)(B.Z,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,P.jsxs)("div",{className:"invite-app__content",children:[(0,P.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,P.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}oe.propTypes={invitation:Z().object.isRequired};var ae,se=u.Z.div(ee||(ee=(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"]))),ce=oe,le=i(35820);function ue(e){var n,i,t=e.getDataFn,r=e.passportColor,o=e.createPassportSvg,a=e.onLoginSuccess,s=e.checkFn,c=e.onReceive,l=(0,j.Z)(t);if(l.loading)return(0,P.jsx)(w.Z,{});if(l.error)return(0,P.jsx)(y.Z,{status:"404",title:null===(n=l.error)||void 0===n||null===(i=n.response)||void 0===i?void 0:i.data,description:""});var u="success"===l.data.status,p=u?ie:G,d=u?V:W;return(0,P.jsxs)(de,{className:"page-invite__wrapper",children:[(0,P.jsx)(ce,{invitation:l.data}),(0,P.jsxs)("div",{className:"page-invite__card",children:[(0,P.jsx)(p,{invitation:l.data}),(0,P.jsx)(F,{invitation:l.data,createPassportSvg:o,passportColor:r}),(0,P.jsx)(d,{invitation:l.data,onLogin:a,checkFn:s,onReceive:c})]})]})}ue.propTypes={getDataFn:Z().func.isRequired,checkFn:Z().func.isRequired,createPassportSvg:Z().func.isRequired,onLoginSuccess:Z().func,onReceive:Z().func,passportColor:Z().string},ue.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null};var pe,de=u.Z.div(ae||(ae=(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"]))),ve=(0,le.Z)(ue),fe=i(25339),xe=i(75793),me=i(74094);function he(e){var n=(0,fe.Tt)(),i=n.api,t=n.session,r=(0,xe.h6)().info,u=(0,p.useLocation)(),d=(0,p.useNavigate)(),f=(0,k.PE)(),m=f.t,_=f.locale,Z=(0,T.useSecurity)().encryptKey,j=(0,l.useState)(!1),y=(0,c.Z)(j,2),b=y[0],S=y[1],C=(0,l.useMemo)((function(){return new URLSearchParams(u.search).get("inviteId")}),[u]),z=(0,g.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,t,o,s,c,l,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,i.get("/api/invitation",{params:{inviteId:C}});case 4:if(t=e.sent,o=t.data,!(s=!!h()(r,"ownerNft.did")&&"owner"===o.role.name)){e.next=17;break}return(c=new URL(window.location.href)).pathname=x()((0,me.Y5)(),"/api/did/invite/token"),c.searchParams.set("_ek_",Z),c.searchParams.set("inviteId",C),e.next=14,i.get(c.href);case 14:l=e.sent,u=l.data,n=u;case 17:return e.abrupt("return",{invitation:o,nextWorkflow:n,needReceiveNFT:s});case 18:case"end":return e.stop()}}),e)})))),N=(0,l.useCallback)((function(){S(!0)}),[]),R=(0,l.useCallback)((function(){if(z.error)throw z.error;return z.value.invitation}),[z]),F=(0,l.useCallback)(function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,i){var r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&(0,me.ZB)(i(n.sessionToken)),(r=new URLSearchParams(u.search)).delete("inviteId"),o=r.toString(),e.next=6,t.refresh();case 6:d("/".concat(o?"?".concat(o):o),{replace:!0});case 7:case"end":return e.stop()}}),e)})));return function(n,i){return e.apply(this,arguments)}}(),[u,d,t]);if(z.loading)return(0,P.jsx)(w.Z,{});return(0,P.jsxs)(ge,{className:"page-invite",children:[h()(z,"value.needReceiveNFT")&&(0,P.jsx)(T.default,{action:"login",popup:!0,className:"connect",open:b,locale:_,baseUrl:r.launcher.url,checkFn:v().create({baseURL:r.launcher.url}).get,onSuccess:function(e,n){var r=new URL(window.location.href);r.pathname=x()((0,me.Y5)(),"/api/did/invite/status"),r.searchParams.set("_t_",z.value.nextWorkflow.token),r.searchParams.set("locale",_);var o=setInterval((0,s.Z)((0,a.Z)().mark((function e(){var s,c;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.get(r.href);case 2:s=e.sent,"succeed"===(c=s.data).status&&(clearInterval(o),t.updateConnectedInfo(c),F(c,Z?n:function(){}));case 5:case"end":return e.stop()}}),e)}))),2e3)},onClose:function(){S(!1)},checkTimeout:3e5,webWalletUrl:(0,me.yP)(r),extraParams:{nw:h()(z,"value.nextWorkflow.url")},messages:{title:m("invite.transferNFTDialog.title",{name:r.name}),scan:m("invite.transferNFTDialog.scan"),confirm:m("invite.transferNFTDialog.confirm"),success:m("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),(0,P.jsx)(ve,(0,o.Z)((0,o.Z)({},e),{},{getDataFn:R,createPassportSvg:function(e){return(0,me.Ju)(e,r)},checkFn:i.get,onLoginSuccess:F,passportColor:"default",onReceive:h()(z,"value.needReceiveNFT")?N:null}))]})}var ge=u.Z.div(pe||(pe=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"])));function _e(){return(0,xe.h6)().loading?(0,P.jsx)(w.Z,{}):(0,P.jsx)(he,{})}},51281:function(e,n,i){var t=i(77668),r=i(2586),o=i(56944);e.exports={translations:{zh:t(o),en:t(r)}}},35820:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var t=i(33028),r=i(68420),o=i(51281),a=i(96266);function s(e){return function(n){return(0,a.jsx)(r.Iw,{translations:o.translations,children:(0,a.jsx)(e,(0,t.Z)({},n))})}}},92459:function(e,n,i){"use strict";i.d(n,{Z:function(){return p}});var t=i(33028),r=i(59740),o=i(55898),a=i.n(o),s=i(28726),c=i(81089),l=i(96266),u=["children"];function p(e){var n=e.children,i=(0,r.Z)(e,u);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"}})]}))}p.propTypes={children:a().any},p.defaultProps={children:""}},35474:function(e,n,i){"use strict";i.d(n,{Z:function(){return W}});var t={};i.r(t),i.d(t,{ComingSoon:function(){return L},Error:function(){return F},Forbidden:function(){return N},Info:function(){return I},InternalServerError:function(){return R},Maintenance:function(){return T},PageNotFound:function(){return z}});var r,o=i(59740),a=i(56666),s=i(33028),c=i(55898),l=i.n(c),u=i(71171),p=i(39948),d=i(47685),v=i(96266),f=["icon","title","description","extra"];function x(e){var n=e.icon,i=e.title,t=e.description,r=e.extra,a=(0,o.Z)(e,f);return(0,v.jsxs)(m,(0,s.Z)((0,s.Z)({},a),{},{children:[n,"string"===typeof i?(0,v.jsx)(p.Z,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:i}):i,"string"===typeof t?(0,v.jsx)(p.Z,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:t}):t,(0,v.jsx)(p.Z,{mt:3,children:r})]}))}x.propTypes={icon:l().element,title:l().oneOfType([l().string,l().element]),description:l().oneOfType([l().string,l().element]),actions:l().any,extra:l().element},x.defaultProps={icon:void 0,title:"",description:"",actions:null,extra:void 0};var m=(0,d.zo)("div")(r||(r=(0,u.Z)(["\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n padding: 16px;\n\n background-color: #f7f8fb;\n"]))),h=x,g=i(36134),_=i(11532),Z={en:{404:{title:"404 - Page Not Found",description:"Sorry about that, the page you are looking for does not exist or has been moved."},403:{title:"403 \u2013 Forbidden",description:"Sorry, you are not authorized to access this page."},500:{title:"500 - Internal Server Error",description:"An internal server error has occurred. Please try again later."},error:{title:"Application Error",description:"Something went wrong. Please try again later."},maintenance:{title:"Offline for maintenance",description:"This app is undergoing maintenance right now. Please check back later."},comingSoon:{title:"Coming Soon",description:"Our website is under construction. We'll be here soon with our new website."}},zh:{404:{title:"404 - \u9875\u9762\u672a\u627e\u5230",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6b63\u5728\u5bfb\u627e\u7684\u9875\u9762\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u79fb\u52a8\u3002"},403:{title:"403 \u2013 \u7981\u6b62\u8bbf\u95ee",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u6b64\u9875\u9762\u3002"},500:{title:"500 - \u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef",description:"\u53d1\u751f\u4e86\u4e00\u4e2a\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},error:{title:"Application Error",description:"\u51fa\u9519\u4e86, \u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},maintenance:{title:"\u7ef4\u62a4\u4e2d",description:"\u5e94\u7528\u7a0b\u5e8f\u6b63\u5728\u8fdb\u884c\u7ef4\u62a4\u3002\u8bf7\u7a0d\u540e\u518d\u67e5\u770b\u3002"},comingSoon:{title:"\u5373\u5c06\u4e0a\u7ebf",description:"\u6211\u4eec\u7684\u7f51\u7ad9\u6b63\u5728\u5efa\u8bbe\u4e2d\u3002\u6211\u4eec\u5f88\u5feb\u5c31\u4f1a\u5728\u8fd9\u91cc\u63a8\u51fa\u6211\u4eec\u7684\u65b0\u7f51\u7ad9\u3002"}}},j=i(68420),w=["locale"],y=["locale"],k=["locale"],b=["locale"],S=["locale"],P=["locale"],C=function(e){e=["zh","en"].includes(e)?e:"";var n=((0,j.PE)()||{locale:"en"}).locale,i=e||n;return Z[i]?i:"en"};function z(e){var n=e.locale,i=(0,o.Z)(e,w);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][404].title,description:Z[n][404].description},i))}function N(e){var n=e.locale,i=(0,o.Z)(e,y);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][403].title,description:Z[n][403].description},i))}function R(e){var n=e.locale,i=(0,o.Z)(e,k);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][500].title,description:Z[n][500].description},i))}function F(e){var n=e.locale,i=(0,o.Z)(e,b);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n].error.title,description:Z[n].error.description},i))}function T(e){var n=e.locale,i=(0,o.Z)(e,S);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{}),title:Z[n].maintenance.title,description:Z[n].maintenance.description},i))}function L(e){var n=e.locale,i=(0,o.Z)(e,P);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{}),title:Z[n].comingSoon.title,description:Z[n].comingSoon.description},i))}function I(e){return(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{})},e))}function E(e){var n=(0,d.Fg)();return(0,v.jsx)(_.Z,(0,s.Z)({style:{color:n.palette.error.main,fontSize:72}},e))}function D(e){var n=(0,d.Fg)();return(0,v.jsx)(g.Z,(0,s.Z)({style:{color:n.palette.info.main,fontSize:72}},e))}z.status="404",N.status="403",R.status="500",F.status="error",T.status="maintenance",L.status="comingSoon",I.status="info";var U=["status"],M=Object.keys(t).reduce((function(e,n){return(0,s.Z)((0,s.Z)({},e),{},(0,a.Z)({},t[n].status||n,t[n]))}),{});function q(e){var n=e.status,i=(0,o.Z)(e,U);if(n){if(M[n]){var t=M[n];return(0,v.jsx)(t,(0,s.Z)({},i))}throw new Error("Please provide a valid status for Result.status. Valid values are: ".concat(Object.keys(M).join(", ")))}return(0,v.jsx)(h,(0,s.Z)({},i))}q.propTypes=(0,s.Z)({status:l().oneOfType([l().string,l().number])},h.propTypes),q.defaultProps={status:""};var W=q},11532:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"}),"CancelRounded");n.Z=a},76005:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.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=a},36134:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.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 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");n.Z=a}}]);
1
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6950],{16950:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return _e}});var t,r=i(71171),o=i(33028),a=i(32723),s=i(34795),c=i(96234),l=i(5057),u=i(33518),p=i(85493),d=i(10458),v=i.n(d),f=i(6352),x=i.n(f),m=i(43681),h=i.n(m),g=i(26796),_=i(55898),Z=i.n(_),j=i(79366),w=i(44846),y=i(35474),k=i(68420),b=i(13128),S=i(57471),P=i(96266),C=(0,S.Z)((0,P.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 z(e){var n=e.invitation,i=e.createPassportSvg,t=e.passportColor,r=(0,l.useState)(!1),o=(0,c.Z)(r,2),a=o[0],s=o[1],u=(0,l.useContext)(k.RD).t,p=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),d=(0,l.useMemo)((function(){return i({title:p,issuer:n.info.name,issuerDid:n.info.appDid,ownerName:"Your Name",ownerDid:n.info.appDid,preferredColor:n.info.passportColor||t})}),[n,p]),v=(0,l.useCallback)((function(){s(!0)}),[]),f=(0,l.useCallback)((function(){s(!1)}),[]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(R,{children:(0,P.jsx)("div",{className:"invite-passport__card",onClick:v,children:(0,P.jsx)("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:d}})})}),(0,P.jsx)(b.ZP,{open:a,title:u("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:f,children:n.role.permissions&&n.role.permissions.length>0?(0,P.jsx)("ul",{style:{listStyle:"circle",padding:"0 20px"},children:n.role.permissions.map((function(e){return(0,P.jsx)("li",{style:{listStyle:"circle"},children:e.description},e.name)}))}):(0,P.jsxs)("div",{style:{color:"#999",textAlign:"center"},children:[(0,P.jsx)(C,{style:{width:"30px",height:"30px"}}),(0,P.jsx)("div",{children:u("invite.emptyPermission")})]})})]})}z.propTypes={invitation:Z().object.isRequired,createPassportSvg:Z().func.isRequired,passportColor:Z().string},z.defaultProps={passportColor:"auto"};var N,R=u.Z.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 cursor: pointer;\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})),F=z,T=i(55152),L=i(92459),I=i(5659),E=i(14491),D=i(70284);function U(e){var n,i,t,r=e.invitation,o=e.checkFn,a=e.onLogin,s=e.onReceive,u=(0,l.useState)(!1),p=(0,c.Z)(u,2),d=p[0],v=p[1],f=(0,k.PE)(),x=f.t,m=f.locale,h=(0,D.Z)().getPassportId;"undefined"!==typeof window&&(n=null===(i=window)||void 0===i||null===(t=i.blocklet)||void 0===t?void 0:t.componentId);var g={passportId:h(),inviteId:r.inviteId,baseUrl:window.location.origin,componentId:n},_=(0,l.useCallback)((function(){v(!1)}),[]),Z=(0,l.useCallback)((function(){v(!1),a.apply(void 0,arguments)}),[a]),j=(0,l.useCallback)((function(){"function"!==typeof s?v(!0):s()}),[]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(q,{children:[(0,P.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:j,children:x("invite.receive")}),(0,P.jsxs)("div",{className:"invite-receive__until",children:[x("invite.validUntil"),(0,E.o0)(r.expireDate,m)]})]}),(0,P.jsx)(T.default,{popup:!0,open:d,className:"connect",action:"invite",checkFn:o,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:Z,onClose:_,locale:m,webWalletUrl:(0,I.yP)(),messages:{title:x("receive.dialog.title"),scan:x("receive.dialog.scan"),confirm:x("receive.dialog.confirm"),success:x("receive.dialog.success")},extraParams:g})]})}U.propTypes={invitation:Z().object.isRequired,checkFn:Z().func.isRequired,onLogin:Z().func,onReceive:Z().func},U.defaultProps={onLogin:function(){},onReceive:null};var M,q=u.Z.div(N||(N=(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})),W=U;function H(e){var n=e.onLogin,i=(0,k.PE)().t;return(0,P.jsx)(A,{children:(0,P.jsx)(L.Z,{size:"large",variant:"contained",className:"invite-receive__button","data-cy":"invite-receive-passport",color:"primary",onClick:function(){return n()},children:i("common.connect")})})}H.propTypes={onLogin:Z().func},H.defaultProps={onLogin:function(){}};var O,A=u.Z.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})),V=H,B=i(72333);function Y(e){var n=e.invitation,i=(0,k.PE)().t,t=(0,l.useMemo)((function(){return(n.role.title||n.role.name).toUpperCase()}),[n.role.title,n.role.name]),r=(0,l.useMemo)((function(){return i("invite.message",{name:"{{name}}",role:t,dapp:"{{dapp}}"})}),[i,t]),o=(0,E.E8)(n.info.chainHost,n.inviter.did,"account"),a=(0,E.Zp)(r,{name:function(){return o?(0,P.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:n.inviter.fullName},"name"):n.inviter.fullName},dapp:function(){return(0,P.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,P.jsxs)(K,{children:[(0,P.jsx)(B.Z,{did:n.inviter.did,src:encodeURI(n.inviter.avatar),size:80,shape:"circle",variant:"circle"}),(0,P.jsx)("div",{className:"invite-user__message",children:a})]})}Y.propTypes={invitation:Z().object.isRequired};var J,K=u.Z.div(O||(O=(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})),G=Y,Q=i(39948),X=i(76005);function $(e){var n=e.invitation,i=e.type,t=(0,k.PE)().t,r=(0,l.useMemo)((function(){return t("invite.success",{dapp:"{{dapp}}"})}),[t]),o=(0,E.E8)(n.info.chainHost,n.inviter.did,"account"),a="receiver"===i?n.receiver:n.inviter,s=(0,E.Zp)(r,{name:function(){return o?(0,P.jsx)("a",{target:"_blank",href:o,className:"invite-user__link",rel:"noreferrer",children:a.fullName},"name"):a.fullName},dapp:function(){return(0,P.jsx)("a",{target:"_blank",href:n.info.url,className:"invite-user__link",rel:"noreferrer",children:n.info.name},"dapp")}});return(0,P.jsxs)(ne,{children:[(0,P.jsx)(Q.Z,{pt:1,color:"success.main",children:(0,P.jsx)(X.Z,{style:{fontSize:80}})}),(0,P.jsx)("div",{className:"invite-user__message",children:s})]})}$.propTypes={invitation:Z().object.isRequired,type:Z().oneOf("inviter","receiver")},$.defaultProps={type:"inviter"};var ee,ne=u.Z.div(J||(J=(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})),ie=$,te=i(59740),re=["invitation"];function oe(e){var n=e.invitation,i=(0,te.Z)(e,re);return(0,P.jsxs)(se,(0,o.Z)((0,o.Z)({},i),{},{children:[(0,P.jsx)(B.Z,{did:n.info.did,src:n.info.logo,style:{flexShrink:0}}),(0,P.jsxs)("div",{className:"invite-app__content",children:[(0,P.jsx)("div",{className:"invite-app__title",children:n.info.name}),(0,P.jsx)("div",{className:"invite-app__description",children:n.info.description})]})]}))}oe.propTypes={invitation:Z().object.isRequired};var ae,se=u.Z.div(ee||(ee=(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"]))),ce=oe,le=i(35820);function ue(e){var n,i,t=e.getDataFn,r=e.passportColor,o=e.createPassportSvg,a=e.onLoginSuccess,s=e.checkFn,c=e.onReceive,l=(0,j.Z)(t);if(l.loading)return(0,P.jsx)(w.Z,{});if(l.error)return(0,P.jsx)(y.Z,{status:"404",title:null===(n=l.error)||void 0===n||null===(i=n.response)||void 0===i?void 0:i.data,description:""});var u="success"===l.data.status,p=u?ie:G,d=u?V:W;return(0,P.jsxs)(de,{className:"page-invite__wrapper",children:[(0,P.jsx)(ce,{invitation:l.data}),(0,P.jsxs)("div",{className:"page-invite__card",children:[(0,P.jsx)(p,{invitation:l.data}),(0,P.jsx)(F,{invitation:l.data,createPassportSvg:o,passportColor:r}),(0,P.jsx)(d,{invitation:l.data,onLogin:a,checkFn:s,onReceive:c})]})]})}ue.propTypes={getDataFn:Z().func.isRequired,checkFn:Z().func.isRequired,createPassportSvg:Z().func.isRequired,onLoginSuccess:Z().func,onReceive:Z().func,passportColor:Z().string},ue.defaultProps={onLoginSuccess:function(){},passportColor:"auto",onReceive:null};var pe,de=u.Z.div(ae||(ae=(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"]))),ve=(0,le.Z)(ue),fe=i(25339),xe=i(75793),me=i(74094);function he(e){var n=(0,fe.Tt)(),i=n.api,t=n.session,r=(0,xe.h6)().info,u=(0,p.useLocation)(),d=(0,p.useNavigate)(),f=(0,k.PE)(),m=f.t,_=f.locale,Z=(0,T.useSecurity)(),j=Z.encryptKey,y=Z.decrypt,b=(0,l.useState)(!1),S=(0,c.Z)(b,2),C=S[0],z=S[1],N=(0,l.useMemo)((function(){return new URLSearchParams(u.search).get("inviteId")}),[u]),R=(0,g.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,t,o,s,c,l,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,i.get("/api/invitation",{params:{inviteId:N}});case 4:if(t=e.sent,o=t.data,!(s=!!h()(r,"ownerNft.did")&&"owner"===o.role.name)){e.next=17;break}return(c=new URL(window.location.href)).pathname=x()((0,me.Y5)(),"/api/did/invite/token"),c.searchParams.set("_ek_",j),c.searchParams.set("inviteId",N),e.next=14,i.get(c.href);case 14:l=e.sent,u=l.data,n=u;case 17:return e.abrupt("return",{invitation:o,nextWorkflow:n,needReceiveNFT:s});case 18:case"end":return e.stop()}}),e)})))),F=(0,l.useCallback)((function(){z(!0)}),[]),L=(0,l.useCallback)((function(){if(R.error)throw R.error;return R.value.invitation}),[R]),I=(0,l.useCallback)(function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var i,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&(0,me.ZB)(y(n.sessionToken)),(i=new URLSearchParams(u.search)).delete("inviteId"),r=i.toString(),e.next=6,t.refresh();case 6:d("/".concat(r?"?".concat(r):r),{replace:!0});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[u,d,t]);if(R.loading)return(0,P.jsx)(w.Z,{});return(0,P.jsxs)(ge,{className:"page-invite",children:[h()(R,"value.needReceiveNFT")&&(0,P.jsx)(T.default,{action:"login",popup:!0,className:"connect",open:C,locale:_,baseUrl:r.launcher.url,checkFn:v().create({baseURL:r.launcher.url}).get,onSuccess:function(){var e=new URL(window.location.href);e.pathname=x()((0,me.Y5)(),"/api/did/invite/status"),e.searchParams.set("_t_",R.value.nextWorkflow.token),e.searchParams.set("locale",_);var n=setInterval((0,s.Z)((0,a.Z)().mark((function r(){var o,s;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i.get(e.href);case 2:o=r.sent,"succeed"===(s=o.data).status&&(clearInterval(n),t.updateConnectedInfo(s),I(s));case 5:case"end":return r.stop()}}),r)}))),2e3)},onClose:function(){z(!1)},checkTimeout:3e5,webWalletUrl:(0,me.yP)(r),extraParams:{nw:h()(R,"value.nextWorkflow.url")},messages:{title:m("invite.transferNFTDialog.title",{name:r.name}),scan:m("invite.transferNFTDialog.scan"),confirm:m("invite.transferNFTDialog.confirm"),success:m("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),(0,P.jsx)(ve,(0,o.Z)((0,o.Z)({},e),{},{getDataFn:L,createPassportSvg:function(e){return(0,me.Ju)(e,r)},checkFn:i.get,onLoginSuccess:I,passportColor:"default",onReceive:h()(R,"value.needReceiveNFT")?F:null}))]})}var ge=u.Z.div(pe||(pe=(0,r.Z)(["\n width: 100vw;\n height: 100%;\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #f6f8fa;\n overflow: auto;\n padding: 20px;\n"])));function _e(){return(0,xe.h6)().loading?(0,P.jsx)(w.Z,{}):(0,P.jsx)(he,{})}},51281:function(e,n,i){var t=i(77668),r=i(2586),o=i(56944);e.exports={translations:{zh:t(o),en:t(r)}}},35820:function(e,n,i){"use strict";i.d(n,{Z:function(){return s}});var t=i(33028),r=i(68420),o=i(51281),a=i(96266);function s(e){return function(n){return(0,a.jsx)(r.Iw,{translations:o.translations,children:(0,a.jsx)(e,(0,t.Z)({},n))})}}},92459:function(e,n,i){"use strict";i.d(n,{Z:function(){return p}});var t=i(33028),r=i(59740),o=i(55898),a=i.n(o),s=i(28726),c=i(81089),l=i(96266),u=["children"];function p(e){var n=e.children,i=(0,r.Z)(e,u);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"}})]}))}p.propTypes={children:a().any},p.defaultProps={children:""}},35474:function(e,n,i){"use strict";i.d(n,{Z:function(){return W}});var t={};i.r(t),i.d(t,{ComingSoon:function(){return L},Error:function(){return F},Forbidden:function(){return N},Info:function(){return I},InternalServerError:function(){return R},Maintenance:function(){return T},PageNotFound:function(){return z}});var r,o=i(59740),a=i(56666),s=i(33028),c=i(55898),l=i.n(c),u=i(71171),p=i(39948),d=i(47685),v=i(96266),f=["icon","title","description","extra"];function x(e){var n=e.icon,i=e.title,t=e.description,r=e.extra,a=(0,o.Z)(e,f);return(0,v.jsxs)(m,(0,s.Z)((0,s.Z)({},a),{},{children:[n,"string"===typeof i?(0,v.jsx)(p.Z,{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center",children:i}):i,"string"===typeof t?(0,v.jsx)(p.Z,{mt:1,fontSize:14,color:"#7F828B",textAlign:"center",children:t}):t,(0,v.jsx)(p.Z,{mt:3,children:r})]}))}x.propTypes={icon:l().element,title:l().oneOfType([l().string,l().element]),description:l().oneOfType([l().string,l().element]),actions:l().any,extra:l().element},x.defaultProps={icon:void 0,title:"",description:"",actions:null,extra:void 0};var m=(0,d.zo)("div")(r||(r=(0,u.Z)(["\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n padding: 16px;\n\n background-color: #f7f8fb;\n"]))),h=x,g=i(36134),_=i(11532),Z={en:{404:{title:"404 - Page Not Found",description:"Sorry about that, the page you are looking for does not exist or has been moved."},403:{title:"403 \u2013 Forbidden",description:"Sorry, you are not authorized to access this page."},500:{title:"500 - Internal Server Error",description:"An internal server error has occurred. Please try again later."},error:{title:"Application Error",description:"Something went wrong. Please try again later."},maintenance:{title:"Offline for maintenance",description:"This app is undergoing maintenance right now. Please check back later."},comingSoon:{title:"Coming Soon",description:"Our website is under construction. We'll be here soon with our new website."}},zh:{404:{title:"404 - \u9875\u9762\u672a\u627e\u5230",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6b63\u5728\u5bfb\u627e\u7684\u9875\u9762\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u79fb\u52a8\u3002"},403:{title:"403 \u2013 \u7981\u6b62\u8bbf\u95ee",description:"\u5f88\u62b1\u6b49\uff0c\u60a8\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u6b64\u9875\u9762\u3002"},500:{title:"500 - \u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef",description:"\u53d1\u751f\u4e86\u4e00\u4e2a\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},error:{title:"Application Error",description:"\u51fa\u9519\u4e86, \u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"},maintenance:{title:"\u7ef4\u62a4\u4e2d",description:"\u5e94\u7528\u7a0b\u5e8f\u6b63\u5728\u8fdb\u884c\u7ef4\u62a4\u3002\u8bf7\u7a0d\u540e\u518d\u67e5\u770b\u3002"},comingSoon:{title:"\u5373\u5c06\u4e0a\u7ebf",description:"\u6211\u4eec\u7684\u7f51\u7ad9\u6b63\u5728\u5efa\u8bbe\u4e2d\u3002\u6211\u4eec\u5f88\u5feb\u5c31\u4f1a\u5728\u8fd9\u91cc\u63a8\u51fa\u6211\u4eec\u7684\u65b0\u7f51\u7ad9\u3002"}}},j=i(68420),w=["locale"],y=["locale"],k=["locale"],b=["locale"],S=["locale"],P=["locale"],C=function(e){e=["zh","en"].includes(e)?e:"";var n=((0,j.PE)()||{locale:"en"}).locale,i=e||n;return Z[i]?i:"en"};function z(e){var n=e.locale,i=(0,o.Z)(e,w);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][404].title,description:Z[n][404].description},i))}function N(e){var n=e.locale,i=(0,o.Z)(e,y);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][403].title,description:Z[n][403].description},i))}function R(e){var n=e.locale,i=(0,o.Z)(e,k);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n][500].title,description:Z[n][500].description},i))}function F(e){var n=e.locale,i=(0,o.Z)(e,b);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(E,{}),title:Z[n].error.title,description:Z[n].error.description},i))}function T(e){var n=e.locale,i=(0,o.Z)(e,S);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{}),title:Z[n].maintenance.title,description:Z[n].maintenance.description},i))}function L(e){var n=e.locale,i=(0,o.Z)(e,P);return n=C(n),(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{}),title:Z[n].comingSoon.title,description:Z[n].comingSoon.description},i))}function I(e){return(0,v.jsx)(h,(0,s.Z)({icon:(0,v.jsx)(D,{})},e))}function E(e){var n=(0,d.Fg)();return(0,v.jsx)(_.Z,(0,s.Z)({style:{color:n.palette.error.main,fontSize:72}},e))}function D(e){var n=(0,d.Fg)();return(0,v.jsx)(g.Z,(0,s.Z)({style:{color:n.palette.info.main,fontSize:72}},e))}z.status="404",N.status="403",R.status="500",F.status="error",T.status="maintenance",L.status="comingSoon",I.status="info";var U=["status"],M=Object.keys(t).reduce((function(e,n){return(0,s.Z)((0,s.Z)({},e),{},(0,a.Z)({},t[n].status||n,t[n]))}),{});function q(e){var n=e.status,i=(0,o.Z)(e,U);if(n){if(M[n]){var t=M[n];return(0,v.jsx)(t,(0,s.Z)({},i))}throw new Error("Please provide a valid status for Result.status. Valid values are: ".concat(Object.keys(M).join(", ")))}return(0,v.jsx)(h,(0,s.Z)({},i))}q.propTypes=(0,s.Z)({status:l().oneOfType([l().string,l().number])},h.propTypes),q.defaultProps={status:""};var W=q},11532:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.9959.9959 0 0 1 0-1.41L10.59 12 7.7 9.11a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41z"}),"CancelRounded");n.Z=a},76005:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.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=a},36134:function(e,n,i){"use strict";var t=i(71600);n.Z=void 0;var r=t(i(56930)),o=i(96266),a=(0,r.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 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");n.Z=a}}]);