workflow-editor 0.0.76-up → 0.0.78-up

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.
@@ -27,7 +27,7 @@ ${d}`:a)}else throw s},onCacheKey:s=>generateFormatCacheKey(t,o,s)}}function get
27
27
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const r=new this(t);return o.forEach(n=>r.set(n)),r}static accessor(t){const r=(this[$internals]=this[$internals]={accessors:{}}).accessors,n=this.prototype;function i(s){const l=normalizeHeader(s);r[l]||(buildAccessors(n,s),r[l]=!0)}return utils$1.isArray(t)?t.forEach(i):i(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[o]=r}}}),utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(e,t){const o=this||defaults$1,r=t||o,n=AxiosHeaders$1.from(r.headers);let i=r.data;return utils$1.forEach(e,function(l){i=l.call(o,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,o){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,t,o),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,t,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?e(o):t(new AxiosError("Request failed with status code "+o.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const o=new Array(e),r=new Array(e);let n=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const d=Date.now(),u=r[i];s||(s=d),o[n]=a,r[n]=d;let c=i,m=0;for(;c!==n;)m+=o[c++],c=c%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),d-s<t)return;const A=u&&d-u;return A?Math.round(m*1e3/A):void 0}}function throttle(e,t){let o=0;const r=1e3/t;let n=null;return function(){const s=this===!0,l=Date.now();if(s||l-o>r)return n&&(clearTimeout(n),n=null),o=l,e.apply(null,arguments);n||(n=setTimeout(()=>(n=null,o=Date.now(),e.apply(null,arguments)),r-(l-o)))}}const progressEventReducer=(e,t,o=3)=>{let r=0;const n=speedometer(50,250);return throttle(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,a=s-r,d=n(a),u=s<=l;r=s;const c={loaded:s,total:l,progress:l?s/l:void 0,bytes:a,rate:d||void 0,estimated:d&&l&&u?(l-s)/d:void 0,event:i,lengthComputable:l!=null};c[t?"download":"upload"]=!0,e(c)},o)},isURLSameOrigin=platform.hasStandardBrowserEnv?function e(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let r;function n(i){let s=i;return t&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return r=n(window.location.href),function(s){const l=utils$1.isString(s)?n(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function e(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(e,t,o,r,n,i){const s=[e+"="+encodeURIComponent(t)];utils$1.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),utils$1.isString(r)&&s.push("path="+r),utils$1.isString(n)&&s.push("domain="+n),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const o={};function r(d,u,c){return utils$1.isPlainObject(d)&&utils$1.isPlainObject(u)?utils$1.merge.call({caseless:c},d,u):utils$1.isPlainObject(u)?utils$1.merge({},u):utils$1.isArray(u)?u.slice():u}function n(d,u,c){if(utils$1.isUndefined(u)){if(!utils$1.isUndefined(d))return r(void 0,d,c)}else return r(d,u,c)}function i(d,u){if(!utils$1.isUndefined(u))return r(void 0,u)}function s(d,u){if(utils$1.isUndefined(u)){if(!utils$1.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,c){if(c in t)return r(d,u);if(c in e)return r(void 0,d)}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,u)=>n(headersToObject(d),headersToObject(u),!0)};return utils$1.forEach(Object.keys(Object.assign({},e,t)),function(u){const c=a[u]||n,m=c(e[u],t[u],u);utils$1.isUndefined(m)&&c!==l||(o[u]=m)}),o}const resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:o,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=AxiosHeaders$1.from(s),t.url=buildURL(buildFullPath(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let a;if(utils$1.isFormData(o)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((a=s.getContentType())!==!1){const[d,...u]=a?a.split(";").map(c=>c.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",...u].join("; "))}}if(platform.hasStandardBrowserEnv&&(r&&utils$1.isFunction(r)&&(r=r(t)),r||r!==!1&&isURLSameOrigin(t.url))){const d=n&&i&&cookies.read(i);d&&s.set(n,d)}return t},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(o,r){const n=resolveConfig(e);let i=n.data;const s=AxiosHeaders$1.from(n.headers).normalize();let{responseType:l}=n,a;function d(){n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let u=new XMLHttpRequest;u.open(n.method.toUpperCase(),n.url,!0),u.timeout=n.timeout;function c(){if(!u)return;const A=AxiosHeaders$1.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!l||l==="text"||l==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:A,config:e,request:u};settle(function(p){o(p),d()},function(p){r(p),d()},g),u=null}"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(c)},u.onabort=function(){u&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,n,u)),u=null)},u.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let C=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const g=n.transitional||transitionalDefaults;n.timeoutErrorMessage&&(C=n.timeoutErrorMessage),r(new AxiosError(C,g.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,n,u)),u=null},i===void 0&&s.setContentType(null),"setRequestHeader"in u&&utils$1.forEach(s.toJSON(),function(C,g){u.setRequestHeader(g,C)}),utils$1.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),l&&l!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",progressEventReducer(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",progressEventReducer(n.onUploadProgress)),(n.cancelToken||n.signal)&&(a=A=>{u&&(r(!A||A.type?new CanceledError(null,e,u):A),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const m=parseProtocol(n.url);if(m&&platform.protocols.indexOf(m)===-1){r(new AxiosError("Unsupported protocol "+m+":",AxiosError.ERR_BAD_REQUEST,e));return}u.send(i||null)})},composeSignals=(e,t)=>{let o=new AbortController,r;const n=function(a){if(!r){r=!0,s();const d=a instanceof Error?a:this.reason;o.abort(d instanceof AxiosError?d:new CanceledError(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{n(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a&&(a.removeEventListener?a.removeEventListener("abort",n):a.unsubscribe(n))}),e=null)};e.forEach(a=>a&&a.addEventListener&&a.addEventListener("abort",n));const{signal:l}=o;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},composeSignals$1=composeSignals,streamChunk=function*(e,t){let o=e.byteLength;if(!t||o<t){yield e;return}let r=0,n;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},readBytes=async function*(e,t,o){for await(const r of e)yield*streamChunk(ArrayBuffer.isView(r)?r:await o(String(r)),t)},trackStream=(e,t,o,r,n)=>{const i=readBytes(e,t,n);let s=0;return new ReadableStream({type:"bytes",async pull(l){const{done:a,value:d}=await i.next();if(a){l.close(),r();return}let u=d.byteLength;o&&o(s+=u),l.enqueue(new Uint8Array(d))},cancel(l){return r(l),i.return()}},{highWaterMark:2})},fetchProgressDecorator=(e,t)=>{const o=e!=null;return r=>setTimeout(()=>t({lengthComputable:o,total:e,loaded:r}))},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),supportsRequestStream=isReadableStreamSupported&&(()=>{let e=!1;const t=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&!!(()=>{try{return utils$1.isReadableStream(new Response("").body)}catch{}})(),resolvers={stream:supportsResponseStream&&(e=>e.body)};isFetchSupported&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!resolvers[t]&&(resolvers[t]=utils$1.isFunction(e[t])?o=>o[t]():(o,r)=>{throw new AxiosError(`Response type '${t}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})})})(new Response);const getBodyLength=async e=>{if(e==null)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(e))return e.byteLength;if(utils$1.isURLSearchParams(e)&&(e=e+""),utils$1.isString(e))return(await encodeText(e)).byteLength},resolveBodyLength=async(e,t)=>{const o=utils$1.toFiniteNumber(e.getContentLength());return o??getBodyLength(t)},fetchAdapter=isFetchSupported&&(async e=>{let{url:t,method:o,data:r,signal:n,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:a,responseType:d,headers:u,withCredentials:c="same-origin",fetchOptions:m}=resolveConfig(e);d=d?(d+"").toLowerCase():"text";let[A,C]=n||i||s?composeSignals$1([n,i],s):[],g,E;const p=()=>{!g&&setTimeout(()=>{A&&A.unsubscribe()}),g=!0};let f;try{if(a&&supportsRequestStream&&o!=="get"&&o!=="head"&&(f=await resolveBodyLength(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),N;utils$1.isFormData(r)&&(N=O.headers.get("content-type"))&&u.setContentType(N),O.body&&(r=trackStream(O.body,DEFAULT_CHUNK_SIZE,fetchProgressDecorator(f,progressEventReducer(a)),null,encodeText))}utils$1.isString(c)||(c=c?"cors":"omit"),E=new Request(t,{...m,signal:A,method:o.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:c});let w=await fetch(E);const v=supportsResponseStream&&(d==="stream"||d==="response");if(supportsResponseStream&&(l||v)){const O={};["status","statusText","headers"].forEach(P=>{O[P]=w[P]});const N=utils$1.toFiniteNumber(w.headers.get("content-length"));w=new Response(trackStream(w.body,DEFAULT_CHUNK_SIZE,l&&fetchProgressDecorator(N,progressEventReducer(l,!0)),v&&p,encodeText),O)}d=d||"text";let b=await resolvers[utils$1.findKey(resolvers,d)||"text"](w,e);return!v&&p(),C&&C(),await new Promise((O,N)=>{settle(O,N,{data:b,headers:AxiosHeaders$1.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:E})})}catch(w){throw p(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,E),{cause:w.cause||w}):AxiosError.from(w,w&&w.code,e,E)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1,adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let o,r;const n={};for(let i=0;i<t;i++){o=e[i];let s;if(r=o,!isResolvedHandle(o)&&(r=knownAdapters[(s=String(o)).toLowerCase()],r===void 0))throw new AxiosError(`Unknown adapter '${s}'`);if(r)break;n[s||"#"+i]=r}if(!r){const i=Object.entries(n).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
28
28
  `+i.map(renderReason).join(`
29
29
  `):" "+renderReason(i[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults$1.adapter)(e).then(function(r){return throwIfCancellationRequested(e),r.data=transformData.call(e,e.transformResponse,r),r.headers=AxiosHeaders$1.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(e),r&&r.response&&(r.response.data=transformData.call(e,e.transformResponse,r.response),r.response.headers=AxiosHeaders$1.from(r.response.headers))),Promise.reject(r)})}const VERSION="1.7.2",validators$2={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$2[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$2.transitional=function e(t,o,r){function n(i,s){return"[Axios v"+VERSION+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new AxiosError(n(s," has been removed"+(o?" in "+o:"")),AxiosError.ERR_DEPRECATED);return o&&!deprecatedWarnings[s]&&(deprecatedWarnings[s]=!0,console.warn(n(s," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(i,s,l):!0}};function assertOptions(e,t,o){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let n=r.length;for(;n-- >0;){const i=r[n],s=t[i];if(s){const l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new AxiosError("option "+i+" must be "+a,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}}const validator$1={assertOptions,validators:validators$2},validators$1=validator$1.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(t,o){try{return await this._request(t,o)}catch(r){if(r instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
30
- `+i):r.stack=i}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=mergeConfig$1(this.defaults,o);const{transitional:r,paramsSerializer:n,headers:i}=o;r!==void 0&&validator$1.assertOptions(r,{silentJSONParsing:validators$1.transitional(validators$1.boolean),forcedJSONParsing:validators$1.transitional(validators$1.boolean),clarifyTimeoutError:validators$1.transitional(validators$1.boolean)},!1),n!=null&&(utils$1.isFunction(n)?o.paramsSerializer={serialize:n}:validator$1.assertOptions(n,{encode:validators$1.function,serialize:validators$1.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&utils$1.merge(i.common,i[o.method]);i&&utils$1.forEach(["delete","get","head","post","put","patch","common"],C=>{delete i[C]}),o.headers=AxiosHeaders$1.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(o)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,c=0,m;if(!a){const C=[dispatchRequest.bind(this),void 0];for(C.unshift.apply(C,l),C.push.apply(C,d),m=C.length,u=Promise.resolve(o);c<m;)u=u.then(C[c++],C[c++]);return u}m=l.length;let A=o;for(c=0;c<m;){const C=l[c++],g=l[c++];try{A=C(A)}catch(E){g.call(this,E);break}}try{u=dispatchRequest.call(this,A)}catch(C){return Promise.reject(C)}for(c=0,m=d.length;c<m;)u=u.then(d[c++],d[c++]);return u}getUri(t){t=mergeConfig$1(this.defaults,t);const o=buildFullPath(t.baseURL,t.url);return buildURL(o,t.params,t.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function e(t){Axios.prototype[t]=function(o,r){return this.request(mergeConfig$1(r||{},{method:t,url:o,data:(r||{}).data}))}}),utils$1.forEach(["post","put","patch"],function e(t){function o(r){return function(i,s,l){return this.request(mergeConfig$1(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Axios.prototype[t]=o(),Axios.prototype[t+"Form"]=o(!0)});const Axios$1=Axios;class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(n=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new CanceledError(i,s,l),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new CancelToken(function(n){t=n}),cancel:t}}}const CancelToken$1=CancelToken;function spread(e){return function(o){return e.apply(null,o)}}function isAxiosError(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});const HttpStatusCode$1=HttpStatusCode;function createInstance(e){const t=new Axios$1(e),o=bind(Axios$1.prototype.request,t);return utils$1.extend(o,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(o,t,null,{allOwnKeys:!0}),o.create=function(n){return createInstance(mergeConfig$1(e,n))},o}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function e(t){return Promise.all(t)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const axios$1=axios;function getRelativeBaseUrl(e){if(!e)return e;if(window.$vueApp.config.globalProperties.projectModel===void 0||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){let t=getUrlPrefix(location.href);if(window.sessionStorage.setItem("relativeUrl",t),t&&e){let o="";const r=e.split("/");if(r.length>=3){const n=r[0]+"//"+r[2];o=e.substring(e.indexOf(n)+n.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),o?t+o:t}}return e}function getUrlPrefix(e){const t=e.split("#");if(t.length>0){const o=t[0];let r=o;const n=o.split("/");return n.length>=3&&(r=n[0]+"//"+n[2]+"/"),r}}function isShowMenuRoute(){let e=window.$vueApp.config.globalProperties.showMenuRoute;return e===void 0&&(e="false"),e==="true"}function isShowSystemMenu(){let e=window.$vueApp.config.globalProperties.showSystemMenu;return e===void 0&&(e="false"),e==="true"}function getSystemFrontendUrl(e){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"&&window.$vueApp.config.globalProperties.frontUrl?window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(e)}function isPlateSys(e){return!!(e&&(e==="agilebuilder"||e==="portal"||e==="mms"||e==="task"||e==="wf"||e==="dc"||e==="mc"||e==="mobile"||e==="acs"||e==="bs"||e==="pcm"||e==="devp"))}function getTimeZone(){const e=new Date+"";let t="";if(e.indexOf("GMT")>0){const o=e.substring(e.indexOf("GMT")+3,e.indexOf("(")).trim(),r=o.substring(0,o.length-2),n=o.substring(o.length-2);t="UTC"+r+":"+n}else e.indexOf("UTC")>0&&(t="UTC"+e.substring(e.indexOf("UTC")+3,e.indexOf("(")).trim());return t}function setCustomSystemBackendUrl(e){if(!window.$vueApp.config.globalProperties.projectModel||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){const t=window.$authApi.getSystemCacheUrlByCode(e);t&&(window.$vueApp.config.globalProperties.baseURL=getRelativeBaseUrl(t))}}function isMobileBrowser(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung/i.test(navigator.userAgent)}function getLangs(){return getAllLanguages()}function getLangByShort(e){let t;const o=getLangs();return o&&(t=JSON.parse(o)[e]),t||(t="zh_CN"),t}function getI18n$1(){let e=window.$i18n;return e||(e=i18n$1),window.$locale?i18n$1.locale=window.$locale:i18n$1.locale="cn",e.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function getContextValue(e,t){let o=getLastNDate(t);return e&&(o=e[t]),o}function getLastNDate(e){let t;if(e&&e==="currentTime"&&(t=new Date),e&&e==="currentWeek"&&(t=getCurrentWeek()),e&&e==="currentMonth"&&(t=getCurrentMonth()),e&&e==="currentQuarter"&&(t=getCurrentQuarter()),e&&e==="currentYear"&&(t=getCurrentYear()),e&&e.indexOf("lastNDay")>=0){const o=e.substring(e.indexOf(":")+1);t=getLastNDay(parseInt(o))}return t}function getCurrentWeek(){const e=new Date,t=e.getTime(),o=e.getDay(),r=new Date(t+24*60*60*1e3*(0-(o+6)%7)),n=new Date(t+24*60*60*1e3*(6-(o+6)%7)),i=r.toLocaleDateString()+" "+r.toLocaleTimeString(),s=n.toLocaleDateString()+" "+n.toLocaleTimeString();return console.log(`getCurrentMonth从 ${i} 开始,到 ${s} 结束`),[r,n]}function getCurrentMonth(){const e=new Date,t=e.getFullYear(),o=e.getMonth()+1;e.setDate(1);const r=`${t}/${o<10?"0":""}${o}/01`;e.setMonth(e.getMonth()+2),e.setDate(0);const n=`${e.getFullYear()}/${e.getMonth()<9?"0":""}${e.getMonth()+1}/01`,i=new Date(Date.parse(r)),s=new Date(new Date(Date.parse(n)).getTime()-1e3),l=i.toLocaleDateString()+" "+i.toLocaleTimeString(),a=s.toLocaleDateString()+" "+s.toLocaleTimeString();return console.log(`getCurrentMonth从 ${l} 开始,到 ${a} 结束`),[i,s]}function getCurrentQuarter(){const e=new Date,t=(e.getMonth()+3)%12;let o;e.getMonth()<t+2?o=new Date(e.getFullYear(),t,1):o=new Date(e.getFullYear()+1,t,1);let r;o.getMonth()===11?r=new Date(o.getFullYear()+1,0,0):r=new Date(o.getFullYear(),o.getMonth()+3,0),r=new Date(r.getTime()+24*60*60*1e3-1e3);const n=o.toLocaleDateString()+" "+o.toLocaleTimeString(),i=r.toLocaleDateString()+" "+r.toLocaleTimeString();return console.log(`getCurrentQuarter从 ${n} 开始,到 ${i} 结束`),[o,r]}function getCurrentYear(){const e=new Date().getFullYear();let t=new Date(e,0);t.setMonth(0,1);let o=new Date(e+1,0);o=o.getTime()-1e3,o=new Date(o);const r=t.toLocaleDateString()+" "+t.toLocaleTimeString(),n=o.toLocaleDateString()+" "+o.toLocaleTimeString();return console.log(`getCurrentYear从 ${r} 开始,到 ${n} 结束`),[t,o]}function getLastNDay(e){let t=new Date,o=t.getFullYear(),r=t.getMonth()+1,n=t.getDate(),i=`${o}/${r<10?"0":""}${r}/${n}`;t=new Date(Date.parse(i)),t.setDate(t.getDate()+1),t=new Date(t.getTime()-1e3);let s=new Date;s.setDate(s.getDate()-(e-1));const l=s.getFullYear(),a=s.getMonth()+1,d=s.getDate(),u=`${l}/${a<10?"0":""}${a}/${d}`;s=new Date(Date.parse(u));const c=s.toLocaleDateString()+" "+s.toLocaleTimeString(),m=t.toLocaleDateString()+" "+t.toLocaleTimeString();console.log(`getLastNDay从 ${c} 开始,到 ${m} 结束`),retur[t]}function getPropValue(e,t,o,r,n,i,s){return getPropValueNew(e,{entity:{data:t,context:r,request:o,parent:n,row:i,task:s}})}function getAdditionalParamMap(e){if(e&&e.entity){let t={...e.entity.page};t||(t={});const o=e.entity.request;return o&&Object.assign(t,o),t}}function getPropValueNew(e,t,o){let r=null;if(e&&e!==null&&e!==""){const n=t&&t.entity?t.entity.data:null,i=t&&t.entity?t.entity.page:null,s=getAdditionalParamMap(t),l=t&&t.entity?t.entity.context:null,a=t&&t.entity?t.entity.parent?t.entity.parent:t.entity.data:null,d=t&&t.entity?t.entity.row:null,u=t&&t.entity?t.entity.task:null,c=t&&t.entity?t.entity.system:null;if(e==="null")r=null;else if(e.startsWith("${row.")){if(o){const m=e.replace("${row.","").replace("}","");r=getEntityFieldValue(o,m)}}else if(e.indexOf("${page.")===0){const m=e.replace("${page.","").replace("}","");r=i?i[m]:null}else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")||e.includes("${data.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),r=getContextValue(l,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),s&&s!=null&&Object.keys(s).indexOf(e)>=0&&s[e]&&s[e]!==null?r=s[e]:r=null;else if(e.includes("${obj."))if(n===void 0||n==null)r=null;else{const m=e.replace("${obj.","").replace("}","");r=getEntityFieldValue(n,m)}else if(e.includes("${data."))if(n===void 0||n==null)r=null;else{const m=e.replace("${data.","").replace("}","");r=getEntityFieldValue(n,m)}}else if(e.includes("${parent."))if(a===void 0||a==null)r=null;else{const m=e.replace("${parent.","").replace("}","");r=getEntityFieldValue(a,m)}else if(e.includes("${system."))if(c===void 0||c==null)r=null;else{const m=e.replace("${system.","").replace("}","");r=getEntityFieldValue(c,m)}else if(e.includes("${task."))if(u===void 0||u==null)r=null;else{const m=e.replace("${task.","").replace("}","");r=getEntityFieldValue(u,m)}else if(e.includes("${subObj."))if(d===void 0||d==null)r=null;else{const m=e.replace("${subObj.","").replace("}","");r=getEntityFieldValue(d,m)}else e.includes("${input.")?r=e.replace("${input.","").replace("}",""):e.includes("${fixed.")?r=e.replace("${fixed.","").replace("}",""):r=e}return r}function getEntityFieldValue(e,t,o){if(!t)return null;let r=getEntityFieldValueWithCase(e,t);return r==null&&(r=getEntityFieldValueWithCase(e,t.toLowerCase())),(r===void 0||r===null&&o===void 0)&&(r=getEntityFieldValueWithCase(e,t.toUpperCase())),r}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const o=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return o[r]}else return e[t]}function getParentObjectUtil(e,t){const o=e.split(".");if(o.length===1)return t;{let r;for(let n=0;n<o.length-1;n++)n===0?r=getParentModelProp(o[n],t):r=getParentModelProp(o[n],r);return r}}function getParentModelProp(e,t){let o=getParentModelPropWithCase(e,t);return o===void 0&&(o=getParentModelPropWithCase(e.toLowerCase(),t)),o===void 0&&(o=getParentModelPropWithCase(e.toUpperCase(),t)),o}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}const en={workflowEditorPublicModel:{add:"Add",insert:"Insert",delete:"Delete",viewConditions:"View Conditions",agree:"Agree",disagree:"Disagree",andOr:"And / Or",mail:"Mail",message:"Message",App:"App",dingding:"DingTalk",qiwei:"Weixin",feishu:"Lark",determine:"Determine",cancel:"Cancel",choice:"Choice",empty:"Empty",save:"Save",export:"Export",open:"Open",return:"Return",flowChart:"Flow Chart",close:"Close",selectPage:"Select Page",search:"Search",adminSave:"Admin Save",tipTitle:"Tip",i18nSet:"I18n Setting",i18nZh:"Chinese",i18nEn:"English",i18nKey:"I18n Key",subprocessTitle:"Subprocess History",custom:"Custom",enable:"Enable"},workflowEditorMessage:{requiredAndMustBeADate:"Required And Must Be A Date",requiredAndMustBeAnInteger:"Required And Must Be An Integer",requiredAndMustBeDecimal:"Required And Must Be Decimal",mustFill:"Must Fill",recordLine:"Record Line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",currentHandlingPersonnel:"Current Handling Personnel",pleaseSelect:"Please Select",pleaseSelectARow:"Please Select A Row",conditionsHaveNotBeenSet:"Conditions Have Not Been Set",viewConditions:"View Conditions",fieldSettings:"Field Settings",valueSetting:"Value Setting",pleaseEnterContent:"Please Enter Content",theFieldNameOrFieldValueInLineCannotBeEmpty:"The Field Name Or Field Value In Line {row} Cannot Be Empty",fieldNameCannotBeEmpty:"Field Name Cannot Be Empty",fieldValueCannotBeEmpty:"Field Value Cannot Be Empty",pleaseEnterASubject:"Please Enter A Subject",selectStandardFields:"Select Standard Fields",pleaseEnterTheRoleName:"Please Enter The Role Name",queryResultIsEmpty:"Query Result Is Empty",selectRole:"Select Role",enterText:"Enter Text",selectField:"Select Field",pleaseSelectPersonnel:"Please Select Personnel",pleaseSelectAValue:"Please Select A Value",pleaseSelectAValueInTheCurrentTab:"Please Select A Value In The Current Tab",variableNameCannotBeEmpty:"Variable Name Cannot Be Empty",variableValueCannotBeEmpty:"Variable Value Cannot Be Empty",variableNameOrValueOnLineCannotBeEmpty:"Variable Name Or Value On Line {row} Cannot Be Empty",whenThereAreMultipleManagers:"When There Are Multiple Managers",duplicateOperationTypeWithLinePleaseReselect:"Duplicate Operation Type With Line {row}, Please Reselect",theOperationTypeOrNameInLineIsEmpty:"The Operation Type Or Name In Line {row} Is Empty",readOnly:"Read Only",pleaseEnterFieldName:"Please Enter Field Name",dataInLineCannotBeEmpty:"{data1} Or {data2} In Line {row} Cannot Be Empty",dataCannotBeEmpty:"{data} Cannot Be Empty",theStartAndEndOfTheFlowDirectionCannotBeTheSame:"The Start And End Of The Flow Direction Cannot Be The Same",onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows:"Only Condition Judgment, Branch And Manual Judgment Can Have Multiple Outbound Flows",startAndEndNodesCannotBeConnectedDirectly:"Start And End Nodes Cannot Be Connected Directly",endNodeCannotHaveOutFlowDirection:"End Node Cannot Have Out Flow Direction",itIsTheSameAsTheExistingLink:"It Is The Same As The Existing Link: {name}",updateSuccessful:"Update Successful",savedSuccessfully:"Saved Successfully",exportSucceeded:"Export Succeeded",pleaseSelectRole:"Please select role",subTableMustInputDatas:"The [{subtable}] subtable must enter data",pleaseEnterTheNameOrCode:"Please Enter The Name Or Describe",updateVersionSuccessful:"Version updated successfully",addVersionSuccessful:"Version added successfully",adminSaveTip:"The version must be added in the following cases:",adminSaveTip1:"1.The process name or code has been modified",adminSaveTip2:"2.The node name or code has been modified",adminSaveTip3:"3.Added node or flow direction",adminSaveTip4:"4.Node or flow direction removed",adminSaveTip5:'Please select "Add Version" or "Update Current Version"?',updateVersion:"Update Current Version",addVersion:"Add Version",pleaseInputCode:"Please input the code first, and then do the international configuration",blankFieldNameOrValue:"Blank Field Name Or Value",enabledSuccessfully:"Enabled Successfully"},workflowEditor:{main:{tacheType:"Tache Type",straightLine:"Straight Line",curveLine:"Curve Line",brokenLine:"Broken Line"},common:{remove:"Remove",attribute:"Attribute",fieldName:"Field Name(*)",operator:"Operator",value:"Value(*)",name:"Name",fieldValue:"Field Value",separator:"Separator",fillInMethod:"Fill In Method",cover:"Cover",append:"Append",insertToFront:"Insert To Front",fillInTime:"Fill In Time",fillInBeforeHandling:"Fill In Before Handling",fillInAfterHandling:"Fill In After Handling",type:"Type(*)",user:"User",role:"Role",department:"Department",workgroup:"Workgroup",selectFormField:"Select Form Field",notificationMethod:"Notification Method",addressee:"Addressee",theme:"Theme",content:"Content",notifyPersonnel:"Notify Personnel",selectusers:"Select Users",selectDepartment:"Select Department",selectTeam:"Select Team",selectRole:"Select Role",organizationStructure:"Organization Structure",formField:"Form Field",variableName:"Variable Name",variableValue:"Variable Value",selectField:"Select Field",taskNotice:"Task Notice",reminderNotice:"Reminder Notice",customMsg:"Custom Notice Message",canNotBeEmpty:"can Not Be Empty",copy:"Copy"},process:{processInitiator:"Process Initiator",processInitiatorRole:"Process Initiator Role",processInitiatorDepartment:"ProcessInitiator Department",processInitiatorSuperiorDepartment:"Process Initiator Superior Ddepartment",processInitiatorTopDepartment:"Process Initiator Top Department",processInitiatorWorkingGroup:"Process Initiator Working Group",nameOfTheDirectSuperiorOfTheProcessInitiator:"Name Of The Direct Superior Of The Process Initiator",processInitiatorsDirectSuperiorDepartment:"Process initiator`s Direct Superior Department",directSuperiorRoleOfProcessInitiator:"Direct Superior Role Of Process Initiator",ProcessInitiatorsImmediateSuperiorWorkingGroup:"Process Initiator`s Immediate Superior Working Group",nameOfCurrentHandler:"Name Of Current Handler",currentHandlerRole:"Current Handler Role",currentHandlerDepartment:"Current Handler Department",currentHandlerSuperiorDepartment:"Current Handler`s Superior Department",topDepartmentOfCurrentHandler:"Top Department Of current Handler",currentHandlerWorkingGroup:"Current Handler Working Group",nameOfTheImmediateSuperiorOfTheCurrentHandler:"Name Of The Immediate Superior Of The Current Handler",currentHandlerDirectSuperiorDepartment:"Current handler`s Direct Superior Department",currentManagerDirectSuperiorRole:"Current Manager`s Direct Superior Role",workingGroupDirectlyUnderTheCurrentHandler:"Working Group Directly Under The Current Handler",topDepartments:"Top Departments",approvalResults:"Approval Results",totalNnumberOfPersonsWhoDisagreeWithTheCountersignature:"Total Number O Persons Who Disagree With The Countersignature",totalNumberOfCountersignedAndAgreedPersonnel:"Total Number Of Countersigned And Agreed Personnel",percentageOfPersonsWhoDisagreeWithTheCountersignature:"Percntage Of Persons Who Disagree With The Countersignature",percentageOfCountersignedAndAgreedPersonnel:"Percentage Of Countersigned And Agreed Personnel",percentageOfAbstentions:"Percentage Of Abstentions",percentageOfVotesAgainst:"Percentage Of Votes Against",percentageOfAffirmativeVotes:"Percentage Of Affirmative Votes",totalNumberOfAbstentions:"Total Number Of Abstentions",totalVotesAgainst:"Total Votes Against",totalNumberOfAffirmativeVotes:"Total Number Of Affirmative Votes",standardFields:"Standard Fields",perhaps:"Perhaps",also:"Also",greaterThan:"Greater Than",lessThan:"Less Than",beEqualTo:"Be Equal To",notGreaterThan:"Not Greater Than",notLessThan:"Not Less Than",notEqualTo:"Not Equal To",contain:"Contain",notIncluded:"Not Included",laterThan:"Later Than",earlierThan:"Earlier Than",noLaterThan:"No Later Than",noEarlierThan:"No Earlier Than",handlingTimeOfThisLink:"Handling Time Of This Link",handlerIDOfThisLink:"Handler ID Of This Link",currentHandlerPrincipalDepartmentID:"Current Handler Principal Department ID",iDOfTheImmediateSuperiorOfTheCurrentHandler:"ID Of The Immediate Superior Of The Current Handler",iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler:"ID Of The Superior Department Directly Under The Current Handler",loginNameOfTheHandlerInThisLink:"Login Name Of The Handler In This Link",NameOfCurrentHandler:"Name Of Current Handler",CurrentHandlerDepartment:"Current Handler Department",CurrentHandlerDepartmentID:"Current Handler Department ID",CurrentManagersPrincipalDepartment:"Current Manager`s Principal Department",iDOfSsuperiorDepartmentOfCurrentHandler:"ID Of Superior Department Of Current Handler",CurrentHandlersSuperiorDepartment:"Current Handler`s Superior Department",TopDepartmentOfCurrentHandler:"Top Department Of Current Handler",TopDepartmentIDOfCurrentHandler:"Top Department ID Of Current Handler",CurrentHandlerRole:"Current Handler Role",CurrentHandlerRoleID:"Current Handler Role ID",CurrentHandlerWorkingGroupID:"Current Handler Working Group ID",LoginNameOfTheImmediateSuperiorOfTheCurrentHandler:"Login Name Of The Immediate Superior Of The Current Handler",currentHandlersDirectSuperiorDepartment:"Current handler`s Direct Superior Department",currentManagersDirectSuperiorDepartment:"Current Manager`s Direct Superior Department",currentManagersDirectSuperiorRole:"Current manager`s Direct Superior Role",currentHandlersDirectSuperiorRoleID:"Current Handler`s Direct Superior Role ID",currentManagersDirectSuperiorWork:"Current Manager`s Direct Superior Work",iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler:"ID Of The Working Group Directly Under The Current Handler",operationsPerformedInThisPhase:"Operations Performed In This Phase",handlerIDOfThePreviousLink:"Handler ID Of The Previous Link",lastLinkHandlerLogin:"Last Link Handler Login",nameOfHandlerInThePreviousLink:"Name Of Handler In The Previous Link",currentManagersIdDirectlyUnderTheSuperior:"Current Manager`s Id Directly Under The Ssuperior",appointmentOfHandlerInThePreviousLink:"Appointment Of Handler In The Previous Link",personSpecifiedInFormField:"Person Specified In Form Field",filterByCriteria:"Filter by Criteria",additionalConditions:"Additional Conditions",handlingYyThePersonnelOfTheDepartmentOfTheInitiator:"Handling By The Personnel Of The Department Of The Initiator",personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling:"Personnel Of The Department Where The Initiator Works Participate In The Handling",selectSpecificHandler:"Select Specific Handler",selectOneFromDept:"Only one person is required to handle the same department",generateOneInstanceFromDept:"Generate an instance from the same department",selectionMethod:"Selection Method",manualSelection:"Manual Selection",autoSelect:"Auto Select",callbackURL:"Callback URL",cannotBeEmpty:"Cannot Be Empty",selectURL:"Select URL",fieldName:"Field Name",processAdministrator:"Process Administrator",currentHandler:"Current Handler",allHandlingPersonnel:"All Handling Personnel",designatedPersonnel:"Designated Personnel",listOfDesignatedPersons:"List Of Designated Persons",processName:"Process Name",processCode:"Process Code",creater:"Creater",correspondingForm:"Corresponding Form",processType:"Process Type",system:"System",affiliatedBranch:"Affiliated Branch",customCategory:"Custom Category",initiationProcess:"Initiation Process",deleteProcess:"Delete Process",cancelProcess:"Cancel Process",endProcess:"End Process",pauseProcess:"Pause Process",continueTheProcess:"Continue The Process",jumpLink:"Jump Link",modificationHandler:"Modification Handler",addHandler:"Add Handler",decreaseOofHandler:"Decrease Of Handler",appointedTask:"Appointed Task",returnTask:"Return Task",retrieveTask:"Retrieve Task",processTaskParameterSettings:"Process Task Parameter Settings",uRLForProcessingTask:"URL For Processing Task",parametersForReceivingTaskID:"Parameters For Receiving Task ID",viewFormParameterSettings:"View Form Parameter Settings",viewTheURLOfTheForm:"View The URL Of The Form",parametersOfReceivingEntityID:"Parameters Of Receiving Entity ID",emergencyTreatmentParameterSetting:"Emergency Treatment Parameter Setting",uRLOfEmergencyHandling:"URL Of Emergency Handling",initiateProcessParameterSettings:"Initiate Process Parameter Settings",uRLOfTheInitiatingProcess:"URL Of The Initiating Process",parametersForReceivingProcessName:"Parameters For Receiving Process Name",customParameterValue:"Custom Parameter Value",ViewFlowHistoryPersonnel:"View Flow History Personnel",ViewCountersignatureResultPersonnel:"View Countersignature Result Personnel",ViewVotingResultsBy:"View Voting Results By",name:"Name",code:"Code",subprocess:"Subprocess",transferValueFromMainFormToSubForm:"Transfer Value From Main Form To Sub Form",fieldsOfTheMainForm:"Fields Of The Main Form",fieldsOfSubform:"Fields Of Subform",subformReturnsResultsToMainForm:"Subform Returns Results To Main Form",eventsTriggeredBeforeStartingASubprocess:"Events Triggered Before Starting A Subprocess",triggerSubprocessEndEvent:"Trigger Subprocess End Event",setTheHandlerOfTheFirstPhaseOfTheSubProcess:"Set The Handler Of The First Phase Of The Sub Process",keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly:"Keep The Handler Unchanged When The Target Link Is Handled Repeatedly",branchingCondition:"Branching Condition",processProperties:"Process Properties",basicProperties:"Basic Properties",permissionSettings:"Permission Settings",notificationSettings:"Notification Settings",sendNotificationAfterProcessEnds:"Send Notification After Process Ends",reminderSettings:"Notice And Reminder Settings",parameterSsetting:"Parameter Setting",event:"Event",processVariables:"Process Variables",propertiesOfSubprocesses:"Properties Of Subprocesses",settingOfHandler:"Setting Of Handler",eventProcessing:"Event Processing",sponsorsImmediateSuperior:"Sponsor`s Immediate Superior",sponsorsSuperiorDepartment:"Sponsor`s Superior Department",sponsorTopDepartment:"Sponsor Top Department",superiorDepartmentDirectlyUnderTheInitiator:"Superior Department Directly Under The Initiator",sponsorsImmediateSuperiorWorkingGroup:"Sponsor`s Immediate Superior Working Group",lastLinkHandlerDepartment:"Last Link Handler Department",previousLinkHandlerSuperiorDepartment:"Previous Link Handler Superior Department",topDepartmentOfHandlerInThePreviousLink:"Top Department Of Handler In The Previous Link",previousLinkHandlersDirectSuperiorDepartment:"Previous Link Handler`s Direct Superior Department",previousLinkHandlerWorkingGroup:"Previous Link Handler Working Group",workingGroupDirectlyUnderTheManagerInThePreviousLink:"Working Group Directly Under The Manager In The Previous Link",getSubprocessEntityBean:"Get subprocess entity bean",getSubprocessEntityBeanPlaceholder:"The format is:xxxServiceImpl,for example:exampleServiceImpl",getSubprocessEntityBeanInfo:'The bean needs to implement the interface "tech.imatrix.wf.core.OnStartingSubProcess"',isNull:"Is Null",isNotNull:"Is Not Null",defaultMailTemplate:"Default Mail Template",defaultCommonTemplate:"Default Common Template",trustTask:"Trust Task",subprocessIsSharedForm:"Main process and subprocess shared form",generateForParttimeDept:"Generate tasks for part-time department personnel",deptSpecifiedInFormField:"Dept Specified In Form Field",activateOneVoteVeto:"Activate one vote veto",systemVersion:"System Version",tableCode:"DataTable Name",deptApprover:"Authorized approver of the drafting department",superiorDeptApprover:"Drafted by the authorized approver of the superior department",superiorDeptLeader:"Drafted by the superior department head"},task:{newCc:"New Cc",judge:"Judge",end:"End",branch:"Branch",manualJudgment:"Manual Judgment",newTask:"New Task",converge:"Converge",newProcess:"New Process",start:"Start",subprocess:"Subprocess",needToBeUrged:"Need To Be Urged",urgingMethod:"Urging Method",timeLimitForHandling:"Time Limit For Handling",day:"Day",urgingInterval:"Urging Interval",hour:"Hour",alwaysUrging:"Always Urging",limitedUrging:"Limited Urging",timesOfUrging:"Times Of Urging",includingHandoverPersonnel:"Including Handover Personnel",handoverPersonnel:"Handover Personnel",includeNotifyPeople:"Include Notify People",name:"Name",code:"Code",taskTitle:"Task Title",emailNotification:"Email Notification",handlingPage:"Handling Page",remarks:"Remarks",allowViews:"Allow Views",allowToViewCountersignatureResults:"Allow To View Countersignature Results",allowToViewVotingResults:"Allow To View Voting Results",allowToViewFlowHistory:"Allow To View Flow History",allowFormsToPrint:"Allow Forms To Print",attachmentAuthority:"Attachment Authority",downloadAttachment:"Download Attachment",bodyPermission:"Body Permission(Temporarily Closed)",additionalConditions:"Additional Conditions",setConditions:"Set Conditions",HandlingMethod:"Handling Method",editorial:"Editorial",approvalType:"Approval Type",countersign:"Countersign",voting:"Voting",anyOneCanHandleIt:"Any One Can Handle It",forAll:"For All",passRate:"Pass Rate",modifyOperationName:"Modify Operation Name",operationType:"Operation Type",visibleOrNot:"Visible Or Not",save:"Save",submission:"Submission",agree:"Agree",disagree:"Disagree",favor:"Favor",opposition:"Opposition",waiver:"Waiver",receive:"Receive",giveUp:"Give Up",additionalSignature:"Additional Signature",reductionOfSignature:"Reduction Of Signature",assignTask:"Assign Task",copyTask:"Copy Task",retrieveTask:"Retrieve Task",exportReport:"Export Report",readTask:"Read",selectEditableField:"Select Editable Field",optionalField:"Optional Field",selectedFields:"Selected Fields",editingMethod:"Editing Method",propertyName:"Property Name",condition:"Condition",nothing:"Nothing",beforeSubmission:"Before Submission",executionURL:"Execution URL",errorMessage:"Error Message",afterSubmission:"After Submission",allowEditingForms:"Allow Editing Forms",commentsAllowed:"Comments Allowed",commentsAreRequired:"Comments Are Required",deletePermission:"Delete Permission",addAttachment:"Add Attachment",deleteAttachment:"Delete Attachment",propertiesOfCCTask:"Properties Of CC Task",basicProperties:"Basic Properties",settingOfHandler:"Setting Of Handler",permissionSettings:"Permission Settings",attributeOfConditionJudgment:"Attribute Of Condition Judgment",allBranchFlows:"All Branch Flows",targetLink:"Target Link",propertiesOfBranches:"Properties Of Branches",attributesOfManualJudgment:"Attributes of manual Judgment",linkAttribute:"Link Attribute",autoFillInFieldSettings:"Auto Fill In Field Settings",reminderSettings:"Notice And Reminder Settings",eventProcessing:"Event Processing",linkVariable:"Link Variable",convergedProperties:"Converged Properties",humanTask:"Human Task",conditionJudgment:"Condition Judgment",cCtask:"CC Task",canItBeRejected:"Can It Be Rejected",selectNoticeTemplate:"Select Notice Template",selectMailTemplate:"Select Email Template",selectTemplate:"Select Template",autoTask:"Auto Task",newAutoTask:"New Auto Task",propertiesOfAutoTask:"Properties Of Auto Task",custombeanName:"Custom Bean Name",baseField:"Base Field",reminderTipTemplateMsg:"Template Description:",reminderTipRemindMsg:"Reminder Description:",reminderTipTemplateNotice:'Notification templates: DingTalk, Enterprise WeChat, Feishu, and Customization all use notification templates. When using email, if "email template" is not selected, use notification template',reminderTipTemplateEmail:"Email Template: Customized Email Template",reminderTipRemindImmediately:"The reminder method, notification template, email template, maximum number of reminders, notification method, notification personnel, and transfer personnel will take effect immediately after modification",reminderTipRemindHistory:"The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust"},transition:{flowProperties:"Flow Properties",basicProperties:"Basic Properties",notificationSettings:"Notification Settings",sendNotificationAfterFlow:"Send Notification After Flow",autoFillInFieldSettings:"Auto Fill In Field Settings",eventProcessing:"Event Processing",triggerFlowThroughEvent:"Trigger Flow Through Event",beanName:"Bean Name"},condition:{combinationCondition:"Combination Condition",currentUserId:"Current User ID",currentUserLogin:"Current User Login",currentUserName:"Current User Name",fillInManually:"Fill In Manually",environmentVariable:"Environment Variable",databaseFields:"Database fields",requestParameters:"Request Parameters",currentTime:"Current Time",currentDate:"Current Date",currentTransactor:"Current Transactor",currentTransactorName:"Current Transactor Name",currentTransactorId:"Current Transactor Id",currentTransactorMainDepartmentId:"Current Transactor Main Department Id",currentTransactorMainDepartment:"Current Transactor Main Department",currentTransactorRoleId:"Current Transactor Role Id",currentTransactorRole:"Current Transactor Role",currentTransactorWorkGroupId:"Current Transactor Work Group Id",currentTransactorWorkGroup:"Current Transactor Work Group",whenTheVariableIsEmpty:"When The Variable Is Empty",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",currentHandler:"Current Handler",currentTaskClient:"Current Task Client",currentAssignor:"Current Assignor",rowsCanBeAdded:"Rows Can Be Added",deleteLine:"Delete Line",modifiableHistoricalData:"Modifiable Historical Data",controlByField:"Control By Field",allReadOnly:"All Read Only",allRequired:"All Required",mainTableField:"Main Table Field",linkName:"Link Name",linkCode:"Link Code",taskFields:"Task Fields",systemParameter:"System Parameter",personnelScope:"Personnel Scope",mainTableConditions:"Main Table Conditions",subtableCondition:"Subtable Condition",accessControl:"Access Control",formBindingModel:"Form Binding Model",allFields:"All Fields",tableDataNotEmpty:"Table Data Not Empty"}}},cn={workflowEditorPublicModel:{add:"添加",insert:"插入",delete:"删除",viewConditions:"查看条件",agree:"同意",disagree:"不同意",andOr:"并且/或者",mail:"邮件",message:"短信",App:"App",dingding:"钉钉",qiwei:"企业微信",feishu:"飞书",determine:"确定",cancel:"取消",choice:"选择",empty:"清空",save:"保存",export:"导出",open:"打开",return:"返回",flowChart:"流程图",close:"关闭",selectPage:"选择页面",search:"查询",adminSave:"管理员保存",tipTitle:"提示",i18nSet:"国际化设置",i18nZh:"中文",i18nEn:"英文",i18nKey:"国际化key",subprocessTitle:"子流程流转历史",custom:"自定义",enable:"启用"},workflowEditorMessage:{requiredAndMustBeADate:"必填且必须为日期",requiredAndMustBeAnInteger:"必填且必须为整数",requiredAndMustBeDecimal:"必填且必须为小数",mustFill:"必填",recordLine:"第{row}行记录",pageRecordLine:"第{pageNum}页第{row}行记录",currentHandlingPersonnel:"当前办理人员",pleaseSelect:"请选择",pleaseSelectARow:"请选中一行",conditionsHaveNotBeenSet:"还未设置条件",viewConditions:"查看条件",fieldSettings:"字段设置",valueSetting:"值设置",pleaseEnterContent:"请输入内容",theFieldNameOrFieldValueInLineCannotBeEmpty:"第{row}行的字段名或者字段值不能为空",fieldNameCannotBeEmpty:"字段名不能为空",fieldValueCannotBeEmpty:"字段值不能为空",pleaseEnterASubject:"请输入主题",selectStandardFields:"选择标准字段",pleaseEnterTheRoleName:"请输入角色名称",queryResultIsEmpty:"查询结果为空",selectRole:"选择角色",enterText:"输入文字",selectField:"选择字段",pleaseSelectPersonnel:"请选择人员",pleaseSelectAValue:"请选择值",pleaseSelectAValueInTheCurrentTab:"请在当前页签中选中一个值",variableNameCannotBeEmpty:"变量名不能为空",variableValueCannotBeEmpty:"变量值不能为空",variableNameOrValueOnLineCannotBeEmpty:"第{row}行的变量名或者变量值不能为空",whenThereAreMultipleManagers:"多个办理人时",duplicateOperationTypeWithLinePleaseReselect:"与第{row}行的操作类型重复了,请重新选择",theOperationTypeOrNameInLineIsEmpty:"第{row}行的操作类型或者名称为空",readOnly:"只读",pleaseEnterFieldName:"请输入字段名",dataInLineCannotBeEmpty:"第{row}行的{data1}或{data2}不能为空",dataCannotBeEmpty:"{data}不能为空",theStartAndEndOfTheFlowDirectionCannotBeTheSame:"流向的起点和终点不能相同",onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows:"只有条件判断、分支以及人工判断才能有多条外出流向",startAndEndNodesCannotBeConnectedDirectly:"开始节点和结束节点不能直接相连",endNodeCannotHaveOutFlowDirection:"结束节点不能有外出流向",itIsTheSameAsTheExistingLink:"与已有环节:{name}的编码重复",updateSuccessful:"更新成功",savedSuccessfully:"保存成功",exportSucceeded:"导出成功",pleaseSelectRole:"请选择角色",subTableMustInputDatas:"[{subTable}] 子表必须录入数据",pleaseEnterTheNameOrCode:"请输入字段名或字段描述",updateVersionSuccessful:"成功更新版本",addVersionSuccessful:"成功增加版本",adminSaveTip:"有以下几种情况时必须增加版本:",adminSaveTip1:"1、修改了流程名称或编码",adminSaveTip2:"2、修改了节点名称或编码",adminSaveTip3:"3、增加了节点或流向",adminSaveTip4:"4、移除了节点或流向",adminSaveTip5:"请选择“增加版本”或“更新当前版本”?",updateVersion:"更新当前版本",addVersion:"增加版本",pleaseInputCode:"请先输入编码,再做国际化配置",blankFieldNameOrValue:"字段名或值有空白",enabledSuccessfully:"启用成功"},workflowEditor:{main:{tacheType:"环节类型",straightLine:"直线",curveLine:"曲线",brokenLine:"折线"},common:{remove:"移除",attribute:"属性",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",name:"字段名",fieldValue:"字段值",separator:"分隔符",fillInMethod:"填写方式",cover:"覆盖",append:"追加",insertToFront:"插入到最前",fillInTime:"填写时间",fillInBeforeHandling:"办理前填写",fillInAfterHandling:"办理后填写",type:"类别(*)",user:"用户",role:"角色",department:"部门",workgroup:"工作组",selectFormField:"选择表单字段",notificationMethod:"通知方式",addressee:"收件人",theme:"主题",content:"内容",notifyPersonnel:"通知人员",selectusers:"选择用户",selectDepartment:"选择部门",selectTeam:"选择工作组",selectRole:"选择角色",organizationStructure:"组织结构",formField:"表单字段",variableName:"变量名",variableValue:"变量值",selectField:"选择字段",taskNotice:"待办通知",reminderNotice:"催办通知",customMsg:"自定义消息内容",canNotBeEmpty:"不能为空",copy:"复制"},process:{processInitiator:"起草人",processInitiatorRole:"起草人角色",processInitiatorDepartment:"起草人部门",processInitiatorSuperiorDepartment:"起草人上级部门",processInitiatorTopDepartment:"起草人顶级部门",processInitiatorWorkingGroup:"起草人工作组",nameOfTheDirectSuperiorOfTheProcessInitiator:"起草人直属上级姓名",processInitiatorsDirectSuperiorDepartment:"起草人直属上级部门",directSuperiorRoleOfProcessInitiator:"起草人直属上级角色",ProcessInitiatorsImmediateSuperiorWorkingGroup:"起草人直属上级工作组",nameOfCurrentHandler:"当前办理人姓名",currentHandlerRole:"当前办理人角色",currentHandlerDepartment:"当前办理人部门",currentHandlerSuperiorDepartment:"当前办理人上级部门",topDepartmentOfCurrentHandler:"当前办理人顶级部门",currentHandlerWorkingGroup:"当前办理人工作组",nameOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级姓名",currentHandlerDirectSuperiorDepartment:"当前办理人直属上级部门",currentManagerDirectSuperiorRole:"当前办理人直属上级角色",workingGroupDirectlyUnderTheCurrentHandler:"当前办理人直属上级工作组",topDepartments:"顶级部门",approvalResults:"审批结果",totalNnumberOfPersonsWhoDisagreeWithTheCountersignature:"会签不同意人员总数",totalNumberOfCountersignedAndAgreedPersonnel:"会签同意人员总数",percentageOfPersonsWhoDisagreeWithTheCountersignature:"会签不同意人员百分比",percentageOfCountersignedAndAgreedPersonnel:"会签同意人员百分比",percentageOfAbstentions:"弃权票百分比",percentageOfVotesAgainst:"反对票百分比",percentageOfAffirmativeVotes:"赞成票百分比",totalNumberOfAbstentions:"弃权票总数",totalVotesAgainst:"反对票总数",totalNumberOfAffirmativeVotes:"赞成票总数",standardFields:"标准字段",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",handlingTimeOfThisLink:"本环节办理时间",handlerIDOfThisLink:"本环节办理人id",currentHandlerPrincipalDepartmentID:"当前办理人正职部门id",iDOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级id",iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler:"当前办理人直属上级正职部门id",loginNameOfTheHandlerInThisLink:"本环节办理人登录名",NameOfCurrentHandler:"当前办理人姓名",CurrentHandlerDepartment:"当前办理人部门",CurrentHandlerDepartmentID:"当前办理人部门id",CurrentManagersPrincipalDepartment:"当前办理人正职部门",iDOfSsuperiorDepartmentOfCurrentHandler:"当前办理人上级部门id",CurrentHandlersSuperiorDepartment:"当前办理人上级部门",TopDepartmentOfCurrentHandler:"当前办理人顶级部门",TopDepartmentIDOfCurrentHandler:"当前办理人顶级部门id",CurrentHandlerRole:"当前办理人角色",CurrentHandlerRoleID:"当前办理人角色id",CurrentHandlerWorkingGroupID:"当前办理人工作组id",LoginNameOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级登录名",currentHandlersDirectSuperiorDepartment:"当前办理人直属上级部门",currentManagersDirectSuperiorDepartment:"当前办理人直属上级正职部门",currentManagersDirectSuperiorRole:"当前办理人直属上级角色",currentHandlersDirectSuperiorRoleID:"当前办理人直属上级角色id",currentManagersDirectSuperiorWork:"当前办理人直属上级工作",iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler:"当前办理人直属上级工作组id",operationsPerformedInThisPhase:"本环节执行的操作",handlerIDOfThePreviousLink:"上一环节办理人id",lastLinkHandlerLogin:"上一环节办理人登录名",nameOfHandlerInThePreviousLink:"上一环节办理人姓名",currentManagersIdDirectlyUnderTheSuperior:"当前办理人直属上级部门id",appointmentOfHandlerInThePreviousLink:"上一环节办理人指定",personSpecifiedInFormField:"表单字段中指定的人员",filterByCriteria:"按条件筛选",additionalConditions:"附加条件",handlingYyThePersonnelOfTheDepartmentOfTheInitiator:"起草人所在部门人员办理",personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling:"起草人所在部门人员参与办理",selectSpecificHandler:"选择具体办理人",selectOneFromDept:"同一部门仅需一人办理",generateOneInstanceFromDept:"同一部门生成一个实例",selectionMethod:"选择方式",manualSelection:"人工选择",autoSelect:"自动选择",callbackURL:"回调URL",cannotBeEmpty:"不能为空",selectURL:"选人URL",fieldName:"字段名称",processAdministrator:"流程管理员",currentHandler:"当前办理人",allHandlingPersonnel:"所有办理人员",designatedPersonnel:"指定人员",listOfDesignatedPersons:"指定人员列表",processName:"流程名称",processCode:"流程编码",creater:"创建人",correspondingForm:"对应表单",processType:"流程类型",system:"所属系统",affiliatedBranch:"所属分支机构",customCategory:"自定义类别",initiationProcess:"发起流程",deleteProcess:"删除流程",cancelProcess:"取消流程",endProcess:"结束流程",pauseProcess:"暂停流程",continueTheProcess:"继续流程",jumpLink:"跳转环节",modificationHandler:"修改办理人",addHandler:"增加办理人",decreaseOofHandler:"减少办理人",appointedTask:"指派任务",returnTask:"退回任务",retrieveTask:"取回任务",processTaskParameterSettings:"办理任务参数设置",uRLForProcessingTask:"办理任务的url",parametersForReceivingTaskID:"接收任务id的参数",viewFormParameterSettings:"查看表单参数设置",viewTheURLOfTheForm:"查看表单的url",parametersOfReceivingEntityID:"接收实体id的参数",emergencyTreatmentParameterSetting:"应急处理参数设置",uRLOfEmergencyHandling:"应急处理的url",initiateProcessParameterSettings:"发起流程参数设置",uRLOfTheInitiatingProcess:"发起流程的url",parametersForReceivingProcessName:"接收流程名称的参数",customParameterValue:"自定义参数值",ViewFlowHistoryPersonnel:"查看流转历史人员",ViewCountersignatureResultPersonnel:"查看会签结果人员",ViewVotingResultsBy:"查看投票结果人员",name:"名称",code:"编码",subprocess:"子流程",transferValueFromMainFormToSubForm:"主表单给子表单传值",fieldsOfTheMainForm:"主表单的字段",fieldsOfSubform:"子表单的字段",subformReturnsResultsToMainForm:"子表单返回结果给主表单",eventsTriggeredBeforeStartingASubprocess:"启动子流程前事件",triggerSubprocessEndEvent:"触发子流程结束事件",setTheHandlerOfTheFirstPhaseOfTheSubProcess:"设置子流程第一环节办理人",keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly:"目标环节重复办理时保持办理人不变",branchingCondition:"分支条件",processProperties:"流程属性",basicProperties:"基本属性",permissionSettings:"权限设置",notificationSettings:"通知设置",sendNotificationAfterProcessEnds:"流程结束后发送通知",reminderSettings:"通知与催办",parameterSsetting:"参数设置",event:"事件",processVariables:"流程变量",propertiesOfSubprocesses:"子流程的属性",settingOfHandler:"办理人设置",eventProcessing:"事件处理",sponsorsImmediateSuperior:"起草人直属上级",sponsorsSuperiorDepartment:"起草人上级部门",sponsorTopDepartment:"起草人顶级部门",superiorDepartmentDirectlyUnderTheInitiator:"起草人直属上级部门",sponsorsImmediateSuperiorWorkingGroup:"起草人直属上级工作组",lastLinkHandlerDepartment:"上一环节办理人部门",previousLinkHandlerSuperiorDepartment:"上一环节办理人上级部门",topDepartmentOfHandlerInThePreviousLink:"上一环节办理人顶级部门",previousLinkHandlersDirectSuperiorDepartment:"上一环节办理人直属上级部门",previousLinkHandlerWorkingGroup:"上一环节办理人工作组",workingGroupDirectlyUnderTheManagerInThePreviousLink:"上一环节办理人直属上级工作组",getSubprocessEntityBean:"获得子流程实体bean",getSubprocessEntityBeanPlaceholder:"格式为:xxxServiceImpl,例如:exampleServiceImpl",getSubprocessEntityBeanInfo:"该bean需要实现接口tech.imatrix.wf.core.OnStartingSubProcess",isNull:"等于Null",isNotNull:"不等于Null",defaultMailTemplate:"默认邮件模板",defaultCommonTemplate:"默认通知模板",trustTask:"委托任务",subprocessIsSharedForm:"主子流程共用表单",generateForParttimeDept:"为兼职部门人员生成任务",deptSpecifiedInFormField:"表单字段中指定的部门",activateOneVoteVeto:"一票否决",systemVersion:"系统版本",tableCode:"对应数据表",deptApprover:"起草人部门授权审批人",superiorDeptApprover:"起草人上级部门授权审批人",superiorDeptLeader:"起草人上级部门负责人"},task:{newCc:"新抄送",judge:"判断",end:"结束",branch:"分支",manualJudgment:"人工判断",newTask:"新任务",converge:"汇聚",newProcess:"新流程",start:"开始",subprocess:"子流程",needToBeUrged:"需要催办",urgingMethod:"催办方式",timeLimitForHandling:"办理时限",day:"天",urgingInterval:"催办间隔",hour:"小时",alwaysUrging:"一直催办",limitedUrging:"限次催办",timesOfUrging:"催办次数",includingHandoverPersonnel:"包含移交人员",handoverPersonnel:"移交人员",includeNotifyPeople:"包含通知人员",name:"名称",code:"编码",taskTitle:"任务标题",emailNotification:"邮件通知",handlingPage:"办理页面",remarks:"备注",allowViews:"允许查看意见",allowToViewCountersignatureResults:"允许查看会签结果",allowToViewVotingResults:"允许查看投票结果",allowToViewFlowHistory:"允许查看流转历史",allowFormsToPrint:"允许打印表单",attachmentAuthority:"附件权限",downloadAttachment:"下载附件",bodyPermission:"正文权限(暂不开放)",additionalConditions:"附加条件",setConditions:"设置条件",HandlingMethod:"办理方式",editorial:"编辑式",approvalType:"审批式",countersign:"会签式",voting:"投票式",anyOneCanHandleIt:"任意一人办理即可",forAll:"所有人均需办理",passRate:"通过率",modifyOperationName:"修改操作名称",operationType:"操作类型",visibleOrNot:"是否可见",save:"保存",submission:"提交",agree:"同意",disagree:"不同意",favor:"赞成",opposition:"反对",waiver:"弃权",receive:"领取",giveUp:"放弃",additionalSignature:"加签",reductionOfSignature:"减签",assignTask:"指派",copyTask:"抄送",retrieveTask:"取回",exportReport:"导出报告",readTask:"阅",selectEditableField:"选择可编辑字段",optionalField:"可选字段",selectedFields:"已选字段",editingMethod:"编辑方式",propertyName:"属性名",condition:"条件",nothing:"无",beforeSubmission:"提交前",executionURL:"执行url",errorMessage:"出错信息",afterSubmission:"提交后",allowEditingForms:"允许编辑表单",commentsAllowed:"允许填写意见",commentsAreRequired:"必须填写意见",deletePermission:"删除权限",addAttachment:"添加附件",deleteAttachment:"删除附件",propertiesOfCCTask:"抄送任务的属性",basicProperties:"基本属性",settingOfHandler:"办理人设置",permissionSettings:"权限设置",attributeOfConditionJudgment:"条件判断的属性",allBranchFlows:"所有分支流向",targetLink:"目标环节",propertiesOfBranches:"分支的属性",attributesOfManualJudgment:"人工判断的属性",linkAttribute:"环节属性",autoFillInFieldSettings:"自动填写字段设置",reminderSettings:"通知与催办",eventProcessing:"事件处理",linkVariable:"环节变量",convergedProperties:"汇聚的属性",humanTask:"人工任务",conditionJudgment:"条件判断",cCtask:"抄送任务",canItBeRejected:"是否可驳回",selectNoticeTemplate:"选择通知模板",selectMailTemplate:"选择邮件模板",selectTemplate:"选择模板",autoTask:"自动任务",newAutoTask:"新自动任务",propertiesOfAutoTask:"自动任务的属性",custombeanName:"自定义bean",baseField:"基础字段",reminderTipTemplateMsg:"模板说明:",reminderTipRemindMsg:"催办说明:",reminderTipTemplateNotice:"通知模板:钉钉、企微、飞书、自定义都使用通知模板。邮件方式时,如果没有选“邮件模板”,则使用通知模板",reminderTipTemplateEmail:"邮件模板:邮件方式特制模板",reminderTipRemindImmediately:"催办方式、通知模板、邮件模板、催办次数、通知方式、通知人员、移交人员 修改后立即生效",reminderTipRemindHistory:"办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整"},transition:{flowProperties:"流向属性",basicProperties:"基本属性",notificationSettings:"通知设置",sendNotificationAfterFlow:"流过后发送通知",autoFillInFieldSettings:"自动填写字段设置",eventProcessing:"事件处理",triggerFlowThroughEvent:"触发流过事件",beanName:"bean名称"},condition:{combinationCondition:"组合条件",currentUserId:"当前用户ID",currentUserLogin:"当前用户登录名",currentUserName:"当前用户姓名",fillInManually:"手动填写",environmentVariable:"环境变量",databaseFields:"数据库字段",requestParameters:"请求参数",currentTime:"当前时间",currentDate:"当前日期",currentTransactor:"当前用户登录名",currentTransactorName:"当前用户姓名",currentTransactorId:"当前用户id",currentTransactorMainDepartmentId:"当前用户部门id",currentTransactorMainDepartment:"当前用户部门名称",currentTransactorRoleId:"当前用户角色id",currentTransactorRole:"当前用户角色名称",currentTransactorWorkGroupId:"当前用户工作组id",currentTransactorWorkGroup:"当前用户工作组名称",whenTheVariableIsEmpty:"变量为空时",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",currentHandler:"当前办理人",currentTaskClient:"当前任务委托人",currentAssignor:"当前指派人",rowsCanBeAdded:"可添加行",deleteLine:"可删除行",modifiableHistoricalData:"可修改历史数据",controlByField:"按字段控制",allReadOnly:"全部只读",allRequired:"全部必填",mainTableField:"主表字段",linkName:"环节名称",linkCode:"环节编码",taskFields:"任务字段",systemParameter:"系统参数",personnelScope:"人员范围",mainTableConditions:"主表条件",subtableCondition:"子表条件",accessControl:"进行权限控制",formBindingModel:"表单绑定model",allFields:"全部字段",tableDataNotEmpty:"表格数据不为空"}}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});function newAutoTask(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.newAutoTask")},g:{},taskNotice:{},basicProperties:{beanName:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},events:{},permissionSettings:{editForm:{permission:!1,field:[]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}}}}function newCopyTask(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.newCc")},g:{},taskNotice:{},basicProperties:{taskTitle:"",remark:"",taskUrl:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},events:{},permissionSettings:{editForm:{permission:!1,field:[]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}}}}function newDecision(){return{attr:{id:"t3",name:i18n.global.t("workflowEditor.task.judge")},g:{}}}function newEnd(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.end")},g:{}}}function newFork(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.branch")},g:{}}}function newHumanDecision(){return{attr:{name:i18n.global.t("workflowEditor.task.manualJudgment")},g:{}}}function newHumanTask(){return{attr:{id:"newHumanTask",name:i18n.global.t("workflowEditor.task.newTask")},g:{},basicProperties:{processingMode:{type:"EDIT",passRate:0,moreTransactor:!1,actions:{action:[]}},taskCode:"",taskTitle:"",remark:"",mailNotice:!1,taskUrl:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},permissionSettings:{editForm:{permission:!1,field:[],subTablePermission:[{tableName:"sub_table1",permission:!1,modelName:"model",action:[{name:"notEmpty",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"add",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"update",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"delete",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}],field:[{name:"all_fields",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"xxx",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}]},{tableName:"sub_table2",permission:!1,modelName:"model",action:[{name:"notEmpty",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"add",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"update",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"delete",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}],field:[{name:"all_fields",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"xxx",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}]}]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}},autoFilledFields:{field:[]},reminder:null,events:{afterComplete:!1},variables:{variable:[]}}}function newJoin(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.converge")},g:{}}}function newProcess(){const e=newHumanTask();return e.g={x:200,y:150,width:80,height:40},{attr:{name:i18n.global.t("workflowEditor.task.newProcess"),code:""},properties:{basicProperties:{admin:"",formVersion:1,formCode:"",processTypeCode:"",systemCode:"",creator:"",customType:"",branchCode:""},permissionSettings:{viewFlowHistory:"",viewSubscribeResult:"",viewVoteResult:""},reminder:null,parameterSettings:{doTask:{url:"",parameterName:""},viewForm:{url:"",parameterName:""},startProcess:{url:"",parameterName:"",parameterValue:""},handleEmergency:{url:"",parameterName:""}},events:{event:[]},variables:{variable:[]}},start:{attr:{id:"start"},g:{x:50,y:50,width:48,height:48}},humanTask:e,end:{attr:{id:"end"},g:{x:500,y:300,width:48,height:48}}}}function newStart(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.start")},g:{}}}function newSubprocess(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.subprocess"),taskTitle:""},g:{},processCode:"",processVersion:"",events:{beforeStart:"",end:!1},transactorSettings:{userCondition:"",additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},parameters:{field:[]},result:{field:[]}}}function newTransition(){return{attr:{id:"",from:"",to:""},g:{},basicProperties:{remark:"",isOriginalUser:!1,condition:""},inform:{informType:"mail",userCondition:"",subject:"",content:""},autoFilledFields:{field:[]},onTransit:!1}}function getStore$1(){return window.$store}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getComponentList(){return[{name:"Start",label:getI18n().t("workflowEditor.task.start"),icon:"start",type:"primary",class:"",round:!0,width:48,height:48,color:"#67C23A"},{name:"HumanTask",label:getI18n().t("workflowEditor.task.humanTask"),icon:"human-task",type:"",class:"",round:!0,width:80,height:40,color:"#000"},{name:"Decision",label:getI18n().t("workflowEditor.task.conditionJudgment"),icon:"decision",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"Fork",label:getI18n().t("workflowEditor.task.branch"),icon:"fork",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"Join",label:getI18n().t("workflowEditor.task.converge"),icon:"join",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"Subprocess",label:getI18n().t("workflowEditor.task.subprocess"),icon:"subprocess",type:"warning",class:"",round:!0,width:80,height:40,color:"#0777D4"},{name:"HumanDecision",label:getI18n().t("workflowEditor.task.manualJudgment"),icon:"human-decision",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"CopyTask",label:getI18n().t("workflowEditor.task.cCtask"),icon:"copy-task",type:"",class:"",round:!0,width:80,height:40,color:"#0777D4"},{name:"AutoTask",label:getI18n().t("workflowEditor.task.autoTask"),icon:"human-task",type:"",class:"",round:!0,width:80,height:40,color:"#0777D4"},{name:"End",label:getI18n().t("workflowEditor.task.end"),icon:"end",type:"danger",class:"workflow-end-button",round:!0,width:48,height:48,color:"#F56C6C"}]}function getComponentInfo(e){const t=getComponentList().filter(o=>o.name===e);return t.length>0?t[0]:null}function getParent(e){return getStore$1().getters["wfEditor/taches"].filter(r=>r.id===e)[0]}function getJoint(e,t){switch(typeof e=="string"&&(e=getParent(e)),t){case"up":case"top":return{position:"up",x:e.x+e.width/2,y:e.y};case"right":return{position:"right",x:e.x+e.width,y:e.y+e.height/2};case"down":case"bottom":return{position:"down",x:e.x+e.width/2,y:e.y+e.height};case"left":return{position:"left",x:e.x,y:e.y+e.height/2};default:return{position:"",x:e.x,y:e.y}}}function getMousePosition(e){const t=document.getElementById("svg").getScreenCTM();return{x:(e.clientX-t.e)/t.a,y:(e.clientY-t.f)/t.d}}function getVirtualRegion(e,t){if(!e||!t)return{};const{x:o,y:r}=e,{x:n,y:i}=t;var s={x:0,y:0,width:Math.abs(n-o),height:Math.abs(i-r)};return o<=n?r<=i?(s.x=o,s.y=r):(s.x=o,s.y=i):r>=i?(s.x=n,s.y=i):(s.x=n,s.y=r),s}function getRealRegion(e){let t,o;t=o=1e4;let r,n;r=n=0;for(const i of e)t>i.x&&(t=i.x),o>i.y&&(o=i.y),r<i.x+i.width&&(r=i.x+i.width),n<i.y+i.height&&(n=i.y+i.height);return{x:t-10,y:o-10,width:r-t+20,height:n-o+20}}function startDragTache(e,t){clearAllSelectedComponents(),t.$parent.region=null,t.$parent.showHistory||(t.model.isSelected=!0),getStore$1().getters["wfEditor/selectedTaches"].push(t.model);const o=getMousePosition(e);getStore$1().commit("wfEditor/setMouseDownPosition",o),getStore$1().commit("wfEditor/setMovingTache",!0)}function endDragTache(){getStore$1().commit("wfEditor/setMovingTache",!1),getStore$1().commit("wfEditor/setMouseDownPosition",null)}function unselectTaches(){for(const e of getStore$1().getters["wfEditor/selectedTaches"])e.isSelected=!1;getStore$1().commit("wfEditor/setSelectedTaches",[])}function clearAllSelectedComponents(){unselectTaches(),getStore$1().getters["wfEditor/selectedTransition"]&&(getStore$1().getters["wfEditor/selectedTransition"].isSelected=!1),getStore$1().commit("wfEditor/setSelectedTransition",null)}function removeTextProperty(e){Object.getOwnPropertyNames(e).forEach(function(o){if(typeof e[o]=="object")if(e[o]._text!==void 0){e[o]=e[o]._text;return}else Object.keys(e[o]).length>0?removeTextProperty(e[o]):["variables","events","autoFilledFields"].indexOf(o)<0&&(e[o]="")})}function generateTaches(e,t){t||(t=[]),Array.isArray(t)||(t=[t]);const o=getStore$1().getters["wfEditor/taches"];for(const r of t){const n={id:r.attr.id,name:r.attr.name,x:r.g.x,y:r.g.y,width:r.g.width,height:r.g.height,type:e,isSelected:!1,ref:r};o.push(n)}}function generateTransitions(e,t){t||(t=[]),Array.isArray(t)||(t=[t]);const o=getStore$1().getters["wfEditor/transitions"];for(const r of t){const n=r.basicProperties.remark||"",i={id:r.attr.id,startJoint:{parent:findTacheById(r.attr.from),position:r.g.fromJoint},endJoint:{parent:findTacheById(r.attr.to),position:r.g.toJoint},isSelected:!1,remark:n,lineInfo:{type:r.g.lineType,controlPoint:null},ref:r};if(r.g.lineType==="CurveLine"&&r.g.coordinate){const s=r.g.coordinate.split(",");i.lineInfo.controlPoint={x:s[0],y:s[1]}}else if(r.g.lineType==="BrokenLine"&&r.g.coordinate){const s=r.g.coordinate.split(";"),l=[];s.forEach(a=>{if(a!==""){const d=a.split(",");l.push({x:d[0],y:d[1]})}}),i.lineInfo.controlPoint=l}o.push(i)}}function initializeProcessData(e){e&&(generateTaches("HumanTask",e.humanTask),generateTaches("Decision",e.decision),generateTaches("Fork",e.fork),generateTaches("Join",e.join),generateTaches("Subprocess",e.subprocess),generateTaches("HumanDecision",e.humanDecision),generateTaches("CopyTask",e.copyTask),generateTaches("AutoTask",e.autoTask),generateTaches("Start",e.start),generateTaches("End",e.end),generateTransitions("Transition",e.transition))}function findOutgoingTransitionsByTacheId(e){return getStore$1().getters["wfEditor/transitions"].filter(r=>r.startJoint.parent.id===e||r.ref.attr.from===e)}function findIncomingTransitionsByTacheId(e){return getStore$1().getters["wfEditor/transitions"].filter(r=>r.endJoint.parent.id===e||r.ref.attr.to===e)}function findTacheById(e){const o=getStore$1().getters["wfEditor/taches"].filter(r=>r.ref.attr.id===e);return o.length>0?o[0]:null}function deepCopy(e){return JSON.parse(JSON.stringify(e))}function updateTransitionsWhenTacheIdChanged(e,t){return findIncomingTransitionsByTacheId(t).map(n=>{n.ref.attr.to=e,n.ref.attr.id="flow_"+n.ref.attr.from+"_to_"+n.ref.attr.to,n.id=n.ref.attr.id}),findOutgoingTransitionsByTacheId(t).map(n=>{n.ref.attr.from=e,n.ref.attr.id="flow_"+n.ref.attr.from+"_to_"+n.ref.attr.to,n.id=n.ref.attr.id}),!0}function validateTacheCode(e){const t=findTacheById(e.formModel.id);if(t&&t.id!==e.id){e.$alert(getI18n().t("workflowEditorMessage.itIsTheSameAsTheExistingLink",{name:t.name})),e.formModel.id=e.id;return}updateTransitionsWhenTacheIdChanged(e.formModel.id,e.id),e.$emit("update:id",e.formModel.id)}function watchShowName(e,t){let o="";if(e.processI18n&&e.model.ref&&e.model.ref.basicProperties&&e.model.ref.basicProperties.i18nKey){const r=e.model.ref.basicProperties.i18nKey,n=getLanguageWithLocale();e.processI18n[r]&&(o=e.processI18n[r][n]),o||(o=t)}else o=t;return o}const processTemplate={newProcess,newHumanTask,newDecision,newStart,newEnd,newTransition,newSubprocess,newFork,newJoin,newHumanDecision,newCopyTask,newAutoTask},iconSvg_vue_vue_type_style_index_0_lang="",_export_sfc$1=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o},_sfc_main$1D={name:"IconSvg",props:{icon:{type:String,required:!0}},computed:{iconName(){return`#icon-${this.icon}`}}},_hoisted_1$_={class:"svg-icon","aria-hidden":"true"},_hoisted_2$C=["xlink:href"];function _sfc_render$1u(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1$_,[Vue.createElementVNode("use",{"xlink:href":i.iconName},null,8,_hoisted_2$C)])}const IconSvg=_export_sfc$1(_sfc_main$1D,[["render",_sfc_render$1u]]),toolbox_vue_vue_type_style_index_0_scoped_0d941719_lang="",_sfc_main$1C={name:"Toolbox",components:{IconSvg},data(){return{componentList:getComponentList()}},computed:{...mapGetters("wfEditor",["componentToDraw"])},methods:{...mapMutations("wfEditor",["setComponentToDraw"]),select(e){this.setComponentToDraw(e)}}},_hoisted_1$Z={style:{height:"calc(100vh - 98px)","background-color":"#FFFFFF"}};function _sfc_render$1t(e,t,o,r,n,i){const s=Vue.resolveComponent("icon-svg"),l=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$Z,[Vue.createElementVNode("h3",null,Vue.toDisplayString(e.$t("workflowEditor.main.tacheType")),1),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.componentList,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a.name,type:a.type,class:Vue.normalizeClass(a.class),round:a.round,onMousedown:d=>i.select(a.name)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{icon:a.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(a.label),1)]),_:2},1032,["type","class","round","onMousedown"]))),128))])}const Toolbox=_export_sfc$1(_sfc_main$1C,[["render",_sfc_render$1t],["__scopeId","data-v-0d941719"]]),joint_vue_vue_type_style_index_0_lang="",_sfc_main$1B={name:"Joint",props:{parent:{type:Object,default:null},position:{type:String,default:null}},data(){return{isActivated:!1}},computed:{...mapGetters("wfEditor",["transitions","startJoint","endJoint","draggerToMove"]),joint(){return getJoint(this.parent,this.position)},jointContainer(){return{x:this.joint.x-10,y:this.joint.y-10}}},methods:{...mapMutations("wfEditor",["setStartJoint","setEndJoint","stopDrawingLine","setDraggerToMove","setContextMenuVisible"]),isValidTransition(e,t){if(!e)return!1;if(e.parent===t.parent)return this.$alert(this.$t("workflowEditorMessage.theStartAndEndOfTheFlowDirectionCannotBeTheSame")),!1;if(e.parent.type!=="Decision"&&e.parent.type!=="Fork"&&e.parent.type!=="HumanDecision"){let o=0;if(this.draggerToMove&&(o=1),findOutgoingTransitionsByTacheId(e.parent.id).length>o)return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")),!1}return e.parent.type==="Start"&&t.parent.type==="End"?(this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")),!1):e.parent.type==="End"?(this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")),!1):!0},mouseup(){if(console.log("joint mouseup"),this.draggerToMove){const e=this.draggerToMove.position,t={parent:this.parent,position:this.position};if(e==="start"?this.draggerToMove.owner.startJoint=t:this.draggerToMove.owner.endJoint=t,this.isValidTransition(this.draggerToMove.owner.startJoint,this.draggerToMove.owner.endJoint)){const o=this.draggerToMove.owner;o.id="flow_"+o.startJoint.parent.id+"_to_"+o.endJoint.parent.id,o.ref.attr={id:o.id,from:o.startJoint.parent.id,to:o.endJoint.parent.id}}else this.draggerToMove.owner.startJoint=this.draggerToMove.originStartJoint,this.draggerToMove.owner.endJoint=this.draggerToMove.originEndJoint;this.setDraggerToMove(null)}else this.addTransition()},addTransition(){const e={parent:this.parent,position:this.position};if(this.isValidTransition(this.startJoint,e)){this.setEndJoint(e);const t={id:"flow_"+this.startJoint.parent.id+"_to_"+this.endJoint.parent.id,startJoint:this.startJoint,endJoint:this.endJoint,isSelected:!1,lineInfo:{type:"StraightLine",controlPoint:null}};t.ref=processTemplate.newTransition(),t.ref.attr={id:t.id,from:this.startJoint.parent.id,to:this.endJoint.parent.id},this.transitions.push(t)}this.stopDrawingLine()},enterJoint(){this.isActivated=!0,this.$emit("enter-joint")},leaveJoint(){this.isActivated=!1,this.$emit("leave-joint")}}},_hoisted_1$Y=["x","y"],_hoisted_2$B=["cx","cy"];function _sfc_render$1s(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[4]||(t[4]=Vue.withModifiers(()=>{},["stop"]))},[Vue.createElementVNode("rect",{x:i.jointContainer.x,y:i.jointContainer.y,class:Vue.normalizeClass({"joint-container":!0,"joint-activated":n.isActivated}),width:"20",height:"20",rx:"3",ry:"3",onMousemove:t[0]||(t[0]=Vue.withModifiers((...s)=>i.enterJoint&&i.enterJoint(...s),["stop"])),onMouseout:t[1]||(t[1]=Vue.withModifiers((...s)=>i.leaveJoint&&i.leaveJoint(...s),["stop"])),onMousedown:t[2]||(t[2]=Vue.withModifiers(s=>{e.setContextMenuVisible(!1),e.setStartJoint({parent:o.parent,position:o.position})},["stop"])),onMouseup:t[3]||(t[3]=(...s)=>i.mouseup&&i.mouseup(...s))},null,42,_hoisted_1$Y),Vue.withDirectives(Vue.createElementVNode("circle",{cx:i.joint.x,cy:i.joint.y,r:"3",class:"joint"},null,8,_hoisted_2$B),[[Vue.vShow,!n.isActivated]])],32)}const Joint=_export_sfc$1(_sfc_main$1B,[["render",_sfc_render$1s]]),tacheMethods={startDrag(e){console.log(this.model.name+" mousedown"),this.setContextMenuVisible(!1),startDragTache(e,this)},endDrag(){console.log(this.model.name+" mouseup"),endDragTache()},showJoints(){this.$parent.showHistory||(this.jointPoints=["up","right","down","left"])},hideJoints(){this.jointPoints=[]}},start_vue_vue_type_style_index_0_lang="",_sfc_main$1A={name:"Start",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$X=["width","height","x","y"],_hoisted_2$A=["x","y","width","height"];function _sfc_render$1r(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor(""),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,start:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$X),Vue.createElementVNode("use",{"xlink:href":"#icon-start",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#67C23A",class:"draggable"},null,8,_hoisted_2$A),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Start=_export_sfc$1(_sfc_main$1A,[["render",_sfc_render$1r]]),end_vue_vue_type_style_index_0_lang="",_sfc_main$1z={name:"End",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$W=["width","height","x","y"],_hoisted_2$z=["x","y","width","height"];function _sfc_render$1q(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor(""),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,end:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$W),Vue.createElementVNode("use",{"xlink:href":"#icon-end",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#F56C6C",class:"draggable"},null,8,_hoisted_2$z),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const End=_export_sfc$1(_sfc_main$1z,[["render",_sfc_render$1q]]),tacheResizer_vue_vue_type_style_index_0_lang="",_sfc_main$1y={name:"TacheResizer",props:{owner:{type:Object,default:null},position:{type:String,default:""}},computed:{...mapGetters("wfEditor",["selectedTaches"]),area(){let o,r;switch(this.position){case"NW":o=this.owner.x,r=this.owner.y;break;case"NE":o=this.owner.x+this.owner.width,r=this.owner.y;break;case"SW":o=this.owner.x,r=this.owner.y+this.owner.height;break;case"SE":o=this.owner.x+this.owner.width,r=this.owner.y+this.owner.height;break}o=o-8/2,r=r-8/2;const n=this.position.toLowerCase()+"-resize";return{x:o,y:r,width:8,height:8,cursor:n}}},methods:{...mapMutations("wfEditor",["setMovingResizer","setResizerToMove","setContextMenuVisible"])}},_hoisted_1$V=["x","y","width","height"];function _sfc_render$1p(e,t,o,r,n,i){return o.owner.isSelected&&e.selectedTaches.length==1?(Vue.openBlock(),Vue.createElementBlock("rect",{key:0,x:i.area.x,y:i.area.y,width:i.area.width,height:i.area.height,style:Vue.normalizeStyle({cursor:i.area.cursor}),class:"resizer",onMousedown:t[0]||(t[0]=Vue.withModifiers(s=>{e.setContextMenuVisible(!1),e.setResizerToMove({owner:o.owner,position:o.position})},["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers(s=>e.setResizerToMove(null),["stop"]))},null,44,_hoisted_1$V)):Vue.createCommentVNode("",!0)}const TacheResizer=_export_sfc$1(_sfc_main$1y,[["render",_sfc_render$1p]]),_sfc_main$1x={name:"HumanTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$U=["width","height","x","y"],_hoisted_2$y=["x","y"];function _sfc_render$1o(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("HumanTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass(["draggable","task-tache",{selected:o.model.isSelected}]),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$U),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$y),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const HumanTask=_export_sfc$1(_sfc_main$1x,[["render",_sfc_render$1o]]),decision_vue_vue_type_style_index_0_lang="",_sfc_main$1w={name:"Decision",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$T=["width","height","x","y"],_hoisted_2$x=["x","y","width","height"],_hoisted_3$f=["x","y"];function _sfc_render$1n(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("Decision"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$T),Vue.createElementVNode("use",{"xlink:href":"#icon-decision",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$x),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$f),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Decision=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$1n]]),_sfc_main$1v={name:"Subprocess",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$S=["width","height","x","y"],_hoisted_2$w=["x","y"];function _sfc_render$1m(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("Subprocess"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$S),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$w),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const Subprocess=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$1m]]),_sfc_main$1u={name:"CustomTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"]}},computed:{...mapGetters("wfEditor",["selectedTaches"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$R=["width","height","x","y"],_hoisted_2$v=["x","y"];function _sfc_render$1l(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("HumanTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$R),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(o.model.name),9,_hoisted_2$v),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const CustomTask=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$1l]]),fork_vue_vue_type_style_index_0_lang="",_sfc_main$1t={name:"Fork",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$Q=["width","height","x","y"],_hoisted_2$u=["x","y","width","height"],_hoisted_3$e=["x","y"];function _sfc_render$1k(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("Fork"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$Q),Vue.createElementVNode("use",{"xlink:href":"#icon-fork",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$u),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$e),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Fork=_export_sfc$1(_sfc_main$1t,[["render",_sfc_render$1k]]),join_vue_vue_type_style_index_0_lang="",_sfc_main$1s={name:"Join",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$P=["width","height","x","y"],_hoisted_2$t=["x","y","width","height"],_hoisted_3$d=["x","y"];function _sfc_render$1j(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("Join"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$P),Vue.createElementVNode("use",{"xlink:href":"#icon-join",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$t),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(o.model.name),9,_hoisted_3$d),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Join=_export_sfc$1(_sfc_main$1s,[["render",_sfc_render$1j]]),humanDecision_vue_vue_type_style_index_0_lang="",_sfc_main$1r={name:"HumanDecision",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$O=["width","height","x","y"],_hoisted_2$s=["x","y","width","height"],_hoisted_3$c=["x","y"];function _sfc_render$1i(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("HumanDecision"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"human-decision":!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$O),Vue.createElementVNode("use",{"xlink:href":"#icon-human-decision",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$s),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$c),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const HumanDecision=_export_sfc$1(_sfc_main$1r,[["render",_sfc_render$1i]]),_sfc_main$1q={name:"CopyTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$N=["width","height","x","y"],_hoisted_2$r=["x","y"];function _sfc_render$1h(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("CopyTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$N),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$r),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const CopyTask=_export_sfc$1(_sfc_main$1q,[["render",_sfc_render$1h]]),_sfc_main$1p={name:"AutoTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$M=["width","height","x","y"],_hoisted_2$q=["x","y"];function _sfc_render$1g(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("AutoTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$M),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$q),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const AutoTask=_export_sfc$1(_sfc_main$1p,[["render",_sfc_render$1g]]),_sfc_main$1o={name:"StraightLine",props:{owner:{type:Object,default:null}},computed:{path(){const e=getJoint(this.owner.startJoint.parent,this.owner.startJoint.position),t=getJoint(this.owner.endJoint.parent,this.owner.endJoint.position);return"M"+e.x+" "+e.y+" L"+t.x+" "+t.y}}},_hoisted_1$L=["d"];function _sfc_render$1f(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("path",{d:i.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$L)}const StraightLine=_export_sfc$1(_sfc_main$1o,[["render",_sfc_render$1f]]),curveLine_vue_vue_type_style_index_0_scoped_0ff53a0a_lang="",_sfc_main$1n={name:"CurveLine",props:{owner:{type:Object,default:null}},computed:{startPoint(){return getJoint(this.owner.startJoint.parent,this.owner.startJoint.position)},endPoint(){return getJoint(this.owner.endJoint.parent,this.owner.endJoint.position)},controlPoint(){return this.owner.lineInfo.controlPoint},path(){return"M "+this.startPoint.x+" "+this.startPoint.y+" Q "+this.controlPoint.x+" "+this.controlPoint.y+" "+this.endPoint.x+" "+this.endPoint.y},pathToStartPoint(){return"M "+this.controlPoint.x+" "+this.controlPoint.y+"L "+this.startPoint.x+" "+this.startPoint.y},pathToEndPoint(){return"M "+this.controlPoint.x+" "+this.controlPoint.y+"L "+this.endPoint.x+" "+this.endPoint.y}},created:function(){if(!this.owner.lineInfo.controlPoint){let e=this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2;(e+10<this.startPoint.x||e<this.startPoint.x+10)&&(e=this.startPoint.x+30),this.owner.lineInfo.controlPoint={x:e,y:this.endPoint.y}}},methods:{...mapMutations("wfEditor",["setControlPointToMove"]),startDrag(e){this.setControlPointToMove({owner:this.owner})},endDrag(){this.setControlPointToMove(null)}}},_hoisted_1$K=["d"],_hoisted_2$p=["d"],_hoisted_3$b=["d"],_hoisted_4$7=["cx","cy"];function _sfc_render$1e(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.createElementVNode("path",{d:i.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$K),o.owner.isSelected?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createElementVNode("path",{d:i.pathToStartPoint,class:"control-line"},null,8,_hoisted_2$p),Vue.createElementVNode("path",{d:i.pathToEndPoint,class:"control-line"},null,8,_hoisted_3$b),Vue.createElementVNode("circle",{cx:i.controlPoint.x,cy:i.controlPoint.y,r:"3",class:"control-point",onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>i.startDrag&&i.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers((...s)=>i.endDrag&&i.endDrag(...s),["stop"]))},null,40,_hoisted_4$7)],64)):Vue.createCommentVNode("",!0)])}const CurveLine=_export_sfc$1(_sfc_main$1n,[["render",_sfc_render$1e],["__scopeId","data-v-0ff53a0a"]]),brokenLine_vue_vue_type_style_index_0_scoped_788fb0ae_lang="",_sfc_main$1m={name:"BrokenLine",props:{owner:{type:Object,default:null}},computed:{startPoint(){return getJoint(this.owner.startJoint.parent,this.owner.startJoint.position)},endPoint(){return getJoint(this.owner.endJoint.parent,this.owner.endJoint.position)},controlPoint(){return this.owner.lineInfo.controlPoint},path(){let e="M "+this.startPoint.x+" "+this.startPoint.y+" ";return this.controlPoint&&this.controlPoint.forEach(t=>{e+="L "+t.x+" "+t.y}),e+="L "+this.endPoint.x+" "+this.endPoint.y,e}},created:function(){if(console.log("this.owner.lineInfo=",this.owner.lineInfo),!this.owner.lineInfo.controlPoint){const e=this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,t=this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2;this.owner.lineInfo.controlPoint=[{x:e,y:t}]}},methods:{...mapMutations("wfEditor",["setControlPointToMove"]),startDrag(e,t){console.log("brokenLine--startDrag-----"),this.setControlPointToMove({owner:this.owner,pointIndex:e})},endDrag(){this.setControlPointToMove(null)}}},_hoisted_1$J=["d"],_hoisted_2$o=["cx","cy","onMousedown"];function _sfc_render$1d(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.createElementVNode("path",{d:i.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$J),o.owner.isSelected?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[i.controlPoint?(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:0},Vue.renderList(i.controlPoint,(s,l)=>(Vue.openBlock(),Vue.createElementBlock("circle",{key:s.x+s.y,cx:s.x,cy:s.y,r:"3",class:"control-point",onMousedown:Vue.withModifiers(a=>i.startDrag(l,a),["stop"]),onMouseup:t[0]||(t[0]=Vue.withModifiers((...a)=>i.endDrag&&i.endDrag(...a),["stop"]))},null,40,_hoisted_2$o))),128)):Vue.createCommentVNode("",!0)],64)):Vue.createCommentVNode("",!0)])}const BrokenLine=_export_sfc$1(_sfc_main$1m,[["render",_sfc_render$1d],["__scopeId","data-v-788fb0ae"]]),transition_vue_vue_type_style_index_0_scoped_a1576cad_lang="",_sfc_main$1l={name:"Transition",components:{StraightLine,CurveLine,BrokenLine},props:{model:{type:Object,default:null}},data(){const e=this.getTextPoint();return{text:{x:e.x,y:e.y},name:this.model.remark}},computed:{...mapGetters("wfEditor",["draggerToMove","processI18n"]),draggers(){const e=getJoint(this.model.startJoint.parent,this.model.startJoint.position);e.position="start";const t=getJoint(this.model.endJoint.parent,this.model.endJoint.position);return t.position="end",[e,t]},path(){return"M"+this.draggers[0].x+" "+this.draggers[0].y+" L"+this.draggers[1].x+" "+this.draggers[1].y}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.remark",function(e){if(this.name=watchShowName(this,e),this.name&&this.name!==""){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}}),this.$watch("model.lineInfo.type",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.lineInfo.controlPoint",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.startJoint.parent.x",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.startJoint.parent.y",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.endJoint.parent.x",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.endJoint.parent.y",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y})},methods:{...mapMutations("wfEditor",["setMouseDownPosition","setDraggerToMove","setSelectedTransition","setPropertiesEditorFor"]),getTextPoint(){const e=getJoint(this.model.startJoint.parent,this.model.startJoint.position),t=getJoint(this.model.endJoint.parent,this.model.endJoint.position);let o=e.x<t.x?e.x:t.x,r=e.y<t.y?e.y:t.y,n=o+Math.abs(e.x-t.x)/2,i=r+Math.abs(e.y-t.y)/2;if(this.model.lineInfo.type==="CurveLine"){const s=this.model.lineInfo.controlPoint;s&&(o=e.x<s.x?e.x:parseFloat(s.x),r=e.y<s.y?e.y:parseFloat(s.y),n=o+Math.abs(e.x-s.x)/2+10,i=r+Math.abs(e.y-s.y)/2-10)}else if(this.model.lineInfo.type==="BrokenLine"&&this.model.lineInfo.controlPoint&&this.model.lineInfo.controlPoint.length>0){const s=this.model.lineInfo.controlPoint[0];s&&(o=e.x<s.x?e.x:parseFloat(s.x),r=e.y<s.y?e.y:parseFloat(s.y),n=o+Math.abs(e.x-s.x)/2,i=r+Math.abs(e.y-s.y)/2-10)}return{x:n,y:i}},select(e){clearAllSelectedComponents(),this.model.isSelected=!0,this.setSelectedTransition(this.model)},startDrag(e,t){console.log("start dragging line"),this.setMouseDownPosition(getMousePosition(e)),this.setDraggerToMove({owner:this.model,position:t,originStartJoint:this.model.startJoint,originEndJoint:this.model.endJoint})},endDrag(){},showPropertiesEditor(){this.model.endJoint.parent.type!=="Decision"&&this.setPropertiesEditorFor("Transition")}}},_hoisted_1$I=["x","y"],_hoisted_2$n={key:0},_hoisted_3$a=["cx","cy","onMousedown"];function _sfc_render$1c(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",{class:Vue.normalizeClass({"no-events":e.draggerToMove!=null}),onMousedown:t[1]||(t[1]=Vue.withModifiers((...s)=>i.select&&i.select(...s),["stop"])),onDblclick:t[2]||(t[2]=Vue.withModifiers((...s)=>i.showPropertiesEditor&&i.showPropertiesEditor(...s),["stop"]))},[Vue.createElementVNode("text",{x:n.text.x,y:n.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_1$I),(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.model.lineInfo.type),{owner:o.model,class:Vue.normalizeClass({transition:!0,selected:o.model.isSelected||o.model.startJoint.parent.isSelected&&o.model.endJoint.parent.isSelected})},null,8,["owner","class"])),o.model.isSelected?(Vue.openBlock(),Vue.createElementBlock("g",_hoisted_2$n,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.draggers,s=>(Vue.openBlock(),Vue.createElementBlock("circle",{key:s.position,cx:s.x,cy:s.y,class:"transition-dragger",r:"4",onMousedown:Vue.withModifiers(l=>i.startDrag(l,s.position),["stop"]),onMouseup:t[0]||(t[0]=(...l)=>i.endDrag&&i.endDrag(...l))},null,40,_hoisted_3$a))),128))])):Vue.createCommentVNode("",!0)],34)}const Transition=_export_sfc$1(_sfc_main$1l,[["render",_sfc_render$1c],["__scopeId","data-v-a1576cad"]]),virtualTransition_vue_vue_type_style_index_0_lang="",_sfc_main$1k={name:"VirtualTransition",props:{toPosition:{type:Object,default:null}},computed:{...mapGetters("wfEditor",["startJoint"]),path(){if(!this.startJoint)return null;const e=getJoint(this.startJoint.parent,this.startJoint.position),t=this.toPosition;return"M"+e.x+" "+e.y+" L"+t.x+" "+t.y}},methods:{}},_hoisted_1$H=["d"];function _sfc_render$1b(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.withDirectives(Vue.createElementVNode("path",{d:i.path,class:"virtual-transition","marker-end":"url(#arrow)"},null,8,_hoisted_1$H),[[Vue.vShow,i.path]])])}const VirtualTransition=_export_sfc$1(_sfc_main$1k,[["render",_sfc_render$1b]]),selectionRegion_vue_vue_type_style_index_0_lang="",_sfc_main$1j={name:"SelectionRegion",props:{region:{type:Object,default:null}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setDrawingRegion","setMovingRegion","setMouseDownPosition"]),startDrag(e){console.log("region mousedown");const t=getMousePosition(e);this.setMouseDownPosition(t),this.setMovingRegion(!0)},endDrag(e){console.log("region mouseup"),this.setMovingRegion(!1),this.setMouseDownPosition(null)}}},_hoisted_1$G=["x","y","width","height"];function _sfc_render$1a(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[o.region?(Vue.openBlock(),Vue.createElementBlock("rect",{key:0,x:o.region.x,y:o.region.y,width:o.region.width,height:o.region.height,class:Vue.normalizeClass({draggable:!0,"selection-region":!0,dashed:e.selectedTaches.length<1}),onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>i.startDrag&&i.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers((...s)=>i.endDrag&&i.endDrag(...s),["stop"]))},null,42,_hoisted_1$G)):Vue.createCommentVNode("",!0)])}const SelectionRegion=_export_sfc$1(_sfc_main$1j,[["render",_sfc_render$1a]]),formFields_vue_vue_type_style_index_0_scoped_98300543_lang="",_sfc_main$1i={name:"FormFields",props:{fields:{type:Array,default:null}},data(){return{selectedField:null,copyShowFields:[],showFields:[],searchFormCode:"",dialogVisible:!0}},computed:{...mapGetters("wfEditor",["formFields"]),allFields(){return this.fields?this.fields:this.formFields}},mounted(){this.copyAllFields=this.allFields,this.showFields=this.allFields},methods:{setField(){this.$emit("close",this.selectedField)},searchForm(){this.searchFormCode&&this.searchFormCode!==""?this.showFields=this.copyAllFields.filter(e=>e.name.indexOf(this.searchFormCode)>-1||e.label.indexOf(this.searchFormCode)>-1):this.showFields=this.copyAllFields}}},_hoisted_1$F={style:{"padding-bottom":"10px"}},_hoisted_2$m={style:{float:"left",width:"70%"}},_hoisted_3$9={class:"item-content"};function _sfc_render$19(e,t,o,r,n,i){const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-radio"),d=Vue.resolveComponent("el-radio-group"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{width:"60%",title:e.$t("workflowEditor.common.selectFormField"),modelValue:n.dialogVisible,"onUpdate:modelValue":t[3]||(t[3]=c=>n.dialogVisible=c),center:"",top:"5vh","append-to-body":"",class:"properties-editor-noTab",onClose:t[4]||(t[4]=c=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"small",onClick:i.setField},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{size:"small",onClick:t[2]||(t[2]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$F,[Vue.createElementVNode("span",_hoisted_2$m,[Vue.createVNode(s,{modelValue:n.searchFormCode,"onUpdate:modelValue":t[0]||(t[0]=c=>n.searchFormCode=c),placeholder:e.$t("workflowEditorMessage.pleaseEnterTheNameOrCode")},null,8,["modelValue","placeholder"])]),Vue.createElementVNode("span",null,[Vue.createVNode(l,{style:{"margin-left":"10px"},type:"primary",onClick:i.searchForm},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.search")),1)]),_:1},8,["onClick"])])]),Vue.createElementVNode("div",_hoisted_3$9,[Vue.createVNode(d,{modelValue:n.selectedField,"onUpdate:modelValue":t[1]||(t[1]=c=>n.selectedField=c),class:"group"},{default:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.showFields,c=>(Vue.openBlock(),Vue.createElementBlock("li",{key:c.name,class:"item"},[Vue.createVNode(a,{label:c.name},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c.label),1)]),_:2},1032,["label"])]))),128))])]),_:1},8,["modelValue"])])]),_:1},8,["title","modelValue"])}const FormFields=_export_sfc$1(_sfc_main$1i,[["render",_sfc_render$19],["__scopeId","data-v-98300543"]]);function getFormFieldLabel(e){const t=getFormField(e);return t?t.label:e}function getFormField(e){const t=window.$store.getters["wfEditor/formFields"];e&&(e.indexOf("${field[")>=0||e.indexOf("${deptField[")>=0)&&(e=e.substring(e.indexOf("[")+1,e.lastIndexOf("]")));const o=t.filter(r=>r.name===e);return o.length>0?o[0]:null}const taskTitle_vue_vue_type_style_index_0_scoped_784515ae_lang="",_sfc_main$1h={name:"TaskTitle",components:{FormFields},props:{modelValue:{type:String,default:null}},data(){const e=[];if(this.modelValue){const t=/\$\{(.+?)\}/g,o=this.modelValue.match(t);for(const r of o)e.push(r)}return{dynamicTags:e,inputVisible:!1,showFormFields:!1,inputValue:"",showLabel:null}},mounted(){},methods:{showText(e){let t=e;if(e.indexOf("${field[")>=0){const o=t.substring(t.indexOf("[")+1,t.lastIndexOf("]"));t=getFormFieldLabel(o),t="["+t+"]"}else if(e.indexOf("${writeTitle[")>=0){const o=e.indexOf("${writeTitle[");t=t.substring(o+13),t=t.substring(0,t.indexOf("]"))}return t},handleClose(e){this.dynamicTags.splice(this.dynamicTags.indexOf(e),1),this.$emit("update:modelValue",this.dynamicTags.join(""))},showInput(){this.inputVisible=!0,this.$nextTick(e=>{this.$refs.saveTagInput.focus()})},handleInputConfirm(){let e=this.inputValue;e&&(this.inputVisible&&(e="${writeTitle["+e+"]}"),this.dynamicTags.push(e),this.$emit("update:modelValue",this.dynamicTags.join(""))),this.inputVisible=!1,this.inputValue=""},getType(e){return e.indexOf("${field")>=0?"success":null},setField(e){e!==void 0&&(this.dynamicTags.push("${field["+e+"]}"),this.$emit("update:modelValue",this.dynamicTags.join(""))),this.showFormFields=!1}}};function _sfc_render$18(e,t,o,r,n,i){const s=Vue.resolveComponent("el-tag"),l=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-button"),d=Vue.resolveComponent("el-button-group"),u=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.dynamicTags,(c,m)=>(Vue.openBlock(),Vue.createBlock(s,{key:m+c,type:i.getType(c),closable:"","disable-transitions":!1,onClose:A=>i.handleClose(c)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(i.showText(c)),1)]),_:2},1032,["type","onClose"]))),128)),n.inputVisible||n.showFormFields?(Vue.openBlock(),Vue.createBlock(l,{key:0,ref:"saveTagInput",modelValue:n.inputValue,"onUpdate:modelValue":t[0]||(t[0]=c=>n.inputValue=c),class:"input-new-tag",size:"small",onKeyup:Vue.withKeys(i.handleInputConfirm,["enter","native"]),onBlur:i.handleInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):Vue.createCommentVNode("",!0),n.inputVisible?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(d,{key:1},{default:Vue.withCtx(()=>[Vue.createVNode(a,{class:"button-new-tag",size:"small",icon:"EditPen",onClick:i.showInput},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.enterText")),1)]),_:1},8,["onClick"]),Vue.createVNode(a,{class:"button-new-tag",size:"small",icon:"Search",onClick:t[1]||(t[1]=c=>n.showFormFields=!0)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.selectField")),1)]),_:1})]),_:1})),n.showFormFields?(Vue.openBlock(),Vue.createBlock(u,{key:2,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])}const TaskTitle=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$18],["__scopeId","data-v-784515ae"]]);/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=(e,t)=>{let o=e.__vccOpts||e;for(let[r,n]of t)o[r]=n;return o},arrow_left_vue_vue_type_script_lang_default={name:"ArrowLeft"},_hoisted_18={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_28=Vue.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_18,_hoisted_38)}var arrow_left_default=export_helper_default(arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render8],["__file","arrow-left.vue"]]),circle_close_filled_vue_vue_type_script_lang_default={name:"CircleCloseFilled"},_hoisted_150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_250=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_349=[_hoisted_250];function _sfc_render50(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_150,_hoisted_349)}var circle_close_filled_default=export_helper_default(circle_close_filled_vue_vue_type_script_lang_default,[["render",_sfc_render50],["__file","circle-close-filled.vue"]]),circle_plus_vue_vue_type_script_lang_default={name:"CirclePlus"},_hoisted_153={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_253=Vue.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_352=Vue.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),_hoisted_417=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_55=[_hoisted_253,_hoisted_352,_hoisted_417];function _sfc_render53(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_153,_hoisted_55)}var circle_plus_default=export_helper_default(circle_plus_vue_vue_type_script_lang_default,[["render",_sfc_render53],["__file","circle-plus.vue"]]),close_vue_vue_type_script_lang_default={name:"Close"},_hoisted_156={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_256=Vue.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_156,_hoisted_355)}var close_default=export_helper_default(close_vue_vue_type_script_lang_default,[["render",_sfc_render56],["__file","close.vue"]]),delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=Vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),info_filled_vue_vue_type_script_lang_default={name:"InfoFilled"},_hoisted_1143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2143=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1143,_hoisted_3142)}var info_filled_default=export_helper_default(info_filled_vue_vue_type_script_lang_default,[["render",_sfc_render143],["__file","info-filled.vue"]]),search_vue_vue_type_script_lang_default={name:"Search"},_hoisted_1225={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2225=Vue.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3224=[_hoisted_2225];function _sfc_render225(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1225,_hoisted_3224)}var search_default=export_helper_default(search_vue_vue_type_script_lang_default,[["render",_sfc_render225],["__file","search.vue"]]),success_filled_vue_vue_type_script_lang_default={name:"SuccessFilled"},_hoisted_1249={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2249=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3248=[_hoisted_2249];function _sfc_render249(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1249,_hoisted_3248)}var success_filled_default=export_helper_default(success_filled_vue_vue_type_script_lang_default,[["render",_sfc_render249],["__file","success-filled.vue"]]),warning_filled_vue_vue_type_script_lang_default={name:"WarningFilled"},_hoisted_1287={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2287=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3286=[_hoisted_2287];function _sfc_render287(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1287,_hoisted_3286)}var warning_filled_default=export_helper_default(warning_filled_vue_vue_type_script_lang_default,[["render",_sfc_render287],["__file","warning-filled.vue"]]);const standardFields=[{name:"${approvalResult}",label:getI18n().t("workflowEditor.process.approvalResults"),orgType:"other"},{name:"${instanceCreatorName}",label:getI18n().t("workflowEditor.process.processInitiator"),orgType:"user"},{name:"${instanceCreatorRole}",label:getI18n().t("workflowEditor.process.processInitiatorRole"),orgType:"role"},{name:"${instanceCreatorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${superiorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorSuperiorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${instanceCreatorUpstageDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorTopDepartment"),orgType:"department"},{name:"${instanceCreatorWorkGroup}",label:getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),orgType:"workgroup"},{name:"${instanceCreatorDirectSuperiorName}",label:getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),orgType:"user"},{name:"${instanceCreatorDeptApprover}",label:getI18n().t("workflowEditor.process.deptApprover"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDeptApprover}",label:getI18n().t("workflowEditor.process.superiorDeptApprover"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDeptLeader}",label:getI18n().t("workflowEditor.process.superiorDeptLeader"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${instanceCreatorDirectSuperiorRole}",label:getI18n().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"),orgType:"role"},{name:"${instanceCreatorDirectSuperiorWorkGroup}",label:getI18n().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"),orgType:"workgroup"},{name:"${currentTransactorName}",label:getI18n().t("workflowEditor.process.nameOfCurrentHandler"),orgType:"user",relatedFields:["instanceCreatorName","instanceCreatorDirectSuperiorName"]},{name:"${currentTransactorRole}",label:getI18n().t("workflowEditor.process.currentHandlerRole"),orgType:"role"},{name:"${currentTransactorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorSuperiorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorUpstageDepartment}",label:getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment"]},{name:"${currentTransactorWorkGroup}",label:getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),orgType:"workgroup"},{name:"${currentTransactorDirectSuperiorName}",label:getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"),orgType:"user",relatedFields:["instanceCreatorName","instanceCreatorDirectSuperiorName"]},{name:"${currentTransactorDirectSuperiorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorDirectSuperiorRole}",label:getI18n().t("workflowEditor.process.currentManagerDirectSuperiorRole"),orgType:"role"},{name:"${currentTransactorDirectSuperiorWorkGroup}",label:getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"),orgType:"workgroup"},{name:"${upstageDepartment}",label:getI18n().t("workflowEditor.process.topDepartments"),orgType:"department"},{name:"${countersignatureDisagreeCount}",label:getI18n().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"),orgType:"other",dataType:"INTEGER"},{name:"${countersignatureAgreeCount}",label:getI18n().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"),orgType:"other",dataType:"INTEGER"},{name:"${countersignatureDisagreePercentage}",label:getI18n().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"),orgType:"other",dataType:"INTEGER"},{name:"${countersignatureAgreePercentage}",label:getI18n().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"),orgType:"other",dataType:"INTEGER"},{name:"${abstentionPercentage}",label:getI18n().t("workflowEditor.process.percentageOfAbstentions"),orgType:"other",dataType:"INTEGER"},{name:"${againstPercentage}",label:getI18n().t("workflowEditor.process.percentageOfVotesAgainst"),orgType:"other",dataType:"INTEGER"},{name:"${favorPercentage}",label:getI18n().t("workflowEditor.process.percentageOfAffirmativeVotes"),orgType:"other",dataType:"INTEGER"},{name:"${abstentionCount}",label:getI18n().t("workflowEditor.process.totalNumberOfAbstentions"),orgType:"other",dataType:"INTEGER"},{name:"${againstCount}",label:getI18n().t("workflowEditor.process.totalVotesAgainst"),orgType:"other",dataType:"INTEGER"},{name:"${favorCount}",label:getI18n().t("workflowEditor.process.totalNumberOfAffirmativeVotes"),orgType:"other",dataType:"INTEGER"}],logicOperators$1={"condition.operator.or":getI18n().t("workflowEditor.process.perhaps"),"condition.operator.and":getI18n().t("workflowEditor.process.also")};function isNumber$1(e){return["NUMBER","DOUBLE","FLOAT","LONG","INTEGER","AMOUNT"].indexOf(e)>=0}const operatorsForNumber=[{name:"operator.number.gt",label:getI18n().t("workflowEditor.process.greaterThan")},{name:"operator.number.lt",label:getI18n().t("workflowEditor.process.lessThan")},{name:"operator.number.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.number.le",label:getI18n().t("workflowEditor.process.notGreaterThan")},{name:"operator.number.ge",label:getI18n().t("workflowEditor.process.notLessThan")},{name:"operator.number.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}];function isString$2(e){return["STRING","TEXT"].indexOf(e)>=0}const operatorsForString=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.contain",label:getI18n().t("workflowEditor.process.contain")},{name:"operator.text.contain.not",label:getI18n().t("workflowEditor.process.notIncluded")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}];function isDate(e){return["DATE","TIME"].indexOf(e)>=0}const operatorsForDate=[{name:"operator.date.gt",label:getI18n().t("workflowEditor.process.laterThan")},{name:"operator.date.lt",label:getI18n().t("workflowEditor.process.earlierThan")},{name:"operator.date.et",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.date.le",label:getI18n().t("workflowEditor.process.noLaterThan")},{name:"operator.date.ge",label:getI18n().t("workflowEditor.process.noEarlierThan")},{name:"operator.date.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}],operatorsForText=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}];function isApproveResult(e){return e==="${approvalResult}"}const operatorsForApproveResult=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")}],allOperators=[...operatorsForNumber,...operatorsForDate,...operatorsForString,...operatorsForText];function parseCondition$1(e,t){if(!(!t||t.length===0)){let o=t.replace(/ condition.operator.or /g," condition.operator.or^_^");o=o.replace(/ condition.operator.and /g," condition.operator.and^_^");const r=o.split("^_^");let n=0;for(let i of r){if(i==="")continue;let s="",l="",a="",d="",u="",c="condition.operator.or",m=i.indexOf("${");if(m>0&&(s=i.substring(0,m)),l=i.substring(m,i.indexOf(" ")),i=i.substring(i.indexOf(" ")+1),a=i.substring(0,i.indexOf(" ")),i=i.substring(i.indexOf(" ")+1),m=i.indexOf(")"),m>=0){d=i.substring(0,m);const A=i.substring(m);m=A.indexOf(")"),A.indexOf(" ")>=0?u=A.substring(m,A.indexOf(" ")):u=A.substring(m),m=i.indexOf(" condition."),m>=0&&(c=i.substring(m+1))}else m=i.indexOf(" condition."),m>0?(d=i.substring(0,m),c=i.substring(m+1)):d=i;e.push({id:n,leftBracket:s,key:l,operator:a,value:d,rightBracket:u,logicOperator:c}),n++}return n}}function generateCondition(e){let t="";for(const n of e)n.key.length===0||n.operator===""||n.value===""&&n.operator!=="operator.text.is.null"&&n.operator!=="operator.text.not.null"||(t=t+n.leftBracket+n.key+" "+n.operator+" "+n.value+n.rightBracket+" "+n.logicOperator+" ");const o=" condition.operator.or ",r=" condition.operator.and ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}function getStandardField(e){const t=standardFields.filter(o=>o.name===e);return t.length>0?t[0]:null}function getStandardFieldLabel(e){const t=getStandardField(e);return t?t.label:e}function getFieldLabel(e){return e?e.indexOf("${field[")>=0?getFormFieldLabel(e):e.indexOf("${")>=0?getStandardFieldLabel(e):e.indexOf("[")>=0?e.substring(0,e.indexOf("[")):e:""}function getOperatorLabel(e){const t=allOperators.filter(o=>o.name===e);return t.length>0?t[0].label:""}function displayCondition(e){let t="";for(const n of e)n.key.length===0||typeof n.operator>"u"||n.operator===""||n.operator===null||n.operator!=="operator.text.is.null"&&n.operator!=="operator.text.not.null"&&(n.value===""||typeof n.value>"u"||n.value===null)||(t=t+n.leftBracket+getFieldLabel(n.key)+" "+getOperatorLabel(n.operator)+" "+getFieldLabel(n.value)+n.rightBracket+" "+logicOperators$1[n.logicOperator]+" ");const o=" 或者 ",r=" 并且 ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}function getRelatedStandardFields(e){const t=standardFields.filter(n=>n.name===e);let o=[];t.length>0&&(o=t[0].relatedFields||[]);const r=[];return standardFields.forEach(n=>{o.indexOf(n.name.substring(2,n.name.length-1))>=0&&r.push(n)}),r}function getStandardFieldsByTacheType(e){if(e)return standardFields;const t=[];return standardFields.forEach(o=>{!e&&o.orgType!=="other"&&t.push(o)}),t}function isTransitionOtherField(e){if(e==="${approvalResult}")return!1;const t=standardFields.filter(r=>r.name===e);let o=!1;return t.length>0&&t.forEach(r=>{e===r.name&&r.orgType==="other"&&(o=!0)}),o}function getOperators(e){const t=getFormField(e)||getStandardField(e);if(t)return isNumber$1(t.dataType)?operatorsForNumber:isDate(t.dataType)?operatorsForDate:isString$2(t.dataType)?operatorsForString:isApproveResult(e)?operatorsForApproveResult:operatorsForText}const systemRoleTreeInline_vue_vue_type_style_index_0_lang="",__default__$5={name:"InlineSystemRoleTree",props:{multiple:{type:Boolean,default:!1}},data(){return{systemRoleTrees:null,filterText:"",defaultProps:{id:"id",label:"label",children:"children",isLeaf:"leaf"},containBranch:!1,tenantInfo:null,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,searchValue:null,selectNodeInfo:null}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.loadRole(this.tenantNodeId,this.tenantNodeId+""))}},created(){},methods:{loadNode(e,t){var o=0,r;e.level===0?(o=0,r=o+""):(o=e.data.id,r=e.data.nodeId);var n=[];this.$refs.roleTree&&(n=this.$refs.roleTree.getCheckedKeys()),this.initLoadRole(o,r,e,t,n)},initLoadRole(e,t,o,r,n){this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e).then(i=>{if(r(i),this.$refs.roleTree.updateKeyChildren(t,i),e===0){const s=i[0].data;this.tenantInfo=JSON.parse(s),this.containBranch=i[0].containBranch,this.loadRole(this.tenantNodeId,this.tenantNodeId+"")}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(o.data)):n&&n.indexOf(t)>-1&&this.checkedNodeAndChildren(o.data)})},loadRole(e,t,o,r){this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e).then(n=>{this.$refs.roleTree.updateKeyChildren(t,n),this.$refs.roleTree.store.nodesMap[t]&&(this.$refs.roleTree.store.nodesMap[t].expanded=!0),o&&(this.allExpandNodeIds.indexOf(t)===-1&&this.allExpandNodeIds.push(t),this.allExpandNodeIds.length===this.allSearchNodeIds.length&&(this.$refs.roleTree.filter(r),this.allExpandNodeIds=[],this.allSearchNodeIds=[]))})},clickSearch(){this.searchValue=this.filterText,this.filterAppendNodes(this.filterText)},filterAppendNodes(e){this.$http.get(this.baseAPI+"/acs/roles/search-system-role-trees?searchValue="+e).then(t=>{if(t){if(t.length===0){this.$message({showClose:!0,type:"error",message:this.$t("workflowEditorMessage.queryResultIsEmpty")});return}t.forEach(o=>{const r="SYSTEM_"+o;this.allSearchNodeIds.indexOf(r)===-1&&(this.allSearchNodeIds.push(r),this.loadRole(o,r,!0,e))})}else this.$message({showClose:!0,type:"error",message:this.$t("workflowEditorMessage.queryResultIsEmpty")})})},handleCheckNode(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?e.children?(this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e)):e.leaf||this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e.id).then(o=>{this.$refs.roleTree.updateKeyChildren(e.nodeId,o),this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e)}):this.cancelChildCheckedNodes(e)},checkedNodeAndChildren(e){this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.$refs.roleTree.setChecked(e.nodeId,!0);const t=e.children;t&&t.forEach(o=>{this.checkedNodeAndChildren(o)})},cancelChildCheckedNodes(e){e.id!==this.tenantNodeId&&this.$refs.roleTree.setChecked(this.tenantNodeId+"",!1);const t=e.children;t&&t.forEach(o=>{this.$refs.roleTree.setChecked(o.nodeId,!1),this.cancelChildCheckedNodes(o)})},selectRole(){if(this.multiple){const e={containBranch:this.containBranch,roles:[]},t=[];this.$refs.roleTree.getCheckedNodes().forEach(r=>{if(r.nodeType==="ROLE"){const n=JSON.parse(r.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName,t.push(n)}}),e.roles=t,e.length>0?this.$emit("result",e):this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditor.pleaseSelectRole")})}else this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditor.pleaseSelectRole")})},filterNode(e,t,o){if(e){var r=t.label;return t.nodeType!=="ROLE"?!1:r.indexOf(e)!==-1}else return!0},handleNodeClick(e,t,o){if(this.multiple&&this.clickNodeWhenMultiple(e),console.log(e),e.nodeType==="ROLE"&&!this.multiple){const n=JSON.parse(e.data);n.tenantName=this.tenantInfo.tenantName,n.tenantCode=this.tenantInfo.code;var r={id:e.id,name:e.name,containBranch:this.containBranch,role:n};this.selectNodeInfo=r}},clickNodeWhenMultiple(e){var t=[];if(this.$refs.roleTree&&(t=this.$refs.roleTree.getCheckedKeys()),t.indexOf(e.nodeId)>-1)this.$refs.roleTree.setChecked(e.nodeId,!1),this.cancelChildCheckedNodes(e),this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0;else{this.$refs.roleTree.setChecked(e.nodeId,!0);const o=e.childDepartments;o&&o.length>0?this.checkedNodeAndChildren(e):this.isClickNode=!0}},renderContent(e,{node:t,data:o,store:r}){return o.nodeType&&o.nodeType==="ROLE"&&this.searchValue&&o.label.indexOf(this.searchValue)>-1?e("span",{},[e("span",{class:"searchResult"},t.label)]):e("span",{},[e("span",{},t.label)])}}},_sfc_main$1g=Object.assign(__default__$5,{setup(e){return(t,o)=>{const r=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-input"),i=Vue.resolveComponent("el-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(n,{modelValue:t.filterText,"onUpdate:modelValue":o[0]||(o[0]=s=>t.filterText=s),placeholder:t.$t("workflowEditorMessage.pleaseEnterTheRoleName"),onKeyup:Vue.withKeys(t.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(r,{icon:Vue.unref(search_default),onClick:t.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","placeholder","onKeyup"]),Vue.createVNode(i,{ref:"roleTree",props:t.defaultProps,load:t.loadNode,lazy:"","highlight-current":!0,"node-key":"nodeId","show-checkbox":e.multiple,"check-strictly":"","render-content":t.renderContent,"filter-node-method":t.filterNode,onCheck:t.handleCheckNode,onNodeClick:t.handleNodeClick},null,8,["props","load","show-checkbox","render-content","filter-node-method","onCheck","onNodeClick"])])}}}),valueSelectionDialog_vue_vue_type_style_index_0_scoped_7feaa2da_lang="",_sfc_main$1f={name:"ValueSelectionDialog",components:{InlineSystemRoleTree:_sfc_main$1g},props:{standardFields:{type:[Object,Array],default:null},title:{type:String,default:""},showOrganization:{type:Boolean,default:!0},showFormFields:{type:Boolean,default:!0},orgType:{type:String,default:""}},data(){let e=this.title,t="organization";return this.showOrganization||(t="standardFields"),(!this.title||this.title==="")&&(e=getI18n().t("workflowEditorMessage.pleaseSelectAValue")),{selectedValue:"",activeTab:t,titleName:e,dialogVisible:!0,activeNames:["baseField"]}},computed:{...mapGetters("wfEditor",["formFields"]),customFormFields(){return this.formFields.filter(e=>!e.baseField)},baseFormFields(){return this.formFields.filter(e=>e.baseField)},options(){if(Array.isArray(this.standardFields))return this.standardFields;{const e=[];for(const t of Object.keys(this.standardFields))e.push({name:t,label:this.standardFields[t]});return e}}},watch:{activeTab(e){this.selectedValue=""}},methods:{setValue(){if(this.organizationResultValue(),this.selectedValue===""){this.$alert(this.$t("workflowEditorMessage.pleaseSelectAValueInTheCurrentTab"));return}this.$emit("close",this.selectedValue)},orgSelect(e){e&&(this.orgType==="user"?this.getSelectedUser(e.user,e.containBranch):this.orgType==="department"?this.getSelectedDepartmentOrWorkgroup(e.department,e.containBranch):this.orgType==="workgroup"?this.getSelectedDepartmentOrWorkgroup(e.workgroup,e.containBranch):this.orgType==="role"&&this.getSelectedRole(e.role))},organizationResultValue(){this.orgType&&this.activeTab==="organization"&&(this.orgType==="user"?this.$refs.organizationTree.confirmSelectUser():this.orgType==="department"?this.$refs.organizationTree.selectDepartment():this.orgType==="workgroup"?this.$refs.organizationTree.selectWorkgroup():this.orgType==="role"&&this.$refs.organizationTree.selectRole())},getSelectedUser(e,t){const o="~~",r="/";let n=e.loginName,i=e.name;if(t){if(e.subCompanyId&&e.subCompanyId!==null){const s=e.subCompanyCode,l=e.subCompanyName;n=n+o+s,i=i+r+l}else n=n+o+e.tenantCode,i=i+r+e.tenantName;this.selectedValue=i+"["+n+"]"}else this.selectedValue=e.name+"["+e.loginName+"]"},getSelectedDepartmentOrWorkgroup(e,t){this.selectedValue=e.name;const o="/";let r=e.name;if(t){if(e.subCompanyId&&e.subCompanyId!==null){const n=e.subCompanyName;r=r+o+n}else r=r+o+e.tenantName;this.selectedValue=r+"["+e.code+"]"}else this.selectedValue=e.name+"["+e.code+"]"},getSelectedRole(e){this.selectedValue=e.name+"["+e.code+"]"}}};function _sfc_render$17(e,t,o,r,n,i){const s=Vue.resolveComponent("el-radio"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-tab-pane"),d=Vue.resolveComponent("inline-department-user-tree"),u=Vue.resolveComponent("inline-department-tree"),c=Vue.resolveComponent("inline-workgroup-tree"),m=Vue.resolveComponent("inline-system-role-tree"),A=Vue.resolveComponent("el-col"),C=Vue.resolveComponent("el-collapse-item"),g=Vue.resolveComponent("el-collapse"),E=Vue.resolveComponent("el-radio-group"),p=Vue.resolveComponent("el-tabs"),f=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(w,{title:n.titleName,"model-value":"",top:"10vh","append-to-body":"",class:"properties-editor-valueSelect",center:"",onClose:t[5]||(t[5]=v=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(f,{type:"primary",size:"small",onClick:i.setValue},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(f,{size:"small",onClick:t[4]||(t[4]=v=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(p,{id:"custTabOne",modelValue:n.activeTab,"onUpdate:modelValue":t[3]||(t[3]=v=>n.activeTab=v),type:"border-card"},{default:Vue.withCtx(()=>[i.options.length>0?(Vue.openBlock(),Vue.createBlock(a,{key:0,label:e.$t("workflowEditor.process.standardFields"),name:"standardFields"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.options,v=>(Vue.openBlock(),Vue.createBlock(l,{key:v.name},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.selectedValue,"onUpdate:modelValue":t[0]||(t[0]=b=>n.selectedValue=b),label:v.name,border:""},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.label),1)]),_:2},1032,["modelValue","label"])]),_:2},1024))),128))]),_:1},8,["label"])):Vue.createCommentVNode("",!0),o.showOrganization?(Vue.openBlock(),Vue.createBlock(a,{key:1,label:e.$t("workflowEditor.common.organizationStructure"),name:"organization"},{default:Vue.withCtx(()=>[o.orgType==="user"?(Vue.openBlock(),Vue.createBlock(d,{key:0,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="department"?(Vue.openBlock(),Vue.createBlock(u,{key:1,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="workgroup"?(Vue.openBlock(),Vue.createBlock(c,{key:2,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="role"?(Vue.openBlock(),Vue.createBlock(m,{key:3,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(a,{label:e.$t("workflowEditor.common.formField"),name:"formFields"},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:n.selectedValue,"onUpdate:modelValue":t[2]||(t[2]=v=>n.selectedValue=v),class:"group"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{width:"100%"}},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.customFormFields,v=>(Vue.openBlock(),Vue.createBlock(A,{key:v.name,span:8},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${field["+v.name+"]}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.label),1)]),_:2},1032,["label"])]),_:2},1024))),128))]),_:1}),Vue.createVNode(g,{modelValue:n.activeNames,"onUpdate:modelValue":t[1]||(t[1]=v=>n.activeNames=v),style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(C,{title:e.$t("workflowEditor.task.baseField"),name:"baseField"},{default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.baseFormFields,v=>(Vue.openBlock(),Vue.createBlock(A,{key:v.name,span:8},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${field["+v.name+"]}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.label),1)]),_:2},1032,["label"])]),_:2},1024))),128))]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["title"])}const ValueSelectionDialog=_export_sfc$1(_sfc_main$1f,[["render",_sfc_render$17],["__scopeId","data-v-7feaa2da"]]),_sfc_main$1e={name:"AdditionalCondition",components:{ValueSelectionDialog},props:{modelValue:{type:String,default:null},isTransition:{type:Boolean,default:!1}},data(){const e=[],t=parseCondition$1(e,this.modelValue);return{standardFields,tableData:e,count:t,currentRow:null,currentInput:null,options:[],valueDialogTitle:null,showOrganization:!0,orgType:null}},computed:{...mapGetters("wfEditor",["formFields"]),availableStandardFields(){return this.currentInput==="key"?getStandardFieldsByTacheType(this.isTransition):getRelatedStandardFields(this.currentRow.key)}},mounted(){this.tableData.length>0&&this.$refs.table.setCurrentRow(this.tableData[this.tableData.length-1]),this.$watch("tableData",function(e,t){this.$emit("update:modelValue",generateCondition(this.tableData))},{deep:!0})},methods:{format(e,t){return console.log("row",t),e===""||e===void 0||e===null?"":getFieldLabel(e)},getOperatorOptions(e){return getOperators(e)},selectRow(e){this.$refs.table.setCurrentRow(e)},openValueDialog(e){this.showValueDialog=!0,this.selectRow(e)},closeValueDialog(e){e!==void 0&&e!==""&&(this.currentInput==="key"&&this.currentRow.key!==e&&(this.currentRow.operator="",this.currentRow.value=""),this.currentRow[this.currentInput]=e),this.currentInput=""},getCondition(e){return e.key+" "+e.operator+" "+e.value},handleCurrentChange(e){this.currentRow=e},getRowIndex(e){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].id===e.id)return t;return-1},add(){(this.count===null||this.count===void 0||this.count.isNaN||this.count==="NaN")&&(this.count=0);const e={id:this.count,leftBracket:"",key:"",operator:"",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.tableData.push(e),this.$refs.table.setCurrentRow(e),this.count++},insert(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}const e={id:this.count,leftBracket:"",key:"",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.tableData.splice(this.getRowIndex(this.currentRow),0,e),this.$refs.table.setCurrentRow(e),this.count++},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.tableData.splice(e,1),this.tableData.length>0&&(e=e<=this.tableData.length-1?e:this.tableData.length-1,this.$refs.table.setCurrentRow(this.tableData[e]))},view(){let e=displayCondition(this.tableData);e===""&&(e=this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")),this.$confirm(e,this.$t("workflowEditorMessage.viewConditions"),{showConfirmButton:!1,showCancelButton:!1,callback:function(){}})},selectField(e){this.selectRow(e),this.currentInput="key",this.valueDialogTitle=this.$t("workflowEditorMessage.fieldSettings"),this.showOrganization=!1},selectValue(){this.currentInput="value",this.valueDialogTitle=this.$t("workflowEditorMessage.valueSetting"),this.showOrganization=!0,this.orgType=this.getStandardFieldOrgType()},getStandardFieldOrgType(){const e=this.standardFields.filter(t=>t.name===this.currentRow.key);return e.length>0?e[0].orgType:""},isTransitionOtherField(e){return isTransitionOtherField(e)}}},_hoisted_1$E={style:{overflow:"auto",width:"100%"}};function _sfc_render$16(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-option"),d=Vue.resolveComponent("el-select"),u=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("value-selection-dialog");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$E,[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"ArrowRight",onClick:i.insert},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.insert")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"View",onClick:i.view},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.viewConditions")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.tableData,"row-key":"id",border:"",style:{width:"100%","padding-top":"10px"},"highlight-current-row":"",onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(u,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.leftBracket,"onUpdate:modelValue":g=>C.row.leftBracket=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:"(",value:"("}),Vue.createVNode(a,{label:"((",value:"(("}),Vue.createVNode(a,{label:"(((",value:"((("})]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1}),Vue.createVNode(u,{label:e.$t("workflowEditor.common.fieldName"),width:"200"},{default:Vue.withCtx(C=>[Vue.createVNode(c,{value:i.format(C.row.key),onClick:g=>i.selectField(C.row)},null,8,["value","onClick"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.operator"),width:"130"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.operator,"onUpdate:modelValue":g=>C.row.operator=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.getOperatorOptions(C.row.key),g=>(Vue.openBlock(),Vue.createBlock(a,{key:g.name,label:g.label,value:g.name},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(C=>[C.row.key.indexOf("${field[")>=0||i.isTransitionOtherField(C.row.key)?(Vue.openBlock(),Vue.createBlock(c,{key:0,modelValue:C.row.value,"onUpdate:modelValue":g=>C.row.value=g,modelModifiers:{trim:!0}},null,8,["modelValue","onUpdate:modelValue"])):C.row.key==="${approvalResult}"?(Vue.openBlock(),Vue.createBlock(d,{key:1,modelValue:C.row.value,"onUpdate:modelValue":g=>C.row.value=g,modelModifiers:{trim:!0}},{default:Vue.withCtx(()=>[Vue.createVNode(a,{value:"同意",label:e.$t("workflowEditorPublicModel.agree")},null,8,["label"]),Vue.createVNode(a,{value:"不同意",label:e.$t("workflowEditorPublicModel.disagree")},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])):(Vue.openBlock(),Vue.createBlock(c,{key:2,value:i.format(C.row.value,C.row),readonly:"",onClick:i.selectValue},null,8,["value","onClick"]))]),_:1},8,["label"]),Vue.createVNode(u,{prop:"rightBracket",label:")",width:"90",onFocus:t[0]||(t[0]=C=>i.selectRow(e.scope.row))},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.rightBracket,"onUpdate:modelValue":g=>C.row.rightBracket=g,placeholder:""},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:")",value:")"}),Vue.createVNode(a,{label:"))",value:"))"}),Vue.createVNode(a,{label:")))",value:")))"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),Vue.createVNode(u,{prop:"logicOperator",label:e.$t("workflowEditorPublicModel.andOr"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.logicOperator,"onUpdate:modelValue":g=>C.row.logicOperator=g,placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.currentInput?(Vue.openBlock(),Vue.createBlock(A,{key:0,title:n.valueDialogTitle,"show-organization":n.showOrganization,"standard-fields":i.availableStandardFields,"org-type":n.orgType,onClose:i.closeValueDialog},null,8,["title","show-organization","standard-fields","org-type","onClose"])):Vue.createCommentVNode("",!0)])}const AdditionalCondition=_export_sfc$1(_sfc_main$1e,[["render",_sfc_render$16]]),_sfc_main$1d={name:"AdditionalConditionDialog",components:{AdditionalCondition},props:{modelValue:{type:String,default:""}},data(){return{condition:this.modelValue,dialogVisible:!0}},watch:{value(e){this.condition=e}},methods:{setConditions(){this.$emit("update:modelValue",this.condition),this.$emit("close")}}};function _sfc_render$15(e,t,o,r,n,i){const s=Vue.resolveComponent("additional-condition"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-button"),d=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(d,{width:"50%",title:e.$t("workflowEditor.task.setConditions"),"model-value":"",top:"10vh","append-to-body":"",class:"properties-editor-noTab",center:"",onClose:t[2]||(t[2]=u=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(a,{type:"primary",size:"small",onClick:i.setConditions},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=u=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.condition,"onUpdate:modelValue":t[0]||(t[0]=u=>n.condition=u)},null,8,["modelValue"])]),_:1})]),_:1},8,["title"])}const AdditionalConditionDialog=_export_sfc$1(_sfc_main$1d,[["render",_sfc_render$15]]),__default__$4={name:"CustomActions",components:{AdditionalConditionDialog},props:{model:{type:Object,default:null}},data(){const e=[];let t=1;if(this.model.action)if(Array.isArray(this.model.action))for(const o of this.model.action)e.push({...o,id:t}),t++;else e.push({...this.model.action,id:t}),t++;return{actions:e,actionTypes:[{type:"SAVE",label:getI18n().t("workflowEditor.task.save")},{type:"SUBMIT",label:getI18n().t("workflowEditor.task.submission")},{type:"APPROVE",label:getI18n().t("workflowEditor.task.agree")},{type:"REFUSE",label:getI18n().t("workflowEditor.task.disagree")},{type:"AGREEMENT",label:getI18n().t("workflowEditor.task.favor")},{type:"OPPOSE",label:getI18n().t("workflowEditor.task.opposition")},{type:"KIKEN",label:getI18n().t("workflowEditor.task.waiver")},{type:"DRAW",label:getI18n().t("workflowEditor.task.receive")},{type:"ABANDON_DRAW",label:getI18n().t("workflowEditor.task.giveUp")},{type:"ADD_SIGN",label:getI18n().t("workflowEditor.task.additionalSignature")},{type:"REMOVE_SIGN",label:getI18n().t("workflowEditor.task.reductionOfSignature")},{type:"ASSIGN_TASK",label:getI18n().t("workflowEditor.task.assignTask")},{type:"COPY",label:getI18n().t("workflowEditor.task.copyTask")},{type:"GET_BACK_BUTTON",label:getI18n().t("workflowEditor.task.retrieveTask")},{type:"READED",label:getI18n().t("workflowEditor.task.readTask")},{type:"EXPORT_REPORT",label:getI18n().t("workflowEditor.task.exportReport")}],currentRow:null,count:t,showAdditionalCondition:!1}},mounted(){this.actions.length>0&&this.selectRow(this.actions[this.actions.length-1]),this.$watch("actions",function(e,t){const o=[];for(const r of this.actions){const n={...r};delete n.id,o.push(n)}this.$emit("updateAction",o)},{deep:!0})},methods:{selectRow(e){this.$refs.table.setCurrentRow(e)},getRowIndex(e){for(let t=0;t<this.actions.length;t++)if(this.actions[t].id===e.id)return t;return-1},handleCurrentChange(e){this.currentRow=e},isDuplicated(e){const t=this.getRowIndex(this.currentRow);console.log("index:"+t);for(let o=0;o<this.actions.length;o++)o!==t&&this.actions[o].type===e&&(this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect",{row:o+1})),this.currentRow.type="")},add(){for(let t=0;t<this.actions.length;t++){const o=this.actions[t];if(o.type===""||o.label===""){this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty",{row:t+1}));return}}const e={id:this.count,type:"",label:"",visible:!0,condition:""};this.actions.push(e),this.selectRow(e),this.count++},remove(){let e=this.getRowIndex(this.currentRow);this.actions.splice(e,1),this.actions.length>0&&(e=e<=this.actions.length-1?e:this.actions.length-1,this.$refs.table.setCurrentRow(this.actions[e]))},formatCondition(e){if(e===""||!e)return this.$t("workflowEditor.task.nothing");const t=[];return parseCondition$1(t,e),displayCondition(t)},selectCondition(e){this.selectRow(e),this.currentRow||(this.currentRow.condition=""),this.showAdditionalCondition=!0}}},_sfc_main$1c=Object.assign(__default__$4,{setup(e){return(t,o)=>{const r=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-table-column"),i=Vue.resolveComponent("el-option"),s=Vue.resolveComponent("el-select"),l=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-checkbox"),d=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-row");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(r,{type:"primary",size:"small",plain:"",icon:Vue.unref(circle_plus_default),onClick:t.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["icon","onClick"]),Vue.createVNode(r,{type:"primary",size:"small",plain:"",icon:Vue.unref(delete_default),onClick:t.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["icon","onClick"]),Vue.createVNode(d,{ref:"table",data:t.actions,"row-key":"type",border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:t.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(n,{type:"index"}),Vue.createVNode(n,{label:t.$t("workflowEditor.task.operationType"),width:"180"},{default:Vue.withCtx(c=>[Vue.createVNode(s,{modelValue:c.row.type,"onUpdate:modelValue":m=>c.row.type=m,onChange:t.isDuplicated},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.actionTypes,m=>(Vue.openBlock(),Vue.createBlock(i,{key:m.id,value:m.type,label:m.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Vue.createVNode(n,{prop:"label",label:t.$t("workflowEditor.task.name"),width:"180"},{default:Vue.withCtx(c=>[Vue.createVNode(l,{modelValue:c.row.label,"onUpdate:modelValue":m=>c.row.label=m},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(n,{prop:"visible",label:t.$t("workflowEditor.task.visibleOrNot")},{default:Vue.withCtx(c=>[Vue.createVNode(a,{modelValue:c.row.visible,"onUpdate:modelValue":m=>c.row.visible=m},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(n,{prop:"condition",label:t.$t("workflowEditor.task.condition")},{default:Vue.withCtx(c=>[Vue.createVNode(l,{value:t.formatCondition(c.row.condition),type:"textarea",autosize:"",onFocus:m=>t.selectCondition(c.row)},null,8,["value","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])]),_:1}),t.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(Vue.unref(AdditionalConditionDialog),{key:0,modelValue:t.currentRow.condition,"onUpdate:modelValue":o[0]||(o[0]=c=>t.currentRow.condition=c),onClose:o[1]||(o[1]=c=>t.showAdditionalCondition=!1)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)])}}}),_sfc_main$1b={name:"I18nSet",props:{value:{type:Object,default:null}},data(){let e={};return this.value&&(e=JSON.parse(JSON.stringify(this.value))),{requiredRule:{required:!0,message:getI18n().t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"},i18nModel:e,bundleCode:null,isShow:!1,i18nKey:null,languages:{},dialogVisible:!0,isNewI18n:!1}},computed:{...mapGetters("wfEditor",["systemCode","processCode","isHandleCreate"])},created(){this.isHandleCreate&&this.isHandleCreate==="true"?this.isNewI18n=!1:this.isNewI18n=!0,this.isNewI18n||(this.bundleCode=this.systemCode+".workflow."+this.processCode),this.getI18nSet()},methods:{getI18nSet(){this.$http.get(this.baseAPI+"/wf-editor/i18n-settings/languages?isNewI18n="+this.isNewI18n).then(e=>{const t={bundleCode:this.bundleCode,i18nKey:this.i18nModel.key,isNewI18n:this.isNewI18n+"",systemCode:this.systemCode};this.$http.post(this.baseAPI+"/wf-editor/i18n-settings/get-info",t).then(o=>{this.languages=e,Object.keys(this.languages).forEach(r=>{console.log("%c描述-162040","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",r),console.log("%c描述-162049","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",this.i18nModel),o&&o[r]?this.i18nModel.values[r]=o[r]:this.i18nModel.values[r]||(this.i18nModel.values[r]="")}),this.isShow=!0})})},saveI18nSet(e){this.$refs[e].validate(t=>{if(t)this.i18nModel.bundleCode=this.bundleCode,this.i18nModel.systemCode=this.systemCode,this.i18nModel.isNewI18n=this.isNewI18n+"",console.log("this.i18nModel---",this.i18nModel),this.$http.post(this.baseAPI+"/wf-editor/i18n-settings",this.i18nModel).then(()=>{console.log("更新成功-----"),this.$emit("close",this.i18nModel.key)});else return console.log("error submit!!"),!1})},goBack(){this.$emit("close")}}},_hoisted_1$D={class:"operation-area"};function _sfc_render$14(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-form-item"),d=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-form"),m=Vue.resolveComponent("el-dialog");return n.isShow?(Vue.openBlock(),Vue.createBlock(m,{key:0,"close-on-click-modal":!1,width:"30%",title:e.$t("workflowEditorPublicModel.i18nSet"),"append-to-body":"","model-value":"",top:"5vh",onOpen:t[2]||(t[2]=A=>e.$emit("open")),onOpend:t[3]||(t[3]=A=>e.$emit("opend")),onClose:t[4]||(t[4]=A=>e.$emit("close")),onClosed:t[5]||(t[5]=A=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$D,[Vue.createVNode(s,{type:"primary",size:"small",onClick:t[0]||(t[0]=A=>i.saveI18nSet("form"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1}),Vue.createVNode(s,{size:"small",onClick:i.goBack},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.return")),1)]),_:1},8,["onClick"])]),Vue.createVNode(c,{ref:"form",model:n.i18nModel,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{span:24},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditorPublicModel.i18nKey"),prop:"key",rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.i18nModel.key,"onUpdate:modelValue":t[1]||(t[1]=A=>n.i18nModel.key=A),style:{width:"80%"}},null,8,["modelValue"])]),_:1},8,["label","rules"])]),_:1})]),_:1}),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Object.keys(n.languages),A=>(Vue.openBlock(),Vue.createBlock(u,{key:A},{default:Vue.withCtx(()=>[Vue.createVNode(d,{span:24},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:n.languages[A],prop:A},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.i18nModel.values[A],"onUpdate:modelValue":C=>n.i18nModel.values[A]=C},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label","prop"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["model"])]),_:1},8,["title"])):Vue.createCommentVNode("",!0)}const I18nSet=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$14]]),_sfc_main$1a={name:"I18nInput",components:{I18nSet},model:{prop:"value",event:"input"},props:{modelValue:{type:String,default:""},i18nKey:{type:String,default:""}},data(){const e=this.modelValue;return{isShowI18n:!1,myI18nKey:this.i18nKey,zh:e,isNewI18n:!1}},computed:{...mapGetters("wfEditor",["processCode","isHandleCreate"])},mounted(){this.$watch("zh",function(e){this.$emit("update:modelValue",e)})},created(){this.isHandleCreate&&this.isHandleCreate==="true"?this.isNewI18n=!1:this.isNewI18n=!0,this.isNewI18n&&(this.myI18nKey=this.modelValue)},methods:{i18nSet(){this.myI18nKey?this.isShowI18n=!0:this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditorMessage.pleaseInputCode")})},closeI18nSet(e){e&&this.$emit("setI18n",e),this.isShowI18n=!1}}},_hoisted_1$C={style:{float:"left","padding-right":"5px"}};function _sfc_render$13(e,t,o,r,n,i){const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("i18n-set");return Vue.openBlock(),Vue.createElementBlock("span",null,[Vue.createElementVNode("div",_hoisted_1$C,[Vue.createVNode(s,{modelValue:n.zh,"onUpdate:modelValue":t[1]||(t[1]=a=>n.zh=a)},{append:Vue.withCtx(()=>[Vue.createElementVNode("i",{class:"fa fa-cog",onClick:t[0]||(t[0]=(...a)=>i.i18nSet&&i.i18nSet(...a))})]),_:1},8,["modelValue"])]),n.isShowI18n?(Vue.openBlock(),Vue.createBlock(l,{key:0,value:{values:{zh_CN:n.zh},key:n.myI18nKey},onClose:i.closeI18nSet},null,8,["value","onClose"])):Vue.createCommentVNode("",!0)])}const i18nInput=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$13]]),_sfc_main$19={name:"SelectMailTemplates",model:{prop:"value",event:"input"},props:{modelValue:{type:[String,Number],default:""}},data(){const e=this.modelValue;return{baseURL:"",optionUrl:"",multiSelectData:[],showMailTemplateFlag:!1,code:e,options:{showColumns:"code,name"},dialogVisible:!0}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseAPI,this.optionUrl="/mc/email-templates/list/0"},methods:{selectTemplate(){!this.multiSelectData||this.multiSelectData.length!==1?this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditorMessage.pleaseSelectARow")}):(this.code=this.multiSelectData[0].code,this.$emit("set-value",this.code),this.showMailTemplateFlag=!1)},selectData(e,t){this.multiSelectData=e},clearVal(){this.code=null,this.$emit("set-value",null)}}},_hoisted_1$B={style:{width:"100%"}};function _sfc_render$12(e,t,o,r,n,i){const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("super-grid"),a=Vue.resolveComponent("el-button"),d=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$B,[Vue.createVNode(s,{readonly:"",modelValue:n.code,"onUpdate:modelValue":t[2]||(t[2]=u=>n.code=u),onClick:t[3]||(t[3]=u=>n.showMailTemplateFlag=!0)},{append:Vue.withCtx(()=>[Vue.createElementVNode("i",{class:"fa fa-search",onClick:t[0]||(t[0]=u=>n.showMailTemplateFlag=!0)}),Vue.createElementVNode("i",{style:{"padding-left":"10px"},class:"fa fa-trash",onClick:t[1]||(t[1]=u=>i.clearVal())})]),_:1},8,["modelValue"]),Vue.createVNode(d,{width:"40%",title:e.$t("workflowEditor.task.selectTemplate"),modelValue:n.showMailTemplateFlag,"onUpdate:modelValue":t[5]||(t[5]=u=>n.showMailTemplateFlag=u),center:"",top:"5vh","append-to-body":"",class:"properties-editor-noTab"},{footer:Vue.withCtx(()=>[Vue.createVNode(a,{onClick:t[4]||(t[4]=u=>n.showMailTemplateFlag=!1)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{type:"primary",onClick:i.selectTemplate},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"])]),default:Vue.withCtx(()=>[Vue.createVNode(l,{ref:"reportGrid",url:n.baseURL+n.optionUrl,code:"BS_EMAIL_TEMPLATE",options:n.options,onSelect:i.selectData},null,8,["url","options","onSelect"])]),_:1},8,["title","modelValue"])])}const SelectMailTemplates=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$12]]),basicProperties_vue_vue_type_style_index_0_scoped_a219b06d_lang="",_sfc_main$18={name:"BasicProperties",components:{TaskTitle,CustomActions:_sfc_main$1c,i18nInput,SelectMailTemplates},props:{model:{type:Object,default:null},id:{type:String,default:null},name:{type:String,default:null}},data(){let e=!1;const t=this.model.processingMode.actions.action;return t&&(Array.isArray(t)&&t.length===0?e=!1:e=!0),{showActions:e,formModel:{name:this.name,id:this.id,tache:this.model}}},computed:{tache(){return this.model}},created(){this.tache.processingMode.actions||(this.tache.processingMode.actions={})},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)})},methods:{validateId(){validateTacheCode(this)},setMailTemplateCode(e){this.tache.mailTemplateCode=e},setMailPointTemplateCode(e){this.tache.mailPointTemplateCode=e},setI18nValue(e){this.tache.i18nKey=e},updateAction(e){this.tache.processingMode.actions.action=e}}},_withScopeId$2=e=>(Vue.pushScopeId("data-v-a219b06d"),e=e(),Vue.popScopeId(),e),_hoisted_1$A=_withScopeId$2(()=>Vue.createElementVNode("span",{class:"percent"}," % ",-1));function _sfc_render$11(e,t,o,r,n,i){const s=Vue.resolveComponent("i18n-input"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("task-title"),m=Vue.resolveComponent("el-switch"),A=Vue.resolveComponent("select-mail-templates"),C=Vue.resolveComponent("el-radio"),g=Vue.resolveComponent("el-radio-group"),E=Vue.resolveComponent("el-input-number"),p=Vue.resolveComponent("custom-actions"),f=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(f,{model:n.formModel,"label-width":"110px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.name")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=w=>n.formModel.name=w),"i18n-key":i.tache.i18nKey?i.tache.i18nKey:"name."+n.formModel.id,onSetI18n:i.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.code")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.formModel.id,"onUpdate:modelValue":t[1]||(t[1]=w=>n.formModel.id=w),onBlur:i.validateId},null,8,["modelValue","onBlur"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(l,{label:e.$t("workflowEditor.task.taskTitle")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:i.tache.taskTitle,"onUpdate:modelValue":t[2]||(t[2]=w=>i.tache.taskTitle=w)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.canItBeRejected")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:i.tache.rebuttable,"onUpdate:modelValue":t[3]||(t[3]=w=>i.tache.rebuttable=w)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.emailNotification")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:i.tache.mailNotice,"onUpdate:modelValue":t[4]||(t[4]=w=>i.tache.mailNotice=w)},null,8,["modelValue"])]),_:1},8,["label"]),i.tache.mailNotice?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:e.$t("workflowEditor.task.selectNoticeTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:i.tache.mailTemplateCode,"onUpdate:modelValue":t[5]||(t[5]=w=>i.tache.mailTemplateCode=w),onSetValue:i.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),i.tache.mailNotice?(Vue.openBlock(),Vue.createBlock(l,{key:1,label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:i.tache.mailPointTemplateCode,"onUpdate:modelValue":t[6]||(t[6]=w=>i.tache.mailPointTemplateCode=w),onSetValue:i.setMailPointTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.HandlingMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:i.tache.processingMode.type,"onUpdate:modelValue":t[7]||(t[7]=w=>i.tache.processingMode.type=w)},{default:Vue.withCtx(()=>[Vue.createVNode(C,{label:"EDIT"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.editorial")),1)]),_:1}),Vue.createVNode(C,{label:"APPROVE"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.approvalType")),1)]),_:1}),Vue.createVNode(C,{label:"COUNTERSIGN"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.countersign")),1)]),_:1}),Vue.createVNode(C,{label:"VOTE"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.voting")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),i.tache.processingMode.type==="EDIT"||i.tache.processingMode.type==="APPROVE"?(Vue.openBlock(),Vue.createBlock(l,{key:2,label:e.$t("workflowEditorMessage.whenThereAreMultipleManagers")},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:i.tache.processingMode.moreTransactor,"onUpdate:modelValue":t[8]||(t[8]=w=>i.tache.processingMode.moreTransactor=w)},{default:Vue.withCtx(()=>[Vue.createVNode(C,{label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.anyOneCanHandleIt")),1)]),_:1}),Vue.createVNode(C,{label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.forAll")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),i.tache.processingMode.type==="COUNTERSIGN"||i.tache.processingMode.type==="VOTE"?(Vue.openBlock(),Vue.createBlock(l,{key:3,label:e.$t("workflowEditor.task.passRate")},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:i.tache.processingMode.passRate,"onUpdate:modelValue":t[9]||(t[9]=w=>i.tache.processingMode.passRate=w),step:10,size:"small",min:0,max:100},null,8,["modelValue"]),_hoisted_1$A]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.modifyOperationName")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.showActions,"onUpdate:modelValue":t[10]||(t[10]=w=>n.showActions=w)},null,8,["modelValue"]),n.showActions?(Vue.openBlock(),Vue.createBlock(p,{key:0,model:i.tache.processingMode.actions,onUpdateAction:i.updateAction},null,8,["model","onUpdateAction"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.handlingPage")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:i.tache.taskUrl,"onUpdate:modelValue":t[11]||(t[11]=w=>i.tache.taskUrl=w)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.remarks")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:i.tache.remark,"onUpdate:modelValue":t[12]||(t[12]=w=>i.tache.remark=w),type:"textarea",autosize:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties$5=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$11],["__scopeId","data-v-a219b06d"]]),editableFieldSelection_vue_vue_type_style_index_0_scoped_9458f3bf_lang="",_sfc_main$17={name:"EditableFieldSelection",components:{AdditionalCondition},props:{value:{type:Array,default:null},disabledFields:{type:Array,default:null}},data(){return{availableFields:[],formModel:{selectedFields:[],constraintRule:"REQUIRED",showCondition:!1,condition:""},availableFieldsCount:null,orange:-1,pin:!1,dialogVisible:!0,activeNames:["baseField"]}},computed:{...mapGetters("wfEditor",["formFieldsWithSub"])},created(){let e=0;this.formFieldsWithSub.map(o=>{this.disabledFields.indexOf(o.name)<0&&(o.index=e,this.availableFields.push(o),e++)});const t=this.availableFields.length;this.availableFieldsCount=Math.ceil(t/3)},mounted(){window.addEventListener("keydown",e=>{console.log("按住"),e.keyCode===16&&e.shiftKey&&(this.pin=!0)}),window.addEventListener("keyup",e=>{console.log("松开"),e.keyCode===16&&(this.pin=!1)})},methods:{filterMethod(e,t){return t.label&&t.label.indexOf(e)>-1?!0:(console.log("filterMethod--item.label=",t.label,t),!1)},setSelectedFields(){const e=[];for(const t of this.formModel.selectedFields)e.push({name:t,constraintRule:this.formModel.constraintRule,condition:this.formModel.showCondition?this.formModel.condition:""});this.$emit("input-value",e),this.$emit("close")},pinSelect(e,t){console.log(e,t);const o=this.availableFields,r=this.origin,n=t;if(this.pin&&this.formModel.selectedFields.indexOf(e)!==-1){console.log(this.formModel.selectedFields.indexOf(e));const i=Math.abs(r-n)+1,s=Math.min(r,n);let l=0;for(;l<i;){const a=s+l;this.formModel.selectedFields.indexOf(o[a].name)===-1&&this.formModel.selectedFields.push(o[a].name),l++}}else this.origin=t}}},_hoisted_1$z=["title"],_hoisted_2$l=["title"],_hoisted_3$8=["title"],_hoisted_4$6=["title"],_hoisted_5$5=["title"],_hoisted_6$4=["title"],_hoisted_7$2=["title"],_hoisted_8$2=["title"],_hoisted_9$1=["title"],_hoisted_10$1=["title"],_hoisted_11$1=["title"],_hoisted_12=["title"];function _sfc_render$10(e,t,o,r,n,i){const s=Vue.resolveComponent("el-checkbox"),l=Vue.resolveComponent("el-col"),a=Vue.resolveComponent("el-row"),d=Vue.resolveComponent("el-collapse-item"),u=Vue.resolveComponent("el-collapse"),c=Vue.resolveComponent("el-checkbox-group"),m=Vue.resolveComponent("el-radio"),A=Vue.resolveComponent("el-radio-group"),C=Vue.resolveComponent("el-form-item"),g=Vue.resolveComponent("el-switch"),E=Vue.resolveComponent("additional-condition"),p=Vue.resolveComponent("el-form"),f=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(w,{id:"appContainer",width:"60%",title:e.$t("workflowEditor.task.selectEditableField"),"model-value":"",top:"10vh","append-to-body":"",class:"properties-editor-noTab",center:"",onClose:t[6]||(t[6]=v=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(f,{type:"primary",size:"small",onClick:i.setSelectedFields},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(f,{size:"small",onClick:t[5]||(t[5]=v=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(p,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.selectedFields,"onUpdate:modelValue":t[1]||(t[1]=v=>n.formModel.selectedFields=v)},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.availableFieldsCount,(v,b)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:v.prop},[n.availableFields[b*3+0]&&!n.availableFields[b*3+0].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:0,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+0].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_1$z)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_2$l)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+1]&&!n.availableFields[b*3+1].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:1,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+1].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_3$8)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_4$6)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+2]&&!n.availableFields[b*3+2].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:2,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+2].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_5$5)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_6$4)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0)],64))),128))]),_:1}),Vue.createVNode(u,{modelValue:n.activeNames,"onUpdate:modelValue":t[0]||(t[0]=v=>n.activeNames=v)},{default:Vue.withCtx(()=>[Vue.createVNode(d,{title:e.$t("workflowEditor.task.baseField"),name:"baseField"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.availableFieldsCount,(v,b)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:v.prop},[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[n.availableFields[b*3+0]&&n.availableFields[b*3+0].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:0,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+0].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_7$2)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_8$2)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+1]&&n.availableFields[b*3+1].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:1,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+1].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_9$1)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_10$1)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+2]&&n.availableFields[b*3+2].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:2,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+2].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_11$1)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_12)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),Vue.createVNode(C,{label:e.$t("workflowEditor.task.editingMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:n.formModel.constraintRule,"onUpdate:modelValue":t[2]||(t[2]=v=>n.formModel.constraintRule=v)},{default:Vue.withCtx(()=>[Vue.createVNode(m,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(m,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(C,{label:e.$t("workflowEditor.task.additionalConditions")},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:n.formModel.showCondition,"onUpdate:modelValue":t[3]||(t[3]=v=>n.formModel.showCondition=v)},null,8,["modelValue"]),n.formModel.showCondition?(Vue.openBlock(),Vue.createBlock(E,{key:0,modelValue:n.formModel.condition,"onUpdate:modelValue":t[4]||(t[4]=v=>n.formModel.condition=v)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"])}const EditableFieldSelection=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$10],["__scopeId","data-v-9458f3bf"]]),_sfc_main$16={name:"EditableFields",components:{EditableFieldSelection,AdditionalConditionDialog},props:{modelValue:{type:[Array,Object],default:null}},data(){let e=[];this.modelValue!==""&&this.modelValue!==null&&this.modelValue!==void 0&&(Array.isArray(this.modelValue)?e=this.modelValue:e.push(this.modelValue));const t=this.getDisabledFields(this.modelValue);return{showFieldSelection:!1,showAdditionalCondition:!1,selectedFields:e,currentRow:null,multipleSelection:[],disabledFields:t}},computed:{...mapGetters("wfEditor",["formFieldsWithSub"])},watch:{selectedFields:{handler(e,t){this.disabledFields=this.getDisabledFields(e)},deep:!0}},mounted(){this.selectedFields.length>0&&this.selectRow(this.selectedFields[this.selectedFields.length-1])},methods:{getDisabledFields(e){if(e==null)return[];const t=[];return Array.isArray(e)?e.map(o=>{t.push(o.name)}):t.push(e),t},handleCurrentChange(e){this.currentRow=e},handleSelectionChange(e){this.multipleSelection=e},selectRow(e){this.$refs.table.setCurrentRow(e)},add(){this.showFieldSelection=!0},getCurrentRowIndex(){let e=-1;for(let t=0;t<this.selectedFields.length;t++)if(this.selectedFields[t].name===this.currentRow.name){e=t;break}return e},remove(){if(this.multipleSelection&&this.multipleSelection.length>0){for(var e=0;e<this.multipleSelection.length;e++){const t=this.multipleSelection[e];this.selectRow(t);const o=this.getCurrentRowIndex();this.selectedFields.splice(o,1)}this.$emit("update:modelValue",this.selectedFields)}},setSelectedFields(e){e==null&&(e=[]),this.selectedFields=this.selectedFields.concat(e),this.selectRow(this.selectedFields[this.selectedFields.length-1]),this.$emit("update:modelValue",this.selectedFields)},formatCondition(e){if(e===""||!e)return this.$t("workflowEditor.task.nothing");const t=[];return parseCondition$1(t,e),displayCondition(t)},getFieldLabel(e){const t=this.formFieldsWithSub.filter(o=>o.name===e.name);return t.length>0?t[0].label:""},selectCondition(e){this.selectRow(e),this.showAdditionalCondition=!0}}},_hoisted_1$y={style:{width:"100%"}};function _sfc_render$$(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),d=Vue.resolveComponent("el-radio"),u=Vue.resolveComponent("el-radio-group"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("editable-field-selection"),C=Vue.resolveComponent("additional-condition-dialog");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$y,[Vue.createVNode(l,{style:{"padding-bottom":"10px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.selectedFields,border:"","highlight-current-row":"",onSelectionChange:i.handleSelectionChange,onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"selection",width:"55"}),Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{label:e.$t("workflowEditor.common.name"),width:"180"},{default:Vue.withCtx(g=>[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:g.row.name&&g.row.name.indexOf("$")===0?"#409EFF":""})},Vue.toDisplayString(i.getFieldLabel(g.row)),5)]),_:1},8,["label"]),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.task.propertyName"),width:"180"},null,8,["label"]),Vue.createVNode(a,{prop:"constraintRule",label:e.$t("workflowEditor.task.editingMethod")},{default:Vue.withCtx(g=>[Vue.createVNode(u,{modelValue:g.row.constraintRule,"onUpdate:modelValue":E=>g.row.constraintRule=E},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(d,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"condition",label:e.$t("workflowEditor.task.condition")},{default:Vue.withCtx(g=>[Vue.createVNode(c,{value:i.formatCondition(g.row.condition),type:"textarea",autosize:"",onFocus:E=>i.selectCondition(g.row)},null,8,["value","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange","onCurrentChange"]),n.showFieldSelection?(Vue.openBlock(),Vue.createBlock(A,{key:0,"disabled-fields":n.disabledFields,onInputValue:i.setSelectedFields,onClose:t[0]||(t[0]=g=>n.showFieldSelection=!1)},null,8,["disabled-fields","onInputValue"])):Vue.createCommentVNode("",!0),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(C,{key:1,modelValue:n.currentRow.condition,"onUpdate:modelValue":t[1]||(t[1]=g=>n.currentRow.condition=g),onClose:t[2]||(t[2]=g=>n.showAdditionalCondition=!1)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)])}const EditableFields=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$$]]),utiljs={xmlToData(e){const t=[];if(e){const n=e.split(" ");if(n&&n.length>0){let i=1,s="",l="",a="",d="",u="",c="",m=null;for(var o=0;o<n.length;o++){var r=n[o];if(r.indexOf("(")!==-1){this.operationArr&&this.operationArr.push([]),s="",l="",a="",d="",u="",c="";const A=r.split("${field[");if(s=A[0],l=A[1].replace("]}",""),this.operationArr){const C=this.getOperators(this.fieldMap[l]);this.operationArr[i-1]=C}continue}if(r.indexOf("(")===-1&&r.indexOf("${field[")!==-1){if(this.operationArr&&this.operationArr.push([]),s="",l="",a="",d="",u="",c="",l=r.replace("${field[","").replace("]}",""),this.operationArr){const A=this.getOperators(this.fieldMap[l]);this.operationArr[i-1]=A}continue}if(r.indexOf("operator.")!==-1&&r.indexOf("condition.")===-1){a=r;continue}if(a!==""&&d===""){r.indexOf(")")!==-1?r.indexOf(")))")!==-1?(d=r.replace(")))",""),u=")))"):r.indexOf("))")!==-1?(d=r.replace("))",""),u="))"):r.indexOf(")")!==-1&&(d=r.replace(")",""),u=")"):d=r,d&&d!==""&&(d.indexOf("${task.")!==-1?m="task":d.indexOf("${context.")!==-1?m="context":d.indexOf("${obj.")!==-1?m="obj":d.indexOf("${subObj.")!==-1?m="subObj":d.indexOf("${request.")!==-1?m="request":d.indexOf("${input.")!==-1?m="input":d.indexOf("${custom.")!==-1&&(m="custom"));continue}r.indexOf("condition.")!==-1?(c=r,t.push({id:i,leftBracket:s,propName:l,operator:a,propValue:d,rightBracket:u,logicOperator:c,propValueType:m}),i+=1):d&&d!==""&&(!c||c==="")&&(c="condition.operator.or",t.push({id:i,leftBracket:s,propName:l,operator:a,propValue:d,rightBracket:u,logicOperator:c,propValueType:m}),i+=1)}}}return t},getOperatorsArr(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){this.operationArr.push([]);const o=e[t],r=this.getOperators(this.fieldMap[o.propName]);this.operationArr[t]=r}},getRetunrOperatorsArr(e,t){const o=[];if(e&&e.length>0)for(var r=0;r<e.length;r++){o.push([]);const n=e[r],i=this.getOperators(t[n.propName]);o[r]=i}return o},dataToXml(e){let t="";if(e&&e.length>0)for(var o=0;o<e.length;o++){var r=e[o];let n=r.logicOperator;o===e.length-1&&(n=""),t=t+r.leftBracket+"${field["+r.propName+"]} "+r.operator+" "+r.propValue+r.rightBracket+" "+n+" "}return t},formatConditionList(e){let t="";if(e)if(typeof e=="string"){const o=this.xmlToData(e);t=this.formatConditionListTwo(o)}else t=this.formatConditionListTwo(e);if(t&&t!==""){const o=t.substring(t.length-1);(o==="者"||o==="且")&&(t=t.substring(0,t.length-2))}return t},formatConditionListTwo(e){let t="";if(e&&e.length>0)for(var o=0;o<e.length;o++){const r=e[o];if(r&&r.propName){const n=this.getOperators(this.fieldMap[r.propName]);if(n&&n.length>0){const i=n.filter(s=>s.name===r.operator);t+=r.leftBracket,this.fieldMap[r.propName]&&this.fieldMap[r.propName].label&&(t+=this.fieldMap[r.propName].label+" "),i&&i.length>0&&(t+=i[0].label+" "),t+=r.propValue+r.rightBracket+" ",r.logicOperator&&(r.logicOperator==="or"?t+="或者":t+="并且")}}}return t},getOperators(e){return e?e.type==="INTEGER"||e.type==="LONG"||e.type==="DOUBLE"||e.type==="FLOAT"?[{name:"operator.number.gt",label:getI18n().t("workflowEditor.process.greaterThan")},{name:"operator.number.lt",label:getI18n().t("workflowEditor.process.lessThan")},{name:"operator.number.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.number.le",label:getI18n().t("workflowEditor.process.notGreaterThan")},{name:"operator.number.ge",label:getI18n().t("workflowEditor.process.notLessThan")},{name:"operator.number.ne",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:e.type==="DATE"||e.type==="TIME"?[{name:"operator.date.gt",label:getI18n().t("workflowEditor.process.laterThan")},{name:"operator.date.lt",label:getI18n().t("workflowEditor.process.earlierThan")},{name:"operator.date.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.date.le",label:getI18n().t("workflowEditor.process.noLaterThan")},{name:"operator.date.ge",label:getI18n().t("workflowEditor.process.noEarlierThan")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:e.type==="TEXT"?[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.contain",label:getI18n().t("workflowEditor.process.contain")},{name:"operator.text.contain.not",label:getI18n().t("workflowEditor.process.notIncluded")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}]}},userStandardFieldsForReminder={"${instanceCreatorName}":getI18n().t("workflowEditor.process.processInitiator"),"${instanceCreatorDirectSuperiorName}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),"${instanceCreatorDeptApprover}":getI18n().t("workflowEditor.process.deptApprover"),"${instanceCreatorDirectSuperiorDeptApprover}":getI18n().t("workflowEditor.process.superiorDeptApprover"),"${instanceCreatorDirectSuperiorDeptLeader}":getI18n().t("workflowEditor.process.superiorDeptLeader"),"${currentTransactorName}":getI18n().t("workflowEditor.process.nameOfCurrentHandler"),"${currentTransactorDirectSuperiorName}":getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler")},departmentStandardFieldsForReminder={"${instanceCreatorDepartment}":getI18n().t("workflowEditor.process.processInitiatorDepartment"),"${instanceCreatorSuperiorDepartment}":getI18n().t("workflowEditor.process.sponsorsSuperiorDepartment"),"${instanceCreatorUpstageDepartment}":getI18n().t("workflowEditor.process.sponsorTopDepartment"),"${instanceCreatorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"),"${currentTransactorDepartment}":getI18n().t("workflowEditor.process.currentHandlerDepartment"),"${currentTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"),"${currentTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"),"${currentTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment")},workgroupStandardFieldsForReminder={"${instanceCreatorrWorkGroup}":getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),"${instanceCreatorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"),"${currentTransactorWorkGroup}":getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),"${currentTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler")},conditionTypes={"${user}":getI18n().t("workflowEditor.common.user"),"${department}":getI18n().t("workflowEditor.common.department"),"${role}":getI18n().t("workflowEditor.common.role"),"${workgroup}":getI18n().t("workflowEditor.common.workgroup")},logicOperators={"condition.operator.or":getI18n().t("workflowEditor.process.perhaps"),"condition.operator.and":getI18n().t("workflowEditor.process.also")},operators={"operator.text.eq":getI18n().t("workflowEditor.process.beEqualTo"),"operator.text.neq":getI18n().t("workflowEditor.process.notEqualTo")},allStandardFieldsForReminder={...userStandardFieldsForReminder,...departmentStandardFieldsForReminder,...workgroupStandardFieldsForReminder},userStandardFieldsForTransactor={"${instanceCreatorName}":getI18n().t("workflowEditor.process.processInitiator"),"${instanceCreatorDirectSuperiorName}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),"${instanceCreatorDeptApprover}":getI18n().t("workflowEditor.process.deptApprover"),"${instanceCreatorDirectSuperiorDeptApprover}":getI18n().t("workflowEditor.process.superiorDeptApprover"),"${instanceCreatorDirectSuperiorDeptLeader}":getI18n().t("workflowEditor.process.superiorDeptLeader")},departmentStandardFieldsForTransactor={"${upstageDepartment}":getI18n().t("workflowEditor.process.topDepartments"),"${instanceCreatorDepartment}":getI18n().t("workflowEditor.process.processInitiatorDepartment"),"${instanceCreatorSuperiorDepartment}":getI18n().t("workflowEditor.process.sponsorsSuperiorDepartment"),"${instanceCreatorUpstageDepartment}":getI18n().t("workflowEditor.process.sponsorTopDepartment"),"${instanceCreatorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"),"${previousTransactorDepartment}":getI18n().t("workflowEditor.process.lastLinkHandlerDepartment"),"${previousTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.previousLinkHandlerSuperiorDepartment"),"${previousTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.topDepartmentOfHandlerInThePreviousLink"),"${previousTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.previousLinkHandlersDirectSuperiorDepartment")},workgroupStandardFieldsForTransactor={"${instanceCreatorrWorkGroup}":getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),"${instanceCreatorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"),"${previousTransactorWorkGroup}":getI18n().t("workflowEditor.process.previousLinkHandlerWorkingGroup"),"${previousTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheManagerInThePreviousLink")};({...userStandardFieldsForTransactor,...departmentStandardFieldsForTransactor,...workgroupStandardFieldsForTransactor});function formatStandardValue(e){return allStandardFieldsForReminder[e]!==void 0?allStandardFieldsForReminder[e]:""}function parseCondition(e,t){let o=t.replace(/ condition.operator.or /g," condition.operator.or^_^");o=o.replace(/ condition.operator.and /g," condition.operator.and^_^");const r=o.split("^_^");let n=0;for(const i of r){if(i==="")continue;let s="",l="",a="",d="",u="",c="condition.operator.or";const m=i.split(" ");let A=m[0].indexOf("${");A>0?(s=m[0].substring(0,A),l=m[0].substring(A)):l=m[0],a=m[1],A=m[2].indexOf(")"),A>0?(d=m[2].substring(0,A),u=m[2].substring(A)):d=m[2],m.length===4&&(c=m[3]),e.push({id:n,leftBracket:s,key:l,operator:a,value:d,rightBracket:u,logicOperator:c}),n++}return n}function generateUserCondition(e){let t="";for(const n of e)n.value!==""&&(t=t+n.leftBracket+n.key+" "+n.operator+" "+n.value+n.rightBracket+" "+n.logicOperator+" ");const o=" condition.operator.or ",r=" condition.operator.and ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}function displayUserCondition(e){let t="";for(const n of e)n.value!==""&&(t=t+n.leftBracket+conditionTypes[n.key]+" "+operators[n.operator]+" "+formatStandardValue(n.value)+n.rightBracket+" "+logicOperators[n.logicOperator]+" ");const o=" "+getI18n().t("workflowEditor.process.perhaps")+" ",r=" "+getI18n().t("workflowEditor.process.also")+" ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}const _sfc_main$15={name:"CommonUserCondition",components:{ValueSelectionDialog},props:{modelValue:{type:String,default:null},usedIn:{type:String,default:"reminder"}},data(){const e=[];let t=0;return this.modelValue&&this.modelValue!==""&&(t=parseCondition(e,this.modelValue)),{users:e,count:t,currentRow:null,showValueDialog:!1}},computed:{standardFields(){let e=this.usedIn==="reminder"?userStandardFieldsForReminder:userStandardFieldsForTransactor;return this.currentRow.key==="${department}"?e=this.usedIn==="reminder"?departmentStandardFieldsForReminder:departmentStandardFieldsForTransactor:this.currentRow.key==="${workgroup}"?e=this.usedIn==="reminder"?workgroupStandardFieldsForReminder:workgroupStandardFieldsForTransactor:this.currentRow.key==="${role}"&&(e={}),e}},mounted(){this.users.length>0&&this.$refs.table.setCurrentRow(this.users[this.users.length-1]),this.$watch("users",function(e,t){this.$emit("update:modelValue",generateUserCondition(this.users))},{deep:!0})},methods:{format(e){return e.indexOf("${field[")>=0?getFormFieldLabel(e):e.indexOf("${")>=0?formatStandardValue(e):e.substring(0,e.indexOf("["))},selectRow(e){this.$refs.table.setCurrentRow(e)},openValueDialog(e){this.showValueDialog=!0,this.selectRow(e)},closeValueDialog(e){console.log(e),e!==void 0&&e!==""&&(this.currentRow.value=e),this.showValueDialog=!1},getCondition(e){return e.key+" "+e.operator+" "+e.value},handleCurrentChange(e){this.currentRow=e},getRowIndex(e){for(let t=0;t<this.users.length;t++)if(this.users[t].id===e.id)return t;return-1},add(){const e={id:this.count,leftBracket:"",key:"${user}",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.users.push(e),this.$refs.table.setCurrentRow(e),this.count++},insert(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}const e={id:this.count,leftBracket:"",key:"${user}",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.users.splice(this.getRowIndex(this.currentRow),0,e),this.$refs.table.setCurrentRow(e),this.count++},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.users.splice(e,1),this.users.length>0&&(e=e<=this.users.length-1?e:this.users.length-1,this.$refs.table.setCurrentRow(this.users[e]))},view(){let e=displayUserCondition(this.users);e===""&&(e=this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")),this.$confirm(e,this.$t("workflowEditorPublicModel.viewConditions"),{showConfirmButton:!1,showCancelButton:!1,callback:function(){}})},handleKeyChange(e){this.currentRow.value=""}}};function _sfc_render$_(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-option"),d=Vue.resolveComponent("el-select"),u=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("value-selection-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"ArrowRight",onClick:i.insert},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.insert")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"View",onClick:i.view},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.viewConditions")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.users,"row-key":"id",border:"",style:{width:"100%","padding-top":"10px"},"highlight-current-row":"",onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(u,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.leftBracket,"onUpdate:modelValue":g=>C.row.leftBracket=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:"(",value:"("}),Vue.createVNode(a,{label:"((",value:"(("}),Vue.createVNode(a,{label:"(((",value:"((("})]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1}),Vue.createVNode(u,{label:e.$t("workflowEditor.common.type"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.key,"onUpdate:modelValue":g=>C.row.key=g,placeholder:"",onFocus:g=>i.selectRow(C.row),onChange:i.handleKeyChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.common.user"),value:"${user}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.role"),value:"${role}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.department"),value:"${department}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.workgroup"),value:"${workgroup}"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus","onChange"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.operator,"onUpdate:modelValue":g=>C.row.operator=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.beEqualTo"),value:"operator.text.eq"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.notEqualTo"),value:"operator.text.neq"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(C=>[Vue.createVNode(c,{value:i.format(C.row.value),readonly:"",onClick:g=>i.openValueDialog(C.row)},null,8,["value","onClick"])]),_:1},8,["label"]),Vue.createVNode(u,{prop:"rightBracket",label:")",width:"90",onFocus:t[0]||(t[0]=C=>i.selectRow(e.scope.row))},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.rightBracket,"onUpdate:modelValue":g=>C.row.rightBracket=g,placeholder:""},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:")",value:")"}),Vue.createVNode(a,{label:"))",value:"))"}),Vue.createVNode(a,{label:")))",value:")))"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),Vue.createVNode(u,{prop:"logicOperator",label:e.$t("workflowEditorPublicModel.andOr"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.logicOperator,"onUpdate:modelValue":g=>C.row.logicOperator=g,placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showValueDialog?(Vue.openBlock(),Vue.createBlock(A,{key:0,"standard-fields":i.standardFields,"org-type":n.currentRow.key.substring(n.currentRow.key.indexOf("{")+1,n.currentRow.key.lastIndexOf("}")),onClose:i.closeValueDialog},null,8,["standard-fields","org-type","onClose"])):Vue.createCommentVNode("",!0)])}const CommonUserCondition=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$_]]),_sfc_main$14={components:{AdditionalCondition,CommonUserCondition},props:{conditionList:{type:[Array,String],default:null},userCondition:{type:String,default:null},parentCondition:{type:String,default:null},attributeMap:{type:Object,default:null},buttonType:{type:Object,default:null}},data(){let e;this.userCondition&&this.userCondition!==""&&(e=this.userCondition);let t;return this.parentCondition&&this.parentCondition!==""&&(t=this.parentCondition),{myUserCondition:e,myParentCondition:t,tableData:null,attributeArr:[],fieldMap:{},fieldNameMap:{},queryList:[],operationArr:[],parentAttributeArr:[],dialogVisible:!0}},created(){this.getAttributeArr()},computed:{...mapGetters("wfEditor",["propSettingKeyList"])},mounted(){this.conditionList&&(typeof this.conditionList=="object"?this.tableData=this.conditionList:this.tableData=this.xmlToData(this.conditionList),this.getOperatorsArr(this.tableData))},methods:{...utiljs,add(){this.tableData||(this.tableData=[]),this.tableData.push({leftBracket:"",propName:"",operator:"",propValue:"",rightBracket:"",logicOperator:"condition.operator.or",dataType:"",propDbName:""}),this.operationArr.push([])},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.tableData.splice(e,1),this.tableData.length>0&&(e=e<=this.tableData.length-1?e:this.tableData.length-1,this.$refs.table.setCurrentRow(this.tableData[e]))},changeFieldName(e){const t=this.currentRow.propName,o=this.fieldMap[t];o&&(this.tableData[e].dataType=o.type,this.tableData[e].propDbName=o.propDbName),this.operationArr[e]=this.getOperators(o)},getAttributeArr(){this.attributeMap&&this.attributeMap.attributeArr&&(this.attributeArr=this.attributeMap.attributeArr,this.queryList=this.attributeMap.attributeArr,this.fieldMap=this.attributeMap.fieldMap,this.fieldNameMap=this.attributeMap.fieldNameMap,this.parentAttributeArr=this.attributeMap.parentAttributeArr)},selectRow(e){this.attributeArr=this.queryList,this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},searchField(e){e&&(this.attributeArr=this.queryList.filter(t=>t.label.indexOf(e)>-1||t.value.indexOf(e)>-1))},getRowIndex(e){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].propName===e.propName)return t;return-1},savebuttonSetting(){if(this.tableData&&this.tableData.length>0){for(var e=0;e<this.tableData.length;e++)if(!this.tableData[e].propName){this.$alert(this.$t("workflowEditorMessage.blankFieldNameOrValue"));return}}const t={userCondition:this.myUserCondition,parentCondition:this.myParentCondition,condition:this.tableData};this.$emit("close",t)},closeButtonSetting(){this.savebuttonSetting(),this.$emit("close",null)},changePropValue(e){this.tableData[e]&&this.tableData[e].propValue?this.tableData[e].propValueType&&(this.tableData[e].propValueType==="request"&&(this.tableData[e].propValue.indexOf("${request.")===-1&&(this.tableData[e].propValue="${request."+this.tableData[e].propValue),this.tableData[e].propValue.indexOf("}")===-1&&(this.tableData[e].propValue=this.tableData[e].propValue+"}")),this.tableData[e].propValueType==="input"&&(this.tableData[e].propValue.indexOf("${input.")===-1&&(this.tableData[e].propValue="${input."+this.tableData[e].propValue),this.tableData[e].propValue.indexOf("}")===-1&&(this.tableData[e].propValue=this.tableData[e].propValue+"}"))):this.tableData[e].propValueType=null}}},_hoisted_1$x={style:{"overflow-y":"auto","max-height":"500px"}},_hoisted_2$k={class:"operation-area"},_hoisted_3$7={class:"clearfix"},_hoisted_4$5={class:"clearfix"};function _sfc_render$Z(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("common-user-condition"),a=Vue.resolveComponent("el-card"),d=Vue.resolveComponent("additional-condition"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),A=Vue.resolveComponent("el-table-column"),C=Vue.resolveComponent("el-date-picker"),g=Vue.resolveComponent("el-input"),E=Vue.resolveComponent("el-table"),p=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(p,{"show-close":!0,"append-to-body":!0,style:{width:"100%"},title:e.$t("workflowEditor.condition.combinationCondition"),"model-value":"",onClose:i.closeButtonSetting},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$x,[Vue.createElementVNode("div",_hoisted_2$k,[Vue.createVNode(s,{size:"small",type:"primary",onClick:i.savebuttonSetting},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditorPublicModel.save")),1)]),_:1},8,["onClick"])]),Vue.createElementVNode("div",null,[Vue.createVNode(a,{class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_3$7,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.personnelScope")),1)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(l,{modelValue:n.myUserCondition,"onUpdate:modelValue":t[0]||(t[0]=f=>n.myUserCondition=f),"used-in":"transactor"},null,8,["modelValue"])])]),_:1}),Vue.createVNode(a,{class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$5,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.mainTableConditions")),1)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(d,{modelValue:n.myParentCondition,"onUpdate:modelValue":t[1]||(t[1]=f=>n.myParentCondition=f)},null,8,["modelValue"])])]),_:1}),o.buttonType!=="notEmpty"&&o.buttonType!=="add"?(Vue.openBlock(),Vue.createBlock(a,{key:0,class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.subtableCondition")),1)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(u,{style:{"padding-bottom":"8px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(E,{id:"tableDataDialog",ref:"table",data:n.tableData,border:"",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(A,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.leftBracket,"onUpdate:modelValue":w=>f.row.leftBracket=w,size:"small",clearable:"",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"",value:""}),Vue.createVNode(c,{label:"(",value:"("}),Vue.createVNode(c,{label:"((",value:"(("}),Vue.createVNode(c,{label:"(((",value:"((("})]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1}),Vue.createVNode(A,{label:e.$t("workflowEditor.common.fieldName"),width:"200"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.propName,"onUpdate:modelValue":w=>f.row.propName=w,"filter-method":i.searchField,size:"small",clearable:"",filterable:"",onFocus:w=>i.selectRow(f.row),onChange:w=>i.changeFieldName(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,w=>(Vue.openBlock(),Vue.createBlock(c,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","filter-method","onFocus","onChange"])]),_:1},8,["label"]),Vue.createVNode(A,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.operator,"onUpdate:modelValue":w=>f.row.operator=w,size:"small",clearable:"",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.operationArr[f.$index],w=>(Vue.openBlock(),Vue.createBlock(c,{key:w.name,label:w.label,value:w.name},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"]),Vue.createVNode(A,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(f=>[f.row.propValueType?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(m,{key:0,modelValue:f.row.propValueType,"onUpdate:modelValue":w=>f.row.propValueType=w,size:"small",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.fillInManually"),value:"input"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.environmentVariable"),value:"context"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.requestParameters"),value:"request"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.mainTableField"),value:"obj"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.databaseFields"),value:"subObj"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.taskFields"),value:"task"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.systemParameter"),value:"custom"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])),f.row.propValueType==="context"?(Vue.openBlock(),Vue.createBlock(m,{key:1,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,clearable:"",size:"small",title:f.row.propValue,filterable:"","default-first-option":"","allow-create":"",onChange:w=>i.changePropValue(f.$index),onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTime"),value:"${context.currentTime}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactor"),value:"${context.currentTransactor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorName"),value:"${context.currentTransactorName}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorId"),value:"${context.currentTransactorId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorMainDepartmentId"),value:"${context.currentTransactorMainDepartmentId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorMainDepartment"),value:"${context.currentTransactorMainDepartment}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorRoleId"),value:"${context.currentTransactorRoleId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorRole"),value:"${context.currentTransactorRole}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorWorkGroupId"),value:"${context.currentTransactorWorkGroupId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorWorkGroup"),value:"${context.currentTransactorWorkGroup}"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange","onFocus"])):Vue.createCommentVNode("",!0),f.row.propValueType==="task"?(Vue.openBlock(),Vue.createBlock(m,{key:2,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,clearable:"",size:"small",title:f.row.propValue,filterable:"","default-first-option":"","allow-create":"",onChange:w=>i.changePropValue(f.$index),onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentHandler"),value:"${task.transactor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTaskClient"),value:"${task.trustor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentAssignor"),value:"${task.assigner}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.linkName"),value:"${task.name}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.linkCode"),value:"${task.nodeId}"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange","onFocus"])):Vue.createCommentVNode("",!0),f.row.dataType==="DATE"&&f.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(C,{key:3,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,size:"small",clearable:"","value-format":"YYYY-MM-DD",title:f.row.propValue,type:"date",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.dataType==="TIME"&&f.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(C,{key:4,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,size:"small",title:f.row.propValue,clearable:"","value-format":"YYYY-MM-DD HH:mm:ss",type:"datetime",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.dataType!=="TIME"&&f.row.dataType!=="DATE"&&f.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(g,{key:5,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,modelModifiers:{trim:!0},title:f.row.propValue,clearable:"",size:"small",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="request"?(Vue.openBlock(),Vue.createBlock(g,{key:6,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,modelModifiers:{trim:!0},title:f.row.propValue,clearable:"",size:"small",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="subObj"?(Vue.openBlock(),Vue.createBlock(m,{key:7,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,title:f.row.propValue,"filter-method":i.searchField,size:"small",clearable:"",filterable:"",onChange:w=>i.changePropValue(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,w=>(Vue.openBlock(),Vue.createBlock(c,{key:"${subObj."+w.value+"}",label:w.label,value:"${subObj."+w.value+"}"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","title","filter-method","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="obj"?(Vue.openBlock(),Vue.createBlock(m,{key:8,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,title:f.row.propValue,size:"small",clearable:"",filterable:"",onChange:w=>i.changePropValue(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.parentAttributeArr,w=>(Vue.openBlock(),Vue.createBlock(c,{key:"${obj."+w.value+"}",label:w.label,value:"${obj."+w.value+"}"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="custom"?(Vue.openBlock(),Vue.createBlock(m,{key:9,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,title:f.row.propValue,size:"small",clearable:"",filterable:"",onChange:w=>i.changePropValue(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.propSettingKeyList,w=>(Vue.openBlock(),Vue.createBlock(c,{key:"${custom."+w+"}",label:w,value:"${custom."+w+"}"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(A,{prop:"rightBracket",label:")",width:"90",onFocus:t[2]||(t[2]=f=>i.selectRow(e.scope.row))},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.rightBracket,"onUpdate:modelValue":w=>f.row.rightBracket=w,size:"small",clearable:""},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"",value:""}),Vue.createVNode(c,{label:")",value:")"}),Vue.createVNode(c,{label:"))",value:"))"}),Vue.createVNode(c,{label:")))",value:")))"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),Vue.createVNode(A,{label:e.$t("workflowEditorPublicModel.andOr"),prop:"logicOperator",width:"110"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.logicOperator,"onUpdate:modelValue":w=>f.row.logicOperator=w,size:"small",clearable:"",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])])]),_:1})):Vue.createCommentVNode("",!0)])])]),_:1},8,["title","onClose"])}const selectionConditions=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$Z]]),_sfc_main$13={name:"EditableChildFieldSetting",components:{selectionConditions},props:{setting:{type:Object,default:null},tableName:{type:String,default:null}},data(){let e=[];this.setting&&this.setting.actionArr&&(e=this.setting.actionArr);let t=[];this.setting&&this.setting.fieldArr&&(t=this.setting.fieldArr);let o;this.setting&&this.setting.visibleConditionArr&&(o=this.setting.visibleConditionArr);let r;this.setting&&this.setting.modelName&&(r=this.setting.modelName);let n;return this.setting&&this.setting.sumPermission!==null&&(n=this.setting.sumPermission),{sumPermission:n,subtableConditionItem:null,attributeArr:null,showAdditionalCondition:!1,currentRow:null,multipleSelection:null,actionArr:e,fieldArr:t,queryList:null,fieldMap:null,fieldNameMap:null,actionVisibleConditionArr:o,buttonType:null,buttonVisibleCon:null,showButtonVisibleFlag:!1,clickButton:!1,operationArr:[],modelName:r}},watch:{setting:{handler(e,t){e&&e.actionArr&&(this.actionArr=e.actionArr),e&&e.fieldArr&&(this.fieldArr=e.fieldArr),e&&e.actionVisibleConditionArr&&(this.actionVisibleConditionArr=e.actionVisibleConditionArr),this.modelName=e.modelName,this.sumPermission=e.sumPermission,this.combinationParameters()},deep:!0}},computed:{...mapGetters("wfEditor",["subtableConditionMap"])},created(){this.subtableConditionMap&&this.tableName&&(this.subtableConditionItem=this.subtableConditionMap[this.tableName],this.getAttributeArr())},mounted(){this.subtableConditionMap&&this.tableName&&(this.subtableConditionItem=this.subtableConditionMap[this.tableName],this.subtableConditionMap[this.tableName]&&(this.attributeArr=this.subtableConditionItem.attributeArr))},methods:{...utiljs,getAttributeArr(){this.subtableConditionItem&&this.subtableConditionItem.attributeArr&&(this.queryList=this.subtableConditionItem.attributeArr,this.fieldMap=this.subtableConditionItem.fieldMap,this.fieldNameMap=this.subtableConditionItem.fieldNameMap)},savebuttonSetting(e){e&&(this.currentRow.condition=e.condition,this.currentRow.userCondition=e.userCondition,this.currentRow.parentCondition=e.parentCondition,this.combinationParameters()),this.showAdditionalCondition=!1},handleCurrentChange(e){this.currentRow=e},handleSelectionChange(e){this.multipleSelection=e},selectRow(e){this.$refs.table.setCurrentRow(e)},add(){this.fieldArr||(this.fieldArr=[]),this.fieldArr.push({name:null,constraintRule:null,condition:null}),this.combinationParameters()},getCurrentRowIndex(){let e=-1;for(let t=0;t<this.fieldArr.length;t++)if(this.fieldArr[t].name===this.currentRow.name){e=t;break}return e},remove(){if(this.multipleSelection&&this.multipleSelection.length>0){for(var e=0;e<this.multipleSelection.length;e++){const t=this.multipleSelection[e];this.selectRow(t);const o=this.getCurrentRowIndex();this.fieldArr.splice(o,1)}this.combinationParameters()}},selectCondition(e){this.selectRow(e),this.showAdditionalCondition=!0},showButtonVisible(e){this.clickButton=!0,this.buttonType=e,this.actionVisibleConditionArr&&this.actionVisibleConditionArr[e]?this.buttonVisibleCon=this.actionVisibleConditionArr[e]:this.buttonVisibleCon={},this.showButtonVisibleFlag=!0},saveButtonVisible(e){e&&(this.actionVisibleConditionArr||(this.actionVisibleConditionArr={}),this.actionVisibleConditionArr[this.buttonType]=e,this.combinationParameters()),this.showButtonVisibleFlag=!1},changeActionArr(){this.clickButton?(this.actionArr.push(this.buttonType),this.clickButton=!1):this.combinationParameters()},combinationParameters(){const e={};e.modelName=this.modelName,e.tableName=this.tableName,e.permission=this.sumPermission;const t=[];if(this.actionArr&&this.actionArr.length>0&&(this.actionArr.forEach(o=>{const r={};if(r.name=o,this.actionVisibleConditionArr&&this.actionVisibleConditionArr[o]){const n=this.actionVisibleConditionArr[o];r.condition=this.dataToXml(n.condition),r.parentCondition=n.parentCondition,r.userCondition=n.userCondition}t.push(r)}),e.action=t),this.fieldArr&&this.fieldArr.length>0){const o=[];this.fieldArr.forEach(r=>{const n={};n.name=r.name,n.constraintRule=r.constraintRule,r.condition&&(n.condition=this.dataToXml(r.condition)),n.userCondition=r.userCondition,n.parentCondition=r.parentCondition,o.push(n)}),e.field=o}console.log("触发combinationParameters",e),this.$emit("combinationParameters",e)}}};function _sfc_render$Y(e,t,o,r,n,i){const s=Vue.resolveComponent("Tools"),l=Vue.resolveComponent("el-icon"),a=Vue.resolveComponent("el-checkbox"),d=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-checkbox-group"),m=Vue.resolveComponent("selection-conditions"),A=Vue.resolveComponent("el-button"),C=Vue.resolveComponent("el-table-column"),g=Vue.resolveComponent("el-option"),E=Vue.resolveComponent("el-select"),p=Vue.resolveComponent("el-radio"),f=Vue.resolveComponent("el-radio-group"),w=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createElementVNode("div",null,[Vue.createVNode(c,{modelValue:n.actionArr,"onUpdate:modelValue":t[4]||(t[4]=v=>n.actionArr=v),onChange:i.changeActionArr},{default:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"notEmpty"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.tableDataNotEmpty"))+" ",1),n.actionArr&&n.actionArr.indexOf("notEmpty")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[0]||(t[0]=v=>i.showButtonVisible("notEmpty"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"add"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.rowsCanBeAdded"))+" ",1),n.actionArr&&n.actionArr.indexOf("add")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[1]||(t[1]=v=>i.showButtonVisible("add"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"delete"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.deleteLine"))+" ",1),n.actionArr&&n.actionArr.indexOf("delete")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[2]||(t[2]=v=>i.showButtonVisible("delete"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"update"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.modifiableHistoricalData"))+" ",1),n.actionArr&&n.actionArr.indexOf("update")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[3]||(t[3]=v=>i.showButtonVisible("update"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onChange"]),n.showButtonVisibleFlag?(Vue.openBlock(),Vue.createBlock(m,{key:0,"attribute-map":n.subtableConditionItem,"condition-list":n.buttonVisibleCon.condition,"parent-condition":n.buttonVisibleCon.parentCondition,"user-condition":n.buttonVisibleCon.userCondition,"button-type":n.buttonType,onClose:i.saveButtonVisible},null,8,["attribute-map","condition-list","parent-condition","user-condition","button-type","onClose"])):Vue.createCommentVNode("",!0)]),Vue.createElementVNode("div",null,[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(A,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(A,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(w,{ref:"table",data:n.fieldArr,border:"","highlight-current-row":"",style:{width:"100%"},onSelectionChange:i.handleSelectionChange,onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(C,{type:"selection",width:"55",align:"center"}),Vue.createVNode(C,{type:"index",width:"50",align:"center"}),Vue.createVNode(C,{prop:"name",label:e.$t("workflowEditor.task.propertyName"),width:"280",align:"center"},{default:Vue.withCtx(v=>[Vue.createVNode(E,{modelValue:v.row.name,"onUpdate:modelValue":b=>v.row.name=b,size:"small",filterable:"",onChange:i.combinationParameters},{default:Vue.withCtx(()=>[Vue.createVNode(g,{label:e.$t("workflowEditor.condition.allFields"),value:"all_fields"},null,8,["label"]),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,b=>(Vue.openBlock(),Vue.createBlock(g,{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Vue.createVNode(C,{prop:"constraintRule",label:e.$t("workflowEditor.task.editingMethod"),width:"380",align:"center"},{default:Vue.withCtx(v=>[Vue.createVNode(f,{modelValue:v.row.constraintRule,"onUpdate:modelValue":b=>v.row.constraintRule=b,onChange:i.combinationParameters},{default:Vue.withCtx(()=>[Vue.createVNode(p,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(p,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Vue.createVNode(C,{prop:"condition",label:e.$t("workflowEditor.task.condition"),align:"center"},{default:Vue.withCtx(v=>[Vue.createVNode(l,{onClick:b=>i.selectCondition(v.row)},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange","onCurrentChange"]),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(m,{key:0,"attribute-map":n.subtableConditionItem,"condition-list":n.currentRow.condition,"parent-condition":n.currentRow.parentCondition,"user-condition":n.currentRow.userCondition,onClose:i.savebuttonSetting},null,8,["attribute-map","condition-list","parent-condition","user-condition","onClose"])):Vue.createCommentVNode("",!0)])])}const editableChildFieldSetting=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$Y]]),_sfc_main$12={name:"EditableChildFields",components:{editableChildFieldSetting},props:{modelValue:{type:[Array,Object],default:null}},data(){let e=[];return this.modelValue!==""&&this.modelValue!==null&&this.modelValue!==void 0&&(Array.isArray(this.modelValue)?e=this.modelValue:e.push(this.modelValue)),{selectedFields:e,selectedFieldMap:{}}},computed:{...mapGetters("wfEditor",["subtableConditionMap"])},watch:{},created(){if(this.selectedFields&&this.selectedFields.length>0&&this.selectedFields.forEach(t=>{const o={},r=t.tableName;if(t.action)if(Array.isArray(t.action)){if(t.action.length>0){const n=[],i={};t.action.forEach(s=>{n.push(s.name);const l={};s.condition&&(l.condition=this.xmlToData(s.condition)),l.parentCondition=s.parentCondition,l.userCondition=s.userCondition,i[s.name]=l}),o.actionArr=n,o.visibleConditionArr=i}}else{const n=[],i={};n.push(t.action.name);const s={};t.action.condition&&(s.condition=this.xmlToData(t.action.condition)),s.parentCondition=t.action.parentCondition,s.userCondition=t.action.userCondition,i[t.action.name]=s,o.actionArr=n,o.visibleConditionArr=i}if(t.field)if(Array.isArray(t.field)){if(t.field.length>0){const n=[];t.field.forEach(i=>{const s={};s.name=i.name,s.constraintRule=i.constraintRule,s.condition=this.xmlToData(i.condition),s.userCondition=i.userCondition,s.parentCondition=i.parentCondition,n.push(s)}),o.fieldArr=n}}else{const n=[],i={};i.name=t.field.name,i.constraintRule=t.field.constraintRule,i.condition=this.xmlToData(t.field.condition),i.userCondition=t.field.userCondition,i.parentCondition=t.field.parentCondition,n.push(i),o.fieldArr=n}t.modelName?o.modelName=t.modelName:o.modelName=null,t.permission?o.sumPermission=t.permission:o.sumPermission=!1,this.selectedFieldMap[r]=o}),this.subtableConditionMap){for(var e in this.subtableConditionMap)if(!this.selectedFieldMap[e]){const t={};t.tableName=e,t.modelName=this.subtableConditionMap[e].modelName,t.sumPermission=!1,this.selectedFieldMap[e]=t}}},mounted(){},methods:{...utiljs,combinationParameters(e){if(e&&e.tableName){if(this.selectedFields&&this.selectedFields.length>0){const t=this.selectedFields.findIndex(o=>o.tableName===e.tableName);t!==-1?this.selectedFields[t]=e:this.selectedFields.push(e)}else this.selectedFields=[],this.selectedFields.push(e);this.$emit("update:modelValue",this.selectedFields)}},refreshModelName(e){if(this.subtableConditionMap&&this.subtableConditionMap[e]&&this.subtableConditionMap[e].modelName){if(this.selectedFieldMap[e]){const t=this.selectedFieldMap[e];t.modelName=this.subtableConditionMap[e].modelName}else{const t={};t.modelName=this.subtableConditionMap[e].modelName,this.selectedFieldMap[e]=t}this.$message({showClose:!0,type:"success",message:this.$t("workflowEditorMessage.updateSuccessful")})}},changeSumPermission(e){if(e&&this.selectedFieldMap[e])if(this.selectedFields||(this.selectedFields=[]),this.selectedFieldMap[e].sumPermission===!1){const t=this.selectedFields.findIndex(o=>o.tableName===e);t!=null&&t!==-1?this.selectedFields[t].permission=!1:this.selectedFields[this.selectedFields.length]={permission:!1,tableName:e}}else{const t=this.selectedFields.findIndex(o=>o.tableName===e);t!=null&&t!==-1?this.selectedFields[t].permission=!0:this.selectedFields[this.selectedFields.length]={permission:!0,tableName:e}}this.$emit("update:modelValue",this.selectedFields)}}},_hoisted_1$w={style:{width:"100%","margin-top":"10px"}},_hoisted_2$j={class:"clearfix"},_hoisted_3$6={key:0},_hoisted_4$4={style:{color:"cornflowerblue"}},_hoisted_5$4={style:{"padding-left":"5px"}},_hoisted_6$3={key:0};function _sfc_render$X(e,t,o,r,n,i){const s=Vue.resolveComponent("el-col"),l=Vue.resolveComponent("el-switch"),a=Vue.resolveComponent("el-row"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-button"),c=Vue.resolveComponent("editable-child-field-setting"),m=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$w,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.subtableConditionMap,(A,C)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:C},[Vue.createVNode(m,{class:"box-card"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$j,[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{span:12},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(C),1)]),_:2},1024),n.selectedFieldMap[C]?(Vue.openBlock(),Vue.createBlock(s,{key:0,span:12},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.selectedFieldMap[C].sumPermission,"onUpdate:modelValue":g=>n.selectedFieldMap[C].sumPermission=g,"inactive-text":e.$t("workflowEditor.condition.accessControl"),onChange:g=>i.changeSumPermission(C)},null,8,["modelValue","onUpdate:modelValue","inactive-text","onChange"])]),_:2},1024)):Vue.createCommentVNode("",!0)]),_:2},1024),Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[n.selectedFieldMap[C]&&n.selectedFieldMap[C].sumPermission?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$6,[Vue.createElementVNode("span",_hoisted_4$4,Vue.toDisplayString(e.$t("workflowEditor.condition.formBindingModel"))+":",1),Vue.createElementVNode("span",_hoisted_5$4,[Vue.createVNode(d,{modelValue:n.selectedFieldMap[C].modelName,"onUpdate:modelValue":g=>n.selectedFieldMap[C].modelName=g,style:{width:"300px"}},null,8,["modelValue","onUpdate:modelValue"])]),Vue.createVNode(u,{icon:"el-icon-refresh",type:"text",onClick:g=>i.refreshModelName(C)},null,8,["onClick"])])):Vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),n.selectedFieldMap[C]&&n.selectedFieldMap[C].sumPermission?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_6$3,[Vue.createVNode(c,{setting:n.selectedFieldMap[C],"table-name":C,onCombinationParameters:i.combinationParameters},null,8,["setting","table-name","onCombinationParameters"])])):Vue.createCommentVNode("",!0)]),_:2},1024)]))),128))])}const editableChildFields=_export_sfc$1(_sfc_main$12,[["render",_sfc_render$X]]),systemRoleTree_vue_vue_type_style_index_0_lang="",_sfc_main$11={name:"SystemRoleTree",components:{InlineSystemRoleTree:_sfc_main$1g},props:{multiple:{type:Boolean,default:!1}},data(){return{dialogVisible:!0}},computed:{},watch:{},created(){},methods:{roleResult(e){e?this.$emit("close",e):this.$emit("close")},selectRoles(){this.$refs.systemRoleTree.selectRole()}}};function _sfc_render$W(e,t,o,r,n,i){const s=Vue.resolveComponent("inline-system-role-tree"),l=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(a,{"model-value":"",title:e.$t("workflowEditorMessage.selectRole"),width:"30%",top:"10vh","append-to-body":"",class:"properties-editor-noTab","close-on-click-modal":!1,onClose:t[1]||(t[1]=d=>e.$emit("close"))},Vue.createSlots({default:Vue.withCtx(()=>[Vue.createVNode(s,{ref:"systemRoleTree",multiple:o.multiple,onResult:i.roleResult},null,8,["multiple","onResult"])]),_:2},[o.multiple?{name:"footer",fn:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"small",onClick:i.selectRoles},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{size:"small",onClick:t[0]||(t[0]=d=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),key:"0"}:void 0]),1032,["title"])}const SystemRoleTree=_export_sfc$1(_sfc_main$11,[["render",_sfc_render$W]]),_sfc_main$10={name:"UserSelection",components:{SystemRoleTree,FormFields},props:{label:{type:String,default:""},labelWidth:{type:String,default:null},modelValue:{type:String,default:""},currentTransactor:{type:Boolean,default:!1}},data(){let e=!1,t="";const o=this.modelValue.split("; "),r=o[0].split(" condition.operator.or ");return o.length===2&&(e=!0,t=o[1].split(" condition.operator.or "),r.push("assignUser")),{checkList:r,showUserList:e,selectedUsers:t,showSelectUser:!1,selectedUsersShowValue:null,showSelectDepartment:!1,showSelectWorkgroup:!1,showSelectRole:!1,showSelectField:!1}},watch:{checkList(e){this.$emit("update:modelValue",this.getValue())},selectedUsers(e){this.$emit("update:modelValue",this.getValue())}},created(){console.log(this.checkList),this.getSelectedUsersShowValue()},methods:{formatLabel(e){return getFormFieldLabel(e)},getValue(){let t=this.checkList.filter(o=>o!==""&&o!=="assignUser").join(" condition.operator.or ");return this.showUserList&&this.selectedUsers&&this.selectedUsers.length!==0&&(t=t+"; "+this.selectedUsers.join(" condition.operator.or ")),t},toggleUserList(){this.showUserList=!this.showUserList},resetSelectedUsers(){this.selectedUsers=[],this.selectedUsersShowValue=""},handleCommand(e){e==="selectUser"?this.selectPointUser():e==="selectDepartment"?this.selectPointDepartment():e==="selectRole"?this.selectPointRole():e==="selectWorkgroup"?this.selectPointWorkgroup():e==="selectField"&&this.selectPointField()},selectPointUser(){this.showSelectUser=!0},selectPointDepartment(){this.showSelectDepartment=!0},selectPointRole(){this.showSelectRole=!0},selectPointField(){this.showSelectField=!0},selectPointWorkgroup(){this.showSelectWorkgroup=!0},addPointUsers(e){e&&(e.containBranch?this.packageSelectedUserConditionsWithBranch(e.users):this.packageSelectedUserConditionsWithOutBranch(e.users),this.getSelectedUsersShowValue()),this.showSelectUser=!1},packageSelectedUserConditionsWithBranch(e){const t="~~",o="/",r="${user} operator.text.eq ";e.forEach(n=>{let i=n.loginName,s=n.name;if(n.subCompanyId&&n.subCompanyId!==null){const a=n.subCompanyCode,d=n.subCompanyName;i=i+t+a,s=s+o+d}else i=i+t+n.tenantCode,s=s+o+n.tenantName;const l=r+s+"["+i+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(l)).length===0&&this.selectedUsers.push(l):(this.selectedUsers=[],this.selectedUsers.push(l))})},packageSelectedUserConditionsWithOutBranch(e){const t="${user} operator.text.eq ";e.forEach(o=>{this.selectedUsers||(this.selectedUsers=[]);const r=t+o.name+"["+o.loginName+"]";this.selectedUsers.filter(this.filterCondition(r)).length===0&&this.selectedUsers.push(r)})},getSelectedUsersShowValue(){if(this.selectedUsers){const e=this.selectedUsers.join(" condition.operator.or ");this.selectedUsersShowValue=e.replace(/\$\{user\}/g,"用户").replace(/\$\{department\}/g,"部门").replace(/\$\{workGroup\}/g,"工作组").replace(/\$\{role\}/g,"角色").replace(/operator\.text\.eq/g,"等于").replace(/condition\.operator\.or/g,"或者").replace(/\$\{field/g,"字段").replace(/]\}/g,"]")}},filterCondition(e){return t=>t===e},addPointDepartments(e){e&&(e.containBranch?this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e.departments,"${department}"):this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.departments,"${department}"),this.getSelectedUsersShowValue()),this.showSelectDepartment=!1},packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e,t){const o="/",r=t+" operator.text.eq ";e.forEach(n=>{const i=n.code;let s=n.name;if(n.subCompanyId&&n.subCompanyId!==null){const a=n.subCompanyName;a&&a!==""&&(s=s+o+a)}else s=s+o+n.tenantName;const l=r+s+"["+i+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(l)).length===0&&this.selectedUsers.push(l):(this.selectedUsers=[],this.selectedUsers.push(l))})},packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e,t){const o=t+" operator.text.eq ";e.forEach(r=>{const n=o+r.name+"["+r.code+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(n)).length===0&&this.selectedUsers.push(n):(this.selectedUsers=[],this.selectedUsers.push(n))})},addPointWorkgroups(e){e&&(e.containBranch?this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e.workgroups,"${workGroup}"):this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.workgroups,"${workGroup}"),this.getSelectedUsersShowValue()),this.showSelectWorkgroup=!1},addPointRoles(e){e&&(this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.roles,"${role}"),this.getSelectedUsersShowValue()),this.showSelectRole=!1},packageSelectedFieldConditions(e,t){const r=t+" operator.text.eq "+"${field["+e+"]}";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(r)).length===0&&this.selectedUsers.push(r):(this.selectedUsers=[],this.selectedUsers.push(r))},setField(e){e!==void 0&&(this.packageSelectedFieldConditions(e,"${user}"),this.getSelectedUsersShowValue()),this.showSelectField=!1}}},_hoisted_1$v={key:0,style:{width:"100%","vertical-align":"middle"}},_hoisted_2$i={class:"el-dropdown-link"},_hoisted_3$5=Vue.createElementVNode("i",{class:"fa fa-search"},null,-1);function _sfc_render$V(e,t,o,r,n,i){const s=Vue.resolveComponent("el-checkbox"),l=Vue.resolveComponent("el-checkbox-group"),a=Vue.resolveComponent("el-col"),d=Vue.resolveComponent("el-dropdown-item"),u=Vue.resolveComponent("el-dropdown-menu"),c=Vue.resolveComponent("el-dropdown"),m=Vue.resolveComponent("el-button"),A=Vue.resolveComponent("el-row"),C=Vue.resolveComponent("el-input"),g=Vue.resolveComponent("department-user-tree"),E=Vue.resolveComponent("department-tree"),p=Vue.resolveComponent("workgroup-tree"),f=Vue.resolveComponent("system-role-tree"),w=Vue.resolveComponent("form-fields"),v=Vue.resolveComponent("el-form-item");return Vue.openBlock(),Vue.createBlock(v,{label:o.label,"label-width":o.labelWidth},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.checkList,"onUpdate:modelValue":t[0]||(t[0]=b=>n.checkList=b)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${instanceCreator}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processInitiator")),1)]),_:1}),Vue.createVNode(s,{label:"${processAdmin}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processAdministrator")),1)]),_:1}),o.currentTransactor?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:"${currentTransactor}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.currentHandler")),1)]),_:1})):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:"${allHandleTransactors}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.allHandlingPersonnel")),1)]),_:1})),Vue.createVNode(s,{label:"assignUser",onChange:i.toggleUserList},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.designatedPersonnel")),1)]),_:1},8,["onChange"])]),_:1},8,["modelValue"])]),_:1}),n.showUserList?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$v,[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(A,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:4},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.listOfDesignatedPersons")),1)]),_:1}),Vue.createVNode(a,{style:{display:"flex","justify-content":"center","align-items":"center"},span:5},{default:Vue.withCtx(()=>[Vue.createVNode(c,{size:"small","split-button":"",type:"primary",plain:"",onCommand:i.handleCommand},{dropdown:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{command:"selectUser",onClick:t[1]||(t[1]=b=>i.selectPointUser())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectusers")),1)]),_:1}),Vue.createVNode(d,{command:"selectDepartment",onClick:t[2]||(t[2]=b=>i.selectPointDepartment())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectDepartment")),1)]),_:1}),Vue.createVNode(d,{command:"selectWorkgroup",onClick:t[3]||(t[3]=b=>i.selectPointWorkgroup())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectTeam")),1)]),_:1}),Vue.createVNode(d,{command:"selectRole",onClick:t[4]||(t[4]=b=>i.selectPointRole())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectRole")),1)]),_:1}),Vue.createVNode(d,{command:"selectField",onClick:t[5]||(t[5]=b=>i.selectPointField())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectField")),1)]),_:1})]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_2$i,[_hoisted_3$5,Vue.createTextVNode(" "+Vue.toDisplayString(e.$t("workflowEditorPublicModel.choice")),1)])]),_:1},8,["onCommand"])]),_:1}),Vue.createVNode(a,{span:3},{default:Vue.withCtx(()=>[Vue.createVNode(m,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.resetSelectedUsers},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.empty")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),Vue.createVNode(A,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.selectedUsersShowValue,"onUpdate:modelValue":t[6]||(t[6]=b=>n.selectedUsersShowValue=b),type:"textarea",rows:2,placeholder:e.$t("workflowEditorMessage.pleaseSelectPersonnel")},null,8,["modelValue","placeholder"])]),_:1})]),_:1})]),_:1}),n.showSelectUser?(Vue.openBlock(),Vue.createBlock(g,{key:0,width:"60%",multiple:!0,onClose:i.addPointUsers},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectDepartment?(Vue.openBlock(),Vue.createBlock(E,{key:1,width:"30%",multiple:!0,onClose:i.addPointDepartments},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectWorkgroup?(Vue.openBlock(),Vue.createBlock(p,{key:2,width:"30%",multiple:!0,onClose:i.addPointWorkgroups},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectRole?(Vue.openBlock(),Vue.createBlock(f,{key:3,multiple:!0,onClose:i.addPointRoles},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectField?(Vue.openBlock(),Vue.createBlock(w,{key:4,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1},8,["label","label-width"])}const UserSelection=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$V]]),permissionSettings_vue_vue_type_style_index_0_scoped_c019538f_lang="",_sfc_main$$={name:"PermissionSettings",components:{EditableFields,UserSelection,AdditionalCondition,editableChildFields},props:{modelValue:{type:Object,default:null}},data(){const e=deepCopy(this.modelValue),t=["viewOpinion","editOpinion","requireOpinion","viewMeetingResult","viewVoteResult","viewFlowHistory","printForm"];t.forEach(r=>{e[r+"Checkbox"]=!!this.modelValue[r].condition});const o=["add","delete","download"];return o.forEach(r=>{e.attachment[r+"Checkbox"]=!!this.modelValue.attachment[r]&&!!this.modelValue.attachment[r].condition,e.attachment.permission||(e.attachment[r]={permission:!1,condition:""})}),{formModel:e,attrNames:t,attachmentAttrNames:o}},mounted(){this.$watch("formModel",function(e){const t={editForm:{},viewOpinion:{},editOpinion:{},requireOpinion:{},viewMeetingResult:{},viewVoteResult:{},viewFlowHistory:{},printForm:{},officialText:{},attachment:{},deleteInstance:{userCondition:""}};console.log("触发了watch"),t.editForm.permission=e.editForm.permission,e.editForm.permission&&(t.editForm.field=e.editForm.field,t.editForm.subTablePermission=e.editForm.subTablePermission),this.attrNames.map(o=>{t[o].permission=e[o].permission,e[o].permission&&e[o+"Checkbox"]?t[o].condition=e[o].condition:t[o].condition=""}),t.attachment.permission=e.attachment.permission,e.attachment.permission&&this.attachmentAttrNames.map(o=>{t.attachment[o]||(t.attachment[o]={}),t.attachment[o].permission=e.attachment[o].permission,e.attachment[o].permission&&e.attachment[o+"Checkbox"]?t.attachment[o].condition=e.attachment[o].condition:t.attachment[o].condition=""}),this.$emit("update:modelValue",t)},{deep:!0})},methods:{}};function _sfc_render$U(e,t,o,r,n,i){const s=Vue.resolveComponent("el-switch"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("editable-fields"),d=Vue.resolveComponent("editable-child-fields"),u=Vue.resolveComponent("el-checkbox"),c=Vue.resolveComponent("additional-condition"),m=Vue.resolveComponent("user-selection"),A=Vue.resolveComponent("el-card"),C=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(C,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowEditingForms")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.editForm.permission,"onUpdate:modelValue":t[0]||(t[0]=g=>n.formModel.editForm.permission=g)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[n.formModel.editForm.permission?(Vue.openBlock(),Vue.createBlock(a,{key:0,modelValue:n.formModel.editForm.field,"onUpdate:modelValue":t[1]||(t[1]=g=>n.formModel.editForm.field=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.editForm.permission?(Vue.openBlock(),Vue.createBlock(d,{key:1,modelValue:n.formModel.editForm.subTablePermission,"onUpdate:modelValue":t[2]||(t[2]=g=>n.formModel.editForm.subTablePermission=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},512),[[Vue.vShow,n.formModel.editForm.permission]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowViews")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewOpinion.permission,"onUpdate:modelValue":t[3]||(t[3]=g=>n.formModel.viewOpinion.permission=g)},null,8,["modelValue"]),n.formModel.viewOpinion.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewOpinionCheckbox,"onUpdate:modelValue":t[4]||(t[4]=g=>n.formModel.viewOpinionCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewOpinion.condition,"onUpdate:modelValue":t[5]||(t[5]=g=>n.formModel.viewOpinion.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewOpinion.permission&&n.formModel.viewOpinionCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.commentsAllowed")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.editOpinion.permission,"onUpdate:modelValue":t[6]||(t[6]=g=>n.formModel.editOpinion.permission=g)},null,8,["modelValue"]),n.formModel.editOpinion.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.editOpinionCheckbox,"onUpdate:modelValue":t[7]||(t[7]=g=>n.formModel.editOpinionCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.editOpinion.condition,"onUpdate:modelValue":t[8]||(t[8]=g=>n.formModel.editOpinion.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.editOpinion.permission&&n.formModel.editOpinionCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.commentsAreRequired")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.requireOpinion.permission,"onUpdate:modelValue":t[9]||(t[9]=g=>n.formModel.requireOpinion.permission=g)},null,8,["modelValue"]),n.formModel.requireOpinion.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.requireOpinionCheckbox,"onUpdate:modelValue":t[10]||(t[10]=g=>n.formModel.requireOpinionCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.requireOpinion.condition,"onUpdate:modelValue":t[11]||(t[11]=g=>n.formModel.requireOpinion.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.requireOpinion.permission&&n.formModel.requireOpinionCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowToViewCountersignatureResults")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewMeetingResult.permission,"onUpdate:modelValue":t[12]||(t[12]=g=>n.formModel.viewMeetingResult.permission=g)},null,8,["modelValue"]),n.formModel.viewMeetingResult.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewMeetingResultCheckbox,"onUpdate:modelValue":t[13]||(t[13]=g=>n.formModel.viewMeetingResultCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewMeetingResult.condition,"onUpdate:modelValue":t[14]||(t[14]=g=>n.formModel.viewMeetingResult.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewMeetingResult.permission&&n.formModel.viewMeetingResultCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowToViewVotingResults")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewVoteResult.permission,"onUpdate:modelValue":t[15]||(t[15]=g=>n.formModel.viewVoteResult.permission=g)},null,8,["modelValue"]),n.formModel.viewVoteResult.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewVoteResultCheckbox,"onUpdate:modelValue":t[16]||(t[16]=g=>n.formModel.viewVoteResultCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewVoteResult.condition,"onUpdate:modelValue":t[17]||(t[17]=g=>n.formModel.viewVoteResult.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewVoteResult.permission&&n.formModel.viewVoteResultCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowToViewFlowHistory")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewFlowHistory.permission,"onUpdate:modelValue":t[18]||(t[18]=g=>n.formModel.viewFlowHistory.permission=g)},null,8,["modelValue"]),n.formModel.viewFlowHistory.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewFlowHistoryCheckbox,"onUpdate:modelValue":t[19]||(t[19]=g=>n.formModel.viewFlowHistoryCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewFlowHistory.condition,"onUpdate:modelValue":t[20]||(t[20]=g=>n.formModel.viewFlowHistory.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewFlowHistory.permission&&n.formModel.viewFlowHistoryCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowFormsToPrint")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.printForm.permission,"onUpdate:modelValue":t[21]||(t[21]=g=>n.formModel.printForm.permission=g)},null,8,["modelValue"]),n.formModel.printForm.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.printFormCheckbox,"onUpdate:modelValue":t[22]||(t[22]=g=>n.formModel.printFormCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.printForm.condition,"onUpdate:modelValue":t[23]||(t[23]=g=>n.formModel.printForm.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.printForm.permission&&n.formModel.printFormCheckbox]]),Vue.createVNode(m,{modelValue:n.formModel.deleteInstance.userCondition,"onUpdate:modelValue":t[24]||(t[24]=g=>n.formModel.deleteInstance.userCondition=g),label:e.$t("workflowEditor.task.deletePermission"),"label-width":"100px","current-transactor":!0},null,8,["modelValue","label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.attachmentAuthority")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.permission,"onUpdate:modelValue":t[25]||(t[25]=g=>n.formModel.attachment.permission=g)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.attachment.permission?(Vue.openBlock(),Vue.createBlock(A,{key:0,class:"box-card"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.addAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.add.permission,"onUpdate:modelValue":t[26]||(t[26]=g=>n.formModel.attachment.add.permission=g)},null,8,["modelValue"]),n.formModel.attachment.add.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.attachment.addCheckbox,"onUpdate:modelValue":t[27]||(t[27]=g=>n.formModel.attachment.addCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.add.permission&&n.formModel.attachment.addCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.add.condition,"onUpdate:modelValue":t[28]||(t[28]=g=>n.formModel.attachment.add.condition=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.deleteAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.delete.permission,"onUpdate:modelValue":t[29]||(t[29]=g=>n.formModel.attachment.delete.permission=g)},null,8,["modelValue"]),n.formModel.attachment.delete.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.attachment.deleteCheckbox,"onUpdate:modelValue":t[30]||(t[30]=g=>n.formModel.attachment.deleteCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.delete.permission&&n.formModel.attachment.deleteCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.delete.condition,"onUpdate:modelValue":t[31]||(t[31]=g=>n.formModel.attachment.delete.condition=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.downloadAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.download.permission,"onUpdate:modelValue":t[32]||(t[32]=g=>n.formModel.attachment.download.permission=g)},null,8,["modelValue"]),n.formModel.attachment.download.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.attachment.downloadCheckbox,"onUpdate:modelValue":t[33]||(t[33]=g=>n.formModel.attachment.downloadCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.download.permission&&n.formModel.attachment.downloadCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.download.condition,"onUpdate:modelValue":t[34]||(t[34]=g=>n.formModel.attachment.download.condition=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.bodyPermission")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.officialText.permission,"onUpdate:modelValue":t[35]||(t[35]=g=>n.formModel.officialText.permission=g)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const PermissionSettings$2=_export_sfc$1(_sfc_main$$,[["render",_sfc_render$U],["__scopeId","data-v-c019538f"]]),_sfc_main$_={name:"TransactorSettings",components:{CommonUserCondition,FormFields},props:{model:{type:Object,default:null},usedIn:{type:String,default:"HumanTask"},isSubprocess:{type:Boolean,default:!1},basicProperties:{type:Object,default:null}},data(){const e={selectedField:""};return this.initFormModel(e),{showFormFields:!1,formModel:e,isCountersign:!1}},mounted(){this.$watch("formModel",function(){this.setTransactor(this.formModel.transactor);const e={...this.formModel.additionalCondition};e.selectOneFromMultiple?e.selectType==="customType"&&delete e.selectUrl:(delete e.selectType,delete e.selectUrl),this.model.additionalCondition=e},{deep:!0}),this.$watch("basicProperties",function(){this.showActivateOneVoteVeto()},{deep:!0}),this.showActivateOneVoteVeto()},methods:{formatLabel(e){return getFormFieldLabel(e)},initFormModel(e){e.userCondition="";const t=this.model.userCondition;typeof t>"u"||t===""||t===null?(e.transactor="${instanceCreator}",this.model.userCondition="${instanceCreator}"):t==="${instanceCreator}"||t==="${previousTransactorAssignment}"?e.transactor=t:t.startsWith("${field[")&&t.indexOf("${field[")>=0&&t.indexOf('"selectedField": "${field[')<2?(e.transactor="byField",e.selectedField=t):t.startsWith("${deptField[")?(e.transactor="byDeptField",e.selectedField=t):(e.transactor="byCondition",e.userCondition=t),this.initAdditionalCondition(e),this.model.url!==void 0?e.url=this.model.url:e.url=""},initAdditionalCondition(e){this.model.additionalCondition===void 0?e.additionalCondition={onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1,selectType:"customType",selectUrl:""}:(e.additionalCondition={...this.model.additionalCondition},e.additionalCondition.selectType===void 0&&(e.additionalCondition.selectType="customType"))},changeA(e){this.setTransactor(e)},handleUrlChange(e){this.model.url=e},setTransactor(e){(e==="${instanceCreator}"||e==="${previousTransactorAssignment}")&&(this.model.userCondition=e),e==="byField"&&(this.model.userCondition=this.formModel.selectedField),e==="byCondition"&&(this.model.userCondition=this.formModel.userCondition),e==="${previousTransactorAssignment}"?this.model.url=this.formModel.url:this.model.url="",e==="byCondition"?this.model.additionalCondition={...this.formModel.additionalCondition}:this.model.additionalCondition=void 0},handleFieldSelection(e){},setField(e){e!==void 0&&(this.formModel.transactor==="byDeptField"?(this.formModel.selectedField="${deptField["+e+"]}",this.model.userCondition=this.formModel.selectedField):(this.formModel.selectedField="${field["+e+"]}",this.model.userCondition=this.formModel.selectedField)),this.showFormFields=!1},showActivateOneVoteVeto(){this.basicProperties&&this.basicProperties.processingMode&&(this.basicProperties.processingMode.type==="COUNTERSIGN"?this.isCountersign=!0:(this.isCountersign=!1,this.formModel.additionalCondition.activateOneVoteVeto=!1))},transactorChange(){this.formModel.selectedField=null}}},_hoisted_1$u={key:0,style:{width:"100%"}},_hoisted_2$h={key:1},_hoisted_3$4={key:0};function _sfc_render$T(e,t,o,r,n,i){const s=Vue.resolveComponent("el-radio"),l=Vue.resolveComponent("el-radio-group"),a=Vue.resolveComponent("common-user-condition"),d=Vue.resolveComponent("el-form-item"),u=Vue.resolveComponent("el-input"),c=Vue.resolveComponent("form-fields"),m=Vue.resolveComponent("el-checkbox"),A=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(A,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:""},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.transactor,"onUpdate:modelValue":t[0]||(t[0]=C=>n.formModel.transactor=C),onChange:i.transactorChange},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${instanceCreator}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processInitiator")),1)]),_:1}),o.usedIn==="HumanTask"?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:"${previousTransactorAssignment}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.appointmentOfHandlerInThePreviousLink")),1)]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:"byField"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.personSpecifiedInFormField")),1)]),_:1}),Vue.createVNode(s,{label:"byDeptField"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.deptSpecifiedInFormField")),1)]),_:1}),Vue.createVNode(s,{label:"byCondition"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.filterByCriteria")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),n.formModel.transactor==="byCondition"?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$u,[Vue.createVNode(a,{modelValue:n.formModel.userCondition,"onUpdate:modelValue":t[1]||(t[1]=C=>n.formModel.userCondition=C),"used-in":"transactor"},null,8,["modelValue"])])):Vue.createCommentVNode("",!0)]),_:1}),n.formModel.transactor==="byField"||n.formModel.transactor==="byDeptField"?(Vue.openBlock(),Vue.createBlock(d,{key:0,prop:"selectedField",rules:[{required:!0,message:e.$t("workflowEditor.process.fieldName")+e.$t("workflowEditor.common.canNotBeEmpty"),trigger:"focus"}],label:e.$t("workflowEditor.process.fieldName"),"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{value:i.formatLabel(n.formModel.selectedField),onClick:t[2]||(t[2]=C=>n.showFormFields=!0)},null,8,["value"]),n.showFormFields?(Vue.openBlock(),Vue.createBlock(c,{key:0,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)]),_:1},8,["rules","label"])):Vue.createCommentVNode("",!0),n.formModel.transactor==="byCondition"||n.formModel.transactor==="byField"||n.formModel.transactor==="byDeptField"?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$h,[Vue.createVNode(d,{label:e.$t("workflowEditor.process.additionalConditions")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.onlyInCreatorDepartment,"onUpdate:modelValue":t[3]||(t[3]=C=>n.formModel.additionalCondition.onlyInCreatorDepartment=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.withCreatorDepartment,"onUpdate:modelValue":t[4]||(t[4]=C=>n.formModel.additionalCondition.withCreatorDepartment=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.selectOneFromMultiple,"onUpdate:modelValue":t[5]||(t[5]=C=>n.formModel.additionalCondition.selectOneFromMultiple=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.selectSpecificHandler")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.selectOneFromDept,"onUpdate:modelValue":t[6]||(t[6]=C=>n.formModel.additionalCondition.selectOneFromDept=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.selectOneFromDept")),1)]),_:1},8,["modelValue"]),o.isSubprocess?(Vue.openBlock(),Vue.createBlock(m,{key:0,modelValue:n.formModel.additionalCondition.generateOneInstanceFromDept,"onUpdate:modelValue":t[7]||(t[7]=C=>n.formModel.additionalCondition.generateOneInstanceFromDept=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.generateOneInstanceFromDept")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.isCountersign?(Vue.openBlock(),Vue.createBlock(m,{key:1,modelValue:n.formModel.additionalCondition.activateOneVoteVeto,"onUpdate:modelValue":t[8]||(t[8]=C=>n.formModel.additionalCondition.activateOneVoteVeto=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.activateOneVoteVeto")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),n.formModel.additionalCondition.selectOneFromMultiple?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$4,[Vue.createVNode(d,{label:e.$t("workflowEditor.process.selectionMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.additionalCondition.selectType,"onUpdate:modelValue":t[9]||(t[9]=C=>n.formModel.additionalCondition.selectType=C)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"customType"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.manualSelection")),1)]),_:1}),Vue.createVNode(s,{label:"autoType"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.autoSelect")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(d,{prop:"additionalCondition.selectUrl",label:e.$t("workflowEditor.process.callbackURL"),rules:[{required:!0,message:this.$t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"}]},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.additionalCondition.selectUrl,"onUpdate:modelValue":t[10]||(t[10]=C=>n.formModel.additionalCondition.selectUrl=C)},null,8,["modelValue"])]),_:1},8,["label","rules"]),[[Vue.vShow,n.formModel.additionalCondition.selectType==="autoType"]])])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0),o.usedIn==="HumanTask"&&n.formModel.transactor==="${previousTransactorAssignment}"?(Vue.openBlock(),Vue.createBlock(d,{key:2,prop:"url",rules:[{required:!0,message:this.$t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"}],label:e.$t("workflowEditor.process.selectURL"),"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.url,"onUpdate:modelValue":t[11]||(t[11]=C=>n.formModel.url=C),modelModifiers:{trim:!0},onChange:i.handleUrlChange},null,8,["modelValue","onChange"])]),_:1},8,["rules","label"])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const TransactorSettings=_export_sfc$1(_sfc_main$_,[["render",_sfc_render$T]]),standardValues={"${currentTime}":getI18n().t("workflowEditor.process.handlingTimeOfThisLink"),"${currentTransactorId}":getI18n().t("workflowEditor.process.handlerIDOfThisLink"),"${currentTransactorMainDepartmentId}":getI18n().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"),"${currentTransactorDirectSuperiorId}":getI18n().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorMainDepartmentId}":getI18n().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"),"${currentTransactor}":getI18n().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"),"${currentTransactorName }":getI18n().t("workflowEditor.process.NameOfCurrentHandler"),"${currentTransactorDepartment }":getI18n().t("workflowEditor.process.CurrentHandlerDepartment"),"${currentTransactorDepartmentId}":getI18n().t("workflowEditor.process.CurrentHandlerDepartmentID"),"${currentTransactorMainDepartment}":getI18n().t("workflowEditor.process.CurrentManagersPrincipalDepartment"),"${currentTransactorSuperiorDepartmentId}":getI18n().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"),"${currentTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"),"${currentTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.TopDepartmentOfCurrentHandler"),"${currentTransactorUpstageDepartmentId}":getI18n().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"),"${currentTransactorRole}":getI18n().t("workflowEditor.process.CurrentHandlerRole"),"${currentTransactorRoleId}":getI18n().t("workflowEditor.process.CurrentHandlerRoleID"),"${currentTransactorWorkGroup}":getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),"${currentTransactorWorkGroupId}":getI18n().t("workflowEditor.process.CurrentHandlerWorkingGroupID"),"${currentTransactorDirectSuperior}":getI18n().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorName}":getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"),"${currentTransactorDirectSuperiorDepartmentId}":getI18n().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"),"${currentTransactorDirectSuperiorMainDepartment}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"),"${currentTransactorDirectSuperiorRole}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorRole"),"${currentTransactorDirectSuperiorRoleId}":getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"),"${currentTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorWork"),"${currentTransactorDirectSuperiorWorkGroupId}":getI18n().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"),"${currentOperation}":getI18n().t("workflowEditor.process.operationsPerformedInThisPhase"),"${previousTransactorId}":getI18n().t("workflowEditor.process.handlerIDOfThePreviousLink"),"${previousTransactor}":getI18n().t("workflowEditor.process.lastLinkHandlerLogin"),"${previousTransactorName}":getI18n().t("workflowEditor.process.nameOfHandlerInThePreviousLink")},_sfc_main$Z={name:"AutoFilledFields",components:{FormFields},props:{modelValue:{type:Object,default:()=>({})}},data(){const e=[];if(this.modelValue.field!==void 0&&this.modelValue.field!==null)if(Array.isArray(this.modelValue.field))this.modelValue.field.map(t=>{const o={...t};typeof t.value=="string"&&t.value.indexOf("+")!==-1?o.value=t.value.split("+"):(o.value=[],o.value.push(t.value)),e.push(o)});else{const t={...this.modelValue.field};typeof this.modelValue.field.value=="string"&&this.modelValue.field.value.indexOf("+")!==-1?t.value=this.modelValue.field.value.split("+"):(t.value=[],t.value.push(this.modelValue.field.value)),e.push(t)}return{tableData:e,currentRow:null,standardValues,showFormFields:!1}},computed:{keys(){return Object.keys(this.standardValues)}},watch:{},mounted(){this.tableData&&this.tableData.length>0&&this.setCurrentRow(this.tableData[0]),this.$watch("tableData",function(){const e=[];this.tableData.map(t=>{if(t.name!==""&&t.value.length>0){const o={...t};o.value=t.value.join("+"),e.push(o)}}),this.$emit("update:modelValue",{field:e})},{deep:!0})},created(){},methods:{add(){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].name===""||this.tableData[t].value===""){this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty",{row:t+1}));return}const e={name:"",value:[],separator:"",fillType:"cover",fillTime:"after"};this.tableData.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].name===this.currentRow.name){e=t;break}this.tableData.splice(e,1),e=e<=this.tableData.length-1?e:this.tableData.length-1,this.setCurrentRow(this.tableData[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkName(e){!this.showFormFields&&e===""&&this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"))},checkValue(e){e.length===0&&this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"))},setField(e){e!==void 0&&(this.currentRow.name=e),this.showFormFields=!1},getFieldLabel(e){return getFormFieldLabel(e)}}};function _sfc_render$S(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-option"),c=Vue.resolveComponent("el-select"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,{style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.tableData,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.common.name"),width:"150"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{value:i.getFieldLabel(C.row.name),placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),readonly:"",onClick:t[0]||(t[0]=g=>n.showFormFields=!0),onBlur:g=>i.checkName(C.row.name)},null,8,["value","placeholder","onBlur"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"value",label:e.$t("workflowEditor.common.fieldValue"),width:"200"},{default:Vue.withCtx(C=>[Vue.createVNode(c,{modelValue:C.row.value,"onUpdate:modelValue":g=>C.row.value=g,multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onBlur:g=>i.checkValue(C.row.value)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.keys,g=>(Vue.openBlock(),Vue.createBlock(u,{key:g,label:n.standardValues[g],value:g},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onBlur"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"separator",label:e.$t("workflowEditor.common.separator")},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.separator,"onUpdate:modelValue":g=>C.row.separator=g,modelModifiers:{trim:!0}},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"fillType",label:e.$t("workflowEditor.common.fillInMethod")},{default:Vue.withCtx(C=>[Vue.createVNode(c,{modelValue:C.row.fillType,"onUpdate:modelValue":g=>C.row.fillType=g},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.common.cover"),value:"cover"},null,8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.append"),value:"append"},null,8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.insertToFront"),value:"prepend"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"fillTime",label:e.$t("workflowEditor.common.fillInTime")},{default:Vue.withCtx(C=>[Vue.createVNode(c,{modelValue:C.row.fillTime,"onUpdate:modelValue":g=>C.row.fillTime=g},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.common.fillInBeforeHandling"),value:"before"},null,8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.fillInAfterHandling"),value:"after"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showFormFields?(Vue.openBlock(),Vue.createBlock(A,{key:0,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])}const AutoFilledFields=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$S]]),_sfc_main$Y={name:"Variables",props:{model:{type:Object,default:null}},data(){let e=[];return this.model.variable!==void 0&&(Array.isArray(this.model.variable)?e=this.model.variable:e.push(this.model.variable)),{variables:e,currentRow:null}},watch:{},mounted(){this.variables.length>0&&this.setCurrentRow(this.variables[0]),this.$watch("variables",function(){const e=this.variables.filter(t=>t.name!==""&&t.value!=="");this.$emit("input",{variable:e})},{deep:!0})},methods:{add(){for(let t=0;t<this.variables.length;t++)if(this.variables[t].name===""||this.variables[t].value===""){this.$alert(this.$t("workflowEditorMessage.variableNameOrValueOnLineCannotBeEmpty",{row:t+1}));return}const e={name:"",value:""};this.variables.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.variables.length;t++)if(this.variables[t].name===this.currentRow.name){e=t;break}this.variables.splice(e,1),e=e<=this.variables.length-1?e:this.variables.length-1,this.setCurrentRow(this.variables[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkName(e){e===""&&this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"))},checkValue(e){e===""&&this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"))}}};function _sfc_render$R(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(u,{ref:"table",data:n.variables,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.common.variableName")},{default:Vue.withCtx(c=>[Vue.createVNode(d,{modelValue:c.row.name,"onUpdate:modelValue":m=>c.row.name=m,modelModifiers:{trim:!0},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),onBlur:m=>i.checkName(c.row.name)},null,8,["modelValue","onUpdate:modelValue","placeholder","onBlur"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"value",label:e.$t("workflowEditor.common.variableValue")},{default:Vue.withCtx(c=>[Vue.createVNode(d,{modelValue:c.row.value,"onUpdate:modelValue":m=>c.row.value=m,modelModifiers:{trim:!0},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),onBlur:m=>i.checkValue(c.row.value)},null,8,["modelValue","onUpdate:modelValue","placeholder","onBlur"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])])}const Variables=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$R]]),_sfc_main$X={name:"Events",props:{modelValue:{type:Object,default:null}},data(){const e={};return e.beforeSubmitEnabled=!1,e.beforeSubmit={},this.modelValue.beforeSubmit&&(e.beforeSubmitEnabled=!0,e.beforeSubmit={...this.modelValue.beforeSubmit}),e.afterComplete=this.modelValue.afterComplete,{formModel:e}},mounted(){this.$watch("formModel",function(e,t){const o={};this.formModel.beforeSubmitEnabled&&(o.beforeSubmit={...this.formModel.beforeSubmit}),o.afterComplete=this.formModel.afterComplete,this.$emit("update:modelValue",o)},{deep:!0})}},_hoisted_1$t={key:0};function _sfc_render$Q(e,t,o,r,n,i){const s=Vue.resolveComponent("el-switch"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(d,{model:n.formModel,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.beforeSubmission")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.beforeSubmitEnabled,"onUpdate:modelValue":t[0]||(t[0]=u=>n.formModel.beforeSubmitEnabled=u)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.beforeSubmitEnabled?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$t,[Vue.createVNode(l,{label:e.$t("workflowEditor.task.executionURL")},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.formModel.beforeSubmit.url,"onUpdate:modelValue":t[1]||(t[1]=u=>n.formModel.beforeSubmit.url=u)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.errorMessage")},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.formModel.beforeSubmit.errorMessage,"onUpdate:modelValue":t[2]||(t[2]=u=>n.formModel.beforeSubmit.errorMessage=u)},null,8,["modelValue"])]),_:1},8,["label"])])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.afterSubmission")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.afterComplete,"onUpdate:modelValue":t[3]||(t[3]=u=>n.formModel.afterComplete=u)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const Events$2=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$Q]]),_sfc_main$W={name:"CommonNoticeTool",props:{label:{type:String,default:null},modelValue:{type:String,default:null},customMsg:{type:String,default:null}},data(){let e=[];this.modelValue&&this.modelValue!==""&&this.modelValue!==null&&(e=this.modelValue.split(","));let t="";return this.customMsg&&this.customMsg!==""&&this.customMsg!==null&&(t=this.customMsg),{tools:e,myCustomMsg:t}},watch:{tools(e){this.$emit("update:modelValue",this.tools.join(","))},myCustomMsg(e){this.$emit("input-msg",this.myCustomMsg)}}};function _sfc_render$P(e,t,o,r,n,i){const s=Vue.resolveComponent("el-checkbox"),l=Vue.resolveComponent("el-checkbox-group"),a=Vue.resolveComponent("el-form-item"),d=Vue.resolveComponent("el-input");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(a,{label:o.label},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.tools,"onUpdate:modelValue":t[0]||(t[0]=u=>n.tools=u)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"mail"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.mail")),1)]),_:1}),Vue.createVNode(s,{label:"DINGDING"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.dingding")),1)]),_:1}),Vue.createVNode(s,{label:"QIWEI"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.qiwei")),1)]),_:1}),Vue.createVNode(s,{label:"FEISHU"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.feishu")),1)]),_:1}),Vue.createVNode(s,{label:"custom"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.custom")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.tools.indexOf("custom")>=0?(Vue.openBlock(),Vue.createBlock(a,{key:0,"label-width":"110",label:e.$t("workflowEditor.common.customMsg")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.myCustomMsg,"onUpdate:modelValue":t[1]||(t[1]=u=>n.myCustomMsg=u)},null,8,["modelValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0)])}const CommonNoticeTool=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$P]]),reminder_vue_vue_type_style_index_0_scoped_4e29ea06_lang="",_sfc_main$V={name:"Reminder",components:{CommonNoticeTool,CommonUserCondition,SelectMailTemplates},props:{modelValue:{type:[Object,String],default:null},isProcess:{type:Boolean,default:!1}},data(){let e=!1,t=!1,o={dueDate:1,dueTimeUnit:"day",repeat:1,containTransferUser:!1,containNoticeUser:!1,remindType:"mail",timeUnit:"day",remindTimes:0,noticeType:"",noticeUserCondition:"",transferUserCondition:""};return this.modelValue!==null&&this.modelValue!==void 0&&this.modelValue!==""&&(o=this.modelValue,e=!0,this.modelValue.remindTimes>0&&(t=!0),o.dueTimeUnit||(o.dueTimeUnit="day")),{showReminder:e,showNotice:t,model:o,showMailTemplateFlag:!1,baseURL:"",optionUrl:"",multiSelectData:[],options:{showColumns:"code,name"}}},watch:{showReminder(e){e?this.$emit("update:modelValue",this.model):this.$emit("update:modelValue",null)},showNotice(e){e?this.$emit("update:modelValue",this.model):this.$emit("update:modelValue",{remindType:this.model.remindType,dueDate:this.model.dueDate,dueTimeUnit:this.model.dueTimeUnit,repeat:this.model.repeat,timeUnit:this.model.timeUnit,remindTimes:0,noticeType:"",noticeUserCondition:"",containTransferUser:!1,transferUserCondition:"",containNoticeUser:!1})}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.optionUrl="/bs/email-templates/list/0",this.$watch("model",function(e,t){let o=null;this.showReminder&&(o=this.model,o.dueTimeUnit||(o.dueTimeUnit="day")),console.log("reminder===",o),this.$emit("update:modelValue",o)},{deep:!0})},methods:{setMailTemplateCode(e){this.model.mailTemplateCode=e},setMailPointTemplateCode(e){this.model.mailPointTemplateCode=e},selectData(e,t){this.multiSelectData=e},setReminderCustomMsg(e){this.model.reminderCustomMsg=e},setNoticeCustomMsg(e){this.model.noticeCustomMsg=e}}},_hoisted_1$s={key:0},_hoisted_2$g={key:2};function _sfc_render$O(e,t,o,r,n,i){const s=Vue.resolveComponent("el-switch"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("common-notice-tool"),d=Vue.resolveComponent("select-mail-templates"),u=Vue.resolveComponent("el-input-number"),c=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),A=Vue.resolveComponent("el-radio"),C=Vue.resolveComponent("el-checkbox"),g=Vue.resolveComponent("common-user-condition"),E=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(E,{model:n.model,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.needToBeUrged")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.showReminder,"onUpdate:modelValue":t[0]||(t[0]=p=>n.showReminder=p)},null,8,["modelValue"])]),_:1},8,["label"]),n.showReminder?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$s,[Vue.createVNode(a,{modelValue:n.model.remindType,"onUpdate:modelValue":t[1]||(t[1]=p=>n.model.remindType=p),label:e.$t("workflowEditor.task.urgingMethod"),"custom-msg":n.model.reminderCustomMsg,onInputMsg:i.setReminderCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),n.model.remindType&&n.model.remindType.length>0?(Vue.openBlock(),Vue.createBlock(l,{key:0,"label-width":"100",label:e.$t("workflowEditor.task.selectNoticeTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.model.mailTemplateCode,"onUpdate:modelValue":t[2]||(t[2]=p=>n.model.mailTemplateCode=p),onSetValue:i.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.model.remindType&&n.model.remindType.length>0&&n.model.remindType.indexOf("mail")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:1,"label-width":"100",label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.model.mailPointTemplateCode,"onUpdate:modelValue":t[3]||(t[3]=p=>n.model.mailPointTemplateCode=p),onSetValue:i.setMailPointTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.timeLimitForHandling"),size:"small"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.model.dueDate,"onUpdate:modelValue":t[4]||(t[4]=p=>n.model.dueDate=p),"controls-position":"right",min:1,max:30,style:{width:"90px"}},null,8,["modelValue"]),Vue.createVNode(m,{modelValue:n.model.dueTimeUnit,"onUpdate:modelValue":t[5]||(t[5]=p=>n.model.dueTimeUnit=p),style:{width:"70px"}},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.task.day"),value:"day"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.task.hour"),value:"hour"},null,8,["label"])]),_:1},8,["modelValue"]),Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.task.urgingInterval")),1),Vue.createVNode(u,{modelValue:n.model.repeat,"onUpdate:modelValue":t[6]||(t[6]=p=>n.model.repeat=p),"controls-position":"right",min:1,max:30,style:{width:"90px"}},null,8,["modelValue"]),Vue.createVNode(m,{modelValue:n.model.timeUnit,"onUpdate:modelValue":t[7]||(t[7]=p=>n.model.timeUnit=p),style:{width:"70px"}},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.task.day"),value:"day"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.task.hour"),value:"hour"},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:n.showNotice,"onUpdate:modelValue":t[8]||(t[8]=p=>n.showNotice=p),label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.alwaysUrging")),1)]),_:1},8,["modelValue"]),Vue.createVNode(A,{modelValue:n.showNotice,"onUpdate:modelValue":t[9]||(t[9]=p=>n.showNotice=p),label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.limitedUrging")),1)]),_:1},8,["modelValue"])]),_:1}),n.showNotice?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$g,[Vue.createVNode(l,{label:e.$t("workflowEditor.task.timesOfUrging"),size:"small"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.model.remindTimes,"onUpdate:modelValue":t[10]||(t[10]=p=>n.model.remindTimes=p),"controls-position":"right",min:1,max:99,style:{width:"90px"}},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{modelValue:n.model.noticeType,"onUpdate:modelValue":t[11]||(t[11]=p=>n.model.noticeType=p),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.model.noticeCustomMsg,onInputMsg:i.setNoticeCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),o.isProcess?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:0,label:e.$t("workflowEditor.common.notifyPersonnel"),style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.model.containTransferUser,"onUpdate:modelValue":t[12]||(t[12]=p=>n.model.containTransferUser=p)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.includingHandoverPersonnel")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])),Vue.createVNode(l,{"label-width":"0"},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:n.model.noticeUserCondition,"onUpdate:modelValue":t[13]||(t[13]=p=>n.model.noticeUserCondition=p)},null,8,["modelValue"])]),_:1}),o.isProcess?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:1,label:e.$t("workflowEditor.task.handoverPersonnel"),style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.model.containNoticeUser,"onUpdate:modelValue":t[14]||(t[14]=p=>n.model.containNoticeUser=p)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.includeNotifyPeople")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])),o.isProcess?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:2,"label-width":"0"},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:n.model.transferUserCondition,"onUpdate:modelValue":t[15]||(t[15]=p=>n.model.transferUserCondition=p)},null,8,["modelValue"])]),_:1}))])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const Reminder=_export_sfc$1(_sfc_main$V,[["render",_sfc_render$O],["__scopeId","data-v-4e29ea06"]]),noticeReminder_vue_vue_type_style_index_0_scoped_39fac73c_lang="",_sfc_main$U={name:"NoticeReminder",components:{Reminder,CommonNoticeTool,SelectMailTemplates},props:{reminderValue:{type:[Object,String],default:null},taskNoticeValue:{type:Object,default:null},isProcess:{type:Boolean,default:!1}},data(){let e=null;this.reminderValue!==null&&this.reminderValue!==void 0&&this.reminderValue!==""&&(e=this.reminderValue);let t={};return this.taskNoticeValue!==null&&this.taskNoticeValue!==void 0&&this.taskNoticeValue!==""&&(t=this.taskNoticeValue),{reminderObj:e,noticeObj:t}},watch:{reminderObj(e){e?this.$emit("update:reminder-value",e):this.$emit("update:reminder-value",null)}},methods:{setMailTemplateCode(e){this.noticeObj.mailPointTemplateCode=e},setNoticeCommonTemplateCode(e){this.noticeObj.mailTemplateCode=e},setCustomMsg(e){this.noticeObj.customMsg=e}}},_hoisted_1$r={class:"clearfix"},_hoisted_2$f={class:"sub-li"},_hoisted_3$3={class:"sub-li"},_hoisted_4$3={class:"clearfix"},_hoisted_5$3={class:"sub-li"},_hoisted_6$2={class:"sub-li"},_hoisted_7$1={class:"sub-li"},_hoisted_8$1={class:"sub-li"};function _sfc_render$N(e,t,o,r,n,i){const s=Vue.resolveComponent("Warning"),l=Vue.resolveComponent("el-icon"),a=Vue.resolveComponent("el-tooltip"),d=Vue.resolveComponent("common-notice-tool"),u=Vue.resolveComponent("select-mail-templates"),c=Vue.resolveComponent("el-form-item"),m=Vue.resolveComponent("el-form"),A=Vue.resolveComponent("el-card"),C=Vue.resolveComponent("reminder");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(A,{class:"box-card"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$r,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.common.taskNotice")),1),Vue.createVNode(a,null,{content:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateMsg")),1),Vue.createElementVNode("li",_hoisted_2$f,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateNotice")),1),Vue.createElementVNode("li",_hoisted_3$3,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateEmail")),1)])]),default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})]),_:1})])]),default:Vue.withCtx(()=>[Vue.createVNode(m,{model:n.noticeObj,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.noticeObj.informType,"onUpdate:modelValue":t[0]||(t[0]=g=>n.noticeObj.informType=g),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.noticeObj.customMsg,onInputMsg:i.setCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),n.noticeObj.informType&&n.noticeObj.informType.length>0?(Vue.openBlock(),Vue.createBlock(c,{key:0,"label-width":"100",label:e.$t("workflowEditor.task.selectNoticeTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.noticeObj.mailTemplateCode,"onUpdate:modelValue":t[1]||(t[1]=g=>n.noticeObj.mailTemplateCode=g),onSetValue:i.setNoticeCommonTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.noticeObj.informType&&n.noticeObj.informType.length>0&&n.noticeObj.informType.indexOf("mail")>=0?(Vue.openBlock(),Vue.createBlock(c,{key:1,"label-width":"100",label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.noticeObj.mailPointTemplateCode,"onUpdate:modelValue":t[2]||(t[2]=g=>n.noticeObj.mailPointTemplateCode=g),onSetValue:i.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1}),Vue.createVNode(A,{class:"box-card",style:{"margin-top":"10px"}},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$3,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.common.reminderNotice")),1),Vue.createVNode(a,null,{content:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateMsg")),1),Vue.createElementVNode("li",_hoisted_5$3,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateNotice")),1),Vue.createElementVNode("li",_hoisted_6$2,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateEmail")),1),Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipRemindMsg")),1),Vue.createElementVNode("li",_hoisted_7$1,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipRemindImmediately")),1),Vue.createElementVNode("li",_hoisted_8$1,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipRemindHistory")),1)])]),default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})]),_:1})])]),default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.reminderObj,"onUpdate:modelValue":t[3]||(t[3]=g=>n.reminderObj=g),isProcess:o.isProcess},null,8,["modelValue","isProcess"])]),_:1})])}const NoticeReminder=_export_sfc$1(_sfc_main$U,[["render",_sfc_render$N],["__scopeId","data-v-39fac73c"]]),humanTask_vue_vue_type_style_index_0_scoped_9bc8867a_lang="",_sfc_main$T={name:"HumanTaskPropertiesEditor",components:{BasicProperties:BasicProperties$5,TransactorSettings,PermissionSettings:PermissionSettings$2,AutoFilledFields,Events:Events$2,Variables,NoticeReminder},props:{model:{type:Object,default:null}},data(){return this.model.ref.taskNotice||(this.model.ref.taskNotice={}),{activeTab:"basicProperties",dialogVisible:!0}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.id",function(e,t){this.model.id=e}),this.$watch("model.ref.attr.name",function(e,t){this.model.name=e})},methods:{handleClick(e,t){}}};function _sfc_render$M(e,t,o,r,n,i){const s=Vue.resolveComponent("basic-properties"),l=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("transactor-settings"),d=Vue.resolveComponent("permission-settings"),u=Vue.resolveComponent("auto-filled-fields"),c=Vue.resolveComponent("notice-reminder"),m=Vue.resolveComponent("events"),A=Vue.resolveComponent("variables"),C=Vue.resolveComponent("el-tabs"),g=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(g,{"model-value":"",top:"10vh",title:e.$t("workflowEditor.task.linkAttribute"),center:!0,"append-to-body":"",class:"properties-editor",onOpen:t[7]||(t[7]=E=>e.$emit("open")),onOpend:t[8]||(t[8]=E=>e.$emit("opend")),onClose:t[9]||(t[9]=E=>e.$emit("close")),onClosed:t[10]||(t[10]=E=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.activeTab,"onUpdate:modelValue":t[6]||(t[6]=E=>n.activeTab=E),type:"border-card",onTabClick:i.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{id:o.model.ref.attr.id,"onUpdate:id":t[0]||(t[0]=E=>o.model.ref.attr.id=E),name:o.model.ref.attr.name,"onUpdate:name":t[1]||(t[1]=E=>o.model.ref.attr.name=E),model:o.model.ref.basicProperties},null,8,["id","name","model"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.settingOfHandler"),name:"transactors"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{model:o.model.ref.transactorSettings,"basic-properties":o.model.ref.basicProperties},null,8,["model","basic-properties"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.permissionSettings"),name:"permissions"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:o.model.ref.permissionSettings,"onUpdate:modelValue":t[2]||(t[2]=E=>o.model.ref.permissionSettings=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.autoFillInFieldSettings"),name:"autoFilledFields"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.ref.autoFilledFields,"onUpdate:modelValue":t[3]||(t[3]=E=>o.model.ref.autoFilledFields=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.reminderSettings"),name:"reminders"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{"reminder-value":o.model.ref.reminder,"onUpdate:reminderValue":t[4]||(t[4]=E=>o.model.ref.reminder=E),"task-notice-value":o.model.ref.taskNotice},null,8,["reminder-value","task-notice-value"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.eventProcessing"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:o.model.ref.events,"onUpdate:modelValue":t[5]||(t[5]=E=>o.model.ref.events=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.linkVariable"),name:"variables"},{default:Vue.withCtx(()=>[Vue.createVNode(A,{model:o.model.ref.variables},null,8,["model"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const HumanTaskPropertiesEditor=_export_sfc$1(_sfc_main$T,[["render",_sfc_render$M],["__scopeId","data-v-9bc8867a"]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),o}var sax$1={};const path={},__viteBrowserExternal=Object.freeze(Object.defineProperty({__proto__:null,default:path},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal);var string_decoder={},safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,t){var o=require$$0,r=o.Buffer;function n(s,l){for(var a in s)l[a]=s[a]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i);function i(s,l,a){return r(s,l,a)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(s,l,a){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,l,a)},i.alloc=function(s,l,a){if(typeof s!="number")throw new TypeError("Argument must be a number");var d=r(s);return l!==void 0?typeof a=="string"?d.fill(l,a):d.fill(l):d.fill(0),d},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(s)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,t=e.isEncoding||function(p){switch(p=""+p,p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(p){if(!p)return"utf8";for(var f;;)switch(p){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return p;default:if(f)return;p=(""+p).toLowerCase(),f=!0}}function r(p){var f=o(p);if(typeof f!="string"&&(e.isEncoding===t||!t(p)))throw new Error("Unknown encoding: "+p);return f||p}string_decoder.StringDecoder=n;function n(p){this.encoding=r(p);var f;switch(this.encoding){case"utf16le":this.text=c,this.end=m,f=4;break;case"utf8":this.fillLast=a,f=4;break;case"base64":this.text=A,this.end=C,f=3;break;default:this.write=g,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(f)}n.prototype.write=function(p){if(p.length===0)return"";var f,w;if(this.lastNeed){if(f=this.fillLast(p),f===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<p.length?f?f+this.text(p,w):this.text(p,w):f||""},n.prototype.end=u,n.prototype.text=d,n.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function i(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function s(p,f,w){var v=f.length-1;if(v<w)return 0;var b=i(f[v]);return b>=0?(b>0&&(p.lastNeed=b-1),b):--v<w||b===-2?0:(b=i(f[v]),b>=0?(b>0&&(p.lastNeed=b-2),b):--v<w||b===-2?0:(b=i(f[v]),b>=0?(b>0&&(b===2?b=0:p.lastNeed=b-3),b):0))}function l(p,f,w){if((f[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return p.lastNeed=2,"�"}}function a(p){var f=this.lastTotal-this.lastNeed,w=l(this,p);if(w!==void 0)return w;if(this.lastNeed<=p.length)return p.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,f,0,p.length),this.lastNeed-=p.length}function d(p,f){var w=s(this,p,f);if(!this.lastNeed)return p.toString("utf8",f);this.lastTotal=w;var v=p.length-(w-this.lastNeed);return p.copy(this.lastChar,0,v),p.toString("utf8",f,v)}function u(p){var f=p&&p.length?this.write(p):"";return this.lastNeed?f+"�":f}function c(p,f){if((p.length-f)%2===0){var w=p.toString("utf16le",f);if(w){var v=w.charCodeAt(w.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",f,p.length-1)}function m(p){var f=p&&p.length?this.write(p):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,w)}return f}function A(p,f){var w=(p.length-f)%3;return w===0?p.toString("base64",f):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",f,p.length-w))}function C(p){var f=p&&p.length?this.write(p):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function g(p){return p.toString(this.encoding)}function E(p){return p&&p.length?this.write(p):""}return string_decoder}(function(e){(function(t){t.parser=function(V,y){return new r(V,y)},t.SAXParser=r,t.SAXStream=u,t.createStream=d,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(V,y){if(!(this instanceof r))return new r(V,y);var M=this;i(M),M.q=M.c="",M.bufferCheckPosition=t.MAX_BUFFER_LENGTH,M.opt=y||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!V,M.noscript=!!(V||M.opt.noscript),M.state=S.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(g)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),q(M,"onready")}Object.create||(Object.create=function(V){function y(){}y.prototype=V;var M=new y;return M}),Object.keys||(Object.keys=function(V){var y=[];for(var M in V)V.hasOwnProperty(M)&&y.push(M);return y});function n(V){for(var y=Math.max(t.MAX_BUFFER_LENGTH,10),M=0,T=0,R=o.length;T<R;T++){var j=V[o[T]].length;if(j>y)switch(o[T]){case"textNode":U(V);break;case"cdata":K(V,"oncdata",V.cdata),V.cdata="";break;case"script":K(V,"onscript",V.script),V.script="";break;default:re(V,"Max buffer length exceeded: "+o[T])}M=Math.max(M,j)}var I=t.MAX_BUFFER_LENGTH-M;V.bufferCheckPosition=I+V.position}function i(V){for(var y=0,M=o.length;y<M;y++)V[o[y]]=""}function s(V){U(V),V.cdata!==""&&(K(V,"oncdata",V.cdata),V.cdata=""),V.script!==""&&(K(V,"onscript",V.script),V.script="")}r.prototype={end:function(){te(this)},write:oe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var l;try{l=require$$0.Stream}catch{l=function(){}}l||(l=function(){});var a=t.EVENTS.filter(function(V){return V!=="error"&&V!=="end"});function d(V,y){return new u(V,y)}function u(V,y){if(!(this instanceof u))return new u(V,y);l.apply(this),this._parser=new r(V,y),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(T){M.emit("error",T),M._parser.error=null},this._decoder=null,a.forEach(function(T){Object.defineProperty(M,"on"+T,{get:function(){return M._parser["on"+T]},set:function(R){if(!R)return M.removeAllListeners(T),M._parser["on"+T]=R,R;M.on(T,R)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(l.prototype,{constructor:{value:u}}),u.prototype.write=function(V){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(V)){if(!this._decoder){var y=requireString_decoder().StringDecoder;this._decoder=new y("utf8")}V=this._decoder.write(V)}return this._parser.write(V.toString()),this.emit("data",V),!0},u.prototype.end=function(V){return V&&V.length&&this.write(V),this._parser.end(),!0},u.prototype.on=function(V,y){var M=this;return!M._parser["on"+V]&&a.indexOf(V)!==-1&&(M._parser["on"+V]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,V),M.emit.apply(M,T)}),l.prototype.on.call(M,V,y)};var c="[CDATA[",m="DOCTYPE",A="http://www.w3.org/XML/1998/namespace",C="http://www.w3.org/2000/xmlns/",g={xml:A,xmlns:C},E=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function v(V){return V===" "||V===`
30
+ `+i):r.stack=i}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=mergeConfig$1(this.defaults,o);const{transitional:r,paramsSerializer:n,headers:i}=o;r!==void 0&&validator$1.assertOptions(r,{silentJSONParsing:validators$1.transitional(validators$1.boolean),forcedJSONParsing:validators$1.transitional(validators$1.boolean),clarifyTimeoutError:validators$1.transitional(validators$1.boolean)},!1),n!=null&&(utils$1.isFunction(n)?o.paramsSerializer={serialize:n}:validator$1.assertOptions(n,{encode:validators$1.function,serialize:validators$1.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=i&&utils$1.merge(i.common,i[o.method]);i&&utils$1.forEach(["delete","get","head","post","put","patch","common"],C=>{delete i[C]}),o.headers=AxiosHeaders$1.concat(s,i);const l=[];let a=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(o)===!1||(a=a&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,c=0,m;if(!a){const C=[dispatchRequest.bind(this),void 0];for(C.unshift.apply(C,l),C.push.apply(C,d),m=C.length,u=Promise.resolve(o);c<m;)u=u.then(C[c++],C[c++]);return u}m=l.length;let A=o;for(c=0;c<m;){const C=l[c++],g=l[c++];try{A=C(A)}catch(E){g.call(this,E);break}}try{u=dispatchRequest.call(this,A)}catch(C){return Promise.reject(C)}for(c=0,m=d.length;c<m;)u=u.then(d[c++],d[c++]);return u}getUri(t){t=mergeConfig$1(this.defaults,t);const o=buildFullPath(t.baseURL,t.url);return buildURL(o,t.params,t.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function e(t){Axios.prototype[t]=function(o,r){return this.request(mergeConfig$1(r||{},{method:t,url:o,data:(r||{}).data}))}}),utils$1.forEach(["post","put","patch"],function e(t){function o(r){return function(i,s,l){return this.request(mergeConfig$1(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Axios.prototype[t]=o(),Axios.prototype[t+"Form"]=o(!0)});const Axios$1=Axios;class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const r=this;this.promise.then(n=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](n);r._listeners=null}),this.promise.then=n=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(n);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new CanceledError(i,s,l),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new CancelToken(function(n){t=n}),cancel:t}}}const CancelToken$1=CancelToken;function spread(e){return function(o){return e.apply(null,o)}}function isAxiosError(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});const HttpStatusCode$1=HttpStatusCode;function createInstance(e){const t=new Axios$1(e),o=bind(Axios$1.prototype.request,t);return utils$1.extend(o,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(o,t,null,{allOwnKeys:!0}),o.create=function(n){return createInstance(mergeConfig$1(e,n))},o}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function e(t){return Promise.all(t)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const axios$1=axios;function getRelativeBaseUrl(e){if(!e)return e;if(window.$vueApp.config.globalProperties.projectModel===void 0||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){let t=getUrlPrefix(location.href);if(window.sessionStorage.setItem("relativeUrl",t),t&&e){let o="";const r=e.split("/");if(r.length>=3){const n=r[0]+"//"+r[2];o=e.substring(e.indexOf(n)+n.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),o?t+o:t}}return e}function getUrlPrefix(e){const t=e.split("#");if(t.length>0){const o=t[0];let r=o;const n=o.split("/");return n.length>=3&&(r=n[0]+"//"+n[2]+"/"),r}}function isShowMenuRoute(){let e=window.$vueApp.config.globalProperties.showMenuRoute;return e===void 0&&(e="false"),e==="true"}function isShowSystemMenu(){let e=window.$vueApp.config.globalProperties.showSystemMenu;return e===void 0&&(e="false"),e==="true"}function getSystemFrontendUrl(e){return window.$vueApp.config.globalProperties.projectModel&&window.$vueApp.config.globalProperties.projectModel==="developing.model"&&window.$vueApp.config.globalProperties.frontUrl?window.$vueApp.config.globalProperties.frontUrl:getRelativeBaseUrl(e)}function isPlateSys(e){return!!(e&&(e==="agilebuilder"||e==="portal"||e==="mms"||e==="task"||e==="wf"||e==="dc"||e==="mc"||e==="mobile"||e==="acs"||e==="bs"||e==="pcm"||e==="devp"))}function getTimeZone(){const e=new Date+"";let t="";if(e.indexOf("GMT")>0){const o=e.substring(e.indexOf("GMT")+3,e.indexOf("(")).trim(),r=o.substring(0,o.length-2),n=o.substring(o.length-2);t="UTC"+r+":"+n}else e.indexOf("UTC")>0&&(t="UTC"+e.substring(e.indexOf("UTC")+3,e.indexOf("(")).trim());return t}function setCustomSystemBackendUrl(e){if(!window.$vueApp.config.globalProperties.projectModel||window.$vueApp.config.globalProperties.projectModel!=="developing.model"){const t=window.$authApi.getSystemCacheUrlByCode(e);t&&(window.$vueApp.config.globalProperties.baseURL=getRelativeBaseUrl(t))}}function isMobileBrowser(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Opera Mobi|Windows CE|Symbian|Windows Phone|POLARIS|lgtelecom|nokia|SonyEricsson|LG|SAMSUNG|Samsung/i.test(navigator.userAgent)}function getLangs(){return getAllLanguages()}function getLangByShort(e){let t;const o=getLangs();return o&&(t=JSON.parse(o)[e]),t||(t="zh_CN"),t}function getI18n$1(){let e=window.$i18n;return e||(e=i18n$1),window.$locale?i18n$1.locale=window.$locale:i18n$1.locale="cn",e.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function getContextValue(e,t){let o=getLastNDate(t);return e&&(o=e[t]),o}function getLastNDate(e){let t;if(e&&e==="currentTime"&&(t=new Date),e&&e==="currentWeek"&&(t=getCurrentWeek()),e&&e==="currentMonth"&&(t=getCurrentMonth()),e&&e==="currentQuarter"&&(t=getCurrentQuarter()),e&&e==="currentYear"&&(t=getCurrentYear()),e&&e.indexOf("lastNDay")>=0){const o=e.substring(e.indexOf(":")+1);t=getLastNDay(parseInt(o))}return t}function getCurrentWeek(){const e=new Date,t=e.getTime(),o=e.getDay(),r=new Date(t+24*60*60*1e3*(0-(o+6)%7)),n=new Date(t+24*60*60*1e3*(6-(o+6)%7)),i=r.toLocaleDateString()+" "+r.toLocaleTimeString(),s=n.toLocaleDateString()+" "+n.toLocaleTimeString();return console.log(`getCurrentMonth从 ${i} 开始,到 ${s} 结束`),[r,n]}function getCurrentMonth(){const e=new Date,t=e.getFullYear(),o=e.getMonth()+1;e.setDate(1);const r=`${t}/${o<10?"0":""}${o}/01`;e.setMonth(e.getMonth()+2),e.setDate(0);const n=`${e.getFullYear()}/${e.getMonth()<9?"0":""}${e.getMonth()+1}/01`,i=new Date(Date.parse(r)),s=new Date(new Date(Date.parse(n)).getTime()-1e3),l=i.toLocaleDateString()+" "+i.toLocaleTimeString(),a=s.toLocaleDateString()+" "+s.toLocaleTimeString();return console.log(`getCurrentMonth从 ${l} 开始,到 ${a} 结束`),[i,s]}function getCurrentQuarter(){const e=new Date,t=(e.getMonth()+3)%12;let o;e.getMonth()<t+2?o=new Date(e.getFullYear(),t,1):o=new Date(e.getFullYear()+1,t,1);let r;o.getMonth()===11?r=new Date(o.getFullYear()+1,0,0):r=new Date(o.getFullYear(),o.getMonth()+3,0),r=new Date(r.getTime()+24*60*60*1e3-1e3);const n=o.toLocaleDateString()+" "+o.toLocaleTimeString(),i=r.toLocaleDateString()+" "+r.toLocaleTimeString();return console.log(`getCurrentQuarter从 ${n} 开始,到 ${i} 结束`),[o,r]}function getCurrentYear(){const e=new Date().getFullYear();let t=new Date(e,0);t.setMonth(0,1);let o=new Date(e+1,0);o=o.getTime()-1e3,o=new Date(o);const r=t.toLocaleDateString()+" "+t.toLocaleTimeString(),n=o.toLocaleDateString()+" "+o.toLocaleTimeString();return console.log(`getCurrentYear从 ${r} 开始,到 ${n} 结束`),[t,o]}function getLastNDay(e){let t=new Date,o=t.getFullYear(),r=t.getMonth()+1,n=t.getDate(),i=`${o}/${r<10?"0":""}${r}/${n}`;t=new Date(Date.parse(i)),t.setDate(t.getDate()+1),t=new Date(t.getTime()-1e3);let s=new Date;s.setDate(s.getDate()-(e-1));const l=s.getFullYear(),a=s.getMonth()+1,d=s.getDate(),u=`${l}/${a<10?"0":""}${a}/${d}`;s=new Date(Date.parse(u));const c=s.toLocaleDateString()+" "+s.toLocaleTimeString(),m=t.toLocaleDateString()+" "+t.toLocaleTimeString();console.log(`getLastNDay从 ${c} 开始,到 ${m} 结束`),retur[t]}function getPropValue(e,t,o,r,n,i,s){return getPropValueNew(e,{entity:{data:t,context:r,request:o,parent:n,row:i,task:s}})}function getAdditionalParamMap(e){if(e&&e.entity){let t={...e.entity.page};t||(t={});const o=e.entity.request;return o&&Object.assign(t,o),t}}function getPropValueNew(e,t,o){let r=null;if(e&&e!==null&&e!==""){const n=t&&t.entity?t.entity.data:null,i=t&&t.entity?t.entity.page:null,s=getAdditionalParamMap(t),l=t&&t.entity?t.entity.context:null,a=t&&t.entity?t.entity.parent?t.entity.parent:t.entity.data:null,d=t&&t.entity?t.entity.row:null,u=t&&t.entity?t.entity.task:null,c=t&&t.entity?t.entity.system:null;if(e==="null")r=null;else if(e.startsWith("${row.")){if(o){const m=e.replace("${row.","").replace("}","");r=getEntityFieldValue(o,m)}}else if(e.indexOf("${page.")===0){const m=e.replace("${page.","").replace("}","");r=i?i[m]:null}else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")||e.includes("${data.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),r=getContextValue(l,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),s&&s!=null&&Object.keys(s).indexOf(e)>=0&&s[e]&&s[e]!==null?r=s[e]:r=null;else if(e.includes("${obj."))if(n===void 0||n==null)r=null;else{const m=e.replace("${obj.","").replace("}","");r=getEntityFieldValue(n,m)}else if(e.includes("${data."))if(n===void 0||n==null)r=null;else{const m=e.replace("${data.","").replace("}","");r=getEntityFieldValue(n,m)}}else if(e.includes("${parent."))if(a===void 0||a==null)r=null;else{const m=e.replace("${parent.","").replace("}","");r=getEntityFieldValue(a,m)}else if(e.includes("${system."))if(c===void 0||c==null)r=null;else{const m=e.replace("${system.","").replace("}","");r=getEntityFieldValue(c,m)}else if(e.includes("${task."))if(u===void 0||u==null)r=null;else{const m=e.replace("${task.","").replace("}","");r=getEntityFieldValue(u,m)}else if(e.includes("${subObj."))if(d===void 0||d==null)r=null;else{const m=e.replace("${subObj.","").replace("}","");r=getEntityFieldValue(d,m)}else e.includes("${input.")?r=e.replace("${input.","").replace("}",""):e.includes("${fixed.")?r=e.replace("${fixed.","").replace("}",""):r=e}return r}function getEntityFieldValue(e,t,o){if(!t)return null;let r=getEntityFieldValueWithCase(e,t);return r==null&&(r=getEntityFieldValueWithCase(e,t.toLowerCase())),(r===void 0||r===null&&o===void 0)&&(r=getEntityFieldValueWithCase(e,t.toUpperCase())),r}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const o=getParentObjectUtil(t,e),r=t.substring(t.lastIndexOf(".")+1);return o[r]}else return e[t]}function getParentObjectUtil(e,t){const o=e.split(".");if(o.length===1)return t;{let r;for(let n=0;n<o.length-1;n++)n===0?r=getParentModelProp(o[n],t):r=getParentModelProp(o[n],r);return r}}function getParentModelProp(e,t){let o=getParentModelPropWithCase(e,t);return o===void 0&&(o=getParentModelPropWithCase(e.toLowerCase(),t)),o===void 0&&(o=getParentModelPropWithCase(e.toUpperCase(),t)),o}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}const en={workflowEditorPublicModel:{add:"Add",insert:"Insert",delete:"Delete",viewConditions:"View Conditions",agree:"Agree",disagree:"Disagree",andOr:"And / Or",mail:"Mail",message:"Message",App:"App",dingding:"DingTalk",qiwei:"Weixin",feishu:"Lark",determine:"Determine",cancel:"Cancel",choice:"Choice",empty:"Empty",save:"Save",export:"Export",open:"Open",return:"Return",flowChart:"Flow Chart",close:"Close",selectPage:"Select Page",search:"Search",adminSave:"Admin Save",tipTitle:"Tip",i18nSet:"I18n Setting",i18nZh:"Chinese",i18nEn:"English",i18nKey:"I18n Key",subprocessTitle:"Subprocess History",custom:"Custom",enable:"Enable"},workflowEditorMessage:{requiredAndMustBeADate:"Required And Must Be A Date",requiredAndMustBeAnInteger:"Required And Must Be An Integer",requiredAndMustBeDecimal:"Required And Must Be Decimal",mustFill:"Must Fill",recordLine:"Record Line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",currentHandlingPersonnel:"Current Handling Personnel",pleaseSelect:"Please Select",pleaseSelectARow:"Please Select A Row",conditionsHaveNotBeenSet:"Conditions Have Not Been Set",viewConditions:"View Conditions",fieldSettings:"Field Settings",valueSetting:"Value Setting",pleaseEnterContent:"Please Enter Content",theFieldNameOrFieldValueInLineCannotBeEmpty:"The Field Name Or Field Value In Line {row} Cannot Be Empty",fieldNameCannotBeEmpty:"Field Name Cannot Be Empty",fieldValueCannotBeEmpty:"Field Value Cannot Be Empty",pleaseEnterASubject:"Please Enter A Subject",selectStandardFields:"Select Standard Fields",pleaseEnterTheRoleName:"Please Enter The Role Name",queryResultIsEmpty:"Query Result Is Empty",selectRole:"Select Role",enterText:"Enter Text",selectField:"Select Field",pleaseSelectPersonnel:"Please Select Personnel",pleaseSelectAValue:"Please Select A Value",pleaseSelectAValueInTheCurrentTab:"Please Select A Value In The Current Tab",variableNameCannotBeEmpty:"Variable Name Cannot Be Empty",variableValueCannotBeEmpty:"Variable Value Cannot Be Empty",variableNameOrValueOnLineCannotBeEmpty:"Variable Name Or Value On Line {row} Cannot Be Empty",whenThereAreMultipleManagers:"When There Are Multiple Managers",duplicateOperationTypeWithLinePleaseReselect:"Duplicate Operation Type With Line {row}, Please Reselect",theOperationTypeOrNameInLineIsEmpty:"The Operation Type Or Name In Line {row} Is Empty",readOnly:"Read Only",pleaseEnterFieldName:"Please Enter Field Name",dataInLineCannotBeEmpty:"{data1} Or {data2} In Line {row} Cannot Be Empty",dataCannotBeEmpty:"{data} Cannot Be Empty",theStartAndEndOfTheFlowDirectionCannotBeTheSame:"The Start And End Of The Flow Direction Cannot Be The Same",onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows:"Only Condition Judgment, Branch And Manual Judgment Can Have Multiple Outbound Flows",startAndEndNodesCannotBeConnectedDirectly:"Start And End Nodes Cannot Be Connected Directly",endNodeCannotHaveOutFlowDirection:"End Node Cannot Have Out Flow Direction",itIsTheSameAsTheExistingLink:"It Is The Same As The Existing Link: {name}",updateSuccessful:"Update Successful",savedSuccessfully:"Saved Successfully",exportSucceeded:"Export Succeeded",pleaseSelectRole:"Please select role",subTableMustInputDatas:"The [{subtable}] subtable must enter data",pleaseEnterTheNameOrCode:"Please Enter The Name Or Describe",updateVersionSuccessful:"Version updated successfully",addVersionSuccessful:"Version added successfully",adminSaveTip:"The version must be added in the following cases:",adminSaveTip1:"1.The process name or code has been modified",adminSaveTip2:"2.The node name or code has been modified",adminSaveTip3:"3.Added node or flow direction",adminSaveTip4:"4.Node or flow direction removed",adminSaveTip5:'Please select "Add Version" or "Update Current Version"?',updateVersion:"Update Current Version",addVersion:"Add Version",pleaseInputCode:"Please input the code first, and then do the international configuration",blankFieldNameOrValue:"Blank Field Name Or Value",enabledSuccessfully:"Enabled Successfully"},workflowEditor:{main:{tacheType:"Tache Type",straightLine:"Straight Line",curveLine:"Curve Line",brokenLine:"Broken Line"},common:{remove:"Remove",attribute:"Attribute",fieldName:"Field Name(*)",operator:"Operator",value:"Value(*)",name:"Name",fieldValue:"Field Value",separator:"Separator",fillInMethod:"Fill In Method",cover:"Cover",append:"Append",insertToFront:"Insert To Front",fillInTime:"Fill In Time",fillInBeforeHandling:"Fill In Before Handling",fillInAfterHandling:"Fill In After Handling",type:"Type(*)",user:"User",role:"Role",department:"Department",workgroup:"Workgroup",selectFormField:"Select Form Field",notificationMethod:"Notification Method",addressee:"Addressee",theme:"Theme",content:"Content",notifyPersonnel:"Notify Personnel",selectusers:"Select Users",selectDepartment:"Select Department",selectTeam:"Select Team",selectRole:"Select Role",organizationStructure:"Organization Structure",formField:"Form Field",variableName:"Variable Name",variableValue:"Variable Value",selectField:"Select Field",taskNotice:"Task Notice",reminderNotice:"Reminder Notice",customMsg:"Custom Notice Message",canNotBeEmpty:"can Not Be Empty",copy:"Copy"},process:{processInitiator:"Process Initiator",processInitiatorRole:"Process Initiator Role",processInitiatorDepartment:"ProcessInitiator Department",processInitiatorSuperiorDepartment:"Process Initiator Superior Ddepartment",processInitiatorTopDepartment:"Process Initiator Top Department",processInitiatorWorkingGroup:"Process Initiator Working Group",nameOfTheDirectSuperiorOfTheProcessInitiator:"Name Of The Direct Superior Of The Process Initiator",processInitiatorsDirectSuperiorDepartment:"Process initiator`s Direct Superior Department",directSuperiorRoleOfProcessInitiator:"Direct Superior Role Of Process Initiator",ProcessInitiatorsImmediateSuperiorWorkingGroup:"Process Initiator`s Immediate Superior Working Group",nameOfCurrentHandler:"Name Of Current Handler",currentHandlerRole:"Current Handler Role",currentHandlerDepartment:"Current Handler Department",currentHandlerSuperiorDepartment:"Current Handler`s Superior Department",topDepartmentOfCurrentHandler:"Top Department Of current Handler",currentHandlerWorkingGroup:"Current Handler Working Group",nameOfTheImmediateSuperiorOfTheCurrentHandler:"Name Of The Immediate Superior Of The Current Handler",currentHandlerDirectSuperiorDepartment:"Current handler`s Direct Superior Department",currentManagerDirectSuperiorRole:"Current Manager`s Direct Superior Role",workingGroupDirectlyUnderTheCurrentHandler:"Working Group Directly Under The Current Handler",topDepartments:"Top Departments",approvalResults:"Approval Results",totalNnumberOfPersonsWhoDisagreeWithTheCountersignature:"Total Number O Persons Who Disagree With The Countersignature",totalNumberOfCountersignedAndAgreedPersonnel:"Total Number Of Countersigned And Agreed Personnel",percentageOfPersonsWhoDisagreeWithTheCountersignature:"Percntage Of Persons Who Disagree With The Countersignature",percentageOfCountersignedAndAgreedPersonnel:"Percentage Of Countersigned And Agreed Personnel",percentageOfAbstentions:"Percentage Of Abstentions",percentageOfVotesAgainst:"Percentage Of Votes Against",percentageOfAffirmativeVotes:"Percentage Of Affirmative Votes",totalNumberOfAbstentions:"Total Number Of Abstentions",totalVotesAgainst:"Total Votes Against",totalNumberOfAffirmativeVotes:"Total Number Of Affirmative Votes",standardFields:"Standard Fields",perhaps:"Perhaps",also:"Also",greaterThan:"Greater Than",lessThan:"Less Than",beEqualTo:"Be Equal To",notGreaterThan:"Not Greater Than",notLessThan:"Not Less Than",notEqualTo:"Not Equal To",contain:"Contain",notIncluded:"Not Included",laterThan:"Later Than",earlierThan:"Earlier Than",noLaterThan:"No Later Than",noEarlierThan:"No Earlier Than",handlingTimeOfThisLink:"Handling Time Of This Link",handlerIDOfThisLink:"Handler ID Of This Link",currentHandlerPrincipalDepartmentID:"Current Handler Principal Department ID",iDOfTheImmediateSuperiorOfTheCurrentHandler:"ID Of The Immediate Superior Of The Current Handler",iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler:"ID Of The Superior Department Directly Under The Current Handler",loginNameOfTheHandlerInThisLink:"Login Name Of The Handler In This Link",NameOfCurrentHandler:"Name Of Current Handler",CurrentHandlerDepartment:"Current Handler Department",CurrentHandlerDepartmentID:"Current Handler Department ID",CurrentManagersPrincipalDepartment:"Current Manager`s Principal Department",iDOfSsuperiorDepartmentOfCurrentHandler:"ID Of Superior Department Of Current Handler",CurrentHandlersSuperiorDepartment:"Current Handler`s Superior Department",TopDepartmentOfCurrentHandler:"Top Department Of Current Handler",TopDepartmentIDOfCurrentHandler:"Top Department ID Of Current Handler",CurrentHandlerRole:"Current Handler Role",CurrentHandlerRoleID:"Current Handler Role ID",CurrentHandlerWorkingGroupID:"Current Handler Working Group ID",LoginNameOfTheImmediateSuperiorOfTheCurrentHandler:"Login Name Of The Immediate Superior Of The Current Handler",currentHandlersDirectSuperiorDepartment:"Current handler`s Direct Superior Department",currentManagersDirectSuperiorDepartment:"Current Manager`s Direct Superior Department",currentManagersDirectSuperiorRole:"Current manager`s Direct Superior Role",currentHandlersDirectSuperiorRoleID:"Current Handler`s Direct Superior Role ID",currentManagersDirectSuperiorWork:"Current Manager`s Direct Superior Work",iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler:"ID Of The Working Group Directly Under The Current Handler",operationsPerformedInThisPhase:"Operations Performed In This Phase",handlerIDOfThePreviousLink:"Handler ID Of The Previous Link",lastLinkHandlerLogin:"Last Link Handler Login",nameOfHandlerInThePreviousLink:"Name Of Handler In The Previous Link",currentManagersIdDirectlyUnderTheSuperior:"Current Manager`s Id Directly Under The Ssuperior",appointmentOfHandlerInThePreviousLink:"Appointment Of Handler In The Previous Link",personSpecifiedInFormField:"Person Specified In Form Field",filterByCriteria:"Filter by Criteria",additionalConditions:"Additional Conditions",handlingYyThePersonnelOfTheDepartmentOfTheInitiator:"Handling By The Personnel Of The Department Of The Initiator",personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling:"Personnel Of The Department Where The Initiator Works Participate In The Handling",selectSpecificHandler:"Select Specific Handler",selectOneFromDept:"Only one person is required to handle the same department",generateOneInstanceFromDept:"Generate an instance from the same department",selectionMethod:"Selection Method",manualSelection:"Manual Selection",autoSelect:"Auto Select",callbackURL:"Callback URL",cannotBeEmpty:"Cannot Be Empty",selectURL:"Select URL",fieldName:"Field Name",processAdministrator:"Process Administrator",currentHandler:"Current Handler",allHandlingPersonnel:"All Handling Personnel",designatedPersonnel:"Designated Personnel",listOfDesignatedPersons:"List Of Designated Persons",processName:"Process Name",processCode:"Process Code",creater:"Creater",correspondingForm:"Corresponding Form",processType:"Process Type",system:"System",affiliatedBranch:"Affiliated Branch",customCategory:"Custom Category",initiationProcess:"Initiation Process",deleteProcess:"Delete Process",cancelProcess:"Cancel Process",endProcess:"End Process",pauseProcess:"Pause Process",continueTheProcess:"Continue The Process",jumpLink:"Jump Link",modificationHandler:"Modification Handler",addHandler:"Add Handler",decreaseOofHandler:"Decrease Of Handler",appointedTask:"Appointed Task",returnTask:"Return Task",retrieveTask:"Retrieve Task",processTaskParameterSettings:"Process Task Parameter Settings",uRLForProcessingTask:"URL For Processing Task",parametersForReceivingTaskID:"Parameters For Receiving Task ID",viewFormParameterSettings:"View Form Parameter Settings",viewTheURLOfTheForm:"View The URL Of The Form",parametersOfReceivingEntityID:"Parameters Of Receiving Entity ID",emergencyTreatmentParameterSetting:"Emergency Treatment Parameter Setting",uRLOfEmergencyHandling:"URL Of Emergency Handling",initiateProcessParameterSettings:"Initiate Process Parameter Settings",uRLOfTheInitiatingProcess:"URL Of The Initiating Process",parametersForReceivingProcessName:"Parameters For Receiving Process Name",customParameterValue:"Custom Parameter Value",ViewFlowHistoryPersonnel:"View Flow History Personnel",ViewCountersignatureResultPersonnel:"View Countersignature Result Personnel",ViewVotingResultsBy:"View Voting Results By",name:"Name",code:"Code",subprocess:"Subprocess",transferValueFromMainFormToSubForm:"Transfer Value From Main Form To Sub Form",fieldsOfTheMainForm:"Fields Of The Main Form",fieldsOfSubform:"Fields Of Subform",subformReturnsResultsToMainForm:"Subform Returns Results To Main Form",eventsTriggeredBeforeStartingASubprocess:"Events Triggered Before Starting A Subprocess",triggerSubprocessEndEvent:"Trigger Subprocess End Event",setTheHandlerOfTheFirstPhaseOfTheSubProcess:"Set The Handler Of The First Phase Of The Sub Process",keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly:"Keep The Handler Unchanged When The Target Link Is Handled Repeatedly",branchingCondition:"Branching Condition",processProperties:"Process Properties",basicProperties:"Basic Properties",permissionSettings:"Permission Settings",notificationSettings:"Notification Settings",sendNotificationAfterProcessEnds:"Send Notification After Process Ends",reminderSettings:"Notice And Reminder Settings",parameterSsetting:"Parameter Setting",event:"Event",processVariables:"Process Variables",propertiesOfSubprocesses:"Properties Of Subprocesses",settingOfHandler:"Setting Of Handler",eventProcessing:"Event Processing",sponsorsImmediateSuperior:"Sponsor`s Immediate Superior",sponsorsSuperiorDepartment:"Sponsor`s Superior Department",sponsorTopDepartment:"Sponsor Top Department",superiorDepartmentDirectlyUnderTheInitiator:"Superior Department Directly Under The Initiator",sponsorsImmediateSuperiorWorkingGroup:"Sponsor`s Immediate Superior Working Group",lastLinkHandlerDepartment:"Last Link Handler Department",previousLinkHandlerSuperiorDepartment:"Previous Link Handler Superior Department",topDepartmentOfHandlerInThePreviousLink:"Top Department Of Handler In The Previous Link",previousLinkHandlersDirectSuperiorDepartment:"Previous Link Handler`s Direct Superior Department",previousLinkHandlerWorkingGroup:"Previous Link Handler Working Group",workingGroupDirectlyUnderTheManagerInThePreviousLink:"Working Group Directly Under The Manager In The Previous Link",getSubprocessEntityBean:"Get subprocess entity bean",getSubprocessEntityBeanPlaceholder:"The format is:xxxServiceImpl,for example:exampleServiceImpl",getSubprocessEntityBeanInfo:'The bean needs to implement the interface "tech.imatrix.wf.core.OnStartingSubProcess"',isNull:"Is Null",isNotNull:"Is Not Null",defaultMailTemplate:"Default Mail Template",defaultCommonTemplate:"Default Common Template",trustTask:"Trust Task",subprocessIsSharedForm:"Main process and subprocess shared form",generateForParttimeDept:"Generate tasks for part-time department personnel",deptSpecifiedInFormField:"Dept Specified In Form Field",activateOneVoteVeto:"Activate one vote veto",systemVersion:"System Version",tableCode:"DataTable Name",deptApprover:"Authorized approver of the drafting department",superiorDeptApprover:"Drafted by the authorized approver of the superior department",superiorDeptLeader:"Drafted by the superior department head"},task:{newCc:"New Cc",judge:"Judge",end:"End",branch:"Branch",manualJudgment:"Manual Judgment",newTask:"New Task",converge:"Converge",newProcess:"New Process",start:"Start",subprocess:"Subprocess",needToBeUrged:"Need To Be Urged",urgingMethod:"Urging Method",timeLimitForHandling:"Time Limit For Handling",day:"Day",urgingInterval:"Urging Interval",hour:"Hour",alwaysUrging:"Always Urging",limitedUrging:"Limited Urging",timesOfUrging:"Times Of Urging",includingHandoverPersonnel:"Including Handover Personnel",handoverPersonnel:"Handover Personnel",includeNotifyPeople:"Include Notify People",name:"Name",code:"Code",taskTitle:"Task Title",emailNotification:"Email Notification",handlingPage:"Handling Page",remarks:"Remarks",allowViews:"Allow Views",allowToViewCountersignatureResults:"Allow To View Countersignature Results",allowToViewVotingResults:"Allow To View Voting Results",allowToViewFlowHistory:"Allow To View Flow History",allowFormsToPrint:"Allow Forms To Print",attachmentAuthority:"Attachment Authority",downloadAttachment:"Download Attachment",bodyPermission:"Body Permission(Temporarily Closed)",additionalConditions:"Additional Conditions",setConditions:"Set Conditions",HandlingMethod:"Handling Method",editorial:"Editorial",approvalType:"Approval Type",countersign:"Countersign",voting:"Voting",anyOneCanHandleIt:"Any One Can Handle It",forAll:"For All",passRate:"Pass Rate",modifyOperationName:"Modify Operation Name",operationType:"Operation Type",visibleOrNot:"Visible Or Not",save:"Save",submission:"Submission",agree:"Agree",disagree:"Disagree",favor:"Favor",opposition:"Opposition",waiver:"Waiver",receive:"Receive",giveUp:"Give Up",additionalSignature:"Additional Signature",reductionOfSignature:"Reduction Of Signature",assignTask:"Assign Task",copyTask:"Copy Task",retrieveTask:"Retrieve Task",exportReport:"Export Report",readTask:"Read",selectEditableField:"Select Editable Field",optionalField:"Optional Field",selectedFields:"Selected Fields",editingMethod:"Editing Method",propertyName:"Property Name",condition:"Condition",nothing:"Nothing",beforeSubmission:"Before Submission",executionURL:"Execution URL",errorMessage:"Error Message",afterSubmission:"After Submission",allowEditingForms:"Allow Editing Forms",commentsAllowed:"Comments Allowed",commentsAreRequired:"Comments Are Required",deletePermission:"Delete Permission",addAttachment:"Add Attachment",deleteAttachment:"Delete Attachment",propertiesOfCCTask:"Properties Of CC Task",basicProperties:"Basic Properties",settingOfHandler:"Setting Of Handler",permissionSettings:"Permission Settings",attributeOfConditionJudgment:"Attribute Of Condition Judgment",allBranchFlows:"All Branch Flows",targetLink:"Target Link",propertiesOfBranches:"Properties Of Branches",attributesOfManualJudgment:"Attributes of manual Judgment",linkAttribute:"Link Attribute",autoFillInFieldSettings:"Auto Fill In Field Settings",reminderSettings:"Notice And Reminder Settings",eventProcessing:"Event Processing",linkVariable:"Link Variable",convergedProperties:"Converged Properties",humanTask:"Human Task",conditionJudgment:"Condition Judgment",cCtask:"CC Task",canItBeRejected:"Can It Be Rejected",selectNoticeTemplate:"Select Notice Template",selectMailTemplate:"Select Email Template",selectTemplate:"Select Template",autoTask:"Auto Task",newAutoTask:"New Auto Task",propertiesOfAutoTask:"Properties Of Auto Task",custombeanName:"Custom Bean Name",baseField:"Base Field",reminderTipTemplateMsg:"Template Description:",reminderTipRemindMsg:"Reminder Description:",reminderTipTemplateNotice:'Notification templates: DingTalk, Enterprise WeChat, Feishu, and Customization all use notification templates. When using email, if "email template" is not selected, use notification template',reminderTipTemplateEmail:"Email Template: Customized Email Template",reminderTipRemindImmediately:"The reminder method, notification template, email template, maximum number of reminders, notification method, notification personnel, and transfer personnel will take effect immediately after modification",reminderTipRemindHistory:"The processing time limit, processing time granularity (days/hours), reminder interval, reminder interval time granularity (days/hours) are only effective for newly initiated processes. If historical data also requires the latest configuration, please contact the operation and maintenance personnel to adjust"},transition:{flowProperties:"Flow Properties",basicProperties:"Basic Properties",notificationSettings:"Notification Settings",sendNotificationAfterFlow:"Send Notification After Flow",autoFillInFieldSettings:"Auto Fill In Field Settings",eventProcessing:"Event Processing",triggerFlowThroughEvent:"Trigger Flow Through Event",beanName:"Bean Name"},condition:{combinationCondition:"Combination Condition",currentUserId:"Current User ID",currentUserLogin:"Current User Login",currentUserName:"Current User Name",fillInManually:"Fill In Manually",environmentVariable:"Environment Variable",databaseFields:"Database fields",requestParameters:"Request Parameters",currentTime:"Current Time",currentDate:"Current Date",currentTransactor:"Current Transactor",currentTransactorName:"Current Transactor Name",currentTransactorId:"Current Transactor Id",currentTransactorMainDepartmentId:"Current Transactor Main Department Id",currentTransactorMainDepartment:"Current Transactor Main Department",currentTransactorRoleId:"Current Transactor Role Id",currentTransactorRole:"Current Transactor Role",currentTransactorWorkGroupId:"Current Transactor Work Group Id",currentTransactorWorkGroup:"Current Transactor Work Group",whenTheVariableIsEmpty:"When The Variable Is Empty",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",currentHandler:"Current Handler",currentTaskClient:"Current Task Client",currentAssignor:"Current Assignor",rowsCanBeAdded:"Rows Can Be Added",deleteLine:"Delete Line",modifiableHistoricalData:"Modifiable Historical Data",controlByField:"Control By Field",allReadOnly:"All Read Only",allRequired:"All Required",mainTableField:"Main Table Field",linkName:"Link Name",linkCode:"Link Code",taskFields:"Task Fields",systemParameter:"System Parameter",personnelScope:"Personnel Scope",mainTableConditions:"Main Table Conditions",subtableCondition:"Subtable Condition",accessControl:"Access Control",formBindingModel:"Form Binding Model",allFields:"All Fields",tableDataNotEmpty:"Table Data Not Empty"}}},cn={workflowEditorPublicModel:{add:"添加",insert:"插入",delete:"删除",viewConditions:"查看条件",agree:"同意",disagree:"不同意",andOr:"并且/或者",mail:"邮件",message:"短信",App:"App",dingding:"钉钉",qiwei:"企业微信",feishu:"飞书",determine:"确定",cancel:"取消",choice:"选择",empty:"清空",save:"保存",export:"导出",open:"打开",return:"返回",flowChart:"流程图",close:"关闭",selectPage:"选择页面",search:"查询",adminSave:"管理员保存",tipTitle:"提示",i18nSet:"国际化设置",i18nZh:"中文",i18nEn:"英文",i18nKey:"国际化key",subprocessTitle:"子流程流转历史",custom:"自定义",enable:"启用"},workflowEditorMessage:{requiredAndMustBeADate:"必填且必须为日期",requiredAndMustBeAnInteger:"必填且必须为整数",requiredAndMustBeDecimal:"必填且必须为小数",mustFill:"必填",recordLine:"第{row}行记录",pageRecordLine:"第{pageNum}页第{row}行记录",currentHandlingPersonnel:"当前办理人员",pleaseSelect:"请选择",pleaseSelectARow:"请选中一行",conditionsHaveNotBeenSet:"还未设置条件",viewConditions:"查看条件",fieldSettings:"字段设置",valueSetting:"值设置",pleaseEnterContent:"请输入内容",theFieldNameOrFieldValueInLineCannotBeEmpty:"第{row}行的字段名或者字段值不能为空",fieldNameCannotBeEmpty:"字段名不能为空",fieldValueCannotBeEmpty:"字段值不能为空",pleaseEnterASubject:"请输入主题",selectStandardFields:"选择标准字段",pleaseEnterTheRoleName:"请输入角色名称",queryResultIsEmpty:"查询结果为空",selectRole:"选择角色",enterText:"输入文字",selectField:"选择字段",pleaseSelectPersonnel:"请选择人员",pleaseSelectAValue:"请选择值",pleaseSelectAValueInTheCurrentTab:"请在当前页签中选中一个值",variableNameCannotBeEmpty:"变量名不能为空",variableValueCannotBeEmpty:"变量值不能为空",variableNameOrValueOnLineCannotBeEmpty:"第{row}行的变量名或者变量值不能为空",whenThereAreMultipleManagers:"多个办理人时",duplicateOperationTypeWithLinePleaseReselect:"与第{row}行的操作类型重复了,请重新选择",theOperationTypeOrNameInLineIsEmpty:"第{row}行的操作类型或者名称为空",readOnly:"只读",pleaseEnterFieldName:"请输入字段名",dataInLineCannotBeEmpty:"第{row}行的{data1}或{data2}不能为空",dataCannotBeEmpty:"{data}不能为空",theStartAndEndOfTheFlowDirectionCannotBeTheSame:"流向的起点和终点不能相同",onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows:"只有条件判断、分支以及人工判断才能有多条外出流向",startAndEndNodesCannotBeConnectedDirectly:"开始节点和结束节点不能直接相连",endNodeCannotHaveOutFlowDirection:"结束节点不能有外出流向",itIsTheSameAsTheExistingLink:"与已有环节:{name}的编码重复",updateSuccessful:"更新成功",savedSuccessfully:"保存成功",exportSucceeded:"导出成功",pleaseSelectRole:"请选择角色",subTableMustInputDatas:"[{subTable}] 子表必须录入数据",pleaseEnterTheNameOrCode:"请输入字段名或字段描述",updateVersionSuccessful:"成功更新版本",addVersionSuccessful:"成功增加版本",adminSaveTip:"有以下几种情况时必须增加版本:",adminSaveTip1:"1、修改了流程名称或编码",adminSaveTip2:"2、修改了节点名称或编码",adminSaveTip3:"3、增加了节点或流向",adminSaveTip4:"4、移除了节点或流向",adminSaveTip5:"请选择“增加版本”或“更新当前版本”?",updateVersion:"更新当前版本",addVersion:"增加版本",pleaseInputCode:"请先输入编码,再做国际化配置",blankFieldNameOrValue:"字段名或值有空白",enabledSuccessfully:"启用成功"},workflowEditor:{main:{tacheType:"环节类型",straightLine:"直线",curveLine:"曲线",brokenLine:"折线"},common:{remove:"移除",attribute:"属性",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",name:"字段名",fieldValue:"字段值",separator:"分隔符",fillInMethod:"填写方式",cover:"覆盖",append:"追加",insertToFront:"插入到最前",fillInTime:"填写时间",fillInBeforeHandling:"办理前填写",fillInAfterHandling:"办理后填写",type:"类别(*)",user:"用户",role:"角色",department:"部门",workgroup:"工作组",selectFormField:"选择表单字段",notificationMethod:"通知方式",addressee:"收件人",theme:"主题",content:"内容",notifyPersonnel:"通知人员",selectusers:"选择用户",selectDepartment:"选择部门",selectTeam:"选择工作组",selectRole:"选择角色",organizationStructure:"组织结构",formField:"表单字段",variableName:"变量名",variableValue:"变量值",selectField:"选择字段",taskNotice:"待办通知",reminderNotice:"催办通知",customMsg:"自定义消息内容",canNotBeEmpty:"不能为空",copy:"复制"},process:{processInitiator:"起草人",processInitiatorRole:"起草人角色",processInitiatorDepartment:"起草人部门",processInitiatorSuperiorDepartment:"起草人上级部门",processInitiatorTopDepartment:"起草人顶级部门",processInitiatorWorkingGroup:"起草人工作组",nameOfTheDirectSuperiorOfTheProcessInitiator:"起草人直属上级姓名",processInitiatorsDirectSuperiorDepartment:"起草人直属上级部门",directSuperiorRoleOfProcessInitiator:"起草人直属上级角色",ProcessInitiatorsImmediateSuperiorWorkingGroup:"起草人直属上级工作组",nameOfCurrentHandler:"当前办理人姓名",currentHandlerRole:"当前办理人角色",currentHandlerDepartment:"当前办理人部门",currentHandlerSuperiorDepartment:"当前办理人上级部门",topDepartmentOfCurrentHandler:"当前办理人顶级部门",currentHandlerWorkingGroup:"当前办理人工作组",nameOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级姓名",currentHandlerDirectSuperiorDepartment:"当前办理人直属上级部门",currentManagerDirectSuperiorRole:"当前办理人直属上级角色",workingGroupDirectlyUnderTheCurrentHandler:"当前办理人直属上级工作组",topDepartments:"顶级部门",approvalResults:"审批结果",totalNnumberOfPersonsWhoDisagreeWithTheCountersignature:"会签不同意人员总数",totalNumberOfCountersignedAndAgreedPersonnel:"会签同意人员总数",percentageOfPersonsWhoDisagreeWithTheCountersignature:"会签不同意人员百分比",percentageOfCountersignedAndAgreedPersonnel:"会签同意人员百分比",percentageOfAbstentions:"弃权票百分比",percentageOfVotesAgainst:"反对票百分比",percentageOfAffirmativeVotes:"赞成票百分比",totalNumberOfAbstentions:"弃权票总数",totalVotesAgainst:"反对票总数",totalNumberOfAffirmativeVotes:"赞成票总数",standardFields:"标准字段",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",handlingTimeOfThisLink:"本环节办理时间",handlerIDOfThisLink:"本环节办理人id",currentHandlerPrincipalDepartmentID:"当前办理人正职部门id",iDOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级id",iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler:"当前办理人直属上级正职部门id",loginNameOfTheHandlerInThisLink:"本环节办理人登录名",NameOfCurrentHandler:"当前办理人姓名",CurrentHandlerDepartment:"当前办理人部门",CurrentHandlerDepartmentID:"当前办理人部门id",CurrentManagersPrincipalDepartment:"当前办理人正职部门",iDOfSsuperiorDepartmentOfCurrentHandler:"当前办理人上级部门id",CurrentHandlersSuperiorDepartment:"当前办理人上级部门",TopDepartmentOfCurrentHandler:"当前办理人顶级部门",TopDepartmentIDOfCurrentHandler:"当前办理人顶级部门id",CurrentHandlerRole:"当前办理人角色",CurrentHandlerRoleID:"当前办理人角色id",CurrentHandlerWorkingGroupID:"当前办理人工作组id",LoginNameOfTheImmediateSuperiorOfTheCurrentHandler:"当前办理人直属上级登录名",currentHandlersDirectSuperiorDepartment:"当前办理人直属上级部门",currentManagersDirectSuperiorDepartment:"当前办理人直属上级正职部门",currentManagersDirectSuperiorRole:"当前办理人直属上级角色",currentHandlersDirectSuperiorRoleID:"当前办理人直属上级角色id",currentManagersDirectSuperiorWork:"当前办理人直属上级工作",iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler:"当前办理人直属上级工作组id",operationsPerformedInThisPhase:"本环节执行的操作",handlerIDOfThePreviousLink:"上一环节办理人id",lastLinkHandlerLogin:"上一环节办理人登录名",nameOfHandlerInThePreviousLink:"上一环节办理人姓名",currentManagersIdDirectlyUnderTheSuperior:"当前办理人直属上级部门id",appointmentOfHandlerInThePreviousLink:"上一环节办理人指定",personSpecifiedInFormField:"表单字段中指定的人员",filterByCriteria:"按条件筛选",additionalConditions:"附加条件",handlingYyThePersonnelOfTheDepartmentOfTheInitiator:"起草人所在部门人员办理",personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling:"起草人所在部门人员参与办理",selectSpecificHandler:"选择具体办理人",selectOneFromDept:"同一部门仅需一人办理",generateOneInstanceFromDept:"同一部门生成一个实例",selectionMethod:"选择方式",manualSelection:"人工选择",autoSelect:"自动选择",callbackURL:"回调URL",cannotBeEmpty:"不能为空",selectURL:"选人URL",fieldName:"字段名称",processAdministrator:"流程管理员",currentHandler:"当前办理人",allHandlingPersonnel:"所有办理人员",designatedPersonnel:"指定人员",listOfDesignatedPersons:"指定人员列表",processName:"流程名称",processCode:"流程编码",creater:"创建人",correspondingForm:"对应表单",processType:"流程类型",system:"所属系统",affiliatedBranch:"所属分支机构",customCategory:"自定义类别",initiationProcess:"发起流程",deleteProcess:"删除流程",cancelProcess:"取消流程",endProcess:"结束流程",pauseProcess:"暂停流程",continueTheProcess:"继续流程",jumpLink:"跳转环节",modificationHandler:"修改办理人",addHandler:"增加办理人",decreaseOofHandler:"减少办理人",appointedTask:"指派任务",returnTask:"退回任务",retrieveTask:"取回任务",processTaskParameterSettings:"办理任务参数设置",uRLForProcessingTask:"办理任务的url",parametersForReceivingTaskID:"接收任务id的参数",viewFormParameterSettings:"查看表单参数设置",viewTheURLOfTheForm:"查看表单的url",parametersOfReceivingEntityID:"接收实体id的参数",emergencyTreatmentParameterSetting:"应急处理参数设置",uRLOfEmergencyHandling:"应急处理的url",initiateProcessParameterSettings:"发起流程参数设置",uRLOfTheInitiatingProcess:"发起流程的url",parametersForReceivingProcessName:"接收流程名称的参数",customParameterValue:"自定义参数值",ViewFlowHistoryPersonnel:"查看流转历史人员",ViewCountersignatureResultPersonnel:"查看会签结果人员",ViewVotingResultsBy:"查看投票结果人员",name:"名称",code:"编码",subprocess:"子流程",transferValueFromMainFormToSubForm:"主表单给子表单传值",fieldsOfTheMainForm:"主表单的字段",fieldsOfSubform:"子表单的字段",subformReturnsResultsToMainForm:"子表单返回结果给主表单",eventsTriggeredBeforeStartingASubprocess:"启动子流程前事件",triggerSubprocessEndEvent:"触发子流程结束事件",setTheHandlerOfTheFirstPhaseOfTheSubProcess:"设置子流程第一环节办理人",keepTheHandlerUnchangedWhenTheTargetLinkIsHandledRepeatedly:"目标环节重复办理时保持办理人不变",branchingCondition:"分支条件",processProperties:"流程属性",basicProperties:"基本属性",permissionSettings:"权限设置",notificationSettings:"通知设置",sendNotificationAfterProcessEnds:"流程结束后发送通知",reminderSettings:"通知与催办",parameterSsetting:"参数设置",event:"事件",processVariables:"流程变量",propertiesOfSubprocesses:"子流程的属性",settingOfHandler:"办理人设置",eventProcessing:"事件处理",sponsorsImmediateSuperior:"起草人直属上级",sponsorsSuperiorDepartment:"起草人上级部门",sponsorTopDepartment:"起草人顶级部门",superiorDepartmentDirectlyUnderTheInitiator:"起草人直属上级部门",sponsorsImmediateSuperiorWorkingGroup:"起草人直属上级工作组",lastLinkHandlerDepartment:"上一环节办理人部门",previousLinkHandlerSuperiorDepartment:"上一环节办理人上级部门",topDepartmentOfHandlerInThePreviousLink:"上一环节办理人顶级部门",previousLinkHandlersDirectSuperiorDepartment:"上一环节办理人直属上级部门",previousLinkHandlerWorkingGroup:"上一环节办理人工作组",workingGroupDirectlyUnderTheManagerInThePreviousLink:"上一环节办理人直属上级工作组",getSubprocessEntityBean:"获得子流程实体bean",getSubprocessEntityBeanPlaceholder:"格式为:xxxServiceImpl,例如:exampleServiceImpl",getSubprocessEntityBeanInfo:"该bean需要实现接口tech.imatrix.wf.core.OnStartingSubProcess",isNull:"等于Null",isNotNull:"不等于Null",defaultMailTemplate:"默认邮件模板",defaultCommonTemplate:"默认通知模板",trustTask:"委托任务",subprocessIsSharedForm:"主子流程共用表单",generateForParttimeDept:"为兼职部门人员生成任务",deptSpecifiedInFormField:"表单字段中指定的部门",activateOneVoteVeto:"一票否决",systemVersion:"系统版本",tableCode:"对应数据表",deptApprover:"起草人部门授权审批人",superiorDeptApprover:"起草人上级部门授权审批人",superiorDeptLeader:"起草人上级部门负责人"},task:{newCc:"新抄送",judge:"判断",end:"结束",branch:"分支",manualJudgment:"人工判断",newTask:"新任务",converge:"汇聚",newProcess:"新流程",start:"开始",subprocess:"子流程",needToBeUrged:"需要催办",urgingMethod:"催办方式",timeLimitForHandling:"办理时限",day:"天",urgingInterval:"催办间隔",hour:"小时",alwaysUrging:"一直催办",limitedUrging:"限次催办",timesOfUrging:"催办次数",includingHandoverPersonnel:"包含移交人员",handoverPersonnel:"移交人员",includeNotifyPeople:"包含通知人员",name:"名称",code:"编码",taskTitle:"任务标题",emailNotification:"邮件通知",handlingPage:"办理页面",remarks:"备注",allowViews:"允许查看意见",allowToViewCountersignatureResults:"允许查看会签结果",allowToViewVotingResults:"允许查看投票结果",allowToViewFlowHistory:"允许查看流转历史",allowFormsToPrint:"允许打印表单",attachmentAuthority:"附件权限",downloadAttachment:"下载附件",bodyPermission:"正文权限(暂不开放)",additionalConditions:"附加条件",setConditions:"设置条件",HandlingMethod:"办理方式",editorial:"编辑式",approvalType:"审批式",countersign:"会签式",voting:"投票式",anyOneCanHandleIt:"任意一人办理即可",forAll:"所有人均需办理",passRate:"通过率",modifyOperationName:"修改操作名称",operationType:"操作类型",visibleOrNot:"是否可见",save:"保存",submission:"提交",agree:"同意",disagree:"不同意",favor:"赞成",opposition:"反对",waiver:"弃权",receive:"领取",giveUp:"放弃",additionalSignature:"加签",reductionOfSignature:"减签",assignTask:"指派",copyTask:"抄送",retrieveTask:"取回",exportReport:"导出报告",readTask:"阅",selectEditableField:"选择可编辑字段",optionalField:"可选字段",selectedFields:"已选字段",editingMethod:"编辑方式",propertyName:"属性名",condition:"条件",nothing:"无",beforeSubmission:"提交前",executionURL:"执行url",errorMessage:"出错信息",afterSubmission:"提交后",allowEditingForms:"允许编辑表单",commentsAllowed:"允许填写意见",commentsAreRequired:"必须填写意见",deletePermission:"删除权限",addAttachment:"添加附件",deleteAttachment:"删除附件",propertiesOfCCTask:"抄送任务的属性",basicProperties:"基本属性",settingOfHandler:"办理人设置",permissionSettings:"权限设置",attributeOfConditionJudgment:"条件判断的属性",allBranchFlows:"所有分支流向",targetLink:"目标环节",propertiesOfBranches:"分支的属性",attributesOfManualJudgment:"人工判断的属性",linkAttribute:"环节属性",autoFillInFieldSettings:"自动填写字段设置",reminderSettings:"通知与催办",eventProcessing:"事件处理",linkVariable:"环节变量",convergedProperties:"汇聚的属性",humanTask:"人工任务",conditionJudgment:"条件判断",cCtask:"抄送任务",canItBeRejected:"是否可驳回",selectNoticeTemplate:"选择通知模板",selectMailTemplate:"选择邮件模板",selectTemplate:"选择模板",autoTask:"自动任务",newAutoTask:"新自动任务",propertiesOfAutoTask:"自动任务的属性",custombeanName:"自定义bean",baseField:"基础字段",reminderTipTemplateMsg:"模板说明:",reminderTipRemindMsg:"催办说明:",reminderTipTemplateNotice:"通知模板:钉钉、企微、飞书、自定义都使用通知模板。邮件方式时,如果没有选“邮件模板”,则使用通知模板",reminderTipTemplateEmail:"邮件模板:邮件方式特制模板",reminderTipRemindImmediately:"催办方式、通知模板、邮件模板、催办次数、通知方式、通知人员、移交人员 修改后立即生效",reminderTipRemindHistory:"办理时限、办理时限的时间粒度(天/小时)、催办间隔、催办间隔的时间粒度(天/小时)仅对新发起的流程生效,如历史数据也需要应用最新配置,请联系运维人员调整"},transition:{flowProperties:"流向属性",basicProperties:"基本属性",notificationSettings:"通知设置",sendNotificationAfterFlow:"流过后发送通知",autoFillInFieldSettings:"自动填写字段设置",eventProcessing:"事件处理",triggerFlowThroughEvent:"触发流过事件",beanName:"bean名称"},condition:{combinationCondition:"组合条件",currentUserId:"当前用户ID",currentUserLogin:"当前用户登录名",currentUserName:"当前用户姓名",fillInManually:"手动填写",environmentVariable:"环境变量",databaseFields:"数据库字段",requestParameters:"请求参数",currentTime:"当前时间",currentDate:"当前日期",currentTransactor:"当前用户登录名",currentTransactorName:"当前用户姓名",currentTransactorId:"当前用户id",currentTransactorMainDepartmentId:"当前用户部门id",currentTransactorMainDepartment:"当前用户部门名称",currentTransactorRoleId:"当前用户角色id",currentTransactorRole:"当前用户角色名称",currentTransactorWorkGroupId:"当前用户工作组id",currentTransactorWorkGroup:"当前用户工作组名称",whenTheVariableIsEmpty:"变量为空时",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",currentHandler:"当前办理人",currentTaskClient:"当前任务委托人",currentAssignor:"当前指派人",rowsCanBeAdded:"可添加行",deleteLine:"可删除行",modifiableHistoricalData:"可修改历史数据",controlByField:"按字段控制",allReadOnly:"全部只读",allRequired:"全部必填",mainTableField:"主表字段",linkName:"环节名称",linkCode:"环节编码",taskFields:"任务字段",systemParameter:"系统参数",personnelScope:"人员范围",mainTableConditions:"主表条件",subtableCondition:"子表条件",accessControl:"进行权限控制",formBindingModel:"表单绑定model",allFields:"全部字段",tableDataNotEmpty:"表格数据不为空"}}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});function newAutoTask(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.newAutoTask")},g:{},taskNotice:{},basicProperties:{beanName:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},events:{},permissionSettings:{editForm:{permission:!1,field:[]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}}}}function newCopyTask(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.newCc")},g:{},taskNotice:{},basicProperties:{taskTitle:"",remark:"",taskUrl:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},events:{},permissionSettings:{editForm:{permission:!1,field:[]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}}}}function newDecision(){return{attr:{id:"t3",name:i18n.global.t("workflowEditor.task.judge")},g:{}}}function newEnd(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.end")},g:{}}}function newFork(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.branch")},g:{}}}function newHumanDecision(){return{attr:{name:i18n.global.t("workflowEditor.task.manualJudgment")},g:{}}}function newHumanTask(){return{attr:{id:"newHumanTask",name:i18n.global.t("workflowEditor.task.newTask")},g:{},basicProperties:{processingMode:{type:"EDIT",passRate:0,moreTransactor:!1,actions:{action:[]}},taskCode:"",taskTitle:"",remark:"",mailNotice:!1,taskUrl:""},transactorSettings:{userCondition:"",moreTransactor:!1,additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},permissionSettings:{editForm:{permission:!1,field:[],subTablePermission:[{tableName:"sub_table1",permission:!1,modelName:"model",action:[{name:"notEmpty",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"add",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"update",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"delete",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}],field:[{name:"all_fields",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"xxx",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}]},{tableName:"sub_table2",permission:!1,modelName:"model",action:[{name:"notEmpty",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"add",userCondition:"人员条件",parentCondition:"主表字段条件"},{name:"update",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"delete",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}],field:[{name:"all_fields",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"},{name:"xxx",constraintRule:"REQUIRED/READ_ONLY",userCondition:"人员条件",parentCondition:"主表字段条件",condition:"子表字段条件"}]}]},viewOpinion:{permission:!1,condition:""},editOpinion:{permission:!1,condition:""},requireOpinion:{permission:!1,condition:""},viewMeetingResult:{permission:!1,condition:""},viewVoteResult:{permission:!1,condition:""},viewFlowHistory:{permission:!1,condition:""},printForm:{permission:!1,condition:""},officialText:{permission:!1},attachment:{permission:!1},deleteInstance:{userCondition:""}},autoFilledFields:{field:[]},reminder:null,events:{afterComplete:!1},variables:{variable:[]}}}function newJoin(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.converge")},g:{}}}function newProcess(){const e=newHumanTask();return e.g={x:200,y:150,width:80,height:40},{attr:{name:i18n.global.t("workflowEditor.task.newProcess"),code:""},properties:{basicProperties:{admin:"",formVersion:1,formCode:"",processTypeCode:"",systemCode:"",creator:"",customType:"",branchCode:""},permissionSettings:{viewFlowHistory:"",viewSubscribeResult:"",viewVoteResult:""},reminder:null,parameterSettings:{doTask:{url:"",parameterName:""},viewForm:{url:"",parameterName:""},startProcess:{url:"",parameterName:"",parameterValue:""},handleEmergency:{url:"",parameterName:""}},events:{event:[]},variables:{variable:[]}},start:{attr:{id:"start"},g:{x:50,y:50,width:48,height:48}},humanTask:e,end:{attr:{id:"end"},g:{x:500,y:300,width:48,height:48}}}}function newStart(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.start")},g:{}}}function newSubprocess(){return{attr:{id:"",name:i18n.global.t("workflowEditor.task.subprocess"),taskTitle:""},g:{},processCode:"",processVersion:"",events:{beforeStart:"",end:!1},transactorSettings:{userCondition:"",additionalCondition:{onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1}},parameters:{field:[]},result:{field:[]}}}function newTransition(){return{attr:{id:"",from:"",to:""},g:{},basicProperties:{remark:"",isOriginalUser:!1,condition:""},inform:{informType:"mail",userCondition:"",subject:"",content:""},autoFilledFields:{field:[]},onTransit:!1}}function getStore$1(){return window.$store}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getComponentList(){return[{name:"Start",label:getI18n().t("workflowEditor.task.start"),icon:"start",type:"primary",class:"",round:!0,width:48,height:48,color:"#67C23A"},{name:"HumanTask",label:getI18n().t("workflowEditor.task.humanTask"),icon:"human-task",type:"",class:"",round:!0,width:80,height:40,color:"#000"},{name:"Decision",label:getI18n().t("workflowEditor.task.conditionJudgment"),icon:"decision",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"Fork",label:getI18n().t("workflowEditor.task.branch"),icon:"fork",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"Join",label:getI18n().t("workflowEditor.task.converge"),icon:"join",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"Subprocess",label:getI18n().t("workflowEditor.task.subprocess"),icon:"subprocess",type:"warning",class:"",round:!0,width:80,height:40,color:"#0777D4"},{name:"HumanDecision",label:getI18n().t("workflowEditor.task.manualJudgment"),icon:"human-decision",type:"",class:"",round:!0,width:48,height:48,color:"#999"},{name:"CopyTask",label:getI18n().t("workflowEditor.task.cCtask"),icon:"copy-task",type:"",class:"",round:!0,width:80,height:40,color:"#0777D4"},{name:"AutoTask",label:getI18n().t("workflowEditor.task.autoTask"),icon:"human-task",type:"",class:"",round:!0,width:80,height:40,color:"#0777D4"},{name:"End",label:getI18n().t("workflowEditor.task.end"),icon:"end",type:"danger",class:"workflow-end-button",round:!0,width:48,height:48,color:"#F56C6C"}]}function getComponentInfo(e){const t=getComponentList().filter(o=>o.name===e);return t.length>0?t[0]:null}function getParent(e){return getStore$1().getters["wfEditor/taches"].filter(r=>r.id===e)[0]}function getJoint(e,t){switch(typeof e=="string"&&(e=getParent(e)),t){case"up":case"top":return{position:"up",x:e.x+e.width/2,y:e.y};case"right":return{position:"right",x:e.x+e.width,y:e.y+e.height/2};case"down":case"bottom":return{position:"down",x:e.x+e.width/2,y:e.y+e.height};case"left":return{position:"left",x:e.x,y:e.y+e.height/2};default:return{position:"",x:e.x,y:e.y}}}function getMousePosition(e){const t=document.getElementById("svg").getScreenCTM();return{x:(e.clientX-t.e)/t.a,y:(e.clientY-t.f)/t.d}}function getVirtualRegion(e,t){if(!e||!t)return{};const{x:o,y:r}=e,{x:n,y:i}=t;var s={x:0,y:0,width:Math.abs(n-o),height:Math.abs(i-r)};return o<=n?r<=i?(s.x=o,s.y=r):(s.x=o,s.y=i):r>=i?(s.x=n,s.y=i):(s.x=n,s.y=r),s}function getRealRegion(e){let t,o;t=o=1e4;let r,n;r=n=0;for(const i of e)t>i.x&&(t=i.x),o>i.y&&(o=i.y),r<i.x+i.width&&(r=i.x+i.width),n<i.y+i.height&&(n=i.y+i.height);return{x:t-10,y:o-10,width:r-t+20,height:n-o+20}}function startDragTache(e,t){clearAllSelectedComponents(),t.$parent.region=null,t.$parent.showHistory||(t.model.isSelected=!0),getStore$1().getters["wfEditor/selectedTaches"].push(t.model);const o=getMousePosition(e);getStore$1().commit("wfEditor/setMouseDownPosition",o),getStore$1().commit("wfEditor/setMovingTache",!0)}function endDragTache(){getStore$1().commit("wfEditor/setMovingTache",!1),getStore$1().commit("wfEditor/setMouseDownPosition",null)}function unselectTaches(){for(const e of getStore$1().getters["wfEditor/selectedTaches"])e.isSelected=!1;getStore$1().commit("wfEditor/setSelectedTaches",[])}function clearAllSelectedComponents(){unselectTaches(),getStore$1().getters["wfEditor/selectedTransition"]&&(getStore$1().getters["wfEditor/selectedTransition"].isSelected=!1),getStore$1().commit("wfEditor/setSelectedTransition",null)}function removeTextProperty(e){Object.getOwnPropertyNames(e).forEach(function(o){if(typeof e[o]=="object")if(e[o]._text!==void 0){e[o]=e[o]._text;return}else Object.keys(e[o]).length>0?removeTextProperty(e[o]):["variables","events","autoFilledFields"].indexOf(o)<0&&(e[o]="")})}function generateTaches(e,t){t||(t=[]),Array.isArray(t)||(t=[t]);const o=getStore$1().getters["wfEditor/taches"];for(const r of t){const n={id:r.attr.id,name:r.attr.name,x:r.g.x,y:r.g.y,width:r.g.width,height:r.g.height,type:e,isSelected:!1,ref:r};o.push(n)}}function generateTransitions(e,t){t||(t=[]),Array.isArray(t)||(t=[t]);const o=getStore$1().getters["wfEditor/transitions"];for(const r of t){const n=r.basicProperties.remark||"",i={id:r.attr.id,startJoint:{parent:findTacheById(r.attr.from),position:r.g.fromJoint},endJoint:{parent:findTacheById(r.attr.to),position:r.g.toJoint},isSelected:!1,remark:n,lineInfo:{type:r.g.lineType,controlPoint:null},ref:r};if(r.g.lineType==="CurveLine"&&r.g.coordinate){const s=r.g.coordinate.split(",");i.lineInfo.controlPoint={x:s[0],y:s[1]}}else if(r.g.lineType==="BrokenLine"&&r.g.coordinate){const s=r.g.coordinate.split(";"),l=[];s.forEach(a=>{if(a!==""){const d=a.split(",");l.push({x:d[0],y:d[1]})}}),i.lineInfo.controlPoint=l}o.push(i)}}function initializeProcessData(e){e&&(generateTaches("HumanTask",e.humanTask),generateTaches("Decision",e.decision),generateTaches("Fork",e.fork),generateTaches("Join",e.join),generateTaches("Subprocess",e.subprocess),generateTaches("HumanDecision",e.humanDecision),generateTaches("CopyTask",e.copyTask),generateTaches("AutoTask",e.autoTask),generateTaches("Start",e.start),generateTaches("End",e.end),generateTransitions("Transition",e.transition))}function findOutgoingTransitionsByTacheId(e){return getStore$1().getters["wfEditor/transitions"].filter(r=>r.startJoint.parent.id===e||r.ref.attr.from===e)}function findIncomingTransitionsByTacheId(e){return getStore$1().getters["wfEditor/transitions"].filter(r=>r.endJoint.parent.id===e||r.ref.attr.to===e)}function findTacheById(e){const o=getStore$1().getters["wfEditor/taches"].filter(r=>r.ref.attr.id===e);return o.length>0?o[0]:null}function deepCopy(e){return JSON.parse(JSON.stringify(e))}function updateTransitionsWhenTacheIdChanged(e,t){return findIncomingTransitionsByTacheId(t).map(n=>{n.ref.attr.to=e,n.ref.attr.id="flow_"+n.ref.attr.from+"_to_"+n.ref.attr.to,n.id=n.ref.attr.id}),findOutgoingTransitionsByTacheId(t).map(n=>{n.ref.attr.from=e,n.ref.attr.id="flow_"+n.ref.attr.from+"_to_"+n.ref.attr.to,n.id=n.ref.attr.id}),!0}function validateTacheCode(e){const t=findTacheById(e.formModel.id);if(t&&t.id!==e.id){e.$alert(getI18n().t("workflowEditorMessage.itIsTheSameAsTheExistingLink",{name:t.name})),e.formModel.id=e.id;return}updateTransitionsWhenTacheIdChanged(e.formModel.id,e.id),e.$emit("update:id",e.formModel.id)}function watchShowName(e,t){let o="";if(e.processI18n&&e.model.ref&&e.model.ref.basicProperties&&e.model.ref.basicProperties.i18nKey){const r=e.model.ref.basicProperties.i18nKey,n=getLanguageWithLocale();e.processI18n[r]&&(o=e.processI18n[r][n]),o||(o=t)}else o=t;return o}const processTemplate={newProcess,newHumanTask,newDecision,newStart,newEnd,newTransition,newSubprocess,newFork,newJoin,newHumanDecision,newCopyTask,newAutoTask},iconSvg_vue_vue_type_style_index_0_lang="",_export_sfc$1=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o},_sfc_main$1D={name:"IconSvg",props:{icon:{type:String,required:!0}},computed:{iconName(){return`#icon-${this.icon}`}}},_hoisted_1$_={class:"svg-icon","aria-hidden":"true"},_hoisted_2$C=["xlink:href"];function _sfc_render$1u(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1$_,[Vue.createElementVNode("use",{"xlink:href":i.iconName},null,8,_hoisted_2$C)])}const IconSvg=_export_sfc$1(_sfc_main$1D,[["render",_sfc_render$1u]]),toolbox_vue_vue_type_style_index_0_scoped_0d941719_lang="",_sfc_main$1C={name:"Toolbox",components:{IconSvg},data(){return{componentList:getComponentList()}},computed:{...mapGetters("wfEditor",["componentToDraw"])},methods:{...mapMutations("wfEditor",["setComponentToDraw"]),select(e){this.setComponentToDraw(e)}}},_hoisted_1$Z={style:{height:"calc(100vh - 98px)","background-color":"#FFFFFF"}};function _sfc_render$1t(e,t,o,r,n,i){const s=Vue.resolveComponent("icon-svg"),l=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$Z,[Vue.createElementVNode("h3",null,Vue.toDisplayString(e.$t("workflowEditor.main.tacheType")),1),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.componentList,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a.name,type:a.type,class:Vue.normalizeClass(a.class),round:a.round,onMousedown:d=>i.select(a.name)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{icon:a.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(a.label),1)]),_:2},1032,["type","class","round","onMousedown"]))),128))])}const Toolbox=_export_sfc$1(_sfc_main$1C,[["render",_sfc_render$1t],["__scopeId","data-v-0d941719"]]),joint_vue_vue_type_style_index_0_lang="",_sfc_main$1B={name:"Joint",props:{parent:{type:Object,default:null},position:{type:String,default:null}},data(){return{isActivated:!1}},computed:{...mapGetters("wfEditor",["transitions","startJoint","endJoint","draggerToMove"]),joint(){return getJoint(this.parent,this.position)},jointContainer(){return{x:this.joint.x-10,y:this.joint.y-10}}},methods:{...mapMutations("wfEditor",["setStartJoint","setEndJoint","stopDrawingLine","setDraggerToMove","setContextMenuVisible"]),isValidTransition(e,t){if(!e)return!1;if(e.parent===t.parent)return this.$alert(this.$t("workflowEditorMessage.theStartAndEndOfTheFlowDirectionCannotBeTheSame")),!1;if(e.parent.type!=="Decision"&&e.parent.type!=="Fork"&&e.parent.type!=="HumanDecision"){let o=0;if(this.draggerToMove&&(o=1),findOutgoingTransitionsByTacheId(e.parent.id).length>o)return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")),!1}return e.parent.type==="Start"&&t.parent.type==="End"?(this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")),!1):e.parent.type==="End"?(this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")),!1):!0},mouseup(){if(console.log("joint mouseup"),this.draggerToMove){const e=this.draggerToMove.position,t={parent:this.parent,position:this.position};if(e==="start"?this.draggerToMove.owner.startJoint=t:this.draggerToMove.owner.endJoint=t,this.isValidTransition(this.draggerToMove.owner.startJoint,this.draggerToMove.owner.endJoint)){const o=this.draggerToMove.owner;o.id="flow_"+o.startJoint.parent.id+"_to_"+o.endJoint.parent.id,o.ref.attr={id:o.id,from:o.startJoint.parent.id,to:o.endJoint.parent.id}}else this.draggerToMove.owner.startJoint=this.draggerToMove.originStartJoint,this.draggerToMove.owner.endJoint=this.draggerToMove.originEndJoint;this.setDraggerToMove(null)}else this.addTransition()},addTransition(){const e={parent:this.parent,position:this.position};if(this.isValidTransition(this.startJoint,e)){this.setEndJoint(e);const t={id:"flow_"+this.startJoint.parent.id+"_to_"+this.endJoint.parent.id,startJoint:this.startJoint,endJoint:this.endJoint,isSelected:!1,lineInfo:{type:"StraightLine",controlPoint:null}};t.ref=processTemplate.newTransition(),t.ref.attr={id:t.id,from:this.startJoint.parent.id,to:this.endJoint.parent.id},this.transitions.push(t)}this.stopDrawingLine()},enterJoint(){this.isActivated=!0,this.$emit("enter-joint")},leaveJoint(){this.isActivated=!1,this.$emit("leave-joint")}}},_hoisted_1$Y=["x","y"],_hoisted_2$B=["cx","cy"];function _sfc_render$1s(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[4]||(t[4]=Vue.withModifiers(()=>{},["stop"]))},[Vue.createElementVNode("rect",{x:i.jointContainer.x,y:i.jointContainer.y,class:Vue.normalizeClass({"joint-container":!0,"joint-activated":n.isActivated}),width:"20",height:"20",rx:"3",ry:"3",onMousemove:t[0]||(t[0]=Vue.withModifiers((...s)=>i.enterJoint&&i.enterJoint(...s),["stop"])),onMouseout:t[1]||(t[1]=Vue.withModifiers((...s)=>i.leaveJoint&&i.leaveJoint(...s),["stop"])),onMousedown:t[2]||(t[2]=Vue.withModifiers(s=>{e.setContextMenuVisible(!1),e.setStartJoint({parent:o.parent,position:o.position})},["stop"])),onMouseup:t[3]||(t[3]=(...s)=>i.mouseup&&i.mouseup(...s))},null,42,_hoisted_1$Y),Vue.withDirectives(Vue.createElementVNode("circle",{cx:i.joint.x,cy:i.joint.y,r:"3",class:"joint"},null,8,_hoisted_2$B),[[Vue.vShow,!n.isActivated]])],32)}const Joint=_export_sfc$1(_sfc_main$1B,[["render",_sfc_render$1s]]),tacheMethods={startDrag(e){console.log(this.model.name+" mousedown"),this.setContextMenuVisible(!1),startDragTache(e,this)},endDrag(){console.log(this.model.name+" mouseup"),endDragTache()},showJoints(){this.$parent.showHistory||(this.jointPoints=["up","right","down","left"])},hideJoints(){this.jointPoints=[]}},start_vue_vue_type_style_index_0_lang="",_sfc_main$1A={name:"Start",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$X=["width","height","x","y"],_hoisted_2$A=["x","y","width","height"];function _sfc_render$1r(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor(""),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,start:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$X),Vue.createElementVNode("use",{"xlink:href":"#icon-start",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#67C23A",class:"draggable"},null,8,_hoisted_2$A),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Start=_export_sfc$1(_sfc_main$1A,[["render",_sfc_render$1r]]),end_vue_vue_type_style_index_0_lang="",_sfc_main$1z={name:"End",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$W=["width","height","x","y"],_hoisted_2$z=["x","y","width","height"];function _sfc_render$1q(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor(""),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,end:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$W),Vue.createElementVNode("use",{"xlink:href":"#icon-end",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#F56C6C",class:"draggable"},null,8,_hoisted_2$z),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const End=_export_sfc$1(_sfc_main$1z,[["render",_sfc_render$1q]]),tacheResizer_vue_vue_type_style_index_0_lang="",_sfc_main$1y={name:"TacheResizer",props:{owner:{type:Object,default:null},position:{type:String,default:""}},computed:{...mapGetters("wfEditor",["selectedTaches"]),area(){let o,r;switch(this.position){case"NW":o=this.owner.x,r=this.owner.y;break;case"NE":o=this.owner.x+this.owner.width,r=this.owner.y;break;case"SW":o=this.owner.x,r=this.owner.y+this.owner.height;break;case"SE":o=this.owner.x+this.owner.width,r=this.owner.y+this.owner.height;break}o=o-8/2,r=r-8/2;const n=this.position.toLowerCase()+"-resize";return{x:o,y:r,width:8,height:8,cursor:n}}},methods:{...mapMutations("wfEditor",["setMovingResizer","setResizerToMove","setContextMenuVisible"])}},_hoisted_1$V=["x","y","width","height"];function _sfc_render$1p(e,t,o,r,n,i){return o.owner.isSelected&&e.selectedTaches.length==1?(Vue.openBlock(),Vue.createElementBlock("rect",{key:0,x:i.area.x,y:i.area.y,width:i.area.width,height:i.area.height,style:Vue.normalizeStyle({cursor:i.area.cursor}),class:"resizer",onMousedown:t[0]||(t[0]=Vue.withModifiers(s=>{e.setContextMenuVisible(!1),e.setResizerToMove({owner:o.owner,position:o.position})},["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers(s=>e.setResizerToMove(null),["stop"]))},null,44,_hoisted_1$V)):Vue.createCommentVNode("",!0)}const TacheResizer=_export_sfc$1(_sfc_main$1y,[["render",_sfc_render$1p]]),_sfc_main$1x={name:"HumanTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$U=["width","height","x","y"],_hoisted_2$y=["x","y"];function _sfc_render$1o(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("HumanTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass(["draggable","task-tache",{selected:o.model.isSelected}]),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$U),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$y),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const HumanTask=_export_sfc$1(_sfc_main$1x,[["render",_sfc_render$1o]]),decision_vue_vue_type_style_index_0_lang="",_sfc_main$1w={name:"Decision",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$T=["width","height","x","y"],_hoisted_2$x=["x","y","width","height"],_hoisted_3$f=["x","y"];function _sfc_render$1n(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("Decision"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$T),Vue.createElementVNode("use",{"xlink:href":"#icon-decision",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$x),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$f),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Decision=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$1n]]),_sfc_main$1v={name:"Subprocess",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$S=["width","height","x","y"],_hoisted_2$w=["x","y"];function _sfc_render$1m(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("Subprocess"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$S),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$w),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const Subprocess=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$1m]]),_sfc_main$1u={name:"CustomTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"]}},computed:{...mapGetters("wfEditor",["selectedTaches"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$R=["width","height","x","y"],_hoisted_2$v=["x","y"];function _sfc_render$1l(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("HumanTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$R),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(o.model.name),9,_hoisted_2$v),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const CustomTask=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$1l]]),fork_vue_vue_type_style_index_0_lang="",_sfc_main$1t={name:"Fork",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$Q=["width","height","x","y"],_hoisted_2$u=["x","y","width","height"],_hoisted_3$e=["x","y"];function _sfc_render$1k(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("Fork"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$Q),Vue.createElementVNode("use",{"xlink:href":"#icon-fork",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$u),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$e),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Fork=_export_sfc$1(_sfc_main$1t,[["render",_sfc_render$1k]]),join_vue_vue_type_style_index_0_lang="",_sfc_main$1s={name:"Join",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[]}},computed:{...mapGetters("wfEditor",["selectedTaches"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$P=["width","height","x","y"],_hoisted_2$t=["x","y","width","height"],_hoisted_3$d=["x","y"];function _sfc_render$1j(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("Join"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,decision:!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$P),Vue.createElementVNode("use",{"xlink:href":"#icon-join",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$t),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(o.model.name),9,_hoisted_3$d),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const Join=_export_sfc$1(_sfc_main$1s,[["render",_sfc_render$1j]]),humanDecision_vue_vue_type_style_index_0_lang="",_sfc_main$1r={name:"HumanDecision",components:{Joint},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height+12}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$O=["width","height","x","y"],_hoisted_2$s=["x","y","width","height"],_hoisted_3$c=["x","y"];function _sfc_render$1i(e,t,o,r,n,i){const s=Vue.resolveComponent("joint");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...l)=>e.startDrag&&e.startDrag(...l),["stop"])),onMouseup:t[1]||(t[1]=(...l)=>e.endDrag&&e.endDrag(...l)),onMouseenter:t[2]||(t[2]=(...l)=>e.showJoints&&e.showJoints(...l)),onMouseleave:t[3]||(t[3]=(...l)=>e.hideJoints&&e.hideJoints(...l)),onDblclick:t[4]||(t[4]=Vue.withModifiers(l=>e.setPropertiesEditorFor("HumanDecision"),["stop"]))},[Vue.createElementVNode("rect",{width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"human-decision":!o.model.isSelected,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$O),Vue.createElementVNode("use",{"xlink:href":"#icon-human-decision",x:o.model.x,y:o.model.y,width:o.model.width,height:o.model.height,fill:"#999",class:"draggable"},null,8,_hoisted_2$s),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_3$c),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,l=>(Vue.openBlock(),Vue.createBlock(s,{key:l,parent:o.model,position:l},null,8,["parent","position"]))),128))],32)}const HumanDecision=_export_sfc$1(_sfc_main$1r,[["render",_sfc_render$1i]]),_sfc_main$1q={name:"CopyTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$N=["width","height","x","y"],_hoisted_2$r=["x","y"];function _sfc_render$1h(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("CopyTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$N),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$r),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const CopyTask=_export_sfc$1(_sfc_main$1q,[["render",_sfc_render$1h]]),_sfc_main$1p={name:"AutoTask",components:{Joint,TacheResizer},props:{model:{type:Object,default:null}},data(){return{jointPoints:[],resizers:["NW","NE","SW","SE"],name:this.model.name}},computed:{...mapGetters("wfEditor",["selectedTaches","processI18n"]),text(){return{x:this.model.x+this.model.width/2,y:this.model.y+this.model.height/2}}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.name",function(e){this.name=watchShowName(this,e)})},methods:{...mapMutations("wfEditor",["setPropertiesEditorFor","setContextMenuVisible"]),...tacheMethods}},_hoisted_1$M=["width","height","x","y"],_hoisted_2$q=["x","y"];function _sfc_render$1g(e,t,o,r,n,i){const s=Vue.resolveComponent("joint"),l=Vue.resolveComponent("tache-resizer");return Vue.openBlock(),Vue.createElementBlock("g",{onMousedown:t[0]||(t[0]=Vue.withModifiers((...a)=>e.startDrag&&e.startDrag(...a),["stop"])),onMouseup:t[1]||(t[1]=(...a)=>e.endDrag&&e.endDrag(...a)),onMouseenter:t[2]||(t[2]=(...a)=>e.showJoints&&e.showJoints(...a)),onMouseleave:t[3]||(t[3]=(...a)=>e.hideJoints&&e.hideJoints(...a)),onDblclick:t[4]||(t[4]=Vue.withModifiers(a=>e.setPropertiesEditorFor("AutoTask"),["stop"]))},[Vue.createElementVNode("rect",{ref:"tache",width:o.model.width,height:o.model.height,class:Vue.normalizeClass({draggable:!0,"task-tache":!0,selected:o.model.isSelected}),x:o.model.x,y:o.model.y,rx:"6",ry:"6"},null,10,_hoisted_1$M),Vue.createElementVNode("text",{x:i.text.x,y:i.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_2$q),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.jointPoints,a=>(Vue.openBlock(),Vue.createBlock(s,{key:a,parent:o.model,position:a},null,8,["parent","position"]))),128)),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.resizers,a=>(Vue.openBlock(),Vue.createBlock(l,{key:a,owner:o.model,position:a},null,8,["owner","position"]))),128))],32)}const AutoTask=_export_sfc$1(_sfc_main$1p,[["render",_sfc_render$1g]]),_sfc_main$1o={name:"StraightLine",props:{owner:{type:Object,default:null}},computed:{path(){const e=getJoint(this.owner.startJoint.parent,this.owner.startJoint.position),t=getJoint(this.owner.endJoint.parent,this.owner.endJoint.position);return"M"+e.x+" "+e.y+" L"+t.x+" "+t.y}}},_hoisted_1$L=["d"];function _sfc_render$1f(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("path",{d:i.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$L)}const StraightLine=_export_sfc$1(_sfc_main$1o,[["render",_sfc_render$1f]]),curveLine_vue_vue_type_style_index_0_scoped_0ff53a0a_lang="",_sfc_main$1n={name:"CurveLine",props:{owner:{type:Object,default:null}},computed:{startPoint(){return getJoint(this.owner.startJoint.parent,this.owner.startJoint.position)},endPoint(){return getJoint(this.owner.endJoint.parent,this.owner.endJoint.position)},controlPoint(){return this.owner.lineInfo.controlPoint},path(){return"M "+this.startPoint.x+" "+this.startPoint.y+" Q "+this.controlPoint.x+" "+this.controlPoint.y+" "+this.endPoint.x+" "+this.endPoint.y},pathToStartPoint(){return"M "+this.controlPoint.x+" "+this.controlPoint.y+"L "+this.startPoint.x+" "+this.startPoint.y},pathToEndPoint(){return"M "+this.controlPoint.x+" "+this.controlPoint.y+"L "+this.endPoint.x+" "+this.endPoint.y}},created:function(){if(!this.owner.lineInfo.controlPoint){let e=this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2;(e+10<this.startPoint.x||e<this.startPoint.x+10)&&(e=this.startPoint.x+30),this.owner.lineInfo.controlPoint={x:e,y:this.endPoint.y}}},methods:{...mapMutations("wfEditor",["setControlPointToMove"]),startDrag(e){this.setControlPointToMove({owner:this.owner})},endDrag(){this.setControlPointToMove(null)}}},_hoisted_1$K=["d"],_hoisted_2$p=["d"],_hoisted_3$b=["d"],_hoisted_4$7=["cx","cy"];function _sfc_render$1e(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.createElementVNode("path",{d:i.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$K),o.owner.isSelected?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createElementVNode("path",{d:i.pathToStartPoint,class:"control-line"},null,8,_hoisted_2$p),Vue.createElementVNode("path",{d:i.pathToEndPoint,class:"control-line"},null,8,_hoisted_3$b),Vue.createElementVNode("circle",{cx:i.controlPoint.x,cy:i.controlPoint.y,r:"3",class:"control-point",onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>i.startDrag&&i.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers((...s)=>i.endDrag&&i.endDrag(...s),["stop"]))},null,40,_hoisted_4$7)],64)):Vue.createCommentVNode("",!0)])}const CurveLine=_export_sfc$1(_sfc_main$1n,[["render",_sfc_render$1e],["__scopeId","data-v-0ff53a0a"]]),brokenLine_vue_vue_type_style_index_0_scoped_788fb0ae_lang="",_sfc_main$1m={name:"BrokenLine",props:{owner:{type:Object,default:null}},computed:{startPoint(){return getJoint(this.owner.startJoint.parent,this.owner.startJoint.position)},endPoint(){return getJoint(this.owner.endJoint.parent,this.owner.endJoint.position)},controlPoint(){return this.owner.lineInfo.controlPoint},path(){let e="M "+this.startPoint.x+" "+this.startPoint.y+" ";return this.controlPoint&&this.controlPoint.forEach(t=>{e+="L "+t.x+" "+t.y}),e+="L "+this.endPoint.x+" "+this.endPoint.y,e}},created:function(){if(console.log("this.owner.lineInfo=",this.owner.lineInfo),!this.owner.lineInfo.controlPoint){const e=this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,t=this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2;this.owner.lineInfo.controlPoint=[{x:e,y:t}]}},methods:{...mapMutations("wfEditor",["setControlPointToMove"]),startDrag(e,t){console.log("brokenLine--startDrag-----"),this.setControlPointToMove({owner:this.owner,pointIndex:e})},endDrag(){this.setControlPointToMove(null)}}},_hoisted_1$J=["d"],_hoisted_2$o=["cx","cy","onMousedown"];function _sfc_render$1d(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.createElementVNode("path",{d:i.path,"marker-end":"url(#arrow)"},null,8,_hoisted_1$J),o.owner.isSelected?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[i.controlPoint?(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:0},Vue.renderList(i.controlPoint,(s,l)=>(Vue.openBlock(),Vue.createElementBlock("circle",{key:s.x+s.y,cx:s.x,cy:s.y,r:"3",class:"control-point",onMousedown:Vue.withModifiers(a=>i.startDrag(l,a),["stop"]),onMouseup:t[0]||(t[0]=Vue.withModifiers((...a)=>i.endDrag&&i.endDrag(...a),["stop"]))},null,40,_hoisted_2$o))),128)):Vue.createCommentVNode("",!0)],64)):Vue.createCommentVNode("",!0)])}const BrokenLine=_export_sfc$1(_sfc_main$1m,[["render",_sfc_render$1d],["__scopeId","data-v-788fb0ae"]]),transition_vue_vue_type_style_index_0_scoped_a1576cad_lang="",_sfc_main$1l={name:"Transition",components:{StraightLine,CurveLine,BrokenLine},props:{model:{type:Object,default:null}},data(){const e=this.getTextPoint();return{text:{x:e.x,y:e.y},name:this.model.remark}},computed:{...mapGetters("wfEditor",["draggerToMove","processI18n"]),draggers(){const e=getJoint(this.model.startJoint.parent,this.model.startJoint.position);e.position="start";const t=getJoint(this.model.endJoint.parent,this.model.endJoint.position);return t.position="end",[e,t]},path(){return"M"+this.draggers[0].x+" "+this.draggers[0].y+" L"+this.draggers[1].x+" "+this.draggers[1].y}},created(){this.name=watchShowName(this,this.name)},mounted(){this.$watch("model.remark",function(e){if(this.name=watchShowName(this,e),this.name&&this.name!==""){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}}),this.$watch("model.lineInfo.type",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.lineInfo.controlPoint",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.startJoint.parent.x",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.startJoint.parent.y",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.endJoint.parent.x",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y}),this.$watch("model.endJoint.parent.y",function(e){const t=this.getTextPoint();this.text.x=t.x,this.text.y=t.y})},methods:{...mapMutations("wfEditor",["setMouseDownPosition","setDraggerToMove","setSelectedTransition","setPropertiesEditorFor"]),getTextPoint(){const e=getJoint(this.model.startJoint.parent,this.model.startJoint.position),t=getJoint(this.model.endJoint.parent,this.model.endJoint.position);let o=e.x<t.x?e.x:t.x,r=e.y<t.y?e.y:t.y,n=o+Math.abs(e.x-t.x)/2,i=r+Math.abs(e.y-t.y)/2;if(this.model.lineInfo.type==="CurveLine"){const s=this.model.lineInfo.controlPoint;s&&(o=e.x<s.x?e.x:parseFloat(s.x),r=e.y<s.y?e.y:parseFloat(s.y),n=o+Math.abs(e.x-s.x)/2+10,i=r+Math.abs(e.y-s.y)/2-10)}else if(this.model.lineInfo.type==="BrokenLine"&&this.model.lineInfo.controlPoint&&this.model.lineInfo.controlPoint.length>0){const s=this.model.lineInfo.controlPoint[0];s&&(o=e.x<s.x?e.x:parseFloat(s.x),r=e.y<s.y?e.y:parseFloat(s.y),n=o+Math.abs(e.x-s.x)/2,i=r+Math.abs(e.y-s.y)/2-10)}return{x:n,y:i}},select(e){clearAllSelectedComponents(),this.model.isSelected=!0,this.setSelectedTransition(this.model)},startDrag(e,t){console.log("start dragging line"),this.setMouseDownPosition(getMousePosition(e)),this.setDraggerToMove({owner:this.model,position:t,originStartJoint:this.model.startJoint,originEndJoint:this.model.endJoint})},endDrag(){},showPropertiesEditor(){this.model.endJoint.parent.type!=="Decision"&&this.setPropertiesEditorFor("Transition")}}},_hoisted_1$I=["x","y"],_hoisted_2$n={key:0},_hoisted_3$a=["cx","cy","onMousedown"];function _sfc_render$1c(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",{class:Vue.normalizeClass({"no-events":e.draggerToMove!=null}),onMousedown:t[1]||(t[1]=Vue.withModifiers((...s)=>i.select&&i.select(...s),["stop"])),onDblclick:t[2]||(t[2]=Vue.withModifiers((...s)=>i.showPropertiesEditor&&i.showPropertiesEditor(...s),["stop"]))},[Vue.createElementVNode("text",{x:n.text.x,y:n.text.y,"text-anchor":"middle",class:"draggable"},Vue.toDisplayString(n.name),9,_hoisted_1$I),(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(o.model.lineInfo.type),{owner:o.model,class:Vue.normalizeClass({transition:!0,selected:o.model.isSelected||o.model.startJoint.parent.isSelected&&o.model.endJoint.parent.isSelected})},null,8,["owner","class"])),o.model.isSelected?(Vue.openBlock(),Vue.createElementBlock("g",_hoisted_2$n,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.draggers,s=>(Vue.openBlock(),Vue.createElementBlock("circle",{key:s.position,cx:s.x,cy:s.y,class:"transition-dragger",r:"4",onMousedown:Vue.withModifiers(l=>i.startDrag(l,s.position),["stop"]),onMouseup:t[0]||(t[0]=(...l)=>i.endDrag&&i.endDrag(...l))},null,40,_hoisted_3$a))),128))])):Vue.createCommentVNode("",!0)],34)}const Transition=_export_sfc$1(_sfc_main$1l,[["render",_sfc_render$1c],["__scopeId","data-v-a1576cad"]]),virtualTransition_vue_vue_type_style_index_0_lang="",_sfc_main$1k={name:"VirtualTransition",props:{toPosition:{type:Object,default:null}},computed:{...mapGetters("wfEditor",["startJoint"]),path(){if(!this.startJoint)return null;const e=getJoint(this.startJoint.parent,this.startJoint.position),t=this.toPosition;return"M"+e.x+" "+e.y+" L"+t.x+" "+t.y}},methods:{}},_hoisted_1$H=["d"];function _sfc_render$1b(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[Vue.withDirectives(Vue.createElementVNode("path",{d:i.path,class:"virtual-transition","marker-end":"url(#arrow)"},null,8,_hoisted_1$H),[[Vue.vShow,i.path]])])}const VirtualTransition=_export_sfc$1(_sfc_main$1k,[["render",_sfc_render$1b]]),selectionRegion_vue_vue_type_style_index_0_lang="",_sfc_main$1j={name:"SelectionRegion",props:{region:{type:Object,default:null}},computed:{...mapGetters("wfEditor",["selectedTaches"])},methods:{...mapMutations("wfEditor",["setDrawingRegion","setMovingRegion","setMouseDownPosition"]),startDrag(e){console.log("region mousedown");const t=getMousePosition(e);this.setMouseDownPosition(t),this.setMovingRegion(!0)},endDrag(e){console.log("region mouseup"),this.setMovingRegion(!1),this.setMouseDownPosition(null)}}},_hoisted_1$G=["x","y","width","height"];function _sfc_render$1a(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("g",null,[o.region?(Vue.openBlock(),Vue.createElementBlock("rect",{key:0,x:o.region.x,y:o.region.y,width:o.region.width,height:o.region.height,class:Vue.normalizeClass({draggable:!0,"selection-region":!0,dashed:e.selectedTaches.length<1}),onMousedown:t[0]||(t[0]=Vue.withModifiers((...s)=>i.startDrag&&i.startDrag(...s),["stop"])),onMouseup:t[1]||(t[1]=Vue.withModifiers((...s)=>i.endDrag&&i.endDrag(...s),["stop"]))},null,42,_hoisted_1$G)):Vue.createCommentVNode("",!0)])}const SelectionRegion=_export_sfc$1(_sfc_main$1j,[["render",_sfc_render$1a]]),formFields_vue_vue_type_style_index_0_scoped_98300543_lang="",_sfc_main$1i={name:"FormFields",props:{fields:{type:Array,default:null}},data(){return{selectedField:null,copyShowFields:[],showFields:[],searchFormCode:"",dialogVisible:!0}},computed:{...mapGetters("wfEditor",["formFields"]),allFields(){return this.fields?this.fields:this.formFields}},mounted(){this.copyAllFields=this.allFields,this.showFields=this.allFields},methods:{setField(){this.$emit("close",this.selectedField)},searchForm(){this.searchFormCode&&this.searchFormCode!==""?this.showFields=this.copyAllFields.filter(e=>e.name.indexOf(this.searchFormCode)>-1||e.label.indexOf(this.searchFormCode)>-1):this.showFields=this.copyAllFields}}},_hoisted_1$F={style:{"padding-bottom":"10px"}},_hoisted_2$m={style:{float:"left",width:"70%"}},_hoisted_3$9={class:"item-content"};function _sfc_render$19(e,t,o,r,n,i){const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-radio"),d=Vue.resolveComponent("el-radio-group"),u=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(u,{width:"60%",title:e.$t("workflowEditor.common.selectFormField"),modelValue:n.dialogVisible,"onUpdate:modelValue":t[3]||(t[3]=c=>n.dialogVisible=c),center:"",top:"5vh","append-to-body":"",class:"properties-editor-noTab",onClose:t[4]||(t[4]=c=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"small",onClick:i.setField},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{size:"small",onClick:t[2]||(t[2]=c=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$F,[Vue.createElementVNode("span",_hoisted_2$m,[Vue.createVNode(s,{modelValue:n.searchFormCode,"onUpdate:modelValue":t[0]||(t[0]=c=>n.searchFormCode=c),placeholder:e.$t("workflowEditorMessage.pleaseEnterTheNameOrCode")},null,8,["modelValue","placeholder"])]),Vue.createElementVNode("span",null,[Vue.createVNode(l,{style:{"margin-left":"10px"},type:"primary",onClick:i.searchForm},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.search")),1)]),_:1},8,["onClick"])])]),Vue.createElementVNode("div",_hoisted_3$9,[Vue.createVNode(d,{modelValue:n.selectedField,"onUpdate:modelValue":t[1]||(t[1]=c=>n.selectedField=c),class:"group"},{default:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.showFields,c=>(Vue.openBlock(),Vue.createElementBlock("li",{key:c.name,class:"item"},[Vue.createVNode(a,{label:c.name},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(c.label),1)]),_:2},1032,["label"])]))),128))])]),_:1},8,["modelValue"])])]),_:1},8,["title","modelValue"])}const FormFields=_export_sfc$1(_sfc_main$1i,[["render",_sfc_render$19],["__scopeId","data-v-98300543"]]);function getFormFieldLabel(e){const t=getFormField(e);return t?t.label:e}function getFormField(e){const t=window.$store.getters["wfEditor/formFields"];e&&(e.indexOf("${field[")>=0||e.indexOf("${deptField[")>=0)&&(e=e.substring(e.indexOf("[")+1,e.lastIndexOf("]")));const o=t.filter(r=>r.name===e);return o.length>0?o[0]:null}const taskTitle_vue_vue_type_style_index_0_scoped_784515ae_lang="",_sfc_main$1h={name:"TaskTitle",components:{FormFields},props:{modelValue:{type:String,default:null}},data(){const e=[];if(this.modelValue){const t=/\$\{(.+?)\}/g,o=this.modelValue.match(t);for(const r of o)e.push(r)}return{dynamicTags:e,inputVisible:!1,showFormFields:!1,inputValue:"",showLabel:null}},mounted(){},methods:{showText(e){let t=e;if(e.indexOf("${field[")>=0){const o=t.substring(t.indexOf("[")+1,t.lastIndexOf("]"));t=getFormFieldLabel(o),t="["+t+"]"}else if(e.indexOf("${writeTitle[")>=0){const o=e.indexOf("${writeTitle[");t=t.substring(o+13),t=t.substring(0,t.indexOf("]"))}return t},handleClose(e){this.dynamicTags.splice(this.dynamicTags.indexOf(e),1),this.$emit("update:modelValue",this.dynamicTags.join(""))},showInput(){this.inputVisible=!0,this.$nextTick(e=>{this.$refs.saveTagInput.focus()})},handleInputConfirm(){let e=this.inputValue;e&&(this.inputVisible&&(e="${writeTitle["+e+"]}"),this.dynamicTags.push(e),this.$emit("update:modelValue",this.dynamicTags.join(""))),this.inputVisible=!1,this.inputValue=""},getType(e){return e.indexOf("${field")>=0?"success":null},setField(e){e!==void 0&&(this.dynamicTags.push("${field["+e+"]}"),this.$emit("update:modelValue",this.dynamicTags.join(""))),this.showFormFields=!1}}};function _sfc_render$18(e,t,o,r,n,i){const s=Vue.resolveComponent("el-tag"),l=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-button"),d=Vue.resolveComponent("el-button-group"),u=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.dynamicTags,(c,m)=>(Vue.openBlock(),Vue.createBlock(s,{key:m+c,type:i.getType(c),closable:"","disable-transitions":!1,onClose:A=>i.handleClose(c)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(i.showText(c)),1)]),_:2},1032,["type","onClose"]))),128)),n.inputVisible||n.showFormFields?(Vue.openBlock(),Vue.createBlock(l,{key:0,ref:"saveTagInput",modelValue:n.inputValue,"onUpdate:modelValue":t[0]||(t[0]=c=>n.inputValue=c),class:"input-new-tag",size:"small",onKeyup:Vue.withKeys(i.handleInputConfirm,["enter","native"]),onBlur:i.handleInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):Vue.createCommentVNode("",!0),n.inputVisible?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(d,{key:1},{default:Vue.withCtx(()=>[Vue.createVNode(a,{class:"button-new-tag",size:"small",icon:"EditPen",onClick:i.showInput},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.enterText")),1)]),_:1},8,["onClick"]),Vue.createVNode(a,{class:"button-new-tag",size:"small",icon:"Search",onClick:t[1]||(t[1]=c=>n.showFormFields=!0)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.selectField")),1)]),_:1})]),_:1})),n.showFormFields?(Vue.openBlock(),Vue.createBlock(u,{key:2,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])}const TaskTitle=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$18],["__scopeId","data-v-784515ae"]]);/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=(e,t)=>{let o=e.__vccOpts||e;for(let[r,n]of t)o[r]=n;return o},arrow_left_vue_vue_type_script_lang_default={name:"ArrowLeft"},_hoisted_18={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_28=Vue.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_18,_hoisted_38)}var arrow_left_default=export_helper_default(arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render8],["__file","arrow-left.vue"]]),circle_close_filled_vue_vue_type_script_lang_default={name:"CircleCloseFilled"},_hoisted_150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_250=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_349=[_hoisted_250];function _sfc_render50(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_150,_hoisted_349)}var circle_close_filled_default=export_helper_default(circle_close_filled_vue_vue_type_script_lang_default,[["render",_sfc_render50],["__file","circle-close-filled.vue"]]),circle_plus_vue_vue_type_script_lang_default={name:"CirclePlus"},_hoisted_153={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_253=Vue.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_352=Vue.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0z"},null,-1),_hoisted_417=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_55=[_hoisted_253,_hoisted_352,_hoisted_417];function _sfc_render53(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_153,_hoisted_55)}var circle_plus_default=export_helper_default(circle_plus_vue_vue_type_script_lang_default,[["render",_sfc_render53],["__file","circle-plus.vue"]]),close_vue_vue_type_script_lang_default={name:"Close"},_hoisted_156={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_256=Vue.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_156,_hoisted_355)}var close_default=export_helper_default(close_vue_vue_type_script_lang_default,[["render",_sfc_render56],["__file","close.vue"]]),delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=Vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),info_filled_vue_vue_type_script_lang_default={name:"InfoFilled"},_hoisted_1143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2143=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1143,_hoisted_3142)}var info_filled_default=export_helper_default(info_filled_vue_vue_type_script_lang_default,[["render",_sfc_render143],["__file","info-filled.vue"]]),search_vue_vue_type_script_lang_default={name:"Search"},_hoisted_1225={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2225=Vue.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3224=[_hoisted_2225];function _sfc_render225(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1225,_hoisted_3224)}var search_default=export_helper_default(search_vue_vue_type_script_lang_default,[["render",_sfc_render225],["__file","search.vue"]]),success_filled_vue_vue_type_script_lang_default={name:"SuccessFilled"},_hoisted_1249={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2249=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3248=[_hoisted_2249];function _sfc_render249(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1249,_hoisted_3248)}var success_filled_default=export_helper_default(success_filled_vue_vue_type_script_lang_default,[["render",_sfc_render249],["__file","success-filled.vue"]]),warning_filled_vue_vue_type_script_lang_default={name:"WarningFilled"},_hoisted_1287={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2287=Vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3286=[_hoisted_2287];function _sfc_render287(e,t,o,r,n,i){return Vue.openBlock(),Vue.createElementBlock("svg",_hoisted_1287,_hoisted_3286)}var warning_filled_default=export_helper_default(warning_filled_vue_vue_type_script_lang_default,[["render",_sfc_render287],["__file","warning-filled.vue"]]);const standardFields=[{name:"${approvalResult}",label:getI18n().t("workflowEditor.process.approvalResults"),orgType:"other"},{name:"${instanceCreatorName}",label:getI18n().t("workflowEditor.process.processInitiator"),orgType:"user"},{name:"${instanceCreatorRole}",label:getI18n().t("workflowEditor.process.processInitiatorRole"),orgType:"role"},{name:"${instanceCreatorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${superiorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorSuperiorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${instanceCreatorUpstageDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorTopDepartment"),orgType:"department"},{name:"${instanceCreatorWorkGroup}",label:getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),orgType:"workgroup"},{name:"${instanceCreatorDirectSuperiorName}",label:getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),orgType:"user"},{name:"${instanceCreatorDeptApprover}",label:getI18n().t("workflowEditor.process.deptApprover"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDeptApprover}",label:getI18n().t("workflowEditor.process.superiorDeptApprover"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDeptLeader}",label:getI18n().t("workflowEditor.process.superiorDeptLeader"),orgType:"user"},{name:"${instanceCreatorDirectSuperiorDepartment}",label:getI18n().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"),orgType:"department",relatedFields:["upstageDepartment"]},{name:"${instanceCreatorDirectSuperiorRole}",label:getI18n().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"),orgType:"role"},{name:"${instanceCreatorDirectSuperiorWorkGroup}",label:getI18n().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"),orgType:"workgroup"},{name:"${currentTransactorName}",label:getI18n().t("workflowEditor.process.nameOfCurrentHandler"),orgType:"user",relatedFields:["instanceCreatorName","instanceCreatorDirectSuperiorName"]},{name:"${currentTransactorRole}",label:getI18n().t("workflowEditor.process.currentHandlerRole"),orgType:"role"},{name:"${currentTransactorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorSuperiorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorUpstageDepartment}",label:getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment"]},{name:"${currentTransactorWorkGroup}",label:getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),orgType:"workgroup"},{name:"${currentTransactorDirectSuperiorName}",label:getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"),orgType:"user",relatedFields:["instanceCreatorName","instanceCreatorDirectSuperiorName"]},{name:"${currentTransactorDirectSuperiorDepartment}",label:getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"),orgType:"department",relatedFields:["instanceCreatorDepartment","superiorDepartment","instanceCreatorUpstageDepartment","instanceCreatorDirectSuperiorDepartment","upstageDepartment"]},{name:"${currentTransactorDirectSuperiorRole}",label:getI18n().t("workflowEditor.process.currentManagerDirectSuperiorRole"),orgType:"role"},{name:"${currentTransactorDirectSuperiorWorkGroup}",label:getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"),orgType:"workgroup"},{name:"${upstageDepartment}",label:getI18n().t("workflowEditor.process.topDepartments"),orgType:"department"},{name:"${countersignatureDisagreeCount}",label:getI18n().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"),orgType:"other",dataType:"INTEGER"},{name:"${countersignatureAgreeCount}",label:getI18n().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"),orgType:"other",dataType:"INTEGER"},{name:"${countersignatureDisagreePercentage}",label:getI18n().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"),orgType:"other",dataType:"INTEGER"},{name:"${countersignatureAgreePercentage}",label:getI18n().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"),orgType:"other",dataType:"INTEGER"},{name:"${abstentionPercentage}",label:getI18n().t("workflowEditor.process.percentageOfAbstentions"),orgType:"other",dataType:"INTEGER"},{name:"${againstPercentage}",label:getI18n().t("workflowEditor.process.percentageOfVotesAgainst"),orgType:"other",dataType:"INTEGER"},{name:"${favorPercentage}",label:getI18n().t("workflowEditor.process.percentageOfAffirmativeVotes"),orgType:"other",dataType:"INTEGER"},{name:"${abstentionCount}",label:getI18n().t("workflowEditor.process.totalNumberOfAbstentions"),orgType:"other",dataType:"INTEGER"},{name:"${againstCount}",label:getI18n().t("workflowEditor.process.totalVotesAgainst"),orgType:"other",dataType:"INTEGER"},{name:"${favorCount}",label:getI18n().t("workflowEditor.process.totalNumberOfAffirmativeVotes"),orgType:"other",dataType:"INTEGER"}],logicOperators$1={"condition.operator.or":getI18n().t("workflowEditor.process.perhaps"),"condition.operator.and":getI18n().t("workflowEditor.process.also")};function isNumber$1(e){return["NUMBER","DOUBLE","FLOAT","LONG","INTEGER","AMOUNT"].indexOf(e)>=0}const operatorsForNumber=[{name:"operator.number.gt",label:getI18n().t("workflowEditor.process.greaterThan")},{name:"operator.number.lt",label:getI18n().t("workflowEditor.process.lessThan")},{name:"operator.number.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.number.le",label:getI18n().t("workflowEditor.process.notGreaterThan")},{name:"operator.number.ge",label:getI18n().t("workflowEditor.process.notLessThan")},{name:"operator.number.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}];function isString$2(e){return["STRING","TEXT"].indexOf(e)>=0}const operatorsForString=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.contain",label:getI18n().t("workflowEditor.process.contain")},{name:"operator.text.contain.not",label:getI18n().t("workflowEditor.process.notIncluded")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}];function isDate(e){return["DATE","TIME"].indexOf(e)>=0}const operatorsForDate=[{name:"operator.date.gt",label:getI18n().t("workflowEditor.process.laterThan")},{name:"operator.date.lt",label:getI18n().t("workflowEditor.process.earlierThan")},{name:"operator.date.et",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.date.le",label:getI18n().t("workflowEditor.process.noLaterThan")},{name:"operator.date.ge",label:getI18n().t("workflowEditor.process.noEarlierThan")},{name:"operator.date.ne",label:getI18n().t("workflowEditor.process.notEqualTo")}],operatorsForText=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}];function isApproveResult(e){return e==="${approvalResult}"}const operatorsForApproveResult=[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")}],allOperators=[...operatorsForNumber,...operatorsForDate,...operatorsForString,...operatorsForText];function parseCondition$1(e,t){if(!(!t||t.length===0)){let o=t.replace(/ condition.operator.or /g," condition.operator.or^_^");o=o.replace(/ condition.operator.and /g," condition.operator.and^_^");const r=o.split("^_^");let n=0;for(let i of r){if(i==="")continue;let s="",l="",a="",d="",u="",c="condition.operator.or",m=i.indexOf("${");if(m>0&&(s=i.substring(0,m)),l=i.substring(m,i.indexOf(" ")),i=i.substring(i.indexOf(" ")+1),a=i.substring(0,i.indexOf(" ")),i=i.substring(i.indexOf(" ")+1),m=i.indexOf(")"),m>=0){d=i.substring(0,m);const A=i.substring(m);m=A.indexOf(")"),A.indexOf(" ")>=0?u=A.substring(m,A.indexOf(" ")):u=A.substring(m),m=i.indexOf(" condition."),m>=0&&(c=i.substring(m+1))}else m=i.indexOf(" condition."),m>0?(d=i.substring(0,m),c=i.substring(m+1)):d=i;e.push({id:n,leftBracket:s,key:l,operator:a,value:d,rightBracket:u,logicOperator:c}),n++}return n}}function generateCondition(e){let t="";for(const n of e)n.key.length===0||n.operator===""||n.value===""&&n.operator!=="operator.text.is.null"&&n.operator!=="operator.text.not.null"||(t=t+n.leftBracket+n.key+" "+n.operator+" "+n.value+n.rightBracket+" "+n.logicOperator+" ");const o=" condition.operator.or ",r=" condition.operator.and ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}function getStandardField(e){const t=standardFields.filter(o=>o.name===e);return t.length>0?t[0]:null}function getStandardFieldLabel(e){const t=getStandardField(e);return t?t.label:e}function getFieldLabel(e){return e?e.indexOf("${field[")>=0?getFormFieldLabel(e):e.indexOf("${")>=0?getStandardFieldLabel(e):e.indexOf("[")>=0?e.substring(0,e.indexOf("[")):e:""}function getOperatorLabel(e){const t=allOperators.filter(o=>o.name===e);return t.length>0?t[0].label:""}function displayCondition(e){let t="";for(const n of e)n.key.length===0||typeof n.operator>"u"||n.operator===""||n.operator===null||n.operator!=="operator.text.is.null"&&n.operator!=="operator.text.not.null"&&(n.value===""||typeof n.value>"u"||n.value===null)||(t=t+n.leftBracket+getFieldLabel(n.key)+" "+getOperatorLabel(n.operator)+" "+getFieldLabel(n.value)+n.rightBracket+" "+logicOperators$1[n.logicOperator]+" ");const o=" 或者 ",r=" 并且 ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}function getRelatedStandardFields(e){const t=standardFields.filter(n=>n.name===e);let o=[];t.length>0&&(o=t[0].relatedFields||[]);const r=[];return standardFields.forEach(n=>{o.indexOf(n.name.substring(2,n.name.length-1))>=0&&r.push(n)}),r}function getStandardFieldsByTacheType(e){if(e)return standardFields;const t=[];return standardFields.forEach(o=>{!e&&o.orgType!=="other"&&t.push(o)}),t}function isTransitionOtherField(e){if(e==="${approvalResult}")return!1;const t=standardFields.filter(r=>r.name===e);let o=!1;return t.length>0&&t.forEach(r=>{e===r.name&&r.orgType==="other"&&(o=!0)}),o}function getOperators(e){const t=getFormField(e)||getStandardField(e);if(t)return isNumber$1(t.dataType)?operatorsForNumber:isDate(t.dataType)?operatorsForDate:isString$2(t.dataType)?operatorsForString:isApproveResult(e)?operatorsForApproveResult:operatorsForText}const systemRoleTreeInline_vue_vue_type_style_index_0_lang="",__default__$5={name:"InlineSystemRoleTree",props:{multiple:{type:Boolean,default:!1}},data(){return{systemRoleTrees:null,filterText:"",defaultProps:{id:"id",label:"label",children:"children",isLeaf:"leaf"},containBranch:!1,tenantInfo:null,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,searchValue:null,selectNodeInfo:null}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.loadRole(this.tenantNodeId,this.tenantNodeId+""))}},created(){},methods:{loadNode(e,t){var o=0,r;e.level===0?(o=0,r=o+""):(o=e.data.id,r=e.data.nodeId);var n=[];this.$refs.roleTree&&(n=this.$refs.roleTree.getCheckedKeys()),this.initLoadRole(o,r,e,t,n)},initLoadRole(e,t,o,r,n){this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e).then(i=>{if(r(i),this.$refs.roleTree.updateKeyChildren(t,i),e===0){const s=i[0].data;this.tenantInfo=JSON.parse(s),this.containBranch=i[0].containBranch,this.loadRole(this.tenantNodeId,this.tenantNodeId+"")}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(o.data)):n&&n.indexOf(t)>-1&&this.checkedNodeAndChildren(o.data)})},loadRole(e,t,o,r){this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e).then(n=>{this.$refs.roleTree.updateKeyChildren(t,n),this.$refs.roleTree.store.nodesMap[t]&&(this.$refs.roleTree.store.nodesMap[t].expanded=!0),o&&(this.allExpandNodeIds.indexOf(t)===-1&&this.allExpandNodeIds.push(t),this.allExpandNodeIds.length===this.allSearchNodeIds.length&&(this.$refs.roleTree.filter(r),this.allExpandNodeIds=[],this.allSearchNodeIds=[]))})},clickSearch(){this.searchValue=this.filterText,this.filterAppendNodes(this.filterText)},filterAppendNodes(e){this.$http.get(this.baseAPI+"/acs/roles/search-system-role-trees?searchValue="+e).then(t=>{if(t){if(t.length===0){this.$message({showClose:!0,type:"error",message:this.$t("workflowEditorMessage.queryResultIsEmpty")});return}t.forEach(o=>{const r="SYSTEM_"+o;this.allSearchNodeIds.indexOf(r)===-1&&(this.allSearchNodeIds.push(r),this.loadRole(o,r,!0,e))})}else this.$message({showClose:!0,type:"error",message:this.$t("workflowEditorMessage.queryResultIsEmpty")})})},handleCheckNode(e,t){t.checkedKeys.indexOf(e.nodeId)>-1?e.children?(this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e)):e.leaf||this.$http.get(this.baseAPI+"/acs/roles/system-role-trees/"+e.id).then(o=>{this.$refs.roleTree.updateKeyChildren(e.nodeId,o),this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.checkedNodeAndChildren(e)}):this.cancelChildCheckedNodes(e)},checkedNodeAndChildren(e){this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0,this.$refs.roleTree.setChecked(e.nodeId,!0);const t=e.children;t&&t.forEach(o=>{this.checkedNodeAndChildren(o)})},cancelChildCheckedNodes(e){e.id!==this.tenantNodeId&&this.$refs.roleTree.setChecked(this.tenantNodeId+"",!1);const t=e.children;t&&t.forEach(o=>{this.$refs.roleTree.setChecked(o.nodeId,!1),this.cancelChildCheckedNodes(o)})},selectRole(){if(this.multiple){const e={containBranch:this.containBranch,roles:[]},t=[];this.$refs.roleTree.getCheckedNodes().forEach(r=>{if(r.nodeType==="ROLE"){const n=JSON.parse(r.data);n.tenantCode=this.tenantInfo.code,n.tenantName=this.tenantInfo.tenantName,t.push(n)}}),e.roles=t,e.length>0?this.$emit("result",e):this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditor.pleaseSelectRole")})}else this.selectNodeInfo?this.$emit("result",this.selectNodeInfo):this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditor.pleaseSelectRole")})},filterNode(e,t,o){if(e){var r=t.label;return t.nodeType!=="ROLE"?!1:r.indexOf(e)!==-1}else return!0},handleNodeClick(e,t,o){if(this.multiple&&this.clickNodeWhenMultiple(e),console.log(e),e.nodeType==="ROLE"&&!this.multiple){const n=JSON.parse(e.data);n.tenantName=this.tenantInfo.tenantName,n.tenantCode=this.tenantInfo.code;var r={id:e.id,name:e.name,containBranch:this.containBranch,role:n};this.selectNodeInfo=r}},clickNodeWhenMultiple(e){var t=[];if(this.$refs.roleTree&&(t=this.$refs.roleTree.getCheckedKeys()),t.indexOf(e.nodeId)>-1)this.$refs.roleTree.setChecked(e.nodeId,!1),this.cancelChildCheckedNodes(e),this.$refs.roleTree.store.nodesMap[e.nodeId].expanded=!0;else{this.$refs.roleTree.setChecked(e.nodeId,!0);const o=e.childDepartments;o&&o.length>0?this.checkedNodeAndChildren(e):this.isClickNode=!0}},renderContent(e,{node:t,data:o,store:r}){return o.nodeType&&o.nodeType==="ROLE"&&this.searchValue&&o.label.indexOf(this.searchValue)>-1?e("span",{},[e("span",{class:"searchResult"},t.label)]):e("span",{},[e("span",{},t.label)])}}},_sfc_main$1g=Object.assign(__default__$5,{setup(e){return(t,o)=>{const r=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-input"),i=Vue.resolveComponent("el-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(n,{modelValue:t.filterText,"onUpdate:modelValue":o[0]||(o[0]=s=>t.filterText=s),placeholder:t.$t("workflowEditorMessage.pleaseEnterTheRoleName"),onKeyup:Vue.withKeys(t.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(r,{icon:Vue.unref(search_default),onClick:t.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","placeholder","onKeyup"]),Vue.createVNode(i,{ref:"roleTree",props:t.defaultProps,load:t.loadNode,lazy:"","highlight-current":!0,"node-key":"nodeId","show-checkbox":e.multiple,"check-strictly":"","render-content":t.renderContent,"filter-node-method":t.filterNode,onCheck:t.handleCheckNode,onNodeClick:t.handleNodeClick},null,8,["props","load","show-checkbox","render-content","filter-node-method","onCheck","onNodeClick"])])}}}),valueSelectionDialog_vue_vue_type_style_index_0_scoped_7feaa2da_lang="",_sfc_main$1f={name:"ValueSelectionDialog",components:{InlineSystemRoleTree:_sfc_main$1g},props:{standardFields:{type:[Object,Array],default:null},title:{type:String,default:""},showOrganization:{type:Boolean,default:!0},showFormFields:{type:Boolean,default:!0},orgType:{type:String,default:""}},data(){let e=this.title,t="organization";return this.showOrganization||(t="standardFields"),(!this.title||this.title==="")&&(e=getI18n().t("workflowEditorMessage.pleaseSelectAValue")),{selectedValue:"",activeTab:t,titleName:e,dialogVisible:!0,activeNames:["baseField"]}},computed:{...mapGetters("wfEditor",["formFields"]),customFormFields(){return this.formFields.filter(e=>!e.baseField)},baseFormFields(){return this.formFields.filter(e=>e.baseField)},options(){if(Array.isArray(this.standardFields))return this.standardFields;{const e=[];for(const t of Object.keys(this.standardFields))e.push({name:t,label:this.standardFields[t]});return e}}},watch:{activeTab(e){this.selectedValue=""}},methods:{setValue(){if(this.organizationResultValue(),this.selectedValue===""){this.$alert(this.$t("workflowEditorMessage.pleaseSelectAValueInTheCurrentTab"));return}this.$emit("close",this.selectedValue)},orgSelect(e){e&&(this.orgType==="user"?this.getSelectedUser(e.user,e.containBranch):this.orgType==="department"?this.getSelectedDepartmentOrWorkgroup(e.department,e.containBranch):this.orgType==="workgroup"?this.getSelectedDepartmentOrWorkgroup(e.workgroup,e.containBranch):this.orgType==="role"&&this.getSelectedRole(e.role))},organizationResultValue(){this.orgType&&this.activeTab==="organization"&&(this.orgType==="user"?this.$refs.organizationTree.confirmSelectUser():this.orgType==="department"?this.$refs.organizationTree.selectDepartment():this.orgType==="workgroup"?this.$refs.organizationTree.selectWorkgroup():this.orgType==="role"&&this.$refs.organizationTree.selectRole())},getSelectedUser(e,t){const o="~~",r="/";let n=e.loginName,i=e.name;if(t){if(e.subCompanyId&&e.subCompanyId!==null){const s=e.subCompanyCode,l=e.subCompanyName;n=n+o+s,i=i+r+l}else n=n+o+e.tenantCode,i=i+r+e.tenantName;this.selectedValue=i+"["+n+"]"}else this.selectedValue=e.name+"["+e.loginName+"]"},getSelectedDepartmentOrWorkgroup(e,t){this.selectedValue=e.name;const o="/";let r=e.name;if(t){if(e.subCompanyId&&e.subCompanyId!==null){const n=e.subCompanyName;r=r+o+n}else r=r+o+e.tenantName;this.selectedValue=r+"["+e.code+"]"}else this.selectedValue=e.name+"["+e.code+"]"},getSelectedRole(e){this.selectedValue=e.name+"["+e.code+"]"}}};function _sfc_render$17(e,t,o,r,n,i){const s=Vue.resolveComponent("el-radio"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-tab-pane"),d=Vue.resolveComponent("inline-department-user-tree"),u=Vue.resolveComponent("inline-department-tree"),c=Vue.resolveComponent("inline-workgroup-tree"),m=Vue.resolveComponent("inline-system-role-tree"),A=Vue.resolveComponent("el-col"),C=Vue.resolveComponent("el-collapse-item"),g=Vue.resolveComponent("el-collapse"),E=Vue.resolveComponent("el-radio-group"),p=Vue.resolveComponent("el-tabs"),f=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(w,{title:n.titleName,"model-value":"",top:"10vh","append-to-body":"",class:"properties-editor-valueSelect",center:"",onClose:t[5]||(t[5]=v=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(f,{type:"primary",size:"small",onClick:i.setValue},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(f,{size:"small",onClick:t[4]||(t[4]=v=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(p,{id:"custTabOne",modelValue:n.activeTab,"onUpdate:modelValue":t[3]||(t[3]=v=>n.activeTab=v),type:"border-card"},{default:Vue.withCtx(()=>[i.options.length>0?(Vue.openBlock(),Vue.createBlock(a,{key:0,label:e.$t("workflowEditor.process.standardFields"),name:"standardFields"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.options,v=>(Vue.openBlock(),Vue.createBlock(l,{key:v.name},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.selectedValue,"onUpdate:modelValue":t[0]||(t[0]=b=>n.selectedValue=b),label:v.name,border:""},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.label),1)]),_:2},1032,["modelValue","label"])]),_:2},1024))),128))]),_:1},8,["label"])):Vue.createCommentVNode("",!0),o.showOrganization?(Vue.openBlock(),Vue.createBlock(a,{key:1,label:e.$t("workflowEditor.common.organizationStructure"),name:"organization"},{default:Vue.withCtx(()=>[o.orgType==="user"?(Vue.openBlock(),Vue.createBlock(d,{key:0,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="department"?(Vue.openBlock(),Vue.createBlock(u,{key:1,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="workgroup"?(Vue.openBlock(),Vue.createBlock(c,{key:2,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0),o.orgType==="role"?(Vue.openBlock(),Vue.createBlock(m,{key:3,ref:"organizationTree",multiple:!1,onResult:i.orgSelect},null,8,["onResult"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(a,{label:e.$t("workflowEditor.common.formField"),name:"formFields"},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:n.selectedValue,"onUpdate:modelValue":t[2]||(t[2]=v=>n.selectedValue=v),class:"group"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{style:{width:"100%"}},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.customFormFields,v=>(Vue.openBlock(),Vue.createBlock(A,{key:v.name,span:8},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${field["+v.name+"]}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.label),1)]),_:2},1032,["label"])]),_:2},1024))),128))]),_:1}),Vue.createVNode(g,{modelValue:n.activeNames,"onUpdate:modelValue":t[1]||(t[1]=v=>n.activeNames=v),style:{width:"100%"}},{default:Vue.withCtx(()=>[Vue.createVNode(C,{title:e.$t("workflowEditor.task.baseField"),name:"baseField"},{default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.baseFormFields,v=>(Vue.openBlock(),Vue.createBlock(A,{key:v.name,span:8},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${field["+v.name+"]}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(v.label),1)]),_:2},1032,["label"])]),_:2},1024))),128))]),_:1})]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["title"])}const ValueSelectionDialog=_export_sfc$1(_sfc_main$1f,[["render",_sfc_render$17],["__scopeId","data-v-7feaa2da"]]),_sfc_main$1e={name:"AdditionalCondition",components:{ValueSelectionDialog},props:{modelValue:{type:String,default:null},isTransition:{type:Boolean,default:!1}},data(){const e=[],t=parseCondition$1(e,this.modelValue);return{standardFields,tableData:e,count:t,currentRow:null,currentInput:null,options:[],valueDialogTitle:null,showOrganization:!0,orgType:null}},computed:{...mapGetters("wfEditor",["formFields"]),availableStandardFields(){return this.currentInput==="key"?getStandardFieldsByTacheType(this.isTransition):getRelatedStandardFields(this.currentRow.key)}},mounted(){this.tableData.length>0&&this.$refs.table.setCurrentRow(this.tableData[this.tableData.length-1]),this.$watch("tableData",function(e,t){this.$emit("update:modelValue",generateCondition(this.tableData))},{deep:!0})},methods:{format(e,t){return console.log("row",t),e===""||e===void 0||e===null?"":getFieldLabel(e)},getOperatorOptions(e){return getOperators(e)},selectRow(e){this.$refs.table.setCurrentRow(e)},openValueDialog(e){this.showValueDialog=!0,this.selectRow(e)},closeValueDialog(e){e!==void 0&&e!==""&&(this.currentInput==="key"&&this.currentRow.key!==e&&(this.currentRow.operator="",this.currentRow.value=""),this.currentRow[this.currentInput]=e),this.currentInput=""},getCondition(e){return e.key+" "+e.operator+" "+e.value},handleCurrentChange(e){this.currentRow=e},getRowIndex(e){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].id===e.id)return t;return-1},add(){(this.count===null||this.count===void 0||this.count.isNaN||this.count==="NaN")&&(this.count=0);const e={id:this.count,leftBracket:"",key:"",operator:"",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.tableData.push(e),this.$refs.table.setCurrentRow(e),this.count++},insert(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}const e={id:this.count,leftBracket:"",key:"",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.tableData.splice(this.getRowIndex(this.currentRow),0,e),this.$refs.table.setCurrentRow(e),this.count++},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.tableData.splice(e,1),this.tableData.length>0&&(e=e<=this.tableData.length-1?e:this.tableData.length-1,this.$refs.table.setCurrentRow(this.tableData[e]))},view(){let e=displayCondition(this.tableData);e===""&&(e=this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")),this.$confirm(e,this.$t("workflowEditorMessage.viewConditions"),{showConfirmButton:!1,showCancelButton:!1,callback:function(){}})},selectField(e){this.selectRow(e),this.currentInput="key",this.valueDialogTitle=this.$t("workflowEditorMessage.fieldSettings"),this.showOrganization=!1},selectValue(){this.currentInput="value",this.valueDialogTitle=this.$t("workflowEditorMessage.valueSetting"),this.showOrganization=!0,this.orgType=this.getStandardFieldOrgType()},getStandardFieldOrgType(){const e=this.standardFields.filter(t=>t.name===this.currentRow.key);return e.length>0?e[0].orgType:""},isTransitionOtherField(e){return isTransitionOtherField(e)}}},_hoisted_1$E={style:{overflow:"auto",width:"100%"}};function _sfc_render$16(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-option"),d=Vue.resolveComponent("el-select"),u=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("value-selection-dialog");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$E,[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"ArrowRight",onClick:i.insert},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.insert")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"View",onClick:i.view},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.viewConditions")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.tableData,"row-key":"id",border:"",style:{width:"100%","padding-top":"10px"},"highlight-current-row":"",onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(u,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.leftBracket,"onUpdate:modelValue":g=>C.row.leftBracket=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:"(",value:"("}),Vue.createVNode(a,{label:"((",value:"(("}),Vue.createVNode(a,{label:"(((",value:"((("})]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1}),Vue.createVNode(u,{label:e.$t("workflowEditor.common.fieldName"),width:"200"},{default:Vue.withCtx(C=>[Vue.createVNode(c,{value:i.format(C.row.key),onClick:g=>i.selectField(C.row)},null,8,["value","onClick"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.operator"),width:"130"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.operator,"onUpdate:modelValue":g=>C.row.operator=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.getOperatorOptions(C.row.key),g=>(Vue.openBlock(),Vue.createBlock(a,{key:g.name,label:g.label,value:g.name},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(C=>[C.row.key.indexOf("${field[")>=0||i.isTransitionOtherField(C.row.key)?(Vue.openBlock(),Vue.createBlock(c,{key:0,modelValue:C.row.value,"onUpdate:modelValue":g=>C.row.value=g,modelModifiers:{trim:!0}},null,8,["modelValue","onUpdate:modelValue"])):C.row.key==="${approvalResult}"?(Vue.openBlock(),Vue.createBlock(d,{key:1,modelValue:C.row.value,"onUpdate:modelValue":g=>C.row.value=g,modelModifiers:{trim:!0}},{default:Vue.withCtx(()=>[Vue.createVNode(a,{value:"同意",label:e.$t("workflowEditorPublicModel.agree")},null,8,["label"]),Vue.createVNode(a,{value:"不同意",label:e.$t("workflowEditorPublicModel.disagree")},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])):(Vue.openBlock(),Vue.createBlock(c,{key:2,value:i.format(C.row.value,C.row),readonly:"",onClick:i.selectValue},null,8,["value","onClick"]))]),_:1},8,["label"]),Vue.createVNode(u,{prop:"rightBracket",label:")",width:"90",onFocus:t[0]||(t[0]=C=>i.selectRow(e.scope.row))},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.rightBracket,"onUpdate:modelValue":g=>C.row.rightBracket=g,placeholder:""},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:")",value:")"}),Vue.createVNode(a,{label:"))",value:"))"}),Vue.createVNode(a,{label:")))",value:")))"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),Vue.createVNode(u,{prop:"logicOperator",label:e.$t("workflowEditorPublicModel.andOr"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.logicOperator,"onUpdate:modelValue":g=>C.row.logicOperator=g,placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.currentInput?(Vue.openBlock(),Vue.createBlock(A,{key:0,title:n.valueDialogTitle,"show-organization":n.showOrganization,"standard-fields":i.availableStandardFields,"org-type":n.orgType,onClose:i.closeValueDialog},null,8,["title","show-organization","standard-fields","org-type","onClose"])):Vue.createCommentVNode("",!0)])}const AdditionalCondition=_export_sfc$1(_sfc_main$1e,[["render",_sfc_render$16]]),_sfc_main$1d={name:"AdditionalConditionDialog",components:{AdditionalCondition},props:{modelValue:{type:String,default:""}},data(){return{condition:this.modelValue,dialogVisible:!0}},watch:{value(e){this.condition=e}},methods:{setConditions(){this.$emit("update:modelValue",this.condition),this.$emit("close")}}};function _sfc_render$15(e,t,o,r,n,i){const s=Vue.resolveComponent("additional-condition"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-button"),d=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(d,{width:"50%",title:e.$t("workflowEditor.task.setConditions"),"model-value":"",top:"10vh","append-to-body":"",class:"properties-editor-noTab",center:"",onClose:t[2]||(t[2]=u=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(a,{type:"primary",size:"small",onClick:i.setConditions},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(a,{size:"small",onClick:t[1]||(t[1]=u=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.condition,"onUpdate:modelValue":t[0]||(t[0]=u=>n.condition=u)},null,8,["modelValue"])]),_:1})]),_:1},8,["title"])}const AdditionalConditionDialog=_export_sfc$1(_sfc_main$1d,[["render",_sfc_render$15]]),__default__$4={name:"CustomActions",components:{AdditionalConditionDialog},props:{model:{type:Object,default:null}},data(){const e=[];let t=1;if(this.model.action)if(Array.isArray(this.model.action))for(const o of this.model.action)e.push({...o,id:t}),t++;else e.push({...this.model.action,id:t}),t++;return{actions:e,actionTypes:[{type:"SAVE",label:getI18n().t("workflowEditor.task.save")},{type:"SUBMIT",label:getI18n().t("workflowEditor.task.submission")},{type:"APPROVE",label:getI18n().t("workflowEditor.task.agree")},{type:"REFUSE",label:getI18n().t("workflowEditor.task.disagree")},{type:"AGREEMENT",label:getI18n().t("workflowEditor.task.favor")},{type:"OPPOSE",label:getI18n().t("workflowEditor.task.opposition")},{type:"KIKEN",label:getI18n().t("workflowEditor.task.waiver")},{type:"DRAW",label:getI18n().t("workflowEditor.task.receive")},{type:"ABANDON_DRAW",label:getI18n().t("workflowEditor.task.giveUp")},{type:"ADD_SIGN",label:getI18n().t("workflowEditor.task.additionalSignature")},{type:"REMOVE_SIGN",label:getI18n().t("workflowEditor.task.reductionOfSignature")},{type:"ASSIGN_TASK",label:getI18n().t("workflowEditor.task.assignTask")},{type:"COPY",label:getI18n().t("workflowEditor.task.copyTask")},{type:"GET_BACK_BUTTON",label:getI18n().t("workflowEditor.task.retrieveTask")},{type:"READED",label:getI18n().t("workflowEditor.task.readTask")},{type:"EXPORT_REPORT",label:getI18n().t("workflowEditor.task.exportReport")}],currentRow:null,count:t,showAdditionalCondition:!1}},mounted(){this.actions.length>0&&this.selectRow(this.actions[this.actions.length-1]),this.$watch("actions",function(e,t){const o=[];for(const r of this.actions){const n={...r};delete n.id,o.push(n)}this.$emit("updateAction",o)},{deep:!0})},methods:{selectRow(e){this.$refs.table.setCurrentRow(e)},getRowIndex(e){for(let t=0;t<this.actions.length;t++)if(this.actions[t].id===e.id)return t;return-1},handleCurrentChange(e){this.currentRow=e},isDuplicated(e){const t=this.getRowIndex(this.currentRow);console.log("index:"+t);for(let o=0;o<this.actions.length;o++)o!==t&&this.actions[o].type===e&&(this.$alert(this.$t("workflowEditorMessage.duplicateOperationTypeWithLinePleaseReselect",{row:o+1})),this.currentRow.type="")},add(){for(let t=0;t<this.actions.length;t++){const o=this.actions[t];if(o.type===""||o.label===""){this.$alert(this.$t("workflowEditorMessage.theOperationTypeOrNameInLineIsEmpty",{row:t+1}));return}}const e={id:this.count,type:"",label:"",visible:!0,condition:""};this.actions.push(e),this.selectRow(e),this.count++},remove(){let e=this.getRowIndex(this.currentRow);this.actions.splice(e,1),this.actions.length>0&&(e=e<=this.actions.length-1?e:this.actions.length-1,this.$refs.table.setCurrentRow(this.actions[e]))},formatCondition(e){if(e===""||!e)return this.$t("workflowEditor.task.nothing");const t=[];return parseCondition$1(t,e),displayCondition(t)},selectCondition(e){this.selectRow(e),this.currentRow||(this.currentRow.condition=""),this.showAdditionalCondition=!0}}},_sfc_main$1c=Object.assign(__default__$4,{setup(e){return(t,o)=>{const r=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-table-column"),i=Vue.resolveComponent("el-option"),s=Vue.resolveComponent("el-select"),l=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-checkbox"),d=Vue.resolveComponent("el-table"),u=Vue.resolveComponent("el-row");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(r,{type:"primary",size:"small",plain:"",icon:Vue.unref(circle_plus_default),onClick:t.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["icon","onClick"]),Vue.createVNode(r,{type:"primary",size:"small",plain:"",icon:Vue.unref(delete_default),onClick:t.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["icon","onClick"]),Vue.createVNode(d,{ref:"table",data:t.actions,"row-key":"type",border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:t.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(n,{type:"index"}),Vue.createVNode(n,{label:t.$t("workflowEditor.task.operationType"),width:"180"},{default:Vue.withCtx(c=>[Vue.createVNode(s,{modelValue:c.row.type,"onUpdate:modelValue":m=>c.row.type=m,onChange:t.isDuplicated},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.actionTypes,m=>(Vue.openBlock(),Vue.createBlock(i,{key:m.id,value:m.type,label:m.label},null,8,["value","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Vue.createVNode(n,{prop:"label",label:t.$t("workflowEditor.task.name"),width:"180"},{default:Vue.withCtx(c=>[Vue.createVNode(l,{modelValue:c.row.label,"onUpdate:modelValue":m=>c.row.label=m},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(n,{prop:"visible",label:t.$t("workflowEditor.task.visibleOrNot")},{default:Vue.withCtx(c=>[Vue.createVNode(a,{modelValue:c.row.visible,"onUpdate:modelValue":m=>c.row.visible=m},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(n,{prop:"condition",label:t.$t("workflowEditor.task.condition")},{default:Vue.withCtx(c=>[Vue.createVNode(l,{value:t.formatCondition(c.row.condition),type:"textarea",autosize:"",onFocus:m=>t.selectCondition(c.row)},null,8,["value","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])]),_:1}),t.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(Vue.unref(AdditionalConditionDialog),{key:0,modelValue:t.currentRow.condition,"onUpdate:modelValue":o[0]||(o[0]=c=>t.currentRow.condition=c),onClose:o[1]||(o[1]=c=>t.showAdditionalCondition=!1)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)])}}}),_sfc_main$1b={name:"I18nSet",props:{value:{type:Object,default:null}},data(){let e={};return this.value&&(e=JSON.parse(JSON.stringify(this.value))),{requiredRule:{required:!0,message:getI18n().t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"},i18nModel:e,bundleCode:null,isShow:!1,i18nKey:null,languages:{},dialogVisible:!0,isNewI18n:!1}},computed:{...mapGetters("wfEditor",["systemCode","processCode","isHandleCreate"])},created(){this.isHandleCreate&&this.isHandleCreate==="true"?this.isNewI18n=!1:this.isNewI18n=!0,this.isNewI18n||(this.bundleCode=this.systemCode+".workflow."+this.processCode),this.getI18nSet()},methods:{getI18nSet(){this.$http.get(this.baseAPI+"/wf-editor/i18n-settings/languages?isNewI18n="+this.isNewI18n).then(e=>{const t={bundleCode:this.bundleCode,i18nKey:this.i18nModel.key,isNewI18n:this.isNewI18n+"",systemCode:this.systemCode};this.$http.post(this.baseAPI+"/wf-editor/i18n-settings/get-info",t).then(o=>{this.languages=e,Object.keys(this.languages).forEach(r=>{console.log("%c描述-162040","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",r),console.log("%c描述-162049","color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",this.i18nModel),o&&o[r]?this.i18nModel.values[r]=o[r]:this.i18nModel.values[r]||(this.i18nModel.values[r]="")}),this.isShow=!0})})},saveI18nSet(e){this.$refs[e].validate(t=>{if(t)this.i18nModel.bundleCode=this.bundleCode,this.i18nModel.systemCode=this.systemCode,this.i18nModel.isNewI18n=this.isNewI18n+"",console.log("this.i18nModel---",this.i18nModel),this.$http.post(this.baseAPI+"/wf-editor/i18n-settings",this.i18nModel).then(()=>{console.log("更新成功-----"),this.$emit("close",this.i18nModel.key)});else return console.log("error submit!!"),!1})},goBack(){this.$emit("close")}}},_hoisted_1$D={class:"operation-area"};function _sfc_render$14(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-input"),a=Vue.resolveComponent("el-form-item"),d=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-form"),m=Vue.resolveComponent("el-dialog");return n.isShow?(Vue.openBlock(),Vue.createBlock(m,{key:0,"close-on-click-modal":!1,width:"30%",title:e.$t("workflowEditorPublicModel.i18nSet"),"append-to-body":"","model-value":"",top:"5vh",onOpen:t[2]||(t[2]=A=>e.$emit("open")),onOpend:t[3]||(t[3]=A=>e.$emit("opend")),onClose:t[4]||(t[4]=A=>e.$emit("close")),onClosed:t[5]||(t[5]=A=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$D,[Vue.createVNode(s,{type:"primary",size:"small",onClick:t[0]||(t[0]=A=>i.saveI18nSet("form"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1}),Vue.createVNode(s,{size:"small",onClick:i.goBack},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.return")),1)]),_:1},8,["onClick"])]),Vue.createVNode(c,{ref:"form",model:n.i18nModel,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{span:24},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditorPublicModel.i18nKey"),prop:"key",rules:[n.requiredRule]},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.i18nModel.key,"onUpdate:modelValue":t[1]||(t[1]=A=>n.i18nModel.key=A),style:{width:"80%"}},null,8,["modelValue"])]),_:1},8,["label","rules"])]),_:1})]),_:1}),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Object.keys(n.languages),A=>(Vue.openBlock(),Vue.createBlock(u,{key:A},{default:Vue.withCtx(()=>[Vue.createVNode(d,{span:24},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:n.languages[A],prop:A},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.i18nModel.values[A],"onUpdate:modelValue":C=>n.i18nModel.values[A]=C},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label","prop"])]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["model"])]),_:1},8,["title"])):Vue.createCommentVNode("",!0)}const I18nSet=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$14]]),_sfc_main$1a={name:"I18nInput",components:{I18nSet},model:{prop:"value",event:"input"},props:{modelValue:{type:String,default:""},i18nKey:{type:String,default:""}},data(){const e=this.modelValue;return{isShowI18n:!1,myI18nKey:this.i18nKey,zh:e,isNewI18n:!1}},computed:{...mapGetters("wfEditor",["processCode","isHandleCreate"])},mounted(){this.$watch("zh",function(e){this.$emit("update:modelValue",e)})},created(){this.isHandleCreate&&this.isHandleCreate==="true"?this.isNewI18n=!1:this.isNewI18n=!0,this.isNewI18n&&(this.myI18nKey=this.modelValue)},methods:{i18nSet(){this.myI18nKey?this.isShowI18n=!0:this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditorMessage.pleaseInputCode")})},closeI18nSet(e){e&&this.$emit("setI18n",e),this.isShowI18n=!1}}},_hoisted_1$C={style:{float:"left","padding-right":"5px"}};function _sfc_render$13(e,t,o,r,n,i){const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("i18n-set");return Vue.openBlock(),Vue.createElementBlock("span",null,[Vue.createElementVNode("div",_hoisted_1$C,[Vue.createVNode(s,{modelValue:n.zh,"onUpdate:modelValue":t[1]||(t[1]=a=>n.zh=a)},{append:Vue.withCtx(()=>[Vue.createElementVNode("i",{class:"fa fa-cog",onClick:t[0]||(t[0]=(...a)=>i.i18nSet&&i.i18nSet(...a))})]),_:1},8,["modelValue"])]),n.isShowI18n?(Vue.openBlock(),Vue.createBlock(l,{key:0,value:{values:{zh_CN:n.zh},key:n.myI18nKey},onClose:i.closeI18nSet},null,8,["value","onClose"])):Vue.createCommentVNode("",!0)])}const i18nInput=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$13]]),_sfc_main$19={name:"SelectMailTemplates",model:{prop:"value",event:"input"},props:{modelValue:{type:[String,Number],default:""}},data(){const e=this.modelValue;return{baseURL:"",optionUrl:"",multiSelectData:[],showMailTemplateFlag:!1,code:e,options:{showColumns:"code,name"},dialogVisible:!0}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseAPI,this.optionUrl="/mc/email-templates/list/0"},methods:{selectTemplate(){!this.multiSelectData||this.multiSelectData.length!==1?this.$message({showClose:!0,type:"warning",message:this.$t("workflowEditorMessage.pleaseSelectARow")}):(this.code=this.multiSelectData[0].code,this.$emit("set-value",this.code),this.showMailTemplateFlag=!1)},selectData(e,t){this.multiSelectData=e},clearVal(){this.code=null,this.$emit("set-value",null)}}},_hoisted_1$B={style:{width:"100%"}};function _sfc_render$12(e,t,o,r,n,i){const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("super-grid"),a=Vue.resolveComponent("el-button"),d=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$B,[Vue.createVNode(s,{readonly:"",modelValue:n.code,"onUpdate:modelValue":t[2]||(t[2]=u=>n.code=u),onClick:t[3]||(t[3]=u=>n.showMailTemplateFlag=!0)},{append:Vue.withCtx(()=>[Vue.createElementVNode("i",{class:"fa fa-search",onClick:t[0]||(t[0]=u=>n.showMailTemplateFlag=!0)}),Vue.createElementVNode("i",{style:{"padding-left":"10px"},class:"fa fa-trash",onClick:t[1]||(t[1]=u=>i.clearVal())})]),_:1},8,["modelValue"]),Vue.createVNode(d,{width:"40%",title:e.$t("workflowEditor.task.selectTemplate"),modelValue:n.showMailTemplateFlag,"onUpdate:modelValue":t[5]||(t[5]=u=>n.showMailTemplateFlag=u),center:"",top:"5vh","append-to-body":"",class:"properties-editor-noTab"},{footer:Vue.withCtx(()=>[Vue.createVNode(a,{onClick:t[4]||(t[4]=u=>n.showMailTemplateFlag=!1)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1}),Vue.createVNode(a,{type:"primary",onClick:i.selectTemplate},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"])]),default:Vue.withCtx(()=>[Vue.createVNode(l,{ref:"reportGrid",url:n.baseURL+n.optionUrl,code:"BS_EMAIL_TEMPLATE",options:n.options,onSelect:i.selectData},null,8,["url","options","onSelect"])]),_:1},8,["title","modelValue"])])}const SelectMailTemplates=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$12]]),basicProperties_vue_vue_type_style_index_0_scoped_a219b06d_lang="",_sfc_main$18={name:"BasicProperties",components:{TaskTitle,CustomActions:_sfc_main$1c,i18nInput,SelectMailTemplates},props:{model:{type:Object,default:null},id:{type:String,default:null},name:{type:String,default:null}},data(){let e=!1;const t=this.model.processingMode.actions.action;return t&&(Array.isArray(t)&&t.length===0?e=!1:e=!0),{showActions:e,formModel:{name:this.name,id:this.id,tache:this.model}}},computed:{tache(){return this.model}},created(){this.tache.processingMode.actions||(this.tache.processingMode.actions={})},mounted(){this.$watch("formModel.name",function(e,t){this.$emit("update:name",e)})},methods:{validateId(){validateTacheCode(this)},setMailTemplateCode(e){this.tache.mailTemplateCode=e},setMailPointTemplateCode(e){this.tache.mailPointTemplateCode=e},setI18nValue(e){this.tache.i18nKey=e},updateAction(e){this.tache.processingMode.actions.action=e}}},_withScopeId$2=e=>(Vue.pushScopeId("data-v-a219b06d"),e=e(),Vue.popScopeId(),e),_hoisted_1$A=_withScopeId$2(()=>Vue.createElementVNode("span",{class:"percent"}," % ",-1));function _sfc_render$11(e,t,o,r,n,i){const s=Vue.resolveComponent("i18n-input"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-col"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("task-title"),m=Vue.resolveComponent("el-switch"),A=Vue.resolveComponent("select-mail-templates"),C=Vue.resolveComponent("el-radio"),g=Vue.resolveComponent("el-radio-group"),E=Vue.resolveComponent("el-input-number"),p=Vue.resolveComponent("custom-actions"),f=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(f,{model:n.formModel,"label-width":"110px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.name")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.name,"onUpdate:modelValue":t[0]||(t[0]=w=>n.formModel.name=w),"i18n-key":i.tache.i18nKey?i.tache.i18nKey:"name."+n.formModel.id,onSetI18n:i.setI18nValue},null,8,["modelValue","i18n-key","onSetI18n"])]),_:1},8,["label"])]),_:1}),Vue.createVNode(a,{span:12},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.code")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.formModel.id,"onUpdate:modelValue":t[1]||(t[1]=w=>n.formModel.id=w),onBlur:i.validateId},null,8,["modelValue","onBlur"])]),_:1},8,["label"])]),_:1})]),_:1}),Vue.createVNode(l,{label:e.$t("workflowEditor.task.taskTitle")},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:i.tache.taskTitle,"onUpdate:modelValue":t[2]||(t[2]=w=>i.tache.taskTitle=w)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.canItBeRejected")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:i.tache.rebuttable,"onUpdate:modelValue":t[3]||(t[3]=w=>i.tache.rebuttable=w)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.emailNotification")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:i.tache.mailNotice,"onUpdate:modelValue":t[4]||(t[4]=w=>i.tache.mailNotice=w)},null,8,["modelValue"])]),_:1},8,["label"]),i.tache.mailNotice?(Vue.openBlock(),Vue.createBlock(l,{key:0,label:e.$t("workflowEditor.task.selectNoticeTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:i.tache.mailTemplateCode,"onUpdate:modelValue":t[5]||(t[5]=w=>i.tache.mailTemplateCode=w),onSetValue:i.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),i.tache.mailNotice?(Vue.openBlock(),Vue.createBlock(l,{key:1,label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:i.tache.mailPointTemplateCode,"onUpdate:modelValue":t[6]||(t[6]=w=>i.tache.mailPointTemplateCode=w),onSetValue:i.setMailPointTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.HandlingMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:i.tache.processingMode.type,"onUpdate:modelValue":t[7]||(t[7]=w=>i.tache.processingMode.type=w)},{default:Vue.withCtx(()=>[Vue.createVNode(C,{label:"EDIT"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.editorial")),1)]),_:1}),Vue.createVNode(C,{label:"APPROVE"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.approvalType")),1)]),_:1}),Vue.createVNode(C,{label:"COUNTERSIGN"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.countersign")),1)]),_:1}),Vue.createVNode(C,{label:"VOTE"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.voting")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),i.tache.processingMode.type==="EDIT"||i.tache.processingMode.type==="APPROVE"?(Vue.openBlock(),Vue.createBlock(l,{key:2,label:e.$t("workflowEditorMessage.whenThereAreMultipleManagers")},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:i.tache.processingMode.moreTransactor,"onUpdate:modelValue":t[8]||(t[8]=w=>i.tache.processingMode.moreTransactor=w)},{default:Vue.withCtx(()=>[Vue.createVNode(C,{label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.anyOneCanHandleIt")),1)]),_:1}),Vue.createVNode(C,{label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.forAll")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),i.tache.processingMode.type==="COUNTERSIGN"||i.tache.processingMode.type==="VOTE"?(Vue.openBlock(),Vue.createBlock(l,{key:3,label:e.$t("workflowEditor.task.passRate")},{default:Vue.withCtx(()=>[Vue.createVNode(E,{modelValue:i.tache.processingMode.passRate,"onUpdate:modelValue":t[9]||(t[9]=w=>i.tache.processingMode.passRate=w),step:10,size:"small",min:0,max:100},null,8,["modelValue"]),_hoisted_1$A]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.modifyOperationName")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.showActions,"onUpdate:modelValue":t[10]||(t[10]=w=>n.showActions=w)},null,8,["modelValue"]),n.showActions?(Vue.openBlock(),Vue.createBlock(p,{key:0,model:i.tache.processingMode.actions,onUpdateAction:i.updateAction},null,8,["model","onUpdateAction"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.handlingPage")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:i.tache.taskUrl,"onUpdate:modelValue":t[11]||(t[11]=w=>i.tache.taskUrl=w)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.remarks")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:i.tache.remark,"onUpdate:modelValue":t[12]||(t[12]=w=>i.tache.remark=w),type:"textarea",autosize:""},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const BasicProperties$5=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$11],["__scopeId","data-v-a219b06d"]]),editableFieldSelection_vue_vue_type_style_index_0_scoped_9458f3bf_lang="",_sfc_main$17={name:"EditableFieldSelection",components:{AdditionalCondition},props:{value:{type:Array,default:null},disabledFields:{type:Array,default:null}},data(){return{availableFields:[],formModel:{selectedFields:[],constraintRule:"REQUIRED",showCondition:!1,condition:""},availableFieldsCount:null,orange:-1,pin:!1,dialogVisible:!0,activeNames:["baseField"]}},computed:{...mapGetters("wfEditor",["formFieldsWithSub"])},created(){let e=0;this.formFieldsWithSub.map(o=>{this.disabledFields.indexOf(o.name)<0&&(o.index=e,this.availableFields.push(o),e++)});const t=this.availableFields.length;this.availableFieldsCount=Math.ceil(t/3)},mounted(){window.addEventListener("keydown",e=>{console.log("按住"),e.keyCode===16&&e.shiftKey&&(this.pin=!0)}),window.addEventListener("keyup",e=>{console.log("松开"),e.keyCode===16&&(this.pin=!1)})},methods:{filterMethod(e,t){return t.label&&t.label.indexOf(e)>-1?!0:(console.log("filterMethod--item.label=",t.label,t),!1)},setSelectedFields(){const e=[];for(const t of this.formModel.selectedFields)e.push({name:t,constraintRule:this.formModel.constraintRule,condition:this.formModel.showCondition?this.formModel.condition:""});this.$emit("input-value",e),this.$emit("close")},pinSelect(e,t){console.log(e,t);const o=this.availableFields,r=this.origin,n=t;if(this.pin&&this.formModel.selectedFields.indexOf(e)!==-1){console.log(this.formModel.selectedFields.indexOf(e));const i=Math.abs(r-n)+1,s=Math.min(r,n);let l=0;for(;l<i;){const a=s+l;this.formModel.selectedFields.indexOf(o[a].name)===-1&&this.formModel.selectedFields.push(o[a].name),l++}}else this.origin=t}}},_hoisted_1$z=["title"],_hoisted_2$l=["title"],_hoisted_3$8=["title"],_hoisted_4$6=["title"],_hoisted_5$5=["title"],_hoisted_6$4=["title"],_hoisted_7$2=["title"],_hoisted_8$2=["title"],_hoisted_9$1=["title"],_hoisted_10$1=["title"],_hoisted_11$1=["title"],_hoisted_12=["title"];function _sfc_render$10(e,t,o,r,n,i){const s=Vue.resolveComponent("el-checkbox"),l=Vue.resolveComponent("el-col"),a=Vue.resolveComponent("el-row"),d=Vue.resolveComponent("el-collapse-item"),u=Vue.resolveComponent("el-collapse"),c=Vue.resolveComponent("el-checkbox-group"),m=Vue.resolveComponent("el-radio"),A=Vue.resolveComponent("el-radio-group"),C=Vue.resolveComponent("el-form-item"),g=Vue.resolveComponent("el-switch"),E=Vue.resolveComponent("additional-condition"),p=Vue.resolveComponent("el-form"),f=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(w,{id:"appContainer",width:"60%",title:e.$t("workflowEditor.task.selectEditableField"),"model-value":"",top:"10vh","append-to-body":"",class:"properties-editor-noTab",center:"",onClose:t[6]||(t[6]=v=>e.$emit("close"))},{footer:Vue.withCtx(()=>[Vue.createVNode(f,{type:"primary",size:"small",onClick:i.setSelectedFields},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(f,{size:"small",onClick:t[5]||(t[5]=v=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(p,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.selectedFields,"onUpdate:modelValue":t[1]||(t[1]=v=>n.formModel.selectedFields=v)},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.availableFieldsCount,(v,b)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:v.prop},[n.availableFields[b*3+0]&&!n.availableFields[b*3+0].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:0,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+0].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_1$z)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_2$l)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+1]&&!n.availableFields[b*3+1].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:1,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+1].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_3$8)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_4$6)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+2]&&!n.availableFields[b*3+2].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:2,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+2].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_5$5)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_6$4)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0)],64))),128))]),_:1}),Vue.createVNode(u,{modelValue:n.activeNames,"onUpdate:modelValue":t[0]||(t[0]=v=>n.activeNames=v)},{default:Vue.withCtx(()=>[Vue.createVNode(d,{title:e.$t("workflowEditor.task.baseField"),name:"baseField"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.availableFieldsCount,(v,b)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:v.prop},[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[n.availableFields[b*3+0]&&n.availableFields[b*3+0].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:0,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+0].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_7$2)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+0].name,onChange:O=>i.pinSelect(n.availableFields[b*3+0].name,n.availableFields[b*3+0].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+0].label},Vue.toDisplayString(n.availableFields[b*3+0].label),9,_hoisted_8$2)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+1]&&n.availableFields[b*3+1].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:1,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+1].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_9$1)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+1].name,onChange:O=>i.pinSelect(n.availableFields[b*3+1].name,n.availableFields[b*3+1].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+1].label},Vue.toDisplayString(n.availableFields[b*3+1].label),9,_hoisted_10$1)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0),n.availableFields[b*3+2]&&n.availableFields[b*3+2].baseField?(Vue.openBlock(),Vue.createBlock(l,{key:2,span:8},{default:Vue.withCtx(()=>[n.availableFields[b*3+2].name.indexOf("$")===-1?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_11$1)]),_:2},1032,["label","onChange"])):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:n.availableFields[b*3+2].name,onChange:O=>i.pinSelect(n.availableFields[b*3+2].name,n.availableFields[b*3+2].index)},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:{color:"#409eff"},class:"ellipsis",title:n.availableFields[b*3+2].label},Vue.toDisplayString(n.availableFields[b*3+2].label),9,_hoisted_12)]),_:2},1032,["label","onChange"]))]),_:2},1024)):Vue.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["title"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),Vue.createVNode(C,{label:e.$t("workflowEditor.task.editingMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:n.formModel.constraintRule,"onUpdate:modelValue":t[2]||(t[2]=v=>n.formModel.constraintRule=v)},{default:Vue.withCtx(()=>[Vue.createVNode(m,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(m,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(C,{label:e.$t("workflowEditor.task.additionalConditions")},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:n.formModel.showCondition,"onUpdate:modelValue":t[3]||(t[3]=v=>n.formModel.showCondition=v)},null,8,["modelValue"]),n.formModel.showCondition?(Vue.openBlock(),Vue.createBlock(E,{key:0,modelValue:n.formModel.condition,"onUpdate:modelValue":t[4]||(t[4]=v=>n.formModel.condition=v)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["title"])}const EditableFieldSelection=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$10],["__scopeId","data-v-9458f3bf"]]),_sfc_main$16={name:"EditableFields",components:{EditableFieldSelection,AdditionalConditionDialog},props:{modelValue:{type:[Array,Object],default:null}},data(){let e=[];this.modelValue!==""&&this.modelValue!==null&&this.modelValue!==void 0&&(Array.isArray(this.modelValue)?e=this.modelValue:e.push(this.modelValue));const t=this.getDisabledFields(this.modelValue);return{showFieldSelection:!1,showAdditionalCondition:!1,selectedFields:e,currentRow:null,multipleSelection:[],disabledFields:t}},computed:{...mapGetters("wfEditor",["formFieldsWithSub"])},watch:{selectedFields:{handler(e,t){this.disabledFields=this.getDisabledFields(e)},deep:!0}},mounted(){this.selectedFields.length>0&&this.selectRow(this.selectedFields[this.selectedFields.length-1])},methods:{getDisabledFields(e){if(e==null)return[];const t=[];return Array.isArray(e)?e.map(o=>{t.push(o.name)}):t.push(e),t},handleCurrentChange(e){this.currentRow=e},handleSelectionChange(e){this.multipleSelection=e},selectRow(e){this.$refs.table.setCurrentRow(e)},add(){this.showFieldSelection=!0},getCurrentRowIndex(){let e=-1;for(let t=0;t<this.selectedFields.length;t++)if(this.selectedFields[t].name===this.currentRow.name){e=t;break}return e},remove(){if(this.multipleSelection&&this.multipleSelection.length>0){for(var e=0;e<this.multipleSelection.length;e++){const t=this.multipleSelection[e];this.selectRow(t);const o=this.getCurrentRowIndex();this.selectedFields.splice(o,1)}this.$emit("update:modelValue",this.selectedFields)}},setSelectedFields(e){e==null&&(e=[]),this.selectedFields=this.selectedFields.concat(e),this.selectRow(this.selectedFields[this.selectedFields.length-1]),this.$emit("update:modelValue",this.selectedFields)},formatCondition(e){if(e===""||!e)return this.$t("workflowEditor.task.nothing");const t=[];return parseCondition$1(t,e),displayCondition(t)},getFieldLabel(e){const t=this.formFieldsWithSub.filter(o=>o.name===e.name);return t.length>0?t[0].label:""},selectCondition(e){this.selectRow(e),this.showAdditionalCondition=!0}}},_hoisted_1$y={style:{width:"100%"}};function _sfc_render$$(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),d=Vue.resolveComponent("el-radio"),u=Vue.resolveComponent("el-radio-group"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("editable-field-selection"),C=Vue.resolveComponent("additional-condition-dialog");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$y,[Vue.createVNode(l,{style:{"padding-bottom":"10px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.selectedFields,border:"","highlight-current-row":"",onSelectionChange:i.handleSelectionChange,onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"selection",width:"55"}),Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{label:e.$t("workflowEditor.common.name"),width:"180"},{default:Vue.withCtx(g=>[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:g.row.name&&g.row.name.indexOf("$")===0?"#409EFF":""})},Vue.toDisplayString(i.getFieldLabel(g.row)),5)]),_:1},8,["label"]),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.task.propertyName"),width:"180"},null,8,["label"]),Vue.createVNode(a,{prop:"constraintRule",label:e.$t("workflowEditor.task.editingMethod")},{default:Vue.withCtx(g=>[Vue.createVNode(u,{modelValue:g.row.constraintRule,"onUpdate:modelValue":E=>g.row.constraintRule=E},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(d,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"condition",label:e.$t("workflowEditor.task.condition")},{default:Vue.withCtx(g=>[Vue.createVNode(c,{value:i.formatCondition(g.row.condition),type:"textarea",autosize:"",onFocus:E=>i.selectCondition(g.row)},null,8,["value","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange","onCurrentChange"]),n.showFieldSelection?(Vue.openBlock(),Vue.createBlock(A,{key:0,"disabled-fields":n.disabledFields,onInputValue:i.setSelectedFields,onClose:t[0]||(t[0]=g=>n.showFieldSelection=!1)},null,8,["disabled-fields","onInputValue"])):Vue.createCommentVNode("",!0),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(C,{key:1,modelValue:n.currentRow.condition,"onUpdate:modelValue":t[1]||(t[1]=g=>n.currentRow.condition=g),onClose:t[2]||(t[2]=g=>n.showAdditionalCondition=!1)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)])}const EditableFields=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$$]]),utiljs={xmlToData(e){const t=[];if(e){const n=e.split(" ");if(n&&n.length>0){let i=1,s="",l="",a="",d="",u="",c="",m=null;for(var o=0;o<n.length;o++){var r=n[o];if(r.indexOf("(")!==-1){this.operationArr&&this.operationArr.push([]),s="",l="",a="",d="",u="",c="";const A=r.split("${field[");if(s=A[0],l=A[1].replace("]}",""),this.operationArr){const C=this.getOperators(this.fieldMap[l]);this.operationArr[i-1]=C}continue}if(r.indexOf("(")===-1&&r.indexOf("${field[")!==-1){if(this.operationArr&&this.operationArr.push([]),s="",l="",a="",d="",u="",c="",l=r.replace("${field[","").replace("]}",""),this.operationArr){const A=this.getOperators(this.fieldMap[l]);this.operationArr[i-1]=A}continue}if(r.indexOf("operator.")!==-1&&r.indexOf("condition.")===-1){a=r;continue}if(a!==""&&d===""){r.indexOf(")")!==-1?r.indexOf(")))")!==-1?(d=r.replace(")))",""),u=")))"):r.indexOf("))")!==-1?(d=r.replace("))",""),u="))"):r.indexOf(")")!==-1&&(d=r.replace(")",""),u=")"):d=r,d&&d!==""&&(d.indexOf("${task.")!==-1?m="task":d.indexOf("${context.")!==-1?m="context":d.indexOf("${obj.")!==-1?m="obj":d.indexOf("${subObj.")!==-1?m="subObj":d.indexOf("${request.")!==-1?m="request":d.indexOf("${input.")!==-1?m="input":d.indexOf("${custom.")!==-1&&(m="custom"));continue}r.indexOf("condition.")!==-1?(c=r,t.push({id:i,leftBracket:s,propName:l,operator:a,propValue:d,rightBracket:u,logicOperator:c,propValueType:m}),i+=1):d&&d!==""&&(!c||c==="")&&(c="condition.operator.or",t.push({id:i,leftBracket:s,propName:l,operator:a,propValue:d,rightBracket:u,logicOperator:c,propValueType:m}),i+=1)}}}return t},getOperatorsArr(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){this.operationArr.push([]);const o=e[t],r=this.getOperators(this.fieldMap[o.propName]);this.operationArr[t]=r}},getRetunrOperatorsArr(e,t){const o=[];if(e&&e.length>0)for(var r=0;r<e.length;r++){o.push([]);const n=e[r],i=this.getOperators(t[n.propName]);o[r]=i}return o},dataToXml(e){let t="";if(e&&e.length>0)for(var o=0;o<e.length;o++){var r=e[o];let n=r.logicOperator;o===e.length-1&&(n=""),t=t+r.leftBracket+"${field["+r.propName+"]} "+r.operator+" "+r.propValue+r.rightBracket+" "+n+" "}return t},formatConditionList(e){let t="";if(e)if(typeof e=="string"){const o=this.xmlToData(e);t=this.formatConditionListTwo(o)}else t=this.formatConditionListTwo(e);if(t&&t!==""){const o=t.substring(t.length-1);(o==="者"||o==="且")&&(t=t.substring(0,t.length-2))}return t},formatConditionListTwo(e){let t="";if(e&&e.length>0)for(var o=0;o<e.length;o++){const r=e[o];if(r&&r.propName){const n=this.getOperators(this.fieldMap[r.propName]);if(n&&n.length>0){const i=n.filter(s=>s.name===r.operator);t+=r.leftBracket,this.fieldMap[r.propName]&&this.fieldMap[r.propName].label&&(t+=this.fieldMap[r.propName].label+" "),i&&i.length>0&&(t+=i[0].label+" "),t+=r.propValue+r.rightBracket+" ",r.logicOperator&&(r.logicOperator==="or"?t+="或者":t+="并且")}}}return t},getOperators(e){return e?e.type==="INTEGER"||e.type==="LONG"||e.type==="DOUBLE"||e.type==="FLOAT"?[{name:"operator.number.gt",label:getI18n().t("workflowEditor.process.greaterThan")},{name:"operator.number.lt",label:getI18n().t("workflowEditor.process.lessThan")},{name:"operator.number.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.number.le",label:getI18n().t("workflowEditor.process.notGreaterThan")},{name:"operator.number.ge",label:getI18n().t("workflowEditor.process.notLessThan")},{name:"operator.number.ne",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:e.type==="DATE"||e.type==="TIME"?[{name:"operator.date.gt",label:getI18n().t("workflowEditor.process.laterThan")},{name:"operator.date.lt",label:getI18n().t("workflowEditor.process.earlierThan")},{name:"operator.date.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.date.le",label:getI18n().t("workflowEditor.process.noLaterThan")},{name:"operator.date.ge",label:getI18n().t("workflowEditor.process.noEarlierThan")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:e.type==="TEXT"?[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.contain",label:getI18n().t("workflowEditor.process.contain")},{name:"operator.text.contain.not",label:getI18n().t("workflowEditor.process.notIncluded")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")},{name:"operator.text.is.null",label:getI18n().t("workflowEditor.process.isNull")},{name:"operator.text.not.null",label:getI18n().t("workflowEditor.process.isNotNull")}]:[{name:"operator.text.eq",label:getI18n().t("workflowEditor.process.beEqualTo")},{name:"operator.text.neq",label:getI18n().t("workflowEditor.process.notEqualTo")}]}},userStandardFieldsForReminder={"${instanceCreatorName}":getI18n().t("workflowEditor.process.processInitiator"),"${instanceCreatorDirectSuperiorName}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),"${instanceCreatorDeptApprover}":getI18n().t("workflowEditor.process.deptApprover"),"${instanceCreatorDirectSuperiorDeptApprover}":getI18n().t("workflowEditor.process.superiorDeptApprover"),"${instanceCreatorDirectSuperiorDeptLeader}":getI18n().t("workflowEditor.process.superiorDeptLeader"),"${currentTransactorName}":getI18n().t("workflowEditor.process.nameOfCurrentHandler"),"${currentTransactorDirectSuperiorName}":getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler")},departmentStandardFieldsForReminder={"${instanceCreatorDepartment}":getI18n().t("workflowEditor.process.processInitiatorDepartment"),"${instanceCreatorSuperiorDepartment}":getI18n().t("workflowEditor.process.sponsorsSuperiorDepartment"),"${instanceCreatorUpstageDepartment}":getI18n().t("workflowEditor.process.sponsorTopDepartment"),"${instanceCreatorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"),"${currentTransactorDepartment}":getI18n().t("workflowEditor.process.currentHandlerDepartment"),"${currentTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"),"${currentTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"),"${currentTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment")},workgroupStandardFieldsForReminder={"${instanceCreatorrWorkGroup}":getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),"${instanceCreatorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"),"${currentTransactorWorkGroup}":getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),"${currentTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler")},conditionTypes={"${user}":getI18n().t("workflowEditor.common.user"),"${department}":getI18n().t("workflowEditor.common.department"),"${role}":getI18n().t("workflowEditor.common.role"),"${workgroup}":getI18n().t("workflowEditor.common.workgroup")},logicOperators={"condition.operator.or":getI18n().t("workflowEditor.process.perhaps"),"condition.operator.and":getI18n().t("workflowEditor.process.also")},operators={"operator.text.eq":getI18n().t("workflowEditor.process.beEqualTo"),"operator.text.neq":getI18n().t("workflowEditor.process.notEqualTo")},allStandardFieldsForReminder={...userStandardFieldsForReminder,...departmentStandardFieldsForReminder,...workgroupStandardFieldsForReminder},userStandardFieldsForTransactor={"${instanceCreatorName}":getI18n().t("workflowEditor.process.processInitiator"),"${instanceCreatorDirectSuperiorName}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"),"${instanceCreatorDeptApprover}":getI18n().t("workflowEditor.process.deptApprover"),"${instanceCreatorDirectSuperiorDeptApprover}":getI18n().t("workflowEditor.process.superiorDeptApprover"),"${instanceCreatorDirectSuperiorDeptLeader}":getI18n().t("workflowEditor.process.superiorDeptLeader")},departmentStandardFieldsForTransactor={"${upstageDepartment}":getI18n().t("workflowEditor.process.topDepartments"),"${instanceCreatorDepartment}":getI18n().t("workflowEditor.process.processInitiatorDepartment"),"${instanceCreatorSuperiorDepartment}":getI18n().t("workflowEditor.process.sponsorsSuperiorDepartment"),"${instanceCreatorUpstageDepartment}":getI18n().t("workflowEditor.process.sponsorTopDepartment"),"${instanceCreatorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.superiorDepartmentDirectlyUnderTheInitiator"),"${previousTransactorDepartment}":getI18n().t("workflowEditor.process.lastLinkHandlerDepartment"),"${previousTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.previousLinkHandlerSuperiorDepartment"),"${previousTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.topDepartmentOfHandlerInThePreviousLink"),"${previousTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.previousLinkHandlersDirectSuperiorDepartment")},workgroupStandardFieldsForTransactor={"${instanceCreatorrWorkGroup}":getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"),"${instanceCreatorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.sponsorsImmediateSuperiorWorkingGroup"),"${previousTransactorWorkGroup}":getI18n().t("workflowEditor.process.previousLinkHandlerWorkingGroup"),"${previousTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheManagerInThePreviousLink")};({...userStandardFieldsForTransactor,...departmentStandardFieldsForTransactor,...workgroupStandardFieldsForTransactor});function formatStandardValue(e){return allStandardFieldsForReminder[e]!==void 0?allStandardFieldsForReminder[e]:""}function parseCondition(e,t){let o=t.replace(/ condition.operator.or /g," condition.operator.or^_^");o=o.replace(/ condition.operator.and /g," condition.operator.and^_^");const r=o.split("^_^");let n=0;for(const i of r){if(i==="")continue;let s="",l="",a="",d="",u="",c="condition.operator.or";const m=i.split(" ");let A=m[0].indexOf("${");A>0?(s=m[0].substring(0,A),l=m[0].substring(A)):l=m[0],a=m[1],A=m[2].indexOf(")"),A>0?(d=m[2].substring(0,A),u=m[2].substring(A)):d=m[2],m.length===4&&(c=m[3]),e.push({id:n,leftBracket:s,key:l,operator:a,value:d,rightBracket:u,logicOperator:c}),n++}return n}function generateUserCondition(e){let t="";for(const n of e)n.value!==""&&(t=t+n.leftBracket+n.key+" "+n.operator+" "+n.value+n.rightBracket+" "+n.logicOperator+" ");const o=" condition.operator.or ",r=" condition.operator.and ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}function displayUserCondition(e){let t="";for(const n of e)n.value!==""&&(t=t+n.leftBracket+conditionTypes[n.key]+" "+operators[n.operator]+" "+formatStandardValue(n.value)+n.rightBracket+" "+logicOperators[n.logicOperator]+" ");const o=" "+getI18n().t("workflowEditor.process.perhaps")+" ",r=" "+getI18n().t("workflowEditor.process.also")+" ";return t.lastIndexOf(o)+o.length===t.length?t=t.substring(0,t.lastIndexOf(o)):t.lastIndexOf(r)+r.length===t.length&&(t=t.substring(0,t.lastIndexOf(r))),t}const _sfc_main$15={name:"CommonUserCondition",components:{ValueSelectionDialog},props:{modelValue:{type:String,default:null},usedIn:{type:String,default:"reminder"}},data(){const e=[];let t=0;return this.modelValue&&this.modelValue!==""&&(t=parseCondition(e,this.modelValue)),{users:e,count:t,currentRow:null,showValueDialog:!1}},computed:{standardFields(){let e=this.usedIn==="reminder"?userStandardFieldsForReminder:userStandardFieldsForTransactor;return this.currentRow.key==="${department}"?e=this.usedIn==="reminder"?departmentStandardFieldsForReminder:departmentStandardFieldsForTransactor:this.currentRow.key==="${workgroup}"?e=this.usedIn==="reminder"?workgroupStandardFieldsForReminder:workgroupStandardFieldsForTransactor:this.currentRow.key==="${role}"&&(e={}),e}},mounted(){this.users.length>0&&this.$refs.table.setCurrentRow(this.users[this.users.length-1]),this.$watch("users",function(e,t){this.$emit("update:modelValue",generateUserCondition(this.users))},{deep:!0})},methods:{format(e){return e.indexOf("${field[")>=0?getFormFieldLabel(e):e.indexOf("${")>=0?formatStandardValue(e):e.substring(0,e.indexOf("["))},selectRow(e){this.$refs.table.setCurrentRow(e)},openValueDialog(e){this.showValueDialog=!0,this.selectRow(e)},closeValueDialog(e){console.log(e),e!==void 0&&e!==""&&(this.currentRow.value=e),this.showValueDialog=!1},getCondition(e){return e.key+" "+e.operator+" "+e.value},handleCurrentChange(e){this.currentRow=e},getRowIndex(e){for(let t=0;t<this.users.length;t++)if(this.users[t].id===e.id)return t;return-1},add(){const e={id:this.count,leftBracket:"",key:"${user}",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.users.push(e),this.$refs.table.setCurrentRow(e),this.count++},insert(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}const e={id:this.count,leftBracket:"",key:"${user}",operator:"operator.text.eq",value:"",rightBracket:"",logicOperator:"condition.operator.or"};this.users.splice(this.getRowIndex(this.currentRow),0,e),this.$refs.table.setCurrentRow(e),this.count++},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.users.splice(e,1),this.users.length>0&&(e=e<=this.users.length-1?e:this.users.length-1,this.$refs.table.setCurrentRow(this.users[e]))},view(){let e=displayUserCondition(this.users);e===""&&(e=this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")),this.$confirm(e,this.$t("workflowEditorPublicModel.viewConditions"),{showConfirmButton:!1,showCancelButton:!1,callback:function(){}})},handleKeyChange(e){this.currentRow.value=""}}};function _sfc_render$_(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-option"),d=Vue.resolveComponent("el-select"),u=Vue.resolveComponent("el-table-column"),c=Vue.resolveComponent("el-input"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("value-selection-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"ArrowRight",onClick:i.insert},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.insert")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"View",onClick:i.view},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.viewConditions")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.users,"row-key":"id",border:"",style:{width:"100%","padding-top":"10px"},"highlight-current-row":"",onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(u,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.leftBracket,"onUpdate:modelValue":g=>C.row.leftBracket=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:"(",value:"("}),Vue.createVNode(a,{label:"((",value:"(("}),Vue.createVNode(a,{label:"(((",value:"((("})]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1}),Vue.createVNode(u,{label:e.$t("workflowEditor.common.type"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.key,"onUpdate:modelValue":g=>C.row.key=g,placeholder:"",onFocus:g=>i.selectRow(C.row),onChange:i.handleKeyChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.common.user"),value:"${user}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.role"),value:"${role}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.department"),value:"${department}"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.common.workgroup"),value:"${workgroup}"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus","onChange"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.operator,"onUpdate:modelValue":g=>C.row.operator=g,placeholder:"",onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.beEqualTo"),value:"operator.text.eq"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.notEqualTo"),value:"operator.text.neq"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(C=>[Vue.createVNode(c,{value:i.format(C.row.value),readonly:"",onClick:g=>i.openValueDialog(C.row)},null,8,["value","onClick"])]),_:1},8,["label"]),Vue.createVNode(u,{prop:"rightBracket",label:")",width:"90",onFocus:t[0]||(t[0]=C=>i.selectRow(e.scope.row))},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.rightBracket,"onUpdate:modelValue":g=>C.row.rightBracket=g,placeholder:""},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"",value:""}),Vue.createVNode(a,{label:")",value:")"}),Vue.createVNode(a,{label:"))",value:"))"}),Vue.createVNode(a,{label:")))",value:")))"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),Vue.createVNode(u,{prop:"logicOperator",label:e.$t("workflowEditorPublicModel.andOr"),width:"110"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.logicOperator,"onUpdate:modelValue":g=>C.row.logicOperator=g,placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onFocus:g=>i.selectRow(C.row)},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(a,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showValueDialog?(Vue.openBlock(),Vue.createBlock(A,{key:0,"standard-fields":i.standardFields,"org-type":n.currentRow.key.substring(n.currentRow.key.indexOf("{")+1,n.currentRow.key.lastIndexOf("}")),onClose:i.closeValueDialog},null,8,["standard-fields","org-type","onClose"])):Vue.createCommentVNode("",!0)])}const CommonUserCondition=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$_]]),_sfc_main$14={components:{AdditionalCondition,CommonUserCondition},props:{conditionList:{type:[Array,String],default:null},userCondition:{type:String,default:null},parentCondition:{type:String,default:null},attributeMap:{type:Object,default:null},buttonType:{type:Object,default:null}},data(){let e;this.userCondition&&this.userCondition!==""&&(e=this.userCondition);let t;return this.parentCondition&&this.parentCondition!==""&&(t=this.parentCondition),{myUserCondition:e,myParentCondition:t,tableData:null,attributeArr:[],fieldMap:{},fieldNameMap:{},queryList:[],operationArr:[],parentAttributeArr:[],dialogVisible:!0}},created(){this.getAttributeArr()},computed:{...mapGetters("wfEditor",["propSettingKeyList"])},mounted(){this.conditionList&&(typeof this.conditionList=="object"?this.tableData=this.conditionList:this.tableData=this.xmlToData(this.conditionList),this.getOperatorsArr(this.tableData))},methods:{...utiljs,add(){this.tableData||(this.tableData=[]),this.tableData.push({leftBracket:"",propName:"",operator:"",propValue:"",rightBracket:"",logicOperator:"condition.operator.or",dataType:"",propDbName:""}),this.operationArr.push([])},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e=this.getRowIndex(this.currentRow);this.tableData.splice(e,1),this.tableData.length>0&&(e=e<=this.tableData.length-1?e:this.tableData.length-1,this.$refs.table.setCurrentRow(this.tableData[e]))},changeFieldName(e){const t=this.currentRow.propName,o=this.fieldMap[t];o&&(this.tableData[e].dataType=o.type,this.tableData[e].propDbName=o.propDbName),this.operationArr[e]=this.getOperators(o)},getAttributeArr(){this.attributeMap&&this.attributeMap.attributeArr&&(this.attributeArr=this.attributeMap.attributeArr,this.queryList=this.attributeMap.attributeArr,this.fieldMap=this.attributeMap.fieldMap,this.fieldNameMap=this.attributeMap.fieldNameMap,this.parentAttributeArr=this.attributeMap.parentAttributeArr)},selectRow(e){this.attributeArr=this.queryList,this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},searchField(e){e&&(this.attributeArr=this.queryList.filter(t=>t.label.indexOf(e)>-1||t.value.indexOf(e)>-1))},getRowIndex(e){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].propName===e.propName)return t;return-1},savebuttonSetting(){if(this.tableData&&this.tableData.length>0){for(var e=0;e<this.tableData.length;e++)if(!this.tableData[e].propName){this.$alert(this.$t("workflowEditorMessage.blankFieldNameOrValue"));return}}const t={userCondition:this.myUserCondition,parentCondition:this.myParentCondition,condition:this.tableData};this.$emit("close",t)},closeButtonSetting(){this.savebuttonSetting(),this.$emit("close",null)},changePropValue(e){this.tableData[e]&&this.tableData[e].propValue?this.tableData[e].propValueType&&(this.tableData[e].propValueType==="request"&&(this.tableData[e].propValue.indexOf("${request.")===-1&&(this.tableData[e].propValue="${request."+this.tableData[e].propValue),this.tableData[e].propValue.indexOf("}")===-1&&(this.tableData[e].propValue=this.tableData[e].propValue+"}")),this.tableData[e].propValueType==="input"&&(this.tableData[e].propValue.indexOf("${input.")===-1&&(this.tableData[e].propValue="${input."+this.tableData[e].propValue),this.tableData[e].propValue.indexOf("}")===-1&&(this.tableData[e].propValue=this.tableData[e].propValue+"}"))):this.tableData[e].propValueType=null}}},_hoisted_1$x={style:{"overflow-y":"auto","max-height":"500px"}},_hoisted_2$k={class:"operation-area"},_hoisted_3$7={class:"clearfix"},_hoisted_4$5={class:"clearfix"};function _sfc_render$Z(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("common-user-condition"),a=Vue.resolveComponent("el-card"),d=Vue.resolveComponent("additional-condition"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),A=Vue.resolveComponent("el-table-column"),C=Vue.resolveComponent("el-date-picker"),g=Vue.resolveComponent("el-input"),E=Vue.resolveComponent("el-table"),p=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(p,{"show-close":!0,"append-to-body":!0,style:{width:"100%"},title:e.$t("workflowEditor.condition.combinationCondition"),"model-value":"",onClose:i.closeButtonSetting},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$x,[Vue.createElementVNode("div",_hoisted_2$k,[Vue.createVNode(s,{size:"small",type:"primary",onClick:i.savebuttonSetting},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditorPublicModel.save")),1)]),_:1},8,["onClick"])]),Vue.createElementVNode("div",null,[Vue.createVNode(a,{class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_3$7,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.personnelScope")),1)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(l,{modelValue:n.myUserCondition,"onUpdate:modelValue":t[0]||(t[0]=f=>n.myUserCondition=f),"used-in":"transactor"},null,8,["modelValue"])])]),_:1}),Vue.createVNode(a,{class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$5,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.mainTableConditions")),1)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(d,{modelValue:n.myParentCondition,"onUpdate:modelValue":t[1]||(t[1]=f=>n.myParentCondition=f)},null,8,["modelValue"])])]),_:1}),o.buttonType!=="notEmpty"&&o.buttonType!=="add"?(Vue.openBlock(),Vue.createBlock(a,{key:0,class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.condition.subtableCondition")),1)])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(u,{style:{"padding-bottom":"8px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(E,{id:"tableDataDialog",ref:"table",data:n.tableData,border:"",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(A,{prop:"leftBracket",label:"(",width:"90"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.leftBracket,"onUpdate:modelValue":w=>f.row.leftBracket=w,size:"small",clearable:"",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"",value:""}),Vue.createVNode(c,{label:"(",value:"("}),Vue.createVNode(c,{label:"((",value:"(("}),Vue.createVNode(c,{label:"(((",value:"((("})]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1}),Vue.createVNode(A,{label:e.$t("workflowEditor.common.fieldName"),width:"200"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.propName,"onUpdate:modelValue":w=>f.row.propName=w,"filter-method":i.searchField,size:"small",clearable:"",filterable:"",onFocus:w=>i.selectRow(f.row),onChange:w=>i.changeFieldName(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,w=>(Vue.openBlock(),Vue.createBlock(c,{key:w.value,label:w.label,value:w.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","filter-method","onFocus","onChange"])]),_:1},8,["label"]),Vue.createVNode(A,{label:e.$t("workflowEditor.common.operator"),width:"110"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.operator,"onUpdate:modelValue":w=>f.row.operator=w,size:"small",clearable:"",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.operationArr[f.$index],w=>(Vue.openBlock(),Vue.createBlock(c,{key:w.name,label:w.label,value:w.name},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"]),Vue.createVNode(A,{label:e.$t("workflowEditor.common.value")},{default:Vue.withCtx(f=>[f.row.propValueType?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(m,{key:0,modelValue:f.row.propValueType,"onUpdate:modelValue":w=>f.row.propValueType=w,size:"small",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.fillInManually"),value:"input"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.environmentVariable"),value:"context"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.requestParameters"),value:"request"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.mainTableField"),value:"obj"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.databaseFields"),value:"subObj"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.taskFields"),value:"task"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.systemParameter"),value:"custom"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])),f.row.propValueType==="context"?(Vue.openBlock(),Vue.createBlock(m,{key:1,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,clearable:"",size:"small",title:f.row.propValue,filterable:"","default-first-option":"","allow-create":"",onChange:w=>i.changePropValue(f.$index),onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTime"),value:"${context.currentTime}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactor"),value:"${context.currentTransactor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorName"),value:"${context.currentTransactorName}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorId"),value:"${context.currentTransactorId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorMainDepartmentId"),value:"${context.currentTransactorMainDepartmentId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorMainDepartment"),value:"${context.currentTransactorMainDepartment}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorRoleId"),value:"${context.currentTransactorRoleId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorRole"),value:"${context.currentTransactorRole}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorWorkGroupId"),value:"${context.currentTransactorWorkGroupId}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTransactorWorkGroup"),value:"${context.currentTransactorWorkGroup}"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange","onFocus"])):Vue.createCommentVNode("",!0),f.row.propValueType==="task"?(Vue.openBlock(),Vue.createBlock(m,{key:2,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,clearable:"",size:"small",title:f.row.propValue,filterable:"","default-first-option":"","allow-create":"",onChange:w=>i.changePropValue(f.$index),onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentHandler"),value:"${task.transactor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentTaskClient"),value:"${task.trustor}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.currentAssignor"),value:"${task.assigner}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.linkName"),value:"${task.name}"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.condition.linkCode"),value:"${task.nodeId}"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange","onFocus"])):Vue.createCommentVNode("",!0),f.row.dataType==="DATE"&&f.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(C,{key:3,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,size:"small",clearable:"","value-format":"YYYY-MM-DD",title:f.row.propValue,type:"date",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.dataType==="TIME"&&f.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(C,{key:4,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,size:"small",title:f.row.propValue,clearable:"","value-format":"YYYY-MM-DD HH:mm:ss",type:"datetime",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.dataType!=="TIME"&&f.row.dataType!=="DATE"&&f.row.propValueType==="input"?(Vue.openBlock(),Vue.createBlock(g,{key:5,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,modelModifiers:{trim:!0},title:f.row.propValue,clearable:"",size:"small",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="request"?(Vue.openBlock(),Vue.createBlock(g,{key:6,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,modelModifiers:{trim:!0},title:f.row.propValue,clearable:"",size:"small",onChange:w=>i.changePropValue(f.$index)},null,8,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="subObj"?(Vue.openBlock(),Vue.createBlock(m,{key:7,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,title:f.row.propValue,"filter-method":i.searchField,size:"small",clearable:"",filterable:"",onChange:w=>i.changePropValue(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,w=>(Vue.openBlock(),Vue.createBlock(c,{key:"${subObj."+w.value+"}",label:w.label,value:"${subObj."+w.value+"}"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","title","filter-method","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="obj"?(Vue.openBlock(),Vue.createBlock(m,{key:8,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,title:f.row.propValue,size:"small",clearable:"",filterable:"",onChange:w=>i.changePropValue(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.parentAttributeArr,w=>(Vue.openBlock(),Vue.createBlock(c,{key:"${obj."+w.value+"}",label:w.label,value:"${obj."+w.value+"}"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0),f.row.propValueType==="custom"?(Vue.openBlock(),Vue.createBlock(m,{key:9,modelValue:f.row.propValue,"onUpdate:modelValue":w=>f.row.propValue=w,title:f.row.propValue,size:"small",clearable:"",filterable:"",onChange:w=>i.changePropValue(f.$index)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.propSettingKeyList,w=>(Vue.openBlock(),Vue.createBlock(c,{key:"${custom."+w+"}",label:w,value:"${custom."+w+"}"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","title","onChange"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(A,{prop:"rightBracket",label:")",width:"90",onFocus:t[2]||(t[2]=f=>i.selectRow(e.scope.row))},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.rightBracket,"onUpdate:modelValue":w=>f.row.rightBracket=w,size:"small",clearable:""},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"",value:""}),Vue.createVNode(c,{label:")",value:")"}),Vue.createVNode(c,{label:"))",value:"))"}),Vue.createVNode(c,{label:")))",value:")))"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),Vue.createVNode(A,{label:e.$t("workflowEditorPublicModel.andOr"),prop:"logicOperator",width:"110"},{default:Vue.withCtx(f=>[Vue.createVNode(m,{modelValue:f.row.logicOperator,"onUpdate:modelValue":w=>f.row.logicOperator=w,size:"small",clearable:"",onFocus:w=>i.selectRow(f.row)},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.process.perhaps"),value:"condition.operator.or"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.process.also"),value:"condition.operator.and"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])])]),_:1})):Vue.createCommentVNode("",!0)])])]),_:1},8,["title","onClose"])}const selectionConditions=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$Z]]),_sfc_main$13={name:"EditableChildFieldSetting",components:{selectionConditions},props:{setting:{type:Object,default:null},tableName:{type:String,default:null}},data(){let e=[];this.setting&&this.setting.actionArr&&(e=this.setting.actionArr);let t=[];this.setting&&this.setting.fieldArr&&(t=this.setting.fieldArr);let o;this.setting&&this.setting.visibleConditionArr&&(o=this.setting.visibleConditionArr);let r;this.setting&&this.setting.modelName&&(r=this.setting.modelName);let n;return this.setting&&this.setting.sumPermission!==null&&(n=this.setting.sumPermission),{sumPermission:n,subtableConditionItem:null,attributeArr:null,showAdditionalCondition:!1,currentRow:null,multipleSelection:null,actionArr:e,fieldArr:t,queryList:null,fieldMap:null,fieldNameMap:null,actionVisibleConditionArr:o,buttonType:null,buttonVisibleCon:null,showButtonVisibleFlag:!1,clickButton:!1,operationArr:[],modelName:r}},watch:{setting:{handler(e,t){e&&e.actionArr&&(this.actionArr=e.actionArr),e&&e.fieldArr&&(this.fieldArr=e.fieldArr),e&&e.actionVisibleConditionArr&&(this.actionVisibleConditionArr=e.actionVisibleConditionArr),this.modelName=e.modelName,this.sumPermission=e.sumPermission,this.combinationParameters()},deep:!0}},computed:{...mapGetters("wfEditor",["subtableConditionMap"])},created(){this.subtableConditionMap&&this.tableName&&(this.subtableConditionItem=this.subtableConditionMap[this.tableName],this.getAttributeArr())},mounted(){this.subtableConditionMap&&this.tableName&&(this.subtableConditionItem=this.subtableConditionMap[this.tableName],this.subtableConditionMap[this.tableName]&&(this.attributeArr=this.subtableConditionItem.attributeArr))},methods:{...utiljs,getAttributeArr(){this.subtableConditionItem&&this.subtableConditionItem.attributeArr&&(this.queryList=this.subtableConditionItem.attributeArr,this.fieldMap=this.subtableConditionItem.fieldMap,this.fieldNameMap=this.subtableConditionItem.fieldNameMap)},savebuttonSetting(e){e&&(this.currentRow.condition=e.condition,this.currentRow.userCondition=e.userCondition,this.currentRow.parentCondition=e.parentCondition,this.combinationParameters()),this.showAdditionalCondition=!1},handleCurrentChange(e){this.currentRow=e},handleSelectionChange(e){this.multipleSelection=e},selectRow(e){this.$refs.table.setCurrentRow(e)},add(){this.fieldArr||(this.fieldArr=[]),this.fieldArr.push({name:null,constraintRule:null,condition:null}),this.combinationParameters()},getCurrentRowIndex(){let e=-1;for(let t=0;t<this.fieldArr.length;t++)if(this.fieldArr[t].name===this.currentRow.name){e=t;break}return e},remove(){if(this.multipleSelection&&this.multipleSelection.length>0){for(var e=0;e<this.multipleSelection.length;e++){const t=this.multipleSelection[e];this.selectRow(t);const o=this.getCurrentRowIndex();this.fieldArr.splice(o,1)}this.combinationParameters()}},selectCondition(e){this.selectRow(e),this.showAdditionalCondition=!0},showButtonVisible(e){this.clickButton=!0,this.buttonType=e,this.actionVisibleConditionArr&&this.actionVisibleConditionArr[e]?this.buttonVisibleCon=this.actionVisibleConditionArr[e]:this.buttonVisibleCon={},this.showButtonVisibleFlag=!0},saveButtonVisible(e){e&&(this.actionVisibleConditionArr||(this.actionVisibleConditionArr={}),this.actionVisibleConditionArr[this.buttonType]=e,this.combinationParameters()),this.showButtonVisibleFlag=!1},changeActionArr(){this.clickButton?(this.actionArr.push(this.buttonType),this.clickButton=!1):this.combinationParameters()},combinationParameters(){const e={};e.modelName=this.modelName,e.tableName=this.tableName,e.permission=this.sumPermission;const t=[];if(this.actionArr&&this.actionArr.length>0&&(this.actionArr.forEach(o=>{const r={};if(r.name=o,this.actionVisibleConditionArr&&this.actionVisibleConditionArr[o]){const n=this.actionVisibleConditionArr[o];r.condition=this.dataToXml(n.condition),r.parentCondition=n.parentCondition,r.userCondition=n.userCondition}t.push(r)}),e.action=t),this.fieldArr&&this.fieldArr.length>0){const o=[];this.fieldArr.forEach(r=>{const n={};n.name=r.name,n.constraintRule=r.constraintRule,r.condition&&(n.condition=this.dataToXml(r.condition)),n.userCondition=r.userCondition,n.parentCondition=r.parentCondition,o.push(n)}),e.field=o}console.log("触发combinationParameters",e),this.$emit("combinationParameters",e)}}};function _sfc_render$Y(e,t,o,r,n,i){const s=Vue.resolveComponent("Tools"),l=Vue.resolveComponent("el-icon"),a=Vue.resolveComponent("el-checkbox"),d=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-row"),c=Vue.resolveComponent("el-checkbox-group"),m=Vue.resolveComponent("selection-conditions"),A=Vue.resolveComponent("el-button"),C=Vue.resolveComponent("el-table-column"),g=Vue.resolveComponent("el-option"),E=Vue.resolveComponent("el-select"),p=Vue.resolveComponent("el-radio"),f=Vue.resolveComponent("el-radio-group"),w=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createElementVNode("div",null,[Vue.createVNode(c,{modelValue:n.actionArr,"onUpdate:modelValue":t[4]||(t[4]=v=>n.actionArr=v),onChange:i.changeActionArr},{default:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"notEmpty"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.tableDataNotEmpty"))+" ",1),n.actionArr&&n.actionArr.indexOf("notEmpty")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[0]||(t[0]=v=>i.showButtonVisible("notEmpty"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"add"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.rowsCanBeAdded"))+" ",1),n.actionArr&&n.actionArr.indexOf("add")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[1]||(t[1]=v=>i.showButtonVisible("add"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"delete"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.deleteLine"))+" ",1),n.actionArr&&n.actionArr.indexOf("delete")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[2]||(t[2]=v=>i.showButtonVisible("delete"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1}),Vue.createVNode(d,{span:6},{default:Vue.withCtx(()=>[Vue.createVNode(a,{label:"update"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.condition.modifiableHistoricalData"))+" ",1),n.actionArr&&n.actionArr.indexOf("update")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:0,onClick:t[3]||(t[3]=v=>i.showButtonVisible("update"))},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onChange"]),n.showButtonVisibleFlag?(Vue.openBlock(),Vue.createBlock(m,{key:0,"attribute-map":n.subtableConditionItem,"condition-list":n.buttonVisibleCon.condition,"parent-condition":n.buttonVisibleCon.parentCondition,"user-condition":n.buttonVisibleCon.userCondition,"button-type":n.buttonType,onClose:i.saveButtonVisible},null,8,["attribute-map","condition-list","parent-condition","user-condition","button-type","onClose"])):Vue.createCommentVNode("",!0)]),Vue.createElementVNode("div",null,[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(A,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(A,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(w,{ref:"table",data:n.fieldArr,border:"","highlight-current-row":"",style:{width:"100%"},onSelectionChange:i.handleSelectionChange,onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(C,{type:"selection",width:"55",align:"center"}),Vue.createVNode(C,{type:"index",width:"50",align:"center"}),Vue.createVNode(C,{prop:"name",label:e.$t("workflowEditor.task.propertyName"),width:"280",align:"center"},{default:Vue.withCtx(v=>[Vue.createVNode(E,{modelValue:v.row.name,"onUpdate:modelValue":b=>v.row.name=b,size:"small",filterable:"",onChange:i.combinationParameters},{default:Vue.withCtx(()=>[Vue.createVNode(g,{label:e.$t("workflowEditor.condition.allFields"),value:"all_fields"},null,8,["label"]),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.attributeArr,b=>(Vue.openBlock(),Vue.createBlock(g,{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Vue.createVNode(C,{prop:"constraintRule",label:e.$t("workflowEditor.task.editingMethod"),width:"380",align:"center"},{default:Vue.withCtx(v=>[Vue.createVNode(f,{modelValue:v.row.constraintRule,"onUpdate:modelValue":b=>v.row.constraintRule=b,onChange:i.combinationParameters},{default:Vue.withCtx(()=>[Vue.createVNode(p,{label:"REQUIRED"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.mustFill")),1)]),_:1}),Vue.createVNode(p,{label:"READ_ONLY"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorMessage.readOnly")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["label"]),Vue.createVNode(C,{prop:"condition",label:e.$t("workflowEditor.task.condition"),align:"center"},{default:Vue.withCtx(v=>[Vue.createVNode(l,{onClick:b=>i.selectCondition(v.row)},{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange","onCurrentChange"]),n.showAdditionalCondition?(Vue.openBlock(),Vue.createBlock(m,{key:0,"attribute-map":n.subtableConditionItem,"condition-list":n.currentRow.condition,"parent-condition":n.currentRow.parentCondition,"user-condition":n.currentRow.userCondition,onClose:i.savebuttonSetting},null,8,["attribute-map","condition-list","parent-condition","user-condition","onClose"])):Vue.createCommentVNode("",!0)])])}const editableChildFieldSetting=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$Y]]),_sfc_main$12={name:"EditableChildFields",components:{editableChildFieldSetting},props:{modelValue:{type:[Array,Object],default:null}},data(){let e=[];return this.modelValue!==""&&this.modelValue!==null&&this.modelValue!==void 0&&(Array.isArray(this.modelValue)?e=this.modelValue:e.push(this.modelValue)),{selectedFields:e,selectedFieldMap:{}}},computed:{...mapGetters("wfEditor",["subtableConditionMap"])},watch:{},created(){if(this.selectedFields&&this.selectedFields.length>0&&this.selectedFields.forEach(t=>{const o={},r=t.tableName;if(t.action)if(Array.isArray(t.action)){if(t.action.length>0){const n=[],i={};t.action.forEach(s=>{n.push(s.name);const l={};s.condition&&(l.condition=this.xmlToData(s.condition)),l.parentCondition=s.parentCondition,l.userCondition=s.userCondition,i[s.name]=l}),o.actionArr=n,o.visibleConditionArr=i}}else{const n=[],i={};n.push(t.action.name);const s={};t.action.condition&&(s.condition=this.xmlToData(t.action.condition)),s.parentCondition=t.action.parentCondition,s.userCondition=t.action.userCondition,i[t.action.name]=s,o.actionArr=n,o.visibleConditionArr=i}if(t.field)if(Array.isArray(t.field)){if(t.field.length>0){const n=[];t.field.forEach(i=>{const s={};s.name=i.name,s.constraintRule=i.constraintRule,s.condition=this.xmlToData(i.condition),s.userCondition=i.userCondition,s.parentCondition=i.parentCondition,n.push(s)}),o.fieldArr=n}}else{const n=[],i={};i.name=t.field.name,i.constraintRule=t.field.constraintRule,i.condition=this.xmlToData(t.field.condition),i.userCondition=t.field.userCondition,i.parentCondition=t.field.parentCondition,n.push(i),o.fieldArr=n}t.modelName?o.modelName=t.modelName:o.modelName=null,t.permission?o.sumPermission=t.permission:o.sumPermission=!1,this.selectedFieldMap[r]=o}),this.subtableConditionMap){for(var e in this.subtableConditionMap)if(!this.selectedFieldMap[e]){const t={};t.tableName=e,t.modelName=this.subtableConditionMap[e].modelName,t.sumPermission=!1,this.selectedFieldMap[e]=t}}},mounted(){},methods:{...utiljs,combinationParameters(e){if(e&&e.tableName){if(this.selectedFields&&this.selectedFields.length>0){const t=this.selectedFields.findIndex(o=>o.tableName===e.tableName);t!==-1?this.selectedFields[t]=e:this.selectedFields.push(e)}else this.selectedFields=[],this.selectedFields.push(e);this.$emit("update:modelValue",this.selectedFields)}},refreshModelName(e){if(this.subtableConditionMap&&this.subtableConditionMap[e]&&this.subtableConditionMap[e].modelName){if(this.selectedFieldMap[e]){const t=this.selectedFieldMap[e];t.modelName=this.subtableConditionMap[e].modelName}else{const t={};t.modelName=this.subtableConditionMap[e].modelName,this.selectedFieldMap[e]=t}this.$message({showClose:!0,type:"success",message:this.$t("workflowEditorMessage.updateSuccessful")})}},changeSumPermission(e){if(e&&this.selectedFieldMap[e])if(this.selectedFields||(this.selectedFields=[]),this.selectedFieldMap[e].sumPermission===!1){const t=this.selectedFields.findIndex(o=>o.tableName===e);t!=null&&t!==-1?this.selectedFields[t].permission=!1:this.selectedFields[this.selectedFields.length]={permission:!1,tableName:e}}else{const t=this.selectedFields.findIndex(o=>o.tableName===e);t!=null&&t!==-1?this.selectedFields[t].permission=!0:this.selectedFields[this.selectedFields.length]={permission:!0,tableName:e}}this.$emit("update:modelValue",this.selectedFields)}}},_hoisted_1$w={style:{width:"100%","margin-top":"10px"}},_hoisted_2$j={class:"clearfix"},_hoisted_3$6={key:0},_hoisted_4$4={style:{color:"cornflowerblue"}},_hoisted_5$4={style:{"padding-left":"5px"}},_hoisted_6$3={key:0};function _sfc_render$X(e,t,o,r,n,i){const s=Vue.resolveComponent("el-col"),l=Vue.resolveComponent("el-switch"),a=Vue.resolveComponent("el-row"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-button"),c=Vue.resolveComponent("editable-child-field-setting"),m=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$w,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.subtableConditionMap,(A,C)=>(Vue.openBlock(),Vue.createElementBlock("span",{key:C},[Vue.createVNode(m,{class:"box-card"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$j,[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{span:12},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(C),1)]),_:2},1024),n.selectedFieldMap[C]?(Vue.openBlock(),Vue.createBlock(s,{key:0,span:12},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.selectedFieldMap[C].sumPermission,"onUpdate:modelValue":g=>n.selectedFieldMap[C].sumPermission=g,"inactive-text":e.$t("workflowEditor.condition.accessControl"),onChange:g=>i.changeSumPermission(C)},null,8,["modelValue","onUpdate:modelValue","inactive-text","onChange"])]),_:2},1024)):Vue.createCommentVNode("",!0)]),_:2},1024),Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,null,{default:Vue.withCtx(()=>[n.selectedFieldMap[C]&&n.selectedFieldMap[C].sumPermission?(Vue.openBlock(),Vue.createElementBlock("span",_hoisted_3$6,[Vue.createElementVNode("span",_hoisted_4$4,Vue.toDisplayString(e.$t("workflowEditor.condition.formBindingModel"))+":",1),Vue.createElementVNode("span",_hoisted_5$4,[Vue.createVNode(d,{modelValue:n.selectedFieldMap[C].modelName,"onUpdate:modelValue":g=>n.selectedFieldMap[C].modelName=g,style:{width:"300px"}},null,8,["modelValue","onUpdate:modelValue"])]),Vue.createVNode(u,{icon:"el-icon-refresh",type:"text",onClick:g=>i.refreshModelName(C)},null,8,["onClick"])])):Vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)]),n.selectedFieldMap[C]&&n.selectedFieldMap[C].sumPermission?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_6$3,[Vue.createVNode(c,{setting:n.selectedFieldMap[C],"table-name":C,onCombinationParameters:i.combinationParameters},null,8,["setting","table-name","onCombinationParameters"])])):Vue.createCommentVNode("",!0)]),_:2},1024)]))),128))])}const editableChildFields=_export_sfc$1(_sfc_main$12,[["render",_sfc_render$X]]),systemRoleTree_vue_vue_type_style_index_0_lang="",_sfc_main$11={name:"SystemRoleTree",components:{InlineSystemRoleTree:_sfc_main$1g},props:{multiple:{type:Boolean,default:!1}},data(){return{dialogVisible:!0}},computed:{},watch:{},created(){},methods:{roleResult(e){e?this.$emit("close",e):this.$emit("close")},selectRoles(){this.$refs.systemRoleTree.selectRole()}}};function _sfc_render$W(e,t,o,r,n,i){const s=Vue.resolveComponent("inline-system-role-tree"),l=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(a,{"model-value":"",title:e.$t("workflowEditorMessage.selectRole"),width:"30%",top:"10vh","append-to-body":"",class:"properties-editor-noTab","close-on-click-modal":!1,onClose:t[1]||(t[1]=d=>e.$emit("close"))},Vue.createSlots({default:Vue.withCtx(()=>[Vue.createVNode(s,{ref:"systemRoleTree",multiple:o.multiple,onResult:i.roleResult},null,8,["multiple","onResult"])]),_:2},[o.multiple?{name:"footer",fn:Vue.withCtx(()=>[Vue.createVNode(l,{type:"primary",size:"small",onClick:i.selectRoles},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.determine")),1)]),_:1},8,["onClick"]),Vue.createVNode(l,{size:"small",onClick:t[0]||(t[0]=d=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.cancel")),1)]),_:1})]),key:"0"}:void 0]),1032,["title"])}const SystemRoleTree=_export_sfc$1(_sfc_main$11,[["render",_sfc_render$W]]),_sfc_main$10={name:"UserSelection",components:{SystemRoleTree,FormFields},props:{label:{type:String,default:""},labelWidth:{type:String,default:null},modelValue:{type:String,default:""},currentTransactor:{type:Boolean,default:!1}},data(){let e=!1,t="";const o=this.modelValue.split("; "),r=o[0].split(" condition.operator.or ");return o.length===2&&(e=!0,t=o[1].split(" condition.operator.or "),r.push("assignUser")),{checkList:r,showUserList:e,selectedUsers:t,showSelectUser:!1,selectedUsersShowValue:null,showSelectDepartment:!1,showSelectWorkgroup:!1,showSelectRole:!1,showSelectField:!1}},watch:{checkList(e){this.$emit("update:modelValue",this.getValue())},selectedUsers(e){this.$emit("update:modelValue",this.getValue())}},created(){console.log(this.checkList),this.getSelectedUsersShowValue()},methods:{formatLabel(e){return getFormFieldLabel(e)},getValue(){let t=this.checkList.filter(o=>o!==""&&o!=="assignUser").join(" condition.operator.or ");return this.showUserList&&this.selectedUsers&&this.selectedUsers.length!==0&&(t=t+"; "+this.selectedUsers.join(" condition.operator.or ")),t},toggleUserList(){this.showUserList=!this.showUserList},resetSelectedUsers(){this.selectedUsers=[],this.selectedUsersShowValue=""},handleCommand(e){e==="selectUser"?this.selectPointUser():e==="selectDepartment"?this.selectPointDepartment():e==="selectRole"?this.selectPointRole():e==="selectWorkgroup"?this.selectPointWorkgroup():e==="selectField"&&this.selectPointField()},selectPointUser(){this.showSelectUser=!0},selectPointDepartment(){this.showSelectDepartment=!0},selectPointRole(){this.showSelectRole=!0},selectPointField(){this.showSelectField=!0},selectPointWorkgroup(){this.showSelectWorkgroup=!0},addPointUsers(e){e&&(e.containBranch?this.packageSelectedUserConditionsWithBranch(e.users):this.packageSelectedUserConditionsWithOutBranch(e.users),this.getSelectedUsersShowValue()),this.showSelectUser=!1},packageSelectedUserConditionsWithBranch(e){const t="~~",o="/",r="${user} operator.text.eq ";e.forEach(n=>{let i=n.loginName,s=n.name;if(n.subCompanyId&&n.subCompanyId!==null){const a=n.subCompanyCode,d=n.subCompanyName;i=i+t+a,s=s+o+d}else i=i+t+n.tenantCode,s=s+o+n.tenantName;const l=r+s+"["+i+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(l)).length===0&&this.selectedUsers.push(l):(this.selectedUsers=[],this.selectedUsers.push(l))})},packageSelectedUserConditionsWithOutBranch(e){const t="${user} operator.text.eq ";e.forEach(o=>{this.selectedUsers||(this.selectedUsers=[]);const r=t+o.name+"["+o.loginName+"]";this.selectedUsers.filter(this.filterCondition(r)).length===0&&this.selectedUsers.push(r)})},getSelectedUsersShowValue(){if(this.selectedUsers){const e=this.selectedUsers.join(" condition.operator.or ");this.selectedUsersShowValue=e.replace(/\$\{user\}/g,"用户").replace(/\$\{department\}/g,"部门").replace(/\$\{workGroup\}/g,"工作组").replace(/\$\{role\}/g,"角色").replace(/operator\.text\.eq/g,"等于").replace(/condition\.operator\.or/g,"或者").replace(/\$\{field/g,"字段").replace(/]\}/g,"]")}},filterCondition(e){return t=>t===e},addPointDepartments(e){e&&(e.containBranch?this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e.departments,"${department}"):this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.departments,"${department}"),this.getSelectedUsersShowValue()),this.showSelectDepartment=!1},packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e,t){const o="/",r=t+" operator.text.eq ";e.forEach(n=>{const i=n.code;let s=n.name;if(n.subCompanyId&&n.subCompanyId!==null){const a=n.subCompanyName;a&&a!==""&&(s=s+o+a)}else s=s+o+n.tenantName;const l=r+s+"["+i+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(l)).length===0&&this.selectedUsers.push(l):(this.selectedUsers=[],this.selectedUsers.push(l))})},packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e,t){const o=t+" operator.text.eq ";e.forEach(r=>{const n=o+r.name+"["+r.code+"]";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(n)).length===0&&this.selectedUsers.push(n):(this.selectedUsers=[],this.selectedUsers.push(n))})},addPointWorkgroups(e){e&&(e.containBranch?this.packageSelectedDepartmentOrWorkgroupConditionsWithBranch(e.workgroups,"${workGroup}"):this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.workgroups,"${workGroup}"),this.getSelectedUsersShowValue()),this.showSelectWorkgroup=!1},addPointRoles(e){e&&(this.packageSelectedDepartmentOrWorkgroupConditionsWithOutBranch(e.roles,"${role}"),this.getSelectedUsersShowValue()),this.showSelectRole=!1},packageSelectedFieldConditions(e,t){const r=t+" operator.text.eq "+"${field["+e+"]}";this.selectedUsers?this.selectedUsers.filter(this.filterCondition(r)).length===0&&this.selectedUsers.push(r):(this.selectedUsers=[],this.selectedUsers.push(r))},setField(e){e!==void 0&&(this.packageSelectedFieldConditions(e,"${user}"),this.getSelectedUsersShowValue()),this.showSelectField=!1}}},_hoisted_1$v={key:0,style:{width:"100%","vertical-align":"middle"}},_hoisted_2$i={class:"el-dropdown-link"},_hoisted_3$5=Vue.createElementVNode("i",{class:"fa fa-search"},null,-1);function _sfc_render$V(e,t,o,r,n,i){const s=Vue.resolveComponent("el-checkbox"),l=Vue.resolveComponent("el-checkbox-group"),a=Vue.resolveComponent("el-col"),d=Vue.resolveComponent("el-dropdown-item"),u=Vue.resolveComponent("el-dropdown-menu"),c=Vue.resolveComponent("el-dropdown"),m=Vue.resolveComponent("el-button"),A=Vue.resolveComponent("el-row"),C=Vue.resolveComponent("el-input"),g=Vue.resolveComponent("department-user-tree"),E=Vue.resolveComponent("department-tree"),p=Vue.resolveComponent("workgroup-tree"),f=Vue.resolveComponent("system-role-tree"),w=Vue.resolveComponent("form-fields"),v=Vue.resolveComponent("el-form-item");return Vue.openBlock(),Vue.createBlock(v,{label:o.label,"label-width":o.labelWidth},{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.checkList,"onUpdate:modelValue":t[0]||(t[0]=b=>n.checkList=b)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${instanceCreator}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processInitiator")),1)]),_:1}),Vue.createVNode(s,{label:"${processAdmin}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processAdministrator")),1)]),_:1}),o.currentTransactor?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:"${currentTransactor}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.currentHandler")),1)]),_:1})):(Vue.openBlock(),Vue.createBlock(s,{key:1,label:"${allHandleTransactors}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.allHandlingPersonnel")),1)]),_:1})),Vue.createVNode(s,{label:"assignUser",onChange:i.toggleUserList},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.designatedPersonnel")),1)]),_:1},8,["onChange"])]),_:1},8,["modelValue"])]),_:1}),n.showUserList?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$v,[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(A,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,{span:4},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.listOfDesignatedPersons")),1)]),_:1}),Vue.createVNode(a,{style:{display:"flex","justify-content":"center","align-items":"center"},span:5},{default:Vue.withCtx(()=>[Vue.createVNode(c,{size:"small","split-button":"",type:"primary",plain:"",onCommand:i.handleCommand},{dropdown:Vue.withCtx(()=>[Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(d,{command:"selectUser",onClick:t[1]||(t[1]=b=>i.selectPointUser())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectusers")),1)]),_:1}),Vue.createVNode(d,{command:"selectDepartment",onClick:t[2]||(t[2]=b=>i.selectPointDepartment())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectDepartment")),1)]),_:1}),Vue.createVNode(d,{command:"selectWorkgroup",onClick:t[3]||(t[3]=b=>i.selectPointWorkgroup())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectTeam")),1)]),_:1}),Vue.createVNode(d,{command:"selectRole",onClick:t[4]||(t[4]=b=>i.selectPointRole())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectRole")),1)]),_:1}),Vue.createVNode(d,{command:"selectField",onClick:t[5]||(t[5]=b=>i.selectPointField())},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.common.selectField")),1)]),_:1})]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_2$i,[_hoisted_3$5,Vue.createTextVNode(" "+Vue.toDisplayString(e.$t("workflowEditorPublicModel.choice")),1)])]),_:1},8,["onCommand"])]),_:1}),Vue.createVNode(a,{span:3},{default:Vue.withCtx(()=>[Vue.createVNode(m,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.resetSelectedUsers},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.empty")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),Vue.createVNode(A,null,{default:Vue.withCtx(()=>[Vue.createVNode(a,null,{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.selectedUsersShowValue,"onUpdate:modelValue":t[6]||(t[6]=b=>n.selectedUsersShowValue=b),type:"textarea",rows:2,placeholder:e.$t("workflowEditorMessage.pleaseSelectPersonnel")},null,8,["modelValue","placeholder"])]),_:1})]),_:1})]),_:1}),n.showSelectUser?(Vue.openBlock(),Vue.createBlock(g,{key:0,width:"60%",multiple:!0,onClose:i.addPointUsers},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectDepartment?(Vue.openBlock(),Vue.createBlock(E,{key:1,width:"30%",multiple:!0,onClose:i.addPointDepartments},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectWorkgroup?(Vue.openBlock(),Vue.createBlock(p,{key:2,width:"30%",multiple:!0,onClose:i.addPointWorkgroups},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectRole?(Vue.openBlock(),Vue.createBlock(f,{key:3,multiple:!0,onClose:i.addPointRoles},null,8,["onClose"])):Vue.createCommentVNode("",!0),n.showSelectField?(Vue.openBlock(),Vue.createBlock(w,{key:4,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1},8,["label","label-width"])}const UserSelection=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$V]]),permissionSettings_vue_vue_type_style_index_0_scoped_c019538f_lang="",_sfc_main$$={name:"PermissionSettings",components:{EditableFields,UserSelection,AdditionalCondition,editableChildFields},props:{modelValue:{type:Object,default:null}},data(){const e=deepCopy(this.modelValue),t=["viewOpinion","editOpinion","requireOpinion","viewMeetingResult","viewVoteResult","viewFlowHistory","printForm"];t.forEach(r=>{e[r+"Checkbox"]=!!this.modelValue[r].condition});const o=["add","delete","download"];return o.forEach(r=>{e.attachment[r+"Checkbox"]=!!this.modelValue.attachment[r]&&!!this.modelValue.attachment[r].condition,e.attachment.permission||(e.attachment[r]={permission:!1,condition:""})}),{formModel:e,attrNames:t,attachmentAttrNames:o}},mounted(){this.$watch("formModel",function(e){const t={editForm:{},viewOpinion:{},editOpinion:{},requireOpinion:{},viewMeetingResult:{},viewVoteResult:{},viewFlowHistory:{},printForm:{},officialText:{},attachment:{},deleteInstance:{userCondition:""}};console.log("触发了watch"),t.editForm.permission=e.editForm.permission,e.editForm.permission&&(t.editForm.field=e.editForm.field,t.editForm.subTablePermission=e.editForm.subTablePermission),this.attrNames.map(o=>{t[o].permission=e[o].permission,e[o].permission&&e[o+"Checkbox"]?t[o].condition=e[o].condition:t[o].condition=""}),t.attachment.permission=e.attachment.permission,e.attachment.permission&&this.attachmentAttrNames.map(o=>{t.attachment[o]||(t.attachment[o]={}),t.attachment[o].permission=e.attachment[o].permission,e.attachment[o].permission&&e.attachment[o+"Checkbox"]?t.attachment[o].condition=e.attachment[o].condition:t.attachment[o].condition=""}),this.$emit("update:modelValue",t)},{deep:!0})},methods:{}};function _sfc_render$U(e,t,o,r,n,i){const s=Vue.resolveComponent("el-switch"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("editable-fields"),d=Vue.resolveComponent("editable-child-fields"),u=Vue.resolveComponent("el-checkbox"),c=Vue.resolveComponent("additional-condition"),m=Vue.resolveComponent("user-selection"),A=Vue.resolveComponent("el-card"),C=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(C,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowEditingForms")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.editForm.permission,"onUpdate:modelValue":t[0]||(t[0]=g=>n.formModel.editForm.permission=g)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[n.formModel.editForm.permission?(Vue.openBlock(),Vue.createBlock(a,{key:0,modelValue:n.formModel.editForm.field,"onUpdate:modelValue":t[1]||(t[1]=g=>n.formModel.editForm.field=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.editForm.permission?(Vue.openBlock(),Vue.createBlock(d,{key:1,modelValue:n.formModel.editForm.subTablePermission,"onUpdate:modelValue":t[2]||(t[2]=g=>n.formModel.editForm.subTablePermission=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},512),[[Vue.vShow,n.formModel.editForm.permission]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowViews")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewOpinion.permission,"onUpdate:modelValue":t[3]||(t[3]=g=>n.formModel.viewOpinion.permission=g)},null,8,["modelValue"]),n.formModel.viewOpinion.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewOpinionCheckbox,"onUpdate:modelValue":t[4]||(t[4]=g=>n.formModel.viewOpinionCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewOpinion.condition,"onUpdate:modelValue":t[5]||(t[5]=g=>n.formModel.viewOpinion.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewOpinion.permission&&n.formModel.viewOpinionCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.commentsAllowed")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.editOpinion.permission,"onUpdate:modelValue":t[6]||(t[6]=g=>n.formModel.editOpinion.permission=g)},null,8,["modelValue"]),n.formModel.editOpinion.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.editOpinionCheckbox,"onUpdate:modelValue":t[7]||(t[7]=g=>n.formModel.editOpinionCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.editOpinion.condition,"onUpdate:modelValue":t[8]||(t[8]=g=>n.formModel.editOpinion.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.editOpinion.permission&&n.formModel.editOpinionCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.commentsAreRequired")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.requireOpinion.permission,"onUpdate:modelValue":t[9]||(t[9]=g=>n.formModel.requireOpinion.permission=g)},null,8,["modelValue"]),n.formModel.requireOpinion.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.requireOpinionCheckbox,"onUpdate:modelValue":t[10]||(t[10]=g=>n.formModel.requireOpinionCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.requireOpinion.condition,"onUpdate:modelValue":t[11]||(t[11]=g=>n.formModel.requireOpinion.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.requireOpinion.permission&&n.formModel.requireOpinionCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowToViewCountersignatureResults")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewMeetingResult.permission,"onUpdate:modelValue":t[12]||(t[12]=g=>n.formModel.viewMeetingResult.permission=g)},null,8,["modelValue"]),n.formModel.viewMeetingResult.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewMeetingResultCheckbox,"onUpdate:modelValue":t[13]||(t[13]=g=>n.formModel.viewMeetingResultCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewMeetingResult.condition,"onUpdate:modelValue":t[14]||(t[14]=g=>n.formModel.viewMeetingResult.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewMeetingResult.permission&&n.formModel.viewMeetingResultCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowToViewVotingResults")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewVoteResult.permission,"onUpdate:modelValue":t[15]||(t[15]=g=>n.formModel.viewVoteResult.permission=g)},null,8,["modelValue"]),n.formModel.viewVoteResult.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewVoteResultCheckbox,"onUpdate:modelValue":t[16]||(t[16]=g=>n.formModel.viewVoteResultCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewVoteResult.condition,"onUpdate:modelValue":t[17]||(t[17]=g=>n.formModel.viewVoteResult.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewVoteResult.permission&&n.formModel.viewVoteResultCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowToViewFlowHistory")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.viewFlowHistory.permission,"onUpdate:modelValue":t[18]||(t[18]=g=>n.formModel.viewFlowHistory.permission=g)},null,8,["modelValue"]),n.formModel.viewFlowHistory.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.viewFlowHistoryCheckbox,"onUpdate:modelValue":t[19]||(t[19]=g=>n.formModel.viewFlowHistoryCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.viewFlowHistory.condition,"onUpdate:modelValue":t[20]||(t[20]=g=>n.formModel.viewFlowHistory.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.viewFlowHistory.permission&&n.formModel.viewFlowHistoryCheckbox]]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.allowFormsToPrint")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.printForm.permission,"onUpdate:modelValue":t[21]||(t[21]=g=>n.formModel.printForm.permission=g)},null,8,["modelValue"]),n.formModel.printForm.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.printFormCheckbox,"onUpdate:modelValue":t[22]||(t[22]=g=>n.formModel.printFormCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:n.formModel.printForm.condition,"onUpdate:modelValue":t[23]||(t[23]=g=>n.formModel.printForm.condition=g)},null,8,["modelValue"])]),_:1},512),[[Vue.vShow,n.formModel.printForm.permission&&n.formModel.printFormCheckbox]]),Vue.createVNode(m,{modelValue:n.formModel.deleteInstance.userCondition,"onUpdate:modelValue":t[24]||(t[24]=g=>n.formModel.deleteInstance.userCondition=g),label:e.$t("workflowEditor.task.deletePermission"),"label-width":"100px","current-transactor":!0},null,8,["modelValue","label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.attachmentAuthority")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.permission,"onUpdate:modelValue":t[25]||(t[25]=g=>n.formModel.attachment.permission=g)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.attachment.permission?(Vue.openBlock(),Vue.createBlock(A,{key:0,class:"box-card"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.addAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.add.permission,"onUpdate:modelValue":t[26]||(t[26]=g=>n.formModel.attachment.add.permission=g)},null,8,["modelValue"]),n.formModel.attachment.add.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.attachment.addCheckbox,"onUpdate:modelValue":t[27]||(t[27]=g=>n.formModel.attachment.addCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.add.permission&&n.formModel.attachment.addCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.add.condition,"onUpdate:modelValue":t[28]||(t[28]=g=>n.formModel.attachment.add.condition=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.deleteAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.delete.permission,"onUpdate:modelValue":t[29]||(t[29]=g=>n.formModel.attachment.delete.permission=g)},null,8,["modelValue"]),n.formModel.attachment.delete.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.attachment.deleteCheckbox,"onUpdate:modelValue":t[30]||(t[30]=g=>n.formModel.attachment.deleteCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.delete.permission&&n.formModel.attachment.deleteCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.delete.condition,"onUpdate:modelValue":t[31]||(t[31]=g=>n.formModel.attachment.delete.condition=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.downloadAttachment")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.attachment.download.permission,"onUpdate:modelValue":t[32]||(t[32]=g=>n.formModel.attachment.download.permission=g)},null,8,["modelValue"]),n.formModel.attachment.download.permission?(Vue.openBlock(),Vue.createBlock(u,{key:0,modelValue:n.formModel.attachment.downloadCheckbox,"onUpdate:modelValue":t[33]||(t[33]=g=>n.formModel.attachment.downloadCheckbox=g)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.additionalConditions")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.formModel.attachment.download.permission&&n.formModel.attachment.downloadCheckbox?(Vue.openBlock(),Vue.createBlock(c,{key:1,modelValue:n.formModel.attachment.download.condition,"onUpdate:modelValue":t[34]||(t[34]=g=>n.formModel.attachment.download.condition=g)},null,8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"])]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.bodyPermission")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.officialText.permission,"onUpdate:modelValue":t[35]||(t[35]=g=>n.formModel.officialText.permission=g)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const PermissionSettings$2=_export_sfc$1(_sfc_main$$,[["render",_sfc_render$U],["__scopeId","data-v-c019538f"]]),_sfc_main$_={name:"TransactorSettings",components:{CommonUserCondition,FormFields},props:{model:{type:Object,default:null},usedIn:{type:String,default:"HumanTask"},isSubprocess:{type:Boolean,default:!1},basicProperties:{type:Object,default:null}},data(){const e={selectedField:""};return this.initFormModel(e),{showFormFields:!1,formModel:e,isCountersign:!1}},mounted(){this.$watch("formModel",function(){this.setTransactor(this.formModel.transactor);const e={...this.formModel.additionalCondition};e.selectOneFromMultiple?e.selectType==="customType"&&delete e.selectUrl:(delete e.selectType,delete e.selectUrl),this.model.additionalCondition=e},{deep:!0}),this.$watch("basicProperties",function(){this.showActivateOneVoteVeto()},{deep:!0}),this.showActivateOneVoteVeto()},methods:{formatLabel(e){return getFormFieldLabel(e)},initFormModel(e){e.userCondition="";const t=this.model.userCondition;typeof t>"u"||t===""||t===null?(e.transactor="${instanceCreator}",this.model.userCondition="${instanceCreator}"):t==="${instanceCreator}"||t==="${previousTransactorAssignment}"?e.transactor=t:t.startsWith("${field[")&&t.indexOf("${field[")>=0&&t.indexOf('"selectedField": "${field[')<2?(e.transactor="byField",e.selectedField=t):t.startsWith("${deptField[")?(e.transactor="byDeptField",e.selectedField=t):(e.transactor="byCondition",e.userCondition=t),this.initAdditionalCondition(e),this.model.url!==void 0?e.url=this.model.url:e.url=""},initAdditionalCondition(e){this.model.additionalCondition===void 0?e.additionalCondition={onlyInCreatorDepartment:!1,withCreatorDepartment:!1,selectOneFromMultiple:!1,selectType:"customType",selectUrl:""}:(e.additionalCondition={...this.model.additionalCondition},e.additionalCondition.selectType===void 0&&(e.additionalCondition.selectType="customType"))},changeA(e){this.setTransactor(e)},handleUrlChange(e){this.model.url=e},setTransactor(e){(e==="${instanceCreator}"||e==="${previousTransactorAssignment}")&&(this.model.userCondition=e),e==="byField"&&(this.model.userCondition=this.formModel.selectedField),e==="byCondition"&&(this.model.userCondition=this.formModel.userCondition),e==="${previousTransactorAssignment}"?this.model.url=this.formModel.url:this.model.url="",e==="byCondition"?this.model.additionalCondition={...this.formModel.additionalCondition}:this.model.additionalCondition=void 0},handleFieldSelection(e){},setField(e){e!==void 0&&(this.formModel.transactor==="byDeptField"?(this.formModel.selectedField="${deptField["+e+"]}",this.model.userCondition=this.formModel.selectedField):(this.formModel.selectedField="${field["+e+"]}",this.model.userCondition=this.formModel.selectedField)),this.showFormFields=!1},showActivateOneVoteVeto(){this.basicProperties&&this.basicProperties.processingMode&&(this.basicProperties.processingMode.type==="COUNTERSIGN"?this.isCountersign=!0:(this.isCountersign=!1,this.formModel.additionalCondition.activateOneVoteVeto=!1))},transactorChange(){this.formModel.selectedField=null}}},_hoisted_1$u={key:0,style:{width:"100%"}},_hoisted_2$h={key:1},_hoisted_3$4={key:0};function _sfc_render$T(e,t,o,r,n,i){const s=Vue.resolveComponent("el-radio"),l=Vue.resolveComponent("el-radio-group"),a=Vue.resolveComponent("common-user-condition"),d=Vue.resolveComponent("el-form-item"),u=Vue.resolveComponent("el-input"),c=Vue.resolveComponent("form-fields"),m=Vue.resolveComponent("el-checkbox"),A=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(A,{model:n.formModel},{default:Vue.withCtx(()=>[Vue.createVNode(d,{label:""},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.transactor,"onUpdate:modelValue":t[0]||(t[0]=C=>n.formModel.transactor=C),onChange:i.transactorChange},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"${instanceCreator}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.processInitiator")),1)]),_:1}),o.usedIn==="HumanTask"?(Vue.openBlock(),Vue.createBlock(s,{key:0,label:"${previousTransactorAssignment}"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.appointmentOfHandlerInThePreviousLink")),1)]),_:1})):Vue.createCommentVNode("",!0),Vue.createVNode(s,{label:"byField"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.personSpecifiedInFormField")),1)]),_:1}),Vue.createVNode(s,{label:"byDeptField"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.deptSpecifiedInFormField")),1)]),_:1}),Vue.createVNode(s,{label:"byCondition"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.filterByCriteria")),1)]),_:1})]),_:1},8,["modelValue","onChange"]),n.formModel.transactor==="byCondition"?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$u,[Vue.createVNode(a,{modelValue:n.formModel.userCondition,"onUpdate:modelValue":t[1]||(t[1]=C=>n.formModel.userCondition=C),"used-in":"transactor"},null,8,["modelValue"])])):Vue.createCommentVNode("",!0)]),_:1}),n.formModel.transactor==="byField"||n.formModel.transactor==="byDeptField"?(Vue.openBlock(),Vue.createBlock(d,{key:0,prop:"selectedField",rules:[{required:!0,message:e.$t("workflowEditor.process.fieldName")+e.$t("workflowEditor.common.canNotBeEmpty"),trigger:"focus"}],label:e.$t("workflowEditor.process.fieldName"),"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{value:i.formatLabel(n.formModel.selectedField),onClick:t[2]||(t[2]=C=>n.showFormFields=!0)},null,8,["value"]),n.showFormFields?(Vue.openBlock(),Vue.createBlock(c,{key:0,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)]),_:1},8,["rules","label"])):Vue.createCommentVNode("",!0),n.formModel.transactor==="byCondition"||n.formModel.transactor==="byField"||n.formModel.transactor==="byDeptField"?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$h,[Vue.createVNode(d,{label:e.$t("workflowEditor.process.additionalConditions")},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.onlyInCreatorDepartment,"onUpdate:modelValue":t[3]||(t[3]=C=>n.formModel.additionalCondition.onlyInCreatorDepartment=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.handlingYyThePersonnelOfTheDepartmentOfTheInitiator")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.withCreatorDepartment,"onUpdate:modelValue":t[4]||(t[4]=C=>n.formModel.additionalCondition.withCreatorDepartment=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.personnelOfTheDepartmentWhereTheInitiatorWorksParticipateInTheHandling")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.selectOneFromMultiple,"onUpdate:modelValue":t[5]||(t[5]=C=>n.formModel.additionalCondition.selectOneFromMultiple=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.selectSpecificHandler")),1)]),_:1},8,["modelValue"]),Vue.createVNode(m,{modelValue:n.formModel.additionalCondition.selectOneFromDept,"onUpdate:modelValue":t[6]||(t[6]=C=>n.formModel.additionalCondition.selectOneFromDept=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.selectOneFromDept")),1)]),_:1},8,["modelValue"]),o.isSubprocess?(Vue.openBlock(),Vue.createBlock(m,{key:0,modelValue:n.formModel.additionalCondition.generateOneInstanceFromDept,"onUpdate:modelValue":t[7]||(t[7]=C=>n.formModel.additionalCondition.generateOneInstanceFromDept=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.generateOneInstanceFromDept")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0),n.isCountersign?(Vue.openBlock(),Vue.createBlock(m,{key:1,modelValue:n.formModel.additionalCondition.activateOneVoteVeto,"onUpdate:modelValue":t[8]||(t[8]=C=>n.formModel.additionalCondition.activateOneVoteVeto=C)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.activateOneVoteVeto")),1)]),_:1},8,["modelValue"])):Vue.createCommentVNode("",!0)]),_:1},8,["label"]),n.formModel.additionalCondition.selectOneFromMultiple?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$4,[Vue.createVNode(d,{label:e.$t("workflowEditor.process.selectionMethod")},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.formModel.additionalCondition.selectType,"onUpdate:modelValue":t[9]||(t[9]=C=>n.formModel.additionalCondition.selectType=C)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"customType"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.manualSelection")),1)]),_:1}),Vue.createVNode(s,{label:"autoType"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.process.autoSelect")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.withDirectives(Vue.createVNode(d,{prop:"additionalCondition.selectUrl",label:e.$t("workflowEditor.process.callbackURL"),rules:[{required:!0,message:this.$t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"}]},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.additionalCondition.selectUrl,"onUpdate:modelValue":t[10]||(t[10]=C=>n.formModel.additionalCondition.selectUrl=C)},null,8,["modelValue"])]),_:1},8,["label","rules"]),[[Vue.vShow,n.formModel.additionalCondition.selectType==="autoType"]])])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0),o.usedIn==="HumanTask"&&n.formModel.transactor==="${previousTransactorAssignment}"?(Vue.openBlock(),Vue.createBlock(d,{key:2,prop:"url",rules:[{required:!0,message:this.$t("workflowEditor.process.cannotBeEmpty"),trigger:"blur"}],label:e.$t("workflowEditor.process.selectURL"),"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.formModel.url,"onUpdate:modelValue":t[11]||(t[11]=C=>n.formModel.url=C),modelModifiers:{trim:!0},onChange:i.handleUrlChange},null,8,["modelValue","onChange"])]),_:1},8,["rules","label"])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const TransactorSettings=_export_sfc$1(_sfc_main$_,[["render",_sfc_render$T]]),standardValues={"${currentTime}":getI18n().t("workflowEditor.process.handlingTimeOfThisLink"),"${currentTransactorId}":getI18n().t("workflowEditor.process.handlerIDOfThisLink"),"${currentTransactorMainDepartmentId}":getI18n().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"),"${currentTransactorDirectSuperiorId}":getI18n().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorMainDepartmentId}":getI18n().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"),"${currentTransactor}":getI18n().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"),"${currentTransactorName }":getI18n().t("workflowEditor.process.NameOfCurrentHandler"),"${currentTransactorDepartment }":getI18n().t("workflowEditor.process.CurrentHandlerDepartment"),"${currentTransactorDepartmentId}":getI18n().t("workflowEditor.process.CurrentHandlerDepartmentID"),"${currentTransactorMainDepartment}":getI18n().t("workflowEditor.process.CurrentManagersPrincipalDepartment"),"${currentTransactorSuperiorDepartmentId}":getI18n().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"),"${currentTransactorSuperiorDepartment}":getI18n().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"),"${currentTransactorUpstageDepartment}":getI18n().t("workflowEditor.process.TopDepartmentOfCurrentHandler"),"${currentTransactorUpstageDepartmentId}":getI18n().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"),"${currentTransactorRole}":getI18n().t("workflowEditor.process.CurrentHandlerRole"),"${currentTransactorRoleId}":getI18n().t("workflowEditor.process.CurrentHandlerRoleID"),"${currentTransactorWorkGroup}":getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"),"${currentTransactorWorkGroupId}":getI18n().t("workflowEditor.process.CurrentHandlerWorkingGroupID"),"${currentTransactorDirectSuperior}":getI18n().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorName}":getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"),"${currentTransactorDirectSuperiorDepartment}":getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"),"${currentTransactorDirectSuperiorDepartmentId}":getI18n().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"),"${currentTransactorDirectSuperiorMainDepartment}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"),"${currentTransactorDirectSuperiorRole}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorRole"),"${currentTransactorDirectSuperiorRoleId}":getI18n().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"),"${currentTransactorDirectSuperiorWorkGroup}":getI18n().t("workflowEditor.process.currentManagersDirectSuperiorWork"),"${currentTransactorDirectSuperiorWorkGroupId}":getI18n().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"),"${currentOperation}":getI18n().t("workflowEditor.process.operationsPerformedInThisPhase"),"${previousTransactorId}":getI18n().t("workflowEditor.process.handlerIDOfThePreviousLink"),"${previousTransactor}":getI18n().t("workflowEditor.process.lastLinkHandlerLogin"),"${previousTransactorName}":getI18n().t("workflowEditor.process.nameOfHandlerInThePreviousLink")},_sfc_main$Z={name:"AutoFilledFields",components:{FormFields},props:{modelValue:{type:Object,default:()=>({})}},data(){const e=[];if(this.modelValue.field!==void 0&&this.modelValue.field!==null)if(Array.isArray(this.modelValue.field))this.modelValue.field.map(t=>{const o={...t};typeof t.value=="string"&&t.value.indexOf("+")!==-1?o.value=t.value.split("+"):(o.value=[],o.value.push(t.value)),e.push(o)});else{const t={...this.modelValue.field};typeof this.modelValue.field.value=="string"&&this.modelValue.field.value.indexOf("+")!==-1?t.value=this.modelValue.field.value.split("+"):(t.value=[],t.value.push(this.modelValue.field.value)),e.push(t)}return{tableData:e,currentRow:null,standardValues,showFormFields:!1}},computed:{keys(){return Object.keys(this.standardValues)}},watch:{},mounted(){this.tableData&&this.tableData.length>0&&this.setCurrentRow(this.tableData[0]),this.$watch("tableData",function(){const e=[];this.tableData.map(t=>{if(t.name!==""&&t.value.length>0){const o={...t};o.value=t.value.join("+"),e.push(o)}}),this.$emit("update:modelValue",{field:e})},{deep:!0})},created(){},methods:{add(){for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].name===""||this.tableData[t].value===""){this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty",{row:t+1}));return}const e={name:"",value:[],separator:"",fillType:"cover",fillTime:"after"};this.tableData.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.tableData.length;t++)if(this.tableData[t].name===this.currentRow.name){e=t;break}this.tableData.splice(e,1),e=e<=this.tableData.length-1?e:this.tableData.length-1,this.setCurrentRow(this.tableData[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkName(e){!this.showFormFields&&e===""&&this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"))},checkValue(e){e.length===0&&this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"))},setField(e){e!==void 0&&(this.currentRow.name=e),this.showFormFields=!1},getFieldLabel(e){return getFormFieldLabel(e)}}};function _sfc_render$S(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-option"),c=Vue.resolveComponent("el-select"),m=Vue.resolveComponent("el-table"),A=Vue.resolveComponent("form-fields");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,{style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(m,{ref:"table",data:n.tableData,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.common.name"),width:"150"},{default:Vue.withCtx(C=>[Vue.createVNode(d,{value:i.getFieldLabel(C.row.name),placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),readonly:"",onClick:t[0]||(t[0]=g=>n.showFormFields=!0),onBlur:g=>i.checkName(C.row.name)},null,8,["value","placeholder","onBlur"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"value",label:e.$t("workflowEditor.common.fieldValue"),width:"200"},{default:Vue.withCtx(C=>[Vue.createVNode(c,{modelValue:C.row.value,"onUpdate:modelValue":g=>C.row.value=g,multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:e.$t("workflowEditorMessage.pleaseSelect"),onBlur:g=>i.checkValue(C.row.value)},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.keys,g=>(Vue.openBlock(),Vue.createBlock(u,{key:g,label:n.standardValues[g],value:g},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","onBlur"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"separator",label:e.$t("workflowEditor.common.separator")},{default:Vue.withCtx(C=>[Vue.createVNode(d,{modelValue:C.row.separator,"onUpdate:modelValue":g=>C.row.separator=g,modelModifiers:{trim:!0}},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"fillType",label:e.$t("workflowEditor.common.fillInMethod")},{default:Vue.withCtx(C=>[Vue.createVNode(c,{modelValue:C.row.fillType,"onUpdate:modelValue":g=>C.row.fillType=g},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.common.cover"),value:"cover"},null,8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.append"),value:"append"},null,8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.insertToFront"),value:"prepend"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"fillTime",label:e.$t("workflowEditor.common.fillInTime")},{default:Vue.withCtx(C=>[Vue.createVNode(c,{modelValue:C.row.fillTime,"onUpdate:modelValue":g=>C.row.fillTime=g},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:e.$t("workflowEditor.common.fillInBeforeHandling"),value:"before"},null,8,["label"]),Vue.createVNode(u,{label:e.$t("workflowEditor.common.fillInAfterHandling"),value:"after"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"]),n.showFormFields?(Vue.openBlock(),Vue.createBlock(A,{key:0,onClose:i.setField},null,8,["onClose"])):Vue.createCommentVNode("",!0)])}const AutoFilledFields=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$S]]),_sfc_main$Y={name:"Variables",props:{modelValue:{type:Object,default:null}},data(){let e=[];return this.modelValue&&(Array.isArray(this.modelValue.variable)?e=this.modelValue.variable:e.push(this.modelValue.variable)),{variables:e,currentRow:null}},watch:{},mounted(){this.variables.length>0&&this.setCurrentRow(this.variables[0]),this.$watch("variables",function(){const e=this.variables.filter(t=>t.name!==""&&t.value!=="");this.$emit("update:modelValue",{variable:e})},{deep:!0})},methods:{add(){for(let t=0;t<this.variables.length;t++)if(this.variables[t].name===""||this.variables[t].value===""){this.$alert(this.$t("workflowEditorMessage.variableNameOrValueOnLineCannotBeEmpty",{row:t+1}));return}const e={name:"",value:""};this.variables.push(e),this.setCurrentRow(e)},remove(){if(this.currentRow===null){this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));return}let e;for(let t=0;t<this.variables.length;t++)if(this.variables[t].name===this.currentRow.name){e=t;break}this.variables.splice(e,1),e=e<=this.variables.length-1?e:this.variables.length-1,this.setCurrentRow(this.variables[e])},setCurrentRow(e){this.$refs.table.setCurrentRow(e)},handleCurrentChange(e){this.currentRow=e},checkName(e){e===""&&this.$alert(this.$t("workflowEditorMessage.variableNameCannotBeEmpty"))},checkValue(e){e===""&&this.$alert(this.$t("workflowEditorMessage.variableValueCannotBeEmpty"))}}};function _sfc_render$R(e,t,o,r,n,i){const s=Vue.resolveComponent("el-button"),l=Vue.resolveComponent("el-row"),a=Vue.resolveComponent("el-table-column"),d=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"CirclePlus",onClick:i.add},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.add")),1)]),_:1},8,["onClick"]),Vue.createVNode(s,{type:"primary",size:"small",plain:"",icon:"Delete",onClick:i.remove},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.delete")),1)]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(u,{ref:"table",data:n.variables,border:"","highlight-current-row":"",style:{width:"100%"},onCurrentChange:i.handleCurrentChange},{default:Vue.withCtx(()=>[Vue.createVNode(a,{type:"index",width:"50"}),Vue.createVNode(a,{prop:"name",label:e.$t("workflowEditor.common.variableName")},{default:Vue.withCtx(c=>[Vue.createVNode(d,{modelValue:c.row.name,"onUpdate:modelValue":m=>c.row.name=m,modelModifiers:{trim:!0},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),onBlur:m=>i.checkName(c.row.name)},null,8,["modelValue","onUpdate:modelValue","placeholder","onBlur"])]),_:1},8,["label"]),Vue.createVNode(a,{prop:"value",label:e.$t("workflowEditor.common.variableValue")},{default:Vue.withCtx(c=>[Vue.createVNode(d,{modelValue:c.row.value,"onUpdate:modelValue":m=>c.row.value=m,modelModifiers:{trim:!0},placeholder:e.$t("workflowEditorMessage.pleaseEnterContent"),onBlur:m=>i.checkValue(c.row.value)},null,8,["modelValue","onUpdate:modelValue","placeholder","onBlur"])]),_:1},8,["label"])]),_:1},8,["data","onCurrentChange"])])}const Variables=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$R]]),_sfc_main$X={name:"Events",props:{modelValue:{type:Object,default:null}},data(){const e={};return e.beforeSubmitEnabled=!1,e.beforeSubmit={},this.modelValue.beforeSubmit&&(e.beforeSubmitEnabled=!0,e.beforeSubmit={...this.modelValue.beforeSubmit}),e.afterComplete=this.modelValue.afterComplete,{formModel:e}},mounted(){this.$watch("formModel",function(e,t){const o={};this.formModel.beforeSubmitEnabled&&(o.beforeSubmit={...this.formModel.beforeSubmit}),o.afterComplete=this.formModel.afterComplete,this.$emit("update:modelValue",o)},{deep:!0})}},_hoisted_1$t={key:0};function _sfc_render$Q(e,t,o,r,n,i){const s=Vue.resolveComponent("el-switch"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("el-input"),d=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(d,{model:n.formModel,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.beforeSubmission")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.beforeSubmitEnabled,"onUpdate:modelValue":t[0]||(t[0]=u=>n.formModel.beforeSubmitEnabled=u)},null,8,["modelValue"])]),_:1},8,["label"]),n.formModel.beforeSubmitEnabled?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$t,[Vue.createVNode(l,{label:e.$t("workflowEditor.task.executionURL")},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.formModel.beforeSubmit.url,"onUpdate:modelValue":t[1]||(t[1]=u=>n.formModel.beforeSubmit.url=u)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.errorMessage")},{default:Vue.withCtx(()=>[Vue.createVNode(a,{modelValue:n.formModel.beforeSubmit.errorMessage,"onUpdate:modelValue":t[2]||(t[2]=u=>n.formModel.beforeSubmit.errorMessage=u)},null,8,["modelValue"])]),_:1},8,["label"])])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.afterSubmission")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.formModel.afterComplete,"onUpdate:modelValue":t[3]||(t[3]=u=>n.formModel.afterComplete=u)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"])}const Events$2=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$Q]]),_sfc_main$W={name:"CommonNoticeTool",props:{label:{type:String,default:null},modelValue:{type:String,default:null},customMsg:{type:String,default:null}},data(){let e=[];this.modelValue&&this.modelValue!==""&&this.modelValue!==null&&(e=this.modelValue.split(","));let t="";return this.customMsg&&this.customMsg!==""&&this.customMsg!==null&&(t=this.customMsg),{tools:e,myCustomMsg:t}},watch:{tools(e){this.$emit("update:modelValue",this.tools.join(","))},myCustomMsg(e){this.$emit("input-msg",this.myCustomMsg)}}};function _sfc_render$P(e,t,o,r,n,i){const s=Vue.resolveComponent("el-checkbox"),l=Vue.resolveComponent("el-checkbox-group"),a=Vue.resolveComponent("el-form-item"),d=Vue.resolveComponent("el-input");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(a,{label:o.label},{default:Vue.withCtx(()=>[Vue.createVNode(l,{modelValue:n.tools,"onUpdate:modelValue":t[0]||(t[0]=u=>n.tools=u)},{default:Vue.withCtx(()=>[Vue.createVNode(s,{label:"mail"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.mail")),1)]),_:1}),Vue.createVNode(s,{label:"DINGDING"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.dingding")),1)]),_:1}),Vue.createVNode(s,{label:"QIWEI"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.qiwei")),1)]),_:1}),Vue.createVNode(s,{label:"FEISHU"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.feishu")),1)]),_:1}),Vue.createVNode(s,{label:"custom"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditorPublicModel.custom")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.tools.indexOf("custom")>=0?(Vue.openBlock(),Vue.createBlock(a,{key:0,"label-width":"110",label:e.$t("workflowEditor.common.customMsg")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.myCustomMsg,"onUpdate:modelValue":t[1]||(t[1]=u=>n.myCustomMsg=u)},null,8,["modelValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0)])}const CommonNoticeTool=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$P]]),reminder_vue_vue_type_style_index_0_scoped_4e29ea06_lang="",_sfc_main$V={name:"Reminder",components:{CommonNoticeTool,CommonUserCondition,SelectMailTemplates},props:{modelValue:{type:[Object,String],default:null},isProcess:{type:Boolean,default:!1}},data(){let e=!1,t=!1,o={dueDate:1,dueTimeUnit:"day",repeat:1,containTransferUser:!1,containNoticeUser:!1,remindType:"mail",timeUnit:"day",remindTimes:0,noticeType:"",noticeUserCondition:"",transferUserCondition:""};return this.modelValue!==null&&this.modelValue!==void 0&&this.modelValue!==""&&(o=this.modelValue,e=!0,this.modelValue.remindTimes>0&&(t=!0),o.dueTimeUnit||(o.dueTimeUnit="day")),{showReminder:e,showNotice:t,model:o,showMailTemplateFlag:!1,baseURL:"",optionUrl:"",multiSelectData:[],options:{showColumns:"code,name"}}},watch:{showReminder(e){e?this.$emit("update:modelValue",this.model):this.$emit("update:modelValue",null)},showNotice(e){e?this.$emit("update:modelValue",this.model):this.$emit("update:modelValue",{remindType:this.model.remindType,dueDate:this.model.dueDate,dueTimeUnit:this.model.dueTimeUnit,repeat:this.model.repeat,timeUnit:this.model.timeUnit,remindTimes:0,noticeType:"",noticeUserCondition:"",containTransferUser:!1,transferUserCondition:"",containNoticeUser:!1})}},created(){this.baseURL=window.$vueApp.config.globalProperties.baseURL,this.optionUrl="/bs/email-templates/list/0",this.$watch("model",function(e,t){let o=null;this.showReminder&&(o=this.model,o.dueTimeUnit||(o.dueTimeUnit="day")),console.log("reminder===",o),this.$emit("update:modelValue",o)},{deep:!0})},methods:{setMailTemplateCode(e){this.model.mailTemplateCode=e},setMailPointTemplateCode(e){this.model.mailPointTemplateCode=e},selectData(e,t){this.multiSelectData=e},setReminderCustomMsg(e){this.model.reminderCustomMsg=e},setNoticeCustomMsg(e){this.model.noticeCustomMsg=e}}},_hoisted_1$s={key:0},_hoisted_2$g={key:2};function _sfc_render$O(e,t,o,r,n,i){const s=Vue.resolveComponent("el-switch"),l=Vue.resolveComponent("el-form-item"),a=Vue.resolveComponent("common-notice-tool"),d=Vue.resolveComponent("select-mail-templates"),u=Vue.resolveComponent("el-input-number"),c=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),A=Vue.resolveComponent("el-radio"),C=Vue.resolveComponent("el-checkbox"),g=Vue.resolveComponent("common-user-condition"),E=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(E,{model:n.model,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.needToBeUrged")},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:n.showReminder,"onUpdate:modelValue":t[0]||(t[0]=p=>n.showReminder=p)},null,8,["modelValue"])]),_:1},8,["label"]),n.showReminder?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$s,[Vue.createVNode(a,{modelValue:n.model.remindType,"onUpdate:modelValue":t[1]||(t[1]=p=>n.model.remindType=p),label:e.$t("workflowEditor.task.urgingMethod"),"custom-msg":n.model.reminderCustomMsg,onInputMsg:i.setReminderCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),n.model.remindType&&n.model.remindType.length>0?(Vue.openBlock(),Vue.createBlock(l,{key:0,"label-width":"100",label:e.$t("workflowEditor.task.selectNoticeTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.model.mailTemplateCode,"onUpdate:modelValue":t[2]||(t[2]=p=>n.model.mailTemplateCode=p),onSetValue:i.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.model.remindType&&n.model.remindType.length>0&&n.model.remindType.indexOf("mail")!==-1?(Vue.openBlock(),Vue.createBlock(l,{key:1,"label-width":"100",label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.model.mailPointTemplateCode,"onUpdate:modelValue":t[3]||(t[3]=p=>n.model.mailPointTemplateCode=p),onSetValue:i.setMailPointTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(l,{label:e.$t("workflowEditor.task.timeLimitForHandling"),size:"small"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.model.dueDate,"onUpdate:modelValue":t[4]||(t[4]=p=>n.model.dueDate=p),"controls-position":"right",min:1,max:30,style:{width:"90px"}},null,8,["modelValue"]),Vue.createVNode(m,{modelValue:n.model.dueTimeUnit,"onUpdate:modelValue":t[5]||(t[5]=p=>n.model.dueTimeUnit=p),style:{width:"70px"}},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.task.day"),value:"day"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.task.hour"),value:"hour"},null,8,["label"])]),_:1},8,["modelValue"]),Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.task.urgingInterval")),1),Vue.createVNode(u,{modelValue:n.model.repeat,"onUpdate:modelValue":t[6]||(t[6]=p=>n.model.repeat=p),"controls-position":"right",min:1,max:30,style:{width:"90px"}},null,8,["modelValue"]),Vue.createVNode(m,{modelValue:n.model.timeUnit,"onUpdate:modelValue":t[7]||(t[7]=p=>n.model.timeUnit=p),style:{width:"70px"}},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:e.$t("workflowEditor.task.day"),value:"day"},null,8,["label"]),Vue.createVNode(c,{label:e.$t("workflowEditor.task.hour"),value:"hour"},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:n.showNotice,"onUpdate:modelValue":t[8]||(t[8]=p=>n.showNotice=p),label:!1},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.alwaysUrging")),1)]),_:1},8,["modelValue"]),Vue.createVNode(A,{modelValue:n.showNotice,"onUpdate:modelValue":t[9]||(t[9]=p=>n.showNotice=p),label:!0},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.limitedUrging")),1)]),_:1},8,["modelValue"])]),_:1}),n.showNotice?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_2$g,[Vue.createVNode(l,{label:e.$t("workflowEditor.task.timesOfUrging"),size:"small"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.model.remindTimes,"onUpdate:modelValue":t[10]||(t[10]=p=>n.model.remindTimes=p),"controls-position":"right",min:1,max:99,style:{width:"90px"}},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(a,{modelValue:n.model.noticeType,"onUpdate:modelValue":t[11]||(t[11]=p=>n.model.noticeType=p),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.model.noticeCustomMsg,onInputMsg:i.setNoticeCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),o.isProcess?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:0,label:e.$t("workflowEditor.common.notifyPersonnel"),style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.model.containTransferUser,"onUpdate:modelValue":t[12]||(t[12]=p=>n.model.containTransferUser=p)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.includingHandoverPersonnel")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])),Vue.createVNode(l,{"label-width":"0"},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:n.model.noticeUserCondition,"onUpdate:modelValue":t[13]||(t[13]=p=>n.model.noticeUserCondition=p)},null,8,["modelValue"])]),_:1}),o.isProcess?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:1,label:e.$t("workflowEditor.task.handoverPersonnel"),style:{"margin-bottom":"5px"}},{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.model.containNoticeUser,"onUpdate:modelValue":t[14]||(t[14]=p=>n.model.containNoticeUser=p)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("workflowEditor.task.includeNotifyPeople")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"])),o.isProcess?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(l,{key:2,"label-width":"0"},{default:Vue.withCtx(()=>[Vue.createVNode(g,{modelValue:n.model.transferUserCondition,"onUpdate:modelValue":t[15]||(t[15]=p=>n.model.transferUserCondition=p)},null,8,["modelValue"])]),_:1}))])):Vue.createCommentVNode("",!0)])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])}const Reminder=_export_sfc$1(_sfc_main$V,[["render",_sfc_render$O],["__scopeId","data-v-4e29ea06"]]),noticeReminder_vue_vue_type_style_index_0_scoped_39fac73c_lang="",_sfc_main$U={name:"NoticeReminder",components:{Reminder,CommonNoticeTool,SelectMailTemplates},props:{reminderValue:{type:[Object,String],default:null},taskNoticeValue:{type:Object,default:null},isProcess:{type:Boolean,default:!1}},data(){let e=null;this.reminderValue!==null&&this.reminderValue!==void 0&&this.reminderValue!==""&&(e=this.reminderValue);let t={};return this.taskNoticeValue!==null&&this.taskNoticeValue!==void 0&&this.taskNoticeValue!==""&&(t=this.taskNoticeValue),{reminderObj:e,noticeObj:t}},watch:{reminderObj(e){e?this.$emit("update:reminder-value",e):this.$emit("update:reminder-value",null)}},methods:{setMailTemplateCode(e){this.noticeObj.mailPointTemplateCode=e},setNoticeCommonTemplateCode(e){this.noticeObj.mailTemplateCode=e},setCustomMsg(e){this.noticeObj.customMsg=e}}},_hoisted_1$r={class:"clearfix"},_hoisted_2$f={class:"sub-li"},_hoisted_3$3={class:"sub-li"},_hoisted_4$3={class:"clearfix"},_hoisted_5$3={class:"sub-li"},_hoisted_6$2={class:"sub-li"},_hoisted_7$1={class:"sub-li"},_hoisted_8$1={class:"sub-li"};function _sfc_render$N(e,t,o,r,n,i){const s=Vue.resolveComponent("Warning"),l=Vue.resolveComponent("el-icon"),a=Vue.resolveComponent("el-tooltip"),d=Vue.resolveComponent("common-notice-tool"),u=Vue.resolveComponent("select-mail-templates"),c=Vue.resolveComponent("el-form-item"),m=Vue.resolveComponent("el-form"),A=Vue.resolveComponent("el-card"),C=Vue.resolveComponent("reminder");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(A,{class:"box-card"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$r,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.common.taskNotice")),1),Vue.createVNode(a,null,{content:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateMsg")),1),Vue.createElementVNode("li",_hoisted_2$f,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateNotice")),1),Vue.createElementVNode("li",_hoisted_3$3,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateEmail")),1)])]),default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})]),_:1})])]),default:Vue.withCtx(()=>[Vue.createVNode(m,{model:n.noticeObj,"label-width":"80px"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:n.noticeObj.informType,"onUpdate:modelValue":t[0]||(t[0]=g=>n.noticeObj.informType=g),label:e.$t("workflowEditor.common.notificationMethod"),"custom-msg":n.noticeObj.customMsg,onInputMsg:i.setCustomMsg},null,8,["modelValue","label","custom-msg","onInputMsg"]),n.noticeObj.informType&&n.noticeObj.informType.length>0?(Vue.openBlock(),Vue.createBlock(c,{key:0,"label-width":"100",label:e.$t("workflowEditor.task.selectNoticeTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.noticeObj.mailTemplateCode,"onUpdate:modelValue":t[1]||(t[1]=g=>n.noticeObj.mailTemplateCode=g),onSetValue:i.setNoticeCommonTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.noticeObj.informType&&n.noticeObj.informType.length>0&&n.noticeObj.informType.indexOf("mail")>=0?(Vue.openBlock(),Vue.createBlock(c,{key:1,"label-width":"100",label:e.$t("workflowEditor.task.selectMailTemplate")},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:n.noticeObj.mailPointTemplateCode,"onUpdate:modelValue":t[2]||(t[2]=g=>n.noticeObj.mailPointTemplateCode=g),onSetValue:i.setMailTemplateCode},null,8,["modelValue","onSetValue"])]),_:1},8,["label"])):Vue.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1}),Vue.createVNode(A,{class:"box-card",style:{"margin-top":"10px"}},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$3,[Vue.createElementVNode("span",null,Vue.toDisplayString(e.$t("workflowEditor.common.reminderNotice")),1),Vue.createVNode(a,null,{content:Vue.withCtx(()=>[Vue.createElementVNode("ul",null,[Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateMsg")),1),Vue.createElementVNode("li",_hoisted_5$3,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateNotice")),1),Vue.createElementVNode("li",_hoisted_6$2,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipTemplateEmail")),1),Vue.createElementVNode("li",null,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipRemindMsg")),1),Vue.createElementVNode("li",_hoisted_7$1,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipRemindImmediately")),1),Vue.createElementVNode("li",_hoisted_8$1,Vue.toDisplayString(e.$t("workflowEditor.task.reminderTipRemindHistory")),1)])]),default:Vue.withCtx(()=>[Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(s)]),_:1})]),_:1})])]),default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.reminderObj,"onUpdate:modelValue":t[3]||(t[3]=g=>n.reminderObj=g),isProcess:o.isProcess},null,8,["modelValue","isProcess"])]),_:1})])}const NoticeReminder=_export_sfc$1(_sfc_main$U,[["render",_sfc_render$N],["__scopeId","data-v-39fac73c"]]),humanTask_vue_vue_type_style_index_0_scoped_d95a84d8_lang="",_sfc_main$T={name:"HumanTaskPropertiesEditor",components:{BasicProperties:BasicProperties$5,TransactorSettings,PermissionSettings:PermissionSettings$2,AutoFilledFields,Events:Events$2,Variables,NoticeReminder},props:{model:{type:Object,default:null}},data(){return this.model.ref.taskNotice||(this.model.ref.taskNotice={}),{activeTab:"basicProperties",dialogVisible:!0}},computed:{formModel(){return this.model.ref}},mounted(){this.$watch("model.ref.attr.id",function(e,t){this.model.id=e}),this.$watch("model.ref.attr.name",function(e,t){this.model.name=e})},methods:{handleClick(e,t){}}};function _sfc_render$M(e,t,o,r,n,i){const s=Vue.resolveComponent("basic-properties"),l=Vue.resolveComponent("el-tab-pane"),a=Vue.resolveComponent("transactor-settings"),d=Vue.resolveComponent("permission-settings"),u=Vue.resolveComponent("auto-filled-fields"),c=Vue.resolveComponent("notice-reminder"),m=Vue.resolveComponent("events"),A=Vue.resolveComponent("variables"),C=Vue.resolveComponent("el-tabs"),g=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(g,{"model-value":"",top:"10vh",title:e.$t("workflowEditor.task.linkAttribute"),center:!0,"append-to-body":"",class:"properties-editor",onOpen:t[8]||(t[8]=E=>e.$emit("open")),onOpend:t[9]||(t[9]=E=>e.$emit("opend")),onClose:t[10]||(t[10]=E=>e.$emit("close")),onClosed:t[11]||(t[11]=E=>e.$emit("closed"))},{default:Vue.withCtx(()=>[Vue.createVNode(C,{modelValue:n.activeTab,"onUpdate:modelValue":t[7]||(t[7]=E=>n.activeTab=E),type:"border-card",onTabClick:i.handleClick},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:e.$t("workflowEditor.task.basicProperties"),name:"basicProperties"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{id:o.model.ref.attr.id,"onUpdate:id":t[0]||(t[0]=E=>o.model.ref.attr.id=E),name:o.model.ref.attr.name,"onUpdate:name":t[1]||(t[1]=E=>o.model.ref.attr.name=E),model:o.model.ref.basicProperties},null,8,["id","name","model"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.settingOfHandler"),name:"transactors"},{default:Vue.withCtx(()=>[Vue.createVNode(a,{model:o.model.ref.transactorSettings,"basic-properties":o.model.ref.basicProperties},null,8,["model","basic-properties"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.permissionSettings"),name:"permissions"},{default:Vue.withCtx(()=>[Vue.createVNode(d,{modelValue:o.model.ref.permissionSettings,"onUpdate:modelValue":t[2]||(t[2]=E=>o.model.ref.permissionSettings=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.autoFillInFieldSettings"),name:"autoFilledFields"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{modelValue:o.model.ref.autoFilledFields,"onUpdate:modelValue":t[3]||(t[3]=E=>o.model.ref.autoFilledFields=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.reminderSettings"),name:"reminders"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{"reminder-value":o.model.ref.reminder,"onUpdate:reminderValue":t[4]||(t[4]=E=>o.model.ref.reminder=E),"task-notice-value":o.model.ref.taskNotice},null,8,["reminder-value","task-notice-value"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.eventProcessing"),name:"events"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:o.model.ref.events,"onUpdate:modelValue":t[5]||(t[5]=E=>o.model.ref.events=E)},null,8,["modelValue"])]),_:1},8,["label"]),Vue.createVNode(l,{label:e.$t("workflowEditor.task.linkVariable"),name:"variables"},{default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:o.model.ref.variables,"onUpdate:modelValue":t[6]||(t[6]=E=>o.model.ref.variables=E)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),_:1},8,["title"])}const HumanTaskPropertiesEditor=_export_sfc$1(_sfc_main$T,[["render",_sfc_render$M],["__scopeId","data-v-d95a84d8"]]);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var o=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};o.prototype=t.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),o}var sax$1={};const path={},__viteBrowserExternal=Object.freeze(Object.defineProperty({__proto__:null,default:path},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal);var string_decoder={},safeBuffer={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,t){var o=require$$0,r=o.Buffer;function n(s,l){for(var a in s)l[a]=s[a]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i);function i(s,l,a){return r(s,l,a)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(s,l,a){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,l,a)},i.alloc=function(s,l,a){if(typeof s!="number")throw new TypeError("Argument must be a number");var d=r(s);return l!==void 0?typeof a=="string"?d.fill(l,a):d.fill(l):d.fill(0),d},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(s)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,t=e.isEncoding||function(p){switch(p=""+p,p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(p){if(!p)return"utf8";for(var f;;)switch(p){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return p;default:if(f)return;p=(""+p).toLowerCase(),f=!0}}function r(p){var f=o(p);if(typeof f!="string"&&(e.isEncoding===t||!t(p)))throw new Error("Unknown encoding: "+p);return f||p}string_decoder.StringDecoder=n;function n(p){this.encoding=r(p);var f;switch(this.encoding){case"utf16le":this.text=c,this.end=m,f=4;break;case"utf8":this.fillLast=a,f=4;break;case"base64":this.text=A,this.end=C,f=3;break;default:this.write=g,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(f)}n.prototype.write=function(p){if(p.length===0)return"";var f,w;if(this.lastNeed){if(f=this.fillLast(p),f===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<p.length?f?f+this.text(p,w):this.text(p,w):f||""},n.prototype.end=u,n.prototype.text=d,n.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function i(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function s(p,f,w){var v=f.length-1;if(v<w)return 0;var b=i(f[v]);return b>=0?(b>0&&(p.lastNeed=b-1),b):--v<w||b===-2?0:(b=i(f[v]),b>=0?(b>0&&(p.lastNeed=b-2),b):--v<w||b===-2?0:(b=i(f[v]),b>=0?(b>0&&(b===2?b=0:p.lastNeed=b-3),b):0))}function l(p,f,w){if((f[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&f.length>1){if((f[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&f.length>2&&(f[2]&192)!==128)return p.lastNeed=2,"�"}}function a(p){var f=this.lastTotal-this.lastNeed,w=l(this,p);if(w!==void 0)return w;if(this.lastNeed<=p.length)return p.copy(this.lastChar,f,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,f,0,p.length),this.lastNeed-=p.length}function d(p,f){var w=s(this,p,f);if(!this.lastNeed)return p.toString("utf8",f);this.lastTotal=w;var v=p.length-(w-this.lastNeed);return p.copy(this.lastChar,0,v),p.toString("utf8",f,v)}function u(p){var f=p&&p.length?this.write(p):"";return this.lastNeed?f+"�":f}function c(p,f){if((p.length-f)%2===0){var w=p.toString("utf16le",f);if(w){var v=w.charCodeAt(w.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",f,p.length-1)}function m(p){var f=p&&p.length?this.write(p):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return f+this.lastChar.toString("utf16le",0,w)}return f}function A(p,f){var w=(p.length-f)%3;return w===0?p.toString("base64",f):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",f,p.length-w))}function C(p){var f=p&&p.length?this.write(p):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function g(p){return p.toString(this.encoding)}function E(p){return p&&p.length?this.write(p):""}return string_decoder}(function(e){(function(t){t.parser=function(V,y){return new r(V,y)},t.SAXParser=r,t.SAXStream=u,t.createStream=d,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function r(V,y){if(!(this instanceof r))return new r(V,y);var M=this;i(M),M.q=M.c="",M.bufferCheckPosition=t.MAX_BUFFER_LENGTH,M.opt=y||{},M.opt.lowercase=M.opt.lowercase||M.opt.lowercasetags,M.looseCase=M.opt.lowercase?"toLowerCase":"toUpperCase",M.tags=[],M.closed=M.closedRoot=M.sawRoot=!1,M.tag=M.error=null,M.strict=!!V,M.noscript=!!(V||M.opt.noscript),M.state=S.BEGIN,M.strictEntities=M.opt.strictEntities,M.ENTITIES=M.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),M.attribList=[],M.opt.xmlns&&(M.ns=Object.create(g)),M.trackPosition=M.opt.position!==!1,M.trackPosition&&(M.position=M.line=M.column=0),q(M,"onready")}Object.create||(Object.create=function(V){function y(){}y.prototype=V;var M=new y;return M}),Object.keys||(Object.keys=function(V){var y=[];for(var M in V)V.hasOwnProperty(M)&&y.push(M);return y});function n(V){for(var y=Math.max(t.MAX_BUFFER_LENGTH,10),M=0,T=0,R=o.length;T<R;T++){var j=V[o[T]].length;if(j>y)switch(o[T]){case"textNode":U(V);break;case"cdata":K(V,"oncdata",V.cdata),V.cdata="";break;case"script":K(V,"onscript",V.script),V.script="";break;default:re(V,"Max buffer length exceeded: "+o[T])}M=Math.max(M,j)}var I=t.MAX_BUFFER_LENGTH-M;V.bufferCheckPosition=I+V.position}function i(V){for(var y=0,M=o.length;y<M;y++)V[o[y]]=""}function s(V){U(V),V.cdata!==""&&(K(V,"oncdata",V.cdata),V.cdata=""),V.script!==""&&(K(V,"onscript",V.script),V.script="")}r.prototype={end:function(){te(this)},write:oe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){s(this)}};var l;try{l=require$$0.Stream}catch{l=function(){}}l||(l=function(){});var a=t.EVENTS.filter(function(V){return V!=="error"&&V!=="end"});function d(V,y){return new u(V,y)}function u(V,y){if(!(this instanceof u))return new u(V,y);l.apply(this),this._parser=new r(V,y),this.writable=!0,this.readable=!0;var M=this;this._parser.onend=function(){M.emit("end")},this._parser.onerror=function(T){M.emit("error",T),M._parser.error=null},this._decoder=null,a.forEach(function(T){Object.defineProperty(M,"on"+T,{get:function(){return M._parser["on"+T]},set:function(R){if(!R)return M.removeAllListeners(T),M._parser["on"+T]=R,R;M.on(T,R)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(l.prototype,{constructor:{value:u}}),u.prototype.write=function(V){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(V)){if(!this._decoder){var y=requireString_decoder().StringDecoder;this._decoder=new y("utf8")}V=this._decoder.write(V)}return this._parser.write(V.toString()),this.emit("data",V),!0},u.prototype.end=function(V){return V&&V.length&&this.write(V),this._parser.end(),!0},u.prototype.on=function(V,y){var M=this;return!M._parser["on"+V]&&a.indexOf(V)!==-1&&(M._parser["on"+V]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,V),M.emit.apply(M,T)}),l.prototype.on.call(M,V,y)};var c="[CDATA[",m="DOCTYPE",A="http://www.w3.org/XML/1998/namespace",C="http://www.w3.org/2000/xmlns/",g={xml:A,xmlns:C},E=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,f=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function v(V){return V===" "||V===`
31
31
  `||V==="\r"||V===" "}function b(V){return V==='"'||V==="'"}function O(V){return V===">"||v(V)}function N(V,y){return V.test(y)}function P(V,y){return!N(V,y)}var S=0;t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(V){var y=t.ENTITIES[V],M=typeof y=="number"?String.fromCharCode(y):y;t.ENTITIES[V]=M});for(var Q in t.STATE)t.STATE[t.STATE[Q]]=Q;S=t.STATE;function q(V,y,M){V[y]&&V[y](M)}function K(V,y,M){V.textNode&&U(V),q(V,y,M)}function U(V){V.textNode=ne(V.opt,V.textNode),V.textNode&&q(V,"ontext",V.textNode),V.textNode=""}function ne(V,y){return V.trim&&(y=y.trim()),V.normalize&&(y=y.replace(/\s+/g," ")),y}function re(V,y){return U(V),V.trackPosition&&(y+=`
32
32
  Line: `+V.line+`
33
33
  Column: `+V.column+`