agilebuilder-ui 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/permission.js +2 -2
- package/src/utils/auth-api.js +2 -2
- package/src/utils/request.js +2 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +14 -31
- package/src/views/layout/components/Menubar/index.vue +0 -5
- package/src/views/layout/tab-content-index.vue +0 -7
package/lib/super-ui.js
CHANGED
|
@@ -5344,7 +5344,7 @@ function isDevpSystem() {
|
|
|
5344
5344
|
}
|
|
5345
5345
|
function getMyToken() {
|
|
5346
5346
|
let e = getCookieCache(jwtKey);
|
|
5347
|
-
return
|
|
5347
|
+
return e || (e = getSessionCache(jwtKey), console.log("authAPI.getToken---getSessionCache=", e)), e;
|
|
5348
5348
|
}
|
|
5349
5349
|
function setToken(e) {
|
|
5350
5350
|
setCookieCache(jwtKey, e), setSessionCache(jwtKey, e);
|
package/lib/super-ui.umd.cjs
CHANGED
|
@@ -18,7 +18,7 @@ ${_}`:y)}else throw f},onCacheKey:f=>generateFormatCacheKey(t,n,f)}}function get
|
|
|
18
18
|
* vue-i18n v9.6.5
|
|
19
19
|
* (c) 2023 kazuya kawaguchi
|
|
20
20
|
* Released under the MIT License.
|
|
21
|
-
*/const VERSION$1="9.6.5";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(e,...t){return format$3(warnMessages[e],...t)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:t}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject$4(e))return e;for(const t in e)if(hasOwn$1(e,t))if(!t.includes("."))isObject$4(e[t])&&handleFlatJson(e[t]);else{const n=t.split("."),a=n.length-1;let i=e,u=!1;for(let f=0;f<a;f++){if(n[f]in i||(i[n[f]]={}),!isObject$4(i[n[f]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:n[f]})),u=!0;break}i=i[n[f]]}u||(i[n[a]]=e[t],delete e[t]),isObject$4(i[n[a]])&&handleFlatJson(i[n[a]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:a,messageResolver:i,flatJson:u}=t,f=isPlainObject(n)?n:isArray$2(a)?{}:{[e]:{}};if(isArray$2(a)&&a.forEach(h=>{if("locale"in h&&"resource"in h){const{locale:y,resource:_}=h;y?(f[y]=f[y]||{},deepCopy(_,f[y])):deepCopy(_,f)}else isString$3(h)&&deepCopy(JSON.parse(h),f)}),i==null&&u)for(const h in f)hasOwn$1(f,h)&&handleFlatJson(f[h]);return f}const isNotObjectOrIsArray=e=>!isObject$4(e)||isArray$2(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const n in e)hasOwn$1(e,n)&&(isNotObjectOrIsArray(e[n])||isNotObjectOrIsArray(t[n])?t[n]=e[n]:deepCopy(e[n],t[n]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let a=isObject$4(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=getLocaleMessages(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const i=Object.keys(a);i.length&&i.forEach(u=>{e.mergeLocaleMessage(u,a[u])});{if(isObject$4(t.datetimeFormats)){const u=Object.keys(t.datetimeFormats);u.length&&u.forEach(f=>{e.mergeDateTimeFormat(f,t.datetimeFormats[f])})}if(isObject$4(t.numberFormats)){const u=Object.keys(t.numberFormats);u.length&&u.forEach(f=>{e.mergeNumberFormat(f,t.numberFormats[f])})}}}function createTextNode(e){return Vue.createVNode(Vue.Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,a,i)=>e(n,a,Vue.getCurrentInstance()||void 0,i)}const getMetaInfo=()=>{const e=Vue.getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:a}=e,i=n===void 0,u=e.flatJson;let f=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const h=Vue.ref(n&&f?n.locale.value:isString$3(e.locale)?e.locale:DEFAULT_LOCALE),y=Vue.ref(n&&f?n.fallbackLocale.value:isString$3(e.fallbackLocale)||isArray$2(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),_=Vue.ref(getLocaleMessages(h.value,e)),x=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),T=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[h.value]:{}});let O=n?n.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,D=n?n.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,M=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,j=!!e.fallbackFormat,Q=isFunction$2(e.missing)?e.missing:null,q=isFunction$2(e.missing)?defineCoreMissingHandler(e.missing):null,F=isFunction$2(e.postTranslation)?e.postTranslation:null,H=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,le=!!e.escapeParameter;const De=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let fe=e.pluralRules||n&&n.pluralRules,L;L=(()=>{i&&setFallbackContext(null);const Ve={version:VERSION$1,locale:h.value,fallbackLocale:y.value,messages:_.value,modifiers:De,pluralRules:fe,missing:q===null?void 0:q,missingWarn:O,fallbackWarn:D,fallbackFormat:j,unresolving:!0,postTranslation:F===null?void 0:F,warnHtmlMessage:H,escapeParameter:le,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Ve.datetimeFormats=x.value,Ve.numberFormats=T.value,Ve.__datetimeFormatters=isPlainObject(L)?L.__datetimeFormatters:void 0,Ve.__numberFormatters=isPlainObject(L)?L.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Ve.__v_emitter=isPlainObject(L)?L.__v_emitter:void 0);const ot=createCoreContext(Ve);return i&&setFallbackContext(ot),ot})(),updateFallbackLocale(L,h.value,y.value);function Qe(){return[h.value,y.value,_.value,x.value,T.value]}const de=Vue.computed({get:()=>h.value,set:Ve=>{h.value=Ve,L.locale=h.value}}),re=Vue.computed({get:()=>y.value,set:Ve=>{y.value=Ve,L.fallbackLocale=y.value,updateFallbackLocale(L,h.value,Ve)}}),qe=Vue.computed(()=>_.value),Je=Vue.computed(()=>x.value),Ot=Vue.computed(()=>T.value);function Ze(){return isFunction$2(F)?F:null}function Bt(Ve){F=Ve,L.postTranslation=Ve}function $(){return Q}function vt(Ve){Ve!==null&&(q=defineCoreMissingHandler(Ve)),Q=Ve,L.missing=q}function nt(Ve,ot){return Ve!=="translate"||!ot.resolvedMessage}const Tt=(Ve,ot,Gt,un,rr,xr)=>{Qe();let vn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=n?getFallbackContext():void 0),vn=Ve(L)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=void 0)}if(Gt!=="translate exists"&&isNumber$1(vn)&&vn===NOT_REOSLVED||Gt==="translate exists"&&!vn){const[Kt,er]=ot();if(process.env.NODE_ENV!=="production"&&n&&isString$3(Kt)&&nt(Gt,er)&&(M&&(isTranslateFallbackWarn(D,Kt)||isTranslateMissingWarn(O,Kt))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:Kt,type:Gt})),process.env.NODE_ENV!=="production")){const{__v_emitter:_r}=L;_r&&M&&_r.emit("fallback",{type:Gt,key:Kt,to:"global",groupId:`${Gt}:${Kt}`})}return n&&M?un(n):rr(Kt)}else{if(xr(vn))return vn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Vn(...Ve){return Tt(ot=>Reflect.apply(translate$1,null,[ot,...Ve]),()=>parseTranslateArgs(...Ve),"translate",ot=>Reflect.apply(ot.t,ot,[...Ve]),ot=>ot,ot=>isString$3(ot))}function Et(...Ve){const[ot,Gt,un]=Ve;if(un&&!isObject$4(un))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Vn(ot,Gt,assign$2({resolvedMessage:!0},un||{}))}function He(...Ve){return Tt(ot=>Reflect.apply(datetime,null,[ot,...Ve]),()=>parseDateTimeArgs(...Ve),"datetime format",ot=>Reflect.apply(ot.d,ot,[...Ve]),()=>MISSING_RESOLVE_VALUE,ot=>isString$3(ot))}function dt(...Ve){return Tt(ot=>Reflect.apply(number$1,null,[ot,...Ve]),()=>parseNumberArgs(...Ve),"number format",ot=>Reflect.apply(ot.n,ot,[...Ve]),()=>MISSING_RESOLVE_VALUE,ot=>isString$3(ot))}function $t(Ve){return Ve.map(ot=>isString$3(ot)||isNumber$1(ot)||isBoolean(ot)?createTextNode(String(ot)):ot)}const ze={normalize:$t,interpolate:Ve=>Ve,type:"vnode"};function ht(...Ve){return Tt(ot=>{let Gt;const un=ot;try{un.processor=ze,Gt=Reflect.apply(translate$1,null,[un,...Ve])}finally{un.processor=null}return Gt},()=>parseTranslateArgs(...Ve),"translate",ot=>ot[TranslateVNodeSymbol](...Ve),ot=>[createTextNode(ot)],ot=>isArray$2(ot))}function Yt(...Ve){return Tt(ot=>Reflect.apply(number$1,null,[ot,...Ve]),()=>parseNumberArgs(...Ve),"number format",ot=>ot[NumberPartsSymbol](...Ve),NOOP_RETURN_ARRAY,ot=>isString$3(ot)||isArray$2(ot))}function ft(...Ve){return Tt(ot=>Reflect.apply(datetime,null,[ot,...Ve]),()=>parseDateTimeArgs(...Ve),"datetime format",ot=>ot[DatetimePartsSymbol](...Ve),NOOP_RETURN_ARRAY,ot=>isString$3(ot)||isArray$2(ot))}function ie(Ve){fe=Ve,L.pluralRules=fe}function Ae(Ve,ot){return Tt(()=>{if(!Ve)return!1;const Gt=isString$3(ot)?ot:h.value,un=ue(Gt),rr=L.messageResolver(un,Ve);return isMessageAST(rr)||isMessageFunction(rr)||isString$3(rr)},()=>[Ve],"translate exists",Gt=>Reflect.apply(Gt.te,Gt,[Ve,ot]),NOOP_RETURN_FALSE,Gt=>isBoolean(Gt))}function G(Ve){let ot=null;const Gt=fallbackWithLocaleChain(L,y.value,h.value);for(let un=0;un<Gt.length;un++){const rr=_.value[Gt[un]]||{},xr=L.messageResolver(rr,Ve);if(xr!=null){ot=xr;break}}return ot}function ee(Ve){const ot=G(Ve);return ot??(n?n.tm(Ve)||{}:{})}function ue(Ve){return _.value[Ve]||{}}function et(Ve,ot){if(u){const Gt={[Ve]:ot};for(const un in Gt)hasOwn$1(Gt,un)&&handleFlatJson(Gt[un]);ot=Gt[Ve]}_.value[Ve]=ot,L.messages=_.value}function Ut(Ve,ot){_.value[Ve]=_.value[Ve]||{};const Gt={[Ve]:ot};for(const un in Gt)hasOwn$1(Gt,un)&&handleFlatJson(Gt[un]);ot=Gt[Ve],deepCopy(ot,_.value[Ve]),L.messages=_.value}function Dt(Ve){return x.value[Ve]||{}}function jn(Ve,ot){x.value[Ve]=ot,L.datetimeFormats=x.value,clearDateTimeFormat(L,Ve,ot)}function Mn(Ve,ot){x.value[Ve]=assign$2(x.value[Ve]||{},ot),L.datetimeFormats=x.value,clearDateTimeFormat(L,Ve,ot)}function Vt(Ve){return T.value[Ve]||{}}function mn(Ve,ot){T.value[Ve]=ot,L.numberFormats=T.value,clearNumberFormat(L,Ve,ot)}function Gn(Ve,ot){T.value[Ve]=assign$2(T.value[Ve]||{},ot),L.numberFormats=T.value,clearNumberFormat(L,Ve,ot)}composerID++,n&&inBrowser&&(Vue.watch(n.locale,Ve=>{f&&(h.value=Ve,L.locale=Ve,updateFallbackLocale(L,h.value,y.value))}),Vue.watch(n.fallbackLocale,Ve=>{f&&(y.value=Ve,L.fallbackLocale=Ve,updateFallbackLocale(L,h.value,y.value))}));const wt={id:composerID,locale:de,fallbackLocale:re,get inheritLocale(){return f},set inheritLocale(Ve){f=Ve,Ve&&n&&(h.value=n.locale.value,y.value=n.fallbackLocale.value,updateFallbackLocale(L,h.value,y.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:qe,get modifiers(){return De},get pluralRules(){return fe||{}},get isGlobal(){return i},get missingWarn(){return O},set missingWarn(Ve){O=Ve,L.missingWarn=O},get fallbackWarn(){return D},set fallbackWarn(Ve){D=Ve,L.fallbackWarn=D},get fallbackRoot(){return M},set fallbackRoot(Ve){M=Ve},get fallbackFormat(){return j},set fallbackFormat(Ve){j=Ve,L.fallbackFormat=j},get warnHtmlMessage(){return H},set warnHtmlMessage(Ve){H=Ve,L.warnHtmlMessage=Ve},get escapeParameter(){return le},set escapeParameter(Ve){le=Ve,L.escapeParameter=Ve},t:Vn,getLocaleMessage:ue,setLocaleMessage:et,mergeLocaleMessage:Ut,getPostTranslationHandler:Ze,setPostTranslationHandler:Bt,getMissingHandler:$,setMissingHandler:vt,[SetPluralRulesSymbol]:ie};return wt.datetimeFormats=Je,wt.numberFormats=Ot,wt.rt=Et,wt.te=Ae,wt.tm=ee,wt.d=He,wt.n=dt,wt.getDateTimeFormat=Dt,wt.setDateTimeFormat=jn,wt.mergeDateTimeFormat=Mn,wt.getNumberFormat=Vt,wt.setNumberFormat=mn,wt.mergeNumberFormat=Gn,wt[InejctWithOptionSymbol]=a,wt[TranslateVNodeSymbol]=ht,wt[DatetimePartsSymbol]=ft,wt[NumberPartsSymbol]=Yt,process.env.NODE_ENV!=="production"&&(wt[EnableEmitter]=Ve=>{L.__v_emitter=Ve},wt[DisableEmitter]=()=>{L.__v_emitter=void 0}),wt}function convertComposerOptions(e){const t=isString$3(e.locale)?e.locale:DEFAULT_LOCALE,n=isString$3(e.fallbackLocale)||isArray$2(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=isFunction$2(e.missing)?e.missing:void 0,i=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,u=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,f=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.formatFallbackMessages,y=isPlainObject(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,x=isFunction$2(e.postTranslation)?e.postTranslation:void 0,T=isString$3(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,O=!!e.escapeParameterHtml,D=isBoolean(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let M=e.messages;if(isPlainObject(e.sharedMessages)){const De=e.sharedMessages;M=Object.keys(De).reduce((L,We)=>{const Qe=L[We]||(L[We]={});return assign$2(Qe,De[We]),L},M||{})}const{__i18n:j,__root:Q,__injectWithOption:q}=e,F=e.datetimeFormats,H=e.numberFormats,le=e.flatJson;return{locale:t,fallbackLocale:n,messages:M,flatJson:le,datetimeFormats:F,numberFormats:H,missing:a,missingWarn:i,fallbackWarn:u,fallbackRoot:f,fallbackFormat:h,modifiers:y,pluralRules:_,postTranslation:x,warnHtmlMessage:T,escapeParameter:O,messageResolver:e.messageResolver,inheritLocale:D,__i18n:j,__root:Q,__injectWithOption:q}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:a}=e,i={id:n.id,get locale(){return n.locale.value},set locale(u){n.locale.value=u},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(u){n.fallbackLocale.value=u},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(u){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(u){n.setMissingHandler(u)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(u){n.missingWarn=isBoolean(u)?!u:u},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(u){n.fallbackWarn=isBoolean(u)?!u:u},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(u){n.fallbackFormat=u},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(u){n.setPostTranslationHandler(u)},get sync(){return n.inheritLocale},set sync(u){n.inheritLocale=u},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(u){n.warnHtmlMessage=u!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(u){n.escapeParameter=u},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(u){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...u){const[f,h,y]=u,_={};let x=null,T=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const O=f;return isString$3(h)?_.locale=h:isArray$2(h)?x=h:isPlainObject(h)&&(T=h),isArray$2(y)?x=y:isPlainObject(y)&&(T=y),Reflect.apply(n.t,n,[O,x||T||{},_])},rt(...u){return Reflect.apply(n.rt,n,[...u])},tc(...u){const[f,h,y]=u,_={plural:1};let x=null,T=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const O=f;return isString$3(h)?_.locale=h:isNumber$1(h)?_.plural=h:isArray$2(h)?x=h:isPlainObject(h)&&(T=h),isString$3(y)?_.locale=y:isArray$2(y)?x=y:isPlainObject(y)&&(T=y),Reflect.apply(n.t,n,[O,x||T||{},_])},te(u,f){return n.te(u,f)},tm(u){return n.tm(u)},getLocaleMessage(u){return n.getLocaleMessage(u)},setLocaleMessage(u,f){n.setLocaleMessage(u,f)},mergeLocaleMessage(u,f){n.mergeLocaleMessage(u,f)},d(...u){return Reflect.apply(n.d,n,[...u])},getDateTimeFormat(u){return n.getDateTimeFormat(u)},setDateTimeFormat(u,f){n.setDateTimeFormat(u,f)},mergeDateTimeFormat(u,f){n.mergeDateTimeFormat(u,f)},n(...u){return Reflect.apply(n.n,n,[...u])},getNumberFormat(u){return n.getNumberFormat(u)},setNumberFormat(u,f){n.setNumberFormat(u,f)},mergeNumberFormat(u,f){n.mergeNumberFormat(u,f)},getChoiceIndex(u,f){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=a,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=u=>{const f=n;f[EnableEmitter]&&f[EnableEmitter](u)},i.__disableEmitter=()=>{const u=n;u[DisableEmitter]&&u[DisableEmitter]()}),i}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,i)=>[...a,...i.type===Vue.Fragment?i.children:[i]],[]):t.reduce((n,a)=>{const i=e[a];return i&&(n[a]=i()),n},{})}function getFragmentableTag(e){return Vue.Fragment}const TranslationImpl=Vue.defineComponent({name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber$1(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:a}=t,i=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const u=Object.keys(n).filter(T=>T!=="_"),f={};e.locale&&(f.locale=e.locale),e.plural!==void 0&&(f.plural=isString$3(e.plural)?+e.plural:e.plural);const h=getInterpolateArg(t,u),y=i[TranslateVNodeSymbol](e.keypath,h,f),_=assign$2({},a),x=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(x,_,y)}}}),Translation=TranslationImpl;function isVNode(e){return isArray$2(e)&&!isString$3(e[0])}function renderFormatter(e,t,n,a){const{slots:i,attrs:u}=t;return()=>{const f={part:!0};let h={};e.locale&&(f.locale=e.locale),isString$3(e.format)?f.key=e.format:isObject$4(e.format)&&(isString$3(e.format.key)&&(f.key=e.format.key),h=Object.keys(e.format).reduce((O,D)=>n.includes(D)?assign$2({},O,{[D]:e.format[D]}):O,{}));const y=a(e.value,f,h);let _=[f.key];isArray$2(y)?_=y.map((O,D)=>{const M=i[O.type],j=M?M({[O.type]:O.value,index:D,parts:y}):[O.value];return isVNode(j)&&(j[0].key=`${O.type}-${D}`),j}):isString$3(y)&&(_=[y]);const x=assign$2({},u),T=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(T,x,_)}}const NumberFormatImpl=Vue.defineComponent({name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,(...a)=>n[NumberPartsSymbol](...a))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=Vue.defineComponent({name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,(...a)=>n[DatetimePartsSymbol](...a))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function vTDirective(e){const t=f=>{const{instance:h,modifiers:y,value:_}=f;if(!h||!h.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const x=getComposer$2(e,h.$);process.env.NODE_ENV!=="production"&&y.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const T=parseValue(_);return[Reflect.apply(x.t,x,[...makeParams(T)]),x]};return{created:(f,h)=>{const[y,_]=t(h);inBrowser&&e.global===_&&(f.__i18nWatcher=Vue.watch(_.locale,()=>{h.instance&&h.instance.$forceUpdate()})),f.__composer=_,f.textContent=y},unmounted:f=>{inBrowser&&f.__i18nWatcher&&(f.__i18nWatcher(),f.__i18nWatcher=void 0,delete f.__i18nWatcher),f.__composer&&(f.__composer=void 0,delete f.__composer)},beforeUpdate:(f,{value:h})=>{if(f.__composer){const y=f.__composer,_=parseValue(h);f.textContent=Reflect.apply(y.t,y,[...makeParams(_)])}},getSSRProps:f=>{const[h]=t(f);return{textContent:h}}}}function parseValue(e){if(isString$3(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return e}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:a,choice:i,plural:u}=e,f={},h=a||{};return isString$3(n)&&(f.locale=n),isNumber$1(i)&&(f.plural=i),isNumber$1(u)&&(f.plural=u),[t,h,f]}function apply(e,t,...n){const a=isPlainObject(n[0])?n[0]:{},i=!!a.useI18nComponentName,u=isBoolean(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&u&&i&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),u&&([i?"i18n":Translation.name,"I18nT"].forEach(f=>e.component(f,Translation)),[NumberFormat.name,"I18nN"].forEach(f=>e.component(f,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(f=>e.component(f,DatetimeFormat))),e.directive("t",vTDirective(t))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(e,t){return new Promise((n,a)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:e},i=>{devtoolsApi=i,i.on.visitComponentTree(({componentInstance:f,treeNode:h})=>{updateComponentTreeTags(f,h,t)}),i.on.inspectComponent(({componentInstance:f,instanceData:h})=>{f.vnode.el&&f.vnode.el.__VUE_I18N__&&h&&(t.mode==="legacy"?f.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(h,f.vnode.el.__VUE_I18N__):inspectComposer(h,f.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(f=>{f.app===e&&f.inspectorId==="vue-i18n-resource-inspector"&®isterScope(f,t)});const u=new Map;i.on.getInspectorState(async f=>{if(f.app===e&&f.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),inspectScope(f,t),f.nodeId==="global"){if(!u.has(f.app)){const[h]=await i.getComponentInstances(f.app);u.set(f.app,h)}i.highlightElement(u.get(f.app))}else{const h=getComponentInstance(f.nodeId,t);h&&i.highlightElement(h)}}),i.on.editInspectorState(f=>{f.app===e&&f.inspectorId==="vue-i18n-resource-inspector"&&editScope(f,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),a(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const i={label:`i18n (${getI18nScopeLable(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function inspectComposer(e,t){const n=VUE_I18N_COMPONENT_TYPES;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function getLocaleMessageValue(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];isFunction$2(a)&&"source"in a?t[n]=getMessageFunctionDetails(a):isMessageAST(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:isObject$4(a)?t[n]=getLocaleMessageValue(a):t[n]=a}),t}const ESC={"<":"<",">":">",'"':""","&":"&"};function escape$1(e){return e.replace(/[<>"&]/g,escapeChar)}function escapeChar(e){return ESC[e]||e}function getMessageFunctionDetails(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${escape$1(e.source)}")`:"(?)"}`}}}function registerScope(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,i]of t.__instances){const u=t.mode==="composition"?i:i.__composer;n!==u&&e.rootNodes.push({id:u.id.toString(),label:`${getI18nScopeLable(a)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[a,i]of t.__instances.entries())if(i.id.toString()===e){n=a;break}}return n}function getComposer$1(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function inspectScope(e,t){const n=getComposer$1(e.nodeId,t);return n&&(e.state=makeScopeInspectState(n)),null}function makeScopeInspectState(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const i="Locale messages info",u=[{type:i,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[i]=u;{const f="Datetime formats info",h=[{type:f,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[f]=h;const y="Datetime formats info",_=[{type:y,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[y]=_}return t}function addTimelineEvent(e,t){if(devtoolsApi){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function editScope(e,t){const n=getComposer$1(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&isString$3(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(isString$3(e.state.value)||isArray$2(e.state.value)||isObject$4(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const a=Vue.getCurrentInstance();if(!a)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const u=i.i18n;if(i.__i18n&&(u.__i18n=i.__i18n),u.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,u);else{u.__injectWithOption=!0,u.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(u);const f=this.$i18n;f.__extender&&(f.__disposer=f.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,i);else{this.$i18n=createVueI18n({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&adjustI18nResources(t,i,i),this.$t=(...u)=>this.$i18n.t(...u),this.$rt=(...u)=>this.$i18n.rt(...u),this.$tc=(...u)=>this.$i18n.tc(...u),this.$te=(u,f)=>this.$i18n.te(u,f),this.$d=(...u)=>this.$i18n.d(...u),this.$n=(...u)=>this.$i18n.n(...u),this.$tm=u=>this.$i18n.tm(u),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const i=this.__v_emitter=createEmitter();a.__enableEmitter&&a.__enableEmitter(i),i.on("*",addTimelineEvent)}},unmounted(){const a=Vue.getCurrentInstance();if(!a)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(a),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=__VUE_I18N_LEGACY_API__&&isBoolean(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=isBoolean(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,u=new Map,[f,h]=createGlobal(e,n),y=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function _(O){return u.get(O)||null}function x(O,D){u.set(O,D)}function T(O){u.delete(O)}{const O={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(D,...M){if(process.env.NODE_ENV!=="production"&&(D.__VUE_I18N__=O),D.__VUE_I18N_SYMBOL__=y,D.provide(D.__VUE_I18N_SYMBOL__,O),isPlainObject(M[0])){const q=M[0];O.__composerExtend=q.__composerExtend,O.__vueI18nExtend=q.__vueI18nExtend}let j=null;!n&&a&&(j=injectGlobalFields(D,O.global)),__VUE_I18N_FULL_INSTALL__&&apply(D,O,...M),__VUE_I18N_LEGACY_API__&&n&&D.mixin(defineMixin(h,h.__composer,O));const Q=D.unmount;if(D.unmount=()=>{j&&j(),O.dispose(),Q()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(D,O))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const F=createEmitter();if(n){const H=h;H.__enableEmitter&&H.__enableEmitter(F)}else{const H=h;H[EnableEmitter]&&H[EnableEmitter](F)}F.on("*",addTimelineEvent)}},get global(){return h},dispose(){f.stop()},__instances:u,__getInstance:_,__setInstance:x,__deleteInstance:T};return O}}function useI18n(e={}){const t=Vue.getCurrentInstance();if(t==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),a=getGlobalComposer(n),i=getComponentOptions(t),u=getScope(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,u,a,e)}if(u==="global")return adjustI18nResources(a,e,i),a;if(u==="parent"){let y=getComposer(n,t,e.__useComponent);return y==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),y=a),y}const f=n;let h=f.__getInstance(t);if(h==null){const y=assign$2({},e);"__i18n"in i&&(y.__i18n=i.__i18n),a&&(y.__root=a),h=createComposer(y),f.__composerExtend&&(h[DisposeSymbol]=f.__composerExtend(h)),setupLifeCycle(f,t,h),f.__setInstance(t,h)}return h}function createGlobal(e,t,n){const a=Vue.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?a.run(()=>createVueI18n(e)):a.run(()=>createComposer(e));if(i==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[a,i]}}function getI18nInstance(e){{const t=Vue.inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.mode==="composition"?e.global:e.global.__composer}function getComposer(e,t,n=!1){let a=null;const i=t.root;let u=getParentComponentInstance(t,n);for(;u!=null;){const f=e;if(e.mode==="composition")a=f.__getInstance(u);else if(__VUE_I18N_LEGACY_API__){const h=f.__getInstance(u);h!=null&&(a=h.__composer,n&&a&&!a[InejctWithOptionSymbol]&&(a=null))}if(a!=null||i===u)break;u=u.parent}return a}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let a=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=createEmitter();const i=n;i[EnableEmitter]&&i[EnableEmitter](a),a.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",addTimelineEvent),i[DisableEmitter]&&i[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const u=i[DisposeSymbol];u&&(u(),delete i[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,a={}){const i=t==="local",u=Vue.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const f=isBoolean(a.inheritLocale)?a.inheritLocale:!isString$3(a.locale),h=Vue.ref(!i||f?n.locale.value:isString$3(a.locale)?a.locale:DEFAULT_LOCALE),y=Vue.ref(!i||f?n.fallbackLocale.value:isString$3(a.fallbackLocale)||isArray$2(a.fallbackLocale)||isPlainObject(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:h.value),_=Vue.ref(getLocaleMessages(h.value,a)),x=Vue.ref(isPlainObject(a.datetimeFormats)?a.datetimeFormats:{[h.value]:{}}),T=Vue.ref(isPlainObject(a.numberFormats)?a.numberFormats:{[h.value]:{}}),O=i?n.missingWarn:isBoolean(a.missingWarn)||isRegExp(a.missingWarn)?a.missingWarn:!0,D=i?n.fallbackWarn:isBoolean(a.fallbackWarn)||isRegExp(a.fallbackWarn)?a.fallbackWarn:!0,M=i?n.fallbackRoot:isBoolean(a.fallbackRoot)?a.fallbackRoot:!0,j=!!a.fallbackFormat,Q=isFunction$2(a.missing)?a.missing:null,q=isFunction$2(a.postTranslation)?a.postTranslation:null,F=i?n.warnHtmlMessage:isBoolean(a.warnHtmlMessage)?a.warnHtmlMessage:!0,H=!!a.escapeParameter,le=i?n.modifiers:isPlainObject(a.modifiers)?a.modifiers:{},De=a.pluralRules||i&&n.pluralRules;function fe(){return[h.value,y.value,_.value,x.value,T.value]}const L=Vue.computed({get:()=>u.value?u.value.locale.value:h.value,set:ee=>{u.value&&(u.value.locale.value=ee),h.value=ee}}),We=Vue.computed({get:()=>u.value?u.value.fallbackLocale.value:y.value,set:ee=>{u.value&&(u.value.fallbackLocale.value=ee),y.value=ee}}),Qe=Vue.computed(()=>u.value?u.value.messages.value:_.value),de=Vue.computed(()=>x.value),re=Vue.computed(()=>T.value);function qe(){return u.value?u.value.getPostTranslationHandler():q}function Je(ee){u.value&&u.value.setPostTranslationHandler(ee)}function Ot(){return u.value?u.value.getMissingHandler():Q}function Ze(ee){u.value&&u.value.setMissingHandler(ee)}function Bt(ee){return fe(),ee()}function $(...ee){return u.value?Bt(()=>Reflect.apply(u.value.t,null,[...ee])):Bt(()=>"")}function vt(...ee){return u.value?Reflect.apply(u.value.rt,null,[...ee]):""}function nt(...ee){return u.value?Bt(()=>Reflect.apply(u.value.d,null,[...ee])):Bt(()=>"")}function Tt(...ee){return u.value?Bt(()=>Reflect.apply(u.value.n,null,[...ee])):Bt(()=>"")}function Vn(ee){return u.value?u.value.tm(ee):{}}function Et(ee,ue){return u.value?u.value.te(ee,ue):!1}function He(ee){return u.value?u.value.getLocaleMessage(ee):{}}function dt(ee,ue){u.value&&(u.value.setLocaleMessage(ee,ue),_.value[ee]=ue)}function $t(ee,ue){u.value&&u.value.mergeLocaleMessage(ee,ue)}function me(ee){return u.value?u.value.getDateTimeFormat(ee):{}}function ze(ee,ue){u.value&&(u.value.setDateTimeFormat(ee,ue),x.value[ee]=ue)}function ht(ee,ue){u.value&&u.value.mergeDateTimeFormat(ee,ue)}function Yt(ee){return u.value?u.value.getNumberFormat(ee):{}}function ft(ee,ue){u.value&&(u.value.setNumberFormat(ee,ue),T.value[ee]=ue)}function ie(ee,ue){u.value&&u.value.mergeNumberFormat(ee,ue)}const Ae={get id(){return u.value?u.value.id:-1},locale:L,fallbackLocale:We,messages:Qe,datetimeFormats:de,numberFormats:re,get inheritLocale(){return u.value?u.value.inheritLocale:f},set inheritLocale(ee){u.value&&(u.value.inheritLocale=ee)},get availableLocales(){return u.value?u.value.availableLocales:Object.keys(_.value)},get modifiers(){return u.value?u.value.modifiers:le},get pluralRules(){return u.value?u.value.pluralRules:De},get isGlobal(){return u.value?u.value.isGlobal:!1},get missingWarn(){return u.value?u.value.missingWarn:O},set missingWarn(ee){u.value&&(u.value.missingWarn=ee)},get fallbackWarn(){return u.value?u.value.fallbackWarn:D},set fallbackWarn(ee){u.value&&(u.value.missingWarn=ee)},get fallbackRoot(){return u.value?u.value.fallbackRoot:M},set fallbackRoot(ee){u.value&&(u.value.fallbackRoot=ee)},get fallbackFormat(){return u.value?u.value.fallbackFormat:j},set fallbackFormat(ee){u.value&&(u.value.fallbackFormat=ee)},get warnHtmlMessage(){return u.value?u.value.warnHtmlMessage:F},set warnHtmlMessage(ee){u.value&&(u.value.warnHtmlMessage=ee)},get escapeParameter(){return u.value?u.value.escapeParameter:H},set escapeParameter(ee){u.value&&(u.value.escapeParameter=ee)},t:$,getPostTranslationHandler:qe,setPostTranslationHandler:Je,getMissingHandler:Ot,setMissingHandler:Ze,rt:vt,d:nt,n:Tt,tm:Vn,te:Et,getLocaleMessage:He,setLocaleMessage:dt,mergeLocaleMessage:$t,getDateTimeFormat:me,setDateTimeFormat:ze,mergeDateTimeFormat:ht,getNumberFormat:Yt,setNumberFormat:ft,mergeNumberFormat:ie};function G(ee){ee.locale.value=h.value,ee.fallbackLocale.value=y.value,Object.keys(_.value).forEach(ue=>{ee.mergeLocaleMessage(ue,_.value[ue])}),Object.keys(x.value).forEach(ue=>{ee.mergeDateTimeFormat(ue,x.value[ue])}),Object.keys(T.value).forEach(ue=>{ee.mergeNumberFormat(ue,T.value[ue])}),ee.escapeParameter=H,ee.fallbackFormat=j,ee.fallbackRoot=M,ee.fallbackWarn=D,ee.missingWarn=O,ee.warnHtmlMessage=F}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ee=u.value=e.proxy.$i18n.__composer;t==="global"?(h.value=ee.locale.value,y.value=ee.fallbackLocale.value,_.value=ee.messages.value,x.value=ee.datetimeFormats.value,T.value=ee.numberFormats.value):i&&G(ee)}),Ae}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);return globalExportProps.forEach(i=>{const u=Object.getOwnPropertyDescriptor(t,i);if(!u)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const f=Vue.isRef(u.value)?{get(){return u.value.value},set(h){u.value.value=h}}:{get(){return u.get&&u.get()}};Object.defineProperty(n,i,f)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(i=>{const u=Object.getOwnPropertyDescriptor(t,i);if(!u||!u.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,u)}),()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(initFeatureFlags(),__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const en={imatrixUIPublicModel:{sure:"Sure",cancel:"Cancel",allDepartments:"All Departments",allUsers:"All Users",reset:"Reset",to:"To",edit:"Edit",clear:"Clear",download:"Download",delete:"Delete",preview:"Preview",add:"Add",graphView:"Graphic view",listView:"List View",fieldName:"Field Name",operator:"Operator",value:"Value",andOr:"And/Or",whenTheVariableIsEmpty:"When The Variable Is Empty",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",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",switchToNormalQuery:"Switch To Normal Query",switchToAdvancedQuery:"Switch To Advanced Query",isNull:"Is Null",isNotNull:"Is Not Null",previewImage:"Preview image",fullScreen:"Full Screen",forbidden:"forbidden",startUsing:"Start Using",systemCode:"System Code",code:"Code"},imatrixUIMessage:{whetherToConfirmDeletion:"Whether To Confirm Deletion",tips:"Tips",pleaseEnterContent:"Please Enter Content",internalServerError:"Server error",pleaseSelectDepartment:"Please Select Department",pleaseSelectPersonnel:"Please Select Personnel",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"Please Remove All Personnel Before Selecting Specific Personnel",queryResultIsEmpty:"Query Result Is Empty",pleaseSelectATeam:"Please Select A Team",pleaseEnterTeamName:"Please Enter Team Name",validationFailed:"Validation Failed",selectionDate:"Selection Date",selectTime:"Select Time",pleaseEnterATimePoint:"Please Enter A Time Point",pleaseSelect:"Please Select",startDate:"Start Date",endDate:"End Date",noExportColumnsConfigured:"No Export Columns Configured",organizationTreeNoResultNotRemove:"No information selected, no need to remove",exceedFileSize:"File size limit {filesize} M exceeded",upload:"Upload",invalideDoubleValue:"{num} is not a legal decimal",noJumpPage:"Jump page not configured",saveSuccessfully:"Savee successfully",pleaseInputSearchCondition:"Please enter the query criteria",fileUpload:"File Upload",selectYear:"Select Year",search:"Search",forbiddenException:"You do not have permission to access this resource",theButtonIsNotBoundToAResource:"The button is not bound to a resource, Bind the resource first",asyncExport:"Asynchronous export, please wait for message notification!",selectedWorkingGroup:"Selected working group"},superGrid:{columnConfig:"Column Config",pleaseSaveOrCancelEditingLine:"Please Save Or Cancel Editing Line {row} Data First",pleaseSaveLine:"Please Save Line {row} Data First",noNeedToSaveRow:"No Need To Save Row {row} Data",pleaseSetURLToSaveRowInformation:'Please set "URL to save row information"',lineSavedSuccessfully:"Line {row} Saved Successfully",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"The Return Value Of The Beforesave Callback Method Is False",lineNoNeedToUndoEdit:"Line {row} No Need To Undo Edit",lineCancelledSuccessfully:"Line {row} cancelled successfully",label:"Label",isShow:"Is Show",isExportable:"Is Exportable",recordLine:"Record line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",fileName:"File Name",deleteSuccessful:"Deleted successfully",index:"No.",searchConditionName:"Search Condition Name",pleaseInputSearchConditionName:"Please enter the name of the query criteria",saveCondition:"Save Condition",saveConditionTitle:"Save Condition",displayOrder:"Display Order",width:"Column Width",default:"Default",custom:"Custom",show:"Show",hidden:"Hidden",export:"Export",unExport:"Not Export",whetherToConfirmReset:"Are you sure you want to reset?",resetSuccessful:"Reset successfully",dragColumnOrderMessage:"Supports dragging to change column order",selectAll:"Select All",viewImage:"View Image",previewTitleWhenNotImg:"Non picture format, preview in other ways",refresh:"Refresh",open:"Open",fold:"Fold"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"Please Enter Department Name",name:"Department Name",code:"Department Code",removeDepartment:"Remove Department",selectedDept:"Selected Departments",namePath:"Name Path"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific"},departmentUserTreeInline:{name:"Name",department:"Department",branch:"Branch",removeUser:"Remove User",email:"Email",loginName:"Login Name",superiorDeptNameFullPath:"Department full path"},workgroupTree:{allTeamMembers:"All Team Members",name:"Workgroup Name",code:"Workgroup Code",removeWorkgroup:"Remove Workgroup",workingGroupName:"Working Group Name",workingGroupNumber:"Working Group Number",workgroupDescription:"Workgroup Description"},workflowButton:{save:"Save",submit:"Submit",approve:"Approve",refuse:"Refuse",agreement:"Agree",oppose:"Opposition",kiken:"Abstention",get_back_button:"Retrieve",copy:"Copy",draw:"Draw",abandon_draw:"Give Up Draw",add_sign:"Additional Signature",remove_sign:"Reduction Of Signature",signoff:"Sign For",assign:"Hand over",assign_task:"Transfer",readed:"Readed",export_report:"Export Report",draw_dept_task:"Draw Department",abandon_draw_dept_task:"Give Up Draw Department"},workflowHistoryList:{specailText:"specail",index:"Index",taskName:"Task Name",operation:"Operation",opinion:"Opinion",processStart:"Process Start",processEnd:"Process End",process_start:"[{1}] process start",prcoess_end:"[{1}] process End",force_end_process:"{key_1}forced to end the process, and the task of [{key_2}] was canceled",history_jump:"Process {key_3} to [{key_1}], [{key_2}] task cancelled",history_back:"{key_1} returned to task,process returned to [{key_2}]",history_removesign:"{key_1} minus [{key_2}]",history_changetransactor_and_delegate:"{key_1} changed the handler [{key_2}] to [{key_3}], [{key_4}] delegated the task to [{key_5}]",history_changetransactor:"{key_1} changed handler [{key_2}] to [{key_3}]",history_addsign:"{key_1} sign [{key_2}]",history_addtransactor:"{key_1} add handler [{key_2}]",history_removetransactor:"{key_1} decrease handler [{key_2}]",history_delegate_and_assign:"{key_1} assigned tasks to [{key_2}], [{key_3}] delegated tasks to [{key_4}]",history_assign:"{key_1} assigned task to [{key_2}]",transfer:"{key_1} transferred to [{key_2}]",history_complete_transfer:"{key_1} execute [{key_2}] operation and canceled the task of other receivers [{key_3}]",history_delegate_receive:"{key_1} retracts the task entrusted to [{key_2}]",history_delegate:"{key_1} has delegated task [{key_2}] to [{key_3}]",history_quit_transfer:"{key_1} Resignation, has transferred task [{key_2}] to [{key_3}",history_change_job_transfer:"{key_1} Change job,has transferred task [{key_2}] to [{key_3}",commonButtonOperation:"{key_1} execute [{key_2}] operation",history_draw_task:"{key_1} received the task and cancelled the task of the candidate [{key_2}]",history_abandon_draw:"{key_1} gives up the task and restores the task of candidate [{key_2}]",create_copy_task:"{key_1} The task was copied to [{key_2}",toDoText:"Todo",operator:"Operator",operatorLg:"Operator Login Name",operatorDept:"Operator Dept",operationTime:"Operation Time",history_draw_dept_task:"{key_1} Received tasks from department [{key_2}]",history_abandon_draw_dept_task:"{key_1} Abandon the task of receiving department [{key_2}]"},gateway:{timeout:"Interface call timeout",callFailed:"Interface call failed"},superNineGrid:{add:"Create"},fsUpload:{upload:"Upload",download:"Download",delete:"Delete",preview:"Preview",name:"Name",picture:"Picture",operating:"Operating",uploadSucceeded:"Upload succeeded",theNumberOfUploadsExceedsTheLimitTheLimitIs:"The number of uploads exceeds the limit. The limit is"},messageVideo:{attemptingToIdentify:"Attempting to identify",callingRearCamera:"Calling rear camera",identificationFailed:"Identification failed"},IntervalSelection:{year:"year",quarter:"quarter",auxiliary:"auxiliary word for ordinal numbers",week:"week"},imatrixUIPromptMessage:{NoContent:"No content"}},cn={imatrixUIPublicModel:{sure:"确定",cancel:"取消",allDepartments:"所有部门",allUsers:"所有用户",reset:"重置",to:"至",edit:"操作",clear:"清空",download:"下载",delete:"删除",preview:"预览",add:"增加",graphView:"图形视图",listView:"列表视图",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",andOr:"并且/或者",whenTheVariableIsEmpty:"变量为空时",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",switchToNormalQuery:"切换为普通查询",switchToAdvancedQuery:"切换为高级查询",isNull:"等于Null",isNotNull:"不等于Null",previewImage:"预览图片",fullScreen:"全屏",forbidden:"禁用",startUsing:"启用",systemCode:"系统编码",code:"编码"},imatrixUIMessage:{whetherToConfirmDeletion:"是否确认删除",tips:"提示",pleaseEnterContent:"请输入内容",internalServerError:"请求失败",pleaseSelectDepartment:"请选择部门",pleaseSelectPersonnel:"请选择人员",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"请先移除所有人员,再选择具体人员",queryResultIsEmpty:"查询结果为空",pleaseSelectATeam:"请选择工作组",pleaseEnterTeamName:"请输入工作组名称",validationFailed:"验证失败",selectionDate:"选择日期",selectTime:"选择时间",pleaseEnterATimePoint:"请输入时间点",pleaseSelect:"请选择",startDate:"开始日期",endDate:"结束日期",noExportColumnsConfigured:"没有配置导出列",organizationTreeNoResultNotRemove:"未选择任何信息,无需移除",exceedFileSize:"超过文件大小限制{fileSize}M",upload:"上传",invalideDoubleValue:"{num} 不是合法的小数",noJumpPage:"未配置跳转页面",saveSuccessfully:"保存成功",pleaseInputSearchCondition:"请输入查询条件",fileUpload:"文件上传",selectYear:"选择年",search:"查询",forbiddenException:"您没有权限访问该资源",theButtonIsNotBoundToAResource:"该按钮未绑定资源,请先绑定资源",asyncExport:"正在异步导出,请等待消息通知!",selectedWorkingGroup:"已选工作组"},superGrid:{columnConfig:"字段配置",pleaseSaveOrCancelEditingLine:"请先保存或撤销编辑第 {row} 行数据",pleaseSaveLine:"请先保存第 {row} 行数据",noNeedToSaveRow:"无需保存第 {row} 行数据",pleaseSetURLToSaveRowInformation:"请设置“保存行信息的url”",lineSavedSuccessfully:"第 {row} 行保存成功",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"beforeSave回调方法返回值为false",lineNoNeedToUndoEdit:"第 {row} 行无需撤销编辑",lineCancelledSuccessfully:"第 {row} 行撤销成功",label:"字段名",isShow:"是否显示",isExportable:"是否导出",recordLine:"第 {row} 行记录",pageRecordLine:"第 {pageNum} 页第 {row} 行记录",fileName:"文件名称",deleteSuccessful:"删除成功",index:"序号",searchConditionName:"查询条件名称",pleaseInputSearchConditionName:"请输入查询条件名称",saveCondition:"保存条件",saveConditionTitle:"保存查询条件",displayOrder:"显示顺序",width:"列宽",default:"默认",custom:"自定义",show:"显示",hidden:"隐藏",export:"导出",unExport:"不导出",whetherToConfirmReset:"是否确认重置?",resetSuccessful:"重置成功",dragColumnOrderMessage:"支持拖动改变列顺序",selectAll:"全选",viewImage:"查看图片",previewTitleWhenNotImg:"非图片格式,使用其它方式预览",refresh:"刷新",open:"展开",fold:"收起"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"请输入部门名称",name:"部门名称",code:"部门编码",removeDepartment:"移除部门",selectedDept:"已选部门",namePath:"名称路径"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称"},departmentUserTreeInline:{name:"姓名",department:"所属部门",branch:"所属分支",removeUser:"移除用户",email:"邮箱",loginName:"登录名",superiorDeptNameFullPath:"组织全路径"},workgroupTree:{allTeamMembers:"所有工作组人员",name:"工作组名称",code:"工作组编码",removeWorkgroup:"移除工作组",workingGroupName:"工作组名称",workingGroupNumber:"工作组编号",workgroupDescription:"工作组描述"},workflowButton:{save:"暂存",submit:"提交",approve:"同意",refuse:"不同意",agreement:"赞成",oppose:"反对",kiken:"弃权",get_back_button:"取回",copy:"抄送",draw:"领取",abandon_draw:"放弃领取",add_sign:"加签",remove_sign:"减签",signoff:"签收",assign:"交办",assign_task:"转办",readed:"已阅",export_report:"导出报告",draw_dept_task:"部门领取",abandon_draw_dept_task:"放弃部门领取"},workflowHistoryList:{specailText:"特",index:"序号",taskName:"环节名称",operation:"流转操作",opinion:"办理意见",processStart:"流程开始",processEnd:"流程结束",process_start:"[{key_1}]流程开始",prcoess_end:"[{key_1}]流程结束",force_end_process:"{key_1}强制结束了该流程,[{key_2}]的任务被取消",history_jump:"流程{key_3}到[{key_1}],[{key_2}]的任务被取消",history_back:"{key_1}退回任务,流程退回到[{key_2}]",history_removesign:"{key_1}给[{key_2}]减签",history_changetransactor_and_delegate:"{key_1}把办理人[{key_2}]更改成[{key_3})],{key_4}把任务委托给了[{key_5}]",history_changetransactor:"{key_1}把办理人[{2}]更改成[{key_3}]",history_addsign:"{key_1}给[{key_2}]加签",history_addtransactor:"{key_1}增加办理人[{key_2}]",history_removetransactor:"{key_1}减少办理人[{key_2}]",history_delegate_and_assign:"{key_1}把任务指派给了[{key_2}],[{key_3}]把任务委托给了[{key_4}]",history_assign:"{key_1}把任务指派给了[{key_2}]",transfer:"{key_1}移交给[{key_2}]",history_complete_transfer:"{key_1}执行了[{key_2}]操作,取消了其它接收人[{key_3}]的任务",history_delegate_receive:"{key_1}收回委托给[{key_2}]的任务",history_delegate:"{key_1}已把任务[{key_2}]委托给[{key_3}]",history_quit_transfer:"{key_1}离职,已把任务[{2}]移交给了[{key_3}]",history_change_job_transfer:"{1}换岗,已把任务[{2}]移交给了[{key_3}]",commonButtonOperation:"{key_1}执行了[{key_2}]操作",history_draw_task:"{key_1}领取了任务,取消了候选人[{key_2}]的任务",history_abandon_draw:"{key_1}放弃领取该任务,还原了候选人[{key_2}]的任务",create_copy_task:"{key_1}把任务抄送给了[{key_2}]",toDoText:"待处理",operator:"操作人",operatorLg:"操作人登录名",operatorDept:"操作人部门",operationTime:"操作时间",history_draw_dept_task:"{key_1}领取了部门[{key_2}]的任务",history_abandon_draw_dept_task:"{key_1}放弃领取部门[{key_2}]的任务"},gateway:{timeout:"接口调用超时",callFailed:"接口调用失败"},superNineGrid:{add:"新建"},fsUpload:{upload:"上传",download:"下载",delete:"删除",preview:"预览",name:"名称",picture:"图片",operating:"操作",uploadSucceeded:"上传成功",theNumberOfUploadsExceedsTheLimitTheLimitIs:"上传数量超过限制,限制数量为"},messageVideo:{attemptingToIdentify:"正在尝试识别....",callingRearCamera:"正在调用后置摄像头...",identificationFailed:"识别失败"},IntervalSelection:{year:"年",quarter:"季度",auxiliary:"第",week:"周"},imatrixUIPromptMessage:{NoContent:"暂无内容"}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});class CalculatorFactory{constructor(){if(new.target===CalculatorFactory)throw new Error("抽象类不能实例化!")}isNullValue(t,n){return(t==null||t+""=="")&&n==="IS_NULL"}isNotNullValue(t,n){return t!=null&&t+""!=""&&n==="IS_NOT_NULL"}isEQEmptyValue(t,n,a){return(t==null||t+""=="")&&(a==null||a+""=="")&&(n==="EQ"||n==="CONTAIN")}}class NumberCalculator extends CalculatorFactory{constructor(t,n,a){if(super(),this.isNotNullValue(t,n))this.result=!0;else if(this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,a))this.result=!0;else if(t==null)this.result=!1;else{const i=+(t+""),u=+(a+"");if(n==="GET")this.result=i>=u;else if(n==="LET")this.result=i<=u;else if(n==="GT")this.result=i>u;else if(n==="LT")this.result=i<u;else if(n==="NET")this.result=i!==u;else if(n==="EQ")this.result=i===u;else if(n==="IS_NULL")this.result=t==null;else if(n==="IS_NOT_NULL")this.result=t!=null;else throw new Error("表达式不合法:"+t+" "+n+" "+a)}}}class TextCalculator extends CalculatorFactory{constructor(t,n,a){if(super(),this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,a))this.result=!0;else if(this.isNotNullValue(t,n))this.result=!0;else if(t==null)this.result=!1;else if(n==="NET")this.result=t!==a;else if(n==="EQ")this.result=t===a;else if(n==="NOT_CONTAIN")this.result=!t.includes(a);else if(n==="CONTAIN")this.result=t.includes(a);else if(n==="IS_NULL")this.result=t==null||t==="";else if(n==="IS_NOT_NULL")this.result=t!=null&&t!=="";else throw new Error("表达式不合法:"+t+" "+n+" "+a)}}function getAbstractUserFactory(e){switch(e){case"TEXT":return TextCalculator;case"DOUBLE":return NumberCalculator;case"FLOAT":return NumberCalculator;case"INTEGER":return NumberCalculator;case"LONG":return NumberCalculator;case"DATE":return NumberCalculator;case"TIME":return NumberCalculator;default:return TextCalculator}}function executeExpression(e,t,n,a){const i=getAbstractUserFactory(a);return new i(e,t,n).result}/*! js-cookie v3.0.5 | MIT */function assign(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var defaultConverter={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(e,t){function n(i,u,f){if(!(typeof document>"u")){f=assign({},t,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var y in f)f[y]&&(h+="; "+y,f[y]!==!0&&(h+="="+f[y].split(";")[0]));return document.cookie=i+"="+e.write(u,i)+h}}function a(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var u=document.cookie?document.cookie.split("; "):[],f={},h=0;h<u.length;h++){var y=u[h].split("="),_=y.slice(1).join("=");try{var x=decodeURIComponent(y[0]);if(f[x]=e.read(_,x),i===x)break}catch{}}return i?f[i]:f}}return Object.create({set:n,get:a,remove:function(i,u){n(i,"",assign({},u,{expires:-1}))},withAttributes:function(i){return init(this.converter,assign({},this.attributes,i))},withConverter:function(i){return init(assign({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var api=init(defaultConverter,{path:"/"});const jwtKey="JWT",currentUserNameKey="USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_",langKey="CURRENT_LANGUAGE",allLangKey="AMB_LANG_INFO",versionEnv="VERSION_ENVIRONMENT",userVersion="CURRENT_USER_SYSTEM_VERSION",runDevpJwtKey="_runDevpJWT";function getToken$1(){let e=isDevpSystem(),t;return e?t=getMyToken():(t=getSessionCache(runDevpJwtKey),t||(t=getMyToken())),t}function isDevpSystem(){let e=!1;const t=window.$vueApp.config.globalProperties.systemCode;return t&&t==="devp"&&(e=!0),e}function getMyToken(){let e=getCookieCache(jwtKey);return console.log("authAPI.getToken---getCookieCache=",e),e||(e=getSessionCache(jwtKey),console.log("authAPI.getToken---getSessionCache=",e)),console.log("authAPI.getToken---getToken=",e),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey)}function getUsername(){let e=getRunInfoKey(currentUserNameKey),t=getCookieCache(e);return t||(t=getSessionCache(e)),t}function setUsername(e){let t=getRunInfoKey(currentUserNameKey);setSessionCache(t,e),setCookieCache(t,e)}function removeUsername(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getCurrentUser(){const e=getRunInfoKey(currentUserInfoKey);return getCurrentUserByKey(e)}function getCurrentUserByKey(e){let t=getCookieCache(e);if(t||(t=getSessionCache(e)),t)return JSON.parse(t)}function setCurrentUser(e){const t=getRunInfoKey(currentUserInfoKey);if(e){e.password&&(e.password=null);const n=JSON.stringify(e);setSessionCache(t,n),setCookieCache(t,n)}}function getRunInfoKey(e){let t=e;return isDevpSystem()||getSessionCache(runDevpJwtKey)&&(t="_run_"+t),t}function removeCurrentUser(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache(e){return api.get(e)}function setCookieCache(e,t){api.set(e,t,{path:"/"})}function removeCookieCache(e){api.remove(e,{path:"/"})}function getSessionCache(e){return window.sessionStorage.getItem(e)}function setSessionCache(e,t){return window.sessionStorage.setItem(e,t)}function removeSessionCache(e){window.sessionStorage.removeItem(e)}function getSystemCacheUrlByCode(e){if(e||(e=window.$vueApp.config.globalProperties.customSystem),e||(e=window.$vueApp.config.globalProperties.systemCode),e){const t=getSystemCacheUrl();if(t)return t[e]}}function getSystemCacheUrl(){let e=getCookieCache(currentSystemUrlKey);if(e||(e=getSessionCache(currentSystemUrlKey)),e)return JSON.parse(e)}function setSystemCacheUrl(e){if(e){const t=JSON.stringify(e);setSessionCache(currentSystemUrlKey,t),setCookieCache(currentSystemUrlKey,t)}}function removeSystemCacheUrl(){removeSessionCache(currentSystemUrlKey),removeCookieCache(currentSystemUrlKey)}function getLanguage(){let e=getCookieCache(langKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(langKey)),e}function setLanguage(e){setCookieCache(langKey,e),setSessionCache(langKey,e)}function removeLanguage(){removeCookieCache(langKey),removeSessionCache(langKey)}function getAllLanguages$1(){let e=getCookieCache(allLangKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(allLangKey)),e}function setAllLanguages(e){setCookieCache(allLangKey,e),setSessionCache(allLangKey,e)}function removeAllLanguages(){removeCookieCache(allLangKey),removeSessionCache(allLangKey)}function removePublishControl(){removeCookieCache(versionEnv),removeCookieCache(userVersion)}const authApi={getToken:getToken$1,setToken,removeToken,getUsername,setUsername,removeUsername,getCurrentUser,setCurrentUser,removeCurrentUser,getCookieCache,setCookieCache,removeCookieCache,getSessionCache,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl,getLanguage,setLanguage,removeLanguage,getAllLanguages:getAllLanguages$1,setAllLanguages,removeAllLanguages,removePublishControl,isDevpSystem,getRunInfoKey};function getToken(){return authApi.getToken()}function getAllLanguages(){return authApi.getAllLanguages()}function getRelativeBaseUrl(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 n="";const a=e.split("/");if(a.length>=3){const i=a[0]+"//"+a[2];n=e.substring(e.indexOf(i)+i.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),n?t+n:t}}return e}function getUrlPrefix(e){const t=e.split("#");if(t.length>0){const n=t[0];let a=n;const i=n.split("/");return i.length>=3&&(a=i[0]+"//"+i[2]+"/"),a}}function isShowMenuRoute(){let e=window.$vueApp.config.globalProperties.showMenuRoute;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"))}function isPromise$1(e){return e&&Object.prototype.toString.call(e)==="[object Promise]"}function getLangs(){return getAllLanguages()}function getLangByShort(e){let t;const n=getLangs();return n&&(t=JSON.parse(n)[e]),t||(t="zh_CN"),t}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function analysisCondition(e,t,n,a,i,u,f){if(e===void 0||e===""||e===null)return!0;(typeof i>"u"||i===null)&&(i=!1);let h={};n&&typeof n=="string"&&n!==""?h=JSON.parse(n):n&&typeof n=="object"&&(h=n);let y={};a&&typeof a=="string"&&a!==""?y=JSON.parse(a):a&&typeof a=="object"&&(y=a);let _=[];return e&&typeof e=="string"&&e!==""?_=JSON.parse(e):e&&Array.isArray(e)&&(_=e),parseCondition(t,_,i,u,h,y,f)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(conditionList==null||conditionList.length===0)return!0;let conditions="";for(let e=0;e<conditionList.length;e++){const t=conditionList[e];let n=t.propName,a=t.propDbName;if((!n||n==="")&&(!a||a===""))continue;let i;if(isSql&&a){if(a.indexOf("parent_+_")!==-1?(a=a.replace("parent_+_",""),a=a.split("_+_")[1],i=getValue$2(parentFormData,a,isSql)):i=getValue$2(entity,a,isSql),i==null&&tableName&&a.toLowerCase().startsWith(tableName.toLowerCase()+".")){const M=a.substring(a.indexOf("."));i=getValue$2(entity,M,isSql)}}else n.indexOf("parent_+_")!==-1?(n=n.replace("parent_+_",""),n=n.split("_+_")[1],i=getValue$2(parentFormData,n,isSql)):i=getValue$2(entity,n,isSql),a&&i==null&&(i=getValue$2(entity,a,isSql));const u=t.operator,f=t.propValue,h=t.dataType,y=t.variableIsNull;let _=getPropValue(f,entity,additionalParamMap,contextParameterMap);y&&y==="null"&&(_===void 0||_==="")&&(_=null);let x=executeExpression(i,u,_,h);const T=t.leftBracket,O=t.rightBracket;let D=t.joinSign;if(T&&T!==null&&T!==""&&(conditions=conditions+T,conditions=conditions+" "),y&&y!=="null"&&(_==null||_+""=="")&&(y==="1=1"?x=!0:x=!1),conditions+=x+" ",O&&O!==null&&O!==""&&(conditions=conditions+O,conditions=conditions+" "),e<conditionList.length-1&&D&&D!==null&&D!==""){const M=D.toLowerCase();M==="and"?D=M.replace("and","&&"):M==="or"&&(D=M.replace("or","||")),conditions+=D+" "}}return console.log("parseCondition----conditions=",conditions),conditions?eval("("+conditions+")"):!0}const REPLACE_DOT="__";function getValue$2(e,t,n){let a=null;return e&&e!==null&&t&&t!==null&&(a=getValueByField(e,t),a==null&&n&&(a===void 0||a==null)&&t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),a=getValueByField(e,t))),a}function getValueByField(e,t){if(e&&e!==null){let n;return t.indexOf(".")>0?n=getSubEntityValue(e,t):(n=e[t.toUpperCase()],n===void 0&&(n=e[t.toLowerCase()])),n}}function getSubEntityValue(e,t){let n=null,a=e;const i=t.split("\\.");for(let u=0;u<i.length;u++){const f=i[u];u===i.length?n=getSubEntityFieldValue(a,f):a=getSubEntityFieldValue(a,f)}return n}function getSubEntityFieldValue(e,t){return e==null?null:e[t]}function getContextValue(e,t){let n=getLastNDate(t);return e&&(n=e[t]),n}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 n=e.substring(e.indexOf(":")+1);t=getLastNDay(parseInt(n))}return t}function getCurrentWeek(){const e=new Date,t=e.getTime(),n=e.getDay(),a=new Date(t+24*60*60*1e3*(0-(n+6)%7)),i=new Date(t+24*60*60*1e3*(6-(n+6)%7)),u=a.toLocaleDateString()+" "+a.toLocaleTimeString(),f=i.toLocaleDateString()+" "+i.toLocaleTimeString();return console.log(`getCurrentMonth从 ${u} 开始,到 ${f} 结束`),[a,i]}function getCurrentMonth(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1;e.setDate(1);const a=`${t}/${n<10?"0":""}${n}/01`;e.setMonth(e.getMonth()+2),e.setDate(0);const i=`${e.getFullYear()}/${e.getMonth()<9?"0":""}${e.getMonth()+1}/01`,u=new Date(Date.parse(a)),f=new Date(new Date(Date.parse(i)).getTime()-1e3),h=u.toLocaleDateString()+" "+u.toLocaleTimeString(),y=f.toLocaleDateString()+" "+f.toLocaleTimeString();return console.log(`getCurrentMonth从 ${h} 开始,到 ${y} 结束`),[u,f]}function getCurrentQuarter(){const e=new Date,t=(e.getMonth()+3)%12;let n;e.getMonth()<t+2?n=new Date(e.getFullYear(),t,1):n=new Date(e.getFullYear()+1,t,1);let a;n.getMonth()===11?a=new Date(n.getFullYear()+1,0,0):a=new Date(n.getFullYear(),n.getMonth()+3,0),a=new Date(a.getTime()+24*60*60*1e3-1e3);const i=n.toLocaleDateString()+" "+n.toLocaleTimeString(),u=a.toLocaleDateString()+" "+a.toLocaleTimeString();return console.log(`getCurrentQuarter从 ${i} 开始,到 ${u} 结束`),[n,a]}function getCurrentYear(){const e=new Date().getFullYear();let t=new Date(e,0);t.setMonth(0,1);let n=new Date(e+1,0);n=n.getTime()-1e3,n=new Date(n);const a=t.toLocaleDateString()+" "+t.toLocaleTimeString(),i=n.toLocaleDateString()+" "+n.toLocaleTimeString();return console.log(`getCurrentYear从 ${a} 开始,到 ${i} 结束`),[t,n]}function getLastNDay(e){let t=new Date,n=t.getFullYear(),a=t.getMonth()+1,i=t.getDate(),u=`${n}/${a<10?"0":""}${a}/${i}`;t=new Date(Date.parse(u)),t.setDate(t.getDate()+1),t=new Date(t.getTime()-1e3);let f=new Date;f.setDate(f.getDate()-(e-1));const h=f.getFullYear(),y=f.getMonth()+1,_=f.getDate(),x=`${h}/${y<10?"0":""}${y}/${_}`;f=new Date(Date.parse(x));const T=f.toLocaleDateString()+" "+f.toLocaleTimeString(),O=t.toLocaleDateString()+" "+t.toLocaleTimeString();console.log(`getLastNDay从 ${T} 开始,到 ${O} 结束`),retur[t]}function getPropValue(e,t,n,a,i,u,f){let h=null;if(e&&e!==null&&e!=="")if(e==="null")h=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),h=getContextValue(a,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),n&&n!=null&&Object.keys(n).indexOf(e)>=0&&n[e]&&n[e]!==null?h=n[e]:h=null;else if(e.includes("${obj."))if(t===void 0||t==null)h=null;else{const y=e.replace("${obj.","").replace("}","");h=getEntityFieldValue(t,y)}}else if(e.includes("${parent."))if(i===void 0||i==null)h=null;else{const y=e.replace("${parent.","").replace("}","");h=getEntityFieldValue(i,y)}else if(e.includes("${task."))if(f===void 0||f==null)h=null;else{const y=e.replace("${task.","").replace("}","");h=getEntityFieldValue(f,y)}else if(e.includes("${subObj."))if(u===void 0||u==null)h=null;else{const y=e.replace("${subObj.","").replace("}","");h=getEntityFieldValue(u,y)}else e.includes("${input.")?h=e.replace("${input.","").replace("}",""):h=e;return h}function analysisValue(e,t,n,a){if(!e)return;let i="";const u=e.split("-#-#");return u!=null&&u.length>0&&u.forEach(f=>{let h=getPropValue(f,t,n,a);(!h||h===null)&&(h=""),i+=h}),i}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){const a=getParentObjectUtil(t,e);if(a){const i=t.substring(t.lastIndexOf(".")+1);a[i]===void 0?a[t.substring(t.lastIndexOf(".")+1)]=n:a[i]=n}}else e[t]===void 0||e[t],e[t]=n}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),a=t.substring(t.lastIndexOf(".")+1);return n[a]}else return e[t]}function getEntityFieldValue(e,t,n){let a=getEntityFieldValueWithCase(e,t);return a==null&&(a=getEntityFieldValueWithCase(e,t.toLowerCase())),(a===void 0||a===null&&n===void 0)&&(a=getEntityFieldValueWithCase(e,t.toUpperCase())),a}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),a=t.substring(t.lastIndexOf(".")+1);return n[a]}else return e[t]}function getParentObjectUtil(e,t){const n=e.split(".");if(n.length===1)return t;{let a;for(let i=0;i<n.length-1;i++)i===0?a=getParentModelProp(n[i],t):a=getParentModelProp(n[i],a);return a}}function getParentModelProp(e,t){let n=getParentModelPropWithCase(e,t);return n===void 0&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),n===void 0&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}function getPropNameWhenJoinTable(e,t,n){if(e&&t!==void 0&&t===!0){const a="__";e.indexOf(".")>0?e=e.replace(".",a):n&&n!==null&&n!==""&&e.indexOf(n+a)<0&&(e=n+a+e)}return e}function isImage(e){return!!/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)}const utils={getSearchUserFields(){const e=getI18n();return[{value:"name",label:e.t("departmentUserTree.searchFieldUserName")},{value:"loginName",label:e.t("departmentUserTree.searchFieldLoginName")},{value:"email",label:e.t("departmentUserTree.searchFieldEmail")},{value:"telephone",label:e.t("departmentUserTree.searchFieldTelephone")},{value:"jobNumber",label:e.t("departmentUserTree.searchFieldJobNumber")},{value:"honorificName",label:e.t("departmentUserTree.searchFieldHonorificName")}]},removeRow(e,t){for(var n=e.length,a=0;a<n;a++)if(e[a].id===t.id)return a===0?(e.shift(),e):a===n-1?(e.pop(),e):(e.splice(a,1),e);return e},storeSeachValue(e,t,n){if(n&&n!==""){var a=e.getObject(t);if(a&&a.length>0){var i=a.filter(this.createFilter(n));if(i.length===0){const f={value:n};a.push(f),e.setObject(t,a)}}else{var u=[];const f={value:n};u.push(f),e.setObject(t,u)}this.restaurants=e.getObject(t)}},createFilter(e){return t=>t.value.toLowerCase().indexOf(e.toLowerCase())===0},handleSelectUtil(e,t){this.storeSeachValue(t,this.searchStoreKey,this.filterText),this.search(e.value)},analysisLabelTag(e,t,n,a){let i="";if(e){let f;if(e!==""&&typeof e=="string"?f=e.split("-#-#"):typeof e=="object"&&(f=e),f&&f.length>0)for(var u=0;u<f.length;u++){let h=f[u];if(h.indexOf("obj.")!==-1){if(h=h.replace("${obj.","").replace("}",""),t){let y=t[h];this.childIsObjectProp(h)&&(y=this.childObjectPropOriginalValue(t,h)),i+=y}}else if(h.indexOf("request.")!==-1){if(h=h.replace("${request.","").replace("}",""),a){const y=a[h];y&&(i+=y)}}else if(h.indexOf("input.")!==-1)h=h.replace("${input.","").replace("}",""),i+=h;else if(h.indexOf("context.")!==-1&&(h=h.replace("${context.","").replace("}",""),n)){const y=n[h];y&&(i+=y)}}}return i},childIsObjectProp(e){return e.indexOf(".")>0},childObjectPropOriginalValue(e,t){try{let n=e;return t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n}catch{return""}},getSelectUsers(e,t,n){return new Promise((a,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(u=>{a(u)}).catch(u=>{i(u)}):a([]):a([])})}},departmentTreeService={filterAppendNodes(e){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/search-pc-depts",this.searchParam).then(t=>{if(t){if(t.length===0){this.searchResult=[],this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")});return}this.searchResult=t}else this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")})})},search(e){this.searchValue=e;let t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},handleSelect(e){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/api/departments?departmentCode="+e.code).then(t=>{if(t!==null)for(const n in t)e.hasOwnProperty(n)&&(e[n]=t[n]);this.filterText="",this.searchValue="",this.setMemoryCacheData(e,"department"),this.multiple?this.selectResult.findIndex(a=>a.code===e.code)<0&&this.selectResult.push(e):(this.packageSelectResult(e),$emit(this,"result",this.selectNodeInfo))})},querySearch(e,t){!this.filterText&&this.filterText.length===0?this.memorySearch(e,t):(this.search(this.filterText),t([]))},clickSearch(){this.storeSeachValue(),this.search(this.filterText)},loadDepartmentWhenSearch(e,t){return new Promise((n,a)=>{if(t.length===e)n();else{const i=t[e];let u=i;const f="~";i.indexOf(f)>-1&&(u=i.substring(i.indexOf("~")+1)),this.loadDepartment(u).then(()=>{this.loadDepartmentWhenSearch(++e,t)}).catch(h=>{a(h)})}})},handleCheckNode(e,t){if(t.checkedKeys.indexOf(e.id)>-1){if(this.isloading=!0,e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const n=JSON.parse(e.data);this.selectUser(null,n)}e.childDepartments?(this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e),this.isloading=!1):e.leaf?this.isloading=!1:(this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e.id).then(n=>{this.$refs.deparmentTree.updateKeyChildren(e.id,n),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e)}),this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/child-departments/"+e.id).then(n=>{n&&!this.checkStrictly&&(n.forEach(a=>{this.selectUser(null,a)}),this.isloading=!1)}))}else this.cancelChildCheckedNodes(e)},loadNode(e,t){var n=0;e.level===0?n=0:n=e.data.id;var a=[];this.$refs.deparmentTree&&(a=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,a)},initLoadDepartment(e,t,n,a){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(i=>{if(n(i),this.$refs.deparmentTree.updateKeyChildren(e,i),e===0){const u=i[0].data;i[0].disable=!0,this.tenantInfo=JSON.parse(u),this.containBranch=i[0].containBranch,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId)}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(t.data)):a&&a.indexOf(e)>-1&&this.checkedNodeAndChildren(t.data)})},loadDepartment(e,t,n){return new Promise((a,i)=>{this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(u=>{this.$refs.deparmentTree.updateKeyChildren(e,u),this.$refs.deparmentTree.store.nodesMap[e]&&(this.$refs.deparmentTree.store.nodesMap[e].expanded=!0),a()}).catch(u=>{console.log("error",u)})})},loadPointDepartments(){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/point-departments",this.departmentInfo).then(e=>{this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId,e),this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]&&(this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded=!0)})},getSelectDepts(e,t,n){return new Promise((a,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(u=>{a(u)}).catch(u=>{i(u)}):a([]):a([])})},packageAllDept(){var e={id:this.tenantNodeId,name:"所有部门"};return e},initSelectDepts(){return new Promise((e,t)=>{const n=[];this.selectDepartmentInfo?this.selectDepartmentInfo===this.tenantNodeId||this.selectDepartmentInfo==="所有部门"?(n.push(this.packageAllDept()),e(n)):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(a=>{e(a)}).catch(a=>{t(a)}):e(n)})}},searchResult_vue_vue_type_style_index_0_lang$3="",_sfc_main$16={data(){let e=this.height;return e=e.substring(0,e.indexOf("px")),{singleUserIndex:null,selectedUser:null,myHeight:parseInt(e)+30+"px",ElIconPlus:plus_default,ElIconDelete:delete_default}},name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},created(){console.log("search-result---",this.gridData)},methods:{removeUser(e,t){$emit(this,"removeUser",e,t)},addUser(e,t){$emit(this,"addUser",e,t)},selectUser(e){$emit(this,"selectResult",this.gridData[e])},rowClick(e,t,n){this.singleUserIndex=e.row_index,$emit(this,"selectResult",e)},tableRowClassName({row:e,rowIndex:t}){e.row_index=t},rowDblclick(e,t,n){this.multiple?$emit(this,"addUser",null,e):$emit(this,"resultRowDblclick",e)},isDisable(e){if(this.selectResult){const t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept(e){return t=>t.id===e.id}},emits:["removeUser","addUser","selectResult","resultRowDblclick"]},_hoisted_1$R={style:{height:"100%"}},_hoisted_2$y=["title"],_hoisted_3$n=["title"],_hoisted_4$g=["title"],_hoisted_5$d={class:"roleQuery_center_area",style:{height:"395px"}},_hoisted_6$a={class:"roleQuery_notAvailable",style:{width:"120px",height:"120px"}},_hoisted_7$6={class:"roleQuery_notAvailable_text"};function _sfc_render$13(e,t,n,a,i,u){const f=Vue.resolveComponent("el-radio"),h=Vue.resolveComponent("el-table-column"),y=Vue.resolveComponent("el-button"),_=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$R,[Vue.createVNode(_,{ref:"superGrid",data:n.gridData,"max-height":i.myHeight,"row-class-name":u.tableRowClassName,border:"",fit:"","row-key":"id",onRowClick:u.rowClick,onRowDblclick:u.rowDblclick},{empty:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$d,[Vue.createElementVNode("div",_hoisted_6$a,[Vue.createElementVNode("span",_hoisted_7$6,Vue.toDisplayString(e.$t("imatrixUIPromptMessage.NoContent")),1)])])]),default:Vue.withCtx(()=>[n.multiple===!1?(Vue.openBlock(),Vue.createBlock(h,{key:0,width:"60"},{default:Vue.withCtx(x=>[Vue.createVNode(f,{modelValue:i.singleUserIndex,"onUpdate:modelValue":t[0]||(t[0]=T=>i.singleUserIndex=T),label:x.$index,onChange:u.selectUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(x.$index+1),1)]),_:2},1032,["modelValue","label","onChange"])]),_:1})):Vue.createCommentVNode("",!0),n.multiple&&n.isSearchResult?(Vue.openBlock(),Vue.createBlock(h,{key:1,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(y,{disabled:u.isDisable(x.row),icon:i.ElIconPlus,circle:"",size:"default",type:"primary",onClick:T=>u.addUser(x.$index,x.row)},null,8,["disabled","icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple?(Vue.openBlock(),Vue.createBlock(h,{key:2,label:e.$t("superGrid.index"),align:"center",width:"60px"},{default:Vue.withCtx(x=>[Vue.createTextVNode(Vue.toDisplayString(x.$index+1),1)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple&&!n.isSearchResult?(Vue.openBlock(),Vue.createBlock(h,{key:3,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"right",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(y,{icon:i.ElIconDelete,circle:"",size:"default",type:"danger",onClick:T=>u.removeUser(x.$index,x.row)},null,8,["icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(h,{label:e.$t("departmentTreeInline.name"),width:170,prop:"name"},{default:Vue.withCtx(x=>[Vue.createElementVNode("span",{title:x.row.showName,class:"ellipsis cell--span"},Vue.toDisplayString(x.row.showName),9,_hoisted_2$y)]),_:1},8,["label"]),Vue.createVNode(h,{label:e.$t("departmentTreeInline.code"),width:140,prop:"code"},{default:Vue.withCtx(x=>[Vue.createElementVNode("span",{title:x.row.code,class:"ellipsis cell--span"},Vue.toDisplayString(x.row.code),9,_hoisted_3$n)]),_:1},8,["label"]),Vue.createVNode(h,{label:e.$t("departmentTreeInline.namePath"),width:140,prop:"namePath"},{default:Vue.withCtx(x=>[Vue.createElementVNode("span",{title:x.row.namePath,class:"ellipsis cell--span"},Vue.toDisplayString(x.row.namePath),9,_hoisted_4$g)]),_:1},8,["label"])]),_:1},8,["data","max-height","row-class-name","onRowClick","onRowDblclick"])])}const UserResult$1=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$13]]),memoryCacheUtils={memorySearch(e,t){var n=this.memoryCacheData,a=n;setTimeout(()=>{t(a)},10*Math.random())},setMemoryCacheData(e,t){t==="departmentUser"?this.setDepartmentUserMemoryCacheData(e):t==="department"&&this.setDepartmentMemoryCacheData(e)},getMemoryCacheData(e){e==="departmentUser"?this.getDepartmentUserMemoryCacheData():e==="department"&&this.getDepartmentMemoryCacheData()},setDepartmentUserMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),a=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.loginName===void 0||e.loginName===null||e.loginName==="undefined"?"":e.loginName,u=e.mainDepartmentName===void 0||e.mainDepartmentName===null||e.mainDepartmentName==="undefined"?"":e.mainDepartmentName;const f=a+"("+i+"/"+u+")";var h=-1;n&&n.length>0?h=n.findIndex(y=>y.loginName===e.loginName):n=[],e.value=f,h<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(h,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),a=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.code===void 0||e.code===null||e.code==="undefined"?"":e.code;const u=a+"("+i+")";var f=-1;n&&n.length>0?f=n.findIndex(h=>h.code===e.code):n=[],e.value=u,f<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(f,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},getDepartmentUserMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)},getDepartmentMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)}},departmentMultiTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$15={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],selectResult:[],isloading:!1,multiple:!0,memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentMultiTree",components:{UserResult:UserResult$1},props:{checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},created(){this.initSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(e=>{e&&(this.selectResult=e)})},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){let t=e;e.data&&(t=JSON.parse(e.data)),this.selectUser(null,t),this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(a=>{this.checkedNodeAndChildren(a)})},cancelChildCheckedNodes(e){const t=JSON.parse(e.data);this.selectResult=this.removeRow(this.selectResult,t),e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(a=>{this.$refs.deparmentTree.setChecked(a.id,!1),this.cancelChildCheckedNodes(a)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.clickNodeWhenMultiple(e)},clickNodeWhenMultiple(e){var t=[];if(this.$refs.deparmentTree&&(t=this.$refs.deparmentTree.getCheckedKeys()),t&&t.indexOf(e.id)>-1)this.$refs.deparmentTree.setChecked(e.id,!1),this.checkStrictly||this.cancelChildCheckedNodes(e),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0;else{if(e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const a=JSON.parse(e.data);this.selectUser(null,a)}this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&n.length>0?this.checkStrictly||this.checkedNodeAndChildren(e):this.isClickNode=!0}},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1,t={ids:[],names:[],codes:[],zhNames:[],enNames:[],departments:[]};if(this.selectResult.length===0)e=!0;else for(var n=0;n<this.selectResult.length;n++){var a=this.selectResult[n];t.ids.push(a.id),t.codes.push(a.code),a.enName?t.enNames.push(a.enName):t.enNames.push(""),a.department?t.departments.push(a.department):t.departments.push(a);const i=a.showName;t.names.push(i),t.zhNames.push(a.name)}t.ids.length>0?(t.containBranch=this.containBranch,$emit(this,"result",t)):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},selectUser(e,t){const n=this.selectResult.filter(this.filterDept(t));n&&n.length===0&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t),this.setMemoryCacheData(t,"department"))},filterDept(e){return t=>t.id===e.id},filterDeptNode(e){return t=>t+""==e.id+""},removeUser(e,t){if(t.nodeId){const n=t.nodeId;this.$refs.deparmentTree&&n&&this.$refs.deparmentTree.setChecked(n,!1)}else if(this.$refs.deparmentTree){const a=this.$refs.deparmentTree.getCheckedKeys().filter(this.filterDeptNode(t));a.length>0&&a.forEach(i=>{this.$refs.deparmentTree.setChecked(i,!1)})}this.selectResult=this.removeRow(this.selectResult,t),(!this.selectResult||this.selectResult.length===0)&&this.$refs.deparmentTree&&this.$refs.deparmentTree.setCheckedKeys([])}},emits:["result"]},_hoisted_1$Q={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$x=["title"],_hoisted_3$m={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_4$f={style:{"text-align":"left","font-size":"16px"}},_hoisted_5$c={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$12(e,t,n,a,i,u){const f=Vue.resolveComponent("el-button"),h=Vue.resolveComponent("el-autocomplete"),y=Vue.resolveComponent("el-header"),_=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),T=Vue.resolveComponent("Calendar"),O=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),M=Vue.resolveComponent("user-result"),j=Vue.resolveComponent("el-main"),Q=Vue.resolveComponent("el-container"),q=Vue.resolveComponent("el-aside"),F=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(Q,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(q,{width:"350px"},{default:Vue.withCtx(()=>[Vue.createVNode(Q,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=H=>i.filterText=H),"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName"),class:"inline-input inline-input-custom",size:"default",onSelect:e.handleSelect,onKeyup:Vue.withKeys(e.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(f,{icon:i.ElIconSearch,size:"default",onClick:e.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onSelect","onKeyup"])]),_:1}),Vue.createVNode(j,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$Q,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":u.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!0,"check-strictly":"",lazy:"","node-key":"id",onCheck:e.handleCheckNode,onCheckChange:u.handleCheckChange,onNodeExpand:u.handleNodeExpand,onNodeClick:u.handleNodeClick},{default:Vue.withCtx(({node:H,data:le})=>[Vue.createElementVNode("span",null,[Vue.createVNode(O,null,{default:Vue.withCtx(()=>[H.data.id===-1||H.data.branch?(Vue.openBlock(),Vue.createBlock(_,{key:0})):H.data.id===-2||H.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(T,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{title:H.label},Vue.toDisplayString(H.label),9,_hoisted_2$x)])]),_:1},8,["filter-node-method","load","props","onCheck","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$m,[Vue.createVNode(M,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!0,"select-result":i.selectResult,onAddUser:u.selectUser},null,8,["grid-data","height","select-result","onAddUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),Vue.createVNode(Q,null,{default:Vue.withCtx(()=>[Vue.createVNode(j,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$f,Vue.toDisplayString(e.$t("departmentTreeInline.selectedDept"))+": ",1),Vue.createElementVNode("div",_hoisted_5$c,[Vue.withDirectives(Vue.createVNode(M,{"grid-data":i.selectResult,height:n.height,"is-search-result":!1,multiple:!0,onRemoveUser:u.removeUser},null,8,["grid-data","height","onRemoveUser"]),[[F,i.isloading]])])]),_:1})]),_:1})]),_:1})])}const InlineDepartmentMultiTree=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$12]]),departmentSingleTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$14={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentSingleTree",components:{UserResult:UserResult$1},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){this.$refs.deparmentTree.setChecked(e.id,!0);const t=e.childDepartments;t&&t.forEach(n=>{this.checkedNodeAndChildren(n)})},cancelChildCheckedNodes(e){e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const t=e.childDepartments;t&&t.forEach(n=>{this.$refs.deparmentTree.setChecked(n.id,!1),this.cancelChildCheckedNodes(n)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.selectSingleNode(e,!1)},selectSingleNode(e,t){if(this.isDepartmentNode(e)){const n=JSON.parse(e.data);this.packageSelectResult(n),this.setMemoryCacheData(n,"department")}},packageSelectResult(e){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var t={id:e.id,name:e.showName,code:e.code,containBranch:this.containBranch,zhName:e.name,enName:e.enName,department:e};this.selectNodeInfo=t},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1;this.selectNodeInfo?$emit(this,"result",this.selectNodeInfo):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},getSelectUser(e){this.packageSelectResult(e),this.setMemoryCacheData(e,"department")},resultRowDblclick(e){this.packageSelectResult(e),$emit(this,"result",this.selectNodeInfo)}},emits:["result"]},_hoisted_1$P={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$w=["title"],_hoisted_3$l={key:1,style:{height:"100%",overflow:"hidden"}};function _sfc_render$11(e,t,n,a,i,u){const f=Vue.resolveComponent("el-button"),h=Vue.resolveComponent("el-autocomplete"),y=Vue.resolveComponent("el-header"),_=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),T=Vue.resolveComponent("Calendar"),O=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),M=Vue.resolveComponent("user-result"),j=Vue.resolveComponent("el-main"),Q=Vue.resolveComponent("el-container");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(Q,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=q=>i.filterText=q),"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName"),class:"inline-input inline-input-custom",size:"default",onSelect:e.handleSelect,onKeyup:Vue.withKeys(e.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(f,{icon:i.ElIconSearch,onClick:e.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onSelect","onKeyup"])]),_:1}),Vue.createVNode(j,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$P,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":u.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!1,"check-strictly":"",lazy:"","node-key":"id",onCheckChange:u.handleCheckChange,onNodeExpand:u.handleNodeExpand,onNodeClick:u.handleNodeClick},{default:Vue.withCtx(({node:q,data:F})=>[Vue.createElementVNode("span",null,[Vue.createVNode(O,null,{default:Vue.withCtx(()=>[q.data.id===-1||q.data.branch?(Vue.openBlock(),Vue.createBlock(_,{key:0})):q.data.id===-2||q.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(T,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{class:Vue.normalizeClass(F.nodeType&&F.nodeType==="DEPARTMENT"&&i.searchValue&&F.name.indexOf(i.searchValue)>-1?"searchResult":""),title:q.label},Vue.toDisplayString(q.label),11,_hoisted_2$w)])]),_:1},8,["filter-node-method","load","props","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$l,[Vue.createVNode(M,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!1,onResultRowDblclick:u.resultRowDblclick,onSelectResult:u.getSelectUser},null,8,["grid-data","height","onResultRowDblclick","onSelectResult"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})])}const InlineDepartmentSingleTree=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$11]]),_sfc_main$13={name:"InlineDepartmentTree",components:{InlineDepartmentMultiTree,InlineDepartmentSingleTree},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data(){return{selectNodeInfo:null}},mounted(){},methods:{result(e){this.selectNodeInfo=e,$emit(this,"result",e)},selectDepartment(){this.$refs.inlineDeparmentTree.selectDepartment()}},emits:["result"]};function _sfc_render$10(e,t,n,a,i,u){const f=Vue.resolveComponent("inline-department-multi-tree"),h=Vue.resolveComponent("inline-department-single-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[n.multiple?(Vue.openBlock(),Vue.createBlock(f,{key:0,ref:"inlineDeparmentTree",height:n.height,"check-strictly":n.checkStrictly,"department-info":n.departmentInfo,"select-department-info":n.selectDepartmentInfo,"search-field":n.searchField,separator:n.separator,onResult:u.result},null,8,["height","check-strictly","department-info","select-department-info","search-field","separator","onResult"])):Vue.createCommentVNode("",!0),n.multiple?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(h,{key:1,ref:"inlineDeparmentTree","department-info":n.departmentInfo,onResult:u.result},null,8,["department-info","onResult"]))])}const InlineDepartmentTree=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$10]]),_sfc_main$12={name:"DepartmentTree",components:{InlineDepartmentTree},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data(){let e=this.$t("imatrixUIMessage.pleaseSelectDepartment");return this.title&&(e=this.title),{myTitle:e}},methods:{result(e){$emit(this,"close",e)},selectDepartment(){this.$refs.inlineDeparmentTree.selectDepartment()}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$O={class:"dialog-footer"};function _sfc_render$$(e,t,n,a,i,u){const f=Vue.resolveComponent("inline-department-tree"),h=Vue.resolveComponent("el-button"),y=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(y,{"close-on-click-modal":!1,title:i.myTitle,width:n.multiple?"920px":"509px","append-to-body":"",class:"user-tree","model-value":"",onClose:t[1]||(t[1]=_=>e.$emit("close")),onClosed:t[2]||(t[2]=_=>e.$emit("closed")),onOpen:t[3]||(t[3]=_=>e.$emit("open")),onOpend:t[4]||(t[4]=_=>e.$emit("opend"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$O,[Vue.createVNode(h,{class:"button--default",size:"default",onClick:t[0]||(t[0]=_=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(h,{size:"default",type:"primary",onClick:u.selectDepartment},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createVNode(f,{ref:"inlineDeparmentTree","check-strictly":n.checkStrictly,"department-info":n.departmentInfo,height:n.height,multiple:n.multiple,"search-field":n.searchField,"select-department-info":n.selectDepartmentInfo,separator:n.separator,onResult:u.result},null,8,["check-strictly","department-info","height","multiple","search-field","select-department-info","separator","onResult"])]),_:1},8,["title","width"])])}const DepartmentTree=_export_sfc$1(_sfc_main$12,[["render",_sfc_render$$]]);DepartmentTree.install=function(e){e.component(DepartmentTree.name,DepartmentTree)};const hamburger_vue_vue_type_style_index_0_scoped_5241df2b_lang="",_sfc_main$11={name:"Hamburger",components:{Expand:expand_default,Fold:fold_default},props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick(){$emit(this,"toggleClick")}},emits:["toggleClick"]},_hoisted_1$N={class:"00-Color/9-gray"};function _sfc_render$_(e,t,n,a,i,u){const f=Vue.resolveComponent("Fold"),h=Vue.resolveComponent("el-icon"),y=Vue.resolveComponent("Expand");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$N,[n.isActive?(Vue.openBlock(),Vue.createBlock(h,{key:0,onClick:u.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"])):(Vue.openBlock(),Vue.createBlock(h,{key:1,onClick:u.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"]))])}const hamburger=_export_sfc$1(_sfc_main$11,[["render",_sfc_render$_],["__scopeId","data-v-5241df2b"]]);hamburger.install=function(e){e.component(hamburger.name,hamburger)};const svgIcon_vue_vue_type_style_index_0_scoped_ef299c9a_lang="",_sfc_main$10={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},_hoisted_1$M=["xlink:href"];function _sfc_render$Z(e,t,n,a,i,u){return Vue.openBlock(),Vue.createElementBlock("svg",{class:Vue.normalizeClass(u.svgClass),"aria-hidden":"true"},[Vue.createElementVNode("use",{"xlink:href":u.iconName},null,8,_hoisted_1$M)],2)}const SvgIcon=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$Z],["__scopeId","data-v-ef299c9a"]]);SvgIcon.install=function(e){e.component(SvgIcon.name,SvgIcon)};const _sfc_main$$={name:"IndexColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1},pagination:{type:Object,default:null},currentPage:{type:Number,default:0},options:{type:Object,default:null}},computed:{fixed(){return this.column.fixed&&(this.column.fixed==="false"||this.column.fixed==="")?!1:this.column.fixed&&this.column.fixed==="right"?"left":this.column.fixed},startIndex(){return this.options.indexContinuous?(this.currentPage-1)*this.pagination.pageSize+1:1}}},_hoisted_1$L={class:"cell--span"},_hoisted_2$v={class:"cell--span"};function _sfc_render$Y(e,t,n,a,i,u){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",fixed:u.fixed,width:n.column.width?n.column.width:"80"},{header:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_1$L,Vue.toDisplayString(e.$t("superGrid.index")),1)]),default:Vue.withCtx(h=>[Vue.createElementVNode("span",_hoisted_2$v,Vue.toDisplayString(h.$index+u.startIndex),1)]),_:1},8,["fixed","width"])}const IndexColumn=_export_sfc$1(_sfc_main$$,[["render",_sfc_render$Y]]),_sfc_main$_={name:"SelectionColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1}},computed:{fixed(){return this.column.fixed===void 0||this.column.fixed===null||this.column.fixed===""||this.column.fixed==="false"?!1:this.column.fixed&&this.column.fixed==="right"?"left":this.column.fixed}}};function _sfc_render$X(e,t,n,a,i,u){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",type:"selection",label:n.column.label,fixed:u.fixed,width:n.column.width?n.column.width:"50"},null,8,["label","fixed","width"])}const SelectionColumn=_export_sfc$1(_sfc_main$_,[["render",_sfc_render$X]]),store$1=new Map;function getColumnValues(e,t){const n=[];for(const a of e)n.push(a[t]);return n}function getSpanValuesForColumn(e,t,n){const a=[];let i=0;for(let u=0;u<e.length;u++)if(u===0)a.push(1),i=0;else if(n&&n!==""){let f="",h="";const y=n.split(",");for(let _=0;_<y.length;_++)f+=e[u][y[_]],h+=e[u-1][y[_]];f===h?(a[i]+=1,a.push(0)):(a.push(1),i=u)}else e[u][t]===e[u-1][t]?(a[i]+=1,a.push(0)):(a.push(1),i=u);return a}function getFirstEditableColumn(e){e||(e=store$1.get("_list_code"));for(const t of store$1.get(e).columns)if(t.editable)return t.prop;return null}const ArrowKeyAction={getIndex(e){let t=0;for(const n of store$1.columns){if(n.prop===e)return t;t++}},getLeftColumn(e){const t=ArrowKeyAction.getIndex(e);let n=0;for(n=t-1;n>=0;n--)return store$1.columns[n].editable?store$1.columns[n].prop:null}};function setCurrentRow(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);e<n.gridData.length&&(n.isMulitiSelect?(n.superGrid.clearSelection(),n.superGrid.toggleRowSelection(n.gridData[e],!0)):n.superGrid.setCurrentRow(n.gridData[e]))}function isObjectValueEqual(e,t){if(!e&&!t)return!0;if(e&&t){var n=getProps(e),a=getProps(t);let y=n;n.length>a.length?y=n:y=a;for(var i=0;i<y.length;i++){var u=y[i];if(u!=="$editing"){var f=e[u],h=t[u];if(f!==h)return!1}}return!0}return!1}function getProps(e){const t=[];for(var n in e)t.push(n);return t}function isLastEditRowSave(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);return t.isEditRow!==void 0&&t.isEditRow===!0?!1:typeof t.$rowIndex>"u"||t.$rowIndex===null||typeof t.$lastSaveRowIndex>"u"||t.$lastSaveRowIndex===null||t.$rowIndex===t.$lastSaveRowIndex}function isCanRefreshGrid(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);return!(t.isEditRow!==void 0&&t.isEditRow===!0||!isLastEditRowSave()||typeof t.isCreateRow<"u"&&t.isCreateRow===!0)}function getEntityId(e){if(e&&e.id)return e.id;if(e&&e.ID)return e.ID}function isDisableEdit(e,t,n){t||(t=store$1.get("_list_code"));let a=!1;const i=store$1.get(t),u=isHasEditOption("disableEditProps",t)?i.options.lineEditOptions.disableEditProps:null;if(u){const h=u.split(",");h&&h.indexOf(e)>=0&&(a=!0)}const f=getEntityId(n);if(a===!1&&i.options){const h=i.options.validateRules;if(h){const y=h.filter(x=>x.name&&(x.name===e||x.name==="all_fields"));let _=!0;if(y&&y.length>0){for(let x=0;x<y.length;x++)y[x].rowIndexes===void 0||y[x].rowIndexes===null||y[x].rowIndexes.indexOf(f)>=0?_=y[x].canEdit:_=!0;_===!1&&(a=!0)}}if(a===!1){const y=i.options.actionPermission;isRowCanUpdate(y,f)===!1&&(a=!0)}}return a}function isRequiredEdit(e,t){const n=e.prop;t||(t=store$1.get("_list_code"));let a=!1;const i=store$1.get(t);if(i&&i.options){const u=i.options.validateRules;if(u){const f=u.filter(h=>h.name&&(h.name===n||h.name==="all_fields")&&h.canEdit!==void 0&&h.canEdit===!0);f&&f.length>0&&(a=!0)}else if(e.validations){const h=JSON.parse(e.validations).filter(y=>y.required===!0);h&&h.length>0&&(a=!0)}}return a}function isRowCanUpdate(e,t){let n=!0;const a=e;return a&&a.canUpdate!==void 0&&a.canUpdate===!1&&t!==void 0&&a.updateRowIndexes&&a.updateRowIndexes.indexOf(t)>=0&&(n=!1),n}function isHasEditOption(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);return!!(n.options.lineEditOptions&&n.options.lineEditOptions[e])}function isEditOptionFunction(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);return!!(n.options.lineEditOptions&&typeof n.options.lineEditOptions[e]=="function")}function isHasOptionFunction$1(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);return!!(n.options&&typeof n.options[e]=="function")}function getGridParams$3(){const e={columns:[],gridData:[],orgGridData:[],canSaveRow:!0,showValidateError:!0,defaultLineEditOptions:{aftersaveIsCreateRow:!0,autoSave:!0,isSaveByEnter:!0,isRestoreByEsc:!0,aftersaveIsCancelEditState:!0,afterRestoreIsCancelEditState:!0,input:function(){}},options:{lineEditOptions:{}}};return Vue__namespace.reactive(e)}function addDynamicProp$1(e,t,n){const a=t.split(".");if(a.length===1){n!==void 0?e[t]=n:e[t]=null;return}let i=e;for(let u=0;u<a.length-1;u++)i[a[u]]===void 0&&(i[a[u]]={}),i=i[a[u]];n!==void 0?i[a[a.length-1]]=n:i[a[a.length-1]]=null}function addDynamicPropDateSection(e,t,n){const a=t.split(".");if(a.length===1){n!==void 0?e[t]=n:e[t]=[new Date,new Date];return}let i=e;for(let u=0;u<a.length-1;u++)i[a[u]]===void 0&&(i[a[u]]={}),i=i[a[u]];n!==void 0?i[a[a.length-1]]=n:i[a[a.length-1]]=[new Date,new Date]}function getTableHeight$1(e,t,n){let a=120;const i=document.querySelector(".box-card");return i&&i!==null&&(a=16*2+20+34+5),isShowMenuRoute()===!0&&(a=a+50),document.querySelector(".el-tabs__content ."+t)&&(a=a+80),n==null||n===""?n=window.innerHeight:a=0,n-e.$el.offsetTop-a}function getExtraParam(e,t){const n={searchParam:e};if(n.withDataPermission=t.options.isWithDataPermission,n.isWorkflowEntity=t.options.isWorkflowEntity,t.options.extraParam)for(const a in t.options.extraParam)n[a]=t.options.extraParam[a];return n}function analysisFileSetObj(e,t){let n="",a="";return e&&(e.showNameData&&(t?e.showNameData.dbName&&(n=e.showNameData.dbName):e.showNameData.name&&(n=e.showNameData.name)),e.serverNameData&&(t?e.serverNameData.dbName&&(a=e.serverNameData.dbName):e.serverNameData.name&&(a=e.serverNameData.name))),{showName:n,serverPath:a}}function otherFilesToStandard(e,t,n,a){const i=[];if(n){if(n&&n.length>0)for(var u=0;u<n.length;u++){const h=n[u],y=packageFile(h[t.showName],h[t.serverPath]);i.push(y)}}else if(a){const h=a.showName,y=a.serverPath;if(h&&y){const _=h.split(","),x=y.split(",");for(var f=0;f<_.length;f++){const T=packageFile(_[f],x[f]);i.push(T)}}}return i}function packageFile(e,t){e&&(e=e.replace("#","~~").replace("?","~$").replace("&","$"));const n={};n.showName=e,n.serverPath=t,n.showName&&/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)&&(n.isImg=!0);const a=getToken();let i=window.$vueApp.config.globalProperties.baseURL+"/common/super-form/downloads?jwt="+a;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(i=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/downloads?jwt="+a);const u=i+"&showName="+encodeURI(n.showName)+"&serverPath="+n.serverPath;return n.src=u,n}function getFileList(e,t,n){let a=[];if(t.fileSet&&t.fileSet!==""&&(t.componentType==="annex"||t.componentType==="multipartUpload")){const i=JSON.parse(t.fileSet),u=analysisFileSetObj(i,n);if(i&&i.multiple)if(i.childAnnexDataTableCode){const f=e[t.prop];a=otherFilesToStandard(i,u,f,null)}else{const f={showName:getEntityFieldValue(e,u.showName),serverPath:getEntityFieldValue(e,u.serverPath)};a=otherFilesToStandard(i,u,null,f)}else{const f=getEntityFieldValue(e,u.showName),h=getEntityFieldValue(e,u.serverPath);a.push(packageFile(f,h))}}return a}function getDynamicDataSourceOptions(e,t,n){let a;n&&(console.log("getDynamicDataSourceOptions--additionalParamMap=",n),n&&typeof n=="object"?a=JSON.stringify(n):n&&n!==""&&(a=n));const i={isSql:t,additionalParameter:a};if(e.valueSetOptions){const u=JSON.parse(e.valueSetOptions);u&&u.valueSetOptions&&(i.valueSetOptions=u.valueSetOptions),u.dynamicDataSourceCode&&u.dynamicDataSourceCode!==""&&(i.dynamicDataSourceCode=u.dynamicDataSourceCode)}return i}function isDynamicDataSourceSource(e){return!!(e.valueSet&&e.valueSet.length>0&&e.valueSet[0].value==="dynamicDataSource")}function getLastPageNum(e,t){return e==null||e===0||t==null||t===0?1:Math.ceil(e/t)}function scrollYToBottom(e){const t=document.querySelector("."+e+" .el-table--scrollable-y .el-table__body-wrapper");console.log("scrollDivElement==",t),t&&t!==null&&(console.log("scrollDivElement==scrollDivElement.scrollHeight=",t.scrollHeight),t.scrollTop=t.scrollHeight)}function getAdditionalParamMap(e){let t=null;return e.additionalParamMap&&typeof e.additionalParamMap=="object"?t=e.additionalParamMap:e.additionalParamMap&&e.additionalParamMap!==""&&(t=JSON.parse(e.additionalParamMap)),t}const dynamicSourceSelectService={findDynamicDataSourceByCode(e,t,n,a,i){let u,f,h,y,_,x;n&&(u=n.searchText,u==null&&(u=""),typeof n.watchAttrValue=="array"?f=n.watchAttrValue.join(","):f=n.watchAttrValue,f==null&&(f=""),h=n.parent,y=n._listCode,_=n._formCode,x=n._tableName);const T={searchText:u,watchAttrValue:f,parent:h};if(a&&a!==""&&(T.additionalParamMap=JSON.parse(a)),T.additionalParamMap===void 0&&(T.additionalParamMap={}),this.listToolbarFormData)for(const O in this.listToolbarFormData){const D=this.listToolbarFormData[O];if(D&&O){let M=D;Array.isArray(D)&&(M=D.join(",")),T.additionalParamMap[O]=M}}return y&&(T.additionalParamMap._listCode=y),_&&(T.additionalParamMap._formCode=_),x&&(T.additionalParamMap._tableName=x),t&&t!==null&&(T.entity=t),i||(i=window.$vueApp.config.globalProperties.baseURL),new Promise((O,D)=>{window.$vueApp.config.globalProperties.systemCode!==void 0&&window.$vueApp.config.globalProperties.systemCode==="agilebuilder"?O():this.$http.post(i+"/common/dynamic-data-source/"+e,T).then(M=>{M.backendUrl?this.$http.post(M.backendUrl+"/common/dynamic-data-source/"+e,T).then(j=>{O(j)}).catch(j=>{D(j)}):O(M)}).catch(M=>{D(M)})})}},events$2={change:function(e){const t=this.getSelectedOptionItem(e);this.$emit("change",e,t)},visibleChange:function(e){this.$emit("visible-change",e)},removeTag:function(e,t){this.$emit("remove-tag",t),Array.isArray(this.value)&&this.value.length===1&&e&&(this.clearMarkValue(),this.remoteQuery("",null))},clear:function(){this.clearMarkValue(),this.$emit("clear")},blur:function(e){this.$emit("blur",e)},focus:function(e){this.$emit("focus",e)},input(e){this.$emit("update:value",e)},getSelectedOptionItem(e){if(this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0&&Array.isArray(e)){const n=[];for(var t=0;t<e.length;t++)n.push(this.optionItems.find(a=>a[this.valueAttribute]===e[t]));return n}else return this.optionItems.find(n=>n[this.valueAttribute]===e)}};function mitt(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(i){i(n)}),(a=e.get("*"))&&a.slice().map(function(i){i(t,n)})}}}const emitter$1=mitt(),bus$1={};bus$1.$on=emitter$1.on,bus$1.$emit=emitter$1.emit,bus$1.$off=emitter$1.off;const dynamicSourceSelect_vue_vue_type_style_index_0_lang="",dynamicSourceSelect_vue_vue_type_style_index_1_scoped_5eebc4ae_lang="",_sfc_main$Z={name:"DynamicSourceSelect",components:{},model:{prop:"value",event:"input"},props:{column:{type:Object,default:null},value:{type:[String,Boolean,Number,Array],default:null},baseProps:{type:Object,default:null},entity:{type:Object,default:null},options:{type:Object,default:null},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},parent:{type:Object,default:null},listCode:{type:String,default:null},formCode:{type:String,default:null},listToolbarFormData:{type:Object,default:()=>({})},fullWidth:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},size:{type:String,default:"default"},allowCreate:{type:Boolean,default:!1},analysisArea:{type:Number,default:null},placeholder:{type:String,default:null},optionWidth:{default:0}},inject:{isPageInfo:{value:"isPageInfo",default:!1}},data(){const e=Object.assign({},this.baseProps);let t;this.entity&&(t=JSON.stringify(this.entity));let n=[];return this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0&&this.value!==void 0&&this.value!==null&&this.value&&Array.isArray(this.value)&&(n=JSON.parse(JSON.stringify(this.value))),{markValue:t,optionItems:[],myProps:e,valueSetOptions:[],dynamicDataSourceCode:"",loading:!1,valueAttribute:null,remote:!1,additionalParameterStr:this.options.additionalParameter,isLoaded:!1,watchAttr:null,backendUrl:null,descriptionAttribute:null,queryParam:{},lastValues:n}},watch:{baseProps:{deep:!0,handler(e){this.myProps=Object.assign({},e)}}},created(){if(this.options&&this.options.dynamicDataSourceCode){this.dynamicDataSourceCode=this.options.dynamicDataSourceCode.trim();const e={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};this.parent&&(e.parent=this.parent),this.isPageInfo||this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,e).then(t=>{if(t.backendUrl&&(this.backendUrl=t.backendUrl),t.fuzzyQuery!==void 0&&t.fuzzyQuery===!0&&(this.remote=!0),this.options&&this.options.valueSetOptions&&(this.valueSetOptions=this.options.valueSetOptions),this.options&&this.options.isSql!==void 0&&this.options.isSql!==null&&(this.isSql=this.options.isSql),this.watchAttr){let n;this.watchAttr.split(",").forEach(i=>{this.entity&&(n=this.entity[i]),this.$watch("entity."+i,function(u,f){this.watchAttrValueChange(u),this.optionItems.filter(y=>y[this.valueAttribute]===u)||this.inputValue("")})}),this.watchAttrValueChange(n)}if(this.isLoaded=!0,t.defaultSelect&&(this.baseProps.multiple?this.$emit("set-default-value",[this.optionItems[0][this.valueAttribute]]):this.optionItems.length>0&&this.$emit("set-default-value",this.optionItems[0][this.valueAttribute])),this.analysisArea!==1&&this.remote){const n=this;$on(bus$1,"remoteMethod",()=>{n.remoteMethod("")})}this.$emit("load-completed",t)}).catch(t=>{console.log(t),this.$emit("load-completed",{code:this.dynamicDataSourceCode,error:t}),this.isLoaded=!0})}else this.isLoaded=!0},methods:{...dynamicSourceSelectService,...events$2,blurEvent(e){this.$emit("blur",e)},changeEvent(e){this.inputValue(e),this.$emit("change",e)},getClassOptionTitle(e){if(e!=null&&e!==""&&e.length>0){let t="";return typeof e=="string"?this.descriptionAttribute?this.optionItems.forEach(n=>{n[this.valueAttribute]===e&&(t=n._label_+n._description_)}):this.optionItems.forEach(n=>{n[this.valueAttribute]===e&&(t=n._label_)}):this.descriptionAttribute?(this.optionItems.forEach(n=>{e.forEach(a=>{n[this.valueAttribute]===a&&(t=t+n._label_+",")})}),t=t.slice(0,t.length-1)):(this.optionItems.forEach(n=>{e.forEach(a=>{n[this.valueAttribute]===a&&(t=t+n._label_+",")})}),t=t.slice(0,t.length-1)),t}},inputValue(e){this.$emit("update:value",e),(e==null||e==="")&&this.remoteQueryMethod(e),this.setValues(e)},packageDynamicDataSourceInfo(e,t){return new Promise((n,a)=>{this.findDynamicDataSourceByCode(e,this.entity,t,this.additionalParameterStr,this.backendUrl).then(i=>{if(i){if(i.options){if(this.optionItems=i.options,this.column){this.column.prop!==i.valueAttribute&&(this.column["_dynamic-source-data-"+this.column.prop]={valueSetOptions:this.options.valueSetOptions,optionItems:this.optionItems,valueAttribute:i.valueAttribute});for(let u=0;u<this.options.valueSetOptions.length;u++){const f=this.options.valueSetOptions[u];if(i.valueAttribute===f.columnName){if(this.markValue){const h=JSON.parse(this.markValue);if(h&&h[f.valueColumn.dbColumnName]){let y=(h[f.valueColumn.dbColumnName]+"").split(",");this.column.componentType==="select"&&(y=y[0])}}break}}}}else this.optionItems=[];i.valueAttribute&&(this.valueAttribute=i.valueAttribute),i.descriptionAttribute&&(this.descriptionAttribute=i.descriptionAttribute),this.valueAttribute=this.getValueAttribute(),this.watchAttr=i.watchAttr,this.$emit("load-completed",i),n(i)}else n()}).catch(i=>{a(i)})})},remoteQuery(e,t){if(e!=null||t!=null){const n={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};if(e!=null&&(n.searchText=e),t!=null)Object.prototype.toString.apply(t)==="[object Array]"?n.watchAttrValue=t.join(","):n.watchAttrValue=t+"";else if(this.entity){const a=this.entity[this.watchAttr];a!=null&&(Object.prototype.toString.apply(a)==="[object Array]"?n.watchAttrValue=a.join(","):n.watchAttrValue=a+"")}this.parent&&(n.parent=this.parent),this.loading=!0,this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,n).then(a=>{this.loading=!1}).catch(a=>{console.log(a),this.loading=!1})}},remoteQueryMethod(e){Array.isArray(this.value)?this.value.length===0&&this.remoteQuery(e,null):this.remoteQuery(e,null)},remoteMethod(e){this.remoteQuery(e,null)},watchAttrValueChange(e){this.remoteQuery(null,e)},getValueAttribute(){return!this.valueAttribute||this.valueAttribute==="[label]"?"_label_":this.valueAttribute},setValues(e){this.valueSetOptions&&this.valueSetOptions.length>0&&(this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0?this.setColumnValueWhenMulti(e):this.valueSetOptions.forEach(t=>{const n=t.columnName;let a;this.optionItems&&n&&(a=this.getTargetColumnValue(e,n));let i=null;const u=t.valueColumn;u&&(i=u.name,this.isSql===!0&&(i=u.dbColumnName,i=getPropNameWhenJoinTable(i,this.isJoinTable,this.tableName))),this.entity&&i&&i!==null&&i!==""&&setEntityFieldValue(this.entity,i,a);const f=this.getSelectedOptionItem(e);this.$emit("set-value",{value:a,sourceColumnName:n,targetColumnName:i,options:this.optionItems,valueAttribute:this.valueAttribute,selectedItem:f})}))},setColumnValue(e,t,n){let a=null;const i=n.valueColumn;i&&(a=i.name,this.isSql===!0&&(a=i.dbColumnName,a=getPropNameWhenJoinTable(a,this.isJoinTable,this.tableName))),this.entity&&a&&a!==null&&a!==""&&setEntityFieldValue(this.entity,a,t),this.$emit("set-value",{value:t,sourceColumnName:e,targetColumnName:a,options:this.optionItems,valueAttribute:this.valueAttribute})},setColumnValueWhenMulti(e){let t=!1,n;if(this.valueSetOptions.forEach(a=>{const i=a.columnName;if(i===this.valueAttribute){let u;if(this.optionItems&&i&&(u=this.getTargetColumnValue(e,i)),this.setColumnValue(i,u,a),this.lastValues.length<e.length)t=!0;else if(this.lastValues.length>e.length){t=!1;const f=[...this.lastValues,...e],h=new Set(f),y=Array.from(h),_=[...y.filter(x=>!this.lastValues.includes(x)),...y.filter(x=>!e.includes(x))];_&&_.length>0&&(n=_[0])}this.lastValues=JSON.parse(JSON.stringify(e))}}),t){const i=e[e.length-1],u=this.optionItems.filter(f=>f[this.valueAttribute]===i);u&&u.length>0&&this.setTagValue(null,!1,u[0])}else this.setTagValue(n,!0)},setTagValue(e,t,n){this.valueSetOptions&&this.valueSetOptions.length>0&&this.valueSetOptions.forEach(a=>{const i=a.columnName;if(i!==this.valueAttribute){let u=null;const f=a.valueColumn;f&&(u=f.name,this.isSql===!0&&(u=f.dbColumnName,u=getPropNameWhenJoinTable(u,this.isJoinTable,this.tableName)));let h;if(u){const y=getEntityFieldValue(this.entity,u);if(t){const _=this.value.indexOf(e);if(y!=null&&y!==""){const x=y.split(",");x.splice(_,1),h=x.join(",")}}else{let _;n&&(_=n[i]),y!=null&&y!==""?h=y+","+_:h=_}}this.entity&&u&&u!==null&&u!==""&&setEntityFieldValue(this.entity,u,h),this.$emit("set-value",{value:h,sourceColumnName:i,targetColumnName:u,options:this.optionItems,valueAttribute:this.valueAttribute})}})},getTargetColumnValue(e,t){if(e){let n="";if(this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0&&Array.isArray(e)){let a=0;e.forEach(i=>{const u=this.optionItems.filter(f=>f[this.valueAttribute]===i);u&&u.length>0&&(n+=u[0][t],a<e.length-1&&(n+=","),a++)})}else{const a=this.optionItems.filter(i=>i[this.valueAttribute]===e);a&&a.length>0&&(n=a[0][t])}return n}},clearMarkValue(){if(this.markValue&&this.entity){const e=JSON.parse(this.markValue);for(let t=0;t<this.options.valueSetOptions.length;t++){const n=this.options.valueSetOptions[t];e[n.valueColumn.dbColumnName]=null}this.markValue=JSON.stringify(e)}}},emits:["set-default-value","load-completed","update:value","set-value","update:value","focus","blur","visible-change","change"]},_hoisted_1$K={class:"select-top-span"},_hoisted_2$u={style:{display:"flex"}},_hoisted_3$k={style:{color:"#8492a6","font-size":"13px","margin-left":"30px"}},_hoisted_4$e={style:{float:"left"}},_hoisted_5$b={style:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"30px"}};function _sfc_render$W(e,t,n,a,i,u){const f=Vue.resolveComponent("el-option"),h=Vue.resolveComponent("el-select");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$K,[Vue.createVNode(h,Vue.mergeProps({ref:"dynamicDataSourceRef","allow-create":n.allowCreate,clearable:n.clearable,filterable:i.remote,loading:i.loading,"model-value":n.value,placeholder:n.placeholder,remote:i.remote,"remote-method":u.remoteMethod,"reserve-keyword":!0,size:n.size,style:n.fullWidth?{width:"100%",height:"100%"}:{},title:u.getClassOptionTitle(n.value),"value-key":i.valueAttribute,"default-first-option":""},i.myProps,{onBlur:t[0]||(t[0]=y=>u.blurEvent(y)),onChange:u.changeEvent,onClear:e.clear,onFocus:e.focus,onVisibleChange:e.visibleChange,onRemoveTag:t[1]||(t[1]=y=>e.removeTag(i.remote,y))}),{default:Vue.withCtx(()=>[i.descriptionAttribute?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[n.optionWidth>0?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle({width:n.optionWidth+"px"})},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,title:y._label_+y._description_,value:y[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$u,[Vue.createElementVNode("span",null,Vue.toDisplayString(y._label_),1),Vue.createElementVNode("span",_hoisted_3$k,Vue.toDisplayString(y._description_),1)])]),_:2},1032,["label","title","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,title:y._label_+y._description_,value:y[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_4$e,Vue.toDisplayString(y._label_),1),Vue.createElementVNode("span",_hoisted_5$b,Vue.toDisplayString(y._description_),1)]),_:2},1032,["label","title","value"]))),128))],64)):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[n.optionWidth>0?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle({width:n.optionWidth+"px",position:"relative"})},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,value:y[i.valueAttribute]},null,8,["label","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,value:y[i.valueAttribute]},null,8,["label","value"]))),128))],64))]),_:1},16,["allow-create","clearable","filterable","loading","model-value","placeholder","remote","remote-method","size","style","title","value-key","onChange","onClear","onFocus","onVisibleChange"])])}const DynamicSourceSelect=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$W],["__scopeId","data-v-5eebc4ae"]]);function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_extends$1.apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,t,n){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(i,u,f){var h=[null];h.push.apply(h,u);var y=Function.bind.apply(i,h),_=new y;return f&&_setPrototypeOf(_,f.prototype),_},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(a){if(a===null||!_isNativeFunction(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,i)}function i(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,a)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning=function e(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(a){return typeof a=="string"})&&console.warn(t,n)});function convertFieldsError(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function format(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var i=0,u=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var f=e.replace(formatRegExp,function(h){if(h==="%%")return"%";if(i>=u)return h;switch(h){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return h}});return f}return e}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(t)&&typeof e=="string"&&!e)}function asyncParallelArray(e,t,n){var a=[],i=0,u=e.length;function f(h){a.push.apply(a,h||[]),i++,i===u&&n(a)}e.forEach(function(h){t(h,f)})}function asyncSerialArray(e,t,n){var a=0,i=e.length;function u(f){if(f&&f.length){n(f);return}var h=a;a=a+1,h<i?t(e[h],u):n([])}u([])}function flattenObjArr(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var AsyncValidationError=function(e){_inheritsLoose(t,e);function t(n,a){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=a,i}return t}(_wrapNativeSuper(Error));function asyncMap(e,t,n,a,i){if(t.first){var u=new Promise(function(O,D){var M=function(q){return a(q),q.length?D(new AsyncValidationError(q,convertFieldsError(q))):O(i)},j=flattenObjArr(e);asyncSerialArray(j,n,M)});return u.catch(function(O){return O}),u}var f=t.firstFields===!0?Object.keys(e):t.firstFields||[],h=Object.keys(e),y=h.length,_=0,x=[],T=new Promise(function(O,D){var M=function(Q){if(x.push.apply(x,Q),_++,_===y)return a(x),x.length?D(new AsyncValidationError(x,convertFieldsError(x))):O(i)};h.length||(a(x),O(i)),h.forEach(function(j){var Q=e[j];f.indexOf(j)!==-1?asyncSerialArray(Q,n,M):asyncParallelArray(Q,n,M)})});return T.catch(function(O){return O}),T}function isErrorObj(e){return!!(e&&e.message!==void 0)}function getValue$1(e,t){for(var n=e,a=0;a<t.length;a++){if(n==null)return n;n=n[t[a]]}return n}function complementError(e,t){return function(n){var a;return e.fullFields?a=getValue$1(t,e.fullFields):a=t[n.field||e.fullField],isErrorObj(n)?(n.field=n.field||e.fullField,n.fieldValue=a,n):{message:typeof n=="function"?n():n,fieldValue:a,field:n.field||e.fullField}}}function deepMerge(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];typeof a=="object"&&typeof e[n]=="object"?e[n]=_extends$1({},e[n],a):e[n]=a}}return e}var required$1=function e(t,n,a,i,u,f){t.required&&(!a.hasOwnProperty(t.field)||isEmptyValue(n,f||t.type))&&i.push(format(u.messages.required,t.fullField))},whitespace=function e(t,n,a,i,u){(/^\s+$/.test(n)||n==="")&&i.push(format(u.messages.whitespace,t.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var e="[a-fA-F\\d:]",t=function(le){return le&&le.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",a="[a-fA-F\\d]{1,4}",i=(`
|
|
21
|
+
*/const VERSION$1="9.6.5";function initFeatureFlags(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(getGlobalThis().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(getGlobalThis().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(getGlobalThis().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze"};function getWarnMessage(e,...t){return format$3(warnMessages[e],...t)}const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...t){return createCompileError(e,null,process.env.NODE_ENV!=="production"?{messages:errorMessages,args:t}:void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),EnableEmitter=makeSymbol("__enableEmitter"),DisableEmitter=makeSymbol("__disableEmitter"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject$4(e))return e;for(const t in e)if(hasOwn$1(e,t))if(!t.includes("."))isObject$4(e[t])&&handleFlatJson(e[t]);else{const n=t.split("."),a=n.length-1;let i=e,u=!1;for(let f=0;f<a;f++){if(n[f]in i||(i[n[f]]={}),!isObject$4(i[n[f]])){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.IGNORE_OBJ_FLATTEN,{key:n[f]})),u=!0;break}i=i[n[f]]}u||(i[n[a]]=e[t],delete e[t]),isObject$4(i[n[a]])&&handleFlatJson(i[n[a]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:a,messageResolver:i,flatJson:u}=t,f=isPlainObject(n)?n:isArray$2(a)?{}:{[e]:{}};if(isArray$2(a)&&a.forEach(h=>{if("locale"in h&&"resource"in h){const{locale:y,resource:_}=h;y?(f[y]=f[y]||{},deepCopy(_,f[y])):deepCopy(_,f)}else isString$3(h)&&deepCopy(JSON.parse(h),f)}),i==null&&u)for(const h in f)hasOwn$1(f,h)&&handleFlatJson(f[h]);return f}const isNotObjectOrIsArray=e=>!isObject$4(e)||isArray$2(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const n in e)hasOwn$1(e,n)&&(isNotObjectOrIsArray(e[n])||isNotObjectOrIsArray(t[n])?t[n]=e[n]:deepCopy(e[n],t[n]))}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let a=isObject$4(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=getLocaleMessages(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const i=Object.keys(a);i.length&&i.forEach(u=>{e.mergeLocaleMessage(u,a[u])});{if(isObject$4(t.datetimeFormats)){const u=Object.keys(t.datetimeFormats);u.length&&u.forEach(f=>{e.mergeDateTimeFormat(f,t.datetimeFormats[f])})}if(isObject$4(t.numberFormats)){const u=Object.keys(t.numberFormats);u.length&&u.forEach(f=>{e.mergeNumberFormat(f,t.numberFormats[f])})}}}function createTextNode(e){return Vue.createVNode(Vue.Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,a,i)=>e(n,a,Vue.getCurrentInstance()||void 0,i)}const getMetaInfo=()=>{const e=Vue.getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={},t){const{__root:n,__injectWithOption:a}=e,i=n===void 0,u=e.flatJson;let f=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const h=Vue.ref(n&&f?n.locale.value:isString$3(e.locale)?e.locale:DEFAULT_LOCALE),y=Vue.ref(n&&f?n.fallbackLocale.value:isString$3(e.fallbackLocale)||isArray$2(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),_=Vue.ref(getLocaleMessages(h.value,e)),x=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),T=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[h.value]:{}});let O=n?n.missingWarn:isBoolean(e.missingWarn)||isRegExp(e.missingWarn)?e.missingWarn:!0,D=n?n.fallbackWarn:isBoolean(e.fallbackWarn)||isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,M=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,j=!!e.fallbackFormat,Q=isFunction$2(e.missing)?e.missing:null,q=isFunction$2(e.missing)?defineCoreMissingHandler(e.missing):null,F=isFunction$2(e.postTranslation)?e.postTranslation:null,H=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,le=!!e.escapeParameter;const De=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let fe=e.pluralRules||n&&n.pluralRules,L;L=(()=>{i&&setFallbackContext(null);const Ve={version:VERSION$1,locale:h.value,fallbackLocale:y.value,messages:_.value,modifiers:De,pluralRules:fe,missing:q===null?void 0:q,missingWarn:O,fallbackWarn:D,fallbackFormat:j,unresolving:!0,postTranslation:F===null?void 0:F,warnHtmlMessage:H,escapeParameter:le,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Ve.datetimeFormats=x.value,Ve.numberFormats=T.value,Ve.__datetimeFormatters=isPlainObject(L)?L.__datetimeFormatters:void 0,Ve.__numberFormatters=isPlainObject(L)?L.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Ve.__v_emitter=isPlainObject(L)?L.__v_emitter:void 0);const ot=createCoreContext(Ve);return i&&setFallbackContext(ot),ot})(),updateFallbackLocale(L,h.value,y.value);function Qe(){return[h.value,y.value,_.value,x.value,T.value]}const de=Vue.computed({get:()=>h.value,set:Ve=>{h.value=Ve,L.locale=h.value}}),re=Vue.computed({get:()=>y.value,set:Ve=>{y.value=Ve,L.fallbackLocale=y.value,updateFallbackLocale(L,h.value,Ve)}}),qe=Vue.computed(()=>_.value),Je=Vue.computed(()=>x.value),Ot=Vue.computed(()=>T.value);function Ze(){return isFunction$2(F)?F:null}function Bt(Ve){F=Ve,L.postTranslation=Ve}function $(){return Q}function vt(Ve){Ve!==null&&(q=defineCoreMissingHandler(Ve)),Q=Ve,L.missing=q}function nt(Ve,ot){return Ve!=="translate"||!ot.resolvedMessage}const Tt=(Ve,ot,Gt,un,rr,xr)=>{Qe();let vn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=n?getFallbackContext():void 0),vn=Ve(L)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=void 0)}if(Gt!=="translate exists"&&isNumber$1(vn)&&vn===NOT_REOSLVED||Gt==="translate exists"&&!vn){const[Kt,er]=ot();if(process.env.NODE_ENV!=="production"&&n&&isString$3(Kt)&&nt(Gt,er)&&(M&&(isTranslateFallbackWarn(D,Kt)||isTranslateMissingWarn(O,Kt))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:Kt,type:Gt})),process.env.NODE_ENV!=="production")){const{__v_emitter:_r}=L;_r&&M&&_r.emit("fallback",{type:Gt,key:Kt,to:"global",groupId:`${Gt}:${Kt}`})}return n&&M?un(n):rr(Kt)}else{if(xr(vn))return vn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Vn(...Ve){return Tt(ot=>Reflect.apply(translate$1,null,[ot,...Ve]),()=>parseTranslateArgs(...Ve),"translate",ot=>Reflect.apply(ot.t,ot,[...Ve]),ot=>ot,ot=>isString$3(ot))}function Et(...Ve){const[ot,Gt,un]=Ve;if(un&&!isObject$4(un))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Vn(ot,Gt,assign$2({resolvedMessage:!0},un||{}))}function He(...Ve){return Tt(ot=>Reflect.apply(datetime,null,[ot,...Ve]),()=>parseDateTimeArgs(...Ve),"datetime format",ot=>Reflect.apply(ot.d,ot,[...Ve]),()=>MISSING_RESOLVE_VALUE,ot=>isString$3(ot))}function dt(...Ve){return Tt(ot=>Reflect.apply(number$1,null,[ot,...Ve]),()=>parseNumberArgs(...Ve),"number format",ot=>Reflect.apply(ot.n,ot,[...Ve]),()=>MISSING_RESOLVE_VALUE,ot=>isString$3(ot))}function $t(Ve){return Ve.map(ot=>isString$3(ot)||isNumber$1(ot)||isBoolean(ot)?createTextNode(String(ot)):ot)}const ze={normalize:$t,interpolate:Ve=>Ve,type:"vnode"};function ht(...Ve){return Tt(ot=>{let Gt;const un=ot;try{un.processor=ze,Gt=Reflect.apply(translate$1,null,[un,...Ve])}finally{un.processor=null}return Gt},()=>parseTranslateArgs(...Ve),"translate",ot=>ot[TranslateVNodeSymbol](...Ve),ot=>[createTextNode(ot)],ot=>isArray$2(ot))}function Yt(...Ve){return Tt(ot=>Reflect.apply(number$1,null,[ot,...Ve]),()=>parseNumberArgs(...Ve),"number format",ot=>ot[NumberPartsSymbol](...Ve),NOOP_RETURN_ARRAY,ot=>isString$3(ot)||isArray$2(ot))}function ft(...Ve){return Tt(ot=>Reflect.apply(datetime,null,[ot,...Ve]),()=>parseDateTimeArgs(...Ve),"datetime format",ot=>ot[DatetimePartsSymbol](...Ve),NOOP_RETURN_ARRAY,ot=>isString$3(ot)||isArray$2(ot))}function ie(Ve){fe=Ve,L.pluralRules=fe}function Ae(Ve,ot){return Tt(()=>{if(!Ve)return!1;const Gt=isString$3(ot)?ot:h.value,un=ue(Gt),rr=L.messageResolver(un,Ve);return isMessageAST(rr)||isMessageFunction(rr)||isString$3(rr)},()=>[Ve],"translate exists",Gt=>Reflect.apply(Gt.te,Gt,[Ve,ot]),NOOP_RETURN_FALSE,Gt=>isBoolean(Gt))}function G(Ve){let ot=null;const Gt=fallbackWithLocaleChain(L,y.value,h.value);for(let un=0;un<Gt.length;un++){const rr=_.value[Gt[un]]||{},xr=L.messageResolver(rr,Ve);if(xr!=null){ot=xr;break}}return ot}function ee(Ve){const ot=G(Ve);return ot??(n?n.tm(Ve)||{}:{})}function ue(Ve){return _.value[Ve]||{}}function et(Ve,ot){if(u){const Gt={[Ve]:ot};for(const un in Gt)hasOwn$1(Gt,un)&&handleFlatJson(Gt[un]);ot=Gt[Ve]}_.value[Ve]=ot,L.messages=_.value}function Ut(Ve,ot){_.value[Ve]=_.value[Ve]||{};const Gt={[Ve]:ot};for(const un in Gt)hasOwn$1(Gt,un)&&handleFlatJson(Gt[un]);ot=Gt[Ve],deepCopy(ot,_.value[Ve]),L.messages=_.value}function Dt(Ve){return x.value[Ve]||{}}function jn(Ve,ot){x.value[Ve]=ot,L.datetimeFormats=x.value,clearDateTimeFormat(L,Ve,ot)}function Mn(Ve,ot){x.value[Ve]=assign$2(x.value[Ve]||{},ot),L.datetimeFormats=x.value,clearDateTimeFormat(L,Ve,ot)}function Vt(Ve){return T.value[Ve]||{}}function mn(Ve,ot){T.value[Ve]=ot,L.numberFormats=T.value,clearNumberFormat(L,Ve,ot)}function Gn(Ve,ot){T.value[Ve]=assign$2(T.value[Ve]||{},ot),L.numberFormats=T.value,clearNumberFormat(L,Ve,ot)}composerID++,n&&inBrowser&&(Vue.watch(n.locale,Ve=>{f&&(h.value=Ve,L.locale=Ve,updateFallbackLocale(L,h.value,y.value))}),Vue.watch(n.fallbackLocale,Ve=>{f&&(y.value=Ve,L.fallbackLocale=Ve,updateFallbackLocale(L,h.value,y.value))}));const wt={id:composerID,locale:de,fallbackLocale:re,get inheritLocale(){return f},set inheritLocale(Ve){f=Ve,Ve&&n&&(h.value=n.locale.value,y.value=n.fallbackLocale.value,updateFallbackLocale(L,h.value,y.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:qe,get modifiers(){return De},get pluralRules(){return fe||{}},get isGlobal(){return i},get missingWarn(){return O},set missingWarn(Ve){O=Ve,L.missingWarn=O},get fallbackWarn(){return D},set fallbackWarn(Ve){D=Ve,L.fallbackWarn=D},get fallbackRoot(){return M},set fallbackRoot(Ve){M=Ve},get fallbackFormat(){return j},set fallbackFormat(Ve){j=Ve,L.fallbackFormat=j},get warnHtmlMessage(){return H},set warnHtmlMessage(Ve){H=Ve,L.warnHtmlMessage=Ve},get escapeParameter(){return le},set escapeParameter(Ve){le=Ve,L.escapeParameter=Ve},t:Vn,getLocaleMessage:ue,setLocaleMessage:et,mergeLocaleMessage:Ut,getPostTranslationHandler:Ze,setPostTranslationHandler:Bt,getMissingHandler:$,setMissingHandler:vt,[SetPluralRulesSymbol]:ie};return wt.datetimeFormats=Je,wt.numberFormats=Ot,wt.rt=Et,wt.te=Ae,wt.tm=ee,wt.d=He,wt.n=dt,wt.getDateTimeFormat=Dt,wt.setDateTimeFormat=jn,wt.mergeDateTimeFormat=Mn,wt.getNumberFormat=Vt,wt.setNumberFormat=mn,wt.mergeNumberFormat=Gn,wt[InejctWithOptionSymbol]=a,wt[TranslateVNodeSymbol]=ht,wt[DatetimePartsSymbol]=ft,wt[NumberPartsSymbol]=Yt,process.env.NODE_ENV!=="production"&&(wt[EnableEmitter]=Ve=>{L.__v_emitter=Ve},wt[DisableEmitter]=()=>{L.__v_emitter=void 0}),wt}function convertComposerOptions(e){const t=isString$3(e.locale)?e.locale:DEFAULT_LOCALE,n=isString$3(e.fallbackLocale)||isArray$2(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=isFunction$2(e.missing)?e.missing:void 0,i=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,u=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,f=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.formatFallbackMessages,y=isPlainObject(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,x=isFunction$2(e.postTranslation)?e.postTranslation:void 0,T=isString$3(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,O=!!e.escapeParameterHtml,D=isBoolean(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let M=e.messages;if(isPlainObject(e.sharedMessages)){const De=e.sharedMessages;M=Object.keys(De).reduce((L,We)=>{const Qe=L[We]||(L[We]={});return assign$2(Qe,De[We]),L},M||{})}const{__i18n:j,__root:Q,__injectWithOption:q}=e,F=e.datetimeFormats,H=e.numberFormats,le=e.flatJson;return{locale:t,fallbackLocale:n,messages:M,flatJson:le,datetimeFormats:F,numberFormats:H,missing:a,missingWarn:i,fallbackWarn:u,fallbackRoot:f,fallbackFormat:h,modifiers:y,pluralRules:_,postTranslation:x,warnHtmlMessage:T,escapeParameter:O,messageResolver:e.messageResolver,inheritLocale:D,__i18n:j,__root:Q,__injectWithOption:q}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:a}=e,i={id:n.id,get locale(){return n.locale.value},set locale(u){n.locale.value=u},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(u){n.fallbackLocale.value=u},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(u){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(u){n.setMissingHandler(u)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(u){n.missingWarn=isBoolean(u)?!u:u},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(u){n.fallbackWarn=isBoolean(u)?!u:u},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(u){n.fallbackFormat=u},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(u){n.setPostTranslationHandler(u)},get sync(){return n.inheritLocale},set sync(u){n.inheritLocale=u},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(u){n.warnHtmlMessage=u!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(u){n.escapeParameter=u},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(u){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...u){const[f,h,y]=u,_={};let x=null,T=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const O=f;return isString$3(h)?_.locale=h:isArray$2(h)?x=h:isPlainObject(h)&&(T=h),isArray$2(y)?x=y:isPlainObject(y)&&(T=y),Reflect.apply(n.t,n,[O,x||T||{},_])},rt(...u){return Reflect.apply(n.rt,n,[...u])},tc(...u){const[f,h,y]=u,_={plural:1};let x=null,T=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const O=f;return isString$3(h)?_.locale=h:isNumber$1(h)?_.plural=h:isArray$2(h)?x=h:isPlainObject(h)&&(T=h),isString$3(y)?_.locale=y:isArray$2(y)?x=y:isPlainObject(y)&&(T=y),Reflect.apply(n.t,n,[O,x||T||{},_])},te(u,f){return n.te(u,f)},tm(u){return n.tm(u)},getLocaleMessage(u){return n.getLocaleMessage(u)},setLocaleMessage(u,f){n.setLocaleMessage(u,f)},mergeLocaleMessage(u,f){n.mergeLocaleMessage(u,f)},d(...u){return Reflect.apply(n.d,n,[...u])},getDateTimeFormat(u){return n.getDateTimeFormat(u)},setDateTimeFormat(u,f){n.setDateTimeFormat(u,f)},mergeDateTimeFormat(u,f){n.mergeDateTimeFormat(u,f)},n(...u){return Reflect.apply(n.n,n,[...u])},getNumberFormat(u){return n.getNumberFormat(u)},setNumberFormat(u,f){n.setNumberFormat(u,f)},mergeNumberFormat(u,f){n.mergeNumberFormat(u,f)},getChoiceIndex(u,f){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=a,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=u=>{const f=n;f[EnableEmitter]&&f[EnableEmitter](u)},i.__disableEmitter=()=>{const u=n;u[DisableEmitter]&&u[DisableEmitter]()}),i}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,i)=>[...a,...i.type===Vue.Fragment?i.children:[i]],[]):t.reduce((n,a)=>{const i=e[a];return i&&(n[a]=i()),n},{})}function getFragmentableTag(e){return Vue.Fragment}const TranslationImpl=Vue.defineComponent({name:"i18n-t",props:assign$2({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber$1(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:a}=t,i=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const u=Object.keys(n).filter(T=>T!=="_"),f={};e.locale&&(f.locale=e.locale),e.plural!==void 0&&(f.plural=isString$3(e.plural)?+e.plural:e.plural);const h=getInterpolateArg(t,u),y=i[TranslateVNodeSymbol](e.keypath,h,f),_=assign$2({},a),x=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(x,_,y)}}}),Translation=TranslationImpl;function isVNode(e){return isArray$2(e)&&!isString$3(e[0])}function renderFormatter(e,t,n,a){const{slots:i,attrs:u}=t;return()=>{const f={part:!0};let h={};e.locale&&(f.locale=e.locale),isString$3(e.format)?f.key=e.format:isObject$4(e.format)&&(isString$3(e.format.key)&&(f.key=e.format.key),h=Object.keys(e.format).reduce((O,D)=>n.includes(D)?assign$2({},O,{[D]:e.format[D]}):O,{}));const y=a(e.value,f,h);let _=[f.key];isArray$2(y)?_=y.map((O,D)=>{const M=i[O.type],j=M?M({[O.type]:O.value,index:D,parts:y}):[O.value];return isVNode(j)&&(j[0].key=`${O.type}-${D}`),j}):isString$3(y)&&(_=[y]);const x=assign$2({},u),T=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(T,x,_)}}const NumberFormatImpl=Vue.defineComponent({name:"i18n-n",props:assign$2({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,(...a)=>n[NumberPartsSymbol](...a))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=Vue.defineComponent({name:"i18n-d",props:assign$2({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,(...a)=>n[DatetimePartsSymbol](...a))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function vTDirective(e){const t=f=>{const{instance:h,modifiers:y,value:_}=f;if(!h||!h.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const x=getComposer$2(e,h.$);process.env.NODE_ENV!=="production"&&y.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const T=parseValue(_);return[Reflect.apply(x.t,x,[...makeParams(T)]),x]};return{created:(f,h)=>{const[y,_]=t(h);inBrowser&&e.global===_&&(f.__i18nWatcher=Vue.watch(_.locale,()=>{h.instance&&h.instance.$forceUpdate()})),f.__composer=_,f.textContent=y},unmounted:f=>{inBrowser&&f.__i18nWatcher&&(f.__i18nWatcher(),f.__i18nWatcher=void 0,delete f.__i18nWatcher),f.__composer&&(f.__composer=void 0,delete f.__composer)},beforeUpdate:(f,{value:h})=>{if(f.__composer){const y=f.__composer,_=parseValue(h);f.textContent=Reflect.apply(y.t,y,[...makeParams(_)])}},getSSRProps:f=>{const[h]=t(f);return{textContent:h}}}}function parseValue(e){if(isString$3(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return e}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:a,choice:i,plural:u}=e,f={},h=a||{};return isString$3(n)&&(f.locale=n),isNumber$1(i)&&(f.plural=i),isNumber$1(u)&&(f.plural=u),[t,h,f]}function apply(e,t,...n){const a=isPlainObject(n[0])?n[0]:{},i=!!a.useI18nComponentName,u=isBoolean(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&u&&i&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),u&&([i?"i18n":Translation.name,"I18nT"].forEach(f=>e.component(f,Translation)),[NumberFormat.name,"I18nN"].forEach(f=>e.component(f,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(f=>e.component(f,DatetimeFormat))),e.directive("t",vTDirective(t))}const VueDevToolsLabels={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},VueDevToolsPlaceholders={"vue-i18n-resource-inspector":"Search for scopes ..."},VueDevToolsTimelineColors={"vue-i18n-timeline":16764185},VUE_I18N_COMPONENT_TYPES="vue-i18n: composer properties";let devtoolsApi;async function enableDevTools(e,t){return new Promise((n,a)=>{try{setupDevtoolsPlugin({id:"vue-devtools-plugin-vue-i18n",label:VueDevToolsLabels["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[VUE_I18N_COMPONENT_TYPES],app:e},i=>{devtoolsApi=i,i.on.visitComponentTree(({componentInstance:f,treeNode:h})=>{updateComponentTreeTags(f,h,t)}),i.on.inspectComponent(({componentInstance:f,instanceData:h})=>{f.vnode.el&&f.vnode.el.__VUE_I18N__&&h&&(t.mode==="legacy"?f.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(h,f.vnode.el.__VUE_I18N__):inspectComposer(h,f.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:VueDevToolsLabels["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:VueDevToolsPlaceholders["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(f=>{f.app===e&&f.inspectorId==="vue-i18n-resource-inspector"&®isterScope(f,t)});const u=new Map;i.on.getInspectorState(async f=>{if(f.app===e&&f.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),inspectScope(f,t),f.nodeId==="global"){if(!u.has(f.app)){const[h]=await i.getComponentInstances(f.app);u.set(f.app,h)}i.highlightElement(u.get(f.app))}else{const h=getComponentInstance(f.nodeId,t);h&&i.highlightElement(h)}}),i.on.editInspectorState(f=>{f.app===e&&f.inspectorId==="vue-i18n-resource-inspector"&&editScope(f,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:VueDevToolsLabels["vue-i18n-timeline"],color:VueDevToolsTimelineColors["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),a(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const i={label:`i18n (${getI18nScopeLable(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function inspectComposer(e,t){const n=VUE_I18N_COMPONENT_TYPES;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:getLocaleMessageValue(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function getLocaleMessageValue(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];isFunction$2(a)&&"source"in a?t[n]=getMessageFunctionDetails(a):isMessageAST(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:isObject$4(a)?t[n]=getLocaleMessageValue(a):t[n]=a}),t}const ESC={"<":"<",">":">",'"':""","&":"&"};function escape$1(e){return e.replace(/[<>"&]/g,escapeChar)}function escapeChar(e){return ESC[e]||e}function getMessageFunctionDetails(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${escape$1(e.source)}")`:"(?)"}`}}}function registerScope(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,i]of t.__instances){const u=t.mode==="composition"?i:i.__composer;n!==u&&e.rootNodes.push({id:u.id.toString(),label:`${getI18nScopeLable(a)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[a,i]of t.__instances.entries())if(i.id.toString()===e){n=a;break}}return n}function getComposer$1(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function inspectScope(e,t){const n=getComposer$1(e.nodeId,t);return n&&(e.state=makeScopeInspectState(n)),null}function makeScopeInspectState(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const i="Locale messages info",u=[{type:i,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[i]=u;{const f="Datetime formats info",h=[{type:f,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[f]=h;const y="Datetime formats info",_=[{type:y,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[y]=_}return t}function addTimelineEvent(e,t){if(devtoolsApi){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),devtoolsApi.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function editScope(e,t){const n=getComposer$1(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&isString$3(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(isString$3(e.state.value)||isArray$2(e.state.value)||isObject$4(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const a=Vue.getCurrentInstance();if(!a)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const u=i.i18n;if(i.__i18n&&(u.__i18n=i.__i18n),u.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,u);else{u.__injectWithOption=!0,u.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(u);const f=this.$i18n;f.__extender&&(f.__disposer=f.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,i);else{this.$i18n=createVueI18n({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const u=this.$i18n;u.__extender&&(u.__disposer=u.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&adjustI18nResources(t,i,i),this.$t=(...u)=>this.$i18n.t(...u),this.$rt=(...u)=>this.$i18n.rt(...u),this.$tc=(...u)=>this.$i18n.tc(...u),this.$te=(u,f)=>this.$i18n.te(u,f),this.$d=(...u)=>this.$i18n.d(...u),this.$n=(...u)=>this.$i18n.n(...u),this.$tm=u=>this.$i18n.tm(u),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const i=this.__v_emitter=createEmitter();a.__enableEmitter&&a.__enableEmitter(i),i.on("*",addTimelineEvent)}},unmounted(){const a=Vue.getCurrentInstance();if(!a)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",addTimelineEvent),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(a),delete this.$i18n}}}function mergeToGlobal(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=__VUE_I18N_LEGACY_API__&&isBoolean(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=isBoolean(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,u=new Map,[f,h]=createGlobal(e,n),y=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function _(O){return u.get(O)||null}function x(O,D){u.set(O,D)}function T(O){u.delete(O)}{const O={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(D,...M){if(process.env.NODE_ENV!=="production"&&(D.__VUE_I18N__=O),D.__VUE_I18N_SYMBOL__=y,D.provide(D.__VUE_I18N_SYMBOL__,O),isPlainObject(M[0])){const q=M[0];O.__composerExtend=q.__composerExtend,O.__vueI18nExtend=q.__vueI18nExtend}let j=null;!n&&a&&(j=injectGlobalFields(D,O.global)),__VUE_I18N_FULL_INSTALL__&&apply(D,O,...M),__VUE_I18N_LEGACY_API__&&n&&D.mixin(defineMixin(h,h.__composer,O));const Q=D.unmount;if(D.unmount=()=>{j&&j(),O.dispose(),Q()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(D,O))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const F=createEmitter();if(n){const H=h;H.__enableEmitter&&H.__enableEmitter(F)}else{const H=h;H[EnableEmitter]&&H[EnableEmitter](F)}F.on("*",addTimelineEvent)}},get global(){return h},dispose(){f.stop()},__instances:u,__getInstance:_,__setInstance:x,__deleteInstance:T};return O}}function useI18n(e={}){const t=Vue.getCurrentInstance();if(t==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),a=getGlobalComposer(n),i=getComponentOptions(t),u=getScope(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(t,u,a,e)}if(u==="global")return adjustI18nResources(a,e,i),a;if(u==="parent"){let y=getComposer(n,t,e.__useComponent);return y==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),y=a),y}const f=n;let h=f.__getInstance(t);if(h==null){const y=assign$2({},e);"__i18n"in i&&(y.__i18n=i.__i18n),a&&(y.__root=a),h=createComposer(y),f.__composerExtend&&(h[DisposeSymbol]=f.__composerExtend(h)),setupLifeCycle(f,t,h),f.__setInstance(t,h)}return h}function createGlobal(e,t,n){const a=Vue.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?a.run(()=>createVueI18n(e)):a.run(()=>createComposer(e));if(i==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[a,i]}}function getI18nInstance(e){{const t=Vue.inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw createI18nError(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return e.mode==="composition"?e.global:e.global.__composer}function getComposer(e,t,n=!1){let a=null;const i=t.root;let u=getParentComponentInstance(t,n);for(;u!=null;){const f=e;if(e.mode==="composition")a=f.__getInstance(u);else if(__VUE_I18N_LEGACY_API__){const h=f.__getInstance(u);h!=null&&(a=h.__composer,n&&a&&!a[InejctWithOptionSymbol]&&(a=null))}if(a!=null||i===u)break;u=u.parent}return a}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let a=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=createEmitter();const i=n;i[EnableEmitter]&&i[EnableEmitter](a),a.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",addTimelineEvent),i[DisableEmitter]&&i[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const u=i[DisposeSymbol];u&&(u(),delete i[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,a={}){const i=t==="local",u=Vue.shallowRef(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const f=isBoolean(a.inheritLocale)?a.inheritLocale:!isString$3(a.locale),h=Vue.ref(!i||f?n.locale.value:isString$3(a.locale)?a.locale:DEFAULT_LOCALE),y=Vue.ref(!i||f?n.fallbackLocale.value:isString$3(a.fallbackLocale)||isArray$2(a.fallbackLocale)||isPlainObject(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:h.value),_=Vue.ref(getLocaleMessages(h.value,a)),x=Vue.ref(isPlainObject(a.datetimeFormats)?a.datetimeFormats:{[h.value]:{}}),T=Vue.ref(isPlainObject(a.numberFormats)?a.numberFormats:{[h.value]:{}}),O=i?n.missingWarn:isBoolean(a.missingWarn)||isRegExp(a.missingWarn)?a.missingWarn:!0,D=i?n.fallbackWarn:isBoolean(a.fallbackWarn)||isRegExp(a.fallbackWarn)?a.fallbackWarn:!0,M=i?n.fallbackRoot:isBoolean(a.fallbackRoot)?a.fallbackRoot:!0,j=!!a.fallbackFormat,Q=isFunction$2(a.missing)?a.missing:null,q=isFunction$2(a.postTranslation)?a.postTranslation:null,F=i?n.warnHtmlMessage:isBoolean(a.warnHtmlMessage)?a.warnHtmlMessage:!0,H=!!a.escapeParameter,le=i?n.modifiers:isPlainObject(a.modifiers)?a.modifiers:{},De=a.pluralRules||i&&n.pluralRules;function fe(){return[h.value,y.value,_.value,x.value,T.value]}const L=Vue.computed({get:()=>u.value?u.value.locale.value:h.value,set:ee=>{u.value&&(u.value.locale.value=ee),h.value=ee}}),We=Vue.computed({get:()=>u.value?u.value.fallbackLocale.value:y.value,set:ee=>{u.value&&(u.value.fallbackLocale.value=ee),y.value=ee}}),Qe=Vue.computed(()=>u.value?u.value.messages.value:_.value),de=Vue.computed(()=>x.value),re=Vue.computed(()=>T.value);function qe(){return u.value?u.value.getPostTranslationHandler():q}function Je(ee){u.value&&u.value.setPostTranslationHandler(ee)}function Ot(){return u.value?u.value.getMissingHandler():Q}function Ze(ee){u.value&&u.value.setMissingHandler(ee)}function Bt(ee){return fe(),ee()}function $(...ee){return u.value?Bt(()=>Reflect.apply(u.value.t,null,[...ee])):Bt(()=>"")}function vt(...ee){return u.value?Reflect.apply(u.value.rt,null,[...ee]):""}function nt(...ee){return u.value?Bt(()=>Reflect.apply(u.value.d,null,[...ee])):Bt(()=>"")}function Tt(...ee){return u.value?Bt(()=>Reflect.apply(u.value.n,null,[...ee])):Bt(()=>"")}function Vn(ee){return u.value?u.value.tm(ee):{}}function Et(ee,ue){return u.value?u.value.te(ee,ue):!1}function He(ee){return u.value?u.value.getLocaleMessage(ee):{}}function dt(ee,ue){u.value&&(u.value.setLocaleMessage(ee,ue),_.value[ee]=ue)}function $t(ee,ue){u.value&&u.value.mergeLocaleMessage(ee,ue)}function me(ee){return u.value?u.value.getDateTimeFormat(ee):{}}function ze(ee,ue){u.value&&(u.value.setDateTimeFormat(ee,ue),x.value[ee]=ue)}function ht(ee,ue){u.value&&u.value.mergeDateTimeFormat(ee,ue)}function Yt(ee){return u.value?u.value.getNumberFormat(ee):{}}function ft(ee,ue){u.value&&(u.value.setNumberFormat(ee,ue),T.value[ee]=ue)}function ie(ee,ue){u.value&&u.value.mergeNumberFormat(ee,ue)}const Ae={get id(){return u.value?u.value.id:-1},locale:L,fallbackLocale:We,messages:Qe,datetimeFormats:de,numberFormats:re,get inheritLocale(){return u.value?u.value.inheritLocale:f},set inheritLocale(ee){u.value&&(u.value.inheritLocale=ee)},get availableLocales(){return u.value?u.value.availableLocales:Object.keys(_.value)},get modifiers(){return u.value?u.value.modifiers:le},get pluralRules(){return u.value?u.value.pluralRules:De},get isGlobal(){return u.value?u.value.isGlobal:!1},get missingWarn(){return u.value?u.value.missingWarn:O},set missingWarn(ee){u.value&&(u.value.missingWarn=ee)},get fallbackWarn(){return u.value?u.value.fallbackWarn:D},set fallbackWarn(ee){u.value&&(u.value.missingWarn=ee)},get fallbackRoot(){return u.value?u.value.fallbackRoot:M},set fallbackRoot(ee){u.value&&(u.value.fallbackRoot=ee)},get fallbackFormat(){return u.value?u.value.fallbackFormat:j},set fallbackFormat(ee){u.value&&(u.value.fallbackFormat=ee)},get warnHtmlMessage(){return u.value?u.value.warnHtmlMessage:F},set warnHtmlMessage(ee){u.value&&(u.value.warnHtmlMessage=ee)},get escapeParameter(){return u.value?u.value.escapeParameter:H},set escapeParameter(ee){u.value&&(u.value.escapeParameter=ee)},t:$,getPostTranslationHandler:qe,setPostTranslationHandler:Je,getMissingHandler:Ot,setMissingHandler:Ze,rt:vt,d:nt,n:Tt,tm:Vn,te:Et,getLocaleMessage:He,setLocaleMessage:dt,mergeLocaleMessage:$t,getDateTimeFormat:me,setDateTimeFormat:ze,mergeDateTimeFormat:ht,getNumberFormat:Yt,setNumberFormat:ft,mergeNumberFormat:ie};function G(ee){ee.locale.value=h.value,ee.fallbackLocale.value=y.value,Object.keys(_.value).forEach(ue=>{ee.mergeLocaleMessage(ue,_.value[ue])}),Object.keys(x.value).forEach(ue=>{ee.mergeDateTimeFormat(ue,x.value[ue])}),Object.keys(T.value).forEach(ue=>{ee.mergeNumberFormat(ue,T.value[ue])}),ee.escapeParameter=H,ee.fallbackFormat=j,ee.fallbackRoot=M,ee.fallbackWarn=D,ee.missingWarn=O,ee.warnHtmlMessage=F}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ee=u.value=e.proxy.$i18n.__composer;t==="global"?(h.value=ee.locale.value,y.value=ee.fallbackLocale.value,_.value=ee.messages.value,x.value=ee.datetimeFormats.value,T.value=ee.numberFormats.value):i&&G(ee)}),Ae}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);return globalExportProps.forEach(i=>{const u=Object.getOwnPropertyDescriptor(t,i);if(!u)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const f=Vue.isRef(u.value)?{get(){return u.value.value},set(h){u.value.value=h}}:{get(){return u.get&&u.get()}};Object.defineProperty(n,i,f)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(i=>{const u=Object.getOwnPropertyDescriptor(t,i);if(!u||!u.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,u)}),()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(initFeatureFlags(),__INTLIFY_JIT_COMPILATION__?registerMessageCompiler(compile):registerMessageCompiler(compileToFunction),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=getGlobalThis();e.__INTLIFY__=!0,setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const en={imatrixUIPublicModel:{sure:"Sure",cancel:"Cancel",allDepartments:"All Departments",allUsers:"All Users",reset:"Reset",to:"To",edit:"Edit",clear:"Clear",download:"Download",delete:"Delete",preview:"Preview",add:"Add",graphView:"Graphic view",listView:"List View",fieldName:"Field Name",operator:"Operator",value:"Value",andOr:"And/Or",whenTheVariableIsEmpty:"When The Variable Is Empty",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",ignore11:"Ignore (1 = 1)",nonConformity:"Non Conformity (1 < > 1)",switchToNormalQuery:"Switch To Normal Query",switchToAdvancedQuery:"Switch To Advanced Query",isNull:"Is Null",isNotNull:"Is Not Null",previewImage:"Preview image",fullScreen:"Full Screen",forbidden:"forbidden",startUsing:"Start Using",systemCode:"System Code",code:"Code"},imatrixUIMessage:{whetherToConfirmDeletion:"Whether To Confirm Deletion",tips:"Tips",pleaseEnterContent:"Please Enter Content",internalServerError:"Server error",pleaseSelectDepartment:"Please Select Department",pleaseSelectPersonnel:"Please Select Personnel",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"Please Remove All Personnel Before Selecting Specific Personnel",queryResultIsEmpty:"Query Result Is Empty",pleaseSelectATeam:"Please Select A Team",pleaseEnterTeamName:"Please Enter Team Name",validationFailed:"Validation Failed",selectionDate:"Selection Date",selectTime:"Select Time",pleaseEnterATimePoint:"Please Enter A Time Point",pleaseSelect:"Please Select",startDate:"Start Date",endDate:"End Date",noExportColumnsConfigured:"No Export Columns Configured",organizationTreeNoResultNotRemove:"No information selected, no need to remove",exceedFileSize:"File size limit {filesize} M exceeded",upload:"Upload",invalideDoubleValue:"{num} is not a legal decimal",noJumpPage:"Jump page not configured",saveSuccessfully:"Savee successfully",pleaseInputSearchCondition:"Please enter the query criteria",fileUpload:"File Upload",selectYear:"Select Year",search:"Search",forbiddenException:"You do not have permission to access this resource",theButtonIsNotBoundToAResource:"The button is not bound to a resource, Bind the resource first",asyncExport:"Asynchronous export, please wait for message notification!",selectedWorkingGroup:"Selected working group"},superGrid:{columnConfig:"Column Config",pleaseSaveOrCancelEditingLine:"Please Save Or Cancel Editing Line {row} Data First",pleaseSaveLine:"Please Save Line {row} Data First",noNeedToSaveRow:"No Need To Save Row {row} Data",pleaseSetURLToSaveRowInformation:'Please set "URL to save row information"',lineSavedSuccessfully:"Line {row} Saved Successfully",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"The Return Value Of The Beforesave Callback Method Is False",lineNoNeedToUndoEdit:"Line {row} No Need To Undo Edit",lineCancelledSuccessfully:"Line {row} cancelled successfully",label:"Label",isShow:"Is Show",isExportable:"Is Exportable",recordLine:"Record line {row}",pageRecordLine:"Record in row {row} of page {pageNum}",fileName:"File Name",deleteSuccessful:"Deleted successfully",index:"No.",searchConditionName:"Search Condition Name",pleaseInputSearchConditionName:"Please enter the name of the query criteria",saveCondition:"Save Condition",saveConditionTitle:"Save Condition",displayOrder:"Display Order",width:"Column Width",default:"Default",custom:"Custom",show:"Show",hidden:"Hidden",export:"Export",unExport:"Not Export",whetherToConfirmReset:"Are you sure you want to reset?",resetSuccessful:"Reset successfully",dragColumnOrderMessage:"Supports dragging to change column order",selectAll:"Select All",viewImage:"View Image",previewTitleWhenNotImg:"Non picture format, preview in other ways",refresh:"Refresh",open:"Open",fold:"Fold"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"Please Enter Department Name",name:"Department Name",code:"Department Code",removeDepartment:"Remove Department",selectedDept:"Selected Departments",namePath:"Name Path"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific"},departmentUserTreeInline:{name:"Name",department:"Department",branch:"Branch",removeUser:"Remove User",email:"Email",loginName:"Login Name",superiorDeptNameFullPath:"Department full path"},workgroupTree:{allTeamMembers:"All Team Members",name:"Workgroup Name",code:"Workgroup Code",removeWorkgroup:"Remove Workgroup",workingGroupName:"Working Group Name",workingGroupNumber:"Working Group Number",workgroupDescription:"Workgroup Description"},workflowButton:{save:"Save",submit:"Submit",approve:"Approve",refuse:"Refuse",agreement:"Agree",oppose:"Opposition",kiken:"Abstention",get_back_button:"Retrieve",copy:"Copy",draw:"Draw",abandon_draw:"Give Up Draw",add_sign:"Additional Signature",remove_sign:"Reduction Of Signature",signoff:"Sign For",assign:"Hand over",assign_task:"Transfer",readed:"Readed",export_report:"Export Report",draw_dept_task:"Draw Department",abandon_draw_dept_task:"Give Up Draw Department"},workflowHistoryList:{specailText:"specail",index:"Index",taskName:"Task Name",operation:"Operation",opinion:"Opinion",processStart:"Process Start",processEnd:"Process End",process_start:"[{1}] process start",prcoess_end:"[{1}] process End",force_end_process:"{key_1}forced to end the process, and the task of [{key_2}] was canceled",history_jump:"Process {key_3} to [{key_1}], [{key_2}] task cancelled",history_back:"{key_1} returned to task,process returned to [{key_2}]",history_removesign:"{key_1} minus [{key_2}]",history_changetransactor_and_delegate:"{key_1} changed the handler [{key_2}] to [{key_3}], [{key_4}] delegated the task to [{key_5}]",history_changetransactor:"{key_1} changed handler [{key_2}] to [{key_3}]",history_addsign:"{key_1} sign [{key_2}]",history_addtransactor:"{key_1} add handler [{key_2}]",history_removetransactor:"{key_1} decrease handler [{key_2}]",history_delegate_and_assign:"{key_1} assigned tasks to [{key_2}], [{key_3}] delegated tasks to [{key_4}]",history_assign:"{key_1} assigned task to [{key_2}]",transfer:"{key_1} transferred to [{key_2}]",history_complete_transfer:"{key_1} execute [{key_2}] operation and canceled the task of other receivers [{key_3}]",history_delegate_receive:"{key_1} retracts the task entrusted to [{key_2}]",history_delegate:"{key_1} has delegated task [{key_2}] to [{key_3}]",history_quit_transfer:"{key_1} Resignation, has transferred task [{key_2}] to [{key_3}",history_change_job_transfer:"{key_1} Change job,has transferred task [{key_2}] to [{key_3}",commonButtonOperation:"{key_1} execute [{key_2}] operation",history_draw_task:"{key_1} received the task and cancelled the task of the candidate [{key_2}]",history_abandon_draw:"{key_1} gives up the task and restores the task of candidate [{key_2}]",create_copy_task:"{key_1} The task was copied to [{key_2}",toDoText:"Todo",operator:"Operator",operatorLg:"Operator Login Name",operatorDept:"Operator Dept",operationTime:"Operation Time",history_draw_dept_task:"{key_1} Received tasks from department [{key_2}]",history_abandon_draw_dept_task:"{key_1} Abandon the task of receiving department [{key_2}]"},gateway:{timeout:"Interface call timeout",callFailed:"Interface call failed"},superNineGrid:{add:"Create"},fsUpload:{upload:"Upload",download:"Download",delete:"Delete",preview:"Preview",name:"Name",picture:"Picture",operating:"Operating",uploadSucceeded:"Upload succeeded",theNumberOfUploadsExceedsTheLimitTheLimitIs:"The number of uploads exceeds the limit. The limit is"},messageVideo:{attemptingToIdentify:"Attempting to identify",callingRearCamera:"Calling rear camera",identificationFailed:"Identification failed"},IntervalSelection:{year:"year",quarter:"quarter",auxiliary:"auxiliary word for ordinal numbers",week:"week"},imatrixUIPromptMessage:{NoContent:"No content"}},cn={imatrixUIPublicModel:{sure:"确定",cancel:"取消",allDepartments:"所有部门",allUsers:"所有用户",reset:"重置",to:"至",edit:"操作",clear:"清空",download:"下载",delete:"删除",preview:"预览",add:"增加",graphView:"图形视图",listView:"列表视图",fieldName:"字段名(*)",operator:"操作符",value:"值(*)",andOr:"并且/或者",whenTheVariableIsEmpty:"变量为空时",perhaps:"或者",also:"并且",greaterThan:"大于",lessThan:"小于",beEqualTo:"等于",notGreaterThan:"不大于",notLessThan:"不小于",notEqualTo:"不等于",contain:"包含",notIncluded:"不包含",laterThan:"晚于",earlierThan:"早于",noLaterThan:"不晚于",noEarlierThan:"不早于",ignore11:"忽略(1=1)",nonConformity:"不符合(1<>1)",switchToNormalQuery:"切换为普通查询",switchToAdvancedQuery:"切换为高级查询",isNull:"等于Null",isNotNull:"不等于Null",previewImage:"预览图片",fullScreen:"全屏",forbidden:"禁用",startUsing:"启用",systemCode:"系统编码",code:"编码"},imatrixUIMessage:{whetherToConfirmDeletion:"是否确认删除",tips:"提示",pleaseEnterContent:"请输入内容",internalServerError:"请求失败",pleaseSelectDepartment:"请选择部门",pleaseSelectPersonnel:"请选择人员",pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:"请先移除所有人员,再选择具体人员",queryResultIsEmpty:"查询结果为空",pleaseSelectATeam:"请选择工作组",pleaseEnterTeamName:"请输入工作组名称",validationFailed:"验证失败",selectionDate:"选择日期",selectTime:"选择时间",pleaseEnterATimePoint:"请输入时间点",pleaseSelect:"请选择",startDate:"开始日期",endDate:"结束日期",noExportColumnsConfigured:"没有配置导出列",organizationTreeNoResultNotRemove:"未选择任何信息,无需移除",exceedFileSize:"超过文件大小限制{fileSize}M",upload:"上传",invalideDoubleValue:"{num} 不是合法的小数",noJumpPage:"未配置跳转页面",saveSuccessfully:"保存成功",pleaseInputSearchCondition:"请输入查询条件",fileUpload:"文件上传",selectYear:"选择年",search:"查询",forbiddenException:"您没有权限访问该资源",theButtonIsNotBoundToAResource:"该按钮未绑定资源,请先绑定资源",asyncExport:"正在异步导出,请等待消息通知!",selectedWorkingGroup:"已选工作组"},superGrid:{columnConfig:"字段配置",pleaseSaveOrCancelEditingLine:"请先保存或撤销编辑第 {row} 行数据",pleaseSaveLine:"请先保存第 {row} 行数据",noNeedToSaveRow:"无需保存第 {row} 行数据",pleaseSetURLToSaveRowInformation:"请设置“保存行信息的url”",lineSavedSuccessfully:"第 {row} 行保存成功",theReturnValueOfTheBeforesaveCallbackMethodIsFalse:"beforeSave回调方法返回值为false",lineNoNeedToUndoEdit:"第 {row} 行无需撤销编辑",lineCancelledSuccessfully:"第 {row} 行撤销成功",label:"字段名",isShow:"是否显示",isExportable:"是否导出",recordLine:"第 {row} 行记录",pageRecordLine:"第 {pageNum} 页第 {row} 行记录",fileName:"文件名称",deleteSuccessful:"删除成功",index:"序号",searchConditionName:"查询条件名称",pleaseInputSearchConditionName:"请输入查询条件名称",saveCondition:"保存条件",saveConditionTitle:"保存查询条件",displayOrder:"显示顺序",width:"列宽",default:"默认",custom:"自定义",show:"显示",hidden:"隐藏",export:"导出",unExport:"不导出",whetherToConfirmReset:"是否确认重置?",resetSuccessful:"重置成功",dragColumnOrderMessage:"支持拖动改变列顺序",selectAll:"全选",viewImage:"查看图片",previewTitleWhenNotImg:"非图片格式,使用其它方式预览",refresh:"刷新",open:"展开",fold:"收起"},departmentTree:{},departmentTreeInline:{pleaseEnterDepartmentName:"请输入部门名称",name:"部门名称",code:"部门编码",removeDepartment:"移除部门",selectedDept:"已选部门",namePath:"名称路径"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称"},departmentUserTreeInline:{name:"姓名",department:"所属部门",branch:"所属分支",removeUser:"移除用户",email:"邮箱",loginName:"登录名",superiorDeptNameFullPath:"组织全路径"},workgroupTree:{allTeamMembers:"所有工作组人员",name:"工作组名称",code:"工作组编码",removeWorkgroup:"移除工作组",workingGroupName:"工作组名称",workingGroupNumber:"工作组编号",workgroupDescription:"工作组描述"},workflowButton:{save:"暂存",submit:"提交",approve:"同意",refuse:"不同意",agreement:"赞成",oppose:"反对",kiken:"弃权",get_back_button:"取回",copy:"抄送",draw:"领取",abandon_draw:"放弃领取",add_sign:"加签",remove_sign:"减签",signoff:"签收",assign:"交办",assign_task:"转办",readed:"已阅",export_report:"导出报告",draw_dept_task:"部门领取",abandon_draw_dept_task:"放弃部门领取"},workflowHistoryList:{specailText:"特",index:"序号",taskName:"环节名称",operation:"流转操作",opinion:"办理意见",processStart:"流程开始",processEnd:"流程结束",process_start:"[{key_1}]流程开始",prcoess_end:"[{key_1}]流程结束",force_end_process:"{key_1}强制结束了该流程,[{key_2}]的任务被取消",history_jump:"流程{key_3}到[{key_1}],[{key_2}]的任务被取消",history_back:"{key_1}退回任务,流程退回到[{key_2}]",history_removesign:"{key_1}给[{key_2}]减签",history_changetransactor_and_delegate:"{key_1}把办理人[{key_2}]更改成[{key_3})],{key_4}把任务委托给了[{key_5}]",history_changetransactor:"{key_1}把办理人[{2}]更改成[{key_3}]",history_addsign:"{key_1}给[{key_2}]加签",history_addtransactor:"{key_1}增加办理人[{key_2}]",history_removetransactor:"{key_1}减少办理人[{key_2}]",history_delegate_and_assign:"{key_1}把任务指派给了[{key_2}],[{key_3}]把任务委托给了[{key_4}]",history_assign:"{key_1}把任务指派给了[{key_2}]",transfer:"{key_1}移交给[{key_2}]",history_complete_transfer:"{key_1}执行了[{key_2}]操作,取消了其它接收人[{key_3}]的任务",history_delegate_receive:"{key_1}收回委托给[{key_2}]的任务",history_delegate:"{key_1}已把任务[{key_2}]委托给[{key_3}]",history_quit_transfer:"{key_1}离职,已把任务[{2}]移交给了[{key_3}]",history_change_job_transfer:"{1}换岗,已把任务[{2}]移交给了[{key_3}]",commonButtonOperation:"{key_1}执行了[{key_2}]操作",history_draw_task:"{key_1}领取了任务,取消了候选人[{key_2}]的任务",history_abandon_draw:"{key_1}放弃领取该任务,还原了候选人[{key_2}]的任务",create_copy_task:"{key_1}把任务抄送给了[{key_2}]",toDoText:"待处理",operator:"操作人",operatorLg:"操作人登录名",operatorDept:"操作人部门",operationTime:"操作时间",history_draw_dept_task:"{key_1}领取了部门[{key_2}]的任务",history_abandon_draw_dept_task:"{key_1}放弃领取部门[{key_2}]的任务"},gateway:{timeout:"接口调用超时",callFailed:"接口调用失败"},superNineGrid:{add:"新建"},fsUpload:{upload:"上传",download:"下载",delete:"删除",preview:"预览",name:"名称",picture:"图片",operating:"操作",uploadSucceeded:"上传成功",theNumberOfUploadsExceedsTheLimitTheLimitIs:"上传数量超过限制,限制数量为"},messageVideo:{attemptingToIdentify:"正在尝试识别....",callingRearCamera:"正在调用后置摄像头...",identificationFailed:"识别失败"},IntervalSelection:{year:"年",quarter:"季度",auxiliary:"第",week:"周"},imatrixUIPromptMessage:{NoContent:"暂无内容"}},messages$1={en,cn},i18n=createI18n({locale:"cn",messages:messages$1,legacy:!1});class CalculatorFactory{constructor(){if(new.target===CalculatorFactory)throw new Error("抽象类不能实例化!")}isNullValue(t,n){return(t==null||t+""=="")&&n==="IS_NULL"}isNotNullValue(t,n){return t!=null&&t+""!=""&&n==="IS_NOT_NULL"}isEQEmptyValue(t,n,a){return(t==null||t+""=="")&&(a==null||a+""=="")&&(n==="EQ"||n==="CONTAIN")}}class NumberCalculator extends CalculatorFactory{constructor(t,n,a){if(super(),this.isNotNullValue(t,n))this.result=!0;else if(this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,a))this.result=!0;else if(t==null)this.result=!1;else{const i=+(t+""),u=+(a+"");if(n==="GET")this.result=i>=u;else if(n==="LET")this.result=i<=u;else if(n==="GT")this.result=i>u;else if(n==="LT")this.result=i<u;else if(n==="NET")this.result=i!==u;else if(n==="EQ")this.result=i===u;else if(n==="IS_NULL")this.result=t==null;else if(n==="IS_NOT_NULL")this.result=t!=null;else throw new Error("表达式不合法:"+t+" "+n+" "+a)}}}class TextCalculator extends CalculatorFactory{constructor(t,n,a){if(super(),this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,a))this.result=!0;else if(this.isNotNullValue(t,n))this.result=!0;else if(t==null)this.result=!1;else if(n==="NET")this.result=t!==a;else if(n==="EQ")this.result=t===a;else if(n==="NOT_CONTAIN")this.result=!t.includes(a);else if(n==="CONTAIN")this.result=t.includes(a);else if(n==="IS_NULL")this.result=t==null||t==="";else if(n==="IS_NOT_NULL")this.result=t!=null&&t!=="";else throw new Error("表达式不合法:"+t+" "+n+" "+a)}}function getAbstractUserFactory(e){switch(e){case"TEXT":return TextCalculator;case"DOUBLE":return NumberCalculator;case"FLOAT":return NumberCalculator;case"INTEGER":return NumberCalculator;case"LONG":return NumberCalculator;case"DATE":return NumberCalculator;case"TIME":return NumberCalculator;default:return TextCalculator}}function executeExpression(e,t,n,a){const i=getAbstractUserFactory(a);return new i(e,t,n).result}/*! js-cookie v3.0.5 | MIT */function assign(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var defaultConverter={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(e,t){function n(i,u,f){if(!(typeof document>"u")){f=assign({},t,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var y in f)f[y]&&(h+="; "+y,f[y]!==!0&&(h+="="+f[y].split(";")[0]));return document.cookie=i+"="+e.write(u,i)+h}}function a(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var u=document.cookie?document.cookie.split("; "):[],f={},h=0;h<u.length;h++){var y=u[h].split("="),_=y.slice(1).join("=");try{var x=decodeURIComponent(y[0]);if(f[x]=e.read(_,x),i===x)break}catch{}}return i?f[i]:f}}return Object.create({set:n,get:a,remove:function(i,u){n(i,"",assign({},u,{expires:-1}))},withAttributes:function(i){return init(this.converter,assign({},this.attributes,i))},withConverter:function(i){return init(assign({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var api=init(defaultConverter,{path:"/"});const jwtKey="JWT",currentUserNameKey="USERNAME",currentUserInfoKey="CURRENT_USER",currentSystemUrlKey="CURRENT_SYSTEM_URL_",langKey="CURRENT_LANGUAGE",allLangKey="AMB_LANG_INFO",versionEnv="VERSION_ENVIRONMENT",userVersion="CURRENT_USER_SYSTEM_VERSION",runDevpJwtKey="_runDevpJWT";function getToken$1(){let e=isDevpSystem(),t;return e?t=getMyToken():(t=getSessionCache(runDevpJwtKey),t||(t=getMyToken())),t}function isDevpSystem(){let e=!1;const t=window.$vueApp.config.globalProperties.systemCode;return t&&t==="devp"&&(e=!0),e}function getMyToken(){let e=getCookieCache(jwtKey);return e||(e=getSessionCache(jwtKey),console.log("authAPI.getToken---getSessionCache=",e)),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey)}function getUsername(){let e=getRunInfoKey(currentUserNameKey),t=getCookieCache(e);return t||(t=getSessionCache(e)),t}function setUsername(e){let t=getRunInfoKey(currentUserNameKey);setSessionCache(t,e),setCookieCache(t,e)}function removeUsername(){removeSessionCache(currentUserNameKey),removeCookieCache(currentUserNameKey)}function getCurrentUser(){const e=getRunInfoKey(currentUserInfoKey);return getCurrentUserByKey(e)}function getCurrentUserByKey(e){let t=getCookieCache(e);if(t||(t=getSessionCache(e)),t)return JSON.parse(t)}function setCurrentUser(e){const t=getRunInfoKey(currentUserInfoKey);if(e){e.password&&(e.password=null);const n=JSON.stringify(e);setSessionCache(t,n),setCookieCache(t,n)}}function getRunInfoKey(e){let t=e;return isDevpSystem()||getSessionCache(runDevpJwtKey)&&(t="_run_"+t),t}function removeCurrentUser(){removeSessionCache(currentUserInfoKey),removeCookieCache(currentUserInfoKey)}function getCookieCache(e){return api.get(e)}function setCookieCache(e,t){api.set(e,t,{path:"/"})}function removeCookieCache(e){api.remove(e,{path:"/"})}function getSessionCache(e){return window.sessionStorage.getItem(e)}function setSessionCache(e,t){return window.sessionStorage.setItem(e,t)}function removeSessionCache(e){window.sessionStorage.removeItem(e)}function getSystemCacheUrlByCode(e){if(e||(e=window.$vueApp.config.globalProperties.customSystem),e||(e=window.$vueApp.config.globalProperties.systemCode),e){const t=getSystemCacheUrl();if(t)return t[e]}}function getSystemCacheUrl(){let e=getCookieCache(currentSystemUrlKey);if(e||(e=getSessionCache(currentSystemUrlKey)),e)return JSON.parse(e)}function setSystemCacheUrl(e){if(e){const t=JSON.stringify(e);setSessionCache(currentSystemUrlKey,t),setCookieCache(currentSystemUrlKey,t)}}function removeSystemCacheUrl(){removeSessionCache(currentSystemUrlKey),removeCookieCache(currentSystemUrlKey)}function getLanguage(){let e=getCookieCache(langKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(langKey)),e}function setLanguage(e){setCookieCache(langKey,e),setSessionCache(langKey,e)}function removeLanguage(){removeCookieCache(langKey),removeSessionCache(langKey)}function getAllLanguages$1(){let e=getCookieCache(allLangKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache(allLangKey)),e}function setAllLanguages(e){setCookieCache(allLangKey,e),setSessionCache(allLangKey,e)}function removeAllLanguages(){removeCookieCache(allLangKey),removeSessionCache(allLangKey)}function removePublishControl(){removeCookieCache(versionEnv),removeCookieCache(userVersion)}const authApi={getToken:getToken$1,setToken,removeToken,getUsername,setUsername,removeUsername,getCurrentUser,setCurrentUser,removeCurrentUser,getCookieCache,setCookieCache,removeCookieCache,getSessionCache,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl,getLanguage,setLanguage,removeLanguage,getAllLanguages:getAllLanguages$1,setAllLanguages,removeAllLanguages,removePublishControl,isDevpSystem,getRunInfoKey};function getToken(){return authApi.getToken()}function getAllLanguages(){return authApi.getAllLanguages()}function getRelativeBaseUrl(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 n="";const a=e.split("/");if(a.length>=3){const i=a[0]+"//"+a[2];n=e.substring(e.indexOf(i)+i.length)}return t.lastIndexOf("/")===t.length-1&&(t=t.substring(0,t.lastIndexOf("/"))),n?t+n:t}}return e}function getUrlPrefix(e){const t=e.split("#");if(t.length>0){const n=t[0];let a=n;const i=n.split("/");return i.length>=3&&(a=i[0]+"//"+i[2]+"/"),a}}function isShowMenuRoute(){let e=window.$vueApp.config.globalProperties.showMenuRoute;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"))}function isPromise$1(e){return e&&Object.prototype.toString.call(e)==="[object Promise]"}function getLangs(){return getAllLanguages()}function getLangByShort(e){let t;const n=getLangs();return n&&(t=JSON.parse(n)[e]),t||(t="zh_CN"),t}function getI18n(){return window.$locale?i18n.locale=window.$locale:i18n.locale="cn",i18n.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function analysisCondition(e,t,n,a,i,u,f){if(e===void 0||e===""||e===null)return!0;(typeof i>"u"||i===null)&&(i=!1);let h={};n&&typeof n=="string"&&n!==""?h=JSON.parse(n):n&&typeof n=="object"&&(h=n);let y={};a&&typeof a=="string"&&a!==""?y=JSON.parse(a):a&&typeof a=="object"&&(y=a);let _=[];return e&&typeof e=="string"&&e!==""?_=JSON.parse(e):e&&Array.isArray(e)&&(_=e),parseCondition(t,_,i,u,h,y,f)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData){if(conditionList==null||conditionList.length===0)return!0;let conditions="";for(let e=0;e<conditionList.length;e++){const t=conditionList[e];let n=t.propName,a=t.propDbName;if((!n||n==="")&&(!a||a===""))continue;let i;if(isSql&&a){if(a.indexOf("parent_+_")!==-1?(a=a.replace("parent_+_",""),a=a.split("_+_")[1],i=getValue$2(parentFormData,a,isSql)):i=getValue$2(entity,a,isSql),i==null&&tableName&&a.toLowerCase().startsWith(tableName.toLowerCase()+".")){const M=a.substring(a.indexOf("."));i=getValue$2(entity,M,isSql)}}else n.indexOf("parent_+_")!==-1?(n=n.replace("parent_+_",""),n=n.split("_+_")[1],i=getValue$2(parentFormData,n,isSql)):i=getValue$2(entity,n,isSql),a&&i==null&&(i=getValue$2(entity,a,isSql));const u=t.operator,f=t.propValue,h=t.dataType,y=t.variableIsNull;let _=getPropValue(f,entity,additionalParamMap,contextParameterMap);y&&y==="null"&&(_===void 0||_==="")&&(_=null);let x=executeExpression(i,u,_,h);const T=t.leftBracket,O=t.rightBracket;let D=t.joinSign;if(T&&T!==null&&T!==""&&(conditions=conditions+T,conditions=conditions+" "),y&&y!=="null"&&(_==null||_+""=="")&&(y==="1=1"?x=!0:x=!1),conditions+=x+" ",O&&O!==null&&O!==""&&(conditions=conditions+O,conditions=conditions+" "),e<conditionList.length-1&&D&&D!==null&&D!==""){const M=D.toLowerCase();M==="and"?D=M.replace("and","&&"):M==="or"&&(D=M.replace("or","||")),conditions+=D+" "}}return console.log("parseCondition----conditions=",conditions),conditions?eval("("+conditions+")"):!0}const REPLACE_DOT="__";function getValue$2(e,t,n){let a=null;return e&&e!==null&&t&&t!==null&&(a=getValueByField(e,t),a==null&&n&&(a===void 0||a==null)&&t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),a=getValueByField(e,t))),a}function getValueByField(e,t){if(e&&e!==null){let n;return t.indexOf(".")>0?n=getSubEntityValue(e,t):(n=e[t.toUpperCase()],n===void 0&&(n=e[t.toLowerCase()])),n}}function getSubEntityValue(e,t){let n=null,a=e;const i=t.split("\\.");for(let u=0;u<i.length;u++){const f=i[u];u===i.length?n=getSubEntityFieldValue(a,f):a=getSubEntityFieldValue(a,f)}return n}function getSubEntityFieldValue(e,t){return e==null?null:e[t]}function getContextValue(e,t){let n=getLastNDate(t);return e&&(n=e[t]),n}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 n=e.substring(e.indexOf(":")+1);t=getLastNDay(parseInt(n))}return t}function getCurrentWeek(){const e=new Date,t=e.getTime(),n=e.getDay(),a=new Date(t+24*60*60*1e3*(0-(n+6)%7)),i=new Date(t+24*60*60*1e3*(6-(n+6)%7)),u=a.toLocaleDateString()+" "+a.toLocaleTimeString(),f=i.toLocaleDateString()+" "+i.toLocaleTimeString();return console.log(`getCurrentMonth从 ${u} 开始,到 ${f} 结束`),[a,i]}function getCurrentMonth(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1;e.setDate(1);const a=`${t}/${n<10?"0":""}${n}/01`;e.setMonth(e.getMonth()+2),e.setDate(0);const i=`${e.getFullYear()}/${e.getMonth()<9?"0":""}${e.getMonth()+1}/01`,u=new Date(Date.parse(a)),f=new Date(new Date(Date.parse(i)).getTime()-1e3),h=u.toLocaleDateString()+" "+u.toLocaleTimeString(),y=f.toLocaleDateString()+" "+f.toLocaleTimeString();return console.log(`getCurrentMonth从 ${h} 开始,到 ${y} 结束`),[u,f]}function getCurrentQuarter(){const e=new Date,t=(e.getMonth()+3)%12;let n;e.getMonth()<t+2?n=new Date(e.getFullYear(),t,1):n=new Date(e.getFullYear()+1,t,1);let a;n.getMonth()===11?a=new Date(n.getFullYear()+1,0,0):a=new Date(n.getFullYear(),n.getMonth()+3,0),a=new Date(a.getTime()+24*60*60*1e3-1e3);const i=n.toLocaleDateString()+" "+n.toLocaleTimeString(),u=a.toLocaleDateString()+" "+a.toLocaleTimeString();return console.log(`getCurrentQuarter从 ${i} 开始,到 ${u} 结束`),[n,a]}function getCurrentYear(){const e=new Date().getFullYear();let t=new Date(e,0);t.setMonth(0,1);let n=new Date(e+1,0);n=n.getTime()-1e3,n=new Date(n);const a=t.toLocaleDateString()+" "+t.toLocaleTimeString(),i=n.toLocaleDateString()+" "+n.toLocaleTimeString();return console.log(`getCurrentYear从 ${a} 开始,到 ${i} 结束`),[t,n]}function getLastNDay(e){let t=new Date,n=t.getFullYear(),a=t.getMonth()+1,i=t.getDate(),u=`${n}/${a<10?"0":""}${a}/${i}`;t=new Date(Date.parse(u)),t.setDate(t.getDate()+1),t=new Date(t.getTime()-1e3);let f=new Date;f.setDate(f.getDate()-(e-1));const h=f.getFullYear(),y=f.getMonth()+1,_=f.getDate(),x=`${h}/${y<10?"0":""}${y}/${_}`;f=new Date(Date.parse(x));const T=f.toLocaleDateString()+" "+f.toLocaleTimeString(),O=t.toLocaleDateString()+" "+t.toLocaleTimeString();console.log(`getLastNDay从 ${T} 开始,到 ${O} 结束`),retur[t]}function getPropValue(e,t,n,a,i,u,f){let h=null;if(e&&e!==null&&e!=="")if(e==="null")h=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),h=getContextValue(a,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),n&&n!=null&&Object.keys(n).indexOf(e)>=0&&n[e]&&n[e]!==null?h=n[e]:h=null;else if(e.includes("${obj."))if(t===void 0||t==null)h=null;else{const y=e.replace("${obj.","").replace("}","");h=getEntityFieldValue(t,y)}}else if(e.includes("${parent."))if(i===void 0||i==null)h=null;else{const y=e.replace("${parent.","").replace("}","");h=getEntityFieldValue(i,y)}else if(e.includes("${task."))if(f===void 0||f==null)h=null;else{const y=e.replace("${task.","").replace("}","");h=getEntityFieldValue(f,y)}else if(e.includes("${subObj."))if(u===void 0||u==null)h=null;else{const y=e.replace("${subObj.","").replace("}","");h=getEntityFieldValue(u,y)}else e.includes("${input.")?h=e.replace("${input.","").replace("}",""):h=e;return h}function analysisValue(e,t,n,a){if(!e)return;let i="";const u=e.split("-#-#");return u!=null&&u.length>0&&u.forEach(f=>{let h=getPropValue(f,t,n,a);(!h||h===null)&&(h=""),i+=h}),i}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){const a=getParentObjectUtil(t,e);if(a){const i=t.substring(t.lastIndexOf(".")+1);a[i]===void 0?a[t.substring(t.lastIndexOf(".")+1)]=n:a[i]=n}}else e[t]===void 0||e[t],e[t]=n}function getEntityFieldValueWithOutCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),a=t.substring(t.lastIndexOf(".")+1);return n[a]}else return e[t]}function getEntityFieldValue(e,t,n){let a=getEntityFieldValueWithCase(e,t);return a==null&&(a=getEntityFieldValueWithCase(e,t.toLowerCase())),(a===void 0||a===null&&n===void 0)&&(a=getEntityFieldValueWithCase(e,t.toUpperCase())),a}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),a=t.substring(t.lastIndexOf(".")+1);return n[a]}else return e[t]}function getParentObjectUtil(e,t){const n=e.split(".");if(n.length===1)return t;{let a;for(let i=0;i<n.length-1;i++)i===0?a=getParentModelProp(n[i],t):a=getParentModelProp(n[i],a);return a}}function getParentModelProp(e,t){let n=getParentModelPropWithCase(e,t);return n===void 0&&(n=getParentModelPropWithCase(e.toLowerCase(),t)),n===void 0&&(n=getParentModelPropWithCase(e.toUpperCase(),t)),n}function getParentModelPropWithCase(e,t){return t||(t={}),!t[e]&&!t[e.toUpperCase()]&&(t[e]={}),t[e]}function getPropNameWhenJoinTable(e,t,n){if(e&&t!==void 0&&t===!0){const a="__";e.indexOf(".")>0?e=e.replace(".",a):n&&n!==null&&n!==""&&e.indexOf(n+a)<0&&(e=n+a+e)}return e}function isImage(e){return!!/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)}const utils={getSearchUserFields(){const e=getI18n();return[{value:"name",label:e.t("departmentUserTree.searchFieldUserName")},{value:"loginName",label:e.t("departmentUserTree.searchFieldLoginName")},{value:"email",label:e.t("departmentUserTree.searchFieldEmail")},{value:"telephone",label:e.t("departmentUserTree.searchFieldTelephone")},{value:"jobNumber",label:e.t("departmentUserTree.searchFieldJobNumber")},{value:"honorificName",label:e.t("departmentUserTree.searchFieldHonorificName")}]},removeRow(e,t){for(var n=e.length,a=0;a<n;a++)if(e[a].id===t.id)return a===0?(e.shift(),e):a===n-1?(e.pop(),e):(e.splice(a,1),e);return e},storeSeachValue(e,t,n){if(n&&n!==""){var a=e.getObject(t);if(a&&a.length>0){var i=a.filter(this.createFilter(n));if(i.length===0){const f={value:n};a.push(f),e.setObject(t,a)}}else{var u=[];const f={value:n};u.push(f),e.setObject(t,u)}this.restaurants=e.getObject(t)}},createFilter(e){return t=>t.value.toLowerCase().indexOf(e.toLowerCase())===0},handleSelectUtil(e,t){this.storeSeachValue(t,this.searchStoreKey,this.filterText),this.search(e.value)},analysisLabelTag(e,t,n,a){let i="";if(e){let f;if(e!==""&&typeof e=="string"?f=e.split("-#-#"):typeof e=="object"&&(f=e),f&&f.length>0)for(var u=0;u<f.length;u++){let h=f[u];if(h.indexOf("obj.")!==-1){if(h=h.replace("${obj.","").replace("}",""),t){let y=t[h];this.childIsObjectProp(h)&&(y=this.childObjectPropOriginalValue(t,h)),i+=y}}else if(h.indexOf("request.")!==-1){if(h=h.replace("${request.","").replace("}",""),a){const y=a[h];y&&(i+=y)}}else if(h.indexOf("input.")!==-1)h=h.replace("${input.","").replace("}",""),i+=h;else if(h.indexOf("context.")!==-1&&(h=h.replace("${context.","").replace("}",""),n)){const y=n[h];y&&(i+=y)}}}return i},childIsObjectProp(e){return e.indexOf(".")>0},childObjectPropOriginalValue(e,t){try{let n=e;return t.split(".").forEach(i=>{if(n)n=n[i];else throw n="",n}),n}catch{return""}},getSelectUsers(e,t,n){return new Promise((a,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(u=>{a(u)}).catch(u=>{i(u)}):a([]):a([])})}},departmentTreeService={filterAppendNodes(e){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/search-pc-depts",this.searchParam).then(t=>{if(t){if(t.length===0){this.searchResult=[],this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")});return}this.searchResult=t}else this.$message({showClose:!0,type:"error",message:getI18n().t("imatrixUIMessage.queryResultIsEmpty")})})},search(e){this.searchValue=e;let t=e;t&&(t=t.trim()),this.searchParam.searchValue=t,this.searchParam.departmentInfo=this.departmentInfo,this.filterAppendNodes(e)},handleSelect(e){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/api/departments?departmentCode="+e.code).then(t=>{if(t!==null)for(const n in t)e.hasOwnProperty(n)&&(e[n]=t[n]);this.filterText="",this.searchValue="",this.setMemoryCacheData(e,"department"),this.multiple?this.selectResult.findIndex(a=>a.code===e.code)<0&&this.selectResult.push(e):(this.packageSelectResult(e),$emit(this,"result",this.selectNodeInfo))})},querySearch(e,t){!this.filterText&&this.filterText.length===0?this.memorySearch(e,t):(this.search(this.filterText),t([]))},clickSearch(){this.storeSeachValue(),this.search(this.filterText)},loadDepartmentWhenSearch(e,t){return new Promise((n,a)=>{if(t.length===e)n();else{const i=t[e];let u=i;const f="~";i.indexOf(f)>-1&&(u=i.substring(i.indexOf("~")+1)),this.loadDepartment(u).then(()=>{this.loadDepartmentWhenSearch(++e,t)}).catch(h=>{a(h)})}})},handleCheckNode(e,t){if(t.checkedKeys.indexOf(e.id)>-1){if(this.isloading=!0,e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const n=JSON.parse(e.data);this.selectUser(null,n)}e.childDepartments?(this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e),this.isloading=!1):e.leaf?this.isloading=!1:(this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e.id).then(n=>{this.$refs.deparmentTree.updateKeyChildren(e.id,n),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0,this.checkedNodeAndChildren(e)}),this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/child-departments/"+e.id).then(n=>{n&&!this.checkStrictly&&(n.forEach(a=>{this.selectUser(null,a)}),this.isloading=!1)}))}else this.cancelChildCheckedNodes(e)},loadNode(e,t){var n=0;e.level===0?n=0:n=e.data.id;var a=[];this.$refs.deparmentTree&&(a=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,a)},initLoadDepartment(e,t,n,a){this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(i=>{if(n(i),this.$refs.deparmentTree.updateKeyChildren(e,i),e===0){const u=i[0].data;i[0].disable=!0,this.tenantInfo=JSON.parse(u),this.containBranch=i[0].containBranch,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId)}this.isClickNode?(this.isClickNode=!1,this.checkedNodeAndChildren(t.data)):a&&a.indexOf(e)>-1&&this.checkedNodeAndChildren(t.data)})},loadDepartment(e,t,n){return new Promise((a,i)=>{this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(u=>{this.$refs.deparmentTree.updateKeyChildren(e,u),this.$refs.deparmentTree.store.nodesMap[e]&&(this.$refs.deparmentTree.store.nodesMap[e].expanded=!0),a()}).catch(u=>{console.log("error",u)})})},loadPointDepartments(){this.$http.post(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/point-departments",this.departmentInfo).then(e=>{this.$refs.deparmentTree.updateKeyChildren(this.tenantNodeId,e),this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId]&&(this.$refs.deparmentTree.store.nodesMap[this.tenantNodeId].expanded=!0)})},getSelectDepts(e,t,n){return new Promise((a,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(u=>{a(u)}).catch(u=>{i(u)}):a([]):a([])})},packageAllDept(){var e={id:this.tenantNodeId,name:"所有部门"};return e},initSelectDepts(){return new Promise((e,t)=>{const n=[];this.selectDepartmentInfo?this.selectDepartmentInfo===this.tenantNodeId||this.selectDepartmentInfo==="所有部门"?(n.push(this.packageAllDept()),e(n)):this.getSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(a=>{e(a)}).catch(a=>{t(a)}):e(n)})}},searchResult_vue_vue_type_style_index_0_lang$3="",_sfc_main$16={data(){let e=this.height;return e=e.substring(0,e.indexOf("px")),{singleUserIndex:null,selectedUser:null,myHeight:parseInt(e)+30+"px",ElIconPlus:plus_default,ElIconDelete:delete_default}},name:"UserResult",props:{gridData:{type:Array,default:null},containBranch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},isSearchResult:{type:Boolean,default:!0},height:{type:String,default:"300px"},selectResult:{type:Array,default:function(){return[]}}},created(){console.log("search-result---",this.gridData)},methods:{removeUser(e,t){$emit(this,"removeUser",e,t)},addUser(e,t){$emit(this,"addUser",e,t)},selectUser(e){$emit(this,"selectResult",this.gridData[e])},rowClick(e,t,n){this.singleUserIndex=e.row_index,$emit(this,"selectResult",e)},tableRowClassName({row:e,rowIndex:t}){e.row_index=t},rowDblclick(e,t,n){this.multiple?$emit(this,"addUser",null,e):$emit(this,"resultRowDblclick",e)},isDisable(e){if(this.selectResult){const t=this.selectResult.filter(this.filterDept(e));if(t&&t.length>0)return!0}return!1},filterDept(e){return t=>t.id===e.id}},emits:["removeUser","addUser","selectResult","resultRowDblclick"]},_hoisted_1$R={style:{height:"100%"}},_hoisted_2$y=["title"],_hoisted_3$n=["title"],_hoisted_4$g=["title"],_hoisted_5$d={class:"roleQuery_center_area",style:{height:"395px"}},_hoisted_6$a={class:"roleQuery_notAvailable",style:{width:"120px",height:"120px"}},_hoisted_7$6={class:"roleQuery_notAvailable_text"};function _sfc_render$13(e,t,n,a,i,u){const f=Vue.resolveComponent("el-radio"),h=Vue.resolveComponent("el-table-column"),y=Vue.resolveComponent("el-button"),_=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$R,[Vue.createVNode(_,{ref:"superGrid",data:n.gridData,"max-height":i.myHeight,"row-class-name":u.tableRowClassName,border:"",fit:"","row-key":"id",onRowClick:u.rowClick,onRowDblclick:u.rowDblclick},{empty:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$d,[Vue.createElementVNode("div",_hoisted_6$a,[Vue.createElementVNode("span",_hoisted_7$6,Vue.toDisplayString(e.$t("imatrixUIPromptMessage.NoContent")),1)])])]),default:Vue.withCtx(()=>[n.multiple===!1?(Vue.openBlock(),Vue.createBlock(h,{key:0,width:"60"},{default:Vue.withCtx(x=>[Vue.createVNode(f,{modelValue:i.singleUserIndex,"onUpdate:modelValue":t[0]||(t[0]=T=>i.singleUserIndex=T),label:x.$index,onChange:u.selectUser},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(x.$index+1),1)]),_:2},1032,["modelValue","label","onChange"])]),_:1})):Vue.createCommentVNode("",!0),n.multiple&&n.isSearchResult?(Vue.openBlock(),Vue.createBlock(h,{key:1,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(y,{disabled:u.isDisable(x.row),icon:i.ElIconPlus,circle:"",size:"default",type:"primary",onClick:T=>u.addUser(x.$index,x.row)},null,8,["disabled","icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple?(Vue.openBlock(),Vue.createBlock(h,{key:2,label:e.$t("superGrid.index"),align:"center",width:"60px"},{default:Vue.withCtx(x=>[Vue.createTextVNode(Vue.toDisplayString(x.$index+1),1)]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple&&!n.isSearchResult?(Vue.openBlock(),Vue.createBlock(h,{key:3,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"right",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(y,{icon:i.ElIconDelete,circle:"",size:"default",type:"danger",onClick:T=>u.removeUser(x.$index,x.row)},null,8,["icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(h,{label:e.$t("departmentTreeInline.name"),width:170,prop:"name"},{default:Vue.withCtx(x=>[Vue.createElementVNode("span",{title:x.row.showName,class:"ellipsis cell--span"},Vue.toDisplayString(x.row.showName),9,_hoisted_2$y)]),_:1},8,["label"]),Vue.createVNode(h,{label:e.$t("departmentTreeInline.code"),width:140,prop:"code"},{default:Vue.withCtx(x=>[Vue.createElementVNode("span",{title:x.row.code,class:"ellipsis cell--span"},Vue.toDisplayString(x.row.code),9,_hoisted_3$n)]),_:1},8,["label"]),Vue.createVNode(h,{label:e.$t("departmentTreeInline.namePath"),width:140,prop:"namePath"},{default:Vue.withCtx(x=>[Vue.createElementVNode("span",{title:x.row.namePath,class:"ellipsis cell--span"},Vue.toDisplayString(x.row.namePath),9,_hoisted_4$g)]),_:1},8,["label"])]),_:1},8,["data","max-height","row-class-name","onRowClick","onRowDblclick"])])}const UserResult$1=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$13]]),memoryCacheUtils={memorySearch(e,t){var n=this.memoryCacheData,a=n;setTimeout(()=>{t(a)},10*Math.random())},setMemoryCacheData(e,t){t==="departmentUser"?this.setDepartmentUserMemoryCacheData(e):t==="department"&&this.setDepartmentMemoryCacheData(e)},getMemoryCacheData(e){e==="departmentUser"?this.getDepartmentUserMemoryCacheData():e==="department"&&this.getDepartmentMemoryCacheData()},setDepartmentUserMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),a=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.loginName===void 0||e.loginName===null||e.loginName==="undefined"?"":e.loginName,u=e.mainDepartmentName===void 0||e.mainDepartmentName===null||e.mainDepartmentName==="undefined"?"":e.mainDepartmentName;const f=a+"("+i+"/"+u+")";var h=-1;n&&n.length>0?h=n.findIndex(y=>y.loginName===e.loginName):n=[],e.value=f,h<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(h,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),a=e.name===void 0||e.name===null||e.name==="undefined"?"":e.name,i=e.code===void 0||e.code===null||e.code==="undefined"?"":e.code;const u=a+"("+i+")";var f=-1;n&&n.length>0?f=n.findIndex(h=>h.code===e.code):n=[],e.value=u,f<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(f,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},getDepartmentUserMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)},getDepartmentMemoryCacheData(){var e=localStorage$1.getObject(this.memoryCacheKey);e&&e.length>0&&(this.memoryCacheData=e)}},departmentMultiTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$15={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],selectResult:[],isloading:!1,multiple:!0,memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentMultiTree",components:{UserResult:UserResult$1},props:{checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},created(){this.initSelectDepts(this.searchField,this.selectDepartmentInfo,this.separator).then(e=>{e&&(this.selectResult=e)})},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){let t=e;e.data&&(t=JSON.parse(e.data)),this.selectUser(null,t),this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(a=>{this.checkedNodeAndChildren(a)})},cancelChildCheckedNodes(e){const t=JSON.parse(e.data);this.selectResult=this.removeRow(this.selectResult,t),e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const n=e.childDepartments;n&&!this.checkStrictly&&n.forEach(a=>{this.$refs.deparmentTree.setChecked(a.id,!1),this.cancelChildCheckedNodes(a)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.clickNodeWhenMultiple(e)},clickNodeWhenMultiple(e){var t=[];if(this.$refs.deparmentTree&&(t=this.$refs.deparmentTree.getCheckedKeys()),t&&t.indexOf(e.id)>-1)this.$refs.deparmentTree.setChecked(e.id,!1),this.checkStrictly||this.cancelChildCheckedNodes(e),this.$refs.deparmentTree.store.nodesMap[e.id].expanded=!0;else{if(e.nodeType&&e.nodeType==="DEPARTMENT"&&e.data){const a=JSON.parse(e.data);this.selectUser(null,a)}this.$refs.deparmentTree.setChecked(e.id,!0);const n=e.childDepartments;n&&n.length>0?this.checkStrictly||this.checkedNodeAndChildren(e):this.isClickNode=!0}},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1,t={ids:[],names:[],codes:[],zhNames:[],enNames:[],departments:[]};if(this.selectResult.length===0)e=!0;else for(var n=0;n<this.selectResult.length;n++){var a=this.selectResult[n];t.ids.push(a.id),t.codes.push(a.code),a.enName?t.enNames.push(a.enName):t.enNames.push(""),a.department?t.departments.push(a.department):t.departments.push(a);const i=a.showName;t.names.push(i),t.zhNames.push(a.name)}t.ids.length>0?(t.containBranch=this.containBranch,$emit(this,"result",t)):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},selectUser(e,t){const n=this.selectResult.filter(this.filterDept(t));n&&n.length===0&&(t.tenantCode=this.tenantInfo.code,t.tenantName=this.tenantInfo.tenantName,this.selectResult.push(t),this.setMemoryCacheData(t,"department"))},filterDept(e){return t=>t.id===e.id},filterDeptNode(e){return t=>t+""==e.id+""},removeUser(e,t){if(t.nodeId){const n=t.nodeId;this.$refs.deparmentTree&&n&&this.$refs.deparmentTree.setChecked(n,!1)}else if(this.$refs.deparmentTree){const a=this.$refs.deparmentTree.getCheckedKeys().filter(this.filterDeptNode(t));a.length>0&&a.forEach(i=>{this.$refs.deparmentTree.setChecked(i,!1)})}this.selectResult=this.removeRow(this.selectResult,t),(!this.selectResult||this.selectResult.length===0)&&this.$refs.deparmentTree&&this.$refs.deparmentTree.setCheckedKeys([])}},emits:["result"]},_hoisted_1$Q={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$x=["title"],_hoisted_3$m={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_4$f={style:{"text-align":"left","font-size":"16px"}},_hoisted_5$c={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$12(e,t,n,a,i,u){const f=Vue.resolveComponent("el-button"),h=Vue.resolveComponent("el-autocomplete"),y=Vue.resolveComponent("el-header"),_=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),T=Vue.resolveComponent("Calendar"),O=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),M=Vue.resolveComponent("user-result"),j=Vue.resolveComponent("el-main"),Q=Vue.resolveComponent("el-container"),q=Vue.resolveComponent("el-aside"),F=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(Q,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(q,{width:"350px"},{default:Vue.withCtx(()=>[Vue.createVNode(Q,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=H=>i.filterText=H),"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName"),class:"inline-input inline-input-custom",size:"default",onSelect:e.handleSelect,onKeyup:Vue.withKeys(e.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(f,{icon:i.ElIconSearch,size:"default",onClick:e.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onSelect","onKeyup"])]),_:1}),Vue.createVNode(j,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$Q,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":u.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!0,"check-strictly":"",lazy:"","node-key":"id",onCheck:e.handleCheckNode,onCheckChange:u.handleCheckChange,onNodeExpand:u.handleNodeExpand,onNodeClick:u.handleNodeClick},{default:Vue.withCtx(({node:H,data:le})=>[Vue.createElementVNode("span",null,[Vue.createVNode(O,null,{default:Vue.withCtx(()=>[H.data.id===-1||H.data.branch?(Vue.openBlock(),Vue.createBlock(_,{key:0})):H.data.id===-2||H.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(T,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{title:H.label},Vue.toDisplayString(H.label),9,_hoisted_2$x)])]),_:1},8,["filter-node-method","load","props","onCheck","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$m,[Vue.createVNode(M,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!0,"select-result":i.selectResult,onAddUser:u.selectUser},null,8,["grid-data","height","select-result","onAddUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),Vue.createVNode(Q,null,{default:Vue.withCtx(()=>[Vue.createVNode(j,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$f,Vue.toDisplayString(e.$t("departmentTreeInline.selectedDept"))+": ",1),Vue.createElementVNode("div",_hoisted_5$c,[Vue.withDirectives(Vue.createVNode(M,{"grid-data":i.selectResult,height:n.height,"is-search-result":!1,multiple:!0,onRemoveUser:u.removeUser},null,8,["grid-data","height","onRemoveUser"]),[[F,i.isloading]])])]),_:1})]),_:1})]),_:1})])}const InlineDepartmentMultiTree=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$12]]),departmentSingleTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$14={data(){return{filterText:"",defaultProps:{id:"id",label:"showName",children:"childDepartments",isLeaf:"leaf"},searchParam:{searchValue:null,treeType:"DEPARTMENT_TREE",departmentInfo:null},count:0,containBranch:!1,tenantNodeId:-1,allSearchNodeIds:[],allExpandNodeIds:[],isClickNode:!1,restaurants:[],searchValue:null,searchStoreKey:"searchDepartment",selectNodeInfo:null,tenantInfo:{},searchResult:[],memoryCacheKey:"DEPARTMENT_MEMORY_KEY",memoryCacheData:[],ElIconSearch:search_default}},name:"InlineDepartmentSingleTree",components:{UserResult:UserResult$1},props:{departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},computed:{},watch:{filterText(e){e||(this.searchValue=e,this.departmentInfo&&this.departmentInfo.length>0?this.loadPointDepartments():this.loadDepartment(this.tenantNodeId))}},mounted(){var e=localStorage$1.getObject(this.searchStoreKey);e?this.restaurants=e:this.restaurants=[],this.getMemoryCacheData("department")},methods:{...utils,...departmentTreeService,...memoryCacheUtils,filterNode(e,t,n){return e?t.name.indexOf(e)!==-1:!0},checkedNodeAndChildren(e){this.$refs.deparmentTree.setChecked(e.id,!0);const t=e.childDepartments;t&&t.forEach(n=>{this.checkedNodeAndChildren(n)})},cancelChildCheckedNodes(e){e.id!==this.tenantNodeId&&this.$refs.deparmentTree.setChecked(this.tenantNodeId,!1);const t=e.childDepartments;t&&t.forEach(n=>{this.$refs.deparmentTree.setChecked(n.id,!1),this.cancelChildCheckedNodes(n)})},handleCheckChange(e,t,n){},handleNodeExpand(e,t,n){},handleNodeClick(e,t,n){this.selectSingleNode(e,!1)},selectSingleNode(e,t){if(this.isDepartmentNode(e)){const n=JSON.parse(e.data);this.packageSelectResult(n),this.setMemoryCacheData(n,"department")}},packageSelectResult(e){e.tenantName=this.tenantInfo.tenantName,e.tenantCode=this.tenantInfo.code;var t={id:e.id,name:e.showName,code:e.code,containBranch:this.containBranch,zhName:e.name,enName:e.enName,department:e};this.selectNodeInfo=t},isDepartmentNode(e){return e.id!==this.tenantNodeId&&e.nodeType&&e.nodeType==="DEPARTMENT"&&!e.branch},selectDepartment(){var e=!1;this.selectNodeInfo?$emit(this,"result",this.selectNodeInfo):e=!0,e&&this.$alert(this.$t("imatrixUIMessage.pleaseSelectDepartment"),this.$t("imatrixUIMessage.tips"),{confirmButtonText:this.$t("imatrixUIPublicModel.sure")})},isSelectTenantNode(e){return e===this.tenantNodeId&&(!this.departmentInfo||this.departmentInfo.length===0)},getSelectUser(e){this.packageSelectResult(e),this.setMemoryCacheData(e,"department")},resultRowDblclick(e){this.packageSelectResult(e),$emit(this,"result",this.selectNodeInfo)}},emits:["result"]},_hoisted_1$P={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$w=["title"],_hoisted_3$l={key:1,style:{height:"100%",overflow:"hidden"}};function _sfc_render$11(e,t,n,a,i,u){const f=Vue.resolveComponent("el-button"),h=Vue.resolveComponent("el-autocomplete"),y=Vue.resolveComponent("el-header"),_=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),T=Vue.resolveComponent("Calendar"),O=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),M=Vue.resolveComponent("user-result"),j=Vue.resolveComponent("el-main"),Q=Vue.resolveComponent("el-container");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(Q,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=q=>i.filterText=q),"fetch-suggestions":e.querySearch,placeholder:e.$t("departmentTreeInline.pleaseEnterDepartmentName"),class:"inline-input inline-input-custom",size:"default",onSelect:e.handleSelect,onKeyup:Vue.withKeys(e.clickSearch,["enter"])},{append:Vue.withCtx(()=>[Vue.createVNode(f,{icon:i.ElIconSearch,onClick:e.clickSearch},null,8,["icon","onClick"])]),_:1},8,["modelValue","fetch-suggestions","placeholder","onSelect","onKeyup"])]),_:1}),Vue.createVNode(j,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$P,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":u.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!1,"check-strictly":"",lazy:"","node-key":"id",onCheckChange:u.handleCheckChange,onNodeExpand:u.handleNodeExpand,onNodeClick:u.handleNodeClick},{default:Vue.withCtx(({node:q,data:F})=>[Vue.createElementVNode("span",null,[Vue.createVNode(O,null,{default:Vue.withCtx(()=>[q.data.id===-1||q.data.branch?(Vue.openBlock(),Vue.createBlock(_,{key:0})):q.data.id===-2||q.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(T,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{class:Vue.normalizeClass(F.nodeType&&F.nodeType==="DEPARTMENT"&&i.searchValue&&F.name.indexOf(i.searchValue)>-1?"searchResult":""),title:q.label},Vue.toDisplayString(q.label),11,_hoisted_2$w)])]),_:1},8,["filter-node-method","load","props","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$l,[Vue.createVNode(M,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!1,onResultRowDblclick:u.resultRowDblclick,onSelectResult:u.getSelectUser},null,8,["grid-data","height","onResultRowDblclick","onSelectResult"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})])}const InlineDepartmentSingleTree=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$11]]),_sfc_main$13={name:"InlineDepartmentTree",components:{InlineDepartmentMultiTree,InlineDepartmentSingleTree},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data(){return{selectNodeInfo:null}},mounted(){},methods:{result(e){this.selectNodeInfo=e,$emit(this,"result",e)},selectDepartment(){this.$refs.inlineDeparmentTree.selectDepartment()}},emits:["result"]};function _sfc_render$10(e,t,n,a,i,u){const f=Vue.resolveComponent("inline-department-multi-tree"),h=Vue.resolveComponent("inline-department-single-tree");return Vue.openBlock(),Vue.createElementBlock("div",null,[n.multiple?(Vue.openBlock(),Vue.createBlock(f,{key:0,ref:"inlineDeparmentTree",height:n.height,"check-strictly":n.checkStrictly,"department-info":n.departmentInfo,"select-department-info":n.selectDepartmentInfo,"search-field":n.searchField,separator:n.separator,onResult:u.result},null,8,["height","check-strictly","department-info","select-department-info","search-field","separator","onResult"])):Vue.createCommentVNode("",!0),n.multiple?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(h,{key:1,ref:"inlineDeparmentTree","department-info":n.departmentInfo,onResult:u.result},null,8,["department-info","onResult"]))])}const InlineDepartmentTree=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$10]]),_sfc_main$12={name:"DepartmentTree",components:{InlineDepartmentTree},props:{multiple:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},departmentInfo:{type:Array,default:null},title:{type:String,default:null},width:{type:String,default:"30%"},height:{type:String,default:"300px"},selectDepartmentInfo:{type:[String,Number],default:null},searchField:{type:String,default:"id"},separator:{type:String,default:","}},data(){let e=this.$t("imatrixUIMessage.pleaseSelectDepartment");return this.title&&(e=this.title),{myTitle:e}},methods:{result(e){$emit(this,"close",e)},selectDepartment(){this.$refs.inlineDeparmentTree.selectDepartment()}},emits:["open","opend","close","closed","opend","close","closed"]},_hoisted_1$O={class:"dialog-footer"};function _sfc_render$$(e,t,n,a,i,u){const f=Vue.resolveComponent("inline-department-tree"),h=Vue.resolveComponent("el-button"),y=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(y,{"close-on-click-modal":!1,title:i.myTitle,width:n.multiple?"920px":"509px","append-to-body":"",class:"user-tree","model-value":"",onClose:t[1]||(t[1]=_=>e.$emit("close")),onClosed:t[2]||(t[2]=_=>e.$emit("closed")),onOpen:t[3]||(t[3]=_=>e.$emit("open")),onOpend:t[4]||(t[4]=_=>e.$emit("opend"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$O,[Vue.createVNode(h,{class:"button--default",size:"default",onClick:t[0]||(t[0]=_=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(h,{size:"default",type:"primary",onClick:u.selectDepartment},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.sure")),1)]),_:1},8,["onClick"])])]),default:Vue.withCtx(()=>[Vue.createVNode(f,{ref:"inlineDeparmentTree","check-strictly":n.checkStrictly,"department-info":n.departmentInfo,height:n.height,multiple:n.multiple,"search-field":n.searchField,"select-department-info":n.selectDepartmentInfo,separator:n.separator,onResult:u.result},null,8,["check-strictly","department-info","height","multiple","search-field","select-department-info","separator","onResult"])]),_:1},8,["title","width"])])}const DepartmentTree=_export_sfc$1(_sfc_main$12,[["render",_sfc_render$$]]);DepartmentTree.install=function(e){e.component(DepartmentTree.name,DepartmentTree)};const hamburger_vue_vue_type_style_index_0_scoped_5241df2b_lang="",_sfc_main$11={name:"Hamburger",components:{Expand:expand_default,Fold:fold_default},props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick(){$emit(this,"toggleClick")}},emits:["toggleClick"]},_hoisted_1$N={class:"00-Color/9-gray"};function _sfc_render$_(e,t,n,a,i,u){const f=Vue.resolveComponent("Fold"),h=Vue.resolveComponent("el-icon"),y=Vue.resolveComponent("Expand");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$N,[n.isActive?(Vue.openBlock(),Vue.createBlock(h,{key:0,onClick:u.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"])):(Vue.openBlock(),Vue.createBlock(h,{key:1,onClick:u.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"]))])}const hamburger=_export_sfc$1(_sfc_main$11,[["render",_sfc_render$_],["__scopeId","data-v-5241df2b"]]);hamburger.install=function(e){e.component(hamburger.name,hamburger)};const svgIcon_vue_vue_type_style_index_0_scoped_ef299c9a_lang="",_sfc_main$10={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},_hoisted_1$M=["xlink:href"];function _sfc_render$Z(e,t,n,a,i,u){return Vue.openBlock(),Vue.createElementBlock("svg",{class:Vue.normalizeClass(u.svgClass),"aria-hidden":"true"},[Vue.createElementVNode("use",{"xlink:href":u.iconName},null,8,_hoisted_1$M)],2)}const SvgIcon=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$Z],["__scopeId","data-v-ef299c9a"]]);SvgIcon.install=function(e){e.component(SvgIcon.name,SvgIcon)};const _sfc_main$$={name:"IndexColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1},pagination:{type:Object,default:null},currentPage:{type:Number,default:0},options:{type:Object,default:null}},computed:{fixed(){return this.column.fixed&&(this.column.fixed==="false"||this.column.fixed==="")?!1:this.column.fixed&&this.column.fixed==="right"?"left":this.column.fixed},startIndex(){return this.options.indexContinuous?(this.currentPage-1)*this.pagination.pageSize+1:1}}},_hoisted_1$L={class:"cell--span"},_hoisted_2$v={class:"cell--span"};function _sfc_render$Y(e,t,n,a,i,u){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",fixed:u.fixed,width:n.column.width?n.column.width:"80"},{header:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_1$L,Vue.toDisplayString(e.$t("superGrid.index")),1)]),default:Vue.withCtx(h=>[Vue.createElementVNode("span",_hoisted_2$v,Vue.toDisplayString(h.$index+u.startIndex),1)]),_:1},8,["fixed","width"])}const IndexColumn=_export_sfc$1(_sfc_main$$,[["render",_sfc_render$Y]]),_sfc_main$_={name:"SelectionColumn",components:{},props:{column:{type:Object,default:null},isLineEdit:{type:Boolean,default:!1}},computed:{fixed(){return this.column.fixed===void 0||this.column.fixed===null||this.column.fixed===""||this.column.fixed==="false"?!1:this.column.fixed&&this.column.fixed==="right"?"left":this.column.fixed}}};function _sfc_render$X(e,t,n,a,i,u){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",type:"selection",label:n.column.label,fixed:u.fixed,width:n.column.width?n.column.width:"50"},null,8,["label","fixed","width"])}const SelectionColumn=_export_sfc$1(_sfc_main$_,[["render",_sfc_render$X]]),store$1=new Map;function getColumnValues(e,t){const n=[];for(const a of e)n.push(a[t]);return n}function getSpanValuesForColumn(e,t,n){const a=[];let i=0;for(let u=0;u<e.length;u++)if(u===0)a.push(1),i=0;else if(n&&n!==""){let f="",h="";const y=n.split(",");for(let _=0;_<y.length;_++)f+=e[u][y[_]],h+=e[u-1][y[_]];f===h?(a[i]+=1,a.push(0)):(a.push(1),i=u)}else e[u][t]===e[u-1][t]?(a[i]+=1,a.push(0)):(a.push(1),i=u);return a}function getFirstEditableColumn(e){e||(e=store$1.get("_list_code"));for(const t of store$1.get(e).columns)if(t.editable)return t.prop;return null}const ArrowKeyAction={getIndex(e){let t=0;for(const n of store$1.columns){if(n.prop===e)return t;t++}},getLeftColumn(e){const t=ArrowKeyAction.getIndex(e);let n=0;for(n=t-1;n>=0;n--)return store$1.columns[n].editable?store$1.columns[n].prop:null}};function setCurrentRow(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);e<n.gridData.length&&(n.isMulitiSelect?(n.superGrid.clearSelection(),n.superGrid.toggleRowSelection(n.gridData[e],!0)):n.superGrid.setCurrentRow(n.gridData[e]))}function isObjectValueEqual(e,t){if(!e&&!t)return!0;if(e&&t){var n=getProps(e),a=getProps(t);let y=n;n.length>a.length?y=n:y=a;for(var i=0;i<y.length;i++){var u=y[i];if(u!=="$editing"){var f=e[u],h=t[u];if(f!==h)return!1}}return!0}return!1}function getProps(e){const t=[];for(var n in e)t.push(n);return t}function isLastEditRowSave(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);return t.isEditRow!==void 0&&t.isEditRow===!0?!1:typeof t.$rowIndex>"u"||t.$rowIndex===null||typeof t.$lastSaveRowIndex>"u"||t.$lastSaveRowIndex===null||t.$rowIndex===t.$lastSaveRowIndex}function isCanRefreshGrid(e){e||(e=store$1.get("_list_code"));const t=store$1.get(e);return!(t.isEditRow!==void 0&&t.isEditRow===!0||!isLastEditRowSave()||typeof t.isCreateRow<"u"&&t.isCreateRow===!0)}function getEntityId(e){if(e&&e.id)return e.id;if(e&&e.ID)return e.ID}function isDisableEdit(e,t,n){t||(t=store$1.get("_list_code"));let a=!1;const i=store$1.get(t),u=isHasEditOption("disableEditProps",t)?i.options.lineEditOptions.disableEditProps:null;if(u){const h=u.split(",");h&&h.indexOf(e)>=0&&(a=!0)}const f=getEntityId(n);if(a===!1&&i.options){const h=i.options.validateRules;if(h){const y=h.filter(x=>x.name&&(x.name===e||x.name==="all_fields"));let _=!0;if(y&&y.length>0){for(let x=0;x<y.length;x++)y[x].rowIndexes===void 0||y[x].rowIndexes===null||y[x].rowIndexes.indexOf(f)>=0?_=y[x].canEdit:_=!0;_===!1&&(a=!0)}}if(a===!1){const y=i.options.actionPermission;isRowCanUpdate(y,f)===!1&&(a=!0)}}return a}function isRequiredEdit(e,t){const n=e.prop;t||(t=store$1.get("_list_code"));let a=!1;const i=store$1.get(t);if(i&&i.options){const u=i.options.validateRules;if(u){const f=u.filter(h=>h.name&&(h.name===n||h.name==="all_fields")&&h.canEdit!==void 0&&h.canEdit===!0);f&&f.length>0&&(a=!0)}else if(e.validations){const h=JSON.parse(e.validations).filter(y=>y.required===!0);h&&h.length>0&&(a=!0)}}return a}function isRowCanUpdate(e,t){let n=!0;const a=e;return a&&a.canUpdate!==void 0&&a.canUpdate===!1&&t!==void 0&&a.updateRowIndexes&&a.updateRowIndexes.indexOf(t)>=0&&(n=!1),n}function isHasEditOption(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);return!!(n.options.lineEditOptions&&n.options.lineEditOptions[e])}function isEditOptionFunction(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);return!!(n.options.lineEditOptions&&typeof n.options.lineEditOptions[e]=="function")}function isHasOptionFunction$1(e,t){t||(t=store$1.get("_list_code"));const n=store$1.get(t);return!!(n.options&&typeof n.options[e]=="function")}function getGridParams$3(){const e={columns:[],gridData:[],orgGridData:[],canSaveRow:!0,showValidateError:!0,defaultLineEditOptions:{aftersaveIsCreateRow:!0,autoSave:!0,isSaveByEnter:!0,isRestoreByEsc:!0,aftersaveIsCancelEditState:!0,afterRestoreIsCancelEditState:!0,input:function(){}},options:{lineEditOptions:{}}};return Vue__namespace.reactive(e)}function addDynamicProp$1(e,t,n){const a=t.split(".");if(a.length===1){n!==void 0?e[t]=n:e[t]=null;return}let i=e;for(let u=0;u<a.length-1;u++)i[a[u]]===void 0&&(i[a[u]]={}),i=i[a[u]];n!==void 0?i[a[a.length-1]]=n:i[a[a.length-1]]=null}function addDynamicPropDateSection(e,t,n){const a=t.split(".");if(a.length===1){n!==void 0?e[t]=n:e[t]=[new Date,new Date];return}let i=e;for(let u=0;u<a.length-1;u++)i[a[u]]===void 0&&(i[a[u]]={}),i=i[a[u]];n!==void 0?i[a[a.length-1]]=n:i[a[a.length-1]]=[new Date,new Date]}function getTableHeight$1(e,t,n){let a=120;const i=document.querySelector(".box-card");return i&&i!==null&&(a=16*2+20+34+5),isShowMenuRoute()===!0&&(a=a+50),document.querySelector(".el-tabs__content ."+t)&&(a=a+80),n==null||n===""?n=window.innerHeight:a=0,n-e.$el.offsetTop-a}function getExtraParam(e,t){const n={searchParam:e};if(n.withDataPermission=t.options.isWithDataPermission,n.isWorkflowEntity=t.options.isWorkflowEntity,t.options.extraParam)for(const a in t.options.extraParam)n[a]=t.options.extraParam[a];return n}function analysisFileSetObj(e,t){let n="",a="";return e&&(e.showNameData&&(t?e.showNameData.dbName&&(n=e.showNameData.dbName):e.showNameData.name&&(n=e.showNameData.name)),e.serverNameData&&(t?e.serverNameData.dbName&&(a=e.serverNameData.dbName):e.serverNameData.name&&(a=e.serverNameData.name))),{showName:n,serverPath:a}}function otherFilesToStandard(e,t,n,a){const i=[];if(n){if(n&&n.length>0)for(var u=0;u<n.length;u++){const h=n[u],y=packageFile(h[t.showName],h[t.serverPath]);i.push(y)}}else if(a){const h=a.showName,y=a.serverPath;if(h&&y){const _=h.split(","),x=y.split(",");for(var f=0;f<_.length;f++){const T=packageFile(_[f],x[f]);i.push(T)}}}return i}function packageFile(e,t){e&&(e=e.replace("#","~~").replace("?","~$").replace("&","$"));const n={};n.showName=e,n.serverPath=t,n.showName&&/\.(jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|bmp|BMP|psd|PSD|tif|TIF)$/.test(e)&&(n.isImg=!0);const a=getToken();let i=window.$vueApp.config.globalProperties.baseURL+"/common/super-form/downloads?jwt="+a;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(i=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/downloads?jwt="+a);const u=i+"&showName="+encodeURI(n.showName)+"&serverPath="+n.serverPath;return n.src=u,n}function getFileList(e,t,n){let a=[];if(t.fileSet&&t.fileSet!==""&&(t.componentType==="annex"||t.componentType==="multipartUpload")){const i=JSON.parse(t.fileSet),u=analysisFileSetObj(i,n);if(i&&i.multiple)if(i.childAnnexDataTableCode){const f=e[t.prop];a=otherFilesToStandard(i,u,f,null)}else{const f={showName:getEntityFieldValue(e,u.showName),serverPath:getEntityFieldValue(e,u.serverPath)};a=otherFilesToStandard(i,u,null,f)}else{const f=getEntityFieldValue(e,u.showName),h=getEntityFieldValue(e,u.serverPath);a.push(packageFile(f,h))}}return a}function getDynamicDataSourceOptions(e,t,n){let a;n&&(console.log("getDynamicDataSourceOptions--additionalParamMap=",n),n&&typeof n=="object"?a=JSON.stringify(n):n&&n!==""&&(a=n));const i={isSql:t,additionalParameter:a};if(e.valueSetOptions){const u=JSON.parse(e.valueSetOptions);u&&u.valueSetOptions&&(i.valueSetOptions=u.valueSetOptions),u.dynamicDataSourceCode&&u.dynamicDataSourceCode!==""&&(i.dynamicDataSourceCode=u.dynamicDataSourceCode)}return i}function isDynamicDataSourceSource(e){return!!(e.valueSet&&e.valueSet.length>0&&e.valueSet[0].value==="dynamicDataSource")}function getLastPageNum(e,t){return e==null||e===0||t==null||t===0?1:Math.ceil(e/t)}function scrollYToBottom(e){const t=document.querySelector("."+e+" .el-table--scrollable-y .el-table__body-wrapper");console.log("scrollDivElement==",t),t&&t!==null&&(console.log("scrollDivElement==scrollDivElement.scrollHeight=",t.scrollHeight),t.scrollTop=t.scrollHeight)}function getAdditionalParamMap(e){let t=null;return e.additionalParamMap&&typeof e.additionalParamMap=="object"?t=e.additionalParamMap:e.additionalParamMap&&e.additionalParamMap!==""&&(t=JSON.parse(e.additionalParamMap)),t}const dynamicSourceSelectService={findDynamicDataSourceByCode(e,t,n,a,i){let u,f,h,y,_,x;n&&(u=n.searchText,u==null&&(u=""),typeof n.watchAttrValue=="array"?f=n.watchAttrValue.join(","):f=n.watchAttrValue,f==null&&(f=""),h=n.parent,y=n._listCode,_=n._formCode,x=n._tableName);const T={searchText:u,watchAttrValue:f,parent:h};if(a&&a!==""&&(T.additionalParamMap=JSON.parse(a)),T.additionalParamMap===void 0&&(T.additionalParamMap={}),this.listToolbarFormData)for(const O in this.listToolbarFormData){const D=this.listToolbarFormData[O];if(D&&O){let M=D;Array.isArray(D)&&(M=D.join(",")),T.additionalParamMap[O]=M}}return y&&(T.additionalParamMap._listCode=y),_&&(T.additionalParamMap._formCode=_),x&&(T.additionalParamMap._tableName=x),t&&t!==null&&(T.entity=t),i||(i=window.$vueApp.config.globalProperties.baseURL),new Promise((O,D)=>{window.$vueApp.config.globalProperties.systemCode!==void 0&&window.$vueApp.config.globalProperties.systemCode==="agilebuilder"?O():this.$http.post(i+"/common/dynamic-data-source/"+e,T).then(M=>{M.backendUrl?this.$http.post(M.backendUrl+"/common/dynamic-data-source/"+e,T).then(j=>{O(j)}).catch(j=>{D(j)}):O(M)}).catch(M=>{D(M)})})}},events$2={change:function(e){const t=this.getSelectedOptionItem(e);this.$emit("change",e,t)},visibleChange:function(e){this.$emit("visible-change",e)},removeTag:function(e,t){this.$emit("remove-tag",t),Array.isArray(this.value)&&this.value.length===1&&e&&(this.clearMarkValue(),this.remoteQuery("",null))},clear:function(){this.clearMarkValue(),this.$emit("clear")},blur:function(e){this.$emit("blur",e)},focus:function(e){this.$emit("focus",e)},input(e){this.$emit("update:value",e)},getSelectedOptionItem(e){if(this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0&&Array.isArray(e)){const n=[];for(var t=0;t<e.length;t++)n.push(this.optionItems.find(a=>a[this.valueAttribute]===e[t]));return n}else return this.optionItems.find(n=>n[this.valueAttribute]===e)}};function mitt(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(i){i(n)}),(a=e.get("*"))&&a.slice().map(function(i){i(t,n)})}}}const emitter$1=mitt(),bus$1={};bus$1.$on=emitter$1.on,bus$1.$emit=emitter$1.emit,bus$1.$off=emitter$1.off;const dynamicSourceSelect_vue_vue_type_style_index_0_lang="",dynamicSourceSelect_vue_vue_type_style_index_1_scoped_5eebc4ae_lang="",_sfc_main$Z={name:"DynamicSourceSelect",components:{},model:{prop:"value",event:"input"},props:{column:{type:Object,default:null},value:{type:[String,Boolean,Number,Array],default:null},baseProps:{type:Object,default:null},entity:{type:Object,default:null},options:{type:Object,default:null},tableName:{type:String,default:null},isJoinTable:{type:Boolean,default:!1},parent:{type:Object,default:null},listCode:{type:String,default:null},formCode:{type:String,default:null},listToolbarFormData:{type:Object,default:()=>({})},fullWidth:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},size:{type:String,default:"default"},allowCreate:{type:Boolean,default:!1},analysisArea:{type:Number,default:null},placeholder:{type:String,default:null},optionWidth:{default:0}},inject:{isPageInfo:{value:"isPageInfo",default:!1}},data(){const e=Object.assign({},this.baseProps);let t;this.entity&&(t=JSON.stringify(this.entity));let n=[];return this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0&&this.value!==void 0&&this.value!==null&&this.value&&Array.isArray(this.value)&&(n=JSON.parse(JSON.stringify(this.value))),{markValue:t,optionItems:[],myProps:e,valueSetOptions:[],dynamicDataSourceCode:"",loading:!1,valueAttribute:null,remote:!1,additionalParameterStr:this.options.additionalParameter,isLoaded:!1,watchAttr:null,backendUrl:null,descriptionAttribute:null,queryParam:{},lastValues:n}},watch:{baseProps:{deep:!0,handler(e){this.myProps=Object.assign({},e)}}},created(){if(this.options&&this.options.dynamicDataSourceCode){this.dynamicDataSourceCode=this.options.dynamicDataSourceCode.trim();const e={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};this.parent&&(e.parent=this.parent),this.isPageInfo||this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,e).then(t=>{if(t.backendUrl&&(this.backendUrl=t.backendUrl),t.fuzzyQuery!==void 0&&t.fuzzyQuery===!0&&(this.remote=!0),this.options&&this.options.valueSetOptions&&(this.valueSetOptions=this.options.valueSetOptions),this.options&&this.options.isSql!==void 0&&this.options.isSql!==null&&(this.isSql=this.options.isSql),this.watchAttr){let n;this.watchAttr.split(",").forEach(i=>{this.entity&&(n=this.entity[i]),this.$watch("entity."+i,function(u,f){this.watchAttrValueChange(u),this.optionItems.filter(y=>y[this.valueAttribute]===u)||this.inputValue("")})}),this.watchAttrValueChange(n)}if(this.isLoaded=!0,t.defaultSelect&&(this.baseProps.multiple?this.$emit("set-default-value",[this.optionItems[0][this.valueAttribute]]):this.optionItems.length>0&&this.$emit("set-default-value",this.optionItems[0][this.valueAttribute])),this.analysisArea!==1&&this.remote){const n=this;$on(bus$1,"remoteMethod",()=>{n.remoteMethod("")})}this.$emit("load-completed",t)}).catch(t=>{console.log(t),this.$emit("load-completed",{code:this.dynamicDataSourceCode,error:t}),this.isLoaded=!0})}else this.isLoaded=!0},methods:{...dynamicSourceSelectService,...events$2,blurEvent(e){this.$emit("blur",e)},changeEvent(e){this.inputValue(e),this.$emit("change",e)},getClassOptionTitle(e){if(e!=null&&e!==""&&e.length>0){let t="";return typeof e=="string"?this.descriptionAttribute?this.optionItems.forEach(n=>{n[this.valueAttribute]===e&&(t=n._label_+n._description_)}):this.optionItems.forEach(n=>{n[this.valueAttribute]===e&&(t=n._label_)}):this.descriptionAttribute?(this.optionItems.forEach(n=>{e.forEach(a=>{n[this.valueAttribute]===a&&(t=t+n._label_+",")})}),t=t.slice(0,t.length-1)):(this.optionItems.forEach(n=>{e.forEach(a=>{n[this.valueAttribute]===a&&(t=t+n._label_+",")})}),t=t.slice(0,t.length-1)),t}},inputValue(e){this.$emit("update:value",e),(e==null||e==="")&&this.remoteQueryMethod(e),this.setValues(e)},packageDynamicDataSourceInfo(e,t){return new Promise((n,a)=>{this.findDynamicDataSourceByCode(e,this.entity,t,this.additionalParameterStr,this.backendUrl).then(i=>{if(i){if(i.options){if(this.optionItems=i.options,this.column){this.column.prop!==i.valueAttribute&&(this.column["_dynamic-source-data-"+this.column.prop]={valueSetOptions:this.options.valueSetOptions,optionItems:this.optionItems,valueAttribute:i.valueAttribute});for(let u=0;u<this.options.valueSetOptions.length;u++){const f=this.options.valueSetOptions[u];if(i.valueAttribute===f.columnName){if(this.markValue){const h=JSON.parse(this.markValue);if(h&&h[f.valueColumn.dbColumnName]){let y=(h[f.valueColumn.dbColumnName]+"").split(",");this.column.componentType==="select"&&(y=y[0])}}break}}}}else this.optionItems=[];i.valueAttribute&&(this.valueAttribute=i.valueAttribute),i.descriptionAttribute&&(this.descriptionAttribute=i.descriptionAttribute),this.valueAttribute=this.getValueAttribute(),this.watchAttr=i.watchAttr,this.$emit("load-completed",i),n(i)}else n()}).catch(i=>{a(i)})})},remoteQuery(e,t){if(e!=null||t!=null){const n={_listCode:this.listCode,_formCode:this.formCode,_tableName:this.tableName};if(e!=null&&(n.searchText=e),t!=null)Object.prototype.toString.apply(t)==="[object Array]"?n.watchAttrValue=t.join(","):n.watchAttrValue=t+"";else if(this.entity){const a=this.entity[this.watchAttr];a!=null&&(Object.prototype.toString.apply(a)==="[object Array]"?n.watchAttrValue=a.join(","):n.watchAttrValue=a+"")}this.parent&&(n.parent=this.parent),this.loading=!0,this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,n).then(a=>{this.loading=!1}).catch(a=>{console.log(a),this.loading=!1})}},remoteQueryMethod(e){Array.isArray(this.value)?this.value.length===0&&this.remoteQuery(e,null):this.remoteQuery(e,null)},remoteMethod(e){this.remoteQuery(e,null)},watchAttrValueChange(e){this.remoteQuery(null,e)},getValueAttribute(){return!this.valueAttribute||this.valueAttribute==="[label]"?"_label_":this.valueAttribute},setValues(e){this.valueSetOptions&&this.valueSetOptions.length>0&&(this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0?this.setColumnValueWhenMulti(e):this.valueSetOptions.forEach(t=>{const n=t.columnName;let a;this.optionItems&&n&&(a=this.getTargetColumnValue(e,n));let i=null;const u=t.valueColumn;u&&(i=u.name,this.isSql===!0&&(i=u.dbColumnName,i=getPropNameWhenJoinTable(i,this.isJoinTable,this.tableName))),this.entity&&i&&i!==null&&i!==""&&setEntityFieldValue(this.entity,i,a);const f=this.getSelectedOptionItem(e);this.$emit("set-value",{value:a,sourceColumnName:n,targetColumnName:i,options:this.optionItems,valueAttribute:this.valueAttribute,selectedItem:f})}))},setColumnValue(e,t,n){let a=null;const i=n.valueColumn;i&&(a=i.name,this.isSql===!0&&(a=i.dbColumnName,a=getPropNameWhenJoinTable(a,this.isJoinTable,this.tableName))),this.entity&&a&&a!==null&&a!==""&&setEntityFieldValue(this.entity,a,t),this.$emit("set-value",{value:t,sourceColumnName:e,targetColumnName:a,options:this.optionItems,valueAttribute:this.valueAttribute})},setColumnValueWhenMulti(e){let t=!1,n;if(this.valueSetOptions.forEach(a=>{const i=a.columnName;if(i===this.valueAttribute){let u;if(this.optionItems&&i&&(u=this.getTargetColumnValue(e,i)),this.setColumnValue(i,u,a),this.lastValues.length<e.length)t=!0;else if(this.lastValues.length>e.length){t=!1;const f=[...this.lastValues,...e],h=new Set(f),y=Array.from(h),_=[...y.filter(x=>!this.lastValues.includes(x)),...y.filter(x=>!e.includes(x))];_&&_.length>0&&(n=_[0])}this.lastValues=JSON.parse(JSON.stringify(e))}}),t){const i=e[e.length-1],u=this.optionItems.filter(f=>f[this.valueAttribute]===i);u&&u.length>0&&this.setTagValue(null,!1,u[0])}else this.setTagValue(n,!0)},setTagValue(e,t,n){this.valueSetOptions&&this.valueSetOptions.length>0&&this.valueSetOptions.forEach(a=>{const i=a.columnName;if(i!==this.valueAttribute){let u=null;const f=a.valueColumn;f&&(u=f.name,this.isSql===!0&&(u=f.dbColumnName,u=getPropNameWhenJoinTable(u,this.isJoinTable,this.tableName)));let h;if(u){const y=getEntityFieldValue(this.entity,u);if(t){const _=this.value.indexOf(e);if(y!=null&&y!==""){const x=y.split(",");x.splice(_,1),h=x.join(",")}}else{let _;n&&(_=n[i]),y!=null&&y!==""?h=y+","+_:h=_}}this.entity&&u&&u!==null&&u!==""&&setEntityFieldValue(this.entity,u,h),this.$emit("set-value",{value:h,sourceColumnName:i,targetColumnName:u,options:this.optionItems,valueAttribute:this.valueAttribute})}})},getTargetColumnValue(e,t){if(e){let n="";if(this.baseProps.multiple!==void 0&&this.baseProps.multiple===!0&&Array.isArray(e)){let a=0;e.forEach(i=>{const u=this.optionItems.filter(f=>f[this.valueAttribute]===i);u&&u.length>0&&(n+=u[0][t],a<e.length-1&&(n+=","),a++)})}else{const a=this.optionItems.filter(i=>i[this.valueAttribute]===e);a&&a.length>0&&(n=a[0][t])}return n}},clearMarkValue(){if(this.markValue&&this.entity){const e=JSON.parse(this.markValue);for(let t=0;t<this.options.valueSetOptions.length;t++){const n=this.options.valueSetOptions[t];e[n.valueColumn.dbColumnName]=null}this.markValue=JSON.stringify(e)}}},emits:["set-default-value","load-completed","update:value","set-value","update:value","focus","blur","visible-change","change"]},_hoisted_1$K={class:"select-top-span"},_hoisted_2$u={style:{display:"flex"}},_hoisted_3$k={style:{color:"#8492a6","font-size":"13px","margin-left":"30px"}},_hoisted_4$e={style:{float:"left"}},_hoisted_5$b={style:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"30px"}};function _sfc_render$W(e,t,n,a,i,u){const f=Vue.resolveComponent("el-option"),h=Vue.resolveComponent("el-select");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$K,[Vue.createVNode(h,Vue.mergeProps({ref:"dynamicDataSourceRef","allow-create":n.allowCreate,clearable:n.clearable,filterable:i.remote,loading:i.loading,"model-value":n.value,placeholder:n.placeholder,remote:i.remote,"remote-method":u.remoteMethod,"reserve-keyword":!0,size:n.size,style:n.fullWidth?{width:"100%",height:"100%"}:{},title:u.getClassOptionTitle(n.value),"value-key":i.valueAttribute,"default-first-option":""},i.myProps,{onBlur:t[0]||(t[0]=y=>u.blurEvent(y)),onChange:u.changeEvent,onClear:e.clear,onFocus:e.focus,onVisibleChange:e.visibleChange,onRemoveTag:t[1]||(t[1]=y=>e.removeTag(i.remote,y))}),{default:Vue.withCtx(()=>[i.descriptionAttribute?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[n.optionWidth>0?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle({width:n.optionWidth+"px"})},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,title:y._label_+y._description_,value:y[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$u,[Vue.createElementVNode("span",null,Vue.toDisplayString(y._label_),1),Vue.createElementVNode("span",_hoisted_3$k,Vue.toDisplayString(y._description_),1)])]),_:2},1032,["label","title","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,title:y._label_+y._description_,value:y[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_4$e,Vue.toDisplayString(y._label_),1),Vue.createElementVNode("span",_hoisted_5$b,Vue.toDisplayString(y._description_),1)]),_:2},1032,["label","title","value"]))),128))],64)):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[n.optionWidth>0?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle({width:n.optionWidth+"px",position:"relative"})},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,value:y[i.valueAttribute]},null,8,["label","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,y=>(Vue.openBlock(),Vue.createBlock(f,{key:y.value,label:y._label_,value:y[i.valueAttribute]},null,8,["label","value"]))),128))],64))]),_:1},16,["allow-create","clearable","filterable","loading","model-value","placeholder","remote","remote-method","size","style","title","value-key","onChange","onClear","onFocus","onVisibleChange"])])}const DynamicSourceSelect=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$W],["__scopeId","data-v-5eebc4ae"]]);function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_extends$1.apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,t,n){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(i,u,f){var h=[null];h.push.apply(h,u);var y=Function.bind.apply(i,h),_=new y;return f&&_setPrototypeOf(_,f.prototype),_},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(a){if(a===null||!_isNativeFunction(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,i)}function i(){return _construct(a,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,a)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning=function e(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(warning=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(a){return typeof a=="string"})&&console.warn(t,n)});function convertFieldsError(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function format(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var i=0,u=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var f=e.replace(formatRegExp,function(h){if(h==="%%")return"%";if(i>=u)return h;switch(h){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return h}});return f}return e}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(t)&&typeof e=="string"&&!e)}function asyncParallelArray(e,t,n){var a=[],i=0,u=e.length;function f(h){a.push.apply(a,h||[]),i++,i===u&&n(a)}e.forEach(function(h){t(h,f)})}function asyncSerialArray(e,t,n){var a=0,i=e.length;function u(f){if(f&&f.length){n(f);return}var h=a;a=a+1,h<i?t(e[h],u):n([])}u([])}function flattenObjArr(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var AsyncValidationError=function(e){_inheritsLoose(t,e);function t(n,a){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=a,i}return t}(_wrapNativeSuper(Error));function asyncMap(e,t,n,a,i){if(t.first){var u=new Promise(function(O,D){var M=function(q){return a(q),q.length?D(new AsyncValidationError(q,convertFieldsError(q))):O(i)},j=flattenObjArr(e);asyncSerialArray(j,n,M)});return u.catch(function(O){return O}),u}var f=t.firstFields===!0?Object.keys(e):t.firstFields||[],h=Object.keys(e),y=h.length,_=0,x=[],T=new Promise(function(O,D){var M=function(Q){if(x.push.apply(x,Q),_++,_===y)return a(x),x.length?D(new AsyncValidationError(x,convertFieldsError(x))):O(i)};h.length||(a(x),O(i)),h.forEach(function(j){var Q=e[j];f.indexOf(j)!==-1?asyncSerialArray(Q,n,M):asyncParallelArray(Q,n,M)})});return T.catch(function(O){return O}),T}function isErrorObj(e){return!!(e&&e.message!==void 0)}function getValue$1(e,t){for(var n=e,a=0;a<t.length;a++){if(n==null)return n;n=n[t[a]]}return n}function complementError(e,t){return function(n){var a;return e.fullFields?a=getValue$1(t,e.fullFields):a=t[n.field||e.fullField],isErrorObj(n)?(n.field=n.field||e.fullField,n.fieldValue=a,n):{message:typeof n=="function"?n():n,fieldValue:a,field:n.field||e.fullField}}}function deepMerge(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];typeof a=="object"&&typeof e[n]=="object"?e[n]=_extends$1({},e[n],a):e[n]=a}}return e}var required$1=function e(t,n,a,i,u,f){t.required&&(!a.hasOwnProperty(t.field)||isEmptyValue(n,f||t.type))&&i.push(format(u.messages.required,t.fullField))},whitespace=function e(t,n,a,i,u){(/^\s+$/.test(n)||n==="")&&i.push(format(u.messages.whitespace,t.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var e="[a-fA-F\\d:]",t=function(le){return le&&le.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",a="[a-fA-F\\d]{1,4}",i=(`
|
|
22
22
|
(?:
|
|
23
23
|
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
24
24
|
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
package/package.json
CHANGED
package/src/permission.js
CHANGED
|
@@ -145,14 +145,14 @@ router.beforeEach((to, from, next) => {
|
|
|
145
145
|
const devpRoleCodes = authApi.getSessionCache(runCurrentRoleKey)
|
|
146
146
|
if(!isDevp && devpRoleCodes){
|
|
147
147
|
// 表示是开发环境设计时生成的运行平台的JWT,且缓存了项目权限编码,对应运行平台的岗位编码
|
|
148
|
-
console.log('开发环境设计时生成的运行平台的JWT,且缓存了项目权限编码时,!isDevp && devpRoleCodes')
|
|
148
|
+
// console.log('开发环境设计时生成的运行平台的JWT,且缓存了项目权限编码时,!isDevp && devpRoleCodes')
|
|
149
149
|
return store.dispatch(
|
|
150
150
|
'getDevPlatformPermissions',
|
|
151
151
|
devpRoleCodes
|
|
152
152
|
)
|
|
153
153
|
} else {
|
|
154
154
|
// 开发平台本身的功能或直接平台功能时
|
|
155
|
-
console.log('开发平台本身的功能或直接平台功能时')
|
|
155
|
+
// console.log('开发平台本身的功能或直接平台功能时')
|
|
156
156
|
return store.dispatch(
|
|
157
157
|
'getCurrentUserPermissions',
|
|
158
158
|
user.loginName
|
package/src/utils/auth-api.js
CHANGED
|
@@ -41,13 +41,13 @@ function isDevpSystem() {
|
|
|
41
41
|
|
|
42
42
|
function getMyToken() {
|
|
43
43
|
let token = getCookieCache(jwtKey)
|
|
44
|
-
console.log('authAPI.getToken---getCookieCache=', token)
|
|
44
|
+
// console.log('authAPI.getToken---getCookieCache=', token)
|
|
45
45
|
if (!token) {
|
|
46
46
|
// 如果是开发环境从window.sessionStorage中获得token
|
|
47
47
|
token = getSessionCache(jwtKey)
|
|
48
48
|
console.log('authAPI.getToken---getSessionCache=', token)
|
|
49
49
|
}
|
|
50
|
-
console.log('authAPI.getToken---getToken=', token)
|
|
50
|
+
// console.log('authAPI.getToken---getToken=', token)
|
|
51
51
|
return token
|
|
52
52
|
}
|
|
53
53
|
|
package/src/utils/request.js
CHANGED
|
@@ -31,9 +31,11 @@ service.interceptors.request.use(
|
|
|
31
31
|
}
|
|
32
32
|
let runCurrentRoleKey = '_RUN_CURRENT_ROLE'
|
|
33
33
|
const currentRole = authApi.getSessionCache(runCurrentRoleKey)
|
|
34
|
+
// console.log('axios请求后台11---currentRole=', currentRole)
|
|
34
35
|
if(currentRole){
|
|
35
36
|
config.headers[runCurrentRoleKey] = currentRole
|
|
36
37
|
}
|
|
38
|
+
// console.log('axios请求后台22---config=', config)
|
|
37
39
|
// 将自定义系统编码放入header中
|
|
38
40
|
const customSystem = window.$vueApp.config.globalProperties.customSystem
|
|
39
41
|
if (customSystem) {
|
|
@@ -67,31 +67,31 @@ export default {
|
|
|
67
67
|
basePath: {
|
|
68
68
|
type: String,
|
|
69
69
|
default: "",
|
|
70
|
-
},
|
|
71
|
-
// 是否是开发平台使用
|
|
72
|
-
isDevp:{
|
|
73
|
-
type: Boolean,
|
|
74
|
-
default:false
|
|
75
70
|
}
|
|
76
71
|
},
|
|
77
72
|
data() {
|
|
78
73
|
let frontendUrlKey = '_PLAT_FORM_FRONTEND_URL'
|
|
79
|
-
let backendUrlKey = '_PLAT_FORM_BACKEND_URL'
|
|
80
74
|
let devpJWTKey = '_devpJWT'
|
|
81
75
|
let currentRoleKey = '_CURRENT_ROLE'
|
|
82
|
-
let
|
|
76
|
+
let isDevp = authApi.isDevpSystem()
|
|
77
|
+
let platFrontUrl
|
|
78
|
+
let devpJWT
|
|
79
|
+
let currentRole
|
|
80
|
+
if(isDevp) {
|
|
81
|
+
// // 开发平台中访问运行平台的菜单需要的参数
|
|
82
|
+
platFrontUrl= authApi.getSessionCache(frontendUrlKey)
|
|
83
|
+
devpJWT= authApi.getSessionCache(devpJWTKey)
|
|
84
|
+
currentRole= authApi.getSessionCache(currentRoleKey)
|
|
85
|
+
}
|
|
83
86
|
return {
|
|
84
87
|
onlyOneChild: null,
|
|
85
|
-
platFrontUrl
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
currentRole: null,
|
|
88
|
+
platFrontUrl,
|
|
89
|
+
devpJWT,
|
|
90
|
+
currentRole,
|
|
89
91
|
devpJWTKey,
|
|
90
92
|
currentRoleKey,
|
|
91
|
-
runDevpJWTKey,
|
|
92
|
-
runDevpJWT: null,
|
|
93
93
|
frontendUrlKey,
|
|
94
|
-
|
|
94
|
+
isDevp
|
|
95
95
|
};
|
|
96
96
|
},
|
|
97
97
|
methods: {
|
|
@@ -115,14 +115,6 @@ export default {
|
|
|
115
115
|
return false;
|
|
116
116
|
},
|
|
117
117
|
toPath(menu) {
|
|
118
|
-
if(this.isDevp) {
|
|
119
|
-
// 开发平台中访问运行平台的菜单需要的参数
|
|
120
|
-
this.platFrontUrl= authApi.getSessionCache(this.frontendUrlKey)
|
|
121
|
-
this.platBackendUrl= authApi.getSessionCache(this.backendUrlKey)
|
|
122
|
-
this.devpJWT= authApi.getSessionCache(this.devpJWTKey)
|
|
123
|
-
this.currentRole= authApi.getSessionCache(this.currentRoleKey)
|
|
124
|
-
this.runDevpJWT= authApi.getSessionCache(this.runDevpJWTKey)
|
|
125
|
-
}
|
|
126
118
|
const toPathObj = {};
|
|
127
119
|
let routePath
|
|
128
120
|
toPathObj.openWay = menu.openWay;
|
|
@@ -198,15 +190,6 @@ export default {
|
|
|
198
190
|
}
|
|
199
191
|
routePath = routePath + this.devpJWTKey + '=' + this.devpJWT
|
|
200
192
|
}
|
|
201
|
-
if(this.runDevpJWT) {
|
|
202
|
-
// 运行平台点击菜单时封装jwt参数
|
|
203
|
-
if (routePath.indexOf("?") > 0) {
|
|
204
|
-
routePath += "&"
|
|
205
|
-
} else {
|
|
206
|
-
routePath += "?"
|
|
207
|
-
}
|
|
208
|
-
routePath = routePath + this.devpJWTKey + '=' + this.runDevpJWT
|
|
209
|
-
}
|
|
210
193
|
if (this.currentRole) {
|
|
211
194
|
// 开发平台中访问运行平台的菜单需要的参数
|
|
212
195
|
if (routePath.indexOf("?") > 0) {
|