| 12 |
- var e=Object.defineProperty,t=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,i=(t,a,l)=>a in t?e(t,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[a]=l,o=(e,t)=>{for(var a in t||(t={}))n.call(t,a)&&i(e,a,t[a]);if(l)for(var a of l(t))s.call(t,a)&&i(e,a,t[a]);return e},r=(e,l)=>t(e,a(l)),u=(e,t,a)=>i(e,"symbol"!=typeof t?t+"":t,a),c=(e,t,a)=>new Promise(((l,n)=>{var s=e=>{try{o(a.next(e))}catch(t){n(t)}},i=e=>{try{o(a.throw(e))}catch(t){n(t)}},o=e=>e.done?l(e.value):Promise.resolve(e.value).then(s,i);o((a=a.apply(e,t)).next())}));import{r as d,a as v,h as m,M as h,i as p,j as f,A as g,m as y,u as b,b as k,C as A,c as w,k as T,n as x,o as C,p as S,S as L,q as _,s as E,d as M,e as I,v as R,w as O,l as B,t as P}from"./index-CqEtSlNP.js";import{j as W,Z as H,s as D,x as F,c as X,Q as j,G as z,V,R as N,u as U,W as K,v as $,H as G,S as Y,aq as Z,r as q,d as J,m as Q,C as ee,_ as te,U as ae,Y as le,ar as ne,F as se,a0 as ie,a4 as oe,a8 as re,as as ue,i as ce,a6 as de,a7 as ve,at as me,au as he,D as pe,X as fe,am as ge,n as ye,av as be,N as ke,w as Ae,ab as we,a9 as Te,a3 as xe,aw as Ce,ap as Se,ax as Le,E as _e,ay as Ee,az as Me,aA as Ie,aB as Re,aC as Oe,af as Be,ag as Pe,ac as We,p as He,aD as De,aE as Fe,aF as Xe,aG as je,aH as ze,aI as Ve,k as Ne,aJ as Ue,aK as Ke,aL as $e,aM as Ge,aN as Ye,aO as Ze,aP as qe,$ as Je,a2 as Qe,aQ as et,ah as tt,a1 as at}from"./vendor-CnLKbIcc.js";import{_ as lt}from"./_plugin-vue_export-helper-BCo6x5W8.js";import{a as nt,b as st,c as it,d as ot}from"./index-DyDYe-q7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{_ as rt}from"./index-BqI92Y-9.js";/* empty css */const ut=e=>{window.open(e,"_blank")},ct=(e,t=!1)=>{var a,l;const{link:n,isIframe:s}=e.meta;if(n&&!s)return ut(n);if(!t||!(null==(a=e.children)?void 0:a.length))return d.push(e.path);const i=e=>{var t;for(const a of e)if(!a.meta.isHide)return(null==(t=a.children)?void 0:t.length)?i(a.children):a;return e[0]},o=i(e.children);if(null==(l=o.meta)?void 0:l.link)return ut(o.meta.link);d.push(o.path)},dt=W(r(o({},{name:"ArtLayouts"}),{__name:"index",setup(e){const t=v(),a=m(),l=H(),{menuType:n,menuOpen:s,showWorkTab:i,tabStyle:o}=D(t);F((()=>{const e=s.value?t.getMenuOpenWidth:h.CLOSE;a.setMenuWidth(e)}));const r=X((()=>({paddingLeft:u.value,paddingTop:c.value}))),u=X((()=>{const{meta:e}=l.currentRoute.value,a=e.isFirstLevel,i=n.value,o=s.value?t.getMenuOpenWidth:h.CLOSE;switch(i){case p.DUAL_MENU:return a?"80px":`calc(${o} + 80px)`;case p.TOP_LEFT:return a?0:o;case p.TOP:return 0;default:return o}})),c=X((()=>{const{openTop:e,closeTop:t}=f(o.value);return`${i.value?e:t}px`}));return(e,t)=>(z(),j("div",{class:"layouts",style:N(U(r))},[V(e.$slots,"default")],4))}})),vt=lt(W(r(o({},{name:"ArtWatermark"}),{__name:"index",props:{content:{default:g.systemInfo.name},visible:{type:Boolean,default:!1},fontSize:{default:16},fontColor:{default:"rgba(128, 128, 128, 0.2)"},rotate:{default:-22},gapX:{default:100},gapY:{default:100},offsetX:{default:50},offsetY:{default:50},zIndex:{default:3100}},setup(e){const t=v(),{watermarkVisible:a}=D(t);return(e,t)=>{const l=Z;return U(a)?(z(),j("div",{key:0,class:"layout-watermark",style:N({zIndex:e.zIndex})},[$(l,{content:e.content,font:{fontSize:e.fontSize,color:e.fontColor},rotate:e.rotate,gap:[e.gapX,e.gapY],offset:[e.offsetX,e.offsetY]},{default:G((()=>t[0]||(t[0]=[Y("div",{style:{height:"100vh"}},null,-1)]))),_:1,__:[0]},8,["content","font","rotate","gap","offset"])],4)):K("",!0)}}})),[["__scopeId","data-v-8e0a18b5"]]),mt=lt(W(r(o({},{name:"ArtFireworksEffect"}),{__name:"index",setup(e){const t={POOL_SIZE:600,PARTICLES_PER_BURST:200,SIZES:{RECTANGLE:{WIDTH:24,HEIGHT:12},SQUARE:{SIZE:12},CIRCLE:{SIZE:12},TRIANGLE:{SIZE:10},OVAL:{WIDTH:24,HEIGHT:12},IMAGE:{WIDTH:30,HEIGHT:30}},ROTATION:{BASE_SPEED:2,RANDOM_SPEED:3,DECAY:.98},PHYSICS:{GRAVITY:.525,VELOCITY_THRESHOLD:10,OPACITY_DECAY:.02},COLORS:["rgba(255, 68, 68, 1)","rgba(255, 68, 68, 0.9)","rgba(255, 68, 68, 0.8)","rgba(255, 116, 188, 1)","rgba(255, 116, 188, 0.9)","rgba(255, 116, 188, 0.8)","rgba(68, 68, 255, 0.8)","rgba(92, 202, 56, 0.7)","rgba(255, 68, 255, 0.8)","rgba(68, 255, 255, 0.7)","rgba(255, 136, 68, 0.7)","rgba(68, 136, 255, 1)","rgba(250, 198, 122, 0.8)"],SHAPES:["rectangle","rectangle","rectangle","rectangle","rectangle","rectangle","rectangle","circle","triangle","oval"]},a=q(),l=q(null);const n=new class{constructor(){u(this,"particlePool",[]),u(this,"activeParticles",[]),u(this,"poolIndex",0),u(this,"imageCache",{}),u(this,"animationId",0),u(this,"canvasWidth",0),u(this,"canvasHeight",0),u(this,"animate",(()=>{this.updateParticles(),this.render(),this.animationId=requestAnimationFrame(this.animate)})),this.initializePool()}initializePool(){for(let e=0;e<t.POOL_SIZE;e++)this.particlePool.push(this.createParticle())}createParticle(){return{x:0,y:0,vx:0,vy:0,color:"",rotation:0,rotationSpeed:0,scale:1,shape:"circle",opacity:1,active:!1}}getAvailableParticle(){for(let e=0;e<t.POOL_SIZE;e++){const a=(this.poolIndex+e)%t.POOL_SIZE,l=this.particlePool[a];if(!l.active)return this.poolIndex=(a+1)%t.POOL_SIZE,l.active=!0,l}return null}preloadImage(e){return c(this,null,(function*(){return this.imageCache[e]?this.imageCache[e]:new Promise(((t,a)=>{const l=new Image;l.crossOrigin="anonymous",l.onload=()=>{this.imageCache[e]=l,t(l)},l.onerror=a,l.src=e}))}))}preloadAllImages(){return c(this,null,(function*(){const e=["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAABQVBMVEUAAAD/RkT+0jf/RkX/RkX/RkX/RUT+0zj/RUX/RkX/RkT/RkX/1TX/0zj/RkX/RkX+0zj90zj/1Df/1Df/RUX70zj/RUXtPDz/RUX/RkX/1Dj/RUX/RkX/RkX/1zr+0zj/RkX/RkX/RkX/RkTgLDf/REP/RkX/0zj/RkX/RkT+0zf/RkXiLTj/RkX90zj/RkX/RkX/RkX/RkT90zb/2Tn/R0f/RkX/RkX/RkX/0zj+0zj/RUX/RUX/wz3+0zj/RkXhLDj+0zj/RkX/1DjhLTj/RkX/RUX/0zr/RkX/RUX/Rkb/RkX/RkT+1Dj/0zj/R0P/RkbgLTj+1DfgLTjiLTfiLTj/0zniLTfgLDj/0zj/RkXhLTj/RkT/RUX/0zfiKzr70zf5zjf/RkT/1Dj90TjhLTn/1DjfLTb/RkX+0zjhLTgh5HNjAAAAaHRSTlMAgHCMYTMlv6udmHIR5c/Kqoh3WUFALgn34N24sIgJ9ujFvJNCEPvSVPHQwb+nnYN4b1hOGw3k3NS0rV1FBfzs3MtkZFdJOjcgFxTZo19SOCn67+qvn52PgHppZVBNRTUvKhyggNSkUG43X4EAAAbpSURBVHja7NtnVxpBFAbglw5BwYIUKyUQSGJBJbYYo7FroumJiSmm3eH//4AEtrhsFtwSliFnnk8eP3B2X5bZmTt3IAiCIAiCIAiCIAiCYFJgx8MVfxIuOgpvEXe2JoNwyX6FuJRehCuixK0duCBBHDtH19VWiWP5FLptg7jmR7f5iGsFdFuOuBZHtxHnoCMCEAGIAEQAIgARgAhABCACEAGIAEQAIgARgAhABCACEAGIAEQAIgARgAhABCACEAGIAEQAIgARgAjAunni2hSM8Nkjk42HfdWPH6u+cDxL/8gtuOAWORe7VS5Co3jpy5FzObgi4vRrWryCgaOy42hrcMeso9sPoK2AswgO4ZZJh7ffnQj24Z482TIRwI0CE2RPEm665/gdNf1p1Ds8t7Y2N+wd/TQNjSmun3+/7QQyZagOvodYizXvAVTlDFlWVC6v2ygKidUn9fo8w+bIODNwZ2QTsuAkWZOGJOrGVNhj60mdgGJ0m7WxPWpzmI1B4iE3AlATKJN5+RokB+usg/UDSGp5Mi8MicetxZDH8tmJ3BEkT9gNvJAc5cisefX+3QpATSB5QqbEDiEZYTd6A8lhjEypbEDicXM5fArJ1YSpa0xCMsRM2FbSrZAJ8TNITt2tB8RTaEpF6GZRSF4wU2YsnM6KHMvXEXe7ILKVhMT/wOwLYJyZtG32TfvAD0lyqwcVoTIkwVnqqLSPpjVm2jCa9kvU0WwQknJvSmILkF1kqQMPmoaZBV5lXOsgewHZQq9qgpEaJOfhGycpT5klo2iKUVvhc0hqkd4VReN7kFWznUfAzbvMkrubncfBbBWyRLynVWEPZIe+kvE4dYwGL7PIi4Zj4xG25DuEbKHXZfGJM8gCkfbTtIFxphG6Y7gYCjGN8YH2RehIALJguPf7ApUqFA8nSS8dRMN7pjEELD9Zn2EaM+tPloHvTOO9dIdp0pt8CMVihouNkXAQisWcYZ16YJBpjKFpbPiO/NUPK/9hGoMDhjXo3CIUKR8vO0OZHaj8edKSLneUaY1Asbzk9S4tA4Yrhado8JNW3g/V3j2Otsbyl1AlImlSBdHwhmmFAPx69xkan9/9AhBiWkNoCJAqHUlAdXbK2d7gaQCqoOekpVIzPcNaTAOP6/WXr3dTAJDaff2yXn8MTOuWBNNoKJHkxBOE6rzA3+ZoyXcFVUr+JeTRsMRaPWsE0HT/D+mvx8Azw8lQTH72U1Adz1e43B1+EN3EtX3fCdG84Sp4Dnhb13kLzLFWQ8oouFJIQCO6wu32eKx6jGvFjdk9NOhngYPA7brObWBQPxtEQzm8U8S142qM6/6ArC8ADenSB5nOF+B5vcVz4AvTGVQ/QhXwZYn7BonwJXQeMZ0R4FW9xSuDctkj6FyGOWiQIBNyF0VoDDC9EPCh3uIDEGJ6A9AoXuS46BAhUzKFvRQUX5ne+F+DwG2jgtFXqB4WMpy0yJBZK4XykTrD1TMKgCn0c+ba3tQqPz1CZMFKpAbnT4AvxlWTFFlyDudjwAlfXWJkScL5W+Co1M8BbDifB+xz1idIliw4nwlu9HUABedrgfm+DiDsfDV42tcBrLarB/zQ1wN+tKsHrPZ1AJRsUxHa1VeEdttUhIK8NUuTNVNOa4LRPg8g47QqfK/PA6A9h/sC3J0XIItuOdsZqvZ9AFtXTvYGMdH3AdCUk91hP39HZsiqdNJ+f0Bx9T8IgCL2O0TmOTw0RdYl7PYIBdL/RwBhu11iszwemyMbFuz1CS5weW6Q7Nix0ym6w+fBSbLlzHqv8BmnJ0fJlgqsdouj8l8FQBnIDr6xDr4dQJbh9eww2RSDYqztSDA0BkWM28PTZFc6CcXST4P3wYtvS1Ak0/yeHv/Nzt2jJhBGYRi9oI0YmMZGdIIg2Aw2NkqU7CBZgXW4+19BOpkM+YGMI9/AeZZw2st98/+d49bT28vrlxPAx/tz3DqX/D6fPZpEu/bfYLSbFL0fkH2qpvFn06rsAYXsV3OIXzs0pS9IZN9W1/ix66r8CY3sX1Uv4psWdTWGDZG8S8dtx2CxPY5kRCXv1W5zatazup6tm9NmN54VmSy86AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgCy86AQAAAAAAAAAAAAAAAAAAAAAAAAAAAACAPi2z6JYxdPssun0M3TyLbh5Dd8miu8TgbbPg9vGAjllu8ZA+26ljEoBCKACA75f4k4sNnJwE69g/gQkEJxG8C3F5XKr/sfRChF8c00qq4yo1lRYAAAAAOyYRVDCYSQSkpQAAAABJRU5ErkJggg==","/assets/sd-C0PQtrty.png","/assets/yd-BrGqJ6Cs.png"];try{yield Promise.all(e.map((e=>this.preloadImage(e))))}catch(t){}}))}createFirework(e){const a=Math.random()*this.canvasWidth,l=this.canvasHeight,n=e&&this.imageCache[e]?["image"]:t.SHAPES,s=[];for(let i=0;i<t.PARTICLES_PER_BURST;i++){const o=this.getAvailableParticle();if(!o)continue;const r=Math.PI*i/(t.PARTICLES_PER_BURST/2),u=1.5*(12+6*Math.random()),c=Math.random()*Math.PI*2;o.x=a,o.y=l,o.vx=Math.cos(r)*Math.cos(c)*u*(.5*Math.random()+.5),o.vy=Math.sin(r)*u-15,o.color=t.COLORS[Math.floor(Math.random()*t.COLORS.length)],o.rotation=360*Math.random(),o.rotationSpeed=(Math.random()*t.ROTATION.RANDOM_SPEED+t.ROTATION.BASE_SPEED)*(Math.random()>.5?1:-1),o.scale=.8+.4*Math.random(),o.shape=n[Math.floor(Math.random()*n.length)],o.opacity=1,o.imageUrl=e&&this.imageCache[e]?e:void 0,s.push(o)}this.activeParticles.push(...s)}updateParticles(){const{GRAVITY:e,VELOCITY_THRESHOLD:a,OPACITY_DECAY:l}=t.PHYSICS,{DECAY:n}=t.ROTATION;for(let t=this.activeParticles.length-1;t>=0;t--){const s=this.activeParticles[t];s.x+=s.vx,s.y+=s.vy,s.vy+=e,s.rotation+=s.rotationSpeed,s.rotationSpeed*=n,s.vy>a&&(s.opacity-=l,s.opacity<=0)?this.recycleParticle(t):this.isOutOfBounds(s)&&this.recycleParticle(t)}}recycleParticle(e){this.activeParticles[e].active=!1,this.activeParticles.splice(e,1)}isOutOfBounds(e){return e.x<-100||e.x>this.canvasWidth+100||e.y<-100||e.y>this.canvasHeight+100}drawParticle(e){l.value&&(l.value.save(),l.value.globalAlpha=e.opacity,l.value.translate(e.x,e.y),l.value.rotate(e.rotation*Math.PI/180),l.value.scale(e.scale,e.scale),this.renderShape(e),l.value.restore())}renderShape(e){if(!l.value)return;const{SIZES:a}=t;switch(l.value.fillStyle=e.color,e.shape){case"rectangle":l.value.fillRect(-12,-6,a.RECTANGLE.WIDTH,a.RECTANGLE.HEIGHT);break;case"square":l.value.fillRect(-6,-6,a.SQUARE.SIZE,a.SQUARE.SIZE);break;case"circle":l.value.beginPath(),l.value.arc(0,0,a.CIRCLE.SIZE/2,0,2*Math.PI),l.value.fill();break;case"triangle":l.value.beginPath(),l.value.moveTo(0,-10),l.value.lineTo(a.TRIANGLE.SIZE,a.TRIANGLE.SIZE),l.value.lineTo(-10,a.TRIANGLE.SIZE),l.value.closePath(),l.value.fill();break;case"oval":l.value.beginPath(),l.value.ellipse(0,0,a.OVAL.WIDTH/2,a.OVAL.HEIGHT/2,0,0,2*Math.PI),l.value.fill();break;case"image":this.renderImage(e)}}renderImage(e){if(!l.value||!e.imageUrl)return;const a=this.imageCache[e.imageUrl];if(null==a?void 0:a.complete){const{WIDTH:e,HEIGHT:n}=t.SIZES.IMAGE;l.value.drawImage(a,-15,-15,e,n)}}render(){if(l.value&&a.value){l.value.clearRect(0,0,this.canvasWidth,this.canvasHeight),l.value.globalCompositeOperation="lighter";for(const e of this.activeParticles)this.drawParticle(e)}}updateCanvasSize(e,t){this.canvasWidth=e,this.canvasHeight=t}start(){this.animate()}stop(){this.animationId&&(cancelAnimationFrame(this.animationId),this.animationId=0)}getActiveParticleCount(){return this.activeParticles.length}},s=e=>{(e.ctrlKey&&e.shiftKey&&"p"===e.key.toLowerCase()||e.metaKey&&e.shiftKey&&"p"===e.key.toLowerCase())&&(e.preventDefault(),n.createFirework())},i=()=>{if(!a.value)return;const{innerWidth:e,innerHeight:t}=window;a.value.width=e,a.value.height=t,n.updateCanvasSize(e,t)},o=e=>{const t=e;n.createFirework(t)};return J((()=>c(this,null,(function*(){a.value&&(l.value=a.value.getContext("2d"),l.value&&(i(),yield n.preloadAllImages(),n.start(),nt(window,"keydown",s),nt(window,"resize",i),y.on("triggerFireworks",o)))})))),Q((()=>{n.stop(),y.off("triggerFireworks",o)})),(e,t)=>(z(),j("canvas",{ref_key:"canvasRef",ref:a,class:"layout-fireworks"},null,512))}})),[["__scopeId","data-v-9d071477"]]),ht="/assets/avatar-plDKbmDC.webp",pt={class:"layout-chat"},ft={class:"header"},gt={class:"header-left"},yt={class:"status"},bt={class:"status-text"},kt={class:"header-right"},At={class:"chat-container"},wt={class:"message-content"},Tt={class:"message-info"},xt={class:"sender-name"},Ct={class:"message-time"},St={class:"message-text"},Lt={class:"chat-input"},_t={class:"input-actions"},Et={class:"chat-input-actions"},Mt="Art Bot",It="Ricky",Rt=lt(W(r(o({},{name:"ArtChatWindow"}),{__name:"index",setup(e){const{width:t}=st(),a=X((()=>t.value<500)),l=q(!1),n=q(!0),s=q(""),i=q(10),o=q(null),r=q([{id:1,sender:Mt,content:"你好!我是你的AI助手,有什么我可以帮你的吗?",time:"10:00",isMe:!1,avatar:ht},{id:2,sender:It,content:"我想了解一下系统的使用方法。",time:"10:01",isMe:!0,avatar:ht},{id:3,sender:Mt,content:"好的,我来为您介绍系统的主要功能。首先,您可以通过左侧菜单访问不同的功能模块...",time:"10:02",isMe:!1,avatar:ht},{id:4,sender:It,content:"听起来很不错,能具体讲讲数据分析部分吗?",time:"10:05",isMe:!0,avatar:ht},{id:5,sender:Mt,content:"当然可以。数据分析模块可以帮助您实时监控关键指标,并生成详细的报表...",time:"10:06",isMe:!1,avatar:ht},{id:6,sender:It,content:"太好了,那我如何开始使用呢?",time:"10:08",isMe:!0,avatar:ht},{id:7,sender:Mt,content:"您可以先创建一个项目,然后在项目中添加相关的数据源,系统会自动进行分析。",time:"10:09",isMe:!1,avatar:ht},{id:8,sender:It,content:"明白了,谢谢你的帮助!",time:"10:10",isMe:!0,avatar:ht},{id:9,sender:Mt,content:"不客气,有任何问题随时联系我。",time:"10:11",isMe:!1,avatar:ht}]),u=()=>{ye((()=>{setTimeout((()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight)}),100)}))},c=()=>{const e=s.value.trim();if(!e)return;const t={id:i.value++,sender:It,content:e,time:(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),isMe:!0,avatar:ht};r.value.push(t),s.value="",u()},d=()=>{l.value=!0,u()},v=()=>{l.value=!1};return J((()=>{u(),y.on("openChat",d)})),Q((()=>{y.off("openChat",d)})),(e,t)=>{const i=ee("Close"),u=ne,d=be,m=ve,h=oe,p=ge,f=te("ripple");return z(),j("div",pt,[$(p,{modelValue:U(l),"onUpdate:modelValue":t[1]||(t[1]=e=>ce(l)?l.value=e:null),size:U(a)?"100%":"480px","with-header":!1},{default:G((()=>[Y("div",ft,[Y("div",gt,[t[2]||(t[2]=Y("span",{class:"name"},"Art Bot",-1)),Y("div",yt,[Y("div",{class:ae(["dot",{online:U(n),offline:!U(n)}])},null,2),Y("span",bt,le(U(n)?"在线":"离线"),1)])]),Y("div",kt,[$(u,{class:"icon-close",size:20,onClick:v},{default:G((()=>[$(i)])),_:1})])]),Y("div",At,[Y("div",{class:"chat-messages",ref_key:"messageContainer",ref:o},[(z(!0),j(se,null,ie(U(r),((e,t)=>(z(),j("div",{key:t,class:ae(["message-item",e.isMe?"message-right":"message-left"])},[$(d,{size:32,src:e.avatar,class:"message-avatar"},null,8,["src"]),Y("div",wt,[Y("div",Tt,[Y("span",xt,le(e.sender),1),Y("span",Ct,le(e.time),1)]),Y("div",St,le(e.content),1)])],2)))),128))],512),Y("div",Lt,[$(h,{modelValue:U(s),"onUpdate:modelValue":t[0]||(t[0]=e=>ce(s)?s.value=e:null),type:"textarea",rows:3,placeholder:"输入消息",resize:"none",onKeyup:re(ue(c,["prevent"]),["enter"])},{append:G((()=>[Y("div",_t,[$(m,{icon:U(me),circle:"",plain:""},null,8,["icon"]),$(m,{icon:U(he),circle:"",plain:""},null,8,["icon"]),de((z(),pe(m,{type:"primary",onClick:c},{default:G((()=>t[3]||(t[3]=[fe("发送")]))),_:1,__:[3]})),[[f]])])])),_:1},8,["modelValue","onKeyup"]),Y("div",Et,[t[5]||(t[5]=Y("div",{class:"left"},[Y("i",{class:"iconfont-sys"},""),Y("i",{class:"iconfont-sys"},"")],-1)),de((z(),pe(m,{type:"primary",onClick:c},{default:G((()=>t[4]||(t[4]=[fe("发送")]))),_:1,__:[4]})),[[f]])])])])])),_:1},8,["modelValue","size"])])}}})),[["__scopeId","data-v-074ec41b"]]),Ot={class:"layout-lock-screen"},Bt={key:0,class:"dev-tools-warning"},Pt={key:1},Wt={class:"lock-content"},Ht=["src"],Dt={class:"username"},Ft={key:2,class:"unlock-content"},Xt={class:"box"},jt=["src"],zt={class:"username"},Vt=lt(W({__name:"index",setup(e){const{t:t}=b(),a="s3cur3k3y4adpro",l=k(),{info:n,lockPassword:s,isLock:i}=D(l),o=q(!1),r=q(null),u=q(null),d=q(!1),v=q(),m=q(),h=ke({password:""}),p=ke({password:""}),f=X((()=>({password:[{required:!0,message:t("lockScreen.lock.inputPlaceholder"),trigger:"blur"}]}))),g=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),T=e=>{e.altKey&&"¬"===e.key.toLowerCase()&&(e.preventDefault(),o.value=!0)},x=()=>{setTimeout((()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.input)||t.focus()}),100)},C=()=>c(this,null,(function*(){v.value&&(yield v.value.validate(((e,t)=>{if(e){const e=A.AES.encrypt(h.password,a).toString();l.setLockStatus(!0),l.setLockPassword(e),o.value=!1,h.password=""}})))})),S=()=>c(this,null,(function*(){m.value&&(yield m.value.validate(((e,n)=>{if(e){if(((e,t)=>{try{return e===A.AES.decrypt(t,a).toString(A.enc.Utf8)}catch(l){return!1}})(p.password,s.value))try{l.setLockStatus(!1),l.setLockPassword(""),p.password="",o.value=!1,d.value=!1}catch(i){}else _e.error(t("lockScreen.pwdError"))}})))})),L=()=>{w.logout(),l.logOut()},_=()=>{o.value=!0};Ae(i,(e=>{e?(document.body.style.overflow="hidden",setTimeout((()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.input)||t.focus()}),100)):(document.body.style.overflow="auto",d.value=!1)}));let E=null;return J((()=>{y.on("openLockScreen",_),document.addEventListener("keydown",T),i.value&&(o.value=!0,setTimeout((()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.input)||t.focus()}),100)),E=(()=>{const e=e=>{if(i.value)return e.preventDefault(),e.stopPropagation(),!1};document.addEventListener("contextmenu",e,!0);const t=e=>{if(i.value){if("F12"===e.key)return e.preventDefault(),e.stopPropagation(),!1;if(e.ctrlKey&&e.shiftKey){const t=e.key.toLowerCase();if(["i","j","c","k"].includes(t))return e.preventDefault(),e.stopPropagation(),!1}return e.ctrlKey&&"u"===e.key.toLowerCase()||e.ctrlKey&&"s"===e.key.toLowerCase()||e.ctrlKey&&"a"===e.key.toLowerCase()||e.ctrlKey&&"p"===e.key.toLowerCase()||e.ctrlKey&&"f"===e.key.toLowerCase()||e.altKey&&"Tab"===e.key||e.ctrlKey&&"Tab"===e.key||e.ctrlKey&&"w"===e.key.toLowerCase()||e.ctrlKey&&"r"===e.key.toLowerCase()||"F5"===e.key||e.ctrlKey&&e.shiftKey&&"r"===e.key.toLowerCase()?(e.preventDefault(),e.stopPropagation(),!1):void 0}};document.addEventListener("keydown",t,!0);const a=e=>{if(i.value)return e.preventDefault(),!1};document.addEventListener("selectstart",a,!0);const l=e=>{if(i.value)return e.preventDefault(),!1};document.addEventListener("dragstart",l,!0);let n={open:!1},s=null;const o=()=>{if(!i.value||g())return;const e=window.outerHeight-window.innerHeight>160||window.outerWidth-window.innerWidth>160;e&&!n.open?(n.open=!0,d.value=!0):!e&&n.open&&(n.open=!1,d.value=!1)};return g()||(s=setInterval(o,500)),()=>{document.removeEventListener("contextmenu",e,!0),document.removeEventListener("keydown",t,!0),document.removeEventListener("selectstart",a,!0),document.removeEventListener("dragstart",l,!0),s&&clearInterval(s)}})()})),Q((()=>{document.removeEventListener("keydown",T),document.body.style.overflow="auto",E&&(E(),E=null)})),(e,t)=>{const a=ne,l=oe,s=xe,c=ve,g=Te,y=Se,b=te("ripple");return z(),j("div",Ot,[U(d)?(z(),j("div",Bt,t[3]||(t[3]=[we('<div class="warning-content" data-v-9e2ddc7b><div class="warning-icon" data-v-9e2ddc7b>🔒</div><h1 class="warning-title" data-v-9e2ddc7b>系统已锁定</h1><p class="warning-text" data-v-9e2ddc7b> 检测到开发者工具已打开<br data-v-9e2ddc7b> 为了系统安全,请关闭开发者工具后继续使用 </p><div class="warning-subtitle" data-v-9e2ddc7b>Security Lock Activated</div></div>',1)]))):K("",!0),U(i)?(z(),j("div",Ft,[Y("div",Xt,[Y("img",{class:"cover",src:U(n).avatar||"https://img.lewaimai.com/zqcrm/avatar/20250926/9PLsci1dwXLcb8Iw.jpg",alt:"用户头像"},null,8,jt),Y("div",zt,le(U(n).username),1),$(g,{ref_key:"unlockFormRef",ref:m,model:U(p),rules:U(f),onSubmit:ue(S,["prevent"])},{default:G((()=>[$(s,{prop:"password"},{default:G((()=>[$(l,{modelValue:U(p).password,"onUpdate:modelValue":t[2]||(t[2]=e=>U(p).password=e),type:"password",placeholder:e.$t("lockScreen.unlock.inputPlaceholder"),"show-password":!0,ref_key:"unlockInputRef",ref:u},{suffix:G((()=>[$(a,{class:"cursor-pointer",onClick:S},{default:G((()=>[$(U(Le))])),_:1})])),_:1},8,["modelValue","placeholder"])])),_:1}),de((z(),pe(c,{type:"primary",class:"unlock-btn",onClick:S},{default:G((()=>[fe(le(e.$t("lockScreen.unlock.btnText")),1)])),_:1})),[[b]]),$(c,{text:"",class:"login-btn",onClick:L},{default:G((()=>[fe(le(e.$t("lockScreen.unlock.backBtnText")),1)])),_:1})])),_:1},8,["model","rules"])])])):(z(),j("div",Pt,[$(y,{modelValue:U(o),"onUpdate:modelValue":t[1]||(t[1]=e=>ce(o)?o.value=e:null),width:370,"show-close":!1,onOpen:x},{default:G((()=>[Y("div",Wt,[Y("img",{class:"cover",src:U(n).avatar||"https://img.lewaimai.com/zqcrm/avatar/20250926/9PLsci1dwXLcb8Iw.jpg",alt:"用户头像"},null,8,Ht),Y("div",Dt,le(U(n).username),1),$(g,{ref_key:"formRef",ref:v,model:U(h),rules:U(f),onSubmit:ue(C,["prevent"])},{default:G((()=>[$(s,{prop:"password"},{default:G((()=>[$(l,{modelValue:U(h).password,"onUpdate:modelValue":t[0]||(t[0]=e=>U(h).password=e),type:"password",placeholder:e.$t("lockScreen.lock.inputPlaceholder"),"show-password":!0,ref_key:"lockInputRef",ref:r,onKeyup:re(C,["enter"])},{suffix:G((()=>[$(a,{class:"cursor-pointer",onClick:C},{default:G((()=>[$(U(Ce))])),_:1})])),_:1},8,["modelValue","placeholder"])])),_:1}),de((z(),pe(c,{type:"primary",class:"lock-btn",onClick:C},{default:G((()=>[fe(le(e.$t("lockScreen.lock.btnText")),1)])),_:1})),[[b]])])),_:1},8,["model","rules"])])])),_:1},8,["modelValue"])]))])}}}),[["__scopeId","data-v-9e2ddc7b"]]),Nt={class:"layout-search"},Ut={class:"result"},Kt=["onClick","onMouseenter"],$t={class:"selected-icon iconfont-sys"},Gt={class:"history-box"},Yt={class:"title"},Zt={class:"history-result"},qt=["onClick","onMouseenter"],Jt=["onClick"],Qt={class:"dialog-footer"},ea=lt(W(r(o({},{name:"ArtGlobalSearch"}),{__name:"index",setup(e){const t=H(),a=k(),{menuList:l}=D(m()),n=q(!1),s=q(""),i=q([]),{searchHistory:u}=D(a),c=q(null),d=q(0),v=q(0),h=q(),p=q(!1);J((()=>{y.on("openSearchDialog",O),document.addEventListener("keydown",f)})),Q((()=>{document.removeEventListener("keydown",f)}));const f=e=>{(navigator.platform.toUpperCase().indexOf("MAC")>=0?e.metaKey:e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),n.value=!0,g()),n.value&&("ArrowUp"===e.key?(e.preventDefault(),w()):"ArrowDown"===e.key?(e.preventDefault(),x()):"Enter"===e.key?(e.preventDefault(),L()):"Escape"===e.key&&(e.preventDefault(),n.value=!1))},g=()=>{setTimeout((()=>{var e;null==(e=c.value)||e.focus()}),100)},b=e=>{i.value=e?A(l.value,e):[]},A=(e,t)=>{const a=t.toLowerCase(),l=[],n=e=>{var t;if(null==(t=e.meta)?void 0:t.isHide)return;const s=T(e.meta.title).toLowerCase();e.children&&e.children.length>0?e.children.forEach(n):s.includes(a)&&e.path&&l.push(r(o({},e),{children:void 0}))};return e.forEach(n),l},w=()=>{p.value=!0,s.value?(d.value=(d.value-1+i.value.length)%i.value.length,C()):(v.value=(v.value-1+u.value.length)%u.value.length,S()),setTimeout((()=>{p.value=!1}),100)},x=()=>{p.value=!0,s.value?(d.value=(d.value+1)%i.value.length,C()):(v.value=(v.value+1)%u.value.length,S()),setTimeout((()=>{p.value=!1}),100)},C=()=>{ye((()=>{if(!h.value||!i.value.length)return;const e=h.value.wrapRef;if(!e)return;const t=e.querySelectorAll(".result .box");if(!t[d.value])return;const a=t[d.value],l=a.offsetHeight,n=e.scrollTop,s=e.clientHeight,o=a.offsetTop,r=o+l;o<n?h.value.setScrollTop(o):r>n+s&&h.value.setScrollTop(r-s)}))},S=()=>{ye((()=>{if(!h.value||!u.value.length)return;const e=h.value.wrapRef;if(!e)return;const t=e.querySelectorAll(".history-result .box");if(!t[v.value])return;const a=t[v.value],l=a.offsetHeight,n=e.scrollTop,s=e.clientHeight,i=a.offsetTop,o=i+l;i<n?h.value.setScrollTop(i):o>n+s&&h.value.setScrollTop(o-s)}))},L=()=>{s.value&&i.value.length?M(i.value[d.value]):!s.value&&u.value.length&&M(u.value[v.value])},_=e=>d.value===e,E=()=>{d.value=0},M=e=>{n.value=!1,R(e),t.push(e.path),s.value="",i.value=[]},I=()=>{Array.isArray(u.value)&&a.setSearchHistory(u.value)},R=e=>{const t=u.value.findIndex((t=>t.path===e.path));-1!==t?u.value.splice(t,1):u.value.length>=10&&u.value.pop();const a=o({},e);delete a.children,delete a.meta.authList,u.value.unshift(a),I()},O=()=>{n.value=!0,g()},B=()=>{s.value="",i.value=[],d.value=0,v.value=0};return(e,t)=>{const a=oe,l=Me,o=Se;return z(),j("div",Nt,[$(o,{modelValue:U(n),"onUpdate:modelValue":t[1]||(t[1]=e=>ce(n)?n.value=e:null),width:"600","show-close":!1,"lock-scroll":!1,"modal-class":"search-modal",onClose:B},{footer:G((()=>[Y("div",Qt,[Y("div",null,[t[3]||(t[3]=Y("i",{class:"iconfont-sys"},"",-1)),Y("span",null,le(e.$t("search.selectKeydown")),1)]),Y("div",null,[t[4]||(t[4]=Y("i",{class:"iconfont-sys"},"",-1)),t[5]||(t[5]=Y("i",{class:"iconfont-sys"},"",-1)),Y("span",null,le(e.$t("search.switchKeydown")),1)]),Y("div",null,[t[6]||(t[6]=Y("i",{class:"iconfont-sys esc"},[Y("p",null,"ESC")],-1)),Y("span",null,le(e.$t("search.exitKeydown")),1)])])])),default:G((()=>[$(a,{modelValue:U(s),"onUpdate:modelValue":t[0]||(t[0]=e=>ce(s)?s.value=e:null),modelModifiers:{trim:!0},placeholder:e.$t("search.placeholder"),onInput:b,onBlur:E,ref_key:"searchInput",ref:c,"prefix-icon":U(Ee)},{suffix:G((()=>t[2]||(t[2]=[Y("div",{class:"search-keydown"},[Y("i",{class:"iconfont-sys"},"")],-1)]))),_:1},8,["modelValue","placeholder","prefix-icon"]),$(l,{class:"search-scrollbar","max-height":"370px",ref_key:"searchResultScrollbar",ref:h,always:""},{default:G((()=>[de(Y("div",Ut,[(z(!0),j(se,null,ie(U(i),((e,t)=>(z(),j("div",{class:"box",key:t},[Y("div",{class:ae({highlighted:_(t)}),onClick:t=>M(e),onMouseenter:e=>(e=>{!p.value&&s.value&&(d.value=e)})(t)},[fe(le(U(T)(e.meta.title))+" ",1),de(Y("i",$t,"",512),[[Ie,_(t)]])],42,Kt)])))),128))],512),[[Ie,U(i).length]]),de(Y("div",Gt,[Y("p",Yt,le(e.$t("search.historyTitle")),1),Y("div",Zt,[(z(!0),j(se,null,ie(U(u),((e,t)=>(z(),j("div",{class:ae(["box",{highlighted:U(v)===t}]),key:t,onClick:t=>M(e),onMouseenter:e=>(e=>{p.value||s.value||(v.value=e)})(t)},[fe(le(U(T)(e.meta.title))+" ",1),Y("i",{class:"selected-icon iconfont-sys",onClick:ue((e=>(e=>{u.value.splice(e,1),I()})(t)),["stop"])},"",8,Jt)],42,qt)))),128))])],512),[[Ie,!U(s)&&0===U(i).length&&U(u).length>0]])])),_:1},512)])),_:1},8,["modelValue"])])}}})),[["__scopeId","data-v-c07b9e36"]]);function ta(){const e=v();return{initColorWeak:()=>{if(e.colorWeak){const e=document.getElementsByTagName("html")[0];setTimeout((()=>{e.classList.add("color-weak")}),100)}},switchMenuLayouts:t=>{t!==p.LEFT&&t!==p.TOP_LEFT||e.setMenuOpen(!0),e.switchMenuLayouts(t),t===p.DUAL_MENU&&(e.switchMenuStyles(x.DESIGN),e.setMenuOpen(!0))}}}function aa(){const e=v(),t={setHtmlClass:(e,t)=>{const a=document.getElementsByTagName("html")[0];t?a.classList.add(e):a.classList.remove(e)},setRootAttribute:(e,t)=>{document.documentElement.setAttribute(e,t)},setBodyClass:(e,t)=>{const a=document.getElementsByTagName("body")[0];t?a.setAttribute("class",e):a.removeAttribute("class")}},a=(e,t)=>()=>{e(),null==t||t()},l=(e,t)=>a=>{null!=a&&(e(a),null==t||t(a))},n={workTab:a((()=>e.setWorkTab(!e.showWorkTab))),uniqueOpened:a((()=>e.setUniqueOpened())),menuButton:a((()=>e.setButton())),fastEnter:a((()=>e.setFastEnter())),refreshButton:a((()=>e.setShowRefreshButton())),crumbs:a((()=>e.setCrumbs())),language:a((()=>e.setLanguage())),nprogress:a((()=>e.setNprogress())),colorWeak:a((()=>e.setColorWeak()),(()=>{t.setHtmlClass("color-weak",e.colorWeak)})),watermark:a((()=>e.setWatermarkVisible(!e.watermarkVisible))),menuOpenWidth:l((t=>e.setMenuOpenWidth(t))),tabStyle:l((t=>e.setTabStyle(t))),pageTransition:l((t=>e.setPageTransition(t))),customRadius:l((t=>e.setCustomRadius(t)))},s={setBoxMode:a=>{const{boxBorderMode:l}=D(e);"shadow-mode"===a&&!1===l.value||"border-mode"===a&&!0===l.value||setTimeout((()=>{t.setRootAttribute("data-box-mode",a),e.setBorderMode()}),50)}};return{domOperations:t,basicHandlers:n,boxStyleHandlers:s,colorHandlers:{selectColor:t=>{e.setElementTheme(t),e.reload()}},containerHandlers:{setWidth:t=>{e.setContainerWidth(t),e.reload()}},createToggleHandler:a,createValueHandler:l}}const la={class:"setting-drawer"},na={class:"drawer-con"},sa=lt(W({__name:"SettingDrawer",props:{modelValue:{type:Boolean}},emits:["update:modelValue","open","close"],setup(e,{emit:t}){const a=e,l=t,n=X({get:()=>a.modelValue,set:e=>l("update:modelValue",e)}),s=()=>{l("open")},i=()=>{l("close")},o=()=>{n.value=!1};return(e,t)=>{const a=ge;return z(),j("div",la,[$(a,{size:"300px",modelValue:U(n),"onUpdate:modelValue":t[0]||(t[0]=e=>ce(n)?n.value=e:null),"lock-scroll":!1,"with-header":!1,"before-close":o,"destroy-on-close":!1,"modal-class":"setting-modal",onOpen:s,onClose:i},{default:G((()=>[Y("div",na,[V(e.$slots,"default",{},void 0,!0)])])),_:3},8,["modelValue"])])}}}),[["__scopeId","data-v-fcc7ab59"]]),ia={class:"setting-header"},oa={class:"close-wrap"},ra=lt(W({__name:"SettingHeader",emits:["close"],setup:e=>(e,t)=>(z(),j("div",ia,[Y("div",oa,[Y("i",{class:"iconfont-sys",onClick:t[0]||(t[0]=t=>e.$emit("close"))},"")])]))}),[["__scopeId","data-v-343ef1c9"]]),ua=lt(W({__name:"SectionTitle",props:{title:{},style:{}},setup:e=>(e,t)=>(z(),j("p",{class:"section-title",style:N(e.style)},le(e.title),5))}),[["__scopeId","data-v-20407913"]]);function ca(){const{t:e}=b(),t=X((()=>[{value:"tab-default",label:e("setting.tabStyle.default")},{value:"tab-card",label:e("setting.tabStyle.card")},{value:"tab-google",label:e("setting.tabStyle.google")}])),a=X((()=>[{value:"",label:e("setting.transition.list.none")},{value:"fade",label:e("setting.transition.list.fade")},{value:"slide-left",label:e("setting.transition.list.slideLeft")},{value:"slide-bottom",label:e("setting.transition.list.slideBottom")},{value:"slide-top",label:e("setting.transition.list.slideTop")}])),i=[{value:"0",label:"0"},{value:"0.25",label:"0.25"},{value:"0.5",label:"0.5"},{value:"0.75",label:"0.75"},{value:"1",label:"1"}],o=X((()=>[{value:_.FULL,label:e("setting.container.list[0]"),icon:""},{value:_.BOXED,label:e("setting.container.list[1]"),icon:""}])),r=X((()=>[{value:"border-mode",label:e("setting.box.list[0]"),type:"border-mode"},{value:"shadow-mode",label:e("setting.box.list[1]"),type:"shadow-mode"}])),u={mainColors:g.systemMainColor,themeList:g.settingThemeList,menuLayoutList:g.menuLayoutList},c=X((()=>[{key:"showWorkTab",label:e("setting.basics.list.multiTab"),type:"switch",handler:"workTab",headerBarKey:null},{key:"uniqueOpened",label:e("setting.basics.list.accordion"),type:"switch",handler:"uniqueOpened",headerBarKey:null},{key:"showMenuButton",label:e("setting.basics.list.collapseSidebar"),type:"switch",handler:"menuButton",headerBarKey:"menuButton"},{key:"showFastEnter",label:e("setting.basics.list.fastEnter"),type:"switch",handler:"fastEnter",headerBarKey:"fastEnter"},{key:"showRefreshButton",label:e("setting.basics.list.reloadPage"),type:"switch",handler:"refreshButton",headerBarKey:"refreshButton"},{key:"showCrumbs",label:e("setting.basics.list.breadcrumb"),type:"switch",handler:"crumbs",mobileHide:!0,headerBarKey:"breadcrumb"},{key:"showLanguage",label:e("setting.basics.list.language"),type:"switch",handler:"language",headerBarKey:"language"},{key:"showNprogress",label:e("setting.basics.list.progressBar"),type:"switch",handler:"nprogress",headerBarKey:null},{key:"colorWeak",label:e("setting.basics.list.weakMode"),type:"switch",handler:"colorWeak",headerBarKey:null},{key:"watermarkVisible",label:e("setting.basics.list.watermark"),type:"switch",handler:"watermark",headerBarKey:null},{key:"menuOpenWidth",label:e("setting.basics.list.menuWidth"),type:"input-number",handler:"menuOpenWidth",min:180,max:320,step:10,style:{width:"120px"},controlsPosition:"right",headerBarKey:null},{key:"tabStyle",label:e("setting.basics.list.tabStyle"),type:"select",handler:"tabStyle",options:t.value,style:{width:"120px"},headerBarKey:null},{key:"pageTransition",label:e("setting.basics.list.pageTransition"),type:"select",handler:"pageTransition",options:a.value,style:{width:"120px"},headerBarKey:null},{key:"customRadius",label:e("setting.basics.list.borderRadius"),type:"select",handler:"customRadius",options:i,style:{width:"120px"},headerBarKey:null}].filter((e=>{if(null===e.headerBarKey)return!0;const t=E[e.headerBarKey];return!1!==(null==t?void 0:t.enabled)})).map((e=>{var t=e,{headerBarKey:a}=t;return((e,t)=>{var a={};for(var i in e)n.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&l)for(var i of l(e))t.indexOf(i)<0&&s.call(e,i)&&(a[i]=e[i]);return a})(t,["headerBarKey"])}))));return{tabStyleOptions:t,pageTransitionOptions:a,customRadiusOptions:i,containerWidthOptions:o,boxStyleOptions:r,configOptions:u,basicSettingsConfig:c}}const da={class:"setting-box-wrap"},va=["onClick"],ma=["src"],ha={class:"name"},pa=W({__name:"ThemeSettings",setup(e){const t=v(),{systemThemeMode:a}=D(t),{configOptions:l}=ca(),{switchThemeStyles:n}=S();return(e,t)=>(z(),j(se,null,[$(ua,{title:e.$t("setting.theme.title")},null,8,["title"]),Y("div",da,[(z(!0),j(se,null,ie(U(l).themeList,((t,l)=>(z(),j("div",{class:"setting-item",key:t.theme,onClick:e=>U(n)(t.theme)},[Y("div",{class:ae(["box",{"is-active":t.theme===U(a)}])},[Y("img",{src:t.img},null,8,ma)],2),Y("p",ha,le(e.$t(`setting.theme.list[${l}]`)),1)],8,va)))),128))])],64))}}),fa={key:0},ga={class:"setting-box-wrap"},ya=["onClick"],ba=["src"],ka={class:"name"},Aa=W({__name:"MenuLayoutSettings",setup(e){const{width:t}=st(),a=v(),{menuType:l}=D(a),{configOptions:n}=ca(),{switchMenuLayouts:s}=ta();return(e,a)=>U(t)>1e3?(z(),j("div",fa,[$(ua,{title:e.$t("setting.menuType.title")},null,8,["title"]),Y("div",ga,[(z(!0),j(se,null,ie(U(n).menuLayoutList,((t,a)=>(z(),j("div",{class:"setting-item",key:t.value,onClick:e=>U(s)(t.value)},[Y("div",{class:ae(["box",{"is-active":t.value===U(l),"mt-16":a>2}])},[Y("img",{src:t.img},null,8,ba)],2),Y("p",ka,le(e.$t(`setting.menuType.list[${a}]`)),1)],8,ya)))),128))])])):K("",!0)}}),wa={class:"setting-box-wrap"},Ta=["onClick"],xa=["src"],Ca=W({__name:"MenuStyleSettings",setup(e){const t=g.themeList,a=v(),{menuThemeType:l,menuType:n,isDark:s}=D(a),i=X((()=>n.value===p.TOP)),o=X((()=>n.value===p.DUAL_MENU)),r=X((()=>i.value||o.value||s.value));return(e,n)=>(z(),j(se,null,[$(ua,{title:e.$t("setting.menu.title")},null,8,["title"]),Y("div",wa,[(z(!0),j(se,null,ie(U(t),(e=>(z(),j("div",{class:"setting-item",key:e.theme,onClick:t=>{return l=e.theme,void(o.value||i.value||s.value||a.switchMenuStyles(l));var l}},[Y("div",{class:ae(["box",{"is-active":e.theme===U(l)}]),style:N({cursor:U(r)?"no-drop":"pointer"})},[Y("img",{src:e.img},null,8,xa)],6)],8,Ta)))),128))])],64))}}),Sa={class:"color-settings"},La={class:"main-color-wrap"},_a={class:"offset"},Ea=["onClick"],Ma={class:"iconfont-sys"},Ia=lt(W({__name:"ColorSettings",setup(e){const t=v(),{systemThemeColor:a}=D(t),{configOptions:l}=ca(),{colorHandlers:n}=aa();return(e,t)=>(z(),j("div",Sa,[$(ua,{title:e.$t("setting.color.title"),style:{"margin-top":"40px"}},null,8,["title"]),Y("div",La,[Y("div",_a,[(z(!0),j(se,null,ie(U(l).mainColors,(e=>(z(),j("div",{key:e,style:N({background:`${e} !important`}),onClick:t=>U(n).selectColor(e)},[de(Y("i",Ma,"",512),[[Ie,e===U(a)]])],12,Ea)))),128))])])]))}}),[["__scopeId","data-v-91dd0386"]]),Ra={class:"box-style-settings"},Oa={class:"box-style"},Ba=["onClick"],Pa=lt(W({__name:"BoxStyleSettings",setup(e){const t=v(),{boxBorderMode:a}=D(t),{boxStyleOptions:l}=ca(),{boxStyleHandlers:n}=aa();return(e,t)=>(z(),j("div",Ra,[$(ua,{title:e.$t("setting.box.title"),style:{marginTop:"40px"}},null,8,["title"]),Y("div",Oa,[(z(!0),j(se,null,ie(U(l),(e=>{return z(),j("div",{key:e.value,class:ae(["button",{"is-active":(t=e.type,"border-mode"===t?a.value:!a.value)}]),onClick:t=>U(n).setBoxMode(e.type)},le(e.label),11,Ba);var t})),128))])]))}}),[["__scopeId","data-v-ac90b03c"]]),Wa={class:"container-settings"},Ha={class:"container-width"},Da=["onClick"],Fa=["innerHTML"],Xa=lt(W({__name:"ContainerSettings",setup(e){const t=v(),{containerWidth:a}=D(t),{containerWidthOptions:l}=ca(),{containerHandlers:n}=aa();return(e,t)=>(z(),j("div",Wa,[$(ua,{title:e.$t("setting.container.title"),style:{marginTop:"50px"}},null,8,["title"]),Y("div",Ha,[(z(!0),j(se,null,ie(U(l),(e=>(z(),j("div",{key:e.value,class:ae(["item",{"is-active":U(a)===e.value}]),onClick:t=>U(n).setWidth(e.value)},[Y("i",{class:"iconfont-sys",innerHTML:e.icon},null,8,Fa),Y("span",null,le(e.label),1)],10,Da)))),128))])]))}}),[["__scopeId","data-v-7056cb25"]]),ja={class:"label"},za=lt(W({__name:"SettingItem",props:{config:{},modelValue:{}},emits:["change"],setup(e,{emit:t}){const a=e,l=t,n=X((()=>{if(!a.config.options)return[];try{return"object"==typeof a.config.options&&"value"in a.config.options?a.config.options.value||[]:Array.isArray(a.config.options)?a.config.options:[]}catch(e){return[]}})),s=e=>{try{l("change",e)}catch(t){}};return(e,t)=>{const a=Re,l=Oe,i=Pe,o=Be;return z(),j("div",{class:ae(["setting-item",{"mobile-hide":e.config.mobileHide}])},[Y("span",ja,le(e.config.label),1),"switch"===e.config.type?(z(),pe(a,{key:0,"model-value":e.modelValue,onChange:s},null,8,["model-value"])):"input-number"===e.config.type?(z(),pe(l,{key:1,"model-value":e.modelValue,min:e.config.min,max:e.config.max,step:e.config.step,style:N(e.config.style),"controls-position":e.config.controlsPosition,onChange:s},null,8,["model-value","min","max","step","style","controls-position"])):"select"===e.config.type?(z(),pe(o,{key:2,"model-value":e.modelValue,style:N(e.config.style),onChange:s},{default:G((()=>[(z(!0),j(se,null,ie(U(n),(e=>(z(),pe(i,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["model-value","style"])):K("",!0)],2)}}}),[["__scopeId","data-v-d6416a6f"]]),Va={class:"basic-settings"},Na={class:"basic-box"},Ua=lt(W({__name:"BasicSettings",setup(e){const t=v(),{basicSettingsConfig:a}=ca(),{basicHandlers:l}=aa(),{uniqueOpened:n,showMenuButton:s,showFastEnter:i,showRefreshButton:o,showCrumbs:r,showWorkTab:u,showLanguage:c,showNprogress:d,colorWeak:m,watermarkVisible:h,menuOpenWidth:p,tabStyle:f,pageTransition:g,customRadius:y}=D(t),b={uniqueOpened:n,showMenuButton:s,showFastEnter:i,showRefreshButton:o,showCrumbs:r,showWorkTab:u,showLanguage:c,showNprogress:d,colorWeak:m,watermarkVisible:h,menuOpenWidth:p,tabStyle:f,pageTransition:g,customRadius:y},k=e=>{var t;const a=b[e];return null!=(t=null==a?void 0:a.value)?t:null};return(e,t)=>(z(),j("div",Va,[$(ua,{title:e.$t("setting.basics.title"),style:{marginTop:"40px"}},null,8,["title"]),Y("div",Na,[(z(!0),j(se,null,ie(U(a),(e=>(z(),pe(za,{key:e.key,config:e,"model-value":k(e.key),onChange:t=>((e,t)=>{const a=l[e];"function"==typeof a&&a(t)})(e.handler,t)},null,8,["config","model-value","onChange"])))),128))])]))}}),[["__scopeId","data-v-81c6dcde"]]),Ka={class:"layout-settings"},$a=W(r(o({},{name:"ArtSettingsPanel"}),{__name:"index",props:{open:{type:Boolean}},setup(e){const t=e,a=function(){const e=v(),{systemThemeType:t,systemThemeMode:a,menuType:l}=D(e),{openFestival:n,cleanup:s}=C(),{setSystemTheme:i,setSystemAutoTheme:o}=S(),{initColorWeak:r}=ta(),{domOperations:u}=aa(),c=q(!1),{width:d}=st(),m=q(),h=q(!1),f=X((()=>e.systemThemeColor)),b=()=>{const l=()=>{a.value===L.AUTO?o():i(t.value)};return{initSystemColor:()=>{g.systemMainColor.includes(f.value)||(e.setElementTheme(g.systemMainColor[0]),e.reload())},initSystemTheme:l,listenerSystemTheme:()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return e.addEventListener("change",l),()=>{e.removeEventListener("change",l)}}}},k=()=>({handleOpen:()=>{setTimeout((()=>{u.setBodyClass("theme-change",!0)}),500)},handleClose:()=>{u.setBodyClass("theme-change",!1)},openSetting:()=>{c.value=!0},closeDrawer:()=>{c.value=!1}});return{showDrawer:c,useThemeHandlers:b,useResponsiveLayout:()=>({handleWindowResize:()=>{Ae(d,(t=>{t<1e3?h.value||(m.value=l.value,ta().switchMenuLayouts(p.LEFT),e.setMenuOpen(!1),h.value=!0):h.value&&m.value&&(ta().switchMenuLayouts(m.value),e.setMenuOpen(!0),h.value=!1)}))}}),useDrawerControl:k,usePropsWatcher:e=>{Ae((()=>e.open),(e=>{void 0!==e&&(c.value=e)}))},useSettingsInitializer:()=>{const t=b(),{openSetting:a}=k();let l=null;return{initializeSettings:()=>{y.on("openSetting",a),t.initSystemColor(),l=t.listenerSystemTheme(),r();const s=e.boxBorderMode?"border-mode":"shadow-mode";setTimeout((()=>{u.setRootAttribute("data-box-mode",s)}),50),t.initSystemTheme(),n()},cleanupSettings:()=>{null==l||l(),s()}}}}}(),{showDrawer:l}=a,{handleWindowResize:n}=a.useResponsiveLayout(),{handleOpen:s,handleClose:i,closeDrawer:o}=a.useDrawerControl(),{initializeSettings:r,cleanupSettings:u}=a.useSettingsInitializer();return a.usePropsWatcher(t),J((()=>{r(),n()})),Q((()=>{u()})),(e,t)=>(z(),j("div",Ka,[$(sa,{modelValue:U(l),"onUpdate:modelValue":t[0]||(t[0]=e=>ce(l)?l.value=e:null),onOpen:U(s),onClose:U(i)},{default:G((()=>[$(ra,{onClose:U(o)},null,8,["onClose"]),$(pa),$(Aa),$(Ca),$(Ia),$(Pa),$(Xa),$(Ua)])),_:1},8,["modelValue","onOpen","onClose"])]))}})),Ga={class:"scroll-wrapper"},Ya=["innerHTML"],Za=["innerHTML"],qa=lt(W(r(o({},{name:"ArtTextScroll"}),{__name:"index",props:{text:{},speed:{default:70},direction:{default:"left"},type:{default:"default"},showClose:{type:Boolean,default:!1},typewriter:{type:Boolean,default:!1},typewriterSpeed:{default:100}},emits:["close"],setup(e,{emit:t}){const a=t,l=e,n=q(null),s=it(n),i=q(null),o=q(0),r=q("");let u=null;const c=q(!1),d=X((()=>l.typewriter?!s.value&&c.value:!s.value)),v=X((()=>l.typewriter?r.value:l.text)),m=X((()=>({"--animation-duration":`${o.value}s`,"--animation-play-state":d.value?"running":"paused","--animation-direction":"left"===l.direction?"normal":"reverse"}))),h=()=>{if(i.value){const e=i.value.scrollWidth/2;o.value=e/l.speed}},p=()=>{a("close")},f=()=>{let e=0;r.value="",c.value=!1;const t=()=>{e<l.text.length?(r.value+=l.text[e],e++,u=setTimeout(t,l.typewriterSpeed)):c.value=!0};t()};return J((()=>{h(),window.addEventListener("resize",h),l.typewriter&&f()})),Q((()=>{window.removeEventListener("resize",h),u&&clearTimeout(u)})),Ae((()=>l.text),(()=>{l.typewriter&&(u&&clearTimeout(u),f())})),(e,t)=>(z(),j("div",{ref_key:"containerRef",ref:n,class:ae(["text-scroll-container",[`text-scroll--${l.type}`]])},[t[1]||(t[1]=Y("div",{class:"left-icon"},[Y("i",{class:"iconfont-sys"},"")],-1)),Y("div",Ga,[Y("div",{class:ae(["text-scroll-content",{scrolling:d.value}]),style:N(m.value),ref_key:"scrollContent",ref:i},[Y("div",{class:"scroll-item",innerHTML:v.value},null,8,Ya),Y("div",{class:"scroll-item",innerHTML:v.value},null,8,Za)],6)]),e.showClose?(z(),j("div",{key:0,class:"right-icon",onClick:p},t[0]||(t[0]=[Y("i",{class:"iconfont-sys"},"",-1)]))):K("",!0)],2))}})),[["__scopeId","data-v-1bcf9101"]]),Ja=lt(W(r(o({},{name:"ArtFestivalTextScroll"}),{__name:"index",setup(e){const t=v(),{showFestivalText:a}=D(t),{currentFestivalData:l}=C(),n=()=>{t.setShowFestivalText(!1)};return(e,t)=>{var s,i;const o=qa;return z(),j("div",{class:"festival-text-scroll",style:N({height:U(a)?"48px":"0"})},[U(a)&&""!==(null==(s=U(l))?void 0:s.scrollText)?(z(),pe(o,{key:0,text:(null==(i=U(l))?void 0:i.scrollText)||"",style:{"margin-bottom":"12px"},"show-close":"",onClose:n,typewriter:"",speed:100,"typewriter-speed":150},null,8,["text"])):K("",!0)],4)}}})),[["__scopeId","data-v-3e1bf37f"]]),Qa={key:0,class:"route-info"},el={class:"full-page-mask"},tl=lt(W(r(o({},{name:"ArtPageContent"}),{__name:"index",setup(e){const t=We(),{containerMinHeight:a}=M(),{pageTransition:l,containerWidth:n,refresh:s}=D(v()),{keepAliveExclude:i}=D(I()),o=He(!0),r=q(!1),u=X((()=>t.matched.some((e=>{var t;return null==(t=e.meta)?void 0:t.isFullPage})))),c=q(u.value),d=X((()=>c.value&&!u.value?"":l.value));Ae(u,((e,t)=>{e!==t&&(r.value=!0,setTimeout((()=>{r.value=!1}),50)),ye((()=>{c.value=e}))}));const m=X((()=>u.value?{position:"fixed",top:0,left:0,width:"100%",height:"100vh",zIndex:2500,background:"var(--art-bg-color)"}:{maxWidth:n.value})),h=X((()=>({minHeight:a.value})));return Ae(s,(()=>{o.value=!1,ye((()=>{o.value=!0}))}),{flush:"post"}),(e,t)=>{const a=Ja,l=ee("RouterView");return z(),j("div",{class:ae(["layout-content abc",{"no-basic-layout":U(u)}]),style:N(U(m))},[U(u)?K("",!0):(z(),pe(a,{key:0})),U(o)?(z(),pe(l,{key:1,style:N(U(h))},{default:G((({Component:e,route:t})=>["true"===U("false")?(z(),j("div",Qa," router meta:"+le(t.meta),1)):K("",!0),$(Xe,{name:U(r)?"":U(d),mode:"out-in",appear:""},{default:G((()=>[(z(),pe(De,{max:10,exclude:U(i)},[t.meta.keepAlive?(z(),pe(Fe(e),{class:"art-page-view",key:t.fullPath})):K("",!0)],1032,["exclude"]))])),_:2},1032,["name"]),$(Xe,{name:U(r)?"":U(d),mode:"out-in",appear:""},{default:G((()=>[t.meta.keepAlive?K("",!0):(z(),pe(Fe(e),{class:"art-page-view",key:t.path}))])),_:2},1032,["name"])])),_:1},8,["style"])):K("",!0),(z(),pe(je,{to:"body"},[de(Y("div",el,null,512),[[Ie,U(r)]])]))],6)}}})),[["__scopeId","data-v-f53c12ed"]]),al={class:"menu-name"},ll={key:0,class:"art-badge",style:{right:"10px"}},nl={class:"art-badge",style:{right:"5px"}},sl={class:"menu-name"},il={key:0,class:"art-badge"},ol={key:1,class:"art-text-badge"},rl=W({name:"MenuItemIcon",props:{icon:{type:String,default:""},color:{type:String,default:""}},setup:e=>()=>Ne("i",{class:"menu-icon iconfont-sys",style:e.color?{color:e.color}:void 0,innerHTML:e.icon})}),ul=W({__name:"SidebarSubmenu",props:{title:{default:""},list:{default:()=>[]},theme:{default:()=>({})},isMobile:{type:Boolean,default:!1},level:{default:0}},emits:["close"],setup(e,{emit:t}){const a=e,l=t,n=v(),{menuOpen:s}=D(n),i=X((()=>c(a.list))),u=()=>{l("close")},c=e=>e.filter((e=>{if(e.meta.isHide)return!1;if(e.children&&e.children.length>0){return c(e.children).length>0}return!0})).map((e=>r(o({},e),{children:e.children?c(e.children):void 0}))),d=e=>{if(!e.children||0===e.children.length)return!1;return c(e.children).length>0};return(e,t)=>{const a=ee("SidebarSubmenu",!0),l=ze,n=Ve;return z(!0),j(se,null,ie(i.value,(t=>(z(),j(se,{key:t.path},[d(t)?(z(),pe(l,{key:0,index:t.path||t.meta.title,level:e.level},{title:G((()=>{var a;return[$(U(rl),{icon:t.meta.icon,color:null==(a=e.theme)?void 0:a.iconColor},null,8,["icon","color"]),Y("span",al,le(U(T)(t.meta.title)),1),t.meta.showBadge?(z(),j("div",ll)):K("",!0)]})),default:G((()=>[$(a,{list:t.children,"is-mobile":e.isMobile,level:e.level+1,theme:e.theme,onClose:u},null,8,["list","is-mobile","level","theme"])])),_:2},1032,["index","level"])):(z(),pe(n,{key:1,index:t.path||t.meta.title,"level-item":e.level+1,onClick:e=>(e=>{u(),ct(e)})(t)},{title:G((()=>[Y("span",sl,le(U(T)(t.meta.title)),1),t.meta.showBadge?(z(),j("div",il)):K("",!0),t.meta.showTextBadge&&(e.level>0||U(s))?(z(),j("div",ol,le(t.meta.showTextBadge),1)):K("",!0)])),default:G((()=>{var a;return[$(U(rl),{icon:t.meta.icon,color:null==(a=e.theme)?void 0:a.iconColor},null,8,["icon","color"]),de(Y("div",nl,null,512),[[Ie,t.meta.showBadge&&0===e.level&&!U(s)]])]})),_:2},1032,["index","level-item","onClick"]))],64)))),128)}}}),cl=["onClick"],dl=["innerHTML"],vl={key:0},ml={key:1,class:"art-badge art-badge-dual"},hl=lt(W(r(o({},{name:"ArtSidebarMenu"}),{__name:"index",setup(e){Ue((e=>({"7f58b718":U(k),bed3b61c:U(A)})));const t=h.CLOSE,a=We(),l=H(),n=v(),{getMenuOpenWidth:s,menuType:i,uniqueOpened:o,dualMenuShowText:r,menuOpen:u,getMenuTheme:c}=D(n),d=q([]),f=q(!1),y=q(!1),b=q(0),k=X((()=>s.value)),A=X((()=>t)),w=X((()=>i.value===p.TOP_LEFT)),T=X((()=>i.value===p.LEFT||i.value===p.TOP_LEFT)),x=X((()=>i.value===p.DUAL_MENU)),C=X((()=>{var e;return null==(e=a.matched[0])?void 0:e.path})),S=X((()=>String(a.meta.activePath||a.path))),L=X((()=>m().menuList.filter((e=>!e.meta.isHide)))),_=X((()=>{var e;const t=m().menuList;if(!w.value&&!x.value)return t;if(R(a.path))return O(a.path,t);if(a.meta.isFirstLevel)return[];const l=`/${a.path.split("/")[1]}`,n=t.find((e=>e.path===l));return null!=(e=null==n?void 0:n.children)?e:[]})),E=()=>document.body.clientWidth<800,I=()=>{setTimeout((()=>{y.value=!1}),350)},O=(e,t)=>{const a=t=>{for(const l of t){if(l.path===e)return!0;if(l.children&&a(l.children))return!0}return!1};for(const l of t)if(l.children&&a(l.children))return l.children;return[]},B=()=>{l.push(M().homePath.value)},P=()=>{n.setMenuOpen(!u.value),E()&&(u.value?I():y.value=!0)},W=()=>{E()&&(n.setMenuOpen(!1),I())},F=()=>{n.setDualMenuShowText(!r.value)},V=()=>{b.value<800?(n.setMenuOpen(!1),u.value||(y.value=!1)):y.value=!1};return Ae((()=>u.value),(e=>{E()?e?y.value=!0:I():y.value=!1})),J((()=>{b.value=document.body.clientWidth,V(),window.onresize=()=>{b.value=document.body.clientWidth,V()}})),(e,t)=>{const l=rt,n=$e,s=Me,i=Ke;return U(T)||U(x)?(z(),j("div",{key:0,class:ae(["layout-sidebar",{"no-border":0===U(_).length}])},[U(x)?(z(),j("div",{key:0,class:"dual-menu-left",style:N({background:U(c).background})},[$(l,{class:"logo",onClick:B}),$(s,{style:{height:"calc(100% - 135px)"}},{default:G((()=>[Y("ul",null,[(z(!0),j(se,null,ie(U(L),(t=>(z(),j("li",{key:t.path,onClick:e=>U(ct)(t,!0)},[$(n,{class:"box-item",effect:"dark",content:e.$t(t.meta.title),placement:"right",offset:25,"hide-after":0,disabled:U(r)},{default:G((()=>[Y("div",{class:ae({"is-active":t.meta.isFirstLevel?t.path===U(a).path:t.path===U(C)}),style:N({margin:U(r)?"5px":"15px",height:U(r)?"60px":"46px"})},[Y("i",{class:"iconfont-sys",innerHTML:t.meta.icon,style:N({fontSize:U(r)?"18px":"22px",marginBottom:U(r)?"5px":"0"})},null,12,dl),U(r)?(z(),j("span",vl,le(e.$t(t.meta.title)),1)):K("",!0),t.meta.showBadge?(z(),j("div",ml)):K("",!0)],6)])),_:2},1032,["content","disabled"])],8,cl)))),128))])])),_:1}),Y("div",{class:"switch-btn",onClick:F},t[0]||(t[0]=[Y("i",{class:"iconfont-sys"},"",-1)]))],4)):K("",!0),de(Y("div",{class:ae(["menu-left",`menu-left-${U(c).theme} menu-left-${U(u)?"open":"close"}`]),style:N({background:U(c).background})},[$(s,{style:{height:"calc(100% - 10px)"}},{default:G((()=>[Y("div",{class:"header",onClick:B,style:N({background:U(c).background})},[U(x)?K("",!0):(z(),pe(l,{key:0,class:"logo"})),Y("p",{class:ae({"is-dual-menu-name":U(x)}),style:N({color:U(c).systemNameColor,opacity:U(u)?1:0})},le(U(g).systemInfo.name),7)],4),$(i,{class:ae("el-menu-"+U(c).theme),collapse:!U(u),"default-active":U(S),"text-color":U(c).textColor,"unique-opened":U(o),"background-color":U(c).background,"active-text-color":U(c).textActiveColor,"default-openeds":U(d),"popper-class":`menu-left-${U(c).theme}-popper`,"show-timeout":50,"hide-timeout":50},{default:G((()=>[$(ul,{list:U(_),isMobile:U(f),theme:U(c),onClose:W},null,8,["list","isMobile","theme"])])),_:1},8,["class","collapse","default-active","text-color","unique-opened","background-color","active-text-color","default-openeds","popper-class"])])),_:1}),Y("div",{class:"menu-model",onClick:P,style:N({opacity:U(u)?1:0,transform:U(y)?"scale(1)":"scale(0)"})},null,4)],6),[[Ie,U(_).length>0]])],2)):K("",!0)}}})),[["__scopeId","data-v-08f07136"]]),pl={class:"header"},fl={class:"text"},gl={class:"btn"},yl={class:"bar"},bl=["onClick"],kl={class:"content"},Al={class:"scroll"},wl={class:"notice-list"},Tl=["innerHTML"],xl={class:"text"},Cl={class:"user-list"},Sl={class:"avatar"},Ll=["src"],_l={class:"text"},El={class:"base"},Ml={class:"empty-tips"},Il={class:"btn-wrapper"},Rl=lt(W(r(o({},{name:"ArtNotification"}),{__name:"index",props:{value:{type:Boolean}},setup(e){const{t:t}=b(),a=e,l=q(!1),n=q(!1),s=q(0),{noticeList:i,msgList:o,pendingList:r,barList:u}=(()=>{const e=q([{title:"新增国际化",time:"2024-6-13 0:10",type:"notice"},{title:"冷月呆呆给你发了一条消息",time:"2024-4-21 8:05",type:"message"},{title:"小肥猪关注了你",time:"2020-3-17 21:12",type:"collection"},{title:"新增使用文档",time:"2024-02-14 0:20",type:"notice"},{title:"小肥猪给你发了一封邮件",time:"2024-1-20 0:15",type:"email"},{title:"菜单mock本地真实数据",time:"2024-1-17 22:06",type:"notice"}]),a=q([{title:"池不胖 关注了你",time:"2021-2-26 23:50",avatar:ht},{title:"唐不苦 关注了你",time:"2021-2-21 8:05",avatar:ht},{title:"中小鱼 关注了你",time:"2020-1-17 21:12",avatar:ht},{title:"何小荷 关注了你",time:"2021-01-14 0:20",avatar:ht},{title:"誶誶淰 关注了你",time:"2020-12-20 0:15",avatar:ht},{title:"冷月呆呆 关注了你",time:"2020-12-17 22:06",avatar:ht}]),l=q([]),n=X((()=>[{name:X((()=>t("notice.bar[0]"))),num:e.value.length},{name:X((()=>t("notice.bar[1]"))),num:a.value.length},{name:X((()=>t("notice.bar[2]"))),num:l.value.length}]));return{noticeList:e,msgList:a,pendingList:l,barList:n}})(),{getNoticeStyle:c}=(()=>{const e={email:{icon:"",iconColor:"rgb(var(--art-warning))",backgroundColor:"rgb(var(--art-bg-warning))"},message:{icon:"",iconColor:"rgb(var(--art-success))",backgroundColor:"rgb(var(--art-bg-success))"},collection:{icon:"",iconColor:"rgb(var(--art-danger))",backgroundColor:"rgb(var(--art-bg-danger))"},user:{icon:"",iconColor:"rgb(var(--art-info))",backgroundColor:"rgb(var(--art-bg-info))"},notice:{icon:"",iconColor:"rgb(var(--art-primary))",backgroundColor:"rgb(var(--art-bg-primary))"}},t=()=>{const e=Math.floor(Math.random()*g.systemMainColor.length);return g.systemMainColor[e]};return{getNoticeStyle:a=>{const l={icon:"",iconColor:"#FFFFFF",backgroundColor:t()};return e[a]||l}}})(),{showNotice:d}={showNotice:e=>{e?(n.value=e,setTimeout((()=>{l.value=e}),5)):(l.value=e,setTimeout((()=>{n.value=e}),350))}},{handleNoticeAll:v,handleMsgAll:m,handlePendingAll:h}={handleNoticeAll:()=>{},handleMsgAll:()=>{},handlePendingAll:()=>{}},{changeBar:p,currentTabIsEmpty:f,handleViewAll:y}=(k=i,A=o,w=r,T={handleNoticeAll:v,handleMsgAll:m,handlePendingAll:h},{changeBar:e=>{s.value=e},currentTabIsEmpty:X((()=>{const e=[k.value,A.value,w.value][s.value];return e&&0===e.length})),handleViewAll:()=>{const e={0:T.handleNoticeAll,1:T.handleMsgAll,2:T.handlePendingAll}[s.value];null==e||e()}});var k,A,w,T;return Ae((()=>a.value),(e=>{d(e)})),(e,t)=>{const a=ve,d=te("ripple");return de((z(),j("div",{class:"notice",style:N({transform:l.value?"scaleY(1)":"scaleY(0.9)",opacity:l.value?1:0}),onClick:t[0]||(t[0]=ue((()=>{}),["stop"]))},[Y("div",pl,[Y("span",fl,le(e.$t("notice.title")),1),Y("span",gl,le(e.$t("notice.btnRead")),1)]),Y("ul",yl,[(z(!0),j(se,null,ie(U(u),((e,t)=>(z(),j("li",{key:t,class:ae({active:s.value===t}),onClick:e=>U(p)(t)},le(e.name)+" ("+le(e.num)+") ",11,bl)))),128))]),Y("div",kl,[Y("div",Al,[de(Y("ul",wl,[(z(!0),j(se,null,ie(U(i),((e,t)=>(z(),j("li",{key:t},[Y("div",{class:"icon",style:N({background:U(c)(e.type).backgroundColor+"!important"})},[Y("i",{class:"iconfont-sys",style:N({color:U(c)(e.type).iconColor+"!important"}),innerHTML:U(c)(e.type).icon},null,12,Tl)],4),Y("div",xl,[Y("h4",null,le(e.title),1),Y("p",null,le(e.time),1)])])))),128))],512),[[Ie,0===s.value]]),de(Y("ul",Cl,[(z(!0),j(se,null,ie(U(o),((e,t)=>(z(),j("li",{key:t},[Y("div",Sl,[Y("img",{src:e.avatar},null,8,Ll)]),Y("div",_l,[Y("h4",null,le(e.title),1),Y("p",null,le(e.time),1)])])))),128))],512),[[Ie,1===s.value]]),de(Y("ul",El,[(z(!0),j(se,null,ie(U(r),((e,t)=>(z(),j("li",{key:t},[Y("h4",null,le(e.title),1),Y("p",null,le(e.time),1)])))),128))],512),[[Ie,2===s.value]]),de(Y("div",Ml,[t[1]||(t[1]=Y("i",{class:"iconfont-sys"},"",-1)),Y("p",null,le(e.$t("notice.text[0]"))+le(U(u)[s.value].name),1)],512),[[Ie,U(f)]])]),Y("div",Il,[de((z(),pe(a,{class:"view-all",onClick:U(y)},{default:G((()=>[fe(le(e.$t("notice.viewAll")),1)])),_:1},8,["onClick"])),[[d]])])]),t[2]||(t[2]=Y("div",{style:{height:"100px"}},null,-1))],4)),[[Ie,n.value]])}}})),[["__scopeId","data-v-9abbfd13"]]),Ol={class:"menu-right"},Bl=["onClick"],Pl=["innerHTML"],Wl={class:"menu-label"},Hl={class:"submenu-title"},Dl=["innerHTML"],Fl={class:"menu-label"},Xl=["onClick"],jl=["innerHTML"],zl={class:"menu-label"},Vl=lt(W(r(o({},{name:"ArtMenuRight"}),{__name:"index",props:{menuItems:{},menuWidth:{default:120},submenuWidth:{default:150},itemHeight:{default:32},boundaryDistance:{default:10},menuPadding:{default:5},itemPaddingX:{default:6},borderRadius:{default:6},animationDuration:{default:100}},emits:["select","show","hide"],setup(e,{expose:t,emit:a}){Ue((e=>({"03a3f243":l.menuWidth+"px","4122aad2":l.borderRadius+"px","78ce3298":l.animationDuration+"ms"})));const l=e,n=a,s=q(!1),i=q({x:0,y:0});let o=null,r=!1;const u=X((()=>({position:"fixed",left:`${i.value.x}px`,top:`${i.value.y}px`,zIndex:2e3,width:`${l.menuWidth}px`}))),c=X((()=>({padding:`${l.menuPadding}px`}))),d=X((()=>({height:`${l.itemHeight}px`,padding:`0 ${l.itemPaddingX}px`,borderRadius:"4px"}))),v=X((()=>({minWidth:`${l.submenuWidth}px`,padding:`${l.menuPadding}px 0`,borderRadius:`${l.borderRadius}px`}))),m=e=>{const t=window.innerWidth,a=window.innerHeight,n=(()=>{let e=2*l.menuPadding;return l.menuItems.forEach((t=>{e+=l.itemHeight,t.showLine&&(e+=10)})),e})();let s=e.clientX,i=e.clientY;return s+l.menuWidth>t-l.boundaryDistance&&(s=Math.max(l.boundaryDistance,s-l.menuWidth)),i+n>a-l.boundaryDistance&&(i=Math.max(l.boundaryDistance,a-n-l.boundaryDistance)),s=Math.max(l.boundaryDistance,Math.min(s,t-l.menuWidth-l.boundaryDistance)),i=Math.max(l.boundaryDistance,Math.min(i,a-n-l.boundaryDistance)),{x:s,y:i}},h=()=>{r&&(document.removeEventListener("click",p),document.removeEventListener("contextmenu",f),document.removeEventListener("keydown",g),r=!1)},p=e=>{const t=e.target,a=document.querySelector(".context-menu");a&&a.contains(t)||y()},f=()=>{y()},g=e=>{"Escape"===e.key&&y()},y=()=>{s.value&&(s.value=!1,n("hide"),o&&(window.clearTimeout(o),o=null),h())},b=e=>{e.disabled||(n("select",e),y())},k=e=>{e.style.transformOrigin="top left"},A=()=>{h(),o&&(window.clearTimeout(o),o=null)};return Q((()=>{h(),o&&(window.clearTimeout(o),o=null)})),t({show:e=>{e.preventDefault(),e.stopPropagation(),o&&(window.clearTimeout(o),o=null),i.value=m(e),s.value=!0,n("show"),o=window.setTimeout((()=>{s.value&&(r||(document.addEventListener("click",p),document.addEventListener("contextmenu",f),document.addEventListener("keydown",g),r=!0)),o=null}),50)},hide:y,visible:X((()=>s.value))}),(e,t)=>(z(),j("div",Ol,[$(Xe,{name:"context-menu",onBeforeEnter:k,onAfterLeave:A},{default:G((()=>[de(Y("div",{style:N(U(u)),class:"context-menu"},[Y("ul",{class:"menu-list",style:N(U(c))},[(z(!0),j(se,null,ie(e.menuItems,(e=>(z(),j(se,{key:e.key},[e.children?(z(),j("li",{key:1,class:"menu-item submenu",style:N(U(d))},[Y("div",Hl,[e.icon?(z(),j("i",{key:0,class:"iconfont-sys",innerHTML:e.icon},null,8,Dl)):K("",!0),Y("span",Fl,le(e.label),1),t[0]||(t[0]=Y("i",{class:"iconfont-sys submenu-arrow"},"",-1))]),Y("ul",{class:"submenu-list",style:N(U(v))},[(z(!0),j(se,null,ie(e.children,(e=>(z(),j("li",{key:e.key,class:ae(["menu-item",{"is-disabled":e.disabled,"has-line":e.showLine}]),style:N(U(d)),onClick:t=>b(e)},[e.icon?(z(),j("i",{key:0,class:"iconfont-sys",innerHTML:e.icon},null,8,jl)):K("",!0),Y("span",zl,le(e.label),1)],14,Xl)))),128))],4)],4)):(z(),j("li",{key:0,class:ae(["menu-item",{"is-disabled":e.disabled,"has-line":e.showLine}]),style:N(U(d)),onClick:t=>b(e)},[e.icon?(z(),j("i",{key:0,class:"iconfont-sys",innerHTML:e.icon},null,8,Pl)):K("",!0),Y("span",Wl,le(e.label),1)],14,Bl))],64)))),128))],4)],4),[[Ie,U(s)]])])),_:1})]))}})),[["__scopeId","data-v-1f2e2f4a"]]),Nl=["id","onClick","onContextmenu"],Ul={class:"right"},Kl=lt(W(r(o({},{name:"ArtWorkTab"}),{__name:"index",setup(e){const{t:t}=b(),a=I(),l=k(),n=We(),s=H(),{currentRoute:i}=s,o=v(),{tabStyle:r,showWorkTab:u}=D(o),c=q(null),d=q(null),m=q(),h=q({translateX:0,transition:""}),p=q({startX:0,currentX:0}),f=q(""),g=X((()=>a.opened)),y=X((()=>i.value.path)),A=X((()=>g.value.findIndex((e=>e.path===y.value)))),w=()=>{const e=()=>{if(!c.value||!d.value)return;const e=c.value.offsetWidth,t=d.value.offsetWidth,a=document.getElementById(`scroll-li-${A.value}`);if(!a)return;const{offsetLeft:l,clientWidth:n}=a,s=l+n;return{scrollWidth:e,ulWidth:t,offsetLeft:l,clientWidth:n,curTabRight:s,targetLeft:e-s}};return{setTransition:()=>{h.value.transition="transform 0.5s cubic-bezier(0.15, 0, 0.15, 1)",setTimeout((()=>{h.value.transition=""}),250)},autoPositionTab:()=>{const t=e();if(!t)return;const{scrollWidth:a,ulWidth:l,offsetLeft:n,curTabRight:s,targetLeft:i}=t;n>Math.abs(h.value.translateX)&&s<=a||h.value.translateX<i&&i<0||requestAnimationFrame((()=>{s>a?h.value.translateX=Math.max(i-6,a-l):n<Math.abs(h.value.translateX)&&(h.value.translateX=-n)}))},adjustPositionAfterClose:()=>{const t=e();if(!t)return;const{scrollWidth:a,ulWidth:l,offsetLeft:n,clientWidth:s}=t,i=n+s;requestAnimationFrame((()=>{h.value.translateX=i>a?a-l:0}))}}},{menuItems:x}={menuItems:X((()=>{const{clickedIndex:e,currentTab:a,isLastTab:l,isOneTab:n,isCurrentTab:s}=(()=>{const e=g.value.findIndex((e=>e.path===f.value));return{clickedIndex:e,currentTab:g.value[e],isLastTab:e===g.value.length-1,isOneTab:1===g.value.length,isCurrentTab:f.value===y.value}})(),i=(e=>{const t=g.value.slice(0,e),a=g.value.slice(e+1),l=g.value.filter(((t,a)=>a!==e));return{areAllLeftTabsFixed:t.length>0&&t.every((e=>e.fixedTab)),areAllRightTabsFixed:a.length>0&&a.every((e=>e.fixedTab)),areAllOtherTabsFixed:l.length>0&&l.every((e=>e.fixedTab)),areAllTabsFixed:g.value.every((e=>e.fixedTab))}})(e);return[{key:"refresh",label:t("worktab.btn.refresh"),icon:"",disabled:!s},{key:"fixed",label:(null==a?void 0:a.fixedTab)?t("worktab.btn.unfixed"):t("worktab.btn.fixed"),icon:"",disabled:!1,showLine:!0},{key:"left",label:t("worktab.btn.closeLeft"),icon:"",disabled:0===e||i.areAllLeftTabsFixed},{key:"right",label:t("worktab.btn.closeRight"),icon:"",disabled:l||i.areAllRightTabsFixed},{key:"other",label:t("worktab.btn.closeOther"),icon:"",disabled:n||i.areAllOtherTabsFixed},{key:"all",label:t("worktab.btn.closeAll"),icon:"",disabled:n||i.areAllTabsFixed}]}))},{setTransition:C,autoPositionTab:S}=w(),{setupEventListeners:L,cleanupEventListeners:_,adjustPositionAfterClose:E}=(()=>{const{setTransition:e,adjustPositionAfterClose:t}=w(),a=e=>{if(!c.value||!d.value)return;if(e.preventDefault(),d.value.offsetWidth<=c.value.offsetWidth)return;const t=c.value.offsetWidth-d.value.offsetWidth,a=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;h.value.translateX=Math.min(Math.max(h.value.translateX-a,t),0)},l=e=>{p.value.startX=e.touches[0].clientX},n=e=>{if(!c.value||!d.value)return;p.value.currentX=e.touches[0].clientX;const t=p.value.currentX-p.value.startX,a=c.value.offsetWidth-d.value.offsetWidth;h.value.translateX=Math.min(Math.max(h.value.translateX+t,a),0),p.value.startX=p.value.currentX},s=()=>{e()};return{setupEventListeners:()=>{d.value&&(d.value.addEventListener("wheel",a,{passive:!1}),d.value.addEventListener("touchstart",l,{passive:!0}),d.value.addEventListener("touchmove",n,{passive:!0}),d.value.addEventListener("touchend",s,{passive:!0}))},cleanupEventListeners:()=>{d.value&&(d.value.removeEventListener("wheel",a),d.value.removeEventListener("touchstart",l),d.value.removeEventListener("touchmove",n),d.value.removeEventListener("touchend",s))},adjustPositionAfterClose:t}})(),{clickTab:R,closeWorktab:O,showMenu:B,handleSelect:P}=(e=>{const t=(t,l)=>{var s;const i="string"==typeof l?l:n.path,o={current:()=>a.removeTab(i),left:()=>a.removeLeft(i),right:()=>a.removeRight(i),other:()=>a.removeOthers(i),all:()=>a.removeAll()};null==(s=o[t])||s.call(o),setTimeout((()=>{e()}),100)};return{clickTab:e=>{s.push({path:e.path,query:e.query})},closeWorktab:t,showMenu:(e,t)=>{var a;f.value=t||"",null==(a=m.value)||a.show(e),e.preventDefault(),e.stopPropagation()},handleSelect:e=>{const{key:a}=e;if("refresh"===a)return void M().refresh();if("fixed"===a)return void I().toggleFixedTab(f.value);const l=g.value.findIndex((e=>e.path===y.value)),n=g.value.findIndex((e=>e.path===f.value));({left:l<n,right:l>n,other:!0})[a]&&s.push(f.value),t(a,f.value)}}})(E);return J((()=>{L(),S()})),Q((()=>{_()})),Ae((()=>i.value),(()=>{C(),S()})),Ae((()=>l.language),(()=>{h.value.translateX=0,ye((()=>{S()}))})),(e,t)=>{const a=ne,l=Vl;return U(u)?(z(),j("div",{key:0,class:ae(["worktab",[U(r)]])},[Y("div",{class:"scroll-view",ref_key:"scrollRef",ref:c},[Y("ul",{class:"tabs",ref_key:"tabsRef",ref:d,style:N({transform:`translateX(${h.value.translateX}px)`,transition:`${h.value.transition}`})},[(z(!0),j(se,null,ie(g.value,((e,l)=>(z(),j("li",{class:ae(["art-custom-card",{"activ-tab":e.path===y.value}]),key:e.path,ref_for:!0,ref:e.path,id:`scroll-li-${l}`,style:N({padding:e.fixedTab?"0 10px":"0 8px 0 12px"}),onClick:t=>U(R)(e),onContextmenu:ue((t=>U(B)(t,e.path)),["prevent"])},[fe(le(e.customTitle||U(T)(e.title))+" ",1),g.value.length>1&&!e.fixedTab?(z(),pe(a,{key:0,onClick:ue((t=>U(O)("current",e.path)),["stop"])},{default:G((()=>[$(U(Ye))])),_:2},1032,["onClick"])):K("",!0),t[1]||(t[1]=Y("div",{class:"line"},null,-1))],46,Nl)))),128))],4)],512),Y("div",Ul,[$(a,{class:"btn console-box art-custom-card",onClick:t[0]||(t[0]=e=>U(B)(e,y.value))},{default:G((()=>[$(U(Ge))])),_:1})]),$(l,{ref_key:"menuRef",ref:m,"menu-items":U(x),"menu-width":140,"border-radius":10,onSelect:U(P)},null,8,["menu-items","onSelect"])],2)):K("",!0)}}})),[["__scopeId","data-v-b4220c33"]]),$l={class:"mixed-top-menu"},Gl={class:"scroll-bar"},Yl=["onClick"],Zl=["innerHTML"],ql={key:0,class:"art-badge art-badge-mixed"},Jl=lt(W(r(o({},{name:"ArtMixedMenu"}),{__name:"index",props:{list:{default:()=>[]}},setup(e){const t=We(),a=e,l=q(),n=q(!1),s=q(!1),i=200,u=35,c=30,d=100,v=X((()=>String(t.meta.activePath||t.path))),m=e=>{var t;const a=v.value;return(null==(t=e.children)?void 0:t.length)?e.children.some((e=>{var t;return(null==(t=e.children)?void 0:t.length)?m(e):e.path===a})):e.path===a},h=X((()=>a.list.map((e=>r(o({},e),{isActive:m(e),formattedTitle:T(e.meta.title)}))))),p=()=>{var e;if(!(null==(e=l.value)?void 0:e.wrapRef))return;const{scrollLeft:t,scrollWidth:a,clientWidth:i}=l.value.wrapRef;n.value=t>0,s.value=t+i<a},f=O(p,16),g=e=>{var t;if(!(null==(t=l.value)?void 0:t.wrapRef))return;const a=l.value.wrapRef.scrollLeft,n="left"===e?a-i:a+i;l.value.wrapRef.scrollTo({left:n,behavior:"smooth"})},y=e=>{var t;if(e.preventDefault(),e.stopPropagation(),!(null==(t=l.value)?void 0:t.wrapRef))return;const{wrapRef:a}=l.value,{scrollLeft:n,scrollWidth:s,clientWidth:i}=a,o=Math.abs(e.deltaY)>d?u:c,r=e.deltaY>0?o:-o,v=Math.max(0,Math.min(n+r,s-i));a.scrollLeft=v,p()};return J((()=>{ye((()=>{p()}))})),(e,t)=>(z(),j("div",$l,[de(Y("div",{class:"scroll-btn left",onClick:t[0]||(t[0]=e=>g("left"))},[$(U(ne),null,{default:G((()=>[$(U(Ze))])),_:1})],512),[[Ie,n.value]]),$(U(Me),{ref_key:"scrollbarRef",ref:l,"wrap-class":"scrollbar-wrapper",horizontal:!0,onScroll:U(f),onWheel:y},{default:G((()=>[Y("div",Gl,[(z(!0),j(se,null,ie(h.value,(e=>(z(),j(se,{key:e.meta.title},[e.meta.isHide?K("",!0):(z(),j("div",{key:0,class:ae(["item",{active:e.isActive}]),onClick:t=>U(ct)(e,!0)},[Y("i",{class:"iconfont-sys",innerHTML:e.meta.icon},null,8,Zl),Y("span",null,le(e.formattedTitle),1),e.meta.showBadge?(z(),j("div",ql)):K("",!0)],10,Yl))],64)))),128))])])),_:1},8,["onScroll"]),de(Y("div",{class:"scroll-btn right",onClick:t[1]||(t[1]=e=>g("right"))},[$(U(ne),null,{default:G((()=>[$(U(qe))])),_:1})],512),[[Ie,s.value]])]))}})),[["__scopeId","data-v-6eb67a46"]]),Ql=["innerHTML"],en={key:0,class:"art-badge art-badge-horizontal"},tn={key:1,class:"art-text-badge"},an=["innerHTML"],ln={key:1,class:"art-text-badge"},nn=lt(W({__name:"HorizontalSubmenu",props:{item:{type:Object,required:!0},theme:{type:Object,default:()=>({})},isMobile:Boolean,level:{type:Number,default:0}},emits:["close"],setup(e,{emit:t}){const a=e,l=t,n=X((()=>{var e;return(null==(e=a.item.children)?void 0:e.filter((e=>!e.meta.isHide)))||[]})),s=X((()=>n.value.length>0)),i=()=>{l("close")};return(t,a)=>{const l=ee("HorizontalSubmenu",!0),o=ze,r=Ve;return s.value?(z(),pe(o,{key:0,index:e.item.path||e.item.meta.title},{title:G((()=>{var t;return[Y("i",{class:"menu-icon iconfont-sys",style:N({color:null==(t=e.theme)?void 0:t.iconColor}),innerHTML:e.item.meta.icon},null,12,Ql),Y("span",null,le(U(T)(e.item.meta.title)),1),e.item.meta.showBadge?(z(),j("div",en)):K("",!0),e.item.meta.showTextBadge?(z(),j("div",tn,le(e.item.meta.showTextBadge),1)):K("",!0)]})),default:G((()=>[(z(!0),j(se,null,ie(n.value,(t=>(z(),pe(l,{key:t.path,item:t,theme:e.theme,"is-mobile":e.isMobile,level:e.level+1,onClose:i},null,8,["item","theme","is-mobile","level"])))),128))])),_:1},8,["index"])):e.item.meta.isHide?K("",!0):(z(),pe(r,{key:1,index:e.item.path||e.item.meta.title,onClick:a[0]||(a[0]=t=>{return a=e.item,i(),void ct(a);var a})},{default:G((()=>{var t;return[Y("i",{class:"menu-icon iconfont-sys",style:N({color:null==(t=e.theme)?void 0:t.iconColor}),innerHTML:e.item.meta.icon},null,12,an),Y("span",null,le(U(T)(e.item.meta.title)),1),e.item.meta.showBadge?(z(),j("div",{key:0,class:"art-badge",style:N({right:0===e.level?"10px":"20px"})},null,4)):K("",!0),e.item.meta.showTextBadge&&0!==e.level?(z(),j("div",ln,le(e.item.meta.showTextBadge),1)):K("",!0)]})),_:1},8,["index"]))}}}),[["__scopeId","data-v-fbea8608"]]),sn={class:"top-menu"},on=lt(W(r(o({},{name:"ArtHorizontalMenu"}),{__name:"index",props:{list:{default:()=>[]}},setup(e){const t=We(),a=e,l=X((()=>s(a.list))),n=X((()=>String(t.meta.activePath||t.path))),s=e=>e.filter((e=>{if(e.meta.isHide)return!1;if(e.children&&e.children.length>0){return s(e.children).length>0}return!0})).map((e=>r(o({},e),{children:e.children?s(e.children):void 0})));return(e,t)=>{const a=Ke;return z(),j("div",sn,[$(a,{ellipsis:!0,mode:"horizontal","default-active":U(n),"text-color":"var(--art-text-gray-700)","popper-offset":-6,"background-color":"transparent","show-timeout":50,"hide-timeout":50,"popper-class":"horizontal-menu-popper"},{default:G((()=>[(z(!0),j(se,null,ie(U(l),(e=>(z(),pe(nn,{key:e.path,item:e,isMobile:!1,level:0},null,8,["item"])))),128))])),_:1},8,["default-active"])])}}})),[["__scopeId","data-v-52f2ca43"]]),rn={class:"breadcrumb","aria-label":"breadcrumb"},un=["onClick"],cn={key:0,class:"breadcrumb-separator","aria-hidden":"true"},dn=lt(W(r(o({},{name:"ArtBreadcrumb"}),{__name:"index",setup(e){const t=We(),a=H(),l=X((()=>{var e;const{matched:a}=t;if(!a.length||"/"===a[0].name)return[];const l=null==(e=a[0].meta)?void 0:e.isFirstLevel,s=a[a.length-1];return l?[n(s)]:a.map(n)}));function n(e){return{path:e.path,meta:e.meta}}function s(e){return e===l.value.length-1}function i(e,t){return"/outside"!==e.path&&!s(t)}return(e,t)=>(z(),j("nav",rn,[Y("ul",null,[(z(!0),j(se,null,ie(l.value,((e,t)=>{var l,n;return z(),j("li",{key:e.path},[Y("div",{class:ae({clickable:i(e,t)}),onClick:l=>function(e,t){return c(this,null,(function*(){var l;if(!s(t)&&"/outside"!==e.path)try{const t=a.getRoutes().find((t=>t.path===e.path));if(!(null==(l=null==t?void 0:t.children)?void 0:l.length))return void(yield a.push(e.path));const n=function(e){var t;return null==(t=e.children)?void 0:t.find((e=>{var t;return!e.redirect&&!(null==(t=e.meta)?void 0:t.isHide)}))}(t),s=n?`/${n.path}`.replace("//","/"):e.path;yield a.push(s)}catch(n){}}))}(e,t)},[Y("span",null,le(U(T)(null==(l=e.meta)?void 0:l.title)),1)],10,un),!s(t)&&(null==(n=e.meta)?void 0:n.title)?(z(),j("div",cn," / ")):K("",!0)])})),128))])]))}})),[["__scopeId","data-v-edf03012"]]);const vn={class:"menu"},mn={class:"left",style:{display:"flex"}},hn={key:0},pn={key:1,class:"btn-box"},fn={key:2,class:"btn-box"},gn={class:"right"},yn={key:0,class:"search-wrap"},bn={class:"left"},kn={class:"search-keydown"},An={key:0,class:"iconfont-sys"},wn={key:1,class:"iconfont-sys"},Tn={class:"iconfont-sys"},xn={key:2,class:"btn-box"},Cn={class:"menu-txt"},Sn={key:0,class:"iconfont-sys"},Ln={class:"btn theme-btn"},_n={class:"iconfont-sys"},En={class:"user"},Mn=["src"],In={class:"user-menu-box"},Rn={class:"user-head"},On=["src"],Bn={class:"user-wrap"},Pn={class:"name"},Wn={class:"email",style:{"white-space":"normal"}},Hn={class:"user-menu"},Dn={class:"menu-txt"},Fn={class:"menu-txt"},Xn=lt(W(r(o({},{name:"ArtHeaderBar"}),{__name:"index",setup(e){const t=navigator.userAgent.includes("Windows"),a=H(),{locale:l,t:n}=b(),{width:s}=st(),i=v(),o=k(),r=m(),{shouldShowMenuButton:u,shouldShowRefreshButton:c,shouldShowBreadcrumb:d,shouldShowGlobalSearch:f,shouldShowFullscreen:A,shouldShowLanguage:T,shouldShowSettings:x,shouldShowThemeToggle:C}=function(){const e=v(),t=X((()=>E)),{showMenuButton:a,showFastEnter:l,showRefreshButton:n,showCrumbs:s,showLanguage:i}=D(e),o=e=>{var a,l;return null!=(l=null==(a=t.value[e])?void 0:a.enabled)&&l},r=e=>t.value[e],u=X((()=>o("menuButton")&&a.value)),c=X((()=>o("refreshButton")&&n.value)),d=X((()=>o("fastEnter")&&l.value)),m=X((()=>o("breadcrumb")&&s.value)),h=X((()=>o("globalSearch"))),p=X((()=>o("fullscreen"))),f=X((()=>o("notification"))),g=X((()=>o("chat"))),y=X((()=>o("language")&&i.value)),b=X((()=>o("settings")&&k().isSuperAdmin)),A=X((()=>o("themeToggle"))),w=X((()=>{const e=r("fastEnter");return(null==e?void 0:e.minWidth)||1200})),T=()=>Object.keys(t.value).filter((e=>{var a;return null==(a=t.value[e])?void 0:a.enabled})),x=()=>Object.keys(t.value).filter((e=>{var a;return!(null==(a=t.value[e])?void 0:a.enabled)}));return{headerBarConfig:t,shouldShowMenuButton:u,shouldShowRefreshButton:c,shouldShowFastEnter:d,shouldShowBreadcrumb:m,shouldShowGlobalSearch:h,shouldShowFullscreen:p,shouldShowNotification:f,shouldShowChat:g,shouldShowLanguage:y,shouldShowSettings:b,shouldShowThemeToggle:A,fastEnterMinWidth:w,isFeatureEnabled:o,isFeatureActive:e=>o(e),getFeatureConfig:r,getFeatureInfo:e=>r(e),getEnabledFeatures:T,getDisabledFeatures:x,getActiveFeatures:()=>T(),getInactiveFeatures:()=>x()}}(),{menuOpen:S,systemThemeColor:L,showSettingGuide:_,menuType:I,isDark:R,tabStyle:O}=D(i),{language:W,getUserInfo:F}=D(o),{menuList:V}=D(r),Z=q(!1),ee=q(null),te=q(),ne=X((()=>I.value===p.LEFT)),oe=X((()=>I.value===p.DUAL_MENU)),re=X((()=>I.value===p.TOP)),ue=X((()=>I.value===p.TOP_LEFT)),{isFullscreen:de,toggle:ve}=ot();J((()=>{Ae(),document.addEventListener("click",Ce)})),Q((()=>{document.removeEventListener("click",Ce)}));const me=()=>{ve()},he=()=>{const{TOP:e,DUAL_MENU:t,TOP_LEFT:l}=p,{getMenuOpenWidth:n}=i,{isFirstLevel:s}=a.currentRoute.value.meta,o=I.value,r=S.value;return o===e||o===l&&s?"100%":o===t?s?"calc(100% - 80px)":`calc(100% - 80px - ${n})`:r?`calc(100% - ${n})`:`calc(100% - ${h.CLOSE})`},ge=()=>{i.setMenuOpen(!S.value)},ye=()=>{a.push(M().homePath.value)},be=()=>{Se(),setTimeout((()=>{tt.confirm(n("common.logOutTips"),n("common.tips"),{confirmButtonText:n("common.confirm"),cancelButtonText:n("common.cancel"),customClass:"login-out-dialog"}).then((()=>{w.logout(),o.logOut()}))}),200)},ke=(e=0)=>{setTimeout((()=>{M().refresh()}),e)},Ae=()=>{l.value=W.value},we=e=>{l.value!==e&&(l.value=e,o.setLanguage(e),ke(50))},Te=()=>{y.emit("openSetting"),_.value&&i.hideSettingGuide()},xe=()=>{y.emit("openSearchDialog")},Ce=e=>{let{className:t}=e.target;if(Z.value){if("object"==typeof t)return void(Z.value=!1);-1===t.indexOf("notice-btn")&&(Z.value=!1)}},Se=()=>{setTimeout((()=>{te.value.hide()}),100)};return(e,n)=>{const i=rt,o=dn,r=on,v=Jl,m=at,h=Je,p=Qe,b=et,k=Kl,w=Rl;return z(),j("div",{class:ae(["layout-top-bar",[U(O)]]),style:N({width:he()})},[Y("div",vn,[Y("div",mn,[U(re)?(z(),j("div",{key:0,class:"top-header",onClick:ye},[$(i,{class:"logo"}),U(s)>=1400?(z(),j("p",hn,le(U(g).systemInfo.name),1)):K("",!0)])):K("",!0),$(i,{class:"logo2",onClick:ye}),U(ne)&&U(u)?(z(),j("div",pn,[Y("div",{class:"btn menu-btn"},[Y("i",{class:"iconfont-sys",onClick:ge},"")])])):K("",!0),U(c)?(z(),j("div",fn,[Y("div",{class:"btn refresh-btn",style:N({marginLeft:U(ne)?"0":"10px"})},[Y("i",{class:"iconfont-sys",onClick:n[0]||(n[0]=e=>ke())}," ")],4)])):K("",!0),U(d)&&U(ne)||U(d)&&U(oe)?(z(),pe(o,{key:3})):K("",!0),U(re)?(z(),pe(r,{key:4,list:U(V)},null,8,["list"])):K("",!0),U(ue)?(z(),pe(v,{key:5,list:U(V)},null,8,["list"])):K("",!0)]),Y("div",gn,[U(f)?(z(),j("div",yn,[Y("div",{class:"search-input",onClick:xe},[Y("div",bn,[n[5]||(n[5]=Y("i",{class:"iconfont-sys"},"",-1)),Y("span",null,le(e.$t("topBar.search.title")),1)]),Y("div",kn,[U(t)?(z(),j("i",An,"")):(z(),j("i",wn,"")),n[6]||(n[6]=Y("span",null,"k",-1))])])])):K("",!0),U(A)?(z(),j("div",{key:1,class:"btn-box screen-box",onClick:me},[Y("div",{class:ae(["btn",{"full-screen-btn":!U(de),"exit-full-screen-btn":U(de)}])},[Y("i",Tn,le(U(de)?"":""),1)],2)])):K("",!0),U(T)?(z(),j("div",xn,[$(p,{onCommand:we,"popper-class":"langDropDownStyle"},{dropdown:G((()=>[$(h,null,{default:G((()=>[(z(!0),j(se,null,ie(U(B),(e=>(z(),j("div",{key:e.value,class:"lang-btn-item"},[$(m,{command:e.value,class:ae({"is-selected":U(l)===e.value})},{default:G((()=>[Y("span",Cn,le(e.label),1),U(l)===e.value?(z(),j("i",Sn,"")):K("",!0)])),_:2},1032,["command","class"])])))),128))])),_:1})])),default:G((()=>[n[7]||(n[7]=Y("div",{class:"btn language-btn"},[Y("i",{class:"iconfont-sys"},"")],-1))])),_:1,__:[7]})])):K("",!0),U(x)?(z(),j("div",{key:3,class:"btn-box",onClick:Te},[$(b,{visible:U(_),placement:"bottom-start",width:190,offset:0},{reference:G((()=>n[8]||(n[8]=[Y("div",{class:"btn setting-btn"},[Y("i",{class:"iconfont-sys"},"")],-1)]))),default:G((()=>[Y("p",null,[fe(le(e.$t("topBar.guide.title")),1),Y("span",{style:N({color:U(L)})},le(e.$t("topBar.guide.theme")),5),n[9]||(n[9]=fe("、 ")),Y("span",{style:N({color:U(L)})},le(e.$t("topBar.guide.menu")),5),fe(le(e.$t("topBar.guide.description")),1)])])),_:1},8,["visible"])])):K("",!0),U(C)?(z(),j("div",{key:4,class:"btn-box",onClick:n[1]||(n[1]=(...e)=>U(P)&&U(P)(...e))},[Y("div",Ln,[Y("i",_n,le(U(R)?"":""),1)])])):K("",!0),Y("div",En,[$(b,{ref_key:"userMenuPopover",ref:te,placement:"bottom-end",width:240,"hide-after":0,offset:10,trigger:"hover","show-arrow":!1,"popper-class":"user-menu-popover","popper-style":"border: 1px solid var(--art-border-dashed-color); border-radius: calc(var(--custom-radius) / 2 + 4px); padding: 5px 16px; 5px 16px;"},{reference:G((()=>[Y("img",{class:"cover",src:U(F).avatar||"https://img.lewaimai.com/zqcrm/avatar/20250926/9PLsci1dwXLcb8Iw.jpg",alt:"avatar"},null,8,Mn)])),default:G((()=>[Y("div",In,[Y("div",Rn,[Y("img",{class:"cover",src:U(F).avatar||"https://img.lewaimai.com/zqcrm/avatar/20250926/9PLsci1dwXLcb8Iw.jpg",style:{float:"left"}},null,8,On),Y("div",Bn,[Y("span",Pn,le(U(F).username),1),Y("span",Wn,le(U(F).descr||"我就是我,颜色不一样的烟火"),1)])]),Y("ul",Hn,[Y("li",{onClick:n[2]||(n[2]=e=>{return t="/system/user-center",void a.push(t);var t})},[n[10]||(n[10]=Y("i",{class:"menu-icon iconfont-sys"},"",-1)),Y("span",Dn,le(e.$t("topBar.user.userCenter")),1)]),Y("li",{onClick:n[3]||(n[3]=e=>{y.emit("openLockScreen")})},[n[11]||(n[11]=Y("i",{class:"menu-icon iconfont-sys"},"",-1)),Y("span",Fn,le(e.$t("topBar.user.lockScreen")),1)]),n[12]||(n[12]=Y("div",{class:"line"},null,-1)),Y("div",{class:"logout-btn",onClick:be},le(e.$t("topBar.user.logout")),1)])])])),_:1},512)])])]),$(k),$(w,{value:U(Z),"onUpdate:value":n[4]||(n[4]=e=>ce(Z)?Z.value=e:null),ref_key:"notice",ref:ee},null,8,["value"])],6)}}})),[["__scopeId","data-v-2961577b"]]),jn=lt(W(r(o({},{name:"IndexLayout"}),{__name:"index",setup:e=>(e,t)=>{const a=Xn,l=hl,n=tl,s=$a,i=ea,o=Vt,r=Rt,u=mt,c=vt,d=dt;return z(),pe(d,null,{default:G((()=>[$(a),$(l),$(n),$(s),$(i),$(o),$(r),$(u),$(c)])),_:1})}})),[["__scopeId","data-v-36a6fe08"]]);export{jn as default};
|