@10yun/open-sdk 0.3.120 → 0.3.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{404-DjV-wc2G.cjs → 404-BFyR7lt-.cjs} +1 -1
- package/dist/{404-Ckqzkb2d.js → 404-eOxp6uCK.js} +1 -1
- package/dist/{alone_run-CKIcEdcM.js → alone_run-D6MaSiBX.js} +1 -1
- package/dist/{alone_run-CU0v4Ux1.cjs → alone_run-DeT-QveB.cjs} +1 -1
- package/dist/{index-BZ7rA4yA.js → index-B5asDzhG.js} +558 -555
- package/dist/{index-D4fwcGnh.cjs → index-BDkGvqi-.cjs} +1 -1
- package/dist/{login-DX6hy1Uz.js → login-B9AHugy2.js} +1 -1
- package/dist/{login-bfXmR5MO.cjs → login-x6WIbNRH.cjs} +1 -1
- package/dist/{none-DbdDHIti.js → none-BtuWNAZm.js} +1 -1
- package/dist/{none-BY4Ey_iO.cjs → none-sp97NM-k.cjs} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* (c) 2025 kazuya kawaguchi
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/const Ri="11.1.12";function Vi(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Me().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Me().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1)}const H={UNEXPECTED_RETURN_TYPE:Gl,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ie(e,...t){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:Pi,args:t}:void 0)}const Pi={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},kn=Se("__translateVNode"),Dn=Se("__datetimeParts"),Rn=Se("__numberParts"),Ge=Se("__enableEmitter"),Et=Se("__disableEmitter"),oa=Se("__setPluralRules"),ra=Se("__injectWithOption"),Vn=Se("__dispose"),fe={FALLBACK_TO_ROOT:ei,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Fi={[fe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[fe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[fe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[fe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
25
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[fe.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function tt(e,...t){return Gt(Fi[e],...t)}function St(e){if(!M(e)||me(e))return e;for(const t in e)if(he(e,t))if(!t.includes("."))M(e[t])&&St(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let l=0;l<r;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in o||(o[n[l]]=$()),!M(o[n[l]])){process.env.NODE_ENV!=="production"&&(tt(fe.IGNORE_OBJ_FLATTEN,{key:n[l]}),void 0),s=!0;break}o=o[n[l]]}if(s||(me(o)?$r.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!me(o)){const l=o[n[r]];M(l)&&St(l)}}return e}function Zn(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,l=F(n)?n:q(r)?$():{[e]:$()};if(q(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:i,resource:u}=c;i?(l[i]=l[i]||$(),Pt(u,l[i])):Pt(u,l)}else k(c)&&Pt(JSON.parse(c),l)}),o==null&&s)for(const c in l)he(l,c)&&St(l[c]);return l}function aa(e){return e.type}function sa(e,t,n){let r=M(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=Zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(M(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(M(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Fo(e){return a.createVNode(a.Text,null,e,0)}const xo="__INTLIFY_META__",Mo=()=>[],xi=()=>!1;let Bo=0;function Uo(e){return(t,n,r,o)=>e(n,r,a.getCurrentInstance()||void 0,o)}const Mi=()=>{const e=a.getCurrentInstance();let t=null;return e&&(t=aa(e)[xo])?{[xo]:t}:null};function eo(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,s=pe?a.ref:a.shallowRef;let l=B(e.inheritLocale)?e.inheritLocale:!0;const c=s(t&&l?t.locale.value:k(e.locale)?e.locale:gt),i=s(t&&l?t.fallbackLocale.value:k(e.fallbackLocale)||q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=s(Zn(c.value,e)),f=s(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),d=s(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let m=t?t.missingWarn:B(e.missingWarn)||Ze(e.missingWarn)?e.missingWarn:!0,g=t?t.fallbackWarn:B(e.fallbackWarn)||Ze(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,I=Y(e.missing)?e.missing:null,h=Y(e.missing)?Uo(e.missing):null,S=Y(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const w=t?t.modifiers:F(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,y;y=(()=>{r&&Ao(null);const v={version:Ri,locale:c.value,fallbackLocale:i.value,messages:u.value,modifiers:w,pluralRules:L,missing:h===null?void 0:h,missingWarn:m,fallbackWarn:g,fallbackFormat:E,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=f.value,v.numberFormats=d.value,v.__datetimeFormatters=F(y)?y.__datetimeFormatters:void 0,v.__numberFormatters=F(y)?y.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(v.__v_emitter=F(y)?y.__v_emitter:void 0);const O=ui(v);return r&&Ao(O),O})(),ut(y,c.value,i.value);function x(){return[c.value,i.value,u.value,f.value,d.value]}const X=a.computed({get:()=>c.value,set:v=>{y.locale=v,c.value=v}}),ae=a.computed({get:()=>i.value,set:v=>{y.fallbackLocale=v,i.value=v,ut(y,c.value,v)}}),K=a.computed(()=>u.value),$e=a.computed(()=>f.value),Ht=a.computed(()=>d.value);function Kt(){return Y(S)?S:null}function jt(v){S=v,y.postTranslation=v}function qt(){return I}function Xt(v){v!==null&&(h=Uo(v)),I=v,y.missing=h}function zt(v,O){return v!=="translate"||!O.resolvedMessage}const be=(v,O,G,Q,Ve,It)=>{x();let We;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(y.fallbackContext=t?ci():void 0),We=v(y)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(y.fallbackContext=void 0)}if(G!=="translate exists"&&J(We)&&We===Wt||G==="translate exists"&&!We){const[Pe,ba]=O();if(process.env.NODE_ENV!=="production"&&t&&k(Pe)&&zt(G,ba)&&(C&&(Yt(g,Pe)||Xr(m,Pe))&&(tt(fe.FALLBACK_TO_ROOT,{key:Pe,type:G}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:lo}=y;lo&&C&&lo.emit("fallback",{type:G,key:Pe,to:"global",groupId:`${G}:${Pe}`})}return t&&C?Q(t):Ve(Pe)}else{if(It(We))return We;throw ie(H.UNEXPECTED_RETURN_TYPE)}};function rt(...v){return be(O=>Reflect.apply(Po,null,[O,...v]),()=>wn(...v),"translate",O=>Reflect.apply(O.t,O,[...v]),O=>O,O=>k(O))}function Qt(...v){const[O,G,Q]=v;if(Q&&!M(Q))throw ie(H.INVALID_ARGUMENT);return rt(O,G,ee({resolvedMessage:!0},Q||{}))}function Jt(...v){return be(O=>Reflect.apply(wo,null,[O,...v]),()=>On(...v),"datetime format",O=>Reflect.apply(O.d,O,[...v]),()=>Mt,O=>k(O)||q(O))}function Zt(...v){return be(O=>Reflect.apply(ko,null,[O,...v]),()=>In(...v),"number format",O=>Reflect.apply(O.n,O,[...v]),()=>Mt,O=>k(O)||q(O))}function en(v){return v.map(O=>k(O)||J(O)||B(O)?Fo(String(O)):O)}const tn={normalize:en,interpolate:v=>v,type:"vnode"};function At(...v){return be(O=>{let G;const Q=O;try{Q.processor=tn,G=Reflect.apply(Po,null,[Q,...v])}finally{Q.processor=null}return G},()=>wn(...v),"translate",O=>O[kn](...v),O=>[Fo(O)],O=>q(O))}function nn(...v){return be(O=>Reflect.apply(ko,null,[O,...v]),()=>In(...v),"number format",O=>O[Rn](...v),Mo,O=>k(O)||q(O))}function Ot(...v){return be(O=>Reflect.apply(wo,null,[O,...v]),()=>On(...v),"datetime format",O=>O[Dn](...v),Mo,O=>k(O)||q(O))}function on(v){L=v,y.pluralRules=L}function rn(v,O){return be(()=>{if(!v)return!1;const G=k(O)?O:c.value,Q=Re(G),Ve=y.messageResolver(Q,v);return me(Ve)||de(Ve)||k(Ve)},()=>[v],"translate exists",G=>Reflect.apply(G.te,G,[v,O]),xi,G=>B(G))}function at(v){let O=null;const G=Wr(y,i.value,c.value);for(let Q=0;Q<G.length;Q++){const Ve=u.value[G[Q]]||{},It=y.messageResolver(Ve,v);if(It!=null){O=It;break}}return O}function st(v){const O=at(v);return O??(t?t.tm(v)||{}:{})}function Re(v){return u.value[v]||{}}function lt(v,O){if(o){const G={[v]:O};for(const Q in G)he(G,Q)&&St(G[Q]);O=G[v]}u.value[v]=O,y.messages=u.value}function an(v,O){u.value[v]=u.value[v]||{};const G={[v]:O};if(o)for(const Q in G)he(G,Q)&&St(G[Q]);O=G[v],Pt(O,u.value[v]),y.messages=u.value}function _(v){return f.value[v]||{}}function p(v,O){f.value[v]=O,y.datetimeFormats=f.value,Lo(y,v,O)}function T(v,O){f.value[v]=ee(f.value[v]||{},O),y.datetimeFormats=f.value,Lo(y,v,O)}function D(v){return d.value[v]||{}}function j(v,O){d.value[v]=O,y.numberFormats=d.value,Do(y,v,O)}function z(v,O){d.value[v]=ee(d.value[v]||{},O),y.numberFormats=d.value,Do(y,v,O)}Bo++,t&&pe&&(a.watch(t.locale,v=>{l&&(c.value=v,y.locale=v,ut(y,c.value,i.value))}),a.watch(t.fallbackLocale,v=>{l&&(i.value=v,y.fallbackLocale=v,ut(y,c.value,i.value))}));const U={id:Bo,locale:X,fallbackLocale:ae,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&t&&(c.value=t.locale.value,i.value=t.fallbackLocale.value,ut(y,c.value,i.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:K,get modifiers(){return w},get pluralRules(){return L||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(v){m=v,y.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(v){g=v,y.fallbackWarn=g},get fallbackRoot(){return C},set fallbackRoot(v){C=v},get fallbackFormat(){return E},set fallbackFormat(v){E=v,y.fallbackFormat=E},get warnHtmlMessage(){return b},set warnHtmlMessage(v){b=v,y.warnHtmlMessage=v},get escapeParameter(){return N},set escapeParameter(v){N=v,y.escapeParameter=v},t:rt,getLocaleMessage:Re,setLocaleMessage:lt,mergeLocaleMessage:an,getPostTranslationHandler:Kt,setPostTranslationHandler:jt,getMissingHandler:qt,setMissingHandler:Xt,[oa]:on};return U.datetimeFormats=$e,U.numberFormats=Ht,U.rt=Qt,U.te=rn,U.tm=st,U.d=Jt,U.n=Zt,U.getDateTimeFormat=_,U.setDateTimeFormat=p,U.mergeDateTimeFormat=T,U.getNumberFormat=D,U.setNumberFormat=j,U.mergeNumberFormat=z,U[ra]=n,U[kn]=At,U[Dn]=Ot,U[Rn]=nn,process.env.NODE_ENV!=="production"&&(U[Ge]=v=>{y.__v_emitter=v},U[Et]=()=>{y.__v_emitter=void 0}),U}const la="vue-i18n: composer properties",fn={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Bi={"vue-i18n-resource-inspector":"Search for scopes ..."},Ui={"vue-i18n-timeline":16764185};let Pn;async function Gi(e,t){return new Promise((n,r)=>{try{Di({id:"vue-devtools-plugin-vue-i18n",label:fn["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:[la],app:e},o=>{Pn=o,o.on.visitComponentTree(({componentInstance:l,treeNode:c})=>{$i(l,c,t)}),o.on.inspectComponent(({componentInstance:l,instanceData:c})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?l.vnode.el.__VUE_I18N__!==t.global.__composer&&Go(c,l.vnode.el.__VUE_I18N__):Go(c,l.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:fn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Bi["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ji(l,t)});const s=new Map;o.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),Xi(l,t),l.nodeId==="global"){if(!s.has(l.app)){const[c]=await o.getComponentInstances(l.app);s.set(l.app,c)}o.highlightElement(s.get(l.app))}else{const c=qi(l.nodeId,t);c&&o.highlightElement(c)}}),o.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&Qi(l,t)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:fn["vue-i18n-timeline"],color:Ui["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function ia(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function $i(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const o={label:`i18n (${ia(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(o)}}function Go(e,t){const n=la;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:to(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 to(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];Y(r)&&"source"in r?t[n]=Ki(r):me(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:M(r)?t[n]=to(r):t[n]=r}),t}const Wi={"<":"<",">":">",'"':""","&":"&"};function Yi(e){return e.replace(/[<>"&]/g,Hi)}function Hi(e){return Wi[e]||e}function Ki(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Yi(e.source)}")`:"(?)"}`}}}function ji(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,o]of t.__instances){const s=t.mode==="composition"?o:o.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${ia(r)} Scope`})}}function qi(e,t){let n=null;if(e!=="global"){for(const[r,o]of t.__instances.entries())if(o.id.toString()===e){n=r;break}}return n}function ca(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Xi(e,t){const n=ca(e.nodeId,t);return n&&(e.state=zi(n)),null}function zi(e){const t={},n="Locale related info",r=[{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]=r;const o="Locale messages info",s=[{type:o,key:"messages",editable:!1,value:to(e.messages.value)}];t[o]=s;{const l="Datetime formats info",c=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[l]=c;const i="Datetime formats info",u=[{type:i,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[i]=u}return t}function bt(e,t){if(Pn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Pn.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 Qi(e,t){const n=ca(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&k(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(k(e.state.value)||q(e.state.value)||M(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ji(e){const t=k(e.locale)?e.locale:gt,n=k(e.fallbackLocale)||q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Y(e.missing)?e.missing:void 0,o=B(e.silentTranslationWarn)||Ze(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=B(e.silentFallbackWarn)||Ze(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=B(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,i=F(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,f=Y(e.postTranslation)?e.postTranslation:void 0,d=k(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,g=B(e.sync)?e.sync:!0;let C=e.messages;if(F(e.sharedMessages)){const w=e.sharedMessages;C=Object.keys(w).reduce((y,P)=>{const x=y[P]||(y[P]={});return ee(x,w[P]),y},C||{})}const{__i18n:E,__root:I,__injectWithOption:h}=e,S=e.datetimeFormats,b=e.numberFormats,N=e.flatJson;return{locale:t,fallbackLocale:n,messages:C,flatJson:N,datetimeFormats:S,numberFormats:b,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:l,fallbackFormat:c,modifiers:i,pluralRules:u,postTranslation:f,warnHtmlMessage:d,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:g,__i18n:E,__root:I,__injectWithOption:h}}function Fn(e={}){const t=eo(Ji(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return B(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=B(o)?!o:o},get silentFallbackWarn(){return B(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=B(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,s){return t.te(o,s)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,s){t.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){t.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,s){t.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){t.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,s){t.setNumberFormat(o,s)},mergeNumberFormat(o,s){t.mergeNumberFormat(o,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const s=t;s[Ge]&&s[Ge](o)},r.__disableEmitter=()=>{const o=t;o[Et]&&o[Et]()}),r}function Zi(e,t,n){return{beforeCreate(){const r=a.getCurrentInstance();if(!r)throw ie(H.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root)this.$i18n=$o(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Fn(s);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=$o(e,o);else{this.$i18n=Fn({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&sa(t,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,l)=>this.$i18n.te(s,l),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const o=this.__v_emitter=qn();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",bt)}},unmounted(){const r=a.getCurrentInstance();if(!r)throw ie(H.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",bt),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function $o(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[oa](t.pluralizationRules||e.pluralizationRules);const n=Zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const no={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ec({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===a.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},$())}function ua(){return a.Fragment}const tc=a.defineComponent({name:"i18n-t",props:ee({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},no),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||oo({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(d=>d[0]!=="_"),l=$();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=k(e.plural)?+e.plural:e.plural);const c=ec(t,s),i=o[kn](e.keypath,c,l),u=ee($(),r),f=k(e.tag)||M(e.tag)?e.tag:ua();return a.h(f,u,i)}}}),Wo=tc;function nc(e){return q(e)&&!k(e[0])}function da(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const l={part:!0};let c=$();e.locale&&(l.locale=e.locale),k(e.format)?l.key=e.format:M(e.format)&&(k(e.format.key)&&(l.key=e.format.key),c=Object.keys(e.format).reduce((m,g)=>n.includes(g)?ee($(),m,{[g]:e.format[g]}):m,$()));const i=r(e.value,l,c);let u=[l.key];q(i)?u=i.map((m,g)=>{const C=o[m.type],E=C?C({[m.type]:m.value,index:g,parts:i}):[m.value];return nc(E)&&(E[0].key=`${m.type}-${g}`),E}):k(i)&&(u=[i]);const f=ee($(),s),d=k(e.tag)||M(e.tag)?e.tag:ua();return a.h(d,f,u)}}const oc=a.defineComponent({name:"i18n-n",props:ee({value:{type:Number,required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||oo({useScope:e.scope,__useComponent:!0});return da(e,t,Zr,(...r)=>n[Rn](...r))}}),Yo=oc;function rc(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function ac(e){const t=l=>{process.env.NODE_ENV!=="production"&&Hn(tt(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:i}=l;if(!c||!c.$)throw ie(H.UNEXPECTED_ERROR);const u=rc(e,c.$),f=Ho(i);return[Reflect.apply(u.t,u,[...Ko(f)]),u]};return{created:(l,c)=>{const[i,u]=t(c);pe&&e.global===u&&(l.__i18nWatcher=a.watch(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),l.__composer=u,l.textContent=i},unmounted:l=>{pe&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:c})=>{if(l.__composer){const i=l.__composer,u=Ho(c);l.textContent=Reflect.apply(i.t,i,[...Ko(u)])}},getSSRProps:l=>{const[c]=t(l);return{textContent:c}}}}function Ho(e){if(k(e))return{path:e};if(F(e)){if(!("path"in e))throw ie(H.REQUIRED_VALUE,"path");return e}else throw ie(H.INVALID_VALUE)}function Ko(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,l={},c=r||{};return k(n)&&(l.locale=n),J(o)&&(l.plural=o),J(s)&&(l.plural=s),[t,c,l]}function sc(e,t,...n){const r=F(n[0])?n[0]:{};(B(r.globalInstall)?r.globalInstall:!0)&&([Wo.name,"I18nT"].forEach(s=>e.component(s,Wo)),[Yo.name,"I18nN"].forEach(s=>e.component(s,Yo)),[qo.name,"I18nD"].forEach(s=>e.component(s,qo))),e.directive("t",ac(t))}const lc=Se("global-vue-i18n");function ic(e={}){const t=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Hn(tt(fe.DEPRECATE_LEGACY_MODE));const n=B(e.globalInjection)?e.globalInjection:!0,r=new Map,[o,s]=cc(e,t),l=Se(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(d){return r.get(d)||null}function i(d,m){r.set(d,m)}function u(d){r.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...m){if(process.env.NODE_ENV!=="production"&&(d.__VUE_I18N__=f),d.__VUE_I18N_SYMBOL__=l,d.provide(d.__VUE_I18N_SYMBOL__,f),F(m[0])){const E=m[0];f.__composerExtend=E.__composerExtend,f.__vueI18nExtend=E.__vueI18nExtend}let g=null;!t&&n&&(g=gc(d,f.global)),__VUE_I18N_FULL_INSTALL__&&sc(d,f,...m),__VUE_I18N_LEGACY_API__&&t&&d.mixin(Zi(s,s.__composer,f));const C=d.unmount;if(d.unmount=()=>{g&&g(),f.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await Gi(d,f))throw ie(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const I=qn();if(t){const h=s;h.__enableEmitter&&h.__enableEmitter(I)}else{const h=s;h[Ge]&&h[Ge](I)}I.on("*",bt)}},get global(){return s},dispose(){o.stop()},__instances:r,__getInstance:c,__setInstance:i,__deleteInstance:u};return f}function oo(e={}){const t=a.getCurrentInstance();if(t==null)throw ie(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ie(H.NOT_INSTALLED);const n=uc(t),r=fc(n),o=aa(t),s=dc(e,o);if(s==="global")return sa(r,e,o),r;if(s==="parent"){let i=_c(n,t,e.__useComponent);return i==null&&(process.env.NODE_ENV!=="production"&&(tt(fe.NOT_FOUND_PARENT_SCOPE),void 0),i=r),i}const l=n;let c=l.__getInstance(t);if(c==null){const i=ee({},e);"__i18n"in o&&(i.__i18n=o.__i18n),r&&(i.__root=r),c=eo(i),l.__composerExtend&&(c[Vn]=l.__composerExtend(c)),hc(l,t,c),l.__setInstance(t,c)}else process.env.NODE_ENV!=="production"&&s==="local"&&(tt(fe.DUPLICATE_USE_I18N_CALLING),void 0);return c}function cc(e,t){const n=a.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Fn(e)):n.run(()=>eo(e));if(r==null)throw ie(H.UNEXPECTED_ERROR);return[n,r]}function uc(e){const t=a.inject(e.isCE?lc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ie(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function dc(e,t){return $t(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fc(e){return e.mode==="composition"?e.global:e.global.__composer}function _c(e,t,n=!1){let r=null;const o=t.root;let s=mc(t,n);for(;s!=null;){const l=e;if(e.mode==="composition")r=l.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const c=l.__getInstance(s);c!=null&&(r=c.__composer,n&&r&&!r[ra]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function mc(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function hc(e,t,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=qn();const o=n;o[Ge]&&o[Ge](r),r.on("*",bt)}},t),a.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",bt),o[Et]&&o[Et](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=o[Vn];s&&(s(),delete o[Vn])},t)}const pc=["locale","fallbackLocale","availableLocales"],jo=["t","rt","d","n","tm","te"];function gc(e,t){const n=Object.create(null);return pc.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw ie(H.UNEXPECTED_ERROR);const l=a.isRef(s.value)?{get(){return s.value.value},set(c){s.value.value=c}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,l)}),e.config.globalProperties.$i18n=n,jo.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw ie(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,jo.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const Ec=a.defineComponent({name:"i18n-d",props:ee({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||oo({useScope:e.scope,__useComponent:!0});return da(e,t,Jr,(...r)=>n[Dn](...r))}}),qo=Ec;Vi();ri(Fl);ai(Zl);si(Wr);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Me();e.__INTLIFY__=!0,xl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const fa=ic({legacy:!1,locale:"zh",fallbackLocale:"zh",globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),xe=fa.global;async function Sc(e,t){const n=await t(e);xe.setLocaleMessage(e,n),xe.locale&&xe.locale.value!==void 0?xe.locale.value=e:xe.locale=e}const He="__system:language__",Ke="zh";function bc(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||"").toLowerCase().trim()}function vc(e){return e?e.toLowerCase().trim():""}const ot=Z.defineStore("cloudSdkLanguageStore",{state:()=>({languageDefault:Ke,languageName:A.localGet(He)||Ke,languageList:{zh:"简体中文","zh-cn":"简体中文","zh-CHT":"繁體中文",en:"English",ko:"한국어",ja:"日本語",de:"Deutsch",fr:"Français",id:"Indonesia"}}),getters:{languageSelect:e=>{let t=[],n=e.languageList;for(let r in n)t.push({label:n[r],value:r});return t}},actions:{async init(){let e=bc()||Ke;e=localStorage.getItem(He)||e;const t=cvUtils.urlGetParameterAll();t.language&&(e=t.language),e=vc(e),Object.keys(this.languageList).includes(e)?this.languageName=e==="zh-cn"?"zh":e:this.languageName=Ke,localStorage.setItem(He,this.languageName)},async clear_cache(){A.localSet(He,Ke)},SA_LANGUAGE_DEFAULT(){return this.languageDefault},SA_LANGUAGE_LIST(){return this.languageList},SA_LANGUAGE_GET(){return this.languageName=localStorage.getItem(He)||Ke,this.languageName},SA_LANGUAGE_SET(e){this.languageName=e,A.localSet(He,e),xe.locale.value=e}}}),Xo="__system:themes__",Nc="light",_n="__system:layoutSidebarState__",Cc="on",zo="__system:layoutNavTabs__",yc="on",Tc="__system:layoutWatermark__",Ac="on";function Qo(){let e=typeof window<"u"&&window.navigator.userAgent.toLowerCase();return`${e.match(/Chrome/i)}`=="chrome"?"chrome":`${e.match(/Webkit/i)}`=="webkit"?"webkit":null}const ye=Z.defineStore("cloudSdkThemesStore",{state:()=>({layoutName:"",layoutNavTabs:A.localGet(zo)||yc,layoutSidebarState:A.localGet(_n)||Cc,themesName:A.localGet(Xo)||Nc,themesList:[{name:"跟随系统",value:"auto"},{name:"明亮",value:"light"},{name:"暗黑",value:"dark"}],watermarkState:A.localGet(Tc)||Ac}),actions:{async init(){["auto","light","dark"].indexOf(this.themesName);const e=cvUtils.urlGetParameterAll();e.themes&&(this.themesName=e.themes),this.synchTheme(),this.SA_THEMES_SET(this.themesName),this.layoutSidebarState=this.layoutSidebarState=="off"?"off":"on",this.SA_LAYOUT_SLIDEBAR_SET(this.layoutSidebarState),this.layoutNavTabs=this.layoutNavTabs=="off"?"off":"on",this.SA_LAYOUT_NAVTABS_SET(this.layoutNavTabs),this.watermarkState=this.watermarkState=="off"?"off":"on",this.SA_LAYOUT_WATERMARK_SET(this.watermarkState)},async clear_cache(){},SA_LAYOUT_WATERMARK_SET(e){this.watermarkState=e;const t=document.querySelector("html");t.classList.remove(e?"hideWatermark":"openWatermark"),t.classList.add(e?"openWatermark":"hideWatermark"),A.localSet(_n,e)},SA_LAYOUT_SLIDEBAR_SET(e){this.layoutSidebarState=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openSidebar":"hideSidebar"),t.classList.add(e=="on"?"openSidebar":"hideSidebar"),A.localSet(_n,e)},SA_LAYOUT_NAVTABS_SET(e){le.__POWERED_BY_QIANKUN__&&(e="off"),this.layoutNavTabs=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openNavtabs":"hideNavtabs"),t.classList.add(e=="on"?"openNavtabs":"hideNavtabs"),le.__POWERED_BY_QIANKUN__||A.localSet(zo,e)},SA_THEMES_SET(e){if(this.themesName=e||"light",!Qo()){__cc_isEEUiApp?mt.ElMessage.warning("仅Android设置支持主题功能"):mt.ElMessage.warning("仅客户端或Chrome浏览器支持主题功能");return}this.synchTheme(e)},synchTheme(e=void 0){typeof e>"u"?e=this.themesName:this.themesName=e;const t=document.body;switch(e){case"dark":if(!Qo())return;t.classList.add("sdk-theme-dark");break;case"light":let r=document.getElementById("dark-mode-style");r&&r.parentNode.removeChild(r),t.classList.remove("sdk-theme-dark");break;default:this.themesName="auto",window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.themesName="dark":this.themesName="light";break}const n=document.querySelector("html");n.classList.remove(this.themesName=="dark"?"light":"dark"),n.classList.add(this.themesName),A.localSet(Xo,this.themesName)}}});function _a(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function ma(){return window.innerHeight}function Oc(){return _a()-ma()>50?"landscape":"portrait"}const Rt=_a(),Ic=ma(),mn=Oc();var ur;window&&window.process&&((ur=window.process)!=null&&ur.type);const ro=Z.defineStore("cloudSdkWindowStore",{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:Rt,windowHeight:Ic,windowOrientation:mn,windowLandscape:mn==="landscape",windowPortrait:mn==="portrait",formLabelPosition:Rt>576?"right":"top",formLabelWidth:Rt>576?"auto":"",windowMax768:Rt<=768,winSizeName:""}),getters:{winCalcSizeName:e=>(void 0).SA_GET_SIZE_TYPE()},actions:{async init(){},init_refresh(){},isSingle(){return document.querySelector(".electron-single-micro-apps")?1:0},isPortrait(){return document.querySelector(".window-portrait")?1:0},SA_SET_WINDOW_WIDTH(e){this.windowWidth=window.innerWidth},SA_GET_SIZE_TYPE(){switch(!0){case this.windowWidth<=768:return"app-small-768";case this.windowWidth<=992:return"app-small-992";case this.windowWidth<=1200:return"app-small-1200"}},SA_GET_WINDOW_WIDTH(){return this.winSizeName=this.SA_GET_SIZE_TYPE(),this.winSizeName}}});function wc(e){return new Promise((t,n)=>{mt.ElMessageBox.confirm(e.message||"",e.title||"Warning",{confirmButtonText:e.confirmButtonText||"确认",cancelButtonText:e.cancelButtonText||"取消",showCancelButton:e.showCancelButton,type:"warning"}).then(()=>{t()}).catch(()=>{n()})})}function Lc(e){mt.ElNotification({title:e.title,message:e.message,type:e.type||"info",duration:1200,onClose:()=>{}})}function kc(e,t,n=!1){return n?!!t.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(e)?!0:r==e):t.includes(e)}function Jo(e,t){let n="";return e.includes("http://")||e.includes("https://")?n=e:n=t+e,n=n.replace(/([^:]\/)\/+/g,"$1"),n}const Zo={400:"请求错误",400:"无效请求",401:"未经授权",402:"支付请求",403:"拒绝访问",404:"请求出错",408:"请求超时",422:"请求验证",500:"响应错误",501:"服务未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"HTTP版本不受支持"},er={400:"参数错误",401:"没有权限,请变更请求",402:"支付错误",403:"检查请求域名是否添加了域名白名单",404:"未找到该请求",408:"网络异常,请检查网络设置",422:"参数验证错误",504:"请求超时,请刷新重试",500:"请检查网络或服务器"};function Dc(e,t){e=parseInt(e);let n="提示",r="程序异常,请检查网络或联系管理员";return Zo[e]&&(n=Zo[e]),er[e]&&(r=er[e]),{title:n,status:e,message:r}}class Rc{constructor(t={}){this.flagMap=t.flagMap||{},this.flagAuth=t.flagAuth||{},this.flagCurr="",this.baseURL=t.baseURL||"",this.baseMock=t.baseMock||"",this.requests=Object.assign({},t.requests||{}),this.requestTemp={},this.headers=Object.assign({},t.headers||{}),this.headerTemp={},this.configs=Object.assign({},t.configs||{}),this.configTemp={},this.customs=Object.assign({},t.customs||{}),this.customTemp={},this.encryptURL=t.encryptURL||[],this.encryptFlag=!1,this.retries=3,this.debugState=t.debug||!1,this.requestHandle=null,this._initReqHandle(t)}debugLog(){this.debugState}_initReqHandle(t){this.requestHandle=ya.create({baseURL:this.baseURL,timeout:t.timeout||5e3,retry:2,retryDelay:1e3,headers:{"Content-Type":"application/json; charset=utf-8",...this.headers},requests:{...this.requests}})}get interceptors(){return this.requestHandle.interceptors}setApiFlag(t){return this.flagMap=t||{},this}appendApiFlag(t){return this.flagMap=Object.assign({},this.flagMap,t||{}),this}setApiAuth(t){return this.flagAuth=t||{},this}appendApiAuth(t){return this.flagAuth=Object.assign({},this.flagAuth,t||{}),this}setDefHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this}setHeaders(t){return this.headerTemp=Object.assign({},this.headerTemp,t||{}),this}getHeaders(){return this.headers}setDefRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this}setRequests(t){return this.requestTemp=Object.assign({},this.requestTemp,t||{}),this}setOptions(t={}){return this.configTemp=Object.assign({},this.configTemp,t||{}),this}setCustom(t){return this.customTemp=Object.assign({},this.customTemp,t||{}),this}setSignal(t){}encrypt(){return this.encryptFlag=!0,this}__encryp_parse(t){let n=!1;if(this.encryptURL&&kc(t,this.encryptURL,!0)&&(n=!0),this.encryptFlag&&(n=!0),n){const r=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(r)||r.indexOf("Windows NT 6.0")!==-1||r.indexOf("Windows NT 6.1")!==-1||r.indexOf("Windows NT 6.2")!==-1)&&(n=!1)}return n}cancelRequest(t){if(!t)return 0;let n=[],r=0;return n.forEach((o,s)=>{o.id===t&&(r++,o.request&&o.request.abort())}),r>0&&(n=n.filter(o=>o.id!==t)),r}__parse_method_type(t){return t}async apiAll(t,n,r){let o=Jo(n,this.baseURL);this.__encryp_parse(n);let s=this.__parse_method_type(t),l=this.flagAuth[this.flagCurr]||null,c={};l&&(c=l.split(",").reduce((m,g)=>{const[C,E]=g.split("=");return m[C]=E,m},{}));let i=Object.assign({},this.headers,this.headerTemp,{}),u=Object.assign({},this.requests,this.requestTemp,r||{}),f=Object.assign({},this.configs,this.configTemp,{}),d=Object.assign({},this.customs,this.customTemp,{flag:this.flagCurr,auth:c,time:Math.floor(Date.now()/1e3)});if(s=="UPLOAD")return this.requestHandle.request({url:o,method:"post",data:r,...f,customs:d,headers:{...i,"Content-Type":"multipart/form-data"}});if(s!="DOWNLOAD")if(s=="MOCK")try{let m=n.includes(".json")?`${n}`:`${n}.json`,g=Jo(m,this.baseMock+"/");const C=await fetch(g);responseInfo.statusCode=C.status,responseInfo.errMsg="request:ok";const E=await C.json();responseInfo.data=E}catch(m){let g=m.message;g.includes("Unexpected token")&&g.includes("is not valid JSON")&&(responseInfo.data={code:200,data:{}})}else return["GET","POST","PUT","PATCH","DELETE"].includes(s)?this.requestHandle.request({url:o,method:s,data:s!=="GET"?u:void 0,params:s==="GET"?u:void 0,...f,customs:d,headers:i}):{}}flagMockPost(){const t=arguments;return this.unifyApi("flag","MOCK",t)}flagMockGet(){const t=arguments;return this.unifyApi("flag","MOCK",t)}urlMockPost(){const t=arguments;return this.unifyApi("url","MOCK",t)}urlMockGet(){const t=arguments;return this.unifyApi("url","MOCK",t)}flagGet(){const t=arguments;return this.unifyApi("flag","GET",t)}urlGet(){const t=arguments;return this.unifyApi("url","GET",t)}flagPost(){const t=arguments;return this.unifyApi("flag","POST",t)}urlPost(){const t=arguments;return this.unifyApi("url","POST",t)}flagPut(){const t=arguments;return this.unifyApi("flag","PUT",t)}urlPut(){const t=arguments;return this.unifyApi("url","PUT",t)}flagPatch(){const t=arguments;return this.unifyApi("flag","PATCH",t)}urlPatch(){const t=arguments;return this.unifyApi("url","PATCH",t)}flagDel(){const t=arguments;return this.unifyApi("flag","DELETE",t)}urlDel(){const t=arguments;return this.unifyApi("url","DELETE",t)}flagUpload(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpload(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}flagUpImg(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpImg(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}unifyApi(t,n,r){let o=this,s=r.length||0;if(s<=0||s>3){let i=`-- ${n} : 参数为(1-3)个---`;return new Promise((u,f)=>f({message:i}))}let l="",c="";if(t=="flag"){let i=r[0];typeof i=="string"&&(i=i||"",l=i==""?"":this.flagMap[i]||""),c=" flag"+n+`:传入的标示 { ${i} },未匹配到 apiUrl `,this.flagCurr=i}if(t=="url"&&(l=r[0],typeof l=="string"&&(l=l||""),c=" 未匹配到 apiUrl "),l=="")return new Promise((i,u)=>u({message:c}));if(s==1)return function(i){return o.apiAll(n,l,i)};if(s==2||s==3){let i={},u=r[1],f=Object.prototype.toString.call(u);if(f==="[object String]"||f==="[object Number]"){let d=String(u).trim();if(/^\d+$/.test(d)&&(l.endsWith("/")||(l+="/"),l+=d),s==3){let m=r[2];Object.prototype.toString.call(m)==="[object Object]"&&(i=m||{})}}else f==="[object Object]"?i=u||{}:f==="[object FormData]"&&(i=u||new FormData);return o.apiAll(n,l,i)}else return new Promise((i,u)=>u({message:" 请求错误 "}))}}const Vc=Z.defineStore("cloudSdkCommonStore",{state:()=>({loginBaseShow:!1,loadingShow:!1}),getters:{},actions:{init(){},SA_LOGIN_SHOW(e){this.loginBaseShow=e},SA_LOADING_SHOW(e){this.loadingShow=e}}}),Pc={BASE_LOAD_COMMON_API_FLAG:"/base.base_load/common/api_flag",BASE_LOAD_COMMON_API_AUTH:"/base.base_load/common/api_auth",BASE_LOAD_COMMON_API_CODE:"/base.base_load/common/api_code",BASE_ACCSYS_COMMON_KEYCLIENT:"/base.account_sys/common/key_client",BASE_SYS_COMMON_PLAT_SETTING:"/base.base_sys/common/plat_setting",BASE_SYS_COMMON_SYS_INFO:"/base.base_sys/common/system_info",SDK_FILE_COMMON_UPLOAD_SIGNATURE:"/sdks.sdk_file/common/upload_signature",SDK_MAP_ORG_SETT_KEY:"/sdks.sdk_maps/org/sett_key"},Fc={BASE_LOAD_COMMON_API_FLAG:"app:true;auth:false;",BASE_LOAD_COMMON_API_AUTH:"app:true;auth:false;",BASE_LOAD_COMMON_API_CODE:"app:true;auth:false;",BASE_ACCSYS_COMMON_KEYCLIENT:"app:true;auth:false;",BASE_SYS_COMMON_PLAT_SETTING:"app:true;auth:false;",SDK_FILE_COMMON_UPLOAD_SIGNATURE:"app=true,token=true",SDK_MAP_ORG_SETT_KEY:"app=true,token=true"},xc={100101:"未经授权,请登录"};function Mc(e){if(e.status&&e.status==401&&!le.__POWERED_BY_QIANKUN__){if(window.syCacheDialog401&&window.syCacheDialog401=="show")return!1;if(e.code==100206)window.syCacheDialog401="none";else return window.syCacheDialog401="show",ue().SA_ACCOUNT_LOGOUT(),wc({title:"友情提示",message:xc[100101],confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!1}).then(()=>{window.syCacheDialog401="none",location.href="/login"}),!1}let t=(e.status?`[ ${e.status} ] `:"")+(e.title||"提示");Lc({title:t,message:e.message,type:e.type})}let Ne=null;function ao(e={}){const t=vt();Ne=new Rc({baseURL:t.syApiBaseUrl||"",headers:{"Content-Type":"application/json; charset=utf-8",syOpenAppProject:t.syAppProjectSign||"",syOpenAppId:t.syAppConnectId||"",syOpenAppRole:t.syAppConnectRole||"",syOpenAppToken:A.localGet("syCacheAppToken")||"",Authorization:"Bearer "+A.localGet("syCacheAppJwt")||""},requests:{},encryptURL:["users/login","users/editpass","/base.account_security/common/change_pwd","users/operation","users/delete/account","base.base_sys/license","users/bot/*","dialog/msg/*"],customs:{loading:!0,isFactory:!0}});let n={},r={};e&&(n=e.ApiFlagSet||{},r=e.ApiAuthSet||{});let o=Object.assign({},Pc,n,t.syOpenApiFlag),s=Object.assign({},Fc,r,t.syOpenApiAuth);Ne.setApiFlag(o),Ne.setApiAuth(s);const l=Vc(),c=ue();return Ne.interceptors.request.use(i=>{const u=i.customs||{};if((u==null?void 0:u.loading)!=!1&&l.SA_LOADING_SHOW(!0),A.localGet("syCacheAppToken")||null){if(c.SA_ACCOUNT_CHECK_EXPIRED())return Promise.reject({status:401,code:100103})}else if(u.auth&&u.auth.token=="true")return u.showLogin&&l.SA_LOGIN_SHOW(!0),Promise.reject({status:401,code:100101});return i},i=>Promise.reject(i)),Ne.interceptors.response.use(i=>{var m;l.SA_LOADING_SHOW(!1),(m=i.config)!=null&&m.customs;let u=i.status||-1,f=i.data||{},d=f.status||f.code||-1;if(d=parseInt(d),f.msg||f.message,u!=200)return Promise.reject(i);if(u==200)return f.message&&(f.msg=f.message),Promise.resolve(f);throw{message:"请求出错,稍后重试"}},i=>{var h,S,b,N,w,L,y,P,x,X,ae,K;let u=((h=i==null?void 0:i.response)==null?void 0:h.status)||i.status||-1,f=(i==null?void 0:i.code)||"",d=i.message||((b=(S=i==null?void 0:i.response)==null?void 0:S.data)==null?void 0:b.message)||((N=i==null?void 0:i.response)==null?void 0:N.statusText)||"";u==-1&&(d.includes("timeout")||f.includes("ECONNABORTED")?u=504:d.includes("Network Error")?u=408:d.includes("Not Found")&&(u=404));let m=((L=(w=i==null?void 0:i.response)==null?void 0:w.data)==null?void 0:L.errorCode)||-1,g=((P=(y=i==null?void 0:i.response)==null?void 0:y.data)==null?void 0:P.errorMessage)||((X=(x=i==null?void 0:i.response)==null?void 0:x.data)==null?void 0:X.message),C=((K=(ae=i==null?void 0:i.config)==null?void 0:ae.customs)==null?void 0:K.flag)||"",E=Dc(u),I={type:"error",title:E.title,message:E.message,status:u,code:m,error:g||d,flag:C};return(u==400||u==422)&&(m==400||m==422||m.toString().startsWith("400"))&&(I.message=g||E.message),Mc(I),Promise.reject(I)}),Ne}function Bc(){return Ne||(Ne=ao()),Ne}const te=new Proxy({},{get(e,t){const n=Bc();return typeof n[t]=="function"?n[t].bind(n):n[t]}});function xn(e){return typeof e=="string"&&e.trim()!==""&&e!=="undefined"}const Oe="syCacheAppInfo",Ie="syCacheAppToken",dt="syCacheAppJwt",je="syCacheAppRbac",tr={nickname:"",staff_nickname:"",id:0,email:"",name:"",token:"",avatar:"",created_at:"",updated_at:"",identity:[],userid:0,department_owner:null,department:null,okr_admin_owner:null,account_nick:"十云",account_mobile_show:"****",account_avatar:"https://10ui.cn/default/avatar/avatar4.jpg",account_avatar_cdn:"https://10ui.cn/default/avatar/avatar4.jpg",business_name:""};function Uc(e){return Math.floor(Date.now()/1e3)>=e}const ue=Z.defineStore("cloudSdkAccountStore",{state:()=>({account_nick:"",accountRbacData:[],accountInfo:A.localGet(Oe)||{},accountToken:A.localGet(Ie)||"",accountJwt:A.localGet(dt)||""}),getters:{cacheBizsId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.business_id)||0},staffId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_id)||0},staffNick:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_nick)||""},accountIsLogin:e=>{var n;const t=((n=e==null?void 0:e.accountInfo)==null?void 0:n.token_time)||0;return!!(xn(e.accountToken)&&!Uc(t))},accountRole:e=>{var t;return(t=e.accountInfo)==null?void 0:t.identity},accRoleIsAdmin:e=>{var t;return((t=e.accountInfo)==null?void 0:t.acc_rules_type)=="sy-org-admin"}},actions:{async init(){const e=cvUtils.urlGetParameterAll();e.token&&A.localSet("ACC_TOKEN_CACHE_KEY",e.token),await this.SA_ACCOUNT_RBAC_REFRESH(),this.accountIsLogin?this.SA_ACCOUNT_REFRESH():this.SA_ACCOUNT_LOGOUT()},async clear_cache(){A.localDel(je),this.ACCOUNT_SET_PREV()},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=A.localGet(Ie)||"",!!xn(this.accountToken)},SA_ACCOUNT_JWT_GET(){return this.accountJwt||""},SA_ACCOUNT_TOKEN_GET(){return this.accountToken||""},SA_ACCOUNT_TOKEN_SET(e){this.accountToken=e,A.localSet(Ie,this.accountToken)},SA_ACCOUNT_CHECK_EXPIRED(e){var r;const t=((r=this==null?void 0:this.accountInfo)==null?void 0:r.token_time)||0;return(e||Math.floor(Date.now()/1e3))>=t},SA_ACCOUNT_INFO_GET(){return A.localGet(Oe)},SA_ACCOUNT_INFO_REFRESH(){return new Promise((e,t)=>{te.flagGet("BASE_ACCSYS_COMMON_INFO",{}).then(({data:n})=>{n=this._SA_ACCOUNT_INFO_PARSE(n),e(n)}).catch(n=>{t(n)})})},SA_ACCOUNT_INFO_PARSE(e){return e=e||tr,cvUtils.isEmpty(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=cvUtils.parseNumber(e.account_id),e.token_access=e.account_id>0?e.token_access||this.accountToken:"",e.account_avatar_cdn=e.account_avatar_cdn||e.per_avatar_cdn,e.account_mobile_hide=e.account_mobile_hide||e.ucenter_mobile_hide||e.ucenter_mobile,this.accountInfo=e,e},SA_ACCOUNT_INFO_SET(e){return new Promise(async t=>{const n=JSON.parse(JSON.stringify(e));this.accountInfo=this.SA_ACCOUNT_INFO_PARSE(n),this.accountToken=n.token_access,await A.idbSetItem(Oe,n),A.localSet(Oe,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=A.localGet(Oe)||tr,this.accountToken=A.localGet(Ie)||"",this.accountJwt=A.localGet(dt)||"",te.setDefHeaders({syOpenAppToken:this.accountToken||"",Authorization:"Bearer "+this.accountJwt||""})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),A.localSet(Oe,e),A.localSet(Ie,e.token_access||""),A.localSet(dt,e.token_jwt||""),A.localSet(je,""),A.idbSave(Ie,e.token_access||""),await this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),Je().QK_SEND_LOGIN_MSG()},async SA_ACCOUNT_LOGOUT(e){this.ACCOUNT_SET_PREV(),A.sessionClear(),A.localSet(Oe,""),A.localSet(Ie,""),A.localSet(dt,""),A.localSet(je,""),A.localDel(Oe),A.localDel(Ie),A.localDel(dt),A.localDel(je),this.SA_ACCOUNT_REFRESH(),Je().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){if(e=e||!1,!this.accountToken)return!1;let t=A.localGet(je)||"";e&&t==""&&await te.flagGet("ORG_SYS_BASE_MYRBAC",{}).then(n=>{n.status==100600?this.SA_ACCOUNT_LOGOUT():n.status==200&&A.localSet(je,n.data||"")})},ACCOUNT_SET_PREV(){}}}),ft="__system:keyboardConf__",hn="__syCacheApiFlag__",pn="__syCacheApiAuth__",nr="__syCacheApiCode__",or="__syCacheApiKey__",gn="__syCacheSdkConfig__",En="__syCacheSystemConfig__",rr="cacheClientId",ar="cacheClientVersion",Ct=Z.defineStore("cloudSdkSystemStore",{state:()=>({cacheServerUrl:"",cacheClientInfo:{},cacheClientId:"",cacheClientVersion:"v7",clientNewVersion:null,keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,useSSOLogin:!1,sysIsElectron:!1,sysIsEEUiApp:!1,sysIsSoftware:!1,cacheKeyboard:{},systemConfig:{},sdkConfig:{},apiKeyData:{},networkConnected:!0}),getters:{systemInfo:e=>({title:"",version:""})},actions:{async init(){await A.idbGetString("clearCache");const e=await A.idbGetString("cacheServerUrl");await A.idbSetItem("cacheServerUrl",e);const t=await A.idbGetString(ar);await A.idbSetItem(ar,this.cacheClientVersion),t!==this.cacheClientVersion?await this.clear_cache():await this.cache_read(),await this.__load_api_flag(),await this.__load_api_auth(),await this.__load_api_code(),await this.__load_api_key(),await this.__load_system_config(),await this.__load_sdk_config(),this.SA_KEYBOARD_SET(),await te.setHeaders({"Sy-Client-Platform":"pc-web","Sy-Client-Id":this.cacheClientId})},async clear_cache(){const e=A.localGet(ft);A.localSet(ft,e),await A.idbDelItem("clearCache"),await A.idbDelItem(hn),await A.idbDelItem(pn),await A.idbDelItem(gn),await A.idbDelItem(En)},async cache_read(){this.cacheServerUrl=await A.idbGetString("cacheServerUrl"),this.cacheServerUrl&&(window.systemConfig.apiUrl=this.cacheServerUrl)},async __load_api_flag(){let e=await A.idbGetItem(hn);e||await te.flagGet("BASE_LOAD_COMMON_API_FLAG",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),A.idbSetItem(hn,e)}),await te.appendApiFlag(e)},async __load_api_auth(){let e=await A.idbGetItem(pn);e||await te.flagGet("BASE_LOAD_COMMON_API_AUTH",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),A.idbSetItem(pn,e)}),await te.appendApiAuth(e)},async __load_api_code(){let e=await A.idbGetItem(nr);e||await te.flagGet("BASE_LOAD_COMMON_API_CODE",{}).then(t=>{e=t.data||{},A.idbSetItem(nr,e)})},async __load_api_key(){let e=await A.idbGetString(rr);e||(e=cvUtils.randomString(6),await A.idbSetItem(rr,e)),this.cacheClientId=e,this.apiKeyData=await A.idbGetItem(or),this.apiKeyData||await te.setOptions({encrypt:!1}).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT",{client_id:e}).then(({data:t})=>{this.apiKeyData=t,A.idbSetItem(or,this.apiKeyData)})},async __load_system_config(){let e=await A.idbGetItem(En);e?this.systemConfig=e:await te.flagGet("BASE_SYS_COMMON_PLAT_SETTING",{}).then(({data:t})=>{this.systemConfig=Object.assign({},this.systemConfig,t),A.idbSetItem(En,this.systemConfig)})},async __load_sdk_config(){let e=await A.idbGetItem(gn);e?this.sdkConfig=e:(this.sdkConfig={},ue().accountIsLogin&&await te.flagGet("SDK_MAP_ORG_SETT_KEY",{type:"qq"}).then(({data:t})=>{this.sdkConfig=Object.assign({},this.sdkConfig,t),A.idbSetItem(gn,this.sdkConfig)}))},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=A.localGet(ft);n||(A.localSet(ft,A.localGet("__keyboard:data__")),A.localDel("__keyboard:data__"));const r=e||n||{};r.screenshot_key=(r.screenshot_key||"").trim().toLowerCase(),r.send_button_app=r.send_button_app||"button",r.send_button_desktop=r.send_button_desktop||"enter",A.localSet(ft,r),this.cacheKeyboard=r,t(r)})},SA_SYS_IP_INFO(e,t){if(!cvUtils.strExists(e,"."))return;let n="__ip"+e.substring(0,1)+"__";const r=A.localSet(n);let o=cvUtils.strGetMiddle(e,"","."),s=r[o]||e;if(typeof s=="object"){typeof t=="function"&&t(s);return}const l={keyId:s||e};te.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO",{ip:e}).then(()=>{A.localSet(n,l),typeof t=="function"&&t(s)})}}});function sr(e){return e=e.replace(/^\//,""),e=e.replace(/\//g,"_"),e}function ha(e,t){t=t||1;let n="";e.path?n=e.path:e.component&&(n=e.component),e.component||(n="");let r="";if(e.name?r=e.name:n?r=sr(n):r="temp_name_"+t,r=sr(r),e.children&&e.children.length>0){let o=e.children,s=0,l=0;o.forEach((c,i)=>{c.isMenu==!0&&s++,c.isRbac==!0&&l++}),e.children_menu_num=s,e.children_opt_num=l}return{...e,path:n,name:r}}const Gc={},$c=Gc,Wc=$c.VITE_SY_PRODUCT_SIGN;function pa(e){let t=Object.prototype.toString.call(e);if(t!="[object String]"&&t!="[object Array]")return!1;let n=A.localGet("syCacheAppRbac")||"";if(t=="[object String]")return Bt(e,n);if(t==="[object Array]"){for(const r of e)if(!Bt(r,n))return!1;return!0}return!1}function Bt(e,t){if(e=e||"",e=e.trim(),e=="")return!1;e.includes("@")||(e=`${Wc}@${e}`);let n=t||A.localGet("syCacheAppRbac")||"";return n=n.trim(),xn(n)?n=='"all@all"'||n=="all@all"?!0:n.split(",").map(o=>o.trim()).includes(e):!1}const yt=Z.defineStore("cloudSdkProductStore",{state:()=>({currMenuInfo:{},menuBadge:{},menuOpeneds:[],menuOnly:[],menuOriginal:[]}),getters:{menuCurrOpeneds:e=>e.menuOpeneds,menuCurrOnly:e=>e.menuOnly},actions:{async init(e){e=e||[],e&&(this.menuOriginal=JSON.parse(JSON.stringify(e)))},async clear_cache(){},SA_SET_MENU_BADGE_KEY(e,t){this.menuBadge[e]=t},SA_PRODUCT_INFO_GET(){},SA_MENU_SET(e){this.menuTree=e||[]},SA_MENU_PARSE(){var e=[];function t(s,l){let c=[];for(let i in s){let u=s[i];u=ha(u,i),u.isMenu===!0&&(u.isRbac&&!u.path||(u.children&&u.children.length>0&&(u.children=t(u.children,l)),u.collapsable===!1&&e.push(u.name),Bt(u.name,l)&&c.push(u)))}return c}let n=JSON.parse(JSON.stringify(this.menuOriginal)),r=A.localGet("syCacheAppRbac")||"",o=t(n,r);return this.menuOpeneds=e,this.menuOnly=o,o},SA_MENU_GET(){return this.menuTree}}}),Yc=[{meta:{title:"登录",isAlone:!0},isAlone:!0,name:"login",path:"/login",component:()=>Promise.resolve().then(()=>require("./login-bfXmR5MO.cjs"))}],Hc=[{meta:{title:"不建议单独运行",isAlone:!0},isAlone:!0,name:"alone_run",path:"/alone_run",component:()=>Promise.resolve().then(()=>require("./alone_run-CU0v4Ux1.cjs"))},{meta:{title:"错误",isAlone:!0},isAlone:!0,name:"404",path:"/:catchAll(.*)",component:()=>Promise.resolve().then(()=>require("./404-DjV-wc2G.cjs"))}],Kc=[{meta:{title:"空页面",isAlone:!1},isAlone:!1,name:"none",path:"/none",component:()=>Promise.resolve().then(()=>require("./none-BY4Ey_iO.cjs"))}],Tt=Z.defineStore("cloudSdkPermissionStore",{state:()=>({originalRoutes:[],whiteList:["404","login","alone_run","none"],addRoutes:[],routeAlive:0,rbacLastStr:A.localGet("syCacheAppRbac")||"",rbacArr:[]}),actions:{async init(e){e=e||[],this.originalRoutes=e},async clear_cache(){},SA_ROUTE_ALIVE_ADD(){this.routeAlive++},SA_PERMS_ROUTER_ADD(e,t){t=t||"",t!="console_passport"&&e.addRoute(...Yc),e.addRoute(...Hc),e.addRoute(...Kc)},SA_PERMS_ROUTER_CHECK(e){let n=ha(e).name;return!!(this.whiteList.includes(n)||Bt(n,this.rbacLastStr))},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}}),lr={"org-business":"商家平台","org-operator":"运营平台","org-agent":"代理商平台","org-super":"超管平台"};async function jc(e){try{let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="shortcut icon",document.head.appendChild(t)),t.href=e,t.type="image/x-icon"}catch{}}const qc=Z.defineStore("cloudSdkApplicationStore",{state:()=>({defaultCaseInfo:{PLAT_LOGO_CDN:"https://10ui.cn/10yun-img/logo-nobg.png",PLAT_BRAND:"十云",platinfo_login_bg:"",platinfo_version:"",platinfo_title:"十云",info_logo:"",info_version:"v1.25.xxxx"}}),getters:{openCaseInfo:e=>{let t=window.shiyunProductInfo||{},n=vt(),r=Ct().systemConfig||{},o=n.syAppConnectRole,s=Object.assign({},e.defaultCaseInfo,t),l=n.syProductTitle||"ShiyunProduct",c=lr[o]?lr[o]:"管理系统",i=l;const u=r.PLAT_BRAND||(s==null?void 0:s.PLAT_BRAND),f=r.PLAT_LOGO_CDN||s.PLAT_LOGO_CDN;f&&jc(f);const d=c||"十云";let m="";return o=="org-business"&&(m=r.BIZS_LOGIN_BG||s.platinfo_login_bg),{LAST_IP_LOGO:f,LAST_IP_TITLE:i,LAST_IP_TYPE:d,LAST_IP_BRAND:u||i,LAST_IP_LOGIN_BG:m}}},actions:{async init(){},async __load_license(){}}});function Xc(){return new Promise(async e=>{ot().clear_cache(),ye().clear_cache(),Ct().clear_cache(),ue().clear_cache(),yt().clear_cache(),A.idbSetItem("cacheClearHandle","handle").then(t=>{e()})})}function zc(){return{computed:{...Z.mapState(Je,["qiankunExistState"]),...Z.mapState(ot,["languageName","languageList","languageSelect"]),...Z.mapState(ye,["themesName","themesList","layoutNavTabs","layoutSidebarState"]),...Z.mapState(ro,["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","formLabelPosition"]),...Z.mapState(Ct,["cacheServerUrl","systemConfig","sysIsElectron","sysIsEEUiApp","sysIsSoftware"]),...Z.mapState(ue,["accountIsLogin","accountInfo","accountToken","accountRole","accountRbacData","accRoleIsAdmin","staffId","staffNick"]),...Z.mapState(yt,["menuBadge","menuCurrOpeneds","menuCurrOnly"]),...Z.mapState(qc,["openCaseInfo"])},watch:{windowActive(t){}},mounted(){}}}const re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Qc={name:"HeaderSysSettDrawer",components:{},props:{modelVal:{type:Boolean,default:!1}},data(){return{localVal:!1,frameSysTheme:"",frameSysLanguage:"",frameSysNavTabs:null,frameSidebarState:null}},watch:{modelVal(e){this.localVal=e},frameSysTheme(e){ye().SA_THEMES_SET(e)},frameSysLanguage(e){ot().SA_LANGUAGE_SET(e)},frameSidebarState(e){ye().SA_LAYOUT_SLIDEBAR_SET(e)},frameSysNavTabs(e){ye().SA_LAYOUT_NAVTABS_SET(e)}},created(){this.init()},methods:{init(){this.frameSysTheme=this.themesName,this.frameSysLanguage=this.languageName,this.frameSysNavTabs=this.layoutNavTabs,this.frameSidebarState=this.layoutSidebarState},frameTopSysSettClose(){this.localVal=!1,this.$emit("update:modelValue",this.localVal)},frameUpdateVersion(){},frameClearCache(){this.$parent.frameHandleCommand("clearCache")}}},Jc={class:"cloud-sett-drawer-body"},Zc={class:"cloud-sett-drawer-skin"};function eu(e,t,n,r,o,s){const l=a.resolveComponent("el-card"),c=a.resolveComponent("el-form-item"),i=a.resolveComponent("el-option"),u=a.resolveComponent("el-select"),f=a.resolveComponent("cv-icons"),d=a.resolveComponent("el-button"),m=a.resolveComponent("el-switch"),g=a.resolveComponent("el-form"),C=a.resolveComponent("el-drawer");return a.openBlock(),a.createBlock(C,{title:"系统设置",modelValue:o.localVal,"onUpdate:modelValue":t[6]||(t[6]=E=>o.localVal=E),direction:"rtl",size:"450px","before-close":s.frameTopSysSettClose},{default:a.withCtx(()=>[a.createElementVNode("div",Jc,[a.createVNode(g,{labelWidth:"auto","label-position":"left"},{default:a.withCtx(()=>[a.createVNode(c,{label:"风格","label-position":"top"},{default:a.withCtx(()=>[a.createElementVNode("div",Zc,[a.createVNode(l),a.createVNode(l),a.createVNode(l)])]),_:1}),a.createVNode(c,{label:"主题"},{default:a.withCtx(()=>[a.createVNode(u,{modelValue:o.frameSysTheme,"onUpdate:modelValue":t[0]||(t[0]=E=>o.frameSysTheme=E),placeholder:e.$t("选项主题"),style:{width:"150px"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.themesList,(E,I)=>(a.openBlock(),a.createBlock(i,{label:e.$t(E.name),value:E.value,key:I},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.$t(E.name)),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1}),a.createVNode(c,{label:"暗黑模式"},{default:a.withCtx(()=>[o.frameSysTheme=="light"?(a.openBlock(),a.createBlock(d,{key:0,onClick:t[1]||(t[1]=E=>o.frameSysTheme="dark"),class:"light-switch"},{default:a.withCtx(()=>[a.createVNode(f,{type:"cvSvgViewModeDark"})]),_:1})):a.createCommentVNode("",!0),o.frameSysTheme=="dark"?(a.openBlock(),a.createBlock(d,{key:1,onClick:t[2]||(t[2]=E=>o.frameSysTheme="light"),class:"dark-switch"},{default:a.withCtx(()=>[a.createVNode(f,{type:"cvSvgViewModeLight"})]),_:1})):a.createCommentVNode("",!0)]),_:1}),a.createVNode(c,{label:"侧栏显示"},{default:a.withCtx(()=>[a.createVNode(m,{modelValue:o.frameSidebarState,"onUpdate:modelValue":t[3]||(t[3]=E=>o.frameSidebarState=E),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),a.createVNode(c,{label:"导航标签栏"},{default:a.withCtx(()=>[a.createVNode(m,{modelValue:o.frameSysNavTabs,"onUpdate:modelValue":t[4]||(t[4]=E=>o.frameSysNavTabs=E),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),a.createVNode(c,{label:"语言"},{default:a.withCtx(()=>[a.createVNode(u,{modelValue:o.frameSysLanguage,"onUpdate:modelValue":t[5]||(t[5]=E=>o.frameSysLanguage=E),placeholder:e.$t("选项语言"),style:{width:"150px"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.languageSelect,(E,I)=>(a.openBlock(),a.createBlock(i,{label:E.label,value:E.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(E.label),1)]),_:2},1032,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1}),a.createVNode(c,{label:"版本"},{default:a.withCtx(()=>[a.createVNode(d,{onClick:s.frameUpdateVersion},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.$t("更新版本")),1)]),_:1},8,["onClick"])]),_:1}),a.createVNode(c,{label:"缓存"},{default:a.withCtx(()=>[a.createVNode(d,{onClick:s.frameClearCache},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.$t("清除缓存")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})])]),_:1},8,["modelValue","before-close"])}const tu=re(Qc,[["render",eu]]),nu={props:{className:""},data(){return{routeRefreshAnimation:"",routeRefreshNum:0}},computed:{...Z.mapState(Tt,["routeAlive"])},watch:{routeAlive(e){this.routeRefreshAnimation="subapp-slide-right",this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=""})}},methods:{}};function ou(e,t,n,r,o,s){const l=a.resolveComponent("router-view");return a.openBlock(),a.createBlock(l,{key:o.routeRefreshNum},{default:a.withCtx(({Component:c,route:i})=>[a.createVNode(a.Transition,{name:o.routeRefreshAnimation,mode:"out-in",appear:""},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.className),key:i.path},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c)))],2))]),_:2},1032,["name"])]),_:1})}const ga=re(nu,[["render",ou]]),ir=e=>Math.pow(e,3),ru=e=>e<.5?ir(e*2)/2:1-ir((1-e)*2)/2,au={name:"SameNavTabs",data(){return{sett_tags:[{title:"概览",path:"/index",name:"index"}],activeTag:null,contextMenuVisible:!1,contextMenuStyle:{},top:0,editableTabs:[],left:0,isDisabledCloseLeftBtnFlag:!1,isDisabledCloseRightBtnFlag:!1}},watch:{$route(e){this.activeTag=this.$route.name;for(let t in this.sett_tags)if(this.sett_tags[t].name==this.activeTag)return;this.sett_tags.push({title:e.meta.title,path:e.path,name:e.name})}},mounted(){this.$nextTick(()=>{let e=document.body.getElementsByClassName("xxxxxx-tag");e&&e.length>0&&(e[0].oncontextmenu=this.openContextMenu)})},updated(){this.tagAutoScroll()},methods:{changeGdtBase(){const e=this.$refs.navScroll1.wrap,t=Date.now(),n=e.scrollLeft,r=window.requestAnimationFrame||(s=>setTimeout(s,16)),o=()=>{const s=(Date.now()-t)/500;s<1?(e.scrollLeft=n*(1-ru(s)),r(o)):e.scrollLeft=0};r(o)},changeGdtLeft(){this.changeGdtBase()},changeGdtRight(){const e=this.$refs.navScroll1.wrap,t=e.scrollLeft;e.scrollLeft=t+300},async removeTag(e,t){if(e.path!="/index"){if(this.$route.meta.close_tip){let n=!1;if(await this.$confirm("将要关闭正在编辑的页面, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n=!1}).catch(()=>{n=!0}),n)return}if(this.sett_tags.splice(t,1),this.sett_tags.length==0){this.$router.push("/");return}e.title==this.activeTag&&t==this.sett_tags.length&&this.$router.push(this.sett_tags[t-1].path),e.title==this.activeTag&&t!=this.sett_tags.length&&this.$router.push(this.sett_tags[t].path)}},changeMenu(e){this.$route.path!=e.path&&this.$router.replace(e.path)},tagAutoScroll(){let e=document.querySelector("#tagId");e&&e.scrollIntoView()},openContextMenu(e){e.preventDefault();let t=e.srcElement?e.srcElement:e.target;if(t.id){let n=t.id.split("-")[1],r=0;for(;r<this.editableTabs.length&&this.editableTabs[r].title!=n;++r);r<=0?(this.isDisabledCloseLeftBtnFlag=!0,this.isDisabledCloseRightBtnFlag=!1):r>=this.editableTabs.length-1?(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!0):(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!1),this.contextMenuVisible=!0,this.left=e.clientX-270,this.top=e.clientY-50}},curTabReload(){},closeAllTabs(){this.closeContextMenu()},closeOtherTabs(e){this.closeContextMenu()},closeContextMenu(){this.contextMenuVisible=!1}}},su={class:"cloud-navtabs__wrap"},lu={class:"cloud-navtabs__box"},iu={class:"cloud-navtabs__main"},cu={class:"cloud-navtabs__tags"};function uu(e,t,n,r,o,s){const l=a.resolveComponent("cv-icons"),c=a.resolveComponent("cv-btn-base"),i=a.resolveComponent("el-tag"),u=a.resolveComponent("el-scrollbar"),f=a.resolveComponent("cv-btn-text");return a.openBlock(),a.createElementBlock("div",su,[a.createElementVNode("div",lu,[a.createVNode(c,{class:"btn-opt-left",onClick:s.changeGdtLeft},{default:a.withCtx(()=>[a.createVNode(l,{type:"ElIconArrowLeft"})]),_:1},8,["onClick"]),a.createElementVNode("div",iu,[a.createVNode(u,{ref:"navScroll1"},{default:a.withCtx(()=>[a.createElementVNode("div",cu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.sett_tags,(d,m)=>(a.openBlock(),a.createBlock(i,{id:o.activeTag==d.name?"tagId":"",class:a.normalizeClass(["tag xxxxxx-tag",o.activeTag==d.name?"active":""]),key:d.name,closable:d.path!=="/index",onClose:g=>s.removeTag(d,m),onClick:g=>s.changeMenu(d),"disable-transitions":"",onContextmenu:a.withModifiers(s.openContextMenu,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.title),1)]),_:2},1032,["id","class","closable","onClose","onClick","onContextmenu"]))),128))])]),_:1},512)]),a.createVNode(c,{class:"btn-opt-right",onClick:s.changeGdtRight},{default:a.withCtx(()=>[a.createVNode(l,{type:"ElIconArrowRight"})]),_:1},8,["onClick"]),a.createVNode(c,{class:"btn-opt-close"},{default:a.withCtx(()=>[t[5]||(t[5]=a.createTextVNode(" 关闭操作 ",-1)),a.createVNode(l,{type:"ElIconCaretBottom"})]),_:1}),a.withDirectives(a.createElementVNode("div",{class:"cloud-navtabs__contextmenu",style:a.normalizeStyle(o.contextMenuStyle)},[a.createElementVNode("ul",{style:a.normalizeStyle({left:o.left+"px",top:o.top+"px"})},[a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[0]||(t[0]=d=>s.curTabReload())},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode("重新加载",-1)])]),_:1})]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[1]||(t[1]=d=>s.closeAllTabs())},{default:a.withCtx(()=>[...t[7]||(t[7]=[a.createTextVNode("关闭所有",-1)])]),_:1})]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[2]||(t[2]=d=>s.closeOtherTabs("left")),disabled:o.isDisabledCloseLeftBtnFlag},{default:a.withCtx(()=>[...t[8]||(t[8]=[a.createTextVNode("关闭左边",-1)])]),_:1},8,["disabled"])]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[3]||(t[3]=d=>s.closeOtherTabs("right")),disabled:o.isDisabledCloseRightBtnFlag},{default:a.withCtx(()=>[...t[9]||(t[9]=[a.createTextVNode("关闭右边",-1)])]),_:1},8,["disabled"])]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[4]||(t[4]=d=>s.closeOtherTabs("other"))},{default:a.withCtx(()=>[...t[10]||(t[10]=[a.createTextVNode("关闭其他",-1)])]),_:1})])],4)],4),[[a.vShow,o.contextMenuVisible]])])])}const du=re(au,[["render",uu]]),fu={name:"SidebarMenuItem",props:{menuData:{type:Array,default(e){return[]}},collapse:{type:[Boolean],default:!1},isChildren:{type:[Boolean],default:!1},appData:{type:[Array,Object],default(e){return{}}}},data(){return{}},computed:{badgeStyle(){return this.collapse?"position: absolute; right: 25px; margin-top: -20px":"position: absolute; right: 30px; "}},methods:{currBadge(e){return this.menuBadge[e]&&this.menuBadge[e]>0?this.menuBadge[e]:0},handleOpenMenu(e){if(e&&e.isWindow){var t=window.open("","MyWindowName","");t.location.href=e.path}else this.jumpsAuth(e.path)}}},_u={class:"cloud-subapp-menu-icon"},mu={key:1},hu={key:0,class:"cloud-subapp-menu-icon"},pu={key:1,class:"cloud-subapp-menu-icon"};function gu(e,t,n,r,o,s){const l=a.resolveComponent("cv-icons"),c=a.resolveComponent("SidebarMenuItem",!0),i=a.resolveComponent("el-sub-menu"),u=a.resolveComponent("cv-badge"),f=a.resolveComponent("el-menu-item");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.menuData,d=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[d.isMenu==!0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[d.children&&d.children.length>0&&d.children_menu_num>0?(a.openBlock(),a.createBlock(i,{key:d.name,index:d.name},{title:a.withCtx(()=>[a.createElementVNode("div",_u,[d.meta.icon?(a.openBlock(),a.createBlock(l,{key:0,type:d.meta.icon,size:"16"},null,8,["type"])):a.createCommentVNode("",!0),!d.meta.icon&&n.collapse?(a.openBlock(),a.createElementBlock("span",mu,a.toDisplayString(d.meta.short||d.meta.title),1)):a.createCommentVNode("",!0)]),a.createElementVNode("span",null,a.toDisplayString(d.meta.title||d.meta.short),1)]),default:a.withCtx(()=>[a.createVNode(c,{appData:n.appData,menuData:d.children,collapse:n.collapse,isChildren:""},null,8,["appData","menuData","collapse"])]),_:2},1032,["index"])):(a.openBlock(),a.createBlock(f,{index:d.name,key:"b"+d.name,onClick:m=>s.handleOpenMenu(d)},{title:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.meta.short||d.meta.title),1)]),default:a.withCtx(()=>[!d.meta.icon&&n.collapse&&!n.isChildren?(a.openBlock(),a.createElementBlock("div",hu,a.toDisplayString(d.meta.short||d.meta.title),1)):(a.openBlock(),a.createElementBlock("div",pu,[d.meta.icon?(a.openBlock(),a.createBlock(l,{key:0,type:d.meta.icon,size:"16"},null,8,["type"])):a.createCommentVNode("",!0)])),d.meta.badge&&s.currBadge(d.meta.badge)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[s.currBadge(d.meta.badge)>0?(a.openBlock(),a.createBlock(u,{key:0,class:"menu-badge",type:"danger",max:999,value:s.currBadge(d.meta.badge),style:a.normalizeStyle(s.badgeStyle)},null,8,["value","style"])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0)]),_:2},1032,["index","onClick"]))],64)):a.createCommentVNode("",!0)],64))),256)}const Eu=re(fu,[["render",gu]]),Su={name:"SidebarMenuBox",components:{SidebarMenuItem:Eu},props:{collapse:{type:[Boolean],default:!1}},data(){return{menuDefaultOpeneds:[],menuCurrList:[],activeName:null}},watch:{$route(e,t){if(e.meta.treeInfo){let n=e.meta.treeInfo,r=n.length-1;for(let o=r;o>=0;o--)n[o].isMenu==!0&&n[o].isPage==!0&&(this.activeName=n[o].name||e.name)}},menuCurrOnly(e){this.menuCurrList=e},menuCurrOpeneds(e){this.menuDefaultOpeneds=e}},created(){this.menuCurrList=this.menuCurrOnly,this.menuDefaultOpeneds=this.menuCurrOpeneds},methods:{handleOpen(e,t){},handleClose(e,t){}}},bu={class:"cloud-subapp-wrap"},vu={class:"cloud-sidebar__title"},Nu={class:"cloud-subapp-menu-box"};function Cu(e,t,n,r,o,s){const l=a.resolveComponent("SidebarMenuItem"),c=a.resolveComponent("el-menu");return a.openBlock(),a.createElementBlock("div",bu,[a.createElementVNode("div",vu,a.toDisplayString(e.openCaseInfo.LAST_IP_TITLE),1),a.createElementVNode("div",Nu,[a.createVNode(c,{collapse:n.collapse,"default-openeds":o.menuDefaultOpeneds,"default-active":o.activeName,onOpen:s.handleOpen,onClose:s.handleClose},{default:a.withCtx(()=>[a.createVNode(l,{appData:e.openCaseInfo,menuData:o.menuCurrList,collapse:n.collapse},null,8,["appData","menuData","collapse"])]),_:1},8,["collapse","default-openeds","default-active","onOpen","onClose"])])])}const yu=re(Su,[["render",Cu]]),Tu={name:"ChangePassword",props:{modelValue:{type:[String,Boolean],default:!1}},data(){return{visible:!1,formData:{},formRules:{old_pwd:[{required:!0,message:"请输入旧密码"}],new_pwd1:[{required:!0,message:"请输入新密码"}],new_pwd2:[{required:!0,message:"请重新输入新密码"}]}}},watch:{modelValue(e){this.visible=e}},created(){this.visible=this.modelValue},methods:{changeValue(e){this.visible=e,this.$emit("update:modelValue",e)},handleCancel(){this.changeValue(!1),this.formData={}},handleLogout(){const e=ue();this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).finally(()=>{e.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})},handleBeforeOk(){if(this.formData.new_pwd1!==this.formData.new_pwd2)return this.$message.error("两次密码不一致"),!1;this.$request.flagPut("BASE_ACCSEC_COMMON_CHG_PWD",this.formData).then(e=>{this.$confirm("修改成功,请重新登录","重新登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).finally(()=>{this.handleLogout()})}).catch(e=>{this.$message.error(e.message)})}}},Au={class:"dialog-footer"};function Ou(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-form-item"),i=a.resolveComponent("el-form"),u=a.resolveComponent("el-button"),f=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(f,{width:520,modelValue:o.visible,"onUpdate:modelValue":t[3]||(t[3]=d=>o.visible=d),title:"修改密码","close-on-click-modal":!1,"close-on-press-escape":!1,onClose:s.handleCancel},{footer:a.withCtx(()=>[a.createElementVNode("div",Au,[a.createVNode(u,{onClick:s.handleCancel},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(u,{type:"primary",onClick:s.handleBeforeOk},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])]),default:a.withCtx(()=>[a.createVNode(i,{model:o.formData,"label-width":"auto"},{default:a.withCtx(()=>[a.createVNode(c,{prop:"old_pwd",label:"原密码"},{default:a.withCtx(()=>[a.createVNode(l,{type:"password","show-password":"",modelValue:o.formData.old_pwd,"onUpdate:modelValue":t[0]||(t[0]=d=>o.formData.old_pwd=d)},null,8,["modelValue"])]),_:1}),a.createVNode(c,{prop:"new_pwd1",label:"新密码"},{default:a.withCtx(()=>[a.createVNode(l,{type:"password","show-password":"",modelValue:o.formData.new_pwd1,"onUpdate:modelValue":t[1]||(t[1]=d=>o.formData.new_pwd1=d)},null,8,["modelValue"])]),_:1}),a.createVNode(c,{prop:"new_pwd2",label:"确认密码"},{default:a.withCtx(()=>[a.createVNode(l,{type:"password","show-password":"",modelValue:o.formData.new_pwd2,"onUpdate:modelValue":t[2]||(t[2]=d=>o.formData.new_pwd2=d)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","onClose"])}const Iu=re(Tu,[["render",Ou]]),wu={name:"SwitchBusiness",emits:["refreshFunc","reselectFunc","selectFunc"],props:{modelValue:{type:[Array],default:[]},reselectTitle:{type:[String],default:"退出选择"},reselectFunc:{type:[Function]},selectFunc:{type:[Function]}},watch:{modelValue(e){this.chainOriginalList=e,this.handleSearch()}},data(){return{chainKeyword:"",chainOriginalList:[],chainLastList:[]}},created(){this.chainOriginalList=this.modelValue,this.handleSearch()},methods:{handleSearch(e){this.chainLastList=this.chainListParse(this.chainOriginalList)},chainListParse(e){const t=e.filter(r=>{let o=this.chainKeyword.trim();return!o||r.business_name.toLowerCase().includes(o.toLowerCase())}).reduce((r,o)=>{const s=o.business_brand||"";return r[s]||(r[s]=[]),r[s].push(o),r},{}),n=[];for(const r in t)n.push({title:r,total:t[r].length||0,list:t[r]});return n.sort((r,o)=>r.title===""?-1:1),n},chainForceRefresh(){this.$emit("refreshFunc",!0)},chainReselection(){this.$emit("reselectFunc")},chainSelection(e){this.$emit("selectFunc",e)}}},Lu={class:"cloud-login-change-wrap"},ku={class:"cloud-login-change-box1"},Du={class:"cloud-login-change-search"},Ru={class:"cloud-login-change-box2"},Vu={class:"cloud-login-change-group-box"},Pu={class:"cloud-login-change-group-title"},Fu={class:"cloud-login-change-group-sublist"},xu=["onClick"],Mu={class:"cloud-login-change-item-left"},Bu={class:"cloud-login-change-item-left-icon"},Uu=["src"],Gu={class:"cloud-login-change-item-right"},$u={class:"cloud-login-change-item-right-label"},Wu={class:"cloud-login-change-item-right-label2"},Yu={class:"cloud-login-change-item-more"};function Hu(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-button"),i=a.resolveComponent("cv-icons");return a.openBlock(),a.createElementBlock("div",Lu,[a.createElementVNode("div",ku,[a.createElementVNode("div",{class:"cloud-login-change-refresh",onClick:t[0]||(t[0]=(...u)=>s.chainForceRefresh&&s.chainForceRefresh(...u))},"刷新账号权限"),a.createElementVNode("div",{class:"cloud-login-change-reset",onClick:t[1]||(t[1]=(...u)=>s.chainReselection&&s.chainReselection(...u))},a.toDisplayString(n.reselectTitle),1),t[4]||(t[4]=a.createElementVNode("div",{class:"cloud-login-change-title"},"选择商户",-1)),t[5]||(t[5]=a.createElementVNode("div",{class:"cloud-login-change-desc"},[a.createElementVNode("p",null,"为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),a.createElementVNode("p",null,"后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")],-1)),a.createElementVNode("div",Du,[a.createVNode(l,{modelValue:o.chainKeyword,"onUpdate:modelValue":t[2]||(t[2]=u=>o.chainKeyword=u),size:"large",placeholder:"搜索商户名称",clearable:"",style:{"max-width":"500px"},onInput:s.handleSearch},null,8,["modelValue","onInput"]),a.createVNode(c,{size:"large",onClick:s.handleSearch},{default:a.withCtx(()=>[...t[3]||(t[3]=[a.createTextVNode("搜索",-1)])]),_:1},8,["onClick"])]),a.createElementVNode("div",Ru,[a.createElementVNode("div",Vu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.chainLastList,(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:"cloud-login-change-group-item",key:f},[a.createElementVNode("div",Pu,a.toDisplayString(u.title||"无")+"("+a.toDisplayString(u.total)+")",1),a.createElementVNode("div",Fu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.list,(d,m)=>(a.openBlock(),a.createElementBlock("div",{class:"cloud-login-change-item-bao",key:m,onClick:g=>s.chainSelection(d)},[a.createElementVNode("div",Mu,[a.createElementVNode("div",Bu,[a.createElementVNode("img",{src:d.business_icon_cdn},null,8,Uu)])]),a.createElementVNode("div",Gu,[a.createElementVNode("div",$u,a.toDisplayString(d.business_name),1),a.createElementVNode("div",Wu,"【"+a.toDisplayString(d.acc_rules_type_str)+"】",1)]),a.createElementVNode("div",Yu,[a.createVNode(i,{type:"ElIconArrowRight"})])],8,xu))),128))])]))),128))])])])])}const Ea=re(wu,[["render",Hu]]),Ku={name:"SameFrame",components:{SidebarMenuBox:yu,SameNavTabs:du,SameRouteView:ga,HeaderSysSettDrawer:tu,ChangePassword:Iu,SwitchBusiness:Ea},props:{},data(){return{frameHeadSysSettDia:!1,frameSidebarOpen:"off",breadcrumbPath:[],full_screen:!1,toData:{},chatUnreadTotal:0,emailUnreadTotal:0,chainAccountList:[],chainShowFlag:!1,changeShowFlag:!1}},computed:{headerInfoName(){return(this.accountInfo||{}).business_name||""},headerInfoNick(){let e=this.accountInfo||{};return e.staff_nick||e.account_mobile_hide||e.account_nick}},watch:{"$route.path"(e){this.$route.meta.treeInfo&&(this.breadcrumbPath=this.$route.meta.treeInfo)}},created(){},mounted(){this.frameSidebarOpen=this.layoutSidebarState,ro().$subscribe((t,n)=>{n.windowWidth<1061?this.frameSidebarOpen="off":this.frameSidebarOpen="on",ye().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)}),window.onresize=()=>{(document.mozFullScreen||document.fullScreen||document.webkitIsFullScreen||document.webkitRequestFullScreen||document.mozRequestFullScreen||document.msFullscreenEnabled)===void 0&&(this.full_screen=!1)}},methods:{frameSwicthMenu(){this.frameSidebarOpen=this.frameSidebarOpen=="on"?"off":"on",ye().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)},framePageRefresh(){this.jumpsReload()},frameFullScreen(){let e=document.documentElement;this.full_screen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.full_screen=!this.full_screen},frameTopSysSettOpen(){this.frameHeadSysSettDia=!0},frameTopSysSettClose(e){e(),this.frameHeadSysSettDia=!1},frameHandleCommand(e){const t=ue();switch(e){case"msg":this.$message.info("应用暂未开通,敬请期待");break;case"gongdan":this.$message.info("应用暂未开通,敬请期待");break;case"account_change":this.chainRefresh();break;case"account_chgpwd":this.changeShowFlag=!0;break;case"clearCache":this.$confirm("你确定要清除缓存吗?","清除缓存",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Xc().then(n=>{window.location.reload()})}).catch(n=>{});break;case"logout":this.$confirm("你确定要登出系统吗?","退出登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).then(n=>{n.code==200&&this.$message({message:"退出成功",type:"success"})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})});break;default:this.$message.info("应用暂未开通,敬请期待");break}},chainRefresh(e){let t={};e===!0&&(t.isForceRefresh=1),this.$request.setOptions({timeout:1e4}).flagGet("ORG_SYS_BASE_CHANGE",t).then(n=>{this.chainShowFlag=!0,this.chainAccountList=n.data||[]})},chainReselection(){this.chainShowFlag=!1},chainSelection(e){let t="";e.acc_rules_type=="sy-org-admin"?t="OrgAdminPwdLogin":e.acc_rules_type=="sy-org-staff"&&(t="OrgStaffPwdLogin"),this.$request.flagPost("ORG_SYS_BASE_CHANGE",{handleType:t,business_id:e.business_id||0}).then(async n=>{n.status==200&&(await ue().SA_ACCOUNT_SIGNIN(n.data||{}),this.$message({type:"success",message:"登入成功...",duration:1e3}),location.reload())})}}},ju={class:"cloud-layout__wrap"},qu={class:"cloud-header__wrap"},Xu={class:"cloud-header__logo"},zu={href:"/",title:"官网",class:"cloud-header__logo-a"},Qu=["src"],Ju={class:"cloud-header__logo-title"},Zu={class:"cloud-header__breadcrumb"},ed={key:0,class:"chopt-num"},td={key:0,class:"chopt-num"},nd={class:"cloud-header__info"},od=["src"],rd={class:"chinfo-infoname"},ad={class:"chinfo-infobname"},sd={class:"chinfo-infouname"},ld={class:"cloud-sidebar__wrap"},id={class:"cloud-pages__wrap"};function cd(e,t,n,r,o,s){const l=a.resolveComponent("cv-icons"),c=a.resolveComponent("el-breadcrumb-item"),i=a.resolveComponent("el-breadcrumb"),u=a.resolveComponent("el-dropdown-item"),f=a.resolveComponent("el-dropdown-menu"),d=a.resolveComponent("el-dropdown"),m=a.resolveComponent("SidebarMenuBox"),g=a.resolveComponent("SameNavTabs"),C=a.resolveComponent("SameRouteView"),E=a.resolveComponent("HeaderSysSettDrawer"),I=a.resolveComponent("ChangePassword"),h=a.resolveComponent("SwitchBusiness");return a.openBlock(),a.createElementBlock("div",ju,[a.createElementVNode("header",qu,[a.createElementVNode("div",Xu,[a.createElementVNode("a",zu,[a.createElementVNode("img",{class:"cloud-header__logo-img",src:e.openCaseInfo.LAST_IP_LOGO,alt:""},null,8,Qu)]),a.createElementVNode("div",Ju,a.toDisplayString(e.openCaseInfo.LAST_IP_BRAND),1)]),a.createElementVNode("div",{class:"cloud-header__opt",onClick:t[0]||(t[0]=(...S)=>s.frameSwicthMenu&&s.frameSwicthMenu(...S))},[o.frameSidebarOpen=="on"?(a.openBlock(),a.createBlock(l,{key:0,type:"ElIconFold",size:"20"})):a.createCommentVNode("",!0),o.frameSidebarOpen=="off"?(a.openBlock(),a.createBlock(l,{key:1,type:"ElIconExpand",size:"20"})):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:"cloud-header__opt",onClick:t[1]||(t[1]=(...S)=>s.framePageRefresh&&s.framePageRefresh(...S))},[a.createVNode(l,{type:"ElIconRefreshRight",size:"20"})]),a.createElementVNode("div",Zu,[a.createVNode(i,{separator:"/"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.breadcrumbPath,(S,b)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[b==o.breadcrumbPath.length-1||!S.path||S.path==""?(a.openBlock(),a.createBlock(c,{key:b,class:"no-redirect"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(S.title),1)]),_:2},1024)):(a.openBlock(),a.createBlock(c,{key:"b"+b,to:{path:S.path}},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(S.title),1)]),_:2},1032,["to"]))],64))),256))]),_:1})]),t[13]||(t[13]=a.createElementVNode("div",{class:"cloud-header__seat"},null,-1)),a.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[2]||(t[2]=S=>s.frameHandleCommand("msg"))},[a.createVNode(l,{type:"ElIconChatLineRound",size:"20"}),o.chatUnreadTotal>0?(a.openBlock(),a.createElementBlock("em",ed,a.toDisplayString(o.chatUnreadTotal>99?"99+":o.chatUnreadTotal),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[3]||(t[3]=S=>s.frameHandleCommand("gongdan"))},[a.createVNode(l,{type:"ElIconMessage",size:"20"}),o.emailUnreadTotal>0?(a.openBlock(),a.createElementBlock("em",td,a.toDisplayString(o.emailUnreadTotal>99?"99+":o.emailUnreadTotal),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",nd,[a.createVNode(d,{onCommand:s.frameHandleCommand,"popper-class":"cloud-header__info_dropdown"},{dropdown:a.withCtx(()=>[a.createVNode(f,null,{default:a.withCtx(()=>[a.createVNode(u,{command:"account_change"},{default:a.withCtx(()=>[a.createVNode(l,{type:"cvSvgPeopleSwitch",size:"15"}),t[9]||(t[9]=a.createTextVNode(" 切换账号 ",-1))]),_:1}),a.createVNode(u,{command:"account_chgpwd"},{default:a.withCtx(()=>[a.createVNode(l,{type:"cvSvgBaseLockOff",size:"15"}),t[10]||(t[10]=a.createTextVNode(" 修改密码 ",-1))]),_:1}),a.createVNode(u,{command:"clearCache",divided:""},{default:a.withCtx(()=>[a.createVNode(l,{type:"ElIconDelete",size:"15"}),t[11]||(t[11]=a.createTextVNode(" 清除缓存 ",-1))]),_:1}),a.createVNode(u,{command:"logout"},{default:a.withCtx(()=>[a.createVNode(l,{type:"cvSvgArrowExportRight",size:"14"}),t[12]||(t[12]=a.createTextVNode(" 退出登录 ",-1))]),_:1})]),_:1})]),default:a.withCtx(()=>[a.createElementVNode("span",null,[a.createElementVNode("img",{class:"chinfo-avatar",src:e.accountInfo.account_avatar_cdn,title:"头像"},null,8,od),a.createElementVNode("div",rd,[a.createElementVNode("div",ad,a.toDisplayString(s.headerInfoName),1),a.createElementVNode("div",sd,a.toDisplayString(s.headerInfoNick),1)]),a.createVNode(l,{type:"ElIconArrowDown"})])]),_:1},8,["onCommand"])]),a.createElementVNode("div",{title:"全屏",class:"cloud-header__opt",onClick:t[4]||(t[4]=(...S)=>s.frameFullScreen&&s.frameFullScreen(...S)),style:{"min-width":"50px"}},[o.full_screen?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(l,{key:0,type:"cvSvgArrowScreenUnfold",size:"20"})),o.full_screen?(a.openBlock(),a.createBlock(l,{key:1,type:"cvSvgArrowScreenFold",size:"20"})):a.createCommentVNode("",!0)]),a.createElementVNode("div",{title:"设置",class:"cloud-header__opt",onClick:t[5]||(t[5]=(...S)=>s.frameTopSysSettOpen&&s.frameTopSysSettOpen(...S)),style:{"min-width":"50px"}},[a.createVNode(l,{type:"cvSvgBaseSetting",size:"20"})])]),a.createElementVNode("section",ld,[a.createVNode(m,{collapse:o.frameSidebarOpen=="off"},null,8,["collapse"])]),a.createElementVNode("section",id,[a.withDirectives(a.createVNode(g,null,null,512),[[a.vShow,e.layoutNavTabs=="on"]]),a.createVNode(C,{className:"cloud-pages__box"})]),a.createVNode(E,{modelValue:o.frameHeadSysSettDia,"onUpdate:modelValue":t[6]||(t[6]=S=>o.frameHeadSysSettDia=S)},null,8,["modelValue"]),a.createVNode(I,{modelValue:o.changeShowFlag,"onUpdate:modelValue":t[7]||(t[7]=S=>o.changeShowFlag=S)},null,8,["modelValue"]),o.chainShowFlag?(a.openBlock(),a.createBlock(h,{key:0,modelValue:o.chainAccountList,"onUpdate:modelValue":t[8]||(t[8]=S=>o.chainAccountList=S),reselectTitle:"取消切换",onRefreshFunc:s.chainRefresh,onReselectFunc:s.chainReselection,onSelectFunc:s.chainSelection,style:{background:"#fff","z-index":"1005"}},null,8,["modelValue","onRefreshFunc","onReselectFunc","onSelectFunc"])):a.createCommentVNode("",!0)])}const ud=re(Ku,[["render",cd]]),dd={data(){return{watemarkText:"shiyun"}},computed:{watemarkConf(){let e=this.openCaseInfo.LAST_IP_BRAND||"",n=ue().accountInfo||null;return n&&n.account_mobile_hide&&(e=n.business_name+n.account_mobile_hide),{content:e,zIndex:-1,rotate:-22,gap:[100,100],offset:[],font:{fontSize:16,color:this.fontColor}}},fontColor(){return this.themesName=="dark"?"rgba(255, 255, 255, .15)":"rgba(0, 0, 0, .15)"}}};function fd(e,t,n,r,o,s){const l=a.resolveComponent("el-watermark");return a.openBlock(),a.createBlock(l,a.mergeProps(s.watemarkConf,{style:{height:"100%"}}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16)}const _d=re(dd,[["render",fd]]),md={name:"SdkFormEdit",props:{modelValue:{type:[Object],default:()=>({})},fieldsList:{type:[Array],default:()=>[]}},data(){return{formRules:{},formData:{},miaoToShichang:{}}},watch:{modelValue(e){this.formData=e},formData:{handler(e,t){this.$emit("update:modelValue",e),this.parseData()},deep:!0}},created(){this.formData=this.modelvalue||{}},methods:{parseData(){for(let e in this.fieldsList){let t=this.fieldsList[e];t.field_form_type=="input_second"&&this.$watch(`formData.${t.field_form_key}`,n=>{this.miaoToShichang[t.field_form_key]=cvUtils.secondsFormat(n)}),t.field_form_default&&(this.formData[t.field_form_key]=this.formData[t.field_form_key]||t.field_form_default)}}}},hd={style:{"font-size":"12px"}},pd={style:{color:"red","font-weight":"bold"}},gd={class:"multiline-text"};function Ed(e,t,n,r,o,s){const l=a.resolveComponent("cv-upload-image"),c=a.resolveComponent("cv-input-text"),i=a.resolveComponent("cv-input-number"),u=a.resolveComponent("cv-input-digit"),f=a.resolveComponent("cv-textarea"),d=a.resolveComponent("cv-radio-opt-base"),m=a.resolveComponent("cv-radio-group"),g=a.resolveComponent("cv-checkbox-opt-base"),C=a.resolveComponent("cv-checkbox-group"),E=a.resolveComponent("cv-form-item"),I=a.resolveComponent("cv-form-base");return a.openBlock(),a.createBlock(I,{ref:"refFormBase",rules:o.formRules,model:o.formData},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.fieldsList,(h,S)=>(a.openBlock(),a.createBlock(E,{key:S,label:h.field_form_label,required:h.field_form_require=="on"},a.createSlots({default:a.withCtx(()=>[h.field_form_type=="upload_image"?(a.openBlock(),a.createBlock(l,{key:0,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b,initValue:o.formData[h.field_form_key+"_CDN"],"onUpdate:initValue":b=>o.formData[h.field_form_key+"_CDN"]=b},null,8,["modelValue","onUpdate:modelValue","initValue","onUpdate:initValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_text"?(a.openBlock(),a.createBlock(c,{key:1,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_number"?(a.openBlock(),a.createBlock(i,{key:2,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_digit"?(a.openBlock(),a.createBlock(u,{key:3,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{append:a.withCtx(()=>[...t[0]||(t[0]=[a.createTextVNode("元",-1)])]),_:1},8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_second"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[a.createVNode(i,{modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"]),a.createElementVNode("span",hd,[t[1]||(t[1]=a.createTextVNode(" 计算为 ",-1)),a.createElementVNode("span",pd,":"+a.toDisplayString(o.miaoToShichang[h.field_form_key]),1)])],64)):a.createCommentVNode("",!0),h.field_form_type=="textarea_base"?(a.openBlock(),a.createBlock(f,{key:5,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="encryption"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:6},[a.createVNode(f,{modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"]),t[2]||(t[2]=a.createElementVNode("div",{style:{color:"#999","font-size":"12px"}},"加密字段配置后,下次呈现加密内容,请自行保存加密原数据",-1))],64)):a.createCommentVNode("",!0),h.field_form_type=="radio_switch"?(a.openBlock(),a.createBlock(m,{key:7,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{default:a.withCtx(()=>[a.createVNode(d,{label:"开启",value:"on"},{default:a.withCtx(()=>[...t[3]||(t[3]=[a.createTextVNode("开启",-1)])]),_:1}),a.createVNode(d,{label:"关闭",value:"off"},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("关闭",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="radio_base"?(a.openBlock(),a.createBlock(m,{key:8,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.field_form_option,(b,N)=>(a.openBlock(),a.createBlock(d,{key:N,value:b.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="checkbox_base"?(a.openBlock(),a.createBlock(C,{key:9,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.field_form_option,(b,N)=>(a.openBlock(),a.createBlock(g,{key:N,label:b.label,value:b.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.label),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0)]),_:2},[h.field_form_tip?{name:"tip",fn:a.withCtx(()=>[a.createElementVNode("div",gd,a.toDisplayString(h.field_form_tip),1)]),key:"0"}:void 0]),1032,["label","required"]))),128))]),_:1},8,["rules","model"])}const Sd=re(md,[["render",Ed]]),bd={emits:["handleCallback","close"],props:{limit:{type:[Number],default:1}},data(){return{isLoading:!0,leftFilterText:"",leftTreeProps:{children:"children",label:"label"},leftTreeList:[],imageList:[],activeImageState:{},activeImageUrl:[],imageTextEditState:{},imgPageCurr:1,imgPageSize:21,imgPageTotal:0,upAction:"",upFileList:[]}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.label.indexOf(e)!==-1:!0},leftClickNode(e){},initLeftData(){this.$request.flagGet("SDK_FILE_ORG_FILE_LOG_GROUP",{}).then(e=>{let t=e.data||[];this.leftTreeList=[{label:"全部图片"}];for(let n in t)this.leftTreeList.push({label:t[n].filelog_sign||"无"});this.isLoading=!1}),this.isLoading=!1},initRightData(){this.$request.flagGet("SDK_FILE_ORG_FILE_LOG",{page:this.imgPageCurr,pagesize:this.imgPageSize}).then(e=>{this.imageList=e.data||[],this.imgPageTotal=e.total||0,this._initImageState()})},handleConfirm(e){e(),this.$emit("handleCallback",this.activeImageUrl),this.$emit("close")},handleClose(){this.$emit("close")},handleClickImage(e,t,n){let r=t.filelog_id,o=t.filelog_full_path,s=t.cdn_full_path;for(let l in this.activeImageUrl)if(o==this.activeImageUrl[l].save_full_path){this.activeImageUrl.splice(l,1),this.activeImageState[n]=!1;return}if(this.activeImageUrl.length+1>this.limit)return this.$message.error("超出数量"+this.limit),!1;this.activeImageUrl.push({filelog_id:r,save_full_path:o,cdn_full_path:s}),this.activeImageState[n]=!0},badgeValue(e){const t=this.activeImageUrl.findIndex(n=>n.filelog_id===e);return t!==-1?t+1:0},handleSizeChange(e){},handleCurrentChange(e){this.imgPageCurr=e,this.initRightData()},upHandleRemove(e,t){},upHandlePreview(e){},handleClickEditImageText(e){this.imageTextEditState[e]=!this.imageTextEditState[e]},_initImageState(){for(let e in this.imageList)this.imageTextEditState[e]=!1,this.activeImageState[e]=!1}}},vd={"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading",class:"cloud-dialog-choice-wrap"},Nd={style:{width:"100%",height:"500px"}},Cd={class:"cloud-dia-choice-box"},yd={class:"cloud-dia-choice-left"},Td={class:"cloud-dia-choice-right"},Ad={class:"cloud-dia-right-tools"},Od={class:"cloud-dia-right-list"},Id=["src","onClick"],wd={class:"cloud-dia-right-item_text"},Ld={key:1},kd={style:{padding:"10px 20px 0 0","text-align":"right","box-sizing":"border-box"}};function Dd(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-tree"),i=a.resolveComponent("cv-btn-base"),u=a.resolveComponent("el-upload"),f=a.resolveComponent("cv-select-tree"),d=a.resolveComponent("el-badge"),m=a.resolveComponent("cv-icons"),g=a.resolveComponent("el-pagination"),C=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",vd,[a.createElementVNode("div",Nd,[a.createElementVNode("section",Cd,[a.createElementVNode("section",yd,[t[1]||(t[1]=a.createElementVNode("div",{class:"cloud-dia-left-title"},"类别",-1)),a.createVNode(l,{class:"cloud-dia-left-filter",modelValue:o.leftFilterText,"onUpdate:modelValue":t[0]||(t[0]=E=>o.leftFilterText=E),placeholder:"请搜索",clearable:""},null,8,["modelValue"]),a.createVNode(c,{ref:"refDiaSelectLeft",class:"cloud-dia-left-tree",data:o.leftTreeList,props:o.leftTreeProps,"default-expand-all":"","filter-node-method":s.leftFilterNode,onNodeClick:s.leftClickNode},null,8,["data","props","filter-node-method","onNodeClick"])]),a.createElementVNode("section",Td,[a.createElementVNode("div",Ad,[a.createVNode(u,{class:"dialog-choice-image-upload",action:o.upAction,"on-preview":s.upHandlePreview,"on-remove":s.upHandleRemove,"show-file-list":!1,"file-list":o.upFileList},{default:a.withCtx(()=>[a.createVNode(i,{type:"primary"},{default:a.withCtx(()=>[...t[2]||(t[2]=[a.createTextVNode("上传图片",-1)])]),_:1})]),_:1},8,["action","on-preview","on-remove","file-list"]),a.createVNode(i,{type:"primary",disabled:o.activeImageUrl.length===0},{default:a.withCtx(()=>[...t[3]||(t[3]=[a.createTextVNode("使用选中图片",-1)])]),_:1},8,["disabled"]),a.createVNode(i,{type:"danger",disabled:o.activeImageUrl.length===0},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("删除图片",-1)])]),_:1},8,["disabled"]),a.createVNode(f,{dataField:o.leftTreeProps,dataLists:o.leftTreeList,placeholder:"图片移动至",style:{"margin-left":"10px",width:"160px"}},null,8,["dataField","dataLists"])]),a.createElementVNode("div",Od,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.imageList,(E,I)=>(a.openBlock(),a.createElementBlock("div",{class:"cloud-dia-right-item",key:I},[a.createVNode(d,{class:a.normalizeClass(s.badgeValue(E.filelog_id)==0&&"isshowBadge"),value:s.badgeValue(E.filelog_id)},{default:a.withCtx(()=>[a.createElementVNode("img",{class:a.normalizeClass(o.activeImageState[I]&&"active"),src:E.cdn_full_path,alt:"",onClick:h=>s.handleClickImage(h,E,I)},null,10,Id)]),_:2},1032,["class","value"]),a.createElementVNode("div",wd,[o.imageTextEditState[I]?(a.openBlock(),a.createBlock(l,{key:0,label:"文本输入",modelValue:E.filelog_full_name,"onUpdate:modelValue":h=>E.filelog_full_name=h},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createElementBlock("p",Ld,a.toDisplayString(E.filelog_full_name),1)),a.createVNode(m,{type:"ElIconEdit",onClick:h=>s.handleClickEditImageText(I)},null,8,["onClick"])])]))),128))]),a.createVNode(g,{background:"",onSizeChange:s.handleSizeChange,onCurrentChange:s.handleCurrentChange,"current-page":o.imgPageCurr,"page-size":o.imgPageSize,layout:"total, prev, pager, next, jumper",total:o.imgPageTotal},null,8,["onSizeChange","onCurrentChange","current-page","page-size","total"])])])]),a.createElementVNode("div",kd,[a.createVNode(i,{onClick:s.handleClose},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(i,{type:"primary",onClick:s.handleConfirm,autoLoading:""},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])])),[[C,o.isLoading]])}const Sa=re(bd,[["render",Dd]]),Rd={name:"SdkManageImage",emits:["update:modelValue","update:initValue"],props:{modelValue:{type:[String,Array],default:""},initValue:{type:[String,Array],default:""},showBig:{type:[Boolean],default:!1},multiple:{type:[Boolean],default:!1},limit:{type:[String,Number],default:1}},data(){return{localValue:"",localInitVal:""}},watch:{modelValue(e){this.localValue=e||""},initValue(e){this.localInitVal=e||""},localValue(e){this.$emit("update:modelValue",e)},localInitVal(e){this.$emit("update:initValue",e)}},created(){},methods:{handleDiaImage(e){this.$cvDialogRender(Sa,{title:"选择图片",width:"1100px"},{},{handleCallback:t=>{let n=t[0];this.localValue=n.save_full_path,this.localInitVal=n.cdn_full_path}}).show()}}},Vd={style:{display:"flex","flex-direction":"column",gap:"10px"}};function Pd(e,t,n,r,o,s){const l=a.resolveComponent("cv-btn-base"),c=a.resolveComponent("cv-upload-image");return a.openBlock(),a.createElementBlock("view",Vd,[a.createVNode(l,{onClick:s.handleDiaImage,style:{width:"150px"}},{default:a.withCtx(()=>[...t[2]||(t[2]=[a.createTextVNode("选择图片",-1)])]),_:1},8,["onClick"]),a.createVNode(c,{modelValue:o.localValue,"onUpdate:modelValue":t[0]||(t[0]=i=>o.localValue=i),showBig:n.showBig,multiple:n.multiple,limit:n.limit,initValue:o.localInitVal,"onUpdate:initValue":t[1]||(t[1]=i=>o.localInitVal=i)},null,8,["modelValue","showBig","multiple","limit","initValue"])])}const Fd=re(Rd,[["render",Pd]]),xd={emits:["handleCallback","close"],props:{is_one_close:{type:[Boolean],default:!1}},data(){return{isLoading:!0,leftFilterText:"",leftTreeProps:{children:"tree",label:"cat_name"},leftTreeList:[],rightSoData:{},rightSoRules:{},tableRefresh:0,tableLaseData:[],tableConfig:{apiFunc:this.$request.flagGet("GOODS_SYS_BUS_GOODS_ALL"),where:{}}}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.cat_name.indexOf(e)!==-1:!0},leftClickNode(e){this.$refs.refDiaSelectTb.searchSubmit({cat_id:e.cat_id||0,keyword:this.rightSoData.key_goods_name||""})},initLeftData(){this.$request.flagGet("GOODS_SYS_BUS_SETT_CATEGORY",{}).then(e=>{this.leftTreeList=e.data||[],this.isLoading=!1}),this.isLoading=!1},initRightData(){},handleSelect(e){this.$message.success("已选择:"+e.goods_name),this.$emit("handleCallback",e),this.is_one_close&&this.$emit("close")},handleConfirm(e){e(),this.$emit("close")},handleClose(){this.$emit("close")}}},Md={"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading",class:"cloud-dialog-choice-wrap"},Bd={style:{width:"100%",height:"500px"}},Ud={class:"cloud-dia-choice-box"},Gd={class:"cloud-dia-choice-left"},$d={class:"cloud-dia-choice-right"},Wd={style:{padding:"10px 20px 0 0","text-align":"right","box-sizing":"border-box"}};function Yd(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-tree"),i=a.resolveComponent("cv-input-text"),u=a.resolveComponent("cv-form-item"),f=a.resolveComponent("cv-btn-base"),d=a.resolveComponent("cv-form-inline"),m=a.resolveComponent("cvTbColumnCheck"),g=a.resolveComponent("cvTbColumnText"),C=a.resolveComponent("cvTbColumnImg"),E=a.resolveComponent("cv-btn-text"),I=a.resolveComponent("cvTbColumnOpt"),h=a.resolveComponent("cvTableBase"),S=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",Md,[a.createElementVNode("div",Bd,[a.createElementVNode("section",Ud,[a.createElementVNode("section",Gd,[t[4]||(t[4]=a.createElementVNode("div",{class:"cloud-dia-left-title"},"分类",-1)),a.createVNode(l,{class:"cloud-dia-left-filter",modelValue:o.leftFilterText,"onUpdate:modelValue":t[0]||(t[0]=b=>o.leftFilterText=b),placeholder:"请搜索",clearable:""},null,8,["modelValue"]),a.createVNode(c,{ref:"refDiaSelectLeft",class:"cloud-dia-left-tree",data:o.leftTreeList,props:o.leftTreeProps,"default-expand-all":"","filter-node-method":s.leftFilterNode,onNodeClick:s.leftClickNode},null,8,["data","props","filter-node-method","onNodeClick"])]),a.createElementVNode("section",$d,[a.createVNode(d,{ref:"refFormBase",rules:o.rightSoRules,model:o.rightSoData},{default:a.withCtx(()=>[a.createVNode(u,{label:"商品搜索"},{default:a.withCtx(()=>[a.createVNode(i,{modelValue:o.rightSoData.key_goods_name,"onUpdate:modelValue":t[1]||(t[1]=b=>o.rightSoData.key_goods_name=b),placeholder:"请输入商品名称,关键字"},null,8,["modelValue"])]),_:1}),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(f,{icon:"ElIconSearch",type:"primary",onClick:t[2]||(t[2]=b=>e.$refs.refDiaSelectTb.searchSubmit(o.rightSoData))},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode(" 搜索 ",-1)])]),_:1}),a.createVNode(f,{icon:"el-icon-refresh-left",onClick:t[3]||(t[3]=b=>(o.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit()))},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode(" 重置 ",-1)])]),_:1})]),_:1})]),_:1},8,["rules","model"]),a.createVNode(h,{ref:"refDiaSelectTb",tableConfig:o.tableConfig,tableRefresh:o.tableRefresh,height:"390"},{default:a.withCtx(()=>[a.createVNode(m,{label:"选择"}),a.createVNode(g,{label:"商品分类",prop:"cat_name"}),a.createVNode(C,{label:"封面图",prop:"goods_thumb_cdn"}),a.createVNode(g,{label:"商品ID",prop:"goods_id"}),a.createVNode(g,{label:"商品名称",prop:"goods_name"}),a.createVNode(g,{label:"商品售价",prop:"goods_price_market"}),a.createVNode(g,{label:"扩展ID",prop:"goods_expand_id"}),a.createVNode(I,{label:"操作",width:"100"},{default:a.withCtx(({row:b,$index:N})=>[a.createVNode(E,{onClick:w=>s.handleSelect(b)},{default:a.withCtx(()=>[...t[7]||(t[7]=[a.createTextVNode("选择",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["tableConfig","tableRefresh"])])])]),a.createElementVNode("div",Wd,[a.createVNode(f,{onClick:s.handleClose},{default:a.withCtx(()=>[...t[8]||(t[8]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(f,{type:"primary",onClick:s.handleConfirm,autoLoading:""},{default:a.withCtx(()=>[...t[9]||(t[9]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])])),[[S,o.isLoading]])}const Hd=re(xd,[["render",Yd]]),Kd={emits:["handleCallback","close"],props:{is_one_close:{type:[Boolean],default:!1}},data(){return{isLoading:!0,leftFilterText:"",leftTreeProps:{children:"tree",label:"dept_name"},leftTreeList:[],rightSoData:{},rightSoRules:{},tableRefresh:0,tableLaseData:[],tableConfig:{apiFunc:this.$request.flagGet("ORG_SYS_BASE_STAFF"),where:{}}}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.dept_name.indexOf(e)!==-1:!0},leftClickNode(e){this.$refs.refDiaSelectTb.searchSubmit({dept_id:e.dept_id||0,keyword:this.rightSoData.key_staff_name||""})},initLeftData(){this.$request.flagGet("ORG_SYS_BASE_DEPT",{}).then(e=>{this.leftTreeList=e.data||[],this.isLoading=!1}),this.isLoading=!1},initRightData(){},handleSelect(e){this.$message.success("已选择:"+e.staff_name),this.$emit("handleCallback",e),this.is_one_close&&this.$emit("close")},handleConfirm(e){e(),this.$emit("close")},handleClose(){this.$emit("close")}}},jd={"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading",class:"cloud-dialog-choice-wrap"},qd={style:{width:"100%",height:"500px"}},Xd={class:"cloud-dia-choice-box"},zd={class:"cloud-dia-choice-left"},Qd={class:"cloud-dia-choice-right"},Jd={style:{padding:"10px 20px 0 0","text-align":"right","box-sizing":"border-box"}};function Zd(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-tree"),i=a.resolveComponent("cv-input-text"),u=a.resolveComponent("cv-form-item"),f=a.resolveComponent("cv-btn-base"),d=a.resolveComponent("cv-form-inline"),m=a.resolveComponent("cvTbColumnCheck"),g=a.resolveComponent("cvTbColumnText"),C=a.resolveComponent("cvTbColumnImg"),E=a.resolveComponent("cv-btn-text"),I=a.resolveComponent("cvTbColumnOpt"),h=a.resolveComponent("cvTableBase"),S=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",jd,[a.createElementVNode("div",qd,[a.createElementVNode("section",Xd,[a.createElementVNode("section",zd,[t[4]||(t[4]=a.createElementVNode("div",{class:"cloud-dia-left-title"},"部门",-1)),a.createVNode(l,{class:"cloud-dia-left-filter",modelValue:o.leftFilterText,"onUpdate:modelValue":t[0]||(t[0]=b=>o.leftFilterText=b),placeholder:"请搜索",clearable:""},null,8,["modelValue"]),a.createVNode(c,{ref:"refDiaSelectLeft",class:"cloud-dia-left-tree",data:o.leftTreeList,props:o.leftTreeProps,"default-expand-all":"","filter-node-method":s.leftFilterNode,onNodeClick:s.leftClickNode},null,8,["data","props","filter-node-method","onNodeClick"])]),a.createElementVNode("section",Qd,[a.createVNode(d,{ref:"refFormBase",rules:o.rightSoRules,model:o.rightSoData},{default:a.withCtx(()=>[a.createVNode(u,{label:"名称"},{default:a.withCtx(()=>[a.createVNode(i,{modelValue:o.rightSoData.key_staff_name,"onUpdate:modelValue":t[1]||(t[1]=b=>o.rightSoData.key_staff_name=b)},null,8,["modelValue"])]),_:1}),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(f,{icon:"ElIconSearch",type:"primary",onClick:t[2]||(t[2]=b=>e.$refs.refDiaSelectTb.searchSubmit(o.rightSoData))},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode(" 搜索 ",-1)])]),_:1}),a.createVNode(f,{icon:"el-icon-refresh-left",onClick:t[3]||(t[3]=b=>(o.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit()))},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode(" 重置 ",-1)])]),_:1})]),_:1})]),_:1},8,["rules","model"]),a.createVNode(h,{ref:"refDiaSelectTb",tableConfig:o.tableConfig,tableRefresh:o.tableRefresh,height:"390"},{default:a.withCtx(()=>[a.createVNode(m,{label:"选择"}),a.createVNode(g,{label:"ID",prop:"staff_id",width:"80"}),a.createVNode(g,{label:"名称",prop:"staff_name"}),a.createVNode(C,{label:"头像",prop:"staff_avatar_cdn"}),a.createVNode(g,{label:"部门",prop:"dept_name"}),a.createVNode(g,{label:"角色",prop:"role_name"}),a.createVNode(g,{label:"性别",prop:"staff_sex",width:"60"}),a.createVNode(I,{label:"操作",width:"100"},{default:a.withCtx(({row:b,$index:N})=>[a.createVNode(E,{onClick:w=>s.handleSelect(b)},{default:a.withCtx(()=>[...t[7]||(t[7]=[a.createTextVNode("选择",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["tableConfig","tableRefresh"])])])]),a.createElementVNode("div",Jd,[a.createVNode(f,{onClick:s.handleClose},{default:a.withCtx(()=>[...t[8]||(t[8]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(f,{type:"primary",onClick:s.handleConfirm,autoLoading:""},{default:a.withCtx(()=>[...t[9]||(t[9]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])])),[[S,o.isLoading]])}const ef=re(Kd,[["render",Zd]]);(function(){if(typeof EventTarget<"u"){let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){this.func=e,typeof r!="boolean"&&(r=r||{},r.passive=!1),this.func(t,n,r)}}})();var tf={methods:{jumpsXieyi(e){let t=vt(),n="";n=t.syApiBaseUrl+"base.base_sys/show_agreement/"+e+".html",n=n+"?syOpenAppProject="+t.syAppProjectSign,n=n+"&syOpenAppId="+t.syAppConnectId,window.open(n)},jumpsBack(){this.$router.go(-1)},jumpsReload(){Tt().SA_ROUTE_ALIVE_ADD()},jumpsMsgBack(e,t){this.$message({type:"success",duration:1e3,message:e||"",onClose:()=>{this.$router.go(-1),t&&typeof t=="function"&&t()}})},jumpsWinOpen(e){window.open(e)},jumpsRefresh(){this.$router.go(0)},jumpsTabs(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsAuth(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsQiankun(e){Ps(e)}}};function nf(e){e.mixin(tf)}function cr(e,t,n){const r=t.value;if(r)pa(r)||!1||e.parentNode&&e.parentNode.removeChild(e);else throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`)}function of(e,t,n){n=n||"vue3",n=="vue2"?e.directive("auth",{inserted:cr}):e.directive("auth",{mounted:cr}),t.$_auth=pa}/*! Element Plus v2.11.4 */var rf={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function af(e){e.use(mt,{locale:rf});for(const[t,n]of Object.entries(Ta))e.component("ElIcon"+t,n)}const sf="__syCacheSdkConfig__";async function lf(e){const t=await A.idbGetItem(sf),n={signatureFn:te.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),upHeaders:{...te.getHeaders(),"Sy-Client-Platform":"pc-web","Sy-Response-Type":"json"},upResponseFn(r,o,s){return r}};e.use(Na,{imageManage:{cat_url:"",file_url:"",upload_url:"",delete_api:""},geo:{mapKey:(t==null?void 0:t.map_key)||"",mapSecret:(t==null?void 0:t.map_secret)||""},cvCodeSms:{apiFunc:te.flagPost("SDK_SMS_COMMON_SMS_SEND")},cvUploadImage:{...n},upload:{...n},cvEditorQuill:{},cvEditorMarkdown:{}});for(const[r,o]of Object.entries(Aa))e.component("cvSvg"+r,o)}async function cf(e,t){_r(t),ao(e),ot().init(),ye().init(),await Ct().init(),await ue().init()}async function uf(e,t,n,r,o="",s=null){yt().init(r),Tt().init(n);let l=e.config.globalProperties;l.$onLaunched=new Promise(i=>{l.$isResolve=i}),l.$request=te,l.$cache=A,af(e),await lf(e),of(e,l),e.mixin(zc()),e.component("SdkFormEdit",Sd),e.component("SdkManageImage",Fd),nf(e),await df(t,r,o),e.use(fa);let c=ot().SA_LANGUAGE_GET();Sc(c,s),window.$t=xe.t}async function df(e,t,n){const r=Je(),o=ue(),s=yt(),l=Tt();r.QK_SEND_MSG_REG_SUBMENU(t);let c=vt().syProductSign||"";l.SA_PERMS_ROUTER_ADD(e,c),s.SA_MENU_PARSE(),r.QK_SEND_MSG_ROUTER_BEFORE(n);let i=!1,u=!1,f=!1;e.beforeEach((d,m,g)=>{const C=d.path||"",E=m.path,I=d.query||{};let h=o.accountIsLogin;if(le.__POWERED_BY_QIANKUN__&&(h=o.SA_ACCOUNT_IS_LOGGED()),I.token,h){if(i||(s.SA_MENU_PARSE(),i=!0),E=="/"&&C=="/none"){if(l.SA_PERMS_ROUTER_CHECK({name:"index"}))return g({path:"/"})}else if(!l.SA_PERMS_ROUTER_CHECK(d))return g({path:"/none",replace:!0});if((E=="/login"||E=="/index")&&(u||(r.QK_SEND_LOGIN_MSG(),u=!0,f=!1)),["/login","/alone_run"].includes(C))return g({path:"/"});g()}else{if(s.SA_MENU_PARSE(),i=!1,f||(r.QK_SEND_LOGOUT_MSG(),u=!1,f=!0),!["/login","/alone_run"].includes(C))return g({path:"/login",replace:!0});g()}}),e.isReady().then(async()=>{}),e.afterEach(function(d,m){var g;if((g=d==null?void 0:d.meta)!=null&&g.title&&!le.__POWERED_BY_QIANKUN__){let C="管理系统",E=d.meta.title;document.title=E?`${E} - ${C}`:`${C}`}})}async function ff(e,t,n){le.__POWERED_BY_QIANKUN__?xs(e,t,n):t()}exports.HttpObj=te;exports.SameRouteView=ga;exports.SameWatermark=_d;exports.StorageObj=A;exports.SwitchBusiness=Ea;exports._export_sfc=re;exports.console=ud;exports.createHttp=ao;exports.dialogGoods=Hd;exports.dialogImage=Sa;exports.dialogStaff=ef;exports.qiankunWindow=le;exports.sdkBootstrap=ff;exports.sdkConfigGet=vt;exports.sdkConfigSet=_r;exports.sdkStartBefore=cf;exports.sdkStarup=uf;exports.useSdkAccountStore=ue;exports.useSdkLanguageStore=ot;exports.useSdkPermissionStore=Tt;exports.useSdkProductStore=yt;exports.useSdkQiankunStore=Je;exports.useSdkSystemStore=Ct;exports.useSdkThemesStore=ye;exports.useSdkWindowStore=ro;
|
|
25
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[fe.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function tt(e,...t){return Gt(Fi[e],...t)}function St(e){if(!M(e)||me(e))return e;for(const t in e)if(he(e,t))if(!t.includes("."))M(e[t])&&St(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let l=0;l<r;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in o||(o[n[l]]=$()),!M(o[n[l]])){process.env.NODE_ENV!=="production"&&(tt(fe.IGNORE_OBJ_FLATTEN,{key:n[l]}),void 0),s=!0;break}o=o[n[l]]}if(s||(me(o)?$r.includes(n[r])||delete e[t]:(o[n[r]]=e[t],delete e[t])),!me(o)){const l=o[n[r]];M(l)&&St(l)}}return e}function Zn(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,l=F(n)?n:q(r)?$():{[e]:$()};if(q(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:i,resource:u}=c;i?(l[i]=l[i]||$(),Pt(u,l[i])):Pt(u,l)}else k(c)&&Pt(JSON.parse(c),l)}),o==null&&s)for(const c in l)he(l,c)&&St(l[c]);return l}function aa(e){return e.type}function sa(e,t,n){let r=M(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=Zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(M(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(M(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Fo(e){return a.createVNode(a.Text,null,e,0)}const xo="__INTLIFY_META__",Mo=()=>[],xi=()=>!1;let Bo=0;function Uo(e){return(t,n,r,o)=>e(n,r,a.getCurrentInstance()||void 0,o)}const Mi=()=>{const e=a.getCurrentInstance();let t=null;return e&&(t=aa(e)[xo])?{[xo]:t}:null};function eo(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,o=e.flatJson,s=pe?a.ref:a.shallowRef;let l=B(e.inheritLocale)?e.inheritLocale:!0;const c=s(t&&l?t.locale.value:k(e.locale)?e.locale:gt),i=s(t&&l?t.fallbackLocale.value:k(e.fallbackLocale)||q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=s(Zn(c.value,e)),f=s(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),d=s(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let m=t?t.missingWarn:B(e.missingWarn)||Ze(e.missingWarn)?e.missingWarn:!0,g=t?t.fallbackWarn:B(e.fallbackWarn)||Ze(e.fallbackWarn)?e.fallbackWarn:!0,C=t?t.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,I=Y(e.missing)?e.missing:null,h=Y(e.missing)?Uo(e.missing):null,S=Y(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const w=t?t.modifiers:F(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,y;y=(()=>{r&&Ao(null);const v={version:Ri,locale:c.value,fallbackLocale:i.value,messages:u.value,modifiers:w,pluralRules:L,missing:h===null?void 0:h,missingWarn:m,fallbackWarn:g,fallbackFormat:E,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=f.value,v.numberFormats=d.value,v.__datetimeFormatters=F(y)?y.__datetimeFormatters:void 0,v.__numberFormatters=F(y)?y.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(v.__v_emitter=F(y)?y.__v_emitter:void 0);const O=ui(v);return r&&Ao(O),O})(),ut(y,c.value,i.value);function x(){return[c.value,i.value,u.value,f.value,d.value]}const X=a.computed({get:()=>c.value,set:v=>{y.locale=v,c.value=v}}),ae=a.computed({get:()=>i.value,set:v=>{y.fallbackLocale=v,i.value=v,ut(y,c.value,v)}}),K=a.computed(()=>u.value),$e=a.computed(()=>f.value),Ht=a.computed(()=>d.value);function Kt(){return Y(S)?S:null}function jt(v){S=v,y.postTranslation=v}function qt(){return I}function Xt(v){v!==null&&(h=Uo(v)),I=v,y.missing=h}function zt(v,O){return v!=="translate"||!O.resolvedMessage}const be=(v,O,G,Q,Ve,It)=>{x();let We;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(y.fallbackContext=t?ci():void 0),We=v(y)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(y.fallbackContext=void 0)}if(G!=="translate exists"&&J(We)&&We===Wt||G==="translate exists"&&!We){const[Pe,ba]=O();if(process.env.NODE_ENV!=="production"&&t&&k(Pe)&&zt(G,ba)&&(C&&(Yt(g,Pe)||Xr(m,Pe))&&(tt(fe.FALLBACK_TO_ROOT,{key:Pe,type:G}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:lo}=y;lo&&C&&lo.emit("fallback",{type:G,key:Pe,to:"global",groupId:`${G}:${Pe}`})}return t&&C?Q(t):Ve(Pe)}else{if(It(We))return We;throw ie(H.UNEXPECTED_RETURN_TYPE)}};function rt(...v){return be(O=>Reflect.apply(Po,null,[O,...v]),()=>wn(...v),"translate",O=>Reflect.apply(O.t,O,[...v]),O=>O,O=>k(O))}function Qt(...v){const[O,G,Q]=v;if(Q&&!M(Q))throw ie(H.INVALID_ARGUMENT);return rt(O,G,ee({resolvedMessage:!0},Q||{}))}function Jt(...v){return be(O=>Reflect.apply(wo,null,[O,...v]),()=>On(...v),"datetime format",O=>Reflect.apply(O.d,O,[...v]),()=>Mt,O=>k(O)||q(O))}function Zt(...v){return be(O=>Reflect.apply(ko,null,[O,...v]),()=>In(...v),"number format",O=>Reflect.apply(O.n,O,[...v]),()=>Mt,O=>k(O)||q(O))}function en(v){return v.map(O=>k(O)||J(O)||B(O)?Fo(String(O)):O)}const tn={normalize:en,interpolate:v=>v,type:"vnode"};function At(...v){return be(O=>{let G;const Q=O;try{Q.processor=tn,G=Reflect.apply(Po,null,[Q,...v])}finally{Q.processor=null}return G},()=>wn(...v),"translate",O=>O[kn](...v),O=>[Fo(O)],O=>q(O))}function nn(...v){return be(O=>Reflect.apply(ko,null,[O,...v]),()=>In(...v),"number format",O=>O[Rn](...v),Mo,O=>k(O)||q(O))}function Ot(...v){return be(O=>Reflect.apply(wo,null,[O,...v]),()=>On(...v),"datetime format",O=>O[Dn](...v),Mo,O=>k(O)||q(O))}function on(v){L=v,y.pluralRules=L}function rn(v,O){return be(()=>{if(!v)return!1;const G=k(O)?O:c.value,Q=Re(G),Ve=y.messageResolver(Q,v);return me(Ve)||de(Ve)||k(Ve)},()=>[v],"translate exists",G=>Reflect.apply(G.te,G,[v,O]),xi,G=>B(G))}function at(v){let O=null;const G=Wr(y,i.value,c.value);for(let Q=0;Q<G.length;Q++){const Ve=u.value[G[Q]]||{},It=y.messageResolver(Ve,v);if(It!=null){O=It;break}}return O}function st(v){const O=at(v);return O??(t?t.tm(v)||{}:{})}function Re(v){return u.value[v]||{}}function lt(v,O){if(o){const G={[v]:O};for(const Q in G)he(G,Q)&&St(G[Q]);O=G[v]}u.value[v]=O,y.messages=u.value}function an(v,O){u.value[v]=u.value[v]||{};const G={[v]:O};if(o)for(const Q in G)he(G,Q)&&St(G[Q]);O=G[v],Pt(O,u.value[v]),y.messages=u.value}function _(v){return f.value[v]||{}}function p(v,O){f.value[v]=O,y.datetimeFormats=f.value,Lo(y,v,O)}function T(v,O){f.value[v]=ee(f.value[v]||{},O),y.datetimeFormats=f.value,Lo(y,v,O)}function D(v){return d.value[v]||{}}function j(v,O){d.value[v]=O,y.numberFormats=d.value,Do(y,v,O)}function z(v,O){d.value[v]=ee(d.value[v]||{},O),y.numberFormats=d.value,Do(y,v,O)}Bo++,t&&pe&&(a.watch(t.locale,v=>{l&&(c.value=v,y.locale=v,ut(y,c.value,i.value))}),a.watch(t.fallbackLocale,v=>{l&&(i.value=v,y.fallbackLocale=v,ut(y,c.value,i.value))}));const U={id:Bo,locale:X,fallbackLocale:ae,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&t&&(c.value=t.locale.value,i.value=t.fallbackLocale.value,ut(y,c.value,i.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:K,get modifiers(){return w},get pluralRules(){return L||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(v){m=v,y.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(v){g=v,y.fallbackWarn=g},get fallbackRoot(){return C},set fallbackRoot(v){C=v},get fallbackFormat(){return E},set fallbackFormat(v){E=v,y.fallbackFormat=E},get warnHtmlMessage(){return b},set warnHtmlMessage(v){b=v,y.warnHtmlMessage=v},get escapeParameter(){return N},set escapeParameter(v){N=v,y.escapeParameter=v},t:rt,getLocaleMessage:Re,setLocaleMessage:lt,mergeLocaleMessage:an,getPostTranslationHandler:Kt,setPostTranslationHandler:jt,getMissingHandler:qt,setMissingHandler:Xt,[oa]:on};return U.datetimeFormats=$e,U.numberFormats=Ht,U.rt=Qt,U.te=rn,U.tm=st,U.d=Jt,U.n=Zt,U.getDateTimeFormat=_,U.setDateTimeFormat=p,U.mergeDateTimeFormat=T,U.getNumberFormat=D,U.setNumberFormat=j,U.mergeNumberFormat=z,U[ra]=n,U[kn]=At,U[Dn]=Ot,U[Rn]=nn,process.env.NODE_ENV!=="production"&&(U[Ge]=v=>{y.__v_emitter=v},U[Et]=()=>{y.__v_emitter=void 0}),U}const la="vue-i18n: composer properties",fn={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Bi={"vue-i18n-resource-inspector":"Search for scopes ..."},Ui={"vue-i18n-timeline":16764185};let Pn;async function Gi(e,t){return new Promise((n,r)=>{try{Di({id:"vue-devtools-plugin-vue-i18n",label:fn["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:[la],app:e},o=>{Pn=o,o.on.visitComponentTree(({componentInstance:l,treeNode:c})=>{$i(l,c,t)}),o.on.inspectComponent(({componentInstance:l,instanceData:c})=>{l.vnode.el&&l.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?l.vnode.el.__VUE_I18N__!==t.global.__composer&&Go(c,l.vnode.el.__VUE_I18N__):Go(c,l.vnode.el.__VUE_I18N__))}),o.addInspector({id:"vue-i18n-resource-inspector",label:fn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Bi["vue-i18n-resource-inspector"]}),o.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ji(l,t)});const s=new Map;o.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(o.unhighlightElement(),Xi(l,t),l.nodeId==="global"){if(!s.has(l.app)){const[c]=await o.getComponentInstances(l.app);s.set(l.app,c)}o.highlightElement(s.get(l.app))}else{const c=qi(l.nodeId,t);c&&o.highlightElement(c)}}),o.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&Qi(l,t)}),o.addTimelineLayer({id:"vue-i18n-timeline",label:fn["vue-i18n-timeline"],color:Ui["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function ia(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function $i(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const o={label:`i18n (${ia(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(o)}}function Go(e,t){const n=la;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:to(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 to(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];Y(r)&&"source"in r?t[n]=Ki(r):me(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:M(r)?t[n]=to(r):t[n]=r}),t}const Wi={"<":"<",">":">",'"':""","&":"&"};function Yi(e){return e.replace(/[<>"&]/g,Hi)}function Hi(e){return Wi[e]||e}function Ki(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Yi(e.source)}")`:"(?)"}`}}}function ji(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,o]of t.__instances){const s=t.mode==="composition"?o:o.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${ia(r)} Scope`})}}function qi(e,t){let n=null;if(e!=="global"){for(const[r,o]of t.__instances.entries())if(o.id.toString()===e){n=r;break}}return n}function ca(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Xi(e,t){const n=ca(e.nodeId,t);return n&&(e.state=zi(n)),null}function zi(e){const t={},n="Locale related info",r=[{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]=r;const o="Locale messages info",s=[{type:o,key:"messages",editable:!1,value:to(e.messages.value)}];t[o]=s;{const l="Datetime formats info",c=[{type:l,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[l]=c;const i="Datetime formats info",u=[{type:i,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[i]=u}return t}function bt(e,t){if(Pn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Pn.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 Qi(e,t){const n=ca(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&k(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(k(e.state.value)||q(e.state.value)||M(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ji(e){const t=k(e.locale)?e.locale:gt,n=k(e.fallbackLocale)||q(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Y(e.missing)?e.missing:void 0,o=B(e.silentTranslationWarn)||Ze(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=B(e.silentFallbackWarn)||Ze(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=B(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,i=F(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,f=Y(e.postTranslation)?e.postTranslation:void 0,d=k(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,g=B(e.sync)?e.sync:!0;let C=e.messages;if(F(e.sharedMessages)){const w=e.sharedMessages;C=Object.keys(w).reduce((y,P)=>{const x=y[P]||(y[P]={});return ee(x,w[P]),y},C||{})}const{__i18n:E,__root:I,__injectWithOption:h}=e,S=e.datetimeFormats,b=e.numberFormats,N=e.flatJson;return{locale:t,fallbackLocale:n,messages:C,flatJson:N,datetimeFormats:S,numberFormats:b,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:l,fallbackFormat:c,modifiers:i,pluralRules:u,postTranslation:f,warnHtmlMessage:d,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:g,__i18n:E,__root:I,__injectWithOption:h}}function Fn(e={}){const t=eo(Ji(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return B(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=B(o)?!o:o},get silentFallbackWarn(){return B(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=B(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,s){return t.te(o,s)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,s){t.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){t.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,s){t.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){t.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,s){t.setNumberFormat(o,s)},mergeNumberFormat(o,s){t.mergeNumberFormat(o,s)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const s=t;s[Ge]&&s[Ge](o)},r.__disableEmitter=()=>{const o=t;o[Et]&&o[Et]()}),r}function Zi(e,t,n){return{beforeCreate(){const r=a.getCurrentInstance();if(!r)throw ie(H.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;if(o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root)this.$i18n=$o(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=Fn(s);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=$o(e,o);else{this.$i18n=Fn({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&sa(t,o,o),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$te=(s,l)=>this.$i18n.te(s,l),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const o=this.__v_emitter=qn();r.__enableEmitter&&r.__enableEmitter(o),o.on("*",bt)}},unmounted(){const r=a.getCurrentInstance();if(!r)throw ie(H.UNEXPECTED_ERROR);const o=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",bt),delete this.__v_emitter),this.$i18n&&(o.__disableEmitter&&o.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function $o(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[oa](t.pluralizationRules||e.pluralizationRules);const n=Zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const no={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ec({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===a.Fragment?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},$())}function ua(){return a.Fragment}const tc=a.defineComponent({name:"i18n-t",props:ee({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>J(e)||!isNaN(e)}},no),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||oo({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(d=>d[0]!=="_"),l=$();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=k(e.plural)?+e.plural:e.plural);const c=ec(t,s),i=o[kn](e.keypath,c,l),u=ee($(),r),f=k(e.tag)||M(e.tag)?e.tag:ua();return a.h(f,u,i)}}}),Wo=tc;function nc(e){return q(e)&&!k(e[0])}function da(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const l={part:!0};let c=$();e.locale&&(l.locale=e.locale),k(e.format)?l.key=e.format:M(e.format)&&(k(e.format.key)&&(l.key=e.format.key),c=Object.keys(e.format).reduce((m,g)=>n.includes(g)?ee($(),m,{[g]:e.format[g]}):m,$()));const i=r(e.value,l,c);let u=[l.key];q(i)?u=i.map((m,g)=>{const C=o[m.type],E=C?C({[m.type]:m.value,index:g,parts:i}):[m.value];return nc(E)&&(E[0].key=`${m.type}-${g}`),E}):k(i)&&(u=[i]);const f=ee($(),s),d=k(e.tag)||M(e.tag)?e.tag:ua();return a.h(d,f,u)}}const oc=a.defineComponent({name:"i18n-n",props:ee({value:{type:Number,required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||oo({useScope:e.scope,__useComponent:!0});return da(e,t,Zr,(...r)=>n[Rn](...r))}}),Yo=oc;function rc(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function ac(e){const t=l=>{process.env.NODE_ENV!=="production"&&Hn(tt(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:i}=l;if(!c||!c.$)throw ie(H.UNEXPECTED_ERROR);const u=rc(e,c.$),f=Ho(i);return[Reflect.apply(u.t,u,[...Ko(f)]),u]};return{created:(l,c)=>{const[i,u]=t(c);pe&&e.global===u&&(l.__i18nWatcher=a.watch(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),l.__composer=u,l.textContent=i},unmounted:l=>{pe&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:c})=>{if(l.__composer){const i=l.__composer,u=Ho(c);l.textContent=Reflect.apply(i.t,i,[...Ko(u)])}},getSSRProps:l=>{const[c]=t(l);return{textContent:c}}}}function Ho(e){if(k(e))return{path:e};if(F(e)){if(!("path"in e))throw ie(H.REQUIRED_VALUE,"path");return e}else throw ie(H.INVALID_VALUE)}function Ko(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,l={},c=r||{};return k(n)&&(l.locale=n),J(o)&&(l.plural=o),J(s)&&(l.plural=s),[t,c,l]}function sc(e,t,...n){const r=F(n[0])?n[0]:{};(B(r.globalInstall)?r.globalInstall:!0)&&([Wo.name,"I18nT"].forEach(s=>e.component(s,Wo)),[Yo.name,"I18nN"].forEach(s=>e.component(s,Yo)),[qo.name,"I18nD"].forEach(s=>e.component(s,qo))),e.directive("t",ac(t))}const lc=Se("global-vue-i18n");function ic(e={}){const t=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Hn(tt(fe.DEPRECATE_LEGACY_MODE));const n=B(e.globalInjection)?e.globalInjection:!0,r=new Map,[o,s]=cc(e,t),l=Se(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(d){return r.get(d)||null}function i(d,m){r.set(d,m)}function u(d){r.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...m){if(process.env.NODE_ENV!=="production"&&(d.__VUE_I18N__=f),d.__VUE_I18N_SYMBOL__=l,d.provide(d.__VUE_I18N_SYMBOL__,f),F(m[0])){const E=m[0];f.__composerExtend=E.__composerExtend,f.__vueI18nExtend=E.__vueI18nExtend}let g=null;!t&&n&&(g=gc(d,f.global)),__VUE_I18N_FULL_INSTALL__&&sc(d,f,...m),__VUE_I18N_LEGACY_API__&&t&&d.mixin(Zi(s,s.__composer,f));const C=d.unmount;if(d.unmount=()=>{g&&g(),f.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await Gi(d,f))throw ie(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const I=qn();if(t){const h=s;h.__enableEmitter&&h.__enableEmitter(I)}else{const h=s;h[Ge]&&h[Ge](I)}I.on("*",bt)}},get global(){return s},dispose(){o.stop()},__instances:r,__getInstance:c,__setInstance:i,__deleteInstance:u};return f}function oo(e={}){const t=a.getCurrentInstance();if(t==null)throw ie(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ie(H.NOT_INSTALLED);const n=uc(t),r=fc(n),o=aa(t),s=dc(e,o);if(s==="global")return sa(r,e,o),r;if(s==="parent"){let i=_c(n,t,e.__useComponent);return i==null&&(process.env.NODE_ENV!=="production"&&(tt(fe.NOT_FOUND_PARENT_SCOPE),void 0),i=r),i}const l=n;let c=l.__getInstance(t);if(c==null){const i=ee({},e);"__i18n"in o&&(i.__i18n=o.__i18n),r&&(i.__root=r),c=eo(i),l.__composerExtend&&(c[Vn]=l.__composerExtend(c)),hc(l,t,c),l.__setInstance(t,c)}else process.env.NODE_ENV!=="production"&&s==="local"&&(tt(fe.DUPLICATE_USE_I18N_CALLING),void 0);return c}function cc(e,t){const n=a.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Fn(e)):n.run(()=>eo(e));if(r==null)throw ie(H.UNEXPECTED_ERROR);return[n,r]}function uc(e){const t=a.inject(e.isCE?lc:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ie(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function dc(e,t){return $t(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fc(e){return e.mode==="composition"?e.global:e.global.__composer}function _c(e,t,n=!1){let r=null;const o=t.root;let s=mc(t,n);for(;s!=null;){const l=e;if(e.mode==="composition")r=l.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const c=l.__getInstance(s);c!=null&&(r=c.__composer,n&&r&&!r[ra]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function mc(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function hc(e,t,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=qn();const o=n;o[Ge]&&o[Ge](r),r.on("*",bt)}},t),a.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",bt),o[Et]&&o[Et](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=o[Vn];s&&(s(),delete o[Vn])},t)}const pc=["locale","fallbackLocale","availableLocales"],jo=["t","rt","d","n","tm","te"];function gc(e,t){const n=Object.create(null);return pc.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw ie(H.UNEXPECTED_ERROR);const l=a.isRef(s.value)?{get(){return s.value.value},set(c){s.value.value=c}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,l)}),e.config.globalProperties.$i18n=n,jo.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw ie(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)}),()=>{delete e.config.globalProperties.$i18n,jo.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const Ec=a.defineComponent({name:"i18n-d",props:ee({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},no),setup(e,t){const n=e.i18n||oo({useScope:e.scope,__useComponent:!0});return da(e,t,Jr,(...r)=>n[Dn](...r))}}),qo=Ec;Vi();ri(Fl);ai(Zl);si(Wr);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Me();e.__INTLIFY__=!0,xl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const fa=ic({legacy:!1,locale:"zh",fallbackLocale:"zh",globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),xe=fa.global;async function Sc(e,t){const n=await t(e);xe.setLocaleMessage(e,n),xe.locale&&xe.locale.value!==void 0?xe.locale.value=e:xe.locale=e}const He="__system:language__",Ke="zh";function bc(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||"").toLowerCase().trim()}function vc(e){return e?e.toLowerCase().trim():""}const ot=Z.defineStore("cloudSdkLanguageStore",{state:()=>({languageDefault:Ke,languageName:A.localGet(He)||Ke,languageList:{zh:"简体中文","zh-cn":"简体中文","zh-CHT":"繁體中文",en:"English",ko:"한국어",ja:"日本語",de:"Deutsch",fr:"Français",id:"Indonesia"}}),getters:{languageSelect:e=>{let t=[],n=e.languageList;for(let r in n)t.push({label:n[r],value:r});return t}},actions:{async init(){let e=bc()||Ke;e=localStorage.getItem(He)||e;const t=cvUtils.urlGetParameterAll();t.language&&(e=t.language),e=vc(e),Object.keys(this.languageList).includes(e)?this.languageName=e==="zh-cn"?"zh":e:this.languageName=Ke,localStorage.setItem(He,this.languageName)},async clear_cache(){A.localSet(He,Ke)},SA_LANGUAGE_DEFAULT(){return this.languageDefault},SA_LANGUAGE_LIST(){return this.languageList},SA_LANGUAGE_GET(){return this.languageName=localStorage.getItem(He)||Ke,this.languageName},SA_LANGUAGE_SET(e){this.languageName=e,A.localSet(He,e),xe.locale.value=e}}}),Xo="__system:themes__",Nc="light",_n="__system:layoutSidebarState__",Cc="on",zo="__system:layoutNavTabs__",yc="on",Tc="__system:layoutWatermark__",Ac="on";function Qo(){let e=typeof window<"u"&&window.navigator.userAgent.toLowerCase();return`${e.match(/Chrome/i)}`=="chrome"?"chrome":`${e.match(/Webkit/i)}`=="webkit"?"webkit":null}const ye=Z.defineStore("cloudSdkThemesStore",{state:()=>({layoutName:"",layoutNavTabs:A.localGet(zo)||yc,layoutSidebarState:A.localGet(_n)||Cc,themesName:A.localGet(Xo)||Nc,themesList:[{name:"跟随系统",value:"auto"},{name:"明亮",value:"light"},{name:"暗黑",value:"dark"}],watermarkState:A.localGet(Tc)||Ac}),actions:{async init(){["auto","light","dark"].indexOf(this.themesName);const e=cvUtils.urlGetParameterAll();e.themes&&(this.themesName=e.themes),this.synchTheme(),this.SA_THEMES_SET(this.themesName),this.layoutSidebarState=this.layoutSidebarState=="off"?"off":"on",this.SA_LAYOUT_SLIDEBAR_SET(this.layoutSidebarState),this.layoutNavTabs=this.layoutNavTabs=="off"?"off":"on",this.SA_LAYOUT_NAVTABS_SET(this.layoutNavTabs),this.watermarkState=this.watermarkState=="off"?"off":"on",this.SA_LAYOUT_WATERMARK_SET(this.watermarkState)},async clear_cache(){},SA_LAYOUT_WATERMARK_SET(e){this.watermarkState=e;const t=document.querySelector("html");t.classList.remove(e?"hideWatermark":"openWatermark"),t.classList.add(e?"openWatermark":"hideWatermark"),A.localSet(_n,e)},SA_LAYOUT_SLIDEBAR_SET(e){this.layoutSidebarState=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openSidebar":"hideSidebar"),t.classList.add(e=="on"?"openSidebar":"hideSidebar"),A.localSet(_n,e)},SA_LAYOUT_NAVTABS_SET(e){le.__POWERED_BY_QIANKUN__&&(e="off"),this.layoutNavTabs=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openNavtabs":"hideNavtabs"),t.classList.add(e=="on"?"openNavtabs":"hideNavtabs"),le.__POWERED_BY_QIANKUN__||A.localSet(zo,e)},SA_THEMES_SET(e){if(this.themesName=e||"light",!Qo()){__cc_isEEUiApp?mt.ElMessage.warning("仅Android设置支持主题功能"):mt.ElMessage.warning("仅客户端或Chrome浏览器支持主题功能");return}this.synchTheme(e)},synchTheme(e=void 0){typeof e>"u"?e=this.themesName:this.themesName=e;const t=document.body;switch(e){case"dark":if(!Qo())return;t.classList.add("sdk-theme-dark");break;case"light":let r=document.getElementById("dark-mode-style");r&&r.parentNode.removeChild(r),t.classList.remove("sdk-theme-dark");break;default:this.themesName="auto",window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.themesName="dark":this.themesName="light";break}const n=document.querySelector("html");n.classList.remove(this.themesName=="dark"?"light":"dark"),n.classList.add(this.themesName),A.localSet(Xo,this.themesName)}}});function _a(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function ma(){return window.innerHeight}function Oc(){return _a()-ma()>50?"landscape":"portrait"}const Rt=_a(),Ic=ma(),mn=Oc();var ur;window&&window.process&&((ur=window.process)!=null&&ur.type);const ro=Z.defineStore("cloudSdkWindowStore",{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:Rt,windowHeight:Ic,windowOrientation:mn,windowLandscape:mn==="landscape",windowPortrait:mn==="portrait",formLabelPosition:Rt>576?"right":"top",formLabelWidth:Rt>576?"auto":"",windowMax768:Rt<=768,winSizeName:""}),getters:{winCalcSizeName:e=>(void 0).SA_GET_SIZE_TYPE()},actions:{async init(){},init_refresh(){},isSingle(){return document.querySelector(".electron-single-micro-apps")?1:0},isPortrait(){return document.querySelector(".window-portrait")?1:0},SA_SET_WINDOW_WIDTH(e){this.windowWidth=window.innerWidth},SA_GET_SIZE_TYPE(){switch(!0){case this.windowWidth<=768:return"app-small-768";case this.windowWidth<=992:return"app-small-992";case this.windowWidth<=1200:return"app-small-1200"}},SA_GET_WINDOW_WIDTH(){return this.winSizeName=this.SA_GET_SIZE_TYPE(),this.winSizeName}}});function wc(e){return new Promise((t,n)=>{mt.ElMessageBox.confirm(e.message||"",e.title||"Warning",{confirmButtonText:e.confirmButtonText||"确认",cancelButtonText:e.cancelButtonText||"取消",showCancelButton:e.showCancelButton,type:"warning"}).then(()=>{t()}).catch(()=>{n()})})}function Lc(e){mt.ElNotification({title:e.title,message:e.message,type:e.type||"info",duration:1200,onClose:()=>{}})}function kc(e,t,n=!1){return n?!!t.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(e)?!0:r==e):t.includes(e)}function Jo(e,t){let n="";return e.includes("http://")||e.includes("https://")?n=e:n=t+e,n=n.replace(/([^:]\/)\/+/g,"$1"),n}const Zo={400:"请求错误",400:"无效请求",401:"未经授权",402:"支付请求",403:"拒绝访问",404:"请求出错",408:"请求超时",422:"请求验证",500:"响应错误",501:"服务未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"HTTP版本不受支持"},er={400:"参数错误",401:"没有权限,请变更请求",402:"支付错误",403:"检查请求域名是否添加了域名白名单",404:"未找到该请求",408:"网络异常,请检查网络设置",422:"参数验证错误",504:"请求超时,请刷新重试",500:"请检查网络或服务器"};function Dc(e,t){e=parseInt(e);let n="提示",r="程序异常,请检查网络或联系管理员";return Zo[e]&&(n=Zo[e]),er[e]&&(r=er[e]),{title:n,status:e,message:r}}class Rc{constructor(t={}){this.flagMap=t.flagMap||{},this.flagAuth=t.flagAuth||{},this.flagCurr="",this.baseURL=t.baseURL||"",this.baseMock=t.baseMock||"",this.requests=Object.assign({},t.requests||{}),this.requestTemp={},this.headers=Object.assign({},t.headers||{}),this.headerTemp={},this.configs=Object.assign({},t.configs||{}),this.configTemp={},this.customs=Object.assign({},t.customs||{}),this.customTemp={},this.encryptURL=t.encryptURL||[],this.encryptFlag=!1,this.retries=3,this.debugState=t.debug||!1,this.requestHandle=null,this._initReqHandle(t)}debugLog(){this.debugState}_initReqHandle(t){this.requestHandle=ya.create({baseURL:this.baseURL,timeout:t.timeout||5e3,retry:2,retryDelay:1e3,headers:{"Content-Type":"application/json; charset=utf-8",...this.headers},requests:{...this.requests}})}get interceptors(){return this.requestHandle.interceptors}setApiFlag(t){return this.flagMap=t||{},this}appendApiFlag(t){return this.flagMap=Object.assign({},this.flagMap,t||{}),this}setApiAuth(t){return this.flagAuth=t||{},this}appendApiAuth(t){return this.flagAuth=Object.assign({},this.flagAuth,t||{}),this}setDefHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this}setHeaders(t){return this.headerTemp=Object.assign({},this.headerTemp,t||{}),this}getHeaders(){return this.headers}setDefRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this}setRequests(t){return this.requestTemp=Object.assign({},this.requestTemp,t||{}),this}setOptions(t={}){return this.configTemp=Object.assign({},this.configTemp,t||{}),this}setCustom(t){return this.customTemp=Object.assign({},this.customTemp,t||{}),this}setSignal(t){}encrypt(){return this.encryptFlag=!0,this}__encryp_parse(t){let n=!1;if(this.encryptURL&&kc(t,this.encryptURL,!0)&&(n=!0),this.encryptFlag&&(n=!0),n){const r=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(r)||r.indexOf("Windows NT 6.0")!==-1||r.indexOf("Windows NT 6.1")!==-1||r.indexOf("Windows NT 6.2")!==-1)&&(n=!1)}return n}cancelRequest(t){if(!t)return 0;let n=[],r=0;return n.forEach((o,s)=>{o.id===t&&(r++,o.request&&o.request.abort())}),r>0&&(n=n.filter(o=>o.id!==t)),r}__parse_method_type(t){return t}async apiAll(t,n,r){let o=Jo(n,this.baseURL);this.__encryp_parse(n);let s=this.__parse_method_type(t),l=this.flagAuth[this.flagCurr]||null,c={};l&&(c=l.split(",").reduce((m,g)=>{const[C,E]=g.split("=");return m[C]=E,m},{}));let i=Object.assign({},this.headers,this.headerTemp,{}),u=Object.assign({},this.requests,this.requestTemp,r||{}),f=Object.assign({},this.configs,this.configTemp,{}),d=Object.assign({},this.customs,this.customTemp,{flag:this.flagCurr,auth:c,time:Math.floor(Date.now()/1e3)});if(s=="UPLOAD")return this.requestHandle.request({url:o,method:"post",data:r,...f,customs:d,headers:{...i,"Content-Type":"multipart/form-data"}});if(s!="DOWNLOAD")if(s=="MOCK")try{let m=n.includes(".json")?`${n}`:`${n}.json`,g=Jo(m,this.baseMock+"/");const C=await fetch(g);responseInfo.statusCode=C.status,responseInfo.errMsg="request:ok";const E=await C.json();responseInfo.data=E}catch(m){let g=m.message;g.includes("Unexpected token")&&g.includes("is not valid JSON")&&(responseInfo.data={code:200,data:{}})}else return["GET","POST","PUT","PATCH","DELETE"].includes(s)?this.requestHandle.request({url:o,method:s,data:s!=="GET"?u:void 0,params:s==="GET"?u:void 0,...f,customs:d,headers:i}):{}}flagMockPost(){const t=arguments;return this.unifyApi("flag","MOCK",t)}flagMockGet(){const t=arguments;return this.unifyApi("flag","MOCK",t)}urlMockPost(){const t=arguments;return this.unifyApi("url","MOCK",t)}urlMockGet(){const t=arguments;return this.unifyApi("url","MOCK",t)}flagGet(){const t=arguments;return this.unifyApi("flag","GET",t)}urlGet(){const t=arguments;return this.unifyApi("url","GET",t)}flagPost(){const t=arguments;return this.unifyApi("flag","POST",t)}urlPost(){const t=arguments;return this.unifyApi("url","POST",t)}flagPut(){const t=arguments;return this.unifyApi("flag","PUT",t)}urlPut(){const t=arguments;return this.unifyApi("url","PUT",t)}flagPatch(){const t=arguments;return this.unifyApi("flag","PATCH",t)}urlPatch(){const t=arguments;return this.unifyApi("url","PATCH",t)}flagDel(){const t=arguments;return this.unifyApi("flag","DELETE",t)}urlDel(){const t=arguments;return this.unifyApi("url","DELETE",t)}flagUpload(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpload(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}flagUpImg(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpImg(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}unifyApi(t,n,r){let o=this,s=r.length||0;if(s<=0||s>3){let i=`-- ${n} : 参数为(1-3)个---`;return new Promise((u,f)=>f({message:i}))}let l="",c="";if(t=="flag"){let i=r[0];typeof i=="string"&&(i=i||"",l=i==""?"":this.flagMap[i]||""),c=" flag"+n+`:传入的标示 { ${i} },未匹配到 apiUrl `,this.flagCurr=i}if(t=="url"&&(l=r[0],typeof l=="string"&&(l=l||""),c=" 未匹配到 apiUrl "),l=="")return new Promise((i,u)=>u({message:c}));if(s==1)return function(i){return o.apiAll(n,l,i)};if(s==2||s==3){let i={},u=r[1],f=Object.prototype.toString.call(u);if(f==="[object String]"||f==="[object Number]"){let d=String(u).trim();if(/^\d+$/.test(d)&&(l.endsWith("/")||(l+="/"),l+=d),s==3){let m=r[2];Object.prototype.toString.call(m)==="[object Object]"&&(i=m||{})}}else f==="[object Object]"?i=u||{}:f==="[object FormData]"&&(i=u||new FormData);return o.apiAll(n,l,i)}else return new Promise((i,u)=>u({message:" 请求错误 "}))}}const Vc=Z.defineStore("cloudSdkCommonStore",{state:()=>({loginBaseShow:!1,loadingShow:!1}),getters:{},actions:{init(){},SA_LOGIN_SHOW(e){this.loginBaseShow=e},SA_LOADING_SHOW(e){this.loadingShow=e}}}),Pc={BASE_LOAD_COMMON_API_FLAG:"/base.base_load/common/api_flag",BASE_LOAD_COMMON_API_AUTH:"/base.base_load/common/api_auth",BASE_LOAD_COMMON_API_CODE:"/base.base_load/common/api_code",BASE_ACCSYS_COMMON_KEYCLIENT:"/base.account_sys/common/key_client",BASE_SYS_COMMON_PLAT_SETTING:"/base.base_sys/common/plat_setting",BASE_SYS_COMMON_SYS_INFO:"/base.base_sys/common/system_info",SDK_FILE_COMMON_UPLOAD_SIGNATURE:"/sdks.sdk_file/common/upload_signature",SDK_MAP_ORG_SETT_KEY:"/sdks.sdk_maps/org/sett_key"},Fc={BASE_LOAD_COMMON_API_FLAG:"app:true;auth:false;",BASE_LOAD_COMMON_API_AUTH:"app:true;auth:false;",BASE_LOAD_COMMON_API_CODE:"app:true;auth:false;",BASE_ACCSYS_COMMON_KEYCLIENT:"app:true;auth:false;",BASE_SYS_COMMON_PLAT_SETTING:"app:true;auth:false;",SDK_FILE_COMMON_UPLOAD_SIGNATURE:"app=true,token=true",SDK_MAP_ORG_SETT_KEY:"app=true,token=true"},xc={100101:"未经授权,请登录"};function Mc(e){if(e.status&&e.status==401&&!le.__POWERED_BY_QIANKUN__){if(window.syCacheDialog401&&window.syCacheDialog401=="show")return!1;if(e.code==100206)window.syCacheDialog401="none";else return window.syCacheDialog401="show",ue().SA_ACCOUNT_LOGOUT(),wc({title:"友情提示",message:xc[100101],confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!1}).then(()=>{window.syCacheDialog401="none",location.href="/login"}),!1}let t=(e.status?`[ ${e.status} ] `:"")+(e.title||"提示");Lc({title:t,message:e.message,type:e.type})}let Ne=null;function ao(e={}){const t=vt();Ne=new Rc({baseURL:t.syApiBaseUrl||"",headers:{"Content-Type":"application/json; charset=utf-8",syOpenAppProject:t.syAppProjectSign||"",syOpenAppId:t.syAppConnectId||"",syOpenAppRole:t.syAppConnectRole||"",syOpenAppToken:A.localGet("syCacheAppToken")||"",Authorization:"Bearer "+A.localGet("syCacheAppJwt")||""},requests:{},encryptURL:["users/login","users/editpass","/base.account_security/common/change_pwd","users/operation","users/delete/account","base.base_sys/license","users/bot/*","dialog/msg/*"],customs:{loading:!0,isFactory:!0}});let n={},r={};e&&(n=e.ApiFlagSet||{},r=e.ApiAuthSet||{});let o=Object.assign({},Pc,n,t.syOpenApiFlag),s=Object.assign({},Fc,r,t.syOpenApiAuth);Ne.setApiFlag(o),Ne.setApiAuth(s);const l=Vc(),c=ue();return Ne.interceptors.request.use(i=>{const u=i.customs||{};if((u==null?void 0:u.loading)!=!1&&l.SA_LOADING_SHOW(!0),A.localGet("syCacheAppToken")||null){if(c.SA_ACCOUNT_CHECK_EXPIRED())return Promise.reject({status:401,code:100103})}else if(u.auth&&u.auth.token=="true")return u.showLogin&&l.SA_LOGIN_SHOW(!0),Promise.reject({status:401,code:100101});return i},i=>Promise.reject(i)),Ne.interceptors.response.use(i=>{var m;l.SA_LOADING_SHOW(!1),(m=i.config)!=null&&m.customs;let u=i.status||-1,f=i.data||{},d=f.status||f.code||-1;if(d=parseInt(d),f.msg||f.message,u!=200)return Promise.reject(i);if(u==200)return f.message&&(f.msg=f.message),Promise.resolve(f);throw{message:"请求出错,稍后重试"}},i=>{var h,S,b,N,w,L,y,P,x,X,ae,K;let u=((h=i==null?void 0:i.response)==null?void 0:h.status)||i.status||-1,f=(i==null?void 0:i.code)||"",d=i.message||((b=(S=i==null?void 0:i.response)==null?void 0:S.data)==null?void 0:b.message)||((N=i==null?void 0:i.response)==null?void 0:N.statusText)||"";u==-1&&(d.includes("timeout")||f.includes("ECONNABORTED")?u=504:d.includes("Network Error")?u=408:d.includes("Not Found")&&(u=404));let m=((L=(w=i==null?void 0:i.response)==null?void 0:w.data)==null?void 0:L.errorCode)||-1,g=((P=(y=i==null?void 0:i.response)==null?void 0:y.data)==null?void 0:P.errorMessage)||((X=(x=i==null?void 0:i.response)==null?void 0:x.data)==null?void 0:X.message),C=((K=(ae=i==null?void 0:i.config)==null?void 0:ae.customs)==null?void 0:K.flag)||"",E=Dc(u),I={type:"error",title:E.title,message:E.message,status:u,code:m,error:g||d,flag:C};return(u==400||u==422)&&(m==400||m==422||m.toString().startsWith("400"))&&(I.message=g||E.message),Mc(I),Promise.reject(I)}),Ne}function Bc(){return Ne||(Ne=ao()),Ne}const te=new Proxy({},{get(e,t){const n=Bc();return typeof n[t]=="function"?n[t].bind(n):n[t]}});function xn(e){return typeof e=="string"&&e.trim()!==""&&e!=="undefined"}const Oe="syCacheAppInfo",Ie="syCacheAppToken",dt="syCacheAppJwt",je="syCacheAppRbac",tr={nickname:"",staff_nickname:"",id:0,email:"",name:"",token:"",avatar:"",created_at:"",updated_at:"",identity:[],userid:0,department_owner:null,department:null,okr_admin_owner:null,account_nick:"十云",account_mobile_show:"****",account_avatar:"https://10ui.cn/default/avatar/avatar4.jpg",account_avatar_cdn:"https://10ui.cn/default/avatar/avatar4.jpg",business_name:""};function Uc(e){return Math.floor(Date.now()/1e3)>=e}const ue=Z.defineStore("cloudSdkAccountStore",{state:()=>({account_nick:"",accountRbacData:[],accountInfo:A.localGet(Oe)||{},accountToken:A.localGet(Ie)||"",accountJwt:A.localGet(dt)||""}),getters:{cacheBizsId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.business_id)||0},staffId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_id)||0},staffNick:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_nick)||""},accountIsLogin:e=>{var n;const t=((n=e==null?void 0:e.accountInfo)==null?void 0:n.token_time)||0;return!!(xn(e.accountToken)&&!Uc(t))},accountRole:e=>{var t;return(t=e.accountInfo)==null?void 0:t.identity},accRoleIsAdmin:e=>{var t;return((t=e.accountInfo)==null?void 0:t.acc_rules_type)=="sy-org-admin"}},actions:{async init(){const e=cvUtils.urlGetParameterAll();e.token&&A.localSet("ACC_TOKEN_CACHE_KEY",e.token),await this.SA_ACCOUNT_RBAC_REFRESH(),this.accountIsLogin?this.SA_ACCOUNT_REFRESH():this.SA_ACCOUNT_LOGOUT()},async clear_cache(){A.localDel(je),this.ACCOUNT_SET_PREV()},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=A.localGet(Ie)||"",!!xn(this.accountToken)},SA_ACCOUNT_JWT_GET(){return this.accountJwt||""},SA_ACCOUNT_TOKEN_GET(){return this.accountToken||""},SA_ACCOUNT_TOKEN_SET(e){this.accountToken=e,A.localSet(Ie,this.accountToken)},SA_ACCOUNT_CHECK_EXPIRED(e){var r;const t=((r=this==null?void 0:this.accountInfo)==null?void 0:r.token_time)||0;return(e||Math.floor(Date.now()/1e3))>=t},SA_ACCOUNT_INFO_GET(){return A.localGet(Oe)},SA_ACCOUNT_INFO_REFRESH(){return new Promise((e,t)=>{te.flagGet("BASE_ACCSYS_COMMON_INFO",{}).then(({data:n})=>{n=this._SA_ACCOUNT_INFO_PARSE(n),e(n)}).catch(n=>{t(n)})})},SA_ACCOUNT_INFO_PARSE(e){return e=e||tr,cvUtils.isEmpty(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=cvUtils.parseNumber(e.account_id),e.token_access=e.account_id>0?e.token_access||this.accountToken:"",e.account_avatar_cdn=e.account_avatar_cdn||e.per_avatar_cdn,e.account_mobile_hide=e.account_mobile_hide||e.ucenter_mobile_hide||e.ucenter_mobile,this.accountInfo=e,e},SA_ACCOUNT_INFO_SET(e){return new Promise(async t=>{const n=JSON.parse(JSON.stringify(e));this.accountInfo=this.SA_ACCOUNT_INFO_PARSE(n),this.accountToken=n.token_access,await A.idbSetItem(Oe,n),A.localSet(Oe,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=A.localGet(Oe)||tr,this.accountToken=A.localGet(Ie)||"",this.accountJwt=A.localGet(dt)||"",te.setDefHeaders({syOpenAppToken:this.accountToken||"",Authorization:"Bearer "+this.accountJwt||""})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),A.localSet(Oe,e),A.localSet(Ie,e.token_access||""),A.localSet(dt,e.token_jwt||""),A.localSet(je,""),A.idbSave(Ie,e.token_access||""),await this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),Je().QK_SEND_LOGIN_MSG()},async SA_ACCOUNT_LOGOUT(e){this.ACCOUNT_SET_PREV(),A.sessionClear(),A.localSet(Oe,""),A.localSet(Ie,""),A.localSet(dt,""),A.localSet(je,""),A.localDel(Oe),A.localDel(Ie),A.localDel(dt),A.localDel(je),this.SA_ACCOUNT_REFRESH(),Je().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){if(e=e||!1,!this.accountToken)return!1;let t=A.localGet(je)||"";(e||t=="")&&await te.flagGet("ORG_SYS_BASE_MYRBAC",{}).then(n=>{n.status==100600?this.SA_ACCOUNT_LOGOUT():n.status==200&&A.localSet(je,n.data||"")})},ACCOUNT_SET_PREV(){}}}),ft="__system:keyboardConf__",hn="__syCacheApiFlag__",pn="__syCacheApiAuth__",nr="__syCacheApiCode__",or="__syCacheApiKey__",gn="__syCacheSdkConfig__",En="__syCacheSystemConfig__",rr="cacheClientId",ar="cacheClientVersion",Ct=Z.defineStore("cloudSdkSystemStore",{state:()=>({cacheServerUrl:"",cacheClientInfo:{},cacheClientId:"",cacheClientVersion:"v7",clientNewVersion:null,keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,useSSOLogin:!1,sysIsElectron:!1,sysIsEEUiApp:!1,sysIsSoftware:!1,cacheKeyboard:{},systemConfig:{},sdkConfig:{},apiKeyData:{},networkConnected:!0}),getters:{systemInfo:e=>({title:"",version:""})},actions:{async init(){await A.idbGetString("clearCache");const e=await A.idbGetString("cacheServerUrl");await A.idbSetItem("cacheServerUrl",e);const t=await A.idbGetString(ar);await A.idbSetItem(ar,this.cacheClientVersion),t!==this.cacheClientVersion?await this.clear_cache():await this.cache_read(),await this.__load_api_flag(),await this.__load_api_auth(),await this.__load_api_code(),await this.__load_api_key(),await this.__load_system_config(),await this.__load_sdk_config(),this.SA_KEYBOARD_SET(),await te.setHeaders({"Sy-Client-Platform":"pc-web","Sy-Client-Id":this.cacheClientId})},async clear_cache(){const e=A.localGet(ft);A.localSet(ft,e),await A.idbDelItem("clearCache"),await A.idbDelItem(hn),await A.idbDelItem(pn),await A.idbDelItem(gn),await A.idbDelItem(En)},async cache_read(){this.cacheServerUrl=await A.idbGetString("cacheServerUrl"),this.cacheServerUrl&&(window.systemConfig.apiUrl=this.cacheServerUrl)},async __load_api_flag(){let e=await A.idbGetItem(hn);e||await te.flagGet("BASE_LOAD_COMMON_API_FLAG",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),A.idbSetItem(hn,e)}),await te.appendApiFlag(e)},async __load_api_auth(){let e=await A.idbGetItem(pn);e||await te.flagGet("BASE_LOAD_COMMON_API_AUTH",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),A.idbSetItem(pn,e)}),await te.appendApiAuth(e)},async __load_api_code(){let e=await A.idbGetItem(nr);e||await te.flagGet("BASE_LOAD_COMMON_API_CODE",{}).then(t=>{e=t.data||{},A.idbSetItem(nr,e)})},async __load_api_key(){let e=await A.idbGetString(rr);e||(e=cvUtils.randomString(6),await A.idbSetItem(rr,e)),this.cacheClientId=e,this.apiKeyData=await A.idbGetItem(or),this.apiKeyData||await te.setOptions({encrypt:!1}).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT",{client_id:e}).then(({data:t})=>{this.apiKeyData=t,A.idbSetItem(or,this.apiKeyData)})},async __load_system_config(){let e=await A.idbGetItem(En);e?this.systemConfig=e:await te.flagGet("BASE_SYS_COMMON_PLAT_SETTING",{}).then(({data:t})=>{this.systemConfig=Object.assign({},this.systemConfig,t),A.idbSetItem(En,this.systemConfig)})},async __load_sdk_config(){let e=await A.idbGetItem(gn);e?this.sdkConfig=e:(this.sdkConfig={},ue().accountIsLogin&&await te.flagGet("SDK_MAP_ORG_SETT_KEY",{type:"qq"}).then(({data:t})=>{this.sdkConfig=Object.assign({},this.sdkConfig,t),A.idbSetItem(gn,this.sdkConfig)}))},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=A.localGet(ft);n||(A.localSet(ft,A.localGet("__keyboard:data__")),A.localDel("__keyboard:data__"));const r=e||n||{};r.screenshot_key=(r.screenshot_key||"").trim().toLowerCase(),r.send_button_app=r.send_button_app||"button",r.send_button_desktop=r.send_button_desktop||"enter",A.localSet(ft,r),this.cacheKeyboard=r,t(r)})},SA_SYS_IP_INFO(e,t){if(!cvUtils.strExists(e,"."))return;let n="__ip"+e.substring(0,1)+"__";const r=A.localSet(n);let o=cvUtils.strGetMiddle(e,"","."),s=r[o]||e;if(typeof s=="object"){typeof t=="function"&&t(s);return}const l={keyId:s||e};te.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO",{ip:e}).then(()=>{A.localSet(n,l),typeof t=="function"&&t(s)})}}});function sr(e){return e=e.replace(/^\//,""),e=e.replace(/\//g,"_"),e}function ha(e,t){t=t||1;let n="";e.path?n=e.path:e.component&&(n=e.component),e.component||(n="");let r="";if(e.name?r=e.name:n?r=sr(n):r="temp_name_"+t,r=sr(r),e.children&&e.children.length>0){let o=e.children,s=0,l=0;o.forEach((c,i)=>{c.isMenu==!0&&s++,c.isRbac==!0&&l++}),e.children_menu_num=s,e.children_opt_num=l}return{...e,path:n,name:r}}const Gc={},$c=Gc,Wc=$c.VITE_SY_PRODUCT_SIGN;function pa(e){let t=Object.prototype.toString.call(e);if(t!="[object String]"&&t!="[object Array]")return!1;let n=A.localGet("syCacheAppRbac")||"";if(t=="[object String]")return Bt(e,n);if(t==="[object Array]"){for(const r of e)if(!Bt(r,n))return!1;return!0}return!1}function Bt(e,t){if(e=e||"",e=e.trim(),e=="")return!1;e.includes("@")||(e=`${Wc}@${e}`);let n=t||A.localGet("syCacheAppRbac")||"";return n=n.trim(),xn(n)?n=='"all@all"'||n=="all@all"?!0:n.split(",").map(o=>o.trim()).includes(e):!1}const yt=Z.defineStore("cloudSdkProductStore",{state:()=>({currMenuInfo:{},menuBadge:{},menuOpeneds:[],menuOnly:[],menuOriginal:[]}),getters:{menuCurrOpeneds:e=>e.menuOpeneds,menuCurrOnly:e=>e.menuOnly},actions:{async init(e){e=e||[],e&&(this.menuOriginal=JSON.parse(JSON.stringify(e)))},async clear_cache(){},SA_SET_MENU_BADGE_KEY(e,t){this.menuBadge[e]=t},SA_PRODUCT_INFO_GET(){},SA_MENU_SET(e){this.menuTree=e||[]},SA_MENU_PARSE(){var e=[];function t(s,l){let c=[];for(let i in s){let u=s[i];u=ha(u,i),u.isMenu===!0&&(u.isRbac&&!u.path||(u.children&&u.children.length>0&&(u.children=t(u.children,l)),u.collapsable===!1&&e.push(u.name),Bt(u.name,l)&&c.push(u)))}return c}let n=JSON.parse(JSON.stringify(this.menuOriginal)),r=A.localGet("syCacheAppRbac")||"",o=t(n,r);return this.menuOpeneds=e,this.menuOnly=o,o},SA_MENU_GET(){return this.menuTree}}}),Yc=[{meta:{title:"登录",isAlone:!0},isAlone:!0,name:"login",path:"/login",component:()=>Promise.resolve().then(()=>require("./login-x6WIbNRH.cjs"))}],Hc=[{meta:{title:"不建议单独运行",isAlone:!0},isAlone:!0,name:"alone_run",path:"/alone_run",component:()=>Promise.resolve().then(()=>require("./alone_run-DeT-QveB.cjs"))},{meta:{title:"错误",isAlone:!0},isAlone:!0,name:"404",path:"/:catchAll(.*)",component:()=>Promise.resolve().then(()=>require("./404-BFyR7lt-.cjs"))}],Kc=[{meta:{title:"空页面",isAlone:!1},isAlone:!1,name:"none",path:"/none",component:()=>Promise.resolve().then(()=>require("./none-sp97NM-k.cjs"))}],Tt=Z.defineStore("cloudSdkPermissionStore",{state:()=>({originalRoutes:[],whiteList:["404","login","alone_run","none"],addRoutes:[],routeAlive:0,rbacLastStr:A.localGet("syCacheAppRbac")||"",rbacArr:[]}),actions:{async init(e){e=e||[],this.originalRoutes=e},async clear_cache(){},SA_ROUTE_ALIVE_ADD(){this.routeAlive++},SA_PERMS_ROUTER_ADD(e,t){t=t||"",t!="console_passport"&&e.addRoute(...Yc),e.addRoute(...Hc),e.addRoute(...Kc)},SA_PERMS_ROUTER_CHECK(e){let n=ha(e).name;return!!(this.whiteList.includes(n)||Bt(n,this.rbacLastStr))},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}}),lr={"org-business":"商家平台","org-operator":"运营平台","org-agent":"代理商平台","org-super":"超管平台"};async function jc(e){try{let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="shortcut icon",document.head.appendChild(t)),t.href=e,t.type="image/x-icon"}catch{}}const qc=Z.defineStore("cloudSdkApplicationStore",{state:()=>({defaultCaseInfo:{PLAT_LOGO_CDN:"https://10ui.cn/10yun-img/logo-nobg.png",PLAT_BRAND:"十云",platinfo_login_bg:"",platinfo_version:"",platinfo_title:"十云",info_logo:"",info_version:"v1.25.xxxx"}}),getters:{openCaseInfo:e=>{let t=window.shiyunProductInfo||{},n=vt(),r=Ct().systemConfig||{},o=n.syAppConnectRole,s=Object.assign({},e.defaultCaseInfo,t),l=n.syProductTitle||"ShiyunProduct",c=lr[o]?lr[o]:"管理系统",i=l;const u=r.PLAT_BRAND||(s==null?void 0:s.PLAT_BRAND),f=r.PLAT_LOGO_CDN||s.PLAT_LOGO_CDN;f&&jc(f);const d=c||"十云";let m="";return o=="org-business"&&(m=r.BIZS_LOGIN_BG||s.platinfo_login_bg),{LAST_IP_LOGO:f,LAST_IP_TITLE:i,LAST_IP_TYPE:d,LAST_IP_BRAND:u||i,LAST_IP_LOGIN_BG:m}}},actions:{async init(){},async __load_license(){}}});function Xc(){return new Promise(async e=>{ot().clear_cache(),ye().clear_cache(),Ct().clear_cache(),ue().clear_cache(),yt().clear_cache(),A.idbSetItem("cacheClearHandle","handle").then(t=>{e()})})}function zc(){return{computed:{...Z.mapState(Je,["qiankunExistState"]),...Z.mapState(ot,["languageName","languageList","languageSelect"]),...Z.mapState(ye,["themesName","themesList","layoutNavTabs","layoutSidebarState"]),...Z.mapState(ro,["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","formLabelPosition"]),...Z.mapState(Ct,["cacheServerUrl","systemConfig","sysIsElectron","sysIsEEUiApp","sysIsSoftware"]),...Z.mapState(ue,["accountIsLogin","accountInfo","accountToken","accountRole","accountRbacData","accRoleIsAdmin","staffId","staffNick"]),...Z.mapState(yt,["menuBadge","menuCurrOpeneds","menuCurrOnly"]),...Z.mapState(qc,["openCaseInfo"])},watch:{windowActive(t){}},mounted(){}}}const re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Qc={name:"HeaderSysSettDrawer",components:{},props:{modelVal:{type:Boolean,default:!1}},data(){return{localVal:!1,frameSysTheme:"",frameSysLanguage:"",frameSysNavTabs:null,frameSidebarState:null}},watch:{modelVal(e){this.localVal=e},frameSysTheme(e){ye().SA_THEMES_SET(e)},frameSysLanguage(e){ot().SA_LANGUAGE_SET(e)},frameSidebarState(e){ye().SA_LAYOUT_SLIDEBAR_SET(e)},frameSysNavTabs(e){ye().SA_LAYOUT_NAVTABS_SET(e)}},created(){this.init()},methods:{init(){this.frameSysTheme=this.themesName,this.frameSysLanguage=this.languageName,this.frameSysNavTabs=this.layoutNavTabs,this.frameSidebarState=this.layoutSidebarState},frameTopSysSettClose(){this.localVal=!1,this.$emit("update:modelValue",this.localVal)},frameUpdateVersion(){},frameClearCache(){this.$parent.frameHandleCommand("clearCache")}}},Jc={class:"cloud-sett-drawer-body"},Zc={class:"cloud-sett-drawer-skin"};function eu(e,t,n,r,o,s){const l=a.resolveComponent("el-card"),c=a.resolveComponent("el-form-item"),i=a.resolveComponent("el-option"),u=a.resolveComponent("el-select"),f=a.resolveComponent("cv-icons"),d=a.resolveComponent("el-button"),m=a.resolveComponent("el-switch"),g=a.resolveComponent("el-form"),C=a.resolveComponent("el-drawer");return a.openBlock(),a.createBlock(C,{title:"系统设置",modelValue:o.localVal,"onUpdate:modelValue":t[6]||(t[6]=E=>o.localVal=E),direction:"rtl",size:"450px","before-close":s.frameTopSysSettClose},{default:a.withCtx(()=>[a.createElementVNode("div",Jc,[a.createVNode(g,{labelWidth:"auto","label-position":"left"},{default:a.withCtx(()=>[a.createVNode(c,{label:"风格","label-position":"top"},{default:a.withCtx(()=>[a.createElementVNode("div",Zc,[a.createVNode(l),a.createVNode(l),a.createVNode(l)])]),_:1}),a.createVNode(c,{label:"主题"},{default:a.withCtx(()=>[a.createVNode(u,{modelValue:o.frameSysTheme,"onUpdate:modelValue":t[0]||(t[0]=E=>o.frameSysTheme=E),placeholder:e.$t("选项主题"),style:{width:"150px"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.themesList,(E,I)=>(a.openBlock(),a.createBlock(i,{label:e.$t(E.name),value:E.value,key:I},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.$t(E.name)),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1}),a.createVNode(c,{label:"暗黑模式"},{default:a.withCtx(()=>[o.frameSysTheme=="light"?(a.openBlock(),a.createBlock(d,{key:0,onClick:t[1]||(t[1]=E=>o.frameSysTheme="dark"),class:"light-switch"},{default:a.withCtx(()=>[a.createVNode(f,{type:"cvSvgViewModeDark"})]),_:1})):a.createCommentVNode("",!0),o.frameSysTheme=="dark"?(a.openBlock(),a.createBlock(d,{key:1,onClick:t[2]||(t[2]=E=>o.frameSysTheme="light"),class:"dark-switch"},{default:a.withCtx(()=>[a.createVNode(f,{type:"cvSvgViewModeLight"})]),_:1})):a.createCommentVNode("",!0)]),_:1}),a.createVNode(c,{label:"侧栏显示"},{default:a.withCtx(()=>[a.createVNode(m,{modelValue:o.frameSidebarState,"onUpdate:modelValue":t[3]||(t[3]=E=>o.frameSidebarState=E),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),a.createVNode(c,{label:"导航标签栏"},{default:a.withCtx(()=>[a.createVNode(m,{modelValue:o.frameSysNavTabs,"onUpdate:modelValue":t[4]||(t[4]=E=>o.frameSysNavTabs=E),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),a.createVNode(c,{label:"语言"},{default:a.withCtx(()=>[a.createVNode(u,{modelValue:o.frameSysLanguage,"onUpdate:modelValue":t[5]||(t[5]=E=>o.frameSysLanguage=E),placeholder:e.$t("选项语言"),style:{width:"150px"}},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.languageSelect,(E,I)=>(a.openBlock(),a.createBlock(i,{label:E.label,value:E.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(E.label),1)]),_:2},1032,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1}),a.createVNode(c,{label:"版本"},{default:a.withCtx(()=>[a.createVNode(d,{onClick:s.frameUpdateVersion},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.$t("更新版本")),1)]),_:1},8,["onClick"])]),_:1}),a.createVNode(c,{label:"缓存"},{default:a.withCtx(()=>[a.createVNode(d,{onClick:s.frameClearCache},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.$t("清除缓存")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})])]),_:1},8,["modelValue","before-close"])}const tu=re(Qc,[["render",eu]]),nu={props:{className:""},data(){return{routeRefreshAnimation:"",routeRefreshNum:0}},computed:{...Z.mapState(Tt,["routeAlive"])},watch:{routeAlive(e){this.routeRefreshAnimation="subapp-slide-right",this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=""})}},methods:{}};function ou(e,t,n,r,o,s){const l=a.resolveComponent("router-view");return a.openBlock(),a.createBlock(l,{key:o.routeRefreshNum},{default:a.withCtx(({Component:c,route:i})=>[a.createVNode(a.Transition,{name:o.routeRefreshAnimation,mode:"out-in",appear:""},{default:a.withCtx(()=>[(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.className),key:i.path},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c)))],2))]),_:2},1032,["name"])]),_:1})}const ga=re(nu,[["render",ou]]),ir=e=>Math.pow(e,3),ru=e=>e<.5?ir(e*2)/2:1-ir((1-e)*2)/2,au={name:"SameNavTabs",data(){return{sett_tags:[{title:"概览",path:"/index",name:"index"}],activeTag:null,contextMenuVisible:!1,contextMenuStyle:{},top:0,editableTabs:[],left:0,isDisabledCloseLeftBtnFlag:!1,isDisabledCloseRightBtnFlag:!1}},watch:{$route(e){this.activeTag=this.$route.name;for(let t in this.sett_tags)if(this.sett_tags[t].name==this.activeTag)return;this.sett_tags.push({title:e.meta.title,path:e.path,name:e.name})}},mounted(){this.$nextTick(()=>{let e=document.body.getElementsByClassName("xxxxxx-tag");e&&e.length>0&&(e[0].oncontextmenu=this.openContextMenu)})},updated(){this.tagAutoScroll()},methods:{changeGdtBase(){const e=this.$refs.navScroll1.wrap,t=Date.now(),n=e.scrollLeft,r=window.requestAnimationFrame||(s=>setTimeout(s,16)),o=()=>{const s=(Date.now()-t)/500;s<1?(e.scrollLeft=n*(1-ru(s)),r(o)):e.scrollLeft=0};r(o)},changeGdtLeft(){this.changeGdtBase()},changeGdtRight(){const e=this.$refs.navScroll1.wrap,t=e.scrollLeft;e.scrollLeft=t+300},async removeTag(e,t){if(e.path!="/index"){if(this.$route.meta.close_tip){let n=!1;if(await this.$confirm("将要关闭正在编辑的页面, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n=!1}).catch(()=>{n=!0}),n)return}if(this.sett_tags.splice(t,1),this.sett_tags.length==0){this.$router.push("/");return}e.title==this.activeTag&&t==this.sett_tags.length&&this.$router.push(this.sett_tags[t-1].path),e.title==this.activeTag&&t!=this.sett_tags.length&&this.$router.push(this.sett_tags[t].path)}},changeMenu(e){this.$route.path!=e.path&&this.$router.replace(e.path)},tagAutoScroll(){let e=document.querySelector("#tagId");e&&e.scrollIntoView()},openContextMenu(e){e.preventDefault();let t=e.srcElement?e.srcElement:e.target;if(t.id){let n=t.id.split("-")[1],r=0;for(;r<this.editableTabs.length&&this.editableTabs[r].title!=n;++r);r<=0?(this.isDisabledCloseLeftBtnFlag=!0,this.isDisabledCloseRightBtnFlag=!1):r>=this.editableTabs.length-1?(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!0):(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!1),this.contextMenuVisible=!0,this.left=e.clientX-270,this.top=e.clientY-50}},curTabReload(){},closeAllTabs(){this.closeContextMenu()},closeOtherTabs(e){this.closeContextMenu()},closeContextMenu(){this.contextMenuVisible=!1}}},su={class:"cloud-navtabs__wrap"},lu={class:"cloud-navtabs__box"},iu={class:"cloud-navtabs__main"},cu={class:"cloud-navtabs__tags"};function uu(e,t,n,r,o,s){const l=a.resolveComponent("cv-icons"),c=a.resolveComponent("cv-btn-base"),i=a.resolveComponent("el-tag"),u=a.resolveComponent("el-scrollbar"),f=a.resolveComponent("cv-btn-text");return a.openBlock(),a.createElementBlock("div",su,[a.createElementVNode("div",lu,[a.createVNode(c,{class:"btn-opt-left",onClick:s.changeGdtLeft},{default:a.withCtx(()=>[a.createVNode(l,{type:"ElIconArrowLeft"})]),_:1},8,["onClick"]),a.createElementVNode("div",iu,[a.createVNode(u,{ref:"navScroll1"},{default:a.withCtx(()=>[a.createElementVNode("div",cu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.sett_tags,(d,m)=>(a.openBlock(),a.createBlock(i,{id:o.activeTag==d.name?"tagId":"",class:a.normalizeClass(["tag xxxxxx-tag",o.activeTag==d.name?"active":""]),key:d.name,closable:d.path!=="/index",onClose:g=>s.removeTag(d,m),onClick:g=>s.changeMenu(d),"disable-transitions":"",onContextmenu:a.withModifiers(s.openContextMenu,["prevent"])},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.title),1)]),_:2},1032,["id","class","closable","onClose","onClick","onContextmenu"]))),128))])]),_:1},512)]),a.createVNode(c,{class:"btn-opt-right",onClick:s.changeGdtRight},{default:a.withCtx(()=>[a.createVNode(l,{type:"ElIconArrowRight"})]),_:1},8,["onClick"]),a.createVNode(c,{class:"btn-opt-close"},{default:a.withCtx(()=>[t[5]||(t[5]=a.createTextVNode(" 关闭操作 ",-1)),a.createVNode(l,{type:"ElIconCaretBottom"})]),_:1}),a.withDirectives(a.createElementVNode("div",{class:"cloud-navtabs__contextmenu",style:a.normalizeStyle(o.contextMenuStyle)},[a.createElementVNode("ul",{style:a.normalizeStyle({left:o.left+"px",top:o.top+"px"})},[a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[0]||(t[0]=d=>s.curTabReload())},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode("重新加载",-1)])]),_:1})]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[1]||(t[1]=d=>s.closeAllTabs())},{default:a.withCtx(()=>[...t[7]||(t[7]=[a.createTextVNode("关闭所有",-1)])]),_:1})]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[2]||(t[2]=d=>s.closeOtherTabs("left")),disabled:o.isDisabledCloseLeftBtnFlag},{default:a.withCtx(()=>[...t[8]||(t[8]=[a.createTextVNode("关闭左边",-1)])]),_:1},8,["disabled"])]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[3]||(t[3]=d=>s.closeOtherTabs("right")),disabled:o.isDisabledCloseRightBtnFlag},{default:a.withCtx(()=>[...t[9]||(t[9]=[a.createTextVNode("关闭右边",-1)])]),_:1},8,["disabled"])]),a.createElementVNode("li",null,[a.createVNode(f,{onClick:t[4]||(t[4]=d=>s.closeOtherTabs("other"))},{default:a.withCtx(()=>[...t[10]||(t[10]=[a.createTextVNode("关闭其他",-1)])]),_:1})])],4)],4),[[a.vShow,o.contextMenuVisible]])])])}const du=re(au,[["render",uu]]),fu={name:"SidebarMenuItem",props:{menuData:{type:Array,default(e){return[]}},collapse:{type:[Boolean],default:!1},isChildren:{type:[Boolean],default:!1},appData:{type:[Array,Object],default(e){return{}}}},data(){return{}},computed:{badgeStyle(){return this.collapse?"position: absolute; right: 25px; margin-top: -20px":"position: absolute; right: 30px; "}},methods:{currBadge(e){return this.menuBadge[e]&&this.menuBadge[e]>0?this.menuBadge[e]:0},handleOpenMenu(e){if(e&&e.isWindow){var t=window.open("","MyWindowName","");t.location.href=e.path}else this.jumpsAuth(e.path)}}},_u={class:"cloud-subapp-menu-icon"},mu={key:1},hu={key:0,class:"cloud-subapp-menu-icon"},pu={key:1,class:"cloud-subapp-menu-icon"};function gu(e,t,n,r,o,s){const l=a.resolveComponent("cv-icons"),c=a.resolveComponent("SidebarMenuItem",!0),i=a.resolveComponent("el-sub-menu"),u=a.resolveComponent("cv-badge"),f=a.resolveComponent("el-menu-item");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.menuData,d=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[d.isMenu==!0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[d.children&&d.children.length>0&&d.children_menu_num>0?(a.openBlock(),a.createBlock(i,{key:d.name,index:d.name},{title:a.withCtx(()=>[a.createElementVNode("div",_u,[d.meta.icon?(a.openBlock(),a.createBlock(l,{key:0,type:d.meta.icon,size:"16"},null,8,["type"])):a.createCommentVNode("",!0),!d.meta.icon&&n.collapse?(a.openBlock(),a.createElementBlock("span",mu,a.toDisplayString(d.meta.short||d.meta.title),1)):a.createCommentVNode("",!0)]),a.createElementVNode("span",null,a.toDisplayString(d.meta.title||d.meta.short),1)]),default:a.withCtx(()=>[a.createVNode(c,{appData:n.appData,menuData:d.children,collapse:n.collapse,isChildren:""},null,8,["appData","menuData","collapse"])]),_:2},1032,["index"])):(a.openBlock(),a.createBlock(f,{index:d.name,key:"b"+d.name,onClick:m=>s.handleOpenMenu(d)},{title:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.meta.short||d.meta.title),1)]),default:a.withCtx(()=>[!d.meta.icon&&n.collapse&&!n.isChildren?(a.openBlock(),a.createElementBlock("div",hu,a.toDisplayString(d.meta.short||d.meta.title),1)):(a.openBlock(),a.createElementBlock("div",pu,[d.meta.icon?(a.openBlock(),a.createBlock(l,{key:0,type:d.meta.icon,size:"16"},null,8,["type"])):a.createCommentVNode("",!0)])),d.meta.badge&&s.currBadge(d.meta.badge)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[s.currBadge(d.meta.badge)>0?(a.openBlock(),a.createBlock(u,{key:0,class:"menu-badge",type:"danger",max:999,value:s.currBadge(d.meta.badge),style:a.normalizeStyle(s.badgeStyle)},null,8,["value","style"])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0)]),_:2},1032,["index","onClick"]))],64)):a.createCommentVNode("",!0)],64))),256)}const Eu=re(fu,[["render",gu]]),Su={name:"SidebarMenuBox",components:{SidebarMenuItem:Eu},props:{collapse:{type:[Boolean],default:!1}},data(){return{menuDefaultOpeneds:[],menuCurrList:[],activeName:null}},watch:{$route(e,t){if(e.meta.treeInfo){let n=e.meta.treeInfo,r=n.length-1;for(let o=r;o>=0;o--)n[o].isMenu==!0&&n[o].isPage==!0&&(this.activeName=n[o].name||e.name)}},menuCurrOnly(e){this.menuCurrList=e},menuCurrOpeneds(e){this.menuDefaultOpeneds=e}},created(){this.menuCurrList=this.menuCurrOnly,this.menuDefaultOpeneds=this.menuCurrOpeneds},methods:{handleOpen(e,t){},handleClose(e,t){}}},bu={class:"cloud-subapp-wrap"},vu={class:"cloud-sidebar__title"},Nu={class:"cloud-subapp-menu-box"};function Cu(e,t,n,r,o,s){const l=a.resolveComponent("SidebarMenuItem"),c=a.resolveComponent("el-menu");return a.openBlock(),a.createElementBlock("div",bu,[a.createElementVNode("div",vu,a.toDisplayString(e.openCaseInfo.LAST_IP_TITLE),1),a.createElementVNode("div",Nu,[a.createVNode(c,{collapse:n.collapse,"default-openeds":o.menuDefaultOpeneds,"default-active":o.activeName,onOpen:s.handleOpen,onClose:s.handleClose},{default:a.withCtx(()=>[a.createVNode(l,{appData:e.openCaseInfo,menuData:o.menuCurrList,collapse:n.collapse},null,8,["appData","menuData","collapse"])]),_:1},8,["collapse","default-openeds","default-active","onOpen","onClose"])])])}const yu=re(Su,[["render",Cu]]),Tu={name:"ChangePassword",props:{modelValue:{type:[String,Boolean],default:!1}},data(){return{visible:!1,formData:{},formRules:{old_pwd:[{required:!0,message:"请输入旧密码"}],new_pwd1:[{required:!0,message:"请输入新密码"}],new_pwd2:[{required:!0,message:"请重新输入新密码"}]}}},watch:{modelValue(e){this.visible=e}},created(){this.visible=this.modelValue},methods:{changeValue(e){this.visible=e,this.$emit("update:modelValue",e)},handleCancel(){this.changeValue(!1),this.formData={}},handleLogout(){const e=ue();this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).finally(()=>{e.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})},handleBeforeOk(){if(this.formData.new_pwd1!==this.formData.new_pwd2)return this.$message.error("两次密码不一致"),!1;this.$request.flagPut("BASE_ACCSEC_COMMON_CHG_PWD",this.formData).then(e=>{this.$confirm("修改成功,请重新登录","重新登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).finally(()=>{this.handleLogout()})}).catch(e=>{this.$message.error(e.message)})}}},Au={class:"dialog-footer"};function Ou(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-form-item"),i=a.resolveComponent("el-form"),u=a.resolveComponent("el-button"),f=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(f,{width:520,modelValue:o.visible,"onUpdate:modelValue":t[3]||(t[3]=d=>o.visible=d),title:"修改密码","close-on-click-modal":!1,"close-on-press-escape":!1,onClose:s.handleCancel},{footer:a.withCtx(()=>[a.createElementVNode("div",Au,[a.createVNode(u,{onClick:s.handleCancel},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(u,{type:"primary",onClick:s.handleBeforeOk},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])]),default:a.withCtx(()=>[a.createVNode(i,{model:o.formData,"label-width":"auto"},{default:a.withCtx(()=>[a.createVNode(c,{prop:"old_pwd",label:"原密码"},{default:a.withCtx(()=>[a.createVNode(l,{type:"password","show-password":"",modelValue:o.formData.old_pwd,"onUpdate:modelValue":t[0]||(t[0]=d=>o.formData.old_pwd=d)},null,8,["modelValue"])]),_:1}),a.createVNode(c,{prop:"new_pwd1",label:"新密码"},{default:a.withCtx(()=>[a.createVNode(l,{type:"password","show-password":"",modelValue:o.formData.new_pwd1,"onUpdate:modelValue":t[1]||(t[1]=d=>o.formData.new_pwd1=d)},null,8,["modelValue"])]),_:1}),a.createVNode(c,{prop:"new_pwd2",label:"确认密码"},{default:a.withCtx(()=>[a.createVNode(l,{type:"password","show-password":"",modelValue:o.formData.new_pwd2,"onUpdate:modelValue":t[2]||(t[2]=d=>o.formData.new_pwd2=d)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","onClose"])}const Iu=re(Tu,[["render",Ou]]),wu={name:"SwitchBusiness",emits:["refreshFunc","reselectFunc","selectFunc"],props:{modelValue:{type:[Array],default:[]},reselectTitle:{type:[String],default:"退出选择"},reselectFunc:{type:[Function]},selectFunc:{type:[Function]}},watch:{modelValue(e){this.chainOriginalList=e,this.handleSearch()}},data(){return{chainKeyword:"",chainOriginalList:[],chainLastList:[]}},created(){this.chainOriginalList=this.modelValue,this.handleSearch()},methods:{handleSearch(e){this.chainLastList=this.chainListParse(this.chainOriginalList)},chainListParse(e){const t=e.filter(r=>{let o=this.chainKeyword.trim();return!o||r.business_name.toLowerCase().includes(o.toLowerCase())}).reduce((r,o)=>{const s=o.business_brand||"";return r[s]||(r[s]=[]),r[s].push(o),r},{}),n=[];for(const r in t)n.push({title:r,total:t[r].length||0,list:t[r]});return n.sort((r,o)=>r.title===""?-1:1),n},chainForceRefresh(){this.$emit("refreshFunc",!0)},chainReselection(){this.$emit("reselectFunc")},chainSelection(e){this.$emit("selectFunc",e)}}},Lu={class:"cloud-login-change-wrap"},ku={class:"cloud-login-change-box1"},Du={class:"cloud-login-change-search"},Ru={class:"cloud-login-change-box2"},Vu={class:"cloud-login-change-group-box"},Pu={class:"cloud-login-change-group-title"},Fu={class:"cloud-login-change-group-sublist"},xu=["onClick"],Mu={class:"cloud-login-change-item-left"},Bu={class:"cloud-login-change-item-left-icon"},Uu=["src"],Gu={class:"cloud-login-change-item-right"},$u={class:"cloud-login-change-item-right-label"},Wu={class:"cloud-login-change-item-right-label2"},Yu={class:"cloud-login-change-item-more"};function Hu(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-button"),i=a.resolveComponent("cv-icons");return a.openBlock(),a.createElementBlock("div",Lu,[a.createElementVNode("div",ku,[a.createElementVNode("div",{class:"cloud-login-change-refresh",onClick:t[0]||(t[0]=(...u)=>s.chainForceRefresh&&s.chainForceRefresh(...u))},"刷新账号权限"),a.createElementVNode("div",{class:"cloud-login-change-reset",onClick:t[1]||(t[1]=(...u)=>s.chainReselection&&s.chainReselection(...u))},a.toDisplayString(n.reselectTitle),1),t[4]||(t[4]=a.createElementVNode("div",{class:"cloud-login-change-title"},"选择商户",-1)),t[5]||(t[5]=a.createElementVNode("div",{class:"cloud-login-change-desc"},[a.createElementVNode("p",null,"为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),a.createElementVNode("p",null,"后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")],-1)),a.createElementVNode("div",Du,[a.createVNode(l,{modelValue:o.chainKeyword,"onUpdate:modelValue":t[2]||(t[2]=u=>o.chainKeyword=u),size:"large",placeholder:"搜索商户名称",clearable:"",style:{"max-width":"500px"},onInput:s.handleSearch},null,8,["modelValue","onInput"]),a.createVNode(c,{size:"large",onClick:s.handleSearch},{default:a.withCtx(()=>[...t[3]||(t[3]=[a.createTextVNode("搜索",-1)])]),_:1},8,["onClick"])]),a.createElementVNode("div",Ru,[a.createElementVNode("div",Vu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.chainLastList,(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:"cloud-login-change-group-item",key:f},[a.createElementVNode("div",Pu,a.toDisplayString(u.title||"无")+"("+a.toDisplayString(u.total)+")",1),a.createElementVNode("div",Fu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.list,(d,m)=>(a.openBlock(),a.createElementBlock("div",{class:"cloud-login-change-item-bao",key:m,onClick:g=>s.chainSelection(d)},[a.createElementVNode("div",Mu,[a.createElementVNode("div",Bu,[a.createElementVNode("img",{src:d.business_icon_cdn},null,8,Uu)])]),a.createElementVNode("div",Gu,[a.createElementVNode("div",$u,a.toDisplayString(d.business_name),1),a.createElementVNode("div",Wu,"【"+a.toDisplayString(d.acc_rules_type_str)+"】",1)]),a.createElementVNode("div",Yu,[a.createVNode(i,{type:"ElIconArrowRight"})])],8,xu))),128))])]))),128))])])])])}const Ea=re(wu,[["render",Hu]]),Ku={name:"SameFrame",components:{SidebarMenuBox:yu,SameNavTabs:du,SameRouteView:ga,HeaderSysSettDrawer:tu,ChangePassword:Iu,SwitchBusiness:Ea},props:{},data(){return{frameHeadSysSettDia:!1,frameSidebarOpen:"off",breadcrumbPath:[],full_screen:!1,toData:{},chatUnreadTotal:0,emailUnreadTotal:0,chainAccountList:[],chainShowFlag:!1,changeShowFlag:!1}},computed:{headerInfoName(){return(this.accountInfo||{}).business_name||""},headerInfoNick(){let e=this.accountInfo||{};return e.staff_nick||e.account_mobile_hide||e.account_nick}},watch:{"$route.path"(e){this.$route.meta.treeInfo&&(this.breadcrumbPath=this.$route.meta.treeInfo)}},created(){},mounted(){this.frameSidebarOpen=this.layoutSidebarState,ro().$subscribe((t,n)=>{n.windowWidth<1061?this.frameSidebarOpen="off":this.frameSidebarOpen="on",ye().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)}),window.onresize=()=>{(document.mozFullScreen||document.fullScreen||document.webkitIsFullScreen||document.webkitRequestFullScreen||document.mozRequestFullScreen||document.msFullscreenEnabled)===void 0&&(this.full_screen=!1)}},methods:{frameSwicthMenu(){this.frameSidebarOpen=this.frameSidebarOpen=="on"?"off":"on",ye().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)},framePageRefresh(){this.jumpsReload()},frameFullScreen(){let e=document.documentElement;this.full_screen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.full_screen=!this.full_screen},frameTopSysSettOpen(){this.frameHeadSysSettDia=!0},frameTopSysSettClose(e){e(),this.frameHeadSysSettDia=!1},frameHandleCommand(e){const t=ue();switch(e){case"msg":this.$message.info("应用暂未开通,敬请期待");break;case"gongdan":this.$message.info("应用暂未开通,敬请期待");break;case"account_change":this.chainRefresh();break;case"account_chgpwd":this.changeShowFlag=!0;break;case"clearCache":this.$confirm("你确定要清除缓存吗?","清除缓存",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Xc().then(n=>{window.location.reload()})}).catch(n=>{});break;case"logout":this.$confirm("你确定要登出系统吗?","退出登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).then(n=>{n.code==200&&this.$message({message:"退出成功",type:"success"})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})});break;default:this.$message.info("应用暂未开通,敬请期待");break}},chainRefresh(e){let t={};e===!0&&(t.isForceRefresh=1),this.$request.setOptions({timeout:1e4}).flagGet("ORG_SYS_BASE_CHANGE",t).then(n=>{this.chainShowFlag=!0,this.chainAccountList=n.data||[]})},chainReselection(){this.chainShowFlag=!1},chainSelection(e){let t="";e.acc_rules_type=="sy-org-admin"?t="OrgAdminPwdLogin":e.acc_rules_type=="sy-org-staff"&&(t="OrgStaffPwdLogin"),this.$request.flagPost("ORG_SYS_BASE_CHANGE",{handleType:t,business_id:e.business_id||0}).then(async n=>{n.status==200&&(await ue().SA_ACCOUNT_SIGNIN(n.data||{}),this.$message({type:"success",message:"登入成功...",duration:1e3}),location.reload())})}}},ju={class:"cloud-layout__wrap"},qu={class:"cloud-header__wrap"},Xu={class:"cloud-header__logo"},zu={href:"/",title:"官网",class:"cloud-header__logo-a"},Qu=["src"],Ju={class:"cloud-header__logo-title"},Zu={class:"cloud-header__breadcrumb"},ed={key:0,class:"chopt-num"},td={key:0,class:"chopt-num"},nd={class:"cloud-header__info"},od=["src"],rd={class:"chinfo-infoname"},ad={class:"chinfo-infobname"},sd={class:"chinfo-infouname"},ld={class:"cloud-sidebar__wrap"},id={class:"cloud-pages__wrap"};function cd(e,t,n,r,o,s){const l=a.resolveComponent("cv-icons"),c=a.resolveComponent("el-breadcrumb-item"),i=a.resolveComponent("el-breadcrumb"),u=a.resolveComponent("el-dropdown-item"),f=a.resolveComponent("el-dropdown-menu"),d=a.resolveComponent("el-dropdown"),m=a.resolveComponent("SidebarMenuBox"),g=a.resolveComponent("SameNavTabs"),C=a.resolveComponent("SameRouteView"),E=a.resolveComponent("HeaderSysSettDrawer"),I=a.resolveComponent("ChangePassword"),h=a.resolveComponent("SwitchBusiness");return a.openBlock(),a.createElementBlock("div",ju,[a.createElementVNode("header",qu,[a.createElementVNode("div",Xu,[a.createElementVNode("a",zu,[a.createElementVNode("img",{class:"cloud-header__logo-img",src:e.openCaseInfo.LAST_IP_LOGO,alt:""},null,8,Qu)]),a.createElementVNode("div",Ju,a.toDisplayString(e.openCaseInfo.LAST_IP_BRAND),1)]),a.createElementVNode("div",{class:"cloud-header__opt",onClick:t[0]||(t[0]=(...S)=>s.frameSwicthMenu&&s.frameSwicthMenu(...S))},[o.frameSidebarOpen=="on"?(a.openBlock(),a.createBlock(l,{key:0,type:"ElIconFold",size:"20"})):a.createCommentVNode("",!0),o.frameSidebarOpen=="off"?(a.openBlock(),a.createBlock(l,{key:1,type:"ElIconExpand",size:"20"})):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:"cloud-header__opt",onClick:t[1]||(t[1]=(...S)=>s.framePageRefresh&&s.framePageRefresh(...S))},[a.createVNode(l,{type:"ElIconRefreshRight",size:"20"})]),a.createElementVNode("div",Zu,[a.createVNode(i,{separator:"/"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.breadcrumbPath,(S,b)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[b==o.breadcrumbPath.length-1||!S.path||S.path==""?(a.openBlock(),a.createBlock(c,{key:b,class:"no-redirect"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(S.title),1)]),_:2},1024)):(a.openBlock(),a.createBlock(c,{key:"b"+b,to:{path:S.path}},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(S.title),1)]),_:2},1032,["to"]))],64))),256))]),_:1})]),t[13]||(t[13]=a.createElementVNode("div",{class:"cloud-header__seat"},null,-1)),a.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[2]||(t[2]=S=>s.frameHandleCommand("msg"))},[a.createVNode(l,{type:"ElIconChatLineRound",size:"20"}),o.chatUnreadTotal>0?(a.openBlock(),a.createElementBlock("em",ed,a.toDisplayString(o.chatUnreadTotal>99?"99+":o.chatUnreadTotal),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[3]||(t[3]=S=>s.frameHandleCommand("gongdan"))},[a.createVNode(l,{type:"ElIconMessage",size:"20"}),o.emailUnreadTotal>0?(a.openBlock(),a.createElementBlock("em",td,a.toDisplayString(o.emailUnreadTotal>99?"99+":o.emailUnreadTotal),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",nd,[a.createVNode(d,{onCommand:s.frameHandleCommand,"popper-class":"cloud-header__info_dropdown"},{dropdown:a.withCtx(()=>[a.createVNode(f,null,{default:a.withCtx(()=>[a.createVNode(u,{command:"account_change"},{default:a.withCtx(()=>[a.createVNode(l,{type:"cvSvgPeopleSwitch",size:"15"}),t[9]||(t[9]=a.createTextVNode(" 切换账号 ",-1))]),_:1}),a.createVNode(u,{command:"account_chgpwd"},{default:a.withCtx(()=>[a.createVNode(l,{type:"cvSvgBaseLockOff",size:"15"}),t[10]||(t[10]=a.createTextVNode(" 修改密码 ",-1))]),_:1}),a.createVNode(u,{command:"clearCache",divided:""},{default:a.withCtx(()=>[a.createVNode(l,{type:"ElIconDelete",size:"15"}),t[11]||(t[11]=a.createTextVNode(" 清除缓存 ",-1))]),_:1}),a.createVNode(u,{command:"logout"},{default:a.withCtx(()=>[a.createVNode(l,{type:"cvSvgArrowExportRight",size:"14"}),t[12]||(t[12]=a.createTextVNode(" 退出登录 ",-1))]),_:1})]),_:1})]),default:a.withCtx(()=>[a.createElementVNode("span",null,[a.createElementVNode("img",{class:"chinfo-avatar",src:e.accountInfo.account_avatar_cdn,title:"头像"},null,8,od),a.createElementVNode("div",rd,[a.createElementVNode("div",ad,a.toDisplayString(s.headerInfoName),1),a.createElementVNode("div",sd,a.toDisplayString(s.headerInfoNick),1)]),a.createVNode(l,{type:"ElIconArrowDown"})])]),_:1},8,["onCommand"])]),a.createElementVNode("div",{title:"全屏",class:"cloud-header__opt",onClick:t[4]||(t[4]=(...S)=>s.frameFullScreen&&s.frameFullScreen(...S)),style:{"min-width":"50px"}},[o.full_screen?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(l,{key:0,type:"cvSvgArrowScreenUnfold",size:"20"})),o.full_screen?(a.openBlock(),a.createBlock(l,{key:1,type:"cvSvgArrowScreenFold",size:"20"})):a.createCommentVNode("",!0)]),a.createElementVNode("div",{title:"设置",class:"cloud-header__opt",onClick:t[5]||(t[5]=(...S)=>s.frameTopSysSettOpen&&s.frameTopSysSettOpen(...S)),style:{"min-width":"50px"}},[a.createVNode(l,{type:"cvSvgBaseSetting",size:"20"})])]),a.createElementVNode("section",ld,[a.createVNode(m,{collapse:o.frameSidebarOpen=="off"},null,8,["collapse"])]),a.createElementVNode("section",id,[a.withDirectives(a.createVNode(g,null,null,512),[[a.vShow,e.layoutNavTabs=="on"]]),a.createVNode(C,{className:"cloud-pages__box"})]),a.createVNode(E,{modelValue:o.frameHeadSysSettDia,"onUpdate:modelValue":t[6]||(t[6]=S=>o.frameHeadSysSettDia=S)},null,8,["modelValue"]),a.createVNode(I,{modelValue:o.changeShowFlag,"onUpdate:modelValue":t[7]||(t[7]=S=>o.changeShowFlag=S)},null,8,["modelValue"]),o.chainShowFlag?(a.openBlock(),a.createBlock(h,{key:0,modelValue:o.chainAccountList,"onUpdate:modelValue":t[8]||(t[8]=S=>o.chainAccountList=S),reselectTitle:"取消切换",onRefreshFunc:s.chainRefresh,onReselectFunc:s.chainReselection,onSelectFunc:s.chainSelection,style:{background:"#fff","z-index":"1005"}},null,8,["modelValue","onRefreshFunc","onReselectFunc","onSelectFunc"])):a.createCommentVNode("",!0)])}const ud=re(Ku,[["render",cd]]),dd={data(){return{watemarkText:"shiyun"}},computed:{watemarkConf(){let e=this.openCaseInfo.LAST_IP_BRAND||"",n=ue().accountInfo||null;return n&&n.account_mobile_hide&&(e=n.business_name+n.account_mobile_hide),{content:e,zIndex:-1,rotate:-22,gap:[100,100],offset:[],font:{fontSize:16,color:this.fontColor}}},fontColor(){return this.themesName=="dark"?"rgba(255, 255, 255, .15)":"rgba(0, 0, 0, .15)"}}};function fd(e,t,n,r,o,s){const l=a.resolveComponent("el-watermark");return a.openBlock(),a.createBlock(l,a.mergeProps(s.watemarkConf,{style:{height:"100%"}}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16)}const _d=re(dd,[["render",fd]]),md={name:"SdkFormEdit",props:{modelValue:{type:[Object],default:()=>({})},fieldsList:{type:[Array],default:()=>[]}},data(){return{formRules:{},formData:{},miaoToShichang:{}}},watch:{modelValue(e){this.formData=e},formData:{handler(e,t){this.$emit("update:modelValue",e),this.parseData()},deep:!0}},created(){this.formData=this.modelvalue||{}},methods:{parseData(){for(let e in this.fieldsList){let t=this.fieldsList[e];t.field_form_type=="input_second"&&this.$watch(`formData.${t.field_form_key}`,n=>{this.miaoToShichang[t.field_form_key]=cvUtils.secondsFormat(n)}),t.field_form_default&&(this.formData[t.field_form_key]=this.formData[t.field_form_key]||t.field_form_default)}}}},hd={style:{"font-size":"12px"}},pd={style:{color:"red","font-weight":"bold"}},gd={class:"multiline-text"};function Ed(e,t,n,r,o,s){const l=a.resolveComponent("cv-upload-image"),c=a.resolveComponent("cv-input-text"),i=a.resolveComponent("cv-input-number"),u=a.resolveComponent("cv-input-digit"),f=a.resolveComponent("cv-textarea"),d=a.resolveComponent("cv-radio-opt-base"),m=a.resolveComponent("cv-radio-group"),g=a.resolveComponent("cv-checkbox-opt-base"),C=a.resolveComponent("cv-checkbox-group"),E=a.resolveComponent("cv-form-item"),I=a.resolveComponent("cv-form-base");return a.openBlock(),a.createBlock(I,{ref:"refFormBase",rules:o.formRules,model:o.formData},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.fieldsList,(h,S)=>(a.openBlock(),a.createBlock(E,{key:S,label:h.field_form_label,required:h.field_form_require=="on"},a.createSlots({default:a.withCtx(()=>[h.field_form_type=="upload_image"?(a.openBlock(),a.createBlock(l,{key:0,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b,initValue:o.formData[h.field_form_key+"_CDN"],"onUpdate:initValue":b=>o.formData[h.field_form_key+"_CDN"]=b},null,8,["modelValue","onUpdate:modelValue","initValue","onUpdate:initValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_text"?(a.openBlock(),a.createBlock(c,{key:1,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_number"?(a.openBlock(),a.createBlock(i,{key:2,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_digit"?(a.openBlock(),a.createBlock(u,{key:3,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{append:a.withCtx(()=>[...t[0]||(t[0]=[a.createTextVNode("元",-1)])]),_:1},8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="input_second"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:4},[a.createVNode(i,{modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"]),a.createElementVNode("span",hd,[t[1]||(t[1]=a.createTextVNode(" 计算为 ",-1)),a.createElementVNode("span",pd,":"+a.toDisplayString(o.miaoToShichang[h.field_form_key]),1)])],64)):a.createCommentVNode("",!0),h.field_form_type=="textarea_base"?(a.openBlock(),a.createBlock(f,{key:5,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="encryption"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:6},[a.createVNode(f,{modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},null,8,["modelValue","onUpdate:modelValue"]),t[2]||(t[2]=a.createElementVNode("div",{style:{color:"#999","font-size":"12px"}},"加密字段配置后,下次呈现加密内容,请自行保存加密原数据",-1))],64)):a.createCommentVNode("",!0),h.field_form_type=="radio_switch"?(a.openBlock(),a.createBlock(m,{key:7,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{default:a.withCtx(()=>[a.createVNode(d,{label:"开启",value:"on"},{default:a.withCtx(()=>[...t[3]||(t[3]=[a.createTextVNode("开启",-1)])]),_:1}),a.createVNode(d,{label:"关闭",value:"off"},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("关闭",-1)])]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="radio_base"?(a.openBlock(),a.createBlock(m,{key:8,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.field_form_option,(b,N)=>(a.openBlock(),a.createBlock(d,{key:N,value:b.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0),h.field_form_type=="checkbox_base"?(a.openBlock(),a.createBlock(C,{key:9,modelValue:o.formData[h.field_form_key],"onUpdate:modelValue":b=>o.formData[h.field_form_key]=b},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.field_form_option,(b,N)=>(a.openBlock(),a.createBlock(g,{key:N,label:b.label,value:b.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(b.label),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):a.createCommentVNode("",!0)]),_:2},[h.field_form_tip?{name:"tip",fn:a.withCtx(()=>[a.createElementVNode("div",gd,a.toDisplayString(h.field_form_tip),1)]),key:"0"}:void 0]),1032,["label","required"]))),128))]),_:1},8,["rules","model"])}const Sd=re(md,[["render",Ed]]),bd={emits:["handleCallback","close"],props:{limit:{type:[Number],default:1}},data(){return{isLoading:!0,leftFilterText:"",leftTreeProps:{children:"children",label:"label"},leftTreeList:[],imageList:[],activeImageState:{},activeImageUrl:[],imageTextEditState:{},imgPageCurr:1,imgPageSize:21,imgPageTotal:0,upAction:"",upFileList:[]}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.label.indexOf(e)!==-1:!0},leftClickNode(e){},initLeftData(){this.$request.flagGet("SDK_FILE_ORG_FILE_LOG_GROUP",{}).then(e=>{let t=e.data||[];this.leftTreeList=[{label:"全部图片"}];for(let n in t)this.leftTreeList.push({label:t[n].filelog_sign||"无"});this.isLoading=!1}),this.isLoading=!1},initRightData(){this.$request.flagGet("SDK_FILE_ORG_FILE_LOG",{page:this.imgPageCurr,pagesize:this.imgPageSize}).then(e=>{this.imageList=e.data||[],this.imgPageTotal=e.total||0,this._initImageState()})},handleConfirm(e){e(),this.$emit("handleCallback",this.activeImageUrl),this.$emit("close")},handleClose(){this.$emit("close")},handleClickImage(e,t,n){let r=t.filelog_id,o=t.filelog_full_path,s=t.cdn_full_path;for(let l in this.activeImageUrl)if(o==this.activeImageUrl[l].save_full_path){this.activeImageUrl.splice(l,1),this.activeImageState[n]=!1;return}if(this.activeImageUrl.length+1>this.limit)return this.$message.error("超出数量"+this.limit),!1;this.activeImageUrl.push({filelog_id:r,save_full_path:o,cdn_full_path:s}),this.activeImageState[n]=!0},badgeValue(e){const t=this.activeImageUrl.findIndex(n=>n.filelog_id===e);return t!==-1?t+1:0},handleSizeChange(e){},handleCurrentChange(e){this.imgPageCurr=e,this.initRightData()},upHandleRemove(e,t){},upHandlePreview(e){},handleClickEditImageText(e){this.imageTextEditState[e]=!this.imageTextEditState[e]},_initImageState(){for(let e in this.imageList)this.imageTextEditState[e]=!1,this.activeImageState[e]=!1}}},vd={"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading",class:"cloud-dialog-choice-wrap"},Nd={style:{width:"100%",height:"500px"}},Cd={class:"cloud-dia-choice-box"},yd={class:"cloud-dia-choice-left"},Td={class:"cloud-dia-choice-right"},Ad={class:"cloud-dia-right-tools"},Od={class:"cloud-dia-right-list"},Id=["src","onClick"],wd={class:"cloud-dia-right-item_text"},Ld={key:1},kd={style:{padding:"10px 20px 0 0","text-align":"right","box-sizing":"border-box"}};function Dd(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-tree"),i=a.resolveComponent("cv-btn-base"),u=a.resolveComponent("el-upload"),f=a.resolveComponent("cv-select-tree"),d=a.resolveComponent("el-badge"),m=a.resolveComponent("cv-icons"),g=a.resolveComponent("el-pagination"),C=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",vd,[a.createElementVNode("div",Nd,[a.createElementVNode("section",Cd,[a.createElementVNode("section",yd,[t[1]||(t[1]=a.createElementVNode("div",{class:"cloud-dia-left-title"},"类别",-1)),a.createVNode(l,{class:"cloud-dia-left-filter",modelValue:o.leftFilterText,"onUpdate:modelValue":t[0]||(t[0]=E=>o.leftFilterText=E),placeholder:"请搜索",clearable:""},null,8,["modelValue"]),a.createVNode(c,{ref:"refDiaSelectLeft",class:"cloud-dia-left-tree",data:o.leftTreeList,props:o.leftTreeProps,"default-expand-all":"","filter-node-method":s.leftFilterNode,onNodeClick:s.leftClickNode},null,8,["data","props","filter-node-method","onNodeClick"])]),a.createElementVNode("section",Td,[a.createElementVNode("div",Ad,[a.createVNode(u,{class:"dialog-choice-image-upload",action:o.upAction,"on-preview":s.upHandlePreview,"on-remove":s.upHandleRemove,"show-file-list":!1,"file-list":o.upFileList},{default:a.withCtx(()=>[a.createVNode(i,{type:"primary"},{default:a.withCtx(()=>[...t[2]||(t[2]=[a.createTextVNode("上传图片",-1)])]),_:1})]),_:1},8,["action","on-preview","on-remove","file-list"]),a.createVNode(i,{type:"primary",disabled:o.activeImageUrl.length===0},{default:a.withCtx(()=>[...t[3]||(t[3]=[a.createTextVNode("使用选中图片",-1)])]),_:1},8,["disabled"]),a.createVNode(i,{type:"danger",disabled:o.activeImageUrl.length===0},{default:a.withCtx(()=>[...t[4]||(t[4]=[a.createTextVNode("删除图片",-1)])]),_:1},8,["disabled"]),a.createVNode(f,{dataField:o.leftTreeProps,dataLists:o.leftTreeList,placeholder:"图片移动至",style:{"margin-left":"10px",width:"160px"}},null,8,["dataField","dataLists"])]),a.createElementVNode("div",Od,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.imageList,(E,I)=>(a.openBlock(),a.createElementBlock("div",{class:"cloud-dia-right-item",key:I},[a.createVNode(d,{class:a.normalizeClass(s.badgeValue(E.filelog_id)==0&&"isshowBadge"),value:s.badgeValue(E.filelog_id)},{default:a.withCtx(()=>[a.createElementVNode("img",{class:a.normalizeClass(o.activeImageState[I]&&"active"),src:E.cdn_full_path,alt:"",onClick:h=>s.handleClickImage(h,E,I)},null,10,Id)]),_:2},1032,["class","value"]),a.createElementVNode("div",wd,[o.imageTextEditState[I]?(a.openBlock(),a.createBlock(l,{key:0,label:"文本输入",modelValue:E.filelog_full_name,"onUpdate:modelValue":h=>E.filelog_full_name=h},null,8,["modelValue","onUpdate:modelValue"])):(a.openBlock(),a.createElementBlock("p",Ld,a.toDisplayString(E.filelog_full_name),1)),a.createVNode(m,{type:"ElIconEdit",onClick:h=>s.handleClickEditImageText(I)},null,8,["onClick"])])]))),128))]),a.createVNode(g,{background:"",onSizeChange:s.handleSizeChange,onCurrentChange:s.handleCurrentChange,"current-page":o.imgPageCurr,"page-size":o.imgPageSize,layout:"total, prev, pager, next, jumper",total:o.imgPageTotal},null,8,["onSizeChange","onCurrentChange","current-page","page-size","total"])])])]),a.createElementVNode("div",kd,[a.createVNode(i,{onClick:s.handleClose},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(i,{type:"primary",onClick:s.handleConfirm,autoLoading:""},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])])),[[C,o.isLoading]])}const Sa=re(bd,[["render",Dd]]),Rd={name:"SdkManageImage",emits:["update:modelValue","update:initValue"],props:{modelValue:{type:[String,Array],default:""},initValue:{type:[String,Array],default:""},showBig:{type:[Boolean],default:!1},multiple:{type:[Boolean],default:!1},limit:{type:[String,Number],default:1}},data(){return{localValue:"",localInitVal:""}},watch:{modelValue(e){this.localValue=e||""},initValue(e){this.localInitVal=e||""},localValue(e){this.$emit("update:modelValue",e)},localInitVal(e){this.$emit("update:initValue",e)}},created(){},methods:{handleDiaImage(e){this.$cvDialogRender(Sa,{title:"选择图片",width:"1100px"},{},{handleCallback:t=>{let n=t[0];this.localValue=n.save_full_path,this.localInitVal=n.cdn_full_path}}).show()}}},Vd={style:{display:"flex","flex-direction":"column",gap:"10px"}};function Pd(e,t,n,r,o,s){const l=a.resolveComponent("cv-btn-base"),c=a.resolveComponent("cv-upload-image");return a.openBlock(),a.createElementBlock("view",Vd,[a.createVNode(l,{onClick:s.handleDiaImage,style:{width:"150px"}},{default:a.withCtx(()=>[...t[2]||(t[2]=[a.createTextVNode("选择图片",-1)])]),_:1},8,["onClick"]),a.createVNode(c,{modelValue:o.localValue,"onUpdate:modelValue":t[0]||(t[0]=i=>o.localValue=i),showBig:n.showBig,multiple:n.multiple,limit:n.limit,initValue:o.localInitVal,"onUpdate:initValue":t[1]||(t[1]=i=>o.localInitVal=i)},null,8,["modelValue","showBig","multiple","limit","initValue"])])}const Fd=re(Rd,[["render",Pd]]),xd={emits:["handleCallback","close"],props:{is_one_close:{type:[Boolean],default:!1}},data(){return{isLoading:!0,leftFilterText:"",leftTreeProps:{children:"tree",label:"cat_name"},leftTreeList:[],rightSoData:{},rightSoRules:{},tableRefresh:0,tableLaseData:[],tableConfig:{apiFunc:this.$request.flagGet("GOODS_SYS_BUS_GOODS_ALL"),where:{}}}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.cat_name.indexOf(e)!==-1:!0},leftClickNode(e){this.$refs.refDiaSelectTb.searchSubmit({cat_id:e.cat_id||0,keyword:this.rightSoData.key_goods_name||""})},initLeftData(){this.$request.flagGet("GOODS_SYS_BUS_SETT_CATEGORY",{}).then(e=>{this.leftTreeList=e.data||[],this.isLoading=!1}),this.isLoading=!1},initRightData(){},handleSelect(e){this.$message.success("已选择:"+e.goods_name),this.$emit("handleCallback",e),this.is_one_close&&this.$emit("close")},handleConfirm(e){e(),this.$emit("close")},handleClose(){this.$emit("close")}}},Md={"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading",class:"cloud-dialog-choice-wrap"},Bd={style:{width:"100%",height:"500px"}},Ud={class:"cloud-dia-choice-box"},Gd={class:"cloud-dia-choice-left"},$d={class:"cloud-dia-choice-right"},Wd={style:{padding:"10px 20px 0 0","text-align":"right","box-sizing":"border-box"}};function Yd(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-tree"),i=a.resolveComponent("cv-input-text"),u=a.resolveComponent("cv-form-item"),f=a.resolveComponent("cv-btn-base"),d=a.resolveComponent("cv-form-inline"),m=a.resolveComponent("cvTbColumnCheck"),g=a.resolveComponent("cvTbColumnText"),C=a.resolveComponent("cvTbColumnImg"),E=a.resolveComponent("cv-btn-text"),I=a.resolveComponent("cvTbColumnOpt"),h=a.resolveComponent("cvTableBase"),S=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",Md,[a.createElementVNode("div",Bd,[a.createElementVNode("section",Ud,[a.createElementVNode("section",Gd,[t[4]||(t[4]=a.createElementVNode("div",{class:"cloud-dia-left-title"},"分类",-1)),a.createVNode(l,{class:"cloud-dia-left-filter",modelValue:o.leftFilterText,"onUpdate:modelValue":t[0]||(t[0]=b=>o.leftFilterText=b),placeholder:"请搜索",clearable:""},null,8,["modelValue"]),a.createVNode(c,{ref:"refDiaSelectLeft",class:"cloud-dia-left-tree",data:o.leftTreeList,props:o.leftTreeProps,"default-expand-all":"","filter-node-method":s.leftFilterNode,onNodeClick:s.leftClickNode},null,8,["data","props","filter-node-method","onNodeClick"])]),a.createElementVNode("section",$d,[a.createVNode(d,{ref:"refFormBase",rules:o.rightSoRules,model:o.rightSoData},{default:a.withCtx(()=>[a.createVNode(u,{label:"商品搜索"},{default:a.withCtx(()=>[a.createVNode(i,{modelValue:o.rightSoData.key_goods_name,"onUpdate:modelValue":t[1]||(t[1]=b=>o.rightSoData.key_goods_name=b),placeholder:"请输入商品名称,关键字"},null,8,["modelValue"])]),_:1}),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(f,{icon:"ElIconSearch",type:"primary",onClick:t[2]||(t[2]=b=>e.$refs.refDiaSelectTb.searchSubmit(o.rightSoData))},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode(" 搜索 ",-1)])]),_:1}),a.createVNode(f,{icon:"el-icon-refresh-left",onClick:t[3]||(t[3]=b=>(o.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit()))},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode(" 重置 ",-1)])]),_:1})]),_:1})]),_:1},8,["rules","model"]),a.createVNode(h,{ref:"refDiaSelectTb",tableConfig:o.tableConfig,tableRefresh:o.tableRefresh,height:"390"},{default:a.withCtx(()=>[a.createVNode(m,{label:"选择"}),a.createVNode(g,{label:"商品分类",prop:"cat_name"}),a.createVNode(C,{label:"封面图",prop:"goods_thumb_cdn"}),a.createVNode(g,{label:"商品ID",prop:"goods_id"}),a.createVNode(g,{label:"商品名称",prop:"goods_name"}),a.createVNode(g,{label:"商品售价",prop:"goods_price_market"}),a.createVNode(g,{label:"扩展ID",prop:"goods_expand_id"}),a.createVNode(I,{label:"操作",width:"100"},{default:a.withCtx(({row:b,$index:N})=>[a.createVNode(E,{onClick:w=>s.handleSelect(b)},{default:a.withCtx(()=>[...t[7]||(t[7]=[a.createTextVNode("选择",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["tableConfig","tableRefresh"])])])]),a.createElementVNode("div",Wd,[a.createVNode(f,{onClick:s.handleClose},{default:a.withCtx(()=>[...t[8]||(t[8]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(f,{type:"primary",onClick:s.handleConfirm,autoLoading:""},{default:a.withCtx(()=>[...t[9]||(t[9]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])])),[[S,o.isLoading]])}const Hd=re(xd,[["render",Yd]]),Kd={emits:["handleCallback","close"],props:{is_one_close:{type:[Boolean],default:!1}},data(){return{isLoading:!0,leftFilterText:"",leftTreeProps:{children:"tree",label:"dept_name"},leftTreeList:[],rightSoData:{},rightSoRules:{},tableRefresh:0,tableLaseData:[],tableConfig:{apiFunc:this.$request.flagGet("ORG_SYS_BASE_STAFF"),where:{}}}},watch:{leftFilterText(e){this.$refs.refDiaSelectLeft.filter(e)}},created(){this.initLeftData(),this.initRightData()},methods:{leftFilterNode(e,t){return e?t.dept_name.indexOf(e)!==-1:!0},leftClickNode(e){this.$refs.refDiaSelectTb.searchSubmit({dept_id:e.dept_id||0,keyword:this.rightSoData.key_staff_name||""})},initLeftData(){this.$request.flagGet("ORG_SYS_BASE_DEPT",{}).then(e=>{this.leftTreeList=e.data||[],this.isLoading=!1}),this.isLoading=!1},initRightData(){},handleSelect(e){this.$message.success("已选择:"+e.staff_name),this.$emit("handleCallback",e),this.is_one_close&&this.$emit("close")},handleConfirm(e){e(),this.$emit("close")},handleClose(){this.$emit("close")}}},jd={"element-loading-text":"加载中","element-loading-spinner":"el-icon-loading",class:"cloud-dialog-choice-wrap"},qd={style:{width:"100%",height:"500px"}},Xd={class:"cloud-dia-choice-box"},zd={class:"cloud-dia-choice-left"},Qd={class:"cloud-dia-choice-right"},Jd={style:{padding:"10px 20px 0 0","text-align":"right","box-sizing":"border-box"}};function Zd(e,t,n,r,o,s){const l=a.resolveComponent("el-input"),c=a.resolveComponent("el-tree"),i=a.resolveComponent("cv-input-text"),u=a.resolveComponent("cv-form-item"),f=a.resolveComponent("cv-btn-base"),d=a.resolveComponent("cv-form-inline"),m=a.resolveComponent("cvTbColumnCheck"),g=a.resolveComponent("cvTbColumnText"),C=a.resolveComponent("cvTbColumnImg"),E=a.resolveComponent("cv-btn-text"),I=a.resolveComponent("cvTbColumnOpt"),h=a.resolveComponent("cvTableBase"),S=a.resolveDirective("loading");return a.withDirectives((a.openBlock(),a.createElementBlock("div",jd,[a.createElementVNode("div",qd,[a.createElementVNode("section",Xd,[a.createElementVNode("section",zd,[t[4]||(t[4]=a.createElementVNode("div",{class:"cloud-dia-left-title"},"部门",-1)),a.createVNode(l,{class:"cloud-dia-left-filter",modelValue:o.leftFilterText,"onUpdate:modelValue":t[0]||(t[0]=b=>o.leftFilterText=b),placeholder:"请搜索",clearable:""},null,8,["modelValue"]),a.createVNode(c,{ref:"refDiaSelectLeft",class:"cloud-dia-left-tree",data:o.leftTreeList,props:o.leftTreeProps,"default-expand-all":"","filter-node-method":s.leftFilterNode,onNodeClick:s.leftClickNode},null,8,["data","props","filter-node-method","onNodeClick"])]),a.createElementVNode("section",Qd,[a.createVNode(d,{ref:"refFormBase",rules:o.rightSoRules,model:o.rightSoData},{default:a.withCtx(()=>[a.createVNode(u,{label:"名称"},{default:a.withCtx(()=>[a.createVNode(i,{modelValue:o.rightSoData.key_staff_name,"onUpdate:modelValue":t[1]||(t[1]=b=>o.rightSoData.key_staff_name=b)},null,8,["modelValue"])]),_:1}),a.createVNode(u,null,{default:a.withCtx(()=>[a.createVNode(f,{icon:"ElIconSearch",type:"primary",onClick:t[2]||(t[2]=b=>e.$refs.refDiaSelectTb.searchSubmit(o.rightSoData))},{default:a.withCtx(()=>[...t[5]||(t[5]=[a.createTextVNode(" 搜索 ",-1)])]),_:1}),a.createVNode(f,{icon:"el-icon-refresh-left",onClick:t[3]||(t[3]=b=>(o.rightSoData={},e.$refs.refDiaSelectTb.searchSubmit()))},{default:a.withCtx(()=>[...t[6]||(t[6]=[a.createTextVNode(" 重置 ",-1)])]),_:1})]),_:1})]),_:1},8,["rules","model"]),a.createVNode(h,{ref:"refDiaSelectTb",tableConfig:o.tableConfig,tableRefresh:o.tableRefresh,height:"390"},{default:a.withCtx(()=>[a.createVNode(m,{label:"选择"}),a.createVNode(g,{label:"ID",prop:"staff_id",width:"80"}),a.createVNode(g,{label:"名称",prop:"staff_name"}),a.createVNode(C,{label:"头像",prop:"staff_avatar_cdn"}),a.createVNode(g,{label:"部门",prop:"dept_name"}),a.createVNode(g,{label:"角色",prop:"role_name"}),a.createVNode(g,{label:"性别",prop:"staff_sex",width:"60"}),a.createVNode(I,{label:"操作",width:"100"},{default:a.withCtx(({row:b,$index:N})=>[a.createVNode(E,{onClick:w=>s.handleSelect(b)},{default:a.withCtx(()=>[...t[7]||(t[7]=[a.createTextVNode("选择",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["tableConfig","tableRefresh"])])])]),a.createElementVNode("div",Jd,[a.createVNode(f,{onClick:s.handleClose},{default:a.withCtx(()=>[...t[8]||(t[8]=[a.createTextVNode("取 消",-1)])]),_:1},8,["onClick"]),a.createVNode(f,{type:"primary",onClick:s.handleConfirm,autoLoading:""},{default:a.withCtx(()=>[...t[9]||(t[9]=[a.createTextVNode("确 定",-1)])]),_:1},8,["onClick"])])])),[[S,o.isLoading]])}const ef=re(Kd,[["render",Zd]]);(function(){if(typeof EventTarget<"u"){let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){this.func=e,typeof r!="boolean"&&(r=r||{},r.passive=!1),this.func(t,n,r)}}})();var tf={methods:{jumpsXieyi(e){let t=vt(),n="";n=t.syApiBaseUrl+"base.base_sys/show_agreement/"+e+".html",n=n+"?syOpenAppProject="+t.syAppProjectSign,n=n+"&syOpenAppId="+t.syAppConnectId,window.open(n)},jumpsBack(){this.$router.go(-1)},jumpsReload(){Tt().SA_ROUTE_ALIVE_ADD()},jumpsMsgBack(e,t){this.$message({type:"success",duration:1e3,message:e||"",onClose:()=>{this.$router.go(-1),t&&typeof t=="function"&&t()}})},jumpsWinOpen(e){window.open(e)},jumpsRefresh(){this.$router.go(0)},jumpsTabs(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsAuth(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsQiankun(e){Ps(e)}}};function nf(e){e.mixin(tf)}function cr(e,t,n){const r=t.value;if(r)pa(r)||!1||e.parentNode&&e.parentNode.removeChild(e);else throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`)}function of(e,t,n){n=n||"vue3",n=="vue2"?e.directive("auth",{inserted:cr}):e.directive("auth",{mounted:cr}),t.$_auth=pa}/*! Element Plus v2.11.5 */var rf={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function af(e){e.use(mt,{locale:rf});for(const[t,n]of Object.entries(Ta))e.component("ElIcon"+t,n)}const sf="__syCacheSdkConfig__";async function lf(e){const t=await A.idbGetItem(sf),n={signatureFn:te.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),upHeaders:{...te.getHeaders(),"Sy-Client-Platform":"pc-web","Sy-Response-Type":"json"},upResponseFn(r,o,s){return r}};e.use(Na,{imageManage:{cat_url:"",file_url:"",upload_url:"",delete_api:""},geo:{mapKey:(t==null?void 0:t.map_key)||"",mapSecret:(t==null?void 0:t.map_secret)||""},cvCodeSms:{apiFunc:te.flagPost("SDK_SMS_COMMON_SMS_SEND")},cvUploadImage:{...n},upload:{...n},cvEditorQuill:{},cvEditorMarkdown:{}});for(const[r,o]of Object.entries(Aa))e.component("cvSvg"+r,o)}async function cf(e,t){_r(t),ao(e),ot().init(),ye().init(),await Ct().init(),await ue().init()}async function uf(e,t,n,r,o="",s=null){yt().init(r),Tt().init(n);let l=e.config.globalProperties;l.$onLaunched=new Promise(i=>{l.$isResolve=i}),l.$request=te,l.$cache=A,af(e),await lf(e),of(e,l),e.mixin(zc()),e.component("SdkFormEdit",Sd),e.component("SdkManageImage",Fd),nf(e),await df(t,r,o),e.use(fa);let c=ot().SA_LANGUAGE_GET();Sc(c,s),window.$t=xe.t}async function df(e,t,n){const r=Je(),o=ue(),s=yt(),l=Tt();r.QK_SEND_MSG_REG_SUBMENU(t);let c=vt().syProductSign||"";l.SA_PERMS_ROUTER_ADD(e,c),s.SA_MENU_PARSE(),r.QK_SEND_MSG_ROUTER_BEFORE(n);let i=!1,u=!1,f=!1;e.beforeEach((d,m,g)=>{const C=d.path||"",E=m.path,I=d.query||{};let h=o.accountIsLogin;if(le.__POWERED_BY_QIANKUN__&&(h=o.SA_ACCOUNT_IS_LOGGED()),I.token,h){if(i||(s.SA_MENU_PARSE(),i=!0),E=="/"&&C=="/none"){if(l.SA_PERMS_ROUTER_CHECK({name:"index"}))return g({path:"/"})}else if(!l.SA_PERMS_ROUTER_CHECK(d))return g({path:"/none",replace:!0});if((E=="/login"||E=="/index")&&(u||(r.QK_SEND_LOGIN_MSG(),u=!0,f=!1)),["/login","/alone_run"].includes(C))return g({path:"/"});g()}else{if(s.SA_MENU_PARSE(),i=!1,f||(r.QK_SEND_LOGOUT_MSG(),u=!1,f=!0),!["/login","/alone_run"].includes(C))return g({path:"/login",replace:!0});g()}}),e.isReady().then(async()=>{}),e.afterEach(function(d,m){var g;if((g=d==null?void 0:d.meta)!=null&&g.title&&!le.__POWERED_BY_QIANKUN__){let C="管理系统",E=d.meta.title;document.title=E?`${E} - ${C}`:`${C}`}})}async function ff(e,t,n){le.__POWERED_BY_QIANKUN__?xs(e,t,n):t()}exports.HttpObj=te;exports.SameRouteView=ga;exports.SameWatermark=_d;exports.StorageObj=A;exports.SwitchBusiness=Ea;exports._export_sfc=re;exports.console=ud;exports.createHttp=ao;exports.dialogGoods=Hd;exports.dialogImage=Sa;exports.dialogStaff=ef;exports.qiankunWindow=le;exports.sdkBootstrap=ff;exports.sdkConfigGet=vt;exports.sdkConfigSet=_r;exports.sdkStartBefore=cf;exports.sdkStarup=uf;exports.useSdkAccountStore=ue;exports.useSdkLanguageStore=ot;exports.useSdkPermissionStore=Tt;exports.useSdkProductStore=yt;exports.useSdkQiankunStore=Je;exports.useSdkSystemStore=Ct;exports.useSdkThemesStore=ye;exports.useSdkWindowStore=ro;
|