UNPKG

lingfang-bpmn-form-designer

Version:

A process and form designer base on Vue 2.x and ElementUI

2 lines 2.62 MB
/*! For license information please see BpmnProcDesigner.umd.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BpmnProcDesigner=t(require("vue")):e.BpmnProcDesigner=t(e.Vue)}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({0:function(e,t){},"0014":function(e,t,n){"use strict";var i=n("e81d").is,r=n("99e7"),o=r.CONSUME_TOKEN_EVENT,a=r.GENERATE_TOKEN_EVENT,s=r.UPDATE_ELEMENT_EVENT;function l(e,t,n){this._animation=e,this._eventBus=t,this._log=n}l.prototype.consume=function(e){var t=e.element,n=e.processInstanceId,r=t.children.filter((function(e){return i(e,"bpmn:StartEvent")}))[0];r?(this._log.log("Starting Subprocess","info","fa-sign-in"),this._eventBus.fire(a,{element:r,parentProcessInstanceId:n})):(this._log.log("Skipping Subprocess","info","fa-angle-double-right"),this._eventBus.fire(a,e)),this._eventBus.fire(s,{element:t})},l.prototype.generate=function(e){var t=this,n=e.element,r=e.processInstanceId;n.outgoing.filter((function(e){return i(e,"bpmn:SequenceFlow")})).forEach((function(e){t._animation.createAnimation(e,r,(function(){t._eventBus.fire(o,{element:e.target,processInstanceId:r})}))})),this._eventBus.fire(s,{element:n})},l.$inject=["animation","eventBus","log"],e.exports=l},"00ee":function(e,t,n){var i={};i[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(i)},"00fd":function(e,t,n){var i=n("9e69"),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[s]=n:delete e[s]),r}},"0131":function(e,t,n){"use strict";var i=n("0af7"),r=n("99e7"),o=r.TOGGLE_MODE_EVENT,a=r.RESET_SIMULATION_EVENT,s=r.GENERATE_TOKEN_EVENT;function l(e,t){var n=this;this._overlays=e,t.on(o,(function(e){e.simulationModeActive||n.removeElementNotifications()})),t.on([a,s],(function(){n.removeElementNotifications()}))}l.prototype.addElementNotifications=function(e,t){var n=this;e.forEach((function(e){n.addElementNotification(e,t)}))},l.prototype.addElementNotification=function(e,t){var n={top:-15,right:15},r='<div class="element-notification '+(t.type||"")+'">'+(t.icon?'<i class="fa '+t.icon+'"></i>':"")+('<span class="text">'+t.text+"</span>"||!1)+"</div>",o=i(r);this._overlays.add(e,"element-notification",{position:n,html:o,show:{minZoom:.5}})},l.prototype.removeElementNotifications=function(e){var t=this;e?e.forEach((function(e){t.removeElementNotification(e)})):this._overlays.remove({type:"element-notification"})},l.prototype.removeElementNotification=function(e){this._overlays.remove({element:e})},l.$inject=["overlays","eventBus"],e.exports=l},"0288":function(e,t,n){"use strict";n("99af");var i=n("5530"),r=(n("d3b7"),n("e6cf"),null),o=null,a=null,s=null,l=function(e){if(e.response){var t=e.response.data;403===e.response.status&&notification.error({message:"Forbidden",description:t.message}),401!==e.response.status||t.result&&t.result.isLogin||notification.error({message:"Unauthorized",description:"Authorization verification failed"})}return Promise.reject(e)},c="",u=null,d=null,p=null,h=null,f="/UUMS-system/user/list?pageNum=1&pageSize=10&sortField=createTime&sortOrder=desc",m={modelsAppList:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/extCat/getAppCode"),params:e})},getBpmTypeList:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/extCat/getBpmType"),params:e})},getTeamList:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/authentication/getTeam"),params:e})},saveModel:function(e){return a({method:"POST",url:"".concat(c).concat("/UUMS-bpm/models/model/save"),data:e})},loadBpmnXml:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/models/model","/").concat(e)})},loadOssTokenByTtl:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/models/oss/token","?ttl=")+e})},userSearch:function(e){return a({url:"".concat(c).concat(f,"&loginName=").concat(e)})},userSearchByCode:function(e){return a({url:"".concat(c).concat(f,"&userCode=").concat(e)})},userSearchByCodes:function(e){return a({url:"".concat(c).concat(f,"&userCodes=").concat(e)})},groupSearch:function(e){},frmOfTask:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/form/task_form","?taskId=").concat(e)})},frmOfProcessKey:function(e,t){return a({url:"".concat(c).concat("/UUMS-bpm/form/by_process_key","?processKey=").concat(e).concat(t?"&draftId="+t:"")})},startProcess:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/process/start"),method:"POST",data:Object(i.a)({},e)})},historyInstTasks:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/history/instanceTasks"),params:e})},runningInstTasks:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/history/instance_running_tasks"),params:e})},pressTaskTodo:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/bpmTask/press_todo"),params:e})},changeTaskAssignee:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/bpmTask/change_assignee"),method:"POST",data:Object(i.a)({},e)})},frmOfInstance:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/form/instance"),params:e})},taskComplete:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/task/complete"),method:"POST",data:Object(i.a)({},e)})},getDeptListEnableLazy:function(e){return e.tenantId=this.getCurrentTenantId(),a({url:"".concat(c).concat("/UUMS-system/dept/list/lazyEnable"),method:"get",params:e})},loadAllPos:function(e){return e.tenantId=this.getCurrentTenantId(),a({url:"".concat(c).concat("/UUMS-system/sysPost/getPostListByDept"),method:"get",params:e})},loadGraphicInfo:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/history/activities"),params:e})},loadFrmByFrmKey:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/form/frm_by_key"),params:e})},listProcFinishedTasks:function(e){return console.log("==============>params:",e),a({url:"".concat(c).concat("/UUMS-bpm/task/listFinishedHistoryTasks"),params:e})},backTask:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/task/copyTask"),params:e})},loadFrmByInstIdAndFrmKey:function(e){return a({url:"".concat(c).concat("/UUMS-bpm/form/form_by_inst_frmkey"),params:e})},saveForm:function(e){return a({method:"POST",url:"".concat(c).concat("/UUMS-bpm/form/save_form"),data:e})},setConfig:function(e){var t,n,i,f;e&&(c=e.host,u=e.getTenantId,d=e.getToken,p=e.fileSaveUrl,h=e.appId,e.getTeamId,t=e.getTenantId,n=e.getTeamId,i=e.getToken,f=e.axiosProvider,r=t,s=n,o=i,a||((a=f).interceptors.request.use((function(e){return e.headers.Authorization=o?"Bearer ".concat(o()):"",e.headers.tenantId=r?r():"",e.headers.teamId=s?s():"",console.log("request==============>",e),e}),l),a.interceptors.response.use((function(e){return console.log("response==============>",e.data),e.data}),l)))},getCurrentToken:function(){return d?d():null},getCurrentTenantId:function(){return u?u():null},getFileSaveUrl:function(){return p},getAppId:function(){return h}};t.a=m},"0325":function(e,t,n){e.exports={default:n("bcd6"),__esModule:!0}},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"0394":function(e,t,n){"use strict";var i=n("e81d").is,r=n("99e7"),o=r.CONSUME_TOKEN_EVENT,a=r.GENERATE_TOKEN_EVENT;function s(e,t){this._animation=e,this._eventBus=t}s.prototype.consume=function(e){this._eventBus.fire(a,{element:e})},s.prototype.generate=function(e){var t=this;e.outgoing.filter((function(e){return i(e,"bpmn:SequenceFlow")})).forEach((function(e){t._animation.createAnimation(e,(function(){t._eventBus.fire(o,{element:e.target})}))}))},s.$inject=["animation","eventBus"],e.exports=s},"03d6":function(e,t,n){var i=n("9c0e"),r=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"03dd":function(e,t,n){var i=n("eac5"),r=n("57a5"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},"04fb":function(e,t,n){"use strict";var i=n("99e7"),r=i.TOGGLE_MODE_EVENT,o=i.PROCESS_INSTANCE_CREATED_EVENT,a=i.PROCESS_INSTANCE_FINISHED_EVENT,s=i.PROCESS_INSTANCE_SHOWN_EVENT,l=i.PROCESS_INSTANCE_HIDDEN_EVENT;function c(e,t,n,i){var s=this;this._animation=e,this._eventBus=t,this._processInstances=n,this._elementRegistry=i,this._eventBus.on(o,500,(function(e){var t=e.parent,i=e.processInstanceId,r=n.getProcessInstances(t).filter((function(e){return!e.isFinished}));1===r.length?s.showProcessInstance(i,t):r.length>1&&s.hideProcessInstance(i)})),this._eventBus.on(a,500,(function(e){var t=e.parent,r=e.processInstanceId,o=n.getProcessInstances(t).filter((function(e){return r!==e.processInstanceId&&!e.isFinished}));o.length&&r===t.shownProcessInstance?s.showProcessInstance(o[0].processInstanceId,t):delete t.shownProcessInstance,t.parent||i.forEach((function(e){delete e.shownProcessInstance}))})),t.on(r,(function(){i.forEach((function(e){delete e.shownProcessInstance}))}))}c.prototype.showProcessInstance=function(e,t){this._animation.showProcessInstanceAnimations(e),t.shownProcessInstance=e,this._eventBus.fire(s,{processInstanceId:e})},c.prototype.hideProcessInstance=function(e){this._animation.hideProcessInstanceAnimations(e),this._eventBus.fire(l,{processInstanceId:e})},c.prototype.showNext=function(e){var t=this,n=this._processInstances.getProcessInstances(e),i=e.shownProcessInstance,r=0;for(let o=0;o<n.length&&n[o].processInstanceId!==i;o++)r++;n.forEach((function(e){t.hideProcessInstance(e.processInstanceId)})),r===n.length-1?this.showProcessInstance(n[0].processInstanceId,e):this.showProcessInstance(n[r+1].processInstanceId,e)},c.$inject=["animation","eventBus","processInstances","elementRegistry"],e.exports=c},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(i(e))}},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("25f0"),n("3ca3");var i=n("6b75");function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i.a)(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},"06dd":function(e,t,n){"use strict";n("c740"),n("4160"),n("c975"),n("a434"),n("ac1f"),n("5319"),n("1276"),n("498a"),n("159b"),n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("06c5"),r=n("88eb"),o=n("0288"),a=n("ba84"),s={name:"BpmnViewer",components:{},props:{config:Object,procInstId:String,processKey:String,clickText:String,canBackTasks:String,isModal:Boolean,visible:Boolean,width:String},watch:{visible:{immediate:!0,handler:function(e,t){e&&this.show({processInstanceId:this.procInstId,processKey:this.processKey})}},procInstId:{immediate:!0,handler:function(e,t){e&&this.show({processInstanceId:this.procInstId,processKey:this.processKey})}}},data:function(){return{drawer:!1,showRunning:!1,title:"跟踪",pressVisible:!1,tableData:null,runningData:null,doingCount:0,doneCount:0,showTaskData:!1,showChangeTaskAssignee:!1,userLoading:!1,showProcInstId:null,showTaskId:null,users:[],changeTaskId:null,changeUser:null,changeReason:"",canvsId:"canvas_".concat(Object(a.g)(10)),form:{name:null,region:null}}},created:function(){o.a.setConfig(this.config)},mounted:function(){this.isModal||this.loadDataAndShow()},methods:{dateFormat:a.b,millsToTime:a.e,remoteSearchUser:function(e){var t=this;""!==e&&(t.userLoading=!0,o.a.userSearch(e).then((function(e){if(e&&0===e.code&&e.data){var n=e.data.list;t.users=n||[]}t.userLoading=!1})).catch((function(e){t.userLoading=!1})))},tableRowClassName:function(e){var t=e.row,n=(new Date).getTime();return t.dueDate&&t.dueDate<=t.endTime||t.dueDate&&!t.endTime&&t.dueDate<=n?"warning-row":""},handleShowTaskData:function(e){var t=e.row;this.showTaskData=!0;var n=t.procInstId,i=t.taskId;this.showTaskId=i,this.showProcInstId=n},handleClosed:function(){this.$emit("update:visible",!1)},onOpened:function(){this.isModal&&this.loadDataAndShow()},loadDataAndShow:function(){var e={processInstanceId:this.procInstId,processKey:this.processKey};this.show(e)},doShowView:function(){var e=this,t=this.showDataNodes,n=t.nodes,r=(t.flows,t.activeTask),a=t.xml,s=(t.startNode,t.activeNodes),l=t.overTimeTask,c=this;c.bpmnViewer.importXML(a,(function(t){if(t)c.$notify({title:"提示",message:"流程图显示失败!"});else{var a=c.bpmnViewer.get("canvas"),u=c.bpmnViewer.get("overlays");if(s&&s.forEach((function(e){var t=l[e]?l[e]:0;try{a.addMarker(e,"highlight-running"),u.add(e,"note",{position:{bottom:2,right:40},scale:!1,html:'<div id="div_clk_running_'+e+'" attrstatus="0" class="layer-btn"></div><div class="over-time">逾期('+t+')</div><div class="status-tips"><span class="running-icon"></span><span class="flg">!</span><span class="status-text">执行中</span><div>'})}catch(e){console.log("node is not exists")}})),n){var d=e.canBackTasks&&""!==e.canBackTasks.trim()?e.canBackTasks.split(","):null;if(d&&d.length>0){var p={};d.forEach((function(e){p[e]=!0})),d=p}n.forEach((function(e){if(!(e.indexOf("Event_")>=0))try{a.addMarker(e,"highlight");var t=l[e]?l[e]:0;u.add(e,"note",{position:{bottom:2,right:40},scale:!1,html:'<div id="div_clk_'+e+'" class="layer-btn"></div><div class="over-time">逾期('+t+')</div><div class="status-tips"><span class="success-icon"></span><span class="status-text">完成</span><div>'})}catch(e){console.log("node is not exists")}}));var h=e.procInstId,f=e;e.$nextTick((function(){var e,t=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(i.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}(document.getElementsByClassName("layer-btn"));try{var n=function(){var t=e.value;t.addEventListener("click",(function(e){f.drawer=!0;var n=t.id.indexOf("_running_")>=0,i=t.id.replace("div_clk_","").replace("running_","");f.showRunning=n,o.a.historyInstTasks({processInstanceId:h,taskDefKeys:i}).then((function(e){e&&0===e.code&&(f.tableData=e.data,f.doneCount=e.data.length)})),n&&(f.currnetLookRunNode={processInstanceId:h,taskDefKeys:i},o.a.runningInstTasks(f.currnetLookRunNode).then((function(e){e&&0===e.code&&(f.runningData=e.data,f.doingCount=e.data.length)})))}))};for(t.s();!(e=t.n()).done;)n()}catch(e){t.e(e)}finally{t.f()}}))}c.clickText&&r&&r.length>0&&r.forEach((function(e){try{e.userCode=e.uid,delete e.uid;var t=e.userCode,n=e.groupId,i=e.processInstanceId,r=e.taskId,o=e.taskDefKey,a=document.createElement("button");a.style="width:50px;line-height:12px;";var s=document.createTextNode(c.clickText);a.appendChild(s),a.onclick=function(){c.$emit("node-click",{userCode:t,groupId:n,processInstanceId:i,taskId:r,taskDefKey:o})},u.add(e.taskDefKey,"note",{position:{top:2,right:160},scale:!1,html:a})}catch(e){console.log("node is not exists")}})),a.zoom("fit-viewport")}}))},buildBackBtn:function(){var e=document.createElement("button");e.style="width:50px;line-height:12px;";var t=document.createTextNode("撤回");return e.appendChild(t),e.onclick=function(){var e=nodes.findIndex((function(e){return e===node}));console.log("task back success, delete node ===>",e,node),o.a.backTask({procInstId:_this.procInstId,taskDefKey:node}).then((function(t){0===t.code&&(nodes.splice(e,1),_this.showDataNodes.nodes=nodes,_this.loadDataAndShow())}))},e},show:function(e){var t=this,n=document.getElementById(this.canvsId);n&&(n.innerHTML="",this.bpmnViewer=new r.a({container:n}),o.a.loadGraphicInfo(e).then((function(e){if(e&&0===e.code&&e.data){var n=e.data,i=n.nodes,r=n.flows,o=n.activeTask,a=n.xml,s=n.startNode,l=n.activeNodes,c=n.overTimeTask;t.showDataNodes={nodes:i,flows:r,activeTask:o,xml:a,startNode:s,activeNodes:l,overTimeTask:c},t.doShowView()}})))},handlePressTodo:function(e){var t=this;o.a.pressTaskTodo({taskId:e.taskId}).then((function(e){var n=e.code,i=e.msg;0===n?t.$message.success("您的催办消息发送成功!"):t.$message.error(i)}))},handleSaveChangeAssignee:function(){var e=this,t=this,n=this.changeUser,i=this.changeReason,r=this.changeTaskId;n&&""!==n?o.a.changeTaskAssignee({taskId:r,changeUser:n,changeReason:i}).then((function(n){var i=n.code,r=n.msg;0===i?(e.$message.success("您的转办操作成功!"),o.a.runningInstTasks(t.currnetLookRunNode).then((function(e){e&&0===e.code&&(t.runningData=e.data,t.doingCount=e.data.length)}))):e.$message.error(r),e.showChangeTaskAssignee=!1})):this.$message.error("代办人不能未空,必须选择!")}}},l=(n("16b3"),n("2877")),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:e.canvsId,staticClass:"canvas",staticStyle:{height:"1200px"},attrs:{id:e.canvsId}}),n("el-drawer",{attrs:{title:"执行历史",visible:e.drawer,modal:!1,size:"60%"},on:{"update:visible":function(t){e.drawer=t}}},[n("el-tabs",{staticStyle:{height:"200px"},attrs:{"tab-position":"left"}},[e.showRunning?n("el-tab-pane",{attrs:{label:"处理中("+e.doingCount+")"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.runningData,stripe:"","row-class-name":e.tableRowClassName}},[n("el-table-column",{attrs:{prop:"uname",width:200,label:"处理人"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.dueDate&&t.row.dueDate<=(new Date).getTime()?n("el-tag",{attrs:{type:"danger"}},[e._v("逾期")]):e._e(),n("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.uname))])]}}],null,!1,3641177702)}),n("el-table-column",{attrs:{prop:"startTime",formatter:function(t){return t.createTime>0?e.dateFormat(t.createTime):null},label:"接收时间"}}),n("el-table-column",{attrs:{prop:"startTime",formatter:function(t){return t.dueDate>0?e.dateFormat(t.dueDate):"无逾期时间"},label:"逾期时间"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(n){return e.handleShowTaskData(t)}},slot:"reference"},[e._v("查看")]),n("el-divider",{attrs:{direction:"vertical"}}),n("el-popconfirm",{attrs:{"confirm-button-text":"确定","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"您确定对该任务进行催办吗?"},on:{confirm:function(n){return e.handlePressTodo(t.row)}}},[n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("催办")])],1),n("el-divider",{attrs:{direction:"vertical"}}),n("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(){e.showChangeTaskAssignee=!0,e.changeUser=null,e.changeReason=null,e.changeTaskId=t.row.taskId}},slot:"reference"},[e._v("转办")])]}}],null,!1,2775017990)})],1)],1):e._e(),n("el-tab-pane",{attrs:{label:"已完成("+e.doneCount+")"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"","row-class-name":e.tableRowClassName}},[n("el-table-column",{attrs:{prop:"uname",width:200,label:"处理人"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.dueDate&&t.row.dueDate<=t.row.endTime?n("el-tag",{attrs:{type:"danger"}},[e._v("逾期完成")]):e._e(),n("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.uname))])]}}])}),n("el-table-column",{attrs:{prop:"startTime",formatter:function(t){return t.startTime>0?e.dateFormat(t.startTime):null},label:"接收时间"}}),n("el-table-column",{attrs:{prop:"dueDate",formatter:function(t){return t.dueDate>0?e.dateFormat(t.dueDate):"无逾期时间"},label:"逾期时间"}}),n("el-table-column",{attrs:{prop:"endTime",formatter:function(t){return t.endTime>0?e.dateFormat(t.endTime):null},label:"完成时间"}}),n("el-table-column",{attrs:{prop:"duration",formatter:function(t){return t.duration>0?e.millsToTime(t.duration):null},label:"完成耗时"}}),n("el-table-column",{attrs:{prop:"message",label:"审批内容"}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(n){return e.handleShowTaskData(t)}},slot:"reference"},[e._v("查看")])]}}])})],1)],1)],1)],1),n("el-dialog",{attrs:{title:"任务数据",modal:!1,visible:e.showTaskData,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showTaskData=t}}},[n("BpmnTaskForm",{attrs:{config:e.config,taskId:e.showTaskId,procInstId:e.showProcInstId,mode:"view",hideOprBtns:""}})],1),n("el-dialog",{attrs:{title:"任务转办",modal:!1,visible:e.showChangeTaskAssignee,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showChangeTaskAssignee=t}}},[n("el-form",[n("el-form-item",{attrs:{label:"转办用户"}},[n("el-select",{attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"工号 / 姓名","remote-method":e.remoteSearchUser,clearable:"",loading:e.userLoading},model:{value:e.changeUser,callback:function(t){e.changeUser=t},expression:"changeUser"}},e._l(e.users,(function(e){return n("el-option",{key:"toou-"+e.userCode,attrs:{label:e.userName,value:e.userCode}})})),1)],1),n("el-form-item",{attrs:{label:"转办理由"}},[n("el-input",{attrs:{type:"textarea",row:3},model:{value:e.changeReason,callback:function(t){e.changeReason=t},expression:"changeReason"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.showChangeTaskAssignee=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSaveChangeAssignee()}}},[e._v("确 定")])],1)],1)],1)}),[],!1,null,null,null);t.a=c.exports},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,f=l(arguments[u++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)h=m[v++],i&&!p.call(f,h)||(n[h]=f[h]);return n}:c},"078a":function(e,t,n){var i=n("96c1"),r=n("844f");e.exports=function(e,t){var n,o,a;return n=function(e){var t=i.copyOptions(e);return i.ensureSpacesExists(t),t}(t),o=r(e,n),a="compact"in n&&n.compact?"_parent":"parent",("addParent"in n&&n.addParent?JSON.stringify(o,(function(e,t){return e===a?"_":t}),n.spaces):JSON.stringify(o,null,n.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},"07c7":function(e,t){e.exports=function(){return!1}},"0808":function(e,t,n){},"0809":function(e,t,n){e.exports=n("ddeb")},"087d":function(e,t){e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},"08a3":function(e,t,n){"use strict";function i(e,t){window.console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var r,o,a=function(e,t){e.locale=function(e,n,r){if(void 0===n)return t.locales[e];null===n?(t.locales[e]=void 0,delete t.locales[e]):function(e,t,n){if("object"==typeof t)n(t);else{var i=t.call(this);if("function"==typeof i)if(i.resolved)n(i.resolved);else if(i.requested)i.pendingCallbacks.push(n);else{i.requested=!0;var r=i.pendingCallbacks=[n];i((function(e){i.resolved=e;for(var t=0,n=r.length;t<n;t++)r[t](e)}),(function(){n()}))}else(o=i)&&"function"==typeof o.then&&i.then((function(e){n(e)}),(function(){n()})).catch((function(e){console.error(e),n()}))}var o}(0,n,(function(n){n?t.$set(t.locales,e,n):i("failed set `"+e+"` locale"),r&&r()}))}};function s(e){if(!r){var t=e.$watch("__watcher__",(function(e){}));r=e._watchers[0].constructor,t()}return r}function l(e){return!o&&e&&e._data&&e._data.__ob__&&e._data.__ob__.dep&&(o=e._data.__ob__.dep.constructor),o}function c(e){return null==e}function u(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function d(e){return null!==e&&"object"==typeof e}var p,h=Object.prototype.toString,f=Object.prototype.hasOwnProperty;function m(e,t){return f.call(e,t)}var g=null,v=null,b=/(%|)\{([0-9a-zA-Z_]+)\}/g,y=Object.create(null),_=[];_[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},_[1]={ws:[1],".":[2],"[":[4],eof:[7]},_[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},_[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},_[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},_[5]={"'":[4,0],eof:8,else:[5,0]},_[6]={'"':[4,0],eof:8,else:[6,0]};var x=/^\s?(true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function w(e){if(void 0===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:case 48:return e;case 95:case 36:case 45:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return t>=97&&t<=122||t>=65&&t<=90?"ident":t>=49&&t<=57?"number":"else"}function E(e){var t,n,i,r=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(i=r,x.test(i)?(n=(t=r).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+r)}function C(e){var t=y[e];return t||(t=function(e){var t,n,i,r,o,a,s,l=[],c=-1,u=0,d=0,p=[];function h(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,n="\\"+t,p[0](),!0}for(p[1]=function(){void 0!==i&&(l.push(i),i=void 0)},p[0]=function(){void 0===i?i=n:i+=n},p[2]=function(){p[0](),d++},p[3]=function(){if(d>0)d--,u=4,p[0]();else{if(d=0,!1===(i=E(i)))return!1;p[1]()}};null!=u;)if(c++,"\\"!==(t=e[c])||!h()){if(r=w(t),8===(o=(s=_[u])[r]||s.else||8))return;if(u=o[0],(a=p[o[1]])&&(n=void 0===(n=o[2])?t:n,!1===a()))return;if(7===u)return l.raw=e,l}}(e))&&(y[e]=t),t}var O,k=function(e){function t(e){if(null==e)return!0;if(Array.isArray(e)){if(e.length>0)return!1;if(0===e.length)return!0}else if(n=e,"[object Object]"===h.call(n))for(var t in e)if(m(e,t))return!1;var n;return!0}return function(e,n){if(!d(e))return null;var i=C(n);if(t(i))return null;for(var r=i.length,o=e,a=0;a<r;){var s=o[i[a]];if(void 0===s){o=null;break}o=s,a++}return o}},S=function(e){var t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return(t=1===t.length&&"object"==typeof t[0]?t[0]:{})&&t.hasOwnProperty||(t={}),e.replace(b,(function(n,i,r,o){var a;return"{"===e[o-1]&&"}"===e[o+n.length]?r:c(a=m(t,r)?t[r]:n)?"":a}))},n=k();function r(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=e.config.lang,r=e.config.fallbackLang;return 1===t.length?d(t[0])||Array.isArray(t[0])?t=t[0]:"string"==typeof t[0]&&(i=t[0]):2===t.length&&("string"==typeof t[0]&&(i=t[0]),(d(t[1])||Array.isArray(t[1]))&&(t=t[1])),{lang:i,fallback:r,params:t}}function o(e,t){return!(!e||!t)&&!c(n(e,t))}function a(r,o,s){if(!r)return null;var l=n(r,o);if(Array.isArray(l))return l;if(c(l)&&(l=r[o]),c(l))return null;if("string"!=typeof l)return i("Value of key '"+o+"' is not a string!"),null;if(l.indexOf("@:")>=0){var u=l.match(/(@:[\w|.]+)/g);for(var d in u){var p=u[d],h=a(r,p.substr(2),s);l=l.replace(p,h)}}return s?e.config.i18nFormatter?e.config.i18nFormatter.apply(null,[l].concat(s)):t(l,s):l}function s(e,t,n,i,r){var o=null;return c(o=a(e(t),i,r))&&c(o=a(e(n),i,r))?null:o}function l(t,n,i,r){return c(r)?(e.config.missingHandler&&e.config.missingHandler.apply(null,[t,n,i]),n):r}function p(t){return e.locale(t)}function h(e){return this.$options.locales[e]}function f(e,t){if(!e&&"string"!=typeof e)return null;var n=e.split("|");return n[t=function(e,t){return e=Math.abs(e),2===t?function(e){return e?e>1?1:0:1}(e):e?Math.min(e,2):0}(t,n.length)]?n[t].trim():e}return e.t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!e)return"";var i=r.apply(void 0,t),o=i.lang,a=i.fallback,c=i.params;return l(o,e,null,s(p,o,a,e,c))},e.tc=function(t,n){for(var i=[],r=arguments.length-2;r-- >0;)i[r]=arguments[r+2];return f(e.t.apply(e,[t].concat(i)),n)},e.te=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=r.apply(void 0,t),a=i.lang;return o(p(a),e)},e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!e)return"";var i=r.apply(void 0,t),o=i.lang,a=i.fallback,c=i.params,d=null;return this.$options.locales&&(d=s(u(h,this),o,a,e,c))?d:l(o,e,this,s(p,o,a,e,c))},e.prototype.$tc=function(e,t){for(var n,i=[],r=arguments.length-2;r-- >0;)i[r]=arguments[r+2];return"number"!=typeof t&&void 0!==t?e:f((n=this).$t.apply(n,[e].concat(i)),t)},e.prototype.$te=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var i=r.apply(void 0,t),a=i.lang,s=!1;return this.$options.locales&&(s=o(u(h)(a),e)),s||(s=o(p(a),e)),s},e.mixin({computed:{$lang:function(){return e.config.lang}}}),e};function D(e,t){void 0===t&&(t={}),e.version&&Number(e.version.split(".")[0]),function(e,t){var n=e.config.silent;e.config.silent=!0,O||(O=new e({data:{lang:t,locales:{}}})),e.config.silent=n}(e,"en"),a(e,O),function(e,t){var n=e.prototype._init;e.prototype._init=function(e){var i=this;n.call(this,e),this.$parent||(this._$lang=t,this._langUnwatch=this._$lang.$watch("$data",(function(e,t){i.$forceUpdate()}),{deep:!0}))};var i=e.prototype._destroy;e.prototype._destroy=function(){!this.$parent&&this._langUnwatch&&(this._langUnwatch(),this._langUnwatch=null,this._$lang=null),i.apply(this,arguments)}}(e,O),function(e,t,n){var i,r,o,a=s(t),c=l(t);Object.defineProperty(e.config,"lang",{enumerable:!0,configurable:!0,get:(i=function(){return t.lang},r=t,o=new a(r,i,null,{lazy:!0}),function(){return o.dirty&&o.evaluate(),c&&c.target&&o.depend(),o.value}),set:u((function(e){t.lang=e}),t)}),p=n,Object.defineProperty(e.config,"fallbackLang",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){p=e}}),Object.defineProperty(e.config,"missingHandler",{enumerable:!0,configurable:!0,get:function(){return g},set:function(e){g=e}}),Object.defineProperty(e.config,"i18nFormatter",{enumerable:!0,configurable:!0,get:function(){return v},set:function(e){v=e}})}(e,O,"en"),S(e)}D.version="__VERSION__","undefined"!=typeof window&&window.Vue&&window.Vue.use(D),e.exports=D},"090a":function(e,t,n){"use strict";var i,r=n("c350"),o=(i=r)&&i.__esModule?i:{default:i};(0,o.default)("Noop",{visitor:[]}),(0,o.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}})},"0960":function(e,t,n){e.exports=n("b19a")},"0983":function(e,t,n){var i=n("c901");e.exports=function(e){return Object(i(e))}},"099a":function(e,t){e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}},"09c5":function(e,t,n){"use strict";n("45fc"),n("b0c0"),n("ac1f"),n("5319");var i=n("87f2").some,r={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function o(e,t){return e&&"function"==typeof e.$instanceOf&&e.$instanceOf(t)}function a(e,t){return(n=e)&&n.length&&i(e,(function(e){return o(e,t)}));var n}function s(e,t,n){var a=t.name,s=r[a.replace(/activiti:/,"")];return a===e&&function(e,t){return i(t,(function(t){return o(e,t)}))}(n,s)}function l(e){e.on("property.clone",(function(e){var t=e.newElement,n=e.propertyDescriptor;this.canCloneProperty(t,n)}),this)}l.$inject=["eventBus"],l.prototype.canCloneProperty=function(e,t){return s("activiti:FailedJobRetryTimeCycle",t,e)?a(e.eventDefinitions,"bpmn:TimerEventDefinition")||a(e.eventDefinitions,"bpmn:SignalEventDefinition")||o(e.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics"):s("activiti:Connector",t,e)||s("activiti:Field",t,e)?a(e.eventDefinitions,"bpmn:MessageEventDefinition"):void 0},e.exports=l},"0ae2":function(e,t,n){var i=n("9876"),r=n("fed5"),o=n("1917");e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},"0af7":function(e,t,n){e.exports=n("f95b")},"0b07":function(e,t,n){var i=n("34ac"),r=n("3698");e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},"0b99":function(e,t,n){"use strict";var i=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c08":function(e,t,n){"use strict";var i=n("5530"),r=n("0288"),o={name:"sub-form",components:{},props:["visible","subFormKey","title","selectionMode","remote","remoteFunc","parentModels","bizObj","close","reset","initDataVals","updateIndex","clickComponent"],data:function(){return{size:"mini",subFrmJson:{list:[],config:{}},subFrmModels:{}}},computed:{},mounted:function(){this.initSubForm()},methods:{initSubForm:function(){var e=this.subFormKey,t=this;t.frmInit||r.a.loadFrmByFrmKey({frmKey:e}).then((function(e){e&&0===e.code&&e.data&&e.data.frmJson&&""!=e.data.frmJson&&(t.subFrmJson=JSON.parse(e.data.frmJson),t.frmInit=!0,t.doFrmDataLoaded())}))},doFrmDataLoaded:function(){var e=this,t=e.subFrmJson.config.frmDataLoaded;if(t&&e.remote&&e.remote[t]){var n=e.updateIndex>=0?{type:"edit"}:{type:"add"};e.clickComponent&&(n.type="show",n.component=e.clickComponent),console.log("===================================================>"),e.remote[t]((function(r){console.log("frmDataLoaded ["+t+"] called",e.subFrmModels,n),e.$nextTick((function(){e.subFrmModels=Object(i.a)(Object(i.a)(Object(i.a)({},e.initDataVals),e.bizObj),r)}))}),e.parentModels,n),e.subFrmModels=Object(i.a)(Object(i.a)({},e.initDataVals),e.bizObj)}else e.initDataVals&&e.$nextTick((function(){e.subFrmModels=Object(i.a)({},e.initDataVals)}))},getSelection:function(){return this.$refs.subGenerateForm.getSelection()}},watch:{visible:{deep:!0,handler:function(e){0==e&&this.reset?this.$refs.subGenerateForm.reset():this.doFrmDataLoaded(),e&&this.initDataVals&&(this.subFrmModels=Object(i.a)({},this.initDataVals))}}}},a=n("2877"),s=Object(a.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("fm-generate-form",{ref:"subGenerateForm",attrs:{data:e.subFrmJson,selectionMode:e.selectionMode,value:e.subFrmModels,remoteFuncs:e.remote,bizObj:e.bizObj}})],1)}),[],!1,null,null,null);t.a=s.exports},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(e,t,n){(function(e){var i=n("2b3e"),r=n("07c7"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l}).call(this,n("62e4")(e))},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("c430"),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0ebc":function(e,t,n){"use strict";var i=n("4193"),r=n("e81d"),o=r.is,a=r.supportedElements,s=n("99e7"),l=s.TOGGLE_MODE_EVENT,c=s.GENERATE_TOKEN_EVENT,u=["bpmn:Process","bpmn:Collaboration","bpmn:Participant","bpmn:Lane","bpmn:TextAnnotation"];function d(e){return e.labelTarget}function p(e,t,n,r,a){var s=this;this._eventBus=e,this._elementRegistry=t,this._elementNotifications=a,this._notifications=r,this.canvasParent=n.getContainer().parentNode,e.on(c,2e4,(function(e){var t=e.element;if(o(t,"bpmn:StartEvent"))return s.allElementsSupported()?void 0:(s.showWarnings(),i(s.canvasParent).add("warning"),!0)})),e.on(l,(function(e){e.simulationModeActive||i(s.canvasParent).remove("warning")}))}p.prototype.allElementsSupported=function(){var e=!0;return this._elementRegistry.forEach((function(t){o(t,u)||o(t,a)||d(t)||(e=!1)})),e},p.prototype.showWarnings=function(e){var t=this,n=[];this._elementRegistry.forEach((function(e){o(e,u)||o(e,a)||d(e)||(t.showWarning(e),n.indexOf(e.type)&&(t._notifications.showNotification(e.type+" not supported","warning"),n.push(e.type)))}))},p.prototype.showWarning=function(e){this._elementNotifications.addElementNotification(e,{type:"warning",icon:"fa-exclamation-triangle",text:"Not supported"})},p.$inject=["eventBus","elementRegistry","canvas","notifications","elementNotifications"],e.exports=p},"0f0f":function(e,t,n){var i=n("8eeb"),r=n("9934");e.exports=function(e,t){return e&&i(t,r(t),e)}},"0f59":function(e,t,n){},"0fab":function(e,t,n){e.exports=n("c7ca")},1:function(e,t){},1020:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];"object"!=typeof i||Object.isFrozen(i)||n(i)})),e}var i=n,r=n;i.default=r;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(e,...t){const n=Object.create(null);for(const i in e)n[i]=e[i];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const l=e=>!!e.kind;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!l(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){l(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class u{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{u._collapse(e)}))}}class d extends u{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new c(this,this.options).value()}finalize(){return!0}}function p(e){return e?"string"==typeof e?e:e.source:null}const h="[a-zA-Z]\\w*",f="[a-zA-Z_]\\w*",m="\\b\\d+(\\.\\d+)?",g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",v="\\b(0b[01]+)",b={begin:"\\\\[\\s\\S]",relevance:0},y={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[b]},_={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[b]},x={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},w=function(e,t,n={}){const i=s({className:"comment",begin:e,end:t,contains:[]},n);return i.contains.push(x),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i},E=w("//","$"),C=w("/\\*","\\*/"),O=w("#","$"),k={className:"number",begin:m,relevance:0},S={className:"number",begin:g,relevance:0},D={className:"number",begin:v,relevance:0},T={className:"number",begin:m+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},A={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/,relevance:0,contains:[b]}]}]},j={className:"title",begin:h,relevance:0},P={className:"title",begin:f,relevance:0},M={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var I=Object.freeze({__proto__:null,IDENT_RE:h,UNDERSCORE_IDENT_RE:f,NUMBER_RE:m,C_NUMBER_RE:g,BINARY_NUMBER_RE:v,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>p(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:y,QUOTE_STRING_MODE:_,PHRASAL_WORDS_MODE:x,COMMENT:w,C_LINE_COMMENT_MODE:E,C_BLOCK_COMMENT_MODE:C,HASH_COMMENT_MODE:O,NUMBER_MODE:k,C_NUMBER_MODE:S,BINARY_NUMBER_MODE:D,CSS_NUMBER_MODE:T,REGEXP_MODE:A,TITLE_MODE:j,UNDERSCORE_TITLE_MODE:P,METHOD_GUARD:M,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function F(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function N(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=F,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords)}function B(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>p(e)).join("|")+")"}(...e.illegal))}function L(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function R(e,t){void 0===e.relevance&&(e.relevance=1)}const $=["of","and","for","in","not","or","if","then","parent","list","value"];function q(e,t){return t?Number(t):function(e){return $.includes(e.toLowerCase())}(e)?0:1}function z(e,{plugins:t}){function n(t,n){return new RegExp(p(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){const n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let i=0,r="";for(let o=0;o<e.length;o++){i+=1;const a=i;let s=p(e[o]);for(o>0&&(r+=t),r+="(";s.length>0;){const e=n.exec(s);if(null==e){r+=s;break}r+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+a):(r+=e[0],"("===e[0]&&i++)}r+=")"}return r}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function t(i,o){const a=i;if(i.compiled)return a;[L].forEach(e=>e(i,o)),e.compilerExtensions.forEach(e=>e(i,o)),i.__beforeBegin=null,[N,B,R].forEach(e=>e(i,o)),i.compiled=!0;let l=null;if("object"==typeof i.keywords&&(l=i.keywords.$pattern,delete i.keywords.$pattern),i.keywords&&(i.keywords=function(e,t){const n={};return"string"==typeof e?i("keyword",e):Object.keys(e).forEach((function(t){i(t,e[t])})),n;function i(e,i){t&&(i=i.toLowerCase()),i.split(" ").forEach((function(t){const i=t.split("|");n[i[0]]=[e,q(i[0],i[1])]}))}}(i.keywords,e.case_insensitive)),i.lexemes&&l)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l=l||i.lexemes||/\w+/,a.keywordPatternRe=n(l,!0),o&&(i.begin||(i.begin=/\B|\b/),a.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(a.endRe=n(i.end)),a.terminatorEnd=p(i.end)||"",i.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+o.terminatorEnd)),i.illegal&&(a.illegalRe=n(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:V(e)?s(e,{starts:e.starts?s(e.starts):null}):Object.isFrozen(e)?s(e):e}("self"===e?i:e)}))),i.contains.forEach((function(e){t(e,a)})),i.starts&&t(i.starts,o),a.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function V(e){return!!e&&(e.endsWithParent||V(e.starts))}function U(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const W={"after:highlightBlock":({block:e,result:t,text:n})=>{const i=K(e);if(!i.length)return;const r=document.createElement("div");r.innerHTML=t.value,t.value=function(e,t,n){let i=0,r="";const o=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function l(e){function t(e){return" "+e.nodeName+'="'+a(e.value)+'"'}r+="<"+H(e)+[].map.call(e.attributes,t).join("")+">"}function c(e){r+="</"+H(e)+">"}function u(e){("start"===e.event?l:c)(e.node)}for(;e.length||t.length;){let t=s();if(r+=a(n.substring(i,t[0].offset)),i=t[0].offset,t===e){o.reverse().forEach(c);do{u(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===i);o.reverse().forEach(l)}else"start"===t[0].event?o.push(t[0].node):o.pop(),u(t.splice(0,1)[0])}return r+a(n.substr(i))}(i,K(r),n)}};function