text: var V=Object.defineProperty,k=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var b=(e,t,r)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))L.call(t,r)&&b(e,r,t[r]);if(m)for(var r of m(t))O.call(t,r)&&b(e,r,t[r]);return e},c=(e,t)=>k(e,y(t));import{F as N,E as f,D as C,g as E,C as h}from"./common.c0fb46be.js";import{P as u}from"./PrefixLabelSelect.e2c37ee5.js";import{A as M,c7 as x,j as w,w as i,a4 as B,c_ as g,ab as v,ao as S,ae as j}from"./vendor.af2fe88b.js";/* empty css                */import{B as s}from"./store.79fec13d.js";import"./TableImg.ae08a7e1.js";/* empty css                *//* empty css              */import"./BasicForm.84475e4b.js";/* empty css               *//* empty css               *//* empty css               *//* empty css               *//* empty css                */import"./index.6733effe.js";import"./index.f5b97fd5.js";/* empty css                */import"./index.df186f99.js";import"./useWindowSizeFn.4124f9cf.js";/* empty css                *//* empty css                *//* empty css                *//* empty css                */import"./uuid.2b29000c.js";import"./download.891c7c9b.js";import"./base64Conver.08b9f4ec.js";import"./index.6073de15.js";import"./useForm.da4c94f2.js";import"./index.0248b5d5.js";/* empty css               *//* empty css                */import"./useContentViewHeight.b4e0fa30.js";import"./useSortable.8f85f589.js";/* empty css                */import"./useTable.3b4e656a.js";import"./index.esm.eaa71f61.js";const F=M({props:c(p({},x.props),{prefixTitle:{type:String,default:()=>""}}),emits:["update:value"],setup(e,{emit:t,slots:r}){const o=w({get:()=>e.value,set:a=>t("update:value",a)});return()=>i("div",{class:"prefix-label-number-container"},[e.prefixTitle&&i("div",{class:"prefix-number-title "},[e.prefixTitle]),i(x,B({class:"prefix-label-number"},e,{value:o.value,"onUpdate:value":a=>o.value=a}),r)])}}),I=[{label:"\u521B\u5EFA",value:"create"},{label:"\u7B7E\u6536",value:"assignment"},{label:"\u5B8C\u6210",value:"complete"},{label:"\u5220\u9664",value:"delete"},{label:"\u5168\u90E8",value:"all"}],T=E({name:"\u4EFB\u52A1\u76D1\u542C\u5668",eventOptions:I}),U=[{label:"\u5F20\u4E09",value:"1"},{label:"\u674E\u56DB",value:"2"},{label:"\u738B\u4E94",value:"3"}],d=i(v,null,[U.map(e=>i(g,{value:e.value},{default:()=>[e.label]}))]),G={name:"\u4EBA\u5458\u8BBE\u7F6E",icon:"el-icon-user-solid",properties:{assignee:{component:u,prefixTitle:"\u5904\u7406\u4EBA",allowCreate:!0,filterable:!0,showSearch:!0,vSlots:{default:()=>d}},candidateUsers:{component:u,prefixTitle:"\u5019\u9009\u4EBA",filterable:!0,multiple:!0,mode:"tags",allowCreate:!0,vSlots:{default:()=>d},getValue(e){return console.warn("businessObject",e),typeof e.candidateUsers=="string"?e.candidateUsers.split(","):e.candidateUsers}},loopCardinality:{component:F,prefixTitle:"\u5FAA\u73AF\u57FA\u6570",min:0,precision:0,predicate(e){return e.loopCharacteristics},getValue(e){var r;const t=e.loopCharacteristics;return t?(r=t.loopCardinality)==null?void 0:r.body:""},setValue(e,t,r){r=String(r);const o=s,a=o.getModeler().get("moddle"),n=e.loopCharacteristics;n.loopCardinality=a.create("bpmn:FormalExpression",{body:r}),o.getModeling().updateProperties(o.getShape(),{loopCharacteristics:n})}},collection:{component:u,prefixTitle:"\u4EFB\u52A1\u53C2\u4E0E\u4EBA",filterable:!0,multiple:!0,mode:"tags",allowCreate:!0,vSlots:{default:()=>d},predicate(e){return e.loopCharacteristics},getValue(e){const t=e.loopCharacteristics;return t?t.collection:""},setValue(e,t,r){const o=s,a=e.loopCharacteristics;a.collection=r,o.getModeling().updateProperties(o.getShape(),{loopCharacteristics:a})}},elementVariable:{component:S,placeholder:"\u5143\u7D20\u53D8\u91CF",vSlots:{addonBefore:()=>i("div",null,[j("\u5143\u7D20\u53D8\u91CF")])},predicate(e){return e.loopCharacteristics},getValue(e){const t=e.loopCharacteristics;return t?t.elementVariable:""},setValue(e,t,r){const o=s,a=e.loopCharacteristics;a.elementVariable=r,o.getModeling().updateProperties(o.getShape(),{loopCharacteristics:a})}},completionCondition:{component:S,placeholder:"\u5982\uFF1A${nrOfCompletedInstances/nrOfInstances >= 0.25} \u8868\u793A\u5B8C\u6210\u6570\u5927\u4E8E\u7B49\u4E8E4\u52061\u65F6\u4EFB\u52A1\u5B8C\u6210",vSlots:{addonBefore:()=>i("div",null,[j("\u5B8C\u6210\u6761\u4EF6")])},predicate(e){return e.loopCharacteristics},getValue(e){var r;const t=e.loopCharacteristics;return t?(r=t.completionCondition)==null?void 0:r.body:""},setValue(e,t,r){const o=s,a=o.getModeler().get("moddle"),n=e.loopCharacteristics;n.completionCondition=a.create("bpmn:FormalExpression",{body:r}),o.getModeling().updateProperties(o.getShape(),{loopCharacteristics:n})}}}},q=[{label:"\u65E0",value:"Null"},{label:"\u5E76\u884C\u591A\u91CD\u4E8B\u4EF6",value:"Parallel"},{label:"\u65F6\u5E8F\u591A\u91CD\u4E8B\u4EF6",value:"Sequential"},{label:"\u5FAA\u73AF\u4E8B\u4EF6",value:"StandardLoop"}],_=i(v,null,[q.map(e=>i(g,{value:e.value,"onUpdate:value":t=>e.value=t},{default:()=>[e.label]}))]),P=c(p({},h),{properties:c(p({},h.properties),{loopCharacteristics:{component:u,prefixTitle:"\u56DE\u8DEF\u7279\u6027",vSlots:{default:()=>_},getValue(e){const t=e.loopCharacteristics;return t?t.$type==="bpmn:MultiInstanceLoopCharacteristics"?t.isSequential?"Sequential":"Parallel":"StandardLoop":"Null"},setValue(e,t,r){const o=s.getShape(),a=s.getModeling();switch(r){case"Null":a.updateProperties(o,{loopCharacteristics:null});break;case"StandardLoop":s.createElement("bpmn:StandardLoopCharacteristics","loopCharacteristics");break;default:s.createElement("bpmn:MultiInstanceLoopCharacteristics","loopCharacteristics",{isSequential:r==="Sequential"})}return()=>s.refresh()}}})}),l=[P,T,f,C];var Pe={"bpmn:Task":l,"bpmn:UserTask":[P,G,T,N,f,C],"bpmn:ReceiveTask":l,"bpmn:SendTask":l,"bpmn:ManualTask":l,"bpmn:BusinessRuleTask":l,"bpmn:ServiceTask":l,"bpmn:ScriptTask":l,"bpmn:CallActivity":l};export{G as BpmnUserGroupProperties,Pe as default};
  