agilebuilder-ui 1.0.42 → 1.0.44
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 +27 -1
- package/lib/super-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/api/sso-service.js +16 -1
- package/src/store/modules/user.js +10 -1
- package/src/utils/auth-api.js +43 -0
- package/src/utils/auth.js +25 -0
- package/src/utils/common-util.js +35 -1
package/lib/super-ui.js
CHANGED
|
@@ -12083,7 +12083,7 @@ function init(e, t) {
|
|
|
12083
12083
|
);
|
|
12084
12084
|
}
|
|
12085
12085
|
var api = init(defaultConverter, { path: "/" });
|
|
12086
|
-
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";
|
|
12086
|
+
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", themeKey = "CURRENT_THEME", allThemeKey = "AMB_THEME_INFO";
|
|
12087
12087
|
function getToken$1() {
|
|
12088
12088
|
let e = isDevpSystem(), t;
|
|
12089
12089
|
return e ? t = getMyToken() : (t = getSessionCache$1(runDevpJwtKey), t || (t = getMyToken())), t;
|
|
@@ -12203,6 +12203,26 @@ function setAllLanguages(e) {
|
|
|
12203
12203
|
function removeAllLanguages() {
|
|
12204
12204
|
removeCookieCache(allLangKey), removeSessionCache(allLangKey);
|
|
12205
12205
|
}
|
|
12206
|
+
function getTheme() {
|
|
12207
|
+
return localStorage.getItem(themeKey);
|
|
12208
|
+
}
|
|
12209
|
+
function setTheme(e) {
|
|
12210
|
+
localStorage.setItem(themeKey, e);
|
|
12211
|
+
}
|
|
12212
|
+
function removeTheme() {
|
|
12213
|
+
localStorage.removeItem(themeKey);
|
|
12214
|
+
}
|
|
12215
|
+
function getAllThemes() {
|
|
12216
|
+
let e = getCookieCache(allThemeKey);
|
|
12217
|
+
const t = window.$vueApp.config.globalProperties.projectModel;
|
|
12218
|
+
return !e && t && t === "developing.model" && (e = getSessionCache$1(allThemeKey)), e;
|
|
12219
|
+
}
|
|
12220
|
+
function setAllThemes(e) {
|
|
12221
|
+
setCookieCache(allThemeKey, e), setSessionCache(allThemeKey, e);
|
|
12222
|
+
}
|
|
12223
|
+
function removeAllThemes() {
|
|
12224
|
+
removeCookieCache(allThemeKey), removeSessionCache(allThemeKey);
|
|
12225
|
+
}
|
|
12206
12226
|
function removePublishControl() {
|
|
12207
12227
|
removeCookieCache(versionEnv), removeCookieCache(userVersion);
|
|
12208
12228
|
}
|
|
@@ -12232,6 +12252,12 @@ const authApi = {
|
|
|
12232
12252
|
getAllLanguages: getAllLanguages$1,
|
|
12233
12253
|
setAllLanguages,
|
|
12234
12254
|
removeAllLanguages,
|
|
12255
|
+
getTheme,
|
|
12256
|
+
setTheme,
|
|
12257
|
+
removeTheme,
|
|
12258
|
+
getAllThemes,
|
|
12259
|
+
setAllThemes,
|
|
12260
|
+
removeAllThemes,
|
|
12235
12261
|
removePublishControl,
|
|
12236
12262
|
isDevpSystem,
|
|
12237
12263
|
getRunInfoKey
|
package/lib/super-ui.umd.cjs
CHANGED
|
@@ -18,7 +18,7 @@ ${C}`:_)}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("."),o=n.length-1;let i=e,l=!1;for(let f=0;f<o;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]})),l=!0;break}i=i[n[f]]}l||(i[n[o]]=e[t],delete e[t]),isObject$4(i[n[o]])&&handleFlatJson(i[n[o]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:o,messageResolver:i,flatJson:l}=t,f=isPlainObject(n)?n:isArray$2(o)?{}:{[e]:{}};if(isArray$2(o)&&o.forEach(v=>{if("locale"in v&&"resource"in v){const{locale:_,resource:C}=v;_?(f[_]=f[_]||{},deepCopy(C,f[_])):deepCopy(C,f)}else isString$3(v)&&deepCopy(JSON.parse(v),f)}),i==null&&l)for(const v in f)hasOwn$1(f,v)&&handleFlatJson(f[v]);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 o=isObject$4(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=getLocaleMessages(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const i=Object.keys(o);i.length&&i.forEach(l=>{e.mergeLocaleMessage(l,o[l])});{if(isObject$4(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(f=>{e.mergeDateTimeFormat(f,t.datetimeFormats[f])})}if(isObject$4(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.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,o,i)=>e(n,o,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:o}=e,i=n===void 0,l=e.flatJson;let f=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const v=Vue.ref(n&&f?n.locale.value:isString$3(e.locale)?e.locale:DEFAULT_LOCALE),_=Vue.ref(n&&f?n.fallbackLocale.value:isString$3(e.fallbackLocale)||isArray$2(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:v.value),C=Vue.ref(getLocaleMessages(v.value,e)),x=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[v.value]:{}}),V=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[v.value]:{}});let I=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,F=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,U=!!e.fallbackFormat,X=isFunction$2(e.missing)?e.missing:null,G=isFunction$2(e.missing)?defineCoreMissingHandler(e.missing):null,R=isFunction$2(e.postTranslation)?e.postTranslation:null,H=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,ue=!!e.escapeParameter;const Ae=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let ce=e.pluralRules||n&&n.pluralRules,L;L=(()=>{i&&setFallbackContext(null);const Be={version:VERSION$1,locale:v.value,fallbackLocale:_.value,messages:C.value,modifiers:Ae,pluralRules:ce,missing:G===null?void 0:G,missingWarn:I,fallbackWarn:D,fallbackFormat:U,unresolving:!0,postTranslation:R===null?void 0:R,warnHtmlMessage:H,escapeParameter:ue,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Be.datetimeFormats=x.value,Be.numberFormats=V.value,Be.__datetimeFormatters=isPlainObject(L)?L.__datetimeFormatters:void 0,Be.__numberFormatters=isPlainObject(L)?L.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Be.__v_emitter=isPlainObject(L)?L.__v_emitter:void 0);const at=createCoreContext(Be);return i&&setFallbackContext(at),at})(),updateFallbackLocale(L,v.value,_.value);function tt(){return[v.value,_.value,C.value,x.value,V.value]}const de=Vue.computed({get:()=>v.value,set:Be=>{v.value=Be,L.locale=v.value}}),re=Vue.computed({get:()=>_.value,set:Be=>{_.value=Be,L.fallbackLocale=_.value,updateFallbackLocale(L,v.value,Be)}}),Ke=Vue.computed(()=>C.value),et=Vue.computed(()=>x.value),Ot=Vue.computed(()=>V.value);function Ze(){return isFunction$2(R)?R:null}function st(Be){R=Be,L.postTranslation=Be}function $(){return X}function De(Be){Be!==null&&(G=defineCoreMissingHandler(Be)),X=Be,L.missing=G}function Re(Be,at){return Be!=="translate"||!at.resolvedMessage}const pt=(Be,at,qt,ln,rr,xr)=>{tt();let vn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=n?getFallbackContext():void 0),vn=Be(L)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=void 0)}if(qt!=="translate exists"&&isNumber$1(vn)&&vn===NOT_REOSLVED||qt==="translate exists"&&!vn){const[Yt,er]=at();if(process.env.NODE_ENV!=="production"&&n&&isString$3(Yt)&&Re(qt,er)&&(F&&(isTranslateFallbackWarn(D,Yt)||isTranslateMissingWarn(I,Yt))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:Yt,type:qt})),process.env.NODE_ENV!=="production")){const{__v_emitter:Cr}=L;Cr&&F&&Cr.emit("fallback",{type:qt,key:Yt,to:"global",groupId:`${qt}:${Yt}`})}return n&&F?ln(n):rr(Yt)}else{if(xr(vn))return vn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function hn(...Be){return pt(at=>Reflect.apply(translate$1,null,[at,...Be]),()=>parseTranslateArgs(...Be),"translate",at=>Reflect.apply(at.t,at,[...Be]),at=>at,at=>isString$3(at))}function St(...Be){const[at,qt,ln]=Be;if(ln&&!isObject$4(ln))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return hn(at,qt,assign$2({resolvedMessage:!0},ln||{}))}function $e(...Be){return pt(at=>Reflect.apply(datetime,null,[at,...Be]),()=>parseDateTimeArgs(...Be),"datetime format",at=>Reflect.apply(at.d,at,[...Be]),()=>MISSING_RESOLVE_VALUE,at=>isString$3(at))}function dt(...Be){return pt(at=>Reflect.apply(number$1,null,[at,...Be]),()=>parseNumberArgs(...Be),"number format",at=>Reflect.apply(at.n,at,[...Be]),()=>MISSING_RESOLVE_VALUE,at=>isString$3(at))}function Mt(Be){return Be.map(at=>isString$3(at)||isNumber$1(at)||isBoolean(at)?createTextNode(String(at)):at)}const ze={normalize:Mt,interpolate:Be=>Be,type:"vnode"};function mt(...Be){return pt(at=>{let qt;const ln=at;try{ln.processor=ze,qt=Reflect.apply(translate$1,null,[ln,...Be])}finally{ln.processor=null}return qt},()=>parseTranslateArgs(...Be),"translate",at=>at[TranslateVNodeSymbol](...Be),at=>[createTextNode(at)],at=>isArray$2(at))}function Ut(...Be){return pt(at=>Reflect.apply(number$1,null,[at,...Be]),()=>parseNumberArgs(...Be),"number format",at=>at[NumberPartsSymbol](...Be),NOOP_RETURN_ARRAY,at=>isString$3(at)||isArray$2(at))}function ht(...Be){return pt(at=>Reflect.apply(datetime,null,[at,...Be]),()=>parseDateTimeArgs(...Be),"datetime format",at=>at[DatetimePartsSymbol](...Be),NOOP_RETURN_ARRAY,at=>isString$3(at)||isArray$2(at))}function ie(Be){ce=Be,L.pluralRules=ce}function ke(Be,at){return pt(()=>{if(!Be)return!1;const qt=isString$3(at)?at:v.value,ln=le(qt),rr=L.messageResolver(ln,Be);return isMessageAST(rr)||isMessageFunction(rr)||isString$3(rr)},()=>[Be],"translate exists",qt=>Reflect.apply(qt.te,qt,[Be,at]),NOOP_RETURN_FALSE,qt=>isBoolean(qt))}function q(Be){let at=null;const qt=fallbackWithLocaleChain(L,_.value,v.value);for(let ln=0;ln<qt.length;ln++){const rr=C.value[qt[ln]]||{},xr=L.messageResolver(rr,Be);if(xr!=null){at=xr;break}}return at}function ee(Be){const at=q(Be);return at??(n?n.tm(Be)||{}:{})}function le(Be){return C.value[Be]||{}}function nt(Be,at){if(l){const qt={[Be]:at};for(const ln in qt)hasOwn$1(qt,ln)&&handleFlatJson(qt[ln]);at=qt[Be]}C.value[Be]=at,L.messages=C.value}function zt(Be,at){C.value[Be]=C.value[Be]||{};const qt={[Be]:at};for(const ln in qt)hasOwn$1(qt,ln)&&handleFlatJson(qt[ln]);at=qt[Be],deepCopy(at,C.value[Be]),L.messages=C.value}function Dt(Be){return x.value[Be]||{}}function jn(Be,at){x.value[Be]=at,L.datetimeFormats=x.value,clearDateTimeFormat(L,Be,at)}function Fn(Be,at){x.value[Be]=assign$2(x.value[Be]||{},at),L.datetimeFormats=x.value,clearDateTimeFormat(L,Be,at)}function Bt(Be){return V.value[Be]||{}}function mn(Be,at){V.value[Be]=at,L.numberFormats=V.value,clearNumberFormat(L,Be,at)}function Gn(Be,at){V.value[Be]=assign$2(V.value[Be]||{},at),L.numberFormats=V.value,clearNumberFormat(L,Be,at)}composerID++,n&&inBrowser&&(Vue.watch(n.locale,Be=>{f&&(v.value=Be,L.locale=Be,updateFallbackLocale(L,v.value,_.value))}),Vue.watch(n.fallbackLocale,Be=>{f&&(_.value=Be,L.fallbackLocale=Be,updateFallbackLocale(L,v.value,_.value))}));const xt={id:composerID,locale:de,fallbackLocale:re,get inheritLocale(){return f},set inheritLocale(Be){f=Be,Be&&n&&(v.value=n.locale.value,_.value=n.fallbackLocale.value,updateFallbackLocale(L,v.value,_.value))},get availableLocales(){return Object.keys(C.value).sort()},messages:Ke,get modifiers(){return Ae},get pluralRules(){return ce||{}},get isGlobal(){return i},get missingWarn(){return I},set missingWarn(Be){I=Be,L.missingWarn=I},get fallbackWarn(){return D},set fallbackWarn(Be){D=Be,L.fallbackWarn=D},get fallbackRoot(){return F},set fallbackRoot(Be){F=Be},get fallbackFormat(){return U},set fallbackFormat(Be){U=Be,L.fallbackFormat=U},get warnHtmlMessage(){return H},set warnHtmlMessage(Be){H=Be,L.warnHtmlMessage=Be},get escapeParameter(){return ue},set escapeParameter(Be){ue=Be,L.escapeParameter=Be},t:hn,getLocaleMessage:le,setLocaleMessage:nt,mergeLocaleMessage:zt,getPostTranslationHandler:Ze,setPostTranslationHandler:st,getMissingHandler:$,setMissingHandler:De,[SetPluralRulesSymbol]:ie};return xt.datetimeFormats=et,xt.numberFormats=Ot,xt.rt=St,xt.te=ke,xt.tm=ee,xt.d=$e,xt.n=dt,xt.getDateTimeFormat=Dt,xt.setDateTimeFormat=jn,xt.mergeDateTimeFormat=Fn,xt.getNumberFormat=Bt,xt.setNumberFormat=mn,xt.mergeNumberFormat=Gn,xt[InejctWithOptionSymbol]=o,xt[TranslateVNodeSymbol]=mt,xt[DatetimePartsSymbol]=ht,xt[NumberPartsSymbol]=Ut,process.env.NODE_ENV!=="production"&&(xt[EnableEmitter]=Be=>{L.__v_emitter=Be},xt[DisableEmitter]=()=>{L.__v_emitter=void 0}),xt}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,o=isFunction$2(e.missing)?e.missing:void 0,i=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,f=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.formatFallbackMessages,_=isPlainObject(e.modifiers)?e.modifiers:{},C=e.pluralizationRules,x=isFunction$2(e.postTranslation)?e.postTranslation:void 0,V=isString$3(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,I=!!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 F=e.messages;if(isPlainObject(e.sharedMessages)){const Ae=e.sharedMessages;F=Object.keys(Ae).reduce((L,Fe)=>{const tt=L[Fe]||(L[Fe]={});return assign$2(tt,Ae[Fe]),L},F||{})}const{__i18n:U,__root:X,__injectWithOption:G}=e,R=e.datetimeFormats,H=e.numberFormats,ue=e.flatJson;return{locale:t,fallbackLocale:n,messages:F,flatJson:ue,datetimeFormats:R,numberFormats:H,missing:o,missingWarn:i,fallbackWarn:l,fallbackRoot:f,fallbackFormat:v,modifiers:_,pluralRules:C,postTranslation:x,warnHtmlMessage:V,escapeParameter:I,messageResolver:e.messageResolver,inheritLocale:D,__i18n:U,__root:X,__injectWithOption:G}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:o}=e,i={id:n.id,get locale(){return n.locale.value},set locale(l){n.locale.value=l},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(l){n.fallbackLocale.value=l},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(l){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(l){n.setMissingHandler(l)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(l){n.missingWarn=isBoolean(l)?!l:l},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(l){n.fallbackWarn=isBoolean(l)?!l:l},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(l){n.fallbackFormat=l},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(l){n.setPostTranslationHandler(l)},get sync(){return n.inheritLocale},set sync(l){n.inheritLocale=l},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(l){n.warnHtmlMessage=l!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(l){n.escapeParameter=l},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(l){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...l){const[f,v,_]=l,C={};let x=null,V=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const I=f;return isString$3(v)?C.locale=v:isArray$2(v)?x=v:isPlainObject(v)&&(V=v),isArray$2(_)?x=_:isPlainObject(_)&&(V=_),Reflect.apply(n.t,n,[I,x||V||{},C])},rt(...l){return Reflect.apply(n.rt,n,[...l])},tc(...l){const[f,v,_]=l,C={plural:1};let x=null,V=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const I=f;return isString$3(v)?C.locale=v:isNumber$1(v)?C.plural=v:isArray$2(v)?x=v:isPlainObject(v)&&(V=v),isString$3(_)?C.locale=_:isArray$2(_)?x=_:isPlainObject(_)&&(V=_),Reflect.apply(n.t,n,[I,x||V||{},C])},te(l,f){return n.te(l,f)},tm(l){return n.tm(l)},getLocaleMessage(l){return n.getLocaleMessage(l)},setLocaleMessage(l,f){n.setLocaleMessage(l,f)},mergeLocaleMessage(l,f){n.mergeLocaleMessage(l,f)},d(...l){return Reflect.apply(n.d,n,[...l])},getDateTimeFormat(l){return n.getDateTimeFormat(l)},setDateTimeFormat(l,f){n.setDateTimeFormat(l,f)},mergeDateTimeFormat(l,f){n.mergeDateTimeFormat(l,f)},n(...l){return Reflect.apply(n.n,n,[...l])},getNumberFormat(l){return n.getNumberFormat(l)},setNumberFormat(l,f){n.setNumberFormat(l,f)},mergeNumberFormat(l,f){n.mergeNumberFormat(l,f)},getChoiceIndex(l,f){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=o,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=l=>{const f=n;f[EnableEmitter]&&f[EnableEmitter](l)},i.__disableEmitter=()=>{const l=n;l[DisableEmitter]&&l[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((o,i)=>[...o,...i.type===Vue.Fragment?i.children:[i]],[]):t.reduce((n,o)=>{const i=e[o];return i&&(n[o]=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:o}=t,i=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(n).filter(V=>V!=="_"),f={};e.locale&&(f.locale=e.locale),e.plural!==void 0&&(f.plural=isString$3(e.plural)?+e.plural:e.plural);const v=getInterpolateArg(t,l),_=i[TranslateVNodeSymbol](e.keypath,v,f),C=assign$2({},o),x=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(x,C,_)}}}),Translation=TranslationImpl;function isVNode(e){return isArray$2(e)&&!isString$3(e[0])}function renderFormatter(e,t,n,o){const{slots:i,attrs:l}=t;return()=>{const f={part:!0};let v={};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),v=Object.keys(e.format).reduce((I,D)=>n.includes(D)?assign$2({},I,{[D]:e.format[D]}):I,{}));const _=o(e.value,f,v);let C=[f.key];isArray$2(_)?C=_.map((I,D)=>{const F=i[I.type],U=F?F({[I.type]:I.value,index:D,parts:_}):[I.value];return isVNode(U)&&(U[0].key=`${I.type}-${D}`),U}):isString$3(_)&&(C=[_]);const x=assign$2({},l),V=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(V,x,C)}}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,(...o)=>n[NumberPartsSymbol](...o))}}),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,(...o)=>n[DatetimePartsSymbol](...o))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function vTDirective(e){const t=f=>{const{instance:v,modifiers:_,value:C}=f;if(!v||!v.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const x=getComposer$2(e,v.$);process.env.NODE_ENV!=="production"&&_.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const V=parseValue(C);return[Reflect.apply(x.t,x,[...makeParams(V)]),x]};return{created:(f,v)=>{const[_,C]=t(v);inBrowser&&e.global===C&&(f.__i18nWatcher=Vue.watch(C.locale,()=>{v.instance&&v.instance.$forceUpdate()})),f.__composer=C,f.textContent=_},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:v})=>{if(f.__composer){const _=f.__composer,C=parseValue(v);f.textContent=Reflect.apply(_.t,_,[...makeParams(C)])}},getSSRProps:f=>{const[v]=t(f);return{textContent:v}}}}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:o,choice:i,plural:l}=e,f={},v=o||{};return isString$3(n)&&(f.locale=n),isNumber$1(i)&&(f.plural=i),isNumber$1(l)&&(f.plural=l),[t,v,f]}function apply(e,t,...n){const o=isPlainObject(n[0])?n[0]:{},i=!!o.useI18nComponentName,l=isBoolean(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&l&&i&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),l&&([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,o)=>{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:v})=>{updateComponentTreeTags(f,v,t)}),i.on.inspectComponent(({componentInstance:f,instanceData:v})=>{f.vnode.el&&f.vnode.el.__VUE_I18N__&&v&&(t.mode==="legacy"?f.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(v,f.vnode.el.__VUE_I18N__):inspectComposer(v,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 l=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(!l.has(f.app)){const[v]=await i.getComponentInstances(f.app);l.set(f.app,v)}i.highlightElement(l.get(f.app))}else{const v=getComponentInstance(f.nodeId,t);v&&i.highlightElement(v)}}),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),o(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const o=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==o){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 o=e[n];isFunction$2(o)&&"source"in o?t[n]=getMessageFunctionDetails(o):isMessageAST(o)&&o.loc&&o.loc.source?t[n]=o.loc.source:isObject$4(o)?t[n]=getLocaleMessageValue(o):t[n]=o}),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[o,i]of t.__instances){const l=t.mode==="composition"?i:i.__composer;n!==l&&e.rootNodes.push({id:l.id.toString(),label:`${getI18nScopeLable(o)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[o,i]of t.__instances.entries())if(i.id.toString()===e){n=o;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(o=>o.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",o=[{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]=o;const i="Locale messages info",l=[{type:i,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[i]=l;{const f="Datetime formats info",v=[{type:f,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[f]=v;const _="Datetime formats info",C=[{type:_,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[_]=C}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[o]=e.path;o==="locale"&&isString$3(e.state.value)?n.locale.value=e.state.value:o==="fallbackLocale"&&(isString$3(e.state.value)||isArray$2(e.state.value)||isObject$4(e.state.value))?n.fallbackLocale.value=e.state.value:o==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const o=Vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const l=i.i18n;if(i.__i18n&&(l.__i18n=i.__i18n),l.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,l);else{l.__injectWithOption=!0,l.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(l);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 l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&adjustI18nResources(t,i,i),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,f)=>this.$i18n.te(l,f),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),n.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const i=this.__v_emitter=createEmitter();o.__enableEmitter&&o.__enableEmitter(i),i.on("*",addTimelineEvent)}},unmounted(){const o=Vue.getCurrentInstance();if(!o)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(o),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(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),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__,o=isBoolean(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,l=new Map,[f,v]=createGlobal(e,n),_=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function C(I){return l.get(I)||null}function x(I,D){l.set(I,D)}function V(I){l.delete(I)}{const I={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(D,...F){if(process.env.NODE_ENV!=="production"&&(D.__VUE_I18N__=I),D.__VUE_I18N_SYMBOL__=_,D.provide(D.__VUE_I18N_SYMBOL__,I),isPlainObject(F[0])){const G=F[0];I.__composerExtend=G.__composerExtend,I.__vueI18nExtend=G.__vueI18nExtend}let U=null;!n&&o&&(U=injectGlobalFields(D,I.global)),__VUE_I18N_FULL_INSTALL__&&apply(D,I,...F),__VUE_I18N_LEGACY_API__&&n&&D.mixin(defineMixin(v,v.__composer,I));const X=D.unmount;if(D.unmount=()=>{U&&U(),I.dispose(),X()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(D,I))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const R=createEmitter();if(n){const H=v;H.__enableEmitter&&H.__enableEmitter(R)}else{const H=v;H[EnableEmitter]&&H[EnableEmitter](R)}R.on("*",addTimelineEvent)}},get global(){return v},dispose(){f.stop()},__instances:l,__getInstance:C,__setInstance:x,__deleteInstance:V};return I}}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),o=getGlobalComposer(n),i=getComponentOptions(t),l=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,l,o,e)}if(l==="global")return adjustI18nResources(o,e,i),o;if(l==="parent"){let _=getComposer(n,t,e.__useComponent);return _==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),_=o),_}const f=n;let v=f.__getInstance(t);if(v==null){const _=assign$2({},e);"__i18n"in i&&(_.__i18n=i.__i18n),o&&(_.__root=o),v=createComposer(_),f.__composerExtend&&(v[DisposeSymbol]=f.__composerExtend(v)),setupLifeCycle(f,t,v),f.__setInstance(t,v)}return v}function createGlobal(e,t,n){const o=Vue.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?o.run(()=>createVueI18n(e)):o.run(()=>createComposer(e));if(i==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[o,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 o=null;const i=t.root;let l=getParentComponentInstance(t,n);for(;l!=null;){const f=e;if(e.mode==="composition")o=f.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const v=f.__getInstance(l);v!=null&&(o=v.__composer,n&&o&&!o[InejctWithOptionSymbol]&&(o=null))}if(o!=null||i===l)break;l=l.parent}return o}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let o=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,o=createEmitter();const i=n;i[EnableEmitter]&&i[EnableEmitter](o),o.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(o&&o.off("*",addTimelineEvent),i[DisableEmitter]&&i[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const l=i[DisposeSymbol];l&&(l(),delete i[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,o={}){const i=t==="local",l=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(o.inheritLocale)?o.inheritLocale:!isString$3(o.locale),v=Vue.ref(!i||f?n.locale.value:isString$3(o.locale)?o.locale:DEFAULT_LOCALE),_=Vue.ref(!i||f?n.fallbackLocale.value:isString$3(o.fallbackLocale)||isArray$2(o.fallbackLocale)||isPlainObject(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:v.value),C=Vue.ref(getLocaleMessages(v.value,o)),x=Vue.ref(isPlainObject(o.datetimeFormats)?o.datetimeFormats:{[v.value]:{}}),V=Vue.ref(isPlainObject(o.numberFormats)?o.numberFormats:{[v.value]:{}}),I=i?n.missingWarn:isBoolean(o.missingWarn)||isRegExp(o.missingWarn)?o.missingWarn:!0,D=i?n.fallbackWarn:isBoolean(o.fallbackWarn)||isRegExp(o.fallbackWarn)?o.fallbackWarn:!0,F=i?n.fallbackRoot:isBoolean(o.fallbackRoot)?o.fallbackRoot:!0,U=!!o.fallbackFormat,X=isFunction$2(o.missing)?o.missing:null,G=isFunction$2(o.postTranslation)?o.postTranslation:null,R=i?n.warnHtmlMessage:isBoolean(o.warnHtmlMessage)?o.warnHtmlMessage:!0,H=!!o.escapeParameter,ue=i?n.modifiers:isPlainObject(o.modifiers)?o.modifiers:{},Ae=o.pluralRules||i&&n.pluralRules;function ce(){return[v.value,_.value,C.value,x.value,V.value]}const L=Vue.computed({get:()=>l.value?l.value.locale.value:v.value,set:ee=>{l.value&&(l.value.locale.value=ee),v.value=ee}}),Fe=Vue.computed({get:()=>l.value?l.value.fallbackLocale.value:_.value,set:ee=>{l.value&&(l.value.fallbackLocale.value=ee),_.value=ee}}),tt=Vue.computed(()=>l.value?l.value.messages.value:C.value),de=Vue.computed(()=>x.value),re=Vue.computed(()=>V.value);function Ke(){return l.value?l.value.getPostTranslationHandler():G}function et(ee){l.value&&l.value.setPostTranslationHandler(ee)}function Ot(){return l.value?l.value.getMissingHandler():X}function Ze(ee){l.value&&l.value.setMissingHandler(ee)}function st(ee){return ce(),ee()}function $(...ee){return l.value?st(()=>Reflect.apply(l.value.t,null,[...ee])):st(()=>"")}function De(...ee){return l.value?Reflect.apply(l.value.rt,null,[...ee]):""}function Re(...ee){return l.value?st(()=>Reflect.apply(l.value.d,null,[...ee])):st(()=>"")}function pt(...ee){return l.value?st(()=>Reflect.apply(l.value.n,null,[...ee])):st(()=>"")}function hn(ee){return l.value?l.value.tm(ee):{}}function St(ee,le){return l.value?l.value.te(ee,le):!1}function $e(ee){return l.value?l.value.getLocaleMessage(ee):{}}function dt(ee,le){l.value&&(l.value.setLocaleMessage(ee,le),C.value[ee]=le)}function Mt(ee,le){l.value&&l.value.mergeLocaleMessage(ee,le)}function ve(ee){return l.value?l.value.getDateTimeFormat(ee):{}}function ze(ee,le){l.value&&(l.value.setDateTimeFormat(ee,le),x.value[ee]=le)}function mt(ee,le){l.value&&l.value.mergeDateTimeFormat(ee,le)}function Ut(ee){return l.value?l.value.getNumberFormat(ee):{}}function ht(ee,le){l.value&&(l.value.setNumberFormat(ee,le),V.value[ee]=le)}function ie(ee,le){l.value&&l.value.mergeNumberFormat(ee,le)}const ke={get id(){return l.value?l.value.id:-1},locale:L,fallbackLocale:Fe,messages:tt,datetimeFormats:de,numberFormats:re,get inheritLocale(){return l.value?l.value.inheritLocale:f},set inheritLocale(ee){l.value&&(l.value.inheritLocale=ee)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(C.value)},get modifiers(){return l.value?l.value.modifiers:ue},get pluralRules(){return l.value?l.value.pluralRules:Ae},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:I},set missingWarn(ee){l.value&&(l.value.missingWarn=ee)},get fallbackWarn(){return l.value?l.value.fallbackWarn:D},set fallbackWarn(ee){l.value&&(l.value.missingWarn=ee)},get fallbackRoot(){return l.value?l.value.fallbackRoot:F},set fallbackRoot(ee){l.value&&(l.value.fallbackRoot=ee)},get fallbackFormat(){return l.value?l.value.fallbackFormat:U},set fallbackFormat(ee){l.value&&(l.value.fallbackFormat=ee)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:R},set warnHtmlMessage(ee){l.value&&(l.value.warnHtmlMessage=ee)},get escapeParameter(){return l.value?l.value.escapeParameter:H},set escapeParameter(ee){l.value&&(l.value.escapeParameter=ee)},t:$,getPostTranslationHandler:Ke,setPostTranslationHandler:et,getMissingHandler:Ot,setMissingHandler:Ze,rt:De,d:Re,n:pt,tm:hn,te:St,getLocaleMessage:$e,setLocaleMessage:dt,mergeLocaleMessage:Mt,getDateTimeFormat:ve,setDateTimeFormat:ze,mergeDateTimeFormat:mt,getNumberFormat:Ut,setNumberFormat:ht,mergeNumberFormat:ie};function q(ee){ee.locale.value=v.value,ee.fallbackLocale.value=_.value,Object.keys(C.value).forEach(le=>{ee.mergeLocaleMessage(le,C.value[le])}),Object.keys(x.value).forEach(le=>{ee.mergeDateTimeFormat(le,x.value[le])}),Object.keys(V.value).forEach(le=>{ee.mergeNumberFormat(le,V.value[le])}),ee.escapeParameter=H,ee.fallbackFormat=U,ee.fallbackRoot=F,ee.fallbackWarn=D,ee.missingWarn=I,ee.warnHtmlMessage=R}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ee=l.value=e.proxy.$i18n.__composer;t==="global"?(v.value=ee.locale.value,_.value=ee.fallbackLocale.value,C.value=ee.messages.value,x.value=ee.datetimeFormats.value,V.value=ee.numberFormats.value):i&&q(ee)}),ke}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 l=Object.getOwnPropertyDescriptor(t,i);if(!l)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const f=Vue.isRef(l.value)?{get(){return l.value.value},set(v){l.value.value=v}}:{get(){return l.get&&l.get()}};Object.defineProperty(n,i,f)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(i=>{const l=Object.getOwnPropertyDescriptor(t,i);if(!l||!l.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,l)}),()=>{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",allCheck:"Check All",pleaseInputNameOrCode:"Please Input Name Or Code",selectResultInfoHasSelect:"Has select:",selectResultInfo:"{num} departments (including sub departments)",selectResultTitle:"Has Select Result"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific",selectUserResultInfo:"{useNum} Users",selectDeptResultInfo:"{num} departments(including sub departments)"},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:"名称路径",allCheck:"全选",pleaseInputNameOrCode:"请输入名称/编码",selectResultInfoHasSelect:"已选择:",selectResultInfo:"{num}个部门(含子部门)",selectResultTitle:"已选择信息"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称",selectUserResultInfo:"{userNum}个用户",selectDeptResultInfo:"{deptNum}个部门(含子部门)"},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,o){return(t==null||t+""=="")&&(o==null||o+""=="")&&(n==="EQ"||n==="CONTAIN")}}class NumberCalculator extends CalculatorFactory{constructor(t,n,o){if(super(),this.isNotNullValue(t,n))this.result=!0;else if(this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,o))this.result=!0;else if(t==null)this.result=!1;else{const i=+(t+""),l=+(o+"");if(n==="GET")this.result=i>=l;else if(n==="LET")this.result=i<=l;else if(n==="GT")this.result=i>l;else if(n==="LT")this.result=i<l;else if(n==="NET")this.result=i!==l;else if(n==="EQ")this.result=i===l;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+" "+o)}}}class TextCalculator extends CalculatorFactory{constructor(t,n,o){if(super(),this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,o))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!==o;else if(n==="EQ")this.result=t===o;else if(n==="NOT_CONTAIN")this.result=!t.includes(o);else if(n==="CONTAIN")this.result=t.includes(o);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+" "+o)}}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,o){const i=getAbstractUserFactory(o);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 o in n)e[o]=n[o]}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,l,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 v="";for(var _ in f)f[_]&&(v+="; "+_,f[_]!==!0&&(v+="="+f[_].split(";")[0]));return document.cookie=i+"="+e.write(l,i)+v}}function o(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var l=document.cookie?document.cookie.split("; "):[],f={},v=0;v<l.length;v++){var _=l[v].split("="),C=_.slice(1).join("=");try{var x=decodeURIComponent(_[0]);if(f[x]=e.read(C,x),i===x)break}catch{}}return i?f[i]:f}}return Object.create({set:n,get:o,remove:function(i,l){n(i,"",assign({},l,{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$1(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$1(jwtKey),console.log("authAPI.getToken---getSessionCache=",e)),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey),removeSessionCache(runDevpJwtKey)}function getUsername(){let e=getRunInfoKey(currentUserNameKey),t=getCookieCache(e);return t||(t=getSessionCache$1(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$1(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$1(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$1(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$1(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$1(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$1(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:getSessionCache$1,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl,getLanguage,setLanguage,removeLanguage,getAllLanguages:getAllLanguages$1,setAllLanguages,removeAllLanguages,removePublishControl,isDevpSystem,getRunInfoKey};function getToken(){return authApi.getToken()}function getSessionCache(e){return authApi.getSessionCache(e)}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 o=e.split("/");if(o.length>=3){const i=o[0]+"//"+o[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 o=n;const i=n.split("/");return i.length>=3&&(o=i[0]+"//"+i[2]+"/"),o}}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(){let e=window.$i18n;return e||(e=i18n),window.$locale?i18n.locale=window.$locale:i18n.locale="cn",e.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function analysisCondition(e,t,n,o,i,l,f,v){if(e===void 0||e===""||e===null)return!0;(typeof i>"u"||i===null)&&(i=!1);let _={};n&&typeof n=="string"&&n!==""?_=JSON.parse(n):n&&typeof n=="object"&&(_=n);let C={};o&&typeof o=="string"&&o!==""?C=JSON.parse(o):o&&typeof o=="object"&&(C=o);let x=[];return e&&typeof e=="string"&&e!==""?x=JSON.parse(e):e&&Array.isArray(e)&&(x=e),parseCondition(t,x,i,l,_,C,f,v)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData,pageContext){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,o=t.propDbName;if((!n||n==="")&&(!o||o===""))continue;let i;if(isSql&&o){if(o.indexOf("parent_+_")!==-1?(o=o.replace("parent_+_",""),o=o.split("_+_")[1],i=getValue$2(parentFormData,o,isSql)):i=getValue$2(entity,o,isSql),i==null&&tableName&&o.toLowerCase().startsWith(tableName.toLowerCase()+".")){const F=o.substring(o.indexOf("."));i=getValue$2(entity,F,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),o&&i==null&&(i=getValue$2(entity,o,isSql));const l=t.operator,f=t.propValue,v=t.dataType,_=t.variableIsNull;let C;pageContext?C=getPropValueNew(f,pageContext):C=getPropValue(f,entity,additionalParamMap,contextParameterMap),_&&_==="null"&&(C===void 0||C==="")&&(C=null);let x=executeExpression(i,l,C,v);const V=t.leftBracket,I=t.rightBracket;let D=t.joinSign;if(V&&V!==null&&V!==""&&(conditions=conditions+V,conditions=conditions+" "),_&&_!=="null"&&(C==null||C+""=="")&&(_==="1=1"?x=!0:x=!1),conditions+=x+" ",I&&I!==null&&I!==""&&(conditions=conditions+I,conditions=conditions+" "),e<conditionList.length-1&&D&&D!==null&&D!==""){const F=D.toLowerCase();F==="and"?D=F.replace("and","&&"):F==="or"&&(D=F.replace("or","||")),conditions+=D+" "}}return console.log("parseCondition----conditions=",conditions),conditions?eval("("+conditions+")"):!0}const REPLACE_DOT="__";function getValue$2(e,t,n){let o=null;return e&&e!==null&&t&&t!==null&&(o=getValueByField(e,t),o==null&&n&&(o===void 0||o==null)&&t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),o=getValueByField(e,t))),o}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,o=e;const i=t.split("\\.");for(let l=0;l<i.length;l++){const f=i[l];l===i.length?n=getSubEntityFieldValue(o,f):o=getSubEntityFieldValue(o,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(),o=new Date(t+24*60*60*1e3*(0-(n+6)%7)),i=new Date(t+24*60*60*1e3*(6-(n+6)%7)),l=o.toLocaleDateString()+" "+o.toLocaleTimeString(),f=i.toLocaleDateString()+" "+i.toLocaleTimeString();return console.log(`getCurrentMonth从 ${l} 开始,到 ${f} 结束`),[o,i]}function getCurrentMonth(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1;e.setDate(1);const o=`${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`,l=new Date(Date.parse(o)),f=new Date(new Date(Date.parse(i)).getTime()-1e3),v=l.toLocaleDateString()+" "+l.toLocaleTimeString(),_=f.toLocaleDateString()+" "+f.toLocaleTimeString();return console.log(`getCurrentMonth从 ${v} 开始,到 ${_} 结束`),[l,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 o;n.getMonth()===11?o=new Date(n.getFullYear()+1,0,0):o=new Date(n.getFullYear(),n.getMonth()+3,0),o=new Date(o.getTime()+24*60*60*1e3-1e3);const i=n.toLocaleDateString()+" "+n.toLocaleTimeString(),l=o.toLocaleDateString()+" "+o.toLocaleTimeString();return console.log(`getCurrentQuarter从 ${i} 开始,到 ${l} 结束`),[n,o]}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 o=t.toLocaleDateString()+" "+t.toLocaleTimeString(),i=n.toLocaleDateString()+" "+n.toLocaleTimeString();return console.log(`getCurrentYear从 ${o} 开始,到 ${i} 结束`),[t,n]}function getLastNDay(e){let t=new Date,n=t.getFullYear(),o=t.getMonth()+1,i=t.getDate(),l=`${n}/${o<10?"0":""}${o}/${i}`;t=new Date(Date.parse(l)),t.setDate(t.getDate()+1),t=new Date(t.getTime()-1e3);let f=new Date;f.setDate(f.getDate()-(e-1));const v=f.getFullYear(),_=f.getMonth()+1,C=f.getDate(),x=`${v}/${_<10?"0":""}${_}/${C}`;f=new Date(Date.parse(x));const V=f.toLocaleDateString()+" "+f.toLocaleTimeString(),I=t.toLocaleDateString()+" "+t.toLocaleTimeString();console.log(`getLastNDay从 ${V} 开始,到 ${I} 结束`),retur[t]}function getPropValue(e,t,n,o,i,l,f){return getPropValueNew(e,{entity:{data:t,context:o,request:n,parent:i,row:l,task:f}})}function getAdditionalParamMap$1(e){if(e&&e.entity){let t=e.entity.page;t||(t={});const n=e.entity.request;return n&&Object.assign(t,n),t}}function getPropValueNew(e,t){let n=null;if(e&&e!==null&&e!==""){const o=t&&t.entity?t.entity.data:null,i=getAdditionalParamMap$1(t),l=t&&t.entity?t.entity.context:null,f=t&&t.entity?t.entity.parent?t.entity.parent:t.entity.data:null,v=t&&t.entity?t.entity.row:null,_=t&&t.entity?t.entity.task:null,C=t&&t.entity?t.entity.system:null;if(e==="null")n=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")||e.includes("${data.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),n=getContextValue(l,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),i&&i!=null&&Object.keys(i).indexOf(e)>=0&&i[e]&&i[e]!==null?n=i[e]:n=null;else if(e.includes("${obj."))if(o===void 0||o==null)n=null;else{const x=e.replace("${obj.","").replace("}","");n=getEntityFieldValue(o,x)}else if(e.includes("${data."))if(o===void 0||o==null)n=null;else{const x=e.replace("${data.","").replace("}","");n=getEntityFieldValue(o,x)}}else if(e.includes("${parent."))if(f===void 0||f==null)n=null;else{const x=e.replace("${parent.","").replace("}","");n=getEntityFieldValue(f,x)}else if(e.includes("${system."))if(C===void 0||C==null)n=null;else{const x=e.replace("${system.","").replace("}","");n=getEntityFieldValue(C,x)}else if(e.includes("${task."))if(_===void 0||_==null)n=null;else{const x=e.replace("${task.","").replace("}","");n=getEntityFieldValue(_,x)}else if(e.includes("${subObj."))if(v===void 0||v==null)n=null;else{const x=e.replace("${subObj.","").replace("}","");n=getEntityFieldValue(v,x)}else e.includes("${input.")?n=e.replace("${input.","").replace("}",""):e.includes("${fixed.")?n=e.replace("${fixed.","").replace("}",""):n=e}return n}function analysisValue(e,t,n,o,i){if(!e)return;let l="";const f=e.split("-#-#");return f!=null&&f.length>0&&f.forEach(v=>{let _;i?_=getPropValueNew(v,i):_=getPropValue(v,t,n,o),(!_||_===null)&&(_=""),l+=_}),l}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){const o=getParentObjectUtil(t,e);if(o){const i=t.substring(t.lastIndexOf(".")+1);o[i]===void 0?o[t.substring(t.lastIndexOf(".")+1)]=n:o[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),o=t.substring(t.lastIndexOf(".")+1);return n[o]}else return e[t]}function getEntityFieldValue(e,t,n){let o=getEntityFieldValueWithCase(e,t);return o==null&&(o=getEntityFieldValueWithCase(e,t.toLowerCase())),(o===void 0||o===null&&n===void 0)&&(o=getEntityFieldValueWithCase(e,t.toUpperCase())),o}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),o=t.substring(t.lastIndexOf(".")+1);return n[o]}else return e[t]}function getParentObjectUtil(e,t){const n=e.split(".");if(n.length===1)return t;{let o;for(let i=0;i<n.length-1;i++)i===0?o=getParentModelProp(n[i],t):o=getParentModelProp(n[i],o);return o}}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 o="__";e.indexOf(".")>0?e=e.replace(".",o):n&&n!==null&&n!==""&&e.indexOf(n+o)<0&&(e=n+o+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,o=0;o<n;o++)if(e[o].id===t.id)return o===0?(e.shift(),e):o===n-1?(e.pop(),e):(e.splice(o,1),e);return e},storeSeachValue(e,t,n){if(n&&n!==""){var o=e.getObject(t);if(o&&o.length>0){var i=o.filter(this.createFilter(n));if(i.length===0){const f={value:n};o.push(f),e.setObject(t,o)}}else{var l=[];const f={value:n};l.push(f),e.setObject(t,l)}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,o){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 l=0;l<f.length;l++){let v=f[l];if(v.indexOf("obj.")!==-1){if(v=v.replace("${obj.","").replace("}",""),t){let _=t[v];this.childIsObjectProp(v)&&(_=this.childObjectPropOriginalValue(t,v)),i+=_}}else if(v.indexOf("request.")!==-1){if(v=v.replace("${request.","").replace("}",""),o){const _=o[v];_&&(i+=_)}}else if(v.indexOf("input.")!==-1)v=v.replace("${input.","").replace("}",""),i+=v;else if(v.indexOf("context.")!==-1&&(v=v.replace("${context.","").replace("}",""),n)){const _=n[v];_&&(i+=_)}}}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((o,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(l=>{o(l)}).catch(l=>{i(l)}):o([]):o([])})}},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(o=>o.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,o)=>{if(t.length===e)n();else{const i=t[e];let l=i;const f="~";i.indexOf(f)>-1&&(l=i.substring(i.indexOf("~")+1)),this.loadDepartment(l).then(()=>{this.loadDepartmentWhenSearch(++e,t)}).catch(v=>{o(v)})}})},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(o=>{this.selectUser(null,o)}),this.isloading=!1)}))}else this.cancelChildCheckedNodes(e)},loadNode(e,t){var n=0;e.level===0?n=0:n=e.data.id;var o=[];this.$refs.deparmentTree&&(o=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,o)},initLoadDepartment(e,t,n,o){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 l=i[0].data;i[0].disable=!0,this.tenantInfo=JSON.parse(l),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)):o&&o.indexOf(e)>-1&&this.checkedNodeAndChildren(t.data)})},loadDepartment(e,t,n){return new Promise((o,i)=>{this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(l=>{this.$refs.deparmentTree.updateKeyChildren(e,l),this.$refs.deparmentTree.store.nodesMap[e]&&(this.$refs.deparmentTree.store.nodesMap[e].expanded=!0),o()}).catch(l=>{console.log("error",l)})})},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((o,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(l=>{o(l)}).catch(l=>{i(l)}):o([]):o([])})},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(o=>{e(o)}).catch(o=>{t(o)}):e(n)})}},searchResult_vue_vue_type_style_index_0_lang$3="",_sfc_main$1j={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$10={style:{height:"100%"}},_hoisted_2$F=["title"],_hoisted_3$t=["title"],_hoisted_4$k=["title"],_hoisted_5$g={class:"roleQuery_center_area",style:{height:"395px"}},_hoisted_6$d={class:"roleQuery_notAvailable",style:{width:"120px",height:"120px"}},_hoisted_7$8={class:"roleQuery_notAvailable_text"};function _sfc_render$13(e,t,n,o,i,l){const f=Vue.resolveComponent("el-radio"),v=Vue.resolveComponent("el-table-column"),_=Vue.resolveComponent("el-button"),C=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$10,[Vue.createVNode(C,{ref:"superGrid",data:n.gridData,"max-height":i.myHeight,"row-class-name":l.tableRowClassName,border:"",fit:"","row-key":"id",onRowClick:l.rowClick,onRowDblclick:l.rowDblclick},{empty:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$g,[Vue.createElementVNode("div",_hoisted_6$d,[Vue.createElementVNode("span",_hoisted_7$8,Vue.toDisplayString(e.$t("imatrixUIPromptMessage.NoContent")),1)])])]),default:Vue.withCtx(()=>[n.multiple===!1?(Vue.openBlock(),Vue.createBlock(v,{key:0,width:"60"},{default:Vue.withCtx(x=>[Vue.createVNode(f,{modelValue:i.singleUserIndex,"onUpdate:modelValue":t[0]||(t[0]=V=>i.singleUserIndex=V),label:x.$index,onChange:l.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(v,{key:1,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(_,{disabled:l.isDisable(x.row),icon:i.ElIconPlus,circle:"",size:"default",type:"primary",onClick:V=>l.addUser(x.$index,x.row)},null,8,["disabled","icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple?(Vue.openBlock(),Vue.createBlock(v,{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(v,{key:3,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"right",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(_,{icon:i.ElIconDelete,circle:"",size:"default",type:"danger",onClick:V=>l.removeUser(x.$index,x.row)},null,8,["icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(v,{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$F)]),_:1},8,["label"]),Vue.createVNode(v,{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$t)]),_:1},8,["label"]),Vue.createVNode(v,{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$k)]),_:1},8,["label"])]),_:1},8,["data","max-height","row-class-name","onRowClick","onRowDblclick"])])}const UserResult$1=_export_sfc$1(_sfc_main$1j,[["render",_sfc_render$13]]),memoryCacheUtils={memorySearch(e,t){var n=this.memoryCacheData,o=n;setTimeout(()=>{t(o)},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),o=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,l=e.mainDepartmentName===void 0||e.mainDepartmentName===null||e.mainDepartmentName==="undefined"?"":e.mainDepartmentName;const f=o+"("+i+"/"+l+")";var v=-1;n&&n.length>0?v=n.findIndex(_=>_.loginName===e.loginName):n=[],e.value=f,v<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(v,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),o=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 l=o+"("+i+")";var f=-1;n&&n.length>0?f=n.findIndex(v=>v.code===e.code):n=[],e.value=l,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$1i={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(o=>{this.checkedNodeAndChildren(o)})},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(o=>{this.$refs.deparmentTree.setChecked(o.id,!1),this.cancelChildCheckedNodes(o)})},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 o=JSON.parse(e.data);this.selectUser(null,o)}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 o=this.selectResult[n];t.ids.push(o.id),t.codes.push(o.code),o.enName?t.enNames.push(o.enName):t.enNames.push(""),o.department?t.departments.push(o.department):t.departments.push(o);const i=o.showName;t.names.push(i),t.zhNames.push(o.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 o=this.$refs.deparmentTree.getCheckedKeys().filter(this.filterDeptNode(t));o.length>0&&o.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$$={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$E=["title"],_hoisted_3$s={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_4$j={style:{"text-align":"left","font-size":"16px"}},_hoisted_5$f={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$12(e,t,n,o,i,l){const f=Vue.resolveComponent("el-button"),v=Vue.resolveComponent("el-autocomplete"),_=Vue.resolveComponent("el-header"),C=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),V=Vue.resolveComponent("Calendar"),I=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),F=Vue.resolveComponent("user-result"),U=Vue.resolveComponent("el-main"),X=Vue.resolveComponent("el-container"),G=Vue.resolveComponent("el-aside"),R=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(X,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(G,{width:"350px"},{default:Vue.withCtx(()=>[Vue.createVNode(X,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(_,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(v,{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(U,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$$,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":l.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!0,"check-strictly":"",lazy:"","node-key":"id",onCheck:e.handleCheckNode,onCheckChange:l.handleCheckChange,onNodeExpand:l.handleNodeExpand,onNodeClick:l.handleNodeClick},{default:Vue.withCtx(({node:H,data:ue})=>[Vue.createElementVNode("span",null,[Vue.createVNode(I,null,{default:Vue.withCtx(()=>[H.data.id===-1||H.data.branch?(Vue.openBlock(),Vue.createBlock(C,{key:0})):H.data.id===-2||H.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(V,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{title:H.label},Vue.toDisplayString(H.label),9,_hoisted_2$E)])]),_:1},8,["filter-node-method","load","props","onCheck","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$s,[Vue.createVNode(F,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!0,"select-result":i.selectResult,onAddUser:l.selectUser},null,8,["grid-data","height","select-result","onAddUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),Vue.createVNode(X,null,{default:Vue.withCtx(()=>[Vue.createVNode(U,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$j,Vue.toDisplayString(e.$t("departmentTreeInline.selectedDept"))+": ",1),Vue.createElementVNode("div",_hoisted_5$f,[Vue.withDirectives(Vue.createVNode(F,{"grid-data":i.selectResult,height:n.height,"is-search-result":!1,multiple:!0,onRemoveUser:l.removeUser},null,8,["grid-data","height","onRemoveUser"]),[[R,i.isloading]])])]),_:1})]),_:1})]),_:1})])}const InlineDepartmentMultiTree=_export_sfc$1(_sfc_main$1i,[["render",_sfc_render$12]]),departmentSingleTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$1h={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$_={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$D=["title"],_hoisted_3$r={key:1,style:{height:"100%",overflow:"hidden"}};function _sfc_render$11(e,t,n,o,i,l){const f=Vue.resolveComponent("el-button"),v=Vue.resolveComponent("el-autocomplete"),_=Vue.resolveComponent("el-header"),C=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),V=Vue.resolveComponent("Calendar"),I=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),F=Vue.resolveComponent("user-result"),U=Vue.resolveComponent("el-main"),X=Vue.resolveComponent("el-container");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(X,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(_,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(v,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=G=>i.filterText=G),"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(U,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$_,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":l.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!1,"check-strictly":"",lazy:"","node-key":"id",onCheckChange:l.handleCheckChange,onNodeExpand:l.handleNodeExpand,onNodeClick:l.handleNodeClick},{default:Vue.withCtx(({node:G,data:R})=>[Vue.createElementVNode("span",null,[Vue.createVNode(I,null,{default:Vue.withCtx(()=>[G.data.id===-1||G.data.branch?(Vue.openBlock(),Vue.createBlock(C,{key:0})):G.data.id===-2||G.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(V,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{class:Vue.normalizeClass(R.nodeType&&R.nodeType==="DEPARTMENT"&&i.searchValue&&R.name.indexOf(i.searchValue)>-1?"searchResult":""),title:G.label},Vue.toDisplayString(G.label),11,_hoisted_2$D)])]),_:1},8,["filter-node-method","load","props","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$r,[Vue.createVNode(F,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!1,onResultRowDblclick:l.resultRowDblclick,onSelectResult:l.getSelectUser},null,8,["grid-data","height","onResultRowDblclick","onSelectResult"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})])}const InlineDepartmentSingleTree=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$11]]),_sfc_main$1g={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,o,i,l){const f=Vue.resolveComponent("inline-department-multi-tree"),v=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:l.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(v,{key:1,ref:"inlineDeparmentTree","department-info":n.departmentInfo,onResult:l.result},null,8,["department-info","onResult"]))])}const InlineDepartmentTree=_export_sfc$1(_sfc_main$1g,[["render",_sfc_render$10]]),_sfc_main$1f={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$Z={class:"dialog-footer"};function _sfc_render$$(e,t,n,o,i,l){const f=Vue.resolveComponent("inline-department-tree"),v=Vue.resolveComponent("el-button"),_=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(_,{"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]=C=>e.$emit("close")),onClosed:t[2]||(t[2]=C=>e.$emit("closed")),onOpen:t[3]||(t[3]=C=>e.$emit("open")),onOpend:t[4]||(t[4]=C=>e.$emit("opend"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$Z,[Vue.createVNode(v,{class:"button--default",size:"default",onClick:t[0]||(t[0]=C=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(v,{size:"default",type:"primary",onClick:l.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:l.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$1f,[["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$1e={name:"Hamburger",components:{Expand:expand_default,Fold:fold_default},props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick(){$emit(this,"toggleClick")}},emits:["toggleClick"]},_hoisted_1$Y={class:"00-Color/9-gray"};function _sfc_render$_(e,t,n,o,i,l){const f=Vue.resolveComponent("Fold"),v=Vue.resolveComponent("el-icon"),_=Vue.resolveComponent("Expand");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$Y,[n.isActive?(Vue.openBlock(),Vue.createBlock(v,{key:0,onClick:l.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"])):(Vue.openBlock(),Vue.createBlock(v,{key:1,onClick:l.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(_,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"]))])}const hamburger=_export_sfc$1(_sfc_main$1e,[["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$1d={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$X=["xlink:href"];function _sfc_render$Z(e,t,n,o,i,l){return Vue.openBlock(),Vue.createElementBlock("svg",{class:Vue.normalizeClass(l.svgClass),"aria-hidden":"true"},[Vue.createElementVNode("use",{"xlink:href":l.iconName},null,8,_hoisted_1$X)],2)}const SvgIcon=_export_sfc$1(_sfc_main$1d,[["render",_sfc_render$Z],["__scopeId","data-v-ef299c9a"]]);SvgIcon.install=function(e){e.component(SvgIcon.name,SvgIcon)};const _sfc_main$1c={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$W={class:"cell--span"},_hoisted_2$C={class:"cell--span"};function _sfc_render$Y(e,t,n,o,i,l){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",fixed:l.fixed,width:n.column.width?n.column.width:"80"},{header:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_1$W,Vue.toDisplayString(e.$t("superGrid.index")),1)]),default:Vue.withCtx(v=>[Vue.createElementVNode("span",_hoisted_2$C,Vue.toDisplayString(v.$index+l.startIndex),1)]),_:1},8,["fixed","width"])}const IndexColumn=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$Y]]),_sfc_main$1b={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,o,i,l){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",type:"selection",label:n.column.label,fixed:l.fixed,width:n.column.width?n.column.width:"50"},null,8,["label","fixed","width"])}const SelectionColumn=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$X]]),store$1=new Map;function getColumnValues(e,t){const n=[];for(const o of e)n.push(o[t]);return n}function getSpanValuesForColumn(e,t,n){const o=[];let i=0;for(let l=0;l<e.length;l++)if(l===0)o.push(1),i=0;else if(n&&n!==""){let f="",v="";const _=n.split(",");for(let C=0;C<_.length;C++)f+=e[l][_[C]],v+=e[l-1][_[C]];f===v?(o[i]+=1,o.push(0)):(o.push(1),i=l)}else e[l][t]===e[l-1][t]?(o[i]+=1,o.push(0)):(o.push(1),i=l);return o}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),o=getProps(t);let _=n;n.length>o.length?_=n:_=o;for(var i=0;i<_.length;i++){var l=_[i];if(l!=="$editing"){var f=e[l],v=t[l];if(f!==v)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 o=!1;const i=store$1.get(t),l=isHasEditOption("disableEditProps",t)?i.options.lineEditOptions.disableEditProps:null;if(l){const v=l.split(",");v&&v.indexOf(e)>=0&&(o=!0)}const f=getEntityId(n);if(o===!1&&i.options){const v=i.options.validateRules;if(v){const _=v.filter(x=>x.name&&(x.name===e||x.name==="all_fields"));let C=!0;if(_&&_.length>0){for(let x=0;x<_.length;x++)_[x].rowIndexes===void 0||_[x].rowIndexes===null||_[x].rowIndexes.indexOf(f)>=0?C=_[x].canEdit:C=!0;C===!1&&(o=!0)}}if(o===!1){const _=i.options.actionPermission;isRowCanUpdate(_,f)===!1&&(o=!0)}}return o}function isRequiredEdit(e,t){const n=e.prop;t||(t=store$1.get("_list_code"));let o=!1;const i=store$1.get(t);if(i&&i.options){const l=i.options.validateRules;if(l){const f=l.filter(v=>v.name&&(v.name===n||v.name==="all_fields")&&v.canEdit!==void 0&&v.canEdit===!0);f&&f.length>0&&(o=!0)}else if(e.validations){const v=JSON.parse(e.validations).filter(_=>_.required===!0);v&&v.length>0&&(o=!0)}}return o}function isRowCanUpdate(e,t){let n=!0;const o=e;return o&&o.canUpdate!==void 0&&o.canUpdate===!1&&t!==void 0&&o.updateRowIndexes&&o.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 o=t.split(".");if(o.length===1){n!==void 0?e[t]=n:e[t]=null;return}let i=e;for(let l=0;l<o.length-1;l++)i[o[l]]===void 0&&(i[o[l]]={}),i=i[o[l]];n!==void 0?i[o[o.length-1]]=n:i[o[o.length-1]]=null}function addDynamicPropDateSection(e,t,n){const o=t.split(".");if(o.length===1){n!==void 0?e[t]=n:e[t]=[new Date,new Date];return}let i=e;for(let l=0;l<o.length-1;l++)i[o[l]]===void 0&&(i[o[l]]={}),i=i[o[l]];n!==void 0?i[o[o.length-1]]=n:i[o[o.length-1]]=[new Date,new Date]}function getTableHeight$1(e,t,n){let o=120;const i=document.querySelector(".box-card");i&&i!==null&&(o=16*2+20+34+5),isShowMenuRoute()===!0&&(o=o+50),document.querySelector(".el-tabs__content ."+t)&&(o=o+80),n==null||n===""?n=window.innerHeight:o=0;let f=n-o;return e&&(f=n-e.$el.offsetTop-o),f}function getExtraParam(e,t){const n={searchParam:e};if(n.withDataPermission=t.options.isWithDataPermission,n.isWorkflowEntity=t.options.isWorkflowEntity,t.options.extraParam)for(const o in t.options.extraParam)n[o]=t.options.extraParam[o];return n}function analysisFileSetObj(e,t){let n="",o="";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&&(o=e.serverNameData.dbName):e.serverNameData.name&&(o=e.serverNameData.name))),{showName:n,serverPath:o}}function otherFilesToStandard(e,t,n,o){const i=[];if(n){if(n&&n.length>0)for(var l=0;l<n.length;l++){const v=n[l],_=packageFile(v[t.showName],v[t.serverPath]);i.push(_)}}else if(o){const v=o.showName,_=o.serverPath;if(v&&_){const C=v.split(","),x=_.split(",");for(var f=0;f<C.length;f++){const V=packageFile(C[f],x[f]);i.push(V)}}}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 o=getToken();let i=window.$vueApp.config.globalProperties.baseURL+"/common/super-form/downloads?jwt="+o;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(i=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/downloads?jwt="+o);const l=i+"&showName="+encodeURI(n.showName)+"&serverPath="+n.serverPath;return n.src=l,n}function getFileList(e,t,n){let o=[];if(t.fileSet&&t.fileSet!==""&&(t.componentType==="annex"||t.componentType==="multipartUpload")){const i=JSON.parse(t.fileSet),l=analysisFileSetObj(i,n);if(i&&i.multiple)if(i.childAnnexDataTableCode){const f=e[t.prop];o=otherFilesToStandard(i,l,f,null)}else{const f={showName:getEntityFieldValue(e,l.showName),serverPath:getEntityFieldValue(e,l.serverPath)};o=otherFilesToStandard(i,l,null,f)}else{const f=getEntityFieldValue(e,l.showName),v=getEntityFieldValue(e,l.serverPath);o.push(packageFile(f,v))}}return o}function getDynamicDataSourceOptions(e,t,n){let o;n&&(console.log("getDynamicDataSourceOptions--additionalParamMap=",n),n&&typeof n=="object"?o=JSON.stringify(n):n&&n!==""&&(o=n));const i={isSql:t,additionalParameter:o};if(e.valueSetOptions){const l=JSON.parse(e.valueSetOptions);l&&l.valueSetOptions&&(i.valueSetOptions=l.valueSetOptions),l.dynamicDataSourceCode&&l.dynamicDataSourceCode!==""&&(i.dynamicDataSourceCode=l.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,o,i){let l,f,v,_,C,x;n&&(l=n.searchText,l==null&&(l=""),typeof n.watchAttrValue=="array"?f=n.watchAttrValue.join(","):f=n.watchAttrValue,f==null&&(f=""),v=n.parent,_=n._listCode,C=n._formCode,x=n._tableName);const V={searchText:l,watchAttrValue:f,parent:v};if(o&&o!==""&&(V.additionalParamMap=JSON.parse(o)),V.additionalParamMap===void 0&&(V.additionalParamMap={}),this.listToolbarFormData)for(const I in this.listToolbarFormData){const D=this.listToolbarFormData[I];if(D&&I){let F=D;Array.isArray(D)&&(F=D.join(",")),V.additionalParamMap[I]=F}}return _&&(V.additionalParamMap._listCode=_),C&&(V.additionalParamMap._formCode=C),x&&(V.additionalParamMap._tableName=x),t&&t!==null&&(V.entity=t),i||(i=window.$vueApp.config.globalProperties.baseURL),new Promise((I,D)=>{window.$vueApp.config.globalProperties.systemCode!==void 0&&window.$vueApp.config.globalProperties.systemCode==="agilebuilder"?I():this.$http.post(i+"/common/dynamic-data-source/"+e,V).then(F=>{F.backendUrl?this.$http.post(F.backendUrl+"/common/dynamic-data-source/"+e,V).then(U=>{I(U)}).catch(U=>{D(U)}):I(F)}).catch(F=>{D(F)})})}},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(o=>o[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 o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(i){i(n)}),(o=e.get("*"))&&o.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$1a={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(l,f){this.watchAttrValueChange(l),this.optionItems.filter(_=>_[this.valueAttribute]===l)||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(o=>{n[this.valueAttribute]===o&&(t=t+n._label_+",")})}),t=t.slice(0,t.length-1)):(this.optionItems.forEach(n=>{e.forEach(o=>{n[this.valueAttribute]===o&&(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,o)=>{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 l=0;l<this.options.valueSetOptions.length;l++){const f=this.options.valueSetOptions[l];if(i.valueAttribute===f.columnName){if(this.markValue){const v=JSON.parse(this.markValue);if(v&&v[f.valueColumn.dbColumnName]){let _=(v[f.valueColumn.dbColumnName]+"").split(",");this.column.componentType==="select"&&(_=_[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=>{o(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 o=this.entity[this.watchAttr];o!=null&&(Object.prototype.toString.apply(o)==="[object Array]"?n.watchAttrValue=o.join(","):n.watchAttrValue=o+"")}this.parent&&(n.parent=this.parent),this.loading=!0,this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,n).then(o=>{this.loading=!1}).catch(o=>{console.log(o),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 o;this.optionItems&&n&&(o=this.getTargetColumnValue(e,n));let i=null;const l=t.valueColumn;l&&(i=l.name,this.isSql===!0&&(i=l.dbColumnName,i=getPropNameWhenJoinTable(i,this.isJoinTable,this.tableName))),this.entity&&i&&i!==null&&i!==""&&setEntityFieldValue(this.entity,i,o);const f=this.getSelectedOptionItem(e);this.$emit("set-value",{value:o,sourceColumnName:n,targetColumnName:i,options:this.optionItems,valueAttribute:this.valueAttribute,selectedItem:f})}))},setColumnValue(e,t,n){let o=null;const i=n.valueColumn;i&&(o=i.name,this.isSql===!0&&(o=i.dbColumnName,o=getPropNameWhenJoinTable(o,this.isJoinTable,this.tableName))),this.entity&&o&&o!==null&&o!==""&&setEntityFieldValue(this.entity,o,t),this.$emit("set-value",{value:t,sourceColumnName:e,targetColumnName:o,options:this.optionItems,valueAttribute:this.valueAttribute})},setColumnValueWhenMulti(e){let t=!1,n;if(this.valueSetOptions.forEach(o=>{const i=o.columnName;if(i===this.valueAttribute){let l;if(this.optionItems&&i&&(l=this.getTargetColumnValue(e,i)),this.setColumnValue(i,l,o),this.lastValues.length<e.length)t=!0;else if(this.lastValues.length>e.length){t=!1;const f=[...this.lastValues,...e],v=new Set(f),_=Array.from(v),C=[..._.filter(x=>!this.lastValues.includes(x)),..._.filter(x=>!e.includes(x))];C&&C.length>0&&(n=C[0])}this.lastValues=JSON.parse(JSON.stringify(e))}}),t){const i=e[e.length-1],l=this.optionItems.filter(f=>f[this.valueAttribute]===i);l&&l.length>0&&this.setTagValue(null,!1,l[0])}else this.setTagValue(n,!0)},setTagValue(e,t,n){this.valueSetOptions&&this.valueSetOptions.length>0&&this.valueSetOptions.forEach(o=>{const i=o.columnName;if(i!==this.valueAttribute){let l=null;const f=o.valueColumn;f&&(l=f.name,this.isSql===!0&&(l=f.dbColumnName,l=getPropNameWhenJoinTable(l,this.isJoinTable,this.tableName)));let v;if(l){const _=getEntityFieldValue(this.entity,l);if(t){const C=this.value.indexOf(e);if(_!=null&&_!==""){const x=_.split(",");x.splice(C,1),v=x.join(",")}}else{let C;n&&(C=n[i]),_!=null&&_!==""?v=_+","+C:v=C}}this.entity&&l&&l!==null&&l!==""&&setEntityFieldValue(this.entity,l,v),this.$emit("set-value",{value:v,sourceColumnName:i,targetColumnName:l,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 o=0;e.forEach(i=>{const l=this.optionItems.filter(f=>f[this.valueAttribute]===i);l&&l.length>0&&(n+=l[0][t],o<e.length-1&&(n+=","),o++)})}else{const o=this.optionItems.filter(i=>i[this.valueAttribute]===e);o&&o.length>0&&(n=o[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$V={class:"select-top-span"},_hoisted_2$B={style:{display:"flex"}},_hoisted_3$q={style:{color:"#8492a6","font-size":"13px","margin-left":"30px"}},_hoisted_4$i={style:{float:"left"}},_hoisted_5$e={style:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"30px"}};function _sfc_render$W(e,t,n,o,i,l){const f=Vue.resolveComponent("el-option"),v=Vue.resolveComponent("el-select");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$V,[Vue.createVNode(v,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":l.remoteMethod,"reserve-keyword":!0,size:n.size,style:n.fullWidth?{width:"100%",height:"100%"}:{},title:l.getClassOptionTitle(n.value),"value-key":i.valueAttribute,"default-first-option":""},i.myProps,{onBlur:t[0]||(t[0]=_=>l.blurEvent(_)),onChange:l.changeEvent,onClear:e.clear,onFocus:e.focus,onVisibleChange:e.visibleChange,onRemoveTag:t[1]||(t[1]=_=>e.removeTag(i.remote,_))}),{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,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,title:_._label_+_._description_,value:_[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$B,[Vue.createElementVNode("span",null,Vue.toDisplayString(_._label_),1),Vue.createElementVNode("span",_hoisted_3$q,Vue.toDisplayString(_._description_),1)])]),_:2},1032,["label","title","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,title:_._label_+_._description_,value:_[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_4$i,Vue.toDisplayString(_._label_),1),Vue.createElementVNode("span",_hoisted_5$e,Vue.toDisplayString(_._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,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,value:_[i.valueAttribute]},null,8,["label","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,value:_[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$1a,[["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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}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(o,i){return o.__proto__=i,o},_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,l,f){var v=[null];v.push.apply(v,l);var _=Function.bind.apply(i,v),C=new _;return f&&_setPrototypeOf(C,f.prototype),C},_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(o){if(o===null||!_isNativeFunction(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,i)}function i(){return _construct(o,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,o)},_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(o){return typeof o=="string"})&&console.warn(t,n)});function convertFieldsError(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function format(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var f=e.replace(formatRegExp,function(v){if(v==="%%")return"%";if(i>=l)return v;switch(v){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 v}});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 o=[],i=0,l=e.length;function f(v){o.push.apply(o,v||[]),i++,i===l&&n(o)}e.forEach(function(v){t(v,f)})}function asyncSerialArray(e,t,n){var o=0,i=e.length;function l(f){if(f&&f.length){n(f);return}var v=o;o=o+1,v<i?t(e[v],l):n([])}l([])}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,o){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=o,i}return t}(_wrapNativeSuper(Error));function asyncMap(e,t,n,o,i){if(t.first){var l=new Promise(function(I,D){var F=function(G){return o(G),G.length?D(new AsyncValidationError(G,convertFieldsError(G))):I(i)},U=flattenObjArr(e);asyncSerialArray(U,n,F)});return l.catch(function(I){return I}),l}var f=t.firstFields===!0?Object.keys(e):t.firstFields||[],v=Object.keys(e),_=v.length,C=0,x=[],V=new Promise(function(I,D){var F=function(X){if(x.push.apply(x,X),C++,C===_)return o(x),x.length?D(new AsyncValidationError(x,convertFieldsError(x))):I(i)};v.length||(o(x),I(i)),v.forEach(function(U){var X=e[U];f.indexOf(U)!==-1?asyncSerialArray(X,n,F):asyncParallelArray(X,n,F)})});return V.catch(function(I){return I}),V}function isErrorObj(e){return!!(e&&e.message!==void 0)}function getValue$1(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function complementError(e,t){return function(n){var o;return e.fullFields?o=getValue$1(t,e.fullFields):o=t[n.field||e.fullField],isErrorObj(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function deepMerge(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=_extends$1({},e[n],o):e[n]=o}}return e}var required$1=function e(t,n,o,i,l,f){t.required&&(!o.hasOwnProperty(t.field)||isEmptyValue(n,f||t.type))&&i.push(format(l.messages.required,t.fullField))},whitespace=function e(t,n,o,i,l){(/^\s+$/.test(n)||n==="")&&i.push(format(l.messages.whitespace,t.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var e="[a-fA-F\\d:]",t=function(ue){return ue&&ue.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}",o="[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("."),o=n.length-1;let i=e,l=!1;for(let f=0;f<o;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]})),l=!0;break}i=i[n[f]]}l||(i[n[o]]=e[t],delete e[t]),isObject$4(i[n[o]])&&handleFlatJson(i[n[o]])}return e}function getLocaleMessages(e,t){const{messages:n,__i18n:o,messageResolver:i,flatJson:l}=t,f=isPlainObject(n)?n:isArray$2(o)?{}:{[e]:{}};if(isArray$2(o)&&o.forEach(v=>{if("locale"in v&&"resource"in v){const{locale:_,resource:C}=v;_?(f[_]=f[_]||{},deepCopy(C,f[_])):deepCopy(C,f)}else isString$3(v)&&deepCopy(JSON.parse(v),f)}),i==null&&l)for(const v in f)hasOwn$1(f,v)&&handleFlatJson(f[v]);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 o=isObject$4(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=getLocaleMessages(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const i=Object.keys(o);i.length&&i.forEach(l=>{e.mergeLocaleMessage(l,o[l])});{if(isObject$4(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(f=>{e.mergeDateTimeFormat(f,t.datetimeFormats[f])})}if(isObject$4(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.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,o,i)=>e(n,o,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:o}=e,i=n===void 0,l=e.flatJson;let f=isBoolean(e.inheritLocale)?e.inheritLocale:!0;const v=Vue.ref(n&&f?n.locale.value:isString$3(e.locale)?e.locale:DEFAULT_LOCALE),_=Vue.ref(n&&f?n.fallbackLocale.value:isString$3(e.fallbackLocale)||isArray$2(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:v.value),C=Vue.ref(getLocaleMessages(v.value,e)),x=Vue.ref(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[v.value]:{}}),V=Vue.ref(isPlainObject(e.numberFormats)?e.numberFormats:{[v.value]:{}});let I=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,F=n?n.fallbackRoot:isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,U=!!e.fallbackFormat,X=isFunction$2(e.missing)?e.missing:null,G=isFunction$2(e.missing)?defineCoreMissingHandler(e.missing):null,R=isFunction$2(e.postTranslation)?e.postTranslation:null,H=n?n.warnHtmlMessage:isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,ue=!!e.escapeParameter;const Ae=n?n.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let ce=e.pluralRules||n&&n.pluralRules,L;L=(()=>{i&&setFallbackContext(null);const Be={version:VERSION$1,locale:v.value,fallbackLocale:_.value,messages:C.value,modifiers:Ae,pluralRules:ce,missing:G===null?void 0:G,missingWarn:I,fallbackWarn:D,fallbackFormat:U,unresolving:!0,postTranslation:R===null?void 0:R,warnHtmlMessage:H,escapeParameter:ue,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Be.datetimeFormats=x.value,Be.numberFormats=V.value,Be.__datetimeFormatters=isPlainObject(L)?L.__datetimeFormatters:void 0,Be.__numberFormatters=isPlainObject(L)?L.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Be.__v_emitter=isPlainObject(L)?L.__v_emitter:void 0);const at=createCoreContext(Be);return i&&setFallbackContext(at),at})(),updateFallbackLocale(L,v.value,_.value);function tt(){return[v.value,_.value,C.value,x.value,V.value]}const de=Vue.computed({get:()=>v.value,set:Be=>{v.value=Be,L.locale=v.value}}),re=Vue.computed({get:()=>_.value,set:Be=>{_.value=Be,L.fallbackLocale=_.value,updateFallbackLocale(L,v.value,Be)}}),Ke=Vue.computed(()=>C.value),et=Vue.computed(()=>x.value),Ot=Vue.computed(()=>V.value);function Ze(){return isFunction$2(R)?R:null}function st(Be){R=Be,L.postTranslation=Be}function $(){return X}function De(Be){Be!==null&&(G=defineCoreMissingHandler(Be)),X=Be,L.missing=G}function Re(Be,at){return Be!=="translate"||!at.resolvedMessage}const pt=(Be,at,qt,ln,rr,xr)=>{tt();let vn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=n?getFallbackContext():void 0),vn=Be(L)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(L.fallbackContext=void 0)}if(qt!=="translate exists"&&isNumber$1(vn)&&vn===NOT_REOSLVED||qt==="translate exists"&&!vn){const[Yt,er]=at();if(process.env.NODE_ENV!=="production"&&n&&isString$3(Yt)&&Re(qt,er)&&(F&&(isTranslateFallbackWarn(D,Yt)||isTranslateMissingWarn(I,Yt))&&warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:Yt,type:qt})),process.env.NODE_ENV!=="production")){const{__v_emitter:Cr}=L;Cr&&F&&Cr.emit("fallback",{type:qt,key:Yt,to:"global",groupId:`${qt}:${Yt}`})}return n&&F?ln(n):rr(Yt)}else{if(xr(vn))return vn;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function hn(...Be){return pt(at=>Reflect.apply(translate$1,null,[at,...Be]),()=>parseTranslateArgs(...Be),"translate",at=>Reflect.apply(at.t,at,[...Be]),at=>at,at=>isString$3(at))}function St(...Be){const[at,qt,ln]=Be;if(ln&&!isObject$4(ln))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return hn(at,qt,assign$2({resolvedMessage:!0},ln||{}))}function $e(...Be){return pt(at=>Reflect.apply(datetime,null,[at,...Be]),()=>parseDateTimeArgs(...Be),"datetime format",at=>Reflect.apply(at.d,at,[...Be]),()=>MISSING_RESOLVE_VALUE,at=>isString$3(at))}function dt(...Be){return pt(at=>Reflect.apply(number$1,null,[at,...Be]),()=>parseNumberArgs(...Be),"number format",at=>Reflect.apply(at.n,at,[...Be]),()=>MISSING_RESOLVE_VALUE,at=>isString$3(at))}function Mt(Be){return Be.map(at=>isString$3(at)||isNumber$1(at)||isBoolean(at)?createTextNode(String(at)):at)}const ze={normalize:Mt,interpolate:Be=>Be,type:"vnode"};function mt(...Be){return pt(at=>{let qt;const ln=at;try{ln.processor=ze,qt=Reflect.apply(translate$1,null,[ln,...Be])}finally{ln.processor=null}return qt},()=>parseTranslateArgs(...Be),"translate",at=>at[TranslateVNodeSymbol](...Be),at=>[createTextNode(at)],at=>isArray$2(at))}function Ut(...Be){return pt(at=>Reflect.apply(number$1,null,[at,...Be]),()=>parseNumberArgs(...Be),"number format",at=>at[NumberPartsSymbol](...Be),NOOP_RETURN_ARRAY,at=>isString$3(at)||isArray$2(at))}function ht(...Be){return pt(at=>Reflect.apply(datetime,null,[at,...Be]),()=>parseDateTimeArgs(...Be),"datetime format",at=>at[DatetimePartsSymbol](...Be),NOOP_RETURN_ARRAY,at=>isString$3(at)||isArray$2(at))}function ie(Be){ce=Be,L.pluralRules=ce}function ke(Be,at){return pt(()=>{if(!Be)return!1;const qt=isString$3(at)?at:v.value,ln=le(qt),rr=L.messageResolver(ln,Be);return isMessageAST(rr)||isMessageFunction(rr)||isString$3(rr)},()=>[Be],"translate exists",qt=>Reflect.apply(qt.te,qt,[Be,at]),NOOP_RETURN_FALSE,qt=>isBoolean(qt))}function q(Be){let at=null;const qt=fallbackWithLocaleChain(L,_.value,v.value);for(let ln=0;ln<qt.length;ln++){const rr=C.value[qt[ln]]||{},xr=L.messageResolver(rr,Be);if(xr!=null){at=xr;break}}return at}function ee(Be){const at=q(Be);return at??(n?n.tm(Be)||{}:{})}function le(Be){return C.value[Be]||{}}function nt(Be,at){if(l){const qt={[Be]:at};for(const ln in qt)hasOwn$1(qt,ln)&&handleFlatJson(qt[ln]);at=qt[Be]}C.value[Be]=at,L.messages=C.value}function zt(Be,at){C.value[Be]=C.value[Be]||{};const qt={[Be]:at};for(const ln in qt)hasOwn$1(qt,ln)&&handleFlatJson(qt[ln]);at=qt[Be],deepCopy(at,C.value[Be]),L.messages=C.value}function Dt(Be){return x.value[Be]||{}}function jn(Be,at){x.value[Be]=at,L.datetimeFormats=x.value,clearDateTimeFormat(L,Be,at)}function Fn(Be,at){x.value[Be]=assign$2(x.value[Be]||{},at),L.datetimeFormats=x.value,clearDateTimeFormat(L,Be,at)}function Bt(Be){return V.value[Be]||{}}function mn(Be,at){V.value[Be]=at,L.numberFormats=V.value,clearNumberFormat(L,Be,at)}function Gn(Be,at){V.value[Be]=assign$2(V.value[Be]||{},at),L.numberFormats=V.value,clearNumberFormat(L,Be,at)}composerID++,n&&inBrowser&&(Vue.watch(n.locale,Be=>{f&&(v.value=Be,L.locale=Be,updateFallbackLocale(L,v.value,_.value))}),Vue.watch(n.fallbackLocale,Be=>{f&&(_.value=Be,L.fallbackLocale=Be,updateFallbackLocale(L,v.value,_.value))}));const xt={id:composerID,locale:de,fallbackLocale:re,get inheritLocale(){return f},set inheritLocale(Be){f=Be,Be&&n&&(v.value=n.locale.value,_.value=n.fallbackLocale.value,updateFallbackLocale(L,v.value,_.value))},get availableLocales(){return Object.keys(C.value).sort()},messages:Ke,get modifiers(){return Ae},get pluralRules(){return ce||{}},get isGlobal(){return i},get missingWarn(){return I},set missingWarn(Be){I=Be,L.missingWarn=I},get fallbackWarn(){return D},set fallbackWarn(Be){D=Be,L.fallbackWarn=D},get fallbackRoot(){return F},set fallbackRoot(Be){F=Be},get fallbackFormat(){return U},set fallbackFormat(Be){U=Be,L.fallbackFormat=U},get warnHtmlMessage(){return H},set warnHtmlMessage(Be){H=Be,L.warnHtmlMessage=Be},get escapeParameter(){return ue},set escapeParameter(Be){ue=Be,L.escapeParameter=Be},t:hn,getLocaleMessage:le,setLocaleMessage:nt,mergeLocaleMessage:zt,getPostTranslationHandler:Ze,setPostTranslationHandler:st,getMissingHandler:$,setMissingHandler:De,[SetPluralRulesSymbol]:ie};return xt.datetimeFormats=et,xt.numberFormats=Ot,xt.rt=St,xt.te=ke,xt.tm=ee,xt.d=$e,xt.n=dt,xt.getDateTimeFormat=Dt,xt.setDateTimeFormat=jn,xt.mergeDateTimeFormat=Fn,xt.getNumberFormat=Bt,xt.setNumberFormat=mn,xt.mergeNumberFormat=Gn,xt[InejctWithOptionSymbol]=o,xt[TranslateVNodeSymbol]=mt,xt[DatetimePartsSymbol]=ht,xt[NumberPartsSymbol]=Ut,process.env.NODE_ENV!=="production"&&(xt[EnableEmitter]=Be=>{L.__v_emitter=Be},xt[DisableEmitter]=()=>{L.__v_emitter=void 0}),xt}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,o=isFunction$2(e.missing)?e.missing:void 0,i=isBoolean(e.silentTranslationWarn)||isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,l=isBoolean(e.silentFallbackWarn)||isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,f=isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.formatFallbackMessages,_=isPlainObject(e.modifiers)?e.modifiers:{},C=e.pluralizationRules,x=isFunction$2(e.postTranslation)?e.postTranslation:void 0,V=isString$3(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,I=!!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 F=e.messages;if(isPlainObject(e.sharedMessages)){const Ae=e.sharedMessages;F=Object.keys(Ae).reduce((L,Fe)=>{const tt=L[Fe]||(L[Fe]={});return assign$2(tt,Ae[Fe]),L},F||{})}const{__i18n:U,__root:X,__injectWithOption:G}=e,R=e.datetimeFormats,H=e.numberFormats,ue=e.flatJson;return{locale:t,fallbackLocale:n,messages:F,flatJson:ue,datetimeFormats:R,numberFormats:H,missing:o,missingWarn:i,fallbackWarn:l,fallbackRoot:f,fallbackFormat:v,modifiers:_,pluralRules:C,postTranslation:x,warnHtmlMessage:V,escapeParameter:I,messageResolver:e.messageResolver,inheritLocale:D,__i18n:U,__root:X,__injectWithOption:G}}function createVueI18n(e={},t){{const n=createComposer(convertComposerOptions(e)),{__extender:o}=e,i={id:n.id,get locale(){return n.locale.value},set locale(l){n.locale.value=l},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(l){n.fallbackLocale.value=l},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(l){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(l){n.setMissingHandler(l)},get silentTranslationWarn(){return isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(l){n.missingWarn=isBoolean(l)?!l:l},get silentFallbackWarn(){return isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(l){n.fallbackWarn=isBoolean(l)?!l:l},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(l){n.fallbackFormat=l},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(l){n.setPostTranslationHandler(l)},get sync(){return n.inheritLocale},set sync(l){n.inheritLocale=l},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(l){n.warnHtmlMessage=l!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(l){n.escapeParameter=l},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(l){process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...l){const[f,v,_]=l,C={};let x=null,V=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const I=f;return isString$3(v)?C.locale=v:isArray$2(v)?x=v:isPlainObject(v)&&(V=v),isArray$2(_)?x=_:isPlainObject(_)&&(V=_),Reflect.apply(n.t,n,[I,x||V||{},C])},rt(...l){return Reflect.apply(n.rt,n,[...l])},tc(...l){const[f,v,_]=l,C={plural:1};let x=null,V=null;if(!isString$3(f))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const I=f;return isString$3(v)?C.locale=v:isNumber$1(v)?C.plural=v:isArray$2(v)?x=v:isPlainObject(v)&&(V=v),isString$3(_)?C.locale=_:isArray$2(_)?x=_:isPlainObject(_)&&(V=_),Reflect.apply(n.t,n,[I,x||V||{},C])},te(l,f){return n.te(l,f)},tm(l){return n.tm(l)},getLocaleMessage(l){return n.getLocaleMessage(l)},setLocaleMessage(l,f){n.setLocaleMessage(l,f)},mergeLocaleMessage(l,f){n.mergeLocaleMessage(l,f)},d(...l){return Reflect.apply(n.d,n,[...l])},getDateTimeFormat(l){return n.getDateTimeFormat(l)},setDateTimeFormat(l,f){n.setDateTimeFormat(l,f)},mergeDateTimeFormat(l,f){n.mergeDateTimeFormat(l,f)},n(...l){return Reflect.apply(n.n,n,[...l])},getNumberFormat(l){return n.getNumberFormat(l)},setNumberFormat(l,f){n.setNumberFormat(l,f)},mergeNumberFormat(l,f){n.mergeNumberFormat(l,f)},getChoiceIndex(l,f){return process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=o,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=l=>{const f=n;f[EnableEmitter]&&f[EnableEmitter](l)},i.__disableEmitter=()=>{const l=n;l[DisableEmitter]&&l[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((o,i)=>[...o,...i.type===Vue.Fragment?i.children:[i]],[]):t.reduce((n,o)=>{const i=e[o];return i&&(n[o]=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:o}=t,i=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(n).filter(V=>V!=="_"),f={};e.locale&&(f.locale=e.locale),e.plural!==void 0&&(f.plural=isString$3(e.plural)?+e.plural:e.plural);const v=getInterpolateArg(t,l),_=i[TranslateVNodeSymbol](e.keypath,v,f),C=assign$2({},o),x=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(x,C,_)}}}),Translation=TranslationImpl;function isVNode(e){return isArray$2(e)&&!isString$3(e[0])}function renderFormatter(e,t,n,o){const{slots:i,attrs:l}=t;return()=>{const f={part:!0};let v={};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),v=Object.keys(e.format).reduce((I,D)=>n.includes(D)?assign$2({},I,{[D]:e.format[D]}):I,{}));const _=o(e.value,f,v);let C=[f.key];isArray$2(_)?C=_.map((I,D)=>{const F=i[I.type],U=F?F({[I.type]:I.value,index:D,parts:_}):[I.value];return isVNode(U)&&(U[0].key=`${I.type}-${D}`),U}):isString$3(_)&&(C=[_]);const x=assign$2({},l),V=isString$3(e.tag)||isObject$4(e.tag)?e.tag:getFragmentableTag();return Vue.h(V,x,C)}}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,(...o)=>n[NumberPartsSymbol](...o))}}),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,(...o)=>n[DatetimePartsSymbol](...o))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function vTDirective(e){const t=f=>{const{instance:v,modifiers:_,value:C}=f;if(!v||!v.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const x=getComposer$2(e,v.$);process.env.NODE_ENV!=="production"&&_.preserve&&warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const V=parseValue(C);return[Reflect.apply(x.t,x,[...makeParams(V)]),x]};return{created:(f,v)=>{const[_,C]=t(v);inBrowser&&e.global===C&&(f.__i18nWatcher=Vue.watch(C.locale,()=>{v.instance&&v.instance.$forceUpdate()})),f.__composer=C,f.textContent=_},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:v})=>{if(f.__composer){const _=f.__composer,C=parseValue(v);f.textContent=Reflect.apply(_.t,_,[...makeParams(C)])}},getSSRProps:f=>{const[v]=t(f);return{textContent:v}}}}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:o,choice:i,plural:l}=e,f={},v=o||{};return isString$3(n)&&(f.locale=n),isNumber$1(i)&&(f.plural=i),isNumber$1(l)&&(f.plural=l),[t,v,f]}function apply(e,t,...n){const o=isPlainObject(n[0])?n[0]:{},i=!!o.useI18nComponentName,l=isBoolean(o.globalInstall)?o.globalInstall:!0;process.env.NODE_ENV!=="production"&&l&&i&&warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),l&&([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,o)=>{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:v})=>{updateComponentTreeTags(f,v,t)}),i.on.inspectComponent(({componentInstance:f,instanceData:v})=>{f.vnode.el&&f.vnode.el.__VUE_I18N__&&v&&(t.mode==="legacy"?f.vnode.el.__VUE_I18N__!==t.global.__composer&&inspectComposer(v,f.vnode.el.__VUE_I18N__):inspectComposer(v,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 l=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(!l.has(f.app)){const[v]=await i.getComponentInstances(f.app);l.set(f.app,v)}i.highlightElement(l.get(f.app))}else{const v=getComponentInstance(f.nodeId,t);v&&i.highlightElement(v)}}),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),o(!1)}})}function getI18nScopeLable(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function updateComponentTreeTags(e,t,n){const o=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==o){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 o=e[n];isFunction$2(o)&&"source"in o?t[n]=getMessageFunctionDetails(o):isMessageAST(o)&&o.loc&&o.loc.source?t[n]=o.loc.source:isObject$4(o)?t[n]=getLocaleMessageValue(o):t[n]=o}),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[o,i]of t.__instances){const l=t.mode==="composition"?i:i.__composer;n!==l&&e.rootNodes.push({id:l.id.toString(),label:`${getI18nScopeLable(o)} Scope`})}}function getComponentInstance(e,t){let n=null;if(e!=="global"){for(const[o,i]of t.__instances.entries())if(i.id.toString()===e){n=o;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(o=>o.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",o=[{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]=o;const i="Locale messages info",l=[{type:i,key:"messages",editable:!1,value:getLocaleMessageValue(e.messages.value)}];t[i]=l;{const f="Datetime formats info",v=[{type:f,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[f]=v;const _="Datetime formats info",C=[{type:_,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[_]=C}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[o]=e.path;o==="locale"&&isString$3(e.state.value)?n.locale.value=e.state.value:o==="fallbackLocale"&&(isString$3(e.state.value)||isArray$2(e.state.value)||isObject$4(e.state.value))?n.fallbackLocale.value=e.state.value:o==="inheritLocale"&&isBoolean(e.state.value)&&(n.inheritLocale=e.state.value)}}function defineMixin(e,t,n){return{beforeCreate(){const o=Vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const l=i.i18n;if(i.__i18n&&(l.__i18n=i.__i18n),l.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,l);else{l.__injectWithOption=!0,l.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(l);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 l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&adjustI18nResources(t,i,i),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,f)=>this.$i18n.te(l,f),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),n.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const o=this.$i18n;this.$el.__VUE_I18N__=o.__composer;const i=this.__v_emitter=createEmitter();o.__enableEmitter&&o.__enableEmitter(i),i.on("*",addTimelineEvent)}},unmounted(){const o=Vue.getCurrentInstance();if(!o)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(o),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(o=>e.mergeLocaleMessage(o,n[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),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__,o=isBoolean(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,l=new Map,[f,v]=createGlobal(e,n),_=makeSymbol(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&warn(getWarnMessage(I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION));function C(I){return l.get(I)||null}function x(I,D){l.set(I,D)}function V(I){l.delete(I)}{const I={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(D,...F){if(process.env.NODE_ENV!=="production"&&(D.__VUE_I18N__=I),D.__VUE_I18N_SYMBOL__=_,D.provide(D.__VUE_I18N_SYMBOL__,I),isPlainObject(F[0])){const G=F[0];I.__composerExtend=G.__composerExtend,I.__vueI18nExtend=G.__vueI18nExtend}let U=null;!n&&o&&(U=injectGlobalFields(D,I.global)),__VUE_I18N_FULL_INSTALL__&&apply(D,I,...F),__VUE_I18N_LEGACY_API__&&n&&D.mixin(defineMixin(v,v.__composer,I));const X=D.unmount;if(D.unmount=()=>{U&&U(),I.dispose(),X()},process.env.NODE_ENV!=="production"){if(!await enableDevTools(D,I))throw createI18nError(I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const R=createEmitter();if(n){const H=v;H.__enableEmitter&&H.__enableEmitter(R)}else{const H=v;H[EnableEmitter]&&H[EnableEmitter](R)}R.on("*",addTimelineEvent)}},get global(){return v},dispose(){f.stop()},__instances:l,__getInstance:C,__setInstance:x,__deleteInstance:V};return I}}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),o=getGlobalComposer(n),i=getComponentOptions(t),l=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,l,o,e)}if(l==="global")return adjustI18nResources(o,e,i),o;if(l==="parent"){let _=getComposer(n,t,e.__useComponent);return _==null&&(process.env.NODE_ENV!=="production"&&warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),_=o),_}const f=n;let v=f.__getInstance(t);if(v==null){const _=assign$2({},e);"__i18n"in i&&(_.__i18n=i.__i18n),o&&(_.__root=o),v=createComposer(_),f.__composerExtend&&(v[DisposeSymbol]=f.__composerExtend(v)),setupLifeCycle(f,t,v),f.__setInstance(t,v)}return v}function createGlobal(e,t,n){const o=Vue.effectScope();{const i=__VUE_I18N_LEGACY_API__&&t?o.run(()=>createVueI18n(e)):o.run(()=>createComposer(e));if(i==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[o,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 o=null;const i=t.root;let l=getParentComponentInstance(t,n);for(;l!=null;){const f=e;if(e.mode==="composition")o=f.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const v=f.__getInstance(l);v!=null&&(o=v.__composer,n&&o&&!o[InejctWithOptionSymbol]&&(o=null))}if(o!=null||i===l)break;l=l.parent}return o}function getParentComponentInstance(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){let o=null;Vue.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,o=createEmitter();const i=n;i[EnableEmitter]&&i[EnableEmitter](o),o.on("*",addTimelineEvent)}},t),Vue.onUnmounted(()=>{const i=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(o&&o.off("*",addTimelineEvent),i[DisableEmitter]&&i[DisableEmitter](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const l=i[DisposeSymbol];l&&(l(),delete i[DisposeSymbol])},t)}function useI18nForLegacy(e,t,n,o={}){const i=t==="local",l=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(o.inheritLocale)?o.inheritLocale:!isString$3(o.locale),v=Vue.ref(!i||f?n.locale.value:isString$3(o.locale)?o.locale:DEFAULT_LOCALE),_=Vue.ref(!i||f?n.fallbackLocale.value:isString$3(o.fallbackLocale)||isArray$2(o.fallbackLocale)||isPlainObject(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:v.value),C=Vue.ref(getLocaleMessages(v.value,o)),x=Vue.ref(isPlainObject(o.datetimeFormats)?o.datetimeFormats:{[v.value]:{}}),V=Vue.ref(isPlainObject(o.numberFormats)?o.numberFormats:{[v.value]:{}}),I=i?n.missingWarn:isBoolean(o.missingWarn)||isRegExp(o.missingWarn)?o.missingWarn:!0,D=i?n.fallbackWarn:isBoolean(o.fallbackWarn)||isRegExp(o.fallbackWarn)?o.fallbackWarn:!0,F=i?n.fallbackRoot:isBoolean(o.fallbackRoot)?o.fallbackRoot:!0,U=!!o.fallbackFormat,X=isFunction$2(o.missing)?o.missing:null,G=isFunction$2(o.postTranslation)?o.postTranslation:null,R=i?n.warnHtmlMessage:isBoolean(o.warnHtmlMessage)?o.warnHtmlMessage:!0,H=!!o.escapeParameter,ue=i?n.modifiers:isPlainObject(o.modifiers)?o.modifiers:{},Ae=o.pluralRules||i&&n.pluralRules;function ce(){return[v.value,_.value,C.value,x.value,V.value]}const L=Vue.computed({get:()=>l.value?l.value.locale.value:v.value,set:ee=>{l.value&&(l.value.locale.value=ee),v.value=ee}}),Fe=Vue.computed({get:()=>l.value?l.value.fallbackLocale.value:_.value,set:ee=>{l.value&&(l.value.fallbackLocale.value=ee),_.value=ee}}),tt=Vue.computed(()=>l.value?l.value.messages.value:C.value),de=Vue.computed(()=>x.value),re=Vue.computed(()=>V.value);function Ke(){return l.value?l.value.getPostTranslationHandler():G}function et(ee){l.value&&l.value.setPostTranslationHandler(ee)}function Ot(){return l.value?l.value.getMissingHandler():X}function Ze(ee){l.value&&l.value.setMissingHandler(ee)}function st(ee){return ce(),ee()}function $(...ee){return l.value?st(()=>Reflect.apply(l.value.t,null,[...ee])):st(()=>"")}function De(...ee){return l.value?Reflect.apply(l.value.rt,null,[...ee]):""}function Re(...ee){return l.value?st(()=>Reflect.apply(l.value.d,null,[...ee])):st(()=>"")}function pt(...ee){return l.value?st(()=>Reflect.apply(l.value.n,null,[...ee])):st(()=>"")}function hn(ee){return l.value?l.value.tm(ee):{}}function St(ee,le){return l.value?l.value.te(ee,le):!1}function $e(ee){return l.value?l.value.getLocaleMessage(ee):{}}function dt(ee,le){l.value&&(l.value.setLocaleMessage(ee,le),C.value[ee]=le)}function Mt(ee,le){l.value&&l.value.mergeLocaleMessage(ee,le)}function ve(ee){return l.value?l.value.getDateTimeFormat(ee):{}}function ze(ee,le){l.value&&(l.value.setDateTimeFormat(ee,le),x.value[ee]=le)}function mt(ee,le){l.value&&l.value.mergeDateTimeFormat(ee,le)}function Ut(ee){return l.value?l.value.getNumberFormat(ee):{}}function ht(ee,le){l.value&&(l.value.setNumberFormat(ee,le),V.value[ee]=le)}function ie(ee,le){l.value&&l.value.mergeNumberFormat(ee,le)}const ke={get id(){return l.value?l.value.id:-1},locale:L,fallbackLocale:Fe,messages:tt,datetimeFormats:de,numberFormats:re,get inheritLocale(){return l.value?l.value.inheritLocale:f},set inheritLocale(ee){l.value&&(l.value.inheritLocale=ee)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(C.value)},get modifiers(){return l.value?l.value.modifiers:ue},get pluralRules(){return l.value?l.value.pluralRules:Ae},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:I},set missingWarn(ee){l.value&&(l.value.missingWarn=ee)},get fallbackWarn(){return l.value?l.value.fallbackWarn:D},set fallbackWarn(ee){l.value&&(l.value.missingWarn=ee)},get fallbackRoot(){return l.value?l.value.fallbackRoot:F},set fallbackRoot(ee){l.value&&(l.value.fallbackRoot=ee)},get fallbackFormat(){return l.value?l.value.fallbackFormat:U},set fallbackFormat(ee){l.value&&(l.value.fallbackFormat=ee)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:R},set warnHtmlMessage(ee){l.value&&(l.value.warnHtmlMessage=ee)},get escapeParameter(){return l.value?l.value.escapeParameter:H},set escapeParameter(ee){l.value&&(l.value.escapeParameter=ee)},t:$,getPostTranslationHandler:Ke,setPostTranslationHandler:et,getMissingHandler:Ot,setMissingHandler:Ze,rt:De,d:Re,n:pt,tm:hn,te:St,getLocaleMessage:$e,setLocaleMessage:dt,mergeLocaleMessage:Mt,getDateTimeFormat:ve,setDateTimeFormat:ze,mergeDateTimeFormat:mt,getNumberFormat:Ut,setNumberFormat:ht,mergeNumberFormat:ie};function q(ee){ee.locale.value=v.value,ee.fallbackLocale.value=_.value,Object.keys(C.value).forEach(le=>{ee.mergeLocaleMessage(le,C.value[le])}),Object.keys(x.value).forEach(le=>{ee.mergeDateTimeFormat(le,x.value[le])}),Object.keys(V.value).forEach(le=>{ee.mergeNumberFormat(le,V.value[le])}),ee.escapeParameter=H,ee.fallbackFormat=U,ee.fallbackRoot=F,ee.fallbackWarn=D,ee.missingWarn=I,ee.warnHtmlMessage=R}return Vue.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ee=l.value=e.proxy.$i18n.__composer;t==="global"?(v.value=ee.locale.value,_.value=ee.fallbackLocale.value,C.value=ee.messages.value,x.value=ee.datetimeFormats.value,V.value=ee.numberFormats.value):i&&q(ee)}),ke}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 l=Object.getOwnPropertyDescriptor(t,i);if(!l)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const f=Vue.isRef(l.value)?{get(){return l.value.value},set(v){l.value.value=v}}:{get(){return l.get&&l.get()}};Object.defineProperty(n,i,f)}),e.config.globalProperties.$i18n=n,globalExportMethods.forEach(i=>{const l=Object.getOwnPropertyDescriptor(t,i);if(!l||!l.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,l)}),()=>{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",allCheck:"Check All",pleaseInputNameOrCode:"Please Input Name Or Code",selectResultInfoHasSelect:"Has select:",selectResultInfo:"{num} departments (including sub departments)",selectResultTitle:"Has Select Result"},departmentUserTree:{pleaseEnterUserInformation:"Please Enter User Information",selectedPeople:"Selected People",searchFieldUserName:"Name",searchFieldLoginName:"Login Name",searchFieldEmail:"Email",searchFieldTelephone:"Telephone",searchFieldJobNumber:"Job Number",searchFieldHonorificName:"Honorific",selectUserResultInfo:"{useNum} Users",selectDeptResultInfo:"{num} departments(including sub departments)"},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:"名称路径",allCheck:"全选",pleaseInputNameOrCode:"请输入名称/编码",selectResultInfoHasSelect:"已选择:",selectResultInfo:"{num}个部门(含子部门)",selectResultTitle:"已选择信息"},departmentUserTree:{pleaseEnterUserInformation:"请输入用户信息",selectedPeople:"已选人员",searchFieldUserName:"姓名",searchFieldLoginName:"登录名",searchFieldEmail:"邮箱",searchFieldTelephone:"手机号",searchFieldJobNumber:"工号",searchFieldHonorificName:"尊称",selectUserResultInfo:"{userNum}个用户",selectDeptResultInfo:"{deptNum}个部门(含子部门)"},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,o){return(t==null||t+""=="")&&(o==null||o+""=="")&&(n==="EQ"||n==="CONTAIN")}}class NumberCalculator extends CalculatorFactory{constructor(t,n,o){if(super(),this.isNotNullValue(t,n))this.result=!0;else if(this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,o))this.result=!0;else if(t==null)this.result=!1;else{const i=+(t+""),l=+(o+"");if(n==="GET")this.result=i>=l;else if(n==="LET")this.result=i<=l;else if(n==="GT")this.result=i>l;else if(n==="LT")this.result=i<l;else if(n==="NET")this.result=i!==l;else if(n==="EQ")this.result=i===l;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+" "+o)}}}class TextCalculator extends CalculatorFactory{constructor(t,n,o){if(super(),this.isNullValue(t,n))this.result=!0;else if(this.isEQEmptyValue(t,n,o))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!==o;else if(n==="EQ")this.result=t===o;else if(n==="NOT_CONTAIN")this.result=!t.includes(o);else if(n==="CONTAIN")this.result=t.includes(o);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+" "+o)}}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,o){const i=getAbstractUserFactory(o);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 o in n)e[o]=n[o]}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,l,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 v="";for(var _ in f)f[_]&&(v+="; "+_,f[_]!==!0&&(v+="="+f[_].split(";")[0]));return document.cookie=i+"="+e.write(l,i)+v}}function o(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var l=document.cookie?document.cookie.split("; "):[],f={},v=0;v<l.length;v++){var _=l[v].split("="),C=_.slice(1).join("=");try{var x=decodeURIComponent(_[0]);if(f[x]=e.read(C,x),i===x)break}catch{}}return i?f[i]:f}}return Object.create({set:n,get:o,remove:function(i,l){n(i,"",assign({},l,{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",themeKey="CURRENT_THEME",allThemeKey="AMB_THEME_INFO";function getToken$1(){let e=isDevpSystem(),t;return e?t=getMyToken():(t=getSessionCache$1(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$1(jwtKey),console.log("authAPI.getToken---getSessionCache=",e)),e}function setToken(e){setCookieCache(jwtKey,e),setSessionCache(jwtKey,e)}function removeToken(){removeCookieCache(jwtKey),removeSessionCache(jwtKey),removeSessionCache(runDevpJwtKey)}function getUsername(){let e=getRunInfoKey(currentUserNameKey),t=getCookieCache(e);return t||(t=getSessionCache$1(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$1(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$1(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$1(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$1(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$1(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$1(allLangKey)),e}function setAllLanguages(e){setCookieCache(allLangKey,e),setSessionCache(allLangKey,e)}function removeAllLanguages(){removeCookieCache(allLangKey),removeSessionCache(allLangKey)}function getTheme(){return localStorage.getItem(themeKey)}function setTheme(e){localStorage.setItem(themeKey,e)}function removeTheme(){localStorage.removeItem(themeKey)}function getAllThemes(){let e=getCookieCache(allThemeKey);const t=window.$vueApp.config.globalProperties.projectModel;return!e&&t&&t==="developing.model"&&(e=getSessionCache$1(allThemeKey)),e}function setAllThemes(e){setCookieCache(allThemeKey,e),setSessionCache(allThemeKey,e)}function removeAllThemes(){removeCookieCache(allThemeKey),removeSessionCache(allThemeKey)}function removePublishControl(){removeCookieCache(versionEnv),removeCookieCache(userVersion)}const authApi={getToken:getToken$1,setToken,removeToken,getUsername,setUsername,removeUsername,getCurrentUser,setCurrentUser,removeCurrentUser,getCookieCache,setCookieCache,removeCookieCache,getSessionCache:getSessionCache$1,setSessionCache,removeSessionCache,getSystemCacheUrlByCode,getSystemCacheUrl,setSystemCacheUrl,removeSystemCacheUrl,getLanguage,setLanguage,removeLanguage,getAllLanguages:getAllLanguages$1,setAllLanguages,removeAllLanguages,getTheme,setTheme,removeTheme,getAllThemes,setAllThemes,removeAllThemes,removePublishControl,isDevpSystem,getRunInfoKey};function getToken(){return authApi.getToken()}function getSessionCache(e){return authApi.getSessionCache(e)}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 o=e.split("/");if(o.length>=3){const i=o[0]+"//"+o[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 o=n;const i=n.split("/");return i.length>=3&&(o=i[0]+"//"+i[2]+"/"),o}}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(){let e=window.$i18n;return e||(e=i18n),window.$locale?i18n.locale=window.$locale:i18n.locale="cn",e.global}function getLanguageWithLocale(){let e=window.$locale;return(!e||e==="zh")&&(e="cn"),getLangByShort(e)}function analysisCondition(e,t,n,o,i,l,f,v){if(e===void 0||e===""||e===null)return!0;(typeof i>"u"||i===null)&&(i=!1);let _={};n&&typeof n=="string"&&n!==""?_=JSON.parse(n):n&&typeof n=="object"&&(_=n);let C={};o&&typeof o=="string"&&o!==""?C=JSON.parse(o):o&&typeof o=="object"&&(C=o);let x=[];return e&&typeof e=="string"&&e!==""?x=JSON.parse(e):e&&Array.isArray(e)&&(x=e),parseCondition(t,x,i,l,_,C,f,v)}function parseCondition(entity,conditionList,isSql,tableName,additionalParamMap,contextParameterMap,parentFormData,pageContext){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,o=t.propDbName;if((!n||n==="")&&(!o||o===""))continue;let i;if(isSql&&o){if(o.indexOf("parent_+_")!==-1?(o=o.replace("parent_+_",""),o=o.split("_+_")[1],i=getValue$2(parentFormData,o,isSql)):i=getValue$2(entity,o,isSql),i==null&&tableName&&o.toLowerCase().startsWith(tableName.toLowerCase()+".")){const F=o.substring(o.indexOf("."));i=getValue$2(entity,F,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),o&&i==null&&(i=getValue$2(entity,o,isSql));const l=t.operator,f=t.propValue,v=t.dataType,_=t.variableIsNull;let C;pageContext?C=getPropValueNew(f,pageContext):C=getPropValue(f,entity,additionalParamMap,contextParameterMap),_&&_==="null"&&(C===void 0||C==="")&&(C=null);let x=executeExpression(i,l,C,v);const V=t.leftBracket,I=t.rightBracket;let D=t.joinSign;if(V&&V!==null&&V!==""&&(conditions=conditions+V,conditions=conditions+" "),_&&_!=="null"&&(C==null||C+""=="")&&(_==="1=1"?x=!0:x=!1),conditions+=x+" ",I&&I!==null&&I!==""&&(conditions=conditions+I,conditions=conditions+" "),e<conditionList.length-1&&D&&D!==null&&D!==""){const F=D.toLowerCase();F==="and"?D=F.replace("and","&&"):F==="or"&&(D=F.replace("or","||")),conditions+=D+" "}}return console.log("parseCondition----conditions=",conditions),conditions?eval("("+conditions+")"):!0}const REPLACE_DOT="__";function getValue$2(e,t,n){let o=null;return e&&e!==null&&t&&t!==null&&(o=getValueByField(e,t),o==null&&n&&(o===void 0||o==null)&&t.indexOf(".")>0&&(t=t.replace(".",REPLACE_DOT),o=getValueByField(e,t))),o}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,o=e;const i=t.split("\\.");for(let l=0;l<i.length;l++){const f=i[l];l===i.length?n=getSubEntityFieldValue(o,f):o=getSubEntityFieldValue(o,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(),o=new Date(t+24*60*60*1e3*(0-(n+6)%7)),i=new Date(t+24*60*60*1e3*(6-(n+6)%7)),l=o.toLocaleDateString()+" "+o.toLocaleTimeString(),f=i.toLocaleDateString()+" "+i.toLocaleTimeString();return console.log(`getCurrentMonth从 ${l} 开始,到 ${f} 结束`),[o,i]}function getCurrentMonth(){const e=new Date,t=e.getFullYear(),n=e.getMonth()+1;e.setDate(1);const o=`${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`,l=new Date(Date.parse(o)),f=new Date(new Date(Date.parse(i)).getTime()-1e3),v=l.toLocaleDateString()+" "+l.toLocaleTimeString(),_=f.toLocaleDateString()+" "+f.toLocaleTimeString();return console.log(`getCurrentMonth从 ${v} 开始,到 ${_} 结束`),[l,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 o;n.getMonth()===11?o=new Date(n.getFullYear()+1,0,0):o=new Date(n.getFullYear(),n.getMonth()+3,0),o=new Date(o.getTime()+24*60*60*1e3-1e3);const i=n.toLocaleDateString()+" "+n.toLocaleTimeString(),l=o.toLocaleDateString()+" "+o.toLocaleTimeString();return console.log(`getCurrentQuarter从 ${i} 开始,到 ${l} 结束`),[n,o]}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 o=t.toLocaleDateString()+" "+t.toLocaleTimeString(),i=n.toLocaleDateString()+" "+n.toLocaleTimeString();return console.log(`getCurrentYear从 ${o} 开始,到 ${i} 结束`),[t,n]}function getLastNDay(e){let t=new Date,n=t.getFullYear(),o=t.getMonth()+1,i=t.getDate(),l=`${n}/${o<10?"0":""}${o}/${i}`;t=new Date(Date.parse(l)),t.setDate(t.getDate()+1),t=new Date(t.getTime()-1e3);let f=new Date;f.setDate(f.getDate()-(e-1));const v=f.getFullYear(),_=f.getMonth()+1,C=f.getDate(),x=`${v}/${_<10?"0":""}${_}/${C}`;f=new Date(Date.parse(x));const V=f.toLocaleDateString()+" "+f.toLocaleTimeString(),I=t.toLocaleDateString()+" "+t.toLocaleTimeString();console.log(`getLastNDay从 ${V} 开始,到 ${I} 结束`),retur[t]}function getPropValue(e,t,n,o,i,l,f){return getPropValueNew(e,{entity:{data:t,context:o,request:n,parent:i,row:l,task:f}})}function getAdditionalParamMap$1(e){if(e&&e.entity){let t=e.entity.page;t||(t={});const n=e.entity.request;return n&&Object.assign(t,n),t}}function getPropValueNew(e,t){let n=null;if(e&&e!==null&&e!==""){const o=t&&t.entity?t.entity.data:null,i=getAdditionalParamMap$1(t),l=t&&t.entity?t.entity.context:null,f=t&&t.entity?t.entity.parent?t.entity.parent:t.entity.data:null,v=t&&t.entity?t.entity.row:null,_=t&&t.entity?t.entity.task:null,C=t&&t.entity?t.entity.system:null;if(e==="null")n=null;else if(e.includes("${context.")||e.includes("${request.")||e.includes("${obj.")||e.includes("${data.")){if(e.includes("${context."))e=e.replace("${context.","").replace("}",""),n=getContextValue(l,e);else if(e.includes("${request.")&&e!=="${request.term}")e=e.replace("${request.","").replace("}",""),i&&i!=null&&Object.keys(i).indexOf(e)>=0&&i[e]&&i[e]!==null?n=i[e]:n=null;else if(e.includes("${obj."))if(o===void 0||o==null)n=null;else{const x=e.replace("${obj.","").replace("}","");n=getEntityFieldValue(o,x)}else if(e.includes("${data."))if(o===void 0||o==null)n=null;else{const x=e.replace("${data.","").replace("}","");n=getEntityFieldValue(o,x)}}else if(e.includes("${parent."))if(f===void 0||f==null)n=null;else{const x=e.replace("${parent.","").replace("}","");n=getEntityFieldValue(f,x)}else if(e.includes("${system."))if(C===void 0||C==null)n=null;else{const x=e.replace("${system.","").replace("}","");n=getEntityFieldValue(C,x)}else if(e.includes("${task."))if(_===void 0||_==null)n=null;else{const x=e.replace("${task.","").replace("}","");n=getEntityFieldValue(_,x)}else if(e.includes("${subObj."))if(v===void 0||v==null)n=null;else{const x=e.replace("${subObj.","").replace("}","");n=getEntityFieldValue(v,x)}else e.includes("${input.")?n=e.replace("${input.","").replace("}",""):e.includes("${fixed.")?n=e.replace("${fixed.","").replace("}",""):n=e}return n}function analysisValue(e,t,n,o,i){if(!e)return;let l="";const f=e.split("-#-#");return f!=null&&f.length>0&&f.forEach(v=>{let _;i?_=getPropValueNew(v,i):_=getPropValue(v,t,n,o),(!_||_===null)&&(_=""),l+=_}),l}function setEntityFieldValue(e,t,n){if(t&&e)if(t&&t.indexOf(".")>0){const o=getParentObjectUtil(t,e);if(o){const i=t.substring(t.lastIndexOf(".")+1);o[i]===void 0?o[t.substring(t.lastIndexOf(".")+1)]=n:o[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),o=t.substring(t.lastIndexOf(".")+1);return n[o]}else return e[t]}function getEntityFieldValue(e,t,n){let o=getEntityFieldValueWithCase(e,t);return o==null&&(o=getEntityFieldValueWithCase(e,t.toLowerCase())),(o===void 0||o===null&&n===void 0)&&(o=getEntityFieldValueWithCase(e,t.toUpperCase())),o}function getEntityFieldValueWithCase(e,t){if(t&&t.indexOf(".")>0){const n=getParentObjectUtil(t,e),o=t.substring(t.lastIndexOf(".")+1);return n[o]}else return e[t]}function getParentObjectUtil(e,t){const n=e.split(".");if(n.length===1)return t;{let o;for(let i=0;i<n.length-1;i++)i===0?o=getParentModelProp(n[i],t):o=getParentModelProp(n[i],o);return o}}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 o="__";e.indexOf(".")>0?e=e.replace(".",o):n&&n!==null&&n!==""&&e.indexOf(n+o)<0&&(e=n+o+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,o=0;o<n;o++)if(e[o].id===t.id)return o===0?(e.shift(),e):o===n-1?(e.pop(),e):(e.splice(o,1),e);return e},storeSeachValue(e,t,n){if(n&&n!==""){var o=e.getObject(t);if(o&&o.length>0){var i=o.filter(this.createFilter(n));if(i.length===0){const f={value:n};o.push(f),e.setObject(t,o)}}else{var l=[];const f={value:n};l.push(f),e.setObject(t,l)}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,o){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 l=0;l<f.length;l++){let v=f[l];if(v.indexOf("obj.")!==-1){if(v=v.replace("${obj.","").replace("}",""),t){let _=t[v];this.childIsObjectProp(v)&&(_=this.childObjectPropOriginalValue(t,v)),i+=_}}else if(v.indexOf("request.")!==-1){if(v=v.replace("${request.","").replace("}",""),o){const _=o[v];_&&(i+=_)}}else if(v.indexOf("input.")!==-1)v=v.replace("${input.","").replace("}",""),i+=v;else if(v.indexOf("context.")!==-1&&(v=v.replace("${context.","").replace("}",""),n)){const _=n[v];_&&(i+=_)}}}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((o,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-users?searchField="+e+"&selectUserInfo="+t+"&separator="+n).then(l=>{o(l)}).catch(l=>{i(l)}):o([]):o([])})}},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(o=>o.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,o)=>{if(t.length===e)n();else{const i=t[e];let l=i;const f="~";i.indexOf(f)>-1&&(l=i.substring(i.indexOf("~")+1)),this.loadDepartment(l).then(()=>{this.loadDepartmentWhenSearch(++e,t)}).catch(v=>{o(v)})}})},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(o=>{this.selectUser(null,o)}),this.isloading=!1)}))}else this.cancelChildCheckedNodes(e)},loadNode(e,t){var n=0;e.level===0?n=0:n=e.data.id;var o=[];this.$refs.deparmentTree&&(o=this.$refs.deparmentTree.getCheckedKeys()),this.initLoadDepartment(n,e,t,o)},initLoadDepartment(e,t,n,o){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 l=i[0].data;i[0].disable=!0,this.tenantInfo=JSON.parse(l),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)):o&&o.indexOf(e)>-1&&this.checkedNodeAndChildren(t.data)})},loadDepartment(e,t,n){return new Promise((o,i)=>{this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/departments/"+e).then(l=>{this.$refs.deparmentTree.updateKeyChildren(e,l),this.$refs.deparmentTree.store.nodesMap[e]&&(this.$refs.deparmentTree.store.nodesMap[e].expanded=!0),o()}).catch(l=>{console.log("error",l)})})},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((o,i)=>{e?t?this.$http.get(window.$vueApp.config.globalProperties.baseAPI+"/component/organization-trees/select-departments?searchField="+e+"&selectDeptInfo="+t+"&separator="+n).then(l=>{o(l)}).catch(l=>{i(l)}):o([]):o([])})},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(o=>{e(o)}).catch(o=>{t(o)}):e(n)})}},searchResult_vue_vue_type_style_index_0_lang$3="",_sfc_main$1j={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$10={style:{height:"100%"}},_hoisted_2$F=["title"],_hoisted_3$t=["title"],_hoisted_4$k=["title"],_hoisted_5$g={class:"roleQuery_center_area",style:{height:"395px"}},_hoisted_6$d={class:"roleQuery_notAvailable",style:{width:"120px",height:"120px"}},_hoisted_7$8={class:"roleQuery_notAvailable_text"};function _sfc_render$13(e,t,n,o,i,l){const f=Vue.resolveComponent("el-radio"),v=Vue.resolveComponent("el-table-column"),_=Vue.resolveComponent("el-button"),C=Vue.resolveComponent("el-table");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$10,[Vue.createVNode(C,{ref:"superGrid",data:n.gridData,"max-height":i.myHeight,"row-class-name":l.tableRowClassName,border:"",fit:"","row-key":"id",onRowClick:l.rowClick,onRowDblclick:l.rowDblclick},{empty:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_5$g,[Vue.createElementVNode("div",_hoisted_6$d,[Vue.createElementVNode("span",_hoisted_7$8,Vue.toDisplayString(e.$t("imatrixUIPromptMessage.NoContent")),1)])])]),default:Vue.withCtx(()=>[n.multiple===!1?(Vue.openBlock(),Vue.createBlock(v,{key:0,width:"60"},{default:Vue.withCtx(x=>[Vue.createVNode(f,{modelValue:i.singleUserIndex,"onUpdate:modelValue":t[0]||(t[0]=V=>i.singleUserIndex=V),label:x.$index,onChange:l.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(v,{key:1,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(_,{disabled:l.isDisable(x.row),icon:i.ElIconPlus,circle:"",size:"default",type:"primary",onClick:V=>l.addUser(x.$index,x.row)},null,8,["disabled","icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),n.multiple?(Vue.openBlock(),Vue.createBlock(v,{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(v,{key:3,label:e.$t("imatrixUIPublicModel.edit"),align:"center",fixed:"right",width:"60px"},{default:Vue.withCtx(x=>[Vue.createElementVNode("div",null,[Vue.createVNode(_,{icon:i.ElIconDelete,circle:"",size:"default",type:"danger",onClick:V=>l.removeUser(x.$index,x.row)},null,8,["icon","onClick"])])]),_:1},8,["label"])):Vue.createCommentVNode("",!0),Vue.createVNode(v,{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$F)]),_:1},8,["label"]),Vue.createVNode(v,{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$t)]),_:1},8,["label"]),Vue.createVNode(v,{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$k)]),_:1},8,["label"])]),_:1},8,["data","max-height","row-class-name","onRowClick","onRowDblclick"])])}const UserResult$1=_export_sfc$1(_sfc_main$1j,[["render",_sfc_render$13]]),memoryCacheUtils={memorySearch(e,t){var n=this.memoryCacheData,o=n;setTimeout(()=>{t(o)},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),o=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,l=e.mainDepartmentName===void 0||e.mainDepartmentName===null||e.mainDepartmentName==="undefined"?"":e.mainDepartmentName;const f=o+"("+i+"/"+l+")";var v=-1;n&&n.length>0?v=n.findIndex(_=>_.loginName===e.loginName):n=[],e.value=f,v<0?(n.length===10&&n.splice(10-1,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n)):(n.splice(v,1),n.unshift(e),localStorage$1.setObject(this.memoryCacheKey,n))},setDepartmentMemoryCacheData(e){var n=localStorage$1.getObject(this.memoryCacheKey),o=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 l=o+"("+i+")";var f=-1;n&&n.length>0?f=n.findIndex(v=>v.code===e.code):n=[],e.value=l,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$1i={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(o=>{this.checkedNodeAndChildren(o)})},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(o=>{this.$refs.deparmentTree.setChecked(o.id,!1),this.cancelChildCheckedNodes(o)})},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 o=JSON.parse(e.data);this.selectUser(null,o)}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 o=this.selectResult[n];t.ids.push(o.id),t.codes.push(o.code),o.enName?t.enNames.push(o.enName):t.enNames.push(""),o.department?t.departments.push(o.department):t.departments.push(o);const i=o.showName;t.names.push(i),t.zhNames.push(o.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 o=this.$refs.deparmentTree.getCheckedKeys().filter(this.filterDeptNode(t));o.length>0&&o.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$$={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$E=["title"],_hoisted_3$s={key:1,style:{height:"100%",overflow:"hidden"}},_hoisted_4$j={style:{"text-align":"left","font-size":"16px"}},_hoisted_5$f={style:"padding-top: 5px;height:90%;overflow: hidden;"};function _sfc_render$12(e,t,n,o,i,l){const f=Vue.resolveComponent("el-button"),v=Vue.resolveComponent("el-autocomplete"),_=Vue.resolveComponent("el-header"),C=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),V=Vue.resolveComponent("Calendar"),I=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),F=Vue.resolveComponent("user-result"),U=Vue.resolveComponent("el-main"),X=Vue.resolveComponent("el-container"),G=Vue.resolveComponent("el-aside"),R=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(X,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(G,{width:"350px"},{default:Vue.withCtx(()=>[Vue.createVNode(X,{style:{height:"390px"}},{default:Vue.withCtx(()=>[Vue.createVNode(_,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(v,{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(U,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$$,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":l.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!0,"check-strictly":"",lazy:"","node-key":"id",onCheck:e.handleCheckNode,onCheckChange:l.handleCheckChange,onNodeExpand:l.handleNodeExpand,onNodeClick:l.handleNodeClick},{default:Vue.withCtx(({node:H,data:ue})=>[Vue.createElementVNode("span",null,[Vue.createVNode(I,null,{default:Vue.withCtx(()=>[H.data.id===-1||H.data.branch?(Vue.openBlock(),Vue.createBlock(C,{key:0})):H.data.id===-2||H.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(V,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{title:H.label},Vue.toDisplayString(H.label),9,_hoisted_2$E)])]),_:1},8,["filter-node-method","load","props","onCheck","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$s,[Vue.createVNode(F,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!0,"select-result":i.selectResult,onAddUser:l.selectUser},null,8,["grid-data","height","select-result","onAddUser"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}),Vue.createVNode(X,null,{default:Vue.withCtx(()=>[Vue.createVNode(U,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_4$j,Vue.toDisplayString(e.$t("departmentTreeInline.selectedDept"))+": ",1),Vue.createElementVNode("div",_hoisted_5$f,[Vue.withDirectives(Vue.createVNode(F,{"grid-data":i.selectResult,height:n.height,"is-search-result":!1,multiple:!0,onRemoveUser:l.removeUser},null,8,["grid-data","height","onRemoveUser"]),[[R,i.isloading]])])]),_:1})]),_:1})]),_:1})])}const InlineDepartmentMultiTree=_export_sfc$1(_sfc_main$1i,[["render",_sfc_render$12]]),departmentSingleTreeInline_vue_vue_type_style_index_0_lang="",_sfc_main$1h={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$_={key:0,style:{"padding-top":"5px",overflow:"auto",width:"100%",display:"inline-block !important"}},_hoisted_2$D=["title"],_hoisted_3$r={key:1,style:{height:"100%",overflow:"hidden"}};function _sfc_render$11(e,t,n,o,i,l){const f=Vue.resolveComponent("el-button"),v=Vue.resolveComponent("el-autocomplete"),_=Vue.resolveComponent("el-header"),C=Vue.resolveComponent("Menu"),x=Vue.resolveComponent("Tickets"),V=Vue.resolveComponent("Calendar"),I=Vue.resolveComponent("el-icon"),D=Vue.resolveComponent("el-tree"),F=Vue.resolveComponent("user-result"),U=Vue.resolveComponent("el-main"),X=Vue.resolveComponent("el-container");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(X,{style:{height:"395px"}},{default:Vue.withCtx(()=>[Vue.createVNode(_,{style:{"text-align":"right","font-size":"12px",height:"35px"}},{default:Vue.withCtx(()=>[Vue.createVNode(v,{modelValue:i.filterText,"onUpdate:modelValue":t[0]||(t[0]=G=>i.filterText=G),"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(U,{style:{padding:"10px"}},{default:Vue.withCtx(()=>[i.searchValue?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$_,[Vue.createVNode(D,{ref:"deparmentTree","filter-node-method":l.filterNode,load:e.loadNode,props:i.defaultProps,"show-checkbox":!1,"check-strictly":"",lazy:"","node-key":"id",onCheckChange:l.handleCheckChange,onNodeExpand:l.handleNodeExpand,onNodeClick:l.handleNodeClick},{default:Vue.withCtx(({node:G,data:R})=>[Vue.createElementVNode("span",null,[Vue.createVNode(I,null,{default:Vue.withCtx(()=>[G.data.id===-1||G.data.branch?(Vue.openBlock(),Vue.createBlock(C,{key:0})):G.data.id===-2||G.data.id===-3?(Vue.openBlock(),Vue.createBlock(x,{key:1})):(Vue.openBlock(),Vue.createBlock(V,{key:2}))]),_:2},1024),Vue.createElementVNode("span",{class:Vue.normalizeClass(R.nodeType&&R.nodeType==="DEPARTMENT"&&i.searchValue&&R.name.indexOf(i.searchValue)>-1?"searchResult":""),title:G.label},Vue.toDisplayString(G.label),11,_hoisted_2$D)])]),_:1},8,["filter-node-method","load","props","onCheckChange","onNodeExpand","onNodeClick"])])),i.searchValue&&i.searchValue.length>0?(Vue.openBlock(),Vue.createElementBlock("div",_hoisted_3$r,[Vue.createVNode(F,{"grid-data":i.searchResult,height:n.height,"is-search-result":!0,multiple:!1,onResultRowDblclick:l.resultRowDblclick,onSelectResult:l.getSelectUser},null,8,["grid-data","height","onResultRowDblclick","onSelectResult"])])):Vue.createCommentVNode("",!0)]),_:1})]),_:1})])}const InlineDepartmentSingleTree=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$11]]),_sfc_main$1g={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,o,i,l){const f=Vue.resolveComponent("inline-department-multi-tree"),v=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:l.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(v,{key:1,ref:"inlineDeparmentTree","department-info":n.departmentInfo,onResult:l.result},null,8,["department-info","onResult"]))])}const InlineDepartmentTree=_export_sfc$1(_sfc_main$1g,[["render",_sfc_render$10]]),_sfc_main$1f={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$Z={class:"dialog-footer"};function _sfc_render$$(e,t,n,o,i,l){const f=Vue.resolveComponent("inline-department-tree"),v=Vue.resolveComponent("el-button"),_=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(_,{"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]=C=>e.$emit("close")),onClosed:t[2]||(t[2]=C=>e.$emit("closed")),onOpen:t[3]||(t[3]=C=>e.$emit("open")),onOpend:t[4]||(t[4]=C=>e.$emit("opend"))},{footer:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_1$Z,[Vue.createVNode(v,{class:"button--default",size:"default",onClick:t[0]||(t[0]=C=>e.$emit("close"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.$t("imatrixUIPublicModel.cancel")),1)]),_:1}),Vue.createVNode(v,{size:"default",type:"primary",onClick:l.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:l.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$1f,[["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$1e={name:"Hamburger",components:{Expand:expand_default,Fold:fold_default},props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick(){$emit(this,"toggleClick")}},emits:["toggleClick"]},_hoisted_1$Y={class:"00-Color/9-gray"};function _sfc_render$_(e,t,n,o,i,l){const f=Vue.resolveComponent("Fold"),v=Vue.resolveComponent("el-icon"),_=Vue.resolveComponent("Expand");return Vue.openBlock(),Vue.createElementBlock("div",_hoisted_1$Y,[n.isActive?(Vue.openBlock(),Vue.createBlock(v,{key:0,onClick:l.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(f,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"])):(Vue.openBlock(),Vue.createBlock(v,{key:1,onClick:l.toggleClick},{default:Vue.withCtx(()=>[Vue.createVNode(_,{style:{width:"24px",height:"24px"}})]),_:1},8,["onClick"]))])}const hamburger=_export_sfc$1(_sfc_main$1e,[["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$1d={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$X=["xlink:href"];function _sfc_render$Z(e,t,n,o,i,l){return Vue.openBlock(),Vue.createElementBlock("svg",{class:Vue.normalizeClass(l.svgClass),"aria-hidden":"true"},[Vue.createElementVNode("use",{"xlink:href":l.iconName},null,8,_hoisted_1$X)],2)}const SvgIcon=_export_sfc$1(_sfc_main$1d,[["render",_sfc_render$Z],["__scopeId","data-v-ef299c9a"]]);SvgIcon.install=function(e){e.component(SvgIcon.name,SvgIcon)};const _sfc_main$1c={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$W={class:"cell--span"},_hoisted_2$C={class:"cell--span"};function _sfc_render$Y(e,t,n,o,i,l){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",fixed:l.fixed,width:n.column.width?n.column.width:"80"},{header:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_1$W,Vue.toDisplayString(e.$t("superGrid.index")),1)]),default:Vue.withCtx(v=>[Vue.createElementVNode("span",_hoisted_2$C,Vue.toDisplayString(v.$index+l.startIndex),1)]),_:1},8,["fixed","width"])}const IndexColumn=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$Y]]),_sfc_main$1b={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,o,i,l){const f=Vue.resolveComponent("el-table-column");return Vue.openBlock(),Vue.createBlock(f,{align:"center",type:"selection",label:n.column.label,fixed:l.fixed,width:n.column.width?n.column.width:"50"},null,8,["label","fixed","width"])}const SelectionColumn=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$X]]),store$1=new Map;function getColumnValues(e,t){const n=[];for(const o of e)n.push(o[t]);return n}function getSpanValuesForColumn(e,t,n){const o=[];let i=0;for(let l=0;l<e.length;l++)if(l===0)o.push(1),i=0;else if(n&&n!==""){let f="",v="";const _=n.split(",");for(let C=0;C<_.length;C++)f+=e[l][_[C]],v+=e[l-1][_[C]];f===v?(o[i]+=1,o.push(0)):(o.push(1),i=l)}else e[l][t]===e[l-1][t]?(o[i]+=1,o.push(0)):(o.push(1),i=l);return o}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),o=getProps(t);let _=n;n.length>o.length?_=n:_=o;for(var i=0;i<_.length;i++){var l=_[i];if(l!=="$editing"){var f=e[l],v=t[l];if(f!==v)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 o=!1;const i=store$1.get(t),l=isHasEditOption("disableEditProps",t)?i.options.lineEditOptions.disableEditProps:null;if(l){const v=l.split(",");v&&v.indexOf(e)>=0&&(o=!0)}const f=getEntityId(n);if(o===!1&&i.options){const v=i.options.validateRules;if(v){const _=v.filter(x=>x.name&&(x.name===e||x.name==="all_fields"));let C=!0;if(_&&_.length>0){for(let x=0;x<_.length;x++)_[x].rowIndexes===void 0||_[x].rowIndexes===null||_[x].rowIndexes.indexOf(f)>=0?C=_[x].canEdit:C=!0;C===!1&&(o=!0)}}if(o===!1){const _=i.options.actionPermission;isRowCanUpdate(_,f)===!1&&(o=!0)}}return o}function isRequiredEdit(e,t){const n=e.prop;t||(t=store$1.get("_list_code"));let o=!1;const i=store$1.get(t);if(i&&i.options){const l=i.options.validateRules;if(l){const f=l.filter(v=>v.name&&(v.name===n||v.name==="all_fields")&&v.canEdit!==void 0&&v.canEdit===!0);f&&f.length>0&&(o=!0)}else if(e.validations){const v=JSON.parse(e.validations).filter(_=>_.required===!0);v&&v.length>0&&(o=!0)}}return o}function isRowCanUpdate(e,t){let n=!0;const o=e;return o&&o.canUpdate!==void 0&&o.canUpdate===!1&&t!==void 0&&o.updateRowIndexes&&o.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 o=t.split(".");if(o.length===1){n!==void 0?e[t]=n:e[t]=null;return}let i=e;for(let l=0;l<o.length-1;l++)i[o[l]]===void 0&&(i[o[l]]={}),i=i[o[l]];n!==void 0?i[o[o.length-1]]=n:i[o[o.length-1]]=null}function addDynamicPropDateSection(e,t,n){const o=t.split(".");if(o.length===1){n!==void 0?e[t]=n:e[t]=[new Date,new Date];return}let i=e;for(let l=0;l<o.length-1;l++)i[o[l]]===void 0&&(i[o[l]]={}),i=i[o[l]];n!==void 0?i[o[o.length-1]]=n:i[o[o.length-1]]=[new Date,new Date]}function getTableHeight$1(e,t,n){let o=120;const i=document.querySelector(".box-card");i&&i!==null&&(o=16*2+20+34+5),isShowMenuRoute()===!0&&(o=o+50),document.querySelector(".el-tabs__content ."+t)&&(o=o+80),n==null||n===""?n=window.innerHeight:o=0;let f=n-o;return e&&(f=n-e.$el.offsetTop-o),f}function getExtraParam(e,t){const n={searchParam:e};if(n.withDataPermission=t.options.isWithDataPermission,n.isWorkflowEntity=t.options.isWorkflowEntity,t.options.extraParam)for(const o in t.options.extraParam)n[o]=t.options.extraParam[o];return n}function analysisFileSetObj(e,t){let n="",o="";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&&(o=e.serverNameData.dbName):e.serverNameData.name&&(o=e.serverNameData.name))),{showName:n,serverPath:o}}function otherFilesToStandard(e,t,n,o){const i=[];if(n){if(n&&n.length>0)for(var l=0;l<n.length;l++){const v=n[l],_=packageFile(v[t.showName],v[t.serverPath]);i.push(_)}}else if(o){const v=o.showName,_=o.serverPath;if(v&&_){const C=v.split(","),x=_.split(",");for(var f=0;f<C.length;f++){const V=packageFile(C[f],x[f]);i.push(V)}}}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 o=getToken();let i=window.$vueApp.config.globalProperties.baseURL+"/common/super-form/downloads?jwt="+o;isPlateSys(window.$vueApp.config.globalProperties.systemCode)&&(i=window.$vueApp.config.globalProperties.baseAPI+"/component/super-form/downloads?jwt="+o);const l=i+"&showName="+encodeURI(n.showName)+"&serverPath="+n.serverPath;return n.src=l,n}function getFileList(e,t,n){let o=[];if(t.fileSet&&t.fileSet!==""&&(t.componentType==="annex"||t.componentType==="multipartUpload")){const i=JSON.parse(t.fileSet),l=analysisFileSetObj(i,n);if(i&&i.multiple)if(i.childAnnexDataTableCode){const f=e[t.prop];o=otherFilesToStandard(i,l,f,null)}else{const f={showName:getEntityFieldValue(e,l.showName),serverPath:getEntityFieldValue(e,l.serverPath)};o=otherFilesToStandard(i,l,null,f)}else{const f=getEntityFieldValue(e,l.showName),v=getEntityFieldValue(e,l.serverPath);o.push(packageFile(f,v))}}return o}function getDynamicDataSourceOptions(e,t,n){let o;n&&(console.log("getDynamicDataSourceOptions--additionalParamMap=",n),n&&typeof n=="object"?o=JSON.stringify(n):n&&n!==""&&(o=n));const i={isSql:t,additionalParameter:o};if(e.valueSetOptions){const l=JSON.parse(e.valueSetOptions);l&&l.valueSetOptions&&(i.valueSetOptions=l.valueSetOptions),l.dynamicDataSourceCode&&l.dynamicDataSourceCode!==""&&(i.dynamicDataSourceCode=l.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,o,i){let l,f,v,_,C,x;n&&(l=n.searchText,l==null&&(l=""),typeof n.watchAttrValue=="array"?f=n.watchAttrValue.join(","):f=n.watchAttrValue,f==null&&(f=""),v=n.parent,_=n._listCode,C=n._formCode,x=n._tableName);const V={searchText:l,watchAttrValue:f,parent:v};if(o&&o!==""&&(V.additionalParamMap=JSON.parse(o)),V.additionalParamMap===void 0&&(V.additionalParamMap={}),this.listToolbarFormData)for(const I in this.listToolbarFormData){const D=this.listToolbarFormData[I];if(D&&I){let F=D;Array.isArray(D)&&(F=D.join(",")),V.additionalParamMap[I]=F}}return _&&(V.additionalParamMap._listCode=_),C&&(V.additionalParamMap._formCode=C),x&&(V.additionalParamMap._tableName=x),t&&t!==null&&(V.entity=t),i||(i=window.$vueApp.config.globalProperties.baseURL),new Promise((I,D)=>{window.$vueApp.config.globalProperties.systemCode!==void 0&&window.$vueApp.config.globalProperties.systemCode==="agilebuilder"?I():this.$http.post(i+"/common/dynamic-data-source/"+e,V).then(F=>{F.backendUrl?this.$http.post(F.backendUrl+"/common/dynamic-data-source/"+e,V).then(U=>{I(U)}).catch(U=>{D(U)}):I(F)}).catch(F=>{D(F)})})}},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(o=>o[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 o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(i){i(n)}),(o=e.get("*"))&&o.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$1a={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(l,f){this.watchAttrValueChange(l),this.optionItems.filter(_=>_[this.valueAttribute]===l)||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(o=>{n[this.valueAttribute]===o&&(t=t+n._label_+",")})}),t=t.slice(0,t.length-1)):(this.optionItems.forEach(n=>{e.forEach(o=>{n[this.valueAttribute]===o&&(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,o)=>{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 l=0;l<this.options.valueSetOptions.length;l++){const f=this.options.valueSetOptions[l];if(i.valueAttribute===f.columnName){if(this.markValue){const v=JSON.parse(this.markValue);if(v&&v[f.valueColumn.dbColumnName]){let _=(v[f.valueColumn.dbColumnName]+"").split(",");this.column.componentType==="select"&&(_=_[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=>{o(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 o=this.entity[this.watchAttr];o!=null&&(Object.prototype.toString.apply(o)==="[object Array]"?n.watchAttrValue=o.join(","):n.watchAttrValue=o+"")}this.parent&&(n.parent=this.parent),this.loading=!0,this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode,n).then(o=>{this.loading=!1}).catch(o=>{console.log(o),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 o;this.optionItems&&n&&(o=this.getTargetColumnValue(e,n));let i=null;const l=t.valueColumn;l&&(i=l.name,this.isSql===!0&&(i=l.dbColumnName,i=getPropNameWhenJoinTable(i,this.isJoinTable,this.tableName))),this.entity&&i&&i!==null&&i!==""&&setEntityFieldValue(this.entity,i,o);const f=this.getSelectedOptionItem(e);this.$emit("set-value",{value:o,sourceColumnName:n,targetColumnName:i,options:this.optionItems,valueAttribute:this.valueAttribute,selectedItem:f})}))},setColumnValue(e,t,n){let o=null;const i=n.valueColumn;i&&(o=i.name,this.isSql===!0&&(o=i.dbColumnName,o=getPropNameWhenJoinTable(o,this.isJoinTable,this.tableName))),this.entity&&o&&o!==null&&o!==""&&setEntityFieldValue(this.entity,o,t),this.$emit("set-value",{value:t,sourceColumnName:e,targetColumnName:o,options:this.optionItems,valueAttribute:this.valueAttribute})},setColumnValueWhenMulti(e){let t=!1,n;if(this.valueSetOptions.forEach(o=>{const i=o.columnName;if(i===this.valueAttribute){let l;if(this.optionItems&&i&&(l=this.getTargetColumnValue(e,i)),this.setColumnValue(i,l,o),this.lastValues.length<e.length)t=!0;else if(this.lastValues.length>e.length){t=!1;const f=[...this.lastValues,...e],v=new Set(f),_=Array.from(v),C=[..._.filter(x=>!this.lastValues.includes(x)),..._.filter(x=>!e.includes(x))];C&&C.length>0&&(n=C[0])}this.lastValues=JSON.parse(JSON.stringify(e))}}),t){const i=e[e.length-1],l=this.optionItems.filter(f=>f[this.valueAttribute]===i);l&&l.length>0&&this.setTagValue(null,!1,l[0])}else this.setTagValue(n,!0)},setTagValue(e,t,n){this.valueSetOptions&&this.valueSetOptions.length>0&&this.valueSetOptions.forEach(o=>{const i=o.columnName;if(i!==this.valueAttribute){let l=null;const f=o.valueColumn;f&&(l=f.name,this.isSql===!0&&(l=f.dbColumnName,l=getPropNameWhenJoinTable(l,this.isJoinTable,this.tableName)));let v;if(l){const _=getEntityFieldValue(this.entity,l);if(t){const C=this.value.indexOf(e);if(_!=null&&_!==""){const x=_.split(",");x.splice(C,1),v=x.join(",")}}else{let C;n&&(C=n[i]),_!=null&&_!==""?v=_+","+C:v=C}}this.entity&&l&&l!==null&&l!==""&&setEntityFieldValue(this.entity,l,v),this.$emit("set-value",{value:v,sourceColumnName:i,targetColumnName:l,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 o=0;e.forEach(i=>{const l=this.optionItems.filter(f=>f[this.valueAttribute]===i);l&&l.length>0&&(n+=l[0][t],o<e.length-1&&(n+=","),o++)})}else{const o=this.optionItems.filter(i=>i[this.valueAttribute]===e);o&&o.length>0&&(n=o[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$V={class:"select-top-span"},_hoisted_2$B={style:{display:"flex"}},_hoisted_3$q={style:{color:"#8492a6","font-size":"13px","margin-left":"30px"}},_hoisted_4$i={style:{float:"left"}},_hoisted_5$e={style:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"30px"}};function _sfc_render$W(e,t,n,o,i,l){const f=Vue.resolveComponent("el-option"),v=Vue.resolveComponent("el-select");return Vue.openBlock(),Vue.createElementBlock("span",_hoisted_1$V,[Vue.createVNode(v,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":l.remoteMethod,"reserve-keyword":!0,size:n.size,style:n.fullWidth?{width:"100%",height:"100%"}:{},title:l.getClassOptionTitle(n.value),"value-key":i.valueAttribute,"default-first-option":""},i.myProps,{onBlur:t[0]||(t[0]=_=>l.blurEvent(_)),onChange:l.changeEvent,onClear:e.clear,onFocus:e.focus,onVisibleChange:e.visibleChange,onRemoveTag:t[1]||(t[1]=_=>e.removeTag(i.remote,_))}),{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,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,title:_._label_+_._description_,value:_[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",_hoisted_2$B,[Vue.createElementVNode("span",null,Vue.toDisplayString(_._label_),1),Vue.createElementVNode("span",_hoisted_3$q,Vue.toDisplayString(_._description_),1)])]),_:2},1032,["label","title","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,title:_._label_+_._description_,value:_[i.valueAttribute]},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",_hoisted_4$i,Vue.toDisplayString(_._label_),1),Vue.createElementVNode("span",_hoisted_5$e,Vue.toDisplayString(_._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,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,value:_[i.valueAttribute]},null,8,["label","value"]))),128))],4)):(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,{key:1},Vue.renderList(i.optionItems,_=>(Vue.openBlock(),Vue.createBlock(f,{key:_.value,label:_._label_,value:_[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$1a,[["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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}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(o,i){return o.__proto__=i,o},_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,l,f){var v=[null];v.push.apply(v,l);var _=Function.bind.apply(i,v),C=new _;return f&&_setPrototypeOf(C,f.prototype),C},_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(o){if(o===null||!_isNativeFunction(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,i)}function i(){return _construct(o,arguments,_getPrototypeOf(this).constructor)}return i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(i,o)},_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(o){return typeof o=="string"})&&console.warn(t,n)});function convertFieldsError(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function format(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var f=e.replace(formatRegExp,function(v){if(v==="%%")return"%";if(i>=l)return v;switch(v){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 v}});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 o=[],i=0,l=e.length;function f(v){o.push.apply(o,v||[]),i++,i===l&&n(o)}e.forEach(function(v){t(v,f)})}function asyncSerialArray(e,t,n){var o=0,i=e.length;function l(f){if(f&&f.length){n(f);return}var v=o;o=o+1,v<i?t(e[v],l):n([])}l([])}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,o){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=o,i}return t}(_wrapNativeSuper(Error));function asyncMap(e,t,n,o,i){if(t.first){var l=new Promise(function(I,D){var F=function(G){return o(G),G.length?D(new AsyncValidationError(G,convertFieldsError(G))):I(i)},U=flattenObjArr(e);asyncSerialArray(U,n,F)});return l.catch(function(I){return I}),l}var f=t.firstFields===!0?Object.keys(e):t.firstFields||[],v=Object.keys(e),_=v.length,C=0,x=[],V=new Promise(function(I,D){var F=function(X){if(x.push.apply(x,X),C++,C===_)return o(x),x.length?D(new AsyncValidationError(x,convertFieldsError(x))):I(i)};v.length||(o(x),I(i)),v.forEach(function(U){var X=e[U];f.indexOf(U)!==-1?asyncSerialArray(X,n,F):asyncParallelArray(X,n,F)})});return V.catch(function(I){return I}),V}function isErrorObj(e){return!!(e&&e.message!==void 0)}function getValue$1(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function complementError(e,t){return function(n){var o;return e.fullFields?o=getValue$1(t,e.fullFields):o=t[n.field||e.fullField],isErrorObj(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function deepMerge(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=_extends$1({},e[n],o):e[n]=o}}return e}var required$1=function e(t,n,o,i,l,f){t.required&&(!o.hasOwnProperty(t.field)||isEmptyValue(n,f||t.type))&&i.push(format(l.messages.required,t.fullField))},whitespace=function e(t,n,o,i,l){(/^\s+$/.test(n)||n==="")&&i.push(format(l.messages.whitespace,t.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var e="[a-fA-F\\d:]",t=function(ue){return ue&&ue.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}",o="[a-fA-F\\d]{1,4}",i=(`
|
|
22
22
|
(?:
|
|
23
23
|
(?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
24
24
|
(?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 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/api/sso-service.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import request from '../utils/request'
|
|
2
|
-
import {getLanguage} from '../utils/auth'
|
|
2
|
+
import {getLanguage, getTheme} from '../utils/auth'
|
|
3
3
|
import * as Vue from 'vue'
|
|
4
4
|
function login(username, password, language) {
|
|
5
5
|
const usernamePasswordToken = {
|
|
@@ -107,6 +107,20 @@ function getUserLanguage() {
|
|
|
107
107
|
return request.get(window.$vueApp.config.globalProperties.baseAPI + '/acs/user-languages')
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
function getUserLangAndTheme() {
|
|
113
|
+
const currentLanguage = getLanguage()
|
|
114
|
+
const currentTheme = getTheme()
|
|
115
|
+
if (currentLanguage && currentTheme) {
|
|
116
|
+
return new Promise((resolve, reject) => {
|
|
117
|
+
resolve({lang:currentLanguage, theme: currentTheme})
|
|
118
|
+
})
|
|
119
|
+
} else {
|
|
120
|
+
return request.get(window.$vueApp.config.globalProperties.baseAPI + '/acs/user-lang-and-theme')
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
110
124
|
function forgetPasswordSendMail(username, email) {
|
|
111
125
|
const userInfo = {
|
|
112
126
|
username,
|
|
@@ -186,6 +200,7 @@ export default {
|
|
|
186
200
|
updatePassword,
|
|
187
201
|
getCurrentUserPermissionsBySystem,
|
|
188
202
|
getUserLanguage,
|
|
203
|
+
getUserLangAndTheme,
|
|
189
204
|
forgetPasswordSendMail,
|
|
190
205
|
isResetPasswordJwtOverdue,
|
|
191
206
|
resetPassword,
|
|
@@ -2,9 +2,11 @@ import ssoService from '../../api/sso-service'
|
|
|
2
2
|
import {
|
|
3
3
|
getUsername,
|
|
4
4
|
removeAllLanguages,
|
|
5
|
+
removeAllThemes,
|
|
5
6
|
removeCurrentUser,
|
|
6
7
|
removeDevpPermissions,
|
|
7
8
|
removeLanguage,
|
|
9
|
+
removeTheme,
|
|
8
10
|
removePublishControl,
|
|
9
11
|
removeToken,
|
|
10
12
|
removeUsername,
|
|
@@ -13,7 +15,8 @@ import {
|
|
|
13
15
|
setToken,
|
|
14
16
|
setUsername,
|
|
15
17
|
removeProjectSettings,
|
|
16
|
-
removeProjectCode
|
|
18
|
+
removeProjectCode,
|
|
19
|
+
setTheme
|
|
17
20
|
} from '../../utils/auth'
|
|
18
21
|
|
|
19
22
|
import {
|
|
@@ -58,6 +61,7 @@ const user = {
|
|
|
58
61
|
// const data = response.data
|
|
59
62
|
setToken(data.jwt)
|
|
60
63
|
setLanguage(data.language)
|
|
64
|
+
setTheme(data.theme)
|
|
61
65
|
if(data.lockTip){
|
|
62
66
|
ElMessage({
|
|
63
67
|
showClose: true,
|
|
@@ -96,6 +100,7 @@ const user = {
|
|
|
96
100
|
// const data = response.data
|
|
97
101
|
setToken(data.jwt)
|
|
98
102
|
setLanguage(data.language)
|
|
103
|
+
setTheme(data.theme)
|
|
99
104
|
if(data.lockTip){
|
|
100
105
|
ElMessage({
|
|
101
106
|
showClose: true,
|
|
@@ -195,7 +200,9 @@ const user = {
|
|
|
195
200
|
commit('setToken', '')
|
|
196
201
|
removeToken()
|
|
197
202
|
removeLanguage()
|
|
203
|
+
removeTheme()
|
|
198
204
|
removeAllLanguages()
|
|
205
|
+
removeAllThemes()
|
|
199
206
|
|
|
200
207
|
commit('setName', '')
|
|
201
208
|
removeUsername()
|
|
@@ -222,7 +229,9 @@ const user = {
|
|
|
222
229
|
commit('setToken', '')
|
|
223
230
|
removeToken()
|
|
224
231
|
removeLanguage()
|
|
232
|
+
removeTheme()
|
|
225
233
|
removeAllLanguages()
|
|
234
|
+
removeAllThemes()
|
|
226
235
|
|
|
227
236
|
commit('setName', '')
|
|
228
237
|
removeUsername()
|
package/src/utils/auth-api.js
CHANGED
|
@@ -10,6 +10,8 @@ const allLangKey = 'AMB_LANG_INFO'
|
|
|
10
10
|
const versionEnv = 'VERSION_ENVIRONMENT'
|
|
11
11
|
const userVersion = 'CURRENT_USER_SYSTEM_VERSION'
|
|
12
12
|
const runDevpJwtKey = '_runDevpJWT'
|
|
13
|
+
const themeKey = 'CURRENT_THEME'
|
|
14
|
+
const allThemeKey = 'AMB_THEME_INFO'
|
|
13
15
|
|
|
14
16
|
function getToken() {
|
|
15
17
|
// 是否是开发平台功能
|
|
@@ -238,6 +240,41 @@ function removeAllLanguages() {
|
|
|
238
240
|
removeSessionCache(allLangKey)
|
|
239
241
|
}
|
|
240
242
|
|
|
243
|
+
|
|
244
|
+
function getTheme() {
|
|
245
|
+
return localStorage.getItem(themeKey)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function setTheme(lang) {
|
|
249
|
+
localStorage.setItem(themeKey, lang)
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function removeTheme() {
|
|
253
|
+
localStorage.removeItem(themeKey)
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function getAllThemes() {
|
|
257
|
+
let allThemes = getCookieCache(allThemeKey)
|
|
258
|
+
const projectModel = window.$vueApp.config.globalProperties.projectModel
|
|
259
|
+
if (!allThemes && projectModel && projectModel === 'developing.model') {
|
|
260
|
+
// 如果是开发环境从sessionStorage中获得token
|
|
261
|
+
allThemes = getSessionCache(allThemeKey)
|
|
262
|
+
}
|
|
263
|
+
return allThemes
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
function setAllThemes(langs) {
|
|
267
|
+
setCookieCache(allThemeKey, langs)
|
|
268
|
+
setSessionCache(allThemeKey, langs)
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function removeAllThemes() {
|
|
272
|
+
removeCookieCache(allThemeKey)
|
|
273
|
+
removeSessionCache(allThemeKey)
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
241
278
|
function removePublishControl() {
|
|
242
279
|
removeCookieCache(versionEnv)
|
|
243
280
|
removeCookieCache(userVersion)
|
|
@@ -269,6 +306,12 @@ export default {
|
|
|
269
306
|
getAllLanguages,
|
|
270
307
|
setAllLanguages,
|
|
271
308
|
removeAllLanguages,
|
|
309
|
+
getTheme,
|
|
310
|
+
setTheme,
|
|
311
|
+
removeTheme,
|
|
312
|
+
getAllThemes,
|
|
313
|
+
setAllThemes,
|
|
314
|
+
removeAllThemes,
|
|
272
315
|
removePublishControl,
|
|
273
316
|
isDevpSystem,
|
|
274
317
|
getRunInfoKey
|
package/src/utils/auth.js
CHANGED
|
@@ -84,6 +84,31 @@ export function removeAllLanguages() {
|
|
|
84
84
|
authApi.removeAllLanguages()
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
|
|
88
|
+
export function getTheme() {
|
|
89
|
+
return authApi.getTheme()
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function setTheme(language) {
|
|
93
|
+
authApi.setTheme(language)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function removeTheme() {
|
|
97
|
+
authApi.removeTheme()
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function getAllThemes() {
|
|
101
|
+
return authApi.getAllThemes()
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function setAllThemes(langs) {
|
|
105
|
+
authApi.setAllThemes(langs)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function removeAllThemes() {
|
|
109
|
+
authApi.removeAllThemes()
|
|
110
|
+
}
|
|
111
|
+
|
|
87
112
|
export function removePublishControl() {
|
|
88
113
|
authApi.removePublishControl()
|
|
89
114
|
}
|
package/src/utils/common-util.js
CHANGED
|
@@ -231,6 +231,7 @@ export function getServerConfigUtil(http) {
|
|
|
231
231
|
window.$vueApp.config.globalProperties.baseAPI = getRelativeBaseUrl(
|
|
232
232
|
window.$vueApp.config.globalProperties.baseAPI
|
|
233
233
|
)
|
|
234
|
+
localStorage.setItem('_baseAPI_', window.$vueApp.config.globalProperties.baseAPI)
|
|
234
235
|
resolve()
|
|
235
236
|
})
|
|
236
237
|
})
|
|
@@ -490,4 +491,37 @@ export function setProjectSetting() {
|
|
|
490
491
|
linkElement.href = window.$vueApp.config.globalProperties.baseAPI + '/cfg/project/icon/browserIcon'
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
|
-
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// 动态加载css
|
|
497
|
+
export function loadCSS() {
|
|
498
|
+
var theme
|
|
499
|
+
if(!theme){
|
|
500
|
+
theme = localStorage.getItem('CURRENT_THEME')
|
|
501
|
+
}
|
|
502
|
+
if(!theme){
|
|
503
|
+
console.error('皮肤主题为空!')
|
|
504
|
+
return
|
|
505
|
+
}
|
|
506
|
+
const baseAPI = localStorage.getItem('_baseAPI_')
|
|
507
|
+
if(baseAPI){
|
|
508
|
+
const href = replacePrefix(baseAPI) + '/component/theme/load-theme?theme=' + theme + '&_t_=' + new Date().getTime()
|
|
509
|
+
let isHasLink = true
|
|
510
|
+
let cssLink = document.getElementById('_loadTheme_')
|
|
511
|
+
if(!cssLink){
|
|
512
|
+
cssLink = document.createElement("link")
|
|
513
|
+
isHasLink = false
|
|
514
|
+
}
|
|
515
|
+
cssLink.rel = "stylesheet";
|
|
516
|
+
cssLink.type = "text/css";
|
|
517
|
+
cssLink.id="_loadTheme_"
|
|
518
|
+
cssLink.href = href;
|
|
519
|
+
if(!isHasLink){
|
|
520
|
+
document.getElementsByTagName("head")[0].appendChild(cssLink)
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
const body = document.querySelector('body')
|
|
524
|
+
if(body){
|
|
525
|
+
body.setAttribute('class', theme)
|
|
526
|
+
}
|
|
527
|
+
}
|