@witlink/workflow 1.0.0 → 1.0.1
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.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29934,7 +29934,7 @@ const _N = Sb({ name: "ant-design-left", render: yN }), bN = { class: "container
|
|
|
29934
29934
|
});
|
|
29935
29935
|
};
|
|
29936
29936
|
}
|
|
29937
|
-
}), NN = /* @__PURE__ */ Gi(CN, [["__scopeId", "data-v-
|
|
29937
|
+
}), NN = /* @__PURE__ */ Gi(CN, [["__scopeId", "data-v-675d7eeb"]]);
|
|
29938
29938
|
Tb();
|
|
29939
29939
|
function IN(e) {
|
|
29940
29940
|
ql().setLang(e);
|
package/dist/index.umd.cjs
CHANGED
|
@@ -237,4 +237,4 @@
|
|
|
237
237
|
<input type="text" spellcheck="false" />
|
|
238
238
|
</div>
|
|
239
239
|
<div class="djs-search-results" />
|
|
240
|
-
</div>`,re.RESULT_HTML='<div class="djs-search-result"></div>',re.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',re.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const t2={__depends__:[wa,Ra,en],searchPad:["type",re]};function yp(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._search=i,t.registerProvider(this)}yp.$inject=["elementRegistry","searchPad","canvas","search"],yp.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(i){return!ge(i)&&!t.includes(i)});return this._search(n.map(i=>({element:i,label:Qt(i),id:i.id})),e,{keys:["label","id"]}).map(n2)};function n2(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const i2={__depends__:[t2,Uh],__init__:["bpmnSearch"],bpmnSearch:["type",yp]},r2="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",o2="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",a2={width:36,height:50},s2={width:50,height:50};function a_(e,t,n){return X("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const Cr=5;function Js(e,t){this._styles=t,e.registerProvider(this)}Js.$inject=["outline","styles"],Js.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!ge(e))return b(e,"bpmn:Gateway")?(n=X("rect"),M(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),G(n,M({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):le(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=X("rect"),G(n,M({x:-5,y:-5,rx:14,width:e.width+Cr*2,height:e.height+Cr*2},t))):b(e,"bpmn:EndEvent")?(n=X("circle"),G(n,M({cx:e.width/2,cy:e.height/2,r:e.width/2+Cr+1},t))):b(e,"bpmn:Event")?(n=X("circle"),G(n,M({cx:e.width/2,cy:e.height/2,r:e.width/2+Cr},t))):b(e,"bpmn:DataObjectReference")&&s_(e,"bpmn:DataObjectReference")?n=a_(r2,{x:-6,y:-6},t):b(e,"bpmn:DataStoreReference")&&s_(e,"bpmn:DataStoreReference")&&(n=a_(o2,{x:-6,y:-6},t)),n},Js.prototype.updateOutline=function(e,t){if(!ge(e))return le(e,["bpmn:SubProcess","bpmn:Group"])?(G(t,{width:e.width+Cr*2,height:e.height+Cr*2}),!0):!!le(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function s_(e,t){var n;return t==="bpmn:DataObjectReference"?n=a2:t==="bpmn:DataStoreReference"&&(n=s2),e.width===n.width&&e.height===n.height}const c2={__depends__:[Dy],__init__:["outlineProvider"],outlineProvider:["type",Js]};var l2='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';function on(e){Vr.call(this,e)}q(on,Vr),on.Viewer=Xn,on.NavigatedViewer=Zr,on.prototype.createDiagram=function(){return this.importXML(l2)},on.prototype._interactionModules=[Qd,ih,ah],on.prototype._modelingModules=[cR,Rl,MR,CR,ZR,Ll,iT,uM,tv,Es,hM,vM,DM,OM,IM,FM,JM,qv,oD,gD,RD,PD,Ry,QD,i2,c2],on.prototype._modules=[].concat(Xn.prototype._modules,on.prototype._interactionModules,on.prototype._modelingModules);const u2={name:"Camunda",uri:"http://camunda.org/schema/1.0/bpmn",prefix:"camunda",xml:{tagAlias:"lowerCase"},associations:[],types:JSON.parse('[{"name":"Definitions","isAbstract":true,"extends":["bpmn:Definitions"],"properties":[{"name":"diagramRelationId","isAttr":true,"type":"String"}]},{"name":"InOutBinding","superClass":["Element"],"isAbstract":true,"properties":[{"name":"source","isAttr":true,"type":"String"},{"name":"sourceExpression","isAttr":true,"type":"String"},{"name":"target","isAttr":true,"type":"String"},{"name":"businessKey","isAttr":true,"type":"String"},{"name":"local","isAttr":true,"type":"Boolean","default":false},{"name":"variables","isAttr":true,"type":"String"}]},{"name":"In","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity","bpmn:SignalEventDefinition"]}},{"name":"Out","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity"]}},{"name":"AsyncCapable","isAbstract":true,"extends":["bpmn:Activity","bpmn:Gateway","bpmn:Event"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false},{"name":"asyncBefore","isAttr":true,"type":"Boolean","default":false},{"name":"asyncAfter","isAttr":true,"type":"Boolean","default":false},{"name":"exclusive","isAttr":true,"type":"Boolean","default":true}]},{"name":"JobPriorized","isAbstract":true,"extends":["bpmn:Process","camunda:AsyncCapable"],"properties":[{"name":"jobPriority","isAttr":true,"type":"String"}]},{"name":"SignalEventDefinitionExtension","isAbstract":true,"extends":["bpmn:SignalEventDefinition"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false}]},{"name":"ErrorEventDefinitionExtension","isAbstract":true,"extends":["bpmn:ErrorEventDefinition"],"properties":[{"name":"errorCodeVariable","isAttr":true,"type":"String"},{"name":"errorMessageVariable","isAttr":true,"type":"String"}]},{"name":"ErrorEventDefinition","superClass":["bpmn:ErrorEventDefinition","Element"],"properties":[{"name":"expression","isAttr":true,"type":"String"}],"meta":{"allowedIn":["bpmn:ServiceTask"]}},{"name":"Error","isAbstract":true,"extends":["bpmn:Error"],"properties":[{"name":"camunda:errorMessage","isAttr":true,"type":"String"}]},{"name":"PotentialStarter","superClass":["Element"],"properties":[{"name":"resourceAssignmentExpression","type":"bpmn:ResourceAssignmentExpression"}]},{"name":"FormSupported","isAbstract":true,"extends":["bpmn:StartEvent","bpmn:UserTask"],"properties":[{"name":"formHandlerClass","isAttr":true,"type":"String"},{"name":"formKey","isAttr":true,"type":"String"},{"name":"formRef","isAttr":true,"type":"String"},{"name":"formRefBinding","isAttr":true,"type":"String"},{"name":"formRefVersion","isAttr":true,"type":"String"}]},{"name":"TemplateSupported","isAbstract":true,"extends":["bpmn:Collaboration","bpmn:Process","bpmn:FlowElement"],"properties":[{"name":"modelerTemplate","isAttr":true,"type":"String"},{"name":"modelerTemplateVersion","isAttr":true,"type":"Integer"}]},{"name":"Initiator","isAbstract":true,"extends":["bpmn:StartEvent"],"properties":[{"name":"initiator","isAttr":true,"type":"String"}]},{"name":"ScriptTask","isAbstract":true,"extends":["bpmn:ScriptTask"],"properties":[{"name":"resultVariable","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Process","isAbstract":true,"extends":["bpmn:Process"],"properties":[{"name":"candidateStarterGroups","isAttr":true,"type":"String"},{"name":"candidateStarterUsers","isAttr":true,"type":"String"},{"name":"versionTag","isAttr":true,"type":"String"},{"name":"historyTimeToLive","isAttr":true,"type":"String"},{"name":"isStartableInTasklist","isAttr":true,"type":"Boolean","default":true}]},{"name":"EscalationEventDefinitionExtension","isAbstract":true,"extends":["bpmn:EscalationEventDefinition"],"properties":[{"name":"escalationCodeVariable","isAttr":true,"type":"String"}]},{"name":"FormalExpression","isAbstract":true,"extends":["bpmn:FormalExpression"],"properties":[{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Assignable","extends":["bpmn:UserTask"],"properties":[{"name":"assignee","isAttr":true,"type":"String"},{"name":"candidateUsers","isAttr":true,"type":"String"},{"name":"candidateGroups","isAttr":true,"type":"String"},{"name":"dueDate","isAttr":true,"type":"String"},{"name":"followUpDate","isAttr":true,"type":"String"},{"name":"priority","isAttr":true,"type":"String"}]},{"name":"CallActivity","extends":["bpmn:CallActivity"],"properties":[{"name":"calledElementBinding","isAttr":true,"type":"String","default":"latest"},{"name":"calledElementVersion","isAttr":true,"type":"String"},{"name":"calledElementVersionTag","isAttr":true,"type":"String"},{"name":"calledElementTenantId","isAttr":true,"type":"String"},{"name":"caseRef","isAttr":true,"type":"String"},{"name":"caseBinding","isAttr":true,"type":"String","default":"latest"},{"name":"caseVersion","isAttr":true,"type":"String"},{"name":"caseTenantId","isAttr":true,"type":"String"},{"name":"variableMappingClass","isAttr":true,"type":"String"},{"name":"variableMappingDelegateExpression","isAttr":true,"type":"String"}]},{"name":"ServiceTaskLike","extends":["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"resultVariable","isAttr":true,"type":"String"}]},{"name":"DmnCapable","extends":["bpmn:BusinessRuleTask"],"properties":[{"name":"decisionRef","isAttr":true,"type":"String"},{"name":"decisionRefBinding","isAttr":true,"type":"String","default":"latest"},{"name":"decisionRefVersion","isAttr":true,"type":"String"},{"name":"mapDecisionResult","isAttr":true,"type":"String","default":"resultList"},{"name":"decisionRefTenantId","isAttr":true,"type":"String"}]},{"name":"ExternalCapable","extends":["camunda:ServiceTaskLike"],"properties":[{"name":"type","isAttr":true,"type":"String"},{"name":"topic","isAttr":true,"type":"String"}]},{"name":"TaskPriorized","extends":["bpmn:Process","camunda:ExternalCapable"],"properties":[{"name":"taskPriority","isAttr":true,"type":"String"}]},{"name":"Properties","superClass":["Element"],"meta":{"allowedIn":["*"]},"properties":[{"name":"values","type":"Property","isMany":true}]},{"name":"Property","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"value","type":"String","isAttr":true}]},{"name":"Connector","superClass":["Element"],"meta":{"allowedIn":["camunda:ServiceTaskLike"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"}]},{"name":"InputOutput","superClass":["Element"],"meta":{"allowedIn":["bpmn:FlowNode","camunda:Connector"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"},{"name":"inputParameters","isMany":true,"type":"InputParameter"},{"name":"outputParameters","isMany":true,"type":"OutputParameter"}]},{"name":"InputOutputParameter","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"InputOutputParameterDefinition","isAbstract":true},{"name":"List","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"items","isMany":true,"type":"InputOutputParameterDefinition"}]},{"name":"Map","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"entries","isMany":true,"type":"Entry"}]},{"name":"Entry","properties":[{"name":"key","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"Value","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"id","isAttr":true,"type":"String"},{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Script","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"scriptFormat","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Field","superClass":["Element"],"meta":{"allowedIn":["camunda:ServiceTaskLike","camunda:ExecutionListener","camunda:TaskListener"]},"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"expression","type":"String"},{"name":"stringValue","isAttr":true,"type":"String"},{"name":"string","type":"String"}]},{"name":"InputParameter","superClass":["InputOutputParameter"]},{"name":"OutputParameter","superClass":["InputOutputParameter"]},{"name":"Collectable","isAbstract":true,"extends":["bpmn:MultiInstanceLoopCharacteristics"],"superClass":["camunda:AsyncCapable"],"properties":[{"name":"collection","isAttr":true,"type":"String"},{"name":"elementVariable","isAttr":true,"type":"String"}]},{"name":"FailedJobRetryTimeCycle","superClass":["Element"],"meta":{"allowedIn":["camunda:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"ExecutionListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true}]},{"name":"TaskListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:UserTask"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true},{"name":"id","type":"String","isAttr":true},{"name":"eventDefinitions","type":"bpmn:TimerEventDefinition","isMany":true}]},{"name":"FormProperty","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"required","type":"String","isAttr":true},{"name":"readable","type":"String","isAttr":true},{"name":"writable","type":"String","isAttr":true},{"name":"variable","type":"String","isAttr":true},{"name":"expression","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"default","type":"String","isAttr":true},{"name":"values","type":"Value","isMany":true}]},{"name":"FormData","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"fields","type":"FormField","isMany":true},{"name":"businessKey","type":"String","isAttr":true}]},{"name":"FormField","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"label","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"defaultValue","type":"String","isAttr":true},{"name":"properties","type":"Properties"},{"name":"validation","type":"Validation"},{"name":"values","type":"Value","isMany":true}]},{"name":"Validation","superClass":["Element"],"properties":[{"name":"constraints","type":"Constraint","isMany":true}]},{"name":"Constraint","superClass":["Element"],"properties":[{"name":"name","type":"String","isAttr":true},{"name":"config","type":"String","isAttr":true}]},{"name":"ConditionalEventDefinitionExtension","isAbstract":true,"extends":["bpmn:ConditionalEventDefinition"],"properties":[{"name":"variableName","isAttr":true,"type":"String"},{"name":"variableEvents","isAttr":true,"type":"String"}]}]'),emumerations:[]},p2={class:"wrapper"},f2={class:"mt-xs"},d2={class:"flex-sc"},h2={class:"mt-xs"},m2=gi(h.defineComponent({__name:"RuleConfig",props:{jsonStr:{type:String,required:!0}},emits:["submit"],setup(e,{emit:t}){const{t:n}=an.useI18n(),i=e,r=t,o=h.ref({});function a(p){const f=p.replace(/(false|true|\d+)(?=")/g,"$1,");return JSON.parse(`{${f}}`)}function s(p){if(typeof p=="string"&&(p.trim().startsWith("{")||p.trim().startsWith("[")))try{return JSON.parse(p),!0}catch{return!1}return!1}function c(){i.jsonStr?s(i.jsonStr)?o.value=JSON.parse(i.jsonStr):o.value=a(i.jsonStr):o.value={revokeRule:!1,fallbackRule:!1,approverRemoveDuplicates:2,timeoutConfigSwitch:!1,timeoutPeriod:1,timeoutHandler:1}}function l(){st.Modal.destroyAll()}function u(){const p=o.value;if(p.timeoutConfigSwitch&&!p.timeoutPeriod){st.message.warning(n("bpmn.timeoutPeriodEmptyTip"));return}r("submit",o.value),st.Modal.destroyAll()}return h.onMounted(()=>{c()}),(p,f)=>{const d=K.Checkbox,m=K.FormItem,v=K.Radio,g=K.RadioGroup,w=K.InputNumber,C=K.Form,x=K.Button,E=K.Space;return h.openBlock(),h.createElementBlock("div",p2,[h.createVNode(C,{class:"my-nm","label-col":{span:6},"wrapper-col":{span:18},colon:!1,model:h.unref(o)},{default:h.withCtx(()=>[h.createVNode(m,{label:p.$t("bpmn.revertRule")},{default:h.withCtx(()=>[h.createVNode(d,{checked:h.unref(o).revokeRule,"onUpdate:checked":f[0]||(f[0]=S=>h.unref(o).revokeRule=S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.revertRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.rollbackRule")},{default:h.withCtx(()=>[h.createVNode(d,{checked:h.unref(o).fallbackRule,"onUpdate:checked":f[1]||(f[1]=S=>h.unref(o).fallbackRule=S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.rollbackRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.deduplicationApprovers")},{default:h.withCtx(()=>[h.createElementVNode("div",f2,h.toDisplayString(p.$t("bpmn.deduplicationApproversTxt")),1),h.createVNode(g,{value:h.unref(o).approverRemoveDuplicates,"onUpdate:value":f[2]||(f[2]=S=>h.unref(o).approverRemoveDuplicates=S)},{default:h.withCtx(()=>[h.createVNode(v,{value:0},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.deduplicationRadio0")),1)]),_:1}),h.createVNode(v,{value:1},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.deduplicationRadio1")),1)]),_:1}),h.createVNode(v,{value:2},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.deduplicationRadio2")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.timeoutRule")},{default:h.withCtx(()=>[h.createVNode(d,{checked:h.unref(o).timeoutConfigSwitch,"onUpdate:checked":f[3]||(f[3]=S=>h.unref(o).timeoutConfigSwitch=S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.timeoutRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),h.unref(o).timeoutConfigSwitch?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createVNode(m,{label:p.$t("wo_my.timeout")},{default:h.withCtx(()=>[h.createElementVNode("div",d2,[h.createTextVNode(h.toDisplayString(p.$t("bpmn.linkTimeoutTxt1"))+" ",1),h.createVNode(w,{class:"mx-xs",value:h.unref(o).timeoutPeriod,"onUpdate:value":f[4]||(f[4]=S=>h.unref(o).timeoutPeriod=S),min:1,max:1e4,precision:0},null,8,["value"]),h.createTextVNode(" "+h.toDisplayString(p.$t("bpmn.linkTimeoutTxt2")),1)])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.timeoutHandle")},{default:h.withCtx(()=>[h.createElementVNode("div",h2,h.toDisplayString(p.$t("bpmn.timeoutHandleTxt")),1),h.createVNode(g,{value:h.unref(o).timeoutHandler,"onUpdate:value":f[5]||(f[5]=S=>h.unref(o).timeoutHandler=S)},{default:h.withCtx(()=>[h.createVNode(v,{value:0},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.timeoutHandleRadio0")),1)]),_:1}),h.createVNode(v,{value:1},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.timeoutHandleRadio1")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"])],64)):h.createCommentVNode("",!0)]),_:1},8,["model"]),h.createVNode(E,{class:"modal-btns"},{default:h.withCtx(()=>[h.createVNode(x,{onClick:l},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("common.btn_cancel1")),1)]),_:1}),h.createVNode(x,{type:"primary",onClick:u},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("common.btn_sure")),1)]),_:1})]),_:1})])}}}),[["__scopeId","data-v-cc50d8c3"]]),g2=h.defineComponent({__name:"Process",props:h.mergeModels({isEdit:{type:Boolean}},{formState:{},formStateModifiers:{}}),emits:["update:formState"],setup(e){const{modal:t}=st.App.useApp(),{t:n}=an.useI18n(),i=h.useModel(e,"formState"),r=h.ref(["1","2","3","4","5","6"]);function o(){t.info({title:n("ruleModel.title"),content:h.h(m2,{jsonStr:i.value.jobPriority,onSubmit:a=>{i.value.jobPriority=JSON.stringify(a)}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:850,class:"modal-comp"})}return(a,s)=>{const c=K.Input,l=K.FormItem,u=K.Form,p=K.CollapsePanel,f=K.Collapse;return h.openBlock(),h.createBlock(f,{activeKey:h.unref(r),"onUpdate:activeKey":s[4]||(s[4]=d=>h.isRef(r)?r.value=d:null)},{default:h.withCtx(()=>[h.createVNode(p,{key:"1",header:a.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(u,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(l,{label:a.$t("FLOW_CHART.Id"),extra:a.$t("FLOW_CHART.idTip")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.id,"onUpdate:value":s[0]||(s[0]=d=>i.value.id=d),placeholder:a.$t("common.plsEnter"),readonly:e.isEdit},null,8,["value","placeholder","readonly"])]),_:1},8,["label","extra"]),h.createVNode(l,{label:a.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.name,"onUpdate:value":s[1]||(s[1]=d=>i.value.name=d),placeholder:a.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(l,{label:a.$t("FLOW_CHART.Version Tag")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.versionTag,"onUpdate:value":s[2]||(s[2]=d=>i.value.versionTag=d),disabled:""},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),h.createVNode(p,{key:"4",header:a.$t("FLOW_CHART.Job Configuration")},{default:h.withCtx(()=>[h.createVNode(u,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(l,{label:a.$t("FLOW_CHART.Job Priority")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.jobPriority,"onUpdate:value":s[3]||(s[3]=d=>i.value.jobPriority=d),placeholder:a.$t("common.plsSelect"),readonly:"",onClick:o},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),v2={class:"modal-container"},c_=h.defineComponent({__name:"SelectLink",props:{id:{type:String}},emits:["submit"],setup(e,{emit:t}){const{t:n}=an.useI18n(),i=e,r=t,o=h.ref({}),a=h.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=h.ref([]),c=h.ref();function l(g,w){s.value=g,c.value=w}h.watchEffect(()=>{i.id&&(s.value=[i.id])});function u(g){c.value=null;const w={...o.value};return Object.assign(w,g),Ct.getLinkList(w)}const p=h.ref(),f=()=>{p.value.refresh()},d=()=>{o.value={},f()};h.onMounted(()=>{d()});function m(){st.Modal.destroyAll()}function v(){var g;(g=c.value)!=null&&g.length&&r("submit",c.value[0]),st.Modal.destroyAll()}return(g,w)=>{const C=K.Input,x=K.FormItem,E=K.Button,S=K.Space,R=K.Form,N=h.resolveComponent("a-table-ex");return h.openBlock(),h.createElementBlock("div",v2,[h.createVNode(R,{class:"form-query mx-nm mt-nm",layout:"vertical",model:h.unref(o)},{default:h.withCtx(()=>[h.createVNode(x,{label:g.$t("link.id")},{default:h.withCtx(()=>[h.createVNode(C,{value:h.unref(o).id,"onUpdate:value":w[0]||(w[0]=P=>h.unref(o).id=P),placeholder:g.$t("common.plsEnter"),onKeydown:h.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(x,{label:g.$t("link.description")},{default:h.withCtx(()=>[h.createVNode(C,{value:h.unref(o).description,"onUpdate:value":w[1]||(w[1]=P=>h.unref(o).description=P),placeholder:g.$t("common.plsEnter"),onKeydown:h.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(x,{class:"form-btns"},{default:h.withCtx(()=>[h.createVNode(S,null,{default:h.withCtx(()=>[h.createVNode(E,{type:"primary",onClick:f},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_search")),1)]),_:1}),h.createVNode(E,{onClick:d},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),h.createVNode(N,{ref_key:"tableEx",ref:p,class:"table-query bordered mx-nm",columns:h.unref(a),rowKey:"id","row-selection":{type:"radio",selectedRowKeys:h.unref(s),onChange:l},loadData:u},null,8,["columns","row-selection"]),h.createVNode(S,{class:"modal-btns"},{default:h.withCtx(()=>{var P;return[h.createVNode(E,{onClick:m},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_cancel1")),1)]),_:1}),h.createVNode(E,{type:"primary",disabled:!((P=h.unref(s))!=null&&P.length),onClick:v},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),y2={class:"modal-container"},_2=h.defineComponent({__name:"SelectUser",props:{userIds:{type:String||Array},branchId:{type:String},mode:{type:String,default:"default"}},emits:["submit"],setup(e,{emit:t}){const{t:n}=an.useI18n(),i=e,r=t,o=h.ref({}),a=h.ref([{title:n("user.user_name"),dataIndex:"userName"},{title:n("user.user_id"),dataIndex:"userCode"},{title:n("arrears.org"),dataIndex:"branchName"}]),s=h.ref([]),c=h.ref();function l(g,w){s.value=g,c.value=w}h.watchEffect(()=>{i.userIds&&(s.value=Array.isArray(i.userIds)?i.userIds:[i.userIds])});function u(g){c.value=null;const w={...o.value,branchId:i.branchId};return Object.assign(w,g),Ct.getUserList(w)}const p=h.ref(),f=()=>{p.value.refresh()},d=()=>{o.value={},f()};h.onMounted(()=>{d()});function m(){st.Modal.destroyAll()}function v(){var g;if((g=c.value)!=null&&g.length){const w=c.value;r("submit",i.mode==="multiple"?w:w[0])}st.Modal.destroyAll()}return(g,w)=>{const C=K.Input,x=K.FormItem,E=K.Button,S=K.Space,R=K.Form,N=h.resolveComponent("a-table-ex");return h.openBlock(),h.createElementBlock("div",y2,[h.createVNode(R,{class:"form-query mx-nm mt-nm",layout:"vertical",model:h.unref(o)},{default:h.withCtx(()=>[h.createVNode(x,{label:g.$t("user.key")},{default:h.withCtx(()=>[h.createVNode(C,{value:h.unref(o).userName,"onUpdate:value":w[0]||(w[0]=P=>h.unref(o).userName=P),placeholder:g.$t("common.plsEnter"),onKeydown:h.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(x,{class:"form-btns"},{default:h.withCtx(()=>[h.createVNode(S,null,{default:h.withCtx(()=>[h.createVNode(E,{type:"primary",onClick:f},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_search")),1)]),_:1}),h.createVNode(E,{onClick:d},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),h.createVNode(N,{ref_key:"tableEx",ref:p,class:"table-query bordered mx-nm",columns:h.unref(a),rowKey:"userId","row-selection":{type:e.mode==="multiple"?"checkbox":"radio",selectedRowKeys:h.unref(s),onChange:l},loadData:u},null,8,["columns","row-selection"]),h.createVNode(S,{class:"modal-btns"},{default:h.withCtx(()=>{var P;return[h.createVNode(E,{onClick:m},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_cancel1")),1)]),_:1}),h.createVNode(E,{type:"primary",disabled:!((P=h.unref(s))!=null&&P.length),onClick:v},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),b2=h.defineComponent({__name:"UserTask",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const{modal:t}=st.App.useApp(),{t:n}=an.useI18n(),i=h.useModel(e,"formState"),r=h.ref(["1","2","3","4","5","6"]),o=h.ref([]),a=h.ref([]),s=h.ref([]),c=h.computed(()=>{const w=i.value.assignee;return w==null?void 0:w.startsWith("${")});function l(){const w="abcdefghijklmnopqrstuvwxyz";let C="";for(let x=0;x<2;x++)C+=w.charAt(Math.floor(Math.random()*w.length));for(let x=0;x<2;x++)C+=Math.floor(Math.random()*10);return C}function u(){t.info({title:n("link.select_link"),content:h.h(c_,{id:i.value.id,onSubmit:w=>{let C=w.id;C.endsWith("*")&&(C=C.substring(0,C.length-1)+l()),Object.assign(i.value,{id:C,name:w.description,assignee:"","camunda:assigneeName":"",priority:void 0,userArr:[],roleArr:[]}),w.variable&&(i.value.assignee=`\${${w.variable}}`)}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function p(){t.info({title:n("user.select_user"),content:h.h(_2,{userIds:i.value.assignee,onSubmit:w=>{Object.assign(i.value,{assignee:w.userId,"camunda:assigneeName":w.userName})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function f(){Ct.getBranchTree().then(w=>{w.code===0&&(o.value=w.result||[])})}function d(){const w={pageNo:1,pageSize:1e3,branchId:i.value.priority||void 0};Ct.getUserList(w).then(C=>{var x,E;C.code===0&&(s.value=((E=(x=C.result)==null?void 0:x.data)==null?void 0:E.map(S=>({...S,label:S.userName,value:S.userId})))||[])})}function m(){const w={pageNo:1,pageSize:1e3,branchId:i.value.priority||void 0};Ct.getRoleList(w).then(C=>{var x,E;C.code===0&&(a.value=((E=(x=C.result)==null?void 0:x.data)==null?void 0:E.map(S=>({...S,label:S.roleName,value:S.roleId})))||[])})}function v(){Object.assign(i.value,{userArr:[],roleArr:[]}),d(),m()}function g(w){if(w!=null&&w.length){const C=s.value.find(x=>x.userId===w[0]);i.value.priority!==C.branchId&&(Object.assign(i.value,{priority:C.branchId,roleArr:[]}),d(),m())}}return h.onMounted(()=>{f(),d(),m()}),(w,C)=>{const x=K.Input,E=K.FormItem,S=K.TreeSelect,R=K.Select,N=K.Form,P=K.CollapsePanel,O=K.Radio,I=K.RadioGroup,L=K.Checkbox,B=K.CheckboxGroup,V=K.Collapse;return h.openBlock(),h.createBlock(V,{activeKey:h.unref(r),"onUpdate:activeKey":C[9]||(C[9]=Y=>h.isRef(r)?r.value=Y:null)},{default:h.withCtx(()=>[h.createVNode(P,{key:"1",header:w.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(N,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(E,{label:w.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(x,{value:i.value.id,"onUpdate:value":C[0]||(C[0]=Y=>i.value.id=Y),placeholder:w.$t("common.plsEnter"),readonly:"",onClick:u},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(x,{value:i.value.name,"onUpdate:value":C[1]||(C[1]=Y=>i.value.name=Y),placeholder:w.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Assignee")},{default:h.withCtx(()=>[h.unref(c)?(h.openBlock(),h.createBlock(x,{key:0,value:i.value.assignee,"onUpdate:value":C[2]||(C[2]=Y=>i.value.assignee=Y),placeholder:w.$t("common.plsSelect"),disabled:""},null,8,["value","placeholder"])):(h.openBlock(),h.createBlock(x,{key:1,value:i.value["camunda:assigneeName"],"onUpdate:value":C[3]||(C[3]=Y=>i.value["camunda:assigneeName"]=Y),placeholder:w.$t("common.plsSelect"),readonly:"",onClick:p},null,8,["value","placeholder"]))]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Priority")},{default:h.withCtx(()=>[h.createVNode(S,{value:i.value.priority,"onUpdate:value":C[4]||(C[4]=Y=>i.value.priority=Y),placeholder:w.$t("common.plsSelect"),"tree-data":h.unref(o),treeDefaultExpandAll:"",treeNodeFilterProp:"label","show-search":"","allow-clear":"",onChange:v},null,8,["value","placeholder","tree-data"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Candidate Users")},{default:h.withCtx(()=>[h.createVNode(R,{value:i.value.userArr,"onUpdate:value":C[5]||(C[5]=Y=>i.value.userArr=Y),placeholder:w.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:h.unref(s),optionFilterProp:"label",disabled:h.unref(c),onChange:g},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Candidate Groups")},{default:h.withCtx(()=>[h.createVNode(R,{value:i.value.roleArr,"onUpdate:value":C[6]||(C[6]=Y=>i.value.roleArr=Y),placeholder:w.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:h.unref(a),optionFilterProp:"label",disabled:h.unref(c)},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),h.createVNode(P,{key:"2",header:w.$t("FLOW_CHART.Approval Mode")},{default:h.withCtx(()=>[h.createVNode(I,{value:i.value.approvalSign,"onUpdate:value":C[7]||(C[7]=Y=>i.value.approvalSign=Y)},{default:h.withCtx(()=>[h.createVNode(O,{value:"orSign"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.Or Sign")),1)]),_:1}),h.createVNode(O,{value:"countersign"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.countersign")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"]),h.createVNode(P,{key:"3",header:w.$t("FLOW_CHART.Approval Required")},{default:h.withCtx(()=>[h.createVNode(B,{value:i.value.approvalCheckbox,"onUpdate:value":C[8]||(C[8]=Y=>i.value.approvalCheckbox=Y)},{default:h.withCtx(()=>[h.createVNode(L,{value:"advice"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.Comments Required")),1)]),_:1}),h.createVNode(L,{value:"attachment"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.Attachment Required")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),E2=h.defineComponent({__name:"ExclusiveGateway",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const t=h.useModel(e,"formState"),n=h.ref(["1","2","3","4","5","6"]);return(i,r)=>{const o=K.Input,a=K.FormItem,s=K.Form,c=K.CollapsePanel,l=K.Collapse;return h.openBlock(),h.createBlock(l,{activeKey:h.unref(n),"onUpdate:activeKey":r[2]||(r[2]=u=>h.isRef(n)?n.value=u:null)},{default:h.withCtx(()=>[h.createVNode(c,{key:"1",header:i.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(s,{layout:"vertical",model:t.value},{default:h.withCtx(()=>[h.createVNode(a,{label:i.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.id,"onUpdate:value":r[0]||(r[0]=u=>t.value.id=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.name,"onUpdate:value":r[1]||(r[1]=u=>t.value.name=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),x2=h.defineComponent({__name:"SequenceFlow",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const t=h.useModel(e,"formState"),n=h.ref(["1","2","3","4","5","6"]);return(i,r)=>{const o=K.Input,a=K.FormItem,s=K.SelectOption,c=K.Select,l=K.Form,u=K.CollapsePanel,p=K.Collapse;return h.openBlock(),h.createBlock(p,{activeKey:h.unref(n),"onUpdate:activeKey":r[4]||(r[4]=f=>h.isRef(n)?n.value=f:null)},{default:h.withCtx(()=>[h.createVNode(u,{key:"1",header:i.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(l,{layout:"vertical",model:t.value},{default:h.withCtx(()=>[h.createVNode(a,{label:i.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.id,"onUpdate:value":r[0]||(r[0]=f=>t.value.id=f),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.name,"onUpdate:value":r[1]||(r[1]=f=>t.value.name=f),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Condition Type")},{default:h.withCtx(()=>[h.createVNode(c,{value:t.value.condType,"onUpdate:value":r[2]||(r[2]=f=>t.value.condType=f),placeholder:i.$t("common.plsSelect"),allowClear:""},{default:h.withCtx(()=>[h.createVNode(s,{value:"bpmn:FormalExpression"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(i.$t("FLOW_CHART.Expression")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label"]),t.value.condType==="bpmn:FormalExpression"?(h.openBlock(),h.createBlock(a,{key:0,label:i.$t("FLOW_CHART.Expression")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.condBody,"onUpdate:value":r[3]||(r[3]=f=>t.value.condBody=f),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])):h.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),w2=h.defineComponent({__name:"EndEvent",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const{modal:t}=st.App.useApp(),{t:n}=an.useI18n(),i=h.useModel(e,"formState"),r=h.ref(["1","2","3","4","5","6"]);function o(){const s="abcdefghijklmnopqrstuvwxyz";let c="";for(let l=0;l<2;l++)c+=s.charAt(Math.floor(Math.random()*s.length));for(let l=0;l<2;l++)c+=Math.floor(Math.random()*10);return c}function a(){t.info({title:n("link.select_link"),content:h.h(c_,{id:i.value.id,onSubmit:s=>{let c=s.id;c.endsWith("*")&&(c=c.substring(0,c.length-1)+o()),Object.assign(i.value,{id:c,name:s.description})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}return(s,c)=>{const l=K.Input,u=K.FormItem,p=K.Form,f=K.CollapsePanel,d=K.Collapse;return h.openBlock(),h.createBlock(d,{activeKey:h.unref(r),"onUpdate:activeKey":c[2]||(c[2]=m=>h.isRef(r)?r.value=m:null)},{default:h.withCtx(()=>[h.createVNode(f,{key:"1",header:s.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(p,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(u,{label:s.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(l,{value:i.value.id,"onUpdate:value":c[0]||(c[0]=m=>i.value.id=m),placeholder:s.$t("common.plsEnter"),readonly:"",onClick:a},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(u,{label:s.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(l,{value:i.value.name,"onUpdate:value":c[1]||(c[1]=m=>i.value.name=m),placeholder:s.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),S2=h.defineComponent({__name:"Other",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const t=h.useModel(e,"formState"),n=h.ref(["1","2","3","4","5","6"]);return(i,r)=>{const o=K.Input,a=K.FormItem,s=K.Form,c=K.CollapsePanel,l=K.Collapse;return h.openBlock(),h.createBlock(l,{activeKey:h.unref(n),"onUpdate:activeKey":r[2]||(r[2]=u=>h.isRef(n)?n.value=u:null)},{default:h.withCtx(()=>[h.createVNode(c,{key:"1",header:i.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(s,{layout:"vertical",model:t.value},{default:h.withCtx(()=>[h.createVNode(a,{label:i.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.id,"onUpdate:value":r[0]||(r[0]=u=>t.value.id=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.name,"onUpdate:value":r[1]||(r[1]=u=>t.value.name=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),C2={class:"properties-panel"},R2=gi(h.defineComponent({__name:"BpmnPropertiesPanel",props:{modeler:{type:on},isEdit:{type:Boolean}},setup(e){const t=e,n=h.ref(""),i=h.ref({});let r,o,a;h.watch(()=>t.modeler,()=>{t.modeler&&(r=t.modeler,s())}),h.watch(i,(u,p)=>{u===p&&l()},{deep:!0});function s(){o=r.get("modeling"),r.on("element.click",u=>{c(u.element)}),r.on("selection.changed",u=>{if(u.newSelection.length)c(u.newSelection[0]);else{const p=r.get("canvas").getRootElement();c(p)}})}function c(u){if(!(u!=null&&u.businessObject)||a===u)return;a=u;const p=u.businessObject,f=p.$type;n.value="",h.nextTick(()=>{n.value=f});const d={...p.$attrs};Object.keys(p).forEach(m=>{const v=p[m];typeof v=="string"&&(d[m]=v)}),f==="bpmn:UserTask"?(Object.assign(d,{approvalSign:d["camunda:countersign"]==="true"?"countersign":"orSign",approvalCheckbox:[]}),d["camunda:advice"]==="true"&&d.approvalCheckbox.push("advice"),d["camunda:attachment"]==="true"&&d.approvalCheckbox.push("attachment"),d.userArr=(d.candidateUsers||"").split(",").filter(m=>m),d.roleArr=(d.candidateGroups||"").split(",").filter(m=>m)):f==="bpmn:SequenceFlow"&&p.conditionExpression&&Object.assign(d,{condType:p.conditionExpression.$type,condBody:p.conditionExpression.body}),i.value=d}function l(){var m,v;const u=i.value;function p(g){return g?"true":"false"}const f={id:u.id,name:u.name},d=n.value;if(d==="bpmn:Process")u.jobPriority&&Object.assign(f,{"camunda:jobPriority":u.jobPriority});else if(d==="bpmn:UserTask")Object.assign(f,{"camunda:orSign":p(u.approvalSign==="orSign"),"camunda:countersign":p(u.approvalSign==="countersign"),"camunda:advice":p(u.approvalCheckbox.includes("advice")),"camunda:attachment":p(u.approvalCheckbox.includes("attachment")),"camunda:assignee":u.assignee||void 0,"camunda:assigneeName":u["camunda:assigneeName"]||void 0,"camunda:priority":u.priority||void 0,"camunda:candidateUsers":((m=u.userArr)==null?void 0:m.join())||void 0,"camunda:candidateGroups":((v=u.roleArr)==null?void 0:v.join())||void 0});else if(d==="bpmn:SequenceFlow")if(u.condType){const g=r.get("moddle").create("bpmn:FormalExpression",{body:u.condBody});f.conditionExpression=g}else f.conditionExpression=null;o.updateProperties(a,f)}return(u,p)=>{const f=ef;return h.openBlock(),h.createElementBlock("div",C2,[h.createVNode(f,null,{default:h.withCtx(()=>[h.unref(n)==="bpmn:Process"?(h.openBlock(),h.createBlock(g2,{key:0,formState:h.unref(i),"onUpdate:formState":p[0]||(p[0]=d=>h.isRef(i)?i.value=d:null),isEdit:e.isEdit},null,8,["formState","isEdit"])):h.unref(n)==="bpmn:UserTask"?(h.openBlock(),h.createBlock(b2,{key:1,formState:h.unref(i),"onUpdate:formState":p[1]||(p[1]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)==="bpmn:ExclusiveGateway"?(h.openBlock(),h.createBlock(E2,{key:2,formState:h.unref(i),"onUpdate:formState":p[2]||(p[2]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)==="bpmn:SequenceFlow"?(h.openBlock(),h.createBlock(x2,{key:3,formState:h.unref(i),"onUpdate:formState":p[3]||(p[3]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)==="bpmn:EndEvent"?(h.openBlock(),h.createBlock(w2,{key:4,formState:h.unref(i),"onUpdate:formState":p[4]||(p[4]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)?(h.openBlock(),h.createBlock(S2,{key:5,formState:h.unref(i),"onUpdate:formState":p[5]||(p[5]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.createCommentVNode("",!0)]),_:1})])}}}),[["__scopeId","data-v-5aba2478"]]),T2={class:"wrapper"},P2=gi(h.defineComponent({__name:"index",props:{data:{type:Object,required:!0}},setup(e,{expose:t}){const n=e,i=h.shallowRef();function r(){i.value=new on({container:"#canvas",moddleExtensions:{camunda:u2}})}function o(){Ct.getBpmnXml({code:n.data.code}).then(s=>{var c;if(s.code===0){const l=s.result.text;(c=i.value)==null||c.importXML(l)}})}h.onMounted(()=>{var s;r(),n.data.code?o():(s=i.value)==null||s.createDiagram()});function a(){var s;return(s=i.value)==null?void 0:s.saveXML({format:!0})}return t({saveXML:a}),(s,c)=>(h.openBlock(),h.createElementBlock("div",T2,[c[0]||(c[0]=h.createElementVNode("div",{id:"canvas"},null,-1)),h.createVNode(R2,{modeler:h.unref(i),isEdit:e.data.opType==="2"},null,8,["modeler","isEdit"])]))}}),[["__scopeId","data-v-42ed31bc"]]),A2={class:"icon",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function k2(e,t){return h.openBlock(),h.createElementBlock("svg",A2,t[0]||(t[0]=[h.createElementVNode("path",{fill:"currentColor",d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281l360-281.1c3.8-3 6.1-7.7 6.1-12.6"},null,-1)]))}const M2=h.markRaw({name:"ant-design-left",render:k2}),D2={class:"container"},N2={class:"viewer-container"},O2=gi(h.defineComponent({__name:"BpmnEditPage",props:{data:{type:Object,required:!0}},setup(e){const{t}=an.useI18n(),n=e,i=h.computed(()=>{const c=n.data.opType||"1";if(c==="1")return t("bpmn.add_workflow");if(c==="2")return t("bpmn.edit_workflow");if(c==="3")return t("bpmn.clone_workflow")}),r=h.inject(Ko);function o(){r==null||r.emit("changeComp",{comp:"BusTypeList"})}const a=h.ref();function s(){var c;(c=a.value)==null||c.saveXML().then(({error:l,xml:u})=>{if(l){st.message.error(l);return}const p={type:n.data.type,text:u};((n.data.opType||"1")==="2"?Ct.bpmnUpdate(p):Ct.bpmnInsert(p)).then(m=>{m.code===0&&(r==null||r.emit("changeComp",{comp:"BusTypeList"}))})})}return(c,l)=>{const u=M2,p=K.Button,f=K.Space,d=K.PageHeader,m=P2;return h.openBlock(),h.createElementBlock("div",D2,[h.createVNode(d,{class:"page-header-sticky",title:h.unref(i),onBack:o},{backIcon:h.withCtx(()=>[h.createVNode(u)]),extra:h.withCtx(()=>[h.createVNode(f,null,{default:h.withCtx(()=>[h.createVNode(p,{type:"default",onClick:o},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c.$t("common.btn_cancel")),1)]),_:1}),h.createVNode(p,{type:"primary",onClick:s},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c.$t("common.btn_ok")),1)]),_:1})]),_:1})]),_:1},8,["title"]),h.createElementVNode("div",N2,[h.createVNode(m,{ref_key:"bpmnViewer",ref:a,data:e.data},null,8,["data"])])])}}}),[["__scopeId","data-v-f3f3967f"]]),I2={class:"wrapper"},B2=gi(h.defineComponent({components:{BusTypeList:x0,BpmnEditPage:O2},__name:"index",setup(e){const t=h.ref("BusTypeList"),n=h.ref(),i=M_(Ko);return h.provide(Ko,i),i.on((r,o)=>{r==="changeComp"&&(t.value=o.comp,n.value=o)}),(r,o)=>{const a=I_;return h.openBlock(),h.createBlock(a,null,{default:h.withCtx(()=>[h.createElementVNode("div",I2,[(h.openBlock(),h.createBlock(h.KeepAlive,{include:"BusTypeList"},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(t)),{data:h.unref(n)},null,8,["data"]))],1024))])]),_:1})}}}),[["__scopeId","data-v-b15bff88"]]);_p.createPinia();function L2(e){ic().setLang(e)}function $2(e,t){const{i18n:n,pinia:i,theme:r}=t;u_(n);const o=ic();o.setTheme(r),o.setupLangWatcher()}const j2={install:$2};yt.WfManagePage=B2,yt.default=j2,yt.setWorkflowLang=L2,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
240
|
+
</div>`,re.RESULT_HTML='<div class="djs-search-result"></div>',re.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>',re.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const t2={__depends__:[wa,Ra,en],searchPad:["type",re]};function yp(e,t,n,i){this._elementRegistry=e,this._canvas=n,this._search=i,t.registerProvider(this)}yp.$inject=["elementRegistry","searchPad","canvas","search"],yp.prototype.find=function(e){var t=this._canvas.getRootElements(),n=this._elementRegistry.filter(function(i){return!ge(i)&&!t.includes(i)});return this._search(n.map(i=>({element:i,label:Qt(i),id:i.id})),e,{keys:["label","id"]}).map(n2)};function n2(e){const{item:{element:t},tokens:n}=e;return{element:t,primaryTokens:n.label,secondaryTokens:n.id}}const i2={__depends__:[t2,Uh],__init__:["bpmnSearch"],bpmnSearch:["type",yp]},r2="M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z",o2="M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z",a2={width:36,height:50},s2={width:50,height:50};function a_(e,t,n){return X("path",{d:e,strokeWidth:2,transform:`translate(${t.x}, ${t.y})`,...n})}const Cr=5;function Js(e,t){this._styles=t,e.registerProvider(this)}Js.$inject=["outline","styles"],Js.prototype.getOutline=function(e){const t=this._styles.cls("djs-outline",["no-fill"]);var n;if(!ge(e))return b(e,"bpmn:Gateway")?(n=X("rect"),M(n.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),G(n,M({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},t))):le(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(n=X("rect"),G(n,M({x:-5,y:-5,rx:14,width:e.width+Cr*2,height:e.height+Cr*2},t))):b(e,"bpmn:EndEvent")?(n=X("circle"),G(n,M({cx:e.width/2,cy:e.height/2,r:e.width/2+Cr+1},t))):b(e,"bpmn:Event")?(n=X("circle"),G(n,M({cx:e.width/2,cy:e.height/2,r:e.width/2+Cr},t))):b(e,"bpmn:DataObjectReference")&&s_(e,"bpmn:DataObjectReference")?n=a_(r2,{x:-6,y:-6},t):b(e,"bpmn:DataStoreReference")&&s_(e,"bpmn:DataStoreReference")&&(n=a_(o2,{x:-6,y:-6},t)),n},Js.prototype.updateOutline=function(e,t){if(!ge(e))return le(e,["bpmn:SubProcess","bpmn:Group"])?(G(t,{width:e.width+Cr*2,height:e.height+Cr*2}),!0):!!le(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function s_(e,t){var n;return t==="bpmn:DataObjectReference"?n=a2:t==="bpmn:DataStoreReference"&&(n=s2),e.width===n.width&&e.height===n.height}const c2={__depends__:[Dy],__init__:["outlineProvider"],outlineProvider:["type",Js]};var l2='<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';function on(e){Vr.call(this,e)}q(on,Vr),on.Viewer=Xn,on.NavigatedViewer=Zr,on.prototype.createDiagram=function(){return this.importXML(l2)},on.prototype._interactionModules=[Qd,ih,ah],on.prototype._modelingModules=[cR,Rl,MR,CR,ZR,Ll,iT,uM,tv,Es,hM,vM,DM,OM,IM,FM,JM,qv,oD,gD,RD,PD,Ry,QD,i2,c2],on.prototype._modules=[].concat(Xn.prototype._modules,on.prototype._interactionModules,on.prototype._modelingModules);const u2={name:"Camunda",uri:"http://camunda.org/schema/1.0/bpmn",prefix:"camunda",xml:{tagAlias:"lowerCase"},associations:[],types:JSON.parse('[{"name":"Definitions","isAbstract":true,"extends":["bpmn:Definitions"],"properties":[{"name":"diagramRelationId","isAttr":true,"type":"String"}]},{"name":"InOutBinding","superClass":["Element"],"isAbstract":true,"properties":[{"name":"source","isAttr":true,"type":"String"},{"name":"sourceExpression","isAttr":true,"type":"String"},{"name":"target","isAttr":true,"type":"String"},{"name":"businessKey","isAttr":true,"type":"String"},{"name":"local","isAttr":true,"type":"Boolean","default":false},{"name":"variables","isAttr":true,"type":"String"}]},{"name":"In","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity","bpmn:SignalEventDefinition"]}},{"name":"Out","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity"]}},{"name":"AsyncCapable","isAbstract":true,"extends":["bpmn:Activity","bpmn:Gateway","bpmn:Event"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false},{"name":"asyncBefore","isAttr":true,"type":"Boolean","default":false},{"name":"asyncAfter","isAttr":true,"type":"Boolean","default":false},{"name":"exclusive","isAttr":true,"type":"Boolean","default":true}]},{"name":"JobPriorized","isAbstract":true,"extends":["bpmn:Process","camunda:AsyncCapable"],"properties":[{"name":"jobPriority","isAttr":true,"type":"String"}]},{"name":"SignalEventDefinitionExtension","isAbstract":true,"extends":["bpmn:SignalEventDefinition"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false}]},{"name":"ErrorEventDefinitionExtension","isAbstract":true,"extends":["bpmn:ErrorEventDefinition"],"properties":[{"name":"errorCodeVariable","isAttr":true,"type":"String"},{"name":"errorMessageVariable","isAttr":true,"type":"String"}]},{"name":"ErrorEventDefinition","superClass":["bpmn:ErrorEventDefinition","Element"],"properties":[{"name":"expression","isAttr":true,"type":"String"}],"meta":{"allowedIn":["bpmn:ServiceTask"]}},{"name":"Error","isAbstract":true,"extends":["bpmn:Error"],"properties":[{"name":"camunda:errorMessage","isAttr":true,"type":"String"}]},{"name":"PotentialStarter","superClass":["Element"],"properties":[{"name":"resourceAssignmentExpression","type":"bpmn:ResourceAssignmentExpression"}]},{"name":"FormSupported","isAbstract":true,"extends":["bpmn:StartEvent","bpmn:UserTask"],"properties":[{"name":"formHandlerClass","isAttr":true,"type":"String"},{"name":"formKey","isAttr":true,"type":"String"},{"name":"formRef","isAttr":true,"type":"String"},{"name":"formRefBinding","isAttr":true,"type":"String"},{"name":"formRefVersion","isAttr":true,"type":"String"}]},{"name":"TemplateSupported","isAbstract":true,"extends":["bpmn:Collaboration","bpmn:Process","bpmn:FlowElement"],"properties":[{"name":"modelerTemplate","isAttr":true,"type":"String"},{"name":"modelerTemplateVersion","isAttr":true,"type":"Integer"}]},{"name":"Initiator","isAbstract":true,"extends":["bpmn:StartEvent"],"properties":[{"name":"initiator","isAttr":true,"type":"String"}]},{"name":"ScriptTask","isAbstract":true,"extends":["bpmn:ScriptTask"],"properties":[{"name":"resultVariable","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Process","isAbstract":true,"extends":["bpmn:Process"],"properties":[{"name":"candidateStarterGroups","isAttr":true,"type":"String"},{"name":"candidateStarterUsers","isAttr":true,"type":"String"},{"name":"versionTag","isAttr":true,"type":"String"},{"name":"historyTimeToLive","isAttr":true,"type":"String"},{"name":"isStartableInTasklist","isAttr":true,"type":"Boolean","default":true}]},{"name":"EscalationEventDefinitionExtension","isAbstract":true,"extends":["bpmn:EscalationEventDefinition"],"properties":[{"name":"escalationCodeVariable","isAttr":true,"type":"String"}]},{"name":"FormalExpression","isAbstract":true,"extends":["bpmn:FormalExpression"],"properties":[{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Assignable","extends":["bpmn:UserTask"],"properties":[{"name":"assignee","isAttr":true,"type":"String"},{"name":"candidateUsers","isAttr":true,"type":"String"},{"name":"candidateGroups","isAttr":true,"type":"String"},{"name":"dueDate","isAttr":true,"type":"String"},{"name":"followUpDate","isAttr":true,"type":"String"},{"name":"priority","isAttr":true,"type":"String"}]},{"name":"CallActivity","extends":["bpmn:CallActivity"],"properties":[{"name":"calledElementBinding","isAttr":true,"type":"String","default":"latest"},{"name":"calledElementVersion","isAttr":true,"type":"String"},{"name":"calledElementVersionTag","isAttr":true,"type":"String"},{"name":"calledElementTenantId","isAttr":true,"type":"String"},{"name":"caseRef","isAttr":true,"type":"String"},{"name":"caseBinding","isAttr":true,"type":"String","default":"latest"},{"name":"caseVersion","isAttr":true,"type":"String"},{"name":"caseTenantId","isAttr":true,"type":"String"},{"name":"variableMappingClass","isAttr":true,"type":"String"},{"name":"variableMappingDelegateExpression","isAttr":true,"type":"String"}]},{"name":"ServiceTaskLike","extends":["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"resultVariable","isAttr":true,"type":"String"}]},{"name":"DmnCapable","extends":["bpmn:BusinessRuleTask"],"properties":[{"name":"decisionRef","isAttr":true,"type":"String"},{"name":"decisionRefBinding","isAttr":true,"type":"String","default":"latest"},{"name":"decisionRefVersion","isAttr":true,"type":"String"},{"name":"mapDecisionResult","isAttr":true,"type":"String","default":"resultList"},{"name":"decisionRefTenantId","isAttr":true,"type":"String"}]},{"name":"ExternalCapable","extends":["camunda:ServiceTaskLike"],"properties":[{"name":"type","isAttr":true,"type":"String"},{"name":"topic","isAttr":true,"type":"String"}]},{"name":"TaskPriorized","extends":["bpmn:Process","camunda:ExternalCapable"],"properties":[{"name":"taskPriority","isAttr":true,"type":"String"}]},{"name":"Properties","superClass":["Element"],"meta":{"allowedIn":["*"]},"properties":[{"name":"values","type":"Property","isMany":true}]},{"name":"Property","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"value","type":"String","isAttr":true}]},{"name":"Connector","superClass":["Element"],"meta":{"allowedIn":["camunda:ServiceTaskLike"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"}]},{"name":"InputOutput","superClass":["Element"],"meta":{"allowedIn":["bpmn:FlowNode","camunda:Connector"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"},{"name":"inputParameters","isMany":true,"type":"InputParameter"},{"name":"outputParameters","isMany":true,"type":"OutputParameter"}]},{"name":"InputOutputParameter","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"InputOutputParameterDefinition","isAbstract":true},{"name":"List","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"items","isMany":true,"type":"InputOutputParameterDefinition"}]},{"name":"Map","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"entries","isMany":true,"type":"Entry"}]},{"name":"Entry","properties":[{"name":"key","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"Value","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"id","isAttr":true,"type":"String"},{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Script","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"scriptFormat","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Field","superClass":["Element"],"meta":{"allowedIn":["camunda:ServiceTaskLike","camunda:ExecutionListener","camunda:TaskListener"]},"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"expression","type":"String"},{"name":"stringValue","isAttr":true,"type":"String"},{"name":"string","type":"String"}]},{"name":"InputParameter","superClass":["InputOutputParameter"]},{"name":"OutputParameter","superClass":["InputOutputParameter"]},{"name":"Collectable","isAbstract":true,"extends":["bpmn:MultiInstanceLoopCharacteristics"],"superClass":["camunda:AsyncCapable"],"properties":[{"name":"collection","isAttr":true,"type":"String"},{"name":"elementVariable","isAttr":true,"type":"String"}]},{"name":"FailedJobRetryTimeCycle","superClass":["Element"],"meta":{"allowedIn":["camunda:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"ExecutionListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true}]},{"name":"TaskListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:UserTask"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true},{"name":"id","type":"String","isAttr":true},{"name":"eventDefinitions","type":"bpmn:TimerEventDefinition","isMany":true}]},{"name":"FormProperty","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"required","type":"String","isAttr":true},{"name":"readable","type":"String","isAttr":true},{"name":"writable","type":"String","isAttr":true},{"name":"variable","type":"String","isAttr":true},{"name":"expression","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"default","type":"String","isAttr":true},{"name":"values","type":"Value","isMany":true}]},{"name":"FormData","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"fields","type":"FormField","isMany":true},{"name":"businessKey","type":"String","isAttr":true}]},{"name":"FormField","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"label","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"defaultValue","type":"String","isAttr":true},{"name":"properties","type":"Properties"},{"name":"validation","type":"Validation"},{"name":"values","type":"Value","isMany":true}]},{"name":"Validation","superClass":["Element"],"properties":[{"name":"constraints","type":"Constraint","isMany":true}]},{"name":"Constraint","superClass":["Element"],"properties":[{"name":"name","type":"String","isAttr":true},{"name":"config","type":"String","isAttr":true}]},{"name":"ConditionalEventDefinitionExtension","isAbstract":true,"extends":["bpmn:ConditionalEventDefinition"],"properties":[{"name":"variableName","isAttr":true,"type":"String"},{"name":"variableEvents","isAttr":true,"type":"String"}]}]'),emumerations:[]},p2={class:"wrapper"},f2={class:"mt-xs"},d2={class:"flex-sc"},h2={class:"mt-xs"},m2=gi(h.defineComponent({__name:"RuleConfig",props:{jsonStr:{type:String,required:!0}},emits:["submit"],setup(e,{emit:t}){const{t:n}=an.useI18n(),i=e,r=t,o=h.ref({});function a(p){const f=p.replace(/(false|true|\d+)(?=")/g,"$1,");return JSON.parse(`{${f}}`)}function s(p){if(typeof p=="string"&&(p.trim().startsWith("{")||p.trim().startsWith("[")))try{return JSON.parse(p),!0}catch{return!1}return!1}function c(){i.jsonStr?s(i.jsonStr)?o.value=JSON.parse(i.jsonStr):o.value=a(i.jsonStr):o.value={revokeRule:!1,fallbackRule:!1,approverRemoveDuplicates:2,timeoutConfigSwitch:!1,timeoutPeriod:1,timeoutHandler:1}}function l(){st.Modal.destroyAll()}function u(){const p=o.value;if(p.timeoutConfigSwitch&&!p.timeoutPeriod){st.message.warning(n("bpmn.timeoutPeriodEmptyTip"));return}r("submit",o.value),st.Modal.destroyAll()}return h.onMounted(()=>{c()}),(p,f)=>{const d=K.Checkbox,m=K.FormItem,v=K.Radio,g=K.RadioGroup,w=K.InputNumber,C=K.Form,x=K.Button,E=K.Space;return h.openBlock(),h.createElementBlock("div",p2,[h.createVNode(C,{class:"my-nm","label-col":{span:6},"wrapper-col":{span:18},colon:!1,model:h.unref(o)},{default:h.withCtx(()=>[h.createVNode(m,{label:p.$t("bpmn.revertRule")},{default:h.withCtx(()=>[h.createVNode(d,{checked:h.unref(o).revokeRule,"onUpdate:checked":f[0]||(f[0]=S=>h.unref(o).revokeRule=S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.revertRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.rollbackRule")},{default:h.withCtx(()=>[h.createVNode(d,{checked:h.unref(o).fallbackRule,"onUpdate:checked":f[1]||(f[1]=S=>h.unref(o).fallbackRule=S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.rollbackRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.deduplicationApprovers")},{default:h.withCtx(()=>[h.createElementVNode("div",f2,h.toDisplayString(p.$t("bpmn.deduplicationApproversTxt")),1),h.createVNode(g,{value:h.unref(o).approverRemoveDuplicates,"onUpdate:value":f[2]||(f[2]=S=>h.unref(o).approverRemoveDuplicates=S)},{default:h.withCtx(()=>[h.createVNode(v,{value:0},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.deduplicationRadio0")),1)]),_:1}),h.createVNode(v,{value:1},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.deduplicationRadio1")),1)]),_:1}),h.createVNode(v,{value:2},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.deduplicationRadio2")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.timeoutRule")},{default:h.withCtx(()=>[h.createVNode(d,{checked:h.unref(o).timeoutConfigSwitch,"onUpdate:checked":f[3]||(f[3]=S=>h.unref(o).timeoutConfigSwitch=S)},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.timeoutRuleTxt")),1)]),_:1},8,["checked"])]),_:1},8,["label"]),h.unref(o).timeoutConfigSwitch?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createVNode(m,{label:p.$t("wo_my.timeout")},{default:h.withCtx(()=>[h.createElementVNode("div",d2,[h.createTextVNode(h.toDisplayString(p.$t("bpmn.linkTimeoutTxt1"))+" ",1),h.createVNode(w,{class:"mx-xs",value:h.unref(o).timeoutPeriod,"onUpdate:value":f[4]||(f[4]=S=>h.unref(o).timeoutPeriod=S),min:1,max:1e4,precision:0},null,8,["value"]),h.createTextVNode(" "+h.toDisplayString(p.$t("bpmn.linkTimeoutTxt2")),1)])]),_:1},8,["label"]),h.createVNode(m,{label:p.$t("bpmn.timeoutHandle")},{default:h.withCtx(()=>[h.createElementVNode("div",h2,h.toDisplayString(p.$t("bpmn.timeoutHandleTxt")),1),h.createVNode(g,{value:h.unref(o).timeoutHandler,"onUpdate:value":f[5]||(f[5]=S=>h.unref(o).timeoutHandler=S)},{default:h.withCtx(()=>[h.createVNode(v,{value:0},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.timeoutHandleRadio0")),1)]),_:1}),h.createVNode(v,{value:1},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("bpmn.timeoutHandleRadio1")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["label"])],64)):h.createCommentVNode("",!0)]),_:1},8,["model"]),h.createVNode(E,{class:"modal-btns"},{default:h.withCtx(()=>[h.createVNode(x,{onClick:l},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("common.btn_cancel1")),1)]),_:1}),h.createVNode(x,{type:"primary",onClick:u},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(p.$t("common.btn_sure")),1)]),_:1})]),_:1})])}}}),[["__scopeId","data-v-cc50d8c3"]]),g2=h.defineComponent({__name:"Process",props:h.mergeModels({isEdit:{type:Boolean}},{formState:{},formStateModifiers:{}}),emits:["update:formState"],setup(e){const{modal:t}=st.App.useApp(),{t:n}=an.useI18n(),i=h.useModel(e,"formState"),r=h.ref(["1","2","3","4","5","6"]);function o(){t.info({title:n("ruleModel.title"),content:h.h(m2,{jsonStr:i.value.jobPriority,onSubmit:a=>{i.value.jobPriority=JSON.stringify(a)}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:850,class:"modal-comp"})}return(a,s)=>{const c=K.Input,l=K.FormItem,u=K.Form,p=K.CollapsePanel,f=K.Collapse;return h.openBlock(),h.createBlock(f,{activeKey:h.unref(r),"onUpdate:activeKey":s[4]||(s[4]=d=>h.isRef(r)?r.value=d:null)},{default:h.withCtx(()=>[h.createVNode(p,{key:"1",header:a.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(u,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(l,{label:a.$t("FLOW_CHART.Id"),extra:a.$t("FLOW_CHART.idTip")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.id,"onUpdate:value":s[0]||(s[0]=d=>i.value.id=d),placeholder:a.$t("common.plsEnter"),readonly:e.isEdit},null,8,["value","placeholder","readonly"])]),_:1},8,["label","extra"]),h.createVNode(l,{label:a.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.name,"onUpdate:value":s[1]||(s[1]=d=>i.value.name=d),placeholder:a.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(l,{label:a.$t("FLOW_CHART.Version Tag")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.versionTag,"onUpdate:value":s[2]||(s[2]=d=>i.value.versionTag=d),disabled:""},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),h.createVNode(p,{key:"4",header:a.$t("FLOW_CHART.Job Configuration")},{default:h.withCtx(()=>[h.createVNode(u,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(l,{label:a.$t("FLOW_CHART.Job Priority")},{default:h.withCtx(()=>[h.createVNode(c,{value:i.value.jobPriority,"onUpdate:value":s[3]||(s[3]=d=>i.value.jobPriority=d),placeholder:a.$t("common.plsSelect"),readonly:"",onClick:o},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),v2={class:"modal-container"},c_=h.defineComponent({__name:"SelectLink",props:{id:{type:String}},emits:["submit"],setup(e,{emit:t}){const{t:n}=an.useI18n(),i=e,r=t,o=h.ref({}),a=h.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=h.ref([]),c=h.ref();function l(g,w){s.value=g,c.value=w}h.watchEffect(()=>{i.id&&(s.value=[i.id])});function u(g){c.value=null;const w={...o.value};return Object.assign(w,g),Ct.getLinkList(w)}const p=h.ref(),f=()=>{p.value.refresh()},d=()=>{o.value={},f()};h.onMounted(()=>{d()});function m(){st.Modal.destroyAll()}function v(){var g;(g=c.value)!=null&&g.length&&r("submit",c.value[0]),st.Modal.destroyAll()}return(g,w)=>{const C=K.Input,x=K.FormItem,E=K.Button,S=K.Space,R=K.Form,N=h.resolveComponent("a-table-ex");return h.openBlock(),h.createElementBlock("div",v2,[h.createVNode(R,{class:"form-query mx-nm mt-nm",layout:"vertical",model:h.unref(o)},{default:h.withCtx(()=>[h.createVNode(x,{label:g.$t("link.id")},{default:h.withCtx(()=>[h.createVNode(C,{value:h.unref(o).id,"onUpdate:value":w[0]||(w[0]=P=>h.unref(o).id=P),placeholder:g.$t("common.plsEnter"),onKeydown:h.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(x,{label:g.$t("link.description")},{default:h.withCtx(()=>[h.createVNode(C,{value:h.unref(o).description,"onUpdate:value":w[1]||(w[1]=P=>h.unref(o).description=P),placeholder:g.$t("common.plsEnter"),onKeydown:h.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(x,{class:"form-btns"},{default:h.withCtx(()=>[h.createVNode(S,null,{default:h.withCtx(()=>[h.createVNode(E,{type:"primary",onClick:f},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_search")),1)]),_:1}),h.createVNode(E,{onClick:d},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),h.createVNode(N,{ref_key:"tableEx",ref:p,class:"table-query bordered mx-nm",columns:h.unref(a),rowKey:"id","row-selection":{type:"radio",selectedRowKeys:h.unref(s),onChange:l},loadData:u},null,8,["columns","row-selection"]),h.createVNode(S,{class:"modal-btns"},{default:h.withCtx(()=>{var P;return[h.createVNode(E,{onClick:m},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_cancel1")),1)]),_:1}),h.createVNode(E,{type:"primary",disabled:!((P=h.unref(s))!=null&&P.length),onClick:v},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),y2={class:"modal-container"},_2=h.defineComponent({__name:"SelectUser",props:{userIds:{type:String||Array},branchId:{type:String},mode:{type:String,default:"default"}},emits:["submit"],setup(e,{emit:t}){const{t:n}=an.useI18n(),i=e,r=t,o=h.ref({}),a=h.ref([{title:n("user.user_name"),dataIndex:"userName"},{title:n("user.user_id"),dataIndex:"userCode"},{title:n("arrears.org"),dataIndex:"branchName"}]),s=h.ref([]),c=h.ref();function l(g,w){s.value=g,c.value=w}h.watchEffect(()=>{i.userIds&&(s.value=Array.isArray(i.userIds)?i.userIds:[i.userIds])});function u(g){c.value=null;const w={...o.value,branchId:i.branchId};return Object.assign(w,g),Ct.getUserList(w)}const p=h.ref(),f=()=>{p.value.refresh()},d=()=>{o.value={},f()};h.onMounted(()=>{d()});function m(){st.Modal.destroyAll()}function v(){var g;if((g=c.value)!=null&&g.length){const w=c.value;r("submit",i.mode==="multiple"?w:w[0])}st.Modal.destroyAll()}return(g,w)=>{const C=K.Input,x=K.FormItem,E=K.Button,S=K.Space,R=K.Form,N=h.resolveComponent("a-table-ex");return h.openBlock(),h.createElementBlock("div",y2,[h.createVNode(R,{class:"form-query mx-nm mt-nm",layout:"vertical",model:h.unref(o)},{default:h.withCtx(()=>[h.createVNode(x,{label:g.$t("user.key")},{default:h.withCtx(()=>[h.createVNode(C,{value:h.unref(o).userName,"onUpdate:value":w[0]||(w[0]=P=>h.unref(o).userName=P),placeholder:g.$t("common.plsEnter"),onKeydown:h.withKeys(f,["enter"])},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(x,{class:"form-btns"},{default:h.withCtx(()=>[h.createVNode(S,null,{default:h.withCtx(()=>[h.createVNode(E,{type:"primary",onClick:f},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_search")),1)]),_:1}),h.createVNode(E,{onClick:d},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_reset")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),h.createVNode(N,{ref_key:"tableEx",ref:p,class:"table-query bordered mx-nm",columns:h.unref(a),rowKey:"userId","row-selection":{type:e.mode==="multiple"?"checkbox":"radio",selectedRowKeys:h.unref(s),onChange:l},loadData:u},null,8,["columns","row-selection"]),h.createVNode(S,{class:"modal-btns"},{default:h.withCtx(()=>{var P;return[h.createVNode(E,{onClick:m},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_cancel1")),1)]),_:1}),h.createVNode(E,{type:"primary",disabled:!((P=h.unref(s))!=null&&P.length),onClick:v},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(g.$t("common.btn_sure")),1)]),_:1},8,["disabled"])]}),_:1})])}}}),b2=h.defineComponent({__name:"UserTask",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const{modal:t}=st.App.useApp(),{t:n}=an.useI18n(),i=h.useModel(e,"formState"),r=h.ref(["1","2","3","4","5","6"]),o=h.ref([]),a=h.ref([]),s=h.ref([]),c=h.computed(()=>{const w=i.value.assignee;return w==null?void 0:w.startsWith("${")});function l(){const w="abcdefghijklmnopqrstuvwxyz";let C="";for(let x=0;x<2;x++)C+=w.charAt(Math.floor(Math.random()*w.length));for(let x=0;x<2;x++)C+=Math.floor(Math.random()*10);return C}function u(){t.info({title:n("link.select_link"),content:h.h(c_,{id:i.value.id,onSubmit:w=>{let C=w.id;C.endsWith("*")&&(C=C.substring(0,C.length-1)+l()),Object.assign(i.value,{id:C,name:w.description,assignee:"","camunda:assigneeName":"",priority:void 0,userArr:[],roleArr:[]}),w.variable&&(i.value.assignee=`\${${w.variable}}`)}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function p(){t.info({title:n("user.select_user"),content:h.h(_2,{userIds:i.value.assignee,onSubmit:w=>{Object.assign(i.value,{assignee:w.userId,"camunda:assigneeName":w.userName})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}function f(){Ct.getBranchTree().then(w=>{w.code===0&&(o.value=w.result||[])})}function d(){const w={pageNo:1,pageSize:1e3,branchId:i.value.priority||void 0};Ct.getUserList(w).then(C=>{var x,E;C.code===0&&(s.value=((E=(x=C.result)==null?void 0:x.data)==null?void 0:E.map(S=>({...S,label:S.userName,value:S.userId})))||[])})}function m(){const w={pageNo:1,pageSize:1e3,branchId:i.value.priority||void 0};Ct.getRoleList(w).then(C=>{var x,E;C.code===0&&(a.value=((E=(x=C.result)==null?void 0:x.data)==null?void 0:E.map(S=>({...S,label:S.roleName,value:S.roleId})))||[])})}function v(){Object.assign(i.value,{userArr:[],roleArr:[]}),d(),m()}function g(w){if(w!=null&&w.length){const C=s.value.find(x=>x.userId===w[0]);i.value.priority!==C.branchId&&(Object.assign(i.value,{priority:C.branchId,roleArr:[]}),d(),m())}}return h.onMounted(()=>{f(),d(),m()}),(w,C)=>{const x=K.Input,E=K.FormItem,S=K.TreeSelect,R=K.Select,N=K.Form,P=K.CollapsePanel,O=K.Radio,I=K.RadioGroup,L=K.Checkbox,B=K.CheckboxGroup,V=K.Collapse;return h.openBlock(),h.createBlock(V,{activeKey:h.unref(r),"onUpdate:activeKey":C[9]||(C[9]=Y=>h.isRef(r)?r.value=Y:null)},{default:h.withCtx(()=>[h.createVNode(P,{key:"1",header:w.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(N,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(E,{label:w.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(x,{value:i.value.id,"onUpdate:value":C[0]||(C[0]=Y=>i.value.id=Y),placeholder:w.$t("common.plsEnter"),readonly:"",onClick:u},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(x,{value:i.value.name,"onUpdate:value":C[1]||(C[1]=Y=>i.value.name=Y),placeholder:w.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Assignee")},{default:h.withCtx(()=>[h.unref(c)?(h.openBlock(),h.createBlock(x,{key:0,value:i.value.assignee,"onUpdate:value":C[2]||(C[2]=Y=>i.value.assignee=Y),placeholder:w.$t("common.plsSelect"),disabled:""},null,8,["value","placeholder"])):(h.openBlock(),h.createBlock(x,{key:1,value:i.value["camunda:assigneeName"],"onUpdate:value":C[3]||(C[3]=Y=>i.value["camunda:assigneeName"]=Y),placeholder:w.$t("common.plsSelect"),readonly:"",onClick:p},null,8,["value","placeholder"]))]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Priority")},{default:h.withCtx(()=>[h.createVNode(S,{value:i.value.priority,"onUpdate:value":C[4]||(C[4]=Y=>i.value.priority=Y),placeholder:w.$t("common.plsSelect"),"tree-data":h.unref(o),treeDefaultExpandAll:"",treeNodeFilterProp:"label","show-search":"","allow-clear":"",onChange:v},null,8,["value","placeholder","tree-data"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Candidate Users")},{default:h.withCtx(()=>[h.createVNode(R,{value:i.value.userArr,"onUpdate:value":C[5]||(C[5]=Y=>i.value.userArr=Y),placeholder:w.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:h.unref(s),optionFilterProp:"label",disabled:h.unref(c),onChange:g},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"]),h.createVNode(E,{label:w.$t("FLOW_CHART.Candidate Groups")},{default:h.withCtx(()=>[h.createVNode(R,{value:i.value.roleArr,"onUpdate:value":C[6]||(C[6]=Y=>i.value.roleArr=Y),placeholder:w.$t("common.plsSelect"),mode:"multiple",maxTagCount:10,options:h.unref(a),optionFilterProp:"label",disabled:h.unref(c)},null,8,["value","placeholder","options","disabled"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"]),h.createVNode(P,{key:"2",header:w.$t("FLOW_CHART.Approval Mode")},{default:h.withCtx(()=>[h.createVNode(I,{value:i.value.approvalSign,"onUpdate:value":C[7]||(C[7]=Y=>i.value.approvalSign=Y)},{default:h.withCtx(()=>[h.createVNode(O,{value:"orSign"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.Or Sign")),1)]),_:1}),h.createVNode(O,{value:"countersign"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.countersign")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"]),h.createVNode(P,{key:"3",header:w.$t("FLOW_CHART.Approval Required")},{default:h.withCtx(()=>[h.createVNode(B,{value:i.value.approvalCheckbox,"onUpdate:value":C[8]||(C[8]=Y=>i.value.approvalCheckbox=Y)},{default:h.withCtx(()=>[h.createVNode(L,{value:"advice"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.Comments Required")),1)]),_:1}),h.createVNode(L,{value:"attachment"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(w.$t("FLOW_CHART.Attachment Required")),1)]),_:1})]),_:1},8,["value"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),E2=h.defineComponent({__name:"ExclusiveGateway",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const t=h.useModel(e,"formState"),n=h.ref(["1","2","3","4","5","6"]);return(i,r)=>{const o=K.Input,a=K.FormItem,s=K.Form,c=K.CollapsePanel,l=K.Collapse;return h.openBlock(),h.createBlock(l,{activeKey:h.unref(n),"onUpdate:activeKey":r[2]||(r[2]=u=>h.isRef(n)?n.value=u:null)},{default:h.withCtx(()=>[h.createVNode(c,{key:"1",header:i.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(s,{layout:"vertical",model:t.value},{default:h.withCtx(()=>[h.createVNode(a,{label:i.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.id,"onUpdate:value":r[0]||(r[0]=u=>t.value.id=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.name,"onUpdate:value":r[1]||(r[1]=u=>t.value.name=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),x2=h.defineComponent({__name:"SequenceFlow",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const t=h.useModel(e,"formState"),n=h.ref(["1","2","3","4","5","6"]);return(i,r)=>{const o=K.Input,a=K.FormItem,s=K.SelectOption,c=K.Select,l=K.Form,u=K.CollapsePanel,p=K.Collapse;return h.openBlock(),h.createBlock(p,{activeKey:h.unref(n),"onUpdate:activeKey":r[4]||(r[4]=f=>h.isRef(n)?n.value=f:null)},{default:h.withCtx(()=>[h.createVNode(u,{key:"1",header:i.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(l,{layout:"vertical",model:t.value},{default:h.withCtx(()=>[h.createVNode(a,{label:i.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.id,"onUpdate:value":r[0]||(r[0]=f=>t.value.id=f),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.name,"onUpdate:value":r[1]||(r[1]=f=>t.value.name=f),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Condition Type")},{default:h.withCtx(()=>[h.createVNode(c,{value:t.value.condType,"onUpdate:value":r[2]||(r[2]=f=>t.value.condType=f),placeholder:i.$t("common.plsSelect"),allowClear:""},{default:h.withCtx(()=>[h.createVNode(s,{value:"bpmn:FormalExpression"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(i.$t("FLOW_CHART.Expression")),1)]),_:1})]),_:1},8,["value","placeholder"])]),_:1},8,["label"]),t.value.condType==="bpmn:FormalExpression"?(h.openBlock(),h.createBlock(a,{key:0,label:i.$t("FLOW_CHART.Expression")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.condBody,"onUpdate:value":r[3]||(r[3]=f=>t.value.condBody=f),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])):h.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),w2=h.defineComponent({__name:"EndEvent",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const{modal:t}=st.App.useApp(),{t:n}=an.useI18n(),i=h.useModel(e,"formState"),r=h.ref(["1","2","3","4","5","6"]);function o(){const s="abcdefghijklmnopqrstuvwxyz";let c="";for(let l=0;l<2;l++)c+=s.charAt(Math.floor(Math.random()*s.length));for(let l=0;l<2;l++)c+=Math.floor(Math.random()*10);return c}function a(){t.info({title:n("link.select_link"),content:h.h(c_,{id:i.value.id,onSubmit:s=>{let c=s.id;c.endsWith("*")&&(c=c.substring(0,c.length-1)+o()),Object.assign(i.value,{id:c,name:s.description})}}),centered:!0,icon:null,footer:null,closable:!0,maskClosable:!0,width:800,class:"modal-comp"})}return(s,c)=>{const l=K.Input,u=K.FormItem,p=K.Form,f=K.CollapsePanel,d=K.Collapse;return h.openBlock(),h.createBlock(d,{activeKey:h.unref(r),"onUpdate:activeKey":c[2]||(c[2]=m=>h.isRef(r)?r.value=m:null)},{default:h.withCtx(()=>[h.createVNode(f,{key:"1",header:s.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(p,{layout:"vertical",model:i.value},{default:h.withCtx(()=>[h.createVNode(u,{label:s.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(l,{value:i.value.id,"onUpdate:value":c[0]||(c[0]=m=>i.value.id=m),placeholder:s.$t("common.plsEnter"),readonly:"",onClick:a},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(u,{label:s.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(l,{value:i.value.name,"onUpdate:value":c[1]||(c[1]=m=>i.value.name=m),placeholder:s.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),S2=h.defineComponent({__name:"Other",props:{formState:{},formStateModifiers:{}},emits:["update:formState"],setup(e){const t=h.useModel(e,"formState"),n=h.ref(["1","2","3","4","5","6"]);return(i,r)=>{const o=K.Input,a=K.FormItem,s=K.Form,c=K.CollapsePanel,l=K.Collapse;return h.openBlock(),h.createBlock(l,{activeKey:h.unref(n),"onUpdate:activeKey":r[2]||(r[2]=u=>h.isRef(n)?n.value=u:null)},{default:h.withCtx(()=>[h.createVNode(c,{key:"1",header:i.$t("FLOW_CHART.General")},{default:h.withCtx(()=>[h.createVNode(s,{layout:"vertical",model:t.value},{default:h.withCtx(()=>[h.createVNode(a,{label:i.$t("FLOW_CHART.Id")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.id,"onUpdate:value":r[0]||(r[0]=u=>t.value.id=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"]),h.createVNode(a,{label:i.$t("FLOW_CHART.Name")},{default:h.withCtx(()=>[h.createVNode(o,{value:t.value.name,"onUpdate:value":r[1]||(r[1]=u=>t.value.name=u),placeholder:i.$t("common.plsEnter")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["header"])]),_:1},8,["activeKey"])}}}),C2={class:"properties-panel"},R2=gi(h.defineComponent({__name:"BpmnPropertiesPanel",props:{modeler:{type:on},isEdit:{type:Boolean}},setup(e){const t=e,n=h.ref(""),i=h.ref({});let r,o,a;h.watch(()=>t.modeler,()=>{t.modeler&&(r=t.modeler,s())}),h.watch(i,(u,p)=>{u===p&&l()},{deep:!0});function s(){o=r.get("modeling"),r.on("element.click",u=>{c(u.element)}),r.on("selection.changed",u=>{if(u.newSelection.length)c(u.newSelection[0]);else{const p=r.get("canvas").getRootElement();c(p)}})}function c(u){if(!(u!=null&&u.businessObject)||a===u)return;a=u;const p=u.businessObject,f=p.$type;n.value="",h.nextTick(()=>{n.value=f});const d={...p.$attrs};Object.keys(p).forEach(m=>{const v=p[m];typeof v=="string"&&(d[m]=v)}),f==="bpmn:UserTask"?(Object.assign(d,{approvalSign:d["camunda:countersign"]==="true"?"countersign":"orSign",approvalCheckbox:[]}),d["camunda:advice"]==="true"&&d.approvalCheckbox.push("advice"),d["camunda:attachment"]==="true"&&d.approvalCheckbox.push("attachment"),d.userArr=(d.candidateUsers||"").split(",").filter(m=>m),d.roleArr=(d.candidateGroups||"").split(",").filter(m=>m)):f==="bpmn:SequenceFlow"&&p.conditionExpression&&Object.assign(d,{condType:p.conditionExpression.$type,condBody:p.conditionExpression.body}),i.value=d}function l(){var m,v;const u=i.value;function p(g){return g?"true":"false"}const f={id:u.id,name:u.name},d=n.value;if(d==="bpmn:Process")u.jobPriority&&Object.assign(f,{"camunda:jobPriority":u.jobPriority});else if(d==="bpmn:UserTask")Object.assign(f,{"camunda:orSign":p(u.approvalSign==="orSign"),"camunda:countersign":p(u.approvalSign==="countersign"),"camunda:advice":p(u.approvalCheckbox.includes("advice")),"camunda:attachment":p(u.approvalCheckbox.includes("attachment")),"camunda:assignee":u.assignee||void 0,"camunda:assigneeName":u["camunda:assigneeName"]||void 0,"camunda:priority":u.priority||void 0,"camunda:candidateUsers":((m=u.userArr)==null?void 0:m.join())||void 0,"camunda:candidateGroups":((v=u.roleArr)==null?void 0:v.join())||void 0});else if(d==="bpmn:SequenceFlow")if(u.condType){const g=r.get("moddle").create("bpmn:FormalExpression",{body:u.condBody});f.conditionExpression=g}else f.conditionExpression=null;o.updateProperties(a,f)}return(u,p)=>{const f=ef;return h.openBlock(),h.createElementBlock("div",C2,[h.createVNode(f,null,{default:h.withCtx(()=>[h.unref(n)==="bpmn:Process"?(h.openBlock(),h.createBlock(g2,{key:0,formState:h.unref(i),"onUpdate:formState":p[0]||(p[0]=d=>h.isRef(i)?i.value=d:null),isEdit:e.isEdit},null,8,["formState","isEdit"])):h.unref(n)==="bpmn:UserTask"?(h.openBlock(),h.createBlock(b2,{key:1,formState:h.unref(i),"onUpdate:formState":p[1]||(p[1]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)==="bpmn:ExclusiveGateway"?(h.openBlock(),h.createBlock(E2,{key:2,formState:h.unref(i),"onUpdate:formState":p[2]||(p[2]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)==="bpmn:SequenceFlow"?(h.openBlock(),h.createBlock(x2,{key:3,formState:h.unref(i),"onUpdate:formState":p[3]||(p[3]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)==="bpmn:EndEvent"?(h.openBlock(),h.createBlock(w2,{key:4,formState:h.unref(i),"onUpdate:formState":p[4]||(p[4]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.unref(n)?(h.openBlock(),h.createBlock(S2,{key:5,formState:h.unref(i),"onUpdate:formState":p[5]||(p[5]=d=>h.isRef(i)?i.value=d:null)},null,8,["formState"])):h.createCommentVNode("",!0)]),_:1})])}}}),[["__scopeId","data-v-5aba2478"]]),T2={class:"wrapper"},P2=gi(h.defineComponent({__name:"index",props:{data:{type:Object,required:!0}},setup(e,{expose:t}){const n=e,i=h.shallowRef();function r(){i.value=new on({container:"#canvas",moddleExtensions:{camunda:u2}})}function o(){Ct.getBpmnXml({code:n.data.code}).then(s=>{var c;if(s.code===0){const l=s.result.text;(c=i.value)==null||c.importXML(l)}})}h.onMounted(()=>{var s;r(),n.data.code?o():(s=i.value)==null||s.createDiagram()});function a(){var s;return(s=i.value)==null?void 0:s.saveXML({format:!0})}return t({saveXML:a}),(s,c)=>(h.openBlock(),h.createElementBlock("div",T2,[c[0]||(c[0]=h.createElementVNode("div",{id:"canvas"},null,-1)),h.createVNode(R2,{modeler:h.unref(i),isEdit:e.data.opType==="2"},null,8,["modeler","isEdit"])]))}}),[["__scopeId","data-v-42ed31bc"]]),A2={class:"icon",viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function k2(e,t){return h.openBlock(),h.createElementBlock("svg",A2,t[0]||(t[0]=[h.createElementVNode("path",{fill:"currentColor",d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281l360-281.1c3.8-3 6.1-7.7 6.1-12.6"},null,-1)]))}const M2=h.markRaw({name:"ant-design-left",render:k2}),D2={class:"container"},N2={class:"viewer-container"},O2=gi(h.defineComponent({__name:"BpmnEditPage",props:{data:{type:Object,required:!0}},setup(e){const{t}=an.useI18n(),n=e,i=h.computed(()=>{const c=n.data.opType||"1";if(c==="1")return t("bpmn.add_workflow");if(c==="2")return t("bpmn.edit_workflow");if(c==="3")return t("bpmn.clone_workflow")}),r=h.inject(Ko);function o(){r==null||r.emit("changeComp",{comp:"BusTypeList"})}const a=h.ref();function s(){var c;(c=a.value)==null||c.saveXML().then(({error:l,xml:u})=>{if(l){st.message.error(l);return}const p={type:n.data.type,text:u};((n.data.opType||"1")==="2"?Ct.bpmnUpdate(p):Ct.bpmnInsert(p)).then(m=>{m.code===0&&(r==null||r.emit("changeComp",{comp:"BusTypeList"}))})})}return(c,l)=>{const u=M2,p=K.Button,f=K.Space,d=K.PageHeader,m=P2;return h.openBlock(),h.createElementBlock("div",D2,[h.createVNode(d,{class:"page-header-sticky",title:h.unref(i),onBack:o},{backIcon:h.withCtx(()=>[h.createVNode(u)]),extra:h.withCtx(()=>[h.createVNode(f,null,{default:h.withCtx(()=>[h.createVNode(p,{type:"default",onClick:o},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c.$t("common.btn_cancel")),1)]),_:1}),h.createVNode(p,{type:"primary",onClick:s},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(c.$t("common.btn_ok")),1)]),_:1})]),_:1})]),_:1},8,["title"]),h.createElementVNode("div",N2,[h.createVNode(m,{ref_key:"bpmnViewer",ref:a,data:e.data},null,8,["data"])])])}}}),[["__scopeId","data-v-f3f3967f"]]),I2={class:"wrapper"},B2=gi(h.defineComponent({components:{BusTypeList:x0,BpmnEditPage:O2},__name:"index",setup(e){const t=h.ref("BusTypeList"),n=h.ref(),i=M_(Ko);return h.provide(Ko,i),i.on((r,o)=>{r==="changeComp"&&(t.value=o.comp,n.value=o)}),(r,o)=>{const a=I_;return h.openBlock(),h.createBlock(a,null,{default:h.withCtx(()=>[h.createElementVNode("div",I2,[(h.openBlock(),h.createBlock(h.KeepAlive,{include:"BusTypeList"},[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(t)),{data:h.unref(n)},null,8,["data"]))],1024))])]),_:1})}}}),[["__scopeId","data-v-675d7eeb"]]);_p.createPinia();function L2(e){ic().setLang(e)}function $2(e,t){const{i18n:n,pinia:i,theme:r}=t;u_(n);const o=ic();o.setTheme(r),o.setupLangWatcher()}const j2={install:$2};yt.WfManagePage=B2,yt.default=j2,yt.setWorkflowLang=L2,Object.defineProperties(yt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|