@abtnode/blocklet-services 1.16.20-beta-9c254d14 → 1.16.20-beta-e6e3b017

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 (148) hide show
  1. package/api/index.js +1 -0
  2. package/api/services/notification/index.js +21 -4
  3. package/api/services/static.js +1 -1
  4. package/api/socket/channel/did.js +42 -1
  5. package/package.json +36 -39
  6. package/build/asset-manifest.json +0 -225
  7. package/build/favicon.ico +0 -0
  8. package/build/images/blocklet.png +0 -0
  9. package/build/images/https-certificate-icon.png +0 -0
  10. package/build/images/logo.png +0 -0
  11. package/build/index.html +0 -1
  12. package/build/router-template-styles/fonts/lato-latin-400-normal.woff +0 -0
  13. package/build/router-template-styles/fonts/lato-latin-400-normal.woff2 +0 -0
  14. package/build/router-template-styles/fonts/lato-latin-ext-400-normal.woff +0 -0
  15. package/build/router-template-styles/fonts/lato-latin-ext-400-normal.woff2 +0 -0
  16. package/build/router-template-styles/styles.css +0 -1
  17. package/build/service-worker.js +0 -3
  18. package/build/service-worker.js.LICENSE.txt +0 -1
  19. package/build/service-worker.js.map +0 -1
  20. package/build/static/css/3154.e954fcda.chunk.css +0 -2
  21. package/build/static/css/424.13cf051c.chunk.css +0 -2
  22. package/build/static/css/4802.bf353f58.chunk.css +0 -2
  23. package/build/static/css/5547.75913953.chunk.css +0 -12
  24. package/build/static/css/5982.ac464505.chunk.css +0 -2
  25. package/build/static/css/main.7ea79dc8.css +0 -2
  26. package/build/static/js/1.138935fc.chunk.js +0 -2
  27. package/build/static/js/1035.ceeeaa2a.chunk.js +0 -2
  28. package/build/static/js/1148.d3c53aea.chunk.js +0 -2
  29. package/build/static/js/1249.ce085f29.chunk.js +0 -3
  30. package/build/static/js/1249.ce085f29.chunk.js.LICENSE.txt +0 -5
  31. package/build/static/js/1275.34d2fab6.chunk.js +0 -2
  32. package/build/static/js/1318.11dffa16.chunk.js +0 -2
  33. package/build/static/js/1343.69031e0b.chunk.js +0 -2
  34. package/build/static/js/1359.add26d23.chunk.js +0 -2
  35. package/build/static/js/1809.df394bcb.chunk.js +0 -2
  36. package/build/static/js/1946.b8762af5.chunk.js +0 -2
  37. package/build/static/js/2291.7ffdc7df.chunk.js +0 -2
  38. package/build/static/js/2362.ab5308a8.chunk.js +0 -2
  39. package/build/static/js/2631.54f86f84.chunk.js +0 -2
  40. package/build/static/js/2653.980158ea.chunk.js +0 -2
  41. package/build/static/js/2664.da443f31.chunk.js +0 -2
  42. package/build/static/js/2940.5fc76234.chunk.js +0 -2
  43. package/build/static/js/2988.62cc135c.chunk.js +0 -2
  44. package/build/static/js/3025.76882d0f.chunk.js +0 -2
  45. package/build/static/js/3033.f950a32b.chunk.js +0 -2
  46. package/build/static/js/3131.ccb42c1c.chunk.js +0 -2
  47. package/build/static/js/3430.28c5bd04.chunk.js +0 -2
  48. package/build/static/js/356.0210d3f8.chunk.js +0 -2
  49. package/build/static/js/3593.b9a1a7f5.chunk.js +0 -2
  50. package/build/static/js/3842.22c00915.chunk.js +0 -3
  51. package/build/static/js/3842.22c00915.chunk.js.LICENSE.txt +0 -5
  52. package/build/static/js/3925.948d992d.chunk.js +0 -2
  53. package/build/static/js/3953.ddf8be86.chunk.js +0 -2
  54. package/build/static/js/3979.2e0c92ff.chunk.js +0 -3
  55. package/build/static/js/3979.2e0c92ff.chunk.js.LICENSE.txt +0 -155
  56. package/build/static/js/3994.e53e7ce2.chunk.js +0 -2
  57. package/build/static/js/4009.65d1c083.chunk.js +0 -2
  58. package/build/static/js/4023.8c5c7db4.chunk.js +0 -2
  59. package/build/static/js/4076.8055ce74.chunk.js +0 -2
  60. package/build/static/js/424.d91b48b7.chunk.js +0 -3
  61. package/build/static/js/424.d91b48b7.chunk.js.LICENSE.txt +0 -23
  62. package/build/static/js/4319.8d9e189e.chunk.js +0 -2
  63. package/build/static/js/4461.a64e7486.chunk.js +0 -2
  64. package/build/static/js/4587.0d0fd3ae.chunk.js +0 -2
  65. package/build/static/js/476.f196e88a.chunk.js +0 -2
  66. package/build/static/js/4802.217e3956.chunk.js +0 -2
  67. package/build/static/js/4881.1de6ed4a.chunk.js +0 -2
  68. package/build/static/js/4882.0435e418.chunk.js +0 -2
  69. package/build/static/js/4917.6e72ef28.chunk.js +0 -2
  70. package/build/static/js/4961.89add60c.chunk.js +0 -3
  71. package/build/static/js/4961.89add60c.chunk.js.LICENSE.txt +0 -5
  72. package/build/static/js/5070.be5019aa.chunk.js +0 -2
  73. package/build/static/js/5403.56417480.chunk.js +0 -3
  74. package/build/static/js/5403.56417480.chunk.js.LICENSE.txt +0 -26
  75. package/build/static/js/5434.523d071d.chunk.js +0 -2
  76. package/build/static/js/5468.21a861b9.chunk.js +0 -2
  77. package/build/static/js/5509.a196d497.chunk.js +0 -3
  78. package/build/static/js/5509.a196d497.chunk.js.LICENSE.txt +0 -1
  79. package/build/static/js/5547.7468ef6a.chunk.js +0 -3
  80. package/build/static/js/5547.7468ef6a.chunk.js.LICENSE.txt +0 -62
  81. package/build/static/js/556.e1875260.chunk.js +0 -3
  82. package/build/static/js/556.e1875260.chunk.js.LICENSE.txt +0 -5
  83. package/build/static/js/5569.e4bfe697.chunk.js +0 -2
  84. package/build/static/js/5645.3c5c0f93.chunk.js +0 -2
  85. package/build/static/js/5683.cb2ab151.chunk.js +0 -2
  86. package/build/static/js/5725.c401d636.chunk.js +0 -3
  87. package/build/static/js/5725.c401d636.chunk.js.LICENSE.txt +0 -7
  88. package/build/static/js/5785.235dfc72.chunk.js +0 -2
  89. package/build/static/js/5820.c40d570f.chunk.js +0 -2
  90. package/build/static/js/5982.7fb6982b.chunk.js +0 -2
  91. package/build/static/js/6218.4f3036a7.chunk.js +0 -2
  92. package/build/static/js/6326.2816fb2f.chunk.js +0 -2
  93. package/build/static/js/6400.0d9d1b25.chunk.js +0 -2
  94. package/build/static/js/655.cdee65b4.chunk.js +0 -2
  95. package/build/static/js/6629.fd9d74f5.chunk.js +0 -3
  96. package/build/static/js/6629.fd9d74f5.chunk.js.LICENSE.txt +0 -13
  97. package/build/static/js/6637.b2e35031.chunk.js +0 -2
  98. package/build/static/js/6658.98f9956d.chunk.js +0 -2
  99. package/build/static/js/6733.80a6ecbd.chunk.js +0 -2
  100. package/build/static/js/6771.c9706b0b.chunk.js +0 -3
  101. package/build/static/js/6771.c9706b0b.chunk.js.LICENSE.txt +0 -18
  102. package/build/static/js/7006.9a659b1f.chunk.js +0 -2
  103. package/build/static/js/716.8cd88d8c.chunk.js +0 -3
  104. package/build/static/js/716.8cd88d8c.chunk.js.LICENSE.txt +0 -5
  105. package/build/static/js/717.ec2ba6d0.chunk.js +0 -2
  106. package/build/static/js/7313.b53b59d8.chunk.js +0 -2
  107. package/build/static/js/7556.218caceb.chunk.js +0 -2
  108. package/build/static/js/7606.25231f8c.chunk.js +0 -2
  109. package/build/static/js/779.cbad02fa.chunk.js +0 -2
  110. package/build/static/js/7832.81aaf011.chunk.js +0 -2
  111. package/build/static/js/7858.dda2dc10.chunk.js +0 -2
  112. package/build/static/js/7973.7d559f93.chunk.js +0 -3
  113. package/build/static/js/7973.7d559f93.chunk.js.LICENSE.txt +0 -13
  114. package/build/static/js/8283.fe1c7069.chunk.js +0 -2
  115. package/build/static/js/8393.c6c4c762.chunk.js +0 -2
  116. package/build/static/js/8604.ece06cf7.chunk.js +0 -3
  117. package/build/static/js/8604.ece06cf7.chunk.js.LICENSE.txt +0 -6
  118. package/build/static/js/8622.03f917b3.chunk.js +0 -2
  119. package/build/static/js/8792.13a6919f.chunk.js +0 -2
  120. package/build/static/js/8944.6d336f28.chunk.js +0 -2
  121. package/build/static/js/8983.4443c4ea.chunk.js +0 -2
  122. package/build/static/js/9017.369db632.chunk.js +0 -2
  123. package/build/static/js/9194.6800abab.chunk.js +0 -2
  124. package/build/static/js/9529.c7112fae.chunk.js +0 -2
  125. package/build/static/js/9582.2c539fcf.chunk.js +0 -2
  126. package/build/static/js/9657.b03b88e5.chunk.js +0 -2
  127. package/build/static/js/9900.55cbc589.chunk.js +0 -2
  128. package/build/static/js/9982.4f1ebb7f.chunk.js +0 -2
  129. package/build/static/js/9996.5545ea26.chunk.js +0 -2
  130. package/build/static/js/9997.540afd6e.chunk.js +0 -2
  131. package/build/static/js/main.897918c4.js +0 -3
  132. package/build/static/js/main.897918c4.js.LICENSE.txt +0 -152
  133. package/build/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg +0 -59
  134. package/build/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff +0 -0
  135. package/build/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff +0 -0
  136. package/build/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2 +0 -0
  137. package/build/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2 +0 -0
  138. package/build/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2 +0 -0
  139. package/build/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2 +0 -0
  140. package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +0 -3
  141. package/build/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg +0 -23
  142. package/build/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff +0 -0
  143. package/build/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2 +0 -0
  144. package/build/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2 +0 -0
  145. package/build/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2 +0 -0
  146. package/build/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2 +0 -0
  147. package/build/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2 +0 -0
  148. package/build/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2 +0 -0
@@ -1,26 +0,0 @@
1
- /** @license React v0.19.1
2
- * scheduler.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
-
10
- /** @license React v16.14.0
11
- * react-dom.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
-
19
- /** @license React v16.14.0
20
- * react.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[5434],{45434:function(s){var t={default:this,call:function(s,t,i){var e="";"function"==typeof t&&(i=t,t={});var n={data:void 0===t?null:t};if("function"==typeof i){var a="dscb"+window.dscb++;window[a]=i,n._dscbstub=a}return n=JSON.stringify(n),window._dsbridge?e=_dsbridge.call(s,n):(window._dswk||-1!=navigator.userAgent.indexOf("_dsbridge"))&&(e=prompt("_dsbridge="+s,n)),JSON.parse(e||"{}").data},register:function(s,i,e){var n=e?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout((function(){t.call("_dsb.dsinit")}),0)),"object"==typeof i?n._obs[s]=i:n[s]=i},registerAsyn:function(s,t){this.register(s,t,!0)},hasNativeMethod:function(s,t){return this.call("_dsb.hasNativeMethod",{name:s,type:t||"all"})},disableJavascriptDialogBlock:function(s){this.call("_dsb.disableJavascriptDialogBlock",{disable:!1!==s})}};!function(){if(!window._dsf){var s={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:t,close:function(){t.call("_dsb.closePage")},_handleMessageFromNative:function(s){var i=JSON.parse(s.data),e={id:s.callbackId,complete:!0},n=this._dsf[s.method],a=this._dsaf[s.method],d=function(s,n){e.data=s.apply(n,i),t.call("_dsb.returnValue",e)},o=function(s,n){i.push((function(s,i){e.data=s,e.complete=!1!==i,t.call("_dsb.returnValue",e)})),s.apply(n,i)};if(n)d(n,this._dsf);else if(a)o(a,this._dsaf);else{var r=s.method.split(".");if(r.length<2)return;var f=r.pop(),l=r.join("."),c=this._dsf._obs,_=c[l]||{},u=_[f];if(u&&"function"==typeof u)return void d(u,_);if((u=(_=(c=this._dsaf._obs)[l]||{})[f])&&"function"==typeof u)return void o(u,_)}}};for(var i in s)window[i]=s[i];t.register("_hasJavascriptMethod",(function(s,t){var i=s.split(".");if(i.length<2)return!(!_dsf[i]&&!_dsaf[i]);s=i.pop();var e=i.join("."),n=_dsf._obs[e]||_dsaf._obs[e];return n&&!!n[s]}))}}(),s.exports=t}}]);
2
- //# sourceMappingURL=5434.523d071d.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[5468],{65468:function(e,n,r){r.r(n),r.d(n,{UserPassports:function(){return le},UserProfile:function(){return ae},default:function(){return ce}});var t=r(71171),i=r(33028),o=(r(30969),r(65321)),s=r(70177),a=r(19865),l=r(78789),c=r(46292),d=r.n(c),u=r(61398),m=r.n(u),p=r(16380),h=r(29996),x=r(26022),f=r(25139),v=r(59467),Z=r(33359),g=r(38361),j=r(7173),b=r(1059),y=r(28595),w=r(20244),k=r(59505),P=r(36558),C=r(12502),I=r(75980),T=r(24891),S=r(30734),E=r(53279),z=r(4485),A=r(32723),R=r(34795),_=r(96234),L=r(62558),N=r.n(L),W=r(1986),q=r(86384),D=r(92522),O=r.n(D),U=r(63269),V=r(65453),B=r(31076),M=r(49884),Q=r(88876),F=r(39130),G=r(2689),H=r(87006),K=r(4953),J=r(94551),X=r(18877),Y=r(94308),$=r(39185),ee=r(54164),ne=r(13953),re=r(37574);function te(e){var n=e.data,r=e.user,t=e.onChange,o=(0,x.PE)().t,a=(0,z.Tt)().api,c=(0,$.Z)({editing:!1,dirty:!1}),u=(0,_.Z)(c,2),m=u[0],p=u[1],v=(0,ne.cI)({defaultValues:N()({notifications:{email:!0,wallet:!0,phone:!1},webhooks:[]},n)}),g=v.control,j=v.getValues,b=v.setValue,y=v.formState,w=v.handleSubmit,k=(0,ne.Dq)({control:g,name:"webhooks"}),P=w(function(){var e=(0,R.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.prev=0,e.next=3,a.post("/api/user/extra",n);case 3:return W.Z.success(o("common.saveSuccess")),p({editing:!1}),e.next=7,t();case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),W.Z.error((0,T.Z)(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(n){return e.apply(this,arguments)}}()),C=function(){var e=(0,R.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:return e.prev=0,r=j(),e.next=4,a.put("/api/user/extra",r.webhooks[n]);case 4:W.Z.success(o("team.member.settings.tested")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),W.Z.error((0,T.Z)(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}();return(0,re.jsxs)(f.Z,{spacing:3,children:[(0,re.jsxs)(f.Z,{sx:{width:"100%"},children:[(0,re.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",children:[(0,re.jsx)(Z.Z,{variant:"h6",gutterBottom:!0,children:o("team.member.settings.notification")}),(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",style:{height:"32px"},onClick:P,disabled:y.isSubmitting,children:o("common.save")})]}),(0,re.jsx)(ne.Qr,{name:"notifications.wallet",control:g,render:function(e){var n=e.field;return(0,re.jsx)(M.Z,{control:(0,re.jsx)(Q.Z,(0,i.Z)((0,i.Z)({checked:j().notifications.wallet},n),{},{onChange:function(e,r){return b(n.name,r)}})),disableTypography:!0,label:(0,re.jsxs)(Z.Z,{color:"text.primary",children:[o("team.member.settings.wallet"),(0,re.jsx)(Z.Z,{component:"span",color:"text.secondary",ml:1,children:(0,q.h1)(r)})]})})}}),(0,re.jsx)(ne.Qr,{name:"notifications.email",control:g,render:function(e){var n=e.field;return(0,re.jsx)(M.Z,{control:(0,re.jsx)(Q.Z,(0,i.Z)((0,i.Z)({checked:j().notifications.email},n),{},{onChange:function(e,r){return b(n.name,r)}})),disableTypography:!0,label:(0,re.jsxs)(Z.Z,{color:"text.primary",children:[o("team.member.settings.email"),(0,re.jsx)(Z.Z,{component:"span",color:"text.secondary",ml:1,children:r.email||""})]})})}}),(0,re.jsx)(ne.Qr,{name:"notifications.phone",control:g,render:function(e){var n=e.field;return(0,re.jsx)(M.Z,{control:(0,re.jsx)(Q.Z,(0,i.Z)((0,i.Z)({checked:j().notifications.phone},n),{},{onChange:function(e,r){return b(n.name,r)}})),disableTypography:!0,disabled:!0,label:(0,re.jsxs)(Z.Z,{color:"text.primary",children:[o("team.member.settings.phone"),(0,re.jsx)(Z.Z,{component:"span",color:"text.secondary",ml:1,children:r.phone||""})]})})}})]}),(0,re.jsxs)(f.Z,{children:[(0,re.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",children:[(0,re.jsx)(Z.Z,{variant:"h6",gutterBottom:!0,children:o("team.member.settings.webhook")}),(0,re.jsxs)(f.Z,{direction:"row",children:[m.editing&&(0,re.jsx)(h.Z,{variant:"text",size:"small",color:"primary",style:{height:"32px"},onClick:function(){return p({editing:!1})},children:o("common.cancel")}),(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",style:{height:"32px"},onClick:m.editing?P:function(){return p({editing:!0})},disabled:y.isSubmitting,children:m.editing?o("common.save"):o("common.edit")})]})]}),k.fields.map((function(e,n){var r,t=null===(r=d()(y.errors,"webhooks.".concat(n,".url")))||void 0===r?void 0:r.message;return m.editing?(0,re.jsxs)(f.Z,{mt:2,spacing:2,sx:{width:"100%"},direction:"row",alignItems:"center",children:[(0,re.jsxs)(f.Z,{direction:"row",spacing:2,sx:{width:"80%"},children:[(0,re.jsx)(ne.Qr,{name:"webhooks.".concat(n,".type"),control:g,rules:{required:o("common.required")},render:function(e){var n=e.field;return(0,re.jsxs)(F.Z,(0,i.Z)((0,i.Z)({},n),{},{sx:{flex:1},fullWidth:!0,size:"small",children:[(0,re.jsx)(G.Z,{value:"api",children:o("team.member.settings.url")}),(0,re.jsx)(G.Z,{value:"slack",children:o("team.member.settings.slack")})]}))}}),(0,re.jsx)(ne.Qr,{name:"webhooks.".concat(n,".url"),control:g,rules:{required:o("common.required"),validate:function(e){return O()(e)||o("common.invalid")}},render:function(e){var n=e.field;return(0,re.jsx)(H.Z,(0,i.Z)((0,i.Z)({sx:{flex:4},fullWidth:!0,size:"small",required:!0},n),{},{error:!!t,InputProps:{endAdornment:t?(0,re.jsx)(K.Z,{position:"end",children:(0,re.jsx)(Z.Z,{component:"span",color:"error",children:t})}):null}}))}})]}),(0,re.jsxs)(f.Z,{direction:"row",spacing:1,children:[(0,re.jsx)(J.Z,{size:"small",onClick:function(){return C(n)},children:(0,re.jsx)(U.Z,{color:"primary",sx:{opacity:.75}})}),(0,re.jsx)(J.Z,{size:"small",onClick:function(){return k.remove(n)},children:(0,re.jsx)(V.Z,{color:"error",sx:{opacity:.75}})})]})]},e.id):(0,re.jsx)(s.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.type,children:e.url},e.id)})),!m.editing&&!k.fields.length&&(0,re.jsx)(l.Z,{children:o("common.empty")}),m.editing&&(0,re.jsx)(f.Z,{mt:k.fields.length?2:1,direction:"row",justifyContent:"space-between",children:(0,re.jsxs)(h.Z,{size:"small",variant:"outlined",color:"primary",onClick:function(){return k.append({type:"slack",url:""})},children:[(0,re.jsx)(B.Z,{fontSize:"small"})," ",o("team.member.settings.add")]})})]})]})}function ie(e){var n=e.user,r=(0,z.Tt)().api,t=(0,ee.Z)((function(){return r.get("/api/user/extra").then((function(e){return e.data}))})),i=t.loading,o=t.error,s=t.runAsync,a=t.data;return o?(0,re.jsx)(X.Z,{severity:"error",children:o.message}):i||!a?(0,re.jsx)(Y.Z,{}):(0,re.jsx)(te,{data:a,user:n,onChange:s})}var oe,se=r(38507);function ae(e){var n=e.user,r=(0,x.PE)(),t=r.t,i=r.locale;return[{name:t("team.member.name"),value:n.fullName},{name:t("common.email"),value:n.email},{name:t("common.phone"),value:n.phone},{name:t("team.member.lastLogin"),value:(0,T.B2)(n.lastLoginAt,i)},{name:t("team.member.lastLoginIp"),value:n.lastLoginIp||""},{name:t("common.createdAt"),value:(0,T.B2)(n.createdAt,i)},{name:t("team.member.source"),value:{auth0:"Auth0",wallet:"DID wallet",federated:"Federated"}[(null===n||void 0===n?void 0:n.sourceProvider)||w.USER_TYPE.WALLET]||(null===n||void 0===n?void 0:n.sourceProvider)}].filter(Boolean).map((function(e){return e.name===t("common.did")?(0,re.jsx)(s.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:function(){return t("common.did")},children:e.value},e.name):(0,re.jsx)(s.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)}))}function le(e){var n=e.user,r=(0,x.PE)().t,t=(d()(n,"passports")||[]).map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{revoked:e.status===w.PASSPORT_STATUS.REVOKED})}));return 0===t.length?(0,re.jsx)(l.Z,{children:r("common.empty")}):(0,re.jsx)(f.Z,{direction:"row",spacing:3,children:t.map((function(e){return(0,re.jsx)(I.Z,{passport:e,user:n,width:200,color:window.blocklet.passportColor,createPassportSvg:se.Ju,sx:{flexDirection:"column",alignItems:"center"}},e.id)}))})}function ce(){var e=(0,S.useNavigate)(),n=(0,S.useParams)(),r=(0,x.PE)().t,t=(0,z.Tt)().session,i=(0,y.Z)({user:t.user,tab:n.tab||"profile"}),s={info:{label:r("common.profile"),value:"profile",component:ae},oauth:{label:r("team.member.connections"),value:"connections",component:C.Z},passports:{label:r("team.member.passports"),value:"passports",component:le},settings:{label:r("common.setting"),value:"settings",component:ie}},l=Object.values(s).map((function(e){return{label:e.label,value:e.value}})).filter((function(e){var n;return"connections"!==e.value||((null===(n=i.user)||void 0===n?void 0:n.connectedAccounts)||[]).find((function(e){var n;return e.provider!==((null===(n=i.user)||void 0===n?void 0:n.sourceProvider)||k.LOGIN_PROVIDER.WALLET)}))})),c=s[i.tab]||s.info;return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(o.Z,{}),(0,re.jsxs)(de,{sx:{mt:4},children:[(0,re.jsxs)(f.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(f.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,re.jsx)(v.Z,{src:i.user.avatar,variant:"rounded",style:{width:80,height:80,backgroundColor:"transparent",marginRight:8}}),(0,re.jsxs)(f.Z,{direction:"column",spacing:.5,children:[(0,re.jsx)(Z.Z,{variant:"h4",fontWeight:"bold",children:i.user.fullName}),(0,re.jsx)(g.Z,{children:(0,re.jsx)(j.Z,{label:i.user.role.toUpperCase(),size:"small",variant:"outlined",color:"success",sx:{height:"auto",fontWeight:"bold",fontSize:"12px"},icon:(0,re.jsx)(E.Z,{sx:{fontSize:"0.8em"}})})}),(0,re.jsx)(P.Z,{did:i.user.did})]})]}),(0,re.jsxs)(f.Z,{children:["profile"===i.tab&&(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return t.switchProfile(m(),{})},children:r("team.member.switch.profile")}),"passports"===i.tab&&(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return t.switchPassport(m(),{})},children:r("team.member.switch.passport")})]})]}),(0,re.jsx)(g.Z,{className:"tabs",sx:{my:3},children:(0,re.jsx)(a.Z,{tabs:l,current:i.tab,onChange:function(n){i.tab=n,e("".concat(w.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/").concat(n))}})}),(0,re.jsx)("div",{className:"body",children:(0,re.jsx)(c.component,{user:i.user})})]})]})}var de=(0,p.Z)(b.Z)(oe||(oe=(0,t.Z)(["\n .MuiTab-root {\n padding: 0;\n margin-right: 24px;\n min-height: 32px;\n min-width: auto;\n }\n\n .MuiTabs-root {\n min-height: 32px;\n margin-bottom: 8px;\n }\n\n .MuiTabs-scroller {\n border-bottom: 1px solid #eee;\n }\n\n .MuiCheckbox-root {\n padding-top: 2px;\n padding-bottom: 2px;\n }\n"])))},86384:function(e,n,r){n.h1=void 0;var t=r(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===t.LOGIN_PROVIDER.WALLET}))}n.h1=function(e){var n=o(e);return null===n||void 0===n?void 0:n.did}},36558:function(e,n,r){var t=r(33028),i=r(59740),o=r(24974),s=r.n(o),a=r(86822),l=r(19638),c=r(23586),d=r(37574),u=["did","href","external","avatarProps"];function m(e){var n=e.did,r=e.href,o=e.external,s=(e.avatarProps,(0,i.Z)(e,u)),m=(0,d.jsx)(c.Z,(0,t.Z)({did:n},s));return r?o?(0,d.jsx)(l.Z,{target:"_blank",href:r,underline:"hover",children:m}):(0,d.jsx)(a.rU,{to:r,children:m}):m}m.propTypes={did:s().string.isRequired,to:s().string,href:s().string,avatarProps:s().object,external:s().bool},m.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=m},12502:function(e,n,r){r.d(n,{Z:function(){return l}});r(30969);var t=r(24974),i=r.n(t),o=r(70177),s=r(36558),a=r(37574);function l(e){return(e.user.connectedAccounts||[]).map((function(e){return(0,a.jsx)(o.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.provider,children:(0,a.jsx)(s.Z,{did:e.did})},e.did)}))}l.propTypes={user:i().object.isRequired},l.defaultProps={}},75980:function(e,n,r){r.d(n,{Z:function(){return v}});var t,i=r(71171),o=r(33028),s=r(59740),a=(r(30969),r(24974)),l=r.n(a),c=r(16380),d=r(70093),u=r.n(d),m=r(38361),p=r(26022),h=r(69936),x=r(37574),f=["passport","user","color","width","icon","children","createPassportSvg"];function v(e){var n=e.passport,r=e.user,t=e.color,i=e.width,a=e.icon,l=e.children,c=e.createPassportSvg,d=(0,s.Z)(e,f),v=(0,p.PE)().t;return(0,x.jsxs)(Z,(0,o.Z)((0,o.Z)({display:"flex",alignItems:"center"},d),{},{children:[(0,x.jsx)("div",{dangerouslySetInnerHTML:{__html:c({title:n.title||n.name,issuer:n.issuer&&n.issuer.name,issuerDid:n.issuer&&n.issuer.id,ownerName:r.fullName,ownerDid:r.did,ownerAvatarUrl:r.avatar,revoked:n.revoked,preferredColor:t,width:i})}}),(0,x.jsxs)("div",{className:"body",children:[(0,x.jsxs)(m.Z,{className:"title",display:"flex",alignItems:"center",children:[u()(n.title),(0,x.jsxs)("div",{className:"status-icons",children:[a,n.revoked&&(0,x.jsx)(h.Z,{})]})]}),n.expirationDate&&(0,x.jsx)(m.Z,{className:"title",display:"flex",alignItems:"center",children:v("team.passport.validUntil",{date:n.expirationDate})}),l]})]}))}v.propTypes={passport:l().any.isRequired,user:l().any.isRequired,color:l().string.isRequired,createPassportSvg:l().func.isRequired,icon:l().any,children:l().any,width:l().number},v.defaultProps={icon:null,children:null,width:150};var Z=(0,c.Z)(m.Z)(t||(t=(0,i.Z)(["\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"])))}}]);
2
- //# sourceMappingURL=5468.21a861b9.chunk.js.map
@@ -1,3 +0,0 @@
1
- /*! For license information please see 5509.a196d497.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[5509],{25509:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var o=r(t),i=r(n);function a(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(c){s=!0,o=c}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function f(e,t){if(null==e)return{};var n,r,o=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){return m(e)||a(e,t)||p(e,t)||v()}function m(e){if(Array.isArray(e))return e}function p(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=g(e,"string");return"symbol"===typeof t?t:String(t)}var S=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],h=function(e,t){var r=e.animationData,a=e.loop,u=e.autoplay,s=e.initialSegment,c=e.onComplete,m=e.onLoopComplete,p=e.onEnterFrame,y=e.onSegmentStart,v=e.onConfigReady,g=e.onDataReady,b=e.onDataFailed,h=e.onLoadedImages,O=e.onDOMLoaded,w=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var A=f(e,S),j=d(n.useState(!1),2),P=j[0],D=j[1],E=n.useRef(),R=n.useRef(null),L=function(){var e;null===(e=E.current)||void 0===e||e.play()},C=function(){var e;null===(e=E.current)||void 0===e||e.stop()},T=function(){var e;null===(e=E.current)||void 0===e||e.pause()},x=function(e){var t;null===(t=E.current)||void 0===t||t.setSpeed(e)},I=function(e,t){var n;null===(n=E.current)||void 0===n||n.goToAndPlay(e,t)},_=function(e,t){var n;null===(n=E.current)||void 0===n||n.goToAndStop(e,t)},k=function(e){var t;null===(t=E.current)||void 0===t||t.setDirection(e)},F=function(e,t){var n;null===(n=E.current)||void 0===n||n.playSegments(e,t)},M=function(e){var t;null===(t=E.current)||void 0===t||t.setSubframe(e)},N=function(e){var t;return null===(t=E.current)||void 0===t?void 0:t.getDuration(e)},V=function(){var e;null===(e=E.current)||void 0===e||e.destroy(),E.current=void 0},B=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(R.current){null===(t=E.current)||void 0===t||t.destroy();var r=l(l(l({},e),n),{},{container:R.current});return E.current=o.default.loadAnimation(r),D(!!E.current),function(){var e;null===(e=E.current)||void 0===e||e.destroy(),E.current=void 0}}};return n.useEffect((function(){var e=B();return function(){return null===e||void 0===e?void 0:e()}}),[r,a]),n.useEffect((function(){E.current&&(E.current.autoplay=!!u)}),[u]),n.useEffect((function(){E.current&&(s?Array.isArray(s)&&s.length&&((E.current.currentRawFrame<s[0]||E.current.currentRawFrame>s[1])&&(E.current.currentRawFrame=s[0]),E.current.setSegment(s[0],s[1])):E.current.resetSegments(!0))}),[s]),n.useEffect((function(){var e=[{name:"complete",handler:c},{name:"loopComplete",handler:m},{name:"enterFrame",handler:p},{name:"segmentStart",handler:y},{name:"config_ready",handler:v},{name:"data_ready",handler:g},{name:"data_failed",handler:b},{name:"loaded_images",handler:h},{name:"DOMLoaded",handler:O},{name:"destroy",handler:w}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=E.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=E.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[c,m,p,y,v,g,b,h,O,w]),{View:i.default.createElement("div",l({style:t,ref:R},A)),play:L,stop:C,pause:T,setSpeed:x,goToAndStop:_,goToAndPlay:I,setDirection:k,playSegments:F,setSubframe:M,getDuration:N,destroy:V,animationContainerRef:R,animationLoaded:P,animationItem:E.current}};function O(e){var t=e.getBoundingClientRect(),n=t.top,r=t.height;return(window.innerHeight-n)/(window.innerHeight+r)}function w(e,t,n){var r=e.getBoundingClientRect(),o=r.top;return{x:(t-r.left)/r.width,y:(n-o)/r.height}}var A=function(e){var t=e.wrapperRef,r=e.animationItem,o=e.mode,i=e.actions;n.useEffect((function(){var e=t.current;if(e&&r&&i.length){r.stop();var n=function(){var t=null,n=function(){var n=O(e),o=i.find((function(e){var t=e.visibility;return t&&n>=t[0]&&n<=t[1]}));if(o){if("seek"===o.type&&o.visibility&&2===o.frames.length){var a=o.frames[0]+Math.ceil((n-o.visibility[0])/(o.visibility[1]-o.visibility[0])*o.frames[1]);r.goToAndStop(a-r.firstFrame-1,!0)}"loop"===o.type&&(null===t||t!==o.frames||r.isPaused)&&(r.playSegments(o.frames,!0),t=o.frames),"play"===o.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===o.type&&r.goToAndStop(o.frames[0]-r.firstFrame-1,!0)}};return document.addEventListener("scroll",n),function(){document.removeEventListener("scroll",n)}},a=function(){var t=function(t,n){var o=t,a=n;if(-1!==o&&-1!==a){var u=w(e,o,a);o=u.x,a=u.y}var l=i.find((function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?o>=t.x[0]&&o<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&o===t.x&&a===t.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var s=(o-l.position.x[0])/(l.position.x[1]-l.position.x[0]),c=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((s+c)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},n=function(e){t(e.clientX,e.clientY)},o=function(){t(-1,-1)};return e.addEventListener("mousemove",n),e.addEventListener("mouseout",o),function(){e.removeEventListener("mousemove",n),e.removeEventListener("mouseout",o)}};switch(o){case"scroll":return n();case"cursor":return a()}}}),[o,r])},j=function(e){var t=e.actions,n=e.mode,r=e.lottieObj,o=r.animationItem,i=r.View,a=r.animationContainerRef;return A({actions:t,animationItem:o,mode:n,wrapperRef:a}),i},P=["style","interactivity"],D=function(e){var t,r,o,i=e.style,a=e.interactivity,u=f(e,P),l=h(u,i),s=l.View,c=l.play,d=l.stop,m=l.pause,p=l.setSpeed,y=l.goToAndStop,v=l.goToAndPlay,g=l.setDirection,b=l.playSegments,S=l.setSubframe,O=l.getDuration,w=l.destroy,A=l.animationContainerRef,D=l.animationLoaded,E=l.animationItem;return n.useEffect((function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:m,setSpeed:p,goToAndPlay:v,goToAndStop:y,setDirection:g,playSegments:b,setSubframe:S,getDuration:O,destroy:w,animationContainerRef:A,animationLoaded:D,animationItem:E})}),[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),j({lottieObj:{View:s,play:c,stop:d,pause:m,setSpeed:p,goToAndStop:y,goToAndPlay:v,setDirection:g,playSegments:b,setSubframe:S,getDuration:O,destroy:w,animationContainerRef:A,animationLoaded:D,animationItem:E},actions:null!==(r=null===a||void 0===a?void 0:a.actions)&&void 0!==r?r:[],mode:null!==(o=null===a||void 0===a?void 0:a.mode)&&void 0!==o?o:"scroll"})};Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return o.default}}),e.default=D,e.useLottie=h,e.useLottieInteractivity=j,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(39997),n(30969))}}]);
3
- //# sourceMappingURL=5509.a196d497.chunk.js.map
@@ -1 +0,0 @@
1
- //! goToAndStop must be relative to the start of the current segment