@abtnode/blocklet-services 1.16.19-beta-7b2db880 → 1.16.19-beta-7d3ef675

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 (73) hide show
  1. package/api/index.js +3 -2
  2. package/api/routes/user.js +42 -25
  3. package/api/validators/login.js +3 -1
  4. package/build/asset-manifest.json +73 -73
  5. package/build/index.html +1 -1
  6. package/build/service-worker.js +1 -1
  7. package/build/static/css/5547.75913953.chunk.css +12 -0
  8. package/build/static/js/{1148.5ccba08e.chunk.js → 1148.d3c53aea.chunk.js} +2 -2
  9. package/build/static/js/{1233.276cf2d0.chunk.js → 1233.43c6131b.chunk.js} +3 -3
  10. package/build/static/js/{6084.30821f2c.chunk.js → 1249.ce085f29.chunk.js} +3 -3
  11. package/build/static/js/1905.656cb960.chunk.js +2 -0
  12. package/build/static/js/{2291.37b0ad3a.chunk.js → 2291.7ffdc7df.chunk.js} +2 -2
  13. package/build/static/js/2506.dd9284b6.chunk.js +2 -0
  14. package/build/static/js/2838.bc235457.chunk.js +3 -0
  15. package/build/static/js/2940.5fc76234.chunk.js +2 -0
  16. package/build/static/js/{3025.7c99c058.chunk.js → 3025.76882d0f.chunk.js} +2 -2
  17. package/build/static/js/3033.f950a32b.chunk.js +2 -0
  18. package/build/static/js/3430.28c5bd04.chunk.js +2 -0
  19. package/build/static/js/3557.bfa0e436.chunk.js +2 -0
  20. package/build/static/js/3708.937e3176.chunk.js +3 -0
  21. package/build/static/js/371.5ff795df.chunk.js +2 -0
  22. package/build/static/js/{4023.5fe8180a.chunk.js → 4023.623d31df.chunk.js} +2 -2
  23. package/build/static/js/{4319.9f120992.chunk.js → 4319.8d9e189e.chunk.js} +2 -2
  24. package/build/static/js/4461.2e764a6b.chunk.js +2 -0
  25. package/build/static/js/{4587.9a042d46.chunk.js → 4587.0d0fd3ae.chunk.js} +2 -2
  26. package/build/static/js/5070.267c5f25.chunk.js +2 -0
  27. package/build/static/js/5547.1bea60f5.chunk.js +3 -0
  28. package/build/static/js/{5683.051a03c1.chunk.js → 5683.b87f7ca2.chunk.js} +2 -2
  29. package/build/static/js/6139.4c62883c.chunk.js +2 -0
  30. package/build/static/js/6271.0a698298.chunk.js +2 -0
  31. package/build/static/js/6311.d6addc15.chunk.js +2 -0
  32. package/build/static/js/716.8cd88d8c.chunk.js +3 -0
  33. package/build/static/js/779.21153e82.chunk.js +2 -0
  34. package/build/static/js/7858.7726a169.chunk.js +2 -0
  35. package/build/static/js/7892.46f78f2c.chunk.js +2 -0
  36. package/build/static/js/8393.c6c4c762.chunk.js +2 -0
  37. package/build/static/js/{8622.6aa0a4d4.chunk.js → 8622.03f917b3.chunk.js} +2 -2
  38. package/build/static/js/8944.7444f668.chunk.js +2 -0
  39. package/build/static/js/{8641.bec13444.chunk.js → 8983.6213f391.chunk.js} +2 -2
  40. package/build/static/js/9017.369db632.chunk.js +2 -0
  41. package/build/static/js/main.81fbc388.js +3 -0
  42. package/build/static/js/{main.09227d84.js.LICENSE.txt → main.81fbc388.js.LICENSE.txt} +1 -1
  43. package/package.json +23 -23
  44. package/build/static/css/5547.e016de4c.chunk.css +0 -12
  45. package/build/static/js/2801.33d2f238.chunk.js +0 -2
  46. package/build/static/js/2838.ec459fda.chunk.js +0 -3
  47. package/build/static/js/2940.ce32ab3f.chunk.js +0 -2
  48. package/build/static/js/3033.9fe46d7f.chunk.js +0 -2
  49. package/build/static/js/3076.28658ffc.chunk.js +0 -2
  50. package/build/static/js/3430.dc830483.chunk.js +0 -2
  51. package/build/static/js/3708.7e2ad66b.chunk.js +0 -3
  52. package/build/static/js/4461.f9a883d3.chunk.js +0 -2
  53. package/build/static/js/5070.31a74ba7.chunk.js +0 -2
  54. package/build/static/js/5434.523d071d.chunk.js +0 -2
  55. package/build/static/js/5547.42b98889.chunk.js +0 -3
  56. package/build/static/js/6032.1001afd3.chunk.js +0 -2
  57. package/build/static/js/6139.161b2e7f.chunk.js +0 -2
  58. package/build/static/js/716.e68425d7.chunk.js +0 -3
  59. package/build/static/js/779.73350f02.chunk.js +0 -2
  60. package/build/static/js/7858.52930f63.chunk.js +0 -2
  61. package/build/static/js/8181.bc510ea3.chunk.js +0 -2
  62. package/build/static/js/8393.ea7ef05d.chunk.js +0 -2
  63. package/build/static/js/840.5bc210dd.chunk.js +0 -2
  64. package/build/static/js/8944.5b8c231c.chunk.js +0 -2
  65. package/build/static/js/9017.56c20b17.chunk.js +0 -2
  66. package/build/static/js/9314.f0add972.chunk.js +0 -2
  67. package/build/static/js/main.09227d84.js +0 -3
  68. /package/build/static/js/{1233.276cf2d0.chunk.js.LICENSE.txt → 1233.43c6131b.chunk.js.LICENSE.txt} +0 -0
  69. /package/build/static/js/{6084.30821f2c.chunk.js.LICENSE.txt → 1249.ce085f29.chunk.js.LICENSE.txt} +0 -0
  70. /package/build/static/js/{2838.ec459fda.chunk.js.LICENSE.txt → 2838.bc235457.chunk.js.LICENSE.txt} +0 -0
  71. /package/build/static/js/{3708.7e2ad66b.chunk.js.LICENSE.txt → 3708.937e3176.chunk.js.LICENSE.txt} +0 -0
  72. /package/build/static/js/{5547.42b98889.chunk.js.LICENSE.txt → 5547.1bea60f5.chunk.js.LICENSE.txt} +0 -0
  73. /package/build/static/js/{716.e68425d7.chunk.js.LICENSE.txt → 716.8cd88d8c.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[1148],{41148:function(e,n,t){t.r(n);var r,o,i=t(71171),a=t(32723),c=t(34795),s=t(96234),l=t(30969),u=t(54164),p=t(16380),d=t(26328),f=t(26022),h=t(20244),v=t(94308),m=t(82774),g=t(38361),x=t(33359),b=t(20003),w=t(29996),j=t(99574),y=t(4485),Z=t(38507),k=t(99042),P=t(37574);var O=p.Z.div(r||(r=(0,i.Z)(["\n position: fixed;\n top: 16px;\n right: 16px;\n z-index: 9999;\n"]))),z=p.Z.div(o||(o=(0,i.Z)(["\n width: 100vw;\n height: 100vh;\n min-height: 100vh;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background-color: #f6f8fa;\n"])));n.default=function(){var e,n,t,r,o,i=(0,f.PE)(),p=i.t,C=i.locale,S=(0,y.Tt)(),M=S.api,T=S.session,A=new URL(window.location.href).searchParams,D=(0,l.useState)(!1),E=(0,s.Z)(D,2),L=E[0],_=E[1],I=A.get("transferId"),N=null===(e=window)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.appId,R=(0,l.useCallback)((0,c.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:return e.next=2,k.Z.get("/blocklet/transfer",{params:{transferId:I}});case 2:return n=e.sent,t=n.data,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)}))),[I]),H=(0,u.Z)(R),B=(0,l.useCallback)(function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n,t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&((0,Z.ZB)(t(n.sessionToken)),(0,Z.zI)(t(n.refreshToken))),e.next=3,T.refresh();case 3:_(!0);case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[]);return H.loading?(0,P.jsx)(v.Z,{}):H.error?(0,P.jsx)(z,{children:(0,P.jsx)(b.Z,{status:"404",title:null===(t=H.error)||void 0===t||null===(r=t.response)||void 0===r?void 0:r.data,description:""})}):(o="success"===H.data.status||L?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O,{children:(0,P.jsx)(j.Z,{SessionContext:y.B3})}),(0,P.jsx)(g.Z,{pt:1,color:"success.main",children:(0,P.jsx)(m.Z,{style:{fontSize:80}})}),(0,P.jsx)(x.Z,{my:4,variant:"h5",children:p("team.transferApp.successTitle")}),(0,P.jsx)("a",{href:"".concat(h.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin"),children:(0,P.jsx)(w.Z,{variant:"contained",children:p("team.transferApp.visitDashboard")})})]}):(0,P.jsx)(d.Z,{action:"receive-transfer-app-owner",checkFn:M.get,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:B,onClose:function(){},locale:C,messages:{title:p("team.transferApp.receiveDialog.title"),scan:p("team.transferApp.receiveDialog.scan"),confirm:p("team.transferApp.receiveDialog.confirm"),success:p("team.transferApp.receiveDialog.success")},extraParams:{transferId:I,appDid:N}}),(0,P.jsx)(z,{children:o}))}},99574:function(e,n,t){t.d(n,{Z:function(){return x}});var r,o=t(71171),i=t(33028),a=t(30969),c=t(16380),s=t(24974),l=t.n(s),u=t(94551),p=t(30734),d=t(87843),f=t(26681),h=t(26022),v=t(46513),m=t(91077),g=t(37574);function x(e){var n=e.SessionContext,t=e.extraItems,r=e.showLocale,o=e.showHelper,c=e.showSessionManager,s=e.sessionManagerProps,l=(0,a.useContext)(n).session,x=(0,a.useContext)(h.RD).locale,w=(0,p.useLocation)(),j={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}};return(0,g.jsxs)(b,{children:[t.map((function(e,n){return(0,a.cloneElement)(e,{key:n})})),r&&(0,g.jsx)(f.Z,{"data-cy":"locale-addon",icon:v.Z,size:23,showText:!1,className:"locale-addon"}),o&&(0,g.jsx)(u.Z,{onClick:function(){var e=w.pathname,n={};e.indexOf("/store")>-1?n=j["/store"]:j[e]&&(n=j[e]),window.open("".concat(n.endpoint||"https://developer.blocklet.io/docs","/").concat(x).concat(n.path||""),"_blank")},children:(0,g.jsx)(m.Z,{})}),c&&(0,g.jsx)(d.Z,(0,i.Z)((0,i.Z)({locale:x,session:l,size:24,showRole:!0},s),{},{showManageBlocklet:!1}))]})}x.propTypes={SessionContext:l().object.isRequired,webWalletUrl:l().string,extraItems:l().array,showLocale:l().bool,showSessionManager:l().bool,showHelper:l().bool,sessionManagerProps:l().object},x.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};var b=c.Z.div(r||(r=(0,o.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n .MuiIconButton-root svg {\n width: 26px;\n height: 26px;\n }\n\n .user-addon {\n .user-avatar {\n width: 28px;\n border-radius: 14px;\n height: auto;\n }\n }\n\n "," {\n > button,\n > a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}))},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 a(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){c(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 c(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 s=function(e){return(0,o.jsx)("svg",a(a({},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"})}))};s.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},s.displayName="globe";var l=s;n.Z=l},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 a(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){c(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 c(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 s=function(e){return(0,o.jsxs)("svg",a(a({},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"})]}))};s.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},s.displayName="question-mark-circle";var l=s;n.Z=l},26681:function(e,n,t){t.d(n,{Z:function(){return z}});var r,o,i=t(71171),a=t(33028),c=t(96234),s=t(59740),l=t(30969),u=t(24974),p=t.n(u),d=t(72097),f=t(94551),h=t(38361),v=t(33359),m=t(38589),g=t(23484),x=t(2689),b=t(45761),w=t(38996),j=t(46513),y=t(79216),Z=t(26022),k=t(55581),P=t(37574),O=["showText","popperProps","popperType","icon","size"];function z(e){var n,t,r,o=e.showText,i=e.popperProps,u=e.popperType,p=e.icon,b=e.size,y=(0,s.Z)(e,O),z=(0,l.useContext)(Z.RD),M=z.locale,T=z.changeLocale,A=z.languages,D=(0,l.useRef)(null),E=(0,l.useState)(!1),L=(0,c.Z)(E,2),_=L[0],I=L[1],N=(0,k.Fg)(),R="dark"===(null===N||void 0===N||null===(n=N.palette)||void 0===n?void 0:n.mode),H=o?d.Z:f.Z,B="hover"===u?{onMouseEnter:function(){I(!0)},onMouseLeave:function(){I(!1)}}:{onClick:function(){I(!_)}},F=(0,l.useMemo)((function(){return p?(0,P.jsx)(p,{}):(0,P.jsx)(j.Z,{style:{width:"auto",height:b,color:N.palette.text.secondary}})}),[p,null===N||void 0===N||null===(t=N.palette)||void 0===t||null===(r=t.text)||void 0===r?void 0:r.secondary,b]);return(0,P.jsxs)(C,(0,a.Z)((0,a.Z)((0,a.Z)({component:"div",dark:R,theme:N},y),B),{},{children:[(0,P.jsx)(H,{ref:D,className:"trigger",role:"button","aria-label":"Locale selector button",children:(0,P.jsxs)(h.Z,{display:"flex",alignItems:"center",children:[F,o?(0,P.jsx)(v.Z,{component:"strong",className:"trigger-text",children:A.find((function(e){return e.code===M})).name}):""]})}),(0,P.jsx)(S,(0,a.Z)((0,a.Z)({open:_,anchorEl:D.current},i),{},{disablePortal:!0,children:(0,P.jsx)("div",{className:"locales",children:(0,P.jsx)(m.d,{onClickAway:function(e){var n;null!==(n=D.current)&&void 0!==n&&n.contains(e.target)||I(!1)},children:(0,P.jsx)(g.Z,{children:A.map((function(n){var t=n.code,r=n.name;return(0,P.jsxs)(x.Z,{className:"locale-item",onClick:function(){return T(n=t),I(!1),void("function"===typeof e.onChange&&e.onChange(n));var n},children:[(0,P.jsx)(w.default,{className:t===M?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),r]},t)}))})})})}))]}))}z.propTypes={size:p().number,showText:p().bool,popperProps:p().object,onChange:p().func,popperType:p().oneOf(["hover","click"]),icon:p().any},z.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var C=(0,k.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(r||(r=(0,i.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,y.Lq)(e)}),(function(e){return(0,y.Vu)(e)}),(function(e){return(0,y.Lq)(e)})),S=(0,k.zo)(b.Z)(o||(o=(0,i.Z)(["\n z-index: ",";\n"])),(function(e){return e.theme.zIndex.tooltip+10}))},82774:function(e,n,t){var r=t(71600);n.Z=void 0;var o=r(t(48035)),i=t(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=a}}]);
2
- //# sourceMappingURL=1148.5ccba08e.chunk.js.map
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[1148],{41148:function(e,n,t){t.r(n);var r,o,i=t(71171),a=t(32723),c=t(34795),s=t(96234),l=t(30969),u=t(54164),p=t(16380),d=t(26328),f=t(26022),h=t(20244),v=t(94308),m=t(32901),g=t(38361),x=t(33359),b=t(20003),w=t(29996),j=t(99574),y=t(4485),Z=t(38507),k=t(99042),P=t(37574);var O=p.Z.div(r||(r=(0,i.Z)(["\n position: fixed;\n top: 16px;\n right: 16px;\n z-index: 9999;\n"]))),z=p.Z.div(o||(o=(0,i.Z)(["\n width: 100vw;\n height: 100vh;\n min-height: 100vh;\n overflow: auto;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background-color: #f6f8fa;\n"])));n.default=function(){var e,n,t,r,o,i=(0,f.PE)(),p=i.t,C=i.locale,S=(0,y.Tt)(),M=S.api,T=S.session,A=new URL(window.location.href).searchParams,D=(0,l.useState)(!1),E=(0,s.Z)(D,2),L=E[0],_=E[1],I=A.get("transferId"),N=null===(e=window)||void 0===e||null===(n=e.env)||void 0===n?void 0:n.appId,R=(0,l.useCallback)((0,c.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:return e.next=2,k.Z.get("/blocklet/transfer",{params:{transferId:I}});case 2:return n=e.sent,t=n.data,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)}))),[I]),H=(0,u.Z)(R),B=(0,l.useCallback)(function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n,t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&((0,Z.ZB)(t(n.sessionToken)),(0,Z.zI)(t(n.refreshToken))),e.next=3,T.refresh();case 3:_(!0);case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[]);return H.loading?(0,P.jsx)(v.Z,{}):H.error?(0,P.jsx)(z,{children:(0,P.jsx)(b.Z,{status:"404",title:null===(t=H.error)||void 0===t||null===(r=t.response)||void 0===r?void 0:r.data,description:""})}):(o="success"===H.data.status||L?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O,{children:(0,P.jsx)(j.Z,{SessionContext:y.B3})}),(0,P.jsx)(g.Z,{pt:1,color:"success.main",children:(0,P.jsx)(m.Z,{style:{fontSize:80}})}),(0,P.jsx)(x.Z,{my:4,variant:"h5",children:p("team.transferApp.successTitle")}),(0,P.jsx)("a",{href:"".concat(h.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin"),children:(0,P.jsx)(w.Z,{variant:"contained",children:p("team.transferApp.visitDashboard")})})]}):(0,P.jsx)(d.Z,{action:"receive-transfer-app-owner",checkFn:M.get,forceConnected:!1,autoConnect:!1,checkTimeout:6e5,onSuccess:B,onClose:function(){},locale:C,messages:{title:p("team.transferApp.receiveDialog.title"),scan:p("team.transferApp.receiveDialog.scan"),confirm:p("team.transferApp.receiveDialog.confirm"),success:p("team.transferApp.receiveDialog.success")},extraParams:{transferId:I,appDid:N}}),(0,P.jsx)(z,{children:o}))}},99574:function(e,n,t){t.d(n,{Z:function(){return x}});var r,o=t(71171),i=t(33028),a=t(30969),c=t(16380),s=t(24974),l=t.n(s),u=t(94551),p=t(30734),d=t(33426),f=t(26681),h=t(26022),v=t(46513),m=t(91077),g=t(37574);function x(e){var n=e.SessionContext,t=e.extraItems,r=e.showLocale,o=e.showHelper,c=e.showSessionManager,s=e.sessionManagerProps,l=(0,a.useContext)(n).session,x=(0,a.useContext)(h.RD).locale,w=(0,p.useLocation)(),j={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}};return(0,g.jsxs)(b,{children:[t.map((function(e,n){return(0,a.cloneElement)(e,{key:n})})),r&&(0,g.jsx)(f.Z,{"data-cy":"locale-addon",icon:v.Z,size:23,showText:!1,className:"locale-addon"}),o&&(0,g.jsx)(u.Z,{onClick:function(){var e=w.pathname,n={};e.indexOf("/store")>-1?n=j["/store"]:j[e]&&(n=j[e]),window.open("".concat(n.endpoint||"https://developer.blocklet.io/docs","/").concat(x).concat(n.path||""),"_blank")},children:(0,g.jsx)(m.Z,{})}),c&&(0,g.jsx)(d.Z,(0,i.Z)((0,i.Z)({locale:x,session:l,size:24,showRole:!0},s),{},{showManageBlocklet:!1}))]})}x.propTypes={SessionContext:l().object.isRequired,webWalletUrl:l().string,extraItems:l().array,showLocale:l().bool,showSessionManager:l().bool,showHelper:l().bool,sessionManagerProps:l().object},x.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};var b=c.Z.div(r||(r=(0,o.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n .MuiIconButton-root svg {\n width: 26px;\n height: 26px;\n }\n\n .user-addon {\n .user-avatar {\n width: 28px;\n border-radius: 14px;\n height: auto;\n }\n }\n\n "," {\n > button,\n > a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}))},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 a(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){c(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 c(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 s=function(e){return(0,o.jsx)("svg",a(a({},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"})}))};s.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},s.displayName="globe";var l=s;n.Z=l},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 a(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){c(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 c(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 s=function(e){return(0,o.jsxs)("svg",a(a({},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"})]}))};s.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},s.displayName="question-mark-circle";var l=s;n.Z=l},26681:function(e,n,t){t.d(n,{Z:function(){return z}});var r,o,i=t(71171),a=t(33028),c=t(96234),s=t(59740),l=t(30969),u=t(24974),p=t.n(u),d=t(72097),f=t(94551),h=t(38361),v=t(33359),m=t(38589),g=t(23484),x=t(2689),b=t(45761),w=t(38996),j=t(46513),y=t(79216),Z=t(26022),k=t(55581),P=t(37574),O=["showText","popperProps","popperType","icon","size"];function z(e){var n,t,r,o=e.showText,i=e.popperProps,u=e.popperType,p=e.icon,b=e.size,y=(0,s.Z)(e,O),z=(0,l.useContext)(Z.RD),M=z.locale,T=z.changeLocale,A=z.languages,D=(0,l.useRef)(null),E=(0,l.useState)(!1),L=(0,c.Z)(E,2),_=L[0],I=L[1],N=(0,k.Fg)(),R="dark"===(null===N||void 0===N||null===(n=N.palette)||void 0===n?void 0:n.mode),H=o?d.Z:f.Z,B="hover"===u?{onMouseEnter:function(){I(!0)},onMouseLeave:function(){I(!1)}}:{onClick:function(){I(!_)}},F=(0,l.useMemo)((function(){return p?(0,P.jsx)(p,{}):(0,P.jsx)(j.Z,{style:{width:"auto",height:b,color:N.palette.text.secondary}})}),[p,null===N||void 0===N||null===(t=N.palette)||void 0===t||null===(r=t.text)||void 0===r?void 0:r.secondary,b]);return(0,P.jsxs)(C,(0,a.Z)((0,a.Z)((0,a.Z)({component:"div",dark:R,theme:N},y),B),{},{children:[(0,P.jsx)(H,{ref:D,className:"trigger",role:"button","aria-label":"Locale selector button",children:(0,P.jsxs)(h.Z,{display:"flex",alignItems:"center",children:[F,o?(0,P.jsx)(v.Z,{component:"strong",className:"trigger-text",children:A.find((function(e){return e.code===M})).name}):""]})}),(0,P.jsx)(S,(0,a.Z)((0,a.Z)({open:_,anchorEl:D.current},i),{},{disablePortal:!0,children:(0,P.jsx)("div",{className:"locales",children:(0,P.jsx)(m.d,{onClickAway:function(e){var n;null!==(n=D.current)&&void 0!==n&&n.contains(e.target)||I(!1)},children:(0,P.jsx)(g.Z,{children:A.map((function(n){var t=n.code,r=n.name;return(0,P.jsxs)(x.Z,{className:"locale-item",onClick:function(){return T(n=t),I(!1),void("function"===typeof e.onChange&&e.onChange(n));var n},children:[(0,P.jsx)(w.default,{className:t===M?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),r]},t)}))})})})}))]}))}z.propTypes={size:p().number,showText:p().bool,popperProps:p().object,onChange:p().func,popperType:p().oneOf(["hover","click"]),icon:p().any},z.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var C=(0,k.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(r||(r=(0,i.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,y.Lq)(e)}),(function(e){return(0,y.Vu)(e)}),(function(e){return(0,y.Lq)(e)})),S=(0,k.zo)(b.Z)(o||(o=(0,i.Z)(["\n z-index: ",";\n"])),(function(e){return e.theme.zIndex.tooltip+10}))},32901:function(e,n,t){var r=t(71600);n.Z=void 0;var o=r(t(48035)),i=t(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");n.Z=a}}]);
2
+ //# sourceMappingURL=1148.d3c53aea.chunk.js.map