@fly-vue/lcdp-iview 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/module/components/attribute/prop-value-editor/index.d.ts +2 -0
- package/@types/module/components/components/IvTableGrid/index.vue.d.ts +1 -1
- package/@types/module/components/for-renderer/inline-renderer/index.vue.d.ts +20 -1
- package/@types/module/components/index.d.ts +1 -0
- package/@types/module/schema-extend/components/footer.d.ts +14 -0
- package/@types/module/schema-extend/components/form.d.ts +0 -29
- package/@types/module/schema-extend/components/globalfooter.d.ts +0 -6
- package/@types/module/schema-extend/components/others.d.ts +1 -44
- package/@types/module/schema-extend/components/tree.d.ts +0 -6
- package/@types/module/schema-extend/components/upload.d.ts +13 -0
- package/bingo-builder-manifest.json +16 -10
- package/index.js +4 -4
- package/modules/fly_vue_lcdp_iview/assets/css/app.css +1 -1
- package/modules/fly_vue_lcdp_iview/chunk-732b533d.3f9274e5d39112919439.js +1 -0
- package/modules/fly_vue_lcdp_iview/dll.js +9 -9
- package/modules/fly_vue_lcdp_iview/{lcdp-designer-components.e013704f9413f86c5e64.js → lcdp-designer-components.3f9274e5d39112919439.js} +0 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.3f9274e5d39112919439.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.3f9274e5d39112919439.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-iview-component.3f9274e5d39112919439.js +1 -0
- package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.3f9274e5d39112919439.js +1 -0
- package/package.json +11 -8
- package/modules/fly_vue_lcdp_iview/chunk-732b533d.e013704f9413f86c5e64.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-attrcomponent.e013704f9413f86c5e64.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-basecomponent.e013704f9413f86c5e64.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-iview-component.e013704f9413f86c5e64.js +0 -1
- package/modules/fly_vue_lcdp_iview/lcdp-renderer-components.e013704f9413f86c5e64.js +0 -1
- package/modules/fly_vue_lcdp_iview/vendors~lcdp-iview-attrcomponent.e013704f9413f86c5e64.js +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
(window["webpackJsonp_$fly_vue_lcdp_iview_"]=window["webpackJsonp_$fly_vue_lcdp_iview_"]||[]).push([["vendors~lcdp-iview-attrcomponent"],{"1e00":function(e,t,n){(function(t,n){e.exports=n()})(window,(function(){return function(e){function t(t){for(var n,o,r=t[0],a=t[1],s=0,l=[];s<r.length;s++)o=r[s],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&l.push(i[o][0]),i[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);u&&u(t);while(l.length)l.shift()()}var n={},o={app:0},i={app:0};function r(e){return a.p+"modules/fly_vue_lcdp_designer_extra/"+({"lcdp-designer-extra-propvalueeditors":"lcdp-designer-extra-propvalueeditors"}[e]||e)+".698260cdc889f0076d77.js"}function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.e=function(e){var t=[],n={"chunk-e32482b2":1,"lcdp-designer-extra-propvalueeditors":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var i="modules/fly_vue_lcdp_designer_extra/assets/css/"+({"lcdp-designer-extra-propvalueeditors":"lcdp-designer-extra-propvalueeditors"}[e]||e)+"."+{"chunk-114f908c":"31d6cfe0","chunk-1a3a2bee":"31d6cfe0","chunk-2d0cb721":"31d6cfe0","chunk-4a5f46a6":"31d6cfe0","chunk-6c20aa55":"31d6cfe0","chunk-e32482b2":"11048173","lcdp-designer-extra-propvalueeditors":"ed4ad6af"}[e]+".css",r=a.p+i,s=document.getElementsByTagName("link"),l=0;l<s.length;l++){var c=s[l],u=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(u===i||u===r))return t()}var d=document.getElementsByTagName("style");for(l=0;l<d.length;l++)if(c=d[l],u=c.getAttribute("data-href"),u===i||u===r)return t();var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var i=t&&t.target&&t.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=i,delete o[e],p.parentNode.removeChild(p),n(a)},p.href=r;var m=document.getElementsByTagName("head")[0];m.appendChild(p)})).then((function(){o[e]=0})));var s=i[e];if(0!==s)if(s)t.push(s[2]);else{var l=new Promise((function(t,n){s=i[e]=[t,n]}));t.push(s[2]=l);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.src=r(e);var d=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(p);var n=i[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",d.name="ChunkLoadError",d.type=o,d.request=r,n[1](d)}i[e]=void 0}};var p=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp_$fly_vue_lcdp_designer_extra_"]=window["webpackJsonp_$fly_vue_lcdp_designer_extra_"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;return a(a.s=0)}({0:function(e,t,n){e.exports=n("4294")},"0054":function(e,t,n){},"06f6":function(e,t,n){"use strict";n("89a6")},"0c90":function(e,t,n){"use strict";var o=n("6e2f"),i=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.innerValue.length?t("Row",{staticClass:"mb-2 text-13px"},[t("Col",{attrs:{span:"12"}},[e._v(e._s(e.editorOptions.keyTitle))]),t("Col",{attrs:{span:"12"}},[e._v(e._s(e.editorOptions.valueTitle))])],1):e._e(),e._l(e.innerValue,(function(n,o){return[t("div",{key:n[e.VModelUidKey],staticClass:"flex-center mb-2"},[t("AutoComplete",{staticClass:"flex-1",attrs:{clearable:"","filter-method":e.filterMethod,transfer:"",data:e.variables},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"item.name"}}),t("div",{staticClass:"ml-sm mr-sm"},[e._v(":")]),t("VarInput",{staticClass:"flex-1",model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"item.value"}}),t("Icon",{staticClass:"cursor-pointer ml-sm",attrs:{size:"20",type:"ios-close-circle-outline",title:e.editorOptions.removeTitle},on:{click:function(t){return e.removeItem(o)}}})],1)]})),t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.addItem("")}}},[e._v(e._s(e.editorOptions.addTitle))])],2)},r=[],a=n("a026"),s=n("2ef0"),l=n.n(s);function c(){var e=Object(a["inject"])("designerService"),t=e.getAllVariables(),n=Object(a["ref"])([]);return n.value=t.filter((function(e){return"variables"===e.from})).map((function(e){return e.id})),{variables:n}}var u=n("f0b5"),d=n("8a03"),p=n("dae4");function m(e,t,n){var o=void 0===n?{check:!0,defaultEditorOptions:{keyTitle:"变量名",valueTitle:"变量值",removeTitle:"删除",addTitle:"添加变量"}}:n,i=o.check,r=o.defaultEditorOptions,s=Object(a["computed"])((function(){var t=r;return e.options&&Object.assign(t,e.options),t})),c=Object(d["useArrayVModel"])(e,t).innerValue;function u(e){if(!1===i)return!0;var t=l.a.find(c.value,(function(t){return t.name===e}));return!t}var m=function(e){var t,n=u(e);n&&c.value.push((t={},t[d["VModelUidKey"]]=l.a.uniqueId(),t.name=e||"",t.value=null,t))},f=function(e){c.value[e].name||c.value[e].value?p["Messager"].confirm({title:"确认删除吗?",onOk:function(){c.value.splice(e,1)}}):c.value.splice(e,1)};return{editorOptions:s,addItem:m,removeItem:f,innerValue:c,VModelUidKey:d["VModelUidKey"]}}var f=function(){return f=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},v=Object(a["defineComponent"])({props:f(f({},u["a"]),{value:{type:Array},options:{type:Object}}),setup:function(e,t){var n=c().variables,o=function(e,t){return!e||l.a.isString(e)&&l.a.includes(t,e)},i=m(e,t),r=i.editorOptions,a=i.addItem,s=i.removeItem,u=i.innerValue,d=i.VModelUidKey;return{editorOptions:r,innerValue:u,addItem:a,removeItem:s,variables:n,filterMethod:o,VModelUidKey:d}}}),h=v,b=n("2877"),g=Object(b["a"])(h,i,r,!1,null,null,null),y=g.exports,w=n("a3de"),O=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.innerValue.length?t("div",{staticClass:"mb-2 text-13px flex items-center"},[t("div",{staticClass:"col text-center"},[e._v("参数名")]),t("div",{staticClass:"ml-sm mr-sm"}),t("div",{staticClass:"col text-center"},[e._v("参数值")])]):t("div",[e._v("未选择【函数名称】或者已选函数无参数")]),e._l(e.innerValue,(function(n){return[t("div",{key:n[e.VModelUidKey],staticClass:"flex-center mb-1"},[t("Input",{staticClass:"col",attrs:{value:n.name,readonly:""}}),t("div",{staticClass:"ml-sm mr-sm"},[e._v(":")]),"actionContext"===n.name?t("Input",{staticClass:"col",attrs:{value:"当前执行上下文",readonly:""}}):t("VarInput",{staticClass:"col",model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"item.value"}})],1)]}))],2)},x=[],S=function(){return S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},_=Object(a["defineComponent"])({props:S(S({},u["a"]),{value:{type:Array}}),setup:function(e,t){var n=Object(d["useArrayVModel"])(e,t).innerValue;return{innerValue:n,VModelUidKey:d["VModelUidKey"]}}}),E=_,j=Object(b["a"])(E,O,x,!1,null,null,null),k=j.exports,C=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("CommonServicePathSelector",{attrs:{model:e.model},on:{"update-extra-keys":e.updateExtraKeys,"update-request-body-schema":e.updateRequestBodySchema},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}})},V=[],I=n("5c07"),N=n("f5f3"),M=function(){return M=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},M.apply(this,arguments)},P=Object(a["defineComponent"])({props:M(M({},u["a"]),{value:{type:[String,Object]}}),components:{CommonServicePathSelector:I["a"]},setup:function(e,t){var n=Object(d["useVModel"])(e,t).innerValue,o=function(e){t.emit("update-extra-keys",e)},i=Object(N["b"])(e).updateRequestBodySchema;return{innerValue:n,updateExtraKeys:o,updateRequestBodySchema:i}}}),T=P,D=Object(b["a"])(T,C,V,!1,null,null,null),B=D.exports,A=n("47dc"),q=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("VariablesInput",{ref:"root",attrs:{model:e.model,"model-extra":e.modelExtra,"prop-schema":e.propSchema,schemas:e.schemas,service:e.service,node:e.node,options:{keyTitle:"参数名",valueTitle:"参数值",addTitle:"添加参数"}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}})},R=[],$=function(){return $=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)},F=Object(a["defineComponent"])({components:{VariablesInput:y},props:$($({},u["a"]),{value:{type:Array}}),setup:function(e,t){var n=Object(a["ref"])(null),o=Object(d["useArrayVModel"])(e,t).innerValue,i=e.modelExtra,r=e.propSchema;return Object(a["watch"])((function(){return i[r.id]}),(function(){var e=i[r.id].selectedPage;e&&e.variables&&l.a.forIn(e.variables,(function(e,t){"request"===e.source&&n.value&&n.value.addItem(t)}))}),{deep:!0}),{root:n,innerValue:o}}}),z=F,U=Object(b["a"])(z,q,R,!1,null,null,null),L=U.exports,G=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.innerValue.length?t("Row",{staticClass:"mb-2 text-13px"},[t("Col",{attrs:{span:"12"}},[e._v(e._s(e.editorOptions.keyTitle))]),t("Col",{attrs:{span:"12"}},[e._v(e._s(e.editorOptions.valueTitle))])],1):e._e(),e._l(e.innerValue,(function(n,o){return[t("div",{key:n[e.VModelUidKey],staticClass:"flex-center mb-2"},[t("Input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"flex-1",attrs:{clearable:""},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"item.name"}}),t("div",[e._v("参数"+e._s(o+1))]),t("div",{staticClass:"ml-sm mr-sm"},[e._v(":")]),t("VarInput",{staticClass:"flex-1",model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"item.value"}}),t("Icon",{staticClass:"cursor-pointer ml-sm",attrs:{size:"20",type:"ios-close-circle-outline",title:e.editorOptions.removeTitle},on:{click:function(t){return e.removeItem(o)}}})],1)]})),t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.addItem("")}}},[e._v(e._s(e.editorOptions.addTitle))])],2)},K=[],H=function(){return H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H.apply(this,arguments)},J=Object(a["defineComponent"])({props:H(H({},u["a"]),{value:{type:Array},options:{type:Object}}),setup:function(e,t){var n=m(e,t,{check:!1,defaultEditorOptions:{keyTitle:"",valueTitle:"参数值",removeTitle:"删除",addTitle:"添加参数"}}),o=n.editorOptions,i=n.addItem,r=n.removeItem,a=n.innerValue,s=n.VModelUidKey;return{editorOptions:o,innerValue:a,addItem:i,removeItem:r,VModelUidKey:s}}}),W=J,X=Object(b["a"])(W,G,K,!1,null,null,null),Q=X.exports,Y=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("RadioGroup",{model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[t("Radio",{attrs:{label:"page"}},[t("span",[e._v("页面函数")])]),t("Radio",{attrs:{label:"utils"}},[t("span",[e._v("内置函数")])])],1)},Z=[],ee=function(){return ee=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object(a["defineComponent"])({props:ee(ee({},u["a"]),{value:{type:String}}),setup:function(e,t){var n=Object(d["useVModel"])(e,t).innerValue;return{innerValue:n}}}),ne=te,oe=Object(b["a"])(ne,Y,Z,!1,null,null,null),ie=oe.exports;t["a"]={MapEditor:o["a"],VariablesInput:y,FunctionSelector:w["a"],FunctionParamsEditor:k,ServicePathSelector:B,RequestBodyEditor:A["a"],OpenUrlParamsInput:L,OpenInDialogParamsInput:L,SelectedPageParamsInput:L,MethodParamsEditor:Q,FunctionTypeSelector:ie}},"0fbf":function(e,t){e.exports=_$fly_vue_core_},"10d8":function(e,t,n){"use strict";t["a"]={selectedEventName:{type:String},nodeEvents:{type:Object,required:!0},nodeEventsSchema:{type:Object,required:!0}}},2877:function(e,t,n){"use strict";function o(e,t,n,o,i,r,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return o}))},2999:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("2ef0"),i=n.n(o);function r(e){var t=[];return i.a.forIn(e,(function(e,n){e.id=n,e.orderNo=e.orderNo||0,t.push(e),e.properties&&(e.properties=r(e.properties))})),t=i.a.sortBy(t,["orderNo"]),t}},"2c08":function(e,t){e.exports=_$fly_vue_lcdp_orch_},"2e2c":function(e,t,n){e.exports=n("2c08")("./node_modules/@fly-vue/lcdp-orch/index.js")},"2ef0":function(e,t,n){e.exports=n("0fbf")("./node_modules/lodash/lodash.js")},3854:function(e,t,n){},"405b":function(e,t,n){"use strict";var o=n("2ef0"),i=n.n(o),r=n("dae4"),a=n("f5b3"),s=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},l=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function c(){var e=Object(a["c"])().getRuntimeBaseUrl,t=e();return t||r["Logger"].error("后端编排运行时基础地址未配置"),t=i.a.endsWith(t,"/")?i.a.trimEnd(t,"/"):t,""+t}function u(e){var t=c(),n=new r["HttpRequest"];return n.disableInterceptor(r["DefaultInterceptorType"].DefaultResponseError),n.addInterceptor(r["HttpInterceptorType"].responseError,(function(e){var t,n;console.log(e.config.url);var o=null===(n=null===(t=null===e||void 0===e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.message;o&&r["Logger"].error("["+e.config.url+"] "+o)})),e&&(t=t+"/"+e),{url:t,http:n}}function d(e){var t=e;if(i.a.isString(e))try{t=JSON.parse(e)}catch(n){r["Logger"].error(n)}return t}var p={start:function(e){var t=e.workflow,n=e.input,o=void 0===n?{}:n,i=e.mockMetadatas,r=void 0===i?[]:i;return s(this,void 0,void 0,(function(){var e,n,i,a,s;return l(this,(function(l){switch(l.label){case 0:return e=u("runtime"),n=e.url,i=e.http,[4,i.post(n,{workflow:t,input:d(o),mockMetadatas:r})];case 1:return a=l.sent(),s=null===a||void 0===a?void 0:a.data,[2,s]}}))}))},debug:function(e){var t,n=e.workflow,o=e.input,i=void 0===o?{}:o,r=e.breakpoints,a=void 0===r?[]:r,c=e.mockMetadatas,p=void 0===c?[]:c;return s(this,void 0,void 0,(function(){var e,o,r,s;return l(this,(function(l){switch(l.label){case 0:return e=u("runtime/debug"),o=e.url,r=e.http,[4,r.post(o,{workflow:n,input:d(i),breakpoints:a,mockMetadatas:p})];case 1:return s=l.sent(),[2,{debuggerId:null===(t=null===s||void 0===s?void 0:s.data)||void 0===t?void 0:t.id}]}}))}))},step:function(e){return s(this,void 0,void 0,(function(){var t,n,o,i,a;return l(this,(function(s){switch(s.label){case 0:return e?(t=u("runtime/debug/"+e+"/step"),n=t.url,o=t.http,[4,o.post(n)]):(r["Logger"].error("未指定debuggerId"),[2]);case 1:return i=s.sent(),a=null===i||void 0===i?void 0:i.data,[2,a]}}))}))},resume:function(e){return s(this,void 0,void 0,(function(){var t,n,o,i,a;return l(this,(function(s){switch(s.label){case 0:return e?(t=u("runtime/debug/"+e+"/resume"),n=t.url,o=t.http,[4,o.post(n)]):(r["Logger"].error("未指定debuggerId"),[2]);case 1:return i=s.sent(),a=null===i||void 0===i?void 0:i.data,[2,a]}}))}))},finish:function(e){return s(this,void 0,void 0,(function(){var t,n,o,i,a;return l(this,(function(s){switch(s.label){case 0:return e?(t=u("runtime/debug/"+e+"/finish"),n=t.url,o=t.http,[4,o.post(n)]):(r["Logger"].error("未指定debuggerId"),[2]);case 1:return i=s.sent(),a=null===i||void 0===i?void 0:i.data,[2,a]}}))}))},getFuncsSchema:function(){return s(this,void 0,void 0,(function(){var e,t,n,o;return l(this,(function(i){switch(i.label){case 0:return e=u("schema"),t=e.url,n=e.http,[4,n.get(t)];case 1:return o=i.sent(),[2,null===o||void 0===o?void 0:o.data]}}))}))}};t["a"]=p},4294:function(e,t,n){"use strict";n.r(t),n.d(t,"_module",(function(){return Bn})),n.d(t,"sortProperties",(function(){return s["a"]})),n.d(t,"ActionsEditor",(function(){return Et})),n.d(t,"DataSourcesEditor",(function(){return In})),n.d(t,"usePageEditorsConfig",(function(){return st})),n.d(t,"LcdpOrchPropValueEditor",(function(){return Nn["a"]})),n.d(t,"useExpressionDialog",(function(){return Mn["a"]})),n.d(t,"PropValueEditors",(function(){return D["a"]})),n.d(t,"buildClientNodesRegistry",(function(){return Pn["a"]})),n.d(t,"LcdpServerOrchDesigner",(function(){return Tn["a"]})),n.d(t,"useServerOrchConfig",(function(){return Tn["c"]})),n.d(t,"registerServerNodes",(function(){return Tn["b"]}));var o=n("dae4"),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},r={DataSourceAttrEdit:function(){return n.e("lcdp-designer-extra-propvalueeditors").then(n.bind(null,"34ec"))}},a=i({},r),s=(n("0054"),n("3854"),n("5a4b"),n("2999")),l=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"m-sm flex flex-col",staticStyle:{"max-height":"100%","overflow-y":"scroll"}},[e._l(e.nodeEventsSchema,(function(n,o){return[e.eventActionsIsOrch(e.nodeEvents[o])?t("OrchDisplayPanel",{key:o+"-",attrs:{"event-schema":n,schemas:e.schemas,service:e.service,node:e.node,"selected-event-name":o,"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents,"orch-id":e.nodeEvents[o]},on:{"on-edit":e.editOrch,"on-remove":e.removeOrch}}):t("ActionsDisplayPanel",{key:o,attrs:{"event-schema":n,schemas:e.schemas,service:e.service,node:e.node,"selected-event-name":o,"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents},on:{"on-create":function(t){return e.handleCreate(o)},"on-convert":e.convertToOrch},model:{value:e.nodeEvents[o].actions,callback:function(t){e.$set(e.nodeEvents[o],"actions",t)},expression:"nodeEvents[eventName].actions"}})]})),t("Button",{attrs:{type:"primary",disabled:e.disableCreateAction},on:{click:function(t){return e.handleCreate(null)}}},[e._v(" 新建交互 ")]),e.orchOn?t("Drawer",{staticClass:"d-drawer-no-padding",attrs:{width:100,closable:!1},model:{value:e.orchDrawerModel,callback:function(t){e.orchDrawerModel=t},expression:"orchDrawerModel"}},[e.orchDrawerModel?t("ClientOrchDesigner",{attrs:{schemas:e.schemas,service:e.service,node:e.node,"orch-id":e.selectedOrchId,"selected-event-name":e.orchSelectedEventName},on:{"on-save":e.saveOrch}}):e._e()],1):e._e()],2)},c=[],u=n("a026"),d=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.innerValue.length?t("div",{staticClass:"d-event-item"},[t("div",{staticClass:"flex mr-2 flex-shrink-0 truncate col",attrs:{title:e.selectedEventName}},[e._v(" "+e._s(e.eventSchema.title||e.selectedEventName)+" ")]),t("div",[e.orchOn?t("Icon",{staticClass:"cursor-pointer mr-1",attrs:{type:"ios-shuffle",size:"16",title:"转成编排"},on:{click:e.convertToOrch}}):e._e(),t("Icon",{staticClass:"cursor-pointer",attrs:{type:"md-add-circle",size:"16",title:"新增"},on:{click:e.addItem}})],1)]):e._e(),t("div",{ref:"container",staticStyle:{"padding-left":"16px"}},[t("draggable",{attrs:{"chosen-class":"draggable-chosen",animation:"300",handle:".top-action-item",group:e.selectedEventName},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[t("transition-group",{attrs:{tag:"div"}},[e._l(e.innerValue,(function(n,o){return["Ext.Switch"===n.type?t("switch-display-panel",{key:n.id,attrs:{action:n,"actions-schema":e.actionsSchema,"actions-schema-map":e.actionsSchemaMap,schemas:e.schemas,service:e.service,node:e.node,"selected-event-name":e.selectedEventName,"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents},on:{"on-remove":function(t){return e.removeItem(o)},"on-edit":function(t){return e.editSwitchAction(o)}}}):t("div",{key:n.id+"-",staticClass:"top-action-item d-action-item flex cursor-move"},[t("Icon",{staticStyle:{"margin-right":"4px"},attrs:{type:"md-list",size:"14"}}),t("div",{staticClass:"col flex mr-2 flex-shrink-0 truncate",attrs:{title:e.actionsSchemaMap[n.type].title}},[e._v(" "+e._s(n.description?n.description+"-"+e.actionsSchemaMap[n.type].title:e.actionsSchemaMap[n.type].title)+" ")]),t("div",[t("Icon",{staticClass:"cursor-pointer",attrs:{type:"ios-create",size:"16",title:"编辑"},on:{click:function(t){return e.editItem(o)}}}),t("Icon",{staticClass:"cursor-pointer",staticStyle:{"margin-left":"4px"},attrs:{type:"ios-close-circle",size:"16",title:"删除"},on:{click:function(t){return e.removeItem(o)}}})],1)],1)]}))],2)],1)],1)])},p=[],m=n("d907"),f=n("2ef0"),v=n.n(f),h=n("8a03"),b=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Form",{staticClass:"d-form-in-modal",attrs:{"label-position":"left","label-width":100}},[t("FormItem",{attrs:{label:"结果变量名"}},[t("Input",{attrs:{clearable:""},model:{value:e.innerValue.resultName,callback:function(t){e.$set(e.innerValue,"resultName",t)},expression:"innerValue.resultName"}})],1),t("FormItem",{attrs:{label:"请求地址"}},[t("Select",{staticClass:"mb-1 w-170px",attrs:{placeholder:"请求方法"},model:{value:e.innerValue.method,callback:function(t){e.$set(e.innerValue,"method",t)},expression:"innerValue.method"}},e._l(e.httpMethodEnums,(function(n){return t("Option",{key:n,attrs:{value:n}},[e._v(e._s(n))])})),1),t("ServicePathSelector",{attrs:{model:e.innerValue,"prop-schema":e.httpProps.url},on:{"on-confirm":e.handleOnServiceImported,"update-request-body-schema":e.updateRequestBodySchema},model:{value:e.innerValue.url,callback:function(t){e.$set(e.innerValue,"url",t)},expression:"innerValue.url"}})],1),t("Tabs",[t("TabPane",{attrs:{label:"请求参数"}},[t("MapEditor",{attrs:{options:{addTitle:"添加请求参数"},"prop-schema":e.httpProps.params,schemas:e.schemas,service:e.service,node:e.node},model:{value:e.innerValue.params,callback:function(t){e.$set(e.innerValue,"params",t)},expression:"innerValue.params"}})],1),t("TabPane",{attrs:{label:"请求体"}},[t("RequestBodyEditor",{attrs:{model:e.innerValue,"model-extra":e.modelExtra,"prop-schema":e.httpProps.data,schemas:e.schemas,service:e.service,node:e.node},model:{value:e.innerValue.data,callback:function(t){e.$set(e.innerValue,"data",t)},expression:"innerValue.data"}})],1),t("TabPane",{attrs:{label:"请求头"}},[t("MapEditor",{attrs:{options:{keyTitle:"请求头名",valueTitle:"请求头值",addTitle:"添加请求头"},"prop-schema":e.httpProps.headers,schemas:e.schemas,service:e.service,node:e.node},model:{value:e.innerValue.headers,callback:function(t){e.$set(e.innerValue,"headers",t)},expression:"innerValue.headers"}})],1)],1)],1)},g=[],y=n("a41c"),w=function(){return w=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w.apply(this,arguments)},O=w({value:{type:Object},actionSchema:{type:Object,required:!0},modelExtra:{type:Object}},y["a"]),x=n("6e2f"),S=n("5c07"),_=n("47dc");function E(e){var t=function(){var t={};return v.a.forIn(e,(function(e,n){t[n]={}})),{modelExtra:Object(u["reactive"])(t)}}().modelExtra;return{modelExtra:t}}var j=n("f5f3"),k=function(){return k=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)},C=Object(u["defineComponent"])({components:{MapEditor:x["a"],ServicePathSelector:S["a"],RequestBodyEditor:_["a"]},props:k({},O),setup:function(e,t){var n=Object(h["useObjectVModel"])(e,t).innerValue,o=e.actionSchema.properties,i=o.method.enums,r=function(e){var t=e.method;n.description=t.methodDef.description},a=E(n).modelExtra,s=Object(j["a"])(a).updateRequestBodySchema;return{innerValue:n,httpMethodEnums:i,handleOnServiceImported:r,updateRequestBodySchema:s,modelExtra:a,httpProps:o}}}),V=C,I=n("2877"),N=Object(I["a"])(V,b,g,!1,null,null,null),M=N.exports,P=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Form",{staticClass:"d-form-in-modal",attrs:{"label-position":"left","label-width":100}},e._l(e.properties,(function(n){return t("FormItem",{directives:[{name:"show",rawName:"v-show",value:!n.turnOn||n.turnOn({model:e.innerValue}),expression:"prop.turnOn ? prop.turnOn({ model: innerValue }) : true"}],key:n.id,attrs:{label:n.title}},[n.inputType.type?t(e.defaultPropEditors[n.inputType.type]||n.inputType.type,e._b({tag:"component",staticStyle:{"margin-bottom":"5px"},attrs:{model:e.innerValue,"model-extra":e.modelExtra,"prop-schema":n,schemas:e.schemas,service:e.service,node:e.node},model:{value:e.innerValue[n.id],callback:function(t){e.$set(e.innerValue,n.id,t)},expression:"innerValue[prop.id]"}},"component",n.inputType.props,!1)):e._e()],1)})),1)},T=[],D=n("0c90");function B(){var e=function(e){var t={type:null,props:null,on:null};return v.a.isString(e.inputType)?t.type=e.inputType:Object.assign(t,e.inputType),t};return{inputType:e}}var A=function(){return A=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},q=Object(u["defineComponent"])({props:A({},O),setup:function(e,t){var n=Object(h["useObjectVModel"])(e,t).innerValue,o=E(n).modelExtra,i=B().inputType,r=v.a.cloneDeep(e.actionSchema.properties);return v.a.forEach(r,(function(e){e.inputType=i(e)})),{innerValue:n,modelExtra:o,defaultPropEditors:D["a"],properties:r}}}),R=q,$=Object(I["a"])(R,P,T,!1,null,null,null),F=$.exports,z={DefaultInputsEditor:F,HttpInputsEditor:M};function U(e,t){"Ext.Switch"===t.type&&v.a.forEach(t.inputs.dataConditions,(function(t){e.push(t.id),v.a.forEach(t.actions,(function(t){e.push(t.id)}))}))}function L(e,t){var n=[];Object(u["watch"])([function(){return e},t],(function(){var o=null;if(o=t.value,o){var i=e[o].actions;v.a.forEach(i,(function(e){n.push(e.id),U(n,e)}))}}),{immediate:!0});var o=function(e){return v.a.includes(n,e)},i=function(e){void 0===e&&(e="action-");var t=v.a.uniqueId(e);while(o(t))t=v.a.uniqueId(e);return t};return{checkExists:o,getUniqueId:i}}var G=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("Form",{staticClass:"d-form-in-modal",attrs:{"label-position":"left","label-width":100},nativeOn:{submit:function(e){e.preventDefault()}}},[t("FormItem",{attrs:{label:"动作描述"}},[t("Input",{attrs:{clearable:""},model:{value:e.currentEditModel.description,callback:function(t){e.$set(e.currentEditModel,"description",t)},expression:"currentEditModel.description"}})],1),t("FormItem",{attrs:{label:"执行条件"}},[t("VarInput",{staticStyle:{"margin-bottom":"5px"},attrs:{clearable:""},model:{value:e.currentEditModel.activeOn,callback:function(t){e.$set(e.currentEditModel,"activeOn",t)},expression:"currentEditModel.activeOn"}})],1)],1),t(e.getActionInputsEditor(),{tag:"component",attrs:{"action-schema":e.currentActionSchema,schemas:e.schemas,service:e.service,node:e.node},model:{value:e.currentEditModel.inputs,callback:function(t){e.$set(e.currentEditModel,"inputs",t)},expression:"currentEditModel.inputs"}})],1)},K=[],H=n("10d8"),J={"Action.Http":"HttpInputsEditor"},W=n("4b49"),X=function(){return X=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X.apply(this,arguments)},Q=Object(u["defineComponent"])({components:X({},z),props:X(X({currentEditModel:{type:Object,required:!0}},y["a"]),H["a"]),setup:function(e,t){Object(u["provide"])("designerService",e.service),Object(W["a"])(e,Object(u["toRef"])(e,"currentEditModel"));var n=e.schemas.definitions[e.currentEditModel.type],o=function(){return J[n.id]||n.inputType||"DefaultInputsEditor"};return Object(u["watch"])((function(){return e.currentEditModel}),(function(){t.emit("on-change",e.currentEditModel)}),{deep:!0}),{getActionInputsEditor:o,currentActionSchema:n}}}),Y=Q,Z=Object(I["a"])(Y,G,K,!1,null,null,null),ee=Z.exports;function te(e){var t=e.currentEditModel,n=e.schemas,o=e.node,i=e.service,r=e.title,a=e.onOk,s=e.nodeEvents,l=e.nodeEventsSchema,c=e.selectedEventName,d=t;return Object(h["useIviewDialog"])({props:{title:r,width:530,styles:{top:"50px"}},content:function(){return Object(u["h"])(ee,{props:{currentEditModel:t,schemas:n,node:o,service:i,nodeEvents:s,nodeEventsSchema:l,selectedEventName:c},on:{"on-change":function(e){d=e}}})},footer:function(e){return Object(u["h"])("div",[Object(u["h"])("Button",{props:{type:"text"},on:{click:function(){e.dialog.close()}}},"取消"),Object(u["h"])("Button",{props:{type:"primary"},on:{click:function(){a(v.a.cloneDeep(d)),e.dialog.close()}}},"确定")])}})}var ne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"text-12px w-full"},[t("ExpansionItem",{attrs:{icon:"ios-git-branch","header-class":"d-action-item top-action-item","icon-class":"mr-1 text-14px",label:"条件分支"},scopedSlots:e._u([{key:"header-tools",fn:function(){return[t("Icon",{staticClass:"cursor-pointer",attrs:{type:"ios-create",size:"16",title:"编辑"},on:{click:e.editAction}}),t("Icon",{staticClass:"cursor-pointer mx-1",attrs:{type:"ios-close-circle",size:"16",title:"删除"},on:{click:e.removeAction}})]},proxy:!0}]),model:{value:e.action.expand,callback:function(t){e.$set(e.action,"expand",t)},expression:"action.expand"}},e._l(e.action.inputs.dataConditions,(function(n,o){return t("ExpansionItem",{key:n.condition,staticClass:"ml-2",attrs:{"header-class":"bg-gray-100 d-action-item",icon:"ios-git-commit","icon-class":"mr-1 text-14px",label:n.description||n.condition},scopedSlots:e._u([{key:"header-tools",fn:function(){return[t("Icon",{staticClass:"cursor-pointer mx-1",attrs:{type:"md-add-circle",size:"16",title:"添加动作"},on:{click:function(t){return e.addSubAction(o)}}})]},proxy:!0}],null,!0),model:{value:n.expand,callback:function(t){e.$set(n,"expand",t)},expression:"dc.expand"}},[t("draggable",{attrs:{animation:"300",handle:".switch-action-item",group:e.action.id},model:{value:n.actions,callback:function(t){e.$set(n,"actions",t)},expression:"dc.actions"}},e._l(n.actions,(function(n,i){return t("div",{key:n.id,staticClass:"ml-2 d-action-item switch-action-item"},[t("div",{staticClass:"col truncate"},[e._v(e._s(e.actionsSchemaMap[n.type].title))]),t("Icon",{staticClass:"cursor-pointer",attrs:{type:"ios-create",size:"16",title:"编辑"},on:{click:function(t){return e.editSubAction(o,i)}}}),t("Icon",{staticClass:"cursor-pointer ml-1",attrs:{type:"ios-close-circle",size:"16",title:"删除"},on:{click:function(t){return e.removeSubAction(o,i)}}})],1)})),0)],1)})),1)],1)},oe=[],ie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"d-expansion-item"},[t("div",{staticClass:"flex items-center",class:e.headerClass,style:e.headerStyle},[e._t("header",(function(){return[e.switchToggleSide?e._e():t("Icon",{class:e.iconClass,style:e.iconStyle,attrs:{type:e.icon}}),e.switchToggleSide?t("Icon",{staticClass:"cursor-pointer",class:e.iconClass,style:e.iconStyle,attrs:{type:e.toggleIconType},on:{click:e.toggle}}):e._e(),t("div",{staticClass:"col truncate"},[e._v(e._s(e.label))]),e._t("header-tools"),e.switchToggleSide?e._e():t("Icon",{staticClass:"cursor-pointer",class:e.iconClass,style:e.iconStyle,attrs:{type:e.toggleIconType},on:{click:e.toggle}}),e.switchToggleSide?t("Icon",{attrs:{type:e.icon}}):e._e()]}))],2),t("transition",{attrs:{name:"fade",duration:150}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.innerValue,expression:"innerValue"}]},[e._t("default")],2)])],1)},re=[],ae=Object(u["defineComponent"])({props:{headerStyle:{type:String},headerClass:{type:String},iconStyle:{type:String},iconClass:{type:String},value:{type:Boolean,default:!0},switchToggleSide:{type:Boolean,default:!1},icon:{type:String},expandIcon:{type:String,default:"ios-arrow-down"},expandedIcon:{type:String,default:"ios-arrow-up"},label:{type:String}},setup:function(e,t){var n=Object(h["useVModel"])(e,t).innerValue,o=Object(u["computed"])((function(){return n.value?e.expandedIcon:e.expandIcon})),i=function(){n.value=!n.value};return{innerValue:n,toggleIconType:o,toggle:i}}}),se=ae,le=Object(I["a"])(se,ie,re,!1,null,null,null),ce=le.exports,ue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Row",{staticClass:"h-screen-65vh"},[e.showEventSelect?t("Col",{staticClass:"d-border-r h-full",attrs:{span:"5"}},[t("EventSelector",{attrs:{"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents},model:{value:e.innerSelectedEventName,callback:function(t){e.innerSelectedEventName=t},expression:"innerSelectedEventName"}})],1):e._e(),t("Col",{staticClass:"d-border-r h-full",attrs:{span:"6"}},[t("div",{staticClass:"h-full flex flex-col"},[t("div",{staticClass:"d-label py-2 mx-4"},[e._v("执行动作")]),t("Divider",{staticClass:"m-0"}),t("div",{staticClass:"flex-grow h-0 overflow-auto i-scrollbar"},e._l(e.groupedActionsSchema,(function(n){return t("div",{key:n.group},[t("div",{staticClass:"px-2"},[t("Divider",{staticClass:"m-0",attrs:{plain:""}},[t("span",{staticClass:"text-xs text-hint"},[e._v(e._s(n.group))])])],1),t("CellGroup",{on:{"on-click":function(t){return e.selectActionName=t}}},[e._l(n.children,(function(n){return[t("Cell",{key:n.id,staticClass:"d-ivu-cell",attrs:{selected:e.selectActionName===n.id,name:n.id}},[t("div",{staticClass:"truncate",attrs:{title:n.title}},[e._v(" "+e._s(n.title)+" ")])])]}))],2)],1)})),0),e.showEventSelect?t("div",{staticClass:"p-2"},[t("Button",{attrs:{long:""},on:{click:e.createComplicateAction}},[e._v("创建组合动作")])],1):e._e()],1)]),t("Col",{staticClass:"h-full i-scrollbar",attrs:{span:e.showEventSelect?13:18}},[e.currentEditModel&&e.currentActionSchema?t("div",[t("div",{staticClass:"d-label py-2 mx-4"},[e._v("设置动作")]),t("Divider",{staticClass:"m-0"}),t("EditcommonactionPanel",{key:e.currentEditModel.id,staticClass:"p-3",attrs:{"current-edit-model":e.currentEditModel,schemas:e.schemas,service:e.service,node:e.node,"selected-event-name":e.innerSelectedEventName,"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents}})],1):e._e()]),t("Drawer",{staticClass:"d-drawer-no-padding",attrs:{width:100,closable:!1},model:{value:e.orchDrawerModel,callback:function(t){e.orchDrawerModel=t},expression:"orchDrawerModel"}},[e.orchDrawerModel?t("ClientOrchDesigner",{attrs:{schemas:e.schemas,service:e.service,node:e.node,"orch-id":e.selectedOrchId,"selected-event-name":e.innerSelectedEventName},on:{"on-save":e.onSaveOrch}}):e._e()],1)],1)},de=[],pe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"flex flex-col h-full"},[e.showHeader?t("div",{staticClass:"d-label py-2 mx-4"},[e._v("触发事件")]):e._e(),t("Divider",{staticClass:"m-0"}),t("div",{staticClass:"flex-grow h-0 overflow-auto i-scrollbar"},[t("CellGroup",{on:{"on-click":e.chooseEvent}},[e._l(e.nodeEventsSchema,(function(n,o){return[t("Cell",{key:o,staticClass:"d-ivu-cell",attrs:{selected:e.innerValue===o,name:o,disabled:e.cellDisable(o)}},[t("div",{staticClass:"truncate",attrs:{title:o}},[e._v(" "+e._s(n.title||o)+" ")])])]}))],2)],1)],1)},me=[];function fe(e){return v.a.isEmpty(e)||v.a.isPlainObject(e)&&v.a.isEmpty(e.actions)}function ve(e){return!!v.a.isString(e)}var he=Object(u["defineComponent"])({props:{value:{type:String},nodeEventsSchema:{type:Object,required:!0},nodeEvents:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},actionType:{type:String,default:"default"}},setup:function(e,t){var n=Object(h["useVModel"])(e,t).innerValue,o=function(t){var n=e.nodeEvents[t],o=fe(n);if(!o)return!0;var i=ve(n);return!!i};n.value||(n.value=v.a.find(Object.keys(e.nodeEventsSchema),(function(e){return!o(e)})));var i=function(e){o(e)||(n.value=e)};return{innerValue:n,eventActionsIsOrch:ve,eventActionsIsEmpty:fe,cellDisable:o,chooseEvent:i}}}),be=he,ge=Object(I["a"])(be,pe,me,!1,null,null,null),ye=ge.exports;function we(e,t){var n;void 0===t&&(t="其他");var o={},i=[],r=[];v.a.forEach(e,(function(e){var t=e.group;t?(o[t]=o[t]||[],o[t].push(e),v.a.includes(r,t)||r.push(t)):i.push(e)})),v.a.isEmpty(i)||(o[t]=o[t]||[],(n=o[t]).push.apply(n,i),v.a.includes(r,t)||r.push(t));var a=[];return v.a.forEach(r,(function(e){a.push({group:e,children:o[e]})})),a}var Oe=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.showEventSelect?t("EventSelector",{staticClass:"p-3",attrs:{"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents,"show-header":!1,"action-type":"orch"},model:{value:e.innerSelectedEventName,callback:function(t){e.innerSelectedEventName=t},expression:"innerSelectedEventName"}}):e._e()},xe=[],Se=function(){return Se=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Se.apply(this,arguments)},_e=Object(u["defineComponent"])({components:{EventSelector:ye},props:Se({},H["a"]),setup:function(e,t){var n=Object(u["ref"])(!e.selectedEventName),o=Object(u["ref"])(e.selectedEventName);return Object(u["watch"])(o,(function(){t.emit("on-change",{selectedEventName:o.value})}),{immediate:!0}),{showEventSelect:n,innerSelectedEventName:o}}}),Ee=_e,je=Object(I["a"])(Ee,Oe,xe,!1,null,null,null),ke=je.exports;function Ce(e){var t=e.schemas,n=e.node,o=e.service,i=e.title,r=e.nodeEventsSchema,a=e.nodeEvents,s=e.selectedEventName,l=e.onOk,c=e.parent,d=null;return Object(h["useIviewDialog"])({parent:c,props:{title:i,width:60,className:"d-dialog-no-padding",styles:{top:"50px"}},content:function(){return Object(u["h"])(ke,{props:{nodeEventsSchema:r,nodeEvents:a,schemas:t,node:n,service:o,selectedEventName:s},on:{"on-change":function(e){d=e}}})},footer:function(e){return Object(u["h"])("div",[Object(u["h"])("Button",{props:{type:"text"},on:{click:function(){e.dialog.close()}}},"取消"),Object(u["h"])("Button",{props:{type:"primary"},on:{click:function(){d&&d.selectedEventName&&(l(d),e.dialog.close())}}},"确定")])}})}var Ve=n("d5e0");function Ie(e){var t={nodes:[],edges:[]},n=Object(m["toRuntimeJson"])(e);return v.a.forIn(n.actions,(function(e,n){var o=e.type,i=e.inputs,r=e.next,a=null,s="Action.Switch"===o;s&&(a=i.dataConditions,delete i.dataConditions),t.nodes.push({id:n,shape:o,nodeType:o,data:i}),v.a.isEmpty(r)||(v.a.isArray(r)?v.a.forEach(r,(function(e,o){var i={source:{cell:n,port:"bottom"},target:{cell:e,port:"top"}};s&&(i.data=a[o]),t.edges.push(i)})):t.edges.push({source:{cell:n,port:"bottom"},target:{cell:r,port:"top"}}))})),{x6FromModel:t,runtimeJson:n}}var Ne=n("ca44"),Me=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},Pe=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function Te(e,t){var n=this,o=t.nodeEvents,i=t.nodeEventsSchema,r=Object(u["ref"])(!1),a=Object(u["ref"])(null),s=Object(u["ref"])(null),l=function(){s.value=null;var t=e.service,n=e.node,l=e.schemas;Ce({selectedEventName:null,nodeEvents:o,nodeEventsSchema:i,schemas:l,service:t,node:n,title:"触发事件",onOk:function(e){var t=e.selectedEventName;a.value=t,r.value=!0}})},c=function(t){var n=t.orchId,i=t.content,r=t.meta;Object(Ne["a"])({orchId:n,meta:r}),o[a.value]=n;var s=e.service.root;s.orchestrations=s.orchestrations||{},s.orchestrations[n]=i},d=function(e){var t=e.selectedEventName,n=e.orchId;a.value=t,s.value=n,r.value=!0},p=function(t){var i=t.orchId,r=t.selectedEventName;return Me(n,void 0,void 0,(function(){var t;return Pe(this,(function(n){switch(n.label){case 0:return s.value=i,t=e.service.root,delete t.orchestrations[i],o[r]={actions:[]},e.service.refresh(),[4,Ve["a"].delete(i)];case 1:return n.sent(),[2]}}))}))},m=function(e){var t=e.selectedEventName;return Me(n,void 0,void 0,(function(){var e,n,i,l,u;return Pe(this,(function(d){switch(d.label){case 0:return e=o[t],n=Ie(e),i=n.x6FromModel,l=n.runtimeJson,[4,Ve["a"].save({orchId:null,content:i,meta:{}})];case 1:return u=d.sent(),a.value=t,s.value=u,c({orchId:u,content:l,meta:{}}),r.value=!0,[2]}}))}))};return{orchDrawerModel:r,orchSelectedEventName:a,orchEventActions:l,saveOrch:c,editOrch:d,selectedOrchId:s,removeOrch:p,convertToOrch:m}}var De=function(){return De=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},De.apply(this,arguments)},Be=Object(u["defineComponent"])({components:De(De({},z),{EditcommonactionPanel:ee,ClientOrchDesigner:function(){return n.e("chunk-6c20aa55").then(n.bind(null,"8bb2"))},EventSelector:ye}),props:De(De(De({},H["a"]),y["a"]),{actionsSchema:{type:Array,required:!0}}),setup:function(e,t){var n=Object(u["ref"])(!e.selectedEventName),o=Object(u["ref"])(e.selectedEventName),i=we(e.actionsSchema),r=Object(u["ref"])("");r.value=!v.a.isEmpty(i)&&i[0].children[0].id;var a=Object(u["ref"])(n.value?490:728);Object(u["provide"])("poptipWidth",a),Object(u["provide"])("designerService",e.service);var s=Object(u["ref"])(null),l=Object(u["ref"])(null),c=e.schemas||m["SchemaRegistry"].getAllSchemas();Object(W["a"])(e,s,o),Object(u["watch"])([s,o],(function(){t.emit("on-change",{selectedEventName:o.value,actionModel:s.value})}),{deep:!0});var d=L(e.nodeEvents,o).getUniqueId,p=function(){var t=m["SchemaParser"].buildActionModel(r.value,e.schemas);t.description=null,t.id=d(),s.value=t,l.value=c.definitions[r.value]};Object(u["watch"])(r,(function(){p()}),{immediate:!0});var f=Te(e,{nodeEvents:e.nodeEvents,nodeEventsSchema:e.nodeEventsSchema}),h=f.orchDrawerModel,b=f.orchEventActions,g=f.saveOrch,y=f.selectedOrchId,w=f.orchSelectedEventName,O=function(){w.value=o.value,h.value=!0},x=function(e){g(e),t.emit("on-ok")};return{createComplicateAction:O,orchDrawerModel:h,orchEventActions:b,onSaveOrch:x,selectedOrchId:y,innerSelectedEventName:o,selectActionName:r,currentEditModel:s,currentActionSchema:l,showEventSelect:n,groupedActionsSchema:i}}}),Ae=Be,qe=Object(I["a"])(Ae,ue,de,!1,null,null,null),Re=qe.exports;function $e(e){var t=e.schemas,n=e.node,o=e.service,i=e.title,r=e.nodeEventsSchema,a=e.actionsSchema,s=e.nodeEvents,l=e.selectedEventName,c=e.onOk,d=e.parent,p=null;return Object(h["useIviewDialog"])({parent:d,props:{title:i,width:80,zIndex:200,className:"d-dialog-no-padding",styles:{top:"50px"}},content:function(e){return Object(u["h"])(Re,{props:{nodeEventsSchema:r,actionsSchema:a,nodeEvents:s,schemas:t,node:n,service:o,selectedEventName:l},on:{"on-change":function(e){p=e},"on-ok":function(){c(p),e.dialog.close()}}})},footer:function(e){return Object(u["h"])("div",[Object(u["h"])("Button",{props:{type:"text"},on:{click:function(){e.dialog.close()}}},"取消"),Object(u["h"])("Button",{props:{type:"primary"},on:{click:function(){p&&p.selectedEventName&&p.actionModel&&(c(p),e.dialog.close())}}},"确定")])}})}var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fe.apply(this,arguments)},ze=Object(u["defineComponent"])({components:{draggable:function(){return n.e("chunk-4a5f46a6").then(n.t.bind(null,"b76a",7))},ExpansionItem:ce},props:Fe(Fe(Fe({},y["a"]),H["a"]),{action:{type:Object,required:!0},actionsSchema:{type:Array,required:!0},actionsSchemaMap:{type:Object,required:!0}}),setup:function(e,t){var n=function(){t.emit("on-remove")},i=function(){t.emit("on-edit")},r=function(t,n){o["Messager"].confirm({title:"确认删除吗?",onOk:function(){e.action.inputs.dataConditions[t].actions.splice(n,1)}})},a=L(e.nodeEvents,Object(u["toRef"])(e,"selectedEventName")).getUniqueId,s=function(t,n){var o=v.a.cloneDeep(e.action.inputs.dataConditions[t].actions[n]),i=o.type,r=m["SchemaParser"].buildActionModel(i,e.schemas);o.id||(o.id=a());var s=v.a.merge(r,o),l=e.nodeEvents,c=e.nodeEventsSchema,u=e.selectedEventName,d=e.schemas,p=e.service,f=e.node;te({title:"编辑操作-"+d.definitions[i].title,currentEditModel:s,nodeEvents:l,nodeEventsSchema:c,selectedEventName:u,schemas:d,service:p,node:f,onOk:function(o){Object.assign(e.action.inputs.dataConditions[t].actions[n],o)}})},l=function(t){var n=e.service,o=e.node,i=e.schemas,r=e.selectedEventName,a=e.nodeEventsSchema,s=e.nodeEvents,l=e.actionsSchema;$e({title:"添加动作",nodeEventsSchema:a,actionsSchema:l,nodeEvents:s,selectedEventName:r,schemas:i,service:n,node:o,onOk:function(n){var o=n.actionModel;e.action.inputs.dataConditions[t].actions.push(o)}})};return{removeAction:n,editAction:i,removeSubAction:r,editSubAction:s,addSubAction:l}}}),Ue=ze,Le=Object(I["a"])(Ue,ne,oe,!1,null,null,null),Ge=Le.exports,Ke=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("switchaction-panel",{attrs:{"selected-event-name":e.selectedEventName,"node-events":e.nodeEvents,"init-model":e.initModel},on:{"on-change":e.onChange}})},He=[],Je=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Form",{ref:"formRef",staticClass:"h-screen-50vh i-scrollbar",attrs:{model:e.inputsModel,"label-position":"left","label-width":0},nativeOn:{submit:function(e){e.preventDefault()}}},[t("div",{staticClass:"grid grid-cols-3 gap-2"},[t("div",{staticClass:"flex flex-col items-center"},[e._v("分支描述")]),t("div",{staticClass:"flex flex-col items-center"},[e._v("分支条件")]),t("div",{staticClass:"flex flex-col items-center"},[e._v("操作")])]),e._l(e.inputsModel.dataConditions,(function(n,o){return[t("div",{key:n.id,staticClass:"grid grid-cols-3 gap-2"},[t("FormItem",{staticClass:"flex flex-col",attrs:{prop:"dataConditions."+o+".description",rules:{required:!0,message:"第"+(o+1)+"个分支描述必填",trigger:"blur"}}},[t("Input",{attrs:{placeholder:"请输入分支描述"},model:{value:n.description,callback:function(t){e.$set(n,"description",t)},expression:"c.description"}})],1),t("FormItem",{staticClass:"flex flex-col",attrs:{prop:"dataConditions."+o+".condition",rules:{required:!0,message:"第"+(o+1)+"个分支条件必填",trigger:"blur"}}},[t("VarInput",{attrs:{placeholder:"请输入分支条件"},model:{value:n.condition,callback:function(t){e.$set(n,"condition",t)},expression:"c.condition"}})],1),t("div",{staticClass:"flex flex-col"},[t("div",{staticClass:"flex items-center justify-center"},[t("Button",{on:{click:function(t){return e.removeBranch(o)}}},[e._v("删除分支")])],1)])],1)]})),e.error?t("div",{staticClass:"text-negative border border-dashed border-red-200 my-2 p-2"},[e._v("请确保至少有两个分支条件")]):e._e(),t("div",[t("Button",{attrs:{type:"dashed",long:"",icon:"md-add"},on:{click:e.addBranch}},[e._v("添加分支")])],1)],2)},We=[],Xe=Object(u["defineComponent"])({props:{selectedEventName:{type:String},nodeEvents:{type:Object,required:!0},initModel:{type:Object}},setup:function(e,t){var n=L(e.nodeEvents,Object(u["toRef"])(e,"selectedEventName")).getUniqueId;function o(){return e.initModel&&e.initModel.inputs&&e.initModel.inputs.dataConditions?v.a.cloneDeep(e.initModel.inputs):{dataConditions:[{condition:null,description:null,actions:[],id:n("condition-"),expand:!0},{condition:null,description:null,actions:[],id:n("condition-"),expand:!0}]}}var i=Object(u["reactive"])(o()),r=function(e){i.dataConditions.splice(e,1)},a=function(){i.dataConditions.push({condition:null,description:null,actions:[],id:n("condition-"),expand:!0})},s=n(),l=Object(u["ref"])(null),c=Object(u["ref"])(!1);return Object(u["watch"])([function(){return i},function(){return e.selectedEventName}],(function(){i.dataConditions.length<2?c.value=!0:c.value=!1,Object(u["nextTick"])((function(){l.value.validate((function(n){n&&!c.value?t.emit("on-change",{selectedEventName:e.selectedEventName,actionModel:{type:"Ext.Switch",id:e.initModel&&e.initModel.id||s,inputs:i},expand:!(!e.initModel||!e.initModel.expand)}):t.emit("on-change",null)}))}))}),{deep:!0}),{inputsModel:i,removeBranch:r,addBranch:a,formRef:l,error:c}}}),Qe=Xe,Ye=Object(I["a"])(Qe,Je,We,!1,null,null,null),Ze=Ye.exports,et=function(){return et=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},et.apply(this,arguments)},tt=Object(u["defineComponent"])({components:{SwitchactionPanel:Ze},props:et(et({initModel:{type:Object}},H["a"]),y["a"]),setup:function(e,t){Object(u["provide"])("designerService",e.service);var n=Object(u["ref"])(e.selectedEventName);Object(W["a"])(e,null,n);var o=function(e){t.emit("on-change",e)};return{innerSelectedEventName:n,onChange:o}}}),nt=tt,ot=Object(I["a"])(nt,Ke,He,!1,null,null,null),it=ot.exports;function rt(e){var t=e.nodeEventsSchema,n=e.selectedEventName,o=e.nodeEvents,i=e.schemas,r=e.node,a=e.service,s=e.title,l=e.onOk,c=e.currentEditModel,d=null;Object(h["useIviewDialog"])({props:{title:s,width:60,className:"d-dialog-no-padding",styles:{top:"50px"}},content:function(){return Object(u["h"])(it,{props:{nodeEventsSchema:t,selectedEventName:n,nodeEvents:o,schemas:i,node:r,service:a,initModel:c},class:"p-3",on:{"on-change":function(e){d=e}}})},footer:function(e){return Object(u["h"])("div",[Object(u["h"])("Button",{props:{type:"text"},on:{click:function(){e.dialog.close()}}},"取消"),Object(u["h"])("Button",{props:{type:"primary"},on:{click:function(){d&&d.selectedEventName&&d.actionModel&&(l(d),e.dialog.close())}}},"确定")])}})}var at=Object(u["ref"])(!1);function st(){var e=function(){at.value=!0};return{orchOn:at,turnOnOrch:e}}var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lt.apply(this,arguments)},ct=Object(u["defineComponent"])({components:lt(lt({},z),{SwitchDisplayPanel:Ge,draggable:function(){return n.e("chunk-4a5f46a6").then(n.t.bind(null,"b76a",7))}}),props:lt(lt(lt({},y["a"]),H["a"]),{eventSchema:{type:Object,required:!0},value:{type:Array}}),setup:function(e,t){var n=st().orchOn;Object(u["provide"])("poptipWidth",518);var i=e.schemas||m["SchemaRegistry"].getAllSchemas(),r=v.a.filter(i.definitions,(function(t,n){return"action"===t.defType&&(t.id=n,!t.turnOn||t.turnOn({service:e.service,node:e.node}))}));r=v.a.sortBy(r,[function(e){return e.orderNo}]);var a=v.a.keyBy(r,(function(e){return e.id})),s=Object(h["useArrayVModel"])(e,t).innerValue,l=function(){t.emit("on-create",e.selectedEventName)},c=L(e.nodeEvents,Object(u["toRef"])(e,"selectedEventName")).getUniqueId,d=function(t){var n=v.a.cloneDeep(s.value[t]),o=n.type,r=m["SchemaParser"].buildActionModel(o,e.schemas);r.inputs.description=null,r.activeOn=null,n.id||(n.id=c());var a=v.a.merge(r,n),l=e.nodeEvents,u=e.nodeEventsSchema,d=e.selectedEventName,p=e.service,f=e.node;te({title:"编辑操作-"+i.definitions[o].title,currentEditModel:a,nodeEvents:l,nodeEventsSchema:u,selectedEventName:d,schemas:i,service:p,node:f,onOk:function(e){Object.assign(s.value[t],e)}})},p=function(e){o["Messager"].confirm({title:"确认删除吗?",onOk:function(){s.value.splice(e,1)}})},f=function(t){var n=v.a.cloneDeep(s.value[t]),o=e.service,i=e.node,r=e.schemas,a=e.nodeEvents,l=e.nodeEventsSchema,c=e.selectedEventName;rt({nodeEvents:a,nodeEventsSchema:l,selectedEventName:c,schemas:r,service:o,node:i,title:"编辑分支",currentEditModel:n,onOk:function(e){var n=e.selectedEventName,o=e.actionModel,i=a[n];Object.assign(i.actions[t],v.a.cloneDeep(o))}})},b=function(){var n=e.selectedEventName;t.emit("on-convert",{selectedEventName:n})};return{actionsSchema:r,actionsSchemaMap:a,innerValue:s,addItem:l,editItem:d,removeItem:p,editSwitchAction:f,convertToOrch:b,orchOn:n}}}),ut=ct,dt=Object(I["a"])(ut,d,p,!1,null,null,null),pt=dt.exports,mt=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Row",{staticClass:"h-screen-65vh"},[t("Col",{staticClass:"d-border-r h-full i-scrollbar",attrs:{span:"6"}},[t("EventSelector",{staticClass:"p-3 d-border-r",attrs:{"node-events-schema":e.nodeEventsSchema,"node-events":e.nodeEvents},model:{value:e.innerSelectedEventName,callback:function(t){e.innerSelectedEventName=t},expression:"innerSelectedEventName"}})],1),t("Col",{staticClass:"p-3 h-full i-scrollbar",attrs:{span:"18"}},[t("div",{staticClass:"d-label"},[e._v("分支设置")]),t("switchaction-panel",{attrs:{"selected-event-name":e.innerSelectedEventName,"node-events":e.nodeEvents},on:{"on-change":e.onChange}})],1)],1)},ft=[],vt=function(){return vt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vt.apply(this,arguments)},ht=Object(u["defineComponent"])({components:{EventSelector:ye,SwitchactionPanel:Ze},props:vt(vt({value:{type:String}},y["a"]),H["a"]),setup:function(e,t){Object(u["provide"])("designerService",e.service);var n=Object(u["ref"])(e.selectedEventName);Object(W["a"])(e,null,n);var o=function(e){t.emit("on-change",e)};return{innerSelectedEventName:n,onChange:o}}}),bt=ht,gt=Object(I["a"])(bt,mt,ft,!1,null,null,null),yt=gt.exports;function wt(e){var t=e.nodeEventsSchema,n=e.selectedEventName,o=e.nodeEvents,i=e.schemas,r=e.node,a=e.service,s=e.title,l=e.onOk,c=null;Object(h["useIviewDialog"])({props:{title:s,width:80,className:"d-dialog-no-padding",styles:{top:"50px"}},content:function(){return Object(u["h"])(yt,{props:{nodeEventsSchema:t,selectedEventName:n,nodeEvents:o,schemas:i,node:r,service:a},on:{"on-change":function(e){c=e}}})},footer:function(e){return Object(u["h"])("div",[Object(u["h"])("Button",{props:{type:"text"},on:{click:function(){e.dialog.close()}}},"取消"),Object(u["h"])("Button",{props:{type:"primary"},on:{click:function(){c&&c.selectedEventName&&c.actionModel&&(l(c),e.dialog.close())}}},"确定")])}})}var Ot=function(){return Ot=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ot.apply(this,arguments)},xt=Object(u["defineComponent"])({components:{ActionsDisplayPanel:pt,ClientOrchDesigner:function(){return n.e("chunk-6c20aa55").then(n.bind(null,"8bb2"))},OrchDisplayPanel:function(){return n.e("chunk-2d0cb721").then(n.bind(null,"4a64"))}},props:Ot({},y["a"]),setup:function(e){var t=st().orchOn,n=e.schemas.definitions[e.node.type],o=n.events||{},i={},r=e.node;v.a.forIn(o,(function(e,t){i[t]={actions:[]};var n=r.events&&r.events[t];n&&r.events[t].actions?i[t].actions=r.events[t].actions:v.a.isString(n)&&(i[t]=n)}));var a=Object(u["reactive"])(i),s=e.service;Object(u["watch"])((function(){return a}),(function(){r.events=v.a.cloneDeep(a),s.refresh()}),{deep:!0});var l=v.a.filter(e.schemas.definitions,(function(t,n){return"action"===t.defType&&(t.id=n,!t.private&&(!t.turnOn||t.turnOn({service:e.service,node:e.node})))}));l=v.a.sortBy(l,[function(e){return e.orderNo}]);var c=Object(u["computed"])((function(){var e;for(var t in a){var n=a[t];if("object"===typeof n&&!(null===(e=n.actions)||void 0===e?void 0:e.length))return!1}return!0})),d=function(t){var n=e.service,i=e.node,r=e.schemas;$e({nodeEventsSchema:o,actionsSchema:l,nodeEvents:a,selectedEventName:t,title:"交互编辑器",schemas:r,service:n,node:i,onOk:function(e){var t=e.selectedEventName,n=e.actionModel,o=a[t];"string"!==typeof o&&o.actions.push(n)}})},p=function(){var t=e.service,n=e.node,i=e.schemas;wt({selectedEventName:null,nodeEvents:a,nodeEventsSchema:o,schemas:i,service:t,node:n,title:"添加分支",onOk:function(e){var t=e.selectedEventName,n=e.actionModel,o=a[t];"string"!==typeof o&&o.actions.push(n)}})},m=Te(e,{nodeEvents:a,nodeEventsSchema:o}),f=m.orchDrawerModel,h=m.orchEventActions,b=m.saveOrch,g=m.editOrch,y=m.removeOrch,w=m.selectedOrchId,O=m.convertToOrch,x=m.orchSelectedEventName;return{nodeEventsSchema:o,nodeEvents:a,actionsSchema:l,disableCreateAction:c,handleCreate:d,isEmpty:v.a.isEmpty,addSwitchAction:p,orchOn:t,eventActionsIsOrch:ve,orchDrawerModel:f,orchEventActions:h,saveOrch:b,editOrch:g,removeOrch:y,selectedOrchId:w,convertToOrch:O,orchSelectedEventName:x}}}),St=xt,_t=Object(I["a"])(St,l,c,!1,null,null,null),Et=_t.exports,jt=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("DataSourcesEditor",{attrs:{schemas:e.schemas,service:e.service,"root-node":e.rootNode},model:{value:e.pageDataSources,callback:function(t){e.pageDataSources=t},expression:"pageDataSources"}})},kt=[],Ct=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"editor"},[t("div",{staticClass:"header"},[t("div",{staticClass:"flex-center",staticStyle:{cursor:"pointer"},on:{click:function(t){e.dialogModel=!1}}},[e.dialogModel?[t("Icon",{directives:[{name:"show",rawName:"v-show",value:e.dialogModel,expression:"dialogModel"}],staticClass:"mr-sm",attrs:{size:"18",type:"ios-arrow-back"}}),e._v(e._s(e.edit?"编辑数据源":"添加数据源"))]:e._e()],2),t("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogModel&&!e.edit,expression:"dialogModel && !edit"}]},[t("Button",{staticClass:"mr-sm",attrs:{size:"small"},on:{click:function(t){e.dialogModel=!1}}},[e._v("取消")]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmSave}},[e._v("保存")])],1),e.dialogModel?e._e():t("div",{staticClass:"flex flex-row flex-grow"},[t("Input",{staticClass:"p-0 mr-sm",attrs:{placeholder:"搜索数据源"},model:{value:e.inputVal,callback:function(t){e.inputVal=t},expression:"inputVal"}}),t("Button",{attrs:{type:"primary"},on:{click:e.addItem}},[e._v("添加")])],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.dialogModel,expression:"!dialogModel"}],staticClass:"ml-sm my-sm",staticStyle:{"padding-top":"30px"}},[t("div",{staticClass:"mt-sm"},[e.innerValue.length?[t("Collapse",{directives:[{name:"show",rawName:"v-show",value:e.innerValue.some((function(t){return t.id.includes(e.inputVal)})),expression:"innerValue.some((i) => i.id.includes(inputVal))"}]},[e._l(e.innerValue,(function(n,o){return[t("Panel",{directives:[{name:"show",rawName:"v-show",value:n.id.includes(e.inputVal),expression:"item.id.includes(inputVal)"}],key:n.id,attrs:{draggable:""},nativeOn:{dragenter:function(t){return e.dragEnter(t,o)},dragover:function(t){return e.dragOver(t)},dragstart:function(t){return e.dragStart(o)}}},[t("div",{staticClass:"panel-header overflow-hidden"},[t("div",{staticClass:"flex-center overflow-hidden",staticStyle:{width:"100%"}},[t("Tag",{staticClass:"flex-shrink-0",attrs:{type:"border",color:e.httpMethodStyleMap[n.method]}},[e._v(" "+e._s(n.method)+" ")]),t("div",{staticClass:"truncate ml-sm mr-sm",staticStyle:{width:"100%"},attrs:{title:n.id}},[e._v(e._s(n.id))])],1),t("div",{staticClass:"flex-center pr-md"},[t("Icon",{attrs:{size:"18",type:"ios-create",title:"编辑"},on:{click:function(t){return t.stopPropagation(),e.editItem(o)}}}),t("Icon",{staticStyle:{"margin-left":"4px"},attrs:{size:"18",type:"ios-close-circle",title:"删除"},on:{click:function(t){return t.stopPropagation(),e.removeItem(o)}}})],1)]),t("DescriptionList",{attrs:{slot:"content",col:1},slot:"content"},[t("Description",{attrs:{term:"描述:"}},[e._v(e._s(n.description))]),t("Description",{attrs:{term:"url:"}},[e._v(e._s(n.url))]),t("Description",{attrs:{term:"方法:"}},[e._v(e._s(n.method))]),t("Description",{attrs:{term:"参数:"}},[e._v(e._s(n.params))]),t("Description",{attrs:{term:"加载方式:"}},[e._v(e._s(n.autoReload?"自动":"非自动"))])],1)],1)]}))],2)]:t("span",{staticStyle:{color:"gray"}},[e._v("暂无数据源,请点击添加数据源")])],2)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.dialogModel,expression:"dialogModel"}],staticStyle:{"padding-top":"46px"}},[e.dialogModel&&e.currentEditModel?t("DataSourceEditor",{attrs:{schemas:e.schemas,service:e.service,"root-node":e.rootNode,errors:e.errors},model:{value:e.currentEditModel,callback:function(t){e.currentEditModel=t},expression:"currentEditModel"}}):e._e()],1)])},Vt=[],It=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("Form",{staticClass:"form",attrs:{"label-position":"left"}},[t("div",{staticClass:"p-sm"},[t("FormItem",{attrs:{"label-width":80}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.id.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.id.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("Input",{model:{value:e.innerValue.id,callback:function(t){e.$set(e.innerValue,"id",t)},expression:"innerValue.id"}}),e.errors.id.error?t("div",{staticClass:"text-negative text-13px py-1"},[e._v(e._s(e.errors.id.message))]):e._e()],2),t("FormItem",{attrs:{"label-width":80}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.type.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.type.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("DataSourceTypeSelect",{attrs:{model:e.innerValue,schemas:e.schemas,service:e.service,node:e.rootNode},model:{value:e.innerValue.type,callback:function(t){e.$set(e.innerValue,"type",t)},expression:"innerValue.type"}})],2),t("FormItem",{attrs:{label:e.dataSourceProps.url.title,"label-width":80}},[t("Select",{staticClass:"mb-sm",attrs:{placeholder:e.dataSourceProps.method.title},model:{value:e.innerValue.method,callback:function(t){e.$set(e.innerValue,"method",t)},expression:"innerValue.method"}},e._l(e.httpMethodEnums,(function(n){return t("Option",{key:n,attrs:{value:n}},[e._v(e._s(n))])})),1),t("ServicePathSelector",{attrs:{model:e.innerValue,"disabled-methods":["patch","delete",{"x-crud":"create"}],"use-transport":!0},on:{"on-confirm":e.handleOnServiceImported,"update-request-body-schema":e.updateRequestBodySchema},model:{value:e.innerValue.url,callback:function(t){e.$set(e.innerValue,"url",t)},expression:"innerValue.url"}})],1),t("FormItem",{attrs:{label:e.dataSourceProps.description.title,"label-width":80}},[t("Input",{model:{value:e.innerValue.description,callback:function(t){e.$set(e.innerValue,"description",t)},expression:"innerValue.description"}})],1),t("FormItem",{attrs:{"label-width":80}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.fetchWhen.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.fetchWhen.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("VarInput",{model:{value:e.innerValue.fetchWhen,callback:function(t){e.$set(e.innerValue,"fetchWhen",t)},expression:"innerValue.fetchWhen"}})],2),t("FormItem",{attrs:{"label-width":105}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.lazy.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.lazy.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("DataSourceLazyRadio",{attrs:{model:e.innerValue,schemas:e.schemas,service:e.service,node:e.rootNode},model:{value:e.innerValue.lazy,callback:function(t){e.$set(e.innerValue,"lazy",t)},expression:"innerValue.lazy"}})],2),t("FormItem",{attrs:{"label-width":105}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.autoReload.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.autoReload.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("i-switch",{attrs:{size:"small"},model:{value:e.innerValue.autoReload,callback:function(t){e.$set(e.innerValue,"autoReload",t)},expression:"innerValue.autoReload"}})],2),t("FormItem",{attrs:{"label-width":105}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.multiple.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.multiple.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("i-switch",{attrs:{size:"small"},model:{value:e.innerValue.multiple,callback:function(t){e.$set(e.innerValue,"multiple",t)},expression:"innerValue.multiple"}})],2)],1),t("BinCollapse",{attrs:{value:"1"}},[t("BinCollapseItem",{attrs:{name:"1",title:"参数设置"}},[t("div",{staticClass:"pl-sm pr-sm"},[t("RadioGroup",{staticClass:"mb-sm",staticStyle:{width:"100%",display:"flex"},attrs:{type:"button","button-style":"solid"},model:{value:e.radioGroupValue,callback:function(t){e.radioGroupValue=t},expression:"radioGroupValue"}},[t("Radio",{staticStyle:{flex:"1","text-align":"center"},attrs:{label:"1"}},[e._v("请求参数")]),t("Radio",{staticStyle:{flex:"1","text-align":"center"},attrs:{label:"2"}},[e._v("请求体")]),t("Radio",{staticStyle:{flex:"1","text-align":"center"},attrs:{label:"3"}},[e._v("请求头")])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"1"==e.radioGroupValue,expression:"radioGroupValue == '1'"}]},[t("MapEditor",{attrs:{options:{addTitle:"添加请求参数"},schemas:e.schemas,service:e.service,node:e.rootNode},model:{value:e.innerValue.params,callback:function(t){e.$set(e.innerValue,"params",t)},expression:"innerValue.params"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"2"==e.radioGroupValue,expression:"radioGroupValue == '2'"}]},[t("RequestBodyEditor",{attrs:{model:e.innerValue,"model-extra":e.modelExtra,schemas:e.schemas,service:e.service,node:e.rootNode},model:{value:e.innerValue.data,callback:function(t){e.$set(e.innerValue,"data",t)},expression:"innerValue.data"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"3"==e.radioGroupValue,expression:"radioGroupValue == '3'"}]},[t("MapEditor",{attrs:{options:{keyTitle:"请求头名",valueTitle:"请求头值",addTitle:"添加请求头"},schemas:e.schemas,service:e.service,node:e.rootNode},model:{value:e.innerValue.headers,callback:function(t){e.$set(e.innerValue,"headers",t)},expression:"innerValue.headers"}})],1)],1)])],1),t("BinCollapse",{attrs:{value:"1"}},[t("BinCollapseItem",{attrs:{name:"1",title:"高级"}},[t("div",{staticClass:"pl-sm pr-sm"},[t("FormItem",{attrs:{"label-width":90}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.responseMapperType.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.responseMapperType.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("FunctionSelector",{attrs:{"update-params":!1,schemas:e.schemas,service:e.service,node:e.rootNode},model:{value:e.innerValue.responseMapperType,callback:function(t){e.$set(e.innerValue,"responseMapperType",t)},expression:"innerValue.responseMapperType"}})],2),t("FormItem",{attrs:{"label-width":90}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.schema.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.schema.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("JsonEditor",{model:{value:e.innerValue.schema,callback:function(t){e.$set(e.innerValue,"schema",t)},expression:"innerValue.schema"}})],2),t("FormItem",{attrs:{"label-width":90}},[t("template",{slot:"label"},[e._v(" "+e._s(e.dataSourceProps.model.title)+" "),t("span",{directives:[{name:"tippy",rawName:"v-tippy"}],attrs:{content:e.dataSourceProps.model.description}},[t("Icon",{attrs:{type:"ios-help-circle-outline",size:"14"}})],1)]),t("JsonEditor",{model:{value:e.innerValue.model,callback:function(t){e.$set(e.innerValue,"model",t)},expression:"innerValue.model"}})],2)],1)])],1)],1)],1)},Nt=[],Mt=n("a3de"),Pt=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"w-full"},[t("Input",{attrs:{type:"textarea",rows:e.rows,autosize:{minRows:5,maxRows:10}},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}),e.hasError?t("div",{staticClass:"text-negative text-13px py-1"},[e._v("JSON格式错误,请修正")]):e._e()],1)},Tt=[],Dt=Object(u["defineComponent"])({props:{value:{type:[String,Number,Object,Array]},rows:{type:[String,Number],default:5}},setup:function(e,t){var n=Object(h["useJsonVModel"])(e,t),o=n.innerValue,i=n.hasError;return{innerValue:o,hasError:i}}}),Bt=Dt,At=Object(I["a"])(Bt,Pt,Tt,!1,null,null,null),qt=At.exports,Rt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bin-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},$t=[],Ft={name:"BinCollapse",componentName:"BinCollapse",props:{isArrowLeft:Boolean,accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},created:function(){this.$on("item-click",this.handleItemClick)},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}}},zt=Ft,Ut=Object(I["a"])(zt,Rt,$t,!1,null,null,null),Lt=Ut.exports,Gt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bin-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[t("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"bin-collapse-content-"+e.id,"aria-describedby":"bin-collapse-content-"+e.id}},[t("div",{staticClass:"bin-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive,"is-arrowleft":e.isArrowLeft},attrs:{id:"bin-collapse-head-"+e.id,role:"button",tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick.apply(null,arguments))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",(function(){return[e._v(e._s(e.title))]})),t("Icon",{staticClass:"bin-collapse-item__arrow",class:{"is-active":e.isActive},attrs:{type:"md-arrow-dropright"}})],2)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"bin-collapse-item__wrap",attrs:{id:"bin-collapse-content-"+e.id,role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"bin-collapse-head-"+e.id}},[t("div",{staticClass:"bin-collapse-item__content"},[e._t("default")],2)])])},Kt=[];function Ht(){return Math.floor(1e4*Math.random())}function Jt(e,t,n){this.$children.forEach((function(o){var i=o.$options.componentName;i===e?o.$emit.apply(o,[t].concat(n)):Jt.apply(o,[e,t].concat([n]))}))}var Wt={name:"BinCollapseItem",componentName:"BinCollapseItem",props:{title:String,name:{type:[String,Number],default:function(){return this[h["VModelUidKey"]]}},disabled:Boolean},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Ht()}},inject:["collapse"],computed:{isArrowLeft:function(){return this.collapse.isArrowLeft},isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("BinCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("BinCollapse","item-click",this)},dispatch:function(e,t,n){var o=this.$parent||this.$root,i=o.$options.componentName;while(o&&(!i||i!==e))o=o.$parent,o&&(i=o.$options.componentName);o&&o.$emit.apply(o,[t].concat(n))},broadcast:function(e,t,n){Jt.call(this,e,t,n)}}},Xt=Wt,Qt=Object(I["a"])(Xt,Gt,Kt,!1,null,null,null),Yt=Qt.exports,Zt={schemas:{type:Object,required:!0},service:{type:Object,required:!0},rootNode:{type:Object,required:!0}},en=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"w-full"},[t("Select",{attrs:{placeholder:"",transfer:"",clearable:"",filterable:"","allow-create":""},on:{"on-create":e.handleCreate},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},e._l(e.transportTypes,(function(n){return t("Option",{key:n,attrs:{value:n}},[e._v(e._s(n))])})),1),e.defaultType?t("div",{staticClass:"text-hint text-13px py-1"},[e._v("默认类型为"+e._s(e.defaultType))]):e._e()],1)},tn=[],nn=n("f0b5"),on=function(){return on=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},on.apply(this,arguments)},rn=Object(u["defineComponent"])({props:on(on({},nn["a"]),{value:{type:String}}),setup:function(e,t){var n=Object(h["useVModel"])(e,t).innerValue,o=m["TransportFactory"].getTypes(),i=o.types,r=o.defaultType,a=Object(u["ref"])(v.a.filter(v.a.cloneDeep(i),(function(e){return"sample"!==e}))),s=function(e){v.a.includes(a,e)||a.value.push(e)};return{innerValue:n,handleCreate:s,transportTypes:a,defaultType:r}}}),an=rn,sn=Object(I["a"])(an,en,tn,!1,null,null,null),ln=sn.exports,cn=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"flex items-center"},[t("Radio",{attrs:{"true-value":!1,"false-value":!0},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[e._v("自动")]),t("Radio",{model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[e._v("手动")])],1)},un=[],dn=function(){return dn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},dn.apply(this,arguments)},pn=Object(u["defineComponent"])({props:dn(dn({},nn["a"]),{value:{type:Boolean}}),setup:function(e,t){var n=Object(h["useVModel"])(e,t).innerValue;return{innerValue:n}}}),mn=pn,fn=Object(I["a"])(mn,cn,un,!1,null,null,null),vn=fn.exports,hn=function(){return hn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},hn.apply(this,arguments)},bn=Object(u["defineComponent"])({components:{MapEditor:x["a"],JsonEditor:qt,BinCollapseItem:Yt,BinCollapse:Lt,ServicePathSelector:S["a"],RequestBodyEditor:_["a"],FunctionSelector:Mt["a"],DataSourceTypeSelect:ln,DataSourceLazyRadio:vn},props:hn(hn({},Zt),{value:{type:Object},errors:{type:Object,required:!0}}),setup:function(e,t){var n=Object(u["ref"])("1"),o=Object(h["useObjectVModel"])(e,t).innerValue,i=e.schemas.definitions["DataSource"].properties,r=i.method.enums,a=function(e){var t=e.method;o.id||(o.id=t.methodDef.operationId||t.path.split("/").filter((function(e){return e})).join("-")+v.a.uniqueId("_")),o.title=t.methodDef.summary},s=E(o).modelExtra,l=Object(j["a"])(s).updateRequestBodySchema;return{innerValue:o,httpMethodEnums:r,radioGroupValue:n,handleOnServiceImported:a,dataSourceProps:i,updateRequestBodySchema:l,modelExtra:s}}}),gn=bn,yn=(n("8cc9"),Object(I["a"])(gn,It,Nt,!1,null,"2a1b8bb4",null)),wn=yn.exports,On=function(){return On=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},On.apply(this,arguments)},xn=Object(u["defineComponent"])({components:{DataSourceEditor:wn},props:On(On({},Zt),{value:{type:Array}}),setup:function(e,t){var n=Object(h["useArrayVModel"])(e,t,!0).innerValue,i=Object(u["ref"])(""),r={GET:"success",POST:"primary",PUT:"warning",DELETE:"error",PATCH:"rgb(80, 227, 194)"},a=Object(u["ref"])(!1),s=null,l=Object(u["ref"])(null),c=Object(u["computed"])((function(){return a.value?"编辑":"添加"})),d=Object(u["ref"])(!1),p=Object(u["reactive"])({id:{error:!1,message:""}});function f(e){p.id.error=!0,p.id.message=e}function b(){p.id.error=!1,p.id.message=""}function g(){var t=l.value;if(!t.id)return f("请填写数据源唯一标志"),!1;var o=v.a.find(n.value,(function(e,n){return e.id===t.id&&n!==s}));if(o)return f("已占用,请修正"),!1;if(v.a.includes(m["PageInnerIds"],t.id))return f(t.id+"是内置关键字,请修正"),!1;var i=e.rootNode.variables;return o=!1,v.a.forIn(i,(function(e,n){if(n===t.id)return o=!0,f("已占用,请修正"),!1})),!o&&(b(),!0)}Object(u["watch"])((function(){return l}),(function(){if(a.value&&!v.a.isEqual(n.value[s],l.value)){var e=g();if(!e)return;Object(u["set"])(n.value,s,v.a.cloneDeep(l.value))}}),{deep:!0});var y=function(){var e=g();e&&(a.value?Object(u["set"])(n.value,s,v.a.cloneDeep(l.value)):n.value.push(v.a.cloneDeep(l.value)),d.value=!1)},w=function(){b();var t=m["SchemaParser"].buildComponentModel("DataSource",e.schemas);s=null,a.value=!1,l.value=v.a.cloneDeep(t.props),d.value=!0},O=function(t){s=t,a.value=!0;var o=v.a.cloneDeep(n.value[t]),i=m["SchemaParser"].buildComponentModel("DataSource",e.schemas),r=v.a.cloneDeep(i.props);l.value=v.a.merge(r,o),d.value=!0},x=function(e){o["Messager"].confirm({title:"确认删除吗?",onOk:function(){n.value.splice(e,1)}})},S=null,_=function(e){S=e},E=function(e,t){if(e.preventDefault(),S!==t){var o=n.value[S];n.value.splice(S,1),n.value.splice(t,0,o),S=t}},j=function(e){e.preventDefault()};return{innerValue:n,dialogTitle:c,dialogModel:d,httpMethodStyleMap:r,inputVal:i,edit:a,currentEditModel:l,confirmSave:y,removeItem:x,addItem:w,editItem:O,dragStart:_,dragEnter:E,dragOver:j,errors:p}}}),Sn=xn,_n=(n("06f6"),Object(I["a"])(Sn,Ct,Vt,!1,null,"cb016e3e",null)),En=_n.exports,jn=function(){return jn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},jn.apply(this,arguments)},kn=Object(u["defineComponent"])({components:{DataSourcesEditor:En},props:jn({},Zt),setup:function(e){var t=e.service,n=e.rootNode,o=Object(u["ref"])(v.a.cloneDeep(n.dataSources)||[]);return Object(u["provide"])("service",t),Object(u["watch"])(o,(function(){var e=Object(h["removeVModelUid"])(v.a.cloneDeep(o.value));v.a.isEqual(n.dataSources,e)||(n.dataSources=v.a.cloneDeep(e),t.refresh())})),{pageDataSources:o}}}),Cn=kn,Vn=Object(I["a"])(Cn,jt,kt,!1,null,null,null),In=Vn.exports,Nn=n("5416"),Mn=n("f7f2"),Pn=n("9e47"),Tn=n("f5b3"),Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dn.apply(this,arguments)},Bn={dependencies:["@fly-vue/core"],name:"@fly-vue/lcdp-designer-extra",version:"1.6.0-snapshot",components:Dn({},a),install:function(){}};o["webApplication"].addModule(Bn)},"47dc":function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.valueIsStringOrExp?t("VarInput",{model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}):t("MapEditor",{attrs:{options:{addTitle:"添加参数"},schemas:e.schemas,service:e.service,node:e.node},on:{input:e.onObjInnnerValueChanged},scopedSlots:e._u([{key:"toolbar",fn:function(n){return[t("Dropdown",{attrs:{trigger:"custom",visible:e.showFieldsSelector,transfer:""}},[e.isEmptySchema?e._e():t("Button",{staticClass:"ml-1",attrs:{size:"small",type:"primary"},on:{click:function(t){e.showFieldsSelector=!0}}},[e._v("选择模型字段")]),t("DropdownMenu",{staticClass:"p-2",attrs:{slot:"list"},slot:"list"},[t("CheckboxGroup",{staticClass:"flex flex-col",model:{value:e.selectedFields,callback:function(t){e.selectedFields=t},expression:"selectedFields"}},e._l(e.requestBodySchema,(function(n,o){return t("Checkbox",{key:o,attrs:{label:o}},[t("span",[e._v(e._s(n.title||o))])])})),1),t("div",{staticClass:"flex items-center justify-center mt-2"},[t("Button",{staticClass:"mr-2",attrs:{size:"small",type:"default"},on:{click:function(t){e.showFieldsSelector=!1}}},[e._v("取消")]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.confirmSelectFields(n)}}},[e._v("确定")])],1)],1)],1),t("Button",{staticClass:"w-36px ml-1",attrs:{size:"small",icon:"md-code-working"},on:{click:e.showVarBindModal}})]}}]),model:{value:e.objInnerValueIn.value,callback:function(t){e.$set(e.objInnerValueIn,"value",t)},expression:"objInnerValueIn.value"}})},i=[],r=n("a026"),a=n("8a03"),s=n("2ef0"),l=n.n(s),c=n("f0b5"),u=n("6e2f"),d=n("f7f2"),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},m=Object(r["defineComponent"])({components:{MapEditor:u["a"]},props:p(p({},c["a"]),{value:{type:[String,Object]}}),setup:function(e,t){var n=Object(r["ref"])(l.a.isString(e.value)&&!l.a.isEmpty(e.value)),o=Object(r["ref"])(n.value?l.a.cloneDeep(e.value):null),i=Object(a["useVModel"])(o,t).innerValue,s=Object(r["reactive"])({value:n.value?null:l.a.cloneDeep(e.value)});Object(r["watch"])((function(){return e.value}),(function(){n.value=l.a.isString(e.value)&&!l.a.isEmpty(e.value),n.value?o.value=e.value:s.value=l.a.cloneDeep(e.value)}));var c=e.service,u=Object(d["a"])(c,{initialValue:o}).showExpressionDialog,p=function(){u((function(e){i.value=e,n.value=!!e,t.emit("input",i.value)}))},m=Object(r["ref"])(!1),f=Object(r["ref"])([]),v=function(t){var n=e.model.id;l.a.forEach(f.value,(function(e){var o={name:e,value:null};n&&(o.value="${"+n+".data."+e+"}"),t.addItem(o)})),m.value=!1},h=function(){t.emit("input",s.value)},b=Object(r["computed"])((function(){var t,n;return l.a.isEmpty(null===(n=null===(t=null===e||void 0===e?void 0:e.modelExtra)||void 0===t?void 0:t.data)||void 0===n?void 0:n.requestBodySchema)})),g=Object(r["computed"])((function(){var t,n;return null===(n=null===(t=null===e||void 0===e?void 0:e.modelExtra)||void 0===t?void 0:t.data)||void 0===n?void 0:n.requestBodySchema}));return{innerValue:i,objInnerValueIn:s,valueIsStringOrExp:n,showVarBindModal:p,showFieldsSelector:m,selectedFields:f,confirmSelectFields:v,onObjInnnerValueChanged:h,isEmptySchema:b,requestBodySchema:g}}}),f=m,v=n("2877"),h=Object(v["a"])(f,o,i,!1,null,null,null);t["a"]=h.exports},4916:function(e,t,n){},"4b49":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p}));var o=n("a026"),i=n("2ef0"),r=n.n(i),a=n("2e2c"),s=n("d907");function l(e,t){var n=[],o=[],i=r.a.filter(t.actions,(function(t,n){t.next===e||r.a.includes(t.next,e);var i=t.next===e||r.a.includes(t.next,e);return i&&o.push(n),i}));return r.a.forEach(i,(function(e,i){var a=o[i];n.push(e);var s=l(a,t);r.a.isEmpty(s)||n.push.apply(n,s)})),n}function c(e,t){var n,o,i,r=e.getParentId(),a=null===(i=null===(o=null===(n=null===t||void 0===t?void 0:t.actions)||void 0===n?void 0:n[r])||void 0===o?void 0:o.inputs)||void 0===i?void 0:i.iterationParam;return a?{id:a,title:a,description:"当前循环变量"}:null}function u(e){var t,n=null===e||void 0===e?void 0:e.orchContext;if(!n)return null;var o=null===(t=null===n||void 0===n?void 0:n.selectedOrchCell)||void 0===t?void 0:t.value;if((null===o||void 0===o?void 0:o.isEdge())&&(o=o.getTargetNode()),!o)return null;var i=o.id,u=[],d=n.graphRef.value.getCells(),p=Object(a["x6ToClientOrchRuntimeJson"])(d,n.nodeRegistry),m=c(o,p);m&&u.push(m);var f=l(i,p);return r.a.forEach(f,(function(e){var t=s["SchemaRegistry"].findDefinition(e.type),n=null===t||void 0===t?void 0:t.output;r.a.forIn(n,(function(t,n){var o,i=null===(o=null===e||void 0===e?void 0:e.inputs)||void 0===o?void 0:o[r.a.trim(n,"[]")];i&&u.push({id:i,title:i,description:t.title||i,type:t.type})}))})),r.a.uniqBy(u,"id")}function d(e,t,n,i){var r={selectedEventName:n||Object(o["toRef"])(e,"selectedEventName"),action:t,service:e.service,node:e.node,orchContext:i};Object(o["provide"])("actionExpressionContext",r)}function p(){var e=Object(o["inject"])("designerService"),t=Object(o["inject"])("actionExpressionContext",null),n=function(){var n,i;if(t){var a=t.action,s=t.selectedEventName,l=t.node,c=t.service,d=null;Object(o["isRef"])(a)?d=a&&a.value:r.a.isFunction(a)&&(d=a()),n=c.getEventVariables(l,s.value,d||{})||[];var p=u(t);r.a.isEmpty(p)||n.push.apply(n,p),i=l}else e&&(i=e.getCurrentNode()||e.root);return{currentNode:i,actionVariables:n}};return{parseActionVariables:n}}},5416:function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.showLabel?t("div",{staticClass:"mb-1"},[e._v(" "+e._s(e.propSchema.title)+" "),!1===e.propSchema.nullable?t("strong",{staticClass:"text-negative"},[e._v("*")]):e._e()]):e._e(),t("div",{staticClass:"row items-center"},[e.propSchema.inputType?t(e.defaultPropEditors[e.propSchema.inputType]||e.propSchema.inputType,{tag:"component",attrs:{value:e.model[e.propSchema.id],"prop-schema":e.propSchema,schemas:e.schemas,service:e.service,node:e.node,"selected-orch-node":e.selectedOrchNode,model:e.model,"model-extra":e.modelExtra},on:{input:function(t){return e.update(e.propSchema.id,t)},"update-extra-keys":e.updateExtraKeys}}):e._e()],1)])},i=[],r=n("a026"),a=n("0c90"),s=n("a41c"),l=n("2ef0"),c=n.n(l),u=function(){return u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},d=Object(r["defineComponent"])({props:u(u({},s["a"]),{showLabel:{type:Boolean,default:!0},propSchema:{type:Object},selectedOrchNode:{required:!0},model:{type:Object,required:!0},modelExtra:{type:Object}}),setup:function(e,t){var n=function(e,n){t.emit("on-update",e,n)},o=e.model,i=function(e){c.a.forEach(e,(function(e){t.emit("on-update",e,o[e])}))};return{defaultPropEditors:a["a"],update:n,updateExtraKeys:i}}}),p=d,m=n("2877"),f=Object(m["a"])(p,o,i,!1,null,null,null);t["a"]=f.exports},"5a4b":function(e,t,n){},"5c07":function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.isServicePath?[t("Input",{attrs:{readonly:"",clearable:""},on:{"on-clear":e.clear},model:{value:e.innerValue.value,callback:function(t){e.$set(e.innerValue,"value",t)},expression:"innerValue.value"}}),t("div",{staticClass:"text-13px py-1 text-hint"},[e._v("服务ID:"+e._s(e.innerValue.source))])]:[t("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:8},placeholder:"输入请求绝对地址"},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}}),t("div",{staticClass:"text-hint text-13px py-1"},[e._v("输入请求绝对地址")])],t("Button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.swaggerSelectModel=!0}}},[e._v("从服务导入")]),t("SwaggerSelect",{attrs:{"disabled-methods":e.disabledMethods},on:{"on-confirm":e.importActionFromSwagger},model:{value:e.swaggerSelectModel,callback:function(t){e.swaggerSelectModel=t},expression:"swaggerSelectModel"}})],2)},i=[],r=n("a026"),a=n("2ef0"),s=n.n(a),l=n("ef3f"),c=n("8a03"),u=n("d907"),d=function(){return d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)},p=Object(r["defineComponent"])({components:{SwaggerSelect:l["a"]},props:d(d({},l["d"]),{value:{type:[String,Object]},model:{type:Object,required:!0},useTransport:{type:Boolean,default:!1}}),setup:function(e,t){var n=e.model,o=Object(r["ref"])(s.a.isPlainObject(e.value)),i=Object(r["ref"])(!1),a=Object(c["useVModel"])(e,t).innerValue,d=function(o){var i=o.method,r=o.openapi,c=o.serviceId;a.value={type:"ServicePath",source:c,value:i.path,processor:"ServicePathProcessor"};var d=[];s.a.has(n,"method")&&(n.method=i.method.toUpperCase(),d.push("method"));var p=Object(l["b"])(i.methodDef),m=p.params,f=p.data,v=p.headers;if(!s.a.isEmpty(m)&&s.a.has(n,"params")&&(n.params=m,d.push("params")),!s.a.isEmpty(f)&&s.a.has(n,"data")&&(n.data=f,d.push("data")),!s.a.isEmpty(v)&&s.a.has(n,"headers")&&(n.headers=v,d.push("headers")),s.a.has(n,"schema")){var h=Object(l["c"])(i.methodDef,r,e.useTransport?n.type||u["TransportFactory"].defaultType:null),b=h.schemas,g=h.multipleData,y=h.requestBodySchema;b["200"]?(n.schema=b["200"],d.push("schema"),s.a.has(n,"multiple")&&(n.multiple=g,d.push("multiple"))):(n.schema={},d.push("schema")),t.emit("update-request-body-schema",y)}t.emit("on-confirm",{method:i,openapi:r,serviceId:c}),s.a.isEmpty(d)||t.emit("update-extra-keys",d)};Object(r["watch"])(a,(function(){o.value=s.a.isPlainObject(a.value)}),{deep:!0});var p=function(){Object(r["nextTick"])((function(){a.value=""}))};return{innerValue:a,isServicePath:o,swaggerSelectModel:i,importActionFromSwagger:d,clear:p}}}),m=p,f=n("2877"),v=Object(f["a"])(m,o,i,!1,null,null,null);t["a"]=v.exports},"6e2f":function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.innerValue.length?t("Row",{staticClass:"mb-2 text-13px"},[t("Col",{attrs:{span:"12"}},[e._v(e._s(e.innerOptions.keyTitle))]),t("Col",{attrs:{span:"12"}},[e._v(e._s(e.innerOptions.valueTitle))])],1):e._e(),e._l(e.innerValue,(function(n,o){return[t("div",{key:n[e.VModelUidKey],staticClass:"flex items-center mb-2"},[e.propsCandidates.length?t("AutoComplete",{staticClass:"col",attrs:{transfer:"",clearable:""},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"item.name"}},[t("div",{staticStyle:{"max-height":"200px",overflow:"auto","max-width":"340px"}},e._l(e.propsCandidates,(function(n,o){return t("div",{key:o},[t("Option",{staticClass:"flex flex-row",attrs:{value:n.prop,title:n.desc}},[t("span",{staticClass:"flex-grow mr-2"},[e._v(e._s(n.prop))]),t("span",{staticClass:"text-gray-400 text-sm",staticStyle:{overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(n.title))])])],1)})),0)]):t("Input",{staticClass:"col",attrs:{clearable:""},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"item.name"}}),t("div",{staticClass:"ml-sm mr-sm"},[e._v(":")]),e.showExpressionDialog?t("div",{staticClass:"flex items-center col"},[t("Input",{staticClass:"col",attrs:{clearable:""},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"item.value"}}),t("Icon",{staticClass:"cursor-pointer",attrs:{type:"ios-code-working",size:18},on:{click:function(t){return e.customShowExpressionDialog(n)}}})],1):t("VarInput",{staticClass:"col",model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"item.value"}}),t("Icon",{staticClass:"cursor-pointer ml-sm",attrs:{size:"20",type:"ios-close-circle-outline",title:e.innerOptions.removeTitle},on:{click:function(t){return e.removeItem(o)}}})],1)]})),t("div",[t("Button",{attrs:{type:"primary",size:"small",title:e.innerOptions.addTitle},on:{click:e.addItem}},[e._v(e._s(e.innerOptions.addTitle))]),e._t("toolbar",null,null,{addItem:e.addItem})],2)],2)},i=[],r=n("a026"),a=n("8a03"),s=n("2ef0"),l=n.n(s),c=n("dae4"),u=n("f0b5"),d=function(){return d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)},p=Object(r["defineComponent"])({props:d(d({},u["a"]),{value:{type:Object},options:{type:Object},enums:{type:Array},showExpressionDialog:{type:Function}}),setup:function(e,t){var n=Object(a["useInnerArrayVModel"])(e,t).innerValue,o=Object(r["computed"])((function(){var t={keyTitle:"参数名",valueTitle:"参数值",removeTitle:"删除",addTitle:"添加参数"};return e.options&&Object.assign(t,e.options),t})),i=Object(r["inject"])("parentPropertyKey",null),s=Object(r["computed"])((function(){var t,n,o,r=null;r=i?null===(n=null===(t=e.modelExtra)||void 0===t?void 0:t[i])||void 0===n?void 0:n[e.propSchema.id]:null===(o=e.modelExtra)||void 0===o?void 0:o[e.propSchema.id];var a=null===r||void 0===r?void 0:r.enums,s=a||e.enums||[];return s}));function u(e){var t=l.a.find(n.value,(function(t){return t.name===e}));return!t}var d=function(e){var t,o=e||{name:"",value:null},i=o.name,r=o.value,s=u(i);s&&n.value.push((t={},t[a["VModelUidKey"]]=l.a.uniqueId(),t.name=i||"",t.value=r||null,t))},p=function(e){n.value[e].name||n.value[e].value?c["Messager"].confirm({title:"确认删除吗?",onOk:function(){n.value.splice(e,1)}}):n.value.splice(e,1)},m=function(t){e.showExpressionDialog({defaultValue:t.value,onSave:function(e){t.value=e}})};return{innerValue:n,innerOptions:o,propsCandidates:s,addItem:d,removeItem:p,VModelUidKey:a["VModelUidKey"],customShowExpressionDialog:m}}}),m=p,f=n("2877"),v=Object(f["a"])(m,o,i,!1,null,null,null);t["a"]=v.exports},"89a6":function(e,t,n){},"8a03":function(e,t,n){e.exports=n("a8f4")("./node_modules/@fly-vue/use/index.js")},"8cc9":function(e,t,n){"use strict";n("b45a")},"9e47":function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o,i=n("2e2c");(function(e){e["Start"]="Action.Start",e["End"]="Action.End",e["Switch"]="Action.Switch",e["Foreach"]="Action.Foreach"})(o||(o={}));var r=o.Start,a="开始",s=Object(i["buildCommonStartNode"])({id:r,title:a,group:"流转节点",orderNo:1,icon:"ios-play-outline",properties:{}}),l=o.End,c="结束",u=Object(i["buildCommonEndNode"])({id:l,title:c,group:"流转节点",orderNo:2,icon:"ios-square-outline",properties:{}}),d=o.Switch,p="分支",m=Object(i["buildCommonSwitchNode"])({id:d,title:p,group:"流转节点",orderNo:3,icon:"md-git-network",iconClass:"transform rotate-90",transition:{title:"分支条件",properties:{name:{type:"string",title:"说明",expression:"off"},condition:{type:"string",title:"条件",inputType:"VarInput"}}}}),f=o.Foreach,v="循环",h=Object(i["buildCommonContainerNode"])({id:f,title:v,description:"循环节点,用来遍历[循环数据集]集合中的每一项数据,进行处理逻辑",group:"流转节点",orderNo:4,icon:"md-repeat",container:!0,properties:{inputCollection:{title:"循环数据集",type:"string",inputType:"VarInput",nullable:!1,expression:"only"},iterationParam:{title:"循环变量",type:"string",nullable:!1,expression:"off",default:"iterationParam"}},meta:{shouldAddStartNode:!0}}),b=n("d907"),g=n("2ef0"),y=n.n(g),w=[s,u,m,h];function O(e){var t=e.schemas,n=e.service,o=e.node,r=e.templates,a=t||b["SchemaRegistry"].getAllSchemas(),s=y.a.filter(a.definitions,(function(e,t){return"action"===e.defType&&(e.id=t,!e.private&&(!n||!o||!e.turnOn||e.turnOn({service:n,node:o})))})),l=y.a.cloneDeep(w);y.a.forEach(s,(function(e){var t=e.id,n=e.title,o=e.icon,r=e.group,a=e.orderNo,s=e.properties,c=Object(i["buildCommonServiceNode"])({id:t,title:n,icon:o,group:r,orderNo:a,properties:s});l.push(c)}));var c=[];y.a.forEach(r,(function(e){var t=e.id,n=e.title,o=e.icon,r=e.group,a=e.orderNo,s=e.content,l=Object(i["buildCommonTemplateNode"])({id:t,title:n,icon:o,group:r,orderNo:a,content:s});c.push(l)}));var u=new i["BaseNodeRegistry"];return u.batchRegister(l),u.batchRegisterTemplates(c),u.setGroups([{name:"流转节点",expand:!0},{name:"公共节点",expand:!0}]),u}},a026:function(e,t,n){e.exports=n("0fbf")("./node_modules/vue/dist/vue.esm.js")},a3de:function(e,t,n){"use strict";var o=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"flex items-center w-full"},[t("Select",{staticClass:"col",attrs:{transfer:"",clearable:""},on:{"on-change":e.handleOnNameChange},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},e._l(e.functions,(function(n){return t("Option",{key:n.id,attrs:{value:n.id}},[e._v(e._s(n.id))])})),1),t("Button",{staticClass:"ml-1 w-36px",attrs:{icon:"md-add",title:"新建函数"},on:{click:e.composeFunction}})],1)},i=[],r=n("a026"),a=n("f0b5"),s=n("2999"),l=n("2ef0"),c=n.n(l),u=n("8a03"),d=n("dae4"),p=function(){return p=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},m=Object(r["defineComponent"])({props:p(p({},a["a"]),{value:{type:String},updateParams:{type:Boolean,default:!0}}),setup:function(e,t){var n=e.model,o=e.service,i=e.updateParams,a=Object(u["useVModel"])(e,t).innerValue,l=o.getFunctionsScript(),p=function(e){if(i){e||(n.params=[]);var t=c.a.find(l,(function(t){return t.id===e}));if(t){var o=Object(s["a"])(t.properties),r=c.a.map(o,(function(e){var t={name:e.id,value:null},o=c.a.keyBy(n.params,(function(e){return e.name}));return c.a.has(o,e.id)&&(t.value=o[e.id].value),t}));n.params=r}}},m=function(e){p(e)};a.value&&p(a.value);var f=Object(r["inject"])("getParentDialog",null),v=Object(r["inject"])("parentOrchDesigner",null),h=function(){d["Messager"].confirm({title:"确认",content:"新建函数将离开当前页面,请先保存相关配置,立即新建吗?",onOk:function(){f&&f().close(),v&&v.close(),o.showSideBarItem("functions")}})};return{innerValue:a,functions:l,handleOnNameChange:m,composeFunction:h}}}),f=m,v=n("2877"),h=Object(v["a"])(f,o,i,!1,null,null,null);t["a"]=h.exports},a41c:function(e,t,n){"use strict";t["a"]={schemas:{type:Object},service:{type:Object},node:{type:Object}}},a8f4:function(e,t){e.exports=_$fly_vue_use_},b45a:function(e,t,n){},b9ad:function(e,t){e.exports=_$fly_vue_lcdp_engine_},be13:function(e,t,n){"use strict";n("4916")},ca44:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var o=n("a026"),i=n("2ef0"),r=n.n(i),a=Object(o["ref"])([]);function s(e){var t=e.orchId,n=e.meta,o=r.a.find(a.value,(function(e){return e.orchId===t}));o?o.meta=n:a.value.push({orchId:t,meta:n})}function l(e,t){Object(o["watch"])((function(){return r.a.cloneDeep(a.value)}),(function(n,o){var i=r.a.find(n,(function(t){return t.orchId===e})),a=r.a.find(o,(function(t){return t.orchId===e}));r.a.isEqual(i,a)||t(i&&i.meta)}),{deep:!0})}},cb91:function(e,t){e.exports=_$fly_vue_fuse_ui_codemirror_},d5e0:function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b}));var o=n("2ef0"),i=n.n(o),r=n("dae4"),a=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},s=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function l(){var e=r["ConfigHelper"].getConfigVal("orchBaseUrl");return e||r["Logger"].error("编排服务基础地址orchBaseUrl未配置"),e=i.a.endsWith(e,"/")?i.a.trimEnd(e,"/"):e,""+e}var c={};function u(e){var t=l(),n=new r["HttpRequest"];return e&&(t=t+"/"+e),{url:t,http:n}}function d(e){return e?"client/"+e:"client"}var p={parseContent:function(e){var t=e;return t&&t.content&&(t=t.content),t},parseMeta:function(e){var t={};return e&&e.meta&&(t=e.meta),t},find:function(e){return a(this,void 0,void 0,(function(){var t,n,o,i;return s(this,(function(r){switch(r.label){case 0:return t=u(d(e)),n=t.url,o=t.http,[4,o.get(n,{headers:c})];case 1:return i=r.sent(),[2,i&&i.data]}}))}))},save:function(e){var t=e.orchId,n=e.content,o=e.meta;return a(this,void 0,void 0,(function(){var e,i,r,a;return s(this,(function(s){switch(s.label){case 0:return e=u(d(t)),i=e.url,r=e.http,t?[4,r.patch(i,{content:n,meta:o},{headers:c})]:[3,2];case 1:return s.sent(),[2,t];case 2:return[4,r.post(i,{content:n,meta:o},{headers:c})];case 3:return a=s.sent(),[2,a&&a.data]}}))}))},delete:function(e){return a(this,void 0,void 0,(function(){var t,n,o;return s(this,(function(i){switch(i.label){case 0:return t=u(d(e)),n=t.url,o=t.http,[4,o.delete(n,{headers:c})];case 1:return i.sent(),[2]}}))}))},queryTemplate:function(){return a(this,void 0,void 0,(function(){var e,t,n,o;return s(this,(function(i){switch(i.label){case 0:return e=u("template/client"),t=e.url,n=e.http,[4,n.get(t,{params:{withData:"1"},headers:c})];case 1:return o=i.sent(),[2,o&&o.data]}}))}))}};t["a"]=p;var m="objects",f="packages";function v(e,t,n){void 0===n&&(n=[]);var o=e[f],r=e[m];i.a.isEmpty(o)||i.a.forEach(o,(function(e){v(e,t,n)})),i.a.isEmpty(r)||i.a.forEach(r,(function(e){n.push({group:t,id:e.name,title:e.title||e.name,content:e.data&&e.data.data})}))}function h(e){var t=[],n=e[f],o=e[m];return i.a.isEmpty(n)||i.a.forEach(n,(function(e){var n=e.title||e.name;v(e,n,t)})),i.a.isEmpty(o)||i.a.forEach(o,(function(e){t.push({group:null,id:e.name,title:e.title||e.name,content:e.data&&e.data.data})})),t}var b="未命名动作"},d907:function(e,t,n){e.exports=n("b9ad")("./node_modules/@fly-vue/lcdp-engine/index.js")},dae4:function(e,t,n){e.exports=n("0fbf")("./node_modules/@fly-vue/core/index.js")},ef3f:function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return O})),n.d(t,"a",(function(){return L}));var o=n("dae4"),i=n("2ef0"),r=n.n(i),a=n("d907"),s=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},l=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function c(e){return s(this,void 0,void 0,(function(){var t=this;return l(this,(function(o){switch(o.label){case 0:return[4,Promise.all([n.e("chunk-114f908c"),n.e("chunk-1a3a2bee")]).then(n.t.bind(null,"9f5f",7)).then((function(n){var o=n.default;return s(t,void 0,void 0,(function(){var t;return l(this,(function(n){switch(n.label){case 0:return[4,o.convertObj(e,{direct:!0})];case 1:return t=n.sent(),[2,t]}}))}))}))];case 1:return[2,o.sent()]}}))}))}function u(e){var t=[];return r.a.forIn(e.paths,(function(e,n){r.a.forIn(e,(function(e,o){t.push({path:n,method:o,methodDef:e})}))})),t}var d={get:"a",post:"b",put:"c",delete:"d"};function p(e,t){return s(this,void 0,void 0,(function(){var n,i,a,s;return l(this,(function(l){switch(l.label){case 0:return t?(i=o["ConfigHelper"].getConfigVal("serviceBaseUrl"),[4,(new o["HttpRequest"]).post(i+"/request",{url:e})]):[3,2];case 1:return n=l.sent(),[3,4];case 2:return[4,(new o["HttpRequest"]).get(e)];case 3:n=l.sent(),l.label=4;case 4:return[4,c(n.data)];case 5:return a=l.sent(),s=u(a),s=r.a.sortBy(s,[function(e){return e.path},function(e){return d[e.method.toLowerCase()]||"z"}]),[2,{openapi:a,methods:s}]}}))}))}function m(e){var t=e.openapi,n=e.methods;if(!t)return[];var o=[];r.a.forEach(t.tags,(function(e){var t=e.name;o.push({id:t,title:e.description||t,children:[]})})),o.push({id:"_others_",title:"未分类",children:[]});var i=r.a.keyBy(o,(function(e){return e.id}));r.a.forEach(n,(function(e){var t=e.method+" "+e.path;if(e.methodDef){var n={id:t,title:e.method.toUpperCase()+" "+e.path,method:e},o=e.methodDef.tags;if(r.a.isEmpty(o))i._others_.children.push(n);else{var a=o[0];i[a]?i[a].children.push(n):i._others_.children.push(n)}}}));var a=[];return r.a.forEach(o,(function(e){(!r.a.has(e,"children")||e.children.length>0)&&a.push(e)})),a}function f(e,t){return s(this,void 0,void 0,(function(){var n,o,i,r;return l(this,(function(a){switch(a.label){case 0:return[4,p(e,t)];case 1:return n=a.sent(),o=n.openapi,i=n.methods,r=m({openapi:o,methods:i}),[2,{openapi:o,methods:i,taggedMethods:r}]}}))}))}function v(e){var t={},n={},o={};return r.a.forEach(e.parameters,(function(e){var i=e.name;"header"===e.in?n[i]=null:"body"===e.in?o[i]=null:t[i]=null})),{params:t,headers:n,data:o}}function h(e,t){if(!e)return null;e=r.a.trimStart(e,"#/");for(var n=r.a.split(e,"/"),o=t,i=0;i<n.length;++i)o=o[n[i]];return o}function b(e){var t;return e.content&&r.a.forEach(e.content,(function(e){return e.schema&&(t=e.schema),!1})),t}function g(e,t,n,o){void 0===n&&(n=0),void 0===o&&(o=0);var i=h(e,t),a={};if(r.a.forIn(i.properties,(function(e,i){var r;if(e.$ref&&o<n){var s=o+1;a[i]={type:"object",properties:g(e.$ref,t,n,s)}}else(null===(r=null===e||void 0===e?void 0:e.items)||void 0===r?void 0:r.$ref)&&o<n?(s=o+1,a[i]={type:"array",properties:g(e.items.$ref,t,n,s)}):a[i]={type:e.type,title:e.title||e.description,default:e.default}})),r.a.isEmpty(i.properties)){var s=b(i);if(s&&s.$ref)return g(s.$ref,t,n,o)}return a}function y(e,t){var n=e;return t&&(n=r.a.get(e,t),r.a.isEmpty(n)&&(n=e)),n}function w(e,t,n){var o,i,s,l={},c=!1,u=n?a["TransportFactory"].getSchemaPath(n):"",d=(r.a.split(u,".")||[]).length,p=u?u+".properties":"";r.a.forIn(e.responses,(function(e,n){var o=b(e);o&&o.$ref?l[n]=y(g(o.$ref,t,d),p):o&&o.items&&o.items.$ref&&(l[n]=y(g(o.items.$ref,t,d),p),c=!0)}));var m=null===(o=null===e||void 0===e?void 0:e.requestBody)||void 0===o?void 0:o.content,f=null===(i=null===e||void 0===e?void 0:e.requestBody)||void 0===i?void 0:i.$ref;return f?s=y(g(f,t,d),p):r.a.forIn(m,(function(e){e&&e.$ref&&(s=y(g(e.$ref,t,d),p))})),{schemas:l,multipleData:c,requestBodySchema:s}}var O={disabledMethods:{type:Array}},x=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Modal",{staticClass:"modal",attrs:{title:e.dialogTitle,width:"800","mask-closable":!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{on:{click:function(t){e.innerValue=!1}}},[e._v("取消")]),t("Button",{attrs:{type:"primary"},on:{click:e.confirmSelect}},[e._v("确定")])]},proxy:!0}]),model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},[t("Row",{staticStyle:{overflow:"hidden"}},[t("Col",{staticClass:"col-left",attrs:{span:"7"}},[t("Button",{staticClass:"mb-sm",attrs:{type:"primary"},on:{click:e.handleCreate}},[e._v("添加服务")]),t("div",{staticClass:"col-left-inner i-scrollbar"},[e.loadingSwaggerList?t("Spin",{attrs:{size:"large",fix:""}}):e._e(),e._l(e.swaggerList,(function(n,o){return t("div",{key:o,staticClass:"col-left-inner-item cursor-pointer flex-center justify-between",class:{selected:e.selectSwaggerIndex===o},attrs:{title:n.name},on:{click:function(t){return e.selectSwaggerItem(n.url,o)}}},[t("div",{staticClass:"truncate",staticStyle:{flex:"1"}},[e._v(e._s(n.name))]),t("div",{staticClass:"ml-1"},[t("Icon",{staticClass:"pr-1",attrs:{size:"18",type:"ios-create",title:"编辑"},on:{click:function(t){return t.stopPropagation(),e.editItem(n,o)}}}),"local"!==n.id?t("Icon",{staticClass:"pr-sm",attrs:{size:"17",type:"ios-close-circle",title:"删除"},on:{click:function(t){return t.stopPropagation(),e.removeItem(o)}}}):e._e()],1)])})),e.swaggerList&&0===e.swaggerList.length?t("div",{staticClass:"mt-sm"},[e._v("当前列表为空")]):e._e()],2)],1),t("Col",{staticClass:"col-right",attrs:{span:"17"}},[e.loadingSwagger?t("Spin",{attrs:{size:"large",fix:""}}):e._e(),"select"!==e.mode?t("SwaggerForm",{staticStyle:{margin:"36px"},attrs:{mode:e.mode,"select-index":e.selectSwaggerIndex,"edit-item":e.swaggerEditItem},on:{"on-confirm":e.onFormConfirm}}):e._e(),"select"!==e.mode||e.loadingSwagger||e.loadSwaggerError?e._e():t("Row",[t("Col",{staticClass:"d-border-r p-3 h-screen-60vh",attrs:{span:"7"}},[t("div",{staticClass:"i-scrollbar",staticStyle:{height:"100%",overflow:"auto"}},e._l(e.taggedMethods,(function(n,o){return t("div",{key:n.id,staticClass:"col-left-inner-item truncate cursor-pointer",class:{selected:e.selectCategoryIndex===o},attrs:{title:n.title},on:{click:function(t){return e.scrollToTarget(o)}}},[e._v(" "+e._s(n.title)+" ")])})),0)]),t("Col",{staticClass:"search-container",staticStyle:{padding:"12px",height:"60vh"},attrs:{span:"17"}},[t("Input",{staticClass:"mb-md",attrs:{suffix:"ios-search",placeholder:"搜索接口",clearable:""},on:{"on-change":e.onSearchChange},model:{value:e.inputVal,callback:function(t){e.inputVal=t},expression:"inputVal"}}),t("div",{staticClass:"i-scrollbar",staticStyle:{flex:"1",overflow:"auto"}},e._l(e.taggedMethods,(function(n){return t("div",{key:n.id,ref:"ref_"+n.id,refInFor:!0,attrs:{id:n.id}},[t("div",{staticStyle:{"font-weight":"bold"}},[e._v(" "+e._s(n.title)+" ")]),t("div",{staticStyle:{"padding-left":"16px","font-size":"13px"}},e._l(n.children,(function(n){return t("div",{key:n.id,staticClass:"m-sm"},[e.apiDisabled(n)?e._e():t("div",{staticClass:"flex-center"},[t("Radio",{attrs:{value:e.selectedMethodId===n.id},on:{"on-change":function(t){return e.handleOnSelect(t,n)}}}),t("Tag",{staticClass:"mr-sm",attrs:{type:"border",color:e.httpMethodStyleMap[n.method.method.toUpperCase()]}},[e._v(e._s(n.method.method.toUpperCase()))]),t("div",{staticClass:"truncate",staticStyle:{"margin-left":"4px",flex:"1"},attrs:{title:n.method.methodDef.summary+"("+n.method.path+")"}},[n.method.methodDef.summary?[e._v(e._s(n.method.methodDef.summary)+" "),t("span",{staticStyle:{color:"gray"}},[e._v("("+e._s(n.method.path)+")")])]:[e._v(e._s(n.method.path))]],2)],1)])})),0)])})),0)],1)],1),"select"===e.mode&&e.loadSwaggerError?t("div",{staticClass:"flex-center justify-center",staticStyle:{height:"100%"}},[e._v(" 加载失败,请核对接口地址信息。 ")]):e._e()],1)],1)],1)},S=[],_=n("a026"),E=n("8a03"),j=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("Form",{ref:"formRef",attrs:{rules:e.ruleValidate,model:e.model,"label-width":110}},[t("FormItem",{attrs:{label:"名称",prop:"name"}},[t("Input",{attrs:{placeholder:"请输入名称"},model:{value:e.model.name,callback:function(t){e.$set(e.model,"name",t)},expression:"model.name"}})],1),t("FormItem",{attrs:{label:"Swagger地址",prop:"url"}},[t("Input",{attrs:{placeholder:"请输入接口描述的Swagger地址"},model:{value:e.model.url,callback:function(t){e.$set(e.model,"url",t)},expression:"model.url"}})],1),t("FormItem",{attrs:{label:"基础地址",prop:"serverUrl"}},[t("Input",{attrs:{placeholder:"请输入基础地址"},model:{value:e.model.serverUrl,callback:function(t){e.$set(e.model,"serverUrl",t)},expression:"model.serverUrl"}})],1),t("FormItem",[t("Button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("保存")])],1)],1)},k=[],C="_lcdp_data_sources_";function V(){var e=window.sessionStorage.getItem(C);return e?JSON.parse(e):[]}function I(e){return window.sessionStorage.setItem(C,JSON.stringify(e))}var N=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},M=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},P=Object(_["defineComponent"])({props:{mode:{type:String,default:"create"},selectIndex:{type:Number,default:-1},editItem:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=this,o=Object(_["inject"])("designerService",null),i=r.a.get(o,"$designer.config.repository.dataSourceService"),a=Object(_["ref"])({name:"",url:"",serverUrl:""}),s=Object(_["reactive"])({name:[{required:!0,message:"请输入名称",trigger:"change"}],url:[{required:!0,message:"请输入接口描述的Swagger地址",trigger:"change"}],serverUrl:[{required:!0,message:"请输入基础地址",trigger:"change"}]}),l=Object(_["ref"])(null),c=function(){l.value.validate((function(o){return N(n,void 0,void 0,(function(){var n;return M(this,(function(r){switch(r.label){case 0:return o?i?"create"!==e.mode?[3,2]:[4,i.save(a.value)]:[3,5]:[3,8];case 1:return r.sent(),[3,4];case 2:return[4,i.update(a.value.id,{name:a.value.name,url:a.value.url,serverUrl:a.value.serverUrl})];case 3:r.sent(),r.label=4;case 4:return[3,6];case 5:n=V(),"create"===e.mode?(n.push(a.value),I(n)):(n[e.selectIndex]=a.value,I(n)),r.label=6;case 6:return t.emit("on-confirm",Object.assign({},a.value)),[4,Object(_["nextTick"])()];case 7:r.sent(),"create"===e.mode&&l.value.resetFields(),r.label=8;case 8:return[2]}}))}))}))};return Object(_["watch"])((function(){return e.editItem}),(function(e){a.value=e}),{deep:!0,immediate:!0}),Object(_["watch"])((function(){return e.mode}),(function(e){"create"===e&&(a.value={name:"",url:"",serverUrl:""})}),{immediate:!0}),{model:a,formRef:l,ruleValidate:s,handleSubmit:c}}}),T=P,D=n("2877"),B=Object(D["a"])(T,j,k,!1,null,null,null),A=B.exports,q=function(){return q=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)},R=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},$=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},F=Object(_["defineComponent"])({components:{SwaggerForm:A},props:q(q({},O),{value:{type:Boolean,default:!1},dialogTitle:{type:String,default:"服务管理"}}),setup:function(e,t){var n=this,a=Object(_["inject"])("designerService",null),s=Object(_["getCurrentInstance"])(),l=r.a.get(a,"$designer.config.repository.dataSourceService"),c=Object(_["ref"])(""),u=Object(_["ref"])("create"),d=Object(_["ref"])(null),p=Object(_["ref"])([]),m={},v=Object(_["ref"])(!1),h={GET:"success",POST:"primary",PUT:"warning",DELETE:"error",PATCH:"#50e3c2"},b=Object(_["ref"])(-1),g=Object(_["ref"])(!1),y=Object(_["ref"])(!1),w=Object(_["ref"])(""),O=Object(_["ref"])(0),x=Object(E["useVModel"])(e,t).innerValue,S=Object(_["ref"])([]),j=Object(_["ref"])([]),k=null,C=function(){return R(n,void 0,void 0,(function(){var e,t;return $(this,(function(n){switch(n.label){case 0:if(!c.value)return[2];g.value=!0,n.label=1;case 1:return n.trys.push([1,5,6,7]),e=void 0,m[c.value]?(e=m[c.value],[3,4]):[3,2];case 2:return[4,f(c.value,l)];case 3:e=n.sent(),n.label=4;case 4:return m[c.value]=e,S.value=e.taggedMethods,j.value=Object(i["cloneDeep"])(e.taggedMethods),k=e.openapi,y.value=!1,[3,7];case 5:return t=n.sent(),console.error(t),y.value=!0,[3,7];case 6:return g.value=!1,[7];case 7:return[2]}}))}))},N=Object(_["ref"])(null),M=Object(_["ref"])(null),P=function(e,t){!1===e?(N.value=null,M.value=null):(N.value=t.id,M.value=t.method)},T=function(){N.value&&(t.emit("on-confirm",{method:M.value,openapi:k,swagger:p.value[b.value],serviceId:p.value[b.value].id||p.value[b.value].name}),x.value=!1)},D=function(e,t){u.value="select",c.value=e,b.value=t,O.value=0,w.value="",C()},B=function(){return R(n,void 0,void 0,(function(){var e;return $(this,(function(t){switch(t.label){case 0:return[4,G()];case 1:return t.sent(),"create"===u.value&&(e=p.value.length-1,D(p.value[e].url,e)),[2]}}))}))},A=function(e){return R(n,void 0,void 0,(function(){var t,n;return $(this,(function(o){return O.value=e,t=s.proxy.$refs["ref_"+S.value[e].id],n=t[0]||t,q(n),[2]}))}))},q=function(e){e.scrollIntoView({behavior:"smooth",inline:"nearest"})},F=function(){return R(n,void 0,void 0,(function(){var e;return $(this,(function(t){return O.value=-1,w.value?(e=[],j.value.forEach((function(t){var n=t.children.filter((function(e){if(e.method.path.includes(w.value)||e.method.methodDef.summary&&e.method.methodDef.summary.includes(w.value))return e}));n.length&&e.push({id:t.id,title:t.title,children:n})})),S.value=e,[2]):(S.value=Object(i["cloneDeep"])(j.value),[2])}))}))},z=function(){u.value="create",b.value=-1,w.value=""},U=function(e){o["Messager"].confirm({title:"确认删除吗?",onOk:function(){return R(n,void 0,void 0,(function(){return $(this,(function(t){switch(t.label){case 0:return l?[4,l.delete(p.value[e].id)]:[3,3];case 1:return t.sent(),[4,G()];case 2:return t.sent(),[3,4];case 3:p.value.splice(e,1),I(p.value),t.label=4;case 4:return e===b.value?K():e<b.value&&b.value--,[2]}}))}))}})},L=function(e,t){d.value=Object.assign({},e),b.value=t,u.value="edit"},G=function(){return R(n,void 0,void 0,(function(){var e;return $(this,(function(t){switch(t.label){case 0:return l?(v.value=!0,[4,l.query()]):[3,2];case 1:return e=t.sent().data,p.value=e,v.value=!1,[3,3];case 2:p.value=V(),t.label=3;case 3:return[2]}}))}))},K=function(){p.value&&p.value.length?D(p.value[0].url,0):z()};Object(_["onMounted"])((function(){return R(n,void 0,void 0,(function(){return $(this,(function(e){switch(e.label){case 0:return[4,G()];case 1:return e.sent(),K(),[2]}}))}))}));var H=function(t){var n=e.disabledMethods,o=t.method,i=o.method,a=o.methodDef,s=!1;return n&&r.a.forEach(n,(function(e){if(s)return!1;if(r.a.isPlainObject(e)){if(r.a.forIn(e,(function(e,t){if(r.a.isEqual(e,a[t]))return s=!0,!1})),s)return!1}else if(r.a.isEqual(r.a.lowerCase(i),r.a.lowerCase(e)))return s=!0,!1})),s};return{selectSwaggerUrl:c,innerValue:x,taggedMethods:S,selectedMethodId:N,swaggerEditItem:d,initSwagger:C,confirmSelect:T,handleOnSelect:P,scrollToTarget:A,selectCategoryIndex:O,mode:u,swaggerList:p,onFormConfirm:B,selectSwaggerItem:D,loadingSwaggerList:v,loadingSwagger:g,loadSwaggerError:y,selectSwaggerIndex:b,httpMethodStyleMap:h,inputVal:w,onSearchChange:F,handleCreate:z,removeItem:U,editItem:L,apiDisabled:H}}}),z=F,U=(n("be13"),Object(D["a"])(z,x,S,!1,null,"2e125510",null)),L=U.exports},f0b5:function(e,t,n){"use strict";var o=n("a41c"),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};t["a"]=i(i({},o["a"]),{propSchema:{type:Object},selectedOrchNode:{},model:{type:Object},modelExtra:{type:Object}})},f5b3:function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return z}));var o=n("dae4"),i=n("d907"),r=null,a=!0;function s(){var e=function(){if(r)return r;var e=o["ConfigHelper"].getConfigVal("orchBaseUrl");return e?Object(i["pathJoin"])(e,"serverless/"):""},t=function(e){r=e},n=function(){a=!1},s=function(){return a};return{getRuntimeBaseUrl:e,setRuntimeBaseUrl:t,disableAutoRegister:n,isAutoRegister:s}}var l=n("2e2c"),c=l["DNodes"].Start,u="开始",d=Object(l["buildCommonStartNode"])({id:c,title:u,group:"流转节点",orderNo:1,icon:"ios-play-outline",properties:{}},"server"),p=l["DNodes"].End,m="结束",f=Object(l["buildCommonEndNode"])({id:p,title:m,group:"流转节点",orderNo:2,icon:"ios-square-outline",properties:{}},"server"),v={title:"调用模式",type:"string",default:"sync",enums:[{value:"sync",description:"同步"},{value:"async",description:"异步"}],expression:"off",orderNo:10},h={title:"函数入参",type:"object",inputType:"ObjectEditor",expression:"off",orderNo:5},b={title:"输入参数过滤器",type:"string",default:"",expression:"only",orderNo:20},g={title:"输出结果过滤器",type:"string",default:"",expression:"only",orderNo:21},y={title:"函数级配置",type:"object",properties:{fromStateData:{title:"输入过滤器",type:"string",expression:"only",orderNo:0},useResults:{title:"保留结果",type:"boolean",default:!0,expression:"off",orderNo:1},results:{title:"结果过滤器",type:"string",expression:"only",orderNo:2},toStateData:{title:"结果位置",type:"string",expression:"only",orderNo:3}},orderNo:6,expression:"off"},w=l["DNodes"].Switch,O="分支",x=Object(l["buildCommonSwitchNode"])({id:w,title:O,group:"流转节点",orderNo:3,icon:"md-git-network",iconClass:"transform rotate-90",properties:{stateDataInputFilter:b,stateDataOutputFilter:g},transition:{title:"分支条件",properties:{name:{type:"string",title:"说明",expression:"off"},condition:{type:"string",title:"条件",expression:"only"},isDefault:{type:"boolean",title:"是否默认分支",default:!1,expression:"off"}}}},"server"),S=l["DNodes"].Foreach,_="循环",E=Object(l["buildCommonContainerNode"])({id:S,title:_,description:"循环节点,用来遍历[循环数据集]集合中的每一项数据,进行处理逻辑",group:"流转节点",orderNo:3,icon:"md-repeat",container:!0,properties:{inputCollection:{title:"循环数据集",type:"string",nullable:!1,expression:"only"},iterationParam:{title:"循环变量",type:"string",nullable:!1,expression:"off"},outputCollection:{title:"结果输出位置",type:"string",expression:"only"},mode:{title:"迭代模式",type:"string",default:"sequential",enums:[{value:"parallel",description:"并行"},{value:"sequential",description:"串行"}],expression:"off"},batchSize:{title:"并发数",type:"number",default:null,expression:"off"},stateDataInputFilter:b,stateDataOutputFilter:g},meta:{allowedChildTypes:[l["DNodes"].Subflow,{isFunction:!0}]}},"server"),j=function(){return j=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},j.apply(this,arguments)},k=Object(l["buildCommonServiceNode"])({id:l["DNodes"].Rest,title:"rest调用",operation:"",icon:"md-cloud",group:"公共节点",orderNo:5,properties:{operation:{title:"操作ID",type:"string",inputType:"RestOperationSelector",default:"",nullable:!1},arguments:j(j({},h),{inputType:{type:"ObjectEditor",props:{themesGroup:[{theme:"default",propKeys:["url","method"]},{theme:"tab",propKeys:["uriVariables","body","headers"]}]}},properties:{url:{type:"string",title:"请求地址"},method:{type:"string",inputType:{type:"SingleSelect",props:{enums:["GET","POST","PUT","DELETE","PATCH"]}},title:"请求方法",default:"GET"},uriVariables:{title:"url参数",type:"object",inputType:"MapEditor"},body:{title:"请求体",type:"object",inputType:"MapEditor"},headers:{title:"请求头",type:"object",inputType:{type:"MapEditor",props:{options:{keyTitle:"请求头名",valueTitle:"请求头值",addTitle:"添加请求头"}}}}}}),invoke:v,stateDataInputFilter:b,stateDataOutputFilter:g}},"server"),C=Object(l["buildCommonServiceNode"])({id:l["DNodes"].Inject,title:"注入变量",icon:"md-code-working",group:"公共节点",orderNo:0,properties:{data:{title:"json数据",type:"object",inputType:"JsonEditor",default:{},nullable:!1,expression:"off"},stateDataInputFilter:b,stateDataOutputFilter:g}},"server"),V=[d,f,x,E,C,k],I=Object(l["buildCommonServiceNode"])({id:"D.CategoryFunction",title:"选择函数",icon:"md-cloud-circle",group:"公共节点",orderNo:5,properties:{},isCategory:!0,categoryChildren:[],meta:{isFunction:!0}},"server"),N=n("2ef0"),M=n.n(N),P=n("405b"),T=function(){return T=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)},D=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},B=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},A={string:"string",number:"number",integer:"number",double:"number",float:"number",list:"array",boolean:"boolean"};function q(e){var t={};return M.a.forIn(e.parameters,(function(e){var n=e.name,o=e.type,i=e.defaultValue,r=e.label,a=e.description,s=e.required,l=e.orderNo,c=e.inputType,u=e.expression;t[n]={title:r,default:i,type:A[o]||"object",inputType:c||(A[o]?null:"JsonEditor"),orderNo:l,nullable:!s,description:a,expression:u||"on"}})),t}function R(){return D(this,void 0,void 0,(function(){var e,t;return B(this,(function(n){switch(n.label){case 0:return[4,P["a"].getFuncsSchema()];case 1:return e=n.sent(),t=[],M.a.forEach(e,(function(e){var n=e.name,o=e.label,i=e.operation,r=e.orderNo,a=e.group,s=e.errors,c=e.icon,u=q(e),d={actionDataFilter:M.a.cloneDeep(y),invoke:v,stateDataInputFilter:b,stateDataOutputFilter:g};M.a.isEmpty(u)||(d.arguments=T(T({},h),{properties:u})),t.push(Object(l["buildCommonServiceNode"])({id:n,title:o,operation:i,icon:c,group:a,orderNo:r,properties:d,meta:{isFunction:!0},errors:s},"server"))})),[2,t]}}))}))}var $=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},F=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function z(e){return $(this,void 0,void 0,(function(){var t,n;return F(this,(function(o){switch(o.label){case 0:return t=s().setRuntimeBaseUrl,(null===e||void 0===e?void 0:e.runtimeBaseUrl)&&t(e.runtimeBaseUrl),n={install:function(e){return $(this,void 0,void 0,(function(){var t,n;return F(this,(function(o){switch(o.label){case 0:return[4,R()];case 1:return t=o.sent(),(n=I.categoryChildren).push.apply(n,t),V.push(I),e.serverNodeRegistry.batchRegister(V),e.serverNodeRegistry.setGroups([{name:"流转节点",expand:!0},{name:"公共节点",expand:!0}]),[2]}}))}))}},[4,l["LcdpOrchPluginRegistry"].register(n)];case 1:return o.sent(),[2]}}))}))}var U=function(){return n.e("chunk-e32482b2").then(n.bind(null,"449a"))}},f5f3:function(e,t,n){"use strict";function o(e){var t=function(t){e.modelExtra.data=Object.assign({},e.modelExtra.data,{requestBodySchema:t})};return{updateRequestBodySchema:t}}function i(e){var t=function(t){e.data=Object.assign({},e.data,{requestBodySchema:t})};return{updateRequestBodySchema:t}}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},f7f2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("4b49"),i=function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o["throw"](e))}catch(t){r(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((o=o.apply(e,t||[])).next())}))},r=function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,o&&(i=2&r[0]?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s){r=[6,s],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};function a(e,t){var n=this,a=t.initialValue,s=t.beforeShowVarBindModal,l=Object(o["b"])().parseActionVariables,c=function(t){return i(n,void 0,void 0,(function(){var n,o,i,c,u,d,p;return r(this,(function(r){switch(r.label){case 0:return n=l(),o=n.actionVariables,i=n.currentNode,c=o,u=i,d={value:a.value,node:u,variables:c,propId:""},s&&s(d),[4,e.showVarBindModal(d)];case 1:return p=r.sent(),p.cancel||t&&t(p.value),[2]}}))}))};return{showExpressionDialog:c}}}})}))},a5ff:function(e,t,n){"use strict";var o=["SQLserver","bing-drag","bingo-account-power","bingo-account-type","bingo-account","bingo-api","bingo-app-library","bingo-as","bingo-baremetal","bingo-block","bingo-business-system","bingo-business-system1","bingo-bussystem","bingo-cloud-manage","bingo-cloud-mirroring","bingo-cloud-network","bingo-cloudcfn","bingo-cloudwatch","bingo-collect","bingo-colony","bingo-configuration","bingo-database","bingo-db","bingo-delivery-platform","bingo-developer","bingo-download","bingo-ebs","bingo-ec2","bingo-ecr","bingo-ecs","bingo-efs","bingo-eks","bingo-eks1","bingo-elasticip","bingo-elasticip1","bingo-elb","bingo-end-app","bingo-evas","bingo-finance","bingo-firewall","bingo-flow-config","bingo-host-machine","bingo-iam","bingo-interchanger","bingo-ip","bingo-load-balance-port","bingo-load-balance","bingo-lvslb","bingo-machine-room","bingo-manage-config","bingo-management-screen","bingo-manpower","bingo-memory-device","bingo-memory-lun","bingo-memory-receipt","bingo-memory","bingo-menace-detection","bingo-menace","bingo-middleware","bingo-monitoring","bingo-mysql","bingo-operation-chart","bingo-oracle","bingo-order","bingo-organization","bingo-physical-machine","bingo-platform","bingo-project-quota","bingo-property","bingo-quota","bingo-rackroom","bingo-realm","bingo-report-forms","bingo-resource-pool","bingo-router","bingo-rule-config","bingo-s3","bingo-security-group","bingo-security","bingo-senior-service","bingo-service-instance","bingo-sns","bingo-sql","bingo-statement-analysis","bingo-storage-gateway","bingo-store-copy","bingo-store","bingo-subnet","bingo-subnetip","bingo-switch-port","bingo-system-setup","bingo-train","bingo-user-manage","bingo-vip","bingo-virtual-backup","bingo-virtual-machine","bingo-vpc","bingo-work","bingo-workorder-manage","bingo-zhenliecunchu","fold","ios-add-circle-outline","ios-add-circle","ios-add","ios-airplane","ios-alarm-outline","ios-alarm","ios-albums-outline","ios-albums","ios-alert-outline","ios-alert","ios-american-football-outline","ios-american-football","ios-analytics-outline","ios-analytics","ios-aperture-outline","ios-aperture","ios-apps-outline","ios-apps","ios-appstore-outline","ios-appstore","ios-archive-outline","ios-archive","ios-arrow-back","ios-arrow-down","ios-arrow-dropdown-circle","ios-arrow-dropdown","ios-arrow-dropleft-circle","ios-arrow-dropleft","ios-arrow-dropright-circle","ios-arrow-dropright","ios-arrow-dropup-circle","ios-arrow-dropup","ios-arrow-forward","ios-arrow-round-back","ios-arrow-round-down","ios-arrow-round-forward","ios-arrow-round-up","ios-arrow-up","ios-at-outline","ios-at","ios-attach","ios-backspace-outline","ios-backspace","ios-barcode-outline","ios-barcode","ios-baseball-outline","ios-baseball","ios-basket-outline","ios-basket","ios-basketball-outline","ios-basketball","ios-battery-charging","ios-battery-dead","ios-battery-full","ios-beaker-outline","ios-beaker","ios-bed","ios-beer-outline","ios-beer","ios-bicycle","ios-bluetooth","ios-boat-outline","ios-boat","ios-body-outline","ios-body","ios-bonfire-outline","ios-bonfire","ios-book-outline","ios-book","ios-bookmark-outline","ios-bookmark","ios-bookmarks-outline","ios-bookmarks","ios-bowtie-outline","ios-bowtie","ios-briefcase-outline","ios-briefcase","ios-browsers-outline","ios-browsers","ios-brush-outline","ios-brush","ios-bug-outline","ios-bug","ios-build-outline","ios-build","ios-bulb-outline","ios-bulb","ios-bus-outline","ios-bus","ios-business","ios-cafe-outline","ios-cafe","ios-calculator-outline","ios-calculator","ios-calendar-outline","ios-calendar","ios-call-outline","ios-call","ios-camera-outline","ios-camera","ios-car-outline","ios-car","ios-card-outline","ios-card","ios-cart-outline","ios-cart","ios-cash-outline","ios-cash","ios-cellular","ios-chatboxes-outline","ios-chatboxes","ios-chatbubbles-outline","ios-chatbubbles","ios-checkbox-outline","ios-checkbox","ios-checkmark-circle-outline","ios-checkmark-circle","ios-checkmark","ios-clipboard-outline","ios-clipboard","ios-clock-outline","ios-clock","ios-close-circle-outline","ios-close-circle","ios-close","ios-closed-captioning-outline","ios-closed-captioning","ios-cloud-circle-outline","ios-cloud-circle","ios-cloud-done-outline","ios-cloud-done","ios-cloud-download-outline","ios-cloud-download","ios-cloud-outline","ios-cloud-upload-outline","ios-cloud-upload","ios-cloud","ios-cloudy-night-outline","ios-cloudy-night","ios-cloudy-outline","ios-cloudy","ios-code-download","ios-code-working","ios-code","ios-cog-outline","ios-cog","ios-color-fill-outline","ios-color-fill","ios-color-filter-outline","ios-color-filter","ios-color-palette-outline","ios-color-palette","ios-color-wand-outline","ios-color-wand","ios-compass-outline","ios-compass","ios-construct-outline","ios-construct","ios-contact-outline","ios-contact","ios-contacts-outline","ios-contacts","ios-contract","ios-contrast","ios-copy-outline","ios-copy","ios-create-outline","ios-create","ios-crop-outline","ios-crop","ios-cube-outline","ios-cube","ios-cut-outline","ios-cut","ios-desktop-outline","ios-desktop","ios-disc-outline","ios-disc","ios-document-outline","ios-document","ios-done-all","ios-download-outline","ios-download","ios-easel-outline","ios-easel","ios-egg-outline","ios-egg","ios-exit-outline","ios-exit","ios-expand","ios-eye-off-outline","ios-eye-off","ios-eye-outline","ios-eye","ios-fastforward-outline","ios-fastforward","ios-female","ios-filing-outline","ios-filing","ios-film-outline","ios-film","ios-finger-print","ios-fitness","ios-flag-outline","ios-flag","ios-flame-outline","ios-flame","ios-flash-off","ios-flash-outline","ios-flash","ios-flashlight","ios-flask-outline","ios-flask","ios-flower-outline","ios-flower","ios-folder-open-outline","ios-folder-open","ios-folder-outline","ios-folder","ios-football-outline","ios-football","ios-funnel-outline","ios-funnel","ios-game-controller-a-outline","ios-game-controller-a","ios-game-controller-b-outline","ios-game-controller-b","ios-gift","ios-git-branch","ios-git-commit","ios-git-compare","ios-git-merge","ios-git-network","ios-git-pull-request","ios-glasses-outline","ios-glasses","ios-globe-outline","ios-globe","ios-grid-outline","ios-grid","ios-hammer-outline","ios-hammer","ios-hand-outline","ios-hand","ios-happy-outline","ios-happy","ios-headset-outline","ios-headset","ios-heart-dislike","ios-heart-empty","ios-heart-half","ios-heart-outline","ios-heart","ios-help-buoy-outline","ios-help-buoy","ios-help-circle-outline","ios-help-circle","ios-help","ios-home-outline","ios-home","ios-hourglass","ios-ice-cream-outline","ios-ice-cream","ios-image-outline","ios-image","ios-images-outline","ios-images","ios-infinite-outline","ios-infinite","ios-information-circle-outline","ios-information-circle","ios-information","ios-ionic-outline","ios-ionic","ios-ionitron-outline","ios-ionitron","ios-jet-outline","ios-jet","ios-journal","ios-key-outline","ios-key","ios-keypad-outline","ios-keypad","ios-laptop","ios-leaf-outline","ios-leaf","ios-link-outline","ios-link","ios-list-box-outline","ios-list-box","ios-list","ios-loading","ios-locate-outline","ios-locate","ios-lock-outline","ios-lock","ios-log-in","ios-log-out","ios-magnet-outline","ios-magnet","ios-mail-open-outline","ios-mail-open","ios-mail-outline","ios-mail-unread","ios-mail","ios-male","ios-man-outline","ios-man","ios-map-outline","ios-map","ios-medal-outline","ios-medal","ios-medical-outline","ios-medical","ios-medkit-outline","ios-medkit","ios-megaphone-outline","ios-megaphone","ios-menu-outline","ios-menu","ios-mic-off-outline","ios-mic-off","ios-mic-outline","ios-mic","ios-microphone-outline","ios-microphone","ios-moon-outline","ios-moon","ios-more-outline","ios-more","ios-move","ios-musical-note-outline","ios-musical-note","ios-musical-notes-outline","ios-musical-notes","ios-navigate-outline","ios-navigate","ios-no-smoking-outline","ios-no-smoking","ios-notifications-off-outline","ios-notifications-off","ios-notifications-outline","ios-notifications","ios-nuclear-outline","ios-nuclear","ios-nutrition-outline","ios-nutrition","ios-open-outline","ios-open","ios-options-outline","ios-options","ios-outlet-outline","ios-outlet","ios-paper-outline","ios-paper-plane-outline","ios-paper-plane","ios-paper","ios-partly-sunny-outline","ios-partly-sunny","ios-pause-outline","ios-pause","ios-paw-outline","ios-paw","ios-people-outline","ios-people","ios-person-add-outline","ios-person-add","ios-person-outline","ios-person","ios-phone-landscape","ios-phone-portrait","ios-photos-outline","ios-photos","ios-pie-outline","ios-pie","ios-pin-outline","ios-pin","ios-pint-outline","ios-pint","ios-pizza-outline","ios-pizza","ios-plane-outline","ios-plane","ios-planet-outline","ios-planet","ios-play-circle","ios-play-outline","ios-play","ios-podium-outline","ios-podium","ios-power-outline","ios-power","ios-pricetag-outline","ios-pricetag","ios-pricetags-outline","ios-pricetags","ios-print-outline","ios-print","ios-pulse-outline","ios-pulse","ios-qr-scanner","ios-quote-outline","ios-quote","ios-radio-button-off","ios-radio-button-on","ios-radio-outline","ios-radio","ios-rainy-outline","ios-rainy","ios-recording-outline","ios-recording","ios-redo-outline","ios-redo","ios-refresh-circle-outline","ios-refresh-circle","ios-refresh","ios-remove-circle-outline","ios-remove-circle","ios-remove","ios-reorder","ios-repeat","ios-resize","ios-restaurant-outline","ios-restaurant","ios-return-left","ios-return-right","ios-reverse-camera-outline","ios-reverse-camera","ios-rewind-outline","ios-rewind","ios-ribbon-outline","ios-ribbon","ios-rocket","ios-rose-outline","ios-rose","ios-sad-outline","ios-sad","ios-save","ios-school-outline","ios-school","ios-search-outline","ios-search","ios-send-outline","ios-send","ios-settings-outline","ios-settings","ios-share-alt-outline","ios-share-alt","ios-share-outline","ios-share","ios-shirt-outline","ios-shirt","ios-shuffle","ios-skip-backward-outline","ios-skip-backward","ios-skip-forward-outline","ios-skip-forward","ios-snow-outline","ios-snow","ios-speedometer-outline","ios-speedometer","ios-square-outline","ios-square","ios-star-half","ios-star-outline","ios-star","ios-stats-outline","ios-stats","ios-stopwatch-outline","ios-stopwatch","ios-subway-outline","ios-subway","ios-sunny-outline","ios-sunny","ios-swap","ios-switch-outline","ios-switch","ios-sync","ios-tablet-landscape","ios-tablet-portrait","ios-tennisball-outline","ios-tennisball","ios-text-outline","ios-text","ios-thermometer-outline","ios-thermometer","ios-thumbs-down-outline","ios-thumbs-down","ios-thumbs-up-outline","ios-thumbs-up","ios-thunderstorm-outline","ios-thunderstorm","ios-time-outline","ios-time","ios-timer-outline","ios-timer","ios-today","ios-train-outline","ios-train","ios-transgender","ios-trash-outline","ios-trash","ios-trending-down","ios-trending-up","ios-trophy-outline","ios-trophy","ios-tv","ios-umbrella-outline","ios-umbrella","ios-undo-outline","ios-undo","ios-unlock-outline","ios-unlock","ios-videocam-outline","ios-videocam","ios-volume-down","ios-volume-high","ios-volume-low","ios-volume-mute","ios-volume-off","ios-volume-up","ios-walk","ios-wallet","ios-warning-outline","ios-warning","ios-watch","ios-water-outline","ios-water","ios-wifi-outline","ios-wifi","ios-wine-outline","ios-wine","ios-woman-outline","ios-woman","logo-android","logo-angular","logo-apple","logo-bitbucket","logo-bitcoin","logo-buffer","logo-chrome","logo-closed-captioning","logo-codepen","logo-css","logo-css3","logo-designernews","logo-dribbble","logo-dropbox","logo-euro","logo-facebook","logo-flickr","logo-foursquare","logo-freebsd-devil","logo-game-controller-a","logo-game-controller-b","logo-github","logo-google","logo-googleplus","logo-hackernews","logo-html","logo-html5","logo-instagram","logo-ionic","logo-ionitron","logo-javascript","logo-linkedin","logo-markdown","logo-model-s","logo-no-smoking","logo-nodejs","logo-npm","logo-octocat","logo-pinterest","logo-playstation","logo-polymer","logo-python","logo-reddit","logo-rss","logo-sass","logo-skype","logo-slack","logo-snapchat","logo-steam","logo-tumblr","logo-tux","logo-twitch","logo-twitter","logo-usd","logo-vimeo","logo-vk","logo-whatsapp","logo-windows","logo-wordpress","logo-xbox","logo-xing","logo-yahoo","logo-yen","logo-youtube","md-add-circle-outline","md-add-circle","md-add","md-airplane","md-alarm","md-albums","md-alert","md-american-football","md-analytics","md-aperture","md-apps","md-appstore","md-archive","md-arrow-back","md-arrow-down","md-arrow-dropdown-circle","md-arrow-dropdown","md-arrow-dropleft-circle","md-arrow-dropleft","md-arrow-dropright-circle","md-arrow-dropright","md-arrow-dropup-circle","md-arrow-dropup","md-arrow-forward","md-arrow-round-back","md-arrow-round-down","md-arrow-round-forward","md-arrow-round-up","md-arrow-up","md-at","md-attach","md-backspace","md-barcode","md-baseball","md-basket","md-basketball","md-battery-charging","md-battery-dead","md-battery-full","md-beaker","md-bed","md-beer","md-bicycle","md-bluetooth","md-boat","md-body","md-bonfire","md-book","md-bookmark","md-bookmarks","md-bowtie","md-briefcase","md-browsers","md-brush","md-bug","md-build","md-bulb","md-bus","md-business","md-cafe","md-calculator","md-calendar","md-call","md-camera","md-car","md-card","md-cart","md-cash","md-cellular","md-chatboxes","md-chatbubbles","md-checkbox-outline","md-checkbox","md-checkmark-circle-outline","md-checkmark-circle","md-checkmark","md-clipboard","md-clock","md-close-circle-outline","md-close-circle","md-close","md-closed-captioning","md-cloud-circle","md-cloud-done","md-cloud-download","md-cloud-outline","md-cloud-upload","md-cloud","md-cloudy-night","md-cloudy","md-code-download","md-code-working","md-code","md-cog","md-color-fill","md-color-filter","md-color-palette","md-color-wand","md-compass","md-construct","md-contact","md-contacts","md-contract","md-contrast","md-copy","md-create","md-crop","md-cube","md-cut","md-desktop","md-disc","md-document","md-done-all","md-download","md-easel","md-egg","md-exit","md-expand","md-eye-off","md-eye","md-fastforward","md-female","md-filing","md-film","md-finger-print","md-fitness","md-flag","md-flame","md-flash-off","md-flash","md-flashlight","md-flask","md-flower","md-folder-open","md-folder","md-football","md-funnel","md-game-controller-a","md-game-controller-b","md-gift","md-git-branch","md-git-commit","md-git-compare","md-git-merge","md-git-network","md-git-pull-request","md-glasses","md-globe","md-grid","md-hammer","md-hand","md-happy","md-headset","md-heart-dislike","md-heart-empty","md-heart-half","md-heart-outline","md-heart","md-help-buoy","md-help-circle-outline","md-help-circle","md-help","md-home","md-hourglass","md-ice-cream","md-image","md-images","md-infinite","md-information-circle-outline","md-information-circle","md-information","md-ionic","md-ionitron","md-jet","md-journal","md-key","md-keypad","md-laptop","md-leaf","md-link","md-list-box","md-list","md-locate","md-lock","md-log-in","md-log-out","md-magnet","md-mail-open","md-mail-unread","md-mail","md-male","md-man","md-map","md-medal","md-medical","md-medkit","md-megaphone","md-menu","md-mic-off","md-mic","md-microphone","md-moon","md-more","md-move","md-musical-note","md-musical-notes","md-navigate","md-no-smoking","md-notifications-off","md-notifications-outline","md-notifications","md-nuclear","md-nutrition","md-open","md-options","md-outlet","md-paper-plane","md-paper","md-partly-sunny","md-pause","md-paw","md-people","md-person-add","md-person","md-phone-landscape","md-phone-portrait","md-photos","md-pie","md-pin","md-pint","md-pizza","md-plane","md-planet","md-play-circle","md-play","md-podium","md-power","md-pricetag","md-pricetags","md-print","md-pulse","md-qr-scanner","md-quote","md-radio-button-off","md-radio-button-on","md-radio","md-rainy","md-recording","md-redo","md-refresh-circle","md-refresh","md-remove-circle-outline","md-remove-circle","md-remove","md-reorder","md-repeat","md-resize","md-restaurant","md-return-left","md-return-right","md-reverse-camera","md-rewind","md-ribbon","md-rocket","md-rose","md-sad","md-save","md-school","md-search","md-send","md-settings","md-share-alt","md-share","md-shirt","md-shuffle","md-skip-backward","md-skip-forward","md-snow","md-speedometer","md-square-outline","md-square","md-star-half","md-star-outline","md-star","md-stats","md-stopwatch","md-subway","md-sunny","md-swap","md-switch","md-sync","md-tablet-landscape","md-tablet-portrait","md-tennisball","md-text","md-thermometer","md-thumbs-down","md-thumbs-up","md-thunderstorm","md-time","md-timer","md-today","md-train","md-transgender","md-trash","md-trending-down","md-trending-up","md-trophy","md-tv","md-umbrella","md-undo","md-unlock","md-videocam","md-volume-down","md-volume-high","md-volume-low","md-volume-mute","md-volume-off","md-volume-up","md-walk","md-wallet","md-warning","md-watch","md-water","md-wifi","md-wine","md-woman","zhenliecunchu","bingo-exit-full-screen","bingo-full-screen","bingo-menu-fold","bingo-menu-unfold"];t["a"]=o}}]);
|