Bee Dashboard
\ No newline at end of file
+Bee Dashboard
\ No newline at end of file
diff --git a/static/dashboard/static/js/main.8fd2d334.chunk.js b/static/dashboard/static/js/main.8fd2d334.chunk.js
new file mode 100644
index 0000000..f7062d1
--- /dev/null
+++ b/static/dashboard/static/js/main.8fd2d334.chunk.js
@@ -0,0 +1,2 @@
+(this["webpackJsonp@ethersphere/bee-dashboard"]=this["webpackJsonp@ethersphere/bee-dashboard"]||[]).push([[0],{25:function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"k",(function(){return b})),n.d(t,"h",(function(){return j})),n.d(t,"d",(function(){return h})),n.d(t,"l",(function(){return p})),n.d(t,"e",(function(){return O})),n.d(t,"i",(function(){return f})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"j",(function(){return v}));var a=n(9),r=n.n(a),c=n(19),i=n(38),o=n(31);function s(e){return i.BigNumber.isBigNumber(e)&&e.isInteger()||"bigint"===typeof e}function l(e){if(i.BigNumber.isBigNumber(e))return e;if("string"===typeof e)return new i.BigNumber(e);if("bigint"===typeof e)return new i.BigNumber(e.toString());if("number"===typeof e)return new i.BigNumber(e);throw new TypeError("Not a BigNumber or BigNumber convertible value. Type: ".concat(typeof e," value: ").concat(e))}function u(e){return d.apply(this,arguments)}function d(){return(d=Object(c.a)(r.a.mark((function e(t){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout((function(){e()}),t)}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){var t,n={fulfilled:(t=e).filter((function(e){return"fulfilled"===e.status})),rejected:t.filter((function(e){return"rejected"===e.status}))};return{fulfilled:n.fulfilled.map((function(e){return e.value})),rejected:n.rejected.map((function(e){return e.reason?String(e.reason):"Unknown error"}))}}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return new Promise(function(){var a=Object(c.a)(r.a.mark((function a(c,i){var o,s;return r.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:o=0;case 1:if(!(o>t/4).toString(16)}))}function O(e){return(e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).replaceAll("_"," ")}function f(e){var t=e;return t<120?"".concat(e," seconds"):(t/=60)<120?"".concat(Math.round(t)," minutes"):(t/=60)<48?"".concat(Math.round(t)," hours"):(t/=24)<14?"".concat(Math.round(t)," days"):(t/=7)<52?"".concat(Math.round(t)," weeks"):"".concat((t/=52).toFixed(1)," years")}function x(e){return 4096*Math.pow(2,e)}function m(e,t){return 5*e/t}function g(e,t){return new o.a(t*BigInt(Math.pow(2,e)))}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"[\u2026]";return e.length<=2*t+n.length?e:"".concat(e.slice(0,t)).concat(n).concat(e.slice(-t))}},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(113),r=n(170),c=n(38),i=n(25),o=[18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0],s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;Object(a.a)(this,e),this.amount=void 0,this.decimals=void 0;var r=Object(i.g)(t);if(!Object(i.f)(r)||!o.includes(n))throw new TypeError("Not a valid token values");this.amount=r,this.decimals=n}return Object(r.a)(e,[{key:"toBigInt",get:function(){return BigInt(this.amount.toFixed(0))}},{key:"toString",get:function(){return this.amount.toFixed(0)}},{key:"toBigNumber",get:function(){return new c.BigNumber(this.amount)}},{key:"toDecimal",get:function(){return this.amount.dividedBy(new c.BigNumber(10).pow(this.decimals))}},{key:"toFixedDecimal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:7;return this.toDecimal.toFixed(e)}},{key:"toSignificantDigits",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,t=this.toDecimal.toFixed(16),n=-1,a=!1,r=0;r1&&void 0!==arguments[1]?arguments[1]:16,a=Object(i.g)(t),r=a.multipliedBy(new c.BigNumber(10).pow(n));return new e(r,n)}}]),e}()},333:function(e){e.exports=JSON.parse('{"a":{"node":">=12.0.0","npm":">=6.0.0","bee":">=0.6.0"}}')},383:function(e,t,n){},388:function(e,t,n){},40:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return m}));var a=n(9),r=n.n(a),c=n(19),i=n(115),o=n.n(i),s=n(25);function l(){var t=new Uint8Array(32);return crypto.getRandomValues(t),new o.a(e.from(t))}function u(e,t){var n=e.findIndex((function(e){return e.uuid===t.uuid}));-1!==n&&e.splice(n,1),e.unshift(t),localStorage.setItem("feeds",JSON.stringify(e))}function d(e){localStorage.setItem("feeds",JSON.stringify(e))}function b(e,t,n,a){return j.apply(this,arguments)}function j(){return(j=Object(c.a)(r.a.mark((function e(t,n,a,c){var i;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("V3"!==n||c){e.next=2;break}throw Error("V3 passwords require password");case 2:if("PRIVATE_KEY"!==n){e.next=6;break}e.t0=t.getPrivateKeyString(),e.next=9;break;case 6:return e.next=8,t.toV3String(c);case 8:e.t0=e.sent;case 9:return i=e.t0,e.abrupt("return",{uuid:Object(s.l)(),name:a,type:c?"V3":"PRIVATE_KEY",address:t.getAddressString(),identity:i});case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,t){return p.apply(this,arguments)}function p(){return(p=Object(c.a)(r.a.mark((function e(t,n){var a,c,i,o;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(64!==n.length){e.next=5;break}return e.next=3,f("PRIVATE_KEY",n);case 3:return a=e.sent,e.abrupt("return",{uuid:Object(s.l)(),name:t,type:"PRIVATE_KEY",identity:n,address:a.getAddressString()});case 5:if(66!==n.length||!n.toLowerCase().startsWith("0x")){e.next=10;break}return e.next=8,f("PRIVATE_KEY",n.slice(2));case 8:return c=e.sent,e.abrupt("return",{uuid:Object(s.l)(),name:t,type:"PRIVATE_KEY",identity:n,address:c.getAddressString()});case 10:return e.prev=10,i=JSON.parse(n),o=i.address,e.abrupt("return",{uuid:Object(s.l)(),name:t,type:"V3",identity:n,address:o});case 15:return e.prev=15,e.t0=e.catch(10),e.abrupt("return",null);case 18:case"end":return e.stop()}}),e,null,[[10,15]])})))).apply(this,arguments)}function O(e,t){return f(e.type,e.identity,t)}function f(e,t,n){return x.apply(this,arguments)}function x(){return(x=Object(c.a)(r.a.mark((function t(n,a,c){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("PRIVATE_KEY"!==n){t.next=4;break}t.t0=o.a.fromPrivateKey(e.from(v(a),"hex")),t.next=7;break;case 4:return t.next=6,o.a.fromV3(a,c);case 6:t.t0=t.sent;case 7:return t.abrupt("return",t.t0);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(e,t,n,a,r){return g.apply(this,arguments)}function g(){return(g=Object(c.a)(r.a.mark((function e(t,n,a,c,i){var o,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O(n,i);case 2:if(o=e.sent,n.feedHash){e.next=7;break}return e.next=6,t.createFeedManifest(c,"sequence","00".repeat(32),o.getAddressString());case 6:n.feedHash=e.sent;case 7:return s=t.makeFeedWriter("sequence","00".repeat(32),o.getPrivateKeyString()),e.next=10,s.upload(c,a);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e){return e.toLowerCase().startsWith("0x")?e.slice(2):e}}).call(this,n(17).Buffer)},457:function(e,t){},459:function(e,t){},46:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var a=n(113);function r(t){return"object"===typeof e&&Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BEE_HOST:"http://localhost:1633",REACT_APP_BEE_DEBUG_HOST:"http://localhost:1635",REACT_APP_BEE_DOCS_HOST:"https://docs.ethswarm.org/docs/",REACT_APP_BEE_DISCORD_HOST:"https://discord.gg/eKr9XPv7",REACT_APP_BLOCKCHAIN_EXPLORER_URL:"https://blockscout.com/xdai/mainnet",REACT_APP_BEE_GITHUB_REPO_URL:"https://api.github.com/repos/ethersphere/bee"})[t]}var c=new function e(){Object(a.a)(this,e),this.BEE_API_HOST=void 0,this.BEE_DEBUG_API_HOST=void 0,this.BLOCKCHAIN_EXPLORER_URL=void 0,this.BEE_DOCS_HOST=void 0,this.BEE_DISCORD_HOST=void 0,this.GITHUB_REPO_URL=void 0,this.BEE_API_HOST=sessionStorage.getItem("api_host")||r("REACT_APP_BEE_HOST")||"http://localhost:1633",this.BEE_DEBUG_API_HOST=sessionStorage.getItem("debug_api_host")||r("REACT_APP_BEE_DEBUG_HOST")||"http://localhost:1635",this.BLOCKCHAIN_EXPLORER_URL=r("REACT_APP_BLOCKCHAIN_EXPLORER_URL")||"https://blockscout.com/xdai/mainnet",this.BEE_DOCS_HOST=r("REACT_APP_BEE_DOCS_HOST")||"https://docs.ethswarm.org/docs/",this.BEE_DISCORD_HOST=r("REACT_APP_BEE_DISCORD_HOST")||"https://discord.gg/eKr9XPv7",this.GITHUB_REPO_URL=r("REACT_APP_BEE_GITHUB_REPO_URL")||"https://api.github.com/repos/ethersphere/bee"};t.b=c}).call(this,n(21))},471:function(e,t){},473:function(e,t){},499:function(e,t){},500:function(e,t){},505:function(e,t){},507:function(e,t){},514:function(e,t){},532:function(e,t){},548:function(e,t){},553:function(e,t){},561:function(e,t){},563:function(e,t){},802:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),c=n(20),i=n.n(c),o=(n(383),n(911)),s=n(910),l=n(22),u=n(35),d=(n(388),n(113)),b=n(170),j=n(354),h=n(353),p=n(1),O=function(e){Object(j.a)(n,e);var t=Object(h.a)(n);function n(e){var a;return Object(d.a)(this,n),(a=t.call(this,e)).state={error:null},a}return Object(b.a)(n,[{key:"componentDidCatch",value:function(e,t){console.error({error:e,errorInfo:t})}},{key:"render",value:function(){return this.state.error?Object(p.jsxs)("h1",{children:["Something went wrong. Error: ",this.state.error.message]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),n}(a.Component),f=n(6),x=n(807),m=n(363),g=n(914),v=n(851),y=n(806),w=n(850),S=n(171),k=n.n(S),C=n(9),E=n.n(C),A=n(19),P=n(37),T=n(132),B=n.n(T),N=n(333),D=n(334),I=n.n(D),_=n(46),L=n(31),U=n(72),R={apiUrl:_.a.BEE_API_HOST,apiDebugUrl:_.a.BEE_DEBUG_API_HOST,beeApi:null,beeDebugApi:null,setApiUrl:function(){},setDebugApiUrl:function(){},lockedApiSettings:!1},F=Object(a.createContext)(R);F.Consumer;function W(e){var t=e.children,n=e.beeApiUrl,r=e.beeDebugApiUrl,c=e.lockedApiSettings,i=Object(a.useState)(R.apiUrl),o=Object(f.a)(i,2),s=o[0],l=o[1],u=Object(a.useState)(R.apiDebugUrl),d=Object(f.a)(u,2),b=d[0],j=d[1],h=Object(a.useState)(null),O=Object(f.a)(h,2),x=O[0],m=O[1],g=Object(a.useState)(null),v=Object(f.a)(g,2),y=v[0],w=v[1],S=Object(a.useState)(Boolean(c)),k=Object(f.a)(S,1)[0],C=n||s,E=r||b;return Object(a.useEffect)((function(){try{m(new U.Bee(C)),sessionStorage.setItem("api_host",C)}catch(e){m(null)}}),[C]),Object(a.useEffect)((function(){try{w(new U.BeeDebug(E)),sessionStorage.setItem("debug_api_host",E)}catch(e){w(null)}}),[E]),Object(p.jsx)(F.Provider,{value:{apiUrl:C,apiDebugUrl:E,beeApi:x,beeDebugApi:y,setApiUrl:l,setDebugApiUrl:j,lockedApiSettings:k},children:t})}var H=window.location.search.includes("devMode=1"),M={status:{all:!1,version:!1,blockchainConnection:!1,debugApiConnection:!1,apiConnection:!1,topology:!1,chequebook:!1},latestPublishedVersion:void 0,latestUserVersion:void 0,latestUserVersionExact:void 0,isLatestBeeVersion:!1,latestBeeVersionUrl:"https://github.com/ethersphere/bee/releases/latest",error:null,apiHealth:!1,debugApiHealth:null,nodeAddresses:null,nodeInfo:null,topology:null,chequebookAddress:null,peers:null,chequebookBalance:null,peerBalances:null,peerCheques:null,settlements:null,chainState:null,latestBeeRelease:null,isLoading:!0,isRefreshing:!1,lastUpdate:null,start:function(){},stop:function(){},refresh:function(){return Promise.reject()}},V=Object(a.createContext)(M);V.Consumer;function z(e,t,n,a,r,c,i,o){var s,l=H||Boolean(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BEE_HOST:"http://localhost:1633",REACT_APP_BEE_DEBUG_HOST:"http://localhost:1635",REACT_APP_BEE_DOCS_HOST:"https://docs.ethswarm.org/docs/",REACT_APP_BEE_DISCORD_HOST:"https://discord.gg/eKr9XPv7",REACT_APP_BLOCKCHAIN_EXPLORER_URL:"https://blockscout.com/xdai/mainnet",REACT_APP_BEE_GITHUB_REPO_URL:"https://api.github.com/repos/ethersphere/bee"}).REACT_APP_DEV_MODE)||"dev"===(null===n||void 0===n?void 0:n.beeMode),u={version:Boolean(e&&B.a.satisfies(e.version,N.a.bee,{includePrerelease:!0})),blockchainConnection:Boolean(null===t||void 0===t?void 0:t.ethereum),debugApiConnection:Boolean("ok"===(null===e||void 0===e?void 0:e.status)),apiConnection:a,topology:Boolean((null===r||void 0===r?void 0:r.connected)&&(null===r||void 0===r?void 0:r.connected)>0)||l,chequebook:Boolean(null===c||void 0===c?void 0:c.chequebookAddress)&&null!==i&&(null===i||void 0===i?void 0:i.totalBalance.toBigNumber.isGreaterThan(0))||l||(s=null===n||void 0===n?void 0:n.beeMode,"ultra-light"===s)};return Object(P.a)(Object(P.a)({},u),{},{all:!o&&Object.values(u).every((function(e){return e}))})}function q(e){var t,n,r=e.children,c=Object(a.useContext)(F),i=c.beeApi,o=c.beeDebugApi,s=Object(a.useState)(!1),l=Object(f.a)(s,2),u=l[0],d=l[1],b=Object(a.useState)(null),j=Object(f.a)(b,2),h=j[0],O=j[1],x=Object(a.useState)(null),m=Object(f.a)(x,2),g=m[0],v=m[1],y=Object(a.useState)(null),w=Object(f.a)(y,2),S=w[0],k=w[1],C=Object(a.useState)(null),P=Object(f.a)(C,2),T=P[0],N=P[1],D=Object(a.useState)(null),U=Object(f.a)(D,2),R=U[0],W=U[1],H=Object(a.useState)(null),q=Object(f.a)(H,2),Y=q[0],G=q[1],Z=Object(a.useState)(null),K=Object(f.a)(Z,2),J=K[0],X=K[1],$=Object(a.useState)(null),Q=Object(f.a)($,2),ee=Q[0],te=Q[1],ne=Object(a.useState)(null),ae=Object(f.a)(ne,2),re=ae[0],ce=ae[1],ie=Object(a.useState)(null),oe=Object(f.a)(ie,2),se=oe[0],le=oe[1],ue=Object(a.useState)(null),de=Object(f.a)(ue,2),be=de[0],je=de[1],he=function(){var e=Object(a.useState)(null),t=Object(f.a)(e,2),n=t[0],r=t[1],c=Object(a.useState)(!1),i=Object(f.a)(c,2),o=i[0],s=i[1],l=Object(a.useState)(null),u=Object(f.a)(l,2),d=u[0],b=u[1];return Object(a.useEffect)((function(){I.a.get("".concat(_.a.GITHUB_REPO_URL,"/releases/latest")).then((function(e){r(e.data)})).catch((function(e){b(e)})).finally((function(){s(!1)}))}),[]),{latestBeeRelease:n,isLoadingLatestBeeRelease:o,error:d}}(),pe=he.latestBeeRelease,Oe=Object(a.useState)(M.error),fe=Object(f.a)(Oe,2),xe=fe[0],me=fe[1],ge=Object(a.useState)(M.isLoading),ve=Object(f.a)(ge,2),ye=ve[0],we=ve[1],Se=Object(a.useState)(M.isRefreshing),ke=Object(f.a)(Se,2),Ce=ke[0],Ee=ke[1],Ae=Object(a.useState)(M.lastUpdate),Pe=Object(f.a)(Ae,2),Te=Pe[0],Be=Pe[1],Ne=Object(a.useState)(3e4),De=Object(f.a)(Ne,2),Ie=De[0],_e=De[1],Le=null===(t=B.a.coerce(null===pe||void 0===pe?void 0:pe.name))||void 0===t?void 0:t.version,Ue=null===(n=B.a.coerce(null===h||void 0===h?void 0:h.version))||void 0===n?void 0:n.version,Re=null===h||void 0===h?void 0:h.version;Object(a.useEffect)((function(){we(!0),d(!1),Fe()}),[i]),Object(a.useEffect)((function(){we(!0),O(null),v(null),N(null),k(null),G(null),W(null),X(null),te(null),ce(null),le(null),je(null),Fe()}),[o]);var Fe=function(){var e=Object(A.a)(E.a.mark((function e(){var t,n,a,r;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ce){e.next=2;break}return e.abrupt("return");case 2:if(i&&o){e.next=5;break}return we(!1),e.abrupt("return");case 5:return e.prev=5,Ee(!0),me(null),t=function(){var e=Object(A.a)(E.a.mark((function e(){var t,n,a;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.getChequebookBalance();case 2:return t=e.sent,n=t.totalBalance,a=t.availableBalance,e.abrupt("return",{totalBalance:new L.a(n),availableBalance:new L.a(a)});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){var e=Object(A.a)(E.a.mark((function e(){var t,n;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.getAllBalances();case 2:return t=e.sent,n=t.balances,e.abrupt("return",n.map((function(e){var t=e.peer,n=e.balance;return{peer:t,balance:new L.a(n)}})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=Object(A.a)(E.a.mark((function e(){var t,n,a,r;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.getAllSettlements();case 2:return t=e.sent,n=t.totalReceived,a=t.settlements,r=t.totalSent,e.abrupt("return",{totalReceived:new L.a(n),totalSent:new L.a(r),settlements:a.map((function(e){var t=e.peer,n=e.received,a=e.sent;return{peer:t,received:new L.a(n),sent:new L.a(a)}}))});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=[i.isConnected().then(d).catch((function(){return d(!1)})),o.getHealth().then(O).catch((function(){return O(null)})),o.getNodeAddresses().then(v).catch((function(){return v(null)})),o.getNodeInfo().then(k).catch((function(){return k(null)})),o.getTopology().then(N).catch((function(){return N(null)})),o.getPeers().then(G).catch((function(){return G(null)})),o.getChequebookAddress().then(W).catch((function(){return W(null)})),o.getLastCheques().then(ce).catch((function(){return ce(null)})),o.getChainState().then(je).catch((function(){return je(null)})),t().then(X).catch((function(){return X(null)})),n().then(te).catch((function(){return te(null)})),a().then(le).catch((function(){return le(null)}))],e.next=14,Promise.allSettled(r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),me(e.t0);case 19:return e.prev=19,we(!1),Ee(!1),Be(Date.now()),e.finish(19);case 24:case"end":return e.stop()}}),e,null,[[5,16,19,24]])})));return function(){return e.apply(this,arguments)}}();return Object(a.useEffect)((function(){if(Fe(),Ie){var e=setInterval(Fe,Ie);return function(){return clearInterval(e)}}}),[Ie,o,i]),Object(p.jsx)(V.Provider,{value:{status:z(h,g,S,u,T,R,J,xe),latestUserVersion:Ue,latestUserVersionExact:Re,latestPublishedVersion:Le,isLatestBeeVersion:Boolean(Le&&Ue&&B.a.satisfies(Le,Ue,{includePrerelease:!0})),latestBeeVersionUrl:(null===pe||void 0===pe?void 0:pe.html_url)||"https://github.com/ethersphere/bee/releases/latest",error:xe,apiHealth:u,debugApiHealth:h,nodeAddresses:g,nodeInfo:S,topology:T,chequebookAddress:R,peers:Y,chequebookBalance:J,peerBalances:ee,peerCheques:re,settlements:se,chainState:be,latestBeeRelease:pe,isLoading:ye,isRefreshing:Ce,lastUpdate:Te,start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;return _e(e)},stop:function(){return _e(null)},refresh:Fe},children:r})}var Y=Object(x.a)((function(e){return Object(m.a)({root:{width:"100%",marginBottom:e.spacing(2)}})}));function G(){var e=Y(),t=Object(a.useContext)(V),n=t.isLoading,r=t.latestUserVersionExact,c=Object(a.useState)(!0),i=Object(f.a)(c,2),o=i[0],s=i[1],l=U.SUPPORTED_BEE_VERSION_EXACT===r;return n||!r?null:Object(p.jsx)(y.a,{in:!l&&o,children:Object(p.jsx)("div",{className:e.root,children:Object(p.jsxs)(g.a,{severity:"warning",action:Object(p.jsx)(w.a,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){s(!1)},children:Object(p.jsx)(k.a,{fontSize:"inherit"})}),children:[Object(p.jsx)(v.a,{children:"Warning"}),"Your Bee node version (",Object(p.jsx)("code",{children:r}),") does not exactly match the Bee version we tested the Bee Dashboard against (",Object(p.jsx)("code",{children:U.SUPPORTED_BEE_VERSION_EXACT}),"). Please note that some functionality may not work properly."]})})})}var Z=n(869),K=n(870),J=n(907),X=n(855),$=n(880),Q=n(908),ee=n(872),te=n(885),ne=n(903),ae=n(900),re=n(904),ce=n(890),ie=n(898),oe=n(905),se=n(906),le=n(909),ue=n.p+"static/media/logo.3d1155fe.svg",de=n(12),be=n(808),je=n(852),he=n(85),pe=n(853),Oe=n(854),fe=Object(x.a)((function(e){return Object(m.a)({root:{width:"100%",padding:0,margin:0,marginTop:e.spacing(4),"&:first-child":{marginTop:0}},rootLevel1:{marginTop:e.spacing(1)},rootLevel2:{marginTop:e.spacing(.5)},header:{backgroundColor:e.palette.background.paper},contentLevel0:{marginTop:e.spacing(1)},contentLevel12:{marginTop:e.spacing(.25)},infoText:{color:"#c9c9c9"}})}));function xe(e){var t=e.children,n=e.label,r=e.level,c=e.defaultOpen,i=e.info,o=fe(),s=Object(a.useState)(Boolean(c)),l=Object(f.a)(s,2),u=l[0],d=l[1],b="",j="h1",h=o.contentLevel0;return 1===r?(b=o.rootLevel1,j="h2",h=o.contentLevel12):2===r&&(b=o.rootLevel2,j="h3",h=o.contentLevel12),Object(p.jsxs)("div",{className:"".concat(o.root," ").concat(b),children:[Object(p.jsxs)(be.a,{button:!0,onClick:function(){d(!u)},className:o.header,children:[Object(p.jsx)(je.a,{primary:Object(p.jsx)(he.a,{variant:j,children:n})}),Object(p.jsxs)("div",{style:{display:"flex"},children:[!u&&Object(p.jsx)(he.a,{variant:"body2",className:o.infoText,children:i}),u?Object(p.jsx)(pe.a,{}):Object(p.jsx)(Oe.a,{})]})]}),Object(p.jsx)(y.a,{in:u,timeout:"auto",unmountOnExit:!0,children:Object(p.jsx)("div",{className:h,children:t})})]})}var me=n(916),ge=n(858),ve=Object(x.a)((function(e){return Object(m.a)({header:{backgroundColor:e.palette.background.paper,marginBottom:e.spacing(.25),wordBreak:"break-word"},copyValue:{cursor:"pointer",padding:e.spacing(1),borderRadius:0,"&:hover":{backgroundColor:"#fcf2e8",color:e.palette.primary.main}}})}));function ye(e){var t=e.label,n=e.value,a=e.tooltip,r=ve();return Object(p.jsx)(be.a,{className:r.header,children:Object(p.jsxs)(X.a,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:[t&&Object(p.jsx)(he.a,{variant:"body1",children:t}),n&&Object(p.jsxs)(he.a,{variant:"body2",children:[n,a&&Object(p.jsx)(me.a,{title:a,placement:"top",arrow:!0,children:Object(p.jsx)(w.a,{size:"small",className:r.copyValue,children:Object(p.jsx)(ge.a,{strokeWidth:1})})})]})]})})}var we=Object(x.a)((function(e){return Object(m.a)({wrapper:{display:"flex",flexDirection:"row",flexWrap:"wrap"},action:{marginBottom:e.spacing(1),marginRight:e.spacing(1)}})}));function Se(e){var t=e.children,n=we();return Array.isArray(t)?Object(p.jsx)("div",{className:n.wrapper,children:t.filter((function(e){return e})).map((function(e,t){return Object(p.jsx)("div",{className:n.action,children:e},t)}))}):Object(p.jsx)(X.a,{container:!0,direction:"row",children:Object(p.jsx)(X.a,{className:n.action,children:t})})}var ke=n(97),Ce=n.n(ke),Ee=n(859),Ae=n(860),Pe=Object(x.a)((function(e){return Object(m.a)({header:{backgroundColor:e.palette.background.paper,marginBottom:e.spacing(.25),borderLeft:"".concat(e.spacing(.25),"px solid rgba(0,0,0,0)"),wordBreak:"break-word"},headerOpen:{borderLeft:"".concat(e.spacing(.25),"px solid ").concat(e.palette.primary.main)},copyValue:{cursor:"pointer",padding:e.spacing(1),borderRadius:0,"&:hover":{backgroundColor:"#fcf2e8",color:e.palette.primary.main}},content:{marginTop:e.spacing(2),marginBottom:e.spacing(2)},keyMargin:{marginRight:e.spacing(1)}})}));function Te(e){var t,n=e.label,r=e.value,c=Pe(),i=Object(a.useState)(!1),o=Object(f.a)(i,2),s=o[0],l=o[1],u=Object(a.useState)(!1),d=Object(f.a)(u,2),b=d[0],j=d[1],h=function(){return l(!s)},O=function(){return j(!0)},x=function(){return j(!1)},m=function(e){var t=function(e){return e.replace(/^0x/i,"").length}(e);return t%6===0?e.match(/(0x|.{6})/gi)||[]:e.match(/(0x|.{1,8})/gi)||[]}(r),g="string"===typeof(t=r)&&/^0x[0-9a-f]+$/i.test(t),v="".concat(g?"".concat(m[0]," ").concat(m[1]):m[0],"[\u2026]").concat(m[m.length-1]);return Object(p.jsx)(be.a,{className:"".concat(c.header," ").concat(s?c.headerOpen:""),children:Object(p.jsxs)(X.a,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",children:[Object(p.jsxs)(X.a,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:[n&&Object(p.jsx)(he.a,{variant:"body1",children:n}),Object(p.jsx)(he.a,{variant:"body2",children:Object(p.jsxs)("div",{children:[!s&&Object(p.jsx)("span",{className:c.copyValue,children:Object(p.jsx)(me.a,{title:b?"Copied":"Copy",placement:"top",arrow:!0,onClose:x,children:Object(p.jsx)(ke.CopyToClipboard,{text:r,children:Object(p.jsx)("span",{onClick:O,children:r?v:""})})})}),Object(p.jsx)(w.a,{size:"small",className:c.copyValue,children:s?Object(p.jsx)(Ee.a,{onClick:h,strokeWidth:1}):Object(p.jsx)(Ae.a,{onClick:h,strokeWidth:1})})]})})]}),Object(p.jsx)(y.a,{in:s,timeout:"auto",unmountOnExit:!0,children:Object(p.jsx)("div",{className:c.content,children:Object(p.jsx)(me.a,{title:b?"Copied":"Copy",placement:"top",arrow:!0,onClose:x,children:Object(p.jsx)(ke.CopyToClipboard,{text:r,children:Object(p.jsx)("span",{onClick:O,children:Object(p.jsx)("span",{className:c.copyValue,children:m.map((function(e,t){return Object(p.jsx)(he.a,{variant:"body2",className:c.keyMargin,component:"span",children:e},t)}))})})})})})})]})})}var Be=n(865),Ne=n(863),De=n(871),Ie=n(867),_e=n(868),Le=n(864),Ue=n(866),Re=n(336),Fe=n.n(Re),We=n(861);function He(e){var t=e.value,n=Object(l.b)().enqueueSnackbar;return Object(p.jsx)("div",{style:{marginRight:"3px",marginLeft:"3px"},children:Object(p.jsx)(w.a,{color:"primary",size:"small",onClick:function(){return n("Copied: ".concat(t),{variant:"success"})},children:Object(p.jsx)(ke.CopyToClipboard,{text:t,children:Object(p.jsx)(We.a,{style:{height:"20px"}})})})})}var Me=n(337),Ve=n.n(Me),ze=n(862);function qe(e){var t=Object(a.useState)(!1),n=Object(f.a)(t,2),r=n[0],c=n[1];return Object(p.jsxs)("div",{children:[Object(p.jsx)(w.a,{color:"primary",size:"small",onClick:function(){c(!0)},children:Object(p.jsx)(ze.a,{})}),Object(p.jsx)(Ne.a,{onClose:function(){c(!1)},"aria-labelledby":"simple-dialog-title",open:r,children:Object(p.jsxs)("div",{style:{padding:"30px",textAlign:"center"},children:[Object(p.jsx)(Le.a,{id:"simple-dialog-title",children:e.label}),Object(p.jsx)(Ve.a,{value:e.value,size:150,bgColor:"#ffffff",fgColor:"#000000",level:"L",includeMargin:!1,renderAs:"svg"})]})})]})}function Ye(e){return Object(p.jsx)(he.a,{component:"div",variant:"subtitle1",children:e.address?Object(p.jsxs)("div",{style:{display:"flex"},children:[e.hideBlockie?null:Object(p.jsx)("div",{style:{paddingTop:"5px",marginRight:"10px"},children:Object(p.jsx)(Fe.a,{size:20,string:e.address})}),Object(p.jsx)("div",{children:Object(p.jsx)("a",{style:e.truncate?{marginRight:"7px",maxWidth:"200px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"}:{marginRight:"7px"},href:"".concat(_.a.BLOCKCHAIN_EXPLORER_URL,"/").concat(e.transaction?"tx":"address","/").concat(e.address),target:"_blank",rel:"noreferrer",children:e.address})}),Object(p.jsx)(qe,{value:e.address,label:"Ethereum Address"}),Object(p.jsx)(He,{value:e.address})]}):"-"})}function Ge(e){var t=e.peerId,n=e.uncashedAmount,r=Object(a.useState)(!1),c=Object(f.a)(r,2),i=c[0],o=c[1],s=Object(a.useState)(!1),u=Object(f.a)(s,2),d=u[0],b=u[1],j=Object(l.b)().enqueueSnackbar,h=Object(a.useContext)(F).beeDebugApi,O=function(){o(!1)};return Object(p.jsxs)("div",{children:[Object(p.jsxs)(Be.a,{variant:"contained",onClick:function(){o(!0)},startIcon:Object(p.jsx)(Ue.a,{size:"1rem"}),children:["Cash out peer ",t.substr(0,8),"[\u2026]"]}),Object(p.jsxs)(Ne.a,{open:i,onClose:O,"aria-labelledby":"form-dialog-title",children:[Object(p.jsx)(Le.a,{id:"form-dialog-title",children:"Cashout Cheque"}),Object(p.jsx)(Ie.a,{children:Object(p.jsxs)(_e.a,{style:{marginTop:"20px",overflowWrap:"break-word"},children:[d&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("span",{children:["Cashing out ",Object(p.jsx)("strong",{children:n})," from Peer ",Object(p.jsx)("strong",{children:t}),". Please wait..."]}),Object(p.jsx)(Z.a,{style:{textAlign:"center",padding:"50px"},children:Object(p.jsx)(K.a,{})})]}),!d&&Object(p.jsxs)("span",{children:["Are you sure you want to cashout ",Object(p.jsxs)("strong",{children:[n," BZZ"]})," from Peer"," ",Object(p.jsx)("strong",{children:t}),"?"]})]})}),Object(p.jsxs)(De.a,{children:[Object(p.jsx)(Be.a,{onClick:O,color:"primary",children:"Cancel"}),Object(p.jsx)(Be.a,{onClick:function(){h&&(t?(b(!0),h.cashoutLastCheque(t).then((function(e){o(!1),j(Object(p.jsxs)("span",{children:["Successfully cashed out cheque. Transaction",Object(p.jsx)(Ye,{hideBlockie:!0,transaction:!0,address:e})]}),{variant:"success"})})).catch((function(e){j(Object(p.jsxs)("span",{children:["Error: ",e.message]}),{variant:"error"})})).finally((function(){b(!1)}))):j(Object(p.jsx)("span",{children:"Peer Id invalid"}),{variant:"error"}))},color:"primary",disabled:d,children:"Yes Cashout"})]})]})]})}function Ze(e){var t=e.accounting,n=e.isLoadingUncashed,a=e.totalUncashed;return Object(p.jsxs)(xe,{label:"Peers (".concat((null===t||void 0===t?void 0:t.length)||0,")"),info:"".concat(a.toFixedDecimal()," BZZ (uncashed)"),children:[Object(p.jsx)(ye,{label:"Uncashed Amount Total",value:"".concat(a.toFixedDecimal()," BZZ")}),null===t||void 0===t?void 0:t.map((function(e){var t=e.peer,a=e.balance,r=e.received,c=e.sent,i=e.uncashedAmount,o=e.total;return Object(p.jsxs)(xe,{label:"Peer ".concat(t.substr(0,8),"[\u2026]"),level:1,info:"".concat(i.toFixedDecimal()," BZZ (uncashed)"),children:[Object(p.jsx)(Te,{label:"Peer ID",value:t}),Object(p.jsx)(ye,{label:"Outstanding Balance",value:"".concat(a.toFixedDecimal()," BZZ")}),Object(p.jsx)(ye,{label:"Settlements Sent / Received",value:"-".concat(c.toFixedDecimal()," / ").concat(r.toFixedDecimal()," BZZ")}),Object(p.jsx)(ye,{label:"Total",value:"".concat(o.toFixedDecimal()," BZZ")}),Object(p.jsx)(ye,{label:"Uncashed Amount",value:n?"loading\u2026":"".concat(i.toFixedDecimal()," BZZ")}),i.toBigNumber.isGreaterThan("0")&&Object(p.jsx)(Se,{children:Object(p.jsx)(Ge,{uncashedAmount:i.toFixedDecimal(),peerId:t})})]},t)}))]})}var Ke=n(873),Je=Object(x.a)((function(e){return Object(m.a)({root:{height:"100%"},content:{maxWidth:500,marginBottom:e.spacing(4),"&:last-child":{marginBottom:0}},icon:{height:"1rem"}})}));function Xe(){var e=Je();return Object(p.jsxs)(X.a,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",className:e.root,children:[Object(p.jsx)(X.a,{item:!0,className:e.content,children:Object(p.jsx)(he.a,{variant:"h1",align:"center",children:"Uh oh, it looks like your node is not connected."})}),Object(p.jsx)(X.a,{item:!0,className:e.content,children:Object(p.jsxs)(he.a,{align:"center",children:["Please check your node status to fix the problem. You can also check out the"," ",Object(p.jsx)(ee.a,{href:_.a.BEE_DOCS_HOST,target:"_blank",rel:"noreferrer",children:"Swarm Bee Docs"})," ","or ask for support on the"," ",Object(p.jsx)(ee.a,{href:_.a.BEE_DISCORD_HOST,target:"_blank",rel:"noreferrer",children:"Ethereum Swarm Discord"}),"."]})}),Object(p.jsx)(X.a,{item:!0,className:e.content,children:Object(p.jsx)(he.a,{align:"center",children:Object(p.jsx)(Be.a,{component:u.b,variant:"contained",startIcon:Object(p.jsx)(Ke.a,{className:e.icon}),to:ir.STATUS,children:"Check node status"})})})]})}var $e=n(25);var Qe=function(e,t,n){var r=Object(a.useState)(!1),c=Object(f.a)(r,2),i=c[0],o=c[1],s=Object(a.useState)(void 0),l=Object(f.a)(s,2),u=l[0],d=l[1];Object(a.useEffect)((function(){if(!i&&e&&t&&!u){o(!0);var n=t.settlements.filter((function(e){return e.received.toBigNumber.gt("0")})).map((function(t){var n=t.peer;return Object($e.h)((function(){return e.getLastCashoutAction(n)}))}));Promise.allSettled(n).then((function(e){var t=Object($e.k)(e);d(t.fulfilled),o(!1)}))}}),[t,i,u,e]);var b=function(e,t,n){if(!e||!t)return null;var a={};return e.forEach((function(e){var t=e.peer,n=e.balance;return a[t]={peer:t,balance:n,sent:new L.a("0"),received:new L.a("0"),uncashedAmount:new L.a("0"),total:n}})),t.forEach((function(e){var t=e.peer,n=e.sent,r=e.received;return a[t]=Object(P.a)(Object(P.a)({},a[t]),{},{sent:n,received:r,total:new L.a(a[t].balance.toBigNumber.plus(r.toBigNumber).minus(n.toBigNumber))})})),n?(null===n||void 0===n||n.forEach((function(e){var t=e.peer,n=e.uncashedAmount;a[t].uncashedAmount=new L.a(n)})),Object.values(a).sort((function(e,t){var n=t.uncashedAmount.toBigNumber.minus(e.uncashedAmount.toBigNumber).toNumber();return 0!==n?n:e.peer22?n.slice(0,19)+"...":n;function x(){"NEW_WINDOW"===i?window.open(r||n):h(r||n)}return Object(p.jsx)(be.a,{className:l.header,children:Object(p.jsx)(X.a,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",children:Object(p.jsxs)(X.a,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:[t&&Object(p.jsx)(he.a,{variant:"body1",children:t}),Object(p.jsx)(he.a,{variant:"body2",children:Object(p.jsxs)("div",{children:[s&&Object(p.jsx)("span",{className:l.copyValue,children:Object(p.jsx)(me.a,{title:b?"Copied":"Copy",placement:"top",arrow:!0,onClose:function(){return j(!1)},children:Object(p.jsx)(Ce.a,{text:n,children:Object(p.jsx)("span",{onClick:function(){return j(!0)},children:O})})})}),!s&&Object(p.jsx)("span",{onClick:x,children:O}),Object(p.jsxs)(w.a,{size:"small",className:l.openLinkIcon,children:["NEW_WINDOW"===i&&Object(p.jsx)(te.a,{onClick:x,strokeWidth:1}),"HISTORY_PUSH"===i&&Object(p.jsx)(tn.a,{onClick:x,strokeWidth:1})]})]})})]})})})}var rn=n(352),cn=n(887),on=n(888),sn=n(889),ln=["index.html","index.htm"];function un(e){var t=e.map(jn);if(!t.length)return!1;var n=t.find((function(e){return ln.includes(e)}));if(n)return{indexPath:n};var a=t[0].split("/")[0]+"/";if(t.every((function(e){return e.startsWith(a)}))){var r=t.find((function(e){return ln.map((function(e){return a+e})).includes(e)}));if(r)return{indexPath:r,commonPrefix:a}}return!1}function dn(e){return e>=1e15?(e/1e15).toFixed(2)+" PB":e>=1e12?(e/1e12).toFixed(2)+" TB":e>=1e9?(e/1e9).toFixed(2)+" GB":e>=1e6?(e/1e6).toFixed(2)+" MB":e>=1e3?(e/1e3).toFixed(2)+" kB":e+" bytes"}function bn(e){if(1===e.length)return e[0].name;if(e.length>0){var t=jn(e[0]).split("/")[0];if(e.every((function(e){return jn(e).split("/")[0]===t})))return t}return"unknown"}function jn(e){return(e.path||e.webkitRelativePath||e.name).replace(/^\//g,"")}function hn(e){var t=jn(e);return{path:t,fullPath:t,webkitRelativePath:t,lastModified:e.lastModified,name:e.name,size:e.size,type:e.type,stream:e.stream,slice:e.slice,text:e.text,arrayBuffer:function(){var t=Object(A.a)(E.a.mark((function t(){return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.arrayBuffer();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}}function pn(e,t,n){return new Promise((function(a,r){if(!e.size||!e.type||!["image/bmp","image/gif","image/vnd.microsoft.icon","image/jpeg","image/png","image/svg+xml","image/tiff","image/webp"].includes(e.type))return r("File not supported!");try{var c=new FileReader;c.readAsDataURL(e),c.onload=function(e){var r,c=null===e||void 0===e||null===(r=e.target)||void 0===r?void 0:r.result;if(!c||"string"!==typeof c)throw new Error("Failed to load the image source");var i=new Image;i.src=c,i.onload=function(){var e=function(e,t,n,a){var r=n?e/n:1,c=a?t/a:1,i=Math.max(r,c);return i<=1?{width:e,height:t}:{width:e/i,height:t/i}}(i.width,i.height,t,n),r=document.createElement("canvas");r.width=e.width,r.height=e.height;var c=r.getContext("2d");if(!c)throw new Error("Failed to create canvas context");c.drawImage(i,0,0,r.width,r.height),c.canvas.toBlob((function(e){if(!e)throw new Error("Failed to extract the blob from canvas");a(e)}),"image/jpeg",1)}},c.onerror=function(e){return r(e)}}catch(i){r(i)}}))}var On=".swarmgatewaymeta.json",fn=".swarmgatewaypreview.jpeg",xn=250,mn=175,gn={origin:"UPLOAD"},vn={files:[],setFiles:function(){},uploadOrigin:gn,setUploadOrigin:function(){}},yn=Object(a.createContext)(vn);yn.Consumer;function wn(e){var t=e.children,n=Object(a.useState)(vn.files),r=Object(f.a)(n,2),c=r[0],i=r[1],o=Object(a.useState)(vn.uploadOrigin),s=Object(f.a)(o,2),l=s[0],u=s[1],d=Object(a.useState)(void 0),b=Object(f.a)(d,2),j=b[0],h=b[1],O=Object(a.useState)(void 0),x=Object(f.a)(O,2),m=x[0],g=x[1],v=Object(a.useState)(void 0),y=Object(f.a)(v,2),w=y[0],S=y[1];return Object(a.useEffect)((function(){if(h(function(e){var t=e.reduce((function(e,t){return e+t.size}),0),n=Boolean(un(e));return{size:t,name:bn(e),type:1===e.length?e[0].type:"folder",isWebsite:n,count:e.length}}(c)),m&&(URL.revokeObjectURL(m),g(void 0),S(void 0)),1===c.length&&c[0].type.startsWith("image"))return pn(c[0],xn,mn).then((function(e){g(URL.createObjectURL(e)),S(e)})),function(){m&&URL.revokeObjectURL(m)}}),[c]),Object(p.jsx)(yn.Provider,{value:{files:c,setFiles:i,uploadOrigin:l,setUploadOrigin:u,metadata:j,previewUri:m,previewBlob:w},children:t})}var Sn=Object(x.a)((function(e){return Object(m.a)({areaWrapper:{position:"relative",marginBottom:e.spacing(2)},dropzone:{background:e.palette.background.default,outline:"none",color:"transparent",zIndex:1,"& svg":{opacity:0}},buttonWrapper:{top:"0",left:"0",position:"absolute",display:"flex",width:"100%",height:"100%",justifyContent:"center",alignItems:"center"},button:{marginLeft:e.spacing(.5),marginRight:e.spacing(.5),zIndex:2}})}));function kn(e){var t=e.uploadOrigin,n=e.showHelp,r=Object(a.useContext)(yn),c=r.setFiles,i=r.setUploadOrigin,o=Sn(),s=Object(de.g)(),u=Object(l.b)().enqueueSnackbar,d=Object(a.useState)(!1),b=Object(f.a)(d,2),j=b[0],h=b[1],O=Object(a.useState)(0),x=Object(f.a)(O,2),m=x[0],g=x[1],v=function(){return document.querySelector(".MuiDropzoneArea-root input")},y=function(){var e=v();e&&(e.setAttribute("directory",""),e.setAttribute("webkitdirectory",""),e.setAttribute("mozdirectory",""),e.click())};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("div",{className:o.areaWrapper,children:[Object(p.jsx)(rn.a,{dropzoneClass:o.dropzone,onChange:function(e){if(e){var n=e,a=1===e.length?e[0].name:un(n)||void 0;if(e.length&&j&&!a)return u("To upload a website, there must be an index.html or index.htm in the root of the folder.",{variant:"error"}),void setTimeout((function(){g((function(e){return e+1})),c([])}),0);c(n),e.length&&(i(t),s(ir.UPLOAD_IN_PROGRESS))}},filesLimit:1e9,maxFileSize:1e9,showPreviews:!1},m),Object(p.jsxs)("div",{className:o.buttonWrapper,children:[Object(p.jsx)(ht,{className:o.button,onClick:function(){var e=v();e&&(e.removeAttribute("directory"),e.removeAttribute("webkitdirectory"),e.removeAttribute("mozdirectory"),e.click())},iconType:cn.a,children:"Add File"}),Object(p.jsx)(ht,{className:o.button,onClick:function(){y(),h(!1)},iconType:on.a,children:"Add Folder"}),Object(p.jsx)(ht,{className:o.button,onClick:function(){y(),h(!0)},iconType:sn.a,children:"Add Website"})]})]}),n&&Object(p.jsx)(zt,{children:"You can click the buttons above or simply drag and drop to add a file or folder. To upload a website to Swarm, make sure that your folder contains an \u201cindex.html\u201d file."})]})}function Cn(){var e=Object(a.useContext)(Ot).identities,t=Object(de.h)().uuid,n=Object(a.useContext)(F).beeApi,r=Object(a.useContext)(V).status,c=Object(de.g)(),i=Object(a.useState)(!1),o=Object(f.a)(i,2),s=o[0],l=o[1],u=e.find((function(e){return e.uuid===t}));if(Object(a.useEffect)((function(){if(u&&u.feedHash)try{null===n||void 0===n||n.downloadData(u.feedHash).then((function(){return l(!0)}))}catch(e){l(!1)}}),[n,t,u]),!u||!r.all)return c(ir.FEEDS,{replace:!0}),Object(p.jsx)(p.Fragment,{});return Object(p.jsxs)("div",{children:[Object(p.jsx)(Gt,{children:"".concat(u.name," Website")}),Object(p.jsx)(kn,{showHelp:!1,uploadOrigin:{origin:"FEED",uuid:t}}),s&&u.feedHash?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(ut.a,{mb:.25,children:Object(p.jsx)(Te,{label:"Feed hash",value:u.feedHash})}),Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsx)(an,{label:"BZZ Link",value:"https://".concat(en.encodeFeedReference(u.feedHash),".bzz.link")})})]}):Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsxs)(zt,{children:["This feed is curently not pointing anywhere, you can update the feed to fix this. Please refer to the"," ",Object(p.jsx)("a",{href:"https://docs.ethswarm.org/api/#tag/Feed/paths/~1feeds~1{owner}~1{topic}/post",target:"_blank",rel:"noreferrer",children:"official Bee documentation"}),"."]})}),Object(p.jsx)(Se,{children:Object(p.jsx)(ht,{iconType:mt.a,onClick:function(){c(ir.FEEDS)},cancel:!0,children:"Close"})})]})}var En=n(180),An={stamps:null,error:null,isLoading:!1,lastUpdate:null,start:function(){},stop:function(){},refresh:function(){return Promise.reject()}},Pn=Object(a.createContext)(An);Pn.Consumer;function Tn(e){var t=e.depth,n=e.bucketDepth,a=e.utilization/Math.pow(2,t-n),r="".concat(Math.ceil(100*a),"%");return Object(P.a)(Object(P.a)({},e),{},{usage:a,usageText:r})}function Bn(e){var t=e.children,n=Object(a.useContext)(F).beeDebugApi,r=Object(a.useState)(An.stamps),c=Object(f.a)(r,2),i=c[0],o=c[1],s=Object(a.useState)(An.error),l=Object(f.a)(s,2),u=l[0],d=l[1],b=Object(a.useState)(An.isLoading),j=Object(f.a)(b,2),h=j[0],O=j[1],x=Object(a.useState)(An.lastUpdate),m=Object(f.a)(x,2),g=m[0],v=m[1],y=Object(a.useState)(null),w=Object(f.a)(y,2),S=w[0],k=w[1],C=function(){var e=Object(A.a)(E.a.mark((function e(){var t;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=2;break}return e.abrupt("return");case 2:if(n){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,O(!0),e.next=8,n.getAllPostageBatch();case 8:t=e.sent,o(t.map(Tn)),v(Date.now()),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(4),d(e.t0);case 16:return e.prev=16,O(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,13,16,19]])})));return function(){return e.apply(this,arguments)}}();return Object(a.useEffect)((function(){if(C(),S){var e=setInterval(C,S);return function(){return clearInterval(e)}}}),[S]),Object(p.jsx)(Pn.Provider,{value:{stamps:i,error:u,isLoading:h,lastUpdate:g,start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4;return k(e)},stop:function(){return k(null)},refresh:C},children:t})}function Nn(e){var t=e.feedName,n=e.onProceed,r=e.onCancel,c=e.loading,i=Object(a.useState)(""),o=Object(f.a)(i,2),s=o[0],l=o[1];return Object(p.jsxs)(gt,{children:[Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsx)(kt,{onClose:r,children:"Update Feed"})}),Object(p.jsx)(ut.a,{mb:2,children:Object(p.jsxs)(he.a,{children:["Please enter the password for \u201c",t,"\u201d:"]})}),Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsx)(Ft,{label:"Password",name:"password",onChange:function(e){l(e.target.value)},password:!0})}),Object(p.jsxs)(Se,{children:[Object(p.jsx)(ht,{iconType:It.a,onClick:function(){return n(s)},disabled:c,loading:c,children:"Proceed"}),Object(p.jsx)(ht,{iconType:mt.a,onClick:r,cancel:!0,disabled:c,children:"Cancel"})]})]})}function Dn(){var e=Object(a.useContext)(Ot),t=e.identities,n=e.setIdentities,r=Object(a.useContext)(F),c=r.beeApi,i=r.beeDebugApi,o=Object(a.useContext)(Pn),s=o.stamps,u=o.refresh,d=Object(a.useContext)(V).status,b=Object(de.h)().hash,j=Object(a.useState)(null),h=Object(f.a)(j,2),O=h[0],x=h[1],m=Object(a.useState)(null),g=Object(f.a)(m,2),v=g[0],y=g[1],w=Object(a.useState)(!1),S=Object(f.a)(w,2),k=S[0],C=S[1],P=Object(l.b)().enqueueSnackbar,T=Object(a.useState)(!1),B=Object(f.a)(T,2),N=B[0],D=B[1],I=Object(de.g)();function _(e,t){return L.apply(this,arguments)}function L(){return(L=Object(A.a)(E.a.mark((function e(a,r){return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C(!0),c&&i&&O){e.next=5;break}return P(Object(p.jsx)("span",{children:"Bee API unavailabe"}),{variant:"error"}),C(!1),e.abrupt("return");case 5:return e.prev=5,e.next=8,Object(xt.f)(c,a,b,O,r);case 8:Object(xt.e)(t,a),n(Object(En.a)(t)),I(ir.FEEDS_PAGE.replace(":uuid",a.uuid)),e.next=18;break;case 13:e.prev=13,e.t0=e.catch(5),C(!1),("object"===typeof e.t0&&null!==e.t0&&Reflect.get(e.t0,"message")||"").includes("possibly wrong passphrase")?P("Wrong password, please try again",{variant:"error"}):P("Could not update feed at this time, please try again later",{variant:"error"});case 18:case"end":return e.stop()}}),e,null,[[5,13]])})))).apply(this,arguments)}return Object(a.useEffect)((function(){u()}),[]),d.all?Object(p.jsxs)("div",{children:[N&&v&&Object(p.jsx)(Nn,{feedName:v.name+" Website",onCancel:function(){D(!1)},onProceed:function(e){_(v,e)},loading:k}),Object(p.jsx)(Gt,{children:"Update feed"}),Object(p.jsx)(ut.a,{mb:2,children:Object(p.jsx)(X.a,{container:!0,children:Object(p.jsx)(Xt,{options:t.map((function(e){return{value:e.uuid,label:"".concat(e.name," Website")}})),onChange:function(e){var n=e.target.value;y(t.find((function(e){return e.uuid===n}))||null)},label:"Feed"})})}),Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsx)(X.a,{container:!0,children:s?Object(p.jsx)(Xt,{options:s.map((function(e){return{value:e.batchID,label:e.batchID.slice(0,8)}})),onChange:function(e){var t=e.target.value;x(t)},label:"Stamp"}):Object(p.jsx)(he.a,{children:"You need to buy a stamp first to be able to update a feed."})})}),Object(p.jsxs)(Se,{children:[Object(p.jsx)(ht,{onClick:function(){v&&("V3"===v.type?D(!0):_(v))},iconType:ce.a,loading:!N&&k,disabled:k||!O||!v,children:"Update Selected Feed"}),Object(p.jsx)(ht,{onClick:function(){I(-1)},iconType:mt.a,disabled:k,cancel:!0,children:"Close"})]})]}):Object(p.jsx)(Xe,{})}var In=n(178),_n=n(361),Ln=n(891),Un=n(892),Rn=Object(x.a)((function(e){return Object(m.a)({header:{backgroundColor:"#F7F7F7",marginBottom:e.spacing(.25)},typography:{color:"#242424"}})}));function Fn(e){var t=e.children,n=Rn();return Object(p.jsx)(be.a,{className:n.header,children:Object(p.jsx)(he.a,{variant:"body1",className:n.typography,children:t})})}var Wn,Hn=Object(x.a)((function(e){return Object(m.a)({header:{backgroundColor:e.palette.background.paper,marginBottom:e.spacing(.25),borderLeft:"".concat(e.spacing(.25),"px solid rgba(0,0,0,0)"),wordBreak:"break-word"},headerOpen:{borderLeft:"".concat(e.spacing(.25),"px solid ").concat(e.palette.primary.main)},copyValue:{cursor:"pointer",padding:e.spacing(1),borderRadius:0,"&:hover":{backgroundColor:"#fcf2e8",color:e.palette.primary.main}},content:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},keyMargin:{marginRight:e.spacing(1)},unselectableLabel:{cursor:"default",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"}})}));function Mn(e){var t=e.label,n=e.value,r=e.onConfirm,c=e.onChange,i=e.confirmLabel,o=e.confirmLabelDisabled,s=e.expandedOnly,l=e.helperText,u=e.placeholder,d=e.loading,b=e.mapperFn,j=e.locked,h=Hn(),O=Object(a.useState)(Boolean(s)),x=Object(f.a)(O,2),m=x[0],g=x[1],v=Object(a.useState)(n||""),S=Object(f.a)(v,2),k=S[0],C=S[1],E=function(){return g(!m)};return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(be.a,{className:"".concat(h.header," ").concat(m?h.headerOpen:""),children:Object(p.jsxs)(X.a,{container:!0,direction:"column",justifyContent:"space-between",alignItems:"stretch",children:[Object(p.jsxs)(X.a,{container:!0,direction:"row",justifyContent:"space-between",alignItems:"center",children:[t&&Object(p.jsx)(he.a,{variant:"body1",className:h.unselectableLabel,children:t}),Object(p.jsx)(he.a,{variant:"body2",children:Object(p.jsxs)("div",{children:[!m&&n,!s&&!j&&Object(p.jsx)(w.a,{size:"small",className:h.copyValue,children:m?Object(p.jsx)(Ee.a,{onClick:E,strokeWidth:1}):Object(p.jsx)(Ln.a,{onClick:E,strokeWidth:1})})]})})]}),Object(p.jsx)(y.a,{in:m,timeout:"auto",unmountOnExit:!0,children:Object(p.jsx)(_n.a,{value:k,placeholder:u,onChange:function(e){b&&(e.target.value=b(e.target.value)),C(e.target.value),c&&c(e.target.value)},fullWidth:!0,className:h.content,autoFocus:!0,hidden:j})})]})}),Object(p.jsxs)(y.a,{in:m,timeout:"auto",unmountOnExit:!0,children:[l&&Object(p.jsx)(Fn,{children:l}),Object(p.jsxs)(Se,{children:[Object(p.jsx)(ht,{disabled:d||k===n||Boolean(o)||""===k&&void 0===n,loading:d,iconType:Un.a,onClick:function(){return r(k)},children:i||"Save"}),Object(p.jsx)(ht,{disabled:d||k===n||""===k,iconType:mt.a,onClick:function(){return C(n||"")},cancel:!0,children:"Cancel"})]})]})]})}function Vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return"".concat(e.slice(0,t),"[\u2026]").concat(e.slice(-t))}function zn(e,t,n){var a=qn(e),r=a.findIndex((function(e){return e.hash===t}));-1!==r&&a.splice(r,1),a.unshift({createdAt:Date.now(),hash:t,name:n}),a.length>10&&(a.length=10),localStorage.setItem(e,JSON.stringify(a))}function qn(e){var t=localStorage.getItem(e);if(!t)return[];try{var n=JSON.parse(t);return Array.isArray(n)&&n.every(Yn)?n:[]}catch(a){return[]}}function Yn(e){return"object"===typeof e&&null!==e&&("createdAt"in e&&"hash"in e)}function Gn(e,t){return"index.html"===t?"Website ".concat(Vn(e,4)):t||"Folder ".concat(Vn(e,4))}function Zn(e){var t=e.title,n=e.localStorageKey,r=Object(a.useState)([]),c=Object(f.a)(r,2),i=c[0],o=c[1];return Object(a.useEffect)((function(){o(qn(n))}),[n]),i.length?Object(p.jsx)(xe,{label:t,defaultOpen:!0,children:i.map((function(e,t){return Object(p.jsx)(an,{label:(n=new Date(e.createdAt),n.toString().split("GMT")[0].trim()),value:e.name,link:"/files/hash/"+e.hash,navigationType:"HISTORY_PUSH",allowClipboard:!1},t);var n}))}):null}!function(e){e.UPLOAD_HISTORY="UPLOAD_HISTORY",e.DOWNLOAD_HISTORY="DOWNLOAD_HISTORY"}(Wn||(Wn={}));var Kn=n(913),Jn=n(893),Xn=Object(x.a)((function(e){return Object(m.a)({root:{flexGrow:1,marginBottom:e.spacing(4)},leftTab:{marginRight:e.spacing(.5)},rightTab:{marginLeft:e.spacing(.5)}})}));function $n(e){var t=e.active,n=Xn(),a=Object(de.g)();return Object(p.jsx)("div",{className:n.root,children:Object(p.jsxs)(Kn.a,{value:"UPLOAD"===t?0:1,onChange:function(e,t){a(1===t?ir.DOWNLOAD:ir.UPLOAD)},variant:"fullWidth",children:[Object(p.jsx)(Jn.a,{className:n.leftTab,label:"Upload"},"UPLOAD"),Object(p.jsx)(Jn.a,{className:n.rightTab,label:"Download"},"DOWNLOAD")]})})}function Qn(){var e=Object(a.useState)(!1),t=Object(f.a)(e,2),n=t[0],r=t[1],c=Object(a.useContext)(F).beeApi,i=Object(a.useState)(void 0),o=Object(f.a)(i,2),s=o[0],u=o[1],d=Object(a.useContext)(yn).setUploadOrigin,b=Object(l.b)().enqueueSnackbar,j=Object(de.g)();function h(){return(h=Object(A.a)(E.a.mark((function e(t){var n,a,i,o;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r(!0),c){e.next=4;break}return r(!1),e.abrupt("return");case 4:return e.prev=4,n=new In.ManifestJs(c),e.next=8,n.resolveFeedManifest(t);case 8:return(a=e.sent)&&(t=a),e.next=12,n.isManifest(t);case 12:if(e.sent){e.next=15;break}throw Error("The specified hash does not contain valid content.");case 15:return e.next=17,n.getIndexDocumentPath(t);case 17:i=e.sent,zn(Wn.DOWNLOAD_HISTORY,t,Gn(t,i)),d(gn),j(ir.HASH.replace(":hash",t)),e.next=29;break;case 23:e.prev=23,e.t0=e.catch(4),(o="object"===typeof e.t0&&null!==e.t0&&Reflect.get(e.t0,"message")).includes("path address not found")&&(o="The specified hash does not have an index document set."),o.includes("Not Found: Not Found")&&(o="The specified hash was not found."),b(Object(p.jsxs)("span",{children:["Error: ",o||"Unknown"]}),{variant:"error"});case 29:return e.prev=29,r(!1),e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[4,23,29,32]])})))).apply(this,arguments)}return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)($n,{active:"DOWNLOAD"}),Object(p.jsx)(Mn,{label:"Swarm Hash",onConfirm:function(e){return function(e){return h.apply(this,arguments)}(e)},onChange:function(e){U.Utils.isHexString(e,64)||U.Utils.isHexString(e,128)||!e.trim().length?u(void 0):u("Incorrect format of swarm hash. Expected 64 or 128 hexstring characters.")},helperText:s,confirmLabel:"Find",confirmLabelDisabled:Boolean(s)||n,placeholder:"e.g. 31fb0362b1a42536134c86bc58b97ac0244e5c6630beec3e27c2d1cecb38c605",expandedOnly:!0,mapperFn:function(e){return function(e){return e.length<64?e:Object($e.d)(e)||e}(e)},loading:n}),Object(p.jsx)(Zn,{title:"Download History",localStorageKey:Wn.DOWNLOAD_HISTORY})]})}var ea=n(348),ta=n.n(ea);function na(){return Object(p.jsx)(X.a,{container:!0,direction:"row",justifyContent:"center",alignItems:"center",children:Object(p.jsx)(K.a,{})})}var aa=n(895),ra=n(894),ca=n(896),ia=Object(x.a)((function(){return Object(m.a)({image:{width:"100%",height:"100%",objectFit:"cover"}})}));function oa(e){var t=ia(),n={};return e.maxHeight&&(n.maxHeight=e.maxHeight),e.maxWidth&&(n.maxWidth=e.maxWidth),Object(p.jsx)("img",{className:t.image,alt:e.alt,src:e.src,style:n})}var sa=Object(x.a)((function(){return Object(m.a)({wrapper:{display:"flex",justifyContent:"center",alignItems:"center",width:"175px",height:"175px",background:"repeating-linear-gradient(\n 45deg,\n #efefef,\n #efefef 4px,\n #ffffff 4px,\n #ffffff 8px\n )"}})}));function la(e){var t=e.children,n=sa();return Object(p.jsx)("div",{className:n.wrapper,children:t})}function ua(e){var t=e.icon;return Object(p.jsx)(la,{children:t})}function da(e){var t=e.metadata,n=e.previewUri,a=Object(p.jsx)(ra.a,{}),r=null===t||void 0===t?void 0:t.type;return(null===t||void 0===t?void 0:t.isWebsite)?(a=Object(p.jsx)(aa.a,{}),r="Website"):"folder"===(null===t||void 0===t?void 0:t.type)&&(a=Object(p.jsx)(ca.a,{}),r="Folder"),Object(p.jsxs)(ut.a,{mb:4,children:[Object(p.jsx)(ut.a,{bgcolor:"background.paper",children:Object(p.jsxs)(X.a,{container:!0,direction:"row",children:[n?Object(p.jsx)(oa,{maxWidth:"250px",maxHeight:"175px",alt:"Upload Preview",src:n}):Object(p.jsx)(ua,{icon:a}),Object(p.jsxs)(ut.a,{p:2,children:[(null===t||void 0===t?void 0:t.hash)&&Object(p.jsxs)(he.a,{children:["Swarm Hash: ",Vn(t.hash)]}),(null===t||void 0===t?void 0:t.name)&&(null===t||void 0===t?void 0:t.name)!==(null===t||void 0===t?void 0:t.hash)&&Object(p.jsxs)(he.a,{children:["folder"===(null===t||void 0===t?void 0:t.type)?"Folder Name":"Filename",": ",Object($e.j)(null===t||void 0===t?void 0:t.name)]}),Object(p.jsxs)(he.a,{children:["Kind: ",r]}),(null===t||void 0===t?void 0:t.size)?Object(p.jsxs)(he.a,{children:["Size: ",dn(t.size)]}):null]})]})}),"folder"===(null===t||void 0===t?void 0:t.type)&&t.count&&Object(p.jsx)(ut.a,{mt:.25,p:2,bgcolor:"background.paper",children:Object(p.jsxs)(X.a,{container:!0,justifyContent:"space-between",alignItems:"center",direction:"row",children:[Object(p.jsx)(he.a,{variant:"subtitle2",children:"Folder content"}),Object(p.jsxs)(he.a,{variant:"subtitle2",children:[t.count," items"]})]})})]})}function ba(e){var t=e.isWebsite,n=e.hash;return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)(ut.a,{mb:4,children:[Object(p.jsx)(Te,{label:"Swarm hash",value:n}),Object(p.jsx)(an,{label:"Share on Swarm Gateway",value:"https://gateway.ethswarm.org/access/".concat(n)}),t&&Object(p.jsx)(an,{label:"BZZ Link",value:"https://".concat(en.encodeManifestReference(n).toString(),".bzz.link")})]}),Object(p.jsxs)(zt,{children:["The Swarm Gateway is graciously provided by the Swarm Foundation. This service is under development and provided for testing purposes only. Learn more at"," ",Object(p.jsx)("a",{href:"https://gateway.ethswarm.org/",children:"https://gateway.ethswarm.org/"}),"."]})]})}var ja=n(897);function ha(e){var t=e.onOpen,n=e.onCancel,a=e.onDownload,r=e.onUpdateFeed,c=e.hasIndexDocument,i=e.loading;return Object(p.jsxs)(X.a,{container:!0,justifyContent:"space-between",children:[Object(p.jsxs)(Se,{children:[c&&Object(p.jsx)(ht,{onClick:t,iconType:ja.a,disabled:i,children:"View Website"}),Object(p.jsx)(ht,{onClick:a,iconType:ot.a,disabled:i,loading:i,children:"Download"}),Object(p.jsx)(ht,{onClick:n,iconType:mt.a,disabled:i,cancel:!0,children:"Close"})]}),Object(p.jsx)(ut.a,{mb:1,mr:1,children:Object(p.jsx)(ht,{onClick:r,iconType:ce.a,disabled:i,children:"Update Feed"})})]})}function pa(){var e=Object(a.useContext)(F),t=e.apiUrl,n=e.beeApi,r=Object(a.useContext)(V).status,c=Object(de.h)().hash,i=c,o=Object(de.g)(),s=Object(l.b)().enqueueSnackbar,u=Object(a.useState)(!0),d=Object(f.a)(u,2),b=d[0],j=d[1],h=Object(a.useState)(!1),O=Object(f.a)(h,2),x=O[0],m=O[1],g=Object(a.useState)({}),v=Object(f.a)(g,2),y=v[0],w=v[1],S=Object(a.useState)(null),k=Object(f.a)(S,2),C=k[0],T=k[1],B=Object(a.useState)(!1),N=Object(f.a)(B,2),D=N[0],I=N[1],L=Object(a.useState)(void 0),U=Object(f.a)(L,2),R=U[0],W=U[1],H=Object(a.useState)(),M=Object(f.a)(H,2),z=M[0],q=M[1];function Y(){return Y=Object(A.a)(E.a.mark((function e(){var t,a,o,l,u,d,b,j;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&r.all){e.next=2;break}return e.abrupt("return");case 2:return t=new In.ManifestJs(n),e.next=5,t.isManifest(i);case 5:if(e.sent){e.next=10;break}return I(!0),s("The specified hash does not contain valid content.",{variant:"error"}),e.abrupt("return");case 10:return e.next=12,t.getHashes(i);case 12:return a=e.sent,e.next=15,t.getIndexDocumentPath(i);case 15:return o=e.sent,T(o),l=a[fn],delete a[On],delete a[fn],w(a),u=Object.keys(a).length,d={hash:c,size:0,type:u>1?"folder":"unknown",name:i,isWebsite:Boolean(o)&&u>1,count:u},e.prev=23,e.next=26,n.downloadFile(i,On);case 26:b=e.sent,j=b.data.text(),d=Object(P.a)(Object(P.a)({},d),JSON.parse(j)),e.next=33;break;case 31:e.prev=31,e.t0=e.catch(23);case 33:l&&W("".concat(_.b.BEE_API_HOST,"/bzz/").concat(i,"/").concat(fn)),q(d);case 35:case"end":return e.stop()}}),e,null,[[23,31]])}))),Y.apply(this,arguments)}function G(){return(G=Object(A.a)(E.a.mark((function e(){var a,r,c,o,s,l,u;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:if(zn(Wn.DOWNLOAD_HISTORY,i,Gn(i,C)),m(!0),1!==Object.keys(y).length){e.next=8;break}window.open("".concat(t,"/bzz/").concat(i,"/"),"_blank"),e.next=25;break;case 8:a=new ta.a,r=0,c=Object.entries(y);case 10:if(!(r0?o(-1):o(ir.UPLOAD)},onDownload:function(){return G.apply(this,arguments)},onUpdateFeed:function(){o(ir.FEEDS_UPDATE.replace(":hash",i))},hasIndexDocument:Boolean(null===z||void 0===z?void 0:z.isWebsite),loading:x})]}):Object(p.jsx)(Xe,{})}var Oa=Object(x.a)((function(){return Object(m.a)({wrapper:{height:"52px",display:"flex",flex:1,justifyContent:"center",alignItems:"center"},todo:{background:"#f7f7f7",color:"#c9c9c9"},inProgress:{background:"#ffffff",color:"#242424",height:"52px"},done:{background:"#f7f7f7",color:"#606060",height:"52px"}})}));function fa(e){var t=e.steps,n=e.index,a=Oa();function r(e){return e===n?a.inProgress:e255)return"-";var n=Object($e.a)(e,t);return"".concat(n.toSignificantDigits()," BZZ")}return Object(p.jsx)(Lt.c,{initialValues:xa,onSubmit:function(){var e=Object(A.a)(E.a.mark((function e(n,a){var o,s,l;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n.depth&&n.amount){e.next=3;break}return e.abrupt("return");case 3:if(c){e.next=5;break}return e.abrupt("return");case 5:return o=BigInt(n.amount),s=Number.parseInt(n.depth),l=n.label?{label:n.label}:void 0,e.next=10,c.createPostageBatch(o.toString(),s,l);case 10:return a.resetForm(),e.next=13,r();case 13:t(),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(0),i("Error: ".concat(e.t0.message),{variant:"error"}),a.setSubmitting(!1);case 20:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(t,n){return e.apply(this,arguments)}}(),validate:function(e){var t={};if(e.depth){var n=new tt.a(e.depth);n.isInteger()?n.isLessThan(16)?t.depth="Minimal depth is 16":n.isGreaterThan(255)&&(t.depth="Depth has to be at most 255"):t.depth="Depth must be an integer"}else t.depth="Required field";if(e.amount){var a=new tt.a(e.amount);a.isInteger()?a.isLessThanOrEqualTo(0)&&(t.amount="Amount must be greater than 0"):t.amount="Amount must be an integer"}else t.amount="Required field";return e.label&&!/^[0-9a-z]*$/i.test(e.label)&&(t.label="Label must be an alphanumeric string"),t},children:function(e){var t,n=e.submitForm,a=e.isValid,r=e.isSubmitting,c=e.values;return Object(p.jsxs)(Lt.b,{children:[Object(p.jsxs)(ut.a,{mb:2,children:[Object(p.jsx)(Ft,{name:"depth",label:"Depth",formik:!0}),Object(p.jsx)(ut.a,{mt:.25,sx:{bgcolor:"#f6f6f6"},p:2,children:Object(p.jsxs)(X.a,{container:!0,justifyContent:"space-between",children:[Object(p.jsx)(he.a,{children:"Corresponding file size"}),Object(p.jsx)(he.a,{children:(t=parseInt(c.depth||"0",10),isNaN(t)||t<17||t>255?"-":"~".concat(dn(Object($e.c)(t))))})]})})]}),Object(p.jsxs)(ut.a,{mb:2,children:[Object(p.jsx)(Ft,{name:"amount",label:"Amount",formik:!0}),Object(p.jsx)(ut.a,{mt:.25,sx:{bgcolor:"#f6f6f6"},p:2,children:Object(p.jsxs)(X.a,{container:!0,justifyContent:"space-between",children:[Object(p.jsx)(he.a,{children:"Corresponding TTL (Time to live)"}),Object(p.jsx)(he.a,{children:o(Number.parseInt(c.amount||"0",10))})]})})]}),Object(p.jsx)(ut.a,{mb:2,children:Object(p.jsx)(Ft,{name:"label",label:"Label",optional:!0,formik:!0})}),Object(p.jsx)(ut.a,{mb:4,sx:{bgcolor:"#fcf2e8"},p:2,children:Object(p.jsxs)(X.a,{container:!0,justifyContent:"space-between",children:[Object(p.jsx)(he.a,{children:"Indicative Price"}),Object(p.jsx)(he.a,{children:s(parseInt(c.depth||"0",10),BigInt(c.amount||"0"))})]})}),Object(p.jsx)(ht,{disabled:r||!a||!c.amount||!c.depth,onClick:n,iconType:It.a,loading:r,children:"Buy New Stamp"})]})}})}function ga(e){var t=e.onSelect,n=e.defaultValue,r=Object(a.useContext)(Pn).stamps;return Object(p.jsx)(Xt,{options:(r||[]).map((function(e){return{label:e.batchID.slice(0,8),value:e.batchID}})),onChange:function(e){return function(e){if(r){var n=r.find((function(t){return t.batchID===e}));n&&t(n)}}(e.target.value)},defaultValue:n})}function va(e){var t=e.width,n=e.usage,a=Math.round(100*n),r=a+"%",c=98-a+"%";return Object(p.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",width:t},children:Object(p.jsxs)("div",{style:{display:"flex",height:"4px",width:"100%"},children:[Object(p.jsx)("div",{style:{width:r,background:"#dd7200"}}),Object(p.jsx)("div",{style:{width:"2%"}}),Object(p.jsx)("div",{style:{width:c,background:"#c9c9c9"}})]})})}function ya(e){var t=e.stamp,n=e.shorten;return Object(p.jsx)(ut.a,{p:2,width:"100%",children:Object(p.jsxs)(X.a,{container:!0,justifyContent:"space-between",alignItems:"center",direction:"row",children:[Object(p.jsx)(he.a,{variant:"subtitle2",children:n?t.batchID.slice(0,8):t.batchID}),Object(p.jsx)(va,{width:"100px",usage:t.usage})]})})}function wa(e){var t=e.stamp;return Object(p.jsxs)(ut.a,{mb:4,children:[Object(p.jsx)(ut.a,{mb:.25,p:2,bgcolor:"background.paper",children:Object(p.jsx)(he.a,{variant:"subtitle2",children:"Associated postage stamp:"})}),Object(p.jsx)(ut.a,{bgcolor:"background.paper",children:Object(p.jsx)(ya,{stamp:t,shorten:!0})})]})}var Sa=n(899);function ka(e){var t=e.step,n=e.onUpload,a=e.onCancel,r=e.onGoBack,c=e.onProceed,i=e.isUploading,o=e.hasStamp,s=e.uploadLabel,l=e.stampMode,u=e.setStampMode;return 0===t?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(ut.a,{mb:1,children:Object(p.jsxs)(Se,{children:[Object(p.jsx)(ht,{onClick:c,iconType:ie.a,children:"Add Postage Stamp"}),Object(p.jsx)(ht,{onClick:a,iconType:mt.a,cancel:!0,children:"Cancel"})]})}),Object(p.jsx)(zt,{children:"You need a postage stamp to upload."})]}):1===t?Object(p.jsxs)(X.a,{container:!0,direction:"row",justifyContent:"space-between",children:[Object(p.jsxs)(Se,{children:["SELECT"===l&&Object(p.jsx)(ht,{onClick:c,iconType:It.a,disabled:!o,children:"Proceed With Selected Stamp"}),Object(p.jsx)(ht,{onClick:r,iconType:Sa.a,cancel:!0,children:"Back To Preview"})]}),Object(p.jsx)(ht,{onClick:function(){return u("BUY"===l?"SELECT":"BUY")},iconType:"BUY"===l?ie.a:dt.a,children:"BUY"===l?"Use Existing Stamp":"Buy New Stamp"})]}):2===t?Object(p.jsxs)(Se,{children:[Object(p.jsx)(ht,{onClick:n,iconType:It.a,disabled:i,loading:i,children:s}),Object(p.jsx)(ht,{onClick:r,iconType:Sa.a,disabled:i,cancel:!0,children:"Change Postage Stamp"})]}):Object(p.jsx)(p.Fragment,{})}function Ca(){var e=Object(a.useState)(0),t=Object(f.a)(e,2),n=t[0],r=t[1],c=Object(a.useState)("SELECT"),i=Object(f.a)(c,2),o=i[0],s=i[1],u=Object(a.useState)(null),d=Object(f.a)(u,2),b=d[0],j=d[1],h=Object(a.useState)(!1),O=Object(f.a)(h,2),x=O[0],m=O[1],g=Object(a.useState)(!1),v=Object(f.a)(g,2),y=v[0],w=v[1],S=Object(a.useContext)(Pn).refresh,k=Object(a.useContext)(F).beeApi,C=Object(a.useContext)(yn),E=C.files,A=C.setFiles,T=C.uploadOrigin,B=C.metadata,N=C.previewUri,D=C.previewBlob,I=Object(a.useContext)(Ot),_=I.identities,L=I.setIdentities,U=Object(a.useContext)(V).status,R=Object(l.b)().enqueueSnackbar,W=Object(de.g)();if(Object(a.useEffect)((function(){S()}),[]),!U.all)return Object(p.jsx)(Xe,{});if(!E.length)return A([]),W(ir.UPLOAD,{replace:!0}),Object(p.jsx)(p.Fragment,{});var H=T.uuid?_.find((function(e){return e.uuid===T.uuid})):null,M=function(e){if(k&&E.length&&b&&B){var t=E.map(hn),n=void 0;if(1===E.length)n=E[0].name;else if(E.length>1){var a=un(E);if(a)if(a.commonPrefix){var r=a.commonPrefix.length;n=a.indexPath.substr(r),t=t.map((function(e){var t=e.path.substr(r);return Object(P.a)(Object(P.a)({},e),{},{path:t,webkitRelativePath:t,fullPath:t})}))}else n=a.indexPath}var c=E[0].lastModified,i={name:B.name,size:B.size};1===E.length&&(i.type=B.type);var o=new File([JSON.stringify(i)],On,{type:"application/json",lastModified:c});if(t.push(hn(o)),D){var s=new File([D],fn,{type:"image/jpeg",lastModified:c});t.push(hn(s))}m(!0),k.uploadFiles(b.batchID,t,{indexDocument:n}).then((function(t){zn(Wn.UPLOAD_HISTORY,t.reference,bn(E)),"UPLOAD"===T.origin?W(ir.HASH.replace(":hash",t.reference),{replace:!0}):Object(xt.f)(k,H,t.reference,b.batchID,e).then((function(){Object(xt.e)(_,H),L(Object(En.a)(_)),W(ir.FEEDS_PAGE.replace(":uuid",T.uuid),{replace:!0})}))})).catch((function(e){R("Error uploading: ".concat(e.message),{variant:"error"}),m(!1)}))}};return Object(p.jsxs)(p.Fragment,{children:[y&&Object(p.jsx)(Nn,{loading:x,feedName:H.name,onCancel:function(){return w(!1)},onProceed:function(e){M(e)}}),H&&Object(p.jsx)(Gt,{children:'Update "'.concat(H.name,'"')}),!H&&Object(p.jsx)(Gt,{children:"Upload"}),Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsx)(fa,{steps:["Preview","Add postage stamp","Upload to node"],index:n})}),(0===n||2===n)&&Object(p.jsx)(da,{metadata:B,previewUri:N}),1===n&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(ut.a,{mb:2,children:"SELECT"===o?Object(p.jsx)(ga,{onSelect:function(e){return j(e)},defaultValue:null===b||void 0===b?void 0:b.batchID}):Object(p.jsx)(ma,{onFinished:function(){return s("SELECT")}})}),Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsxs)(zt,{children:["Please refer to the"," ",Object(p.jsx)("a",{href:"https://docs.ethswarm.org/debug-api/#tag/Postage-Stamps/paths/~1stamps~1{amount}~1{depth}/post",target:"_blank",rel:"noreferrer",children:"official Bee documentation"})," ","to understand these values."]})})]}),2===n&&b&&Object(p.jsx)(wa,{stamp:b}),Object(p.jsx)(ka,{step:n,onCancel:function(){r(0),A([]),j(null),m(!1)},onGoBack:function(){return r((function(e){return e-1}))},onProceed:function(){return r((function(e){return e+1}))},onUpload:function(){"UPLOAD"===T.origin||"PRIVATE_KEY"===H.type?M():w(!0)},isUploading:x,hasStamp:Boolean(b),uploadLabel:H?"Update Feed":"Upload To Your Node",stampMode:o,setStampMode:s})]})}function Ea(){return Object(a.useContext)(V).status.all?Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)($n,{active:"UPLOAD"}),Object(p.jsx)(kn,{showHelp:!0,uploadOrigin:gn}),Object(p.jsx)(Zn,{title:"Upload History",localStorageKey:Wn.UPLOAD_HISTORY})]}):Object(p.jsx)(Xe,{})}var Aa=n(173),Pa=1e5,Ta="There may be issues with your Bee node or connection.",Ba={connectedPeers:[{minimumValue:200,explanation:"Perfect! ".concat(200," or more connected peers indicate a healthy topology."),score:2},{minimumValue:1,explanation:"Your Bee node is connected to peers, but this number should ideally be above ".concat(200,". If you have only started your Bee node, this number may increase quickly."),score:1},{minimumValue:0,explanation:"Your Bee node has not connected to any peers. "+Ta,score:0}],population:[{minimumValue:Pa,explanation:"Perfect! Your Bee node seems to have a realistic value for the network size, which means everything is working well on your end.",score:2},{minimumValue:1,explanation:"Population is usually above ".concat(Pa.toLocaleString(),". If the number does not increase within a few hours, there may be issues with your Bee node."),score:1},{minimumValue:0,explanation:"Your Bee node has no information on the network population. "+Ta,score:0}],depth:[{minimumValue:12,explanation:"Perfect! Your Bee node has the highest available depth.",score:2},{minimumValue:1,explanation:"Your Bee node is supposed to reach a depth of ".concat(12," eventually. Stagnation or decrease in this number may indicate problems with your Bee node."),score:1},{minimumValue:0,explanation:"Your Bee node has not started building its topology yet. "+Ta,score:0}]};function Na(e,t){var n,a=Ba[e],r=a[0].score,c=Object(Aa.a)(a);try{for(c.s();!(n=c.n()).done;){var i=n.value;if(t>=i.minimumValue)return{score:i.score,maximumScore:r,explanation:i.explanation}}}catch(s){c.e(s)}finally{c.f()}var o=a[a.length-1];return{score:o.score,maximumScore:r,explanation:o.explanation}}var Da=function(e){var t,n,a,r,c,i,o={connectedPeers:Na("connectedPeers",(null===(t=e.topology)||void 0===t?void 0:t.connected)||0),population:Na("population",(null===(n=e.topology)||void 0===n?void 0:n.population)||0),depth:Na("depth",(null===(a=e.topology)||void 0===a?void 0:a.depth)||0)},s=Object.values(o).reduce((function(e,t){return e+t.maximumScore}),0),l=Object.values(o).reduce((function(e,t){return e+t.score}),0),u=Math.round(l/s*100)+"%";return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(ye,{label:"Overall Health Indicator",value:u}),Object(p.jsx)(ye,{label:"Connected Peers",value:null===(r=e.topology)||void 0===r?void 0:r.connected.toString(),tooltip:o.connectedPeers.explanation}),Object(p.jsx)(ye,{label:"Population",value:null===(c=e.topology)||void 0===c?void 0:c.population.toString(),tooltip:o.population.explanation}),Object(p.jsx)(ye,{label:"Depth",value:null===(i=e.topology)||void 0===i?void 0:i.depth.toString(),tooltip:o.depth.explanation})]})};function Ia(){var e=Object(a.useContext)(V),t=e.status,n=e.latestUserVersion,r=e.isLatestBeeVersion,c=e.latestBeeVersionUrl,i=e.topology,o=e.nodeAddresses,s=e.chequebookAddress;return t.all?Object(p.jsxs)("div",{children:[Object(p.jsxs)(xe,{label:"Bee Node",defaultOpen:!0,children:[Object(p.jsx)(ye,{label:"Agent",value:Object(p.jsxs)("div",{children:[Object(p.jsx)("a",{href:"https://github.com/ethersphere/bee",rel:"noreferrer",target:"_blank",children:"Bee"})," ".concat(n||"-"," "),Object(p.jsx)(Be.a,{size:"small",variant:"outlined",href:c,target:"_blank",children:r?"latest":"update"})]})}),Object(p.jsx)(Te,{label:"Public key",value:(null===o||void 0===o?void 0:o.publicKey)||""}),Object(p.jsx)(Te,{label:"PSS public key",value:(null===o||void 0===o?void 0:o.pssPublicKey)||""}),Object(p.jsx)(Te,{label:"Overlay address (Peer ID)",value:(null===o||void 0===o?void 0:o.overlay)||""}),Object(p.jsx)(xe,{level:1,label:"Underlay addresses",children:null===o||void 0===o?void 0:o.underlay.map((function(e){return Object(p.jsx)(ye,{value:e},e)}))})]}),Object(p.jsxs)(xe,{label:"Blockchain",defaultOpen:!0,children:[Object(p.jsx)(Te,{label:"Ethereum address",value:(null===o||void 0===o?void 0:o.ethereum)||""}),Object(p.jsx)(Te,{label:"Chequebook contract address",value:(null===s||void 0===s?void 0:s.chequebookAddress)||""})]}),Object(p.jsx)(xe,{label:"Connectivity",defaultOpen:!0,children:Object(p.jsx)(Da,{topology:i})})]}):Object(p.jsx)(Xe,{})}function _a(){var e=Object(a.useContext)(F),t=e.apiUrl,n=e.apiDebugUrl,r=e.setApiUrl,c=e.setDebugApiUrl,i=e.lockedApiSettings;return Object(p.jsxs)(xe,{label:"API Settings",defaultOpen:!0,children:[Object(p.jsx)(Mn,{label:"Bee API",value:t,onConfirm:r,locked:i}),Object(p.jsx)(Mn,{label:"Bee Debug API",value:n,onConfirm:c,locked:i})]})}var La=Object(x.a)((function(e){return Object(m.a)({root:{width:"100%",padding:0,margin:0,marginTop:e.spacing(4),"&:first-child":{marginTop:0}},rootLevel1:{marginTop:e.spacing(1)},rootLevel2:{marginTop:e.spacing(.5)},header:{backgroundColor:e.palette.background.paper},contentLevel0:{marginTop:e.spacing(1)},contentLevel12:{marginTop:e.spacing(.25)},infoText:{color:"#c9c9c9"}})}));function Ua(e){var t=e.children,n=e.expandable,r=e.defaultOpen,c=La(),i=Object(a.useState)(Boolean(r)),o=Object(f.a)(i,2),s=o[0],l=o[1];return Object(p.jsxs)("div",{className:"".concat(c.root," ").concat(c.rootLevel2),children:[Object(p.jsxs)(be.a,{button:!0,onClick:function(){l(!s)},className:c.header,children:[t,s?Object(p.jsx)(pe.a,{}):Object(p.jsx)(Oe.a,{})]}),Object(p.jsx)(y.a,{in:s,timeout:"auto",unmountOnExit:!0,children:Object(p.jsx)("div",{className:c.contentLevel12,children:n})})]})}var Ra=function(e){var t=e.postageStamps;return null===t?null:Object(p.jsx)(xe,{label:"Postage Stamps",defaultOpen:!0,children:t.map((function(e){return Object(p.jsx)(Ua,{expandable:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Te,{label:"Batch ID",value:e.batchID}),Object(p.jsx)(ye,{label:"Depth",value:String(e.depth)}),Object(p.jsx)(ye,{label:"Capacity",value:"".concat(dn(4096*Math.pow(2,e.depth)*e.usage)," / ").concat(dn(4096*Math.pow(2,e.depth)))}),Object(p.jsx)(ye,{label:"Amount",value:parseInt(e.amount,10).toLocaleString()})]}),children:Object(p.jsx)(ya,{stamp:e,shorten:!0})},e.batchID)}))})},Fa=Object(x.a)((function(){return Object(m.a)({root:{width:"100%",display:"grid"},actions:{display:"flex",width:"100%",flex:"0 1 auto",flexWrap:"wrap",alignItems:"center"}})}));function Wa(){var e=Fa(),t=Object(de.g)(),n=Object(a.useContext)(Pn),r=n.stamps,c=n.isLoading,i=n.error,o=n.start,s=n.stop,l=Object(a.useContext)(V).status;if(Object(a.useEffect)((function(){if(l.all)return o(),function(){return s()}}),[l]),!l.all)return Object(p.jsx)(Xe,{});return Object(p.jsxs)("div",{className:e.root,children:[i&&Object(p.jsxs)(Z.a,{style:{textAlign:"center",padding:"50px"},children:["Error loading postage stamps details: ",i.message]}),!i&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsxs)("div",{className:e.actions,children:[Object(p.jsx)(ht,{onClick:function(){t(ir.STAMPS_NEW)},iconType:dt.a,children:"Buy New Postage Stamp"}),Object(p.jsx)("div",{style:{height:"5px"},children:c&&Object(p.jsx)(K.a,{})})]}),Object(p.jsx)(Ra,{postageStamps:r})]})]})}function Ha(){var e=Object(de.g)();return Object(p.jsxs)("div",{children:[Object(p.jsx)(Gt,{children:"Buy new postage stamp"}),Object(p.jsx)(ma,{onFinished:function(){e(ir.STAMPS)}})]})}var Ma=n(355),Va=["children","value","index"];function za(e){var t=e.children,n=e.value,a=e.index,r=Object(Ma.a)(e,Va);return Object(p.jsx)("div",Object(P.a)(Object(P.a)({role:"tabpanel",hidden:n!==a},r),{},{children:n===a&&t}))}var qa=Object(x.a)((function(e){return Object(m.a)({root:{flexGrow:1},content:{marginTop:e.spacing(2)}})}));function Ya(e){var t=e.values,n=e.index,a=e.indexChanged,c=qa(),i=r.a.useState(n||0),o=Object(f.a)(i,2),s=o[0],l=o[1],u=void 0!==n?n:s;return Object(p.jsxs)("div",{className:c.root,children:[Object(p.jsx)(Kn.a,{value:u,onChange:function(e,t){a?a(t):l(t)},variant:"fullWidth",children:t.map((function(e,t){var n=e.label;return Object(p.jsx)(Jn.a,{label:n},t)}))}),Object(p.jsx)("div",{className:c.content,children:t.map((function(e,t){var n=e.component;return Object(p.jsx)(za,{value:u,index:t,children:n},t)}))})]})}var Ga,Za,Ka=n(915),Ja=function(e){return Object(p.jsx)("div",{style:{textAlign:"left"},children:Object(p.jsx)(Ka.a,{language:e.language,showLineNumbers:e.showLineNumbers,children:e.code})})};!function(e){e[e.macOS=0]="macOS",e[e.Linux=1]="Linux",e[e.Windows=2]="Windows",e[e.iOS=3]="iOS",e[e.Android=4]="Android"}(Ga||(Ga={})),function(e){e[e.macOS=Ga.macOS]="macOS",e[e.Linux=Ga.Linux]="Linux"}(Za||(Za={}));var Xa={platform:Za.macOS,setPlatform:function(){}},$a=Object(a.createContext)(Xa);$a.Consumer;function Qa(e){var t=e.children,n=Object(a.useState)(Za.Linux),r=Object(f.a)(n,2),c=r[0],i=r[1];return Object(a.useEffect)((function(){var e=function(){var e=window.navigator.userAgent,t=window.navigator.platform;return["Macintosh","MacIntel","MacPPC","Mac68K"].includes(t)?Ga.macOS:["iPhone","iPad","iPod"].includes(t)?Ga.iOS:["Win32","Win64","Windows","WinCE"].includes(t)?Ga.Windows:/Android/.test(e)?Ga.Android:/Linux/.test(t)?Ga.Linux:null}();i(function(e){return Object.keys(Za).includes(e)}(e)?e:Za.Linux)}),[]),Object(p.jsx)($a.Provider,{value:{platform:c,setPlatform:i},children:t})}function er(e){var t=Object(a.useContext)($a),n=t.platform,r=t.setPlatform;return Object(p.jsx)(Ya,{index:n,indexChanged:r,values:[{label:"Linux",component:Object(p.jsx)(Ja,{showLineNumbers:e.showLineNumbers,language:"bash",code:e.linux})},{label:"macOS",component:Object(p.jsx)(Ja,{showLineNumbers:e.showLineNumbers,language:"bash",code:e.mac})}]})}function tr(e){var t=e.isOk,n=e.size,a=e.className,r=n||"1rem";return e.isLoading?Object(p.jsx)(K.a,{size:r,className:a}):Object(p.jsx)("span",{className:a,style:{backgroundColor:t?"#1de600":"#ff3a52",height:r,width:r,borderRadius:"50%",display:"inline-block"}})}function nr(){var e=Object(a.useContext)(V),t=e.status,n=e.isLoading,r=Object(a.useContext)(F),c=r.setDebugApiUrl,i=r.apiDebugUrl,o=t.debugApiConnection;return Object(p.jsxs)(xe,{label:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tr,{isOk:o,isLoading:n})," Connection to Bee Debug API"]}),children:[Object(p.jsx)(Fn,{children:o?"The connection to the Bee nodes debug API has been successful":"We cannot connect to your nodes debug API. Please check the following to troubleshoot your issue."}),Object(p.jsx)(Mn,{label:"Bee Debug API",value:i,onConfirm:c}),!o&&Object(p.jsx)(xe,{level:1,label:"Troubleshoot",children:Object(p.jsx)(ye,{label:Object(p.jsxs)("ol",{children:[Object(p.jsx)("li",{children:"Check the status of your node by running the below command to see if your node is running."}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo systemctl status bee",mac:"brew services list"}),Object(p.jsx)("li",{children:"If your node is running, check your firewall settings to make sure that port 1635 (or your custom specified port) is bound to localhost. If your node is not running try executing the below command to start your bee node"}),Object(p.jsx)(g.a,{style:{marginTop:"10px",marginBottom:"10px"},elevation:6,variant:"filled",severity:"error",children:'Your debug node API should never be completely open to the internet. If you want to connect remotely, make sure your firewall settings are set to only allow specific trusted IP addresses and block all other ports. A simple google search for "what is my ip" will show you your computers public IP address to allow.'}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo systemctl start bee",mac:"brew services start swarm-bee"}),Object(p.jsx)("li",{children:"Run the commands to validate your node is running and see the log output."}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo systemctl status bee \njournalctl --lines=100 --follow --unit bee",mac:"brew services list \ntail -f /usr/local/var/log/swarm-bee/bee.log"}),Object(p.jsxs)("li",{children:["Lastly, check your nodes configuration settings to validate the debug API is enabled and the Cross Origin Resource Sharing (CORS) setting is configured to allow your host. Config parameter"," ",Object(p.jsx)("strong",{children:"debug-api-enable"})," must be set to ",Object(p.jsx)("strong",{children:"true"})," and"," ",Object(p.jsx)("strong",{children:"cors-allowed-origins"})," must be set to your host domain or IP (you can also use the wildcard ",Object(p.jsx)("code",{children:"cors-allowed-origins: ['*']"}),"). If edits are made to the configuration run the restart command below for changes to take effect."]}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo vi /etc/bee/bee.yaml\nsudo systemctl restart bee",mac:"sudo vi /usr/local/etc/swarm-bee/bee.yaml \nbrew services restart swarm-bee"})]})})})]})}function ar(){var e=Object(a.useContext)(F),t=e.setApiUrl,n=e.apiUrl,r=Object(a.useContext)(V),c=r.status,i=r.isLoading,o=c.apiConnection;return Object(p.jsxs)(xe,{label:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tr,{isOk:o,isLoading:i})," Connection to Bee API"]}),children:[Object(p.jsx)(Fn,{children:o?"The connection to the Bee nodes API has been successful":"Could not connect to your Bee nodes API. Please check the troubleshoot below on how you may resolve it."}),Object(p.jsx)(Mn,{label:"Bee API",value:n,onConfirm:t}),!o&&Object(p.jsx)(xe,{level:1,label:"Troubleshoot",children:Object(p.jsx)(ye,{label:Object(p.jsxs)("ol",{children:[Object(p.jsx)("li",{children:"Check the status of your node by running the below command to see if your node is running."}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo systemctl status bee",mac:"brew services list"}),Object(p.jsx)("li",{children:"If your node is running, check your firewall settings to make sure that port 1633 (or your custom specified port) is exposed to the internet. If your node is not running try executing the below command to start your bee node"}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo systemctl start bee",mac:"brew services start swarm-bee"}),Object(p.jsx)("li",{children:"Run the commands to validate your node is running and see the log output."}),Object(p.jsx)(er,{showLineNumbers:!0,linux:"sudo systemctl status bee \njournalctl --lines=100 --follow --unit bee",mac:"brew services list \ntail -f /usr/local/var/log/swarm-bee/bee.log"})]})})})]})}function rr(){var e=Object(a.useContext)(V),t=e.status,n=e.isLoading,r=e.latestUserVersion,c=e.latestPublishedVersion,i=e.latestBeeVersionUrl,o=t.version;return Object(p.jsxs)(xe,{label:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tr,{isOk:o,isLoading:n})," Bee Version"]}),children:[Object(p.jsx)(Fn,{children:o?"You are running the latest version of Bee.":Object(p.jsxs)(p.Fragment,{children:["Your Bee version is out of date. Please update to the"," ",Object(p.jsx)("a",{href:i,rel:"noreferrer",target:"_blank",children:"latest"})," ","before continuing. Rerun the installation script below to upgrade. For more information please see the"," ",Object(p.jsx)("a",{href:"https://docs.ethswarm.org/docs/installation/manual#upgrading-bee",rel:"noreferrer",target:"_blank",children:"Docs"}),".",Object(p.jsx)(er,{showLineNumbers:!0,linux:"bee version\nwget https://github.com/ethersphere/bee/releases/download/".concat(c,"/bee_").concat(c,"_amd64.deb\nsudo dpkg -i bee_").concat(c,"_amd64.deb"),mac:"bee version\nbrew tap ethersphere/tap\nbrew install swarm-bee\nbrew services start swarm-bee"})]})}),Object(p.jsx)(ye,{label:"Your Version",value:r||"-"}),Object(p.jsx)(ye,{label:"Latest Version",value:c||"-"})]})}function cr(){var e=Object(a.useContext)(V),t=e.status,n=e.isLoading,r=e.nodeAddresses,c=t.blockchainConnection;return Object(p.jsxs)(xe,{label:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tr,{isOk:c,isLoading:n})," Connection to Blockchain"]}),children:[Object(p.jsx)(Fn,{children:c?"Your node is connected to the xDai blockchain":Object(p.jsxs)(p.Fragment,{children:["Your Bee node must have access to the xDai blockchain, so that it can interact and deploy your chequebook contract. You can run"," ",Object(p.jsx)("a",{href:"https://www.xdaichain.com/",rel:"noreferrer",target:"_blank",children:"your own xDai node"}),", or use a provider instead - we recommend"," ",Object(p.jsx)("a",{href:"https://getblock.io/",rel:"noreferrer",target:"_blank",children:"Getblock"}),". By default, Bee expects a local node at http://localhost:8545. To use a provider instead, simply change the ",Object(p.jsx)("strong",{children:"swap-endpoint"})," in your configuration file."]})}),(null===r||void 0===r?void 0:r.ethereum)&&Object(p.jsx)(Te,{label:"Ethereum Address",value:null===r||void 0===r?void 0:r.ethereum})]})}var ir,or=function(){var e=Object(a.useContext)(V),t=e.status,n=e.isLoading,r=e.chequebookAddress,c=t.chequebook;return Object(p.jsxs)(xe,{label:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tr,{isOk:c,isLoading:n})," Chequebook Deployment & Funding"]}),children:[Object(p.jsx)(Fn,{children:c?"Your chequebook is deployed and funded":Object(p.jsxs)(p.Fragment,{children:["Your chequebook is either not deployed or funded. To run the node you will need xDAI and xBZZ on the xDai network. You may need to aquire BZZ (e.g. ",Object(p.jsx)("a",{href:"https://bzz.exchange/",children:"bzz.exchange"}),") and bridge it to the xDai network through the ",Object(p.jsx)("a",{href:"https://omni.xdaichain.com/bridge",children:"omni bridge"}),". To pay the transaction fees, you will also need xDAI token. You can purchase DAI on the network and bridge it to xDai network through the ",Object(p.jsx)("a",{href:"https://bridge.xdaichain.com/",children:"xDai Bridge"}),". See the"," ",Object(p.jsx)("a",{href:"https://www.xdaichain.com/#xdai-stable-chain",children:"official xDai website"})," for more information."]})}),r&&Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(Te,{label:"Chequebook Address",value:r.chequebookAddress}),Object(p.jsx)(Se,{children:Object(p.jsx)(st,{})})]})]})};function sr(){var e=Object(a.useContext)(V),t=e.status,n=e.isLoading,r=e.topology,c=t.topology;return Object(p.jsxs)(xe,{label:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(tr,{isOk:c,isLoading:n})," Connection to Peers"]}),children:[Object(p.jsx)(Fn,{children:c?"You are connected to other Bee nodes":"Your node is not connected to any peers. Please wait a bit if you just started the node, otherwise review your configuration file."}),Object(p.jsx)(Da,{topology:r})]})}function lr(){return Object(p.jsxs)("div",{children:[Object(p.jsx)(nr,{}),Object(p.jsx)(rr,{}),Object(p.jsx)(cr,{}),Object(p.jsx)(or,{}),Object(p.jsx)(ar,{}),Object(p.jsx)(sr,{})]})}function ur(){var e=Object(a.useState)(null),t=Object(f.a)(e,2),n=t[0],r=t[1],c=Object(a.useState)(!1),i=Object(f.a)(c,2),o=i[0],s=i[1],l=Object(a.useState)("https://dai.poa.network/"),u=Object(f.a)(l,2),d=u[0],b=u[1];function j(){return(j=Object(A.a)(E.a.mark((function e(){var t,n,a,r;return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.prev=1,e.next=4,fetch("http://localhost:5000/status").then((function(e){return e.json()}));case 4:return t=e.sent,n=t.address,e.next=8,fetch(d,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",method:"eth_getBalance",params:[n,"latest"],id:1})}).then((function(e){return e.json()}));case 8:if(a=e.sent,r=a.result,!(parseInt(r,16)>=1e16)){e.next=14;break}return s(!1),e.abrupt("return");case 14:return e.next=16,fetch("http://getxdai.co/".concat(n,"/0.01"),{method:"POST"});case 16:return e.prev=16,s(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,,16,19]])})))).apply(this,arguments)}function h(){return(h=Object(A.a)(E.a.mark((function e(){return E.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.prev=1,e.next=4,fetch("http://localhost:5000/config",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({"chain-enable":!0,"swap-enable":!0,"swap-endpoint":d})});case 4:return e.next=6,fetch("http://localhost:5000/restart",{method:"POST"});case 6:return e.prev=6,s(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})))).apply(this,arguments)}return Object(a.useEffect)((function(){fetch("http://localhost:1635/node").then((function(e){return e.json()})).then((function(e){return r(e)}))}),[]),n?"ultra-light"!==n.beeMode?Object(p.jsx)("div",{children:Object(p.jsx)(he.a,{children:"Already upgraded"})}):Object(p.jsxs)("div",{children:[Object(p.jsx)(ut.a,{mb:4,children:Object(p.jsx)(ht,{onClick:function(){return j.apply(this,arguments)},iconType:ae.a,loading:o,disabled:o,children:"Fund"})}),Object(p.jsx)(ut.a,{mb:2,children:Object(p.jsx)(Ft,{label:"RPC Provider",name:"rpc-provider",defaultValue:"https://dai.poa.network/",onChange:function(e){b(e.target.value)}})}),Object(p.jsx)(ht,{onClick:function(){return h.apply(this,arguments)},iconType:ae.a,loading:o,disabled:o,children:"Upgrade to Light Node"})]}):Object(p.jsx)(na,{})}!function(e){e.INFO="/",e.UPGRADE="/upgrade",e.FILES="/files",e.UPLOAD="/files/upload",e.UPLOAD_IN_PROGRESS="/files/upload/workflow",e.DOWNLOAD="/files/download",e.HASH="/files/hash/:hash",e.ACCOUNTING="/accounting",e.SETTINGS="/settings",e.STAMPS="/stamps",e.STAMPS_NEW="/stamps/new",e.STATUS="/status",e.FEEDS="/feeds",e.FEEDS_NEW="/feeds/new",e.FEEDS_UPDATE="/feeds/update/:hash",e.FEEDS_PAGE="/feeds/:uuid"}(ir||(ir={}));var dr=function(){return Object(p.jsxs)(de.c,{children:[Object(p.jsx)(de.a,{path:ir.UPLOAD_IN_PROGRESS,element:Object(p.jsx)(Ca,{})}),Object(p.jsx)(de.a,{path:ir.UPLOAD,element:Object(p.jsx)(Ea,{})}),Object(p.jsx)(de.a,{path:ir.DOWNLOAD,element:Object(p.jsx)(Qn,{})}),Object(p.jsx)(de.a,{path:ir.UPGRADE,element:Object(p.jsx)(ur,{})}),Object(p.jsx)(de.a,{path:ir.HASH,element:Object(p.jsx)(pa,{})}),Object(p.jsx)(de.a,{path:ir.ACCOUNTING,element:Object(p.jsx)(lt,{})}),Object(p.jsx)(de.a,{path:ir.SETTINGS,element:Object(p.jsx)(_a,{})}),Object(p.jsx)(de.a,{path:ir.STAMPS,element:Object(p.jsx)(Wa,{})}),Object(p.jsx)(de.a,{path:ir.STAMPS_NEW,element:Object(p.jsx)(Ha,{})}),Object(p.jsx)(de.a,{path:ir.STATUS,element:Object(p.jsx)(lr,{})}),Object(p.jsx)(de.a,{path:ir.FEEDS,element:Object(p.jsx)(Mt,{})}),Object(p.jsx)(de.a,{path:ir.FEEDS_NEW,element:Object(p.jsx)(Qt,{})}),Object(p.jsx)(de.a,{path:ir.FEEDS_UPDATE,element:Object(p.jsx)(Dn,{})}),Object(p.jsx)(de.a,{path:ir.FEEDS_PAGE,element:Object(p.jsx)(Cn,{})}),Object(p.jsx)(de.a,{path:ir.INFO,element:Object(p.jsx)(Ia,{})})]})},br=n(7),jr=n(901),hr=Object(br.a)((function(e){return{root:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),borderLeft:"4px solid rgba(0,0,0,0)","&.Mui-selected, &.Mui-selected:hover":{borderLeft:"4px solid ".concat(e.palette.primary.main),backgroundColor:"#2c2c2c",color:"#f9f9f9"}},button:{"&:hover":{backgroundColor:"#2c2c2c",color:"#f9f9f9","@media (hover: none)":{backgroundColor:"#2c2c2c",color:"#f9f9f9"}}}}}))(be.a),pr=Object(x.a)((function(e){return Object(m.a)({icon:{color:"inherit"},activeIcon:{color:e.palette.primary.main}})}));function Or(e){var t=e.iconStart,n=e.iconEnd,a=e.path,r=e.label,c=pr(),i=Object(de.f)(),o=Boolean(a&&Object(de.d)(i.pathname,a));return Object(p.jsxs)(hr,{button:!0,selected:o,disableRipple:!0,children:[Object(p.jsx)(jr.a,{className:o?c.activeIcon:c.icon,children:t}),Object(p.jsx)(je.a,{primary:r}),Object(p.jsx)(jr.a,{className:o?c.activeIcon:c.icon,children:n})]})}var fr=n(902),xr=Object(x.a)((function(e){return Object(m.a)({icon:{color:"inherit"},iconSmall:{height:e.spacing(2)},root:{height:e.spacing(4),paddingLeft:e.spacing(1),paddingRight:e.spacing(4),color:"#f9f9f9",borderLeft:"0px solid rgba(0,0,0,0)","&.Mui-selected, &.Mui-selected:hover":{borderLeft:"0px solid ".concat(e.palette.primary.main),backgroundColor:"#2c2c2c"}},rootError:{backgroundColor:"rgba(255, 58, 82, 0.25)"},button:{"&:hover":{backgroundColor:"#2c2c2c",color:"white","@media (hover: none)":{backgroundColor:"#2c2c2c",color:"white"}}},smallerText:{fontSize:"0.9rem"}})}));function mr(e){var t=e.path,n=Object(a.useContext)(V),r=n.status,c=n.isLoading,i=xr(),o=Object(de.f)(),s=Boolean(t&&Object(de.d)(o.pathname,t));return Object(p.jsxs)(be.a,{button:!0,classes:{root:"".concat(i.root," ").concat(r.all?"":i.rootError),button:i.button},selected:s,disableRipple:!0,children:[Object(p.jsx)(jr.a,{style:{marginLeft:"30px"},children:Object(p.jsx)(tr,{isOk:r.all,isLoading:c})}),Object(p.jsx)(je.a,{primary:Object(p.jsx)(he.a,{className:i.smallerText,children:"Node ".concat(r.all?"OK":"Error")})}),Object(p.jsx)(jr.a,{className:i.icon,children:r.all?null:Object(p.jsx)(fr.a,{className:i.iconSmall})})]})}var gr=[{label:"Info",path:ir.INFO,icon:ne.a},{label:"Upgrade",path:ir.UPGRADE,icon:ae.a},{label:"Files",path:ir.UPLOAD,icon:re.a},{label:"Feeds",path:ir.FEEDS,icon:ce.a},{label:"Stamps",path:ir.STAMPS,icon:ie.a},{label:"Accounting",path:ir.ACCOUNTING,icon:oe.a},{label:"Settings",path:ir.SETTINGS,icon:se.a}],vr=Object(x.a)((function(e){return Object(m.a)({root:{flexWrap:"nowrap",minHeight:"100vh",paddingTop:e.spacing(8),paddingBottom:e.spacing(8)},drawer:{width:300,flexShrink:0},drawerPaper:{width:300,backgroundColor:"#212121"},logo:{marginLeft:e.spacing(8),marginRight:e.spacing(8)},icon:{height:e.spacing(4)},iconSmall:{height:e.spacing(2)},divider:{backgroundColor:"#2c2c2c",marginLeft:e.spacing(4),marginRight:e.spacing(4)},link:{color:"#9f9f9f",textDecoration:"none","&:hover":{textDecoration:"none","@media (hover: none)":{textDecoration:"none"}}}})}));function yr(){var e=vr();return Object(p.jsx)(J.a,{className:e.drawer,variant:"permanent",anchor:"left",classes:{paper:e.drawerPaper},children:Object(p.jsxs)(X.a,{container:!0,direction:"column",justifyContent:"space-between",className:e.root,children:[Object(p.jsx)(X.a,{className:e.logo,children:Object(p.jsx)(u.b,{to:ir.INFO,children:Object(p.jsx)("img",{alt:"swarm",src:ue})})}),Object(p.jsxs)(X.a,{children:[Object(p.jsx)($.a,{children:gr.map((function(t){return Object(p.jsx)(u.b,{to:t.path,className:e.link,children:Object(p.jsx)(Or,{iconStart:Object(p.jsx)(t.icon,{className:e.icon}),path:t.path,label:t.label},t.path)},t.path)}))}),Object(p.jsx)(Q.a,{className:e.divider}),Object(p.jsx)($.a,{children:Object(p.jsx)(ee.a,{href:_.a.BEE_DOCS_HOST,target:"_blank",className:e.link,children:Object(p.jsx)(Or,{iconStart:Object(p.jsx)(le.a,{className:e.icon}),iconEnd:Object(p.jsx)(te.a,{className:e.iconSmall}),label:Object(p.jsx)("span",{children:"Docs"})})})})]}),Object(p.jsx)(X.a,{children:Object(p.jsx)(u.b,{to:ir.STATUS,className:e.link,children:Object(p.jsx)(mr,{path:ir.STATUS})})})]})})}var wr,Sr=Object(x.a)((function(e){return Object(m.a)({content:{backgroundColor:e.palette.background.default,minHeight:"100vh"}})})),kr=function(e){var t=Sr(),n=Object(a.useContext)(V).isLoading;return Object(p.jsxs)("div",{style:{display:"flex"},children:[Object(p.jsx)(yr,{}),Object(p.jsx)(Z.a,{className:t.content,children:Object(p.jsx)(O,{children:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(G,{}),n?Object(p.jsx)("div",{style:{textAlign:"center",width:"100%"},children:Object(p.jsx)(K.a,{})}):e.children]})})})]})},Cr=n(351),Er=n(181),Ar=Object(Cr.a)({palette:{type:"light",background:{default:"#efefef"},primary:{light:"#fcf2e8",main:"#dd7700",dark:Er.a[800]},secondary:{main:"#333333"}},typography:{fontFamily:["Work Sans","Montserrat","Nunito","Roboto",'"Helvetica Neue"',"Arial","sans-serif"].join(","),h1:{fontSize:"1.3rem",fontWeight:500},h2:{fontSize:"1rem",fontWeight:500},h3:{fontSize:"0.8rem",fontWeight:500},body2:{fontFamily:'"IBM Plex Mono", monospace',fontWeight:500,fontSize:"1rem"}}});Ar.overrides={MuiListItem:{button:{"&:hover":{backgroundColor:"#fcf2e8",color:(wr=Ar).palette.primary.main,"@media (hover: none)":{backgroundColor:"#fcf2e8",color:wr.palette.primary.main}}}},MuiContainer:{root:{padding:wr.spacing(8)},maxWidthXs:{padding:wr.spacing(8)},maxWidthSm:{padding:wr.spacing(8)},maxWidthMd:{padding:wr.spacing(8)},maxWidthLg:{padding:wr.spacing(8)},maxWidthXl:{padding:wr.spacing(8)}},MuiButton:{startIcon:{marginLeft:wr.spacing(1)},endIcon:{marginRight:wr.spacing(1)},outlined:{border:"none",borderRadius:wr.spacing(10),color:wr.palette.primary.main,backgroundColor:"#fcf2e8"},outlinedSizeSmall:{padding:wr.spacing(1),paddingLeft:wr.spacing(2),paddingRight:wr.spacing(2),boxShadow:"none","&:hover":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none","@media (hover: none)":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none"}}},outlinedSizeLarge:{padding:wr.spacing(4),borderRadius:0,boxShadow:"none","&:hover":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none","@media (hover: none)":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none"}}},containedSizeLarge:{padding:wr.spacing(4),borderRadius:0,boxShadow:"none","&:hover":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none","@media (hover: none)":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none"}}},containedSizeSmall:{padding:wr.spacing(1),paddingLeft:wr.spacing(2),paddingRight:wr.spacing(2),borderRadius:0,boxShadow:"none","&:hover":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none","@media (hover: none)":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none"}}},contained:{padding:wr.spacing(2),backgroundColor:"white",boxShadow:"none",borderRadius:0,"&:hover":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none","@media (hover: none)":{backgroundColor:wr.palette.primary.main,color:"white",boxShadow:"none"}},"&:focus":{backgroundColor:wr.palette.primary.main,color:"white"},"&:active":{backgroundColor:wr.palette.primary.main,color:"white"},"&:disabled":{backgroundColor:"white"}}},MuiTab:{root:{backgroundColor:wr.palette.background.paper,"&:hover":{backgroundColor:"#fcf2e8",color:wr.palette.primary.main,opacity:1},"&$selected":{fontWeight:wr.typography.fontWeightMedium}},textColorInherit:{opacity:.5}},MuiTabs:{root:{borderBottom:"none"},indicator:{backgroundColor:"transparent"}}},Ar.props={MuiTab:{disableRipple:!0},MuiButtonBase:{disableRipple:!0}};var Pr=function(e){var t=e.beeApiUrl,n=e.beeDebugApiUrl,a=e.lockedApiSettings;return Object(p.jsx)("div",{className:"App",children:Object(p.jsx)(s.a,{theme:Ar,children:Object(p.jsx)(W,{beeApiUrl:t,beeDebugApiUrl:n,lockedApiSettings:a,children:Object(p.jsx)(q,{children:Object(p.jsx)(Bn,{children:Object(p.jsx)(wn,{children:Object(p.jsx)(ft,{children:Object(p.jsx)(Qa,{children:Object(p.jsx)(l.a,{children:Object(p.jsx)(u.a,{children:Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(o.a,{}),Object(p.jsx)(kr,{children:Object(p.jsx)(dr,{})})]})})})})})})})})})})})},Tr=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,918)).then((function(t){var n=t.getCLS,a=t.getFID,r=t.getFCP,c=t.getLCP,i=t.getTTFB;n(e),a(e),r(e),c(e),i(e)}))};i.a.render(Object(p.jsx)(r.a.StrictMode,{children:Object(p.jsx)(Pr,{})}),document.getElementById("root")),Tr()}},[[802,1,2]]]);
+//# sourceMappingURL=main.8fd2d334.chunk.js.map
\ No newline at end of file
diff --git a/static/dashboard/static/js/main.8fd2d334.chunk.js.map b/static/dashboard/static/js/main.8fd2d334.chunk.js.map
new file mode 100644
index 0000000..f9550c9
--- /dev/null
+++ b/static/dashboard/static/js/main.8fd2d334.chunk.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["utils/index.ts","models/Token.ts","utils/identity.ts","config.ts","components/ErrorBoundary.tsx","providers/Settings.tsx","providers/Bee.tsx","hooks/apiHooks.tsx","components/AlertVersion.tsx","assets/logo.svg","components/ExpandableList.tsx","components/ExpandableListItem.tsx","components/ExpandableListItemActions.tsx","components/ExpandableListItemKey.tsx","components/ClipboardCopy.tsx","components/QRCodeModal.tsx","components/EthereumAddress.tsx","components/CashoutModal.tsx","pages/accounting/PeerBalances.tsx","components/TroubleshootConnectionCard.tsx","hooks/accounting.ts","components/WithdrawDepositModal.tsx","containers/WithdrawModal.tsx","containers/DepositModal.tsx","pages/accounting/index.tsx","components/SwarmButton.tsx","providers/Feeds.tsx","components/SwarmDialog.tsx","components/CloseButton.tsx","components/TitleWithClose.tsx","pages/feeds/DeleteFeedDialog.tsx","components/Code.tsx","pages/feeds/ExportFeedDialog.tsx","components/SwarmTextInput.tsx","pages/feeds/ImportFeedDialog.tsx","pages/feeds/index.tsx","components/DocumentationText.tsx","components/HistoryHeader.tsx","components/SwarmSelect.tsx","pages/feeds/CreateNewFeed.tsx","components/ExpandableListItemLink.tsx","utils/file.ts","utils/image.ts","constants.ts","providers/File.tsx","pages/files/UploadArea.tsx","pages/feeds/FeedSubpage.tsx","providers/Stamps.tsx","pages/feeds/FeedPasswordDialog.tsx","pages/feeds/UpdateFeed.tsx","components/ExpandableListItemNote.tsx","components/ExpandableListItemInput.tsx","utils/local-storage.ts","utils/hash.ts","components/History.tsx","utils/date.ts","pages/files/FileNavigation.tsx","pages/files/Download.tsx","components/Loading.tsx","components/FitImage.tsx","components/StripedWrapper.tsx","pages/files/AssetIcon.tsx","pages/files/AssetPreview.tsx","pages/files/AssetSummary.tsx","pages/files/DownloadActionBar.tsx","pages/files/Share.tsx","components/ProgressIndicator.tsx","pages/stamps/PostageStampCreation.tsx","pages/stamps/PostageStampSelector.tsx","components/Capacity.tsx","pages/stamps/PostageStamp.tsx","pages/files/StampPreview.tsx","pages/files/UploadActionBar.tsx","pages/files/Upload.tsx","pages/files/UploadLander.tsx","utils/threshold.ts","components/TopologyStats.tsx","pages/info/index.tsx","pages/settings/index.tsx","components/ExpandableElement.tsx","pages/stamps/StampsTable.tsx","pages/stamps/index.tsx","pages/stamps/CreatePostageStampPage.tsx","components/TabsContainer.tsx","providers/Platform.tsx","components/CodeBlock.tsx","components/CodeBlockTabs.tsx","components/StatusIcon.tsx","pages/status/SetupSteps/DebugConnectionCheck.tsx","pages/status/SetupSteps/NodeConnectionCheck.tsx","pages/status/SetupSteps/VersionCheck.tsx","pages/status/SetupSteps/EthereumConnectionCheck.tsx","pages/status/SetupSteps/ChequebookDeployFund.tsx","routes.tsx","pages/status/SetupSteps/PeerConnection.tsx","pages/status/index.tsx","pages/upgrade/index.tsx","components/SideBarItem.tsx","components/SideBarStatus.tsx","components/SideBar.tsx","layout/Dashboard.tsx","theme.tsx","App.tsx","reportWebVitals.ts","index.tsx"],"names":["isInteger","value","BigNumber","isBigNumber","makeBigNumber","toString","TypeError","sleepMs","ms","a","Promise","resolve","setTimeout","unwrapPromiseSettlements","promiseSettledResults","promises","values","fulfilled","filter","promise","status","rejected","map","x","reason","String","makeRetriablePromise","fn","maxRetries","delayMs","reject","tries","results","extractSwarmHash","string","matches","match","uuidV4","replace","s","c","parseInt","crypto","getRandomValues","Uint8Array","formatEnum","charAt","toUpperCase","slice","toLowerCase","replaceAll","secondsToTimeString","seconds","unit","Math","round","toFixed","convertDepthToBytes","depth","convertAmountToSeconds","amount","pricePerBlock","calculateStampPrice","Token","BigInt","shortenText","text","length","separator","POSSIBLE_DECIMALS","decimals","includes","this","dividedBy","pow","digits","toDecimal","asString","indexOfSignificantDigit","reachedDecimalPoint","i","char","t","multipliedBy","generateWallet","buffer","Wallet","Buffer","from","persistIdentity","identities","identity","existingIndex","findIndex","uuid","splice","unshift","localStorage","setItem","JSON","stringify","persistIdentitiesWithoutUpdate","convertWalletToIdentity","type","name","password","Error","getPrivateKeyString","toV3String","identityString","address","getAddressString","importIdentity","data","getWallet","wallet","startsWith","parse","getWalletFromIdentity","fromPrivateKey","trimHexString","fromV3","updateFeed","beeApi","hash","stamp","feedHash","createFeedManifest","repeat","writer","makeFeedWriter","upload","getProcessEnv","key","process","config","BEE_API_HOST","BEE_DEBUG_API_HOST","BLOCKCHAIN_EXPLORER_URL","BEE_DOCS_HOST","BEE_DISCORD_HOST","GITHUB_REPO_URL","sessionStorage","getItem","ErrorBoundary","props","state","error","errorInfo","console","message","children","Component","initialValues","apiUrl","apiDebugUrl","beeDebugApi","setApiUrl","setDebugApiUrl","lockedApiSettings","Context","createContext","Consumer","Provider","beeApiUrl","beeDebugApiUrl","extLockedApiSettings","useState","setBeeApi","setBeeDebugApi","Boolean","url","debugUrl","useEffect","Bee","e","BeeDebug","startedInDevMode","window","location","search","all","version","blockchainConnection","debugApiConnection","apiConnection","topology","chequebook","latestPublishedVersion","undefined","latestUserVersion","latestUserVersionExact","isLatestBeeVersion","latestBeeVersionUrl","apiHealth","debugApiHealth","nodeAddresses","nodeInfo","chequebookAddress","peers","chequebookBalance","peerBalances","peerCheques","settlements","chainState","latestBeeRelease","isLoading","isRefreshing","lastUpdate","start","stop","refresh","getStatus","devMode","REACT_APP_DEV_MODE","beeMode","semver","satisfies","engines","bee","includePrerelease","ethereum","connected","totalBalance","toBigNumber","isGreaterThan","Object","every","v","useContext","SettingsContext","setApiHealth","setDebugApiHealth","setNodeAddresses","setNodeInfo","setNodeTopology","setChequebookAddress","setPeers","setChequebookBalance","setPeerBalances","setPeerCheques","setSettlements","setChainState","setLatestBeeRelease","isLoadingLatestBeeRelease","setLoading","setError","axios","get","then","res","catch","finally","useLatestBeeRelease","setIsLoading","setIsRefreshing","setLastUpdate","frequency","setFrequency","coerce","chequeBalanceWrapper","getChequebookBalance","availableBalance","peerBalanceWrapper","getAllBalances","balances","peer","balance","settlementsWrapper","getAllSettlements","totalReceived","totalSent","received","sent","isConnected","getHealth","getNodeAddresses","getNodeInfo","getTopology","getPeers","getChequebookAddress","getLastCheques","getChainState","allSettled","Date","now","interval","setInterval","clearInterval","html_url","freq","useStyles","makeStyles","theme","createStyles","root","width","marginBottom","spacing","VersionAlert","classes","open","setOpen","isExactlySupportedBeeVersion","SUPPORTED_BEE_VERSION_EXACT","Collapse","in","className","Alert","severity","action","IconButton","color","size","onClick","fontSize","AlertTitle","padding","margin","marginTop","rootLevel1","rootLevel2","header","backgroundColor","palette","background","paper","contentLevel0","contentLevel12","infoText","ExpandableList","label","level","defaultOpen","info","rootLevelClass","typographyVariant","contentLevelClass","ListItem","button","ListItemText","primary","Typography","variant","style","display","ExpandLess","ExpandMore","timeout","unmountOnExit","wordBreak","copyValue","cursor","borderRadius","main","ExpandableListItem","tooltip","Grid","container","direction","justifyContent","alignItems","Tooltip","title","placement","arrow","strokeWidth","wrapper","flexDirection","flexWrap","marginRight","ExpandableListItemActions","Array","isArray","borderLeft","headerOpen","content","keyMargin","ExpandableListItemKey","copied","setCopied","toggleOpen","tooltipClickHandler","tooltipCloseHandler","splitValues","nonPrefixLength","lengthWithoutPrefix","split","hasPrefix","test","spanText","onClose","component","ClipboardCopy","enqueueSnackbar","useSnackbar","marginLeft","height","QRCodeModal","FilterCenterFocusSharp","Dialog","textAlign","DialogTitle","id","bgColor","fgColor","includeMargin","renderAs","EthereumAddress","hideBlockie","paddingTop","truncate","maxWidth","overflow","textOverflow","whiteSpace","href","transaction","target","rel","CheckoutModal","peerId","uncashedAmount","loadingCashout","setLoadingCashout","handleClose","Button","startIcon","substr","DialogContent","DialogContentText","overflowWrap","Container","CircularProgress","DialogActions","cashoutLastCheque","disabled","PeerBalances","accounting","isLoadingUncashed","totalUncashed","toFixedDecimal","total","icon","TroubleshootConnectionCard","item","align","Link","to","ROUTES","STATUS","useAccounting","setIsloadingUncashed","uncashedAmounts","setUncashedAmounts","gt","getLastCashoutAction","forEach","plus","minus","sort","b","diff","toNumber","mergeAccounting","WithdrawDepositModal","successMessage","errorMessage","dialogMessage","min","max","setAmount","amountToken","setAmountToken","amountError","setAmountError","handleAction","toBigInt","transactionHash","stopPropagation","Input","autoFocus","placeholder","fullWidth","onChange","fromDecimal","isLessThan","FormHelperText","WithdrawModal","withdrawTokens","DepositModal","depositTokens","Accounting","BeeContext","position","stroke","transition","cancelButton","spinnerWrapper","left","top","transform","SwarmButton","iconType","loading","cancel","React","createElement","join","event","currentTarget","blur","setIdentities","SwarmDialog","PaperProps","Box","p","sx","CloseButton","fontWeight","TitleWithClose","DeleteFeedDialog","onConfirm","mb","Trash","X","pre","maxHeight","prettifyString","Code","prettify","ExportFeedDialog","Download","saveAs","Blob","Clipboard","navigator","clipboard","writeText","field","border","SwarmTextInput","optional","formik","defaultValue","TextField","required","InputProps","disableUnderline","textarea","displayNone","ImportFeedDialog","textareaValue","setTextareaValue","setName","fileInputRef","useRef","feed","onFeedReady","fileReader","FileReader","file","files","onload","result","readAsText","ref","TextareaAutosize","minRows","Upload","current","click","Check","Feeds","IdentityContext","navigate","useNavigate","selectedIdentity","setSelectedIdentity","showImport","setShowImport","showExport","setShowExport","showDelete","setShowDelete","onDialogClose","updatedFeeds","onDelete","PlusSquare","FEEDS_NEW","mt","FEEDS_PAGE","Info","DocumentationText","pressable","HistoryHeader","mr","ArrowBack","select","option","SwarmSelect","options","Select","MenuProps","MenuListProps","disablePadding","square","MenuItem","identityName","CreateNewFeed","FeedsContext","getAllPostageBatch","stamps","FEEDS","onSubmit","submitForm","bgcolor","openLinkIcon","ExpandableListItemLink","link","navigationType","allowClipboard","displayValue","onNavigation","OpenInNewSharp","ArrowForward","indexHtmls","detectIndexHtml","paths","getPath","exactMatch","find","indexPath","prefix","y","commonPrefix","getHumanReadableFileSize","bytes","getAssetNameFromFiles","f","path","webkitRelativePath","packageFile","fullPath","lastModified","stream","arrayBuffer","resize","reader","readAsDataURL","src","img","Image","dimensions","imgWidth","imgHeight","ratioWidth","ratioHeight","ratio","getDimensions","elem","document","ctx","getContext","drawImage","canvas","toBlob","blob","onerror","META_FILE_NAME","PREVIEW_FILE_NAME","PREVIEW_DIMENSIONS","defaultUploadOrigin","origin","setFiles","uploadOrigin","setUploadOrigin","metadata","setMetadata","previewUri","setPreviewUri","previewBlob","setPreviewBlob","reduce","isWebsite","count","getMetadata","URL","revokeObjectURL","createObjectURL","areaWrapper","dropzone","default","outline","zIndex","opacity","buttonWrapper","UploadArea","showHelp","strictWebsiteMode","setStrictWebsiteMode","setVersion","getDropzoneInputDomElement","querySelector","onUploadCollectionClick","element","setAttribute","dropzoneClass","FilePaths","indexDocument","UPLOAD_IN_PROGRESS","filesLimit","maxFileSize","showPreviews","removeAttribute","FilePlus","FolderPlus","PlusCircle","FeedSubpage","useParams","available","setAvailable","downloadData","swarmCid","enrichStamp","postageBatch","bucketDepth","usage","utilization","usageText","ceil","setStamps","FeedPasswordDialog","feedName","onProceed","onCancel","setPassword","UpdateFeed","StampContext","selectedStamp","setSelectedStamp","showPasswordPrompt","setShowPasswordPrompt","onFeedUpdate","Reflect","batchID","batchId","Bookmark","typography","ExpandableListItemNote","HISTORY_KEYS","unselectableLabel","userSelect","WebkitUserSelect","MozUserSelect","msUserSelect","confirmLabel","confirmLabelDisabled","expandedOnly","helperText","mapperFn","locked","inputValue","setInputValue","InputBase","hidden","Search","shortenHash","sliceLength","putHistory","history","getHistorySafe","createdAt","items","parsed","isHistoryItem","determineHistoryName","History","localStorageKey","setItems","date","trim","flexGrow","leftTab","rightTab","FileNavigation","active","Tabs","newValue","DOWNLOAD","UPLOAD","Tab","referenceError","setReferenceError","identifier","manifestJs","ManifestJs","resolveFeedManifest","feedIdentifier","isManifest","getIndexDocumentPath","DOWNLOAD_HISTORY","HASH","onSwarmIdentifier","Utils","isHexString","recognizeSwarmHash","Loading","image","objectFit","FitImage","inlineStyles","alt","StripedWrapper","AssetIcon","AssetPreview","previewComponent","Web","AssetSummary","DownloadActionBar","onOpen","onDownload","onUpdateFeed","hasIndexDocument","Share","reference","downloading","setDownloading","swarmEntries","setSwarmEntries","setIndexDocument","notFound","setNotFound","preview","setPreview","getHashes","entries","previewFile","keys","downloadFile","mtdt","remoteMetadata","zip","JSZip","generateAsync","prepare","FEEDS_UPDATE","flex","todo","inProgress","done","ProgressIndicator","steps","index","pickClass","initialFormValues","PostageStampCreation","onFinished","StampsContext","getTtl","isCurrentPriceAvailable","currentPrice","Number","getPrice","isNaN","price","toSignificantDigits","actions","createPostageBatch","resetForm","setSubmitting","validate","errors","isLessThanOrEqualTo","isValid","isSubmitting","PostageStampSelector","onSelect","stampId","Capacity","integerUsage","used","free","PostageStamp","shorten","StampPreview","UploadActionBar","step","onUpload","onGoBack","isUploading","hasStamp","uploadLabel","stampMode","setStampMode","Layers","ArrowLeft","setStep","setStamp","setUploading","FileContext","uploadFiles","fls","idx","substrStart","mtd","metafile","File","push","UPLOAD_HISTORY","UploadLander","OPTIMAL_POPULATION","GENERIC_ERROR","THRESHOLDS","connectedPeers","minimumValue","explanation","score","population","toLocaleString","pickThreshold","thresholds","maximumScore","last","TopologyStats","maximumTotalScore","sum","actualTotalScore","percentageText","Status","publicKey","pssPublicKey","overlay","underlay","addr","Settings","ExpandableElement","expandable","StampsTable","postageStamps","Stamp","STAMPS_NEW","CreatePostageStampPage","STAMPS","TabPanel","other","role","SimpleTabs","indexChanged","setValue","Platforms","SupportedPlatforms","CodeBlock","language","showLineNumbers","code","macOS","Linux","platform","setPlatform","os","userAgent","iOS","Windows","Android","getOS","isSupportedPlatform","CodeBlockTabs","linux","mac","StatusIcon","isOk","NodeConnectionCheck","elevation","VersionCheck","EthereumConnectionCheck","ChequebookDeployFund","PeerConnection","NodeSetupWorkflow","UpgradePage","node","setNode","rpcProvider","setRpcProvider","fetch","r","json","method","headers","body","jsonrpc","params","balanceResponse","Send","BaseRouter","UPGRADE","ACCOUNTING","SETTINGS","INFO","StyledListItem","withStyles","paddingLeft","paddingRight","activeIcon","SideBarItem","iconStart","iconEnd","useLocation","isSelected","matchPath","pathname","selected","disableRipple","ListItemIcon","iconSmall","rootError","smallerText","navBarItems","Home","FileText","DollarSign","minHeight","paddingBottom","drawer","flexShrink","drawerPaper","logo","divider","textDecoration","SideBar","Drawer","anchor","Logo","List","Divider","Dashboard","createTheme","light","dark","orange","secondary","fontFamily","h1","h2","h3","body2","overrides","MuiListItem","MuiContainer","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl","MuiButton","endIcon","outlined","outlinedSizeSmall","boxShadow","outlinedSizeLarge","containedSizeLarge","containedSizeSmall","contained","MuiTab","fontWeightMedium","textColorInherit","MuiTabs","borderBottom","indicator","MuiButtonBase","App","ThemeProvider","CssBaseline","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","getElementById"],"mappings":"mlBAUO,SAASA,EAAUC,GACxB,OAAQC,YAAUC,YAAYF,IAAUA,EAAMD,aAAiC,kBAAVC,EAYhE,SAASG,EAAcH,GAC5B,GAAIC,YAAUC,YAAYF,GAAQ,OAAOA,EAEzC,GAAqB,kBAAVA,EAAoB,OAAO,IAAIC,YAAUD,GAEpD,GAAqB,kBAAVA,EAAoB,OAAO,IAAIC,YAAUD,EAAMI,YAG1D,GAAqB,kBAAVJ,EAAwD,OAAO,IAAIC,YAAUD,GAExF,MAAM,IAAIK,UAAJ,uEAA8EL,EAA9E,mBAA8FA,IAa/F,SAAeM,EAAtB,kC,4CAAO,WAAuBC,GAAvB,SAAAC,EAAA,sEACC,IAAIC,SAAc,SAAAC,GAAO,OAC7BC,YAAW,WACTD,MACCH,MAJA,4C,sBA4BA,SAASK,EACdC,GAEA,IAjBuCC,EAiBjCC,EAbC,CAAEC,WAJ8BF,EAiBFD,GAhBVI,QAAO,SAAAC,GAAO,MAAuB,cAAnBA,EAAQC,UAGjCC,SAFHN,EAASG,QAAO,SAAAC,GAAO,MAAuB,aAAnBA,EAAQC,WAmBpD,MAAO,CAAEH,UAHSD,EAAOC,UAAUK,KAAI,SAAAC,GAAC,OAAIA,EAAEtB,SAG1BoB,SAFHL,EAAOK,SAASC,KAAI,SAAAC,GAAC,OAAKA,EAAEC,OAASC,OAAOF,EAAEC,QAAU,oBAYpE,SAASE,EAAwBC,GAAmE,IAA7CC,EAA4C,uDAA/B,EAAGC,EAA4B,uDAAlB,IACtF,OAAO,IAAInB,QAAJ,uCAAY,WAAOC,EAASmB,GAAhB,iBAAArB,EAAA,sDACRsB,EAAQ,EADA,YACGA,EAAQH,GADX,0C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AD,8BCtBXC,GAZS,SAACC,GACnBA,GAAeA,aAAuBC,UACxC,8BAAqB1zB,MAAK,YAAkD,IAA/C2zB,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,OCHdO,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,GAAD,MAEFta,SAASua,eAAe,SAM1BX,O","file":"static/js/main.8fd2d334.chunk.js","sourcesContent":["import { BigNumber } from 'bignumber.js'\nimport { Token } from '../models/Token'\n\n/**\n * Test if value is an integer\n *\n * @param value Value to be tested if it is an integer\n *\n * @returns True if the passed in value is integer\n */\nexport function isInteger(value: unknown): value is BigNumber | bigint {\n return (BigNumber.isBigNumber(value) && value.isInteger()) || typeof value === 'bigint'\n}\n\n/**\n *Convert value into a BigNumber if not already\n *\n * @param value Value to be converted\n *\n * @throws {TypeError} if the value is not convertible to a BigNumber\n *\n * @returns BigNumber - but it may still be NaN or Infinite\n */\nexport function makeBigNumber(value: BigNumber | BigInt | number | string): BigNumber | never {\n if (BigNumber.isBigNumber(value)) return value\n\n if (typeof value === 'string') return new BigNumber(value)\n\n if (typeof value === 'bigint') return new BigNumber(value.toString())\n\n // FIXME: bee-js still returns some values as numbers and even outside of SAFE INTEGER bounds\n if (typeof value === 'number' /* && Number.isSafeInteger(value)*/) return new BigNumber(value)\n\n throw new TypeError(`Not a BigNumber or BigNumber convertible value. Type: ${typeof value} value: ${value}`)\n}\n\nexport type PromiseSettlements = {\n fulfilled: PromiseFulfilledResult[]\n rejected: PromiseRejectedResult[]\n}\n\nexport type UnwrappedPromiseSettlements = {\n fulfilled: T[]\n rejected: string[]\n}\n\nexport async function sleepMs(ms: number): Promise {\n await new Promise(resolve =>\n setTimeout(() => {\n resolve()\n }, ms),\n )\n}\n\n/**\n * Maps the returned results of `Promise.allSettled` to an object\n * with `fulfilled` and `rejected` arrays for easy access.\n *\n * The results still need to be unwrapped to get the fulfilled values or rejection reasons.\n */\nexport function mapPromiseSettlements(promises: PromiseSettledResult[]): PromiseSettlements {\n const fulfilled = promises.filter(promise => promise.status === 'fulfilled') as PromiseFulfilledResult[]\n const rejected = promises.filter(promise => promise.status === 'rejected') as PromiseRejectedResult[]\n\n return { fulfilled, rejected }\n}\n\n/**\n * Maps the returned values of `Promise.allSettled` to an object\n * with `fulfilled` and `rejected` arrays for easy access.\n *\n * For rejected promises, the value is the stringified `reason`,\n * or `'Unknown error'` string when it is unavailable.\n */\nexport function unwrapPromiseSettlements(\n promiseSettledResults: PromiseSettledResult[],\n): UnwrappedPromiseSettlements {\n const values = mapPromiseSettlements(promiseSettledResults)\n const fulfilled = values.fulfilled.map(x => x.value)\n const rejected = values.rejected.map(x => (x.reason ? String(x.reason) : 'Unknown error'))\n\n return { fulfilled, rejected }\n}\n\n/**\n * Wraps a `Promise` or async function inside a new `Promise`,\n * which retries the original function up to `maxRetries` times,\n * waiting `delayMs` milliseconds between failed attempts.\n *\n * If all attempts fail, then this `Promise` also rejects.\n */\nexport function makeRetriablePromise(fn: () => Promise, maxRetries = 3, delayMs = 1000): Promise {\n return new Promise(async (resolve, reject) => {\n for (let tries = 0; tries < maxRetries; tries++) {\n try {\n const results = await fn()\n resolve(results)\n\n return\n } catch (error) {\n if (tries < maxRetries - 1) {\n await sleepMs(delayMs)\n } else {\n reject(error)\n }\n }\n }\n })\n}\n\nexport function extractSwarmHash(string: string): string | null {\n const matches = string.match(/[a-fA-F0-9]{64,128}/)\n\n return (matches && matches[0]) || null\n}\n\nexport function uuidV4(): string {\n const pattern = '10000000-1000-4000-8000-100000000000'\n\n return pattern.replace(/[018]/g, (s: string) => {\n const c = parseInt(s, 10)\n\n return (c ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16)\n })\n}\n\nexport function formatEnum(string: string): string {\n return (string.charAt(0).toUpperCase() + string.slice(1).toLowerCase()).replaceAll('_', ' ')\n}\n\nexport function secondsToTimeString(seconds: number): string {\n let unit = seconds\n\n if (unit < 120) {\n return `${seconds} seconds`\n }\n unit /= 60\n\n if (unit < 120) {\n return `${Math.round(unit)} minutes`\n }\n unit /= 60\n\n if (unit < 48) {\n return `${Math.round(unit)} hours`\n }\n unit /= 24\n\n if (unit < 14) {\n return `${Math.round(unit)} days`\n }\n unit /= 7\n\n if (unit < 52) {\n return `${Math.round(unit)} weeks`\n }\n unit /= 52\n\n return `${unit.toFixed(1)} years`\n}\n\nexport function convertDepthToBytes(depth: number): number {\n return 2 ** depth * 4096\n}\n\nexport function convertAmountToSeconds(amount: number, pricePerBlock: number): number {\n // TODO: blocktime should come directly from the blockchain as it may differ between different networks\n const blockTime = 5 // On mainnet there is 5 seconds between blocks\n\n // See https://github.com/ethersphere/bee/blob/66f079930d739182c4c79eb6008784afeeba1096/pkg/debugapi/postage.go#L410-L413\n return (amount * blockTime) / pricePerBlock\n}\n\nexport function calculateStampPrice(depth: number, amount: bigint): Token {\n // See https://github.com/ethersphere/bee/blob/66f079930d739182c4c79eb6008784afeeba1096/pkg/debugapi/postage.go#L410-L413\n return new Token(amount * BigInt(2 ** depth)) // FIXME: the 2 ** depth should be performed on bigint already\n}\n\nexport function shortenText(text: string, length = 20, separator = '[…]'): string {\n if (text.length <= length * 2 + separator.length) {\n return text\n }\n\n return `${text.slice(0, length)}${separator}${text.slice(-length)}`\n}\n","import { BigNumber } from 'bignumber.js'\nimport { isInteger, makeBigNumber } from '../utils'\n\nconst POSSIBLE_DECIMALS = [18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\ntype digits = typeof POSSIBLE_DECIMALS[number]\n\nconst BZZ_DECIMALS = 16\n\nexport class Token {\n private amount: BigNumber // Represented in the base units, so it is always an integer value\n private readonly decimals: digits\n\n constructor(amount: BigNumber | string | BigInt, decimals: digits = BZZ_DECIMALS) {\n const a = makeBigNumber(amount)\n\n if (!isInteger(a) || !POSSIBLE_DECIMALS.includes(decimals)) throw new TypeError('Not a valid token values')\n\n this.amount = a\n this.decimals = decimals\n }\n\n /**\n * Construct new Token from a digit representation\n *\n * @param amount Amount of a token in the digits (1 token = 10^decimals)\n * @param decimals Number of decimals for the token (must be integer)\n *\n * @throws {TypeError} If the decimals is not an integer or the amount after conversion is not an integer\n *\n * @returns new Token\n */\n static fromDecimal(amount: BigNumber | string | BigInt, decimals: digits = BZZ_DECIMALS): Token | never {\n const a = makeBigNumber(amount)\n\n // No need to do any validation here, it is done when the new token is created\n const t = a.multipliedBy(new BigNumber(10).pow(decimals))\n\n return new Token(t, decimals)\n }\n\n get toBigInt(): BigInt {\n return BigInt(this.amount.toFixed(0))\n }\n\n get toString(): string {\n return this.amount.toFixed(0)\n }\n\n get toBigNumber(): BigNumber {\n return new BigNumber(this.amount)\n }\n\n get toDecimal(): BigNumber {\n return this.amount.dividedBy(new BigNumber(10).pow(this.decimals))\n }\n\n toFixedDecimal(digits = 7): string {\n return this.toDecimal.toFixed(digits)\n }\n\n toSignificantDigits(digits = 4): string {\n const asString = this.toDecimal.toFixed(16)\n\n let indexOfSignificantDigit = -1\n let reachedDecimalPoint = false\n\n for (let i = 0; i < asString.length; i++) {\n const char = asString[i]\n\n if (char === '.') {\n reachedDecimalPoint = true\n indexOfSignificantDigit = i + 1\n } else if (reachedDecimalPoint && char !== '0') {\n indexOfSignificantDigit = i\n break\n }\n }\n\n return asString.slice(0, indexOfSignificantDigit + digits)\n }\n}\n","import { Bee, Reference } from '@ethersphere/bee-js'\nimport Wallet from 'ethereumjs-wallet'\nimport { uuidV4 } from '.'\nimport { Identity, IdentityType } from '../providers/Feeds'\n\nexport function generateWallet(): Wallet {\n const buffer = new Uint8Array(32)\n crypto.getRandomValues(buffer)\n const wallet = new Wallet(Buffer.from(buffer))\n\n return wallet\n}\n\nexport function persistIdentity(identities: Identity[], identity: Identity): void {\n const existingIndex = identities.findIndex(x => x.uuid === identity.uuid)\n\n if (existingIndex !== -1) {\n identities.splice(existingIndex, 1)\n }\n identities.unshift(identity)\n localStorage.setItem('feeds', JSON.stringify(identities))\n}\n\nexport function persistIdentitiesWithoutUpdate(identities: Identity[]): void {\n localStorage.setItem('feeds', JSON.stringify(identities))\n}\n\nexport async function convertWalletToIdentity(\n identity: Wallet,\n type: IdentityType,\n name: string,\n password?: string,\n): Promise {\n if (type === 'V3' && !password) {\n throw Error('V3 passwords require password')\n }\n\n const identityString =\n type === 'PRIVATE_KEY' ? identity.getPrivateKeyString() : await identity.toV3String(password as string)\n\n return {\n uuid: uuidV4(),\n name,\n type: password ? 'V3' : 'PRIVATE_KEY',\n address: identity.getAddressString(),\n identity: identityString,\n }\n}\n\nexport async function importIdentity(name: string, data: string): Promise {\n if (data.length === 64) {\n const wallet = await getWallet('PRIVATE_KEY', data)\n\n return {\n uuid: uuidV4(),\n name,\n type: 'PRIVATE_KEY',\n identity: data,\n address: wallet.getAddressString(),\n }\n }\n\n if (data.length === 66 && data.toLowerCase().startsWith('0x')) {\n const wallet = await getWallet('PRIVATE_KEY', data.slice(2))\n\n return { uuid: uuidV4(), name, type: 'PRIVATE_KEY', identity: data, address: wallet.getAddressString() }\n }\n try {\n const { address } = JSON.parse(data)\n\n return { uuid: uuidV4(), name, type: 'V3', identity: data, address }\n } catch {\n return null\n }\n}\n\nfunction getWalletFromIdentity(identity: Identity, password?: string): Promise {\n return getWallet(identity.type, identity.identity, password)\n}\n\nasync function getWallet(type: IdentityType, data: string, password?: string): Promise {\n return type === 'PRIVATE_KEY'\n ? Wallet.fromPrivateKey(Buffer.from(trimHexString(data), 'hex'))\n : await Wallet.fromV3(data, password as string)\n}\n\nexport async function updateFeed(\n beeApi: Bee,\n identity: Identity,\n hash: string,\n stamp: string,\n password?: string,\n): Promise {\n const wallet = await getWalletFromIdentity(identity, password)\n\n if (!identity.feedHash) {\n identity.feedHash = await beeApi.createFeedManifest(stamp, 'sequence', '00'.repeat(32), wallet.getAddressString())\n }\n\n const writer = beeApi.makeFeedWriter('sequence', '00'.repeat(32), wallet.getPrivateKeyString())\n await writer.upload(stamp, hash as Reference)\n}\n\nfunction trimHexString(string: string): string {\n if (string.toLowerCase().startsWith('0x')) {\n return string.slice(2)\n }\n\n return string\n}\n","function getProcessEnv(key: string): string | undefined | false {\n return typeof process === 'object' && process.env[key]\n}\n\nclass Config {\n public readonly BEE_API_HOST: string\n public readonly BEE_DEBUG_API_HOST: string\n public readonly BLOCKCHAIN_EXPLORER_URL: string\n public readonly BEE_DOCS_HOST: string\n public readonly BEE_DISCORD_HOST: string\n public readonly GITHUB_REPO_URL: string\n\n constructor() {\n this.BEE_API_HOST =\n sessionStorage.getItem('api_host') || getProcessEnv('REACT_APP_BEE_HOST') || 'http://localhost:1633'\n this.BEE_DEBUG_API_HOST =\n sessionStorage.getItem('debug_api_host') || getProcessEnv('REACT_APP_BEE_DEBUG_HOST') || 'http://localhost:1635'\n this.BLOCKCHAIN_EXPLORER_URL =\n getProcessEnv('REACT_APP_BLOCKCHAIN_EXPLORER_URL') || 'https://blockscout.com/xdai/mainnet'\n this.BEE_DOCS_HOST = getProcessEnv('REACT_APP_BEE_DOCS_HOST') || 'https://docs.ethswarm.org/docs/'\n this.BEE_DISCORD_HOST = getProcessEnv('REACT_APP_BEE_DISCORD_HOST') || 'https://discord.gg/eKr9XPv7'\n this.GITHUB_REPO_URL =\n getProcessEnv('REACT_APP_BEE_GITHUB_REPO_URL') || 'https://api.github.com/repos/ethersphere/bee'\n }\n}\n\nexport const config = new Config()\n\nexport default config\n","import { Component, ErrorInfo, ReactElement } from 'react'\n\ninterface Props {\n children: ReactElement\n}\n\ninterface State {\n error: Error | null\n}\n\nexport default class ErrorBoundary extends Component {\n constructor(props: Props) {\n super(props)\n this.state = { error: null }\n }\n\n static getDerivedStateFromError(error: Error): { error: Error } {\n // Update state so the next render will show the fallback UI.\n return { error }\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo): void {\n // You can also log the error to an error reporting service\n console.error({ error, errorInfo }) // eslint-disable-line\n }\n\n render(): ReactElement {\n if (this.state.error) {\n // You can render any custom fallback UI\n return
Something went wrong. Error: {this.state.error.message}
\n {\n setOpen(false)\n }}\n >\n \n \n }\n >\n Warning\n Your Bee node version ({latestUserVersionExact}) does not exactly match the Bee version we tested\n the Bee Dashboard against ({SUPPORTED_BEE_VERSION_EXACT}). Please note that some functionality\n may not work properly.\n \n
\n \n \n {/* This has to be wrapped in two spans otherwise either the tooltip or the highlighting does not work*/}\n \n \n {splitValues.map((s, i) => (\n \n {s}\n \n ))}\n \n \n \n \n
\n \n \n \n )\n}\n","import type { ReactElement } from 'react'\nimport IconButton from '@material-ui/core/IconButton'\nimport { CopyToClipboard } from 'react-copy-to-clipboard'\nimport { Clipboard } from 'react-feather'\nimport { useSnackbar } from 'notistack'\n\ninterface Props {\n value: string\n}\n\nexport default function ClipboardCopy({ value }: Props): ReactElement {\n const { enqueueSnackbar } = useSnackbar()\n const handleCopy = () => enqueueSnackbar(`Copied: ${value}`, { variant: 'success' })\n\n return (\n
\n Create new feed\n \n \n To create a feed you will need to create an identity. Please refer to the{' '}\n \n official Bee documentation\n {' '}\n to understand how feeds work.\n \n \n \n {({ submitForm, values }) => (\n \n )}\n \n