diff --git a/index.html b/index.html index b1fdac3..542a103 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -LSIO-Nano-Wallet
\ No newline at end of file +LSIO-Nano-Wallet
\ No newline at end of file diff --git a/js/app.3d5feb3a.js b/js/app.3d5feb3a.js new file mode 100644 index 0000000..b480a44 --- /dev/null +++ b/js/app.3d5feb3a.js @@ -0,0 +1,2 @@ +(function(t){function e(e){for(var n,r,o=e[0],c=e[1],l=e[2],u=0,p=[];u-1:t.key},on:{change:function(e){var a=t.key,n=e.target,s=!!n.checked;if(Array.isArray(a)){var i=null,r=t._i(a,i);n.checked?r<0&&(t.key=a.concat([i])):r>-1&&(t.key=a.slice(0,r).concat(a.slice(r+1)))}else t.key=s}}}):"radio"===t.logintype?a("input",{directives:[{name:"model",rawName:"v-model",value:t.key,expression:"key"}],attrs:{id:"key",name:"key",type:"radio"},domProps:{checked:t._q(t.key,null)},on:{change:function(e){t.key=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:t.key,expression:"key"}],attrs:{id:"key",name:"key",type:t.logintype},domProps:{value:t.key},on:{input:function(e){e.target.composing||(t.key=e.target.value)}}}),a("span",{staticClass:"eye",on:{click:t.togglevisibility}},[a("span",{class:{active:"password"===t.logintype}},[a("i",{staticClass:"far fa-eye"})]),a("span",{class:{active:"text"===t.logintype}},[a("i",{staticClass:"far fa-eye-slash"})])])]),a("button",{staticClass:"openwallet btn",attrs:{type:"button"},on:{click:t.openWallet}},[t._v("Open Wallet")])]),a("div",{attrs:{id:"buttons"}},[a("router-link",{staticClass:"genwallet",attrs:{to:"/"+t.$route.params.node+"/generate"}},[t._v("Generate Wallet")])],1)]),a("div",{staticClass:"page",class:{active:!0===t.open},attrs:{id:"wallet"}},[a("div",{attrs:{id:"powstatus"}},[a("div",{staticClass:"status busy",class:{active:!1===t.ready}},[t._v("Calculating Work "),a("i",{staticClass:"fas fa-spinner fa-spin"})]),a("div",{staticClass:"status ready",class:{active:!0===t.ready}},[t._v("Ready "),a("i",{staticClass:"fas fa-check"})])]),a("div",{staticClass:"inner"},[a("div",{staticClass:"block"},[a("div",{staticClass:"headingtitle top"},[a("span",{attrs:{id:"closewallet"},on:{click:t.logout}},[a("i",{staticClass:"fal fa-sign-out fa-flip-horizontal"})]),a("span",[t._v("Wallet")]),a("span",{staticClass:"refresh rotate",class:{down:t.isActive},on:{click:t.refresh}},[a("i",{staticClass:"fal fa-sync"})])]),a("simplebar",{staticClass:"block pending"},[a("div",{attrs:{id:"output"}},[a("div",{staticClass:"balance"},[a("div",{staticClass:"raw",class:{active:t.balanceextra},on:{click:function(e){return t.copyToClipboard(t.address)}}},[t._v(t._s(t.address))]),a("div",{staticClass:"value",domProps:{innerHTML:t._s(t.abbreviateNumber(t.balance))}}),a("div",{staticClass:"raw",class:{active:t.balanceextra}},[t._v(t._s(t.balance))]),a("a",{staticClass:"balanceextra",attrs:{href:""},on:{click:function(e){e.preventDefault(),t.balanceextra=!t.balanceextra}}},[a("i",{staticClass:"fal fa-ellipsis-h",attrs:{"data-fa-transform":"grow-20"}})])])]),a("div",{staticClass:"headingtitle showmobile"},[t._v("History")]),t._l(t.pending,(function(e,n){return a("transaction",{key:n,attrs:{index:n,transaction:e,type:"pending"},on:{blockdetails:function(e){t.blockdetails=e},receive:t.refreshDetails}})}))],2)],1),a("simplebar",{staticClass:"block history"},[a("div",{staticClass:"headingtitle hidemobile"},[t._v("History")]),t._l(t.history,(function(e,n){return a("transaction",{key:n,attrs:{index:n,transaction:e,type:e.type},on:{blockdetails:function(e){t.blockdetails=e}}})}))],2)],1),a("div",{staticClass:"menu",attrs:{id:"walletmenu"}},[a("div",{staticClass:"bg"}),a("div",{staticClass:"content"},[a("div",{staticClass:"tab",attrs:{"data-tab":"#receive"},on:{click:function(e){t.receive=!0}}},[t._m(0),a("span",[t._v("Receive")])]),a("div",{staticClass:"tab",attrs:{"data-tab":"#send"},on:{click:function(e){t.send=!0}}},[t._m(1),a("span",[t._v("Send")])]),a("div",{staticClass:"tab",attrs:{"data-tab":"#settings"},on:{click:function(e){t.settings=!0}}},[t._m(2),a("span",[t._v("Settings")])])])])]),a("div",{staticClass:"page",class:{active:!1!==t.send},attrs:{id:"send"}},[a("a",{staticClass:"close",on:{click:function(e){t.send=!1}}},[a("i",{staticClass:"fal fa-times"})]),a("send",{on:{close:function(e){t.send=!1}}})],1),a("div",{staticClass:"page",class:{active:!1!==t.settings},attrs:{id:"settings"}},[a("a",{staticClass:"close",on:{click:function(e){t.settings=!1}}},[a("i",{staticClass:"fal fa-times"})]),a("settings",{attrs:{representative:t.representative},on:{change:t.refreshDetails}})],1),a("div",{staticClass:"page",class:{active:!1!==t.receive},attrs:{id:"receive"}},[a("a",{staticClass:"close",on:{click:function(e){t.receive=!1}}},[a("i",{staticClass:"fal fa-times"})]),a("receive",{attrs:{address:t.address}})],1),a("div",{staticClass:"page",class:{active:null!==t.blockdetails},attrs:{id:"blockdetails"}},[a("a",{staticClass:"close",on:{click:function(e){t.blockdetails=null}}},[a("i",{staticClass:"fal fa-times"})]),a("block-state",{attrs:{details:t.blockdetails}})],1)])},h=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"menuicon"},[a("i",{staticClass:"fal fa-wallet",attrs:{"data-fa-transform":"grow-8"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"menuicon"},[a("i",{staticClass:"fal fa-coins",attrs:{"data-fa-transform":"grow-8"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"menuicon"},[a("i",{staticClass:"fal fa-cog",attrs:{"data-fa-transform":"grow-8"}})])}],m=(a("96cf"),a("1da1")),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"transaction",class:t.type},[a("div",{staticClass:"type icon",attrs:{value:t.hash},on:{click:function(e){return t.$emit("blockdetails",t.hash)}}},["send"===t.type?a("i",{staticClass:"fal fa-minus-circle"}):"pending"===t.type?a("i",{staticClass:"fal fa-exclamation-circle"}):a("i",{staticClass:"fal fa-plus-circle"})]),a("div",{staticClass:"innerdetails"},[a("div",{staticClass:"amount"},[a("div",{staticClass:"value",attrs:{title:t.rawValue},domProps:{innerHTML:t._s(t.formattedValue)}},[a("i",{staticClass:"fal fa-coin"})]),"pending"!==t.type?a("div",{staticClass:"type"},[t._v(t._s(t.transactionStatus(t.transaction.type)))]):t._e(),"pending"===t.type?a("div",{staticClass:"type"},[null!==t.privatekey?a("button",{staticClass:"pocket",on:{click:t.receive}},[t._v("Receive")]):a("div",{},[t._v("Pending")])]):t._e()]),a("div",{staticClass:"address"},["pending"!==t.type?a("span",{on:{click:function(e){return t.link("address",t.transaction.account)}}},[t._v(t._s(t.formattedDate)+" "+t._s(t.abbreviateAddress(t.transaction.account)))]):t._e(),"pending"===t.type?a("span",{on:{click:function(e){return t.link("address",t.transaction.source)}}},[t._v(t._s(t.abbreviateAddress(t.transaction.source)))]):t._e()])])])},k=[],g=(a("a9e3"),a("b680"),a("174c")),y=(a("fb6a"),a("6612")),C={data:function(){return{rawconv:{from:"raw",to:"Nano"},nanoconv:{from:"Nano",to:"raw"}}},computed:{},mounted:function(){},methods:{abbreviateNumber:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return 2===e?y(t).format("0.[00]a"):y(t).format("0.[00000000000000000000]a")},copyToClipboard:function(t){var e=document.createElement("textarea");e.innerHTML=t,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),alert("Copied to clipboard")},link:function(t,e){var a=window.location.origin,n=this.$route.params.node;"address"==t&&window.open(a+"/#/"+n+"/address/"+e),"block"==t&&window.open(a+"/#/"+n+"/block/"+e)},abbreviateAddress:function(t){return t.substring(0,11)+"..."+t.slice(t.length-6)},highlightAddress:function(t){if(null!==t&&void 0!==t){var e=t.length-6;return''+t.substring(0,11)+""+t.substring(11,e)+''+t.slice(t.length-6)+""}return null},transactionStatus:function(t){return"send"===t?"Sent":"receive"===t?"Received":void 0}}},w=a("901e"),_=a.n(w),x={name:"Transaction",props:{transaction:Object,type:String,index:[Number,String]},mixins:[C],computed:{rawValue:function(){return g["c"](this.transaction.amount,this.rawconv)},formattedValue:function(){return("send"===this.transaction.type?"-":"+")+this.abbreviateNumber(g["c"](this.transaction.amount,this.rawconv),5)},formattedDate:function(){var t=new Date(1e3*this.transaction.local_timestamp);return t.getDate()+" "+t.toLocaleString("default",{month:"short"})+" "+t.getFullYear()},pow:function(){return this.$store.state.app.pow},ready:function(){return this.$store.state.app.ready},privatekey:function(){return this.$store.state.app.privatekey},hash:function(){return"pending"===this.type?this.index:this.transaction.hash}},methods:{receive:function(){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function e(){var a,n,s,i,r,o,c,l,u,d,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null!==t.pow){e.next=2;break}return e.abrupt("return",alert("Please wait for the status to be ready"));case 2:return a=g["f"](t.privatekey),n=g["e"](a,{useNanoPrefix:!0}),s={},s["action"]="account_info",s["representative"]="true",s["account"]=n,e.next=10,t.$store.dispatch("app/rpCall",s);case 10:return i=e.sent,r="0",o="open",c="0000000000000000000000000000000000000000000000000000000000000000",l=n,"balance"in i&&(r=i.balance,o="receive",c=i.frontier,l=i.representative),u=new _.a(r).plus(new _.a(t.transaction.amount)).toFixed(),d=g["d"](t.privatekey,{work:t.pow,previous:c,representative:l,balance:u,link:t.index}),p={},p["action"]="process",p["json_block"]="true",p["subtype"]=o,p["block"]=d.block,e.next=25,t.$store.dispatch("app/rpCall",p);case 25:t.$emit("receive",!0);case 26:case"end":return e.stop()}}),e)})))()}}},$=x,R=Object(u["a"])($,b,k,!1,null,"14a1a37d",null),j=R.exports,O=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"send"},[a("div",{attrs:{id:"sendform"}},[a("label",{attrs:{for:"amount"}},[t._v("Amount:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.amount,expression:"amount"}],attrs:{type:"text",id:"amount",name:"amount"},domProps:{value:t.amount},on:{input:function(e){e.target.composing||(t.amount=e.target.value)}}}),a("label",{attrs:{for:"destination"}},[t._v("Destination:")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.destination,expression:"destination"}],attrs:{type:"text",id:"destination",name:"destination"},domProps:{value:t.destination},on:{input:function(e){e.target.composing||(t.destination=e.target.value)}}})]),a("button",{staticClass:"sendfunds btn",attrs:{type:"button"},on:{click:t.send}},[t._v("Send")]),a("button",{staticClass:"scan btn outline",attrs:{type:"button"},on:{click:t.scanQR}},[t._v("Scan QR")]),a("div",{staticClass:"page",class:{active:!1!==t.scan},attrs:{id:"scan"}},[a("a",{staticClass:"close",on:{click:t.closeScan}},[a("i",{staticClass:"fal fa-times"})]),t.loadingMsg?a("div",{attrs:{id:"loadingMessage"}},[t._v(t._s(t.loadingMsg))]):t._e(),a("canvas",{attrs:{id:"canvas"}})])])},S=[],T=(a("4160"),a("ac1f"),a("5319"),a("159b"),a("ecec")),P=a.n(T),A=document.createElement("video"),N={name:"Send",mixins:[C],props:{address:String},data:function(){return{amount:"",destination:"",scan:!1,scanner:null,canvas:null,stream:null,continue:!0,loadingMsg:"Unable to access video stream (please make sure you have a webcam enabled)"}},computed:{pow:function(){return this.$store.state.app.pow},ready:function(){return this.$store.state.app.ready},privatekey:function(){return this.$store.state.app.privatekey}},methods:{send:function(){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function e(){var a,n,s,i,r,o,c,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null!==t.pow){e.next=2;break}return e.abrupt("return",alert("Please wait for the status to be ready"));case 2:return a=g["c"](t.amount,t.nanoconv),n=g["f"](t.privatekey),s=g["e"](n,{useNanoPrefix:!0}),i={},i["action"]="account_info",i["representative"]="true",i["account"]=s,e.next=11,t.$store.dispatch("app/rpCall",i);case 11:return r=e.sent,o=new _.a(r.balance).minus(new _.a(a)).toFixed(),c=g["d"](t.privatekey,{work:t.pow,previous:r.frontier,representative:r.representative,balance:o,link:t.destination}),console.log(c),l={},l["action"]="process",l["json_block"]="true",l["subtype"]="send",l["block"]=c.block,e.next=22,t.$store.dispatch("app/rpCall",l);case 22:t.$store.commit("app/pow",null),t.$emit("close","true");case 24:case"end":return e.stop()}}),e)})))()},closeScan:function(){A.srcObject.getTracks().forEach((function(t){t.stop()})),this.scan=!1},scanQR:function(){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function e(){var a,n,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=function(){if(n.loadingMsg="Loading video...",A.readyState===A.HAVE_ENOUGH_DATA){n.loadingMsg=null,a.height=A.videoHeight,a.width=A.videoWidth,n.canvas.drawImage(A,0,0,a.width,a.height);var t=n.canvas.getImageData(0,0,a.width,a.height),e=P()(t.data,t.width,t.height,{inversionAttempts:"dontInvert"});e&&(s(e.location.topLeftCorner,e.location.topRightCorner,"#0cd21a"),s(e.location.topRightCorner,e.location.bottomRightCorner,"#0cd21a"),s(e.location.bottomRightCorner,e.location.bottomLeftCorner,"#0cd21a"),s(e.location.bottomLeftCorner,e.location.topLeftCorner,"#0cd21a"),n.destination=e.data.replace("nano:",""),A.srcObject.getTracks().forEach((function(t){t.stop()})),n.continue=!1,setTimeout((function(){n.scan=!1}),1200))}!0===n.continue&&requestAnimationFrame(i)},s=function(t,e,a){n.canvas.beginPath(),n.canvas.moveTo(t.x,t.y),n.canvas.lineTo(e.x,e.y),n.canvas.lineWidth=4,n.canvas.strokeStyle=a,n.canvas.stroke()},t.scan=!0,t.continue=!0,a=document.getElementById("canvas"),t.canvas=a.getContext("2d"),n=t,navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}}).then((function(t){A.srcObject=t,A.setAttribute("playsinline",!0),A.play(),requestAnimationFrame(i)}));case 8:case"end":return e.stop()}}),e)})))()}}},D=N,E=Object(u["a"])(D,O,S,!1,null,null,null),M=E.exports,L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"receive inner"},[a("div",{staticClass:"block"},[a("div",{staticClass:"address"},[t._v("Address: "),a("span",{staticClass:"value",on:{click:function(e){return t.copyToClipboard(t.address)}}},[a("i",{staticClass:"fad fa-clone"})]),t._v(" "),a("span",{staticClass:"value",on:{click:function(e){return t.link("address",t.address)}}},[a("i",{staticClass:"fad fa-external-link"})])]),a("div",{staticClass:"address",domProps:{innerHTML:t._s(t.highlightAddress(t.address))}})]),t._m(0)])},H=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"block"},[a("canvas",{attrs:{id:"qrcode"}})])}],B=a("d055"),W=a.n(B),q={name:"Receive",mixins:[C],props:{address:String},data:function(){return{newrep:""}},watch:{address:function(t){null!==t&&W.a.toCanvas(document.getElementById("qrcode"),"nano:"+this.address,{width:512,errorCorrectionLevel:"H"})}}},F=q,I=(a("6790"),Object(u["a"])(F,L,H,!1,null,null,null)),V=I.exports,J=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"settings inner"},[a("div",{staticClass:"block"},[a("div",{staticClass:"details"},[a("label",{attrs:{for:"representative"}},[t._v("Current Representative")]),a("a",{staticClass:"copy",attrs:{href:"#"},on:{click:function(e){return t.copyToClipboard(t.representative)}}},[a("i",{staticClass:"fad fa-clone"})]),a("div",{staticClass:"address",staticStyle:{"margin-bottom":"30px",background:"#00000014",padding:"4px 14px"},domProps:{innerHTML:t._s(t.highlightAddress(t.representative))}})]),t.change?a("div",{staticClass:"details"},[a("label",{attrs:{for:"newrep"}},[t._v("Change Representative")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newrep,expression:"newrep"}],staticClass:"newrep",attrs:{type:"text",name:"newrep"},domProps:{value:t.newrep},on:{input:function(e){e.target.composing||(t.newrep=e.target.value)}}})]):t._e(),a("div",{staticClass:"inline-buttons"},[t.change?t._e():a("button",{staticClass:"repchange btn",on:{click:function(e){t.change=!0}}},[t._v("Change Representative")]),t.change?a("button",{staticClass:"repchange btn",on:{click:t.changeRep}},[t._v("Confirm")]):t._e(),t.change?a("button",{staticClass:"repchange btn outline",on:{click:function(e){t.change=!1}}},[t._v("Cancel")]):t._e()])])])},G=[],K={name:"Settings",props:{representative:String},mixins:[C],data:function(){return{newrep:"",change:!1}},computed:{pow:function(){return this.$store.state.app.pow},privatekey:function(){return this.$store.state.app.privatekey}},methods:{changeRep:function(){var t=this;return Object(m["a"])(regeneratorRuntime.mark((function e(){var a,n,s,i,r,o,c,l,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null!==t.pow){e.next=2;break}return e.abrupt("return",alert("Please wait for the status to be ready"));case 2:return a=g["f"](t.privatekey),n=g["e"](a,{useNanoPrefix:!0}),s={},s["action"]="account_info",s["representative"]="true",s["account"]=n,e.next=10,t.$store.dispatch("app/rpCall",s);case 10:return i=e.sent,r="change",o=i.frontier,c=i.balance,l=g["d"](t.privatekey,{work:t.pow,previous:o,representative:t.newrep,balance:c,link:"0000000000000000000000000000000000000000000000000000000000000000"}),u={},u["action"]="process",u["json_block"]="true",u["subtype"]=r,u["block"]=l.block,e.next=22,t.$store.dispatch("app/rpCall",u);case 22:t.$emit("change",!0);case 23:case"end":return e.stop()}}),e)})))()}}},Q=K,U=Object(u["a"])(Q,J,G,!1,null,null,null),z=U.exports,Y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return null!==t.blockstate?a("simplebar",{attrs:{id:"breakdown"}},[a("header",{staticClass:"headingtitle"},[t._v("State Block "),a("span",{staticClass:"value",on:{click:function(e){return t.copyToClipboard(t.hash)}}},[a("i",{staticClass:"fad fa-clone"})]),a("span",{staticClass:"value",on:{click:function(e){return t.link("block",t.hash)}}},[a("i",{staticClass:"fad fa-external-link"})])]),a("div",{staticClass:"stateblock block"},[t._v(t._s(t.hash))]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Block subtype "),a("span",{staticClass:"subtype value"},[t._v(t._s(t.blockstate.subtype))])]),a("div",{staticClass:"label"},[t._v("The type of transaction that created this state block")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Account "),a("span",{staticClass:"value",on:{click:function(e){return t.copyToClipboard(t.blockstate.contents.account)}}},[a("i",{staticClass:"fad fa-clone"})]),a("span",{staticClass:"value",on:{click:function(e){return t.link("address",t.blockstate.contents.account)}}},[a("i",{staticClass:"fad fa-external-link"})])]),a("div",{staticClass:"account"},[t._v(t._s(t.blockstate.contents.account))]),a("div",{staticClass:"label"},[t._v("The account represented by this state block")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Amount "),a("span",{staticClass:"amount value",domProps:{innerHTML:t._s(t.formattedValue(t.blockstate.amount))}})]),a("div",{staticClass:"raw"},[a("span",{staticClass:"amount_raw"},[t._v(t._s(t.blockstate.amount))]),t._v(" raw")]),a("div",{staticClass:"label"},[t._v("The amount of NANO that was sent in this transaction")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Balance "),a("span",{staticClass:"balance value",domProps:{innerHTML:t._s(t.formattedValue(t.blockstate.balance))}})]),a("div",{staticClass:"raw"},[a("span",{staticClass:"balance_raw"},[t._v(t._s(t.blockstate.balance))]),t._v(" raw")]),a("div",{staticClass:"label"},[t._v("The amount of NANO that was sent in this transaction")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Representative "),a("span",{staticClass:"value",on:{click:function(e){return t.copyToClipboard(t.blockstate.contents.representative)}}},[a("i",{staticClass:"fad fa-clone"})]),a("span",{staticClass:"value",on:{click:function(e){return t.link("address",t.blockstate.contents.representative)}}},[a("i",{staticClass:"fad fa-external-link"})])]),a("div",[a("span",{staticClass:"rep_raw"},[t._v(t._s(t.blockstate.contents.representative))])]),a("div",{staticClass:"label"},[t._v("The account's representative")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Recipient "),a("span",{staticClass:"value",on:{click:function(e){return t.copyToClipboard(t.blockstate.contents.representative)}}},[a("i",{staticClass:"fad fa-clone"})]),t._v(" "),a("span",{staticClass:"value",on:{click:function(e){return t.link("address",t.blockstate.contents.link_as_account)}}},[a("i",{staticClass:"fad fa-external-link"})])]),a("div",[a("span",{staticClass:"rec_raw"},[t._v(t._s(t.blockstate.contents.link_as_account))])]),a("div",{staticClass:"label"},[t._v("The account that is receiving the transaction")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Date "),a("span",{staticClass:"value"},[t._v(t._s(t.formattedDate))])]),a("div",{staticClass:"label"},[t._v("The date and time this block was discovered (converted to your local time)")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Previous Block "),a("span",{staticClass:"value",on:{click:function(e){return t.link("block",t.blockstate.contents.previous)}}},[a("i",{staticClass:"fad fa-external-link"})])]),a("div",[t._v(" "+t._s(t.blockstate.contents.previous)+" ")]),a("div",{staticClass:"label"},[t._v("The previous block in this account's chain")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Link")]),a("div",[t._v(t._s(t.blockstate.contents.link))]),a("div",{staticClass:"label"},[t._v("The destination address encoded in hex format or the block hash if open")])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Proof of Work")]),a("div",[t._v(t._s(t.blockstate.contents.work))])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("Signature")]),a("div",[t._v(t._s(t.blockstate.contents.signature))])]),a("div",{staticClass:"block"},[a("div",{staticClass:"title"},[t._v("JSON "),a("span",{staticClass:"value",on:{click:function(e){t.copyToClipboard(JSON.stringify(t.blockstate))}}},[a("i",{staticClass:"fad fa-clone"})])]),a("div",{staticClass:"json"},[a("pre",[t._v(t._s(JSON.stringify(t.blockstate,null,4)))])])])]):t._e()},X=[],Z=a("8d3b"),tt=(a("f138"),{name:"BlockState",components:{simplebar:Z["a"]},props:{details:{default:null,type:String},static:{default:!1,type:Boolean}},mixins:[C],data:function(){return{hash:null,blockstate:null}},mounted:function(){this.static&&this.getDetails(this.$route.params.hash)},watch:{details:function(t){var e=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:null!==t?e.getDetails(t):e.blockstate=null;case 1:case"end":return a.stop()}}),a)})))()}},methods:{getDetails:function(t){var e=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n={action:"block_info",json_block:"true",hash:t},e.hash=t,a.next=4,e.$store.dispatch("app/rpCall",n);case 4:e.blockstate=a.sent;case 5:case"end":return a.stop()}}),a)})))()},formattedValue:function(t){return this.abbreviateNumber(g["c"](t,this.rawconv),5)}},computed:{formattedDate:function(){var t=new Date(1e3*this.blockstate.local_timestamp);return t.getDate()+" "+t.toLocaleString("default",{month:"short"})+" "+t.getFullYear()+" - "+t.toLocaleTimeString()}}}),et=tt,at=(a("2dca"),Object(u["a"])(et,Y,X,!1,null,"51ce3523",null)),nt=at.exports,st=a("5ba3"),it=a.n(st),rt=window.navigator.hardwareConcurrency||2,ot=Math.max(rt-1,1),ct=[];function lt(){return{key:null,open:!1,details:{},error:null,balance:0,receive:!1,genwallet:!1,send:!1,settings:!1,representative:"",blockdetails:null,address:null,logintype:"password",walletdata:null,isActive:!1,balanceextra:!1,terminate:!1}}var ut={name:"Home",components:{Transaction:j,Send:M,Receive:V,Settings:z,BlockState:nt,simplebar:Z["a"]},mixins:[C],data:function(){return lt()},watch:{open:function(t){!0===t&&null!==this.key&&(console.log("open"),this.refreshDetails(!0))},pow:function(){var t=Object(m["a"])(regeneratorRuntime.mark((function t(e,a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:!0===this.open&&e!==a&&null===e&&(console.log("pow change"),this.refreshDetails());case 1:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},mounted:function(){},computed:{loginicon:function(){return"password"===this.logintype?"fa-eye":"fa-eye-slash"},pow:function(){return this.$store.state.app.pow},ready:function(){return this.$store.state.app.ready},history:function(){return this.$store.state.app.history},pending:function(){return this.$store.state.app.pending},privatekey:function(){return this.$store.state.app.privatekey}},methods:{logout:function(){for(var t in Object.assign(this.$data,lt()),this.$store.dispatch("app/resetState"),ct)console.log("Terminate: "+t),ct[t].terminate()},refresh:function(){this.isActive=!this.isActive,this.refreshDetails()},refreshDetails:function(){var t=arguments,e=this;return Object(m["a"])(regeneratorRuntime.mark((function a(){var n,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],s=null,"frontier"in e.details&&(s=e.details.frontier),a.next=5,e.getDetails(e.privatekey);case 5:s===e.details.frontier&&!0!==n||e.genWork(e.privatekey,e.details),e.$store.dispatch("app/history",e.address),e.$store.dispatch("app/pending",e.address),e.details.balance?e.balance=g["c"](e.details.balance,e.rawconv):e.balance=0,e.representative=e.details.representative;case 10:case"end":return a.stop()}}),a)})))()},genWork:function(t,e){var a=this;return Object(m["a"])(regeneratorRuntime.mark((function n(){var s,i,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a.$store.commit("app/pow",null),a.$store.commit("app/ready",!1),"frontier"in e?(console.log("Frontier in details"),s=e.frontier):(console.log("Frontier NOT in details"),s=g["f"](t)),!window.Worker){n.next=10;break}return console.log("Calculating pow for "+s+" this may take some time"),i=function(){return new Promise((function(t){ct=[];for(var e=0;e\n
\n \n
\n\n\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=5766c158&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"wallet\"},[_c('div',{attrs:{\"type\":\"hidden\",\"id\":\"workstorage\"}}),_c('div',{staticClass:\"page active\",class:{ active: _vm.open===false },attrs:{\"id\":\"login\"}},[_c('div',{staticClass:\"title rpc\"},[_vm._v(\"RPC Server : \"),_c('span',[_vm._v(_vm._s(_vm.$route.params.node))])]),_c('div',{attrs:{\"id\":\"inputs\"}},[(_vm.error !== null)?_c('div',{staticClass:\"error\"},[_vm._v(_vm._s(_vm.error))]):_vm._e(),_c('label',{attrs:{\"for\":\"key\"}},[_vm._v(\"Private Key\")]),_c('div',{staticClass:\"login\"},[((_vm.logintype)==='checkbox')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.key),expression:\"key\"}],attrs:{\"id\":\"key\",\"name\":\"key\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.key)?_vm._i(_vm.key,null)>-1:(_vm.key)},on:{\"change\":function($event){var $$a=_vm.key,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.key=$$a.concat([$$v]))}else{$$i>-1&&(_vm.key=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.key=$$c}}}}):((_vm.logintype)==='radio')?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.key),expression:\"key\"}],attrs:{\"id\":\"key\",\"name\":\"key\",\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.key,null)},on:{\"change\":function($event){_vm.key=null}}}):_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.key),expression:\"key\"}],attrs:{\"id\":\"key\",\"name\":\"key\",\"type\":_vm.logintype},domProps:{\"value\":(_vm.key)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.key=$event.target.value}}}),_c('span',{staticClass:\"eye\",on:{\"click\":_vm.togglevisibility}},[_c('span',{class:{ active: _vm.logintype === 'password'}},[_c('i',{staticClass:\"far fa-eye\"})]),_c('span',{class:{ active: _vm.logintype === 'text'}},[_c('i',{staticClass:\"far fa-eye-slash\"})])])]),_c('button',{staticClass:\"openwallet btn\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.openWallet}},[_vm._v(\"Open Wallet\")])]),_c('div',{attrs:{\"id\":\"buttons\"}},[_c('router-link',{staticClass:\"genwallet\",attrs:{\"to\":'/' + _vm.$route.params.node + '/generate'}},[_vm._v(\"Generate Wallet\")])],1)]),_c('div',{staticClass:\"page\",class:{active: _vm.open === true},attrs:{\"id\":\"wallet\"}},[_c('div',{attrs:{\"id\":\"powstatus\"}},[_c('div',{staticClass:\"status busy\",class:{active: _vm.ready === false}},[_vm._v(\"Calculating Work \"),_c('i',{staticClass:\"fas fa-spinner fa-spin\"})]),_c('div',{staticClass:\"status ready\",class:{active: _vm.ready === true}},[_vm._v(\"Ready \"),_c('i',{staticClass:\"fas fa-check\"})])]),_c('div',{staticClass:\"inner\"},[_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"headingtitle top\"},[_c('span',{attrs:{\"id\":\"closewallet\"},on:{\"click\":_vm.logout}},[_c('i',{staticClass:\"fal fa-sign-out fa-flip-horizontal\"})]),_c('span',[_vm._v(\"Wallet\")]),_c('span',{staticClass:\"refresh rotate\",class:{ down: _vm.isActive },on:{\"click\":_vm.refresh}},[_c('i',{staticClass:\"fal fa-sync\"})])]),_c('simplebar',{staticClass:\"block pending\"},[_c('div',{attrs:{\"id\":\"output\"}},[_c('div',{staticClass:\"balance\"},[_c('div',{staticClass:\"raw\",class:{ active: _vm.balanceextra },on:{\"click\":function($event){return _vm.copyToClipboard(_vm.address)}}},[_vm._v(_vm._s(_vm.address))]),_c('div',{staticClass:\"value\",domProps:{\"innerHTML\":_vm._s(_vm.abbreviateNumber(_vm.balance))}}),_c('div',{staticClass:\"raw\",class:{ active: _vm.balanceextra }},[_vm._v(_vm._s(_vm.balance))]),_c('a',{staticClass:\"balanceextra\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.balanceextra = !_vm.balanceextra}}},[_c('i',{staticClass:\"fal fa-ellipsis-h\",attrs:{\"data-fa-transform\":\"grow-20\"}})])])]),_c('div',{staticClass:\"headingtitle showmobile\"},[_vm._v(\"History\")]),_vm._l((_vm.pending),function(transaction,index){return _c('transaction',{key:index,attrs:{\"index\":index,\"transaction\":transaction,\"type\":\"pending\"},on:{\"blockdetails\":function($event){_vm.blockdetails = $event},\"receive\":_vm.refreshDetails}})})],2)],1),_c('simplebar',{staticClass:\"block history\"},[_c('div',{staticClass:\"headingtitle hidemobile\"},[_vm._v(\"History\")]),_vm._l((_vm.history),function(transaction,index){return _c('transaction',{key:index,attrs:{\"index\":index,\"transaction\":transaction,\"type\":transaction.type},on:{\"blockdetails\":function($event){_vm.blockdetails = $event}}})})],2)],1),_c('div',{staticClass:\"menu\",attrs:{\"id\":\"walletmenu\"}},[_c('div',{staticClass:\"bg\"}),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"tab\",attrs:{\"data-tab\":\"#receive\"},on:{\"click\":function($event){_vm.receive = true}}},[_vm._m(0),_c('span',[_vm._v(\"Receive\")])]),_c('div',{staticClass:\"tab\",attrs:{\"data-tab\":\"#send\"},on:{\"click\":function($event){_vm.send = true}}},[_vm._m(1),_c('span',[_vm._v(\"Send\")])]),_c('div',{staticClass:\"tab\",attrs:{\"data-tab\":\"#settings\"},on:{\"click\":function($event){_vm.settings = true}}},[_vm._m(2),_c('span',[_vm._v(\"Settings\")])])])])]),_c('div',{staticClass:\"page\",class:{active: _vm.send !== false},attrs:{\"id\":\"send\"}},[_c('a',{staticClass:\"close\",on:{\"click\":function($event){_vm.send = false}}},[_c('i',{staticClass:\"fal fa-times\"})]),_c('send',{on:{\"close\":function($event){_vm.send = false}}})],1),_c('div',{staticClass:\"page\",class:{active: _vm.settings !== false},attrs:{\"id\":\"settings\"}},[_c('a',{staticClass:\"close\",on:{\"click\":function($event){_vm.settings = false}}},[_c('i',{staticClass:\"fal fa-times\"})]),_c('settings',{attrs:{\"representative\":_vm.representative},on:{\"change\":_vm.refreshDetails}})],1),_c('div',{staticClass:\"page\",class:{active: _vm.receive !== false},attrs:{\"id\":\"receive\"}},[_c('a',{staticClass:\"close\",on:{\"click\":function($event){_vm.receive = false}}},[_c('i',{staticClass:\"fal fa-times\"})]),_c('receive',{attrs:{\"address\":_vm.address}})],1),_c('div',{staticClass:\"page\",class:{active: _vm.blockdetails !== null},attrs:{\"id\":\"blockdetails\"}},[_c('a',{staticClass:\"close\",on:{\"click\":function($event){_vm.blockdetails = null}}},[_c('i',{staticClass:\"fal fa-times\"})]),_c('block-state',{attrs:{\"details\":_vm.blockdetails}})],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"menuicon\"},[_c('i',{staticClass:\"fal fa-wallet\",attrs:{\"data-fa-transform\":\"grow-8\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"menuicon\"},[_c('i',{staticClass:\"fal fa-coins\",attrs:{\"data-fa-transform\":\"grow-8\"}})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"menuicon\"},[_c('i',{staticClass:\"fal fa-cog\",attrs:{\"data-fa-transform\":\"grow-8\"}})])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"transaction\",class:_vm.type},[_c('div',{staticClass:\"type icon\",attrs:{\"value\":_vm.hash},on:{\"click\":function($event){return _vm.$emit('blockdetails', _vm.hash)}}},[(_vm.type === 'send')?_c('i',{staticClass:\"fal fa-minus-circle\"}):(_vm.type === 'pending')?_c('i',{staticClass:\"fal fa-exclamation-circle\"}):_c('i',{staticClass:\"fal fa-plus-circle\"})]),_c('div',{staticClass:\"innerdetails\"},[_c('div',{staticClass:\"amount\"},[_c('div',{staticClass:\"value\",attrs:{\"title\":_vm.rawValue},domProps:{\"innerHTML\":_vm._s(_vm.formattedValue)}},[_c('i',{staticClass:\"fal fa-coin\"})]),(_vm.type !== 'pending')?_c('div',{staticClass:\"type\"},[_vm._v(_vm._s(_vm.transactionStatus(_vm.transaction.type)))]):_vm._e(),(_vm.type === 'pending')?_c('div',{staticClass:\"type\"},[(_vm.privatekey !== null)?_c('button',{staticClass:\"pocket\",on:{\"click\":_vm.receive}},[_vm._v(\"Receive\")]):_c('div',{},[_vm._v(\"Pending\")])]):_vm._e()]),_c('div',{staticClass:\"address\"},[(_vm.type !== 'pending')?_c('span',{on:{\"click\":function($event){return _vm.link('address',_vm.transaction.account)}}},[_vm._v(_vm._s(_vm.formattedDate)+\" \"+_vm._s(_vm.abbreviateAddress(_vm.transaction.account)))]):_vm._e(),(_vm.type === 'pending')?_c('span',{on:{\"click\":function($event){return _vm.link('address',_vm.transaction.source)}}},[_vm._v(_vm._s(_vm.abbreviateAddress(_vm.transaction.source)))]):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var numeral = require('numeral')\n\nexport const serverMixin = {\n data() {\n return {\n rawconv: {from:'raw',to:'Nano'},\n nanoconv: {from:'Nano',to:'raw'}\n }\n },\n\n computed: {\n },\n mounted() {\n },\n\n methods: {\n \n abbreviateNumber (number, precision = 2) {\n if (precision === 2) {\n return numeral(number).format('0.[00]a')\n }\n return numeral(number).format('0.[00000000000000000000]a')\n\n //return scaled.toFixed(precision) + '' + suffix + '';\n },\n \n copyToClipboard(text) {\n\n let input = document.createElement('textarea');\n input.innerHTML = text;\n document.body.appendChild(input);\n input.select();\n document.execCommand('copy');\n document.body.removeChild(input);\n alert('Copied to clipboard')\n\n },\n \n link(type,data) {\n const baseurl = window.location.origin;\n const server = this.$route.params.node;\n if (type == 'address'){\n\twindow.open(baseurl + '/#/' + server + '/address/' + data);\n }\n if (type == 'block'){\n window.open(baseurl + '/#/' + server + '/block/' + data);\n }\n },\n\n /*async keyFromClipboard() {\n try {\n const text = await navigator.clipboard.readText()\n this.key = text\n } catch(e) {\n alert('This bowser does not support pasting from clipboard')\n }\n },*/\n \n abbreviateAddress (address) {\n return address.substring(0, 11) + '...' + address.slice(address.length - 6)\n },\n\n highlightAddress (address) {\n if (address !== null && address !== undefined) {\n const end = address.length - 6;\n return '' + address.substring(0, 11) + '' + address.substring(11, end) + '' + address.slice(address.length - 6) + ''\n }\n return null\n },\n \n transactionStatus (value) {\n if (value === 'send') return 'Sent'\n if (value === 'receive') return 'Received'\n }\n \n }\n}\n","\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Transaction.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Transaction.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Transaction.vue?vue&type=template&id=14a1a37d&scoped=true&\"\nimport script from \"./Transaction.vue?vue&type=script&lang=js&\"\nexport * from \"./Transaction.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"14a1a37d\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"send\"},[_c('div',{attrs:{\"id\":\"sendform\"}},[_c('label',{attrs:{\"for\":\"amount\"}},[_vm._v(\"Amount:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.amount),expression:\"amount\"}],attrs:{\"type\":\"text\",\"id\":\"amount\",\"name\":\"amount\"},domProps:{\"value\":(_vm.amount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.amount=$event.target.value}}}),_c('label',{attrs:{\"for\":\"destination\"}},[_vm._v(\"Destination:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.destination),expression:\"destination\"}],attrs:{\"type\":\"text\",\"id\":\"destination\",\"name\":\"destination\"},domProps:{\"value\":(_vm.destination)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.destination=$event.target.value}}})]),_c('button',{staticClass:\"sendfunds btn\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.send}},[_vm._v(\"Send\")]),_c('button',{staticClass:\"scan btn outline\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.scanQR}},[_vm._v(\"Scan QR\")]),_c('div',{staticClass:\"page\",class:{active: _vm.scan !== false},attrs:{\"id\":\"scan\"}},[_c('a',{staticClass:\"close\",on:{\"click\":_vm.closeScan}},[_c('i',{staticClass:\"fal fa-times\"})]),(_vm.loadingMsg)?_c('div',{attrs:{\"id\":\"loadingMessage\"}},[_vm._v(_vm._s(_vm.loadingMsg))]):_vm._e(),_c('canvas',{attrs:{\"id\":\"canvas\"}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Send.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Send.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Send.vue?vue&type=template&id=7f022b62&\"\nimport script from \"./Send.vue?vue&type=script&lang=js&\"\nexport * from \"./Send.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"receive inner\"},[_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"address\"},[_vm._v(\"Address: \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.copyToClipboard(_vm.address)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_vm._v(\" \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.link('address',_vm.address)}}},[_c('i',{staticClass:\"fad fa-external-link\"})])]),_c('div',{staticClass:\"address\",domProps:{\"innerHTML\":_vm._s(_vm.highlightAddress(_vm.address))}})]),_vm._m(0)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"block\"},[_c('canvas',{attrs:{\"id\":\"qrcode\"}})])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Receive.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Receive.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Receive.vue?vue&type=template&id=71954b6d&\"\nimport script from \"./Receive.vue?vue&type=script&lang=js&\"\nexport * from \"./Receive.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Receive.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"settings inner\"},[_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"details\"},[_c('label',{attrs:{\"for\":\"representative\"}},[_vm._v(\"Current Representative\")]),_c('a',{staticClass:\"copy\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.copyToClipboard(_vm.representative)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('div',{staticClass:\"address\",staticStyle:{\"margin-bottom\":\"30px\",\"background\":\"#00000014\",\"padding\":\"4px 14px\"},domProps:{\"innerHTML\":_vm._s(_vm.highlightAddress(_vm.representative))}})]),(_vm.change)?_c('div',{staticClass:\"details\"},[_c('label',{attrs:{\"for\":\"newrep\"}},[_vm._v(\"Change Representative\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newrep),expression:\"newrep\"}],staticClass:\"newrep\",attrs:{\"type\":\"text\",\"name\":\"newrep\"},domProps:{\"value\":(_vm.newrep)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.newrep=$event.target.value}}})]):_vm._e(),_c('div',{staticClass:\"inline-buttons\"},[(!_vm.change)?_c('button',{staticClass:\"repchange btn\",on:{\"click\":function($event){_vm.change = true}}},[_vm._v(\"Change Representative\")]):_vm._e(),(_vm.change)?_c('button',{staticClass:\"repchange btn\",on:{\"click\":_vm.changeRep}},[_vm._v(\"Confirm\")]):_vm._e(),(_vm.change)?_c('button',{staticClass:\"repchange btn outline\",on:{\"click\":function($event){_vm.change = false}}},[_vm._v(\"Cancel\")]):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Settings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Settings.vue?vue&type=template&id=0fab8abd&\"\nimport script from \"./Settings.vue?vue&type=script&lang=js&\"\nexport * from \"./Settings.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.blockstate !== null)?_c('simplebar',{attrs:{\"id\":\"breakdown\"}},[_c('header',{staticClass:\"headingtitle\"},[_vm._v(\"State Block \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.copyToClipboard(_vm.hash)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.link('block',_vm.hash)}}},[_c('i',{staticClass:\"fad fa-external-link\"})])]),_c('div',{staticClass:\"stateblock block\"},[_vm._v(_vm._s(_vm.hash))]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Block subtype \"),_c('span',{staticClass:\"subtype value\"},[_vm._v(_vm._s(_vm.blockstate.subtype))])]),_c('div',{staticClass:\"label\"},[_vm._v(\"The type of transaction that created this state block\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Account \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.copyToClipboard(_vm.blockstate.contents.account)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.link('address',_vm.blockstate.contents.account)}}},[_c('i',{staticClass:\"fad fa-external-link\"})])]),_c('div',{staticClass:\"account\"},[_vm._v(_vm._s(_vm.blockstate.contents.account))]),_c('div',{staticClass:\"label\"},[_vm._v(\"The account represented by this state block\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Amount \"),_c('span',{staticClass:\"amount value\",domProps:{\"innerHTML\":_vm._s(_vm.formattedValue(_vm.blockstate.amount))}})]),_c('div',{staticClass:\"raw\"},[_c('span',{staticClass:\"amount_raw\"},[_vm._v(_vm._s(_vm.blockstate.amount))]),_vm._v(\" raw\")]),_c('div',{staticClass:\"label\"},[_vm._v(\"The amount of NANO that was sent in this transaction\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Balance \"),_c('span',{staticClass:\"balance value\",domProps:{\"innerHTML\":_vm._s(_vm.formattedValue(_vm.blockstate.balance))}})]),_c('div',{staticClass:\"raw\"},[_c('span',{staticClass:\"balance_raw\"},[_vm._v(_vm._s(_vm.blockstate.balance))]),_vm._v(\" raw\")]),_c('div',{staticClass:\"label\"},[_vm._v(\"The amount of NANO that was sent in this transaction\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Representative \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.copyToClipboard(_vm.blockstate.contents.representative)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.link('address',_vm.blockstate.contents.representative)}}},[_c('i',{staticClass:\"fad fa-external-link\"})])]),_c('div',[_c('span',{staticClass:\"rep_raw\"},[_vm._v(_vm._s(_vm.blockstate.contents.representative))])]),_c('div',{staticClass:\"label\"},[_vm._v(\"The account's representative\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Recipient \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.copyToClipboard(_vm.blockstate.contents.representative)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_vm._v(\" \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.link('address',_vm.blockstate.contents.link_as_account)}}},[_c('i',{staticClass:\"fad fa-external-link\"})])]),_c('div',[_c('span',{staticClass:\"rec_raw\"},[_vm._v(_vm._s(_vm.blockstate.contents.link_as_account))])]),_c('div',{staticClass:\"label\"},[_vm._v(\"The account that is receiving the transaction\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Date \"),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.formattedDate))])]),_c('div',{staticClass:\"label\"},[_vm._v(\"The date and time this block was discovered (converted to your local time)\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Previous Block \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){return _vm.link('block',_vm.blockstate.contents.previous)}}},[_c('i',{staticClass:\"fad fa-external-link\"})])]),_c('div',[_vm._v(\" \"+_vm._s(_vm.blockstate.contents.previous)+\" \")]),_c('div',{staticClass:\"label\"},[_vm._v(\"The previous block in this account's chain\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Link\")]),_c('div',[_vm._v(_vm._s(_vm.blockstate.contents.link))]),_c('div',{staticClass:\"label\"},[_vm._v(\"The destination address encoded in hex format or the block hash if open\")])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Proof of Work\")]),_c('div',[_vm._v(_vm._s(_vm.blockstate.contents.work))])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Signature\")]),_c('div',[_vm._v(_vm._s(_vm.blockstate.contents.signature))])]),_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"JSON \"),_c('span',{staticClass:\"value\",on:{\"click\":function($event){_vm.copyToClipboard(JSON.stringify(_vm.blockstate))}}},[_c('i',{staticClass:\"fad fa-clone\"})])]),_c('div',{staticClass:\"json\"},[_c('pre',[_vm._v(_vm._s(JSON.stringify(_vm.blockstate, null, 4)))])])])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlockState.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlockState.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BlockState.vue?vue&type=template&id=51ce3523&scoped=true&\"\nimport script from \"./BlockState.vue?vue&type=script&lang=js&\"\nexport * from \"./BlockState.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BlockState.vue?vue&type=style&index=0&id=51ce3523&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"51ce3523\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=635202e0&\"\nimport script from \"./Home.vue?vue&type=script&lang=js&\"\nexport * from \"./Home.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page active\",staticStyle:{\"top\":\"0\"},attrs:{\"id\":\"blockdetails\"}},[_c('block-state',{attrs:{\"static\":true}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Block.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Block.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Block.vue?vue&type=template&id=74132096&\"\nimport script from \"./Block.vue?vue&type=script&lang=js&\"\nexport * from \"./Block.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page active\",staticStyle:{\"top\":\"0\"},attrs:{\"id\":\"blockdetails\"}},[_c('label',{attrs:{\"for\":\"key\"}},[_vm._v(\"Enter node address\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.node),expression:\"node\"}],attrs:{\"type\":\"text\",\"id\":\"node\",\"name\":\"node\"},domProps:{\"value\":(_vm.node)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.node=$event.target.value}}}),_c('button',{staticClass:\"openwallet btn\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.openNode}},[_vm._v(\"Go To Node\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Node.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Node.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Node.vue?vue&type=template&id=6190e545&\"\nimport script from \"./Node.vue?vue&type=script&lang=js&\"\nexport * from \"./Node.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page active\",attrs:{\"id\":\"genwallet\"}},[_c('router-link',{staticClass:\"close\",attrs:{\"to\":'/' + _vm.$route.params.node}},[_c('i',{staticClass:\"fal fa-times\"})]),_c('div',{staticClass:\"inner\"},[_c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"details\"},[_c('label',{attrs:{\"for\":\"seed\"}},[_vm._v(\"Seed\")]),_c('a',{staticClass:\"copy\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.copyToClipboard(_vm.walletdata.seed)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('input',{staticClass:\"copytext\",attrs:{\"type\":\"text\",\"name\":\"seed\"},domProps:{\"value\":_vm.walletdata.seed}})]),_c('div',{staticClass:\"details\"},[_c('label',{attrs:{\"for\":\"privatekey\"}},[_vm._v(\"Private Key\")]),_c('a',{staticClass:\"copy\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.copyToClipboard(_vm.walletdata.privatekey)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('input',{staticClass:\"copytext\",attrs:{\"type\":\"text\",\"name\":\"privatekey\"},domProps:{\"value\":_vm.walletdata.privatekey}})]),_c('div',{staticClass:\"details\"},[_c('label',{attrs:{\"for\":\"publickey\"}},[_vm._v(\"Public Key\")]),_c('a',{staticClass:\"copy\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.copyToClipboard(_vm.walletdata.publickey)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('input',{staticClass:\"copytext\",attrs:{\"type\":\"text\",\"name\":\"publickey\"},domProps:{\"value\":_vm.walletdata.publickey}})]),_c('div',{staticClass:\"details\"},[_c('label',{attrs:{\"for\":\"address\"}},[_vm._v(\"Address\")]),_c('a',{staticClass:\"copy\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){return _vm.copyToClipboard(_vm.walletdata.address)}}},[_c('i',{staticClass:\"fad fa-clone\"})]),_c('input',{staticClass:\"copytext\",attrs:{\"type\":\"text\",\"name\":\"address\"},domProps:{\"value\":_vm.walletdata.address}})]),_c('button',{staticClass:\"btn\",on:{\"click\":function($event){return _vm.copyToClipboard('Seed: ' + _vm.walletdata.seed + '\\nPrivate Key: ' + _vm.walletdata.privatekey + '\\nPublic Key: ' + _vm.walletdata.publickey + '\\nAddress: ' + _vm.walletdata.address)}}},[_vm._v(\"Copy All\")])]),_vm._m(0)])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"block\"},[_c('div',{staticClass:\"canvas-bag\"},[_c('canvas',{attrs:{\"id\":\"genqrcode\"}})])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Generate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Generate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Generate.vue?vue&type=template&id=2fac7f45&scoped=true&\"\nimport script from \"./Generate.vue?vue&type=script&lang=js&\"\nexport * from \"./Generate.vue?vue&type=script&lang=js&\"\nimport style1 from \"./Generate.vue?vue&type=style&index=1&id=2fac7f45&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2fac7f45\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"page active\",staticStyle:{\"top\":\"0\"},attrs:{\"id\":\"wallet\"}},[_c('div',{staticClass:\"inner\"},[_c('div',{staticClass:\"block\"},[_vm._m(0),_c('div',{attrs:{\"id\":\"output\"}},[_c('div',{staticClass:\"balance\"},[_c('div',{staticClass:\"raw\",class:{ active: _vm.balanceextra },on:{\"click\":function($event){return _vm.copyToClipboard(_vm.$route.params.address)}}},[_vm._v(_vm._s(_vm.$route.params.address))]),_c('div',{staticClass:\"value\",domProps:{\"innerHTML\":_vm._s(_vm.abbreviateNumber(_vm.balance))}}),_c('div',{staticClass:\"raw\",class:{ active: _vm.balanceextra }},[_vm._v(_vm._s(_vm.balance))]),_c('a',{staticClass:\"balanceextra\",attrs:{\"href\":\"\"},on:{\"click\":function($event){$event.preventDefault();_vm.balanceextra = !_vm.balanceextra}}},[_c('i',{staticClass:\"fal fa-ellipsis-h\",attrs:{\"data-fa-transform\":\"grow-20\"}})])])]),_c('simplebar',{staticClass:\"block history\"},[_c('div',{staticClass:\"headingtitle showmobile\"},[_vm._v(\"History\")]),_c('div',{attrs:{\"id\":\"pendingblocks\"}}),_vm._l((_vm.pending),function(transaction,index){return _c('transaction',{key:index,attrs:{\"index\":index,\"transaction\":transaction,\"type\":\"pending\"},on:{\"blockdetails\":function($event){_vm.blockdetails = $event}}})})],2)],1),_c('simplebar',{staticClass:\"block history\"},[_c('div',{staticClass:\"headingtitle hidemobile\"},[_vm._v(\"History\")]),_vm._l((_vm.history),function(transaction,index){return _c('transaction',{key:index,attrs:{\"index\":index,\"transaction\":transaction,\"type\":transaction.type},on:{\"blockdetails\":function($event){_vm.blockdetails = $event}}})})],2)],1),_c('div',{staticClass:\"page\",class:{active: _vm.blockdetails !== null},staticStyle:{\"top\":\"0\"},attrs:{\"id\":\"blockdetails\"}},[_c('a',{staticClass:\"close\",on:{\"click\":function($event){_vm.blockdetails = null}}},[_c('i',{staticClass:\"fal fa-times\"})]),_c('block-state',{attrs:{\"details\":_vm.blockdetails}})],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"headingtitle top\"},[_c('span',[_vm._v(\"Wallet\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Address.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Address.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Address.vue?vue&type=template&id=022ed1a6&\"\nimport script from \"./Address.vue?vue&type=script&lang=js&\"\nexport * from \"./Address.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport Home from '../views/Home.vue'\nimport Block from '../views/Block.vue'\nimport Node from '../views/Node.vue'\nimport Generate from '../views/Generate.vue'\nimport Address from '../views/Address.vue'\n\nVue.use(VueRouter)\n\n const routes = [\n {\n path: '/',\n name: 'Node',\n component: Node\n },\n\n {\n path: '/:node',\n name: 'Home',\n component: Home\n },\n {\n path: '/:node/generate',\n name: 'Generate',\n component: Generate\n },\n {\n path: '/:node/block/:hash',\n name: 'Block',\n component: Block\n },\n {\n path: '/:node/address/:address',\n name: 'Address',\n component: Address\n },\n {\n path: '/about',\n name: 'About',\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"about\" */ '../views/About.vue')\n }\n]\n\nconst router = new VueRouter({\n routes\n})\n\nexport default router\n","export function initialState () {\n return {\n privatekey: null,\n pow: null,\n ready: false,\n history: [],\n pending: [],\n node: {\n address: null,\n port: null,\n path: '',\n auth: null\n }\n }\n}\n\nexport default function () {\n return initialState()\n}\n","import initialState from './state.js'\n\nexport function pow(state, data) {\n if(data !== null) {\n console.log('Finished calculating')\n console.log(data)\n }\n\n state.pow = data\n}\nexport function ready(state, data) {\n state.ready = data\n}\nexport function privatekey(state, data) {\n state.privatekey = data\n}\nexport function node(state, data) {\n state.node = data\n}\nexport function history(state, data) {\n state.history = data\n}\nexport function pending(state, data) {\n state.pending = data\n}\n\nexport function resetState(state) {\n Object.assign(state, initialState())\n}\n","import * as NanoCurrency from 'nanocurrency'\nimport router from '@/router'\n\nconst presets = {\n 'mynano.ninja': {\n port: 443,\n path: '/api/node',\n protocol: 'https'\n }\n}\n\nfunction protocol() {\n return window.location.protocol.replace(':', '')\n}\n\nfunction port() {\n if (protocol() == 'https'){\n return '7077'\n }\n return '7076'\n}\n\nexport function node ({ commit, state }) {\n let newnode = {...state.node}\n newnode.address = router.currentRoute.params.node\n newnode.port = port()\n newnode.protocol = protocol()\n if(router.currentRoute.params.node in presets) {\n const preset = presets[router.currentRoute.params.node]\n newnode = {\n ...newnode,\n ...preset\n }\n }\n if('auth' in router.currentRoute.query) {\n newnode.auth = router.currentRoute.query.auth\n }\n commit('node', newnode)\n}\n\nexport async function getSeed () {\n const seed = await NanoCurrency.generateSeed();\n const privatekey = NanoCurrency.deriveSecretKey(seed, 0);\n const publickey = NanoCurrency.derivePublicKey(privatekey);\n const address = NanoCurrency.deriveAddress(publickey,{useNanoPrefix:true});\n const payload = {\n \"seed\":seed,\n \"privatekey\":privatekey,\n \"publickey\":publickey,\n \"address\":address\n };\n return payload;\n}\n\nexport async function getDetails (context, address) {\n const info = {\n action: 'account_info',\n representative: 'true',\n account: address\n }\n const details = await rpCall(context, info)\n return details\n}\n\nexport async function rpCall ({commit, state}, body) {\n var rpcurl = state.node.protocol + '://' + state.node.address + ':' + state.node.port + state.node.path\n var Init = { method:'POST',body: JSON.stringify(body)}\n if (state.node.auth !== null) {\n Init.headers = {\n 'Authorization': state.node.auth,\n 'Content-Type': 'application/json'\n }\n }\n var res = await fetch(rpcurl,Init)\n var data = await res.json()\n console.log(data)\n console.log(commit)\n return data\n}\n\nexport async function history (context, address) {\n let history = {}\n history['action'] = 'account_history'\n history['account'] = address\n console.log('history')\n\n const details = await context.dispatch('rpCall', history);\n if (Array.isArray(details.history) && details.history.length){\n context.commit('history', details.history)\n }\n}\n\nexport async function pending (context, address) {\n let pending = {}\n pending['action'] = 'pending'\n pending['source'] = 'true'\n pending['sorting'] = 'true'\n pending['account'] = address\n\n const details = await context.dispatch('rpCall', pending);\n console.log('pending1')\n\n if (typeof details.blocks === 'object'){\n console.log('pending')\n context.commit('pending', details.blocks)\n } else {\n context.commit('pending', [])\n }\n\n}\n\nexport function resetState ({ dispatch, commit }) {\n commit('resetState')\n dispatch('node')\n}\n","import state from './state'\nimport * as getters from './getters'\nimport * as mutations from './mutations'\nimport * as actions from './actions'\n\nexport default {\n namespaced: true,\n state,\n getters,\n mutations,\n actions\n}\n","import Vue from 'vue'\nimport Vuex from 'vuex'\nimport app from './app'\n\nVue.use(Vuex)\n\nexport default new Vuex.Store({\n modules: {\n app\n }\n})","import Vue from 'vue'\nimport App from './App.vue'\nimport router from './router'\nimport store from './store'\n\n// import { NanoCurrency } from 'nanocurrency'\n// Vue.use(NanoCurrency)\nVue.config.productionTip = false\n\nnew Vue({\n router,\n store,\n render: h => h(App)\n}).$mount('#app')\n","module.exports = function() {\n return new Worker(__webpack_public_path__ + \"1602516512737beec51b.worker.js\");\n};","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=scss&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Receive.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Receive.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""} \ No newline at end of file