Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
META-INF.resources.webjars.js.chunk-51277dbe.6f598840.js Maven / Gradle / Ivy
/*! For license information please see chunk-51277dbe.6f598840.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-51277dbe"],{"4a6b":function(e,t,_){},"576f":function(e,t,_){"use strict";_.d(t,"a",(function(){return n})),_("a4d3"),_("e01a"),_("4160"),_("a15b"),_("b0c0"),_("d3b7"),_("25f0"),_("159b");var a=_("b1c7");function n(e){var t=[];return null!=e&&null!=e&&(r(t),t.push("## "+e.summary),r(t),t.push("**Url**:`"+e.showUrl+"`"),r(t),t.push("**Method**:`"+e.methodType+"`"),r(t),t.push("**produces**:`"+a.a.toString(e.consumes,"*")+"`"),r(t),t.push("**consumes**:`"+a.a.toString(e.produces,"*")+"`"),r(t),t.push("**description**:"+a.a.toString(e.description,"None")),a.a.checkUndefined(e.requestValue)&&(r(t),t.push("**Sample**:"),r(t),t.push("```javascript"),t.push(e.requestValue),t.push("```")),function(e,t){var _=e.reqParameters;r(t),t.push("**Params**:"),r(t),t.push("**Params**:"),_.length>0?(r(t),t.push("| name | description | in | require | type | schema |"),t.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),function e(t,_,n){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=n,_.push("|"+o(t)+"|"+a.a.toString(t.description,"")+"|"+a.a.toString(t.in,"")+"|"+a.a.toString(t.require,"")+"|"+a.a.toString(t.type,"")+"|"+a.a.toString(t.schemaValue,"")+"|"),e(t.children,_,t.level+1)}))}(_,t,1)):(r(t),t.push("None"))}(e,t),function(e,t){a.a.checkUndefined(e.responseCodes)&&e.responseCodes.length>0&&(r(t),t.push("**status**:"),r(t),t.push("| code | description | schema |"),t.push("| -------- | -------- | ----- | "),e.responseCodes.forEach((function(e){t.push("|"+a.a.toString(e.code,"")+"|"+a.a.toString(e.description,"")+"|"+a.a.toString(e.schema,"")+"|")})))}(e,t),function(e,t){if(e.multipartResponseSchema){var _=e.multipCodeDatas;a.a.arrNotEmpty(_)&&_.forEach((function(e){r(t),t.push("**code-"+a.a.toString(e.code,"")+"**:"),s(e,t)}))}else s(e.multipData,t)}(e,t)),t.join("\n")}function r(e){e.push("\n")}function s(e,t){(function(e,t){a.a.checkUndefined(e)&&e.length>0&&(r(t),t.push("**Response Header**:"),r(t),t.push("|name | description | type |"),t.push("| -------- | -------- | ----- | "),e.forEach((function(e){t.push("|"+a.a.toString(e.name,"")+"|"+a.a.toString(e.description,"")+"|"+a.a.toString(e.type,"")+"|")})))})(e.responseHeaderParameters,t),r(t),t.push("**Responses**:"),r(t),a.a.arrNotEmpty(e.data)?(t.push("| name | description | type | schema |"),t.push("| -------- | -------- | ----- |----- | "),e.data.forEach((function(e){e.level=1,t.push("|"+o(e)+"|"+a.a.toString(e.description,"")+"|"+a.a.toString(e.type,"")+"|"+a.a.toString(e.schemaValue,"")+"|"),function e(t,_,n){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=n,_.push("|"+o(t)+"|"+a.a.toString(t.description,"")+"|"+a.a.toString(t.type,"")+"|"+a.a.toString(t.schemaValue,"")+"|"),e(t.children,_,t.level+1)}))}(e.children,t,e.level+1)}))):t.push("None"),r(t),t.push("**Response Sample**:"),e.responseBasicType?(t.push("```text"),t.push(e.responseText),t.push("```")):(t.push("```javascript"),t.push(e.responseValue),t.push("```"))}function o(e){for(var t=[],_=1;_0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var _=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=_+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=n()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=n()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),i=_(1),c=_.n(i),l=_(2),u=_.n(l),p="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},d=function(){function e(e,t){for(var _=0;_0&&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"===p(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=u()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{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(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,_=!!document.queryCommandSupported;return t.forEach((function(e){_=_&&!!document.queryCommandSupported(e)})),_}}]),t}(c.a);function f(e,t){var _="data-clipboard-"+e;if(t.hasAttribute(_))return t.getAttribute(_)}t.default=m}]).default},b9bf:function(e,t,_){"use strict";_.d(t,"a",(function(){return n})),_("a4d3"),_("e01a"),_("4160"),_("a15b"),_("b0c0"),_("d3b7"),_("25f0"),_("159b");var a=_("b1c7");function n(e){var t=[];return null!=e&&null!=e&&(r(t),t.push("## "+e.summary),r(t),t.push("**接口地址**:`"+e.showUrl+"`"),r(t),t.push("**请求方式**:`"+e.methodType+"`"),r(t),t.push("**请求数据类型**:`"+a.a.toString(e.consumes,"*")+"`"),r(t),t.push("**响应数据类型**:`"+a.a.toString(e.produces,"*")+"`"),r(t),t.push("**接口描述**:"+a.a.toString(e.description,"暂无")),a.a.checkUndefined(e.requestValue)&&(r(t),t.push("**请求示例**:"),r(t),t.push("```javascript"),t.push(e.requestValue),t.push("```")),function(e,t){var _=e.reqParameters;r(t),t.push("**请求参数**:"),r(t),t.push("**请求参数**:"),_.length>0?(r(t),t.push("| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |"),t.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),function e(t,_,n){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=n,_.push("|"+o(t)+"|"+a.a.toString(t.description,"")+"|"+a.a.toString(t.in,"")+"|"+a.a.toString(t.require,"")+"|"+a.a.toString(t.type,"")+"|"+a.a.toString(t.schemaValue,"")+"|"),e(t.children,_,t.level+1)}))}(_,t,1)):(r(t),t.push("暂无"))}(e,t),function(e,t){a.a.checkUndefined(e.responseCodes)&&e.responseCodes.length>0&&(r(t),t.push("**响应状态**:"),r(t),t.push("| 状态码 | 说明 | schema |"),t.push("| -------- | -------- | ----- | "),e.responseCodes.forEach((function(e){t.push("|"+a.a.toString(e.code,"")+"|"+a.a.toString(e.description,"")+"|"+a.a.toString(e.schema,"")+"|")})))}(e,t),function(e,t){if(e.multipartResponseSchema){var _=e.multipCodeDatas;a.a.arrNotEmpty(_)&&_.forEach((function(e){r(t),t.push("**响应状态码-"+a.a.toString(e.code,"")+"**:"),s(e,t)}))}else s(e.multipData,t)}(e,t)),t.join("\n")}function r(e){e.push("\n")}function s(e,t){(function(e,t){a.a.checkUndefined(e)&&e.length>0&&(r(t),t.push("**响应Header**:"),r(t),t.push("| 参数名称 | 参数说明 | 数据类型 |"),t.push("| -------- | -------- | ----- | "),e.forEach((function(e){t.push("|"+a.a.toString(e.name,"")+"|"+a.a.toString(e.description,"")+"|"+a.a.toString(e.type,"")+"|")})))})(e.responseHeaderParameters,t),r(t),t.push("**响应参数**:"),r(t),a.a.arrNotEmpty(e.data)?(t.push("| 参数名称 | 参数说明 | 类型 | schema |"),t.push("| -------- | -------- | ----- |----- | "),e.data.forEach((function(e){e.level=1,t.push("|"+o(e)+"|"+a.a.toString(e.description,"")+"|"+a.a.toString(e.type,"")+"|"+a.a.toString(e.schemaValue,"")+"|"),function e(t,_,n){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=n,_.push("|"+o(t)+"|"+a.a.toString(t.description,"")+"|"+a.a.toString(t.type,"")+"|"+a.a.toString(t.schemaValue,"")+"|"),e(t.children,_,t.level+1)}))}(e.children,t,e.level+1)}))):t.push("暂无"),r(t),t.push("**响应示例**:"),e.responseBasicType?(t.push("```text"),t.push(e.responseText),t.push("```")):(t.push("```javascript"),t.push(e.responseValue),t.push("```"))}function o(e){for(var t=[],_=1;_Hello",contentType:"*/*",columns:[],responseHeaderColumns:[],responseStatuscolumns:[],responseParametersColumns:[],expanRows:!0,multipCode:!1,multipCodeDatas:[],multipData:{},page:!1,reqParameters:[]}},created:function(){var e=this,t=_store_constants__WEBPACK_IMPORTED_MODULE_23__.a.globalTreeTableModelParams+this.swaggerInstance.id,_=this.swaggerInstance.swaggerTreeTableModels;this.$Knife4jModels.setValue(t,_),this.initI18n(),this.initRequestParams(),this.initResponseCodeParams(),setTimeout((function(){e.copyApiAddress(),e.copyApiMarkdown(),e.copyApiUrl()}),1500)},computed:{language:function(){return this.$store.state.globals.language},swagger:function(){return this.$store.state.globals.swagger}},watch:{language:function(e,t){this.initI18n()}},methods:{getCurrentI18nInstance:function(){return this.$i18n.messages[this.language]},initI18n:function(){var e=this.getCurrentI18nInstance();this.columns=e.table.documentRequestColumns,this.responseStatuscolumns=e.table.documentResponseStatusColumns,this.responseHeaderColumns=e.table.documentResponseHeaderColumns,this.responseParametersColumns=e.table.documentResponseColumns},copyApiUrl:function(){var e=this,t="btnCopyMethod"+this.api.id,_=this.api.showUrl,a=new clipboard__WEBPACK_IMPORTED_MODULE_26___default.a("#"+t,{text:function(){return _}});a.on("success",(function(){var t=e.getCurrentI18nInstance().message.copy.method.success;e.$message.info(t)})),a.on("error",(function(t){var _=e.getCurrentI18nInstance().message.copy.method.fail;e.$message.info(_)}))},copyApiAddress:function(){var e=this,t="btnCopyAddress"+this.api.id,_=new clipboard__WEBPACK_IMPORTED_MODULE_26___default.a("#"+t,{text:function(){return window.location.href}});_.on("success",(function(t){var _=e.getCurrentI18nInstance().message.copy.url.success;e.$message.info(_)})),_.on("error",(function(t){var _=e.getCurrentI18nInstance().message.copy.url.fail;e.$message.info(_)}))},copyApiMarkdown:function(){var e=this,t="btnCopyMarkdown"+this.api.id,_=Object(D_Users_xiaoymin_code_oschina_swagger_bootstrap_ui_knife4j_vue_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_21__.a)(Object(D_Users_xiaoymin_code_oschina_swagger_bootstrap_ui_knife4j_vue_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_21__.a)({},e.api),{},{reqParameters:e.reqParameters,multipCodeDatas:e.multipCodeDatas,multipData:e.multipData}),a=new clipboard__WEBPACK_IMPORTED_MODULE_26___default.a("#"+t,{text:function(){var t=e.getCurrentI18nInstance();return"zh"===t.lang?Object(_components_officeDocument_markdownSingleTransform__WEBPACK_IMPORTED_MODULE_24__.a)(_):"us"===t.lang?Object(_components_officeDocument_markdownSingleTransformUS__WEBPACK_IMPORTED_MODULE_25__.a)(_):void 0}});a.on("success",(function(t){var _=e.getCurrentI18nInstance().message.copy.document.success;e.$message.info(_)})),a.on("error",(function(t){var _=e.getCurrentI18nInstance().message.copy.document.fail;e.$message.info(_)}))},filterChildrens:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],_=arguments.length>2?arguments[2]:void 0;if(0===e.length)return t;var a=this,n=_?t.filter((function(t){return!e.includes("".concat(_,".").concat(t.name))})):t.filter((function(t){return!e.includes(t.name)}));return n.map((function(t){return t.id=lodash_uniqueId__WEBPACK_IMPORTED_MODULE_27___default()("param"),t.children&&(t.children=a.filterChildrens(e,t.children,t.name)),t}))},initRequestParams:function initRequestParams(){var _this=this,key=_store_constants__WEBPACK_IMPORTED_MODULE_23__.a.globalTreeTableModelParams+this.swaggerInstance.id,data=[],that=this,apiInfo=this.api;_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.strNotBlank(apiInfo.contentType)&&(this.contentType=apiInfo.contentType),"application/x-www-form-urlencoded;charset=UTF-8"==apiInfo.contentType&&(this.contentType="application/x-www-form-urlencoded");var tmpKeys=Object.keys(apiInfo.ignoreParameters||{}),ignoreParameterAllKeys=[],reg=new RegExp("\\[0\\]","gm");if(null!=tmpKeys&&tmpKeys.length>0&&tmpKeys.forEach((function(e){ignoreParameterAllKeys.push(e),e.indexOf("[0]")>-1&&ignoreParameterAllKeys.push(e.replace(reg,""))})),null!=apiInfo.parameters&&apiInfo.parameters.length>0){var dx=apiInfo.parameters.filter((function(e){return e.name.indexOf("[0]")>-1?!(ignoreParameterAllKeys.length>0)||ignoreParameterAllKeys.filter((function(t){return!e.name.startsWith(t)})).length>0:!ignoreParameterAllKeys.includes(e.name)}));data=data.concat(dx)}null!=apiInfo.refTreetableparameters&&apiInfo.refTreetableparameters.length>0&&apiInfo.refTreetableparameters.forEach((function(e){data=data.concat(e.params)})),null!=data&&data.sort((function(e,t){return t.require-e.require}));var reqParameters=[];if(null!=data&&data.length>0&&data.forEach((function(param){if("-1"==param.pid){if(param.children=null,param.schema){var schemaName=param.schemaValue;if(_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.checkUndefined(schemaName)&&that.$Knife4jModels.exists(key,schemaName)){var model=that.$Knife4jModels.getByModelName(key,schemaName);if(model=that.swagger.analysisDefinitionRefTableModel(that.swaggerInstance.id,model),model&&model.params){var childrens=model.params.filter((function(_ref){var name=_ref.name;return!(ignoreParameterAllKeys.includes(name)||ignoreParameterAllKeys.includes(name+"[0]")||ignoreParameterAllKeys.includes("".concat(param.name,".").concat(name))||ignoreParameterAllKeys.some((function(key){return new RegExp("^(".concat(key,"$|").concat(key,"[.[])")).test(name)||eval("/"+key+"/g").test(name)})))})).map((function(e){var t=that.copyNewParameter(e);if(t.pid=param.id,t.children){var _=JSON.parse(JSON.stringify(t.children)),a=ignoreParameterAllKeys.map((function(e){return e.startsWith("".concat(param.name,".").concat(t.name,"."))?e.replace("".concat(param.name,".").concat(t.name,"."),""):e.startsWith("".concat(t.name,"."))?e.replace("".concat(t.name,"."),""):null})).filter(Boolean);t.children=that.filterChildrens(a,_)}return t}));param.children=childrens.length>0?childrens:null}}}reqParameters.push(param)}})),null!=apiInfo.includeParameters){var tmpIncludeKeys=Object.keys(apiInfo.includeParameters||{}),bodyParam=reqParameters.filter((function(e){return"body"==e.in})).length;if(tmpIncludeKeys.length>0&&bodyParam>0){var includeParameters=[],rootKeys=[];this.deepRootKeys(tmpIncludeKeys,rootKeys),reqParameters.forEach((function(e){if(rootKeys.includes(e.name)){var t=lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_31___default()(e);t.children=null,null!=e.children&&e.children.length>0&&(t.children=new Array,_this.deepIncludeParam(t.name,t,e.children,tmpIncludeKeys,rootKeys)),includeParameters.push(t)}else tmpIncludeKeys.includes(e.name)&&((t=lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_31___default()(e)).children=null,null!=e.children&&e.children.length>0&&(t.children=new Array,_this.deepIncludeParam(t.name,t,e.children,tmpIncludeKeys,rootKeys)),includeParameters.push(t))})),that.reqParameters=includeParameters}else that.reqParameters=reqParameters}else that.reqParameters=reqParameters},deepRootKeys:function(e,t){var _=[];e.forEach((function(e){var a=e.substring(0,e.lastIndexOf("."));a.indexOf(".")>-1&&_.push(a),t.includes(a)||t.push(a)})),_.length>0&&this.deepRootKeys(_,t)},deepIncludeParam:function(e,t,_,a,n){var r=this;null!=_&&_.length>0&&_.forEach((function(_){var s=e+"."+_.name;if(n.includes(s)){var o=lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_31___default()(_);o.children=null,t.children.push(o),_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.arrNotEmpty(_.children)&&(o.children=new Array,r.deepIncludeParam(s,o,_.children,a,n))}else a.includes(s)&&t.children.push(_)}))},copyNewParameter:function(e){var t=Object.assign({},e);return t.id=lodash_uniqueId__WEBPACK_IMPORTED_MODULE_27___default()("param"),function e(t){return t?t.map((function(t){t.id=lodash_uniqueId__WEBPACK_IMPORTED_MODULE_27___default()("param"),e(t.children)})):null}(t.children),t},deepTreeTableSchemaModel:function(e,t,_){var a=this;if(_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.checkUndefined(e.schemaValue)){var n=t[e.schemaValue];_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.checkUndefined(n)&&(_.parentTypes.push(e.schemaValue),_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.arrNotEmpty(n.params)&&n.params.forEach((function(n){var r={childrenTypes:n.childrenTypes,def:n.def,description:n.description,enum:n.enum,example:n.example,id:n.id,ignoreFilterName:n.ignoreFilterName,in:n.in,level:n.level,name:n.name,parentTypes:n.parentTypes,pid:n.pid,readOnly:n.readOnly,require:n.require,schema:n.schema,schemaValue:n.schemaValue,show:n.show,txtValue:n.txtValue,type:n.type,validateInstance:n.validateInstance,validateStatus:n.validateStatus,value:n.value};r.pid=e.id,e.children.push(r),r.schema&&-1==_.parentTypes.indexOf(r.schemaValue)&&(r.children=[],a.deepTreeTableSchemaModel(r,t,_),0==r.children.length&&(r.children=null))})))}},findModelChildren:function(e,t){var _=this;null!=t&&null!=t&&t.length>0&&t.forEach((function(a){a.pid==e.id&&(a.children=[],_.findModelChildren(a,t),0==a.children.length&&(a.children=null),e.children.push(a))}))},initResponseCodeParams:function(){var e=this,t=_store_constants__WEBPACK_IMPORTED_MODULE_23__.a.globalTreeTableModelParams+this.swaggerInstance.id;e.multipCode=this.api.multipartResponseSchema,e.multipCodeDatas=[],e.multipData={};var _=this.api.responseCodes;if(null!=_&&null!=_){_.forEach((function(_){if(null!=_.schema&&null!=_.schema){var a=[];null!=_.responseParameters&&_.responseParameters.length>0&&(a=a.concat(_.responseParameters)),null!=_.responseTreetableRefParameters&&_.responseTreetableRefParameters.length>0&&_.responseTreetableRefParameters.forEach((function(e){a=a.concat(e.params)}));var n=[];null!=a&&a.length>0&&a.forEach((function(_){if("-1"==_.pid){if(_.children=[],_.schema){var a=_.schemaValue;if(_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.checkUndefined(a)&&e.$Knife4jModels.exists(t,a)){var r=e.$Knife4jModels.getByModelName(t,a);(r=e.swagger.analysisDefinitionRefTableModel(e.swaggerInstance.id,r))&&r.params&&(_.children=r.params.map((function(t){var a=e.copyNewParameter(t);return a.pid=_.id,a})))}}0==_.children.length&&(_.children=null),n.push(_)}}));var r=Object(D_Users_xiaoymin_code_oschina_swagger_bootstrap_ui_knife4j_vue_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_21__.a)(Object(D_Users_xiaoymin_code_oschina_swagger_bootstrap_ui_knife4j_vue_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_21__.a)({},_),{},{data:n});e.multipCode||(e.multipData=r),e.multipCodeDatas.push(r)}}));var a=Object.keys(e.multipData);if(_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.arrNotEmpty(_)&&!_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.arrNotEmpty(a)){var n=_[0];if(_core_utils__WEBPACK_IMPORTED_MODULE_22__.a.strNotBlank(n.schemaTitle)){var r=Object(D_Users_xiaoymin_code_oschina_swagger_bootstrap_ui_knife4j_vue_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_21__.a)(Object(D_Users_xiaoymin_code_oschina_swagger_bootstrap_ui_knife4j_vue_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_21__.a)({},n),{},{data:[]});e.multipData=r}}}},showResponseEditFieldDescription:function(e){if(this.api.multipartResponseSchema){var t=this.multipCodeDatas[0],_="knife4jDocumentShowEditor"+this.api.id+t.code;this.showEditorFieldAnyWay(_)}else _="knife4jDocumentShowEditor"+this.api.id,this.showEditorFieldAnyWay(_)},multipartTabCodeChanges:function(e){var t=this;setTimeout((function(){var _="knife4jDocumentShowEditor"+t.api.id+e;t.showEditorFieldAnyWay(_)}),1e3)},showEditorFieldAnyWay:function(e){var t=this.swaggerInstance,_=this.api.getHttpSuccessCodeObject(),a=document.getElementById(e),n=[],r=a.getElementsByClassName("ace_text-layer"),s=a.querySelector(".ace_print-margin").style.left;if(r.length>0)for(var o=r[0].getElementsByClassName("ace_line"),i=0;i1&&(s=i(s,n(arguments[1]))),s<0&&(s=_+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},eeba:function(e,t,_){"use strict";_.r(t);var a=_("bd08").a,n=(_("a80b"),_("2877")),r=Object(n.a)(a,(function(){var e=this,t=e.$createElement,_=e._self._c||t;return _("div",{staticClass:"document"},[_("a-row",[_("a-row",{staticClass:"knife4j-api-title"},[_("a-col",{attrs:{span:18}},[e.api.deprecated?_("span",{staticClass:"knife4j-menu-api-deprecated"},[e._v(" "+e._s(e.api.summary)+" ")]):_("span",[e._v(" "+e._s(e.api.summary)+" ")])]),_("a-col",{staticClass:"knife4j-api-copy-address",attrs:{span:2,id:"btnCopyMethod"+e.api.id},domProps:{innerHTML:e._s(e.$t("doc.copyMethod"))}},[e._v("复制接口")]),_("a-col",{staticClass:"knife4j-api-copy-address",attrs:{span:2,id:"btnCopyMarkdown"+e.api.id},domProps:{innerHTML:e._s(e.$t("doc.copy"))}},[e._v("复制文档")]),_("a-col",{staticClass:"knife4j-api-copy-address",attrs:{span:2,id:"btnCopyAddress"+e.api.id},domProps:{innerHTML:e._s(e.$t("doc.copyHash"))}},[e._v("复制地址")])],1),_("a-row",{class:"knife4j-api-"+e.api.methodType.toLowerCase()},[_("div",{staticClass:"knife4j-api-summary"},[_("span",{staticClass:"knife4j-api-summary-method"},[e.api.securityFlag?_("a-icon",{staticStyle:{"font-size":"16px"},attrs:{type:"unlock"}}):e._e(),e._v(" "+e._s(e.api.methodType))],1),_("span",{staticClass:"knife4j-api-summary-path"},[e._v(e._s(e.api.showUrl))])])]),_("a-row",{staticClass:"knife4j-api-row"},[_("a-col",{attrs:{span:12}},[_("a-row",[_("a-col",{staticClass:"api-basic-title",attrs:{span:6},domProps:{innerHTML:e._s(e.$t("doc.produces"))}},[e._v("请求数据类型")]),e._v(" "+e._s(e.contentType)+" ")],1)],1),_("a-col",{attrs:{span:12}},[_("a-row",[_("a-col",{staticClass:"api-basic-title",attrs:{span:6},domProps:{innerHTML:e._s(e.$t("doc.consumes"))}},[e._v("响应数据类型")]),e._v(" "+e._s(e.api.produces)+" ")],1)],1)],1)],1),e.api.author?_("div",[_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.author"))}},[e._v(" 开发者 ")]),e.api.author?_("div",{staticClass:"api-body-desc",domProps:{innerHTML:e._s(e.api.author)}}):e._e()]):e._e(),e.api.description?_("div",[_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.des"))}},[e._v(" 接口描述 ")]),e.api.description?_("div",{staticClass:"api-body-desc",domProps:{innerHTML:e._s(e.api.description)}}):e._e()]):e._e(),e.api.requestValue?_("div",[_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.requestExample"))}},[e._v(" 请求示例 ")]),_("editor-show",{attrs:{value:e.api.requestValue,xmlMode:e.api.xmlRequest}})],1):e._e(),_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.params"))}},[e._v(" 请求参数 ")]),_("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.columns,dataSource:e.reqParameters,rowKey:"id",size:"small",pagination:e.page},scopedSlots:e._u([{key:"descriptionValueTemplate",fn:function(t,a){return[_("span",{domProps:{innerHTML:e._s(t)}}),a.example?_("span",[e._v(",示例值("+e._s(a.example)+")")]):e._e()]}},{key:"requireTemplate",fn:function(t){return[t?_("span",{staticStyle:{color:"red"}},[e._v(e._s(t.toLocaleString()))]):_("span",[e._v(e._s(t.toLocaleString()))])]}},{key:"typeTemplate",fn:function(t){return[_("span",{class:"knife4j-request-"+t},[e._v(e._s(t))])]}},{key:"datatypeTemplate",fn:function(e,t){return[_("data-type",{attrs:{text:e,record:t}})]}}])}),_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.response"))}},[e._v(" 响应状态 ")]),_("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseStatuscolumns,dataSource:e.api.responseCodes,rowKey:"code",size:"small",pagination:e.page},scopedSlots:e._u([{key:"descriptionTemplate",fn:function(t){return[_("div",{domProps:{innerHTML:e._s(t)}})]}},{key:"schemaTemplate",fn:function(t,a){return[null!=t?_("span",{domProps:{innerHTML:e._s(t)}}):null!=a.schemaTitle?_("span",{domProps:{innerHTML:e._s(a.schemaTitle)}}):e._e()]}}])}),e.api.multipartResponseSchema?_("div",[_("a-tabs",{on:{change:e.multipartTabCodeChanges}},e._l(e.multipCodeDatas,(function(t){return _("a-tab-pane",{key:t.code,attrs:{tab:t.code}},[t.responseHeaderParameters?_("div",[_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.responseHeaderParams"))}},[e._v(" 响应Header ")]),_("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseHeaderColumns,dataSource:t.responseHeaderParameters,rowKey:"id",size:"small",pagination:e.page}})],1):e._e(),_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.responseParams"))}},[e._v(" 响应参数 ")]),_("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseParametersColumns,dataSource:t.data,rowKey:"id",size:"small",pagination:e.page},scopedSlots:e._u([{key:"descriptionTemplate",fn:function(t){return[_("span",{domProps:{innerHTML:e._s(t)}})]}}],null,!0)}),_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.responseExample"))}},[e._v(" 响应示例 ")]),_("a-row",{attrs:{id:"knife4jDocumentShowEditor"+e.api.id+t.code}},[_("editor-show",{attrs:{value:t.responseBasicType?t.responseText:t.responseValue},on:{showDescription:e.showResponseEditFieldDescription}})],1)],1)})),1)],1):_("div",[e.api.responseHeaderParameters?_("div",[_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.responseHeaderParams"))}},[e._v(" 响应Header ")]),_("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseHeaderColumns,dataSource:e.api.responseHeaderParameters,rowKey:"id",size:"small",pagination:e.page}})],1):e._e(),_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.responseParams"))}},[e._v(" 响应参数 ")]),_("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseParametersColumns,dataSource:e.multipData.data,rowKey:"id",size:"small",pagination:e.page},scopedSlots:e._u([{key:"descriptionTemplate",fn:function(t){return[_("span",{domProps:{innerHTML:e._s(t)}})]}}])}),_("div",{staticClass:"api-title",domProps:{innerHTML:e._s(e.$t("doc.responseExample"))}},[e._v(" 响应示例 ")]),_("a-row",{attrs:{id:"knife4jDocumentShowEditor"+e.api.id}},[_("editor-show",{attrs:{value:e.multipData.responseBasicType?e.multipData.responseText:e.multipData.responseValue},on:{showDescription:e.showResponseEditFieldDescription}})],1)],1)],1)}),[],!1,null,"7da2228c",null);t.default=r.exports}}]);