{"size": 12359, "ext": "js", "max_stars_repo_path": "js/assets.48603f59.js", "max_stars_repo_name": "joopertyhash/Dappe", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/assets.48603f59.js", "max_issues_repo_name": "joopertyhash/Dappe", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/assets.48603f59.js", "max_forks_repo_name": "joopertyhash/Dappe", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 6179.5, "max_line_length": 12315, "alphanum_fraction": 0.6991665992}
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["assets"],{"0393":function(e,t,s){"use strict";s("210b");var a=s("604c"),n=s("d9bd");t["a"]=a["a"].extend({name:"v-expansion-panels",provide(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes(){return{...a["a"].options.computed.classes.call(this),"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile}}},created(){this.$attrs.hasOwnProperty("expand")&&Object(n["a"])("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&"boolean"===typeof this.value[0]&&Object(n["a"])(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem(e,t){const s=this.getValue(e,t),a=this.getValue(e,t+1);e.isActive=this.toggleMethod(s),e.nextIsActive=this.toggleMethod(a)}}})},"10a8":function(e,t,s){"use strict";var a=s("bba9"),n=s.n(a);n.a},1681:function(e,t,s){},"210b":function(e,t,s){},"49e2":function(e,t,s){"use strict";var a=s("0789"),n=s("9d65"),i=s("a9ad"),o=s("3206"),r=s("80d2"),l=s("58df");const c=Object(l["a"])(n["a"],i["a"],Object(o["a"])("expansionPanel","v-expansion-panel-content","v-expansion-panel"));t["a"]=c.extend().extend({name:"v-expansion-panel-content",computed:{isActive(){return this.expansionPanel.isActive}},created(){this.expansionPanel.registerContent(this)},beforeDestroy(){this.expansionPanel.unregisterContent()},render(e){return e(a["a"],this.showLazyContent(()=>[e("div",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:this.isActive}]}),[e("div",{class:"v-expansion-panel-content__wrap"},Object(r["o"])(this))])]))}})},"4bd4":function(e,t,s){"use strict";var a=s("58df"),n=s("7e2b"),i=s("3206");t["a"]=Object(a["a"])(n["a"],Object(i["b"])("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(e){const t=Object.values(e).includes(!0);this.$emit("input",!t)},deep:!0,immediate:!0}},methods:{watchInput(e){const t=e=>e.$watch("hasError",t=>{this.$set(this.errorBag,e._uid,t)},{immediate:!0}),s={_uid:e._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?s.shouldValidate=e.$watch("shouldValidate",a=>{a&&(this.errorBag.hasOwnProperty(e._uid)||(s.valid=t(e)))}):s.valid=t(e),s},validate(){return 0===this.inputs.filter(e=>!e.validate(!0)).length},reset(){this.inputs.forEach(e=>e.reset()),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout(()=>{this.errorBag={}},0)},resetValidation(){this.inputs.forEach(e=>e.resetValidation()),this.resetErrorBag()},register(e){this.inputs.push(e),this.watchers.push(this.watchInput(e))},unregister(e){const t=this.inputs.find(t=>t._uid===e._uid);if(!t)return;const s=this.watchers.find(e=>e._uid===t._uid);s&&(s.valid(),s.shouldValidate()),this.watchers=this.watchers.filter(e=>e._uid!==t._uid),this.inputs=this.inputs.filter(e=>e._uid!==t._uid),this.$delete(this.errorBag,t._uid)}},render(e){return e("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:e=>this.$emit("submit",e)}},this.$slots.default)}})},"4d1d":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("v-expansion-panels",{staticClass:"mb-2",attrs:{accordion:""}},e._l(e.user.accounts,(function(t){return s("v-expansion-panel",{key:t.asset},[s("v-expansion-panel-header",{staticClass:"d-flex",attrs:{ripple:"","expand-icon":""}},[s("div",{staticClass:"asset d-flex flex-grow-1",class:{"body-1":e.$vuetify.breakpoint.xsOnly,title:!e.$vuetify.breakpoint.xs}},[s("div",{staticClass:"mb-1"},[e._v(" "+e._s(t.name)+" "),s("span",{staticClass:"yellow--text"},[e._v("("+e._s(t.ticker)+")")])])]),s("div",{staticClass:"flex-grow-1 text-right",class:{"body-1":e.$vuetify.breakpoint.xsOnly,"display-1":!e.$vuetify.breakpoint.xs}},[e._v(" "+e._s(e.$format(t.balance,t.precision))+" "),t.pending?s("span",{staticClass:"orange--text text--lighten-4",class:{"body-1":e.$vuetify.breakpoint.xsOnly,title:!e.$vuetify.breakpoint.xs}},[e._v("("+e._s(e.$format(t.pending,t.precision))+" pending)")]):e._e()])]),s("v-expansion-panel-content",{staticClass:"text-left"},[s("div",{staticClass:"d-flex"},[s("v-btn",{staticClass:"mx-auto mb-2 black--text",attrs:{color:"yellow"},on:{click:function(s){return s.preventDefault(),function(){return e.select(t.asset)}()}}},[s("v-icon",[e._v("forward")]),s("span",[e._v("Payments")])],1)],1),s("v-card",{staticClass:"pa-4",staticStyle:{background:"#333"}},[e.success[t.asset]?s("v-alert",{staticClass:"mb-4",attrs:{color:"success",icon:"info",dismissible:"",transition:"scale-transition",dark:""},model:{value:e.success[t.asset],callback:function(s){e.$set(e.success,t.asset,s)},expression:"success[a.asset]"}},[e._v(" Settings saved successfully ")]):e._e(),s("v-form",{on:{submit:function(s){return s.preventDefault(),function(){return e.submit(t)}()}}},[s("v-textarea",{attrs:{label:"Id",value:t.asset,rows:"1","auto-grow":"",readonly:""},scopedSlots:e._u([{key:"append",fn:function(){return[s("v-btn",{staticClass:"ml-1",attrs:{icon:""},on:{click:function(){return e.copy(t.asset)}}},[s("v-icon",{staticClass:"mr-1"},[e._v("content_copy")])],1)]},proxy:!0}],null,!0)}),s("v-text-field",{attrs:{label:"Name",rows:"1","auto-grow":"",readonly:t.asset===e.BTC},model:{value:t.name,callback:function(s){e.$set(t,"name",s)},expression:"a.name"}}),s("v-text-field",{attrs:{label:"Ticker",rows:"1","auto-grow":"",readonly:t.asset===e.BTC},model:{value:t.ticker,callback:function(s){e.$set(t,"ticker",s)},expression:"a.ticker"}}),s("v-text-field",{attrs:{label:"Precision",type:"number",readonly:t.asset===e.BTC},on:{input:function(s){return e.limit(s,t)}},model:{value:t.precision,callback:function(s){e.$set(t,"precision",s)},expression:"a.precision"}}),s("div",{staticClass:"text-right"},[s("v-btn",{attrs:{type:"submit"}},[s("v-icon",{staticClass:"mr-1 yellow--text"},[e._v("check")]),s("span",[e._v("save")])],1)],1)],1)],1)],1)],1)})),1),s("v-btn",{staticClass:"mx-auto mb-2 black--text",attrs:{color:"yellow"},on:{click:function(t){return e.$go("/asset")}}},[s("v-icon",[e._v("add")]),s("span",[e._v("New")])],1)],1)},n=[],i=s("7ffd"),o=s("b59c");const r="6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d";var l={mixins:[o["a"]],computed:{user:Object(i["e"])("user")},data(){return{BTC:r,success:{}}},methods:{limit(e,t){e<0&&this.$nextTick(()=>t.precision=0),e>8&&this.$nextTick(()=>t.precision=8)},async submit(e){try{await this.updateAccount(e),this.$set(this.success,e.asset,!0)}catch(t){this.$set(this.success,e.asset,!1)}},shiftAccount:Object(i["a"])("shiftAccount"),updateAccount:Object(i["a"])("updateAccount"),async select(e){await this.shiftAccount(e),this.$go("/home")}}},c=l,d=(s("10a8"),s("2877")),u=s("6544"),p=s.n(u),h=s("0798"),v=s("8336"),x=s("b0af"),b=s("cd55"),f=s("49e2"),m=s("c865"),g=s("0393"),y=s("4bd4"),w=s("132d"),k=s("8654"),C=s("a844"),$=Object(d["a"])(c,a,n,!1,null,"6633e910",null);t["default"]=$.exports;p()($,{VAlert:h["a"],VBtn:v["a"],VCard:x["a"],VExpansionPanel:b["a"],VExpansionPanelContent:f["a"],VExpansionPanelHeader:m["a"],VExpansionPanels:g["a"],VForm:y["a"],VIcon:w["a"],VTextField:k["a"],VTextarea:C["a"]})},a844:function(e,t,s){"use strict";s("1681");var a=s("8654"),n=s("58df");const i=Object(n["a"])(a["a"]);t["a"]=i.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:e=>!isNaN(parseFloat(e))},rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseInt(e,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...a["a"].options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout(()=>{this.autoGrow&&this.calculateInputHeight()},0)},methods:{calculateInputHeight(){const e=this.$refs.input;if(!e)return;e.style.height="0";const t=e.scrollHeight,s=parseInt(this.rows,10)*parseFloat(this.rowHeight);e.style.height=Math.max(s,t)+"px"},genInput(){const e=a["a"].options.methods.genInput.call(this);return e.tag="textarea",delete e.data.attrs.type,e.data.attrs.rows=this.rows,e},onInput(e){a["a"].options.methods.onInput.call(this,e),this.autoGrow&&this.calculateInputHeight()},onKeyDown(e){this.isFocused&&13===e.keyCode&&e.stopPropagation(),this.$emit("keydown",e)}}})},b59c:function(e,t,s){"use strict";var a,n,i=s("7ffd"),o={methods:{copy(e){var t=document.createElement("textarea");t.style.position="fixed",t.value=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.snack("Copied to Clipboard")},snack:Object(i["a"])("snack")}},r=o,l=s("2877"),c=Object(l["a"])(r,a,n,!1,null,null,null);t["a"]=c.exports},bba9:function(e,t,s){},c865:function(e,t,s){"use strict";var a=s("0789"),n=s("9d26"),i=s("a9ad"),o=s("3206"),r=s("5607"),l=s("80d2"),c=s("58df");const d=Object(c["a"])(i["a"],Object(o["a"])("expansionPanel","v-expansion-panel-header","v-expansion-panel"));t["a"]=d.extend().extend({name:"v-expansion-panel-header",directives:{ripple:r["a"]},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:()=>({hasMousedown:!1}),computed:{classes(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive(){return this.expansionPanel.isActive},isDisabled(){return this.expansionPanel.isDisabled},isReadonly(){return this.expansionPanel.isReadonly}},created(){this.expansionPanel.registerHeader(this)},beforeDestroy(){this.expansionPanel.unregisterHeader()},methods:{onClick(e){this.$emit("click",e)},genIcon(){const e=Object(l["o"])(this,"actions")||[this.$createElement(n["a"],this.expandIcon)];return this.$createElement(a["c"],[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},e)])}},render(e){return e("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button"},directives:[{name:"ripple",value:this.ripple}],on:{...this.$listeners,click:this.onClick,mousedown:()=>this.hasMousedown=!0,mouseup:()=>this.hasMousedown=!1}}),[Object(l["o"])(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}})},cd55:function(e,t,s){"use strict";var a=s("4e82"),n=s("3206"),i=s("80d2"),o=s("58df");t["a"]=Object(o["a"])(Object(a["a"])("expansionPanels","v-expansion-panel","v-expansion-panels"),Object(n["b"])("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data(){return{content:null,header:null,nextIsActive:!1}},computed:{classes(){return{"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled,...this.groupClasses}},isDisabled(){return this.expansionPanels.disabled||this.disabled},isReadonly(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent(e){this.content=e},unregisterContent(){this.content=null},registerHeader(e){this.header=e,e.$on("click",this.onClick)},unregisterHeader(){this.header=null},onClick(e){e.detail&&this.header.$el.blur(),this.$emit("click",e),this.isReadonly||this.isDisabled||this.toggle()},toggle(){this.content&&(this.content.isBooted=!0),this.$nextTick(()=>this.$emit("change"))}},render(e){return e("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},Object(i["o"])(this))}})}}]);
//# sourceMappingURL=assets.48603f59.js.map