(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58e060ed"],{6014:function(e,t,i){},"603e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a-card",{staticStyle:{height:"100%"},attrs:{bordered:!1}},[i("div",{staticStyle:{"padding-bottom":"2px"}},[i("a-alert",{attrs:{type:"warning","show-icon":""}},[i("div",{staticStyle:{width:"100%"},attrs:{slot:"message"},slot:"message"},[i("span",[e._v("路由配置请慎重")]),i("span",{staticStyle:{display:"inline-block",float:"right","padding-right":"5px"}},[i("a",{on:{click:e.clearRedis}},[i("a-icon",{attrs:{type:"reload"}}),e._v("清除缓存")],1)])])])],1),i("div",{style:{height:e.editorHeight+"px",width:"100%"},attrs:{id:e.eleId}}),i("div",{staticStyle:{"text-align":"center","padding-top":"10px"}},[i("a-button",{staticStyle:{width:"160px"},attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")])],1)])},r=[],s=i("dcf5"),o=i.n(s),a=(i("6014"),i("0fea")),l={name:"SysGatewayRouteList",data:function(){return{eleId:"jsoneditor",description:"gateway路由管理管理页面",editor:null,editorWidth:400,editorHeight:500,url:{list:"/sys/gatewayRoute/list",update:"/sys/gatewayRoute/updateAll",clear:"/sys/gatewayRoute/clearRedis"}}},created:function(){var e=window.innerWidth;this.editorWidth=e},mounted:function(){this.initJsonEditor()},methods:{initJsonEditor:function(){var e=document.getElementById(this.eleId),t={modes:["text","code","tree","form","view"],mode:"tree",ace:ace,sortObjectKeys:"code",mainMenuBar:["format"]};this.editor=new o.a(e,t),this.initRouteData()},initRouteData:function(){var e=this;Object(a["c"])(this.url.list).then((function(t){if(t.success){var i=t.result;e.editor.set(i)}}))},submitForm:function(){var e=this,t=this.editor.getText();!t||t.length<=0||"{}"==t||"[]"==t?this.$message.warning("未录入任何信息"):Object(a["i"])(this.url.update,{routes:t}).then((function(t){t.success?e.$message.success(t.message):e.$message.error(t.message)}))},clearRedis:function(){var e=this;Object(a["c"])(this.url.clear).then((function(t){t.success&&e.$message.success(t.message)}))}}},c=l,h=i("2877"),d=Object(h["a"])(c,n,r,!1,null,null,null);t["default"]=d.exports},be36:function(e,t,i){ /*! * jsoneditor.js * * @brief * JSONEditor is a web-based tool to view, edit, format, and validate JSON. * It has various modes such as a tree editor, a code editor, and a plain text * editor. * * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ * * @license * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. * * Copyright (c) 2011-2020 Jos de Jong, http://jsoneditoronline.org * * @author Jos de Jong, * @version 9.0.3 * @date 2020-07-02 */ (function(t,i){e.exports=i()})(window,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=36)}([function(e,t,i){"use strict";i.r(t),i.d(t,"parse",(function(){return g})),i.d(t,"repair",(function(){return p})),i.d(t,"escapeUnicodeChars",(function(){return m})),i.d(t,"validate",(function(){return f})),i.d(t,"extend",(function(){return C})),i.d(t,"clear",(function(){return I})),i.d(t,"getType",(function(){return A})),i.d(t,"isUrl",(function(){return b})),i.d(t,"isArray",(function(){return y})),i.d(t,"getAbsoluteLeft",(function(){return w})),i.d(t,"getAbsoluteTop",(function(){return S})),i.d(t,"addClassName",(function(){return x})),i.d(t,"removeAllClassNames",(function(){return k})),i.d(t,"removeClassName",(function(){return R})),i.d(t,"stripFormatting",(function(){return E})),i.d(t,"setEndOfContentEditable",(function(){return B})),i.d(t,"selectContentEditable",(function(){return Z})),i.d(t,"getSelection",(function(){return G})),i.d(t,"setSelection",(function(){return T})),i.d(t,"getSelectionOffset",(function(){return W})),i.d(t,"setSelectionOffset",(function(){return _})),i.d(t,"getInnerText",(function(){return H})),i.d(t,"hasParentNode",(function(){return $})),i.d(t,"getInternetExplorerVersion",(function(){return V})),i.d(t,"isFirefox",(function(){return L})),i.d(t,"addEventListener",(function(){return O})),i.d(t,"removeEventListener",(function(){return F})),i.d(t,"isChildOf",(function(){return P})),i.d(t,"parsePath",(function(){return K})),i.d(t,"stringifyPath",(function(){return M})),i.d(t,"improveSchemaError",(function(){return j})),i.d(t,"isPromise",(function(){return D})),i.d(t,"isValidValidationError",(function(){return X})),i.d(t,"insideRect",(function(){return Y})),i.d(t,"debounce",(function(){return z})),i.d(t,"textDiff",(function(){return J})),i.d(t,"getInputSelection",(function(){return U})),i.d(t,"getIndexForPosition",(function(){return Q})),i.d(t,"getPositionForPath",(function(){return q})),i.d(t,"compileJSONPointer",(function(){return ee})),i.d(t,"getColorCSS",(function(){return te})),i.d(t,"isValidColor",(function(){return ie})),i.d(t,"makeFieldTooltip",(function(){return ne})),i.d(t,"get",(function(){return re})),i.d(t,"findUniqueName",(function(){return se})),i.d(t,"getChildPaths",(function(){return oe})),i.d(t,"sort",(function(){return ae})),i.d(t,"sortObjectKeys",(function(){return le})),i.d(t,"parseString",(function(){return ce})),i.d(t,"isTimestamp",(function(){return he})),i.d(t,"formatSize",(function(){return de})),i.d(t,"limitCharacters",(function(){return ue})),i.d(t,"isObject",(function(){return ge})),i.d(t,"contains",(function(){return pe})),i.d(t,"isValidationErrorChanged",(function(){return me}));i(24);var n=i(11),r=i.n(n),s=i(22),o=i.n(s),a=i(33),l=i.n(a),c=i(1);function h(e){return h="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},h(e)}var d=1e4,u=9466848e5;function g(e){try{return JSON.parse(e)}catch(t){throw f(e),t}}function p(e){var t=[],i=0,n=0,r=!1,s=e.match(/^\s*(\/\*(.|[\r\n])*?\*\/)?\s*[\da-zA-Z_$]+\s*\(([\s\S]*)\)\s*;?\s*$/);s&&(e=s[3]);var o={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},a="'",l='"',c="‘",h="’",d="“",u="”",g="`",p="´",m={None:"null",True:"true",False:"false"};function f(){return e.charAt(i)}function C(){return e.charAt(i+1)}function I(){return e.charAt(i-1)}function A(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function v(){var e=t.length-1;while(e>=0){var i=t[e];if(!A(i))return i;e--}return""}function b(){var t=i+1;while(t0&&"("===e){var n;if(i++,e=f(),'"'===e)n=k(e),e=f();else{n="";while(")"!==e&&""!==e)n+=e,i++,e=f()}return")"===e?(i++,n):t+"("+n+e}return"string"===typeof m[t]?m[t]:t}function B(e){return" "===e||e>=" "&&e<=" "||" "===e||" "===e||" "===e}while(i=0;o--){var a=s[o];!0===a.specified&&r.removeAttribute(a.name)}E(r)}}function B(e){var t,i;document.createRange&&(t=document.createRange(),t.selectNodeContents(e),t.collapse(!1),i=window.getSelection(),i.removeAllRanges(),i.addRange(t))}function Z(e){var t,i;e&&"DIV"===e.nodeName&&(window.getSelection&&document.createRange&&(i=document.createRange(),i.selectNodeContents(e),t=window.getSelection(),t.removeAllRanges(),t.addRange(i)))}function G(){if(window.getSelection){var e=window.getSelection();if(e.getRangeAt&&e.rangeCount)return e.getRangeAt(0)}return null}function T(e){if(e&&window.getSelection){var t=window.getSelection();t.removeAllRanges(),t.addRange(e)}}function W(){var e=G();return e&&"startOffset"in e&&"endOffset"in e&&e.startContainer&&e.startContainer===e.endContainer?{startOffset:e.startOffset,endOffset:e.endOffset,container:e.startContainer.parentNode}:null}function _(e){if(document.createRange&&window.getSelection){var t=window.getSelection();if(t){var i=document.createRange();e.container.firstChild||e.container.appendChild(document.createTextNode("")),i.setStart(e.container.firstChild,e.startOffset),i.setEnd(e.container.firstChild,e.endOffset),T(i)}}}function H(e,t){var i=void 0===t;if(i&&(t={_text:"",flush:function(){var e=this._text;return this._text="",e},set:function(e){this._text=e}}),e.nodeValue){var n=e.nodeValue.replace(/\s*\n\s*/g,"");return""!==n?t.flush()+n:""}if(e.hasChildNodes()){for(var r=e.childNodes,s="",o=0,a=r.length;o5){var i=["("+(t.length-5)+" more...)"];t=t.slice(0,5),t.push(i)}e.message="should be equal to one of: "+t.join(", ")}}return"additionalProperties"===e.keyword&&(e.message="should NOT have additional property: "+e.params.additionalProperty),e}function D(e){return e&&"function"===typeof e.then&&"function"===typeof e["catch"]}function X(e){return"object"===h(e)&&Array.isArray(e.path)&&"string"===typeof e.message}function Y(e,t,i){var n=void 0!==i?i:0;return t.left-n>=e.left&&t.right+n<=e.right&&t.top-n>=e.top&&t.bottom+n<=e.bottom}function z(e,t,i){var n;return function(){var r=this,s=arguments,o=function(){n=null,i||e.apply(r,s)},a=i&&!n;clearTimeout(n),n=setTimeout(o,t),a&&e.apply(r,s)}}function J(e,t){var i=t.length,n=0,r=e.length,s=t.length;while(t.charAt(n)===e.charAt(n)&&nn&&r>0)s--,r--;return{start:n,end:s}}function U(e){var t,i,n,r,s,o=0,a=0;return"number"===typeof e.selectionStart&&"number"===typeof e.selectionEnd?(o=e.selectionStart,a=e.selectionEnd):(i=document.selection.createRange(),i&&i.parentElement()===e&&(r=e.value.length,t=e.value.replace(/\r\n/g,"\n"),n=e.createTextRange(),n.moveToBookmark(i.getBookmark()),s=e.createTextRange(),s.collapse(!1),n.compareEndPoints("StartToEnd",s)>-1?o=a=r:(o=-n.moveStart("character",-r),o+=t.slice(0,o).split("\n").length-1,n.compareEndPoints("EndToEnd",s)>-1?a=r:(a=-n.moveEnd("character",-r),a+=t.slice(0,a).split("\n").length-1)))),{startIndex:o,endIndex:a,start:l(o),end:l(a)};function l(t){var i=e.value.substring(0,t),n=(i.match(/\n/g)||[]).length+1,r=i.length-i.lastIndexOf("\n");return{row:n,column:r}}}function Q(e,t,i){var n=e.value||"";if(t>0&&i>0){var r=n.split("\n",t);t=Math.min(r.length,t),i=Math.min(r[t-1].length,i-1);var s=1===t?i:i+1;return r.slice(0,t-1).join("\n").length+s}return-1}function q(e,t){var i,n=[];if(!t||!t.length)return n;try{i=l.a.parse(e)}catch(r){return n}return t.forEach((function(e){var t=K(e),r=ee(t),s=i.pointers[r];s&&n.push({path:e,line:s.key?s.key.line:s.value?s.value.line:0,column:s.key?s.key.column:s.value?s.value.column:0})})),n}function ee(e){return e.map((function(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")})).join("")}function te(e){var t=document.createElement("div");return t.style.color=e,t.style.color.split(/\s+/).join("").toLowerCase()||null}function ie(e){return!!te(e)}function ne(e,t){if(!e)return"";var i="";return e.title&&(i+=e.title),e.description&&(i.length>0&&(i+="\n"),i+=e.description),e["default"]&&(i.length>0&&(i+="\n\n"),i+=Object(c["c"])("default",void 0,t)+"\n",i+=JSON.stringify(e["default"],null,2)),Array.isArray(e.examples)&&e.examples.length>0&&(i.length>0&&(i+="\n\n"),i+=Object(c["c"])("examples",void 0,t)+"\n",e.examples.forEach((function(t,n){i+=JSON.stringify(t,null,2),n!==e.examples.length-1&&(i+="\n")}))),i}function re(e,t){for(var i=e,n=0;n1?" "+r:"");n=i+" ("+s+")",r++}return n}function oe(e,t){var i={};function n(e,t,i,r){var s=!Array.isArray(e)&&!ge(e);(s||r)&&(t[i||""]=!0),ge(e)&&Object.keys(e).forEach((function(s){n(e[s],t,i+"."+s,r)}))}if(Array.isArray(e))for(var r=Math.min(e.length,d),s=0;ss?1:iu&&isFinite(t)&&Math.floor(t)===t&&!isNaN(new Date(t).valueOf())}function de(e){if(e<900)return e.toFixed()+" B";var t=e/1e3;if(t<900)return t.toFixed(1)+" KB";var i=t/1e3;if(i<900)return i.toFixed(1)+" MB";var n=i/1e3;if(n<900)return n.toFixed(1)+" GB";var r=n/1e3;return r.toFixed(1)+" TB"}function ue(e,t){return e.length<=t?e:e.slice(0,t)+"..."}function ge(e){return"object"===h(e)&&null!==e&&!Array.isArray(e)}function pe(e,t){return-1!==e.indexOf(t)}function me(e,t){if(!t&&!e)return!1;if(t&&!e||!t&&e)return!0;if(t.length!==e.length)return!0;for(var i=function(i){var n=void 0;if(n="error"===e[i].type?t.find((function(t){return t.line===e[i].line})):t.find((function(t){return t.dataPath===e[i].dataPath&&t.schemaPath===e[i].schemaPath})),!n)return{v:!0}},n=0;nh.top&&(o=!1);var u=s?0:l.top-c.top;if(o){var g=t.offsetHeight;this.dom.menu.style.left="0",this.dom.menu.style.top=u+g+"px",this.dom.menu.style.bottom=""}else this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px";this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=Object(r["getSelection"])(),this.anchor=t,setTimeout((function(){d.dom.focusButton.focus()}),0),e.visibleMenu&&e.visibleMenu.hide(),e.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),e.visibleMenu===this&&(e.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(e){var t=this,i=e===this.expandedItem,n=this.expandedItem;if(n&&(n.ul.style.height="0",n.ul.style.padding="",setTimeout((function(){t.expandedItem!==n&&(n.ul.style.display="",Object(r["removeClassName"])(n.ul.parentNode,"jsoneditor-selected"))}),300),this.expandedItem=void 0),!i){var s=e.ul;s.style.display="block",s.clientHeight,setTimeout((function(){if(t.expandedItem===e){for(var i=0,n=0;n1&&(o+=".{"+r.fields.map((function(e){var t=e.split("."),i=t[t.length-1];return i+": "+e})).join(", ")+"}")),o}function a(e,t){return r.a.search(e,t)}},function(e,t,i){"use strict";i.r(t),i.d(t,"showSortModal",(function(){return a}));var n=i(14),r=i.n(n),s=i(1),o=i(0);function a(e,t,i,n){var a=Array.isArray(t)?Object(o["getChildPaths"])(t):[""],l=n&&n.path&&Object(o["contains"])(a,n.path)?n.path:a[0],c=n&&n.direction||"asc",h='
'+Object(s["c"])("sort")+"
"+Object(s["c"])("sortFieldLabel")+'
'+Object(s["c"])("sortDirectionLabel")+'
';r()({parent:e,content:h,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate((function(e){var t=e.modalElem().querySelector("form"),n=e.modalElem().querySelector("#ok"),r=e.modalElem().querySelector("#field"),s=e.modalElem().querySelector("#direction");function o(e){return""===e?"@":"."===e[0]?e.slice(1):e}function h(e){s.value=e,s.className="jsoneditor-button-group jsoneditor-button-group-value-"+s.value}a.forEach((function(e){var t=document.createElement("option");t.text=o(e),t.value=e,r.appendChild(t)})),r.value=l||a[0],h(c||"asc"),s.onclick=function(e){h(e.target.getAttribute("data-value"))},n.onclick=function(t){t.preventDefault(),t.stopPropagation(),e.close(),i({path:r.value,direction:s.value})},t&&(t.onsubmit=n.onclick)})).afterClose((function(e){e.destroy()})).show()}},function(e,t,i){"use strict";i.r(t),i.d(t,"showTransformModal",(function(){return A}));var n=i(14),r=i.n(n),s=i(10),o=i.n(s),a=i(1);function l(e){return l="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},l(e)}function c(e,t,i){var n;"number"===typeof t?t>10?n=g(" ",10):t>=1&&(n=g(" ",t)):"string"===typeof t&&""!==t&&(n=t);var r=h(e,n,"",i);return r.length>i?p(r,i)+"...":r}function h(e,t,i,n){return"boolean"===typeof e||e instanceof Boolean||null===e||"number"===typeof e||e instanceof Number||"string"===typeof e||e instanceof String||e instanceof Date?JSON.stringify(e):Array.isArray(e)?d(e,t,i,n):e&&"object"===l(e)?u(e,t,i,n):void 0}function d(e,t,i,n){for(var r=t?i+t:void 0,s=t?"[\n":"[",o=0;on)return s+"..."}return s+=t?"\n"+i+"]":"]",s}function u(e,t,i,n){var r=t?i+t:void 0,s=!0,o=t?"{\n":"{";if("function"===typeof e.toJSON)return h(e.toJSON(),t,i,n);for(var a in e)if(m(e,a)){var l=e[a];if(s?s=!1:o+=t?",\n":",",o+=t?r+'"'+a+'": ':'"'+a+'":',o+=h(l,t,r,n),o.length>n)return o+"..."}return o+=t?"\n"+i+"}":"}",o}function g(e,t){var i="";while(t-- >0)i+=e;return i}function p(e,t){return"number"===typeof t?e.slice(0,t):e}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var f=i(0),C=i(2),I='Enter a JMESPath query to filter, sort, or transform the JSON data.
To learn JMESPath, go to the interactive tutorial.';function A(e){var t=e.container,i=e.json,n=e.queryDescription,s=void 0===n?I:n,l=e.createQuery,h=e.executeQuery,d=e.onTransform,u=i,g='