(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6dedf6f7"],{b311:function(e,t,n){ /*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ (function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return L}});var r=n(279),a=n.n(r),o=n(370),i=n.n(o),s=n(817),c=n.n(s);function l(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=c()(e);return l("cut"),t},p=u;function f(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}var d=function(e,t){var n=f(e);t.container.appendChild(n);var r=c()(n);return l("copy"),n.remove(),r},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=d(e.value,t):(n=c()(e),l("copy")),n},h=m;function b(e){return b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,a=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==a){if(!a||"object"!==b(a)||1!==a.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&a.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:r}):a?"cut"===n?p(a):h(a,{container:r}):void 0},y=g;function v(e){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===v(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=y({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return F("action",e)}},{key:"defaultTarget",value:function(e){var t=F("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return F("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(e,t)}},{key:"cut",value:function(e){return p(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(a()),L=A},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},438:function(e,t,n){var r=n(828);function a(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function o(e,t,n,r,o){return"function"===typeof e.addEventListener?a.apply(null,arguments):"function"===typeof n?a.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,n,r,o)})))}function i(e,t,n,a){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&a.call(e,n)}}e.exports=o},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var r=n(879),a=n(438);function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return i(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return c(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function c(e,t,n){return a(document.body,e,t,n)}e.exports=o},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function a(){r.off(e,a),t.apply(n,arguments)}return a._=t,this.on(e,a,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r-1},openManagerForm:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(t){var n,r,a,s,c;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.managerForm.app_id=t.app_id,this.managerForm.app_name=t.app_name,this.managerForm.app_manager=t.app_manager.split(","),this.allUserConfig=[],e.next=6,Object(p["j"])();case 6:if(n=e.sent,n){r=Object(o["a"])(n.data);try{for(r.s();!(a=r.n()).done;)s=a.value,this.userConfig[s.id]=s.realname,c={label:s.realname,key:s.id.toString(),disabled:!1},t.create_by==s.id&&(c.disabled=!0),this.allUserConfig.push(c)}catch(i){r.e(i)}finally{r.f()}}this.managerFormdialogVisible=!0;case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addForm:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["b"])(this.form);case 2:if(t=e.sent,0==t.code){e.next=8;break}return this.$message({showClose:!0,offset:60,type:"error",message:t.msg}),e.abrupt("return");case 8:this.$message({showClose:!0,offset:60,type:"success",message:t.msg}),this.search(1);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),formClose:function(){this.form=JSON.parse(JSON.stringify(this.formDefault)),this.dialogVisible=!1},copyParmas:function(){var e=this,t=new l.a(".copyParmas");t.on("success",(function(t){e.$message({showClose:!0,offset:60,type:"success",message:"复制成功!"})})),t.on("error",(function(t){e.$message({showClose:!0,offset:60,type:"error",message:t})}))},resetKey:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(t,n,r){var a=this;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("确定重置应用名为 【"+r+"】 的这个秘钥吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(i["a"])().mark((function e(){var r;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["d"])({app_id:n,id:t});case 2:if(r=e.sent,0==r.code){e.next=8;break}return a.$message({showClose:!0,offset:60,type:"error",message:r.msg}),e.abrupt("return");case 8:a.$message({showClose:!0,offset:60,type:"success",message:r.msg}),a.search(1);case 10:case"end":return e.stop()}}),e)})))).catch((function(e){console.error(e)}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n,r){return e.apply(this,arguments)}return t}(),getManagerName:function(e){var t=e.split(",");for(var n in t)t[n]=this.userConfig[t[n]];return t},statusOperation:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(t,n,r,a,o){var c=this;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("确定修改应用名为 【"+n+"】 的状态吗?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(i["a"])().mark((function e(){var n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["e"])({app_id:r,app_key:a,is_close:t,id:o});case 2:if(n=e.sent,0==n.code){e.next=8;break}return c.$message({showClose:!0,offset:60,type:"error",message:n.msg}),e.abrupt("return");case 8:c.$message({showClose:!0,offset:60,type:"success",message:n.msg}),c.search(1);case 10:case"end":return e.stop()}}),e)})))).catch((function(e){console.error(e)}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,n,r,a,o){return e.apply(this,arguments)}return t}(),search:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(t){var n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.input.page=t||1,this.tableLoading=!0,null!=this.input.is_close&&""==this.input.is_close.toString()&&(this.input.is_close=null),e.next=5,Object(u["c"])(this.input);case 5:if(n=e.sent,0==n.code){e.next=10;break}return this.$message({showClose:!0,offset:60,type:"error",message:n.msg}),this.tableLoading=!1,e.abrupt("return");case 10:this.tableData=n.data.list,this.total=n.data.count,this.tableLoading=!1;case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),init:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){var t,n,r,a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(p["j"])();case 2:if(t=e.sent,t){n=Object(o["a"])(t.data);try{for(n.s();!(r=n.n()).done;)a=r.value,this.userConfig[a.id]=a.realname,this.allUserConfig.push({label:a.realname,key:a.id.toString(),disabled:!1})}catch(i){n.e(i)}finally{n.f()}}return e.next=6,this.search();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},d=f,m=n("2877"),h=Object(m["a"])(d,r,a,!1,null,null,null);t["default"]=h.exports}}]);