@abtnode/blocklet-services 1.16.14-beta-cb53c14b → 1.16.14-beta-963cb583

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/api/libs/connect/session.js +20 -18
  2. package/api/libs/image.js +16 -6
  3. package/api/routes/oauth.js +15 -7
  4. package/api/routes/user.js +2 -2
  5. package/build/asset-manifest.json +79 -73
  6. package/build/index.html +1 -1
  7. package/build/service-worker.js +1 -1
  8. package/build/service-worker.js.map +1 -1
  9. package/build/static/js/1132.c008fe16.chunk.js +3 -0
  10. package/build/static/js/1480.f89236fc.chunk.js +2 -0
  11. package/build/static/js/1565.4331eeaf.chunk.js +2 -0
  12. package/build/static/js/1660.e2ff5a21.chunk.js +2 -0
  13. package/build/static/js/1760.0f19b880.chunk.js +2 -0
  14. package/build/static/js/{2291.497ddae4.chunk.js → 2291.80adfd96.chunk.js} +2 -2
  15. package/build/static/js/{2653.0a8b831d.chunk.js → 2653.58a5430b.chunk.js} +2 -2
  16. package/build/static/js/{2664.706462f0.chunk.js → 2664.a42cbb96.chunk.js} +2 -2
  17. package/build/static/js/3179.03c92dcb.chunk.js +2 -0
  18. package/build/static/js/3551.a3cfa6aa.chunk.js +2 -0
  19. package/build/static/js/3593.98d9341a.chunk.js +2 -0
  20. package/build/static/js/{3595.3ac8a5df.chunk.js → 3595.d4510796.chunk.js} +3 -3
  21. package/build/static/js/4164.5adbbbba.chunk.js +2 -0
  22. package/build/static/js/{445.1f8bed72.chunk.js → 445.9fc4bb72.chunk.js} +3 -3
  23. package/build/static/js/4716.58477c5c.chunk.js +2 -0
  24. package/build/static/js/{5176.31463f87.chunk.js → 5176.9f08e927.chunk.js} +2 -2
  25. package/build/static/js/{5355.da516161.chunk.js → 5355.4b07ad55.chunk.js} +2 -2
  26. package/build/static/js/5465.f32033e1.chunk.js +2 -0
  27. package/build/static/js/{5859.64cba18d.chunk.js → 5859.9b88d959.chunk.js} +2 -2
  28. package/build/static/js/{617.324a4c7b.chunk.js → 617.ecc73170.chunk.js} +3 -3
  29. package/build/static/js/{6186.c6880563.chunk.js → 6186.cc8ce4a4.chunk.js} +2 -2
  30. package/build/static/js/6378.29466d9e.chunk.js +2 -0
  31. package/build/static/js/6700.e22cc266.chunk.js +2 -0
  32. package/build/static/js/6856.163537c7.chunk.js +2 -0
  33. package/build/static/js/7.c01bf0f4.chunk.js +2 -0
  34. package/build/static/js/7272.608c5875.chunk.js +3 -0
  35. package/build/static/js/8143.6b921364.chunk.js +2 -0
  36. package/build/static/js/8179.34de3f17.chunk.js +2 -0
  37. package/build/static/js/8365.9904e38d.chunk.js +3 -0
  38. package/build/static/js/8527.437a8769.chunk.js +2 -0
  39. package/build/static/js/{878.fe952f7d.chunk.js → 878.4424e6e9.chunk.js} +2 -2
  40. package/build/static/js/9107.967c2ac1.chunk.js +2 -0
  41. package/build/static/js/9260.d8f59a75.chunk.js +3 -0
  42. package/build/static/js/{9409.8f1cfa24.chunk.js → 9409.0d5d4de2.chunk.js} +2 -2
  43. package/build/static/js/9620.4b7c9e8b.chunk.js +2 -0
  44. package/build/static/js/9657.e974d577.chunk.js +2 -0
  45. package/build/static/js/9899.18509ac9.chunk.js +2 -0
  46. package/build/static/js/main.081afde0.js +3 -0
  47. package/build/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg +59 -0
  48. package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +3 -0
  49. package/package.json +35 -35
  50. package/api/libs/translate.js +0 -12
  51. package/build/static/js/1095.d6f2ef77.chunk.js +0 -2
  52. package/build/static/js/1660.13706e35.chunk.js +0 -2
  53. package/build/static/js/1830.7b197c4d.chunk.js +0 -2
  54. package/build/static/js/2216.089c1302.chunk.js +0 -3
  55. package/build/static/js/2724.3fa7fc88.chunk.js +0 -2
  56. package/build/static/js/2750.edf7d107.chunk.js +0 -2
  57. package/build/static/js/3110.9ff701b3.chunk.js +0 -3
  58. package/build/static/js/3241.eeba87d0.chunk.js +0 -2
  59. package/build/static/js/3593.afccdc50.chunk.js +0 -2
  60. package/build/static/js/4009.65d1c083.chunk.js +0 -2
  61. package/build/static/js/4164.3f21a941.chunk.js +0 -2
  62. package/build/static/js/4547.5b51d4f3.chunk.js +0 -2
  63. package/build/static/js/4715.c191216b.chunk.js +0 -2
  64. package/build/static/js/4716.b9fa5e09.chunk.js +0 -2
  65. package/build/static/js/4846.aa1ac1ac.chunk.js +0 -2
  66. package/build/static/js/6658.bce97eda.chunk.js +0 -2
  67. package/build/static/js/7056.5e345b05.chunk.js +0 -3
  68. package/build/static/js/7272.99410ed2.chunk.js +0 -3
  69. package/build/static/js/8610.89893a07.chunk.js +0 -2
  70. package/build/static/js/9292.803f7e05.chunk.js +0 -2
  71. package/build/static/js/9620.585d8c25.chunk.js +0 -2
  72. package/build/static/js/9899.3267a1e3.chunk.js +0 -2
  73. package/build/static/js/9996.9a2238b0.chunk.js +0 -2
  74. package/build/static/js/main.56713b6c.js +0 -3
  75. /package/build/static/js/{2216.089c1302.chunk.js.LICENSE.txt → 1132.c008fe16.chunk.js.LICENSE.txt} +0 -0
  76. /package/build/static/js/{3595.3ac8a5df.chunk.js.LICENSE.txt → 3595.d4510796.chunk.js.LICENSE.txt} +0 -0
  77. /package/build/static/js/{445.1f8bed72.chunk.js.LICENSE.txt → 445.9fc4bb72.chunk.js.LICENSE.txt} +0 -0
  78. /package/build/static/js/{617.324a4c7b.chunk.js.LICENSE.txt → 617.ecc73170.chunk.js.LICENSE.txt} +0 -0
  79. /package/build/static/js/{7272.99410ed2.chunk.js.LICENSE.txt → 7272.608c5875.chunk.js.LICENSE.txt} +0 -0
  80. /package/build/static/js/{3110.9ff701b3.chunk.js.LICENSE.txt → 8365.9904e38d.chunk.js.LICENSE.txt} +0 -0
  81. /package/build/static/js/{7056.5e345b05.chunk.js.LICENSE.txt → 9260.d8f59a75.chunk.js.LICENSE.txt} +0 -0
  82. /package/build/static/js/{main.56713b6c.js.LICENSE.txt → main.081afde0.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2653],{86384:function(e,n,t){n.h1=void 0;var r=t(59505);function i(e){return(null===e||void 0===e?void 0:e.connectedAccounts)||[]}function o(e){return i(e).find((function(e){return e.provider===r.LOGIN_PROVIDER.WALLET}))}n.h1=function(e){var n=o(e);return null===n||void 0===n?void 0:n.did}},80714:function(e,n,t){t.d(n,{Z:function(){return k}});var r,i=t(71171),o=t(32723),a=t(34795),s=t(33028),c=t(96234),l=t(59740),u=t(30969),d=t(24974),p=t.n(d),m=t(16380),f=t(94551),h=t(48082),v=t(2689),x=t(28722),g=t(93310),Z=t(86008),b=t(37574),j=["actions"],y=["icon","text","onClick","disabled"];function k(e){var n=e.actions,t=(0,l.Z)(e,j),r=(0,u.useState)(null),i=(0,c.Z)(r,2),d=i[0],p=i[1],m=Boolean(d),k=function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}p(null)};return(0,b.jsxs)(C,(0,s.Z)((0,s.Z)({},t),{},{children:[(0,b.jsx)(f.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}p(e.currentTarget)},size:"small",children:(0,b.jsx)(x.Z,{})}),(0,b.jsx)(h.Z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:d,keepMounted:!0,open:m,onClose:k,PaperProps:{},children:n.map((function(e,n){if("function"===typeof e)return e({close:k});var t=e.icon,r=e.text,i=e.onClick,c=e.disabled,d=void 0!==c&&c,p=(0,l.Z)(e,y);return(0,u.createElement)(v.Z,(0,s.Z)((0,s.Z)({},p),{},{disabled:d,dense:!0,onClick:function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(n);case 2:k();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),key:n,"data-cy":"actions-menu-".concat(n)}),(0,b.jsx)(g.Z,{style:{minWidth:24,marginRight:8},children:t}),(0,b.jsx)(Z.Z,{primary:r}))}))})]}))}k.propTypes={actions:p().array},k.defaultProps={actions:[]};var C=m.default.div(r||(r=(0,i.Z)([""])))},73820:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(33028),i=t(59740),o=t(30969),a=t(24974),s=t.n(a),c=t(99631),l=t(47333),u=t(37574),d=["children"];function p(e){var n=e.children,t=(0,i.Z)(e,d),a=(0,o.useContext)(l.RD).t;return(0,u.jsx)(c.Z,(0,r.Z)((0,r.Z)({tip:a("common.copyTip"),copiedTip:a("common.copiedTip")},t),{},{children:n}))}p.propTypes={children:s().any.isRequired}},36558:function(e,n,t){var r=t(33028),i=t(59740),o=t(24974),a=t.n(o),s=t(86822),c=t(19638),l=t(23586),u=t(37574),d=["did","href","external","avatarProps"];function p(e){var n=e.did,t=e.href,o=e.external,a=(e.avatarProps,(0,i.Z)(e,d)),p=(0,u.jsx)(l.Z,(0,r.Z)({did:n},a));return t?o?(0,u.jsx)(c.Z,{target:"_blank",href:t,underline:"hover",children:p}):(0,u.jsx)(s.rU,{to:t,children:p}):p}p.propTypes={did:a().string.isRequired,to:a().string,href:a().string,avatarProps:a().object,external:a().bool},p.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=p},22572:function(e,n,t){t.d(n,{V:function(){return l},Z:function(){return c}});var r=t(33028),i=t(24974),o=t.n(i),a=t(77370),s=t(37574);function c(e){var n=e.permission,t=e.role,r=e.component,i=e.children,o=(0,a.T)().session,s=!0,c=[].concat(n).filter(Boolean),l=[].concat(t).filter(Boolean);if(c.length){var u=o.user&&o.user.permissions||[];s=c.some((function(e){return u.includes(e)}))}return s&&l.length&&(s=l.includes(o.user.role)),"function"===typeof r?r(s):"function"===typeof i?i(s):s&&(r||i)||null}function l(e,n,t){return function(i){return(0,s.jsx)(c,{permission:n,role:t,children:function(n){return(0,s.jsx)(e,(0,r.Z)((0,r.Z)({},i),{},{hasPermission:n}))}})}}c.propTypes={permission:o().oneOfType([o().string,o().arrayOf(o().string)]),role:o().oneOfType([o().string,o().arrayOf(o().string)]),component:o().oneOfType([o().func,o().node]),children:o().oneOfType([o().func,o().node])},c.defaultProps={permission:"",role:"",component:null,children:null}},92653:function(e,n,t){t.r(n),t.d(n,{default:function(){return hn}});var r,i=t(71171),o=t(33028),a=t(32723),s=t(34795),c=t(96234),l=t(30969),u=t(16380),d=t(76032),p=t.n(d),m=t(24974),f=t.n(m),h=t(83752),v=t.n(h),x=t(50496),g=t(6779),Z=t(38361),b=t(49884),j=t(88876),y=t(3715),k=t(13134),C=t(62399),D=t(47333),w=t(29996),S=t(90954),P=t(15378),R=t(2291),T=t(16438),I=t(20244),E=t(35470),N=t(49476),A=t(94984),B=t(36558),z=t(41395),_=t(80670),L=t(45008),U=t(22572),O=t(24891),W=t(94308),q=t(43207),F=t(33359),M=t(2689),V=t(39130),K=t(87006),J=t(51385),H=t(87535),X=t(23299),$=t(73820),G=t(37574);function Y(e){var n=e.teamDid,t=e.roles,r=e.onCancel,i=e.onSuccess,o=e.onError,u=e.endpoint,d=(0,z.h6)().api,p=(0,l.useState)(!1),m=(0,c.Z)(p,2),f=m[0],h=m[1],v=(0,l.useState)(""),g=(0,c.Z)(v,2),Z=g[0],b=g[1],j=(0,D.PE)(),y=j.t,k=j.locale,C=(0,l.useState)(0),S=(0,c.Z)(C,2),P=S[0],R=S[1],T=(0,l.useState)(""),I=(0,c.Z)(T,2),E=I[0],N=I[1],A=(0,l.useState)(""),B=(0,c.Z)(A,2),_=B[0],L=B[1],U=(0,l.useState)(""),Y=(0,c.Z)(U,2),Q=Y[0],ne=Y[1],te=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t,r,i,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_){e.next=3;break}return b(y("team.member.error.passportEmpty")),e.abrupt("return");case 3:return t=Q.trim(),b(null),h(!0),e.prev=6,e.next=9,d.createMemberInvitation({input:{teamDid:n,role:_,remark:t}});case 9:r=e.sent,i=r.inviteInfo,N(i),R(1),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(6),s=(0,O.Z)(e.t0),b(s),o(e.t0);case 20:return e.prev=20,h(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[6,15,20,23]])})));return function(){return e.apply(this,arguments)}}(),re=[{body:(0,G.jsxs)(F.Z,{component:"div",children:[(0,G.jsxs)(H.Z,{style:{width:"100%"},variant:"outlined",children:[(0,G.jsx)(J.Z,{children:y("common.passport")}),(0,G.jsx)(V.Z,{"data-cy":"invite-member-select-role",value:_,onChange:function(e){b(null),L(e.target.value)},fullWidth:!0,label:y("common.passport"),disabled:f,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),te())},children:t.filter((function(e){return"owner"!==e.name})).map((function(e){return(0,G.jsx)(M.Z,{value:e.name,"data-cy":"invite-member-select-option-".concat(e.name),children:(0,G.jsx)("span",{children:e.title||e.name})},e.name)}))})]}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,G.jsx)(K.Z,{label:y("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:Q,onChange:function(e){b(null),ne(e.target.value)},disabled:f,"data-cy":"invite-member-input-remark"}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:y("common.cancel"),confirm:y("team.member.inviteDialog.createInviteLink"),onCancel:r,onConfirm:te},{body:function(){var e=(0,O.ly)({inviteId:E.inviteId,endpoint:u});return(0,G.jsxs)("div",{children:[(0,G.jsx)(ee,{children:y("team.member.inviteDialog.createSuccessTip",{expireDate:(0,O.B2)(E.expireDate,k)})}),(0,G.jsx)("div",{style:{marginTop:"40px"}}),(0,G.jsx)($.Z,{children:e})]})},confirm:y("common.confirm"),onConfirm:i}][P];return(0,G.jsxs)(x.Z,{title:y("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,G.jsxs)(G.Fragment,{children:[re.cancel&&(0,G.jsx)(w.Z,{onClick:re.onCancel,color:"inherit",children:re.cancel}),(0,G.jsxs)(w.Z,{onClick:re.onConfirm,color:"primary",disabled:f||!_,variant:"contained",autoFocus:!0,children:[f&&(0,G.jsx)(W.Z,{size:16}),re.confirm]})]}),children:[(0,G.jsx)(q.Z,{component:"div",children:"function"===typeof re.body?re.body():re.body}),!!Z&&(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:Z})]})}Y.propTypes={teamDid:f().string.isRequired,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,roles:f().array,endpoint:f().string},Y.defaultProps={onError:function(){},roles:[],endpoint:""};var Q,ee=u.default.div(r||(r=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"]))),ne=t(17660),te=t(46292),re=t.n(te),ie=t(83241),oe=t(77370);function ae(e){var n=e.teamDid,t=e.onCancel,r=e.onSuccess,i=e.onError,o=e.endpoint,u=(0,z.h6)(),d=u.api,p=u.info,m=(0,l.useContext)(oe.B).api,f=(0,l.useState)(!1),h=(0,c.Z)(f,2),v=h[0],g=h[1],Z=(0,D.PE)(),b=Z.t,j=Z.locale,y=(0,l.useState)(""),k=(0,c.Z)(y,2),C=k[0],S=k[1],P=(0,l.useState)(!1),R=(0,c.Z)(P,2),T=R[0],I=R[1],E=(0,l.useState)(0),N=(0,c.Z)(E,2),A=N[0],B=N[1],_=(0,l.useState)(""),L=(0,c.Z)(_,2),U=L[0],M=L[1],V=(0,l.useState)(""),J=(0,c.Z)(V,2),H=J[0],Y=J[1],Q=!!re()(p,"ownerNft.did"),ee=(0,ne.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q){e.next=6;break}return e.next=3,d.getDelegationState();case 3:return n=e.sent,t=n.state,e.abrupt("return",t);case 6:return e.abrupt("return",{delegated:!0});case 7:case"end":return e.stop()}}),e)}))));if(ee.loading)return(0,G.jsx)(x.Z,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,G.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,G.jsx)(W.Z,{})})});if(ee.error)return(0,G.jsx)(x.Z,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:(0,O.Z)(ee.error)})});var te=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t,r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(null),g(!0),e.prev=2,e.next=5,d.createTransferInvitation({input:{teamDid:n,role:"owner",remark:H.trim()}});case 5:t=e.sent,r=t.inviteInfo,M(r),B(se.length-1),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),o=(0,O.Z)(e.t0),S(o),i(e.t0);case 16:return e.prev=16,g(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,11,16,19]])})));return function(){return e.apply(this,arguments)}}(),ae=function(){I(!1),B(0)},se=[{body:(0,G.jsxs)(F.Z,{component:"div",children:[(0,G.jsxs)(X.Z,{type:"warning",children:[(0,G.jsx)(F.Z,{children:b("team.transferNode.inviteDialog.tips.progress")}),(0,G.jsx)(F.Z,{children:b("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),(0,G.jsx)(X.Z,{type:"warning",children:(0,G.jsx)(F.Z,{children:b("team.transferNode.inviteDialog.tips.revoke")})}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,G.jsx)(K.Z,{label:b("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:H,onChange:function(e){S(null),Y(e.target.value)},disabled:v,"data-cy":"transfer-node-input-remark"}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:b("common.cancel"),confirm:b("team.transferNode.inviteDialog.createInviteLink"),onCancel:t,onConfirm:Q&&!re()(ee,"value.delegated")?function(){I(!0),B(1)}:te},{body:function(){return(0,G.jsx)(ie.default,{action:"delegate-transfer-nft",open:T,locale:j,checkFn:m.get,onClose:ae,onSuccess:te,checkTimeout:3e5,webWalletUrl:(0,O.yP)(p),extraParams:{targetDID:p.did},messages:{title:b("team.transferNode.delegateDialog.title"),scan:b("team.transferNode.delegateDialog.scan"),confirm:b("team.transferNode.delegateDialog.confirm"),success:b("team.transferNode.delegateDialog.success")},popup:!0})}},{body:function(){var e=(0,O.ly)({inviteId:U.inviteId,endpoint:o});return(0,G.jsxs)("div",{children:[(0,G.jsx)(ce,{children:b("team.transferNode.inviteDialog.createSuccessTip",{expireDate:(0,O.B2)(U.expireDate,j)})}),(0,G.jsx)("div",{style:{marginTop:"40px"}}),(0,G.jsx)($.Z,{children:e})]})},confirm:b("common.confirm"),onConfirm:r}],le=se[A];return(0,G.jsxs)(x.Z,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,G.jsxs)(G.Fragment,{children:[le.cancel&&(0,G.jsx)(w.Z,{onClick:le.onCancel,color:"inherit",children:le.cancel}),(0,G.jsxs)(w.Z,{onClick:le.onConfirm,color:"primary",disabled:v,variant:"contained",autoFocus:!0,children:[v&&(0,G.jsx)(W.Z,{size:16}),le.confirm]})]}),children:[(0,G.jsx)(q.Z,{component:"div",children:"function"===typeof le.body?le.body():le.body}),!!C&&(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:C})]})}ae.propTypes={teamDid:f().string.isRequired,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,endpoint:f().string},ae.defaultProps={onError:function(){},endpoint:""};var se,ce=u.default.div(Q||(Q=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"]))),le=t(59740),ue=t(59467),de=t(19865),pe=t(70177),me=t(48401),fe=t(83486),he=t(28595),ve=t(59505),xe=t(8479),ge=t(88581),Ze=["passport","onDelete"];function be(e){var n=e.passport,t=e.onDelete,r=(0,le.Z)(e,Ze);return(0,G.jsxs)(ye,(0,o.Z)((0,o.Z)({},r),{},{children:[n.title||n.name," ",!!t&&(0,G.jsx)(ge.default,{"data-cy":"delete-issuance",className:"delete",onClick:t})]}))}be.propTypes={passport:f().object.isRequired,onDelete:f().func},be.defaultProps={onDelete:null};var je,ye=u.default.span(se||(se=(0,i.Z)(["\n display: inline-flex;\n padding: 2px 8px;\n background: ",";\n border-radius: 100vw;\n font-weight: 400;\n font-size: 12px;\n line-height: 22px;\n color: #fff;\n align-items: center;\n .delete {\n font-size: 1em;\n margin-left: 6px;\n cursor: pointer;\n }\n"])),(function(e){return e.theme.palette.primary.main}));function ke(e){var n=e.issuances,t=e.teamDid,r=e.onRefresh,i=(0,z.h6)(),o=i.api,u=i.inService,d=(0,l.useContext)(D.RD),p=d.t,m=d.locale,f=(0,l.useState)(null),h=(0,c.Z)(f,2),v=h[0],x=h[1],g=(0,l.useState)(!1),b=(0,c.Z)(g,2),j=b[0],y=b[1],k=(0,_.DJ)().endpoint,C=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.id,!j){e.next=3;break}return e.abrupt("return");case 3:return y(!0),e.prev=4,e.next=7,o.deletePassportIssuance({input:{teamDid:t,sessionId:i}});case 7:r(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),A.Z.error(e.t0.message);case 13:return e.prev=13,y(!1),x(null),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[4,10,13,17]])})));return function(n){return e.apply(this,arguments)}}(),w=function(){y(!1),x(null)},S=function(e){return k?(0,O._)({id:e.id,endpoint:k}):""};function P(e){var n=e.data;return(0,G.jsxs)("div",{className:"issuance",children:[(0,G.jsxs)(Z.Z,{display:"flex",justifyContent:"space-between",children:[(0,G.jsx)(U.Z,{permission:u?"":"mutate_team",role:u?O.Wf:[],children:function(e){return e?(0,G.jsx)(be,{passport:{title:n.title,name:n.name},onDelete:function(){return x({title:p("team.passport.issuance.delete.title"),description:p("team.passport.issuance.delete.description",{link:S(n)}),confirm:p("common.delConfirm"),cancel:p("common.cancel"),onConfirm:function(){C(n)},onCancel:w})}}):(0,G.jsx)(be,{passport:{title:n.title,name:n.name}})}}),(0,G.jsxs)("div",{style:{color:"#999"},children:[p("common.expires"),":\xa0",(0,O.B2)(n.expireDate,m)]})]}),(0,G.jsx)(Z.Z,{mt:2,children:(0,G.jsx)($.Z,{children:S(n)})})]})}return(0,G.jsxs)(Ce,{children:[n.map((function(e){return(0,G.jsx)(P,{data:e})})),v&&(0,G.jsx)(xe.Z,{title:v.title,description:v.description,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}var Ce=u.default.div(je||(je=(0,i.Z)(["\n .MuiTableHead-root {\n display: none;\n }\n .issuance {\n padding: 16px 0;\n border-bottom: 1px solid #f0f0f0;\n .MuiTypography-root {\n display: inline-block;\n width: 100%;\n background: #f3f3f3;\n border-radius: 4px;\n padding-top: 6px;\n padding-bottom: 6px;\n }\n }\n"])));ke.propTypes={teamDid:f().string.isRequired,issuances:f().array,onRefresh:f().func},ke.defaultProps={issuances:[],onRefresh:function(){}};var De,we=t(68079),Se=t(70093),Pe=t.n(Se),Re=t(25177),Te=t(86384),Ie=t(69936),Ee=t(78789),Ne=t(83683),Ae=t(36568);function Be(e){var n=e.teamDid,t=e.ownerDid,r=e.needReceive,i=e.roles,o=e.onCancel,u=e.onSuccess,d=e.onError,p=e.showOwnerPassport,m=(0,z.h6)().api,f=(0,l.useState)(!1),h=(0,c.Z)(f,2),v=h[0],g=h[1],Z=(0,l.useState)(""),b=(0,c.Z)(Z,2),j=b[0],y=b[1],k=(0,D.PE)().t,C=(0,l.useState)(""),S=(0,c.Z)(C,2),P=S[0],R=S[1],T=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P){e.next=3;break}return y(k("team.member.error.passportEmpty")),e.abrupt("return");case 3:return y(null),g(!0),e.prev=5,e.next=8,m.createPassportIssuance({input:{teamDid:n,name:P,ownerDid:t}});case 8:u(),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(5),r=(0,O.Z)(e.t0),y(r),d(e.t0);case 16:return e.prev=16,g(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[5,11,16,19]])})));return function(){return e.apply(this,arguments)}}();return(0,G.jsxs)(x.Z,{title:k("team.passport.issue"),fullWidth:!0,open:!0,onClick:function(e){return e.stopPropagation()},onClose:o,disableEscapeKeyDown:!0,PaperProps:{style:{minHeight:"auto"}},actions:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{onClick:o,color:"inherit",size:"small",children:k("common.cancel")}),(0,G.jsxs)(w.Z,{onClick:T,color:"primary",size:"small",disabled:v||!P,variant:"contained",autoFocus:!0,"data-cy":"issue-passport-create-btn",children:[v&&(0,G.jsx)(W.Z,{size:16}),k(r?"team.passport.issuance.create.title":"oauth.issued")]})]}),children:[(0,G.jsx)(q.Z,{component:"div",children:(0,G.jsx)(F.Z,{component:"div",children:(0,G.jsxs)(H.Z,{style:{width:"100%"},variant:"outlined",children:[(0,G.jsx)(J.Z,{children:k("common.passport")}),(0,G.jsx)(V.Z,{"data-cy":"issue-passport-select-passport",value:P,onChange:function(e){y(null),R(e.target.value)},fullWidth:!0,label:k("common.passport"),disabled:v,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),T())},children:i.filter((function(e){return p||"owner"!==e.name})).map((function(e){return(0,G.jsx)(M.Z,{value:e.name,"data-cy":"issue-passport-select-option-".concat(e.name),children:(0,G.jsx)("span",{children:e.title||e.name})},e.name)}))})]})})}),!!j&&(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:j})]})}function ze(e){var n=e.action,t=e.passport,r=(0,D.PE)().t,i=(0,_.DJ)().roles.find((function(e){return e.name===t.role}));return(0,G.jsxs)("div",{children:[(0,G.jsx)("div",{children:r("enable"===n?"team.member.enablePassportDescription":"team.member.revokePassportDescription")}),i&&(0,G.jsx)(Z.Z,{mt:3,fontWeight:"bold",children:r("team.member.passportPermissionTitle")}),i&&(0,G.jsx)(Z.Z,{mt:1,children:i.description})]})}function _e(e){var n,t=e.user,r=e.onCreate,i=e.createPassportSvg,u=(0,D.PE)().t,d=(0,oe.T)().session,p=(0,_.DJ)(),m=p.roles,f=p.teamDid,h=p.teamIssuerDid,v=p.refresh,x=p.enablePassportIssuance,b=p.trustedPassports,j=p.passportColor,k=p.blocklet,C=(0,L.y0)().appIdList,S=(0,z.h6)(),R=S.api,T=S.inService,E=(0,l.useState)(!1),N=(0,c.Z)(E,2),B=N[0],W=N[1],q=(0,l.useState)(null),F=(0,c.Z)(q,2),M=F[0],V=F[1],K=(0,l.useState)(!1),J=(0,c.Z)(K,2),H=J[0],X=J[1],$=(0,l.useState)(""),Y=(0,c.Z)($,2),Q=Y[0],ee=Y[1],ne=[h].concat((0,we.Z)(C||[])).filter(Boolean),te=(re()(t,"passports")||[]).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{revoked:e.status===I.PASSPORT_STATUS.REVOKED})})),ie=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!B){e.next=2;break}return e.abrupt("return");case 2:return W(!0),e.prev=3,r=n.status===I.PASSPORT_STATUS.REVOKED?"enableUserPassport":"revokeUserPassport",e.next=7,R[r]({input:{teamDid:f,userDid:t.did,passportId:n.id}});case 7:v(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),A.Z.error((0,O.Z)(e.t0));case 13:return e.prev=13,W(!1),V(null),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[3,10,13,17]])})));return function(n){return e.apply(this,arguments)}}(),ae=function(e,n){return t.did===d.user.did&&d.user.passportId&&d.user.passportId===n.id?{revokable:!1,message:u("team.passport.shouldNotDeleteCurrent")}:e?f===n.issuer.id&&"owner"===n.name?{revokable:!1,message:u("team.passport.noPermission")}:{revokable:!0}:{revokable:!1,message:u("team.passport.noPermission")}},se=te.filter((function(e){return!Q||e.title.includes(Q)||e.name.includes(Q)}));return(0,G.jsxs)(Le,{children:[(0,G.jsxs)(Ae.Z,{children:[(0,G.jsx)("div",{className:"left",children:(0,G.jsx)(Ne.Z,{placeholder:u("team.passport.search"),value:Q,onChange:function(e){return ee(e.target.value)}})}),(0,G.jsx)("div",{className:"right",children:x&&!!t.approved&&(0,G.jsx)(U.Z,{permission:T?"":"mutate_team",role:T?O.Wf:[],children:(0,G.jsxs)(w.Z,{variant:"contained",color:"primary","data-cy":"issue-passport",onClick:function(){return X(!0)},children:[(0,G.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}),u("team.passport.issue")]})})})]}),(0,G.jsxs)(Z.Z,{children:[se.map((function(e){return(0,G.jsx)(U.Z,{permission:T?"":"mutate_team",role:T?O.Wf:[],children:function(n){return(0,G.jsxs)(Z.Z,{className:"passport-item",display:"flex",justifyContent:"space-between",alignItems:"center",mt:3,children:[(0,G.jsxs)(Z.Z,{display:"flex",alignItems:"center",children:[(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:i({title:e.title||e.name,issuer:e.issuer&&e.issuer.name,issuerDid:e.issuer&&e.issuer.id,ownerName:t.fullName,ownerDid:t.did,ownerAvatarUrl:t.avatar,revoked:e.revoked,preferredColor:j,width:"150px"})}}),(0,G.jsxs)("div",{className:"body",children:[(0,G.jsxs)(Z.Z,{className:"title",display:"flex",alignItems:"center",children:[Pe()(e.title),(0,G.jsxs)("div",{className:"status-icons",children:[!!ne.length&&!ne.includes(e.issuer.id)&&(0,G.jsx)(P.Z,{}),e.revoked&&(0,G.jsx)(Ie.Z,{})]})]}),e.expirationDate&&(0,G.jsx)(Z.Z,{className:"title",display:"flex",alignItems:"center",children:u("team.passport.validUntil",{date:e.expirationDate})}),!!ne.length&&!ne.includes(e.issuer.id)&&(0,G.jsxs)("div",{className:"tip",children:[e.issuer.id!==h&&!b.some((function(n){return n.issuerDid===e.issuer.id}))&&(0,G.jsx)(g.Z,{title:u("team.passport.notTrustedIssuerTip"),children:(0,G.jsx)(Z.Z,{component:Re.Z,style:{fontSize:"1.3em"},color:"error.main",mr:.5})}),(0,G.jsx)("span",{children:u("team.passport.issueBy",{name:e.issuer.name})})]})]})]}),(0,G.jsx)(Z.Z,{children:ae(n,e).revokable?(0,G.jsxs)(w.Z,{variant:"outlined",color:e.revoked?"primary":"secondary",onClick:function(){return(n=e).status===I.PASSPORT_STATUS.REVOKED?V({title:u("team.member.enablePassport"),description:(0,G.jsx)(ze,{action:"enable",passport:n}),confirm:u("common.enable"),cancel:u("common.cancel"),onConfirm:function(){ie(n)},onCancel:function(){W(!1),V(null)},color:"primary"}):V({title:u("team.member.revokePassport"),description:(0,G.jsx)(ze,{action:"revoke",passport:n}),confirm:u("common.revoke"),cancel:u("common.cancel"),onConfirm:function(){ie(n)},onCancel:function(){W(!1),V(null)}});var n},children:[e.revoked?(0,G.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}):(0,G.jsx)(Ie.Z,{style:{height:16,marginRight:4}}),e.revoked?u("common.enable"):u("common.revoke")]}):(0,G.jsx)(g.Z,{title:ae(n,e).message,children:(0,G.jsx)(Re.Z,{style:{color:"#ddd"}})})})]})}},e.id)})),!se.length&&(0,G.jsx)(Ee.Z,{children:u("common.empty")})]}),H&&(0,G.jsx)(Be,{teamDid:f,ownerDid:t.did,needReceive:(0,Te.h1)(t)===t.did,roles:m,onCancel:function(){return X(!1)},onSuccess:function(){r(),X(!1)},showOwnerPassport:k&&!(null!==(n=k.settings)&&void 0!==n&&n.owner)}),M&&(0,G.jsx)(xe.Z,{title:M.title,description:M.description,confirm:M.confirm,cancel:M.cancel,params:M.params,onConfirm:M.onConfirm,onCancel:M.onCancel,color:M.color})]})}Be.propTypes={teamDid:f().string.isRequired,ownerDid:f().string.isRequired,needReceive:f().bool,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,roles:f().array,showOwnerPassport:f().bool},Be.defaultProps={onError:function(){},roles:[],showOwnerPassport:!1,needReceive:!0},ze.propTypes={action:f().string.isRequired,passport:f().object.isRequired},ze.defaultProps={},_e.propTypes={user:f().object.isRequired,createPassportSvg:f().func.isRequired,onCreate:f().func},_e.defaultProps={onCreate:function(){}};var Le=u.default.div(De||(De=(0,i.Z)(["\n .passport-item {\n .body {\n padding: 0;\n margin-left: 24px;\n margin-top: 0;\n }\n .title {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #222222;\n }\n .tip {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-top: 6px;\n color: #bbb;\n }\n .status-icons {\n svg {\n fill: #bfbfbf;\n height: 1.2em;\n margin-left: 0.4em;\n }\n }\n .MuiButton-outlinedSecondary {\n color: #f16e6e;\n fill: #f16e6e;\n background: #fcf3f3;\n border: 0;\n &:hover {\n border: 0;\n }\n }\n }\n"]))),Ue=function(e,n){return e.nodeOwner&&e.nodeOwner.did===n},Oe=function(e,n){return e&&e.did===n};function We(e){var n,t=e.user,r=e.onCancel,i=e.onSuccess,o=e.onError,u=e.children,d=(0,z.h6)(),p=d.api,m=d.info,f=d.inService,h=(0,oe.T)().session,v=(0,_.DJ)(),x=v.teamDid,g=v.refresh,Z=(0,D.PE)().t,b=(0,l.useState)(!1),j=(0,c.Z)(b,2),y=j[0],k=j[1],C=(0,l.useState)(!1),w=(0,c.Z)(C,2),S=w[0],P=w[1],R=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var t,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.did,r=n.approved,!y){e.next=3;break}return e.abrupt("return");case 3:return k(!0),e.prev=4,e.next=7,p.updateUserApproval({input:{teamDid:x,user:{did:t,approved:!r}}});case 7:P(!1),i(),g(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),A.Z.error((0,O.Z)(e.t0)),o();case 16:return e.prev=16,k(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(n){return e.apply(this,arguments)}}(),T={title:t.approved?Z("team.member.forbidLogin"):Z("team.member.allowLogin"),description:t.approved?Z("team.member.forbidLoginDescription"):Z("team.member.allowLoginDescription"),confirm:Z("common.confirm"),cancel:Z("common.cancel"),onConfirm:function(){R(t)},onCancel:function(){k(!1),P(!1),r()},color:t.approved?"error":"primary"};return(n=(f||m.nodeOwner&&!Ue(m,t.did))&&!Oe(h.user,t.did))?(0,G.jsxs)(G.Fragment,{children:["function"===typeof u?u({can:n,open:function(){return P(!0)}}):u,S?(0,G.jsx)(xe.Z,{title:T.title,description:T.description,confirm:T.confirm,cancel:T.cancel,params:T.params,onConfirm:T.onConfirm,onCancel:T.onCancel,color:T.color}):null]}):null}We.propTypes={user:f().object,onSuccess:f().func,onCancel:f().func,onError:f().func,children:f().oneOfType([f().object,f().func])},We.defaultProps={user:{},onSuccess:function(){},onCancel:function(){},onError:function(){},children:null};var qe,Fe,Me,Ve=t(19611),Ke=t.n(Ve);function Je(e,n,t){if(e&&e.startsWith(I.USER_AVATAR_URL_PREFIX)){var r=window.env.apiPrefix||"/";return t?Ke()(r,I.USER_AVATAR_PATH_PREFIX,e.replace(I.USER_AVATAR_URL_PREFIX,"")):Ke()(r,I.USER_AVATAR_PATH_PREFIX,n,e.replace(I.USER_AVATAR_URL_PREFIX,""))}return e}function He(e){return(e.user.connectedAccounts||[]).map((function(e){return(0,G.jsx)(pe.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.provider,children:(0,G.jsx)(B.Z,{did:e.did})},e.did)}))}f().string.isRequired,He.propTypes={user:f().object.isRequired,onChangeUser:f().func},He.defaultProps={onChangeUser:function(){}};var Xe="info";function $e(e){var n=e.userDid,t=e.onCancel,r=e.initTab,i=e.createPassportSvg,o=(0,z.h6)(),c=o.api,u=o.ws.useSubscription,d=o.inService,p=(0,_.DJ)(),m=p.roles,f=p.teamDid,h=p.enablePassportIssuance,v=(0,D.PE)(),g=v.t,b=v.locale,j=(0,he.Z)({user:null,issuances:null,tab:r||Xe}),y=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.doBatchQuery({getUser:{input:{teamDid:n,user:{did:t}}},getPassportIssuances:{input:{teamDid:n,ownerDid:t}}});case 3:(r=e.sent).getUser.user&&(r.getUser.user.avatar=Je(r.getUser.user.avatar,n,d),r.getUser.user.passports=(r.getUser.user.passports||[]).filter((function(e){return e.issuer}))),j.user=r.getUser.user||{},j.issuances=r.getPassportIssuances.list||[],e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),A.Z.error((0,O.Z)(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(n,t){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){f&&y(f,n)}),[n,f]);u(I.EVENTS.USER_UPDATED,(function(e){e.teamDid===f&&e.user&&e.user.did===n&&y(f,n)}),[n,f]),(0,l.useEffect)((function(){j.issuances&&!j.issuances.length&&"issuances"===j.tab&&(j.tab=Xe)}),[j.issuances]);var k=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(f,n.did);case 2:j.tab=Xe;case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),C={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"},w={info:{label:g("common.basicInfo"),value:Xe,component:function(){var e,n;return(j.user?[{name:g("team.member.name"),value:j.user.fullName},{name:g("common.email"),value:j.user.email},{name:g("team.member.source"),value:(0,G.jsx)(Z.Z,{display:"flex",alignItems:"center",children:C[(null===(e=j.user)||void 0===e?void 0:e.sourceProvider)||I.USER_TYPE.WALLET]||(null===(n=j.user)||void 0===n?void 0:n.sourceProvider)})},{name:g("team.member.allowLogin"),value:j.user.approved?g("common.yes"):g("common.no")},{name:g("team.member.lastLogin"),value:(0,O.B2)(j.user.lastLoginAt,b)},{name:g("team.member.lastLoginIp"),value:j.user.lastLoginIp||""},{name:g("common.createdAt"),value:(0,O.B2)(j.user.createdAt,b)},{name:g("common.remark"),value:j.user.remark||"--"}].filter(Boolean):[]).map((function(e){return e.name===g("common.did")?(0,G.jsx)(pe.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:function(){return g("common.did")},children:e.value},e.name):(0,G.jsx)(pe.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)}))}},oauth:{label:g("team.member.connectedAccounts"),value:"oauth",component:function(){return(0,G.jsx)(He,{user:j.user,onChangeUser:k})}},passports:{label:g("common.passport"),value:"passports",component:function(){return(0,G.jsx)(_e,{user:j.user,teamDid:f,roles:m,createPassportSvg:i,onCreate:function(){y(f,n).then((function(){h&&j.issuances&&j.issuances.length&&(j.tab="issuances")}))},onRefresh:function(){y(f,n)}})}},issuances:{label:g("team.passport.issuance.pending"),value:"issuances",component:function(){return(0,G.jsx)(ke,{issuances:j.issuances||[],teamDid:f,onRefresh:function(){return y(f,n)}})}}},S=Object.values(w).map((function(e){return{label:e.label,value:e.value}})).filter((function(e){return"issuances"===e.value?h&&j.issuances&&!!j.issuances.length:"oauth"!==e.value||((null===(n=j.user)||void 0===n?void 0:n.connectedAccounts)||[]).find((function(e){var n;return e.provider!==((null===(n=j.user)||void 0===n?void 0:n.sourceProvider)||ve.LOGIN_PROVIDER.WALLET)}));var n})),P=w[j.tab]||w.info;return(0,G.jsx)(x.Z,{title:g("common.member"),onClose:t,open:!0,PaperProps:{style:{maxWidth:632,minHeight:"80vh"}},fullWidth:!0,actions:j.user&&(0,G.jsx)(U.Z,{permission:d?"":"mutate_team",role:d?O.Wf:[],children:(0,G.jsx)(We,{user:j.user,children:function(e){var n=e.open;return(0,G.jsxs)(en,{onClick:n,children:[j.user.approved?(0,G.jsx)(me.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}):(0,G.jsx)(fe.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}),j.user.approved?g("team.member.forbidLogin"):g("team.member.allowLogin")]})}})}),children:(0,G.jsxs)(Ye,{children:[!j.user&&(0,G.jsx)(Qe,{children:(0,G.jsx)(W.Z,{})}),j.user&&(0,G.jsxs)("div",{children:[(0,G.jsxs)(Z.Z,{display:"flex",alignItems:"center",className:"info",children:[(0,G.jsx)(ue.Z,{src:j.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,G.jsxs)(Z.Z,{children:[(0,G.jsx)(Z.Z,{className:"name",children:j.user.fullName}),(0,G.jsx)(Z.Z,{className:"did",mt:1,children:(0,G.jsx)(B.Z,{did:j.user.did})})]})]}),(0,G.jsx)(Z.Z,{mx:3,className:"tabs",children:(0,G.jsx)(de.Z,{tabs:S,current:j.tab,onChange:function(e){j.tab=e},scrollButtons:"auto"})}),(0,G.jsx)("div",{className:"body",children:(0,G.jsx)(P.component,{})})]})]})})}$e.propTypes={userDid:f().string.isRequired,onCancel:f().func.isRequired,createPassportSvg:f().func.isRequired,initTab:f().string},$e.defaultProps={initTab:Xe};var Ge,Ye=u.default.div(qe||(qe=(0,i.Z)(["\n .info {\n .name {\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n\n .tabs {\n margin-top: 24px;\n margin-left: 0;\n margin-right: 0;\n }\n\n .body {\n margin-top: 24px;\n }\n"]))),Qe=u.default.div(Fe||(Fe=(0,i.Z)(["\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n"]))),en=u.default.div(Me||(Me=(0,i.Z)(["\n flex-shrink: 0;\n width: 100%;\n height: 64px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: #999;\n fill: #999;\n font-size: 16px;\n border-top: 1px solid #f0f0f0;\n position: sticky;\n bottom: 0;\n background: #fff;\n z-index: 10;\n"]))),nn=t(10814);function tn(){var e=(0,z.h6)(),n=e.api,t=e.inService,r=(0,l.useContext)(D.RD),i=r.t,o=r.locale,u=(0,_.DJ)(),d=u.teamDid,p=u.invitations,m=u.refresh,f=u.endpoint,h=(0,l.useState)(null),v=(0,c.Z)(h,2),x=v[0],g=v[1],Z=(0,l.useState)(!1),b=(0,c.Z)(Z,2),j=b[0],y=b[1],k=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.inviteId,!j){e.next=3;break}return e.abrupt("return");case 3:return y(!0),e.prev=4,e.next=7,n.deleteInvitation({input:{teamDid:d,inviteId:r}});case 7:return m(),e.next=10,(0,O._v)(800);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.prev=15,y(!1),g(null),e.finish(15);case 19:case"end":return e.stop()}}),e,null,[[4,12,15,19]])})));return function(n){return e.apply(this,arguments)}}(),C=function(){y(!1),g(null)},S=function(e){return f?(0,O.ly)({inviteId:e.inviteId,endpoint:f}):""},P=[{label:i("team.inviting.link"),name:"inviteId",options:{sort:!1,customBodyRenderLite:function(e){var n=p[e];return f?(0,G.jsx)($.Z,{children:S(n)}):(0,G.jsx)(W.Z,{size:16})}}},{label:i("common.role"),name:"role",widtn:70},{label:i("common.remark"),name:"remark",options:{customBodyRender:function(e){return e||"--"}}},{label:i("team.inviting.inviter"),name:"inviter.fullName",options:{sort:!1,customBodyRender:function(e,n){var t,r=n.rowIndex,i=p[r];return null===i||void 0===i||null===(t=i.inviter)||void 0===t?void 0:t.fullName}}},{label:i("common.expires"),name:"expireDate",options:{customBodyRender:function(e){return(0,G.jsx)(T.Z,{value:e,locale:o})}}},{label:i("common.actions"),name:"",width:100,align:"center",options:{sort:!1,customBodyRenderLite:function(e){var n=p[e];return(0,G.jsx)(U.Z,{permission:t?"":"mutate_team",role:t?O.Wf:[],children:(0,G.jsxs)(w.Z,{onClick:function(){return g({title:i("team.inviting.delete.title"),description:i("team.inviting.delete.description",{link:S(n)}),confirm:i("common.delConfirm"),cancel:i("common.cancel"),onConfirm:function(){return k(n)},onCancel:C})},size:"small",color:"error",variant:"text",children:[(0,G.jsx)(nn.default,{style:{fontSize:"1.2em"}}),i("common.delete")]})})}}}];return(0,G.jsxs)(rn,{children:[p.length?(0,G.jsx)(R.Z,{locale:o,data:(0,we.Z)(p),columns:P,verticalKeyWidth:100,options:{download:!1,filter:!1,print:!1}}):(0,G.jsx)(Ee.Z,{children:i("common.empty")}),x&&(0,G.jsx)(xe.Z,{title:x.title,description:x.description,confirm:x.confirm,cancel:x.cancel,params:x.params,onConfirm:x.onConfirm,onCancel:x.onCancel})]})}var rn=u.default.div(Ge||(Ge=(0,i.Z)(["\n margin-top: -20px;\n"])));tn.propTypes={},tn.defaultProps={};var on,an=t(93310),sn=t(86008),cn=t(80714);function ln(e){var n=e.user,t=e.onIssuePassport,r=(0,_.DJ)(),i=r.teamDid,o=r.roles,a=(0,l.useContext)(D.RD).t,s=(0,l.useState)(!1),u=(0,c.Z)(s,2),d=u[0],p=u[1];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(cn.Z,{"data-cy":"member-actions",actions:[{icon:(0,G.jsx)(y.Z,{fontSize:"small"}),text:a("team.passport.issue"),"data-cy":"action-issue-passport",onClick:function(e){e.stopPropagation(),p(!0)}},function(e){var t=e.close;return(0,G.jsx)(We,{user:n,children:function(e){var r=e.open;return(0,G.jsxs)(M.Z,{dense:!0,onClick:function(e){e.stopPropagation(),t(),r(e)},"data-cy":"action-toggle-block",children:[(0,G.jsx)(an.Z,{style:{minWidth:24,marginRight:8},children:n.approved?(0,G.jsx)(me.Z,{}):(0,G.jsx)(fe.Z,{})}),(0,G.jsx)(sn.Z,{primary:n.approved?a("team.member.forbidLogin"):a("team.member.allowLogin")})]})}},"toggle-approval")}]}),d&&(0,G.jsx)(Be,{teamDid:i,ownerDid:n.did,needReceive:(0,Te.h1)(n)===n.did,roles:o,onCancel:function(){return p(!1)},onSuccess:function(){t(),p(!1)}})]})}ln.propTypes={user:f().object.isRequired,onIssuePassport:f().func},ln.defaultProps={onIssuePassport:function(){}};var un="$all",dn="$none",pn=function(e,n){var t=e.find((function(e){return e.key===n}));return(null===t||void 0===t?void 0:t.value)||0},mn=function(e,n){var t=e.passports||[];return!!t.length&&!t.some((function(e){var t;return n.includes(null===(t=e.issuer)||void 0===t?void 0:t.id)}))};function fn(e){var n=e.user,t=(0,l.useContext)(D.RD).t,r=(0,G.jsxs)("div",{className:"member-block",children:[(0,G.jsxs)("div",{className:"member-avatar",children:[(0,G.jsx)(C.Z,{src:"".concat(n.avatar,"?imageFilter=resize&w=48&h=48"),size:24,did:n.did,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),!n.approved&&(0,G.jsx)("did",{className:"badge-block"}),n.isFromExternal&&(0,G.jsx)(g.Z,{title:t("team.passport.externalPassport"),children:(0,G.jsx)(Z.Z,{ml:1,className:"icon",children:(0,G.jsx)(P.Z,{})})})]}),(0,G.jsx)("div",{className:"member-text",children:n.fullName})]});return n.approved?r:(0,G.jsx)(Z.Z,{display:"flex",alignItems:"center",children:(0,G.jsx)(g.Z,{title:t("team.member.forbidLoginDescription"),children:r})})}function hn(e){var n=e.type,t=e.createPassportSvg,r=(0,L.y0)().appIdList,i=void 0===r?[]:r,u=(0,_.DJ)(),d=u.teamDid,m=u.invitations,f=u.teamIssuerDid,h=u.roles,g=u.refresh,C=u.enablePassportIssuance,P=u.endpoint,W=u.api,q=(0,z.h6)(),F=q.inService,M=q.ws.useSubscription,V=(0,l.useContext)(D.RD),K=V.t,J=V.locale,H=(0,l.useState)(!1),X=(0,c.Z)(H,2),$=X[0],Q=X[1],ee=(0,l.useState)(!1),ne=(0,c.Z)(ee,2),te=ne[0],re=ne[1],ie=(0,l.useState)(!1),oe=(0,c.Z)(ie,2),se=oe[0],ce=oe[1],le=(0,l.useState)(!1),ue=(0,c.Z)(le,2),de=ue[0],pe=ue[1],me=(0,l.useState)(!1),fe=(0,c.Z)(me,2),he=fe[0],ve=fe[1],xe=(0,l.useState)([]),ge=(0,c.Z)(xe,2),Ze=ge[0],be=ge[1],je=(0,l.useState)(),ye=(0,c.Z)(je,2),ke=ye[0],Ce=ye[1],De=(0,l.useState)([]),we=(0,c.Z)(De,2),Se=we[0],Pe=we[1],Re=(0,E.Z)({did:void 0}),Te=(0,c.Z)(Re,1)[0],Ie="members-".concat(d),Ee=(0,R.$)(Ie),Ne=(0,l.useState)({role:un,searchText:Ee.searchText||"",hideBlocked:!1,pageSize:Ee.rowsPerPage||10,page:Ee.page?Ee.page+1:1}),Ae=(0,c.Z)(Ne,2),Be=Ae[0],ze=Ae[1];(0,N.Z)((0,s.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Te.did){e.next=6;break}return e.next=3,W.getUser({did:Te.did});case 3:n=e.sent,(t=n.user)&&pe(t);case 6:case"end":return e.stop()}}),e)}))));var _e=(h||[]).map((function(e){return{name:e.name,title:e.title,num:pn(Se,e.name)}}));_e.unshift({name:un,title:"All Members",num:pn(Se,un)}),_e.push({name:dn,title:"Other",num:pn(Se,dn)});var Le=function(){var e={};Be.hideBlocked&&(e.approved=!0),e.role=Be.role,Be.searchText&&(e.search=Be.searchText),ve(!0),W.getUsers({query:e,paging:{page:Be.page,pageSize:Be.pageSize}}).then((function(e){ve(!1),(e.users||[]).forEach((function(e){e.isFromExternal=mn(e,p()(i)?[f]:i),e.avatar=Je(e.avatar,d,F),e.passports=(e.passports||[]).filter((function(e){return e.issuer}))})),be(e.users||[]),Ce(e.paging.total)})).catch((function(e){ve(!1),A.Z.error(e.message)}))},Ue=function(){W.getUsersCountPerRole().then((function(e){Pe(e.counts||[])})).catch((function(e){A.Z.error(e.message)}))},Oe=function(e){e.teamDid===d&&(Le(),Ue())};(0,l.useEffect)((function(){Le()}),["".concat(Be.hideBlocked,"-").concat(Be.role,"-").concat(Be.page,"-").concat(Be.pageSize,"-").concat(Be.searchText)]),(0,l.useEffect)((function(){Ue()}),[]),M(I.EVENTS.USER_UPDATED,Oe,[Be]),M(I.EVENTS.USER_ADDED,Oe,[Be]);var We=C,qe=[{label:K("common.name"),name:"fullName",options:{customBodyRenderLite:function(e){var n=Ze[e];return(0,G.jsx)("div",{"data-cy":"member-name-".concat(n.fullName),children:(0,G.jsx)(fn,{user:n})},n.did)}}},{label:K("common.address"),name:"did",options:{customBodyRender:function(e){return(0,G.jsx)(B.Z,{size:14,responsive:!0,copyable:!1,did:e})}}},{label:K("team.member.lastLogin"),name:"lastLoginAt",options:{customBodyRender:function(e){return(0,G.jsx)(T.Z,{value:e,locale:J})}}},{label:K("team.member.lastLoginIp"),name:"lastLoginIp",options:{customBodyRender:function(e){return e||"-"}}},{label:K("team.member.source"),name:"sourceProvider",options:{customBodyRender:function(e){var n=e||I.USER_TYPE.WALLET;return{auth0:"Auth0",wallet:"DID wallet",federated:"Federated"}[n]||n}}},{label:K("common.actions"),name:"",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:function(e){var n=Ze[e];return(0,G.jsx)(U.Z,{permission:F?"":"mutate_team",role:F?O.Wf:[],children:(0,G.jsx)(ln,{user:n,onIssuePassport:function(){return pe((0,o.Z)((0,o.Z)({},n),{},{initTab:"issuances"}))}})})}}}],Fe=[];We&&(Fe.push((0,G.jsxs)(w.Z,{variant:"outlined",style:{flexShrink:0,marginRight:16},color:"primary",size:"small",onClick:function(){ce(!0)},children:[(0,G.jsx)(S.Z,{style:{height:"1em",marginRight:4}}),K("common.inviting"),m.length?" (".concat(m.length,")"):""]}),(0,G.jsx)(U.Z,{permission:F?"":"mutate_team",role:F?O.Wf:[],children:(0,G.jsxs)(w.Z,{style:{flexShrink:0,marginRight:16},variant:"contained",edge:"end",color:"primary",size:"small","data-cy":"invite-member",onClick:function(){return Q(!0)},children:[(0,G.jsx)(y.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.invite")]})})),"server"===n&&Fe.push((0,G.jsx)(U.Z,{role:"owner",children:(0,G.jsxs)(w.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"invite-member",onClick:function(){return re(!0)},children:[(0,G.jsx)(k.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.transferNode.name")]})})));var Me={sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick:function(e,n){var t=n.dataIndex,r=Ze[t];pe(r)},page:Be.page-1,rowsPerPage:Be.pageSize,count:ke,searchDebounceTime:600};return(0,G.jsxs)(vn,{children:[(0,G.jsxs)(Z.Z,{className:"main",display:"flex",children:[(0,G.jsx)("div",{className:"left",children:(0,G.jsx)("div",{className:"tabs",children:_e.map((function(e){return(0,G.jsxs)("div",{className:"tab ".concat(Be.role===e.name?"active":""),onClick:function(){return n=e.name,void(he||ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{role:n,hideBlocked:!1,searchText:"",page:1})})));var n},children:[(0,G.jsx)("span",{className:"text",children:e.title}),(0,G.jsx)("span",{className:v()("badge",{"is-rect":e.num>999}),children:e.num})]},e.name)}))})}),(0,G.jsx)("div",{className:"right",children:(0,G.jsx)(R.Z,{className:"main-table",verticalKeyWidth:100,locale:J,durable:Ie,durableKeys:["page","rowsPerPage"],title:(0,G.jsx)("div",{className:"table-toolbar-left",children:(0,G.jsx)(b.Z,{control:(0,G.jsx)(j.Z,{sx:{display:"flex !important"},disabled:he,color:"primary",checked:Be.hideBlocked,onChange:function(e){return n=e.target.checked,void ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{hideBlocked:n,page:1})}));var n}}),label:K("team.member.hideBlockedMember")})}),data:Ze,columns:qe,customButtons:Fe,options:Me,loading:he,onChange:function(e){var n=e.page,t=e.rowsPerPage,r=e.searchText;Be.pageSize!==t?ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{pageSize:t,page:1})})):Be.page!==n+1?ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{page:n+1})})):Be.searchText!==r&&ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{searchText:r,page:1})}))}})})]}),(0,G.jsx)(x.Z,{title:K("common.inviting"),onClose:function(){return ce(!1)},open:se,maxWidth:"lg",fullWidth:!0,children:(0,G.jsx)(tn,{})}),de&&(0,G.jsx)($e,{onCancel:function(){return pe(null)},userDid:de.did,createPassportSvg:t,initTab:de.initTab}),$&&(0,G.jsx)(Y,{teamDid:d,endpoint:P,roles:h,onCancel:function(){return Q(!1)},onSuccess:function(){g(),Q(!1)}}),te&&(0,G.jsx)(ae,{teamDid:d,endpoint:P,roles:h,onCancel:function(){return re(!1)},onSuccess:function(){g(),re(!1)}})]})}fn.propTypes={user:f().object.isRequired};var vn=u.default.div(on||(on=(0,i.Z)(["\n .main {\n .left {\n width: 168px;\n flex-shrink: 0;\n margin-right: 65px;\n .tabs {\n padding-top: 16px;\n .tab {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n transition: background 0.4s;\n\n width: 168px;\n height: 36px;\n border-radius: 8px;\n\n cursor: pointer;\n user-select: none;\n\n &:nth-child(n + 2) {\n margin-top: 24px;\n }\n\n &.active {\n background: #f2f2f2;\n }\n\n &:hover {\n background: #f2f2f2;\n }\n\n .text {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n\n color: #222222;\n }\n\n .badge {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 20px;\n height: 20px;\n border-radius: 100%;\n color: #fff;\n background: #666666;\n font-size: 10px;\n font-weight: 400;\n &.is-rect {\n width: auto;\n border-radius: 8px;\n padding: 0 4px;\n }\n }\n }\n }\n @media (max-width: ","px) {\n display: none;\n }\n }\n .right {\n flex-grow: 1;\n }\n }\n\n .member-block {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n .member-avatar {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .member-text {\n margin-left: 10px;\n }\n .badge-block {\n width: 14px;\n height: 14px;\n position: absolute;\n right: -4px;\n top: -4px;\n background: #ff5757;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n &::after {\n content: '';\n width: 6px;\n height: 2px;\n background: #fefefe;\n }\n }\n }\n\n .table-toolbar-left {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 7px 0;\n }\n"])),(function(e){return e.theme.breakpoints.values.md}));hn.propTypes={type:f().oneOf(["server","blocklet"]).isRequired,createPassportSvg:f().func.isRequired}},83683:function(e,n,t){var r,i=t(33028),o=t(59740),a=t(71171),s=t(16380),c=t(87006),l=t(90713),u=t(37574),d=["children"],p=(0,s.default)((function(e){var n=e.children,t=(0,o.Z)(e,d);return(0,u.jsx)(c.Z,(0,i.Z)((0,i.Z)({},t),{},{id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,u.jsx)(l.default,{})},size:"small",children:n}))}))(r||(r=(0,a.Z)(["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"])));n.Z=p},36568:function(e,n,t){var r,i=t(71171),o=t(16380).default.div(r||(r=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"])));n.Z=o}}]);
2
- //# sourceMappingURL=2653.0a8b831d.chunk.js.map
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2653],{86384:function(e,n,t){n.h1=void 0;var r=t(59505);function i(e){return(null===e||void 0===e?void 0:e.connectedAccounts)||[]}function o(e){return i(e).find((function(e){return e.provider===r.LOGIN_PROVIDER.WALLET}))}n.h1=function(e){var n=o(e);return null===n||void 0===n?void 0:n.did}},80714:function(e,n,t){t.d(n,{Z:function(){return k}});var r,i=t(71171),o=t(32723),a=t(34795),s=t(33028),c=t(96234),l=t(59740),u=t(30969),d=t(24974),p=t.n(d),m=t(16380),f=t(94551),h=t(48082),v=t(2689),x=t(28722),g=t(93310),Z=t(86008),b=t(37574),j=["actions"],y=["icon","text","onClick","disabled"];function k(e){var n=e.actions,t=(0,l.Z)(e,j),r=(0,u.useState)(null),i=(0,c.Z)(r,2),d=i[0],p=i[1],m=Boolean(d),k=function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}p(null)};return(0,b.jsxs)(C,(0,s.Z)((0,s.Z)({},t),{},{children:[(0,b.jsx)(f.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}p(e.currentTarget)},size:"small",children:(0,b.jsx)(x.Z,{})}),(0,b.jsx)(h.Z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:d,keepMounted:!0,open:m,onClose:k,PaperProps:{},children:n.map((function(e,n){if("function"===typeof e)return e({close:k});var t=e.icon,r=e.text,i=e.onClick,c=e.disabled,d=void 0!==c&&c,p=(0,l.Z)(e,y);return(0,u.createElement)(v.Z,(0,s.Z)((0,s.Z)({},p),{},{disabled:d,dense:!0,onClick:function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(n);case 2:k();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),key:n,"data-cy":"actions-menu-".concat(n)}),(0,b.jsx)(g.Z,{style:{minWidth:24,marginRight:8},children:t}),(0,b.jsx)(Z.Z,{primary:r}))}))})]}))}k.propTypes={actions:p().array},k.defaultProps={actions:[]};var C=m.default.div(r||(r=(0,i.Z)([""])))},73820:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(33028),i=t(59740),o=t(30969),a=t(24974),s=t.n(a),c=t(99631),l=t(47333),u=t(37574),d=["children"];function p(e){var n=e.children,t=(0,i.Z)(e,d),a=(0,o.useContext)(l.RD).t;return(0,u.jsx)(c.Z,(0,r.Z)((0,r.Z)({tip:a("common.copyTip"),copiedTip:a("common.copiedTip")},t),{},{children:n}))}p.propTypes={children:s().any.isRequired}},36558:function(e,n,t){var r=t(33028),i=t(59740),o=t(24974),a=t.n(o),s=t(86822),c=t(19638),l=t(23586),u=t(37574),d=["did","href","external","avatarProps"];function p(e){var n=e.did,t=e.href,o=e.external,a=(e.avatarProps,(0,i.Z)(e,d)),p=(0,u.jsx)(l.Z,(0,r.Z)({did:n},a));return t?o?(0,u.jsx)(c.Z,{target:"_blank",href:t,underline:"hover",children:p}):(0,u.jsx)(s.rU,{to:t,children:p}):p}p.propTypes={did:a().string.isRequired,to:a().string,href:a().string,avatarProps:a().object,external:a().bool},p.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=p},22572:function(e,n,t){t.d(n,{V:function(){return l},Z:function(){return c}});var r=t(33028),i=t(24974),o=t.n(i),a=t(77370),s=t(37574);function c(e){var n=e.permission,t=e.role,r=e.component,i=e.children,o=(0,a.T)().session,s=!0,c=[].concat(n).filter(Boolean),l=[].concat(t).filter(Boolean);if(c.length){var u=o.user&&o.user.permissions||[];s=c.some((function(e){return u.includes(e)}))}return s&&l.length&&(s=l.includes(o.user.role)),"function"===typeof r?r(s):"function"===typeof i?i(s):s&&(r||i)||null}function l(e,n,t){return function(i){return(0,s.jsx)(c,{permission:n,role:t,children:function(n){return(0,s.jsx)(e,(0,r.Z)((0,r.Z)({},i),{},{hasPermission:n}))}})}}c.propTypes={permission:o().oneOfType([o().string,o().arrayOf(o().string)]),role:o().oneOfType([o().string,o().arrayOf(o().string)]),component:o().oneOfType([o().func,o().node]),children:o().oneOfType([o().func,o().node])},c.defaultProps={permission:"",role:"",component:null,children:null}},92653:function(e,n,t){t.r(n),t.d(n,{default:function(){return hn}});var r,i=t(71171),o=t(33028),a=t(32723),s=t(34795),c=t(96234),l=t(30969),u=t(16380),d=t(76032),p=t.n(d),m=t(24974),f=t.n(m),h=t(65667),v=t.n(h),x=t(50496),g=t(6779),Z=t(38361),b=t(49884),j=t(88876),y=t(3715),k=t(13134),C=t(62399),D=t(47333),w=t(29996),S=t(90954),P=t(15378),R=t(2291),T=t(16438),I=t(20244),E=t(35470),N=t(49476),A=t(94984),B=t(36558),z=t(41395),_=t(80670),L=t(45008),U=t(22572),O=t(24891),W=t(94308),q=t(43207),F=t(33359),M=t(2689),V=t(39130),K=t(87006),J=t(51385),H=t(87535),X=t(23299),$=t(73820),G=t(37574);function Y(e){var n=e.teamDid,t=e.roles,r=e.onCancel,i=e.onSuccess,o=e.onError,u=e.endpoint,d=(0,z.h6)().api,p=(0,l.useState)(!1),m=(0,c.Z)(p,2),f=m[0],h=m[1],v=(0,l.useState)(""),g=(0,c.Z)(v,2),Z=g[0],b=g[1],j=(0,D.PE)(),y=j.t,k=j.locale,C=(0,l.useState)(0),S=(0,c.Z)(C,2),P=S[0],R=S[1],T=(0,l.useState)(""),I=(0,c.Z)(T,2),E=I[0],N=I[1],A=(0,l.useState)(""),B=(0,c.Z)(A,2),_=B[0],L=B[1],U=(0,l.useState)(""),Y=(0,c.Z)(U,2),Q=Y[0],ne=Y[1],te=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t,r,i,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_){e.next=3;break}return b(y("team.member.error.passportEmpty")),e.abrupt("return");case 3:return t=Q.trim(),b(null),h(!0),e.prev=6,e.next=9,d.createMemberInvitation({input:{teamDid:n,role:_,remark:t}});case 9:r=e.sent,i=r.inviteInfo,N(i),R(1),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(6),s=(0,O.Z)(e.t0),b(s),o(e.t0);case 20:return e.prev=20,h(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[6,15,20,23]])})));return function(){return e.apply(this,arguments)}}(),re=[{body:(0,G.jsxs)(F.Z,{component:"div",children:[(0,G.jsxs)(H.Z,{style:{width:"100%"},variant:"outlined",children:[(0,G.jsx)(J.Z,{children:y("common.passport")}),(0,G.jsx)(V.Z,{"data-cy":"invite-member-select-role",value:_,onChange:function(e){b(null),L(e.target.value)},fullWidth:!0,label:y("common.passport"),disabled:f,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),te())},children:t.filter((function(e){return"owner"!==e.name})).map((function(e){return(0,G.jsx)(M.Z,{value:e.name,"data-cy":"invite-member-select-option-".concat(e.name),children:(0,G.jsx)("span",{children:e.title||e.name})},e.name)}))})]}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,G.jsx)(K.Z,{label:y("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:Q,onChange:function(e){b(null),ne(e.target.value)},disabled:f,"data-cy":"invite-member-input-remark"}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:y("common.cancel"),confirm:y("team.member.inviteDialog.createInviteLink"),onCancel:r,onConfirm:te},{body:function(){var e=(0,O.ly)({inviteId:E.inviteId,endpoint:u});return(0,G.jsxs)("div",{children:[(0,G.jsx)(ee,{children:y("team.member.inviteDialog.createSuccessTip",{expireDate:(0,O.B2)(E.expireDate,k)})}),(0,G.jsx)("div",{style:{marginTop:"40px"}}),(0,G.jsx)($.Z,{children:e})]})},confirm:y("common.confirm"),onConfirm:i}][P];return(0,G.jsxs)(x.Z,{title:y("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,G.jsxs)(G.Fragment,{children:[re.cancel&&(0,G.jsx)(w.Z,{onClick:re.onCancel,color:"inherit",children:re.cancel}),(0,G.jsxs)(w.Z,{onClick:re.onConfirm,color:"primary",disabled:f||!_,variant:"contained",autoFocus:!0,children:[f&&(0,G.jsx)(W.Z,{size:16}),re.confirm]})]}),children:[(0,G.jsx)(q.Z,{component:"div",children:"function"===typeof re.body?re.body():re.body}),!!Z&&(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:Z})]})}Y.propTypes={teamDid:f().string.isRequired,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,roles:f().array,endpoint:f().string},Y.defaultProps={onError:function(){},roles:[],endpoint:""};var Q,ee=u.default.div(r||(r=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"]))),ne=t(17660),te=t(46292),re=t.n(te),ie=t(50007),oe=t(77370);function ae(e){var n=e.teamDid,t=e.onCancel,r=e.onSuccess,i=e.onError,o=e.endpoint,u=(0,z.h6)(),d=u.api,p=u.info,m=(0,l.useContext)(oe.B).api,f=(0,l.useState)(!1),h=(0,c.Z)(f,2),v=h[0],g=h[1],Z=(0,D.PE)(),b=Z.t,j=Z.locale,y=(0,l.useState)(""),k=(0,c.Z)(y,2),C=k[0],S=k[1],P=(0,l.useState)(!1),R=(0,c.Z)(P,2),T=R[0],I=R[1],E=(0,l.useState)(0),N=(0,c.Z)(E,2),A=N[0],B=N[1],_=(0,l.useState)(""),L=(0,c.Z)(_,2),U=L[0],M=L[1],V=(0,l.useState)(""),J=(0,c.Z)(V,2),H=J[0],Y=J[1],Q=!!re()(p,"ownerNft.did"),ee=(0,ne.default)((0,s.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q){e.next=6;break}return e.next=3,d.getDelegationState();case 3:return n=e.sent,t=n.state,e.abrupt("return",t);case 6:return e.abrupt("return",{delegated:!0});case 7:case"end":return e.stop()}}),e)}))));if(ee.loading)return(0,G.jsx)(x.Z,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,G.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,G.jsx)(W.Z,{})})});if(ee.error)return(0,G.jsx)(x.Z,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:(0,O.Z)(ee.error)})});var te=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var t,r,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(null),g(!0),e.prev=2,e.next=5,d.createTransferInvitation({input:{teamDid:n,role:"owner",remark:H.trim()}});case 5:t=e.sent,r=t.inviteInfo,M(r),B(se.length-1),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),o=(0,O.Z)(e.t0),S(o),i(e.t0);case 16:return e.prev=16,g(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,11,16,19]])})));return function(){return e.apply(this,arguments)}}(),ae=function(){I(!1),B(0)},se=[{body:(0,G.jsxs)(F.Z,{component:"div",children:[(0,G.jsxs)(X.Z,{type:"warning",children:[(0,G.jsx)(F.Z,{children:b("team.transferNode.inviteDialog.tips.progress")}),(0,G.jsx)(F.Z,{children:b("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),(0,G.jsx)(X.Z,{type:"warning",children:(0,G.jsx)(F.Z,{children:b("team.transferNode.inviteDialog.tips.revoke")})}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,G.jsx)(K.Z,{label:b("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:H,onChange:function(e){S(null),Y(e.target.value)},disabled:v,"data-cy":"transfer-node-input-remark"}),(0,G.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:b("common.cancel"),confirm:b("team.transferNode.inviteDialog.createInviteLink"),onCancel:t,onConfirm:Q&&!re()(ee,"value.delegated")?function(){I(!0),B(1)}:te},{body:function(){return(0,G.jsx)(ie.default,{action:"delegate-transfer-nft",open:T,locale:j,checkFn:m.get,onClose:ae,onSuccess:te,checkTimeout:3e5,webWalletUrl:(0,O.yP)(p),extraParams:{targetDID:p.did},messages:{title:b("team.transferNode.delegateDialog.title"),scan:b("team.transferNode.delegateDialog.scan"),confirm:b("team.transferNode.delegateDialog.confirm"),success:b("team.transferNode.delegateDialog.success")},popup:!0})}},{body:function(){var e=(0,O.ly)({inviteId:U.inviteId,endpoint:o});return(0,G.jsxs)("div",{children:[(0,G.jsx)(ce,{children:b("team.transferNode.inviteDialog.createSuccessTip",{expireDate:(0,O.B2)(U.expireDate,j)})}),(0,G.jsx)("div",{style:{marginTop:"40px"}}),(0,G.jsx)($.Z,{children:e})]})},confirm:b("common.confirm"),onConfirm:r}],le=se[A];return(0,G.jsxs)(x.Z,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,G.jsxs)(G.Fragment,{children:[le.cancel&&(0,G.jsx)(w.Z,{onClick:le.onCancel,color:"inherit",children:le.cancel}),(0,G.jsxs)(w.Z,{onClick:le.onConfirm,color:"primary",disabled:v,variant:"contained",autoFocus:!0,children:[v&&(0,G.jsx)(W.Z,{size:16}),le.confirm]})]}),children:[(0,G.jsx)(q.Z,{component:"div",children:"function"===typeof le.body?le.body():le.body}),!!C&&(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:C})]})}ae.propTypes={teamDid:f().string.isRequired,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,endpoint:f().string},ae.defaultProps={onError:function(){},endpoint:""};var se,ce=u.default.div(Q||(Q=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"]))),le=t(59740),ue=t(59467),de=t(19865),pe=t(70177),me=t(48401),fe=t(83486),he=t(28595),ve=t(59505),xe=t(8479),ge=t(88581),Ze=["passport","onDelete"];function be(e){var n=e.passport,t=e.onDelete,r=(0,le.Z)(e,Ze);return(0,G.jsxs)(ye,(0,o.Z)((0,o.Z)({},r),{},{children:[n.title||n.name," ",!!t&&(0,G.jsx)(ge.default,{"data-cy":"delete-issuance",className:"delete",onClick:t})]}))}be.propTypes={passport:f().object.isRequired,onDelete:f().func},be.defaultProps={onDelete:null};var je,ye=u.default.span(se||(se=(0,i.Z)(["\n display: inline-flex;\n padding: 2px 8px;\n background: ",";\n border-radius: 100vw;\n font-weight: 400;\n font-size: 12px;\n line-height: 22px;\n color: #fff;\n align-items: center;\n .delete {\n font-size: 1em;\n margin-left: 6px;\n cursor: pointer;\n }\n"])),(function(e){return e.theme.palette.primary.main}));function ke(e){var n=e.issuances,t=e.teamDid,r=e.onRefresh,i=(0,z.h6)(),o=i.api,u=i.inService,d=(0,l.useContext)(D.RD),p=d.t,m=d.locale,f=(0,l.useState)(null),h=(0,c.Z)(f,2),v=h[0],x=h[1],g=(0,l.useState)(!1),b=(0,c.Z)(g,2),j=b[0],y=b[1],k=(0,_.DJ)().endpoint,C=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.id,!j){e.next=3;break}return e.abrupt("return");case 3:return y(!0),e.prev=4,e.next=7,o.deletePassportIssuance({input:{teamDid:t,sessionId:i}});case 7:r(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),A.Z.error(e.t0.message);case 13:return e.prev=13,y(!1),x(null),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[4,10,13,17]])})));return function(n){return e.apply(this,arguments)}}(),w=function(){y(!1),x(null)},S=function(e){return k?(0,O._)({id:e.id,endpoint:k}):""};function P(e){var n=e.data;return(0,G.jsxs)("div",{className:"issuance",children:[(0,G.jsxs)(Z.Z,{display:"flex",justifyContent:"space-between",children:[(0,G.jsx)(U.Z,{permission:u?"":"mutate_team",role:u?O.Wf:[],children:function(e){return e?(0,G.jsx)(be,{passport:{title:n.title,name:n.name},onDelete:function(){return x({title:p("team.passport.issuance.delete.title"),description:p("team.passport.issuance.delete.description",{link:S(n)}),confirm:p("common.delConfirm"),cancel:p("common.cancel"),onConfirm:function(){C(n)},onCancel:w})}}):(0,G.jsx)(be,{passport:{title:n.title,name:n.name}})}}),(0,G.jsxs)("div",{style:{color:"#999"},children:[p("common.expires"),":\xa0",(0,O.B2)(n.expireDate,m)]})]}),(0,G.jsx)(Z.Z,{mt:2,children:(0,G.jsx)($.Z,{children:S(n)})})]})}return(0,G.jsxs)(Ce,{children:[n.map((function(e){return(0,G.jsx)(P,{data:e})})),v&&(0,G.jsx)(xe.Z,{title:v.title,description:v.description,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}var Ce=u.default.div(je||(je=(0,i.Z)(["\n .MuiTableHead-root {\n display: none;\n }\n .issuance {\n padding: 16px 0;\n border-bottom: 1px solid #f0f0f0;\n .MuiTypography-root {\n display: inline-block;\n width: 100%;\n background: #f3f3f3;\n border-radius: 4px;\n padding-top: 6px;\n padding-bottom: 6px;\n }\n }\n"])));ke.propTypes={teamDid:f().string.isRequired,issuances:f().array,onRefresh:f().func},ke.defaultProps={issuances:[],onRefresh:function(){}};var De,we=t(68079),Se=t(70093),Pe=t.n(Se),Re=t(25177),Te=t(86384),Ie=t(69936),Ee=t(78789),Ne=t(83683),Ae=t(36568);function Be(e){var n=e.teamDid,t=e.ownerDid,r=e.needReceive,i=e.roles,o=e.onCancel,u=e.onSuccess,d=e.onError,p=e.showOwnerPassport,m=(0,z.h6)().api,f=(0,l.useState)(!1),h=(0,c.Z)(f,2),v=h[0],g=h[1],Z=(0,l.useState)(""),b=(0,c.Z)(Z,2),j=b[0],y=b[1],k=(0,D.PE)().t,C=(0,l.useState)(""),S=(0,c.Z)(C,2),P=S[0],R=S[1],T=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P){e.next=3;break}return y(k("team.member.error.passportEmpty")),e.abrupt("return");case 3:return y(null),g(!0),e.prev=5,e.next=8,m.createPassportIssuance({input:{teamDid:n,name:P,ownerDid:t}});case 8:u(),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(5),r=(0,O.Z)(e.t0),y(r),d(e.t0);case 16:return e.prev=16,g(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[5,11,16,19]])})));return function(){return e.apply(this,arguments)}}();return(0,G.jsxs)(x.Z,{title:k("team.passport.issue"),fullWidth:!0,open:!0,onClick:function(e){return e.stopPropagation()},onClose:o,disableEscapeKeyDown:!0,PaperProps:{style:{minHeight:"auto"}},actions:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{onClick:o,color:"inherit",size:"small",children:k("common.cancel")}),(0,G.jsxs)(w.Z,{onClick:T,color:"primary",size:"small",disabled:v||!P,variant:"contained",autoFocus:!0,"data-cy":"issue-passport-create-btn",children:[v&&(0,G.jsx)(W.Z,{size:16}),k(r?"team.passport.issuance.create.title":"oauth.issued")]})]}),children:[(0,G.jsx)(q.Z,{component:"div",children:(0,G.jsx)(F.Z,{component:"div",children:(0,G.jsxs)(H.Z,{style:{width:"100%"},variant:"outlined",children:[(0,G.jsx)(J.Z,{children:k("common.passport")}),(0,G.jsx)(V.Z,{"data-cy":"issue-passport-select-passport",value:P,onChange:function(e){y(null),R(e.target.value)},fullWidth:!0,label:k("common.passport"),disabled:v,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),T())},children:i.filter((function(e){return p||"owner"!==e.name})).map((function(e){return(0,G.jsx)(M.Z,{value:e.name,"data-cy":"issue-passport-select-option-".concat(e.name),children:(0,G.jsx)("span",{children:e.title||e.name})},e.name)}))})]})})}),!!j&&(0,G.jsx)(X.Z,{type:"error",variant:"icon",children:j})]})}function ze(e){var n=e.action,t=e.passport,r=(0,D.PE)().t,i=(0,_.DJ)().roles.find((function(e){return e.name===t.role}));return(0,G.jsxs)("div",{children:[(0,G.jsx)("div",{children:r("enable"===n?"team.member.enablePassportDescription":"team.member.revokePassportDescription")}),i&&(0,G.jsx)(Z.Z,{mt:3,fontWeight:"bold",children:r("team.member.passportPermissionTitle")}),i&&(0,G.jsx)(Z.Z,{mt:1,children:i.description})]})}function _e(e){var n,t=e.user,r=e.onCreate,i=e.createPassportSvg,u=(0,D.PE)().t,d=(0,oe.T)().session,p=(0,_.DJ)(),m=p.roles,f=p.teamDid,h=p.teamIssuerDid,v=p.refresh,x=p.enablePassportIssuance,b=p.trustedPassports,j=p.passportColor,k=p.blocklet,C=(0,L.y0)().appIdList,S=(0,z.h6)(),R=S.api,T=S.inService,E=(0,l.useState)(!1),N=(0,c.Z)(E,2),B=N[0],W=N[1],q=(0,l.useState)(null),F=(0,c.Z)(q,2),M=F[0],V=F[1],K=(0,l.useState)(!1),J=(0,c.Z)(K,2),H=J[0],X=J[1],$=(0,l.useState)(""),Y=(0,c.Z)($,2),Q=Y[0],ee=Y[1],ne=[h].concat((0,we.Z)(C||[])).filter(Boolean),te=(re()(t,"passports")||[]).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{revoked:e.status===I.PASSPORT_STATUS.REVOKED})})),ie=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!B){e.next=2;break}return e.abrupt("return");case 2:return W(!0),e.prev=3,r=n.status===I.PASSPORT_STATUS.REVOKED?"enableUserPassport":"revokeUserPassport",e.next=7,R[r]({input:{teamDid:f,userDid:t.did,passportId:n.id}});case 7:v(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),A.Z.error((0,O.Z)(e.t0));case 13:return e.prev=13,W(!1),V(null),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[3,10,13,17]])})));return function(n){return e.apply(this,arguments)}}(),ae=function(e,n){return t.did===d.user.did&&d.user.passportId&&d.user.passportId===n.id?{revokable:!1,message:u("team.passport.shouldNotDeleteCurrent")}:e?f===n.issuer.id&&"owner"===n.name?{revokable:!1,message:u("team.passport.noPermission")}:{revokable:!0}:{revokable:!1,message:u("team.passport.noPermission")}},se=te.filter((function(e){return!Q||e.title.includes(Q)||e.name.includes(Q)}));return(0,G.jsxs)(Le,{children:[(0,G.jsxs)(Ae.Z,{children:[(0,G.jsx)("div",{className:"left",children:(0,G.jsx)(Ne.Z,{placeholder:u("team.passport.search"),value:Q,onChange:function(e){return ee(e.target.value)}})}),(0,G.jsx)("div",{className:"right",children:x&&!!t.approved&&(0,G.jsx)(U.Z,{permission:T?"":"mutate_team",role:T?O.Wf:[],children:(0,G.jsxs)(w.Z,{variant:"contained",color:"primary","data-cy":"issue-passport",onClick:function(){return X(!0)},children:[(0,G.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}),u("team.passport.issue")]})})})]}),(0,G.jsxs)(Z.Z,{children:[se.map((function(e){return(0,G.jsx)(U.Z,{permission:T?"":"mutate_team",role:T?O.Wf:[],children:function(n){return(0,G.jsxs)(Z.Z,{className:"passport-item",display:"flex",justifyContent:"space-between",alignItems:"center",mt:3,children:[(0,G.jsxs)(Z.Z,{display:"flex",alignItems:"center",children:[(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:i({title:e.title||e.name,issuer:e.issuer&&e.issuer.name,issuerDid:e.issuer&&e.issuer.id,ownerName:t.fullName,ownerDid:t.did,ownerAvatarUrl:t.avatar,revoked:e.revoked,preferredColor:j,width:"150px"})}}),(0,G.jsxs)("div",{className:"body",children:[(0,G.jsxs)(Z.Z,{className:"title",display:"flex",alignItems:"center",children:[Pe()(e.title),(0,G.jsxs)("div",{className:"status-icons",children:[!!ne.length&&!ne.includes(e.issuer.id)&&(0,G.jsx)(P.Z,{}),e.revoked&&(0,G.jsx)(Ie.Z,{})]})]}),e.expirationDate&&(0,G.jsx)(Z.Z,{className:"title",display:"flex",alignItems:"center",children:u("team.passport.validUntil",{date:e.expirationDate})}),!!ne.length&&!ne.includes(e.issuer.id)&&(0,G.jsxs)("div",{className:"tip",children:[e.issuer.id!==h&&!b.some((function(n){return n.issuerDid===e.issuer.id}))&&(0,G.jsx)(g.Z,{title:u("team.passport.notTrustedIssuerTip"),children:(0,G.jsx)(Z.Z,{component:Re.Z,style:{fontSize:"1.3em"},color:"error.main",mr:.5})}),(0,G.jsx)("span",{children:u("team.passport.issueBy",{name:e.issuer.name})})]})]})]}),(0,G.jsx)(Z.Z,{children:ae(n,e).revokable?(0,G.jsxs)(w.Z,{variant:"outlined",color:e.revoked?"primary":"secondary",onClick:function(){return(n=e).status===I.PASSPORT_STATUS.REVOKED?V({title:u("team.member.enablePassport"),description:(0,G.jsx)(ze,{action:"enable",passport:n}),confirm:u("common.enable"),cancel:u("common.cancel"),onConfirm:function(){ie(n)},onCancel:function(){W(!1),V(null)},color:"primary"}):V({title:u("team.member.revokePassport"),description:(0,G.jsx)(ze,{action:"revoke",passport:n}),confirm:u("common.revoke"),cancel:u("common.cancel"),onConfirm:function(){ie(n)},onCancel:function(){W(!1),V(null)}});var n},children:[e.revoked?(0,G.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}):(0,G.jsx)(Ie.Z,{style:{height:16,marginRight:4}}),e.revoked?u("common.enable"):u("common.revoke")]}):(0,G.jsx)(g.Z,{title:ae(n,e).message,children:(0,G.jsx)(Re.Z,{style:{color:"#ddd"}})})})]})}},e.id)})),!se.length&&(0,G.jsx)(Ee.Z,{children:u("common.empty")})]}),H&&(0,G.jsx)(Be,{teamDid:f,ownerDid:t.did,needReceive:(0,Te.h1)(t)===t.did,roles:m,onCancel:function(){return X(!1)},onSuccess:function(){r(),X(!1)},showOwnerPassport:k&&!(null!==(n=k.settings)&&void 0!==n&&n.owner)}),M&&(0,G.jsx)(xe.Z,{title:M.title,description:M.description,confirm:M.confirm,cancel:M.cancel,params:M.params,onConfirm:M.onConfirm,onCancel:M.onCancel,color:M.color})]})}Be.propTypes={teamDid:f().string.isRequired,ownerDid:f().string.isRequired,needReceive:f().bool,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,roles:f().array,showOwnerPassport:f().bool},Be.defaultProps={onError:function(){},roles:[],showOwnerPassport:!1,needReceive:!0},ze.propTypes={action:f().string.isRequired,passport:f().object.isRequired},ze.defaultProps={},_e.propTypes={user:f().object.isRequired,createPassportSvg:f().func.isRequired,onCreate:f().func},_e.defaultProps={onCreate:function(){}};var Le=u.default.div(De||(De=(0,i.Z)(["\n .passport-item {\n .body {\n padding: 0;\n margin-left: 24px;\n margin-top: 0;\n }\n .title {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #222222;\n }\n .tip {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-top: 6px;\n color: #bbb;\n }\n .status-icons {\n svg {\n fill: #bfbfbf;\n height: 1.2em;\n margin-left: 0.4em;\n }\n }\n .MuiButton-outlinedSecondary {\n color: #f16e6e;\n fill: #f16e6e;\n background: #fcf3f3;\n border: 0;\n &:hover {\n border: 0;\n }\n }\n }\n"]))),Ue=function(e,n){return e.nodeOwner&&e.nodeOwner.did===n},Oe=function(e,n){return e&&e.did===n};function We(e){var n,t=e.user,r=e.onCancel,i=e.onSuccess,o=e.onError,u=e.children,d=(0,z.h6)(),p=d.api,m=d.info,f=d.inService,h=(0,oe.T)().session,v=(0,_.DJ)(),x=v.teamDid,g=v.refresh,Z=(0,D.PE)().t,b=(0,l.useState)(!1),j=(0,c.Z)(b,2),y=j[0],k=j[1],C=(0,l.useState)(!1),w=(0,c.Z)(C,2),S=w[0],P=w[1],R=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var t,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.did,r=n.approved,!y){e.next=3;break}return e.abrupt("return");case 3:return k(!0),e.prev=4,e.next=7,p.updateUserApproval({input:{teamDid:x,user:{did:t,approved:!r}}});case 7:P(!1),i(),g(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),A.Z.error((0,O.Z)(e.t0)),o();case 16:return e.prev=16,k(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(n){return e.apply(this,arguments)}}(),T={title:t.approved?Z("team.member.forbidLogin"):Z("team.member.allowLogin"),description:t.approved?Z("team.member.forbidLoginDescription"):Z("team.member.allowLoginDescription"),confirm:Z("common.confirm"),cancel:Z("common.cancel"),onConfirm:function(){R(t)},onCancel:function(){k(!1),P(!1),r()},color:t.approved?"error":"primary"};return(n=(f||m.nodeOwner&&!Ue(m,t.did))&&!Oe(h.user,t.did))?(0,G.jsxs)(G.Fragment,{children:["function"===typeof u?u({can:n,open:function(){return P(!0)}}):u,S?(0,G.jsx)(xe.Z,{title:T.title,description:T.description,confirm:T.confirm,cancel:T.cancel,params:T.params,onConfirm:T.onConfirm,onCancel:T.onCancel,color:T.color}):null]}):null}We.propTypes={user:f().object,onSuccess:f().func,onCancel:f().func,onError:f().func,children:f().oneOfType([f().object,f().func])},We.defaultProps={user:{},onSuccess:function(){},onCancel:function(){},onError:function(){},children:null};var qe,Fe,Me,Ve=t(19611),Ke=t.n(Ve);function Je(e,n,t){if(e&&e.startsWith(I.USER_AVATAR_URL_PREFIX)){var r=window.env.apiPrefix||"/";return t?Ke()(r,I.USER_AVATAR_PATH_PREFIX,e.replace(I.USER_AVATAR_URL_PREFIX,"")):Ke()(r,I.USER_AVATAR_PATH_PREFIX,n,e.replace(I.USER_AVATAR_URL_PREFIX,""))}return e}function He(e){return(e.user.connectedAccounts||[]).map((function(e){return(0,G.jsx)(pe.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.provider,children:(0,G.jsx)(B.Z,{did:e.did})},e.did)}))}f().string.isRequired,He.propTypes={user:f().object.isRequired,onChangeUser:f().func},He.defaultProps={onChangeUser:function(){}};var Xe="info";function $e(e){var n=e.userDid,t=e.onCancel,r=e.initTab,i=e.createPassportSvg,o=(0,z.h6)(),c=o.api,u=o.ws.useSubscription,d=o.inService,p=(0,_.DJ)(),m=p.roles,f=p.teamDid,h=p.enablePassportIssuance,v=(0,D.PE)(),g=v.t,b=v.locale,j=(0,he.Z)({user:null,issuances:null,tab:r||Xe}),y=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.doBatchQuery({getUser:{input:{teamDid:n,user:{did:t}}},getPassportIssuances:{input:{teamDid:n,ownerDid:t}}});case 3:(r=e.sent).getUser.user&&(r.getUser.user.avatar=Je(r.getUser.user.avatar,n,d),r.getUser.user.passports=(r.getUser.user.passports||[]).filter((function(e){return e.issuer}))),j.user=r.getUser.user||{},j.issuances=r.getPassportIssuances.list||[],e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),A.Z.error((0,O.Z)(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(n,t){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){f&&y(f,n)}),[n,f]);u(I.EVENTS.USER_UPDATED,(function(e){e.teamDid===f&&e.user&&e.user.did===n&&y(f,n)}),[n,f]),(0,l.useEffect)((function(){j.issuances&&!j.issuances.length&&"issuances"===j.tab&&(j.tab=Xe)}),[j.issuances]);var k=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(f,n.did);case 2:j.tab=Xe;case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),C={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"},w={info:{label:g("common.basicInfo"),value:Xe,component:function(){var e,n;return(j.user?[{name:g("team.member.name"),value:j.user.fullName},{name:g("common.email"),value:j.user.email},{name:g("team.member.source"),value:(0,G.jsx)(Z.Z,{display:"flex",alignItems:"center",children:C[(null===(e=j.user)||void 0===e?void 0:e.sourceProvider)||I.USER_TYPE.WALLET]||(null===(n=j.user)||void 0===n?void 0:n.sourceProvider)})},{name:g("team.member.allowLogin"),value:j.user.approved?g("common.yes"):g("common.no")},{name:g("team.member.lastLogin"),value:(0,O.B2)(j.user.lastLoginAt,b)},{name:g("team.member.lastLoginIp"),value:j.user.lastLoginIp||""},{name:g("common.createdAt"),value:(0,O.B2)(j.user.createdAt,b)},{name:g("common.remark"),value:j.user.remark||"--"}].filter(Boolean):[]).map((function(e){return e.name===g("common.did")?(0,G.jsx)(pe.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:function(){return g("common.did")},children:e.value},e.name):(0,G.jsx)(pe.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)}))}},oauth:{label:g("team.member.connectedAccounts"),value:"oauth",component:function(){return(0,G.jsx)(He,{user:j.user,onChangeUser:k})}},passports:{label:g("common.passport"),value:"passports",component:function(){return(0,G.jsx)(_e,{user:j.user,teamDid:f,roles:m,createPassportSvg:i,onCreate:function(){y(f,n).then((function(){h&&j.issuances&&j.issuances.length&&(j.tab="issuances")}))},onRefresh:function(){y(f,n)}})}},issuances:{label:g("team.passport.issuance.pending"),value:"issuances",component:function(){return(0,G.jsx)(ke,{issuances:j.issuances||[],teamDid:f,onRefresh:function(){return y(f,n)}})}}},S=Object.values(w).map((function(e){return{label:e.label,value:e.value}})).filter((function(e){return"issuances"===e.value?h&&j.issuances&&!!j.issuances.length:"oauth"!==e.value||((null===(n=j.user)||void 0===n?void 0:n.connectedAccounts)||[]).find((function(e){var n;return e.provider!==((null===(n=j.user)||void 0===n?void 0:n.sourceProvider)||ve.LOGIN_PROVIDER.WALLET)}));var n})),P=w[j.tab]||w.info;return(0,G.jsx)(x.Z,{title:g("common.member"),onClose:t,open:!0,PaperProps:{style:{maxWidth:632,minHeight:"80vh"}},fullWidth:!0,actions:j.user&&(0,G.jsx)(U.Z,{permission:d?"":"mutate_team",role:d?O.Wf:[],children:(0,G.jsx)(We,{user:j.user,children:function(e){var n=e.open;return(0,G.jsxs)(en,{onClick:n,children:[j.user.approved?(0,G.jsx)(me.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}):(0,G.jsx)(fe.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}),j.user.approved?g("team.member.forbidLogin"):g("team.member.allowLogin")]})}})}),children:(0,G.jsxs)(Ye,{children:[!j.user&&(0,G.jsx)(Qe,{children:(0,G.jsx)(W.Z,{})}),j.user&&(0,G.jsxs)("div",{children:[(0,G.jsxs)(Z.Z,{display:"flex",alignItems:"center",className:"info",children:[(0,G.jsx)(ue.Z,{src:j.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,G.jsxs)(Z.Z,{children:[(0,G.jsx)(Z.Z,{className:"name",children:j.user.fullName}),(0,G.jsx)(Z.Z,{className:"did",mt:1,children:(0,G.jsx)(B.Z,{did:j.user.did})})]})]}),(0,G.jsx)(Z.Z,{mx:3,className:"tabs",children:(0,G.jsx)(de.Z,{tabs:S,current:j.tab,onChange:function(e){j.tab=e},scrollButtons:"auto"})}),(0,G.jsx)("div",{className:"body",children:(0,G.jsx)(P.component,{})})]})]})})}$e.propTypes={userDid:f().string.isRequired,onCancel:f().func.isRequired,createPassportSvg:f().func.isRequired,initTab:f().string},$e.defaultProps={initTab:Xe};var Ge,Ye=u.default.div(qe||(qe=(0,i.Z)(["\n .info {\n .name {\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n\n .tabs {\n margin-top: 24px;\n margin-left: 0;\n margin-right: 0;\n }\n\n .body {\n margin-top: 24px;\n }\n"]))),Qe=u.default.div(Fe||(Fe=(0,i.Z)(["\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n"]))),en=u.default.div(Me||(Me=(0,i.Z)(["\n flex-shrink: 0;\n width: 100%;\n height: 64px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: #999;\n fill: #999;\n font-size: 16px;\n border-top: 1px solid #f0f0f0;\n position: sticky;\n bottom: 0;\n background: #fff;\n z-index: 10;\n"]))),nn=t(10814);function tn(){var e=(0,z.h6)(),n=e.api,t=e.inService,r=(0,l.useContext)(D.RD),i=r.t,o=r.locale,u=(0,_.DJ)(),d=u.teamDid,p=u.invitations,m=u.refresh,f=u.endpoint,h=(0,l.useState)(null),v=(0,c.Z)(h,2),x=v[0],g=v[1],Z=(0,l.useState)(!1),b=(0,c.Z)(Z,2),j=b[0],y=b[1],k=function(){var e=(0,s.Z)((0,a.Z)().mark((function e(t){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.inviteId,!j){e.next=3;break}return e.abrupt("return");case 3:return y(!0),e.prev=4,e.next=7,n.deleteInvitation({input:{teamDid:d,inviteId:r}});case 7:return m(),e.next=10,(0,O._v)(800);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.prev=15,y(!1),g(null),e.finish(15);case 19:case"end":return e.stop()}}),e,null,[[4,12,15,19]])})));return function(n){return e.apply(this,arguments)}}(),C=function(){y(!1),g(null)},S=function(e){return f?(0,O.ly)({inviteId:e.inviteId,endpoint:f}):""},P=[{label:i("team.inviting.link"),name:"inviteId",options:{sort:!1,customBodyRenderLite:function(e){var n=p[e];return f?(0,G.jsx)($.Z,{children:S(n)}):(0,G.jsx)(W.Z,{size:16})}}},{label:i("common.role"),name:"role",widtn:70},{label:i("common.remark"),name:"remark",options:{customBodyRender:function(e){return e||"--"}}},{label:i("team.inviting.inviter"),name:"inviter.fullName",options:{sort:!1,customBodyRender:function(e,n){var t,r=n.rowIndex,i=p[r];return null===i||void 0===i||null===(t=i.inviter)||void 0===t?void 0:t.fullName}}},{label:i("common.expires"),name:"expireDate",options:{customBodyRender:function(e){return(0,G.jsx)(T.Z,{value:e,locale:o})}}},{label:i("common.actions"),name:"",width:100,align:"center",options:{sort:!1,customBodyRenderLite:function(e){var n=p[e];return(0,G.jsx)(U.Z,{permission:t?"":"mutate_team",role:t?O.Wf:[],children:(0,G.jsxs)(w.Z,{onClick:function(){return g({title:i("team.inviting.delete.title"),description:i("team.inviting.delete.description",{link:S(n)}),confirm:i("common.delConfirm"),cancel:i("common.cancel"),onConfirm:function(){return k(n)},onCancel:C})},size:"small",color:"error",variant:"text",children:[(0,G.jsx)(nn.default,{style:{fontSize:"1.2em"}}),i("common.delete")]})})}}}];return(0,G.jsxs)(rn,{children:[p.length?(0,G.jsx)(R.Z,{locale:o,data:(0,we.Z)(p),columns:P,verticalKeyWidth:100,options:{download:!1,filter:!1,print:!1}}):(0,G.jsx)(Ee.Z,{children:i("common.empty")}),x&&(0,G.jsx)(xe.Z,{title:x.title,description:x.description,confirm:x.confirm,cancel:x.cancel,params:x.params,onConfirm:x.onConfirm,onCancel:x.onCancel})]})}var rn=u.default.div(Ge||(Ge=(0,i.Z)(["\n margin-top: -20px;\n"])));tn.propTypes={},tn.defaultProps={};var on,an=t(93310),sn=t(86008),cn=t(80714);function ln(e){var n=e.user,t=e.onIssuePassport,r=(0,_.DJ)(),i=r.teamDid,o=r.roles,a=(0,l.useContext)(D.RD).t,s=(0,l.useState)(!1),u=(0,c.Z)(s,2),d=u[0],p=u[1];return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(cn.Z,{"data-cy":"member-actions",actions:[{icon:(0,G.jsx)(y.Z,{fontSize:"small"}),text:a("team.passport.issue"),"data-cy":"action-issue-passport",onClick:function(e){e.stopPropagation(),p(!0)}},function(e){var t=e.close;return(0,G.jsx)(We,{user:n,children:function(e){var r=e.open;return(0,G.jsxs)(M.Z,{dense:!0,onClick:function(e){e.stopPropagation(),t(),r(e)},"data-cy":"action-toggle-block",children:[(0,G.jsx)(an.Z,{style:{minWidth:24,marginRight:8},children:n.approved?(0,G.jsx)(me.Z,{}):(0,G.jsx)(fe.Z,{})}),(0,G.jsx)(sn.Z,{primary:n.approved?a("team.member.forbidLogin"):a("team.member.allowLogin")})]})}},"toggle-approval")}]}),d&&(0,G.jsx)(Be,{teamDid:i,ownerDid:n.did,needReceive:(0,Te.h1)(n)===n.did,roles:o,onCancel:function(){return p(!1)},onSuccess:function(){t(),p(!1)}})]})}ln.propTypes={user:f().object.isRequired,onIssuePassport:f().func},ln.defaultProps={onIssuePassport:function(){}};var un="$all",dn="$none",pn=function(e,n){var t=e.find((function(e){return e.key===n}));return(null===t||void 0===t?void 0:t.value)||0},mn=function(e,n){var t=e.passports||[];return!!t.length&&!t.some((function(e){var t;return n.includes(null===(t=e.issuer)||void 0===t?void 0:t.id)}))};function fn(e){var n=e.user,t=(0,l.useContext)(D.RD).t,r=(0,G.jsxs)("div",{className:"member-block",children:[(0,G.jsxs)("div",{className:"member-avatar",children:[(0,G.jsx)(C.Z,{src:"".concat(n.avatar,"?imageFilter=resize&w=48&h=48"),size:24,did:n.did,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),!n.approved&&(0,G.jsx)("did",{className:"badge-block"}),n.isFromExternal&&(0,G.jsx)(g.Z,{title:t("team.passport.externalPassport"),children:(0,G.jsx)(Z.Z,{ml:1,className:"icon",children:(0,G.jsx)(P.Z,{})})})]}),(0,G.jsx)("div",{className:"member-text",children:n.fullName})]});return n.approved?r:(0,G.jsx)(Z.Z,{display:"flex",alignItems:"center",children:(0,G.jsx)(g.Z,{title:t("team.member.forbidLoginDescription"),children:r})})}function hn(e){var n=e.type,t=e.createPassportSvg,r=(0,L.y0)().appIdList,i=void 0===r?[]:r,u=(0,_.DJ)(),d=u.teamDid,m=u.invitations,f=u.teamIssuerDid,h=u.roles,g=u.refresh,C=u.enablePassportIssuance,P=u.endpoint,W=u.api,q=(0,z.h6)(),F=q.inService,M=q.ws.useSubscription,V=(0,l.useContext)(D.RD),K=V.t,J=V.locale,H=(0,l.useState)(!1),X=(0,c.Z)(H,2),$=X[0],Q=X[1],ee=(0,l.useState)(!1),ne=(0,c.Z)(ee,2),te=ne[0],re=ne[1],ie=(0,l.useState)(!1),oe=(0,c.Z)(ie,2),se=oe[0],ce=oe[1],le=(0,l.useState)(!1),ue=(0,c.Z)(le,2),de=ue[0],pe=ue[1],me=(0,l.useState)(!1),fe=(0,c.Z)(me,2),he=fe[0],ve=fe[1],xe=(0,l.useState)([]),ge=(0,c.Z)(xe,2),Ze=ge[0],be=ge[1],je=(0,l.useState)(),ye=(0,c.Z)(je,2),ke=ye[0],Ce=ye[1],De=(0,l.useState)([]),we=(0,c.Z)(De,2),Se=we[0],Pe=we[1],Re=(0,E.Z)({did:void 0}),Te=(0,c.Z)(Re,1)[0],Ie="members-".concat(d),Ee=(0,R.$)(Ie),Ne=(0,l.useState)({role:un,searchText:Ee.searchText||"",hideBlocked:!1,pageSize:Ee.rowsPerPage||10,page:Ee.page?Ee.page+1:1}),Ae=(0,c.Z)(Ne,2),Be=Ae[0],ze=Ae[1];(0,N.Z)((0,s.Z)((0,a.Z)().mark((function e(){var n,t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Te.did){e.next=6;break}return e.next=3,W.getUser({did:Te.did});case 3:n=e.sent,(t=n.user)&&pe(t);case 6:case"end":return e.stop()}}),e)}))));var _e=(h||[]).map((function(e){return{name:e.name,title:e.title,num:pn(Se,e.name)}}));_e.unshift({name:un,title:"All Members",num:pn(Se,un)}),_e.push({name:dn,title:"Other",num:pn(Se,dn)});var Le=function(){var e={};Be.hideBlocked&&(e.approved=!0),e.role=Be.role,Be.searchText&&(e.search=Be.searchText),ve(!0),W.getUsers({query:e,paging:{page:Be.page,pageSize:Be.pageSize}}).then((function(e){ve(!1),(e.users||[]).forEach((function(e){e.isFromExternal=mn(e,p()(i)?[f]:i),e.avatar=Je(e.avatar,d,F),e.passports=(e.passports||[]).filter((function(e){return e.issuer}))})),be(e.users||[]),Ce(e.paging.total)})).catch((function(e){ve(!1),A.Z.error(e.message)}))},Ue=function(){W.getUsersCountPerRole().then((function(e){Pe(e.counts||[])})).catch((function(e){A.Z.error(e.message)}))},Oe=function(e){e.teamDid===d&&(Le(),Ue())};(0,l.useEffect)((function(){Le()}),["".concat(Be.hideBlocked,"-").concat(Be.role,"-").concat(Be.page,"-").concat(Be.pageSize,"-").concat(Be.searchText)]),(0,l.useEffect)((function(){Ue()}),[]),M(I.EVENTS.USER_UPDATED,Oe,[Be]),M(I.EVENTS.USER_ADDED,Oe,[Be]);var We=C,qe=[{label:K("common.name"),name:"fullName",options:{customBodyRenderLite:function(e){var n=Ze[e];return(0,G.jsx)("div",{"data-cy":"member-name-".concat(n.fullName),children:(0,G.jsx)(fn,{user:n})},n.did)}}},{label:K("common.address"),name:"did",options:{customBodyRender:function(e){return(0,G.jsx)(B.Z,{size:14,responsive:!0,copyable:!1,did:e})}}},{label:K("team.member.lastLogin"),name:"lastLoginAt",options:{customBodyRender:function(e){return(0,G.jsx)(T.Z,{value:e,locale:J})}}},{label:K("team.member.lastLoginIp"),name:"lastLoginIp",options:{customBodyRender:function(e){return e||"-"}}},{label:K("team.member.source"),name:"sourceProvider",options:{customBodyRender:function(e){var n=e||I.USER_TYPE.WALLET;return{auth0:"Auth0",wallet:"DID wallet",federated:"Federated"}[n]||n}}},{label:K("common.actions"),name:"",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:function(e){var n=Ze[e];return(0,G.jsx)(U.Z,{permission:F?"":"mutate_team",role:F?O.Wf:[],children:(0,G.jsx)(ln,{user:n,onIssuePassport:function(){return pe((0,o.Z)((0,o.Z)({},n),{},{initTab:"issuances"}))}})})}}}],Fe=[];We&&(Fe.push((0,G.jsxs)(w.Z,{variant:"outlined",style:{flexShrink:0,marginRight:16},color:"primary",size:"small",onClick:function(){ce(!0)},children:[(0,G.jsx)(S.Z,{style:{height:"1em",marginRight:4}}),K("common.inviting"),m.length?" (".concat(m.length,")"):""]}),(0,G.jsx)(U.Z,{permission:F?"":"mutate_team",role:F?O.Wf:[],children:(0,G.jsxs)(w.Z,{style:{flexShrink:0,marginRight:16},variant:"contained",edge:"end",color:"primary",size:"small","data-cy":"invite-member",onClick:function(){return Q(!0)},children:[(0,G.jsx)(y.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.invite")]})})),"server"===n&&Fe.push((0,G.jsx)(U.Z,{role:"owner",children:(0,G.jsxs)(w.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"invite-member",onClick:function(){return re(!0)},children:[(0,G.jsx)(k.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.transferNode.name")]})})));var Me={sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick:function(e,n){var t=n.dataIndex,r=Ze[t];pe(r)},page:Be.page-1,rowsPerPage:Be.pageSize,count:ke,searchDebounceTime:600};return(0,G.jsxs)(vn,{children:[(0,G.jsxs)(Z.Z,{className:"main",display:"flex",children:[(0,G.jsx)("div",{className:"left",children:(0,G.jsx)("div",{className:"tabs",children:_e.map((function(e){return(0,G.jsxs)("div",{className:"tab ".concat(Be.role===e.name?"active":""),onClick:function(){return n=e.name,void(he||ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{role:n,hideBlocked:!1,searchText:"",page:1})})));var n},children:[(0,G.jsx)("span",{className:"text",children:e.title}),(0,G.jsx)("span",{className:v()("badge",{"is-rect":e.num>999}),children:e.num})]},e.name)}))})}),(0,G.jsx)("div",{className:"right",children:(0,G.jsx)(R.Z,{className:"main-table",verticalKeyWidth:100,locale:J,durable:Ie,durableKeys:["page","rowsPerPage"],title:(0,G.jsx)("div",{className:"table-toolbar-left",children:(0,G.jsx)(b.Z,{control:(0,G.jsx)(j.Z,{sx:{display:"flex !important"},disabled:he,color:"primary",checked:Be.hideBlocked,onChange:function(e){return n=e.target.checked,void ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{hideBlocked:n,page:1})}));var n}}),label:K("team.member.hideBlockedMember")})}),data:Ze,columns:qe,customButtons:Fe,options:Me,loading:he,onChange:function(e){var n=e.page,t=e.rowsPerPage,r=e.searchText;Be.pageSize!==t?ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{pageSize:t,page:1})})):Be.page!==n+1?ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{page:n+1})})):Be.searchText!==r&&ze((function(e){return(0,o.Z)((0,o.Z)({},e),{},{searchText:r,page:1})}))}})})]}),(0,G.jsx)(x.Z,{title:K("common.inviting"),onClose:function(){return ce(!1)},open:se,maxWidth:"lg",fullWidth:!0,children:(0,G.jsx)(tn,{})}),de&&(0,G.jsx)($e,{onCancel:function(){return pe(null)},userDid:de.did,createPassportSvg:t,initTab:de.initTab}),$&&(0,G.jsx)(Y,{teamDid:d,endpoint:P,roles:h,onCancel:function(){return Q(!1)},onSuccess:function(){g(),Q(!1)}}),te&&(0,G.jsx)(ae,{teamDid:d,endpoint:P,roles:h,onCancel:function(){return re(!1)},onSuccess:function(){g(),re(!1)}})]})}fn.propTypes={user:f().object.isRequired};var vn=u.default.div(on||(on=(0,i.Z)(["\n .main {\n .left {\n width: 168px;\n flex-shrink: 0;\n margin-right: 65px;\n .tabs {\n padding-top: 16px;\n .tab {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n transition: background 0.4s;\n\n width: 168px;\n height: 36px;\n border-radius: 8px;\n\n cursor: pointer;\n user-select: none;\n\n &:nth-child(n + 2) {\n margin-top: 24px;\n }\n\n &.active {\n background: #f2f2f2;\n }\n\n &:hover {\n background: #f2f2f2;\n }\n\n .text {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n\n color: #222222;\n }\n\n .badge {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 20px;\n height: 20px;\n border-radius: 100%;\n color: #fff;\n background: #666666;\n font-size: 10px;\n font-weight: 400;\n &.is-rect {\n width: auto;\n border-radius: 8px;\n padding: 0 4px;\n }\n }\n }\n }\n @media (max-width: ","px) {\n display: none;\n }\n }\n .right {\n flex-grow: 1;\n }\n }\n\n .member-block {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n .member-avatar {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .member-text {\n margin-left: 10px;\n }\n .badge-block {\n width: 14px;\n height: 14px;\n position: absolute;\n right: -4px;\n top: -4px;\n background: #ff5757;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n &::after {\n content: '';\n width: 6px;\n height: 2px;\n background: #fefefe;\n }\n }\n }\n\n .table-toolbar-left {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 7px 0;\n }\n"])),(function(e){return e.theme.breakpoints.values.md}));hn.propTypes={type:f().oneOf(["server","blocklet"]).isRequired,createPassportSvg:f().func.isRequired}},83683:function(e,n,t){var r,i=t(33028),o=t(59740),a=t(71171),s=t(16380),c=t(87006),l=t(90713),u=t(37574),d=["children"],p=(0,s.default)((function(e){var n=e.children,t=(0,o.Z)(e,d);return(0,u.jsx)(c.Z,(0,i.Z)((0,i.Z)({},t),{},{id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,u.jsx)(l.default,{})},size:"small",children:n}))}))(r||(r=(0,a.Z)(["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"])));n.Z=p},36568:function(e,n,t){var r,i=t(71171),o=t(16380).default.div(r||(r=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"])));n.Z=o}}]);
2
+ //# sourceMappingURL=2653.58a5430b.chunk.js.map
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2664],{46513:function(e,n,r){n.Z=void 0;(t=r(30969))&&t.__esModule;var t,o=r(37574);function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach((function(n){l(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function l(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!==typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var a=function(e){return(0,o.jsx)("svg",c(c({},e),{},{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};a.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="globe";var s=a;n.Z=s},91077:function(e,n,r){n.Z=void 0;(t=r(30969))&&t.__esModule;var t,o=r(37574);function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach((function(n){l(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function l(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!==typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var a=function(e){return(0,o.jsxs)("svg",c(c({},e),{},{children:[(0,o.jsx)("path",{d:"M9.928 13.133a.981.981 0 0 0-.678.252.79.79 0 0 0-.281.61c0 .27.094.482.283.636.19.154.41.231.663.231.257 0 .48-.076.673-.228.19-.153.287-.365.287-.639a.796.796 0 0 0-.275-.61.958.958 0 0 0-.672-.252zM12.633 7.2a2.526 2.526 0 0 0-1.035-.88c-.441-.212-.955-.32-1.528-.32-.617 0-1.166.129-1.63.383-.467.255-.826.582-1.07.972-.245.392-.37.786-.37 1.172 0 .205.086.397.254.57.169.174.38.262.625.262.419 0 .705-.246.85-.729.132-.399.296-.703.485-.905.177-.19.465-.286.856-.286.336 0 .602.095.813.29.208.191.309.42.309.698a.78.78 0 0 1-.1.387c-.07.125-.156.24-.258.342-.108.109-.287.27-.53.484a9.184 9.184 0 0 0-.679.647 2.268 2.268 0 0 0-.42.656 2.27 2.27 0 0 0-.159.884c0 .288.08.511.24.663.156.15.352.227.58.227.439 0 .714-.24.796-.687.041-.186.073-.316.094-.39.019-.067.046-.136.081-.205.034-.068.089-.144.162-.227.076-.088.179-.19.305-.306.472-.422.805-.727.99-.908.19-.186.356-.41.493-.665A1.9 1.9 0 0 0 13 8.416a2.18 2.18 0 0 0-.367-1.217",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm0 1.5a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",fill:"currentColor"})]}))};a.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="question-mark-circle";var s=a;n.Z=s},47650:function(e,n,r){n.Z=void 0;(t=r(30969))&&t.__esModule;var t,o=r(37574);function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach((function(n){l(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function l(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,n||"default");if("object"!==typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var a=function(e){return(0,o.jsxs)("svg",c(c({},e),{},{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.673L30.72 0 12.288 10.673v14.194L0 31.982v21.345L18.432 64l12.258-7.098.03.017.03-.017L43.008 64 61.44 53.327V31.982l-12.288-7.115V10.673zm10.368 22.42l-12.288-7.115V11.784L30.72 2.224l-16.512 9.56v14.194L1.92 33.093v19.122l16.512 9.561L30.69 54.68l.03.017.03-.017 12.258 7.097 16.512-9.56V33.093z",fill:"url(#paint0_linear_615_418)"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 26.07V10.03h7.737a3.795 3.795 0 0 1 3.79 3.8v1.152c0 1.01-.394 1.929-1.035 2.61a3.801 3.801 0 0 1 1.901 3.295v1.382c0 2.1-1.696 3.8-3.79 3.8h-8.603zm1.684-8.983h6.226a2.11 2.11 0 0 0 1.932-2.104V13.83a2.108 2.108 0 0 0-2.105-2.112h-6.053v5.369zm0 7.294v-5.598l6.92-.007c1.163 0 2.105.945 2.105 2.111v1.382a2.108 2.108 0 0 1-2.105 2.112h-6.92zm15.566-14.352v16.04h-1.762V10.03h1.762zm8.733 4.331h-1.827a3.816 3.816 0 0 0-3.811 3.822v4.066a3.816 3.816 0 0 0 3.811 3.822h1.827a3.817 3.817 0 0 0 3.811-3.822v-4.066a3.817 3.817 0 0 0-3.811-3.822zm-1.827 1.768c-1.131 0-2.049.92-2.049 2.054v4.066c0 1.135.918 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-4.066a2.051 2.051 0 0 0-2.048-2.054h-1.827zm21.043 9.948v-5.77h2.148l3.322 5.77h2.035l-3.821-6.638 2.993-5.198h-2.035l-2.474 4.298h-2.168V10.03h-1.762v16.047h1.762zm-5.556-7.581v-.313a2.051 2.051 0 0 0-2.048-2.054h-1.827c-1.132 0-2.049.92-2.049 2.054v4.066c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.313h-1.762zm17.918 7.575V10.03h-1.762v16.04h1.762zm4.989-5.372v1.55c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.748h.001v1.768h-7.687zm5.924-1.768h-5.924v-.748c0-1.134.917-2.054 2.049-2.054h1.827c1.131 0 2.048.92 2.048 2.054v.748zm5.489-1.917H152.4v-1.768h1.568V12.39h1.684v2.856h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.358 3.358 0 0 1-3.354 3.364 3.358 3.358 0 0 1-3.353-3.364v-5.693z",fill:"#121319"}),(0,o.jsx)("path",{d:"M91.034 36.52c-.112.196-.233.34-.364.434a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21-.224-.15-.495-.313-.812-.49a6.307 6.307 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.065-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812 2.59 2.59 0 0 0-.196 1.022c0 .476.13.872.392 1.19.27.317.625.588 1.064.812.439.224.938.424 1.498.602.56.177 1.134.368 1.722.574.588.196 1.162.429 1.722.7.56.261 1.06.597 1.498 1.008.439.401.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .914-.159 1.773-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.054-2.198 1.4-.868.336-1.862.504-2.982.504a9.288 9.288 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.131.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.186.593.396.966.63.373.233.807.448 1.302.644.504.186 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.514.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.585 7.585 0 0 0-1.498-.588c-.56-.159-1.13-.332-1.708-.518a14.738 14.738 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.75 4.75 0 0 1-1.064-1.568c-.261-.635-.392-1.414-.392-2.338 0-.738.145-1.456.434-2.156.299-.7.728-1.321 1.288-1.862.56-.542 1.25-.976 2.072-1.302.821-.327 1.764-.49 2.828-.49 1.195 0 2.296.186 3.304.56 1.008.373 1.867.896 2.576 1.568l-.938 1.778zM104.274 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.365.854-.57.569-.934 1.376-1.093 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918a4 4 0 0 0 .813 1.33c.335.345.732.606 1.189.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.772 7.772 0 0 1-2.785-.49 6.361 6.361 0 0 1-2.24-1.47c-.635-.654-1.135-1.456-1.499-2.408-.364-.962-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.47 6.47 0 0 1 2.17-1.526c.858-.374 1.824-.56 2.897-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM113.24 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.144 1.596.434l-.224 2.59c-.047.168-.117.289-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.354 3.354 0 0 0-.63.756c-.178.298-.346.639-.504 1.022v8.848h-3.458V38.718h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624zM133.373 38.718l-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zM144.032 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.366.854-.569.569-.933 1.376-1.092 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918.206.532.476.975.812 1.33.336.345.733.606 1.19.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.654-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.374 1.825-.56 2.898-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM152.997 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.663 0 1.195.144 1.596.434l-.224 2.59c-.046.168-.116.289-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.298-.345.639-.504 1.022v8.848h-3.458V38.718h2.03c.355 0 .602.065.742.196.14.121.234.345.28.672l.21 1.624z",fill:"#121319"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm13.338-2.894a.96.96 0 0 1 .924-.696h4.5a.96.96 0 0 1 .924.696l.856 2.999 2.12 1.223 3.025-.757a.96.96 0 0 1 1.064.451l2.25 3.898a.96.96 0 0 1-.14 1.148l-2.17 2.24v2.448l2.17 2.24a.96.96 0 0 1 .14 1.148l-2.25 3.899a.96.96 0 0 1-1.065.45l-3.024-.756-2.12 1.223-.856 2.998a.96.96 0 0 1-.923.697H28.47a.96.96 0 0 1-.924-.697L26.69 44.9l-2.12-1.223-3.024.757a.96.96 0 0 1-1.065-.451l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.241v-2.447l-2.168-2.241a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.025.757 2.119-1.223.856-2.999zm.44 4.467a.96.96 0 0 0 .443-.567l.765-2.676h3.053l.764 2.676a.96.96 0 0 0 .443.567l2.792 1.612a.96.96 0 0 0 .713.1l2.7-.676 1.526 2.644-1.935 2a.96.96 0 0 0-.27.668v3.223c0 .25.097.489.27.668l1.935 2-1.527 2.643-2.699-.675a.96.96 0 0 0-.713.1l-2.792 1.612a.96.96 0 0 0-.443.567l-.764 2.676h-3.053l-.765-2.676a.96.96 0 0 0-.443-.567l-2.792-1.612a.96.96 0 0 0-.713-.1l-2.7.675-1.526-2.643 1.935-2a.96.96 0 0 0 .27-.668V33.86a.96.96 0 0 0-.27-.667l-1.935-2 1.527-2.644 2.7.676a.96.96 0 0 0 .712-.1l2.792-1.612zm2.734 14.128a6.168 6.168 0 1 1 0-12.337 6.168 6.168 0 0 1 0 12.337zm4.248-6.169a4.248 4.248 0 1 1-8.496 0 4.248 4.248 0 0 1 8.496 0z",fill:"url(#paint1_linear_615_418)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_615_418",x1:"30.72",y1:"96",x2:"94.667",y2:"34.611",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_615_418",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};a.defaultProps={width:"170",height:"64",viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.displayName="server-logo";var s=a;n.Z=s},26681:function(e,n,r){r.d(n,{Z:function(){return k}});var t,o=r(71171),i=r(33028),c=r(96234),l=r(59740),a=r(30969),s=r(24974),u=r.n(s),p=r(72097),v=r(33359),f=r(94551),h=r(38589),d=r(4850),m=r(2689),b=r(23484),g=r(38361),y=r(38996),j=r(46513),x=r(79216),w=r(47333),O=r(55581),z=r(37574),P=["showText","popperProps","popperType","icon","size"];function k(e){var n,r,t,o=e.showText,s=e.popperProps,u=e.popperType,x=e.icon,k=e.size,_=(0,l.Z)(e,P),C=(0,a.useContext)(w.RD),M=C.locale,S=C.changeLocale,D=C.languages,V=(0,a.useRef)(null),L=(0,a.useState)(!1),E=(0,c.Z)(L,2),R=E[0],T=E[1],A=(0,O.Fg)(),N="dark"===(null===A||void 0===A||null===(n=A.palette)||void 0===n?void 0:n.mode),B=o?p.Z:f.Z,H="hover"===u?{onMouseEnter:function(){T(!0)},onMouseLeave:function(){T(!1)}}:{onClick:function(){T(!R)}},F=(0,a.useMemo)((function(){return x?(0,z.jsx)(x,{}):(0,z.jsx)(j.Z,{style:{width:"auto",height:k,color:A.palette.text.secondary}})}),[x,null===A||void 0===A||null===(r=A.palette)||void 0===r||null===(t=r.text)||void 0===t?void 0:t.secondary,k]);return(0,z.jsxs)(Z,(0,i.Z)((0,i.Z)((0,i.Z)({component:"div",dark:N,theme:A},_),H),{},{children:[(0,z.jsx)(B,{ref:V,className:"trigger",children:(0,z.jsxs)(g.Z,{display:"flex",alignItems:"center",children:[F,o?(0,z.jsx)(v.Z,{component:"strong",className:"trigger-text",children:D.find((function(e){return e.code===M})).name}):""]})}),(0,z.jsx)(d.Z,(0,i.Z)((0,i.Z)({open:R,anchorEl:V.current},s),{},{disablePortal:!0,children:(0,z.jsx)("div",{className:"locales",children:(0,z.jsx)(h.Z,{onClickAway:function(e){var n;null!==(n=V.current)&&void 0!==n&&n.contains(e.target)||T(!1)},children:(0,z.jsx)(b.Z,{children:D.map((function(n){var r=n.code,t=n.name;return(0,z.jsxs)(m.Z,{className:"locale-item",onClick:function(){return S(n=r),T(!1),void("function"===typeof e.onChange&&e.onChange(n));var n},children:[(0,z.jsx)(y.default,{className:r===M?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),t]},r)}))})})})}))]}))}k.propTypes={size:u().number,showText:u().bool,popperProps:u().object,onChange:u().func,popperType:u().oneOf(["hover","click"]),icon:u().any},k.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var Z=(0,O.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(t||(t=(0,o.Z)(["\n display: inline-block;\n\n .trigger {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 14px;\n white-space: nowrap;\n\n .trigger-text {\n margin-left: 5px;\n font-size: 14px;\n color: ",";\n }\n }\n\n .locales {\n background: ",";\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);\n }\n\n .locale-item {\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: 2px;\n text-align: center;\n color: ",";\n cursor: pointer;\n display: flex;\n padding: 16px;\n align-items: center;\n .check-icon {\n visibility: hidden;\n margin-right: 4px;\n }\n .check-icon-visible {\n visibility: visible;\n }\n }\n"])),(function(e){return(0,x.Lq)(e)}),(function(e){return(0,x.Vu)(e)}),(function(e){return(0,x.Lq)(e)}))}}]);
2
- //# sourceMappingURL=2664.706462f0.chunk.js.map
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2664],{46513:function(e,n,t){n.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){return(0,o.jsx)("svg",c(c({},e),{},{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};a.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="globe";var s=a;n.Z=s},91077:function(e,n,t){n.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){return(0,o.jsxs)("svg",c(c({},e),{},{children:[(0,o.jsx)("path",{d:"M9.928 13.133a.981.981 0 0 0-.678.252.79.79 0 0 0-.281.61c0 .27.094.482.283.636.19.154.41.231.663.231.257 0 .48-.076.673-.228.19-.153.287-.365.287-.639a.796.796 0 0 0-.275-.61.958.958 0 0 0-.672-.252zM12.633 7.2a2.526 2.526 0 0 0-1.035-.88c-.441-.212-.955-.32-1.528-.32-.617 0-1.166.129-1.63.383-.467.255-.826.582-1.07.972-.245.392-.37.786-.37 1.172 0 .205.086.397.254.57.169.174.38.262.625.262.419 0 .705-.246.85-.729.132-.399.296-.703.485-.905.177-.19.465-.286.856-.286.336 0 .602.095.813.29.208.191.309.42.309.698a.78.78 0 0 1-.1.387c-.07.125-.156.24-.258.342-.108.109-.287.27-.53.484a9.184 9.184 0 0 0-.679.647 2.268 2.268 0 0 0-.42.656 2.27 2.27 0 0 0-.159.884c0 .288.08.511.24.663.156.15.352.227.58.227.439 0 .714-.24.796-.687.041-.186.073-.316.094-.39.019-.067.046-.136.081-.205.034-.068.089-.144.162-.227.076-.088.179-.19.305-.306.472-.422.805-.727.99-.908.19-.186.356-.41.493-.665A1.9 1.9 0 0 0 13 8.416a2.18 2.18 0 0 0-.367-1.217",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm0 1.5a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",fill:"currentColor"})]}))};a.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="question-mark-circle";var s=a;n.Z=s},47650:function(e,n,t){n.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){return(0,o.jsxs)("svg",c(c({},e),{},{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.673L30.72 0 12.288 10.673v14.194L0 31.982v21.345L18.432 64l12.258-7.098.03.017.03-.017L43.008 64 61.44 53.327V31.982l-12.288-7.115V10.673zm10.368 22.42l-12.288-7.115V11.784L30.72 2.224l-16.512 9.56v14.194L1.92 33.093v19.122l16.512 9.561L30.69 54.68l.03.017.03-.017 12.258 7.097 16.512-9.56V33.093z",fill:"url(#paint0_linear_615_418)"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 26.07V10.03h7.737a3.795 3.795 0 0 1 3.79 3.8v1.152c0 1.01-.394 1.929-1.035 2.61a3.801 3.801 0 0 1 1.901 3.295v1.382c0 2.1-1.696 3.8-3.79 3.8h-8.603zm1.684-8.983h6.226a2.11 2.11 0 0 0 1.932-2.104V13.83a2.108 2.108 0 0 0-2.105-2.112h-6.053v5.369zm0 7.294v-5.598l6.92-.007c1.163 0 2.105.945 2.105 2.111v1.382a2.108 2.108 0 0 1-2.105 2.112h-6.92zm15.566-14.352v16.04h-1.762V10.03h1.762zm8.733 4.331h-1.827a3.816 3.816 0 0 0-3.811 3.822v4.066a3.816 3.816 0 0 0 3.811 3.822h1.827a3.817 3.817 0 0 0 3.811-3.822v-4.066a3.817 3.817 0 0 0-3.811-3.822zm-1.827 1.768c-1.131 0-2.049.92-2.049 2.054v4.066c0 1.135.918 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-4.066a2.051 2.051 0 0 0-2.048-2.054h-1.827zm21.043 9.948v-5.77h2.148l3.322 5.77h2.035l-3.821-6.638 2.993-5.198h-2.035l-2.474 4.298h-2.168V10.03h-1.762v16.047h1.762zm-5.556-7.581v-.313a2.051 2.051 0 0 0-2.048-2.054h-1.827c-1.132 0-2.049.92-2.049 2.054v4.066c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.313h-1.762zm17.918 7.575V10.03h-1.762v16.04h1.762zm4.989-5.372v1.55c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.748h.001v1.768h-7.687zm5.924-1.768h-5.924v-.748c0-1.134.917-2.054 2.049-2.054h1.827c1.131 0 2.048.92 2.048 2.054v.748zm5.489-1.917H152.4v-1.768h1.568V12.39h1.684v2.856h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.358 3.358 0 0 1-3.354 3.364 3.358 3.358 0 0 1-3.353-3.364v-5.693z",fill:"#121319"}),(0,o.jsx)("path",{d:"M91.034 36.52c-.112.196-.233.34-.364.434a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21-.224-.15-.495-.313-.812-.49a6.307 6.307 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.065-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812 2.59 2.59 0 0 0-.196 1.022c0 .476.13.872.392 1.19.27.317.625.588 1.064.812.439.224.938.424 1.498.602.56.177 1.134.368 1.722.574.588.196 1.162.429 1.722.7.56.261 1.06.597 1.498 1.008.439.401.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .914-.159 1.773-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.054-2.198 1.4-.868.336-1.862.504-2.982.504a9.288 9.288 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.131.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.186.593.396.966.63.373.233.807.448 1.302.644.504.186 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.514.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.585 7.585 0 0 0-1.498-.588c-.56-.159-1.13-.332-1.708-.518a14.738 14.738 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.75 4.75 0 0 1-1.064-1.568c-.261-.635-.392-1.414-.392-2.338 0-.738.145-1.456.434-2.156.299-.7.728-1.321 1.288-1.862.56-.542 1.25-.976 2.072-1.302.821-.327 1.764-.49 2.828-.49 1.195 0 2.296.186 3.304.56 1.008.373 1.867.896 2.576 1.568l-.938 1.778zM104.274 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.365.854-.57.569-.934 1.376-1.093 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918a4 4 0 0 0 .813 1.33c.335.345.732.606 1.189.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.772 7.772 0 0 1-2.785-.49 6.361 6.361 0 0 1-2.24-1.47c-.635-.654-1.135-1.456-1.499-2.408-.364-.962-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.47 6.47 0 0 1 2.17-1.526c.858-.374 1.824-.56 2.897-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM113.24 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.144 1.596.434l-.224 2.59c-.047.168-.117.289-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.354 3.354 0 0 0-.63.756c-.178.298-.346.639-.504 1.022v8.848h-3.458V38.718h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624zM133.373 38.718l-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zM144.032 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.366.854-.569.569-.933 1.376-1.092 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918.206.532.476.975.812 1.33.336.345.733.606 1.19.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.654-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.374 1.825-.56 2.898-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM152.997 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.663 0 1.195.144 1.596.434l-.224 2.59c-.046.168-.116.289-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.298-.345.639-.504 1.022v8.848h-3.458V38.718h2.03c.355 0 .602.065.742.196.14.121.234.345.28.672l.21 1.624z",fill:"#121319"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm13.338-2.894a.96.96 0 0 1 .924-.696h4.5a.96.96 0 0 1 .924.696l.856 2.999 2.12 1.223 3.025-.757a.96.96 0 0 1 1.064.451l2.25 3.898a.96.96 0 0 1-.14 1.148l-2.17 2.24v2.448l2.17 2.24a.96.96 0 0 1 .14 1.148l-2.25 3.899a.96.96 0 0 1-1.065.45l-3.024-.756-2.12 1.223-.856 2.998a.96.96 0 0 1-.923.697H28.47a.96.96 0 0 1-.924-.697L26.69 44.9l-2.12-1.223-3.024.757a.96.96 0 0 1-1.065-.451l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.241v-2.447l-2.168-2.241a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.025.757 2.119-1.223.856-2.999zm.44 4.467a.96.96 0 0 0 .443-.567l.765-2.676h3.053l.764 2.676a.96.96 0 0 0 .443.567l2.792 1.612a.96.96 0 0 0 .713.1l2.7-.676 1.526 2.644-1.935 2a.96.96 0 0 0-.27.668v3.223c0 .25.097.489.27.668l1.935 2-1.527 2.643-2.699-.675a.96.96 0 0 0-.713.1l-2.792 1.612a.96.96 0 0 0-.443.567l-.764 2.676h-3.053l-.765-2.676a.96.96 0 0 0-.443-.567l-2.792-1.612a.96.96 0 0 0-.713-.1l-2.7.675-1.526-2.643 1.935-2a.96.96 0 0 0 .27-.668V33.86a.96.96 0 0 0-.27-.667l-1.935-2 1.527-2.644 2.7.676a.96.96 0 0 0 .712-.1l2.792-1.612zm2.734 14.128a6.168 6.168 0 1 1 0-12.337 6.168 6.168 0 0 1 0 12.337zm4.248-6.169a4.248 4.248 0 1 1-8.496 0 4.248 4.248 0 0 1 8.496 0z",fill:"url(#paint1_linear_615_418)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_615_418",x1:"30.72",y1:"96",x2:"94.667",y2:"34.611",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_615_418",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};a.defaultProps={width:"170",height:"64",viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.displayName="server-logo";var s=a;n.Z=s},26681:function(e,n,t){t.d(n,{Z:function(){return k}});var r,o=t(71171),i=t(33028),c=t(96234),l=t(59740),a=t(30969),s=t(24974),u=t.n(s),p=t(72097),v=t(33359),f=t(94551),h=t(38589),d=t(4850),m=t(2689),b=t(23484),g=t(38361),y=t(38996),j=t(46513),x=t(79216),w=t(47333),O=t(55581),z=t(37574),P=["showText","popperProps","popperType","icon","size"];function k(e){var n,t,r,o=e.showText,s=e.popperProps,u=e.popperType,x=e.icon,k=e.size,_=(0,l.Z)(e,P),C=(0,a.useContext)(w.RD),M=C.locale,S=C.changeLocale,D=C.languages,L=(0,a.useRef)(null),V=(0,a.useState)(!1),E=(0,c.Z)(V,2),R=E[0],T=E[1],A=(0,O.Fg)(),N="dark"===(null===A||void 0===A||null===(n=A.palette)||void 0===n?void 0:n.mode),B=o?p.Z:f.Z,H="hover"===u?{onMouseEnter:function(){T(!0)},onMouseLeave:function(){T(!1)}}:{onClick:function(){T(!R)}},F=(0,a.useMemo)((function(){return x?(0,z.jsx)(x,{}):(0,z.jsx)(j.Z,{style:{width:"auto",height:k,color:A.palette.text.secondary}})}),[x,null===A||void 0===A||null===(t=A.palette)||void 0===t||null===(r=t.text)||void 0===r?void 0:r.secondary,k]);return(0,z.jsxs)(Z,(0,i.Z)((0,i.Z)((0,i.Z)({component:"div",dark:N,theme:A},_),H),{},{children:[(0,z.jsx)(B,{ref:L,className:"trigger",role:"button","aria-label":"Locale selector button",children:(0,z.jsxs)(g.Z,{display:"flex",alignItems:"center",children:[F,o?(0,z.jsx)(v.Z,{component:"strong",className:"trigger-text",children:D.find((function(e){return e.code===M})).name}):""]})}),(0,z.jsx)(d.Z,(0,i.Z)((0,i.Z)({open:R,anchorEl:L.current},s),{},{disablePortal:!0,children:(0,z.jsx)("div",{className:"locales",children:(0,z.jsx)(h.Z,{onClickAway:function(e){var n;null!==(n=L.current)&&void 0!==n&&n.contains(e.target)||T(!1)},children:(0,z.jsx)(b.Z,{children:D.map((function(n){var t=n.code,r=n.name;return(0,z.jsxs)(m.Z,{className:"locale-item",onClick:function(){return S(n=t),T(!1),void("function"===typeof e.onChange&&e.onChange(n));var n},children:[(0,z.jsx)(y.default,{className:t===M?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),r]},t)}))})})})}))]}))}k.propTypes={size:u().number,showText:u().bool,popperProps:u().object,onChange:u().func,popperType:u().oneOf(["hover","click"]),icon:u().any},k.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var Z=(0,O.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(r||(r=(0,o.Z)(["\n display: inline-block;\n\n .trigger {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 14px;\n white-space: nowrap;\n\n .trigger-text {\n margin-left: 5px;\n font-size: 14px;\n color: ",";\n }\n }\n\n .locales {\n background: ",";\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);\n }\n\n .locale-item {\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: 2px;\n text-align: center;\n color: ",";\n cursor: pointer;\n display: flex;\n padding: 16px;\n align-items: center;\n .check-icon {\n visibility: hidden;\n margin-right: 4px;\n }\n .check-icon-visible {\n visibility: visible;\n }\n }\n"])),(function(e){return(0,x.Lq)(e)}),(function(e){return(0,x.Vu)(e)}),(function(e){return(0,x.Lq)(e)}))}}]);
2
+ //# sourceMappingURL=2664.a42cbb96.chunk.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[3179],{70177:function(t,e,o){var a,n=o(71171),r=o(33028),i=o(59740),c=o(24974),l=o.n(c),s=o(32208),d=o.n(s),u=o(70093),h=o.n(u),m=o(33359),p=o(55581),f=o(37574),v=["name","nameFormatter","layout","children","valueComponent","nameWidth"];function b(t){var e=t.name,o=t.nameFormatter,a=t.layout,n=t.children,c=t.valueComponent,l=t.nameWidth,s=(0,i.Z)(t,v);return(0,f.jsxs)(w,(0,r.Z)((0,r.Z)({layout:a,width:l},s),{},{children:[(0,f.jsx)(m.Z,{color:"textSecondary",className:"info-row__name",children:o(e)}),n&&(0,f.jsx)(m.Z,{color:"textPrimary",component:c,className:"info-row__value",children:n})]}))}b.propTypes={name:l().any.isRequired,layout:l().oneOf(["horizontal","vertical"]),children:l().any,nameFormatter:l().func,valueComponent:l().string,nameWidth:l().number},b.defaultProps={children:null,nameWidth:90,nameFormatter:function(t){var e=t.split(" ").map((function(t){return h()(d()(t))})).join(" ");return"string"===typeof t?e:t},valueComponent:"div",layout:"horizontal"};var w=(0,p.zo)("div")(a||(a=(0,n.Z)(["\n display: flex;\n flex-direction: ",";\n justify-content: flex-start;\n align-items: ",";\n margin-bottom: 16px;\n\n .info-row__name {\n width: ","px;\n margin-right: ",";\n margin-bottom: ",";\n text-transform: capitalize;\n }\n\n .info-row__value {\n flex: 1;\n overflow: auto;\n word-wrap: break-word;\n font-weight: 500;\n }\n\n @media (max-width: ","px) {\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n .info-row__name {\n font-weight: bold;\n }\n\n .info-row__value {\n width: 100%;\n font-size: 12px;\n margin-top: 8px;\n }\n }\n"])),(function(t){return"vertical"===t.layout?"column":"row"}),(function(t){return"vertical"===t.layout?"flex-start":"center"}),(function(t){return t.width}),(function(t){return"vertical"===t.layout?"0":"8px"}),(function(t){return"vertical"===t.layout?"8px":"0"}),(function(t){return t.theme.breakpoints.values.md}));e.Z=b},50442:function(t,e,o){var a=o(59740),n=o(33028),r=o(24974),i=o.n(r),c=o(49884),l=o(34159),s=o(55581),d=o(37574),u=["labelProps"],h=(0,s.zo)((function(t){return(0,d.jsx)(l.Z,(0,n.Z)({focusVisibleClassName:".Mui-focusVisible",disableRipple:!0},t))}))((function(t){var e=t.theme;return{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===e.palette.mode?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===e.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}}));function m(t){var e=t.labelProps,o=(0,a.Z)(t,u);return e?(0,d.jsx)(c.Z,(0,n.Z)({control:(0,d.jsx)(h,(0,n.Z)({},o))},e)):(0,d.jsx)(h,(0,n.Z)({},o))}m.propTypes={labelProps:i().object},m.defaultProps={labelProps:null},e.Z=m},20352:function(t,e,o){var a=o(71600);e.Z=void 0;var n=a(o(48035)),r=o(37574),i=(0,n.default)((0,r.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");e.Z=i},61292:function(t,e,o){var a=o(71600);e.Z=void 0;var n=a(o(48035)),r=o(37574),i=(0,n.default)((0,r.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02z"}),"ElectricBoltOutlined");e.Z=i},60030:function(t,e,o){var a=o(71600);e.Z=void 0;var n=a(o(48035)),r=o(37574),i=(0,n.default)((0,r.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"FolderOutlined");e.Z=i},88666:function(t,e,o){var a=o(71600);e.Z=void 0;var n=a(o(48035)),r=o(37574),i=(0,n.default)((0,r.jsx)("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline");e.Z=i},20296:function(t,e,o){var a=o(7896),n=o(31461),r=o(30969),i=o(81856),c=o(26540),l=o(45971),s=o(17363),d=o(24099),u=o(30868),h=o(37574),m=["baseClassName","className","color","component","fontSize"],p=(0,l.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:function(t,e){var o=t.ownerState;return[e.root,"inherit"!==o.color&&e["color".concat((0,d.Z)(o.color))],e["fontSize".concat((0,d.Z)(o.fontSize))]]}})((function(t){var e=t.theme,o=t.ownerState;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[o.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[o.color]}})),f=r.forwardRef((function(t,e){var o=(0,s.Z)({props:t,name:"MuiIcon"}),r=o.baseClassName,l=void 0===r?"material-icons":r,f=o.className,v=o.color,b=void 0===v?"inherit":v,w=o.component,g=void 0===w?"span":w,Z=o.fontSize,x=void 0===Z?"medium":Z,y=(0,n.Z)(o,m),S=(0,a.Z)({},o,{baseClassName:l,color:b,component:g,fontSize:x}),k=function(t){var e=t.color,o=t.fontSize,a=t.classes,n={root:["root","inherit"!==e&&"color".concat((0,d.Z)(e)),"fontSize".concat((0,d.Z)(o))]};return(0,c.Z)(n,u.d,a)}(S);return(0,h.jsx)(p,(0,a.Z)({as:g,className:(0,i.default)(l,"notranslate",k.root,f),ownerState:S,"aria-hidden":!0,ref:e},y))}));f.muiName="Icon",e.Z=f},30868:function(t,e,o){o.d(e,{d:function(){return r}});var a=o(62746),n=o(2975);function r(t){return(0,n.Z)("MuiIcon",t)}var i=(0,a.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);e.Z=i},34159:function(t,e,o){o.d(e,{Z:function(){return k}});var a=o(56666),n=o(31461),r=o(7896),i=o(30969),c=o(81856),l=o(26540),s=o(74262),d=o(24099),u=o(71885),h=o(17363),m=o(45971),p=o(62746),f=o(2975);function v(t){return(0,f.Z)("MuiSwitch",t)}var b=(0,p.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),w=o(37574),g=["className","color","edge","size","sx"],Z=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(t,e){var o=t.ownerState;return[e.root,o.edge&&e["edge".concat((0,d.Z)(o.edge))],e["size".concat((0,d.Z)(o.size))]]}})((function(t){var e,o=t.ownerState;return(0,r.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===o.edge&&{marginLeft:-8},"end"===o.edge&&{marginRight:-8},"small"===o.size&&(e={width:40,height:24,padding:7},(0,a.Z)(e,"& .".concat(b.thumb),{width:16,height:16}),(0,a.Z)(e,"& .".concat(b.switchBase),(0,a.Z)({padding:4},"&.".concat(b.checked),{transform:"translateX(16px)"})),e))})),x=(0,m.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(t,e){var o=t.ownerState;return[e.switchBase,(0,a.Z)({},"& .".concat(b.input),e.input),"default"!==o.color&&e["color".concat((0,d.Z)(o.color))]]}})((function(t){var e,o=t.theme;return e={position:"absolute",top:0,left:0,zIndex:1,color:o.vars?o.vars.palette.Switch.defaultColor:"".concat("light"===o.palette.mode?o.palette.common.white:o.palette.grey[300]),transition:o.transitions.create(["left","transform"],{duration:o.transitions.duration.shortest})},(0,a.Z)(e,"&.".concat(b.checked),{transform:"translateX(20px)"}),(0,a.Z)(e,"&.".concat(b.disabled),{color:o.vars?o.vars.palette.Switch.defaultDisabledColor:"".concat("light"===o.palette.mode?o.palette.grey[100]:o.palette.grey[600])}),(0,a.Z)(e,"&.".concat(b.checked," + .").concat(b.track),{opacity:.5}),(0,a.Z)(e,"&.".concat(b.disabled," + .").concat(b.track),{opacity:o.vars?o.vars.opacity.switchTrackDisabled:"".concat("light"===o.palette.mode?.12:.2)}),(0,a.Z)(e,"& .".concat(b.input),{left:"-100%",width:"300%"}),e}),(function(t){var e,o=t.theme,n=t.ownerState;return(0,r.Z)({"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette.action.activeChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(e={},(0,a.Z)(e,"&.".concat(b.checked),(0,a.Z)({color:(o.vars||o).palette[n.color].main,"&:hover":{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[n.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(o.palette[n.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(b.disabled),{color:o.vars?o.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===o.palette.mode?(0,s.$n)(o.palette[n.color].main,.62):(0,s._j)(o.palette[n.color].main,.55))})),(0,a.Z)(e,"&.".concat(b.checked," + .").concat(b.track),{backgroundColor:(o.vars||o).palette[n.color].main}),e))})),y=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(t,e){return e.track}})((function(t){var e=t.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:"".concat("light"===e.palette.mode?e.palette.common.black:e.palette.common.white),opacity:e.vars?e.vars.opacity.switchTrack:"".concat("light"===e.palette.mode?.38:.3)}})),S=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(t,e){return e.thumb}})((function(t){var e=t.theme;return{boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),k=i.forwardRef((function(t,e){var o=(0,h.Z)({props:t,name:"MuiSwitch"}),a=o.className,i=o.color,s=void 0===i?"primary":i,u=o.edge,m=void 0!==u&&u,p=o.size,f=void 0===p?"medium":p,b=o.sx,k=(0,n.Z)(o,g),z=(0,r.Z)({},o,{color:s,edge:m,size:f}),M=function(t){var e=t.classes,o=t.edge,a=t.size,n=t.color,i=t.checked,c=t.disabled,s={root:["root",o&&"edge".concat((0,d.Z)(o)),"size".concat((0,d.Z)(a))],switchBase:["switchBase","color".concat((0,d.Z)(n)),i&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,l.Z)(s,v,e);return(0,r.Z)({},e,u)}(z),C=(0,w.jsx)(S,{className:M.thumb,ownerState:z});return(0,w.jsxs)(Z,{className:(0,c.default)(M.root,a),sx:b,ownerState:z,children:[(0,w.jsx)(x,(0,r.Z)({type:"checkbox",icon:C,checkedIcon:C,ref:e,ownerState:z},k,{classes:(0,r.Z)({},M,{root:M.switchBase})})),(0,w.jsx)(y,{className:M.track,ownerState:z})]})}))},57982:function(t,e,o){var a=o(11681),n=o(30969),r=o(32681);e.Z=function(t,e){(0,n.useEffect)((function(){var e=t(),o=!1;return function(){(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(t){switch(t.label){case 0:if(a=e,!(0,r.mf)(a[Symbol.asyncIterator]))return[3,4];t.label=1;case 1:return[4,e.next()];case 2:return t.sent().done||o?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,e];case 5:t.sent(),t.label=6;case 6:return[2]}var a}))}))}(),function(){o=!0}}),e)}}}]);
2
+ //# sourceMappingURL=3179.03c92dcb.chunk.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[3551],{56552:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(33028),i=t(33665),a=t(29996),o=t(37574);function c(e){var n=Object.assign({},((0,i.Z)(e),e));return(0,o.jsx)(a.Z,(0,r.Z)({className:"bottom-button",variant:"contained",color:"primary"},n))}},45628:function(e,n,t){t.r(n),t.d(n,{default:function(){return Ee}});var r=t(71171),i=t(30969),a=t(16380),o=t(38361),c=t(47333),s=t(47768),l=t(30134),p=t(56552),d=t(96699),u=t(62975),f=t(32723),C=t(34795),m=t(33028),h=t(96234),x=t(59740),g=t(33359),y=t(94308),v=t(43207),Z=t(87006),b=t(29996),w=t(50007),k=t(19611),A=t.n(k),j=t(94984),E=t(15419),O=t(50496),B=t(23299),I=t(54559),L=t(24891),S=t(41395),H=t(83998),M=t(64864),U=t(75023),V=t(37574),F=["onConnect"];function T(e){var n=e.onConnect,t=(0,x.Z)(e,F),r=(0,M.y0)().blocklet,a=(0,S.h6)().info,s=(0,c.PE)(),p=s.t,d=s.locale,u=(0,i.useState)(""),k=(0,h.Z)(u,2),T=k[0],D=k[1],N=(0,i.useState)(!1),R=(0,h.Z)(N,2),J=R[0],P=R[1],Q=(0,i.useState)(!1),G=(0,h.Z)(Q,2),z=G[0],X=G[1],K=(0,i.useState)(""),Y=(0,h.Z)(K,2),W=Y[0],q=Y[1],_=(0,H.Z)({blocklet:r}),$=(0,L.yP)(a),ee=(0,U.NU)().storageEndpoint,ne=(0,i.useState)({open:!1,action:"get-did-spaces-endpoint",checkTimeout:3e5,checkFn:I.od.create({baseURL:A()(window.location.origin,(0,L.Y5)())}).get,messages:{title:p("storage.spaces.provideNFT.title",{appName:_.appName},d),scan:p("storage.spaces.provideNFT.scan",{appName:_.appName},d),confirm:"",success:(0,V.jsx)(g.Z,{gutterBottom:!0,children:p("storage.spaces.provideNFT.success")})},onClose:function(){ie((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})}))}}),te=(0,h.Z)(ne,2),re=te[0],ie=te[1],ae=(0,i.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:p("storage.spaces.authorize.title",{appName:_.appName},d),scan:p("storage.spaces.authorize.scan",{appName:_.appName},d),confirm:"",success:(0,V.jsx)(g.Z,{gutterBottom:!0,children:p("storage.spaces.authorize.success")})},onClose:function(){se((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})}))}}),oe=(0,h.Z)(ae,2),ce=oe[0],se=oe[1],le=function(e,n){setTimeout((0,C.Z)((0,f.Z)().mark((function t(){var r,i;return(0,f.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return se((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})})),ie((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})})),r=n(e.endpoint),i=e.space?n(e.space):{},t.next=6,pe((0,m.Z)((0,m.Z)({endpoint:r},{did:(0,l.LQ)(r),name:"DID Space"}),i));case 6:case"end":return t.stop()}}),t)}))),0)},pe=function(){var e=(0,C.Z)((0,f.Z)().mark((function e(t){var r,i,a,o,c,s,d;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.did,o=t.name,c=t.endpoint,(s=null===c||void 0===c||null===(r=c.replace(/\/api\/.+/,""))||void 0===r||null===(i=r.trim())||void 0===i?void 0:i.replace(/\/$/,"")).startsWith("http")||(s="https://".concat(s)),e.next=5,(0,l.w2)(s);case 5:if(e.sent){e.next=8;break}return j.Z.error(p("storage.spaces.gateway.add.invalidUrl")),e.abrupt("return");case 8:return d={name:o,did:a,url:s,endpoint:c},e.next=11,n(d);case 11:j.Z.success(p("storage.spaces.connectedWithName",{name:d.name}));case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),de=function(){var e=(0,C.Z)((0,f.Z)().mark((function e(){var n,t;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,P(!0),n=T.startsWith("http")?T:"https://".concat(T),e.next=5,(0,l.w2)(n);case 5:if(e.sent){e.next=7;break}throw new Error(p("storage.spaces.gateway.add.invalidUrl"));case 7:se((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!0,prefix:A()(n,"space/api/did"),baseUrl:new URL(n).origin,checkFn:I.od.create({baseURL:A()(n,"space")}).get,extraParams:{appDid:_.appDid,appName:_.appName,appDescription:_.appDescription,scopes:_.scopes,appUrl:_.appUrl,referrer:_.referrer,nodeDid:a.did}})})),X(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),t="".concat(p("storage.spaces.gateway.add.failed",d),": ").concat((0,L.Z)(e.t0)),q(t);case 15:return e.prev=15,P(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[0,11,15,18]])})));return function(){return e.apply(this,arguments)}}();return(0,V.jsxs)(o.Z,{children:[(0,V.jsx)(E.Z,{color:"primary",style:{textTransform:"none !important",fontSize:"1rem"},size:"small",onClick:function(){ie((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!0,extraParams:{appDid:_.appDid,appName:_.appName,appDescription:_.appDescription,scopes:_.scopes,appUrl:_.appUrl,referrer:_.referrer,nodeDid:a.did}})}))},variant:"outlined",menu:[(0,V.jsx)(E.Z.Item,(0,m.Z)((0,m.Z)({sx:{textTransform:"none"},onClick:function(){return X(!0)},size:"small"},t),{},{children:p(ee?"storage.spaces.connect.useSpaceGatewayReconnect":"storage.spaces.connect.useSpaceGateway")}),"1")],children:(0,V.jsx)(g.Z,{sx:{fontWeight:"bold",textTransform:"none"},children:p(ee?"storage.spaces.connect.useWalletReconnect":"storage.spaces.connect.useWallet")})}),(0,V.jsx)(w.default,{forceConnected:!1,saveConnect:!1,prefix:re.prefix,open:re.open,popup:!0,action:re.action,webWalletUrl:$,baseUrl:re.baseUrl,checkFn:re.checkFn,onSuccess:le,onClose:re.onClose,checkTimeout:re.checkTimeout,extraParams:re.extraParams,messages:re.messages,locale:d}),(0,V.jsx)(w.default,{forceConnected:!1,saveConnect:!1,prefix:ce.prefix,open:ce.open,popup:!0,action:ce.action,baseUrl:ce.baseUrl,checkFn:ce.checkFn,onSuccess:le,onClose:ce.onClose,checkTimeout:ce.checkTimeout,extraParams:ce.extraParams,messages:ce.messages,locale:d}),(0,V.jsxs)(O.Z,{title:p("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:z,onClose:function(){return X(!1)},PaperProps:{style:{minHeight:"auto"}},actions:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(b.Z,{onClick:function(e){e.stopPropagation(),X(!1)},color:"inherit",children:p("common.cancel")}),(0,V.jsxs)(b.Z,{onClick:de,color:"primary",disabled:J||!T,variant:"contained",autoFocus:!0,children:[J&&(0,V.jsx)(y.Z,{size:16}),p("common.confirm")]})]}),children:[(0,V.jsx)("div",{style:{paddingTop:12,overflowY:"hidden"},children:(0,V.jsx)(v.Z,{component:"div",children:(0,V.jsx)(g.Z,{component:"div",children:(0,V.jsx)(Z.Z,{label:p("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:T,onChange:function(e){q(null),D(e.target.value)},disabled:J,onKeyPress:function(){var e=(0,C.Z)((0,f.Z)().mark((function e(n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Enter"!==n.key){e.next=3;break}return e.next=3,de();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),autoFocus:!0})})})}),Boolean(W)&&(0,V.jsx)(B.Z,{type:"error",style:{width:"100%"},children:W})]})]})}T.defaultProps={onConnect:function(){}};var D,N,R,J,P,Q=T,G=["title","titleId"];function z(){return z=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},z.apply(this,arguments)}function X(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function K(e,n){var t=e.title,r=e.titleId,a=X(e,G);return i.createElement("svg",z({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",ref:n,"aria-labelledby":r},a),t?i.createElement("title",{id:r},t):null,i.createElement("g",{filter:"url(#filter0_d_1410_22507)"},D||(D=i.createElement("path",{d:"M56.9706 2C53.788 2 50.7357 3.26428 48.4853 5.51472L7.51472 46.4853C5.26428 48.7357 4 51.788 4 54.9706V240C4 246.627 9.37258 252 16 252H212C218.627 252 224 246.627 224 240V14C224 7.37258 218.627 2 212 2H56.9706Z",fill:"#DDDDDD"})),N||(N=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.1924 6.22183L8.22182 47.1924C6.15892 49.2553 5 52.0532 5 54.9706V240C5 246.075 9.92487 251 16 251H212C218.075 251 223 246.075 223 240V14C223 7.92486 218.075 3 212 3H56.9706C54.0532 3 51.2553 4.15893 49.1924 6.22183ZM48.4853 5.51472C50.7357 3.26428 53.788 2 56.9706 2H212C218.627 2 224 7.37258 224 14V240C224 246.627 218.627 252 212 252H16C9.37258 252 4 246.627 4 240V54.9706C4 51.788 5.26428 48.7357 7.51472 46.4853L48.4853 5.51472Z",fill:"black",fillOpacity:.08})),i.createElement("mask",{id:"mask0_1410_22507",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:4,y:2,width:220,height:250},R||(R=i.createElement("path",{d:"M56.9706 2C53.788 2 50.7357 3.26428 48.4853 5.51472L7.51472 46.4853C5.26428 48.7357 4 51.788 4 54.9706V240C4 246.627 9.37258 252 16 252H212C218.627 252 224 246.627 224 240V14C224 7.37258 218.627 2 212 2H56.9706Z",fill:"#D9D9D9"}))),J||(J=i.createElement("g",{mask:"url(#mask0_1410_22507)"},i.createElement("rect",{opacity:.5,x:4,y:2,width:220,height:128,fill:"url(#pattern0)"}),i.createElement("rect",{opacity:.1,x:4,y:130,width:220,height:122,fill:"url(#paint0_linear_1410_22507)"}),i.createElement("path",{d:"M33.0455 169H29.2784V157.364H33.1648C34.3049 157.364 35.2841 157.597 36.1023 158.062C36.9205 158.525 37.5473 159.189 37.983 160.057C38.4223 160.92 38.642 161.956 38.642 163.165C38.642 164.377 38.4205 165.419 37.9773 166.29C37.5379 167.161 36.9015 167.831 36.0682 168.301C35.2348 168.767 34.2273 169 33.0455 169ZM31.0341 167.466H32.9489C33.8352 167.466 34.572 167.299 35.1591 166.966C35.7462 166.629 36.1856 166.142 36.4773 165.506C36.7689 164.866 36.9148 164.085 36.9148 163.165C36.9148 162.252 36.7689 161.477 36.4773 160.841C36.1894 160.205 35.7595 159.722 35.1875 159.392C34.6155 159.062 33.9053 158.898 33.0568 158.898H31.0341V167.466ZM42.581 157.364V169H40.8253V157.364H42.581ZM48.9048 169H45.1378V157.364H49.0241C50.1643 157.364 51.1435 157.597 51.9616 158.062C52.7798 158.525 53.4067 159.189 53.8423 160.057C54.2817 160.92 54.5014 161.956 54.5014 163.165C54.5014 164.377 54.2798 165.419 53.8366 166.29C53.3973 167.161 52.7609 167.831 51.9276 168.301C51.0942 168.767 50.0866 169 48.9048 169ZM46.8935 167.466H48.8082C49.6946 167.466 50.4313 167.299 51.0185 166.966C51.6056 166.629 52.045 166.142 52.3366 165.506C52.6283 164.866 52.7741 164.085 52.7741 163.165C52.7741 162.252 52.6283 161.477 52.3366 160.841C52.0488 160.205 51.6188 159.722 51.0469 159.392C50.4749 159.062 49.7647 158.898 48.9162 158.898H46.8935V167.466ZM67.2656 160.42C67.205 159.883 66.955 159.466 66.5156 159.17C66.0762 158.871 65.5232 158.722 64.8565 158.722C64.3793 158.722 63.9664 158.797 63.6179 158.949C63.2694 159.097 62.9986 159.301 62.8054 159.562C62.616 159.82 62.5213 160.114 62.5213 160.443C62.5213 160.72 62.5857 160.958 62.7145 161.159C62.8471 161.36 63.0194 161.528 63.2315 161.665C63.4474 161.797 63.6785 161.909 63.9247 162C64.1709 162.087 64.4077 162.159 64.6349 162.216L65.7713 162.511C66.1425 162.602 66.5232 162.725 66.9134 162.881C67.3035 163.036 67.6652 163.241 67.9986 163.494C68.3319 163.748 68.6009 164.062 68.8054 164.438C69.0137 164.812 69.1179 165.261 69.1179 165.784C69.1179 166.443 68.9474 167.028 68.6065 167.54C68.2694 168.051 67.7789 168.455 67.1349 168.75C66.4948 169.045 65.7202 169.193 64.8111 169.193C63.9399 169.193 63.1861 169.055 62.5497 168.778C61.9134 168.502 61.4152 168.11 61.0554 167.602C60.6955 167.091 60.4967 166.485 60.4588 165.784H62.2202C62.2543 166.205 62.3906 166.555 62.6293 166.835C62.8717 167.112 63.1804 167.318 63.5554 167.455C63.9342 167.587 64.349 167.653 64.7997 167.653C65.2959 167.653 65.7372 167.576 66.1236 167.42C66.5137 167.261 66.8205 167.042 67.044 166.761C67.2675 166.477 67.3793 166.146 67.3793 165.767C67.3793 165.422 67.2808 165.14 67.0838 164.92C66.8906 164.701 66.6274 164.519 66.294 164.375C65.9645 164.231 65.5914 164.104 65.1747 163.994L63.7997 163.619C62.8679 163.366 62.1293 162.992 61.5838 162.5C61.0421 162.008 60.7713 161.356 60.7713 160.545C60.7713 159.875 60.9531 159.29 61.3168 158.79C61.6804 158.29 62.1728 157.902 62.794 157.625C63.4152 157.345 64.116 157.205 64.8963 157.205C65.6842 157.205 66.3793 157.343 66.9815 157.619C67.5876 157.896 68.0649 158.277 68.4134 158.761C68.7618 159.242 68.9437 159.795 68.9588 160.42H67.2656ZM71.0795 172.273V160.273H72.7386V161.688H72.8807C72.9792 161.506 73.1212 161.295 73.3068 161.057C73.4924 160.818 73.75 160.61 74.0795 160.432C74.4091 160.25 74.8447 160.159 75.3864 160.159C76.0909 160.159 76.7197 160.337 77.2727 160.693C77.8258 161.049 78.2595 161.562 78.5739 162.233C78.892 162.903 79.0511 163.71 79.0511 164.653C79.0511 165.597 78.8939 166.405 78.5795 167.08C78.2652 167.75 77.8333 168.267 77.2841 168.631C76.7348 168.991 76.108 169.17 75.4034 169.17C74.8731 169.17 74.4394 169.081 74.1023 168.903C73.7689 168.725 73.5076 168.517 73.3182 168.278C73.1288 168.04 72.983 167.828 72.8807 167.642H72.7784V172.273H71.0795ZM72.7443 164.636C72.7443 165.25 72.8333 165.788 73.0114 166.25C73.1894 166.712 73.447 167.074 73.7841 167.335C74.1212 167.593 74.5341 167.722 75.0227 167.722C75.5303 167.722 75.9545 167.587 76.2955 167.318C76.6364 167.045 76.8939 166.676 77.0682 166.21C77.2462 165.744 77.3352 165.22 77.3352 164.636C77.3352 164.061 77.2481 163.544 77.0739 163.085C76.9034 162.627 76.6458 162.265 76.3011 162C75.9602 161.735 75.5341 161.602 75.0227 161.602C74.5303 161.602 74.1136 161.729 73.7727 161.983C73.4356 162.237 73.1799 162.591 73.0057 163.045C72.8314 163.5 72.7443 164.03 72.7443 164.636ZM83.4943 169.193C82.9413 169.193 82.4413 169.091 81.9943 168.886C81.5473 168.678 81.1932 168.377 80.9318 167.983C80.6742 167.589 80.5455 167.106 80.5455 166.534C80.5455 166.042 80.6402 165.636 80.8295 165.318C81.0189 165 81.2746 164.748 81.5966 164.562C81.9186 164.377 82.2784 164.237 82.6761 164.142C83.0739 164.047 83.4792 163.975 83.892 163.926C84.4148 163.866 84.839 163.816 85.1648 163.778C85.4905 163.737 85.7273 163.67 85.875 163.58C86.0227 163.489 86.0966 163.341 86.0966 163.136V163.097C86.0966 162.6 85.9564 162.216 85.6761 161.943C85.3996 161.67 84.9867 161.534 84.4375 161.534C83.8655 161.534 83.4148 161.661 83.0852 161.915C82.7595 162.165 82.5341 162.443 82.4091 162.75L80.8125 162.386C81.0019 161.856 81.2784 161.428 81.642 161.102C82.0095 160.773 82.4318 160.534 82.9091 160.386C83.3864 160.235 83.8883 160.159 84.4148 160.159C84.7633 160.159 85.1326 160.201 85.5227 160.284C85.9167 160.364 86.2841 160.511 86.625 160.727C86.9697 160.943 87.2519 161.252 87.4716 161.653C87.6913 162.051 87.8011 162.568 87.8011 163.205V169H86.142V167.807H86.0739C85.964 168.027 85.7992 168.242 85.5795 168.455C85.3598 168.667 85.0777 168.843 84.733 168.983C84.3883 169.123 83.9754 169.193 83.4943 169.193ZM83.8636 167.83C84.3333 167.83 84.7348 167.737 85.0682 167.551C85.4053 167.366 85.661 167.123 85.8352 166.824C86.0133 166.521 86.1023 166.197 86.1023 165.852V164.727C86.0417 164.788 85.9242 164.845 85.75 164.898C85.5795 164.947 85.3845 164.991 85.1648 165.028C84.9451 165.062 84.7311 165.095 84.5227 165.125C84.3144 165.152 84.1402 165.174 84 165.193C83.6705 165.235 83.3693 165.305 83.0966 165.403C82.8277 165.502 82.6117 165.644 82.4489 165.83C82.2898 166.011 82.2102 166.254 82.2102 166.557C82.2102 166.977 82.3655 167.295 82.6761 167.511C82.9867 167.723 83.3826 167.83 83.8636 167.83ZM93.7401 169.176C92.8954 169.176 92.1681 168.985 91.5582 168.602C90.9522 168.216 90.4863 167.684 90.1605 167.006C89.8348 166.328 89.6719 165.551 89.6719 164.676C89.6719 163.79 89.8385 163.008 90.1719 162.33C90.5052 161.648 90.9749 161.116 91.581 160.733C92.187 160.35 92.901 160.159 93.723 160.159C94.3859 160.159 94.9768 160.282 95.4957 160.528C96.0147 160.771 96.4332 161.112 96.7514 161.551C97.0734 161.991 97.2647 162.504 97.3253 163.091H95.6719C95.581 162.682 95.3726 162.33 95.0469 162.034C94.7249 161.739 94.2931 161.591 93.7514 161.591C93.2779 161.591 92.8632 161.716 92.5071 161.966C92.1548 162.212 91.8802 162.564 91.6832 163.023C91.4863 163.477 91.3878 164.015 91.3878 164.636C91.3878 165.273 91.4844 165.822 91.6776 166.284C91.8707 166.746 92.1435 167.104 92.4957 167.358C92.8518 167.612 93.2704 167.739 93.7514 167.739C94.0734 167.739 94.3651 167.68 94.6264 167.562C94.8916 167.441 95.1132 167.269 95.2912 167.045C95.473 166.822 95.5999 166.553 95.6719 166.239H97.3253C97.2647 166.803 97.081 167.307 96.7741 167.75C96.4673 168.193 96.0563 168.542 95.5412 168.795C95.0298 169.049 94.4295 169.176 93.7401 169.176ZM102.903 169.176C102.044 169.176 101.303 168.992 100.682 168.625C100.064 168.254 99.5871 167.733 99.25 167.062C98.9167 166.388 98.75 165.598 98.75 164.693C98.75 163.799 98.9167 163.011 99.25 162.33C99.5871 161.648 100.057 161.116 100.659 160.733C101.265 160.35 101.973 160.159 102.784 160.159C103.277 160.159 103.754 160.241 104.216 160.403C104.678 160.566 105.093 160.822 105.46 161.17C105.828 161.519 106.117 161.972 106.33 162.528C106.542 163.081 106.648 163.754 106.648 164.545V165.148H99.7102V163.875H104.983C104.983 163.428 104.892 163.032 104.71 162.688C104.528 162.339 104.273 162.064 103.943 161.864C103.617 161.663 103.235 161.562 102.795 161.562C102.318 161.562 101.902 161.68 101.545 161.915C101.193 162.146 100.92 162.449 100.727 162.824C100.538 163.195 100.443 163.598 100.443 164.034V165.028C100.443 165.612 100.545 166.108 100.75 166.517C100.958 166.926 101.248 167.239 101.619 167.455C101.991 167.667 102.424 167.773 102.92 167.773C103.242 167.773 103.536 167.727 103.801 167.636C104.066 167.542 104.295 167.402 104.489 167.216C104.682 167.03 104.83 166.801 104.932 166.528L106.54 166.818C106.411 167.292 106.18 167.706 105.847 168.062C105.517 168.415 105.102 168.689 104.602 168.886C104.106 169.08 103.54 169.176 102.903 169.176Z",fill:"white"}),i.createElement("path",{d:"M117.604 47.2627L121.523 45H135.79V86.8617H121.523L106.188 78.0079L106.188 53.8537L108.006 52.8045L111.206 54.652L109.388 55.7013V76.1604L122.381 83.6617H132.59V48.2H122.381L120.804 49.1102L117.604 47.2627Z",fill:"url(#paint1_linear_1410_22507)"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.1604V55.7013L106.409 48.2H96.2V83.6617H106.409L107.991 82.7486L111.191 84.5961L107.267 86.8617H93V45H107.267L122.602 53.8537V78.0079L120.789 79.0543L117.589 77.2068L119.402 76.1604Z",fill:"url(#paint2_linear_1410_22507)"}),i.createElement("g",{clipPath:"url(#clip0_1410_22507)"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.9284 216.089L51.9616 218.941H49.4587L50.487 216.099C50.5226 216 50.5582 215.888 50.5938 215.761C50.6326 215.635 50.6697 215.498 50.7053 215.352C50.7797 215.649 50.8541 215.894 50.9284 216.089ZM53.2082 221.68H54.0037L51.2292 214.328H50.1863L47.4118 221.68H48.2073C48.2946 221.68 48.369 221.654 48.4304 221.603C48.4919 221.549 48.5339 221.489 48.5565 221.424L49.1725 219.719H52.2429L52.8589 221.424C52.8848 221.499 52.9269 221.561 52.9851 221.608C53.0433 221.656 53.1176 221.68 53.2082 221.68ZM58.031 220.717C57.8466 220.782 57.6235 220.815 57.3616 220.815H55.9064V218.362H57.3616C57.8628 218.362 58.2331 218.468 58.4724 218.68C58.7117 218.888 58.8313 219.175 58.8313 219.54C58.8313 219.724 58.8038 219.895 58.7488 220.052C58.6939 220.205 58.6066 220.339 58.4869 220.451C58.3705 220.564 58.2185 220.653 58.031 220.717ZM55.9064 217.589V215.183H57.1433C57.6413 215.183 58.0083 215.278 58.2444 215.469C58.4804 215.661 58.5985 215.966 58.5985 216.386C58.5985 216.755 58.474 217.048 58.225 217.267C57.9792 217.482 57.6025 217.589 57.0948 217.589H55.9064ZM58.2638 214.461C57.9534 214.372 57.5799 214.328 57.1433 214.328H54.8733V221.68H57.381C57.7723 221.68 58.1215 221.629 58.4287 221.526C58.7359 221.424 58.9946 221.279 59.2048 221.091C59.415 220.903 59.5751 220.682 59.685 220.426C59.7949 220.166 59.8499 219.879 59.8499 219.565C59.8499 218.661 59.3438 218.103 58.3317 217.891C58.5516 217.816 58.7424 217.722 58.9041 217.61C59.0657 217.497 59.1999 217.371 59.3067 217.231C59.4134 217.087 59.4926 216.934 59.5443 216.77C59.5961 216.606 59.6219 216.435 59.6219 216.258C59.6219 215.958 59.5734 215.69 59.4764 215.454C59.3826 215.215 59.2355 215.012 59.035 214.845C58.8345 214.678 58.5775 214.55 58.2638 214.461ZM65.7988 215.239H63.5869V221.68H62.5586V215.239H60.3371V214.328H65.7988V215.239ZM68.2377 215.803H67.1074V216.996H68.2377V215.803ZM67.1074 218.786H68.2377V219.979H67.1074V218.786Z",fill:"white",fillOpacity:.8}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.2472 221.771V214H32.141C33.1319 214.072 33.9063 214.944 33.9063 215.998V219.768C33.9063 220.874 33.0569 221.771 32.0091 221.771H28.2472ZM36.3546 214H35.3436V221.783H36.3546V214ZM29.2582 220.704V215.062H32.0091C32.4986 215.062 32.8953 215.481 32.8953 215.998V219.768C32.8953 220.285 32.4986 220.704 32.0091 220.704H29.2582ZM37.7748 214V221.771H41.5367C42.5845 221.771 43.4339 220.874 43.4339 219.768V215.998C43.4339 214.944 42.6595 214.072 41.6686 214H37.7748ZM44.7205 215.803H45.8508V216.996H44.7205V215.803ZM45.8508 218.786H44.7205V219.979H45.8508V218.786ZM38.7858 215.062V220.704H41.5367C42.0262 220.704 42.4229 220.285 42.4229 219.768V215.998C42.4229 215.481 42.0262 215.062 41.5367 215.062H38.7858Z",fill:"white"})),i.createElement("circle",{cx:191.32,cy:218,r:10,fill:"url(#paint3_radial_1410_22507)"}),i.createElement("path",{d:"M192.064 213.333L193.04 212.769H196.594V223.196H193.308C193.133 223.196 192.96 223.15 192.808 223.062L189.22 220.991L189.22 214.975L189.673 214.713L190.47 215.173L190.017 215.435V220.531L193.254 222.399H195.797V213.566H193.254L192.861 213.793L192.064 213.333Z",fill:"white"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531V215.435L189.275 213.566H186.732V222.399H189.275L189.669 222.172L190.466 222.632L189.489 223.196H185.935V212.769H189.489L193.309 214.975V220.991L192.857 221.252L192.06 220.791L192.512 220.531Z",fill:"white"})))),P||(P=i.createElement("defs",null,i.createElement("filter",{id:"filter0_d_1410_22507",x:0,y:0,width:228,height:258,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},i.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),i.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),i.createElement("feOffset",{dy:2}),i.createElement("feGaussianBlur",{stdDeviation:2}),i.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),i.createElement("feColorMatrix",{type:"matrix",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"}),i.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),i.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})),i.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:1,height:1},i.createElement("use",{xlinkHref:"#image0_1410_22507",transform:"scale(0.00454545 0.0078125)"})),i.createElement("linearGradient",{id:"paint0_linear_1410_22507",x1:114,y1:130,x2:114,y2:252,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#101010"}),i.createElement("stop",{offset:1,stopColor:"#272727"})),i.createElement("linearGradient",{id:"paint1_linear_1410_22507",x1:120.989,y1:45,x2:120.989,y2:86.8617,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"white",stopOpacity:.4}),i.createElement("stop",{offset:1,stopColor:"white"})),i.createElement("linearGradient",{id:"paint2_linear_1410_22507",x1:107.801,y1:45,x2:107.801,y2:86.8617,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"white"}),i.createElement("stop",{offset:1,stopColor:"white",stopOpacity:.4})),i.createElement("radialGradient",{id:"paint3_radial_1410_22507",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(183.166 221) rotate(-27.2864) scale(19.1285 15.2161)"},i.createElement("stop",{stopColor:"#016BED"}),i.createElement("stop",{offset:.69919,stopColor:"#4498FB"}),i.createElement("stop",{offset:1,stopColor:"#9DFFE8"})),i.createElement("clipPath",{id:"clip0_1410_22507"},i.createElement("rect",{width:40.32,height:8,fill:"white",transform:"translate(28 214)"})),i.createElement("image",{id:"image0_1410_22507",width:220,height:128,xlinkHref:"data:image/png;base64,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"}))))}var Y=i.forwardRef(K);t.p;var W,q=function(){var e=(0,c.PE)().t;return(0,V.jsx)(o.Z,{children:(0,V.jsxs)(o.Z,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[(0,V.jsx)(Y,{style:{width:200,height:250}}),(0,V.jsx)(g.Z,{marginTop:"24px",marginBottom:"24px",children:e("storage.spaces.connect.providerForStorage")})]})})},_=t(7173),$=t(59505),ee=t(38996),ne=["title","titleId"];function te(){return te=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},te.apply(this,arguments)}function re(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ie(e,n){var t=e.title,r=e.titleId,a=re(e,ne);return i.createElement("svg",te({width:8,height:8,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":r},a),t?i.createElement("title",{id:r},t):null,W||(W=i.createElement("circle",{cx:4,cy:4,r:4,fill:"#25C99B"})))}var ae=i.forwardRef(ie),oe=(t.p,t(36558)),ce=t(50202),se=t(94702),le=t(75255);function pe(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{key:"sm"}).key,n=(0,se.Z)();return(0,le.Z)(n.breakpoints.down(e))}var de=t(94551),ue=t(30291),fe=t(67531),Ce=t(39882),me=t.n(Ce);function he(e){var n=e.spaceGateway,t=e.onDeleteSpace,r=(0,c.PE)().t,a=(0,i.useState)(!1),o=(0,h.Z)(a,2),s=o[0],l=o[1],p=(0,i.useState)(!1),d=(0,h.Z)(p,2),u=d[0],m=d[1],x=function(e,n){null===e||void 0===e||e.stopPropagation(),l(n)},g=function(){var e=(0,C.Z)((0,f.Z)().mark((function e(i){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,null===i||void 0===i||i.stopPropagation(),m(!0),e.next=5,t(n);case 5:l(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),j.Z.error("".concat(r("storage.spaces.gateway.delete.failed"),": ").concat(me()(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,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(de.Z,{size:"small",onClick:function(e){return x(e,!0)},children:(0,V.jsx)(ue.default,{})}),(0,V.jsx)(fe.Z,{title:r("common.delConfirmDescription",{data:"".concat(null===n||void 0===n?void 0:n.name)}),open:s,confirmButton:{text:r("common.confirm"),props:{variant:"contained",color:"error",loading:u}},cancelButton:{text:r("common.cancel"),props:{variant:"contained",color:"primary"}},onConfirm:g,onCancel:function(e){return x(e,!1)}})]})}he.defaultProps={onDeleteSpace:function(){}};var xe,ge=he,ye=["spaceGateway","connected","onDisconnect"];function ve(e){var n=e.spaceGateway,t=e.connected,r=e.onDisconnect,a=(0,x.Z)(e,ye),s=pe(),p=(0,c.PE)(),d=p.t,u=p.locale,y=(0,M.y0)().blocklet,v=(0,S.h6)().api,Z=(0,H.Z)({blocklet:y}).appName,b=(0,i.useMemo)((function(){return(0,l.EJ)(null===y||void 0===y?void 0:y.environments)}),[y]),k=(0,i.useState)({open:!1,action:"one-click-authorization",checkTimeout:3e5,messages:{title:d("storage.spaces.authorize.title",{appName:Z},u),scan:d("storage.spaces.authorize.scan",{appName:Z},u),confirm:"",success:(0,V.jsx)(g.Z,{gutterBottom:!0,children:d("storage.spaces.authorize.success")})},onClose:function(){O((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})}))}}),A=(0,h.Z)(k,2),E=A[0],O=A[1],B=function(){var e=(0,C.Z)((0,f.Z)().mark((function e(t,r){var i,a,o,c,s,p;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=r(t.endpoint),s=(0,l.LQ)(c),p=t.space?r(t.space):{},!n.did||s===n.did){e.next=7;break}return O((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})})),j.Z.error(d("storage.spaces.gateway.switch.failedForMismatchSpace",{name:null!==p&&void 0!==p&&p.name?p.name:""})),e.abrupt("return");case 7:return e.next=9,v.updateBlockletSpaceGateway({input:{did:y.meta.did,where:{url:null===n||void 0===n?void 0:n.url},spaceGateway:(0,m.Z)((0,m.Z)({},n),{},{name:null!==(i=p.name)&&void 0!==i?i:"DID Space",did:null!==(a=p.did)&&void 0!==a?a:(0,l.LQ)(c),endpoint:c})}});case 9:if(b===c){e.next=12;break}return e.next=12,v.configBlocklet({input:{did:[y.meta.did],configs:[{key:$.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:c}]}});case 12:j.Z.success(d("storage.spaces.connectedWithName",{name:null!==(o=null===n||void 0===n?void 0:n.name)&&void 0!==o?o:"DID Spaces"})),O((function(e){return(0,m.Z)((0,m.Z)({},e),{},{open:!1})}));case 14:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),I=function(){var e=(0,C.Z)((0,f.Z)().mark((function e(){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r();case 3:j.Z.success(d("storage.spaces.gateway.delete.succeeded",{name:n.name})),e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0),j.Z.error((0,L.Z)(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}();return(0,V.jsxs)(Ze,{style:{position:"relative"},children:[(0,V.jsxs)(o.Z,(0,m.Z)((0,m.Z)({sx:{backgroundColor:t?"#F0FDFF":"inherit","&:hover":{backgroundColor:t?"#F0FDFF":"#FBFBFB"},borderRadius:"8px"},display:"flex",padding:"12px 20px"},a),{},{children:[(0,V.jsx)(o.Z,{display:"flex",children:(0,V.jsx)(ce.Z,{alt:n.did,src:(0,l.Jf)(n.endpoint)})}),(0,V.jsxs)(o.Z,{className:"spaces-info",display:"flex",flexGrow:1,flexDirection:"column",sx:{marginLeft:"20px",padding:"0px 0px"},children:[(0,V.jsxs)(o.Z,{className:"spaces-info",display:"flex",maxWidth:"360px",alignItems:"center",children:[(0,V.jsx)(g.Z,{color:t?"primary":"inherit",fontSize:"1rem",fontWeight:"bold",children:n.name}),(0,V.jsx)(_.Z,{label:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ae,{style:{marginRight:"4px"}}),d("storage.spaces.connected.tag")]}),variant:"outlined",size:"small",style:{marginLeft:s?null:"20px",fontWeight:"bold"}})]}),(0,V.jsx)(o.Z,{className:"spaces-address",display:"flex",color:"#9397A1",marginTop:"8px",children:(0,V.jsx)(g.Z,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},color:"#9397A1",children:n.did&&(0,V.jsx)(oe.Z,{copyable:!1,size:14,compact:!0,responsive:!1,did:n.did})})})]}),(0,V.jsx)(o.Z,{className:"spaces-backup",display:"flex",alignItems:"center",children:(0,V.jsx)(o.Z,{className:"backup-strategy",display:"flex",alignItems:"center",width:"100%",children:(0,V.jsx)(ge,{spaceGateway:n,onDeleteSpace:I})})})]})),(0,V.jsx)(w.default,{forceConnected:!1,saveConnect:!1,prefix:E.prefix,open:E.open,popup:!0,action:E.action,baseUrl:E.baseUrl,checkFn:E.checkFn,onSuccess:B,onClose:E.onClose,checkTimeout:E.checkTimeout,extraParams:E.extraParams,messages:E.messages,locale:u},"get-endpoint"),(0,V.jsx)(o.Z,{className:"selected-container selected",children:(0,V.jsx)(ee.default,{className:"selected-icon"})})]})}ve.defaultProps={connected:!1,onDisconnect:function(){}};var Ze=(0,a.default)(o.Z)(xe||(xe=(0,r.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"]))),be=ve;var we,ke=function(){var e=(0,c.PE)().t,n=(0,U.NU)(),t=n.spaceGateway,r=n.settingStorageEndpoint;return(0,V.jsxs)(o.Z,{display:"flex",flexDirection:"column",children:[(0,V.jsx)(o.Z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:"12px",children:(0,V.jsx)(g.Z,{fontSize:"1.2rem",fontWeight:"bold",children:e("storage.spaces.connected.title")})}),(0,V.jsx)(o.Z,{children:(0,V.jsx)(be,{style:{marginTop:"12px"},spaceGateway:t,connected:!0,onDisconnect:function(){return r(null)}},t.endpoint)})]})};function Ae(e){var n,t,r=e.onNext,a=e.onPrevious,u=(0,i.useContext)(c.RD).t,f=(0,M.y0)().blocklet,C=pe(),m=(0,U.NU)().updateSpaceGateway,h=(0,i.useMemo)((function(){return(0,l.EJ)(f)}),[f]);return(0,V.jsxs)(je,{children:[(0,V.jsx)("div",{className:"header",children:(0,V.jsx)(s.Z,{title:u("setup.didSpace.title"),subTitle:u("setup.didSpace.subTitle"),onClickBack:a})}),(0,V.jsx)(o.Z,{width:C?"360px":"720px",children:h?(0,V.jsx)(ke,{}):(0,V.jsx)(q,{})}),"required"===(null===f||void 0===f||null===(n=f.capabilities)||void 0===n?void 0:n.didSpace)&&(0,V.jsxs)(d.Z,{mt:8,children:[(0,V.jsx)(Q,{onConnect:m}),(0,V.jsx)(p.Z,{sx:{marginLeft:"16px"},disabled:!h,onClick:function(){return r()},children:u("setup.next")})]}),"optional"===(null===f||void 0===f||null===(t=f.capabilities)||void 0===t?void 0:t.didSpace)&&(0,V.jsxs)(d.Z,{mt:8,blocklet:f,onStartNow:function(){return r("complete")},children:[(0,V.jsx)(Q,{onConnect:m}),(0,V.jsx)(p.Z,{sx:{marginLeft:"16px"},onClick:function(){return r()},children:u(h?"setup.continue":"setup.skip")})]})]})}Ae.defaultProps={onNext:function(){},onPrevious:function(){}};var je=(0,a.default)(u.Z)(we||(we=(0,r.Z)(["\n height: 100%;\n overflow-y: auto;\n"]))),Ee=Ae},62975:function(e,n,t){t.d(n,{Z:function(){return m}});var r,i=t(71171),a=t(16380),o=t(33028),c=t(59740),s=t(24974),l=t.n(s),p=t(37574),d=["children"];function u(e){var n=e.children,t=(0,c.Z)(e,d);return(0,p.jsx)(C,(0,o.Z)((0,o.Z)({},t),{},{children:n}))}u.propTypes={children:l().any.isRequired};var f,C=a.default.div(r||(r=(0,i.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n "," {\n padding: 24px;\n }\n\n "," {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n "," {\n padding-bottom: 34px;\n }\n\n "," {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.up("sm")}),(function(e){return e.theme.breakpoints.down("md")})),m=(0,a.default)(u)(f||(f=(0,i.Z)(["\n display: flex;\n flex-direction: column;\n padding-bottom: 16px;\n "," {\n padding-top: 34px;\n padding-bottom: 34px;\n }\n .header {\n width: 100%;\n margin-bottom: 34px;\n "," {\n margin-bottom: 64px;\n }\n }\n .container-main {\n position: relative;\n flex: 1;\n width: 100%;\n }\n .container-inner {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n overflow-y: auto;\n }\n"])),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.up("md")}))},96699:function(e,n,t){t.d(n,{Z:function(){return u}});var r,i,a=t(71171),o=t(16380),c=t(38361),s=t(47333),l=t(29996),p=t(38507),d=t(37574);function u(e){var n=e.blocklet,t=e.onStartNow,r=e.children,i=e.disabled,a=(0,s.PE)().t;return!n||(0,p.bg)(n.meta)?(0,d.jsx)(f,{children:r}):(0,d.jsxs)(C,{children:[(0,d.jsx)(l.Z,{className:"start-now",variant:"contained",color:"primary",disabled:i,onClick:function(){return t()},children:a("setup.startNow")}),(0,d.jsx)(c.Z,{display:"flex",alignItems:"center",children:r})]})}u.defaultProps={blocklet:null,onStartNow:function(){},children:null,disabled:!1};var f=(0,o.default)(c.Z)(r||(r=(0,a.Z)(["\n padding-top: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n .bottom-button {\n min-width: 200px;\n }\n "," {\n .bottom-button {\n min-width: 150px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")})),C=(0,o.default)(c.Z)(i||(i=(0,a.Z)(["\n padding-bottom: 48px;\n padding-top: 24px;\n margin: 0 auto;\n width: 80%;\n display: flex;\n align-items: center;\n justify-content: space-around;\n .start-now {\n min-width: 140px;\n }\n .bottom-button {\n min-width: 120px;\n }\n "," {\n width: 100%;\n }\n\n "," {\n .start-now {\n min-width: 100px;\n }\n .bottom-button {\n min-width: 80px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("lg")}),(function(e){return e.theme.breakpoints.down("md")}))},47768:function(e,n,t){n.Z=void 0;var r,i=l(t(16380)),a=l(t(24974)),o=l(t(15405)),c=t(37574),s=["title","subTitle","onClickBack"];function l(e){return e&&e.__esModule?e:{default:e}}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){u(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function u(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function C(e){var n=e.title,t=e.subTitle,r=e.onClickBack,i=f(e,s);return(0,c.jsxs)(x,d(d({},i),{},{children:[r&&(0,c.jsx)(o.default,{className:"back-btn",onClick:r}),(0,c.jsx)("div",{className:"title",children:n}),(0,c.jsx)("div",{className:"sub-title",children:t})]}))}var m,h,x=i.default.div(r||(m=["\n position: relative;\n width: 100%;\n text-align: center;\n\n .title {\n font-size: 24px;\n font-weight: 700;\n color: ",";\n\n "," {\n font-size: 20px;\n }\n }\n\n .sub-title {\n font-size: 14px;\n color: ",";\n padding: 0 14px;\n font-weight: 400;\n }\n\n .back-btn {\n position: absolute;\n left: 0;\n top: 8px;\n color: #9397a1;\n font-size: 18px;\n cursor: pointer;\n }\n"],h||(h=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(h)}}))),(function(e){return e.theme.palette.common.black}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.palette.grey[600]})),g=C;n.Z=g,C.propTypes={title:a.default.string,subTitle:a.default.string,onClickBack:a.default.oneOfType([a.default.func,a.default.string])},C.defaultProps={title:"",subTitle:"",onClickBack:""}},15405:function(e,n,t){var r=t(71600);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(48035)),a=t(37574),o=(0,i.default)((0,a.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");n.default=o},23038:function(e,n,t){var r=t(71600);n.Z=void 0;var i=r(t(48035)),a=t(37574),o=(0,i.default)((0,a.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");n.Z=o},33665:function(e,n,t){function r(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:function(){return r}})}}]);
2
+ //# sourceMappingURL=3551.a3cfa6aa.chunk.js.map