@witlink/workflow 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32141,7 +32141,7 @@ const E9 = /* @__PURE__ */ jt({
|
|
|
32141
32141
|
const N = w !== a.value.id;
|
|
32142
32142
|
w.endsWith("*") && (A.hasSuffix ? w = w.substring(0, w.length - 1) + A.hasSuffix : w = w.substring(0, w.length - 1) + d()), Object.assign(a.value, {
|
|
32143
32143
|
id: w,
|
|
32144
|
-
name: o ? h(w) :
|
|
32144
|
+
name: o ? h(w) : `bpmn.${i}_${w}`,
|
|
32145
32145
|
assignee: "",
|
|
32146
32146
|
"camunda:assigneeName": "",
|
|
32147
32147
|
priority: void 0,
|
package/dist/index.umd.cjs
CHANGED
|
@@ -150,7 +150,7 @@ The dependencies for this derivation are:
|
|
|
150
150
|
}
|
|
151
151
|
`;function wx(t){return t&&t.getRootNode&&t.getRootNode()}function D5(t){return Np()?wx(t)instanceof ShadowRoot:!1}function P5(t){return D5(t)?wx(t):null}var R5=function(){var e=hx(),n=e.prefixCls,r=e.csp,i=p.getCurrentInstance(),o=M5;n&&(o=o.replace(/anticon/g,n.value)),p.nextTick(function(){if(Np()){var a=i.vnode.el,s=P5(a);A5(o,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},L5=["icon","primaryColor","secondaryColor"];function I5(t,e){if(t==null)return{};var n=k5(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function k5(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Zu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){B5(t,i,n[i])})}return t}function B5(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fs=p.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function j5(t){var e=t.primaryColor,n=t.secondaryColor;fs.primaryColor=e,fs.secondaryColor=n||xx(e),fs.calculated=!!n}function F5(){return Zu({},fs)}var Di=function(e,n){var r=Zu({},e,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=I5(r,L5),l=fs;if(o&&(l={primaryColor:o,secondaryColor:a||xx(o)}),N5(bx(i),"icon should be icon definiton, but got ".concat(i)),!bx(i))return null;var u=i;return u&&typeof u.icon=="function"&&(u=Zu({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),Pp(u.icon,"svg-".concat(u.name),Zu({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Di.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Di.inheritAttrs=!1,Di.displayName="IconBase",Di.getTwoToneColors=F5,Di.setTwoToneColors=j5;function $5(t,e){return U5(t)||W5(t,e)||z5(t,e)||H5()}function H5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
152
152
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z5(t,e){if(t){if(typeof t=="string")return Sx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sx(t,e)}}function Sx(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function W5(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function U5(t){if(Array.isArray(t))return t}function Cx(t){var e=Ex(t),n=$5(e,2),r=n[0],i=n[1];return Di.setTwoToneColors({primaryColor:r,secondaryColor:i})}function V5(){var t=Di.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var X5=p.defineComponent({name:"InsertStyles",setup:function(){return R5(),function(){return null}}}),G5=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Y5(t,e){return J5(t)||Z5(t,e)||q5(t,e)||K5()}function K5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
153
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q5(t,e){if(t){if(typeof t=="string")return Ax(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ax(t,e)}}function Ax(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Z5(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function J5(t){if(Array.isArray(t))return t}function Ox(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ps(t,i,n[i])})}return t}function ps(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q5(t,e){if(t==null)return{};var n=e$(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function e$(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}Cx(_5.primary);var Jo=function(e,n){var r,i=Ox({},e,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,d=i.onClick,f=Q5(i,G5),h=hx(),v=h.prefixCls,g=h.rootClassName,m=(r={},ps(r,g.value,!!g.value),ps(r,v.value,!0),ps(r,"".concat(v.value,"-").concat(a.name),!!a.name),ps(r,"".concat(v.value,"-spin"),!!s||a.name==="loading"),r),y=u;y===void 0&&d&&(y=-1);var x=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=Ex(c),b=Y5(E,2),T=b[0],A=b[1];return p.createVNode("span",Ox({role:"img","aria-label":a.name},f,{onClick:d,class:[m,o],tabindex:y}),[p.createVNode(Di,{icon:a,primaryColor:T,secondaryColor:A,style:x},null),p.createVNode(X5,null,null)])};Jo.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Jo.displayName="AntdIcon",Jo.inheritAttrs=!1,Jo.getTwoToneColor=V5,Jo.setTwoToneColor=Cx;var t$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function Tx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){n$(t,i,n[i])})}return t}function n$(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rp=function(e,n){var r=Tx({},e,n.attrs);return p.createVNode(Jo,Tx({},r,{icon:t$}),null)};Rp.displayName="EditOutlined",Rp.inheritAttrs=!1;const r$=Qr(p.defineComponent({inheritAttrs:!1,__name:"index",props:p.mergeModels({dictType:{type:String,default:""},include:{type:[Array,String]},exclude:{type:Array},sort:{type:Boolean}},{dictMap:{type:Object},dictMapModifiers:{}}),emits:["update:dictMap"],setup(t){const e=t,n=p.useModel(t,"dictMap"),[r,{fetchDict:i,toList:o}]=eh(e.dictType,{immediate:!1}),a=p.computed(()=>{var l;const s=o(e.dictType);if(e.sort&&s.sort((u,c)=>parseFloat(u.value)-parseFloat(c.value)),e.include){const u=typeof e.include=="string"?e.include.split(","):e.include;return s.filter(c=>u.includes(c.value))}return(l=e.exclude)!=null&&l.length?s.filter(u=>{var c;return!((c=e.exclude)!=null&&c.includes(u.value))}):s});return e.dictType&&i(),p.watch(()=>r.value,()=>{if(n.value&&typeof n.value=="object")for(const s in r.value)n.value[s]=r.value}),(s,l)=>{const u=ie.Select;return p.openBlock(),p.createBlock(u,p.mergeProps({class:"dict-select",placeholder:s.$t("common.plsSelect"),showSearch:!1,options:p.unref(a),dropdownMatchSelectWidth:!1},s.$attrs),null,16,["placeholder","options"])}}}),[["__scopeId","data-v-02a7899b"]]),i$={class:"wrapper"},o$={class:"mt-xs"},a$={class:"flex-sc"},s$={class:"mt-xs"},l$=Qr(p.defineComponent({__name:"RuleConfig",props:{jsonStr:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({});function a(d){const f=d.replace(/(false|true|\d+)(?=")/g,"$1,");return JSON.parse(`{${f}}`)}function s(d){if(typeof d=="string"&&(d.trim().startsWith("{")||d.trim().startsWith("[")))try{return JSON.parse(d),!0}catch{return!1}return!1}function l(){r.jsonStr?(s(r.jsonStr)?o.value=JSON.parse(r.jsonStr):o.value=a(r.jsonStr),o.value.fallbackFirstLinkStatus!==null&&o.value.fallbackFirstLinkStatus!==void 0&&(o.value.fallbackFirstLinkStatus=String(o.value.fallbackFirstLinkStatus))):o.value={revokeRule:!1,fallbackRule:!1,approverRemoveDuplicates:2,timeoutConfigSwitch:!1,timeoutPeriod:1,timeoutHandler:1,fallbackFirstLinkStatus:null}}function u(){Wt.Modal.destroyAll()}function c(){const d=o.value;if(d.timeoutConfigSwitch&&!d.timeoutPeriod){Wt.message.warning(n("bpmn.timeoutPeriodEmptyTip"));return}d.fallbackFirstLinkStatus&&(d.fallbackFirstLinkStatus=Number(d.fallbackFirstLinkStatus)),i("submit",o.value),Wt.Modal.destroyAll()}return p.onMounted(()=>{l()}),(d,f)=>{const h=ie.Checkbox,v=ie.FormItem,g=ie.Radio,m=ie.RadioGroup,y=ie.InputNumber,x=r$,E=ie.Form,b=ie.Button,T=ie.Space;return p.openBlock(),p.createElementBlock("div",i$,[p.createVNode(E,{class:"my-nm","label-col":{span:6},"wrapper-col":{span:18},colon:!1,model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(v,{label:d.$t("bpmn.revertRule")},{default:p.withCtx(()=>[p.createVNode(h,{checked:p.unref(o).revokeRule,"onUpdate:checked":f[0]||(f[0]=A=>p.unref(o).revokeRule=A)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.revertRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.rollbackRule")},{default:p.withCtx(()=>[p.createVNode(h,{checked:p.unref(o).fallbackRule,"onUpdate:checked":f[1]||(f[1]=A=>p.unref(o).fallbackRule=A)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.rollbackRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.deduplicationApprovers")},{default:p.withCtx(()=>[p.createElementVNode("div",o$,p.toDisplayString(d.$t("bpmn.deduplicationApproversTxt")),1),p.createVNode(m,{value:p.unref(o).approverRemoveDuplicates,"onUpdate:value":f[2]||(f[2]=A=>p.unref(o).approverRemoveDuplicates=A)},{default:p.withCtx(()=>[p.createVNode(g,{value:0},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.deduplicationRadio0")),1)]),_:1}),p.createVNode(g,{value:1},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.deduplicationRadio1")),1)]),_:1}),p.createVNode(g,{value:2},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.deduplicationRadio2")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.timeoutRule")},{default:p.withCtx(()=>[p.createVNode(h,{checked:p.unref(o).timeoutConfigSwitch,"onUpdate:checked":f[3]||(f[3]=A=>p.unref(o).timeoutConfigSwitch=A)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.timeoutRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),p.unref(o).timeoutConfigSwitch?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(v,{label:d.$t("wo_my.timeout")},{default:p.withCtx(()=>[p.createElementVNode("div",a$,[p.createTextVNode(p.toDisplayString(d.$t("bpmn.linkTimeoutTxt1"))+" ",1),p.createVNode(y,{class:"mx-xs",value:p.unref(o).timeoutPeriod,"onUpdate:value":f[4]||(f[4]=A=>p.unref(o).timeoutPeriod=A),min:1,max:1e4,precision:0},null,8,["value"]),p.createTextVNode(" "+p.toDisplayString(d.$t("bpmn.linkTimeoutTxt2")),1)])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.timeoutHandle")},{default:p.withCtx(()=>[p.createElementVNode("div",s$,p.toDisplayString(d.$t("bpmn.timeoutHandleTxt")),1),p.createVNode(m,{value:p.unref(o).timeoutHandler,"onUpdate:value":f[5]||(f[5]=A=>p.unref(o).timeoutHandler=A)},{default:p.withCtx(()=>[p.createVNode(g,{value:0},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.timeoutHandleRadio0")),1)]),_:1}),p.createVNode(g,{value:1},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.timeoutHandleRadio1")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"])],64)):p.createCommentVNode("",!0),p.createVNode(v,{label:d.$t("bpmn.fallbackFirstLinkStatus")},{default:p.withCtx(()=>[p.createVNode(x,{"dict-type":"fallback_first_link_status",value:p.unref(o).fallbackFirstLinkStatus,"onUpdate:value":f[6]||(f[6]=A=>p.unref(o).fallbackFirstLinkStatus=A),placeholder:d.$t("common.plsSelect"),style:{width:"80%"}},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"]),p.createVNode(T,{class:"modal-btns"},{default:p.withCtx(()=>[p.createVNode(b,{onClick:u},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(b,{type:"primary",onClick:c},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("common.btn_sure")),1)]),_:1})]),_:1})])}}}),[["__scopeId","data-v-8e7f13af"]]),u$={key:0},c$={key:1,style:{color:"#696868"}},d$=p.defineComponent({__name:"Process",props:p.mergeModels({isEdit:{type:Boolean}},{formState:{},formStateModifiers:{}}),emits:["update:formState"],setup(t){const{modal:e}=Wt.App.useApp(),{t:n}=Dn.useI18n(),r=p.useModel(t,"formState"),i=p.ref(["1","2","3","4","5","6"]);function o(){e.info({title:n("ruleModel.title"),content:p.h(l$,{jsonStr:r.value.jobPriority,onSubmit:a=>{r.value.jobPriority=JSON.stringify(a)}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:850,class:"modal-comp"})}return(a,s)=>{const l=ie.Input,u=ie.FormItem,c=ie.Form,d=ie.CollapsePanel,f=ie.Button,h=ie.Collapse;return p.openBlock(),p.createBlock(h,{activeKey:p.unref(i),"onUpdate:activeKey":s[3]||(s[3]=v=>p.isRef(i)?i.value=v:null)},{default:p.withCtx(()=>[p.createVNode(d,{key:"1",header:a.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(c,{layout:"vertical",model:r.value},{default:p.withCtx(()=>[p.createVNode(u,{label:a.$t("FLOW_CHART.Id"),extra:a.$t("FLOW_CHART.idTip")},{default:p.withCtx(()=>[p.createVNode(l,{value:r.value.id,"onUpdate:value":s[0]||(s[0]=v=>r.value.id=v),placeholder:a.$t("common.plsEnter"),readonly:t.isEdit},null,8,["value","placeholder","readonly"])]),_:1},8,["label","extra"]),p.createVNode(u,{label:a.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(l,{value:r.value.name,"onUpdate:value":s[1]||(s[1]=v=>r.value.name=v),placeholder:a.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(u,{label:a.$t("FLOW_CHART.Version Tag")},{default:p.withCtx(()=>[p.createVNode(l,{value:r.value.versionTag,"onUpdate:value":s[2]||(s[2]=v=>r.value.versionTag=v),disabled:""},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),p.createVNode(d,{key:"4",header:a.$t("FLOW_CHART.Job Configuration")},{default:p.withCtx(()=>[p.createVNode(c,{layout:"vertical",model:r.value},{default:p.withCtx(()=>[p.createVNode(u,{label:a.$t("FLOW_CHART.Job Priority")},{default:p.withCtx(()=>[p.createVNode(f,{onClick:o,style:{width:"100%"}},{default:p.withCtx(()=>[r.value.jobPriority?(p.openBlock(),p.createElementBlock("span",c$,[p.createTextVNode(p.toDisplayString(p.unref(n)("bpmn.has_config_rule"))+" ",1),p.createVNode(p.unref(Rp))])):(p.openBlock(),p.createElementBlock("span",u$,p.toDisplayString(p.unref(n)("bpmn.no_config_rule")),1))]),_:1})]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),f$=Qr(p.defineComponent({__name:"TemplateConfig",props:{data:{type:Object,default:()=>{}},templateList:{type:Array,default:()=>[]}},emits:["update:data"],setup(t,{emit:e}){const n=e,r=t,i=p.computed({get:()=>r.data,set:u=>{n("update:data",u)}}),o=p.computed(()=>r.templateList.filter(u=>{var c;return(c=u==null?void 0:u.type)==null?void 0:c.split(",").includes("1")}).map(u=>({label:u.name,value:u.id}))),a=p.computed(()=>r.templateList.filter(u=>{var c;return(c=u==null?void 0:u.type)==null?void 0:c.split(",").includes("2")}).map(u=>({label:u.name,value:u.id}))),s=p.computed(()=>r.templateList.filter(u=>{var c;return(c=u==null?void 0:u.type)==null?void 0:c.split(",").includes("3")}).map(u=>({label:u.name,value:u.id}))),l=(u,c)=>c.label.toLowerCase().indexOf(u.toLowerCase())>=0;return(u,c)=>{const d=ie.Select,f=ie.FormItem,h=ie.Form;return p.openBlock(),p.createElementBlock("div",null,[p.createVNode(h,{class:"form-query-select mx-nm mt-nm",layout:"vertical",model:i.value},{default:p.withCtx(()=>[p.createVNode(f,{label:u.$t("bpmn.todoHandle")},{default:p.withCtx(()=>[p.createVNode(d,{value:i.value[1],"onUpdate:value":c[0]||(c[0]=v=>i.value[1]=v),options:o.value,allowClear:"",placeholder:u.$t("common.plsSelect"),"show-search":"","filter-option":l},null,8,["value","options","placeholder"])]),_:1},8,["label"]),p.createVNode(f,{label:u.$t("bpmn.todoDetail")},{default:p.withCtx(()=>[p.createVNode(d,{value:i.value[2],"onUpdate:value":c[1]||(c[1]=v=>i.value[2]=v),options:a.value,allowClear:"",placeholder:u.$t("common.plsSelect"),"show-search":"","filter-option":l},null,8,["value","options","placeholder"])]),_:1},8,["label"]),p.createVNode(f,{label:u.$t("bpmn.AllDetail")},{default:p.withCtx(()=>[p.createVNode(d,{value:i.value[3],"onUpdate:value":c[2]||(c[2]=v=>i.value[3]=v),options:s.value,allowClear:"",placeholder:u.$t("common.plsSelect"),"show-search":"","filter-option":l},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])])}}}),[["__scopeId","data-v-8a27c7e4"]]),p$={class:"modal-container"},h$=p.defineComponent({__name:"SelectLinkTask",props:{id:{type:String},componentInfo:{type:String,default:""},variable:{type:String,default:""},description:{type:String,default:""}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({}),a=p.ref([{title:n("link.id"),dataIndex:"id"},{title:n("link.description"),dataIndex:"description"},{title:n("link.due"),dataIndex:"due"},{title:n("link.variable"),dataIndex:"variable"},{title:n("bpmn.action"),dataIndex:"action"}]),s=p.ref([]),l=p.ref();function u(k,B){s.value=k,l.value=B}const c=p.ref({1:void 0,2:void 0,3:void 0}),d=p.ref({}),f=p.ref(!1),h=p.ref(""),v=p.ref("");function g(){f.value=!1,h.value=m(c.value)}function m(k){return Object.entries(k).filter(([ee,ce])=>ce!==void 0).map(([ee,ce])=>`${ee}-${ce}`).join(",")}function y(k){if(typeof k!="string"||k.trim()==="")return{};const B=k.split(","),Z={};return B.forEach(ee=>{const[ce,...Be]=ee.split("-");if(ce&&Be.length>0){const me=Be.join("-");Z[ce]=me}}),Z}function x(){f.value=!1}function E(k){d.value=k,f.value=!0}const b=p.ref([]);async function T(){const{result:k}=await Gt.getTemplateList({pageNo:1,pageSize:1e3});b.value=(k==null?void 0:k.data)||[]}const A=p.ref([]);async function S(){const{result:k}=await Gt.getLinkList({pageNo:1,pageSize:1e3});A.value=(k==null?void 0:k.data)||[]}p.watchEffect(()=>{r.id&&(r.id.startsWith("common-approve-")||r.id.startsWith("common-handle-")?(v.value=r.id.slice(-4),s.value=[r.id.slice(0,-4)+"*"]):s.value=[r.id]),r.componentInfo&&(c.value=y(r.componentInfo))});function M(k){l.value=null;const B={...o.value};return Object.assign(B,k),Gt.getLinkList(B)}const C=p.ref(),G=()=>{C.value.refresh()},K=()=>{o.value={},G()};p.onMounted(()=>{K(),T(),S()});function J(){Wt.Modal.destroyAll()}function R(){var k,B;if((k=l.value)!=null&&k.length)i("submit",{...l.value[0],bindComponent:h.value,hasSuffix:""});else if((B=s.value)!=null&&B.length){const Z=A.value.find(ee=>ee.id===s.value[0]);i("submit",{...Z,id:r.id,bindComponent:h.value,hasSuffix:v.value})}Wt.Modal.destroyAll()}return(k,B)=>{const Z=ie.Input,ee=ie.FormItem,ce=ie.Button,Be=ie.Space,me=ie.Form,de=ie.Tooltip,Se=p.resolveComponent("a-table-ex"),je=ie.Modal;return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",p$,[p.createVNode(me,{class:"form-query mx-nm mt-nm",layout:"vertical",model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(ee,{label:k.$t("link.id")},{default:p.withCtx(()=>[p.createVNode(Z,{value:p.unref(o).id,"onUpdate:value":B[0]||(B[0]=he=>p.unref(o).id=he),placeholder:k.$t("common.plsEnter"),onKeydown:p.withKeys(G,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(ee,{label:k.$t("link.description")},{default:p.withCtx(()=>[p.createVNode(Z,{value:p.unref(o).description,"onUpdate:value":B[1]||(B[1]=he=>p.unref(o).description=he),placeholder:k.$t("common.plsEnter"),onKeydown:p.withKeys(G,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(ee,{class:"form-btns"},{default:p.withCtx(()=>[p.createVNode(Be,null,{default:p.withCtx(()=>[p.createVNode(ce,{type:"primary",onClick:G},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_search")),1)]),_:1}),p.createVNode(ce,{onClick:K},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),p.createVNode(Se,{ref_key:"tableEx",ref:C,class:"table-query bordered mx-nm",columns:p.unref(a),rowKey:"id","row-selection":{type:"radio",selectedRowKeys:p.unref(s),onChange:u},loadData:M},{bodyCell:p.withCtx(({record:he,column:Ve})=>[Ve.dataIndex==="action"?(p.openBlock(),p.createBlock(de,{key:0,placement:"top"},{title:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(k.$t("bpmn.tempConfigTip")),1)]),default:p.withCtx(()=>[p.createVNode(ce,{type:"link",onClick:$=>E(he),style:{"padding-left":"0"},disabled:!p.unref(s).includes(he.id)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("bpmn.tempConfig")),1)]),_:2},1032,["onClick","disabled"])]),_:2},1024)):p.createCommentVNode("",!0)]),_:1},8,["columns","row-selection"]),p.createVNode(Be,{class:"modal-btns"},{default:p.withCtx(()=>{var he;return[p.createVNode(ce,{onClick:J},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(ce,{type:"primary",disabled:!((he=p.unref(s))!=null&&he.length),onClick:R},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})]),p.createVNode(je,{open:p.unref(f),"onUpdate:open":B[3]||(B[3]=he=>p.isRef(f)?f.value=he:null),title:k.$t("bpmn.tempConfig"),onOk:g,onCancel:x},{default:p.withCtx(()=>[p.createVNode(f$,{data:p.unref(c),"onUpdate:data":B[2]||(B[2]=he=>p.isRef(c)?c.value=he:null),"template-list":p.unref(b)},null,8,["data","template-list"])]),_:1},8,["open","title"])],64)}}}),g$={class:"modal-container"},v$=p.defineComponent({__name:"SelectUser",props:{userIds:{type:String||Array},branchId:{type:String},mode:{type:String,default:"default"}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({}),a=p.ref([{title:n("user.user_name"),dataIndex:"userName"},{title:n("user.user_id"),dataIndex:"userCode"},{title:n("arrears.org"),dataIndex:"branchName"}]),s=p.ref([]),l=p.ref();function u(m,y){s.value=m,l.value=y}p.watchEffect(()=>{r.userIds&&(s.value=Array.isArray(r.userIds)?r.userIds:[r.userIds])});function c(m){l.value=null;const y={...o.value,branchId:r.branchId};return Object.assign(y,m),Gt.getUserList(y)}const d=p.ref(),f=()=>{d.value.refresh()},h=()=>{o.value={},f()};p.onMounted(()=>{h()});function v(){Wt.Modal.destroyAll()}function g(){var m;if((m=l.value)!=null&&m.length){const y=l.value;i("submit",r.mode==="multiple"?y:y[0])}Wt.Modal.destroyAll()}return(m,y)=>{const x=ie.Input,E=ie.FormItem,b=ie.Button,T=ie.Space,A=ie.Form,S=p.resolveComponent("a-table-ex");return p.openBlock(),p.createElementBlock("div",g$,[p.createVNode(A,{class:"form-query mx-nm mt-nm",layout:"vertical",model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(E,{label:m.$t("user.key")},{default:p.withCtx(()=>[p.createVNode(x,{value:p.unref(o).userName,"onUpdate:value":y[0]||(y[0]=M=>p.unref(o).userName=M),placeholder:m.$t("common.plsEnter"),onKeydown:p.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(E,{class:"form-btns"},{default:p.withCtx(()=>[p.createVNode(T,null,{default:p.withCtx(()=>[p.createVNode(b,{type:"primary",onClick:f},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_search")),1)]),_:1}),p.createVNode(b,{onClick:h},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),p.createVNode(S,{ref_key:"tableEx",ref:d,class:"table-query bordered mx-nm",columns:p.unref(a),rowKey:"userId","row-selection":{type:t.mode==="multiple"?"checkbox":"radio",selectedRowKeys:p.unref(s),onChange:u},loadData:c},null,8,["columns","row-selection"]),p.createVNode(T,{class:"modal-btns"},{default:p.withCtx(()=>{var M;return[p.createVNode(b,{onClick:v},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(b,{type:"primary",disabled:!((M=p.unref(s))!=null&&M.length),onClick:g},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),m$=p.defineComponent({__name:"UserTask",props:{formState:{},formStateModifiers:{}},emits:p.mergeModels(["updateNodeName"],["update:formState"]),setup(t,{emit:e}){const{modal:n}=Wt.App.useApp(),{t:r}=Dn.useI18n(),i=p.inject("type"),o=p.inject("isApproval"),a=p.useModel(t,"formState"),s=p.ref(["1","2","3","4","5","6"]),l=p.ref([]),u=p.ref([]),c=p.ref([]),d=p.computed(()=>{var S;const A=a.value.assignee;return(S=String(A))==null?void 0:S.startsWith("${")});function f(){const A="abcdefghijklmnopqrstuvwxyz";let S="";for(let M=0;M<2;M++)S+=A.charAt(Math.floor(Math.random()*A.length));for(let M=0;M<2;M++)S+=Math.floor(Math.random()*10);return S}function h(){console.log(a.value,"formState.value"),n.info({title:r("link.select_link"),content:p.h(h$,{id:a.value.id,variable:a.value.assignee,description:a.value.name,componentInfo:a.value.bindComponent,onSubmit:A=>{let S=A.id;const M=S!==a.value.id;S.endsWith("*")&&(A.hasSuffix?S=S.substring(0,S.length-1)+A.hasSuffix:S=S.substring(0,S.length-1)+f()),Object.assign(a.value,{id:S,name:o?g(S):`${i}.${S}`,assignee:"","camunda:assigneeName":"",priority:void 0,userArr:M?[]:a.value.userArr,roleArr:M?[]:a.value.roleArr,approveRank:"0"}),A.variable&&(a.value.assignee=`\${${A.variable}}`),a.value.bindComponent=A.bindComponent||void 0}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function v(){n.info({title:r("user.select_user"),content:p.h(v$,{userIds:a.value.assignee,onSubmit:A=>{Object.assign(a.value,{assignee:A.userId,"camunda:assigneeName":A.userName})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function g(A){return A.includes("common-approve-")?`bpmn.${A.slice(0,-4)}0`:`bpmn.${A}`}function m(A){A==0?a.value.name=r("bpmn.common-approve-0"):a.value.name=r(`bpmn.${a.value.id.slice(0,-4)}${A}`)}function y(){Gt.getBranchTree().then(A=>{A.code===0&&(l.value=A.result||[])})}function x(){const A={pageNo:1,pageSize:1e3,branchId:a.value.priority||void 0};Gt.getUserList(A).then(S=>{var M,C;S.code===0&&(c.value=((C=(M=S.result)==null?void 0:M.data)==null?void 0:C.map(G=>({...G,label:G.userName,value:G.userId})))||[])})}function E(){const A={pageNo:1,pageSize:1e3,branchId:a.value.priority||void 0};Gt.getRoleList(A).then(S=>{var M,C;S.code===0&&(u.value=((C=(M=S.result)==null?void 0:M.data)==null?void 0:C.map(G=>({...G,label:G.roleName,value:G.roleId})))||[])})}function b(){Object.assign(a.value,{userArr:[],roleArr:[]}),x(),E()}function T(A){if(A!=null&&A.length){const S=c.value.find(M=>M.userId===A[0]);a.value.priority!==S.branchId&&(Object.assign(a.value,{priority:S.branchId,roleArr:[]}),x(),E())}}return p.onMounted(()=>{y(),x(),E()}),(A,S)=>{const M=ie.Input,C=ie.FormItem,G=ie.InputNumber,K=ie.TreeSelect,J=ie.Select,R=ie.Form,k=ie.CollapsePanel,B=ie.Radio,Z=ie.RadioGroup,ee=ie.Checkbox,ce=ie.CheckboxGroup,Be=ie.Collapse;return p.openBlock(),p.createBlock(Be,{activeKey:p.unref(s),"onUpdate:activeKey":S[10]||(S[10]=me=>p.isRef(s)?s.value=me:null)},{default:p.withCtx(()=>[p.createVNode(k,{key:"1",header:A.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(R,{layout:"vertical",model:a.value},{default:p.withCtx(()=>[p.createVNode(C,{label:A.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(M,{value:a.value.id,"onUpdate:value":S[0]||(S[0]=me=>a.value.id=me),placeholder:A.$t("common.plsEnter"),readonly:"",onClick:h},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(M,{value:A.$t(a.value.name),disabled:"",placeholder:A.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),a.value.id&&a.value.id.includes("common-approve-")?(p.openBlock(),p.createBlock(C,{key:0,label:A.$t("FLOW_CHART.approve-rank")},{default:p.withCtx(()=>[p.createVNode(G,{style:{width:"100%"},value:a.value.approveRank,"onUpdate:value":S[1]||(S[1]=me=>a.value.approveRank=me),min:0,max:10,placeholder:A.$t("common.plsEnter"),onChange:m},null,8,["value","placeholder"])]),_:1},8,["label"])):p.createCommentVNode("",!0),p.createVNode(C,{label:A.$t("FLOW_CHART.Assignee")},{default:p.withCtx(()=>[p.unref(d)?(p.openBlock(),p.createBlock(M,{key:0,value:a.value.assignee,"onUpdate:value":S[2]||(S[2]=me=>a.value.assignee=me),placeholder:A.$t("common.plsSelect"),disabled:""},null,8,["value","placeholder"])):(p.openBlock(),p.createBlock(M,{key:1,value:a.value["camunda:assigneeName"],"onUpdate:value":S[3]||(S[3]=me=>a.value["camunda:assigneeName"]=me),placeholder:A.$t("common.plsSelect"),readonly:"",onClick:v},null,8,["value","placeholder"]))]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Priority")},{default:p.withCtx(()=>[p.createVNode(K,{value:a.value.priority,"onUpdate:value":S[4]||(S[4]=me=>a.value.priority=me),placeholder:A.$t("common.plsSelect"),"tree-data":p.unref(l),treeDefaultExpandAll:"",treeNodeFilterProp:"label","show-search":"","allow-clear":"",onChange:b},null,8,["value","placeholder","tree-data"])]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Candidate Users")},{default:p.withCtx(()=>[p.createVNode(J,{value:a.value.userArr,"onUpdate:value":S[5]||(S[5]=me=>a.value.userArr=me),placeholder:A.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:p.unref(c),optionFilterProp:"label",disabled:p.unref(d),onChange:T},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Candidate Groups")},{default:p.withCtx(()=>[p.createVNode(J,{value:a.value.roleArr,"onUpdate:value":S[6]||(S[6]=me=>a.value.roleArr=me),placeholder:A.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:p.unref(u),optionFilterProp:"label",disabled:p.unref(d)},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),p.unref(o)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(k,{key:"2",header:A.$t("FLOW_CHART.isAllowRollback")},{default:p.withCtx(()=>[p.createVNode(Z,{value:a.value.rollback,"onUpdate:value":S[7]||(S[7]=me=>a.value.rollback=me)},{default:p.withCtx(()=>[p.createVNode(B,{value:"1"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.yes")),1)]),_:1}),p.createVNode(B,{value:"0"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.no")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])),p.unref(o)?(p.openBlock(),p.createBlock(k,{key:"3",header:A.$t("FLOW_CHART.Approval Mode")},{default:p.withCtx(()=>[p.createVNode(Z,{value:a.value.approvalSign,"onUpdate:value":S[8]||(S[8]=me=>a.value.approvalSign=me)},{default:p.withCtx(()=>[p.createVNode(B,{value:"orSign"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.Or Sign")),1)]),_:1}),p.createVNode(B,{value:"countersign"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.countersign")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])):p.createCommentVNode("",!0),p.unref(o)?(p.openBlock(),p.createBlock(k,{key:"4",header:A.$t("FLOW_CHART.Approval Required")},{default:p.withCtx(()=>[p.createVNode(ce,{value:a.value.approvalCheckbox,"onUpdate:value":S[9]||(S[9]=me=>a.value.approvalCheckbox=me)},{default:p.withCtx(()=>[p.createVNode(ee,{value:"advice"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.Comments Required")),1)]),_:1}),p.createVNode(ee,{value:"attachment"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.Attachment Required")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])):p.createCommentVNode("",!0)]),_:1},8,["activeKey"])}}}),y$=p.defineComponent({__name:"ExclusiveGateway",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(t){const e=p.useModel(t,"formState"),n=p.ref(["1","2","3","4","5","6"]);return(r,i)=>{const o=ie.Input,a=ie.FormItem,s=ie.Form,l=ie.CollapsePanel,u=ie.Collapse;return p.openBlock(),p.createBlock(u,{activeKey:p.unref(n),"onUpdate:activeKey":i[2]||(i[2]=c=>p.isRef(n)?n.value=c:null)},{default:p.withCtx(()=>[p.createVNode(l,{key:"1",header:r.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(s,{layout:"vertical",model:e.value},{default:p.withCtx(()=>[p.createVNode(a,{label:r.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.id,"onUpdate:value":i[0]||(i[0]=c=>e.value.id=c),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.name,"onUpdate:value":i[1]||(i[1]=c=>e.value.name=c),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),_$=p.defineComponent({__name:"SequenceFlow",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(t){const e=p.useModel(t,"formState"),n=p.ref(["1","2","3","4","5","6"]);return(r,i)=>{const o=ie.Input,a=ie.FormItem,s=ie.SelectOption,l=ie.Select,u=ie.Form,c=ie.CollapsePanel,d=ie.Collapse;return p.openBlock(),p.createBlock(d,{activeKey:p.unref(n),"onUpdate:activeKey":i[4]||(i[4]=f=>p.isRef(n)?n.value=f:null)},{default:p.withCtx(()=>[p.createVNode(c,{key:"1",header:r.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(u,{layout:"vertical",model:e.value},{default:p.withCtx(()=>[p.createVNode(a,{label:r.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.id,"onUpdate:value":i[0]||(i[0]=f=>e.value.id=f),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.name,"onUpdate:value":i[1]||(i[1]=f=>e.value.name=f),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Condition Type")},{default:p.withCtx(()=>[p.createVNode(l,{value:e.value.condType,"onUpdate:value":i[2]||(i[2]=f=>e.value.condType=f),placeholder:r.$t("common.plsSelect"),allowClear:""},{default:p.withCtx(()=>[p.createVNode(s,{value:"bpmn:FormalExpression"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(r.$t("FLOW_CHART.Expression")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label"]),e.value.condType==="bpmn:FormalExpression"?(p.openBlock(),p.createBlock(a,{key:0,label:r.$t("FLOW_CHART.Expression")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.condBody,"onUpdate:value":i[3]||(i[3]=f=>e.value.condBody=f),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])):p.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),b$={class:"modal-container"},x$=p.defineComponent({__name:"SelectLink",props:{id:{type:String}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({}),a=p.ref([{title:n("link.id"),dataIndex:"id"},{title:n("link.description"),dataIndex:"description"},{title:n("link.due"),dataIndex:"due"},{title:n("link.variable"),dataIndex:"variable"}]),s=p.ref([]),l=p.ref();function u(m,y){s.value=m,l.value=y}p.watchEffect(()=>{r.id&&(s.value=[r.id])});function c(m){l.value=null;const y={...o.value};return Object.assign(y,m),Gt.getLinkList(y)}const d=p.ref(),f=()=>{d.value.refresh()},h=()=>{o.value={},f()};p.onMounted(()=>{h()});function v(){Wt.Modal.destroyAll()}function g(){var m;(m=l.value)!=null&&m.length&&i("submit",l.value[0]),Wt.Modal.destroyAll()}return(m,y)=>{const x=ie.Input,E=ie.FormItem,b=ie.Button,T=ie.Space,A=ie.Form,S=p.resolveComponent("a-table-ex");return p.openBlock(),p.createElementBlock("div",b$,[p.createVNode(A,{class:"form-query mx-nm mt-nm",layout:"vertical",model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(E,{label:m.$t("link.id")},{default:p.withCtx(()=>[p.createVNode(x,{value:p.unref(o).id,"onUpdate:value":y[0]||(y[0]=M=>p.unref(o).id=M),placeholder:m.$t("common.plsEnter"),onKeydown:p.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(E,{label:m.$t("link.description")},{default:p.withCtx(()=>[p.createVNode(x,{value:p.unref(o).description,"onUpdate:value":y[1]||(y[1]=M=>p.unref(o).description=M),placeholder:m.$t("common.plsEnter"),onKeydown:p.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(E,{class:"form-btns"},{default:p.withCtx(()=>[p.createVNode(T,null,{default:p.withCtx(()=>[p.createVNode(b,{type:"primary",onClick:f},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_search")),1)]),_:1}),p.createVNode(b,{onClick:h},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),p.createVNode(S,{ref_key:"tableEx",ref:d,class:"table-query bordered mx-nm",columns:p.unref(a),rowKey:"id","row-selection":{type:"radio",selectedRowKeys:p.unref(s),onChange:u},loadData:c},null,8,["columns","row-selection"]),p.createVNode(T,{class:"modal-btns"},{default:p.withCtx(()=>{var M;return[p.createVNode(b,{onClick:v},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(b,{type:"primary",disabled:!((M=p.unref(s))!=null&&M.length),onClick:g},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),E$=p.defineComponent({__name:"EndEvent",props:{formState:{},formStateModifiers:{}},emits:p.mergeModels(["updateNodeName"],["update:formState"]),setup(t,{emit:e}){const{modal:n}=Wt.App.useApp(),{t:r}=Dn.useI18n(),i=p.useModel(t,"formState"),o=p.ref(["1","2","3","4","5","6"]);function a(){const c="abcdefghijklmnopqrstuvwxyz";let d="";for(let f=0;f<2;f++)d+=c.charAt(Math.floor(Math.random()*c.length));for(let f=0;f<2;f++)d+=Math.floor(Math.random()*10);return d}const s=e;function l(){s("updateNodeName",i.value.id,i.value.name)}function u(){n.info({title:r("link.select_link"),content:p.h(x$,{id:i.value.id,onSubmit:c=>{let d=c.id;d.endsWith("*")&&(d=d.substring(0,d.length-1)+a()),Object.assign(i.value,{id:d,name:"bpmn.endName"})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}return(c,d)=>{const f=ie.Input,h=ie.FormItem,v=ie.Form,g=ie.CollapsePanel,m=ie.Collapse;return p.openBlock(),p.createBlock(m,{activeKey:p.unref(o),"onUpdate:activeKey":d[1]||(d[1]=y=>p.isRef(o)?o.value=y:null)},{default:p.withCtx(()=>[p.createVNode(g,{key:"1",header:c.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(v,{layout:"vertical",model:i.value},{default:p.withCtx(()=>[p.createVNode(h,{label:c.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(f,{value:i.value.id,"onUpdate:value":d[0]||(d[0]=y=>i.value.id=y),placeholder:c.$t("common.plsEnter"),readonly:"",onClick:u},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(h,{label:c.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(f,{value:c.$t(i.value.name),disabled:"",placeholder:c.$t("common.plsEnter"),onChange:l},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),w$=p.defineComponent({__name:"Other",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(t){const e=p.useModel(t,"formState"),n=p.ref(["1","2","3","4","5","6"]);return(r,i)=>{const o=ie.Input,a=ie.FormItem,s=ie.Form,l=ie.CollapsePanel,u=ie.Collapse;return p.openBlock(),p.createBlock(u,{activeKey:p.unref(n),"onUpdate:activeKey":i[2]||(i[2]=c=>p.isRef(n)?n.value=c:null)},{default:p.withCtx(()=>[p.createVNode(l,{key:"1",header:r.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(s,{layout:"vertical",model:e.value},{default:p.withCtx(()=>[p.createVNode(a,{label:r.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.id,"onUpdate:value":i[0]||(i[0]=c=>e.value.id=c),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.name,"onUpdate:value":i[1]||(i[1]=c=>e.value.name=c),disabled:"",placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),S$={class:"properties-panel"},C$=Qr(p.defineComponent({__name:"BpmnPropertiesPanel",props:{lfRef:{type:Object},isEdit:{type:Boolean},processAttrs:{type:Object}},emits:["changeProcess"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=e,i=t,o=p.ref(""),a=p.ref({}),s=p.ref({});let l;p.watch(()=>i.lfRef,()=>{i.lfRef&&(s.value=i.lfRef,u())}),p.watch(a,(h,v)=>{h===v&&d()},{deep:!0});function u(){s.value.on("node:click",({data:h,e:v,position:g})=>{c(h)}),s.value.on("edge:click,",({data:h,e:v,position:g})=>{c(h)}),s.value.on("blank:click",({e:h})=>{o.value="bpmn:process",a.value={id:i.processAttrs.id||"Process_1",name:i.processAttrs.name,jobPriority:i.processAttrs["camunda:jobPriority"]}})}function c(h){var m;if(!h||l===h)return;l=h;const v=h.type;o.value="",p.nextTick(()=>{o.value=v});const g={...h.properties,id:h.id,name:((m=h.text)==null?void 0:m.value)||""};v==="bpmn:userTask"?(Object.assign(g,{rollback:g["camunda:rollback"]==="1"?"1":"0",approvalCheckbox:[]}),Object.assign(g,{approvalSign:g["camunda:countersign"]==="true"?"countersign":"orSign",approvalCheckbox:[]}),g["camunda:assignee"]&&(g.assignee=g["camunda:assignee"]),g["camunda:priority"]&&(g.priority=g["camunda:priority"]),g["camunda:advice"]==="true"&&g.approvalCheckbox.push("advice"),g["camunda:attachment"]==="true"&&g.approvalCheckbox.push("attachment"),g["camunda:bindComponent"]&&(g.bindComponent=g["camunda:bindComponent"]),g.hasOwnProperty("camunda:approveRank")?g.approveRank=g["camunda:approveRank"]:g.id.includes("common-approve-")&&(g.approveRank=0),typeof g["camunda:candidateUsers"]=="number"?g.userArr=[g["camunda:candidateUsers"].toString()]:typeof g["camunda:candidateUsers"]=="string"?g.userArr=(g["camunda:candidateUsers"]||"").split(",").filter(y=>y):g.userArr=[],typeof g["camunda:candidateGroups"]=="number"?g.roleArr=[g["camunda:candidateGroups"].toString()]:typeof g["camunda:candidateGroups"]=="string"?g.roleArr=(g["camunda:candidateGroups"]||"").split(",").filter(y=>y):g.roleArr=[]):v==="bpmn:sequenceFlow"&&(console.log("data.properties",h.properties,h.properties["bpmn:conditionExpression"]),h.properties["bpmn:conditionExpression"]&&Object.assign(g,{condType:h.properties["bpmn:conditionExpression"]["xsi:type"],condBody:h.properties["bpmn:conditionExpression"]["#text"].replace(/\s+/g,"")})),a.value=g}function d(){var m,y;const h=a.value;function v(x){return x?"true":"false"}const g={id:h.id,name:h.name};if(console.log("bpmnType.value",o.value),o.value==="bpmn:process")h.jobPriority&&Object.assign(g,{"camunda:jobPriority":h.jobPriority}),r("changeProcess",g);else if(o.value==="bpmn:userTask"){Object.assign(g,{"camunda:orSign":v(h.approvalSign==="orSign"),"camunda:rollback":h.rollback==="1"?"1":"0","camunda:countersign":v(h.approvalSign==="countersign"),"camunda:advice":v(h.approvalCheckbox.includes("advice")),"camunda:attachment":v(h.approvalCheckbox.includes("attachment")),"camunda:assignee":h.assignee||"","camunda:assigneeName":h["camunda:assigneeName"]||"","camunda:priority":h.priority||"","camunda:candidateUsers":((m=h.userArr)==null?void 0:m.join())||"","camunda:candidateGroups":((y=h.roleArr)==null?void 0:y.join())||"","camunda:bindComponent":h.bindComponent||"","camunda:approveRank":h.approveRank,"camunda:transName":h.name,name:n(h.name)}),console.log("activeNode.id, attrs",l.id,g);const{id:x}=l,{id:E}=h;E&&x!==E&&s.value.changeNodeId(x,E),s.value.getNodeModelById(E).setProperties(g),s.value.updateText(E,n(h.name))}}function f(h,v){l.id&&(s.value.setProperties(l.id,{name:v}),s.value.updateText(l.id,v))}return(h,v)=>{const g=zm;return p.openBlock(),p.createElementBlock("div",S$,[p.createVNode(g,null,{default:p.withCtx(()=>[p.unref(o)==="bpmn:process"?(p.openBlock(),p.createBlock(d$,{key:0,formState:p.unref(a),"onUpdate:formState":v[0]||(v[0]=m=>p.isRef(a)?a.value=m:null),isEdit:t.isEdit},null,8,["formState","isEdit"])):p.unref(o)==="bpmn:userTask"?(p.openBlock(),p.createBlock(m$,{key:1,formState:p.unref(a),"onUpdate:formState":v[1]||(v[1]=m=>p.isRef(a)?a.value=m:null),onUpdateNodeName:f},null,8,["formState"])):p.unref(o)==="bpmn:exclusiveGateway"?(p.openBlock(),p.createBlock(y$,{key:2,formState:p.unref(a),"onUpdate:formState":v[2]||(v[2]=m=>p.isRef(a)?a.value=m:null)},null,8,["formState"])):p.unref(o)==="bpmn:sequenceFlow"?(p.openBlock(),p.createBlock(_$,{key:3,formState:p.unref(a),"onUpdate:formState":v[3]||(v[3]=m=>p.isRef(a)?a.value=m:null)},null,8,["formState"])):p.unref(o)==="bpmn:endEvent"?(p.openBlock(),p.createBlock(E$,{key:4,formState:p.unref(a),"onUpdate:formState":v[4]||(v[4]=m=>p.isRef(a)?a.value=m:null),onUpdateNodeName:f},null,8,["formState"])):p.unref(o)?(p.openBlock(),p.createBlock(w$,{key:5,formState:p.unref(a),"onUpdate:formState":v[5]||(v[5]=m=>p.isRef(a)?a.value=m:null)},null,8,["formState"])):p.createCommentVNode("",!0)]),_:1})])}}}),[["__scopeId","data-v-fe59c58a"]]),Lp="menu-common",Nx=200,A$=100;class Mx{constructor({lf:e}){Yp(this,"setContextMenuByType",(e,n)=>{this.menuTypeMap.set(e,n)});Yp(this,"listenDelete",()=>{this.hideContextMenu()});this.menuTypeMap=new Map,this.lf=e,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set(Lp,[])}render(e,n){this.container=n,e.on("node:click",({data:r})=>{this._activeData=r,this.createContextMenu(),console.log(r)}),e.on("edge:click",({data:r})=>{this._activeData=r,this.createContextMenu()}),e.on("blank:click",()=>{this.hideContextMenu()})}hideContextMenu(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}showContextMenu(e){if(!e||!e.id){console.warn("请检查传入的参数");return}this._activeData=e,this.createContextMenu()}setContextMenuItems(e){this.menuTypeMap.set(Lp,e)}getContextMenuPosition(){const e=this._activeData,n=this.lf.graphModel.getElement(e.id);if(!n){console.warn(`找不到元素${e.id}`);return}let r,i;if(n.BaseType==="edge"){r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER;const o=n.getData();r=Math.max(o.startPoint.x,r),i=Math.min(o.startPoint.y,i),r=Math.max(o.endPoint.x,r),i=Math.min(o.endPoint.y,i),o.pointsList&&o.pointsList.forEach(a=>{r=Math.max(a.x,r),i=Math.min(a.y,i)})}return n.BaseType==="node"&&(r=e.x+n.width/2,i=e.y-n.height/2),this.lf.graphModel.transformModel.CanvasPointToHtmlPoint([r,i])}createContextMenu(){const{isSilentMode:e}=this.lf.options;if(e)return;let n=this.menuTypeMap.get(this._activeData.type)||[];n=n.concat(this.menuTypeMap.get(Lp));const r=document.createDocumentFragment();n.forEach(i=>{const o=document.createElement("div");o.className="lf-context-item";const a=document.createElement("img");a.src=i.icon,a.className="lf-context-img",i.className&&(o.className=`${o.className} ${i.className}`),a.addEventListener("click",()=>{this.hideContextMenu(),i.callback?i.callback(this._activeData):this.addNode({sourceId:this._activeData.id,x:this._activeData.x,y:this._activeData.y,properties:i.properties,type:i.type,text:i.text||""})}),o.appendChild(a),r.appendChild(o)}),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(r),this.showMenu()}addNode(e,n){const r=n!==void 0;n===void 0&&(n=e.y);const i=this.lf.getNodeModelById(e.sourceId),o=e.x-100+Nx,a=n-e.y/2-20,s=e.x+100+Nx,l=n+e.y/2+20,u=this.lf.getAreaElement([o,a],[s,l]);if(console.log(u),u.length){n=n+A$,this.addNode(e,n);return}const c=this.lf.addNode({type:e.type,x:e.x+200,y:n,properties:e.properties,text:e.text});let d,f;r&&(d={x:e.x,y:e.y+i.height/2},f={x:c.x-c.width/2,y:c.y}),this.lf.addEdge({sourceNodeId:e.sourceId,targetNodeId:c.id,startPoint:d,endPoint:f})}showMenu(){const[e,n]=this.getContextMenuPosition();this.__menuDOM.style.display="flex",this.__menuDOM.style.top=`${n}px`,this.__menuDOM.style.left=`${e+10}px`,this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}}Mx.pluginName="contextPad";const O$=(t,e)=>{const n={type:"bpmn:userTask",label:e("bpmn.userTaskName"),text:e("bpmn.userTaskName"),properties:{"camunda:transName":"bpmn.userTaskName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAp1JREFUWEftlj9oE2EYxp/3IkSckotOpqDgl5ZWcLBgxcVBdBL8gw66iCg2lxrBzcl0qpPS1lyQKm5uiuBUHBztoAjVVtOLRDA46Z06VAvmXkkwQWLS3PudQwn54KY8z/v8eO7uvRA2+KENzoc+YNg71PsNxm6VYxStnibwIQCnAF4kptcMv+RWjSlk1VqYFkM1mLCLx5jpJoh2doD4zoQpL61u6EJqA5oF5zwY9wIFE3JuWk0G0raItAATd8r7uPprQRRoYMQdV8siD6C3ZkzbeQ5gTBLGwGPPUsclnppW3GCs8HaHwZvK0iAAq5sj37Z9ujS6KvGKARP5lXNMdF8S0tT6fNidSD2VeMWAcfv9OMEvSEKaWo2XRQwYm3UOGhE80wEk5pNfMqlHEq8YMFEobmc2KpKQhpZR3eNZQ4sSrxiwNty0Sw8BPiEJAujDlp/R4crVgR8Snxagzm1m8FnPSj2QwGmtmUaAaTtzAC4ECWTCNd3PnVaDDahEoZRl5ul1ITVWy9/zQgHWBsULpQPw+QwIw2CM1IcTlsBYZgN3v6bVqyAtd9KEBgwTHsTb+4DmnJPEGgZgIAlCst4KowIfFUTx0b2otHZmo11xg+ZtZz8iGAPjCFC/gpx5EOZRxYI7oWr/hAKfQIBb7XeDDOMKMx1tthQ4okXIqBDxE4I//dkaKnYb0xXQzBdzoEgW4Hi3YbLfyQNXZ9zMYG4937qApu28Af6sDlm6RL3kWmq3eM3EbecFAXslSbpaBl56lhpt52/bYNxemSHQZd1AHR+DZz0rlW31tgfMOw4RdukE6XqYUfIySgUCNG2HdYPC+FxL/VNY2wb7gB1q7qEG68vZuB7meRJ72Z9st7S7fknEQf/Z0AcMW2i/wbAN/gbA1dYpL5kz5gAAAABJRU5ErkJggg==",properties:{actived:!0}},r={type:"bpmn:serviceTask",label:e("bpmn.serviceTaskName"),text:e("bpmn.serviceTaskName"),properties:{"camunda:transName":"bpmn.serviceTaskName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAz9JREFUWEfVmEtoE1EUhv8zqaBgwUwi+K5CJqkoumhBxY11IVTBhaBUUNCFtplQRRSrK+vKVrTgYyZUF7qRigV3dqFg3YhdtAsLapIJKK2vRToRqgtpM0cmtTVJE3IzyWKcXTL/+c83c+/cc+4luPwil/OhKsCVWjJgEVqZM75iD8rk+co08/xHePMnpy/CMaANlyE2RBJbNLvJKaRjQF/UuMaMSyKAROiZCiuXRbSFGseAsp4cALhNLCk9NtXAUTFtvqoKQOMNgJ2CSUdMVdklqM2TlQRc1ze57NfS38eJM2uY+GlabRzPjZR14xuAVYJJv5uqsjpX69Vj24jpECRpAoQRs0N5X8yrKKCsJdeDeBDAjvkgBl5JzHdm6+itlEEfAQcF4eZkRENShs4xZbZaRJ0E7MmJfwemVjMSmBSag7KWvAXiMxUBVCtmum1GAmfLAvq1ZItF/LLafE7iJaa9qUhgODd20RDL0eQzMO93kqDqGKIhMxw4UBJQ1uKnQNK9yhPxFwYZEjhmEc0SEAIoBOYNFXuxddqMhO7Pxy28wfr+uH9JRnoNIFiJKTGfnIoEHxaL8WqJi0TUW4kfgMSMx9o93R5KZb+t+WBZNw4DeFKJmUgJ8+vJJgs8WokvE46lw8qjfEAt3g2SrogaSaDmlBoYE9GviH7YKHHdRxFtVsPWVTMS6s4DtH94dWOUgKZyRszclY4Er5fT5d73aYkTTPSgfAyPm2pw+6I5aP/h743VW8ulfhCVrptEE2Y40FA+0WKFrCc+A7S2ZCzzgPTTak91NU4XBVyYj1r8PEi6UdSI8MIMK/ucAHp1Y7iggvyzYeuCGQndLPQtWYtLmTHhbjqsdDoB9OmJKIM6CmPtMppWlZZinv8noOzWIXb9R+LqZUZ2+0Lt+lLn+mbBXoNc3W4tVBE3N6zZeuz2ln9uqF28afoLWHLbyR6Kwco2tlsqqcfMSHqI2pithqq3nXZigY27abeQgpBpU1XkXG1VG3eRpKJVJ9sgA2NpVWkW8RVut8qZybphD7O9jxG5Bk1VOSIirBmgTzd6GOgSSUpA75SqCB3V1QzQ9QeY9pO6+ghYZGhroXF8gFmL5CIefwB0scE4DheJlAAAAABJRU5ErkJggg==",cls:"import_icon"},i={type:"bpmn:exclusiveGateway",label:e("bpmn.exclusiveGatewayName"),properties:{"camunda:transName":"bpmn.exclusiveGatewayName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAAHeEJUAAAAABGdBTUEAALGPC/xhBQAAAvVJREFUOBGNVEFrE0EU/mY3bQoiFlOkaUJrQUQoWMGePLX24EH0IIoHKQiCV0G8iE1covgLiqA/QTzVm1JPogc9tIJYFaQtlhQxqYjSpunu+L7JvmUTU3AgmTfvffPNN++9WSA1DO182f6xwILzD5btfAoQmwL5KJEwiQyVbSVZ0IgRyV6PTpIJ81E5ZvqfHQR0HUOBHW4L5Et2kQ6Zf7iAOhTFAA8s0pEP7AXO1uAA52SbqGk6h/6J45LaLhO64ByfcUzM39V7ZiAdS2yCePPEIQYvTUHqM/n7dgQNfBKWPjpF4ISk8q3J4nB11qw6X8l+FsF3EhlkEMfrjIer3wJTLwS2aCNcj4DbGxXTw00JmAuO+Ni6bBxVUCvS5d9aa04+so4pHW5jLTywuXAL7jJ+D06sl82Sgl2JuVBQn498zkc2bGKxULHjCnSMadBKYDYYHAtsby1EQ5lNGrQd4Y3v4Zo0XdGEmDno46yCM9Tk+RiJmUYHS/aXHPNTcjxcbTFna000PFJHIVZ5lFRqRpJWk9/+QtlOUYJj9HG5pVFEU7zqIYDVsw2s+AJaD8wTd2umgSCCyUxgGsS1Y6TBwXQQTFuZaHcd8gAGioE90hlsY+wMcs30RduYtxanjMGal8H5dMW67dmT1JFtYUEe8LiQLRsPZ6IIc7A4J5tqco3T0pnv/4u0kyzrYUq7gASuEyI8VXKvB9Odytv6jS/PNaZBln0nioJG/AVQRZvApOdhjj3Jt8QC8Im09SafwdBdvIpztpxWxpeKCC+EsFdS8DCyuCn2munFpL7ctHKp+Xc5cMybeIyMAN33SPL3ZR9QV1XVwLyzHm6Iv0/yeUuUb7PPlZC4D4HZkeu6dpF4v9j9MreGtMbxMMRLIcjJic9yHi7WQ3yVKzZVWUr5UrViJvn1FfUlwe/KYVfYyWRLSGNu16hR01U9IacajXPei0wx/5BqgInvJN+MMNtNme7ReU9SBbgntovn0kKHpFg7UogZvaZiOue/q1SBo9ktHzQAAAAASUVORK5CYII="},o={type:"bpmn:endEvent",label:e("bpmn.endName"),text:e("bpmn.endName"),properties:{"camunda:transName":"bpmn.endName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAA1BJREFUOBFtVE1IVUEYPXOf+tq40Y3vPcmFIdSjIorWoRG0ERWUgnb5FwVhYQSl72oUoZAboxKNFtWiwKRN0M+jpfSzqJAQclHo001tKkjl3emc8V69igP3znzfnO/M9zcDcKT67azmjYWTwl9Vn7Vumeqzj1DVb6cleQY4oAVnIOPb+mKAGxQmKI5CWNJ2aLPatxWa3aB9K7/fB+/Z0jUF6TmMlFLQqrkECWQzOZxYGjTlOl8eeKaIY5yHnFn486xBustDjWT6dG7pmjHOJd+33t0iitTPkK6tEvjxq4h2MozQ6WFSX/LkDUGfFwfhEZj1Auz/U4pyAi5Sznd7uKzznXeVHlI/Aywmk6j7fsUsEuCGADrWARXXwjxWQsUbIupDHJI7kF5dRktg0eN81IbiZXiTESic50iwS+t1oJgL83jAiBupLDCQqwziaWSoAFSeIR3P5Xv5az00wyIn35QRYTwdSYbz8pH8fxUUAtxnFvYmEmgI0wYXUXcCCSpeEVpXlsRhBnCEATxWylL9+EKCAYhe1NGstUa6356kS9NVvt3DU2fd+Wtbm/+lSbylJqsqkSm9CRhvoJVlvKPvF1RKY/FcPn5j4UfIMLn8D4UYb54BNsilTDXKnF4CfTobA0FpoW/LSp306wkXM+XaOJhZaFkcNM82ASNAWMrhrUbRfmyeI1FvRBTpN06WKxa9BK0o2E4Pd3zfBBEwPsv9sQBnmLVbLEIZ/Xe9LYwJu/Er17W6HYVBc7vmuk0xUQ+pqxdom5Fnp55SiytXLPYoMXNM4u4SNSCFWnrVIzKG3EGyMXo6n/BQOe+bX3FClY4PwydVhthOZ9NnS+ntiLh0fxtlUJHAuGaFoVmttpVMeum0p3WEXbcll94l1wM/gZ0Ccczop77VvN2I7TlsZCsuXf1WHvWEhjO8DPtyOVg2/mvK9QqboEth+7pD6NUQC1HN/TwvydGBARi9MZSzLE4b8Ru3XhX2PBxf8E1er2A6516o0w4sIA+lwURhAON82Kwe2iDAC1Watq4XHaGQ7skLcFOtI5lDxuM2gZe6WFIotPAhbaeYlU4to5cuarF1QrcZ/lwrLaCJl66JBocYZnrNlvm2+MBCTmUymPrYZVbjdlr/BxlMjmNmNI3SAAAAAElFTkSuQmCC"},a={icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAUpJREFUWEftVzuywjAMlKgDPV2g4RYPuAnfDs7w4AzQ8b0Jn1vQQDp6SI0YFwFPSMC2EiYZnDLZldYrybERGI/XLs4Aofc2BMHcXV37pmnQlOh1SwMgmijxEYfu4jJVwoZARgKPXeevQLjTSXhDqlcX/l6HI7APgaeOM0LCulIAhDIA1JSwT9ABCM4qHELaVZb+6FUg4L9KgLQxBDTOqUDVEqdsYWSJU85pHN5oio2zGRDzK/DUchpYwI3BorUpdKNmZe1vo4ixDlqBkl2JOCiCaNfuDUFun0QEustrogPldYoU6P9dgWKQ5CoGkxj3XsZ+xcG4JOEdIKo9rEBRLuugfKIOb1mcPuJwwzqUf3U6jW4FCps5LnC4tsRc962D1sGgBziTyOHaHsxUD2b+wMq5RH3lwJopgZm/dnLc+sRN5Nr5KQnne64F3gEyDFZHJCakvQAAAABJRU5ErkJggg==",callback:s=>{t.deleteElement(s.id),t.extension.contextPad.hideContextMenu()}};t.extension.contextPad.setContextMenuItems([a]),t.extension.contextPad.setContextMenuByType("bpmn:startEvent",[n,r,i]),t.extension.contextPad.setContextMenuByType("bpmn:userTask",[n,r,i,o]),t.extension.contextPad.setContextMenuByType("bpmn:serviceTask",[n,r,i,o]),t.extension.contextPad.setContextMenuByType("bpmn:exclusiveGateway",[n,r])};var Ip={};const Dx=TI(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Px;function T$(){return Px||(Px=1,function(t){(function(e){e.parser=function(w,_){return new r(w,_)},e.SAXParser=r,e.SAXStream=c,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(w,_){if(!(this instanceof r))return new r(w,_);var F=this;o(F),F.q=F.c="",F.bufferCheckPosition=e.MAX_BUFFER_LENGTH,F.opt=_||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!w,F.noscript=!!(w||F.opt.noscript),F.state=C.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=Object.create(g)),F.opt.unquotedAttributeValues===void 0&&(F.opt.unquotedAttributeValues=!w),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),K(F,"onready")}Object.create||(Object.create=function(w){function _(){}_.prototype=w;var F=new _;return F}),Object.keys||(Object.keys=function(w){var _=[];for(var F in w)w.hasOwnProperty(F)&&_.push(F);return _});function i(w){for(var _=Math.max(e.MAX_BUFFER_LENGTH,10),F=0,L=0,se=n.length;L<se;L++){var fe=w[n[L]].length;if(fe>_)switch(n[L]){case"textNode":R(w);break;case"cdata":J(w,"oncdata",w.cdata),w.cdata="";break;case"script":J(w,"onscript",w.script),w.script="";break;default:B(w,"Max buffer length exceeded: "+n[L])}F=Math.max(F,fe)}var Ne=e.MAX_BUFFER_LENGTH-F;w.bufferCheckPosition=Ne+w.position}function o(w){for(var _=0,F=n.length;_<F;_++)w[n[_]]=""}function a(w){R(w),w.cdata!==""&&(J(w,"oncdata",w.cdata),w.cdata=""),w.script!==""&&(J(w,"onscript",w.script),w.script="")}r.prototype={end:function(){Z(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=Dx.Stream}catch{s=function(){}}s||(s=function(){});var l=e.EVENTS.filter(function(w){return w!=="error"&&w!=="end"});function u(w,_){return new c(w,_)}function c(w,_){if(!(this instanceof c))return new c(w,_);s.apply(this),this._parser=new r(w,_),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(L){F.emit("error",L),F._parser.error=null},this._decoder=null,l.forEach(function(L){Object.defineProperty(F,"on"+L,{get:function(){return F._parser["on"+L]},set:function(se){if(!se)return F.removeAllListeners(L),F._parser["on"+L]=se,se;F.on(L,se)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(s.prototype,{constructor:{value:c}}),c.prototype.write=function(w){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(w)){if(!this._decoder){var _=Dx.StringDecoder;this._decoder=new _("utf8")}w=this._decoder.write(w)}return this._parser.write(w.toString()),this.emit("data",w),!0},c.prototype.end=function(w){return w&&w.length&&this.write(w),this._parser.end(),!0},c.prototype.on=function(w,_){var F=this;return!F._parser["on"+w]&&l.indexOf(w)!==-1&&(F._parser["on"+w]=function(){var L=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,w),F.emit.apply(F,L)}),s.prototype.on.call(F,w,_)};var d="[CDATA[",f="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",g={xml:h,xmlns:v},m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(w){return w===" "||w===`
|
|
153
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q5(t,e){if(t){if(typeof t=="string")return Ax(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ax(t,e)}}function Ax(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Z5(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function J5(t){if(Array.isArray(t))return t}function Ox(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ps(t,i,n[i])})}return t}function ps(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q5(t,e){if(t==null)return{};var n=e$(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function e$(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}Cx(_5.primary);var Jo=function(e,n){var r,i=Ox({},e,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,d=i.onClick,f=Q5(i,G5),h=hx(),v=h.prefixCls,g=h.rootClassName,m=(r={},ps(r,g.value,!!g.value),ps(r,v.value,!0),ps(r,"".concat(v.value,"-").concat(a.name),!!a.name),ps(r,"".concat(v.value,"-spin"),!!s||a.name==="loading"),r),y=u;y===void 0&&d&&(y=-1);var x=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=Ex(c),b=Y5(E,2),T=b[0],A=b[1];return p.createVNode("span",Ox({role:"img","aria-label":a.name},f,{onClick:d,class:[m,o],tabindex:y}),[p.createVNode(Di,{icon:a,primaryColor:T,secondaryColor:A,style:x},null),p.createVNode(X5,null,null)])};Jo.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Jo.displayName="AntdIcon",Jo.inheritAttrs=!1,Jo.getTwoToneColor=V5,Jo.setTwoToneColor=Cx;var t$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function Tx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){n$(t,i,n[i])})}return t}function n$(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rp=function(e,n){var r=Tx({},e,n.attrs);return p.createVNode(Jo,Tx({},r,{icon:t$}),null)};Rp.displayName="EditOutlined",Rp.inheritAttrs=!1;const r$=Qr(p.defineComponent({inheritAttrs:!1,__name:"index",props:p.mergeModels({dictType:{type:String,default:""},include:{type:[Array,String]},exclude:{type:Array},sort:{type:Boolean}},{dictMap:{type:Object},dictMapModifiers:{}}),emits:["update:dictMap"],setup(t){const e=t,n=p.useModel(t,"dictMap"),[r,{fetchDict:i,toList:o}]=eh(e.dictType,{immediate:!1}),a=p.computed(()=>{var l;const s=o(e.dictType);if(e.sort&&s.sort((u,c)=>parseFloat(u.value)-parseFloat(c.value)),e.include){const u=typeof e.include=="string"?e.include.split(","):e.include;return s.filter(c=>u.includes(c.value))}return(l=e.exclude)!=null&&l.length?s.filter(u=>{var c;return!((c=e.exclude)!=null&&c.includes(u.value))}):s});return e.dictType&&i(),p.watch(()=>r.value,()=>{if(n.value&&typeof n.value=="object")for(const s in r.value)n.value[s]=r.value}),(s,l)=>{const u=ie.Select;return p.openBlock(),p.createBlock(u,p.mergeProps({class:"dict-select",placeholder:s.$t("common.plsSelect"),showSearch:!1,options:p.unref(a),dropdownMatchSelectWidth:!1},s.$attrs),null,16,["placeholder","options"])}}}),[["__scopeId","data-v-02a7899b"]]),i$={class:"wrapper"},o$={class:"mt-xs"},a$={class:"flex-sc"},s$={class:"mt-xs"},l$=Qr(p.defineComponent({__name:"RuleConfig",props:{jsonStr:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({});function a(d){const f=d.replace(/(false|true|\d+)(?=")/g,"$1,");return JSON.parse(`{${f}}`)}function s(d){if(typeof d=="string"&&(d.trim().startsWith("{")||d.trim().startsWith("[")))try{return JSON.parse(d),!0}catch{return!1}return!1}function l(){r.jsonStr?(s(r.jsonStr)?o.value=JSON.parse(r.jsonStr):o.value=a(r.jsonStr),o.value.fallbackFirstLinkStatus!==null&&o.value.fallbackFirstLinkStatus!==void 0&&(o.value.fallbackFirstLinkStatus=String(o.value.fallbackFirstLinkStatus))):o.value={revokeRule:!1,fallbackRule:!1,approverRemoveDuplicates:2,timeoutConfigSwitch:!1,timeoutPeriod:1,timeoutHandler:1,fallbackFirstLinkStatus:null}}function u(){Wt.Modal.destroyAll()}function c(){const d=o.value;if(d.timeoutConfigSwitch&&!d.timeoutPeriod){Wt.message.warning(n("bpmn.timeoutPeriodEmptyTip"));return}d.fallbackFirstLinkStatus&&(d.fallbackFirstLinkStatus=Number(d.fallbackFirstLinkStatus)),i("submit",o.value),Wt.Modal.destroyAll()}return p.onMounted(()=>{l()}),(d,f)=>{const h=ie.Checkbox,v=ie.FormItem,g=ie.Radio,m=ie.RadioGroup,y=ie.InputNumber,x=r$,E=ie.Form,b=ie.Button,T=ie.Space;return p.openBlock(),p.createElementBlock("div",i$,[p.createVNode(E,{class:"my-nm","label-col":{span:6},"wrapper-col":{span:18},colon:!1,model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(v,{label:d.$t("bpmn.revertRule")},{default:p.withCtx(()=>[p.createVNode(h,{checked:p.unref(o).revokeRule,"onUpdate:checked":f[0]||(f[0]=A=>p.unref(o).revokeRule=A)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.revertRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.rollbackRule")},{default:p.withCtx(()=>[p.createVNode(h,{checked:p.unref(o).fallbackRule,"onUpdate:checked":f[1]||(f[1]=A=>p.unref(o).fallbackRule=A)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.rollbackRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.deduplicationApprovers")},{default:p.withCtx(()=>[p.createElementVNode("div",o$,p.toDisplayString(d.$t("bpmn.deduplicationApproversTxt")),1),p.createVNode(m,{value:p.unref(o).approverRemoveDuplicates,"onUpdate:value":f[2]||(f[2]=A=>p.unref(o).approverRemoveDuplicates=A)},{default:p.withCtx(()=>[p.createVNode(g,{value:0},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.deduplicationRadio0")),1)]),_:1}),p.createVNode(g,{value:1},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.deduplicationRadio1")),1)]),_:1}),p.createVNode(g,{value:2},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.deduplicationRadio2")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.timeoutRule")},{default:p.withCtx(()=>[p.createVNode(h,{checked:p.unref(o).timeoutConfigSwitch,"onUpdate:checked":f[3]||(f[3]=A=>p.unref(o).timeoutConfigSwitch=A)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.timeoutRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),p.unref(o).timeoutConfigSwitch?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(v,{label:d.$t("wo_my.timeout")},{default:p.withCtx(()=>[p.createElementVNode("div",a$,[p.createTextVNode(p.toDisplayString(d.$t("bpmn.linkTimeoutTxt1"))+" ",1),p.createVNode(y,{class:"mx-xs",value:p.unref(o).timeoutPeriod,"onUpdate:value":f[4]||(f[4]=A=>p.unref(o).timeoutPeriod=A),min:1,max:1e4,precision:0},null,8,["value"]),p.createTextVNode(" "+p.toDisplayString(d.$t("bpmn.linkTimeoutTxt2")),1)])]),_:1},8,["label"]),p.createVNode(v,{label:d.$t("bpmn.timeoutHandle")},{default:p.withCtx(()=>[p.createElementVNode("div",s$,p.toDisplayString(d.$t("bpmn.timeoutHandleTxt")),1),p.createVNode(m,{value:p.unref(o).timeoutHandler,"onUpdate:value":f[5]||(f[5]=A=>p.unref(o).timeoutHandler=A)},{default:p.withCtx(()=>[p.createVNode(g,{value:0},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.timeoutHandleRadio0")),1)]),_:1}),p.createVNode(g,{value:1},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("bpmn.timeoutHandleRadio1")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"])],64)):p.createCommentVNode("",!0),p.createVNode(v,{label:d.$t("bpmn.fallbackFirstLinkStatus")},{default:p.withCtx(()=>[p.createVNode(x,{"dict-type":"fallback_first_link_status",value:p.unref(o).fallbackFirstLinkStatus,"onUpdate:value":f[6]||(f[6]=A=>p.unref(o).fallbackFirstLinkStatus=A),placeholder:d.$t("common.plsSelect"),style:{width:"80%"}},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"]),p.createVNode(T,{class:"modal-btns"},{default:p.withCtx(()=>[p.createVNode(b,{onClick:u},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(b,{type:"primary",onClick:c},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(d.$t("common.btn_sure")),1)]),_:1})]),_:1})])}}}),[["__scopeId","data-v-8e7f13af"]]),u$={key:0},c$={key:1,style:{color:"#696868"}},d$=p.defineComponent({__name:"Process",props:p.mergeModels({isEdit:{type:Boolean}},{formState:{},formStateModifiers:{}}),emits:["update:formState"],setup(t){const{modal:e}=Wt.App.useApp(),{t:n}=Dn.useI18n(),r=p.useModel(t,"formState"),i=p.ref(["1","2","3","4","5","6"]);function o(){e.info({title:n("ruleModel.title"),content:p.h(l$,{jsonStr:r.value.jobPriority,onSubmit:a=>{r.value.jobPriority=JSON.stringify(a)}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:850,class:"modal-comp"})}return(a,s)=>{const l=ie.Input,u=ie.FormItem,c=ie.Form,d=ie.CollapsePanel,f=ie.Button,h=ie.Collapse;return p.openBlock(),p.createBlock(h,{activeKey:p.unref(i),"onUpdate:activeKey":s[3]||(s[3]=v=>p.isRef(i)?i.value=v:null)},{default:p.withCtx(()=>[p.createVNode(d,{key:"1",header:a.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(c,{layout:"vertical",model:r.value},{default:p.withCtx(()=>[p.createVNode(u,{label:a.$t("FLOW_CHART.Id"),extra:a.$t("FLOW_CHART.idTip")},{default:p.withCtx(()=>[p.createVNode(l,{value:r.value.id,"onUpdate:value":s[0]||(s[0]=v=>r.value.id=v),placeholder:a.$t("common.plsEnter"),readonly:t.isEdit},null,8,["value","placeholder","readonly"])]),_:1},8,["label","extra"]),p.createVNode(u,{label:a.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(l,{value:r.value.name,"onUpdate:value":s[1]||(s[1]=v=>r.value.name=v),placeholder:a.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(u,{label:a.$t("FLOW_CHART.Version Tag")},{default:p.withCtx(()=>[p.createVNode(l,{value:r.value.versionTag,"onUpdate:value":s[2]||(s[2]=v=>r.value.versionTag=v),disabled:""},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),p.createVNode(d,{key:"4",header:a.$t("FLOW_CHART.Job Configuration")},{default:p.withCtx(()=>[p.createVNode(c,{layout:"vertical",model:r.value},{default:p.withCtx(()=>[p.createVNode(u,{label:a.$t("FLOW_CHART.Job Priority")},{default:p.withCtx(()=>[p.createVNode(f,{onClick:o,style:{width:"100%"}},{default:p.withCtx(()=>[r.value.jobPriority?(p.openBlock(),p.createElementBlock("span",c$,[p.createTextVNode(p.toDisplayString(p.unref(n)("bpmn.has_config_rule"))+" ",1),p.createVNode(p.unref(Rp))])):(p.openBlock(),p.createElementBlock("span",u$,p.toDisplayString(p.unref(n)("bpmn.no_config_rule")),1))]),_:1})]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),f$=Qr(p.defineComponent({__name:"TemplateConfig",props:{data:{type:Object,default:()=>{}},templateList:{type:Array,default:()=>[]}},emits:["update:data"],setup(t,{emit:e}){const n=e,r=t,i=p.computed({get:()=>r.data,set:u=>{n("update:data",u)}}),o=p.computed(()=>r.templateList.filter(u=>{var c;return(c=u==null?void 0:u.type)==null?void 0:c.split(",").includes("1")}).map(u=>({label:u.name,value:u.id}))),a=p.computed(()=>r.templateList.filter(u=>{var c;return(c=u==null?void 0:u.type)==null?void 0:c.split(",").includes("2")}).map(u=>({label:u.name,value:u.id}))),s=p.computed(()=>r.templateList.filter(u=>{var c;return(c=u==null?void 0:u.type)==null?void 0:c.split(",").includes("3")}).map(u=>({label:u.name,value:u.id}))),l=(u,c)=>c.label.toLowerCase().indexOf(u.toLowerCase())>=0;return(u,c)=>{const d=ie.Select,f=ie.FormItem,h=ie.Form;return p.openBlock(),p.createElementBlock("div",null,[p.createVNode(h,{class:"form-query-select mx-nm mt-nm",layout:"vertical",model:i.value},{default:p.withCtx(()=>[p.createVNode(f,{label:u.$t("bpmn.todoHandle")},{default:p.withCtx(()=>[p.createVNode(d,{value:i.value[1],"onUpdate:value":c[0]||(c[0]=v=>i.value[1]=v),options:o.value,allowClear:"",placeholder:u.$t("common.plsSelect"),"show-search":"","filter-option":l},null,8,["value","options","placeholder"])]),_:1},8,["label"]),p.createVNode(f,{label:u.$t("bpmn.todoDetail")},{default:p.withCtx(()=>[p.createVNode(d,{value:i.value[2],"onUpdate:value":c[1]||(c[1]=v=>i.value[2]=v),options:a.value,allowClear:"",placeholder:u.$t("common.plsSelect"),"show-search":"","filter-option":l},null,8,["value","options","placeholder"])]),_:1},8,["label"]),p.createVNode(f,{label:u.$t("bpmn.AllDetail")},{default:p.withCtx(()=>[p.createVNode(d,{value:i.value[3],"onUpdate:value":c[2]||(c[2]=v=>i.value[3]=v),options:s.value,allowClear:"",placeholder:u.$t("common.plsSelect"),"show-search":"","filter-option":l},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])])}}}),[["__scopeId","data-v-8a27c7e4"]]),p$={class:"modal-container"},h$=p.defineComponent({__name:"SelectLinkTask",props:{id:{type:String},componentInfo:{type:String,default:""},variable:{type:String,default:""},description:{type:String,default:""}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({}),a=p.ref([{title:n("link.id"),dataIndex:"id"},{title:n("link.description"),dataIndex:"description"},{title:n("link.due"),dataIndex:"due"},{title:n("link.variable"),dataIndex:"variable"},{title:n("bpmn.action"),dataIndex:"action"}]),s=p.ref([]),l=p.ref();function u(k,B){s.value=k,l.value=B}const c=p.ref({1:void 0,2:void 0,3:void 0}),d=p.ref({}),f=p.ref(!1),h=p.ref(""),v=p.ref("");function g(){f.value=!1,h.value=m(c.value)}function m(k){return Object.entries(k).filter(([ee,ce])=>ce!==void 0).map(([ee,ce])=>`${ee}-${ce}`).join(",")}function y(k){if(typeof k!="string"||k.trim()==="")return{};const B=k.split(","),Z={};return B.forEach(ee=>{const[ce,...Be]=ee.split("-");if(ce&&Be.length>0){const me=Be.join("-");Z[ce]=me}}),Z}function x(){f.value=!1}function E(k){d.value=k,f.value=!0}const b=p.ref([]);async function T(){const{result:k}=await Gt.getTemplateList({pageNo:1,pageSize:1e3});b.value=(k==null?void 0:k.data)||[]}const A=p.ref([]);async function S(){const{result:k}=await Gt.getLinkList({pageNo:1,pageSize:1e3});A.value=(k==null?void 0:k.data)||[]}p.watchEffect(()=>{r.id&&(r.id.startsWith("common-approve-")||r.id.startsWith("common-handle-")?(v.value=r.id.slice(-4),s.value=[r.id.slice(0,-4)+"*"]):s.value=[r.id]),r.componentInfo&&(c.value=y(r.componentInfo))});function M(k){l.value=null;const B={...o.value};return Object.assign(B,k),Gt.getLinkList(B)}const C=p.ref(),G=()=>{C.value.refresh()},K=()=>{o.value={},G()};p.onMounted(()=>{K(),T(),S()});function J(){Wt.Modal.destroyAll()}function R(){var k,B;if((k=l.value)!=null&&k.length)i("submit",{...l.value[0],bindComponent:h.value,hasSuffix:""});else if((B=s.value)!=null&&B.length){const Z=A.value.find(ee=>ee.id===s.value[0]);i("submit",{...Z,id:r.id,bindComponent:h.value,hasSuffix:v.value})}Wt.Modal.destroyAll()}return(k,B)=>{const Z=ie.Input,ee=ie.FormItem,ce=ie.Button,Be=ie.Space,me=ie.Form,de=ie.Tooltip,Se=p.resolveComponent("a-table-ex"),je=ie.Modal;return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",p$,[p.createVNode(me,{class:"form-query mx-nm mt-nm",layout:"vertical",model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(ee,{label:k.$t("link.id")},{default:p.withCtx(()=>[p.createVNode(Z,{value:p.unref(o).id,"onUpdate:value":B[0]||(B[0]=he=>p.unref(o).id=he),placeholder:k.$t("common.plsEnter"),onKeydown:p.withKeys(G,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(ee,{label:k.$t("link.description")},{default:p.withCtx(()=>[p.createVNode(Z,{value:p.unref(o).description,"onUpdate:value":B[1]||(B[1]=he=>p.unref(o).description=he),placeholder:k.$t("common.plsEnter"),onKeydown:p.withKeys(G,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(ee,{class:"form-btns"},{default:p.withCtx(()=>[p.createVNode(Be,null,{default:p.withCtx(()=>[p.createVNode(ce,{type:"primary",onClick:G},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_search")),1)]),_:1}),p.createVNode(ce,{onClick:K},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),p.createVNode(Se,{ref_key:"tableEx",ref:C,class:"table-query bordered mx-nm",columns:p.unref(a),rowKey:"id","row-selection":{type:"radio",selectedRowKeys:p.unref(s),onChange:u},loadData:M},{bodyCell:p.withCtx(({record:he,column:Ve})=>[Ve.dataIndex==="action"?(p.openBlock(),p.createBlock(de,{key:0,placement:"top"},{title:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(k.$t("bpmn.tempConfigTip")),1)]),default:p.withCtx(()=>[p.createVNode(ce,{type:"link",onClick:$=>E(he),style:{"padding-left":"0"},disabled:!p.unref(s).includes(he.id)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("bpmn.tempConfig")),1)]),_:2},1032,["onClick","disabled"])]),_:2},1024)):p.createCommentVNode("",!0)]),_:1},8,["columns","row-selection"]),p.createVNode(Be,{class:"modal-btns"},{default:p.withCtx(()=>{var he;return[p.createVNode(ce,{onClick:J},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(ce,{type:"primary",disabled:!((he=p.unref(s))!=null&&he.length),onClick:R},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(k.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})]),p.createVNode(je,{open:p.unref(f),"onUpdate:open":B[3]||(B[3]=he=>p.isRef(f)?f.value=he:null),title:k.$t("bpmn.tempConfig"),onOk:g,onCancel:x},{default:p.withCtx(()=>[p.createVNode(f$,{data:p.unref(c),"onUpdate:data":B[2]||(B[2]=he=>p.isRef(c)?c.value=he:null),"template-list":p.unref(b)},null,8,["data","template-list"])]),_:1},8,["open","title"])],64)}}}),g$={class:"modal-container"},v$=p.defineComponent({__name:"SelectUser",props:{userIds:{type:String||Array},branchId:{type:String},mode:{type:String,default:"default"}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({}),a=p.ref([{title:n("user.user_name"),dataIndex:"userName"},{title:n("user.user_id"),dataIndex:"userCode"},{title:n("arrears.org"),dataIndex:"branchName"}]),s=p.ref([]),l=p.ref();function u(m,y){s.value=m,l.value=y}p.watchEffect(()=>{r.userIds&&(s.value=Array.isArray(r.userIds)?r.userIds:[r.userIds])});function c(m){l.value=null;const y={...o.value,branchId:r.branchId};return Object.assign(y,m),Gt.getUserList(y)}const d=p.ref(),f=()=>{d.value.refresh()},h=()=>{o.value={},f()};p.onMounted(()=>{h()});function v(){Wt.Modal.destroyAll()}function g(){var m;if((m=l.value)!=null&&m.length){const y=l.value;i("submit",r.mode==="multiple"?y:y[0])}Wt.Modal.destroyAll()}return(m,y)=>{const x=ie.Input,E=ie.FormItem,b=ie.Button,T=ie.Space,A=ie.Form,S=p.resolveComponent("a-table-ex");return p.openBlock(),p.createElementBlock("div",g$,[p.createVNode(A,{class:"form-query mx-nm mt-nm",layout:"vertical",model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(E,{label:m.$t("user.key")},{default:p.withCtx(()=>[p.createVNode(x,{value:p.unref(o).userName,"onUpdate:value":y[0]||(y[0]=M=>p.unref(o).userName=M),placeholder:m.$t("common.plsEnter"),onKeydown:p.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(E,{class:"form-btns"},{default:p.withCtx(()=>[p.createVNode(T,null,{default:p.withCtx(()=>[p.createVNode(b,{type:"primary",onClick:f},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_search")),1)]),_:1}),p.createVNode(b,{onClick:h},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),p.createVNode(S,{ref_key:"tableEx",ref:d,class:"table-query bordered mx-nm",columns:p.unref(a),rowKey:"userId","row-selection":{type:t.mode==="multiple"?"checkbox":"radio",selectedRowKeys:p.unref(s),onChange:u},loadData:c},null,8,["columns","row-selection"]),p.createVNode(T,{class:"modal-btns"},{default:p.withCtx(()=>{var M;return[p.createVNode(b,{onClick:v},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(b,{type:"primary",disabled:!((M=p.unref(s))!=null&&M.length),onClick:g},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),m$=p.defineComponent({__name:"UserTask",props:{formState:{},formStateModifiers:{}},emits:p.mergeModels(["updateNodeName"],["update:formState"]),setup(t,{emit:e}){const{modal:n}=Wt.App.useApp(),{t:r}=Dn.useI18n(),i=p.inject("type"),o=p.inject("isApproval"),a=p.useModel(t,"formState"),s=p.ref(["1","2","3","4","5","6"]),l=p.ref([]),u=p.ref([]),c=p.ref([]),d=p.computed(()=>{var S;const A=a.value.assignee;return(S=String(A))==null?void 0:S.startsWith("${")});function f(){const A="abcdefghijklmnopqrstuvwxyz";let S="";for(let M=0;M<2;M++)S+=A.charAt(Math.floor(Math.random()*A.length));for(let M=0;M<2;M++)S+=Math.floor(Math.random()*10);return S}function h(){console.log(a.value,"formState.value"),n.info({title:r("link.select_link"),content:p.h(h$,{id:a.value.id,variable:a.value.assignee,description:a.value.name,componentInfo:a.value.bindComponent,onSubmit:A=>{let S=A.id;const M=S!==a.value.id;S.endsWith("*")&&(A.hasSuffix?S=S.substring(0,S.length-1)+A.hasSuffix:S=S.substring(0,S.length-1)+f()),Object.assign(a.value,{id:S,name:o?g(S):`bpmn.${i}_${S}`,assignee:"","camunda:assigneeName":"",priority:void 0,userArr:M?[]:a.value.userArr,roleArr:M?[]:a.value.roleArr,approveRank:"0"}),A.variable&&(a.value.assignee=`\${${A.variable}}`),a.value.bindComponent=A.bindComponent||void 0}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function v(){n.info({title:r("user.select_user"),content:p.h(v$,{userIds:a.value.assignee,onSubmit:A=>{Object.assign(a.value,{assignee:A.userId,"camunda:assigneeName":A.userName})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function g(A){return A.includes("common-approve-")?`bpmn.${A.slice(0,-4)}0`:`bpmn.${A}`}function m(A){A==0?a.value.name=r("bpmn.common-approve-0"):a.value.name=r(`bpmn.${a.value.id.slice(0,-4)}${A}`)}function y(){Gt.getBranchTree().then(A=>{A.code===0&&(l.value=A.result||[])})}function x(){const A={pageNo:1,pageSize:1e3,branchId:a.value.priority||void 0};Gt.getUserList(A).then(S=>{var M,C;S.code===0&&(c.value=((C=(M=S.result)==null?void 0:M.data)==null?void 0:C.map(G=>({...G,label:G.userName,value:G.userId})))||[])})}function E(){const A={pageNo:1,pageSize:1e3,branchId:a.value.priority||void 0};Gt.getRoleList(A).then(S=>{var M,C;S.code===0&&(u.value=((C=(M=S.result)==null?void 0:M.data)==null?void 0:C.map(G=>({...G,label:G.roleName,value:G.roleId})))||[])})}function b(){Object.assign(a.value,{userArr:[],roleArr:[]}),x(),E()}function T(A){if(A!=null&&A.length){const S=c.value.find(M=>M.userId===A[0]);a.value.priority!==S.branchId&&(Object.assign(a.value,{priority:S.branchId,roleArr:[]}),x(),E())}}return p.onMounted(()=>{y(),x(),E()}),(A,S)=>{const M=ie.Input,C=ie.FormItem,G=ie.InputNumber,K=ie.TreeSelect,J=ie.Select,R=ie.Form,k=ie.CollapsePanel,B=ie.Radio,Z=ie.RadioGroup,ee=ie.Checkbox,ce=ie.CheckboxGroup,Be=ie.Collapse;return p.openBlock(),p.createBlock(Be,{activeKey:p.unref(s),"onUpdate:activeKey":S[10]||(S[10]=me=>p.isRef(s)?s.value=me:null)},{default:p.withCtx(()=>[p.createVNode(k,{key:"1",header:A.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(R,{layout:"vertical",model:a.value},{default:p.withCtx(()=>[p.createVNode(C,{label:A.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(M,{value:a.value.id,"onUpdate:value":S[0]||(S[0]=me=>a.value.id=me),placeholder:A.$t("common.plsEnter"),readonly:"",onClick:h},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(M,{value:A.$t(a.value.name),disabled:"",placeholder:A.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),a.value.id&&a.value.id.includes("common-approve-")?(p.openBlock(),p.createBlock(C,{key:0,label:A.$t("FLOW_CHART.approve-rank")},{default:p.withCtx(()=>[p.createVNode(G,{style:{width:"100%"},value:a.value.approveRank,"onUpdate:value":S[1]||(S[1]=me=>a.value.approveRank=me),min:0,max:10,placeholder:A.$t("common.plsEnter"),onChange:m},null,8,["value","placeholder"])]),_:1},8,["label"])):p.createCommentVNode("",!0),p.createVNode(C,{label:A.$t("FLOW_CHART.Assignee")},{default:p.withCtx(()=>[p.unref(d)?(p.openBlock(),p.createBlock(M,{key:0,value:a.value.assignee,"onUpdate:value":S[2]||(S[2]=me=>a.value.assignee=me),placeholder:A.$t("common.plsSelect"),disabled:""},null,8,["value","placeholder"])):(p.openBlock(),p.createBlock(M,{key:1,value:a.value["camunda:assigneeName"],"onUpdate:value":S[3]||(S[3]=me=>a.value["camunda:assigneeName"]=me),placeholder:A.$t("common.plsSelect"),readonly:"",onClick:v},null,8,["value","placeholder"]))]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Priority")},{default:p.withCtx(()=>[p.createVNode(K,{value:a.value.priority,"onUpdate:value":S[4]||(S[4]=me=>a.value.priority=me),placeholder:A.$t("common.plsSelect"),"tree-data":p.unref(l),treeDefaultExpandAll:"",treeNodeFilterProp:"label","show-search":"","allow-clear":"",onChange:b},null,8,["value","placeholder","tree-data"])]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Candidate Users")},{default:p.withCtx(()=>[p.createVNode(J,{value:a.value.userArr,"onUpdate:value":S[5]||(S[5]=me=>a.value.userArr=me),placeholder:A.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:p.unref(c),optionFilterProp:"label",disabled:p.unref(d),onChange:T},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"]),p.createVNode(C,{label:A.$t("FLOW_CHART.Candidate Groups")},{default:p.withCtx(()=>[p.createVNode(J,{value:a.value.roleArr,"onUpdate:value":S[6]||(S[6]=me=>a.value.roleArr=me),placeholder:A.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:p.unref(u),optionFilterProp:"label",disabled:p.unref(d)},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),p.unref(o)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(k,{key:"2",header:A.$t("FLOW_CHART.isAllowRollback")},{default:p.withCtx(()=>[p.createVNode(Z,{value:a.value.rollback,"onUpdate:value":S[7]||(S[7]=me=>a.value.rollback=me)},{default:p.withCtx(()=>[p.createVNode(B,{value:"1"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.yes")),1)]),_:1}),p.createVNode(B,{value:"0"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.no")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])),p.unref(o)?(p.openBlock(),p.createBlock(k,{key:"3",header:A.$t("FLOW_CHART.Approval Mode")},{default:p.withCtx(()=>[p.createVNode(Z,{value:a.value.approvalSign,"onUpdate:value":S[8]||(S[8]=me=>a.value.approvalSign=me)},{default:p.withCtx(()=>[p.createVNode(B,{value:"orSign"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.Or Sign")),1)]),_:1}),p.createVNode(B,{value:"countersign"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.countersign")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])):p.createCommentVNode("",!0),p.unref(o)?(p.openBlock(),p.createBlock(k,{key:"4",header:A.$t("FLOW_CHART.Approval Required")},{default:p.withCtx(()=>[p.createVNode(ce,{value:a.value.approvalCheckbox,"onUpdate:value":S[9]||(S[9]=me=>a.value.approvalCheckbox=me)},{default:p.withCtx(()=>[p.createVNode(ee,{value:"advice"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.Comments Required")),1)]),_:1}),p.createVNode(ee,{value:"attachment"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.$t("FLOW_CHART.Attachment Required")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])):p.createCommentVNode("",!0)]),_:1},8,["activeKey"])}}}),y$=p.defineComponent({__name:"ExclusiveGateway",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(t){const e=p.useModel(t,"formState"),n=p.ref(["1","2","3","4","5","6"]);return(r,i)=>{const o=ie.Input,a=ie.FormItem,s=ie.Form,l=ie.CollapsePanel,u=ie.Collapse;return p.openBlock(),p.createBlock(u,{activeKey:p.unref(n),"onUpdate:activeKey":i[2]||(i[2]=c=>p.isRef(n)?n.value=c:null)},{default:p.withCtx(()=>[p.createVNode(l,{key:"1",header:r.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(s,{layout:"vertical",model:e.value},{default:p.withCtx(()=>[p.createVNode(a,{label:r.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.id,"onUpdate:value":i[0]||(i[0]=c=>e.value.id=c),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.name,"onUpdate:value":i[1]||(i[1]=c=>e.value.name=c),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),_$=p.defineComponent({__name:"SequenceFlow",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(t){const e=p.useModel(t,"formState"),n=p.ref(["1","2","3","4","5","6"]);return(r,i)=>{const o=ie.Input,a=ie.FormItem,s=ie.SelectOption,l=ie.Select,u=ie.Form,c=ie.CollapsePanel,d=ie.Collapse;return p.openBlock(),p.createBlock(d,{activeKey:p.unref(n),"onUpdate:activeKey":i[4]||(i[4]=f=>p.isRef(n)?n.value=f:null)},{default:p.withCtx(()=>[p.createVNode(c,{key:"1",header:r.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(u,{layout:"vertical",model:e.value},{default:p.withCtx(()=>[p.createVNode(a,{label:r.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.id,"onUpdate:value":i[0]||(i[0]=f=>e.value.id=f),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.name,"onUpdate:value":i[1]||(i[1]=f=>e.value.name=f),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Condition Type")},{default:p.withCtx(()=>[p.createVNode(l,{value:e.value.condType,"onUpdate:value":i[2]||(i[2]=f=>e.value.condType=f),placeholder:r.$t("common.plsSelect"),allowClear:""},{default:p.withCtx(()=>[p.createVNode(s,{value:"bpmn:FormalExpression"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(r.$t("FLOW_CHART.Expression")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label"]),e.value.condType==="bpmn:FormalExpression"?(p.openBlock(),p.createBlock(a,{key:0,label:r.$t("FLOW_CHART.Expression")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.condBody,"onUpdate:value":i[3]||(i[3]=f=>e.value.condBody=f),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])):p.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),b$={class:"modal-container"},x$=p.defineComponent({__name:"SelectLink",props:{id:{type:String}},emits:["submit"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=t,i=e,o=p.ref({}),a=p.ref([{title:n("link.id"),dataIndex:"id"},{title:n("link.description"),dataIndex:"description"},{title:n("link.due"),dataIndex:"due"},{title:n("link.variable"),dataIndex:"variable"}]),s=p.ref([]),l=p.ref();function u(m,y){s.value=m,l.value=y}p.watchEffect(()=>{r.id&&(s.value=[r.id])});function c(m){l.value=null;const y={...o.value};return Object.assign(y,m),Gt.getLinkList(y)}const d=p.ref(),f=()=>{d.value.refresh()},h=()=>{o.value={},f()};p.onMounted(()=>{h()});function v(){Wt.Modal.destroyAll()}function g(){var m;(m=l.value)!=null&&m.length&&i("submit",l.value[0]),Wt.Modal.destroyAll()}return(m,y)=>{const x=ie.Input,E=ie.FormItem,b=ie.Button,T=ie.Space,A=ie.Form,S=p.resolveComponent("a-table-ex");return p.openBlock(),p.createElementBlock("div",b$,[p.createVNode(A,{class:"form-query mx-nm mt-nm",layout:"vertical",model:p.unref(o)},{default:p.withCtx(()=>[p.createVNode(E,{label:m.$t("link.id")},{default:p.withCtx(()=>[p.createVNode(x,{value:p.unref(o).id,"onUpdate:value":y[0]||(y[0]=M=>p.unref(o).id=M),placeholder:m.$t("common.plsEnter"),onKeydown:p.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(E,{label:m.$t("link.description")},{default:p.withCtx(()=>[p.createVNode(x,{value:p.unref(o).description,"onUpdate:value":y[1]||(y[1]=M=>p.unref(o).description=M),placeholder:m.$t("common.plsEnter"),onKeydown:p.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(E,{class:"form-btns"},{default:p.withCtx(()=>[p.createVNode(T,null,{default:p.withCtx(()=>[p.createVNode(b,{type:"primary",onClick:f},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_search")),1)]),_:1}),p.createVNode(b,{onClick:h},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),p.createVNode(S,{ref_key:"tableEx",ref:d,class:"table-query bordered mx-nm",columns:p.unref(a),rowKey:"id","row-selection":{type:"radio",selectedRowKeys:p.unref(s),onChange:u},loadData:c},null,8,["columns","row-selection"]),p.createVNode(T,{class:"modal-btns"},{default:p.withCtx(()=>{var M;return[p.createVNode(b,{onClick:v},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_cancel1")),1)]),_:1}),p.createVNode(b,{type:"primary",disabled:!((M=p.unref(s))!=null&&M.length),onClick:g},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(m.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),E$=p.defineComponent({__name:"EndEvent",props:{formState:{},formStateModifiers:{}},emits:p.mergeModels(["updateNodeName"],["update:formState"]),setup(t,{emit:e}){const{modal:n}=Wt.App.useApp(),{t:r}=Dn.useI18n(),i=p.useModel(t,"formState"),o=p.ref(["1","2","3","4","5","6"]);function a(){const c="abcdefghijklmnopqrstuvwxyz";let d="";for(let f=0;f<2;f++)d+=c.charAt(Math.floor(Math.random()*c.length));for(let f=0;f<2;f++)d+=Math.floor(Math.random()*10);return d}const s=e;function l(){s("updateNodeName",i.value.id,i.value.name)}function u(){n.info({title:r("link.select_link"),content:p.h(x$,{id:i.value.id,onSubmit:c=>{let d=c.id;d.endsWith("*")&&(d=d.substring(0,d.length-1)+a()),Object.assign(i.value,{id:d,name:"bpmn.endName"})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}return(c,d)=>{const f=ie.Input,h=ie.FormItem,v=ie.Form,g=ie.CollapsePanel,m=ie.Collapse;return p.openBlock(),p.createBlock(m,{activeKey:p.unref(o),"onUpdate:activeKey":d[1]||(d[1]=y=>p.isRef(o)?o.value=y:null)},{default:p.withCtx(()=>[p.createVNode(g,{key:"1",header:c.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(v,{layout:"vertical",model:i.value},{default:p.withCtx(()=>[p.createVNode(h,{label:c.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(f,{value:i.value.id,"onUpdate:value":d[0]||(d[0]=y=>i.value.id=y),placeholder:c.$t("common.plsEnter"),readonly:"",onClick:u},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(h,{label:c.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(f,{value:c.$t(i.value.name),disabled:"",placeholder:c.$t("common.plsEnter"),onChange:l},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),w$=p.defineComponent({__name:"Other",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(t){const e=p.useModel(t,"formState"),n=p.ref(["1","2","3","4","5","6"]);return(r,i)=>{const o=ie.Input,a=ie.FormItem,s=ie.Form,l=ie.CollapsePanel,u=ie.Collapse;return p.openBlock(),p.createBlock(u,{activeKey:p.unref(n),"onUpdate:activeKey":i[2]||(i[2]=c=>p.isRef(n)?n.value=c:null)},{default:p.withCtx(()=>[p.createVNode(l,{key:"1",header:r.$t("FLOW_CHART.General")},{default:p.withCtx(()=>[p.createVNode(s,{layout:"vertical",model:e.value},{default:p.withCtx(()=>[p.createVNode(a,{label:r.$t("FLOW_CHART.Id")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.id,"onUpdate:value":i[0]||(i[0]=c=>e.value.id=c),placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),p.createVNode(a,{label:r.$t("FLOW_CHART.Name")},{default:p.withCtx(()=>[p.createVNode(o,{value:e.value.name,"onUpdate:value":i[1]||(i[1]=c=>e.value.name=c),disabled:"",placeholder:r.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),S$={class:"properties-panel"},C$=Qr(p.defineComponent({__name:"BpmnPropertiesPanel",props:{lfRef:{type:Object},isEdit:{type:Boolean},processAttrs:{type:Object}},emits:["changeProcess"],setup(t,{emit:e}){const{t:n}=Dn.useI18n(),r=e,i=t,o=p.ref(""),a=p.ref({}),s=p.ref({});let l;p.watch(()=>i.lfRef,()=>{i.lfRef&&(s.value=i.lfRef,u())}),p.watch(a,(h,v)=>{h===v&&d()},{deep:!0});function u(){s.value.on("node:click",({data:h,e:v,position:g})=>{c(h)}),s.value.on("edge:click,",({data:h,e:v,position:g})=>{c(h)}),s.value.on("blank:click",({e:h})=>{o.value="bpmn:process",a.value={id:i.processAttrs.id||"Process_1",name:i.processAttrs.name,jobPriority:i.processAttrs["camunda:jobPriority"]}})}function c(h){var m;if(!h||l===h)return;l=h;const v=h.type;o.value="",p.nextTick(()=>{o.value=v});const g={...h.properties,id:h.id,name:((m=h.text)==null?void 0:m.value)||""};v==="bpmn:userTask"?(Object.assign(g,{rollback:g["camunda:rollback"]==="1"?"1":"0",approvalCheckbox:[]}),Object.assign(g,{approvalSign:g["camunda:countersign"]==="true"?"countersign":"orSign",approvalCheckbox:[]}),g["camunda:assignee"]&&(g.assignee=g["camunda:assignee"]),g["camunda:priority"]&&(g.priority=g["camunda:priority"]),g["camunda:advice"]==="true"&&g.approvalCheckbox.push("advice"),g["camunda:attachment"]==="true"&&g.approvalCheckbox.push("attachment"),g["camunda:bindComponent"]&&(g.bindComponent=g["camunda:bindComponent"]),g.hasOwnProperty("camunda:approveRank")?g.approveRank=g["camunda:approveRank"]:g.id.includes("common-approve-")&&(g.approveRank=0),typeof g["camunda:candidateUsers"]=="number"?g.userArr=[g["camunda:candidateUsers"].toString()]:typeof g["camunda:candidateUsers"]=="string"?g.userArr=(g["camunda:candidateUsers"]||"").split(",").filter(y=>y):g.userArr=[],typeof g["camunda:candidateGroups"]=="number"?g.roleArr=[g["camunda:candidateGroups"].toString()]:typeof g["camunda:candidateGroups"]=="string"?g.roleArr=(g["camunda:candidateGroups"]||"").split(",").filter(y=>y):g.roleArr=[]):v==="bpmn:sequenceFlow"&&(console.log("data.properties",h.properties,h.properties["bpmn:conditionExpression"]),h.properties["bpmn:conditionExpression"]&&Object.assign(g,{condType:h.properties["bpmn:conditionExpression"]["xsi:type"],condBody:h.properties["bpmn:conditionExpression"]["#text"].replace(/\s+/g,"")})),a.value=g}function d(){var m,y;const h=a.value;function v(x){return x?"true":"false"}const g={id:h.id,name:h.name};if(console.log("bpmnType.value",o.value),o.value==="bpmn:process")h.jobPriority&&Object.assign(g,{"camunda:jobPriority":h.jobPriority}),r("changeProcess",g);else if(o.value==="bpmn:userTask"){Object.assign(g,{"camunda:orSign":v(h.approvalSign==="orSign"),"camunda:rollback":h.rollback==="1"?"1":"0","camunda:countersign":v(h.approvalSign==="countersign"),"camunda:advice":v(h.approvalCheckbox.includes("advice")),"camunda:attachment":v(h.approvalCheckbox.includes("attachment")),"camunda:assignee":h.assignee||"","camunda:assigneeName":h["camunda:assigneeName"]||"","camunda:priority":h.priority||"","camunda:candidateUsers":((m=h.userArr)==null?void 0:m.join())||"","camunda:candidateGroups":((y=h.roleArr)==null?void 0:y.join())||"","camunda:bindComponent":h.bindComponent||"","camunda:approveRank":h.approveRank,"camunda:transName":h.name,name:n(h.name)}),console.log("activeNode.id, attrs",l.id,g);const{id:x}=l,{id:E}=h;E&&x!==E&&s.value.changeNodeId(x,E),s.value.getNodeModelById(E).setProperties(g),s.value.updateText(E,n(h.name))}}function f(h,v){l.id&&(s.value.setProperties(l.id,{name:v}),s.value.updateText(l.id,v))}return(h,v)=>{const g=zm;return p.openBlock(),p.createElementBlock("div",S$,[p.createVNode(g,null,{default:p.withCtx(()=>[p.unref(o)==="bpmn:process"?(p.openBlock(),p.createBlock(d$,{key:0,formState:p.unref(a),"onUpdate:formState":v[0]||(v[0]=m=>p.isRef(a)?a.value=m:null),isEdit:t.isEdit},null,8,["formState","isEdit"])):p.unref(o)==="bpmn:userTask"?(p.openBlock(),p.createBlock(m$,{key:1,formState:p.unref(a),"onUpdate:formState":v[1]||(v[1]=m=>p.isRef(a)?a.value=m:null),onUpdateNodeName:f},null,8,["formState"])):p.unref(o)==="bpmn:exclusiveGateway"?(p.openBlock(),p.createBlock(y$,{key:2,formState:p.unref(a),"onUpdate:formState":v[2]||(v[2]=m=>p.isRef(a)?a.value=m:null)},null,8,["formState"])):p.unref(o)==="bpmn:sequenceFlow"?(p.openBlock(),p.createBlock(_$,{key:3,formState:p.unref(a),"onUpdate:formState":v[3]||(v[3]=m=>p.isRef(a)?a.value=m:null)},null,8,["formState"])):p.unref(o)==="bpmn:endEvent"?(p.openBlock(),p.createBlock(E$,{key:4,formState:p.unref(a),"onUpdate:formState":v[4]||(v[4]=m=>p.isRef(a)?a.value=m:null),onUpdateNodeName:f},null,8,["formState"])):p.unref(o)?(p.openBlock(),p.createBlock(w$,{key:5,formState:p.unref(a),"onUpdate:formState":v[5]||(v[5]=m=>p.isRef(a)?a.value=m:null)},null,8,["formState"])):p.createCommentVNode("",!0)]),_:1})])}}}),[["__scopeId","data-v-fe59c58a"]]),Lp="menu-common",Nx=200,A$=100;class Mx{constructor({lf:e}){Yp(this,"setContextMenuByType",(e,n)=>{this.menuTypeMap.set(e,n)});Yp(this,"listenDelete",()=>{this.hideContextMenu()});this.menuTypeMap=new Map,this.lf=e,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set(Lp,[])}render(e,n){this.container=n,e.on("node:click",({data:r})=>{this._activeData=r,this.createContextMenu(),console.log(r)}),e.on("edge:click",({data:r})=>{this._activeData=r,this.createContextMenu()}),e.on("blank:click",()=>{this.hideContextMenu()})}hideContextMenu(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}showContextMenu(e){if(!e||!e.id){console.warn("请检查传入的参数");return}this._activeData=e,this.createContextMenu()}setContextMenuItems(e){this.menuTypeMap.set(Lp,e)}getContextMenuPosition(){const e=this._activeData,n=this.lf.graphModel.getElement(e.id);if(!n){console.warn(`找不到元素${e.id}`);return}let r,i;if(n.BaseType==="edge"){r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER;const o=n.getData();r=Math.max(o.startPoint.x,r),i=Math.min(o.startPoint.y,i),r=Math.max(o.endPoint.x,r),i=Math.min(o.endPoint.y,i),o.pointsList&&o.pointsList.forEach(a=>{r=Math.max(a.x,r),i=Math.min(a.y,i)})}return n.BaseType==="node"&&(r=e.x+n.width/2,i=e.y-n.height/2),this.lf.graphModel.transformModel.CanvasPointToHtmlPoint([r,i])}createContextMenu(){const{isSilentMode:e}=this.lf.options;if(e)return;let n=this.menuTypeMap.get(this._activeData.type)||[];n=n.concat(this.menuTypeMap.get(Lp));const r=document.createDocumentFragment();n.forEach(i=>{const o=document.createElement("div");o.className="lf-context-item";const a=document.createElement("img");a.src=i.icon,a.className="lf-context-img",i.className&&(o.className=`${o.className} ${i.className}`),a.addEventListener("click",()=>{this.hideContextMenu(),i.callback?i.callback(this._activeData):this.addNode({sourceId:this._activeData.id,x:this._activeData.x,y:this._activeData.y,properties:i.properties,type:i.type,text:i.text||""})}),o.appendChild(a),r.appendChild(o)}),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(r),this.showMenu()}addNode(e,n){const r=n!==void 0;n===void 0&&(n=e.y);const i=this.lf.getNodeModelById(e.sourceId),o=e.x-100+Nx,a=n-e.y/2-20,s=e.x+100+Nx,l=n+e.y/2+20,u=this.lf.getAreaElement([o,a],[s,l]);if(console.log(u),u.length){n=n+A$,this.addNode(e,n);return}const c=this.lf.addNode({type:e.type,x:e.x+200,y:n,properties:e.properties,text:e.text});let d,f;r&&(d={x:e.x,y:e.y+i.height/2},f={x:c.x-c.width/2,y:c.y}),this.lf.addEdge({sourceNodeId:e.sourceId,targetNodeId:c.id,startPoint:d,endPoint:f})}showMenu(){const[e,n]=this.getContextMenuPosition();this.__menuDOM.style.display="flex",this.__menuDOM.style.top=`${n}px`,this.__menuDOM.style.left=`${e+10}px`,this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}}Mx.pluginName="contextPad";const O$=(t,e)=>{const n={type:"bpmn:userTask",label:e("bpmn.userTaskName"),text:e("bpmn.userTaskName"),properties:{"camunda:transName":"bpmn.userTaskName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAp1JREFUWEftlj9oE2EYxp/3IkSckotOpqDgl5ZWcLBgxcVBdBL8gw66iCg2lxrBzcl0qpPS1lyQKm5uiuBUHBztoAjVVtOLRDA46Z06VAvmXkkwQWLS3PudQwn54KY8z/v8eO7uvRA2+KENzoc+YNg71PsNxm6VYxStnibwIQCnAF4kptcMv+RWjSlk1VqYFkM1mLCLx5jpJoh2doD4zoQpL61u6EJqA5oF5zwY9wIFE3JuWk0G0raItAATd8r7uPprQRRoYMQdV8siD6C3ZkzbeQ5gTBLGwGPPUsclnppW3GCs8HaHwZvK0iAAq5sj37Z9ujS6KvGKARP5lXNMdF8S0tT6fNidSD2VeMWAcfv9OMEvSEKaWo2XRQwYm3UOGhE80wEk5pNfMqlHEq8YMFEobmc2KpKQhpZR3eNZQ4sSrxiwNty0Sw8BPiEJAujDlp/R4crVgR8Snxagzm1m8FnPSj2QwGmtmUaAaTtzAC4ECWTCNd3PnVaDDahEoZRl5ul1ITVWy9/zQgHWBsULpQPw+QwIw2CM1IcTlsBYZgN3v6bVqyAtd9KEBgwTHsTb+4DmnJPEGgZgIAlCst4KowIfFUTx0b2otHZmo11xg+ZtZz8iGAPjCFC/gpx5EOZRxYI7oWr/hAKfQIBb7XeDDOMKMx1tthQ4okXIqBDxE4I//dkaKnYb0xXQzBdzoEgW4Hi3YbLfyQNXZ9zMYG4937qApu28Af6sDlm6RL3kWmq3eM3EbecFAXslSbpaBl56lhpt52/bYNxemSHQZd1AHR+DZz0rlW31tgfMOw4RdukE6XqYUfIySgUCNG2HdYPC+FxL/VNY2wb7gB1q7qEG68vZuB7meRJ72Z9st7S7fknEQf/Z0AcMW2i/wbAN/gbA1dYpL5kz5gAAAABJRU5ErkJggg==",properties:{actived:!0}},r={type:"bpmn:serviceTask",label:e("bpmn.serviceTaskName"),text:e("bpmn.serviceTaskName"),properties:{"camunda:transName":"bpmn.serviceTaskName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAz9JREFUWEfVmEtoE1EUhv8zqaBgwUwi+K5CJqkoumhBxY11IVTBhaBUUNCFtplQRRSrK+vKVrTgYyZUF7qRigV3dqFg3YhdtAsLapIJKK2vRToRqgtpM0cmtTVJE3IzyWKcXTL/+c83c+/cc+4luPwil/OhKsCVWjJgEVqZM75iD8rk+co08/xHePMnpy/CMaANlyE2RBJbNLvJKaRjQF/UuMaMSyKAROiZCiuXRbSFGseAsp4cALhNLCk9NtXAUTFtvqoKQOMNgJ2CSUdMVdklqM2TlQRc1ze57NfS38eJM2uY+GlabRzPjZR14xuAVYJJv5uqsjpX69Vj24jpECRpAoQRs0N5X8yrKKCsJdeDeBDAjvkgBl5JzHdm6+itlEEfAQcF4eZkRENShs4xZbZaRJ0E7MmJfwemVjMSmBSag7KWvAXiMxUBVCtmum1GAmfLAvq1ZItF/LLafE7iJaa9qUhgODd20RDL0eQzMO93kqDqGKIhMxw4UBJQ1uKnQNK9yhPxFwYZEjhmEc0SEAIoBOYNFXuxddqMhO7Pxy28wfr+uH9JRnoNIFiJKTGfnIoEHxaL8WqJi0TUW4kfgMSMx9o93R5KZb+t+WBZNw4DeFKJmUgJ8+vJJgs8WokvE46lw8qjfEAt3g2SrogaSaDmlBoYE9GviH7YKHHdRxFtVsPWVTMS6s4DtH94dWOUgKZyRszclY4Er5fT5d73aYkTTPSgfAyPm2pw+6I5aP/h743VW8ulfhCVrptEE2Y40FA+0WKFrCc+A7S2ZCzzgPTTak91NU4XBVyYj1r8PEi6UdSI8MIMK/ucAHp1Y7iggvyzYeuCGQndLPQtWYtLmTHhbjqsdDoB9OmJKIM6CmPtMppWlZZinv8noOzWIXb9R+LqZUZ2+0Lt+lLn+mbBXoNc3W4tVBE3N6zZeuz2ln9uqF28afoLWHLbyR6Kwco2tlsqqcfMSHqI2pithqq3nXZigY27abeQgpBpU1XkXG1VG3eRpKJVJ9sgA2NpVWkW8RVut8qZybphD7O9jxG5Bk1VOSIirBmgTzd6GOgSSUpA75SqCB3V1QzQ9QeY9pO6+ghYZGhroXF8gFmL5CIefwB0scE4DheJlAAAAABJRU5ErkJggg==",cls:"import_icon"},i={type:"bpmn:exclusiveGateway",label:e("bpmn.exclusiveGatewayName"),properties:{"camunda:transName":"bpmn.exclusiveGatewayName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAAHeEJUAAAAABGdBTUEAALGPC/xhBQAAAvVJREFUOBGNVEFrE0EU/mY3bQoiFlOkaUJrQUQoWMGePLX24EH0IIoHKQiCV0G8iE1covgLiqA/QTzVm1JPogc9tIJYFaQtlhQxqYjSpunu+L7JvmUTU3AgmTfvffPNN++9WSA1DO182f6xwILzD5btfAoQmwL5KJEwiQyVbSVZ0IgRyV6PTpIJ81E5ZvqfHQR0HUOBHW4L5Et2kQ6Zf7iAOhTFAA8s0pEP7AXO1uAA52SbqGk6h/6J45LaLhO64ByfcUzM39V7ZiAdS2yCePPEIQYvTUHqM/n7dgQNfBKWPjpF4ISk8q3J4nB11qw6X8l+FsF3EhlkEMfrjIer3wJTLwS2aCNcj4DbGxXTw00JmAuO+Ni6bBxVUCvS5d9aa04+so4pHW5jLTywuXAL7jJ+D06sl82Sgl2JuVBQn498zkc2bGKxULHjCnSMadBKYDYYHAtsby1EQ5lNGrQd4Y3v4Zo0XdGEmDno46yCM9Tk+RiJmUYHS/aXHPNTcjxcbTFna000PFJHIVZ5lFRqRpJWk9/+QtlOUYJj9HG5pVFEU7zqIYDVsw2s+AJaD8wTd2umgSCCyUxgGsS1Y6TBwXQQTFuZaHcd8gAGioE90hlsY+wMcs30RduYtxanjMGal8H5dMW67dmT1JFtYUEe8LiQLRsPZ6IIc7A4J5tqco3T0pnv/4u0kyzrYUq7gASuEyI8VXKvB9Odytv6jS/PNaZBln0nioJG/AVQRZvApOdhjj3Jt8QC8Im09SafwdBdvIpztpxWxpeKCC+EsFdS8DCyuCn2munFpL7ctHKp+Xc5cMybeIyMAN33SPL3ZR9QV1XVwLyzHm6Iv0/yeUuUb7PPlZC4D4HZkeu6dpF4v9j9MreGtMbxMMRLIcjJic9yHi7WQ3yVKzZVWUr5UrViJvn1FfUlwe/KYVfYyWRLSGNu16hR01U9IacajXPei0wx/5BqgInvJN+MMNtNme7ReU9SBbgntovn0kKHpFg7UogZvaZiOue/q1SBo9ktHzQAAAAASUVORK5CYII="},o={type:"bpmn:endEvent",label:e("bpmn.endName"),text:e("bpmn.endName"),properties:{"camunda:transName":"bpmn.endName"},icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAAH6ji2bAAAABGdBTUEAALGPC/xhBQAAA1BJREFUOBFtVE1IVUEYPXOf+tq40Y3vPcmFIdSjIorWoRG0ERWUgnb5FwVhYQSl72oUoZAboxKNFtWiwKRN0M+jpfSzqJAQclHo001tKkjl3emc8V69igP3znzfnO/M9zcDcKT67azmjYWTwl9Vn7Vumeqzj1DVb6cleQY4oAVnIOPb+mKAGxQmKI5CWNJ2aLPatxWa3aB9K7/fB+/Z0jUF6TmMlFLQqrkECWQzOZxYGjTlOl8eeKaIY5yHnFn486xBustDjWT6dG7pmjHOJd+33t0iitTPkK6tEvjxq4h2MozQ6WFSX/LkDUGfFwfhEZj1Auz/U4pyAi5Sznd7uKzznXeVHlI/Aywmk6j7fsUsEuCGADrWARXXwjxWQsUbIupDHJI7kF5dRktg0eN81IbiZXiTESic50iwS+t1oJgL83jAiBupLDCQqwziaWSoAFSeIR3P5Xv5az00wyIn35QRYTwdSYbz8pH8fxUUAtxnFvYmEmgI0wYXUXcCCSpeEVpXlsRhBnCEATxWylL9+EKCAYhe1NGstUa6356kS9NVvt3DU2fd+Wtbm/+lSbylJqsqkSm9CRhvoJVlvKPvF1RKY/FcPn5j4UfIMLn8D4UYb54BNsilTDXKnF4CfTobA0FpoW/LSp306wkXM+XaOJhZaFkcNM82ASNAWMrhrUbRfmyeI1FvRBTpN06WKxa9BK0o2E4Pd3zfBBEwPsv9sQBnmLVbLEIZ/Xe9LYwJu/Er17W6HYVBc7vmuk0xUQ+pqxdom5Fnp55SiytXLPYoMXNM4u4SNSCFWnrVIzKG3EGyMXo6n/BQOe+bX3FClY4PwydVhthOZ9NnS+ntiLh0fxtlUJHAuGaFoVmttpVMeum0p3WEXbcll94l1wM/gZ0Ccczop77VvN2I7TlsZCsuXf1WHvWEhjO8DPtyOVg2/mvK9QqboEth+7pD6NUQC1HN/TwvydGBARi9MZSzLE4b8Ru3XhX2PBxf8E1er2A6516o0w4sIA+lwURhAON82Kwe2iDAC1Watq4XHaGQ7skLcFOtI5lDxuM2gZe6WFIotPAhbaeYlU4to5cuarF1QrcZ/lwrLaCJl66JBocYZnrNlvm2+MBCTmUymPrYZVbjdlr/BxlMjmNmNI3SAAAAAElFTkSuQmCC"},a={icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAUpJREFUWEftVzuywjAMlKgDPV2g4RYPuAnfDs7w4AzQ8b0Jn1vQQDp6SI0YFwFPSMC2EiYZnDLZldYrybERGI/XLs4Aofc2BMHcXV37pmnQlOh1SwMgmijxEYfu4jJVwoZARgKPXeevQLjTSXhDqlcX/l6HI7APgaeOM0LCulIAhDIA1JSwT9ABCM4qHELaVZb+6FUg4L9KgLQxBDTOqUDVEqdsYWSJU85pHN5oio2zGRDzK/DUchpYwI3BorUpdKNmZe1vo4ixDlqBkl2JOCiCaNfuDUFun0QEustrogPldYoU6P9dgWKQ5CoGkxj3XsZ+xcG4JOEdIKo9rEBRLuugfKIOb1mcPuJwwzqUf3U6jW4FCps5LnC4tsRc962D1sGgBziTyOHaHsxUD2b+wMq5RH3lwJopgZm/dnLc+sRN5Nr5KQnne64F3gEyDFZHJCakvQAAAABJRU5ErkJggg==",callback:s=>{t.deleteElement(s.id),t.extension.contextPad.hideContextMenu()}};t.extension.contextPad.setContextMenuItems([a]),t.extension.contextPad.setContextMenuByType("bpmn:startEvent",[n,r,i]),t.extension.contextPad.setContextMenuByType("bpmn:userTask",[n,r,i,o]),t.extension.contextPad.setContextMenuByType("bpmn:serviceTask",[n,r,i,o]),t.extension.contextPad.setContextMenuByType("bpmn:exclusiveGateway",[n,r])};var Ip={};const Dx=TI(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Px;function T$(){return Px||(Px=1,function(t){(function(e){e.parser=function(w,_){return new r(w,_)},e.SAXParser=r,e.SAXStream=c,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(w,_){if(!(this instanceof r))return new r(w,_);var F=this;o(F),F.q=F.c="",F.bufferCheckPosition=e.MAX_BUFFER_LENGTH,F.opt=_||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!w,F.noscript=!!(w||F.opt.noscript),F.state=C.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=Object.create(g)),F.opt.unquotedAttributeValues===void 0&&(F.opt.unquotedAttributeValues=!w),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),K(F,"onready")}Object.create||(Object.create=function(w){function _(){}_.prototype=w;var F=new _;return F}),Object.keys||(Object.keys=function(w){var _=[];for(var F in w)w.hasOwnProperty(F)&&_.push(F);return _});function i(w){for(var _=Math.max(e.MAX_BUFFER_LENGTH,10),F=0,L=0,se=n.length;L<se;L++){var fe=w[n[L]].length;if(fe>_)switch(n[L]){case"textNode":R(w);break;case"cdata":J(w,"oncdata",w.cdata),w.cdata="";break;case"script":J(w,"onscript",w.script),w.script="";break;default:B(w,"Max buffer length exceeded: "+n[L])}F=Math.max(F,fe)}var Ne=e.MAX_BUFFER_LENGTH-F;w.bufferCheckPosition=Ne+w.position}function o(w){for(var _=0,F=n.length;_<F;_++)w[n[_]]=""}function a(w){R(w),w.cdata!==""&&(J(w,"oncdata",w.cdata),w.cdata=""),w.script!==""&&(J(w,"onscript",w.script),w.script="")}r.prototype={end:function(){Z(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=Dx.Stream}catch{s=function(){}}s||(s=function(){});var l=e.EVENTS.filter(function(w){return w!=="error"&&w!=="end"});function u(w,_){return new c(w,_)}function c(w,_){if(!(this instanceof c))return new c(w,_);s.apply(this),this._parser=new r(w,_),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(L){F.emit("error",L),F._parser.error=null},this._decoder=null,l.forEach(function(L){Object.defineProperty(F,"on"+L,{get:function(){return F._parser["on"+L]},set:function(se){if(!se)return F.removeAllListeners(L),F._parser["on"+L]=se,se;F.on(L,se)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(s.prototype,{constructor:{value:c}}),c.prototype.write=function(w){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(w)){if(!this._decoder){var _=Dx.StringDecoder;this._decoder=new _("utf8")}w=this._decoder.write(w)}return this._parser.write(w.toString()),this.emit("data",w),!0},c.prototype.end=function(w){return w&&w.length&&this.write(w),this._parser.end(),!0},c.prototype.on=function(w,_){var F=this;return!F._parser["on"+w]&&l.indexOf(w)!==-1&&(F._parser["on"+w]=function(){var L=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,w),F.emit.apply(F,L)}),s.prototype.on.call(F,w,_)};var d="[CDATA[",f="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",g={xml:h,xmlns:v},m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(w){return w===" "||w===`
|
|
154
154
|
`||w==="\r"||w===" "}function T(w){return w==='"'||w==="'"}function A(w){return w===">"||b(w)}function S(w,_){return w.test(_)}function M(w,_){return!S(w,_)}var C=0;e.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(w){var _=e.ENTITIES[w],F=typeof _=="number"?String.fromCharCode(_):_;e.ENTITIES[w]=F});for(var G in e.STATE)e.STATE[e.STATE[G]]=G;C=e.STATE;function K(w,_,F){w[_]&&w[_](F)}function J(w,_,F){w.textNode&&R(w),K(w,_,F)}function R(w){w.textNode=k(w.opt,w.textNode),w.textNode&&K(w,"ontext",w.textNode),w.textNode=""}function k(w,_){return w.trim&&(_=_.trim()),w.normalize&&(_=_.replace(/\s+/g," ")),_}function B(w,_){return R(w),w.trackPosition&&(_+=`
|
|
155
155
|
Line: `+w.line+`
|
|
156
156
|
Column: `+w.column+`
|