(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-291a9e54"],{"093d":function(e,t,a){"use strict";a("a1fa")},1538:function(e,t,a){"use strict";a.d(t,"g",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"f",(function(){return o})),a.d(t,"m",(function(){return s})),a.d(t,"n",(function(){return l})),a.d(t,"i",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"e",(function(){return m})),a.d(t,"j",(function(){return d})),a.d(t,"a",(function(){return p})),a.d(t,"l",(function(){return f})),a.d(t,"c",(function(){return h})),a.d(t,"d",(function(){return g})),a.d(t,"k",(function(){return b}));var n=a("b775");function r(e){return Object(n["b"])({url:"/flowable/definition/list",method:"get",params:e})}function i(e,t){return Object(n["b"])({url:"/flowable/definition/start/"+e,method:"post",data:t})}function o(e){return Object(n["b"])({url:"/flowable/task/processVariables/"+e,method:"get"})}function s(e){return Object(n["b"])({url:"/flowable/definition/updateState/edit",method:"post",params:e})}function l(e){return Object(n["b"])({url:"/flowable/definition/userList",method:"get",params:e})}function c(e){return Object(n["b"])({url:"/flowable/definition/roleList",method:"get",params:e})}function u(e){return Object(n["b"])({url:"/flowable/definition/readXml/"+e,method:"get"})}function m(e){return Object(n["b"])({url:"/flowable/task/flowViewer/"+e,method:"get"})}function d(e){return Object(n["b"])({url:"/flowable/definition/save",method:"post",data:e})}function p(e){return Object(n["b"])({url:"/system/deployment",method:"post",data:e})}function f(e){return Object(n["b"])({url:"/system/deployment/edit",method:"post",data:e})}function h(e){return Object(n["b"])({url:"/flowable/definition/delete/",method:"post",params:e})}function g(e){return Object(n["b"])({url:"/system/deployment/export",method:"get",params:e})}function b(){return Object(n["b"])({url:"/flowable/definition/selectOptionList",method:"get"})}},"251b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("bpmn-modeler",{ref:"refNode",attrs:{xml:e.xml,"is-view":!1,users:e.users,groups:e.groups,categories:e.categorys,"categories-fields":e.categoriesFields},on:{save:e.save,showXML:e.showXML,dataType:e.dataType}}),t("el-dialog",{attrs:{title:e.xmlTitle,visible:e.xmlOpen,width:"60%","append-to-body":""},on:{"update:visible":function(t){e.xmlOpen=t}}},[t("div",[t("pre",{directives:[{name:"highlight",rawName:"v-highlight"}]},[e._v("           "),t("code",{staticClass:"xml"},[e._v("\n                "+e._s(e.xmlContent)+"\n           ")]),e._v("\n        ")])])])],1)},r=[],i=(a("b0c0"),a("d3b7"),a("159b"),a("1538")),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flow-containers",class:{"view-mode":e.isView},staticStyle:{height:"100%"}},[t("a-layout",{staticStyle:{height:"100%"}},[t("a-layout-header",{staticStyle:{"border-bottom":"1px solid rgb(218 218 218)",height:"auto","background-color":"#fff"},attrs:{theme:"light"}},[t("div",{staticStyle:{display:"flex",padding:"5px 0px","justify-content":"space-between"}},[t("a-space",[t("a-upload",{attrs:{name:"file",action:"",accept:"application/xml",showUploadList:!1,beforeUpload:e.openBpmn}},[t("a-tooltip",{attrs:{effect:"dark",title:"打开",placement:"bottom"}},[t("a-button",[t("i",{staticClass:"iconfont icon-file-open"})])],1)],1),t("a-tooltip",{attrs:{effect:"dark",title:"新建",placement:"bottom"}},[t("a-button",{on:{click:e.newDiagram}},[t("i",{staticClass:"iconfont icon-add"})])],1),t("a-tooltip",{attrs:{effect:"dark",title:"自适应屏幕",placement:"bottom"}},[t("a-button",{on:{click:e.fitViewport}},[t("i",{staticClass:"iconfont icon-browse"})])],1),t("a-tooltip",{attrs:{effect:"dark",title:"放大",placement:"bottom"}},[t("a-button",{on:{click:function(t){return e.zoomViewport(!0)}}},[t("i",{staticClass:"iconfont icon-zoom-out"})])],1),t("a-tooltip",{attrs:{effect:"dark",title:"缩小",placement:"bottom"}},[t("a-button",{on:{click:function(t){return e.zoomViewport(!1)}}},[t("i",{staticClass:"iconfont icon-zoom-in"})])],1),t("a-tooltip",{attrs:{effect:"dark",title:"后退",placement:"bottom"}},[t("a-button",{on:{click:function(t){e.modeler.get("commandStack").undo()}}},[t("i",{staticClass:"iconfont icon-left"})])],1),t("a-tooltip",{attrs:{title:"前进",placement:"bottom"}},[t("a-button",{on:{click:function(t){e.modeler.get("commandStack").redo()}}},[t("i",{staticClass:"iconfont icon-right"})])],1),e._t("header-left")],2),t("a-space",[e._t("header-right"),e.rightActionConfig.showCode&&e.rightActionConfig.showCode.show?t("a-button",{on:{click:e.showXML}},[e.rightActionConfig.showCode.icon?t("i",{staticClass:"iconfont icon-browse"}):e._e(),e._v(e._s(e.rightActionConfig.showCode.label)+" ")]):e._e(),e.rightActionConfig.downloadXML&&e.rightActionConfig.downloadXML.show?t("a-button",{on:{click:function(t){return e.saveXML(!0)}}},[e.rightActionConfig.downloadXML.icon?t("i",{staticClass:"iconfont icon-download"}):e._e(),e._v(e._s(e.rightActionConfig.downloadXML.label)+" ")]):e._e(),e.rightActionConfig.downloadSVG&&e.rightActionConfig.downloadSVG.show?t("a-button",{on:{click:function(t){return e.saveImg("svg",!0)}}},[e.rightActionConfig.downloadSVG.icon?t("i",{staticClass:"iconfont icon-download"}):e._e(),e._v(e._s(e.rightActionConfig.downloadSVG.label)+" ")]):e._e(),e.rightActionConfig.save&&e.rightActionConfig.save.show?t("a-button",{attrs:{type:"primary"},on:{click:e.save}},[e.rightActionConfig.save.icon?t("i",{staticClass:"iconfont icon-upload"}):e._e(),e._v(e._s(e.rightActionConfig.save.label)+" ")]):e._e()],2)],1)]),t("a-layout",{staticStyle:{"align-items":"stretch"}},[t("a-layout-content",{staticStyle:{padding:"0","margin-top":"10px"}},[t("div",{ref:"canvas",staticClass:"canvas"})]),t("a-layout-sider",{staticClass:"sider",staticStyle:{background:"#fff","min-width":"40px",width:"40px","max-width":"40px","border-left":"1px solid #eeeeee","box-shadow":"0 0 8px #cccccc"}},[t("div",{staticStyle:{width:"100%","text-align":"center"},on:{click:function(t){e.panelVisible=!0}}},[e.panelExist?t("i",{staticClass:"iconfont icon-left-graph",staticStyle:{"font-size":"32px"}}):e._e()]),t("a-drawer",{attrs:{width:"400px",placement:"right",closable:!1,visible:e.panelVisible&&e.panelExist,"get-container":!1,"wrap-style":{position:"absolute"}}},[t("template",{slot:"title"},[t("i",{staticClass:"iconfont icon-right-graph",staticStyle:{"font-size":"32px"},on:{click:function(t){e.panelVisible=!1}}}),t("span",[e._v(e._s(e.panelTitle))])]),e.modeler?t("panel",{ref:"panel",attrs:{filters:e.panelFilters,modeler:e.modeler,users:e.users,groups:e.groups,categories:e.categories,"categories-fields":e.categoriesFields,"associate-form-config":e.associateFormConfig,"associate-form-data-options":e.associateFormDataOptions,"assignee-data-source":e.assigneeDataSource,"due-date-data-source":e.dueDateDataSource,"follow-up-date-data-source":e.followUpDateDataSource,"initiator-data-source":e.initiatorDataSource,"skip-expression-data-source":e.skipExpressionDataSource,"condition-expression-data-source":e.conditionExpressionDataSource,"candidate-user-data-source":e.candidateUserDataSource,"candidate-group-data-source":e.candidateGroupDataSource},on:{showForm:e.showAssociateForm,createForm:e.createAssociateForm,change:e.handlePanelChange}}):e._e()],2)],1)],1)],1),t("a-modal",{staticStyle:{height:"800px"},attrs:{title:"XML",width:"60%"},scopedSlots:e._u([{key:"footer",fn:function(){},proxy:!0}]),model:{value:e.codeVisible,callback:function(t){e.codeVisible=t},expression:"codeVisible"}},[t("div",{staticClass:"codediv"},[t("codemirror",{attrs:{options:e.options},model:{value:e.xmlCode,callback:function(t){e.xmlCode=t},expression:"xmlCode"}})],1)])],1)},s=[],l=(a("3b18"),a("f64c")),c=a("c7eb"),u=a("1da1"),m=(a("7db0"),a("ac1f"),a("3ca3"),a("5319"),a("498a"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),{"Activate the global connect tool":"激活全局连接工具","Append {type}":"添加 {type}","Add Lane above":"在上面添加道","Divide into two Lanes":"分割成两个道","Divide into three Lanes":"分割成三个道","Add Lane below":"在下面添加道","Append compensation activity":"追加补偿活动","Change type":"修改类型","Connect using Association":"使用关联连接","Connect using Sequence/MessageFlow or Association":"使用顺序/消息流或者关联连接","Connect using DataInputAssociation":"使用数据输入关联连接",Remove:"移除","Activate the hand tool":"激活抓手工具","Activate the lasso tool":"激活套索工具","Activate the create/remove space tool":"激活创建/删除空间工具","Create expanded SubProcess":"创建扩展子过程","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出事件/边界事件","Create Pool/Participant":"创建池/参与者","Parallel Multi Instance":"并行多重事件","Sequential Multi Instance":"时序多重事件",DataObjectReference:"数据对象参考",DataStoreReference:"数据存储参考",Loop:"循环","Ad-hoc":"即席","Create {type}":"创建 {type}",Task:"任务","Send Task":"发送任务","Receive Task":"接收任务","User Task":"用户任务","Manual Task":"手工任务","Business Rule Task":"业务规则任务","Service Task":"服务任务","Script Task":"脚本任务","Call Activity":"调用活动","Sub Process (collapsed)":"子流程（折叠的）","Sub Process (expanded)":"子流程（展开的）","Start Event":"开始事件",StartEvent:"开始事件","Intermediate Throw Event":"中间事件","End Event":"结束事件",EndEvent:"结束事件","Create Gateway":"创建网关","Create Intermediate/Boundary Event":"创建中间/边界事件","Message Start Event":"消息开始事件","Timer Start Event":"定时开始事件","Conditional Start Event":"条件开始事件","Signal Start Event":"信号开始事件","Error Start Event":"错误开始事件","Escalation Start Event":"升级开始事件","Compensation Start Event":"补偿开始事件","Message Start Event (non-interrupting)":"消息开始事件（非中断）","Timer Start Event (non-interrupting)":"定时开始事件（非中断）","Conditional Start Event (non-interrupting)":"条件开始事件（非中断）","Signal Start Event (non-interrupting)":"信号开始事件（非中断）","Escalation Start Event (non-interrupting)":"升级开始事件（非中断）","Message Intermediate Catch Event":"消息中间捕获事件","Message Intermediate Throw Event":"消息中间抛出事件","Timer Intermediate Catch Event":"定时中间捕获事件","Escalation Intermediate Throw Event":"升级中间抛出事件","Conditional Intermediate Catch Event":"条件中间捕获事件","Link Intermediate Catch Event":"链接中间捕获事件","Link Intermediate Throw Event":"链接中间抛出事件","Compensation Intermediate Throw Event":"补偿中间抛出事件","Signal Intermediate Catch Event":"信号中间捕获事件","Signal Intermediate Throw Event":"信号中间抛出事件","Message End Event":"消息结束事件","Escalation End Event":"定时结束事件","Error End Event":"错误结束事件","Cancel End Event":"取消结束事件","Compensation End Event":"补偿结束事件","Signal End Event":"信号结束事件","Terminate End Event":"终止结束事件","Message Boundary Event":"消息边界事件","Message Boundary Event (non-interrupting)":"消息边界事件（非中断）","Timer Boundary Event":"定时边界事件","Timer Boundary Event (non-interrupting)":"定时边界事件（非中断）","Escalation Boundary Event":"升级边界事件","Escalation Boundary Event (non-interrupting)":"升级边界事件（非中断）","Conditional Boundary Event":"条件边界事件","Conditional Boundary Event (non-interrupting)":"条件边界事件（非中断）","Error Boundary Event":"错误边界事件","Cancel Boundary Event":"取消边界事件","Signal Boundary Event":"信号边界事件","Signal Boundary Event (non-interrupting)":"信号边界事件（非中断）","Compensation Boundary Event":"补偿边界事件","Exclusive Gateway":"互斥网关","Parallel Gateway":"并行网关","Inclusive Gateway":"相容网关","Complex Gateway":"复杂网关","Event based Gateway":"事件网关",Transaction:"转运","Sub Process":"子流程","Event Sub Process":"事件子流程","Collapsed Pool":"折叠池","Expanded Pool":"展开池","no parent for {element} in {parent}":"在{parent}里，{element}没有父类","no shape type specified":"没有指定的形状类型","flow elements must be children of pools/participants":"流元素必须是池/参与者的子类","out of bounds release":"out of bounds release","more than {count} child lanes":"子道大于{count} ","element required":"元素不能为空","diagram not part of bpmn:Definitions":"流程图不符合bpmn规范","no diagram to display":"没有可展示的流程图","no process or collaboration to display":"没有可展示的流程/协作","element {element} referenced by {referenced}#{property} not yet drawn":"由{referenced}#{property}引用的{element}元素仍未绘制","already rendered {element}":"{element} 已被渲染","failed to import {element}":"导入{element}失败",Id:"标识",Name:"名称",General:"常规",Details:"详情","Message Name":"消息名称",Message:"消息",Initiator:"创建者","Asynchronous Continuations":"持续异步","Asynchronous Before":"异步前","Asynchronous After":"异步后","Job Configuration":"工作配置",Exclusive:"排除","Job Priority":"工作优先级","Retry Time Cycle":"重试时间周期",Documentation:"文档","Element Documentation":"元素文档","History Configuration":"历史配置","History Time To Live":"历史的生存时间",Forms:"表单","Form Key":"表单key","Form Fields":"表单字段","Business Key":"业务key","Form Field":"表单字段",ID:"编号",Type:"类型",Label:"名称","Default Value":"默认值",Validation:"校验","Add Constraint":"添加约束",Config:"配置",Properties:"属性","Add Property":"添加属性",Value:"值",Listeners:"监听器","Execution Listener":"执行监听","Event Type":"事件类型","Listener Type":"监听器类型","Java Class":"Java类",Expression:"表达式","Must provide a value":"必须提供一个值","Delegate Expression":"代理表达式",Script:"脚本","Script Format":"脚本格式","Script Type":"脚本类型","Inline Script":"内联脚本","External Script":"外部脚本",Resource:"资源","Field Injection":"字段注入",Extensions:"扩展","Input/Output":"输入/输出","Input Parameters":"输入参数","Output Parameters":"输出参数",Parameters:"参数","Output Parameter":"输出参数","Timer Definition Type":"定时器定义类型","Timer Definition":"定时器定义",Date:"日期",Duration:"持续",Cycle:"循环",Signal:"信号","Signal Name":"信号名称",Escalation:"升级",Error:"错误","Link Name":"链接名称",Condition:"条件名称","Variable Name":"变量名称","Variable Event":"变量事件","Specify more than one variable change event as a comma separated list.":"多个变量事件以逗号隔开","Wait for Completion":"等待完成","Activity Ref":"活动参考","Version Tag":"版本标签",Executable:"可执行文件","External Task Configuration":"扩展任务配置","Task Priority":"任务优先级",External:"外部",Connector:"连接器","Must configure Connector":"必须配置连接器","Connector Id":"连接器编号",Implementation:"实现方式","Field Injections":"字段注入",Fields:"字段","Result Variable":"结果变量",Topic:"主题","Configure Connector":"配置连接器","Input Parameter":"输入参数",Assignee:"代理人","Candidate Users":"候选用户","Candidate Groups":"候选组","Due Date":"到期时间","Follow Up Date":"跟踪日期",Priority:"优先级","The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式，如： ${someDate} ,或者一个ISO标准日期，如：2015-06-26T09:54:00","The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式，如： ${someDate} ,或者一个ISO标准日期，如：2015-06-26T09:54:00",Variables:"变量"}),d={"bpmn:Process":"流程","bpmn:SubProcess":"子流程","bpmn:CallActivity":"调用活动","bpmn:StartEvent":"开始事件","bpmn:IntermediateThrowEvent":"中间事件","bpmn:Task":"任务","bpmn:SendTask":"发送任务","bpmn:ReceiveTask":"接收任务","bpmn:UserTask":"用户任务","bpmn:ManualTask":"手工任务","bpmn:BusinessRuleTask":"业务规则任务","bpmn:ServiceTask":"服务任务","bpmn:ScriptTask":"脚本任务","bpmn:EndEvent":"结束事件","bpmn:SequenceFlow":"流程线","bpmn:ExclusiveGateway":"互斥网关","bpmn:ParallelGateway":"并行网关","bpmn:InclusiveGateway":"相容网关","bpmn:ComplexGateway":"复杂网关","bpmn:EventBasedGateway":"事件网关"};function p(e,t){return t=t||{},e=m[e]||e,e.replace(/{([^}]+)}/g,(function(e,a){var n=t[a];return null!==m[t[a]]&&"undefined"!==m[t[a]]&&(n=m[t[a]]),n||"{"+a+"}"}))}var f=a("7024"),h=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.getComponent,expression:"getComponent"}],ref:"propertyPanel",staticClass:"property-panel"},[e.nodeName?t("div",{staticStyle:{display:"none"}},[e._v(e._s(e.nodeName))]):e._e(),e.element?t(e.getComponent,{tag:"component",attrs:{filters:e.filters,element:e.element,modeler:e.modeler,users:e.users,groups:e.groups,categories:e.categories,"categories-fields":e.categoriesFields,"associate-form-config":e.associateFormConfig,"associate-form-data-options":e.associateFormDataOptions,"assignee-data-source":e.assigneeDataSource,"due-date-data-source":e.dueDateDataSource,"follow-up-date-data-source":e.followUpDateDataSource,"initiator-data-source":e.initiatorDataSource,"skip-expression-data-source":e.skipExpressionDataSource,"condition-expression-data-source":e.conditionExpressionDataSource,"candidate-user-data-source":e.candidateUserDataSource,"candidate-group-data-source":e.candidateGroupDataSource},on:{showForm:e.showAssociateForm,createForm:e.createAssociateForm}}):e._e()],1)},g=[],b=(a("caad"),a("4de4"),function(){var e=this,t=e._self._c;return t("div",[t("a-form-model",{ref:"form",attrs:{model:e.formData,rules:e.rules,"label-col":{span:8,offset:0},"wrapper-col":{span:14,offset:0},layout:"horizontal"}},[t("a-form-model-item",{attrs:{label:"节点ID",prop:"id"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入节点ID","allow-clear":""},model:{value:e.formData.id,callback:function(t){e.$set(e.formData,"id",t)},expression:"formData.id"}})],1),t("a-form-model-item",{attrs:{label:"节点名称",prop:"name"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入节点名称","allow-clear":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e.filter("nodeDocumentation")?e._e():t("a-form-model-item",{attrs:{label:"节点描述",prop:"documentation"}},[t("a-textarea",{style:{width:"100%"},attrs:{placeholder:"请输入节点描述","auto-size":{minRows:1,maxRows:2},"allow-clear":""},model:{value:e.formData.documentation,callback:function(t){e.$set(e.formData,"documentation",t)},expression:"formData.documentation"}})],1),e.filter("executionListener")?e._e():t("a-form-model-item",{attrs:{label:"执行监听器",prop:"executionListener"}},[t("a-badge",{attrs:{count:e.getExecutionListenerLength}},[t("a-button",{attrs:{type:"default"},on:{click:e.handleShowExecutionListener}},[e._v(" 编辑 ")])],1)],1),e.filter("taskListener")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.taskListener,expression:"!!showConfig.taskListener"}],attrs:{label:"任务监听器",prop:"taskListener"}},[t("a-badge",{attrs:{count:e.computedTaskListenerLength}},[t("a-button",{attrs:{type:"default"},on:{click:function(t){e.taskListenerVisible=!0}}},[e._v(" 编辑 ")])],1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.userType,expression:"!!showConfig.userType"}],attrs:{label:"分配",prop:"userType"}},[t("a-select",{style:{width:"100%"},attrs:{placeholder:"请选择人员类型","allow-clear":""},on:{change:e.handleUserTypeChange},model:{value:e.formData.userType,callback:function(t){e.$set(e.formData,"userType",t)},expression:"formData.userType"}},e._l(e.userTypeOptions,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.value,disabled:a.disabled}},[e._v(e._s(a.label))])})),1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.dataType&&"initiator"!==e.formData.userType,expression:"!!showConfig.dataType && formData.userType !== 'initiator'"}],attrs:{label:"指定方式",prop:"dataType"}},[t("a-radio-group",{on:{change:e.handleClearAssignee},model:{value:e.formData.dataType,callback:function(t){e.$set(e.formData,"dataType",t)},expression:"formData.dataType"}},[t("a-radio-button",{attrs:{value:"fixed"}},[e._v(" 固定 ")]),t("a-radio-button",{attrs:{value:"dynamic"}},[e._v(" 动态 ")])],1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.assignee&&e.formData.dataType&&"fixed"==e.formData.dataType&&"assignee"===e.formData.userType,expression:"!!showConfig.assignee &&formData.dataType && formData.dataType =='fixed' && formData.userType === 'assignee'"}],attrs:{label:"指定人员",prop:"assignee"}},[t("a-select",{style:{width:"100%"},attrs:{placeholder:"请委派指定人员","allow-clear":""},model:{value:e.formData.assignee,callback:function(t){e.$set(e.formData,"assignee",t)},expression:"formData.assignee"}},e._l(e.users,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.id,disabled:a.disabled}},[e._v(e._s(a.name))])})),1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.assignee&&e.formData.dataType&&"dynamic"==e.formData.dataType&&"assignee"===e.formData.userType,expression:"!!showConfig.assignee &&formData.dataType && formData.dataType =='dynamic' && formData.userType === 'assignee'"}],attrs:{label:"指定人员",prop:"assignee"}},[t("a-auto-complete",{attrs:{placeholder:"指定人员表达式","data-source":e.assigneeDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.assignee,callback:function(t){e.$set(e.formData,"assignee",t)},expression:"formData.assignee"}})],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.candidateUsers&&"candidateUsers"===e.formData.userType&&"fixed"==e.formData.dataType,expression:"!!showConfig.candidateUsers && formData.userType === 'candidateUsers'&& formData.dataType =='fixed'"}],attrs:{label:"候选人员",prop:"candidateUsers"}},[t("a-select",{style:{width:"100%"},attrs:{placeholder:"请选择候选人员",mode:"multiple","allow-clear":""},model:{value:e.formData.candidateUsers,callback:function(t){e.$set(e.formData,"candidateUsers",t)},expression:"formData.candidateUsers"}},e._l(e.users,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.id,disabled:a.disabled}},[e._v(e._s(a.name))])})),1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.candidateUsers&&e.formData.dataType&&"dynamic"==e.formData.dataType&&"candidateUsers"===e.formData.userType,expression:"!!showConfig.candidateUsers &&formData.dataType && formData.dataType =='dynamic' && formData.userType === 'candidateUsers'"}],attrs:{label:"候选人员",prop:"candidateUsers"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{mode:"tags","token-separators":[","],placeholder:"候选人员表达式"},model:{value:e.formData.candidateUsers,callback:function(t){e.$set(e.formData,"candidateUsers",t)},expression:"formData.candidateUsers"}},e._l(e.candidateUserDataSource,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.candidateGroups&&"candidateGroups"===e.formData.userType&&"fixed"==e.formData.dataType,expression:"!!showConfig.candidateGroups && formData.userType === 'candidateGroups'&& formData.dataType =='fixed'"}],attrs:{label:"候选组",prop:"candidateGroups"}},[t("a-select",{style:{width:"100%"},attrs:{placeholder:"请选择候选组",mode:"multiple","allow-clear":""},model:{value:e.formData.candidateGroups,callback:function(t){e.$set(e.formData,"candidateGroups",t)},expression:"formData.candidateGroups"}},e._l(e.groups,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.id,disabled:a.disabled}},[e._v(e._s(a.name))])})),1)],1),t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.candidateGroups&&e.formData.dataType&&"dynamic"==e.formData.dataType&&"candidateGroups"===e.formData.userType,expression:"!!showConfig.candidateGroups &&formData.dataType && formData.dataType =='dynamic' && formData.userType === 'candidateGroups'"}],attrs:{label:"候选组",prop:"candidateGroups"}},[t("a-select",{staticStyle:{width:"100%"},attrs:{mode:"tags","token-separators":[","],placeholder:"候选组表达式"},model:{value:e.formData.candidateGroups,callback:function(t){e.$set(e.formData,"candidateGroups",t)},expression:"formData.candidateGroups"}},e._l(e.candidateGroupDataSource,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a}},[e._v(" "+e._s(a)+" ")])})),1)],1),e.filter("multiInstance")?e._e():t("a-form-model-item",{attrs:{label:"多实例",prop:"multiInstance"}},[this.element.businessObject.loopCharacteristics?t("a-badge",[t("i",{staticClass:"iconfont icon-spot",staticStyle:{color:"#f5222d"},attrs:{slot:"count"},slot:"count"}),t("a-button",{attrs:{type:"default"},on:{click:function(t){e.multiInstanceVisible=!0}}},[e._v(" 编辑 ")])],1):t("a-button",{attrs:{type:"default"},on:{click:function(t){e.multiInstanceVisible=!0}}},[e._v(" 编辑 ")])],1),e.filter("async")?e._e():t("a-form-model-item",{attrs:{label:"异步",prop:"async"}},[t("a-switch",{model:{value:e.formData.async,callback:function(t){e.$set(e.formData,"async",t)},expression:"formData.async"}})],1),e.filter("priority")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.priority,expression:"!!showConfig.priority"}],attrs:{label:"优先级",prop:"priority"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入优先级","allow-clear":""},model:{value:e.formData.priority,callback:function(t){e.$set(e.formData,"priority",t)},expression:"formData.priority"}})],1),e.filter("formKey")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.formKey&&!1===e.associateFormConfig.enable,expression:"!!showConfig.formKey && associateFormConfig.enable === false"}],attrs:{label:"表单标识",prop:"formKey"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入表单标识","allow-clear":""},model:{value:e.formData.formKey,callback:function(t){e.$set(e.formData,"formKey",t)},expression:"formData.formKey"}})],1),e.filter("formKey")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.formKey&&e.associateFormConfig.enable,expression:"!!showConfig.formKey && associateFormConfig.enable"}],attrs:{label:"表单挂载",prop:"formKey"}},[t("a-select",{style:{width:"100%"},attrs:{placeholder:"请选择表单","allow-clear":""},model:{value:e.formData.formKey,callback:function(t){e.$set(e.formData,"formKey",t)},expression:"formData.formKey"}},e._l(e.associateFormDataOptions,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.value,disabled:a.disabled}},[e._v(e._s(a.name))])})),1)],1),e.filter("formKey")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.formKey&&e.associateFormConfig.enable&&(e.associateFormConfig.isPreview||e.associateFormConfig.isCreate),expression:"!!showConfig.formKey && associateFormConfig.enable && (associateFormConfig.isPreview || associateFormConfig.isCreate)"}],attrs:{label:" ",colon:!1}},[t("a-space",[e.associateFormConfig.isPreview?t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.showAssociateForm(e.formData.formKey)}}},[e._v(" 查看表单 ")]):e._e(),e.associateFormConfig.isCreate?t("a-button",{attrs:{type:"primary"},on:{click:e.createAssociateForm}},[e._v(" 创建表单 ")]):e._e()],1)],1),e.filter("skipExpression")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.skipExpression,expression:"!!showConfig.skipExpression"}],attrs:{label:"跳过条件",prop:"skipExpression"}},[t("a-auto-complete",{attrs:{placeholder:"跳过条件表达式","data-source":e.skipExpressionDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.skipExpression,callback:function(t){e.$set(e.formData,"skipExpression",t)},expression:"formData.skipExpression"}})],1),e.filter("isForCompensation")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.isForCompensation,expression:"!!showConfig.isForCompensation"}],attrs:{label:"是否为补偿",prop:"isForCompensation"}},[t("a-switch",{model:{value:e.formData.isForCompensation,callback:function(t){e.$set(e.formData,"isForCompensation",t)},expression:"formData.isForCompensation"}})],1),e.filter("triggerable")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.triggerable,expression:"!!showConfig.triggerable"}],attrs:{label:"服务任务可触发",prop:"triggerable"}},[t("a-switch",{model:{value:e.formData.triggerable,callback:function(t){e.$set(e.formData,"triggerable",t)},expression:"formData.triggerable"}})],1),e.filter("autoStoreVariables")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.autoStoreVariables,expression:"!!showConfig.autoStoreVariables"}],attrs:{label:"自动存储变量",prop:"autoStoreVariables"}},[t("a-switch",{model:{value:e.formData.autoStoreVariables,callback:function(t){e.$set(e.formData,"autoStoreVariables",t)},expression:"formData.autoStoreVariables"}})],1),e.filter("exclude")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.exclude,expression:"!!showConfig.exclude"}],attrs:{label:"排除",prop:"exclude"}},[t("a-switch",{model:{value:e.formData.exclude,callback:function(t){e.$set(e.formData,"exclude",t)},expression:"formData.exclude"}})],1),e.filter("ruleVariablesInput")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.ruleVariablesInput,expression:"!!showConfig.ruleVariablesInput"}],attrs:{label:"输入变量",prop:"ruleVariablesInput"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入变量","allow-clear":""},model:{value:e.formData.ruleVariablesInput,callback:function(t){e.$set(e.formData,"ruleVariablesInput",t)},expression:"formData.ruleVariablesInput"}})],1),e.filter("")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.rules,expression:"!!showConfig.rules"}],attrs:{label:"规则",prop:"rules"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入规则","allow-clear":""},model:{value:e.formData.rules,callback:function(t){e.$set(e.formData,"rules",t)},expression:"formData.rules"}})],1),e.filter("resultVariable")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.resultVariable,expression:"!!showConfig.resultVariable"}],attrs:{label:"结果变量",prop:"resultVariable"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入结果变量","allow-clear":""},model:{value:e.formData.resultVariable,callback:function(t){e.$set(e.formData,"resultVariable",t)},expression:"formData.resultVariable"}})],1),e.filter("class")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.class,expression:"!!showConfig.class"}],attrs:{label:"类",prop:"class"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入类","allow-clear":""},model:{value:e.formData.class,callback:function(t){e.$set(e.formData,"class",t)},expression:"formData.class"}})],1),e.filter("dueDate")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.dueDate,expression:"!!showConfig.dueDate"}],attrs:{label:"过期时间",prop:"dueDate"}},[t("a-auto-complete",{attrs:{placeholder:"过期时间表达式","data-source":e.dueDateDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.dueDate,callback:function(t){e.$set(e.formData,"dueDate",t)},expression:"formData.dueDate"}})],1),e.filter("followUpDate")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.followUpDate,expression:"!!showConfig.followUpDate"}],attrs:{label:"观察时间",prop:"followUpDate"}},[t("a-auto-complete",{attrs:{placeholder:"观察时间表达式","data-source":e.followUpDateDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.followUpDate,callback:function(t){e.$set(e.formData,"followUpDate",t)},expression:"formData.followUpDate"}})],1)],1),t("a-modal",{attrs:{title:"执行监听器",width:"800px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleExecutionListener}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.executionListenerVisible,callback:function(t){e.executionListenerVisible=t},expression:"executionListenerVisible"}},[t("executionListener",{ref:"executionListener",attrs:{element:e.element,modeler:e.modeler}})],1),t("a-modal",{attrs:{title:"任务监听器",width:"600px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleTaskListener}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.taskListenerVisible,callback:function(t){e.taskListenerVisible=t},expression:"taskListenerVisible"}},[t("taskListener",{ref:"taskListener",attrs:{element:e.element,modeler:e.modeler}})],1),t("a-modal",{attrs:{title:"多实例",width:"800px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleMultiInstance}},[e._v("确定")]),t("a-button",{attrs:{type:"primary"},on:{click:e.handleClearMultiInstance}},[e._v("清空")])]},proxy:!0}]),model:{value:e.multiInstanceVisible,callback:function(t){e.multiInstanceVisible=t},expression:"multiInstanceVisible"}},[t("multiInstance",{ref:"multiInstance",attrs:{element:e.element,modeler:e.modeler}})],1)],1)}),v=[],y=(a("cd17"),a("ed3b")),w=(a("a15b"),{"bpmn:EndEvent":{},"bpmn:StartEvent":{initiator:!0,formKey:!0},"bpmn:SequenceFlow":{skipExpression:!0,conditionExpression:!0},"bpmn:UserTask":{userType:!0,dataType:!0,assignee:!0,candidateUsers:!0,candidateGroups:!0,async:!0,priority:!0,formKey:!0,skipExpression:!0,dueDate:!0,followUpDate:!0,taskListener:!0},"bpmn:ServiceTask":{async:!0,skipExpression:!0,isForCompensation:!0,triggerable:!0,class:!0},"bpmn:ScriptTask":{async:!0,isForCompensation:!0,resultVariable:!0,autoStoreVariables:!0},"bpmn:ManualTask":{async:!0,isForCompensation:!0},"bpmn:ReceiveTask":{async:!0,isForCompensation:!0},"bpmn:SendTask":{async:!0,isForCompensation:!0},"bpmn:BusinessRuleTask":{async:!0,isForCompensation:!0,ruleVariablesInput:!0,rules:!0,resultVariable:!0,exclude:!0}}),x={props:{filters:{type:Array,default:function(){return[]}},associateFormConfig:{type:Object,default:function(){return{enable:!1,isPreview:!0,isCreate:!0}}},associateFormDataOptions:{type:Array,default:function(){return[]}},modeler:{type:Object,required:!0},element:{type:Object,required:!0},categories:{type:Array,default:function(){return[]}},skipExpressionDataSource:{type:Array,default:function(){return[]}},conditionExpressionDataSource:{type:Array,default:function(){return[]}}},watch:{"formData.id":function(e){this.updateProperties({id:e})},"formData.name":function(e){this.updateProperties({name:e})},"formData.documentation":function(e){if(e){var t=this.modeler.get("moddle").create("bpmn:Documentation",{text:e});this.updateProperties({documentation:[t]})}else this.updateProperties({documentation:[]})}},methods:{updateProperties:function(e){var t=this.modeler.get("modeling");t.updateProperties(this.element,e)},getSignalElements:function(){var e=[];return this.rootElements=this.modeler.getDefinitions().rootElements,this.rootElements.length>0&&this.rootElements.forEach((function(t){"bpmn:Signal"===t.$type&&e.push(t)})),e},getSignalElementIds:function(){var e=[];return this.rootElements=this.modeler.getDefinitions().rootElements,this.rootElements.length>0&&this.rootElements.forEach((function(t){"bpmn:Signal"===t.$type&&e.push(t.id)})),e},getMessageElements:function(){var e=[];return this.rootElements=this.modeler.getDefinitions().rootElements,this.rootElements.length>0&&this.rootElements.forEach((function(t){"bpmn:Message"===t.$type&&e.push(t)})),e},getMessageElementIds:function(){var e=[];return this.rootElements=this.modeler.getDefinitions().rootElements,this.rootElements.length>0&&this.rootElements.forEach((function(t){"bpmn:Message"===t.$type&&e.push(t.id)})),e},filter:function(e){return-1!==this.filters.indexOf(e)},showAssociateForm:function(e){this.$emit("showForm",e)},createAssociateForm:function(){this.$emit("createForm")}},computed:{elementType:function(){var e=this.element.businessObject;return e.eventDefinitions?e.eventDefinitions[0].$type:e.$type},showConfig:function(){return w[this.elementType]||{}}}},D=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-bottom":"8px"},attrs:{type:"primary"},on:{click:e.handleEditableAdd}},[e._v("新增")]),t("a-table",{attrs:{rowKey:function(e,t){return t},dataSource:e.formData.executionListener,columns:e.columns},scopedSlots:e._u([{key:"event",fn:function(a,n){return[t("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":a},model:{value:n.event,callback:function(t){e.$set(n,"event",t)},expression:"record.event"}},[t("a-select-option",{attrs:{value:"start"}},[e._v(" Start ")]),t("a-select-option",{attrs:{value:"end"}},[e._v(" End ")]),t("a-select-option",{attrs:{value:"take"}},[e._v(" Take ")])],1)]}},{key:"type",fn:function(a,n){return[t("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":a},model:{value:n.type,callback:function(t){e.$set(n,"type",t)},expression:"record.type"}},[t("a-select-option",{attrs:{value:"class"}},[e._v(" 类 ")]),t("a-select-option",{attrs:{value:"expression"}},[e._v(" 表达式 ")]),t("a-select-option",{attrs:{value:"delegateExpression"}},[e._v(" 委托表达式 ")])],1)]}},{key:"className",fn:function(a,n){return[t("a-input",{attrs:{placeholder:"请输入类名"},model:{value:n.className,callback:function(t){e.$set(n,"className",t)},expression:"record.className"}})]}},{key:"params",fn:function(a,n,r){return[t("a-badge",{attrs:{count:a?a.length:0}},[t("a-button",{on:{click:function(t){return e.configParam(r)}}},[e._v("配置")])],1)]}},{key:"action",fn:function(a,n,r){return[t("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return e.onDelete(r)}}},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])}),t("a-modal",{attrs:{title:"监听器参数",width:"700px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleListenerParam}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.listenerParamVisible,callback:function(t){e.listenerParamVisible=t},expression:"listenerParamVisible"}},[t("listenerParam",{ref:"listenerParam",attrs:{list:e.formData.executionListener.length>0&&null!==e.nowIndex?e.formData.executionListener[e.nowIndex].params:[]}})],1)],1)},k=[],E=(a("d81d"),a("a434"),function(){var e=this,t=e._self._c;return t("div",[t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-bottom":"8px"},attrs:{type:"primary"},on:{click:e.handleParamEditableAdd}},[e._v("新增")]),t("a-table",{attrs:{rowKey:function(e,t){return t},dataSource:e.list,columns:e.columns},scopedSlots:e._u([{key:"type",fn:function(a,n){return[t("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":a},model:{value:n.type,callback:function(t){e.$set(n,"type",t)},expression:"record.type"}},[t("a-select-option",{attrs:{value:"stringValue"}},[e._v(" 字符串 ")]),t("a-select-option",{attrs:{value:"expression"}},[e._v(" 表达式 ")])],1)]}},{key:"name",fn:function(a,n){return[t("a-input",{attrs:{placeholder:"请输入名称"},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"record.name"}})]}},{key:"value",fn:function(a,n){return[t("a-input",{attrs:{placeholder:"请输入值"},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"record.value"}})]}},{key:"action",fn:function(a,n,r){return[t("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return e.onParamDelete(r)}}},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])})],1)}),S=[],C={props:{list:{type:Array,default:function(){return[]}}},data:function(){return{columns:[{title:"类型",dataIndex:"type",key:"type",scopedSlots:{customRender:"type"}},{title:"名称",dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:"值",dataIndex:"value",key:"value",scopedSlots:{customRender:"value"}},{title:"操作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}}]}},computed:{},methods:{onParamDelete:function(e){this.list.splice(e,1)},handleParamEditableAdd:function(){this.list.push({name:"",type:"stringValue",value:""})},getParams:function(){if(void 0===this.list||0===this.list.length)return[];var e=!0;return this.list.forEach((function(t){""!==t.name&&""!==t.value||(e=!1)})),e?this.list:void 0}}},A=C,T=(a("2aaf"),a("2877")),I=Object(T["a"])(A,E,S,!1,null,"7a5dbd82",null),_=I.exports,L={components:{listenerParam:_},mixins:[x],data:function(){return{listenerParamVisible:!1,nowIndex:null,formData:{executionListener:[]},columns:[{title:"事件",dataIndex:"event",key:"event",scopedSlots:{customRender:"event"}},{title:"类型",dataIndex:"type",key:"type",scopedSlots:{customRender:"type"}},{title:"类名",dataIndex:"className",key:"className",scopedSlots:{customRender:"className"}},{title:"参数",dataIndex:"params",key:"params",scopedSlots:{customRender:"params"}},{title:"操作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}}]}},computed:{},mounted:function(){var e,t;this.formData.executionListener=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t?void 0:t.values.filter((function(e){return"flowable:ExecutionListener"===e.$type})).map((function(e){var t,a,n;return"class"in e&&(n="class"),"expression"in e&&(n="expression"),"delegateExpression"in e&&(n="delegateExpression"),{event:e.event,type:n,className:e[n],params:null!==(t=null===(a=e.fields)||void 0===a?void 0:a.map((function(e){var t;return"stringValue"in e&&(t="stringValue"),"expression"in e&&(t="expression"),{name:e.name,type:t,value:e[t]}})))&&void 0!==t?t:[]}})))&&void 0!==e?e:[]},methods:{onDelete:function(e){this.formData.executionListener.splice(e,1)},handleEditableAdd:function(){this.formData.executionListener.push({event:"start",className:"",type:"class",params:[]})},handleListenerParam:function(){if(null!==this.nowIndex){var e=this.$refs.listenerParam.getParams();void 0===e?l["a"].error("请填写完整"):(this.formData.executionListener[this.nowIndex].params=e,this.listenerParamVisible=!1)}},configParam:function(e){this.nowIndex=e;var t=this.formData.executionListener[e];t.params||(t.params=[]),this.listenerParamVisible=!0},updateElement:function(){var e,t=this;if(null!==(e=this.formData.executionListener)&&void 0!==e&&e.length){var a,n,r=this.element.businessObject.get("extensionElements");r||(r=this.modeler.get("moddle").create("bpmn:ExtensionElements")),r.values=null!==(a=null===(n=r.values)||void 0===n?void 0:n.filter((function(e){return"flowable:ExecutionListener"!==e.$type})))&&void 0!==a?a:[],this.formData.executionListener.forEach((function(e){var a=t.modeler.get("moddle").create("flowable:ExecutionListener");a["event"]=e.event,a[e.type]=e.className,e.params&&e.params.length&&e.params.forEach((function(e){var n=t.modeler.get("moddle").create("flowable:Field");n["name"]=e.name,n[e.type]=e.value,a.get("fields").push(n)})),r.get("values").push(a)})),this.updateProperties({extensionElements:r})}else{var i,o,s=this.element.businessObject["extensionElements"];if(s)s.values=null!==(i=null===(o=s.values)||void 0===o?void 0:o.filter((function(e){return"flowable:ExecutionListener"!==e.$type})))&&void 0!==i?i:[]}},closeDialog:function(){var e=!0;return this.formData.executionListener.forEach((function(t){(!t.className||""===t.className||t.className.length<=0)&&(e=!1)})),e&&this.updateElement(),e}}},O=L,P=(a("093d"),Object(T["a"])(O,D,k,!1,null,"7775e741",null)),N=P.exports,V={components:{executionListener:N},data:function(){return{executionListenerVisible:!1,executionListenerLength:0,dialogName:null}},methods:{computedExecutionListenerLength:function(){var e,t;this.executionListenerLength=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(t=t.values)||void 0===t?void 0:t.length)&&void 0!==e?e:0},getExecutionListenerLength:function(){var e,t;return null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(t=t.values)||void 0===t?void 0:t.length)&&void 0!==e?e:0},handleExecutionListener:function(){var e=this.$refs.executionListener.closeDialog();e?(this.computedExecutionListenerLength(),this.executionListenerVisible=!1):l["a"].error("请补充信息")},handleShowExecutionListener:function(){this.executionListenerVisible=!0}}},M=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-bottom":"8px"},attrs:{type:"primary"},on:{click:e.handleEditableAdd}},[e._v("新增")]),t("a-table",{attrs:{rowKey:function(e,t){return t},dataSource:e.formData.taskListener,columns:e.columns},scopedSlots:e._u([{key:"event",fn:function(a,n){return[t("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":a},model:{value:n.event,callback:function(t){e.$set(n,"event",t)},expression:"record.event"}},[t("a-select-option",{attrs:{value:"create"}},[e._v(" Create ")]),t("a-select-option",{attrs:{value:"assignment"}},[e._v(" Assignment ")]),t("a-select-option",{attrs:{value:"complete"}},[e._v(" Complete ")]),t("a-select-option",{attrs:{value:"delete"}},[e._v(" Delete ")])],1)]}},{key:"type",fn:function(a,n){return[t("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":a},model:{value:n.type,callback:function(t){e.$set(n,"type",t)},expression:"record.type"}},[t("a-select-option",{attrs:{value:"class"}},[e._v(" 类 ")]),t("a-select-option",{attrs:{value:"expression"}},[e._v(" 表达式 ")]),t("a-select-option",{attrs:{value:"delegateExpression"}},[e._v(" 委托表达式 ")])],1)]}},{key:"className",fn:function(a,n){return[t("a-input",{attrs:{placeholder:"请输入类名"},model:{value:n.className,callback:function(t){e.$set(n,"className",t)},expression:"record.className"}})]}},{key:"params",fn:function(a,n,r){return[t("a-badge",{attrs:{count:a?a.length:0}},[t("a-button",{on:{click:function(t){return e.configParam(r)}}},[e._v("配置")])],1)]}},{key:"action",fn:function(a,n,r){return[t("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return e.onDelete(r)}}},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])}),t("a-modal",{attrs:{title:"监听器参数",width:"700px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleListenerParam}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.listenerParamVisible,callback:function(t){e.listenerParamVisible=t},expression:"listenerParamVisible"}},[t("listenerParam",{ref:"listenerParam",attrs:{list:e.formData.taskListener.length>0&&null!==e.nowIndex?e.formData.taskListener[e.nowIndex].params:[]}})],1)],1)},$=[],F={components:{listenerParam:_},mixins:[x],data:function(){return{dialogVisible:!0,listenerParamVisible:!1,nowIndex:null,formData:{taskListener:[]},columns:[{title:"事件",dataIndex:"event",key:"event",scopedSlots:{customRender:"event"}},{title:"类型",dataIndex:"type",key:"type",scopedSlots:{customRender:"type"}},{title:"类名",dataIndex:"className",key:"className",scopedSlots:{customRender:"className"}},{title:"参数",dataIndex:"params",key:"params",scopedSlots:{customRender:"params"}},{title:"操作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}}]}},computed:{},mounted:function(){var e,t;this.formData.taskListener=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t?void 0:t.values.filter((function(e){return"flowable:TaskListener"===e.$type})).map((function(e){var t,a,n;return"class"in e&&(n="class"),"expression"in e&&(n="expression"),"delegateExpression"in e&&(n="delegateExpression"),{event:e.event,type:n,className:e[n],params:null!==(t=null===(a=e.fields)||void 0===a?void 0:a.map((function(e){var t;return"stringValue"in e&&(t="stringValue"),"expression"in e&&(t="expression"),{name:e.name,type:t,value:e[t]}})))&&void 0!==t?t:[]}})))&&void 0!==e?e:[]},methods:{onDelete:function(e){this.formData.taskListener.splice(e,1)},handleEditableAdd:function(){this.formData.taskListener.push({event:"create",className:"",type:"class",params:[]})},configParam:function(e){this.nowIndex=e;var t=this.formData.taskListener[e];t.params||(t.params=[]),this.listenerParamVisible=!0},handleListenerParam:function(){if(null!==this.nowIndex){var e=this.$refs.listenerParam.getParams();void 0===e?l["a"].error("请填写完整"):(this.formData.taskListener[this.nowIndex].params=e,this.listenerParamVisible=!1)}},finishConfigParam:function(e){this.listenerParamVisible=!1;var t=this.formData.taskListener[this.nowIndex];t.params=e,this.$set(this.formData.taskListener[this.nowIndex],this.nowIndex,t),this.nowIndex=null},updateElement:function(){var e,t=this;if(null!==(e=this.formData.taskListener)&&void 0!==e&&e.length){var a,n,r=this.element.businessObject.get("extensionElements");r||(r=this.modeler.get("moddle").create("bpmn:ExtensionElements")),r.values=null!==(a=null===(n=r.values)||void 0===n?void 0:n.filter((function(e){return"flowable:TaskListener"!==e.$type})))&&void 0!==a?a:[],this.formData.taskListener.forEach((function(e){var a=t.modeler.get("moddle").create("flowable:TaskListener");a["event"]=e.event,a[e.type]=e.className,e.params&&e.params.length&&e.params.forEach((function(e){var n=t.modeler.get("moddle").create("flowable:Field");n["name"]=e.name,n[e.type]=e.value,a.get("fields").push(n)})),r.get("values").push(a)})),this.updateProperties({extensionElements:r})}else{var i,o,s=this.element.businessObject["extensionElements"];if(s)s.values=null!==(i=null===(o=s.values)||void 0===o?void 0:o.filter((function(e){return"flowable:TaskListener"!==e.$type})))&&void 0!==i?i:[]}},closeDialog:function(){var e=!0;return this.formData.taskListener.forEach((function(t){(!t.className||""===t.className||t.className.length<=0)&&(e=!1)})),e&&this.updateElement(),e}}},j=F,R=(a("3777"),Object(T["a"])(j,M,$,!1,null,"3b3e67b5",null)),U=R.exports,B=function(){var e=this,t=e._self._c;return t("div",[t("a-form-model",{ref:"form",attrs:{model:e.formData,rules:e.rules,"label-col":{span:4,offset:0},"wrapper-col":{span:14,offset:0},layout:"horizontal"}},[t("a-row",{staticStyle:{"margin-bottom":"20px"}},[t("a-alert",{attrs:{type:"info","show-icon":""}},[t("span",{attrs:{slot:"description"},slot:"description"},[e._v(" 按照BPMN2.0规范的要求，用于为每个实例创建执行的父执行，会提供下列变量:"),t("br"),e._v(" nrOfInstances：实例总数。"),t("br"),e._v(" nrOfActiveInstances：当前活动的（即未完成的），实例数量。对于顺序多实例，这个值总为1。"),t("br"),e._v(" nrOfCompletedInstances：已完成的实例数量。"),t("br"),e._v(" loopCounter：给定实例在for-each循环中的index。"),t("br")])])],1),t("a-form-model-item",{attrs:{prop:"collection"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 集合 "),t("a-tooltip",[t("template",{slot:"title"},[e._v(" 属性会作为表达式进行解析。如果表达式解析为字符串而不是一个集合，"),t("br"),e._v(" 不论是因为本身配置的就是静态字符串值，还是表达式计算结果为字符串，"),t("br"),e._v(" 这个字符串都会被当做变量名，并从流程变量中用于获取实际的集合。 ")]),t("i",{staticClass:"iconfont icon-info",staticStyle:{color:"#0a97ce"}})],2)],1),t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入集合","allow-clear":""},model:{value:e.formData.collection,callback:function(t){e.$set(e.formData,"collection",t)},expression:"formData.collection"}})],1),t("a-form-model-item",{attrs:{prop:"elementVariable"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 元素变量 "),t("a-tooltip",[t("template",{slot:"title"},[e._v(" 每创建一个用户任务前，先以该元素变量为label，集合中的一项为value，"),t("br"),e._v(" 创建（局部）流程变量，该局部流程变量被用于指派用户任务。"),t("br"),e._v(" 一般来说，该字符串应与指定人员变量相同。 ")]),t("i",{staticClass:"iconfont icon-info",staticStyle:{color:"#0a97ce"}})],2)],1),t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入元素变量","allow-clear":""},model:{value:e.formData.elementVariable,callback:function(t){e.$set(e.formData,"elementVariable",t)},expression:"formData.elementVariable"}})],1),t("a-form-model-item",{attrs:{label:"执行方式",prop:"isSequential"}},[t("a-radio-group",{model:{value:e.formData.isSequential,callback:function(t){e.$set(e.formData,"isSequential",t)},expression:"formData.isSequential"}},e._l(e.isSequentialOptions,(function(a,n){return t("a-radio",{key:n,attrs:{value:a.value,disabled:a.disabled}},[e._v(e._s(a.label))])})),1)],1),t("a-form-model-item",{attrs:{prop:"completionCondition"}},[t("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 完成条件 "),t("a-tooltip",[t("template",{slot:"title"},[e._v(" 多实例活动在所有实例都完成时结束，然而也可以指定一个表达式，在每个实例"),t("br"),e._v(" 结束时进行计算。当表达式计算为true时，将销毁所有剩余的实例，并结束多实例"),t("br"),e._v(" 活动，继续执行流程。例如 ${nrOfCompletedInstances/nrOfInstances >= 0.6 }，"),t("br"),e._v(" 表示当任务完成60%时，该节点就算完成' ")]),t("i",{staticClass:"iconfont icon-info",staticStyle:{color:"#0a97ce"}})],2)],1),t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入单行文本","allow-clear":""},model:{value:e.formData.completionCondition,callback:function(t){e.$set(e.formData,"completionCondition",t)},expression:"formData.completionCondition"}})],1)],1)],1)},G=[],q=(a("b64b"),a("5530"));function z(e){var t=Object(q["a"])(Object(q["a"])({},e.businessObject),e.businessObject.$attrs);return K(t)}function K(e){for(var t in e)if(0===t.indexOf("flowable:")){var a=t.replace("flowable:","");e[a]=e[t],delete e[t]}return e=J(e),e}function J(e){if("documentation"in e){var t="";e.documentation.forEach((function(e){t+=e.text})),e.documentation=t}return e}function X(e){return"conditionExpression"in e&&(e.conditionExpression=e.conditionExpression.body),e}function H(e){for(var t in e){var a;if("candidateUsers"===t)e.userType="candidateUsers",e[t]=(null===(a=e[t])||void 0===a?void 0:a.split(","))||[];else if("candidateGroups"===t){var n;e.userType="candidateGroups",e[t]=(null===(n=e[t])||void 0===n?void 0:n.split(","))||[]}}return e}var W={mixins:[x],data:function(){return{formData:{collection:void 0,elementVariable:void 0,isSequential:!0,completionCondition:void 0},rules:{collection:[{required:!1,message:"请输入集合",trigger:"blur"}],elementVariable:[{required:!1,message:"请输入元素变量",trigger:"blur"}],isSequential:[{required:!1,message:"执行方式不能为空",trigger:"change"}],completionCondition:[{required:!1,message:"请输入单行文本",trigger:"blur"}]},isSequentialOptions:[{label:"串行",value:!0},{label:"并行",value:!1}]}},computed:{},mounted:function(){var e,t,a=JSON.parse(JSON.stringify(null!==(e=this.element.businessObject.loopCharacteristics)&&void 0!==e?e:{}));a.completionCondition=null===(t=a.completionCondition)||void 0===t?void 0:t.body,this.formData=K(a)},methods:{updateElement:function(){if(null!==this.formData.isSequential&&void 0!==this.formData.isSequential){var e=this.element.businessObject.get("loopCharacteristics");if(e||(e=this.modeler.get("moddle").create("bpmn:MultiInstanceLoopCharacteristics")),e["isSequential"]=this.formData.isSequential,e["collection"]=this.formData.collection,e["elementVariable"]=this.formData.elementVariable,this.formData.completionCondition){var t=this.modeler.get("moddle").create("bpmn:Expression",{body:this.formData.completionCondition});e["completionCondition"]=t}this.updateProperties({loopCharacteristics:e})}else delete this.element.businessObject.loopCharacteristics},save:function(){var e=this,t=!1;return this.$refs["form"].validate((function(a){a&&(e.updateElement(),t=!0)})),t},clear:function(){this.$refs["form"].resetFields()}}},Y=W,Z=(a("c184"),Object(T["a"])(Y,B,G,!1,null,"72bcfa23",null)),Q=Z.exports,ee={components:{taskListener:U,multiInstance:Q},mixins:[x,V],props:{users:{type:Array,required:!0},groups:{type:Array,required:!0},assigneeDataSource:{type:Array,default:function(){return[]}},dueDateDataSource:{type:Array,default:function(){return[]}},followUpDateDataSource:{type:Array,default:function(){return[]}},candidateUserDataSource:{type:Array,default:function(){return[]}},candidateGroupDataSource:{type:Array,default:function(){return[]}}},data:function(){return{taskListenerVisible:!1,multiInstanceVisible:!1,userTypeOptions:[{label:"指定人员",value:"assignee"},{label:"候选人员",value:"candidateUsers"},{label:"候选组",value:"candidateGroups"},{label:"流程发起人",value:"initiator"}],dialogName:"",taskListenerLength:0,hasMultiInstance:!1,formData:{id:void 0,name:void 0,documentation:void 0,executionListener:void 0,taskListener:void 0,userType:void 0,dataType:"fixed",assignee:void 0,candidateUsers:[],candidateGroups:[],multiInstance:void 0,async:!1,priority:void 0,formKey:void 0,skipExpression:void 0,isForCompensation:!1,triggerable:!1,autoStoreVariables:!1,exclude:!1,asyncBefore:!1,asyncAfter:!1,exclusive:!1,scriptFormat:void 0,scriptType:void 0,resource:void 0,script:void 0,ruleVariablesInput:void 0,rules:void 0,resultVariable:void 0,dueDate:"${dueDate}",followUpDate:"${followUpDate}",class:void 0},rules:{id:[{required:!0,message:"请输入节点ID",trigger:"blur"}],name:[{required:!0,message:"请输入节点名称",trigger:"blur"}],documentation:[],userType:[{required:!0,message:"请选择人员类型",trigger:"change"}],mode:[{required:!0,message:"指定方式不能为空",trigger:"change"}],assignee:[{required:!0,message:"请委派指定人员",trigger:"change"}],candidateUsers:[{required:!0,type:"array",message:"请至少选择一个候选人员",trigger:"change"}],candidateGroups:[{required:!0,message:"请选择候选组",trigger:"change"}]},scriptTypeOptions:[{label:"外部资源",value:"outside"},{label:"内联脚本",value:"inside"}]}},computed:{},watch:{"formData.userType":function(e,t){var a=this;if(t){var n=["assignee","candidateUsers","candidateGroups"];n.forEach((function(e){delete a.element.businessObject.$attrs["flowable:".concat(e)],delete a.formData[e]}))}this.updateProperties({"flowable:userType":e})},"formData.dataType":function(e){"initiator"!==this.formData.userType?this.updateProperties({"flowable:dataType":e}):delete this.element.businessObject.$attrs["flowable:dataType"]},"formData.assignee":function(e){var t=["assignee","initiator"];-1!==t.indexOf(this.formData.userType)?"initiator"===this.formData.userType?(this.formData.assignee="${INITIATOR}",this.updateProperties({"flowable:assignee":"${INITIATOR}"})):this.updateProperties({"flowable:assignee":e}):delete this.element.businessObject.$attrs["flowable:assignee"]},"formData.candidateUsers":function(e){"candidateUsers"===this.formData.userType?this.updateProperties({"flowable:candidateUsers":null===e||void 0===e?void 0:e.join(",")}):delete this.element.businessObject.$attrs["flowable:candidateUsers"]},"formData.candidateGroups":function(e){"candidateGroups"===this.formData.userType?this.updateProperties({"flowable:candidateGroups":null===e||void 0===e?void 0:e.join(",")}):delete this.element.businessObject.$attrs["flowable:candidateGroups"]},"formData.async":function(e){""===e&&(e=null),this.updateProperties({"flowable:async":e})},"formData.dueDate":function(e){""===e&&(e=null),this.updateProperties({"flowable:dueDate":e})},"formData.followUpDate":function(e){""===e&&(e=null),this.updateProperties({"flowable:followUpDate":e})},"formData.formKey":function(e){""===e&&(e=null),this.updateProperties({"flowable:formKey":e})},"formData.priority":function(e){""===e&&(e=null),this.updateProperties({"flowable:priority":e})},"formData.skipExpression":function(e){""===e&&(e=null),this.updateProperties({"flowable:skipExpression":e})},"formData.isForCompensation":function(e){""===e&&(e=null),this.updateProperties({isForCompensation:e})},"formData.triggerable":function(e){""===e&&(e=null),this.updateProperties({"flowable:triggerable":e})},"formData.class":function(e){""===e&&(e=null),this.updateProperties({"flowable:class":e})},"formData.autoStoreVariables":function(e){""===e&&(e=null),this.updateProperties({"flowable:autoStoreVariables":e})},"formData.exclude":function(e){""===e&&(e=null),this.updateProperties({"flowable:exclude":e})},"formData.ruleVariablesInput":function(e){""===e&&(e=null),this.updateProperties({"flowable:ruleVariablesInput":e})},"formData.rules":function(e){""===e&&(e=null),this.updateProperties({"flowable:rules":e})},"formData.resultVariable":function(e){""===e&&(e=null),this.updateProperties({"flowable:resultVariable":e})}},created:function(){var e=z(this.element);e=H(e),this.formData=e,this.computedExecutionListenerLength(),this.computedHasMultiInstance()},methods:{handleClearAssignee:function(){var e,t,a=this;("assignee"!==this.formData.userType||void 0!==this.formData.assignee&&""!==this.formData.assignee.trim())&&("candidateUsers"!==this.formData.userType||void 0!==this.formData.candidateUsers&&0!==(null===(e=this.formData.candidateUsers)||void 0===e?void 0:e.length))&&("candidateGroups"!==this.formData.userType||void 0!==this.formData.candidateGroups&&0!==(null===(t=this.formData.candidateGroups)||void 0===t?void 0:t.length))&&y["a"].confirm({title:"是否需要清除原来的数据?",content:"如果需要将会清除已经分配的信息",okText:"需要",cancelText:"不需要",onOk:function(){var e=["assignee","candidateUsers","candidateGroups"];e.forEach((function(e){delete a.element.businessObject.$attrs["flowable:".concat(e)],a.formData[e]=void 0}))},onCancel:function(){}})},handleClearMultiInstance:function(){this.$refs.multiInstance.clear()},handleMultiInstance:function(){var e=this.$refs.multiInstance.save();e&&(this.multiInstanceVisible=!1)},handleTaskListener:function(){var e=this.$refs.taskListener.closeDialog();e?this.taskListenerVisible=!1:l["a"].error("请补充信息")},computedTaskListenerLength:function(){var e,t;return null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(t=t.values)||void 0===t?void 0:t.filter((function(e){return"flowable:TaskListener"===e.$type})).length)&&void 0!==e?e:0},computedHasMultiInstance:function(){this.element.businessObject.loopCharacteristics?this.hasMultiInstance=!0:this.hasMultiInstance=!1},handleUserTypeChange:function(){"initiator"===this.formData.userType&&(this.formData.assignee="${INITIATOR}",this.updateProperties({"flowable:assignee":"${INITIATOR}"}))}}},te=ee,ae=Object(T["a"])(te,b,v,!1,null,null,null),ne=ae.exports,re=function(){var e=this,t=e._self._c;return t("div",[t("a-form-model",{ref:"form",attrs:{model:e.formData,rules:e.rules,"label-col":{span:6,offset:0},"wrapper-col":{span:16,offset:1},layout:"horizontal"}},[t("a-form-model-item",{attrs:{label:"节点ID",prop:"id"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入流程标识","allow-clear":""},model:{value:e.formData.id,callback:function(t){e.$set(e.formData,"id",t)},expression:"formData.id"}})],1),t("a-form-model-item",{attrs:{label:"节点名称",prop:"name"}},[t("a-input",{attrs:{placeholder:"请输入流程名称","allow-clear":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),t("a-form-model-item",{attrs:{label:"节点描述",prop:"documentation"}},[t("a-textarea",{style:{width:"100%"},attrs:{placeholder:"请输入流程描述","auto-size":{minRows:4,maxRows:4},"allow-clear":""},model:{value:e.formData.documentation,callback:function(t){e.$set(e.formData,"documentation",t)},expression:"formData.documentation"}})],1),e.filter("executionListener")?e._e():t("a-form-model-item",{attrs:{label:"执行监听器"}},[t("a-badge",{attrs:{count:e.getExecutionListenerLength}},[t("a-button",{on:{click:e.handleShowExecutionListener}},[e._v("编辑")])],1)],1),e.filter("initiator")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.initiator,expression:"!!showConfig.initiator"}],attrs:{label:"发起人",prop:"formKey"}},[t("a-auto-complete",{attrs:{placeholder:"发起人","data-source":e.initiatorDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.initiator,callback:function(t){e.$set(e.formData,"initiator",t)},expression:"formData.initiator"}})],1),e.filter("formKey")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.formKey&&!1===e.associateFormConfig.enable,expression:"!!showConfig.formKey && associateFormConfig.enable === false"}],attrs:{label:"表单标识",prop:"formKey"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入表单标识","allow-clear":""},model:{value:e.formData.formKey,callback:function(t){e.$set(e.formData,"formKey",t)},expression:"formData.formKey"}})],1),e.filter("formKey")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.formKey&&e.associateFormConfig.enable,expression:"!!showConfig.formKey && associateFormConfig.enable"}],attrs:{label:"表单挂载",prop:"formKey"}},[t("a-select",{style:{width:"100%"},attrs:{placeholder:"请选择人员类型","allow-clear":""},model:{value:e.formData.formKey,callback:function(t){e.$set(e.formData,"formKey",t)},expression:"formData.formKey"}},e._l(e.associateFormDataOptions,(function(a,n){return t("a-select-option",{key:n,attrs:{value:a.value,disabled:a.disabled}},[e._v(e._s(a.label))])})),1)],1),e.filter("formKey")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.formKey&&e.associateFormConfig.enable&&(e.associateFormConfig.isPreview||e.associateFormConfig.isCreate),expression:"!!showConfig.formKey && associateFormConfig.enable && (associateFormConfig.isPreview || associateFormConfig.isCreate)"}],attrs:{label:" ",colon:!1}},[t("a-space",[e.associateFormConfig.isPreview?t("a-button",{attrs:{type:"primary"},on:{click:function(t){return e.showAssociateForm(e.formData.formKey)}}},[e._v(" 查看表单 ")]):e._e(),e.associateFormConfig.isCreate?t("a-button",{attrs:{type:"primary"},on:{click:e.createAssociateForm}},[e._v(" 创建表单 ")]):e._e()],1)],1)],1),t("a-modal",{attrs:{title:"执行监听器",width:"800px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleExecutionListener}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.executionListenerVisible,callback:function(t){e.executionListenerVisible=t},expression:"executionListenerVisible"}},[t("executionListener",{ref:"executionListener",attrs:{element:e.element,modeler:e.modeler}})],1)],1)},ie=[],oe={mixins:[x,V],props:{initiatorDataSource:{type:Array,default:function(){return[]}}},data:function(){return{formData:{category:void 0,id:void 0,name:void 0,documentation:void 0,initiator:"initiator",formKey:void 0},rules:{category:[{required:!0,message:"请选择流程分类",trigger:"change"}],id:[{required:!0,message:"请输入流程标识",trigger:"blur"}],name:[{required:!0,message:"请输入流程名称",trigger:"blur"}],documentation:[]}}},computed:{},watch:{"formData.initiator":function(e){""===e&&(e=null),this.updateProperties({"flowable:initiator":e})},"formData.formKey":function(e){""===e&&(e=null),this.updateProperties({"flowable:formKey":e})}},created:function(){this.formData=z(this.element)}},se=oe,le=Object(T["a"])(se,re,ie,!1,null,null,null),ce=le.exports,ue=function(){var e=this,t=e._self._c;return t("div",[t("a-form-model",{ref:"form",attrs:{model:e.formData,rules:e.rules,"label-col":{span:6,offset:0},"wrapper-col":{span:16,offset:1},layout:"horizontal"}},[e.filter("category")?e._e():t("a-form-model-item",{attrs:{label:"流程分类",prop:"processCategory"}},[t("a-tree-select",{staticStyle:{width:"100%"},attrs:{"dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":e.categories,placeholder:"请选择流程分类",replaceFields:e.categoriesFields,"tree-default-expand-all":""},model:{value:e.formData.processCategory,callback:function(t){e.$set(e.formData,"processCategory",t)},expression:"formData.processCategory"}})],1),t("a-form-model-item",{attrs:{label:"流程标识",prop:"id"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入流程标识","allow-clear":""},model:{value:e.formData.id,callback:function(t){e.$set(e.formData,"id",t)},expression:"formData.id"}})],1),t("a-form-model-item",{attrs:{label:"流程名称",prop:"name"}},[t("a-input",{attrs:{placeholder:"请输入流程名称","allow-clear":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e.filter("documentation")?e._e():t("a-form-model-item",{attrs:{label:"流程描述",prop:"documentation"}},[t("a-textarea",{style:{width:"100%"},attrs:{placeholder:"请输入流程描述","auto-size":{minRows:4,maxRows:4},"allow-clear":""},model:{value:e.formData.documentation,callback:function(t){e.$set(e.formData,"documentation",t)},expression:"formData.documentation"}})],1),e.filter("executionListener")?e._e():t("a-form-model-item",{attrs:{label:"执行监听器"}},[t("a-badge",{attrs:{count:e.getExecutionListenerLength}},[t("a-button",{on:{click:e.handleShowExecutionListener}},[e._v("编辑")])],1)],1),e.filter("signal")?e._e():t("a-form-model-item",{attrs:{label:"信号定义"}},[t("a-badge",{attrs:{count:e.signals.length}},[t("a-button",{on:{click:e.showSignal}},[e._v("编辑")])],1)],1),e.filter("message")?e._e():t("a-form-model-item",{attrs:{label:"消息定义"}},[t("a-badge",{attrs:{count:e.messages.length}},[t("a-button",{on:{click:e.showMessage}},[e._v("编辑")])],1)],1)],1),t("a-modal",{attrs:{title:"执行监听器",width:"800px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleExecutionListener}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.executionListenerVisible,callback:function(t){e.executionListenerVisible=t},expression:"executionListenerVisible"}},[t("executionListener",{ref:"executionListener",attrs:{element:e.element,modeler:e.modeler}})],1),t("a-modal",{attrs:{title:"信号定义",width:"700px"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.finishSignal}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.signalVisible,callback:function(t){e.signalVisible=t},expression:"signalVisible"}},[t("signal",{ref:"signal",attrs:{element:e.element,modeler:e.modeler,signals:e.signals}})],1),t("a-modal",{attrs:{title:"消息",width:"700px"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.finishMessage}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.messageVisible,callback:function(t){e.messageVisible=t},expression:"messageVisible"}},[t("message",{ref:"message",attrs:{element:e.element,modeler:e.modeler,messages:e.messages}})],1)],1)},me=[],de=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-bottom":"8px"},attrs:{type:"primary"},on:{click:e.handleEditableAdd}},[e._v("新增")]),t("a-table",{attrs:{rowKey:function(e,t){return t},dataSource:e.formData.signal,columns:e.columns},scopedSlots:e._u([{key:"scope",fn:function(a,n){return[t("a-select",{staticStyle:{width:"120px"},attrs:{"default-value":a},model:{value:n.scope,callback:function(t){e.$set(n,"scope",t)},expression:"record.scope"}},[t("a-select-option",{attrs:{value:"global"}},[e._v(" 全局 ")]),t("a-select-option",{attrs:{value:"processInstance"}},[e._v(" 流程实例 ")])],1)]}},{key:"id",fn:function(a,n){return[t("a-input",{attrs:{placeholder:n.placeholder?n.placeholder:"请输入id"},on:{blur:function(t){return e.handleId(n)}},model:{value:n.id,callback:function(t){e.$set(n,"id",t)},expression:"record.id"}})]}},{key:"name",fn:function(a,n){return[t("a-input",{attrs:{placeholder:"请输入名称"},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"record.name"}})]}},{key:"action",fn:function(a,n,r){return[t("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return e.onDelete(r,n.id)}}},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])})],1)},pe=[],fe={mixins:[x],props:{signals:{type:Array,default:function(){return[]}}},data:function(){return{rootElements:void 0,signalIds:[],formData:{signal:this.signals},columns:[{title:"作用域",dataIndex:"scope",key:"scope",scopedSlots:{customRender:"scope"}},{title:"id",dataIndex:"id",key:"id",scopedSlots:{customRender:"id"}},{title:"名称",dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:"操作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}}]}},computed:{},mounted:function(){this.getSignalElements()},methods:{handleId:function(e){var t=[];this.formData.signal.forEach((function(a){-1!==t.indexOf(e.id)?(e.id=void 0,e.placeholder="id不能相同"):t.push(a.id)}))},onDelete:function(e,t){this.rootElements=this.modeler.getDefinitions().rootElements;for(var a=0;a<this.rootElements.length;a++){var n=this.rootElements[a];"bpmn:Signal"===n.$type&&n.id===t&&(this.formData.signal.splice(e,1),this.rootElements.splice(a,1))}},handleEditableAdd:function(){this.formData.signal.push({scope:"global",id:"",name:""})},updateElement:function(){var e=this,t=this.getSignalElementIds();this.formData.signal.forEach((function(a){var n=[];if(-1===n.indexOf(a.id)&&-1===t.indexOf(a.id)){var r=e.modeler.get("moddle").create("bpmn:Signal");r["id"]=a.id,r["name"]=a.name,r.$attrs["flowable:scope"]=a.scope,e.rootElements.push(r)}n.push(a.id)}))},saveSignal:function(){if(void 0===this.formData.signal||0===this.formData.signal.length)return!0;var e=!0;return this.formData.signal.forEach((function(t){""!==t.name&&""!==t.id||(e=!1)})),e&&this.updateElement(),e}}},he=fe,ge=(a("3752"),Object(T["a"])(he,de,pe,!1,null,"79bd7756",null)),be=ge.exports,ve=function(){var e=this,t=e._self._c;return t("div",[t("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-bottom":"8px"},attrs:{type:"primary"},on:{click:e.handleEditableAdd}},[e._v("新增")]),t("a-table",{attrs:{rowKey:function(e,t){return t},dataSource:e.formData.messages,columns:e.columns},scopedSlots:e._u([{key:"id",fn:function(a,n){return[t("a-input",{attrs:{placeholder:n.placeholder?n.placeholder:"请输入id"},on:{blur:function(t){return e.handleId(n)}},model:{value:n.id,callback:function(t){e.$set(n,"id",t)},expression:"record.id"}})]}},{key:"name",fn:function(a,n){return[t("a-input",{attrs:{placeholder:"请输入名称"},model:{value:n.name,callback:function(t){e.$set(n,"name",t)},expression:"record.name"}})]}},{key:"action",fn:function(a,n,r){return[t("a-popconfirm",{attrs:{title:"是否删除?"},on:{confirm:function(){return e.onDelete(r,n.id)}}},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])])]}}])})],1)},ye=[],we={mixins:[x],props:{messages:{type:Array,default:function(){return[]}}},data:function(){return{rootElements:void 0,signalIds:[],formData:{messages:this.messages},columns:[{title:"id",dataIndex:"id",key:"id",scopedSlots:{customRender:"id"}},{title:"名称",dataIndex:"name",key:"name",scopedSlots:{customRender:"name"}},{title:"操作",dataIndex:"action",key:"action",scopedSlots:{customRender:"action"}}]}},computed:{},mounted:function(){this.getMessageElements()},methods:{handleId:function(e){var t=[];this.formData.messages.forEach((function(a){-1!==t.indexOf(e.id)?(e.id=void 0,e.placeholder="id不能相同"):t.push(a.id)}))},onDelete:function(e,t){this.rootElements=this.modeler.getDefinitions().rootElements;for(var a=0;a<this.rootElements.length;a++){var n=this.rootElements[a];"bpmn:Message"===n.$type&&n.id===t&&(this.formData.messages.splice(e,1),this.rootElements.splice(a,1))}},handleEditableAdd:function(){this.formData.messages.push({id:"",name:""})},updateElement:function(){var e=this,t=this.getMessageElementIds();this.formData.messages.forEach((function(a){var n=[];if(-1===n.indexOf(a.id)&&-1===t.indexOf(a.id)){var r=e.modeler.get("moddle").create("bpmn:Message",a);e.rootElements.push(r)}n.push(a.id)}))},saveMessage:function(){if(void 0===this.formData.messages||0===this.formData.messages.length)return!0;var e=!0;return this.formData.messages.forEach((function(t){""!==t.name&&""!==t.id||(e=!1)})),e&&this.updateElement(),e}}},xe=we,De=(a("d681"),Object(T["a"])(xe,ve,ye,!1,null,"15c82825",null)),ke=De.exports,Ee={components:{Message:ke,signal:be},mixins:[x,V],props:{categoriesFields:{type:Object,default:function(){return{children:"children",title:"name",key:"id",value:"id"}}}},data:function(){return{signalVisible:!1,signals:[],messageVisible:!1,messages:[],signalLength:0,formData:{processCategory:void 0,id:void 0,name:void 0,documentation:void 0},rules:{processC:[{required:!0,message:"请选择流程分类",trigger:"change"}],id:[{required:!0,message:"请输入流程标识",trigger:"blur"}],name:[{required:!0,message:"请输入流程名称",trigger:"blur"}],documentation:[]}}},computed:{},watch:{"formData.processCategory":function(e){""===e&&(e=null),this.updateProperties({"flowable:processCategory":e})}},created:function(){this.formData=z(this.element)},methods:{computedSignalLength:function(){var e,t;this.signalLength=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(t=t.values)||void 0===t?void 0:t.length)&&void 0!==e?e:0},showSignal:function(){this.signals=this.getSignalElements(),this.signalVisible=!0},finishSignal:function(){var e=this.$refs.signal.saveSignal();e?this.signalVisible=!1:l["a"].error("信息填写不完善")},showMessage:function(){this.messages=this.getMessageElements(),this.messageVisible=!0},finishMessage:function(){var e=this.$refs.message.saveMessage();e?this.messageVisible=!1:l["a"].error("信息填写不完善")}}},Se=Ee,Ce=Object(T["a"])(Se,ue,me,!1,null,null,null),Ae=Ce.exports,Te=function(){var e=this,t=e._self._c;return t("div",[t("a-form-model",{ref:"form",attrs:{model:e.formData,rules:e.rules,"label-col":{span:6,offset:0},"wrapper-col":{span:16,offset:1},layout:"horizontal"}},[t("a-form-model-item",{attrs:{label:"节点ID",prop:"id"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入流程标识","allow-clear":""},model:{value:e.formData.id,callback:function(t){e.$set(e.formData,"id",t)},expression:"formData.id"}})],1),t("a-form-model-item",{attrs:{label:"节点名称",prop:"name"}},[t("a-input",{attrs:{placeholder:"请输入流程名称","allow-clear":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e.filter("nodeDocumentation")?e._e():t("a-form-model-item",{attrs:{label:"节点描述",prop:"documentation"}},[t("a-textarea",{style:{width:"100%"},attrs:{placeholder:"请输入流程描述","auto-size":{minRows:4,maxRows:4},"allow-clear":""},model:{value:e.formData.documentation,callback:function(t){e.$set(e.formData,"documentation",t)},expression:"formData.documentation"}})],1),e.filter("executionListener")?e._e():t("a-form-model-item",{attrs:{label:"执行监听器"}},[t("a-badge",{attrs:{count:e.getExecutionListenerLength}},[t("a-button",{on:{click:e.handleShowExecutionListener}},[e._v("编辑")])],1)],1),e.filter("conditionExpression")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.conditionExpression,expression:"!!showConfig.conditionExpression"}],attrs:{label:"跳转条件",prop:"conditionExpression"}},[t("a-auto-complete",{attrs:{placeholder:"跳转条件表达式","data-source":e.conditionExpressionDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.conditionExpression,callback:function(t){e.$set(e.formData,"conditionExpression",t)},expression:"formData.conditionExpression"}})],1),e.filter("skipExpression")?e._e():t("a-form-model-item",{directives:[{name:"show",rawName:"v-show",value:!!e.showConfig.skipExpression,expression:"!!showConfig.skipExpression"}],attrs:{label:"跳过条件",prop:"skipExpression"}},[t("a-auto-complete",{attrs:{placeholder:"跳过条件表达式","data-source":e.skipExpressionDataSource,"filter-option":"","allow-clear":""},model:{value:e.formData.skipExpression,callback:function(t){e.$set(e.formData,"skipExpression",t)},expression:"formData.skipExpression"}})],1)],1),t("a-modal",{attrs:{title:"执行监听器",width:"800px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleExecutionListener}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.executionListenerVisible,callback:function(t){e.executionListenerVisible=t},expression:"executionListenerVisible"}},[t("executionListener",{ref:"executionListener",attrs:{element:e.element,modeler:e.modeler}})],1)],1)},Ie=[],_e={mixins:[x,V],data:function(){return{formData:{category:void 0,id:void 0,name:void 0,documentation:void 0,skipExpression:void 0,conditionExpression:void 0},rules:{category:[{required:!0,message:"请选择流程分类",trigger:"change"}],id:[{required:!0,message:"请输入流程标识",trigger:"blur"}],name:[{required:!0,message:"请输入流程名称",trigger:"blur"}],documentation:[]}}},computed:{},watch:{"formData.conditionExpression":function(e){if(e){var t=this.modeler.get("moddle").create("bpmn:FormalExpression",{body:e});this.updateProperties({conditionExpression:t})}else this.updateProperties({conditionExpression:null})},"formData.skipExpression":function(e){""===e&&(e=null),this.updateProperties({"flowable:skipExpression":e})}},created:function(){var e=z(this.element);e=X(e),this.formData=e}},Le=_e,Oe=Object(T["a"])(Le,Te,Ie,!1,null,null,null),Pe=Oe.exports,Ne=function(){var e=this,t=e._self._c;return t("div",[t("a-form-model",{ref:"form",attrs:{model:e.formData,rules:e.rules,"label-col":{span:6,offset:0},"wrapper-col":{span:16,offset:1},layout:"horizontal"}},[t("a-form-model-item",{attrs:{label:"节点ID",prop:"id"}},[t("a-input",{style:{width:"100%"},attrs:{placeholder:"请输入流程标识","allow-clear":""},model:{value:e.formData.id,callback:function(t){e.$set(e.formData,"id",t)},expression:"formData.id"}})],1),t("a-form-model-item",{attrs:{label:"节点名称",prop:"name"}},[t("a-input",{attrs:{placeholder:"请输入流程名称","allow-clear":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e.filter("nodeDocumentation")?e._e():t("a-form-model-item",{attrs:{label:"节点描述",prop:"documentation"}},[t("a-textarea",{style:{width:"100%"},attrs:{placeholder:"请输入流程描述","auto-size":{minRows:4,maxRows:4},"allow-clear":""},model:{value:e.formData.documentation,callback:function(t){e.$set(e.formData,"documentation",t)},expression:"formData.documentation"}})],1),e.filter("executionListener")?e._e():t("a-form-model-item",{attrs:{label:"执行监听器"}},[t("a-badge",{attrs:{count:e.getExecutionListenerLength}},[t("a-button",{on:{click:e.handleShowExecutionListener}},[e._v("编辑")])],1)],1),e.filter("async")?e._e():t("a-form-model-item",{attrs:{label:"异步",prop:"async"}},[t("a-switch",{model:{value:e.formData.async,callback:function(t){e.$set(e.formData,"async",t)},expression:"formData.async"}})],1)],1),t("a-modal",{attrs:{title:"执行监听器",width:"800px",maskClosable:!1,closable:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleExecutionListener}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.executionListenerVisible,callback:function(t){e.executionListenerVisible=t},expression:"executionListenerVisible"}},[t("executionListener",{ref:"executionListener",attrs:{element:e.element,modeler:e.modeler}})],1)],1)},Ve=[],Me={mixins:[x,V],data:function(){return{formData:{category:void 0,id:void 0,name:void 0,documentation:void 0},rules:{category:[{required:!0,message:"请选择流程分类",trigger:"change"}],id:[{required:!0,message:"请输入流程标识",trigger:"blur"}],name:[{required:!0,message:"请输入流程名称",trigger:"blur"}],documentation:[]}}},computed:{},watch:{"formData.async":function(e){""===e&&(e=null),this.updateProperties({"flowable:async":e})}},created:function(){this.formData=z(this.element)}},$e=Me,Fe=Object(T["a"])($e,Ne,Ve,!1,null,null,null),je=Fe.exports,Re={name:"PropertyPanel",components:{processPanel:Ae,taskPanel:ne,startEndPanel:ce,sequenceFlowPanel:Pe,gatewayPanel:je},props:{categoriesFields:{type:Object},filters:{type:Array},associateFormConfig:{type:Object},associateFormDataOptions:{type:Array,default:function(){return[]}},users:{type:Array,required:!0},groups:{type:Array,required:!0},categories:{type:Array,required:!0},modeler:{type:Object,required:!0},initiatorDataSource:{type:Array,default:function(){return[]}},assigneeDataSource:{type:Array,default:function(){return[]}},dueDateDataSource:{type:Array,default:function(){return[]}},followUpDateDataSource:{type:Array,default:function(){return[]}},skipExpressionDataSource:{type:Array,default:function(){return[]}},conditionExpressionDataSource:{type:Array,default:function(){return[]}},candidateUserDataSource:{type:Array,default:function(){return[]}},candidateGroupDataSource:{type:Array,default:function(){return[]}}},data:function(){return{element:null,form:{id:"",name:"",color:null},roles:[{value:"manager",label:"经理"},{value:"personnel",label:"人事"},{value:"charge",label:"主管"}]}},computed:{getComponent:function(){var e,t=null===(e=this.element)||void 0===e?void 0:e.type;return["bpmn:IntermediateThrowEvent","bpmn:StartEvent","bpmn:EndEvent"].includes(t)?"startEndPanel":["bpmn:UserTask","bpmn:Task","bpmn:SendTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:BusinessRuleTask","bpmn:ServiceTask","bpmn:ScriptTask"].includes(t)?"taskPanel":"bpmn:SequenceFlow"===t?"sequenceFlowPanel":["bpmn:InclusiveGateway","bpmn:ExclusiveGateway","bpmn:ParallelGateway","bpmn:EventBasedGateway"].includes(t)?"gatewayPanel":"bpmn:Process"===t?"processPanel":null},nodeName:function(){if(this.element){var e=this.element.businessObject,t=null!==e&&void 0!==e&&e.eventDefinitions?e.eventDefinitions[0].$type:e.$type,a=d[t]||t;return this.$emit("change",a),a}return""}},mounted:function(){this.handleModeler()},methods:{handleModeler:function(){var e=this;this.modeler.on("root.added",(function(t){"bpmn:Process"===t.element.type&&(e.element=null,e.$nextTick().then((function(){e.element=t.element})))})),this.modeler.on("element.click",(function(t){var a=t.element;"bpmn:Process"===a.type&&(e.element=a)})),this.modeler.on("selection.changed",(function(t){e.element=null;var a=t.newSelection[0];a&&e.$nextTick().then((function(){e.element=a}))}))},showAssociateForm:function(e){this.$emit("showForm",e)},createAssociateForm:function(){this.$emit("createForm")}}},Ue=Re,Be=(a("e10e"),Object(T["a"])(Ue,h,g,!1,null,null,null)),Ge=Be.exports,qe=a("d4ec"),ze=a("bee2"),Ke=function(){function e(){Object(qe["a"])(this,e),this.controls=[],this.init()}return Object(ze["a"])(e,[{key:"init",value:function(){this.controls=[{action:"hand-tool",title:"抓手"},{action:"lasso-tool",title:"套索"},{action:"space-tool",title:"空间"},{action:"global-connect-tool",title:"连接"},{action:"create.start-event",title:"开始"},{action:"create.intermediate-event",title:"中间"},{action:"create.end-event",title:"结束"},{action:"create.exclusive-gateway",title:"网关"},{action:"create.task",title:"任务"},{action:"create.user-task",title:"用户任务"},{action:"create.user-sign-task",title:"会签任务"},{action:"create.subprocess-expanded",title:"子流程"},{action:"create.data-object",title:"数据对象"},{action:"create.data-store",title:"数据存储"},{action:"create.participant-expanded",title:"扩展流程"},{action:"create.group",title:"分组"}]}},{key:"getControl",value:function(e){var t=this.controls.filter((function(t){return t.action===e}));return t[0]||{}}}])}();a("99af"),a("fb6a"),a("25f0");function Je(){return Math.random().toString(36).slice(-8)}var Xe=function(){return'<?xml version="1.0" encoding="UTF-8"?>\n    <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" targetNamespace="http://www.flowable.org/processdef">\n      <process id="process_'.concat(Je(),'" name="name_').concat(Je(),'">\n        <startEvent id="startNode1" name="开始" />\n      </process>\n      <bpmndi:BPMNDiagram id="BPMNDiagram_flow">\n        <bpmndi:BPMNPlane id="BPMNPlane_flow" bpmnElement="T-2d89e7a3-ba79-4abd-9f64-ea59621c258c">\n          <bpmndi:BPMNShape id="BPMNShape_startNode1" bpmnElement="startNode1" bioc:stroke="">\n            <omgdc:Bounds x="240" y="200" width="30" height="30" />\n            <bpmndi:BPMNLabel>\n              <omgdc:Bounds x="242" y="237" width="23" height="14" />\n            </bpmndi:BPMNLabel>\n          </bpmndi:BPMNShape>\n        </bpmndi:BPMNPlane>\n      </bpmndi:BPMNDiagram>\n    </definitions>\n    ')},He=a("4c3b"),We=a("8f94"),Ye=(a("a7be"),a("acdf"),a("d5e0"),["子流程","调用活动"]),Ze={name:"WorkflowBpmnModeler",components:{panel:Ge,codemirror:We["codemirror"]},props:{categoriesFields:{type:Object},panelFilters:{type:Array},paletteToolShow:{type:Boolean,default:function(){return!0}},paletteFilters:{type:Array,default:function(){return[]}},rightActionConfig:{type:Object,default:function(){return{showCode:{show:!0,icon:!0,label:"XML"},downloadXML:{show:!0,icon:!0,label:"XML"},downloadSVG:{show:!0,icon:!0,label:"SVG"},save:{show:!0,icon:!0,label:"保存"}}}},xml:{type:String,default:""},users:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},categories:{type:Array,default:function(){return[]}},isView:{type:Boolean,default:!1},associateFormConfig:{type:Object},associateFormDataOptions:{type:Array,default:function(){return[]}},assigneeDataSource:{type:Array,default:function(){return["#{approval}","${approverId}","${INITIATOR}"]}},dueDateDataSource:{type:Array,default:function(){return["${dueDate}"]}},followUpDateDataSource:{type:Array,default:function(){return["${followUpDate}"]}},initiatorDataSource:{type:Array,default:function(){return["initiator"]}},skipExpressionDataSource:{type:Array,default:function(){return[]}},conditionExpressionDataSource:{type:Array,default:function(){return["${approve}","${!approve}"]}},candidateUserDataSource:{type:Array,default:function(){return[]}},candidateGroupDataSource:{type:Array,default:function(){return[]}}},data:function(){return{panelTitle:"",panelVisible:!0,panelExist:!1,modeler:null,taskList:[],zoom:1,codeVisible:!1,xmlCode:"",options:{tabSize:2,theme:"rubyblue",lineNumbers:!0,mode:"xml",line:!0,styleActiveLine:!0,readOnly:!0,hintOptions:{completeSingle:!0}}}},watch:{xml:function(e){e&&this.createNewDiagram(e)}},mounted:function(){this.isView?this.modeler=new f["a"]({container:this.$refs.canvas,additionalModules:[{translate:["value",p],paletteProvider:["value",""],labelEditingProvider:["value",""],contextPadProvider:["value",""],bendpoints:["value",{}],zoomScroll:["value",""],moveCanvas:["value",""],move:["value",""]}],moddleExtensions:{flowable:He}}):this.modeler=new f["a"]({container:this.$refs.canvas,additionalModules:[{translate:["value",p]}],moddleExtensions:{flowable:He}}),this.xml?this.createNewDiagram(this.xml):this.newDiagram()},methods:{handlePanelChange:function(e){""===e.trim()?this.panelExist=!1:-1===Ye.indexOf(e.trim())?this.panelExist=!0:this.panelExist=!1,this.panelTitle=e},newDiagram:function(){this.createNewDiagram(Xe())},fitViewport:function(){this.zoom=this.modeler.get("canvas").zoom("fit-viewport");var e=document.querySelector(".flow-containers .viewport").getBBox(),t=this.modeler.get("canvas").viewbox(),a={x:e.x+e.width/2-65,y:e.y+e.height/2};this.modeler.get("canvas").viewbox({x:a.x-t.width/2,y:a.y-t.height/2,width:t.width,height:t.height}),this.zoom=e.width/t.width*1.8},zoomViewport:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.zoom=this.modeler.get("canvas").zoom(),this.zoom+=e?.1:-.1,this.modeler.get("canvas").zoom(this.zoom)},createNewDiagram:function(e){var t=this;return Object(u["a"])(Object(c["a"])().mark((function a(){return Object(c["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e=e.replace(/<!\[CDATA\[(.+?)]]>/g,(function(e,t){return t.replace(/</g,"&lt;")})),a.prev=1,a.next=4,t.modeler.importXML(e);case 4:t.adjustPalette(),t.fitViewport(),a.next=10;break;case 8:a.prev=8,a.t0=a["catch"](1);case 10:case"end":return a.stop()}}),a,null,[[1,8]])})))()},adjustPalette:function(){try{var e=this.$refs.canvas,t=e.children[0].children[1].children[4];if(!t)return;var a={width:"130px",padding:"5px",background:"white",left:"20px",borderRadius:0};for(var n in a)t.style[n]=a[n];var r=t.children[0],i=r.children;for(var o in this.paletteToolShow||(i[0].style["display"]="none"),i){var s=i[o];for(var l in s.children){var c=s.children[l],u={display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%",padding:"5px"};if(c.className&&c.dataset&&-1!==c.className.indexOf("entry")){var m=(new Ke).getControl(c.dataset.action);for(var d in c.innerHTML="<div style='font-size: 14px;font-weight:500;margin-left:15px;'>".concat(m["title"],"</div>"),u)c.style[d]=u[d];if(-1!==this.paletteFilters.indexOf(c.dataset.action)){c.style["display"]="none";continue}}}}}catch(p){}},fillColor:function(){var e=this,t=this.modeler.get("canvas");this.modeler._definitions.rootElements[0].flowElements.forEach((function(a){if("bpmn:UserTask"===a.$type){var n,r=e.taskList.find((function(e){return e.key===a.id}))||{completed:!0},i=e.taskList.find((function(e){return!e.completed})),o=e.taskList[e.taskList.length-1];if(r)t.addMarker(a.id,r.completed?"highlight":"highlight-todo"),null===(n=a.outgoing)||void 0===n||n.forEach((function(n){var s=e.taskList.find((function(e){return e.key===n.targetRef.id}));s?t.addMarker(n.id,s.completed?"highlight":"highlight-todo"):"bpmn:ExclusiveGateway"===n.targetRef.$type?(t.addMarker(n.id,r.completed?"highlight":"highlight-todo"),t.addMarker(n.targetRef.id,r.completed?"highlight":"highlight-todo")):"bpmn:EndEvent"===n.targetRef.$type&&(i||o.key!==a.id||(t.addMarker(n.id,"highlight"),t.addMarker(n.targetRef.id,"highlight")),r.completed||(t.addMarker(n.id,"highlight-todo"),t.addMarker(n.targetRef.id,"highlight-todo")))}))}else"bpmn:ExclusiveGateway"===a.$type&&a.outgoing.forEach((function(a){var n=e.taskList.find((function(e){return e.key===a.targetRef.id}));n&&t.addMarker(a.id,n.completed?"highlight":"highlight-todo")}));"bpmn:StartEvent"===a.$type&&a.outgoing.forEach((function(n){var r=e.taskList.find((function(e){return e.key===n.targetRef.id}));if(r)return t.addMarker(n.id,"highlight"),void t.addMarker(a.id,"highlight")}))}))},getProcess:function(){var e=this.getProcessElement();return{id:e.id,name:e.name,category:e.$attrs["flowable:processCategory"]}},getProcessElement:function(){for(var e=this.modeler.getDefinitions().rootElements,t=0;t<e.length;t++)if("bpmn:Process"===e[t].$type)return e[t]},showXML:function(){var e=this;return Object(u["a"])(Object(c["a"])().mark((function t(){return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.saveXML(!1);case 2:e.xmlCode=t.sent,e.codeVisible=!0;case 4:case"end":return t.stop()}}),t)})))()},saveXML:function(){var e=arguments,t=this;return Object(u["a"])(Object(c["a"])().mark((function a(){var n,r,i;return Object(c["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=e.length>0&&void 0!==e[0]&&e[0],a.prev=1,a.next=4,t.modeler.saveXML({format:!0});case 4:return r=a.sent,i=r.xml,n&&t.downloadFile("".concat(t.getProcessElement().name,".bpmn20.xml"),i,"application/xml"),a.abrupt("return",i);case 10:a.prev=10,a.t0=a["catch"](1);case 12:case"end":return a.stop()}}),a,null,[[1,10]])})))()},saveImg:function(){var e=arguments,t=this;return Object(u["a"])(Object(c["a"])().mark((function a(){var n,r,i;return Object(c["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.length>0&&void 0!==e[0]?e[0]:"svg",n=e.length>1&&void 0!==e[1]&&e[1],a.prev=2,a.next=5,t.modeler.saveSVG({format:!0});case 5:return r=a.sent,i=r.svg,n&&t.downloadFile(t.getProcessElement().name,i,"image/svg+xml"),a.abrupt("return",i);case 11:a.prev=11,a.t0=a["catch"](2);case 13:case"end":return a.stop()}}),a,null,[[2,11]])})))()},save:function(){var e=this;return Object(u["a"])(Object(c["a"])().mark((function t(){var a,n,r,i;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.getProcess(),t.next=3,e.saveXML();case 3:return n=t.sent,t.next=6,e.saveImg();case 6:r=t.sent,i={process:a,xml:n,svg:r},e.$emit("save",i),window.parent.postMessage(i,"*");case 10:case"end":return t.stop()}}),t)})))()},openBpmn:function(e){var t=this;if("text/xml"===e.type){var a=new FileReader;return a.readAsText(e,"utf-8"),a.onload=function(){t.createNewDiagram(a.result)},!1}l["a"].error("需要打开bpmn20.xml文件")},downloadFile:function(e,t,a){var n=document.createElement("a"),r=window.URL.createObjectURL(new Blob([t],{type:a}));n.href=r,n.download=e,n.click(),window.URL.revokeObjectURL(r)},showAssociateForm:function(e){this.$emit("showForm",e)},createAssociateForm:function(){this.$emit("createForm")}}},Qe=Ze,et=(a("e7a3"),Object(T["a"])(Qe,o,s,!1,null,"6e30e840",null)),tt=et.exports;tt.install=function(e){return e.component(tt.name,tt)};var at=tt,nt=a("347e"),rt=a.n(nt),it=a("1487"),ot=a.n(it),st=(a("9f21"),{name:"Model",components:{bpmnModeler:at,vkbeautify:rt.a},props:{deploymentId:{type:String,default:""}},directives:{highlight:function(e){var t=e.querySelectorAll("pre code");t.forEach((function(e){ot.a.highlightBlock(e)}))}},data:function(){return{xml:"",modeler:"",xmlOpen:!1,xmlTitle:"",xmlContent:"",users:[],groups:[],categorys:[],categoriesFields:{children:"children",title:"dictLabel",key:"id",value:"dictValue"}}},activated:function(){var e=this,t=this.$route.params&&this.$route.params.deploymentId;t&&this.getModelDetail(t),this.getDicts("sys_process_category").then((function(t){e.categorys=t.data})),this.getDataList()},methods:{getModelDetail:function(e){var t=this;Object(i["h"])(e).then((function(e){t.xml=e.data,t.modeler=e.data}))},save:function(e){var t=this,a={name:e.process.name,category:e.process.category,xml:e.xml};this.showLoading(),Object(i["j"])(a).then((function(e){t.hideLoading(),t.$elMsg("保存成功"),t.$emit("ok"),t.$store.dispatch("tagsView/delView",t.$route),t.$router.go(-1)}))},getDataList:function(){var e=this;this.users=[],this.groups=[],Object(i["n"])().then((function(t){e.users=t.data})),Object(i["i"])().then((function(t){t.data.forEach((function(t){var a={id:t.id,name:t.roleName};e.groups.push(a)}))}))},showXML:function(e){this.xmlTitle="xml查看",this.xmlOpen=!0,this.xmlContent=rt.a.xml(e)},dataType:function(e){this.users=[],this.groups=[],this.getDataList()}}}),lt=st,ct=(a("2e5a"),Object(T["a"])(lt,n,r,!1,null,"69cf7caa",null));t["default"]=ct.exports},"2aaf":function(e,t,a){"use strict";a("a596")},"2e5a":function(e,t,a){"use strict";a("f5f2")},"316a":function(e,t,a){},"347e":function(e,t){
/**
* vkBeautify - javascript plugin to pretty-print or minify text in XML, JSON, CSS and SQL formats.
*
* Copyright (c) 2012 Vadim Kiryukhin
* vkiryukhin @ gmail.com
* http://www.eslinstructor.net/vkbeautify/
*
* Dual licensed under the MIT and GPL licenses:
*   http://www.opensource.org/licenses/mit-license.php
*   http://www.gnu.org/licenses/gpl.html
*
*   Pretty print
*
*        vkbeautify.xml(text [,indent_pattern]);
*        vkbeautify.json(text [,indent_pattern]);
*        vkbeautify.css(text [,indent_pattern]);
*        vkbeautify.sql(text [,indent_pattern]);
*
*        @text - String; text to beatufy;
*        @indent_pattern - Integer | String;
*                Integer:  number of white spaces;
*                String:   character string to visualize indentation ( can also be a set of white spaces )
*   Minify
*
*        vkbeautify.xmlmin(text [,preserve_comments]);
*        vkbeautify.jsonmin(text);
*        vkbeautify.cssmin(text [,preserve_comments]);
*        vkbeautify.sqlmin(text);
*
*        @text - String; text to minify;
*        @preserve_comments - Bool; [optional];
*                Set this flag to true to prevent removing comments from @text ( minxml and mincss functions only. )
*
*   Examples:
*        vkbeautify.xml(text); // pretty print XML
*        vkbeautify.json(text, 4 ); // pretty print JSON
*        vkbeautify.css(text, '. . . .'); // pretty print CSS
*        vkbeautify.sql(text, '----'); // pretty print SQL
*
*        vkbeautify.xmlmin(text, true);// minify XML, preserve comments
*        vkbeautify.jsonmin(text);// minify JSON
*        vkbeautify.cssmin(text);// minify CSS, remove comments ( default )
*        vkbeautify.sqlmin(text);// minify SQL
*
*/
function a(e){var t="    ";if(isNaN(parseInt(e)))t=e;else switch(e){case 1:t=" ";break;case 2:t="  ";break;case 3:t="   ";break;case 4:t="    ";break;case 5:t="     ";break;case 6:t="      ";break;case 7:t="       ";break;case 8:t="        ";break;case 9:t="         ";break;case 10:t="          ";break;case 11:t="           ";break;case 12:t="            ";break}for(var a=["\n"],n=0;n<100;n++)a.push(a[n]+t);return a}function n(){this.step="    ",this.shift=a(this.step)}function r(e,t){return t-(e.replace(/\(/g,"").length-e.replace(/\)/g,"").length)}function i(e,t){return e.replace(/\s{1,}/g," ").replace(/ AND /gi,"~::~"+t+t+"AND ").replace(/ BETWEEN /gi,"~::~"+t+"BETWEEN ").replace(/ CASE /gi,"~::~"+t+"CASE ").replace(/ ELSE /gi,"~::~"+t+"ELSE ").replace(/ END /gi,"~::~"+t+"END ").replace(/ FROM /gi,"~::~FROM ").replace(/ GROUP\s{1,}BY/gi,"~::~GROUP BY ").replace(/ HAVING /gi,"~::~HAVING ").replace(/ IN /gi," IN ").replace(/ JOIN /gi,"~::~JOIN ").replace(/ CROSS~::~{1,}JOIN /gi,"~::~CROSS JOIN ").replace(/ INNER~::~{1,}JOIN /gi,"~::~INNER JOIN ").replace(/ LEFT~::~{1,}JOIN /gi,"~::~LEFT JOIN ").replace(/ RIGHT~::~{1,}JOIN /gi,"~::~RIGHT JOIN ").replace(/ ON /gi,"~::~"+t+"ON ").replace(/ OR /gi,"~::~"+t+t+"OR ").replace(/ ORDER\s{1,}BY/gi,"~::~ORDER BY ").replace(/ OVER /gi,"~::~"+t+"OVER ").replace(/\(\s{0,}SELECT /gi,"~::~(SELECT ").replace(/\)\s{0,}SELECT /gi,")~::~SELECT ").replace(/ THEN /gi," THEN~::~"+t).replace(/ UNION /gi,"~::~UNION~::~").replace(/ USING /gi,"~::~USING ").replace(/ WHEN /gi,"~::~"+t+"WHEN ").replace(/ WHERE /gi,"~::~WHERE ").replace(/ WITH /gi,"~::~WITH ").replace(/ ALL /gi," ALL ").replace(/ AS /gi," AS ").replace(/ ASC /gi," ASC ").replace(/ DESC /gi," DESC ").replace(/ DISTINCT /gi," DISTINCT ").replace(/ EXISTS /gi," EXISTS ").replace(/ NOT /gi," NOT ").replace(/ NULL /gi," NULL ").replace(/ LIKE /gi," LIKE ").replace(/\s{0,}SELECT /gi,"SELECT ").replace(/\s{0,}UPDATE /gi,"UPDATE ").replace(/ SET /gi," SET ").replace(/~::~{1,}/g,"~::~").split("~::~")}n.prototype.xml=function(e,t){var n=e.replace(/>\s{0,}</g,"><").replace(/</g,"~::~<").replace(/\s*xmlns\:/g,"~::~xmlns:").replace(/\s*xmlns\=/g,"~::~xmlns=").split("~::~"),r=n.length,i=!1,o=0,s="",l=0,c=t?a(t):this.shift;for(l=0;l<r;l++)n[l].search(/<!/)>-1?(s+=c[o]+n[l],i=!0,(n[l].search(/-->/)>-1||n[l].search(/\]>/)>-1||n[l].search(/!DOCTYPE/)>-1)&&(i=!1)):n[l].search(/-->/)>-1||n[l].search(/\]>/)>-1?(s+=n[l],i=!1):/^<\w/.exec(n[l-1])&&/^<\/\w/.exec(n[l])&&/^<[\w:\-\.\,]+/.exec(n[l-1])==/^<\/[\w:\-\.\,]+/.exec(n[l])[0].replace("/","")?(s+=n[l],i||o--):n[l].search(/<\w/)>-1&&-1==n[l].search(/<\//)&&-1==n[l].search(/\/>/)?s=s+=i?n[l]:c[o++]+n[l]:n[l].search(/<\w/)>-1&&n[l].search(/<\//)>-1?s=s+=i?n[l]:c[o]+n[l]:n[l].search(/<\//)>-1?s=s+=i?n[l]:c[--o]+n[l]:n[l].search(/\/>/)>-1?s=s+=i?n[l]:c[o]+n[l]:n[l].search(/<\?/)>-1||n[l].search(/xmlns\:/)>-1||n[l].search(/xmlns\=/)>-1?s+=c[o]+n[l]:s+=n[l];return"\n"==s[0]?s.slice(1):s},n.prototype.json=function(e,t){t=t||this.step;return"undefined"===typeof JSON?e:"string"===typeof e?JSON.stringify(JSON.parse(e),null,t):"object"===typeof e?JSON.stringify(e,null,t):e},n.prototype.css=function(e,t){var n=e.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),r=n.length,i=0,o="",s=0,l=t?a(t):this.shift;for(s=0;s<r;s++)/\{/.exec(n[s])?o+=l[i++]+n[s]:/\}/.exec(n[s])?o+=l[--i]+n[s]:(/\*\\/.exec(n[s]),o+=l[i]+n[s]);return o.replace(/^\n{1,}/,"")},n.prototype.sql=function(e,t){var n=e.replace(/\s{1,}/g," ").replace(/\'/gi,"~::~'").split("~::~"),o=n.length,s=[],l=0,c=this.step,u=0,m="",d=0,p=t?a(t):this.shift;for(d=0;d<o;d++)s=d%2?s.concat(n[d]):s.concat(i(n[d],c));for(o=s.length,d=0;d<o;d++){u=r(s[d],u),/\s{0,}\s{0,}SELECT\s{0,}/.exec(s[d])&&(s[d]=s[d].replace(/\,/g,",\n"+c+c)),/\s{0,}\s{0,}SET\s{0,}/.exec(s[d])&&(s[d]=s[d].replace(/\,/g,",\n"+c+c)),/\s{0,}\(\s{0,}SELECT\s{0,}/.exec(s[d])?(l++,m+=p[l]+s[d]):/\'/.exec(s[d])?(u<1&&l&&l--,m+=s[d]):(m+=p[l]+s[d],u<1&&l&&l--)}return m=m.replace(/^\n{1,}/,"").replace(/\n{1,}/g,"\n"),m},n.prototype.xmlmin=function(e,t){var a=t?e:e.replace(/\<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)\>/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns");return a.replace(/>\s{0,}</g,"><")},n.prototype.jsonmin=function(e){return"undefined"===typeof JSON?e:JSON.stringify(JSON.parse(e),null,0)},n.prototype.cssmin=function(e,t){var a=t?e:e.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"");return a.replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")},n.prototype.sqlmin=function(e){return e.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")},e.exports=new n},3752:function(e,t,a){"use strict";a("80ff")},3777:function(e,t,a){"use strict";a("fadf")},"4c3b":function(e){e.exports=JSON.parse('{"name":"Flowable","uri":"http://flowable.org/bpmn","prefix":"flowable","xml":{"tagAlias":"lowerCase"},"associations":[],"types":[{"name":"InOutBinding","superClass":["Element"],"isAbstract":true,"properties":[{"name":"source","isAttr":true,"type":"String"},{"name":"sourceExpression","isAttr":true,"type":"String"},{"name":"target","isAttr":true,"type":"String"},{"name":"businessKey","isAttr":true,"type":"String"},{"name":"local","isAttr":true,"type":"Boolean","default":false},{"name":"variables","isAttr":true,"type":"String"}]},{"name":"In","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity"]}},{"name":"Out","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity"]}},{"name":"AsyncCapable","isAbstract":true,"extends":["bpmn:Activity","bpmn:Gateway","bpmn:Event"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false},{"name":"asyncBefore","isAttr":true,"type":"Boolean","default":false},{"name":"asyncAfter","isAttr":true,"type":"Boolean","default":false},{"name":"exclusive","isAttr":true,"type":"Boolean","default":true}]},{"name":"flowable:in","superClass":["Element"],"properties":[{"name":"source","type":"string","isAttr":true},{"name":"target","type":"string","isAttr":true}]},{"name":"flowable:out","superClass":["Element"],"properties":[{"name":"source","type":"string","isAttr":true},{"name":"target","type":"string","isAttr":true}]},{"name":"BoundaryEvent","superClass":["CatchEvent"],"properties":[{"name":"cancelActivity","default":true,"isAttr":true,"type":"Boolean"},{"name":"attachedToRef","type":"Activity","isAttr":true,"isReference":true}]},{"name":"JobPriorized","isAbstract":true,"extends":["bpmn:Process","flowable:AsyncCapable"],"properties":[{"name":"jobPriority","isAttr":true,"type":"String"}]},{"name":"SignalEventDefinition","isAbstract":true,"extends":["bpmn:SignalEventDefinition"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false}]},{"name":"ErrorEventDefinition","isAbstract":true,"extends":["bpmn:ErrorEventDefinition"],"properties":[{"name":"errorCodeVariable","isAttr":true,"type":"String"},{"name":"errorMessageVariable","isAttr":true,"type":"String"}]},{"name":"Error","isAbstract":true,"extends":["bpmn:Error"],"properties":[{"name":"flowable:errorMessage","isAttr":true,"type":"String"}]},{"name":"PotentialStarter","superClass":["Element"],"properties":[{"name":"resourceAssignmentExpression","type":"bpmn:ResourceAssignmentExpression"}]},{"name":"UserTask","isAbstract":true,"extends":["bpmn:UserTask"],"properties":[{"name":"timerEventDefinition","type":"Expression"},{"name":"multiInstanceLoopCharacteristics","type":"MultiInstanceLoopCharacteristics"}]},{"name":"StartEvent","isAbstract":true,"extends":["bpmn:StartEvent"],"properties":[{"name":"timerEventDefinition","type":"Expression"}]},{"name":"FormSupported","isAbstract":true,"extends":["bpmn:StartEvent","bpmn:UserTask"],"properties":[{"name":"formHandlerClass","isAttr":true,"type":"String"},{"name":"formKey","isAttr":true,"type":"String"}]},{"name":"TemplateSupported","isAbstract":true,"extends":["bpmn:Process","bpmn:FlowElement"],"properties":[{"name":"modelerTemplate","isAttr":true,"type":"String"}]},{"name":"Initiator","isAbstract":true,"extends":["bpmn:StartEvent"],"properties":[{"name":"initiator","isAttr":true,"type":"String"}]},{"name":"ScriptTask","isAbstract":true,"extends":["bpmn:ScriptTask"],"properties":[{"name":"resultVariable","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Process","isAbstract":true,"extends":["bpmn:Process"],"properties":[{"name":"candidateStarterGroups","isAttr":true,"type":"String"},{"name":"candidateStarterUsers","isAttr":true,"type":"String"},{"name":"versionTag","isAttr":true,"type":"String"},{"name":"historyTimeToLive","isAttr":true,"type":"String"},{"name":"isStartableInTasklist","isAttr":true,"type":"Boolean","default":true}]},{"name":"EscalationEventDefinition","isAbstract":true,"extends":["bpmn:EscalationEventDefinition"],"properties":[{"name":"escalationCodeVariable","isAttr":true,"type":"String"}]},{"name":"FormalExpression","isAbstract":true,"extends":["bpmn:FormalExpression"],"properties":[{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Assignable","extends":["bpmn:UserTask"],"properties":[{"name":"candidateGroups","isAttr":true,"type":"String"},{"name":"dueDate","isAttr":true,"type":"String"},{"name":"followUpDate","isAttr":true,"type":"String"},{"name":"priority","isAttr":true,"type":"String"}]},{"name":"CallActivity","extends":["bpmn:CallActivity"],"properties":[{"name":"calledElementBinding","isAttr":true,"type":"String","default":"latest"},{"name":"calledElementVersion","isAttr":true,"type":"String"},{"name":"calledElementVersionTag","isAttr":true,"type":"String"},{"name":"calledElementTenantId","isAttr":true,"type":"String"},{"name":"caseRef","isAttr":true,"type":"String"},{"name":"caseBinding","isAttr":true,"type":"String","default":"latest"},{"name":"caseVersion","isAttr":true,"type":"String"},{"name":"caseTenantId","isAttr":true,"type":"String"},{"name":"variableMappingClass","isAttr":true,"type":"String"},{"name":"variableMappingDelegateExpression","isAttr":true,"type":"String"}]},{"name":"ServiceTaskLike","extends":["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"resultVariable","isAttr":true,"type":"String"}]},{"name":"ExclusiveGateway","isAbstract":true,"extends":["bpmn:ExclusiveGateway"],"properties":[{"name":"serviceClass","isAttr":true,"type":"String"}]},{"name":"DmnCapable","extends":["bpmn:BusinessRuleTask"],"properties":[{"name":"decisionRef","isAttr":true,"type":"String"},{"name":"decisionRefBinding","isAttr":true,"type":"String","default":"latest"},{"name":"decisionRefVersion","isAttr":true,"type":"String"},{"name":"mapDecisionResult","isAttr":true,"type":"String","default":"resultList"},{"name":"decisionRefTenantId","isAttr":true,"type":"String"}]},{"name":"ExternalCapable","extends":["flowable:ServiceTaskLike"],"properties":[{"name":"type","isAttr":true,"type":"String"},{"name":"topic","isAttr":true,"type":"String"}]},{"name":"TaskPriorized","extends":["bpmn:Process","flowable:ExternalCapable"],"properties":[{"name":"taskPriority","isAttr":true,"type":"String"}]},{"name":"Properties","superClass":["Element"],"meta":{"allowedIn":["*"]},"properties":[{"name":"values","type":"Property","isMany":true}]},{"name":"Property","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"value","type":"String","isAttr":true}]},{"name":"Connector","superClass":["Element"],"meta":{"allowedIn":["flowable:ServiceTaskLike"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"}]},{"name":"InputOutput","superClass":["Element"],"meta":{"allowedIn":["bpmn:FlowNode","flowable:Connector"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"},{"name":"inputParameters","isMany":true,"type":"InputParameter"},{"name":"outputParameters","isMany":true,"type":"OutputParameter"}]},{"name":"InputOutputParameter","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"InputOutputParameterDefinition","isAbstract":true},{"name":"List","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"items","isMany":true,"type":"InputOutputParameterDefinition"}]},{"name":"Map","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"entries","isMany":true,"type":"Entry"}]},{"name":"Entry","properties":[{"name":"key","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"Value","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"id","isAttr":true,"type":"String"},{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Script","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"scriptFormat","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Field","superClass":["Element"],"meta":{"allowedIn":["flowable:ServiceTaskLike","flowable:ExecutionListener","flowable:TaskListener"]},"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"expression","isAttr":true,"type":"expression"},{"name":"string","type":"string"},{"name":"stringValue","isAttr":true,"type":"String"}]},{"name":"string","superClass":["Element"],"meta":{"allowedIn":["flowable:Field"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"expression","superClass":["Element"],"meta":{"allowedIn":["flowable:Field"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"InputParameter","superClass":["InputOutputParameter"]},{"name":"OutputParameter","superClass":["InputOutputParameter"]},{"name":"Collectable","isAbstract":true,"extends":["bpmn:MultiInstanceLoopCharacteristics"],"superClass":["flowable:AsyncCapable"],"properties":[{"name":"collection","isAttr":true,"type":"String"},{"name":"elementVariable","isAttr":true,"type":"String"}]},{"name":"SequenceFlow","superClass":["FlowElement"],"properties":[{"name":"isImmediate","isAttr":true,"type":"Boolean"},{"name":"conditionExpression","type":"Expression"},{"name":"sourceRef","type":"FlowNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"FlowNode","isAttr":true,"isReference":true}]},{"name":"MultiInstanceLoopCharacteristics","superClass":["LoopCharacteristics"],"properties":[{"name":"isSequential","default":false,"isAttr":true,"type":"Boolean"},{"name":"behavior","type":"MultiInstanceBehavior","default":"All","isAttr":true},{"name":"loopCardinality","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"loopDataInputRef","type":"ItemAwareElement","isReference":true},{"name":"loopDataOutputRef","type":"ItemAwareElement","isReference":true},{"name":"inputDataItem","type":"DataInput","xml":{"serialize":"property"}},{"name":"outputDataItem","type":"DataOutput","xml":{"serialize":"property"}},{"name":"complexBehaviorDefinition","type":"ComplexBehaviorDefinition","isMany":true},{"name":"completionCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"oneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true},{"name":"noneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true}]},{"name":"FailedJobRetryTimeCycle","superClass":["Element"],"meta":{"allowedIn":["flowable:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"ExecutionListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true}]},{"name":"TaskListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:UserTask"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true}]},{"name":"FormProperty","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"required","type":"String","isAttr":true},{"name":"readable","type":"String","isAttr":true},{"name":"writable","type":"String","isAttr":true},{"name":"variable","type":"String","isAttr":true},{"name":"expression","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"default","type":"String","isAttr":true},{"name":"values","type":"Value","isMany":true}]},{"name":"FormData","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"fields","type":"FormField","isMany":true},{"name":"businessKey","type":"String","isAttr":true}]},{"name":"FormField","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"label","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"defaultValue","type":"String","isAttr":true},{"name":"properties","type":"Properties"},{"name":"validation","type":"Validation"},{"name":"values","type":"Value","isMany":true}]},{"name":"Validation","superClass":["Element"],"properties":[{"name":"constraints","type":"Constraint","isMany":true}]},{"name":"Constraint","superClass":["Element"],"properties":[{"name":"name","type":"String","isAttr":true},{"name":"config","type":"String","isAttr":true}]},{"name":"ConditionalEventDefinition","isAbstract":true,"extends":["bpmn:ConditionalEventDefinition"],"properties":[{"name":"variableName","isAttr":true,"type":"String"},{"name":"variableEvent","isAttr":true,"type":"String"}]}],"emumerations":[]}')},"76f7":function(e,t,a){},"80ff":function(e,t,a){},"8f94":function(e,t,a){!function(t,n){e.exports=n(a("56b3"))}(0,(function(e){return function(e){function t(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,a){t.exports=e},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n),i=window.CodeMirror||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])}return a},writable:!0,configurable:!0}),t.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(e){for(var t in e)this.cminstance.setOption(t,e[t])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(e){this.handerCodeChange(e)},value:function(e){this.handerCodeChange(e)}},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=i.MergeView(this.$refs.mergeview,t),this.cminstance=this.codemirror.edit):(this.codemirror=i.fromTextArea(this.$refs.textarea,t),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",(function(t){e.content=t.getValue(),e.$emit&&e.$emit("input",e.content)}));var a={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter((function(e){return!a[e]&&(a[e]=!0)})).forEach((function(t){e.cminstance.on(t,(function(){for(var a=arguments.length,n=Array(a),r=0;r<a;r++)n[r]=arguments[r];e.$emit.apply(e,[t].concat(n));var i=t.replace(/([A-Z])/g,"-$1").toLowerCase();i!==t&&e.$emit.apply(e,[i].concat(n))}))})),this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var e=this;this.$nextTick((function(){e.cminstance.refresh()}))},destroy:function(){var e=this.cminstance.doc.cm.getWrapperElement();e&&e.remove&&e.remove()},handerCodeChange:function(e){if(e!==this.cminstance.getValue()){var t=this.cminstance.getScrollInfo();this.cminstance.setValue(e),this.content=e,this.cminstance.scrollTo(t.left,t.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var e=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach((function(t){var a=e.cminstance.lineInfo(t);e.cminstance.setGutterMarker(t,"breakpoints",a.gutterMarkers?null:e.marker())}))},switchMerge:function(){var e=this.cminstance.doc.history,t=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=e,this.cminstance.doc.cleanGeneration=t}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(1),r=a.n(n);for(var i in n)["default","default"].indexOf(i)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(i);var o=a(5),s=a(4),l=s(r.a,o.a,!1,null,null,null);t.default=l.exports},function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.codemirror=t.CodeMirror=void 0;var r=a(0),i=n(r),o=a(2),s=n(o),l=window.CodeMirror||i.default,c=function(e,t){t&&(t.options&&(s.default.props.globalOptions.default=function(){return t.options}),t.events&&(s.default.props.globalEvents.default=function(){return t.events})),e.component(s.default.name,s.default)},u={CodeMirror:l,codemirror:s.default,install:c};t.default=u,t.CodeMirror=l,t.codemirror=s.default,t.install=c},function(e,t){e.exports=function(e,t,a,n,r,i){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),a&&(u.functional=!0),r&&(u._scopeId=r),i?(c=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):n&&(c=n),c){var m=u.functional,d=m?u.render:u.beforeCreate;m?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:o,exports:s,options:u}}},function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"vue-codemirror",class:{merge:e.merge}},[e.merge?a("div",{ref:"mergeview"}):a("textarea",{ref:"textarea",attrs:{name:e.name,placeholder:e.placeholder}})])},r=[],i={render:n,staticRenderFns:r};t.a=i}])}))},"910f":function(e,t,a){},"9a03":function(e,t,a){},"9f21":function(e,t,a){},a1fa:function(e,t,a){},a596:function(e,t,a){},acdf:function(e,t,a){},c184:function(e,t,a){"use strict";a("9a03")},d5e0:function(e,t,a){(function(e){e(a("56b3"))})((function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(n,r){var i,o,s=n.indentUnit,l={},c=r.htmlMode?t:a;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function m(e,t){function a(a){return t.tokenize=a,a(e,t)}var n,r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?a(f("atom","]]>")):null:e.match("--")?a(f("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),a(h(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=f("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(n=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),n?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function d(e,t){var a=e.next();if(">"==a||"/"==a&&e.eat(">"))return t.tokenize=m,i=">"==a?"endTag":"selfcloseTag","tag bracket";if("="==a)return i="equals",null;if("<"==a){t.tokenize=m,t.state=w,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(a)?(t.tokenize=p(a),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e){var t=function(t,a){while(!t.eol())if(t.next()==e){a.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function f(e,t){return function(a,n){while(!a.eol()){if(a.match(t)){n.tokenize=m;break}a.next()}return e}}function h(e){return function(t,a){var n;while(null!=(n=t.next())){if("<"==n)return a.tokenize=h(e+1),a.tokenize(t,a);if(">"==n){if(1==e){a.tokenize=m;break}return a.tokenize=h(e-1),a.tokenize(t,a)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function b(e,t,a){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=a,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){var a;while(1){if(!e.context)return;if(a=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(a))||!l.contextGrabbers[g(a)].hasOwnProperty(g(t)))return;v(e)}}function w(e,t,a){return"openTag"==e?(a.tagStart=t.column(),x):"closeTag"==e?D:w}function x(e,t,a){return"word"==e?(a.tagName=t.current(),o="tag",S):l.allowMissingTagName&&"endTag"==e?(o="tag bracket",S(e,t,a)):(o="error",x)}function D(e,t,a){if("word"==e){var n=t.current();return a.context&&a.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(g(a.context.tagName))&&v(a),a.context&&a.context.tagName==n||!1===l.matchClosing?(o="tag",k):(o="tag error",E)}return l.allowMissingTagName&&"endTag"==e?(o="tag bracket",k(e,t,a)):(o="error",E)}function k(e,t,a){return"endTag"!=e?(o="error",k):(v(a),w)}function E(e,t,a){return o="error",k(e,t,a)}function S(e,t,a){if("word"==e)return o="attribute",C;if("endTag"==e||"selfcloseTag"==e){var n=a.tagName,r=a.tagStart;return a.tagName=a.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(n))?y(a,n):(y(a,n),a.context=new b(a,n,r==a.indented)),w}return o="error",S}function C(e,t,a){return"equals"==e?A:(l.allowMissing||(o="error"),S(e,t,a))}function A(e,t,a){return"string"==e?T:"word"==e&&l.allowUnquoted?(o="string",S):(o="error",S(e,t,a))}function T(e,t,a){return"string"==e?T:S(e,t,a)}return m.isInText=!0,{startState:function(e){var t={tokenize:m,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var a=t.tokenize(e,t);return(a||i)&&"comment"!=a&&(o=null,t.state=t.state(i||a,e,t),o&&(a="error"==o?a+" error":o)),a},indent:function(t,a,n){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=m)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(a))return 0;var i=a&&/^<(\/)?([\w_:\.-]*)/.exec(a);if(i&&i[1])while(r){if(r.tagName==i[2]){r=r.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(r.tagName)))break;r=r.prev}else if(i)while(r){var o=l.contextGrabbers[g(r.tagName)];if(!o||!o.hasOwnProperty(g(i[2])))break;r=r.prev}while(r&&r.prev&&!r.startOfLine)r=r.prev;return r?r.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],a=e.context;a;a=a.prev)t.push(a.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},d681:function(e,t,a){"use strict";a("76f7")},e10e:function(e,t,a){"use strict";a("910f")},e7a3:function(e,t,a){"use strict";a("316a")},f5f2:function(e,t,a){},fadf:function(e,t,a){}}]);