(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{516:function(e,t,r){var content=r(581);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(6).default)("333161d0",content,!0,{sourceMap:!1})},580:function(e,t,r){"use strict";r(516)},581:function(e,t,r){(t=r(5)(!1)).push([e.i,".van-cell[data-v-e8d124d6]{display:block}.van-cell__right-icon[data-v-e8d124d6]{font-size:14px}.van-field[data-v-e8d124d6]{line-height:32px;padding:8px 15px}",""]),e.exports=t},683:function(e,t,r){"use strict";r.r(t);var n=r(8),o=r(38);function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var f={data:function(){return{api_key:"",secret_key:"",passphrase:""}},computed:l(l({},Object(o.d)({platforms:function(e){return e.authorize.platform}})),{},{active:function(){return this.$route.query.active},platform:function(){var p=this.platforms[this.active];return this.api_key=p.api_key,this.secret_key=p.secret_key,this.passphrase=p.passphrase,p.label}}),methods:l(l({},Object(o.b)({editApiAccount:"authorize/editApiAccount"})),{},{onSubmit:function(){var e=this,t={platform:this.platform,api_key:this.api_key,secret_key:this.secret_key,passphrase:"okex"===this.platform?this.passphrase:"-"};this.$toast.loading(),this.editApiAccount(t).then((function(t){e.$toast(t.msg),e.$router.back()})).catch((function(t){var r=t.msg;e.$toast(r)}))}})},d=(r(580),r(43)),component=Object(d.a)(f,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("van-nav-bar",{attrs:{title:e.$t(e.platforms[e.active].label),"left-arrow":""},on:{"click-left":function(t){return e.$router.back()}}}),e._v(" "),r("van-form",{on:{submit:e.onSubmit}},[r("van-field",{attrs:{label:"Api Key",placeholder:"Api Key",rules:[{required:!0}]},model:{value:e.api_key,callback:function(t){e.api_key=t},expression:"api_key"}}),e._v(" "),r("van-field",{attrs:{label:"Secret Key",placeholder:"Secret Key",rules:[{required:!0}]},model:{value:e.secret_key,callback:function(t){e.secret_key=t},expression:"secret_key"}}),e._v(" "),"okex"===e.platform?r("van-field",{attrs:{label:"Passphrase",placeholder:"Passphrase",rules:[{required:!0}]},model:{value:e.passphrase,callback:function(t){e.passphrase=t},expression:"passphrase"}}):e._e(),e._v(" "),r("div",{staticStyle:{margin:"16px"}},[r("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"}},[e._v("\n        "+e._s(e.$t("actions.import"))+"\n      ")])],1)],1)],1)}),[],!1,null,"e8d124d6",null);t.default=component.exports}}]);