This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
handingkang-ohmyweb/static/index-b518cc9d.js
2023-08-31 00:55:12 +00:00

2 lines
38 KiB
JavaScript

import{aB as Ge,_ as Je,r as P,b as Pe,E as De,d as he,z as Fe,H as R,ah as b,l as _,m as T,p as S,V as d,P as m,X as Ne,O as x,aC as je,u as h,R as re,aD as de,aE as _e,F as K,a8 as ee,U as W,a3 as ae,I as ce,e as E,aa as Ye,S as I,T as j,J as H,aF as G,aG as ze,w as ge,c as Be,K as Oe,aH as be,aI as ye,s as Ze,a9 as se,n as Qe,aJ as et,Q as pe,W as fe}from"./vue-2207505e.js";import{g as tt,s as Me,u as ve,a as We,_ as D,b as Y,r as nt,c as we,d as ot}from"./index-97c15cdc.js";import{h as st,j as at,g as lt,k as rt,b as ie,l as ct,n as it,o as He,u as ut,r as dt,p as _t,q as pt,s as ft,t as vt}from"./element-a4dc66a7.js";import{_ as mt}from"./index.vue_vue_type_script_setup_true_lang-ff750191.js";import"./vxe-51e6f8a7.js";var X=(n=>(n[n.Mobile=0]="Mobile",n[n.Desktop=1]="Desktop",n))(X||{});const ht="opened",Ue="closed";function gt(n){n?Me(ht):Me(Ue)}const te=Ge("app",()=>{const n=Je({opened:tt()!==Ue,withoutAnimation:!1}),e=P(X.Desktop);return Pe(()=>n.opened,o=>gt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),bt=992,yt=()=>{const n=te(),{listenerRouteChange:e}=ve(),t=()=>document.body.getBoundingClientRect().width-1<bt,l=()=>{if(!document.hidden){const s=t();n.toggleDevice(s?X.Mobile:X.Desktop),s&&n.closeSidebar(!0)}};e(()=>{n.device===X.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),De(()=>{window.addEventListener("resize",l)}),he(()=>{t()&&(n.toggleDevice(X.Mobile),n.closeSidebar(!0))}),Fe(()=>{window.removeEventListener("resize",l)})},wt={class:"app-main"},xt={class:"app-scrollbar"},St=R({__name:"AppMain",setup(n){const e=We();return(t,l)=>{const s=b("router-view"),o=b("el-backtop");return _(),T("section",wt,[S("div",xt,[d(s,null,{default:m(({Component:a,route:r})=>[d(Ne,{name:"el-fade-in",mode:"out-in"},{default:m(()=>[(_(),x(je,{include:h(e).cachedViews},[(_(),x(re(a),{key:r.path}))],1032,["include"]))]),_:2},1024)]),_:1})]),d(o),d(o,{target:".app-scrollbar"})])}}});const xe=D(St,[["__scopeId","data-v-be55f58e"]]),kt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=()=>{e("toggleClick")};return(s,o)=>{const a=b("el-icon");return _(),T("div",{onClick:l},[d(a,{size:20,class:"icon"},{default:m(()=>[t.isActive?(_(),x(h(st),{key:0})):(_(),x(h(at),{key:1}))]),_:1})])}}});const Ct=D(kt,[["__scopeId","data-v-252d9bf8"]]);function Tt(n){for(var e=[],t=0;t<n.length;){var l=n[t];if(l==="*"||l==="+"||l==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(l==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(l==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(l==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(l===":"){for(var s="",o=t+1;o<n.length;){var a=n.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){s+=n[o++];continue}break}if(!s)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:s}),t=o;continue}if(l==="("){var r=1,i="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<n.length;){if(n[o]==="\\"){i+=n[o++]+n[o++];continue}if(n[o]===")"){if(r--,r===0){o++;break}}else if(n[o]==="("&&(r++,n[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));i+=n[o++]}if(r)throw new TypeError("Unbalanced pattern at ".concat(t));if(!i)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:i}),t=o;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function $t(n,e){e===void 0&&(e={});for(var t=Tt(n),l=e.prefixes,s=l===void 0?"./":l,o="[^".concat(Vt(e.delimiter||"/#?"),"]+?"),a=[],r=0,i=0,u="",p=function(O){if(i<t.length&&t[i].type===O)return t[i++].value},c=function(O){var M=p(O);if(M!==void 0)return M;var k=t[i],f=k.type,V=k.index;throw new TypeError("Unexpected ".concat(f," at ").concat(V,", expected ").concat(O))},y=function(){for(var O="",M;M=p("CHAR")||p("ESCAPED_CHAR");)O+=M;return O};i<t.length;){var g=p("CHAR"),v=p("NAME"),w=p("PATTERN");if(v||w){var C=g||"";s.indexOf(C)===-1&&(u+=C,C=""),u&&(a.push(u),u=""),a.push({name:v||r++,prefix:C,suffix:"",pattern:w||o,modifier:p("MODIFIER")||""});continue}var A=g||p("ESCAPED_CHAR");if(A){u+=A;continue}u&&(a.push(u),u="");var L=p("OPEN");if(L){var C=y(),F=p("NAME")||"",N=p("PATTERN")||"",q=y();c("CLOSE"),a.push({name:F||(N?r++:""),pattern:F&&!N?o:N,prefix:C,suffix:q,modifier:p("MODIFIER")||""});continue}c("END")}return a}function Et(n,e){return Mt($t(n,e),e)}function Mt(n,e){e===void 0&&(e={});var t=At(e),l=e.encode,s=l===void 0?function(i){return i}:l,o=e.validate,a=o===void 0?!0:o,r=n.map(function(i){if(typeof i=="object")return new RegExp("^(?:".concat(i.pattern,")$"),t)});return function(i){for(var u="",p=0;p<n.length;p++){var c=n[p];if(typeof c=="string"){u+=c;continue}var y=i?i[c.name]:void 0,g=c.modifier==="?"||c.modifier==="*",v=c.modifier==="*"||c.modifier==="+";if(Array.isArray(y)){if(!v)throw new TypeError('Expected "'.concat(c.name,'" to not repeat, but got an array'));if(y.length===0){if(g)continue;throw new TypeError('Expected "'.concat(c.name,'" to not be empty'))}for(var w=0;w<y.length;w++){var C=s(y[w],c);if(a&&!r[p].test(C))throw new TypeError('Expected all "'.concat(c.name,'" to match "').concat(c.pattern,'", but got "').concat(C,'"'));u+=c.prefix+C+c.suffix}continue}if(typeof y=="string"||typeof y=="number"){var C=s(String(y),c);if(a&&!r[p].test(C))throw new TypeError('Expected "'.concat(c.name,'" to match "').concat(c.pattern,'", but got "').concat(C,'"'));u+=c.prefix+C+c.suffix;continue}if(!g){var A=v?"an array":"a string";throw new TypeError('Expected "'.concat(c.name,'" to be ').concat(A))}}return u}}function Vt(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function At(n){return n&&n.sensitive?"":"i"}const It={key:0,class:"no-redirect"},Rt=["onClick"],Lt=R({__name:"index",setup(n){const e=de(),t=_e(),{listenerRouteChange:l}=ve(),s=P([]),o=()=>{s.value=e.matched.filter(i=>{var u,p;return((u=i.meta)==null?void 0:u.title)&&((p=i.meta)==null?void 0:p.breadcrumb)!==!1})},a=i=>Et(i)(e.params),r=i=>{const{redirect:u,path:p}=i;if(u){t.push(u);return}t.push(a(p))};return l(i=>{i.path.startsWith("/redirect/")||o()},!0),(i,u)=>{const p=b("el-breadcrumb-item"),c=b("el-breadcrumb");return _(),x(c,{class:"app-breadcrumb"},{default:m(()=>[(_(!0),T(K,null,ee(s.value,(y,g)=>(_(),x(p,{key:y.path},{default:m(()=>[y.redirect==="noRedirect"||g===s.value.length-1?(_(),T("span",It,W(y.meta.title),1)):(_(),T("a",{key:1,onClick:ae(v=>r(y),["prevent"])},W(y.meta.title),9,Rt))]),_:2},1024))),128))]),_:1})}}});const Pt=D(Lt,[["__scopeId","data-v-2eef2d12"]]),ue=n=>/^(https?:|mailto:|tel:)/.test(n),Dt=["href"],Ft=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const s=b("router-link");return h(ue)(e.to)?(_(),T("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ce(t.$slots,"default")],8,Dt)):(_(),x(s,{key:1,to:e.to},{default:m(()=>[ce(t.$slots,"default")]),_:3},8,["to"]))}}});function J(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Ve(n,e){for(var t="",l=0,s=-1,o=0,a,r=0;r<=n.length;++r){if(r<n.length)a=n.charCodeAt(r);else{if(a===47)break;a=47}if(a===47){if(!(s===r-1||o===1))if(s!==r-1&&o===2){if(t.length<2||l!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var i=t.lastIndexOf("/");if(i!==t.length-1){i===-1?(t="",l=0):(t=t.slice(0,i),l=t.length-1-t.lastIndexOf("/")),s=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,s=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(s+1,r):t=n.slice(s+1,r),l=r-s-1;s=r,o=0}else a===46&&o!==-1?++o:o=-1}return t}function Nt(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var oe={resolve:function(){for(var e="",t=!1,l,s=arguments.length-1;s>=-1&&!t;s--){var o;s>=0?o=arguments[s]:(l===void 0&&(l=process.cwd()),o=l),J(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Ve(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(J(e),e.length===0)return".";var t=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;return e=Ve(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return J(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var l=arguments[t];J(l),l.length>0&&(e===void 0?e=l:e+="/"+l)}return e===void 0?".":oe.normalize(e)},relative:function(e,t){if(J(e),J(t),e===t||(e=oe.resolve(e),t=oe.resolve(t),e===t))return"";for(var l=1;l<e.length&&e.charCodeAt(l)===47;++l);for(var s=e.length,o=s-l,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var r=t.length,i=r-a,u=o<i?o:i,p=-1,c=0;c<=u;++c){if(c===u){if(i>u){if(t.charCodeAt(a+c)===47)return t.slice(a+c+1);if(c===0)return t.slice(a+c)}else o>u&&(e.charCodeAt(l+c)===47?p=c:c===0&&(p=0));break}var y=e.charCodeAt(l+c),g=t.charCodeAt(a+c);if(y!==g)break;y===47&&(p=c)}var v="";for(c=l+p+1;c<=s;++c)(c===s||e.charCodeAt(c)===47)&&(v.length===0?v+="..":v+="/..");return v.length>0?v+t.slice(a+p):(a+=p,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(J(e),e.length===0)return".";for(var t=e.charCodeAt(0),l=t===47,s=-1,o=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!o){s=a;break}}else o=!1;return s===-1?l?"/":".":l&&s===1?"//":e.slice(0,s)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');J(e);var l=0,s=-1,o=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,i=-1;for(a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(u===47){if(!o){l=a+1;break}}else i===-1&&(o=!1,i=a+1),r>=0&&(u===t.charCodeAt(r)?--r===-1&&(s=a):(r=-1,s=i))}return l===s?s=i:s===-1&&(s=e.length),e.slice(l,s)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!o){l=a+1;break}}else s===-1&&(o=!1,s=a+1);return s===-1?"":e.slice(l,s)}},extname:function(e){J(e);for(var t=-1,l=0,s=-1,o=!0,a=0,r=e.length-1;r>=0;--r){var i=e.charCodeAt(r);if(i===47){if(!o){l=r+1;break}continue}s===-1&&(o=!1,s=r+1),i===46?t===-1?t=r:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||s===-1||a===0||a===1&&t===s-1&&t===l+1?"":e.slice(t,s)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return Nt("/",e)},parse:function(e){J(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),s=l===47,o;s?(t.root="/",o=1):o=0;for(var a=-1,r=0,i=-1,u=!0,p=e.length-1,c=0;p>=o;--p){if(l=e.charCodeAt(p),l===47){if(!u){r=p+1;break}continue}i===-1&&(u=!1,i=p+1),l===46?a===-1?a=p:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||i===-1||c===0||c===1&&a===i-1&&a===r+1?i!==-1&&(r===0&&s?t.base=t.name=e.slice(1,i):t.base=t.name=e.slice(r,i)):(r===0&&s?(t.name=e.slice(1,a),t.base=e.slice(1,i)):(t.name=e.slice(r,a),t.base=e.slice(r,i)),t.ext=e.slice(a,i)),r>0?t.dir=e.slice(0,r-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};oe.posix=oe;var zt=oe;const qe=lt(zt),Bt={key:2},Ot=R({__name:"SidebarItem",props:{item:{},isCollapse:{type:Boolean,default:!1},isTop:{type:Boolean,default:!1},isFirstLevel:{type:Boolean,default:!0},basePath:{default:""}},setup(n){const e=n,t=E(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=E(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(i=>{var u;return!((u=i.meta)!=null&&u.hidden)}))??[]}),s=E(()=>l.value.length),o=E(()=>{const r=s.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),a=r=>{switch(!0){case ue(r):return r;case ue(e.basePath):return e.basePath;default:return qe.resolve(e.basePath,r)}};return(r,i)=>{var g;const u=b("SvgIcon"),p=b("el-menu-item"),c=b("sidebar-item",!0),y=b("el-sub-menu");return(g=e.item.meta)!=null&&g.hidden?I("",!0):(_(),T("div",{key:0,class:H({"simple-mode":e.isCollapse&&!r.isTop,"first-level":e.isFirstLevel})},[!t.value&&o.value&&!o.value.children?(_(),T(K,{key:0},[o.value.meta?(_(),x(Ft,{key:0,to:a(o.value.path)},{default:m(()=>[d(p,{index:a(o.value.path)},Ye({default:m(()=>[o.value.meta.svgIcon?(_(),x(u,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(_(),x(re(o.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:m(()=>[j(W(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(_(),x(y,{key:1,index:a(e.item.path),teleported:""},{title:m(()=>{var v,w,C;return[(v=e.item.meta)!=null&&v.svgIcon?(_(),x(u,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(w=e.item.meta)!=null&&w.elIcon?(_(),x(re(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(C=e.item.meta)!=null&&C.title?(_(),T("span",Bt,W(e.item.meta.title),1)):I("",!0)]}),default:m(()=>[e.item.children?(_(!0),T(K,{key:0},ee(e.item.children,v=>(_(),x(c,{key:v.path,item:v,"is-collapse":e.isCollapse,"is-first-level":!1,"base-path":a(v.path)},null,8,["item","is-collapse","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))],2))}}});const Wt=D(Ot,[["__scopeId","data-v-72444830"]]),Ht="/v3-admin-vite/static/logo-cc70e06e.png",Ut="/v3-admin-vite/static/logo-text-1-b6b0364d.png",qt="/v3-admin-vite/static/logo-text-2-eef467fb.png",Xt=["src"],Kt=["src"],Gt=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,t=Y(),{layoutMode:l}=G(t);return(s,o)=>{const a=b("router-link");return _(),T("div",{class:H(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":h(l)==="top"}])},[d(Ne,{name:"layout-logo-fade"},{default:m(()=>[e.collapse?(_(),x(a,{key:"collapse",to:"/"},{default:m(()=>[S("img",{src:h(Ht),class:"layout-logo"},null,8,Xt)]),_:1})):(_(),x(a,{key:"expand",to:"/"},{default:m(()=>[S("img",{src:h(l)!=="left"?h(qt):h(Ut),class:"layout-logo-text"},null,8,Kt)]),_:1}))]),_:1})],2)}}});const Se=D(Gt,[["__scopeId","data-v-8474c76e"]]),le=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},Ae=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},Jt=()=>{nt(),location.reload()},jt=R({__name:"index",setup(n){ze(k=>({72322718:M.value,"57a52134":q.value,"738aeddc":O.value,"8423c222":N.value}));const e=le("--v3-sidebar-menu-bg-color"),t=le("--v3-sidebar-menu-text-color"),l=le("--v3-sidebar-menu-active-text-color"),s=de(),o=te(),a=we(),r=Y(),{sidebar:i,device:u}=G(o),{layoutMode:p,showLogo:c}=G(r),y=E(()=>{const{meta:{activeMenu:k},path:f}=s;return k||f}),g=E(()=>!i.value.opened),v=E(()=>p.value==="left"),w=E(()=>p.value==="top"),C=E(()=>u.value===X.Mobile),A=E(()=>v.value&&c.value),L=E(()=>v.value?e:void 0),F=E(()=>v.value?t:void 0),N=E(()=>v.value?l:void 0),q=E(()=>p.value!=="top"?"var(--v3-sidebar-menu-item-height)":"var(--v3-navigationbar-height)"),O=E(()=>p.value!=="top"?"var(--v3-sidebar-menu-hover-bg-color)":"transparent"),M=E(()=>p.value!=="top"?"2px":"0px");return(k,f)=>{const V=b("el-menu"),z=b("el-scrollbar");return _(),T("div",{class:H({"has-logo":A.value})},[A.value?(_(),x(Se,{key:0,collapse:g.value},null,8,["collapse"])):I("",!0),d(z,{"wrap-class":"scrollbar-wrapper"},{default:m(()=>[d(V,{"default-active":y.value,collapse:g.value&&!w.value,"background-color":L.value,"text-color":F.value,"active-text-color":N.value,"unique-opened":!0,"collapse-transition":!1,mode:w.value&&!C.value?"horizontal":"vertical"},{default:m(()=>[(_(!0),T(K,null,ee(h(a).routes,$=>(_(),x(Wt,{key:$.path,item:$,"base-path":$.path,"is-collapse":g.value,"is-top":w.value},null,8,["item","base-path","is-collapse","is-top"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}});const ke=D(jt,[["__scopeId","data-v-72f686ac"]]),Yt={class:"card-header"},Zt={class:"card-title"},Qt={class:"card-time"},en={key:0,class:"card-avatar"},tn=["src"],nn={class:"card-body"},on=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const s=b("el-empty"),o=b("el-tag"),a=b("el-card");return e.list.length===0?(_(),x(s,{key:0})):(_(!0),T(K,{key:1},ee(e.list,(r,i)=>(_(),x(a,{key:i,shadow:"never",class:"card-container"},{header:m(()=>[S("div",Yt,[S("div",null,[S("span",null,[S("span",Zt,W(r.title),1),r.extra?(_(),x(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:m(()=>[j(W(r.extra),1)]),_:2},1032,["type"])):I("",!0)]),S("div",Qt,W(r.datetime),1)]),r.avatar?(_(),T("div",en,[S("img",{src:r.avatar,width:"34"},null,8,tn)])):I("",!0)])]),default:m(()=>[S("div",nn,W(r.description??"No Data"),1)]),_:2},1024))),128))}}});const sn=D(on,[["__scopeId","data-v-137655f9"]]),an=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"一年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"两年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],ln=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],rn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:""},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],cn={class:"notify"},un={class:"notify-history"},Ie=99,dn=350,_n=R({__name:"index",setup(n){const e=E(()=>l.value.reduce((o,a)=>o+a.list.length,0)),t=P("通知"),l=P([{name:"通知",type:"primary",list:an},{name:"消息",type:"danger",list:ln},{name:"待办",type:"warning",list:rn}]),s=()=>{ie.success(`跳转到${t.value}历史页面`)};return(o,a)=>{const r=b("el-icon"),i=b("el-tooltip"),u=b("el-badge"),p=b("el-scrollbar"),c=b("el-tab-pane"),y=b("el-tabs"),g=b("el-button"),v=b("el-popover");return _(),T("div",cn,[d(v,{placement:"bottom",width:dn,trigger:"click"},{reference:m(()=>[d(u,{value:e.value,max:Ie,hidden:e.value===0},{default:m(()=>[d(i,{effect:"dark",content:"消息通知",placement:"bottom"},{default:m(()=>[d(r,{size:20},{default:m(()=>[d(h(rt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:m(()=>[d(y,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=w=>t.value=w),class:"demo-tabs",stretch:""},{default:m(()=>[(_(!0),T(K,null,ee(l.value,(w,C)=>(_(),x(c,{name:w.name,key:C},{label:m(()=>[j(W(w.name)+" ",1),d(u,{value:w.list.length,max:Ie,type:w.type},null,8,["value","type"])]),default:m(()=>[d(p,{height:"400px"},{default:m(()=>[d(sn,{list:w.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),S("div",un,[d(g,{link:"",onClick:s},{default:m(()=>[j("查看"+W(t.value)+"历史",1)]),_:1})])]),_:1})])}}});const pn=D(_n,[["__scopeId","data-v-50089150"]]),Re=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Q=(()=>{if(typeof document>"u")return!1;const n=Re[0],e={};for(const t of Re)if((t==null?void 0:t[1])in document){for(const[s,o]of t.entries())e[n[s]]=o;return e}return!1})(),Le={change:Q.fullscreenchange,error:Q.fullscreenerror};let U={request(n=document.documentElement,e){return new Promise((t,l)=>{const s=()=>{U.off("change",s),t()};U.on("change",s);const o=n[Q.requestFullscreen](e);o instanceof Promise&&o.then(s).catch(l)})},exit(){return new Promise((n,e)=>{if(!U.isFullscreen){n();return}const t=()=>{U.off("change",t),n()};U.on("change",t);const l=document[Q.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return U.isFullscreen?U.exit():U.request(n,e)},onchange(n){U.on("change",n)},onerror(n){U.on("error",n)},on(n,e){const t=Le[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Le[n];t&&document.removeEventListener(t,e,!1)},raw:Q};Object.defineProperties(U,{isFullscreen:{get:()=>!!document[Q.fullscreenElement]},element:{enumerable:!0,get:()=>document[Q.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Q.fullscreenEnabled]}});Q||(U={isEnabled:!1});const ne=U,fn=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),l=E(()=>t.value?e.exitTips:e.openTips),s=E(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const c=document.querySelector(e.element)||void 0;ne.isEnabled?ne.toggle(c):ie.warning("您的浏览器无法工作")},a=()=>{t.value=ne.isFullscreen};ge(c=>{ne.on("change",a),c(()=>{ne.isEnabled&&ne.off("change",a)})});const r=P(!1),i=E(()=>r.value?"内容区复原":"内容区放大"),u=E(()=>r.value?"fullscreen-exit":"fullscreen"),p=()=>{document.body.className=r.value?"":"content-large",r.value=!r.value};return(c,y)=>{const g=b("SvgIcon"),v=b("el-tooltip"),w=b("el-dropdown-item"),C=b("el-dropdown-menu"),A=b("el-dropdown");return _(),T("div",null,[c.content?(_(),x(A,{key:1},{dropdown:m(()=>[d(C,null,{default:m(()=>[d(w,{onClick:p},{default:m(()=>[j(W(i.value),1)]),_:1}),d(w,{onClick:o,disabled:t.value},{default:m(()=>[j("内容区全屏")]),_:1},8,["disabled"])]),_:1})]),default:m(()=>[d(g,{name:u.value},null,8,["name"])]),_:1})):(_(),x(v,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:m(()=>[d(g,{name:s.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}});const Xe=D(fn,[["__scopeId","data-v-9e7c36e4"]]),vn=["onMouseenter"],mn={class:"result-item-title"},hn=R({__name:"SearchResult",props:{modelValue:{},list:{},isPressUpOrDown:{type:Boolean}},emits:["update:modelValue"],setup(n,{expose:e,emit:t}){const l=n,s=Be(),o=P(0),a=E({get(){return l.modelValue},set(c){t("update:modelValue",c)}}),r=c=>{const y=c.name===a.value;return{background:y?"var(--el-color-primary)":"",color:y?"#fff":""}},i=c=>{l.isPressUpOrDown||(a.value=c.name)},u=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},p=c=>{var w;const y=(w=s==null?void 0:s.proxy)==null?void 0:w.$refs[`resultItemRef${c}`];if(!y)return 0;const v=y[0].offsetTop+128;return v>o.value?v-o.value:0};return De(()=>{window.addEventListener("resize",u)}),he(()=>{u()}),Fe(()=>{window.removeEventListener("resize",u)}),e({getScrollTop:p}),(c,y)=>{const g=b("SvgIcon");return _(),T("div",null,[(_(!0),T(K,null,ee(c.list,(v,w)=>{var C,A,L;return _(),T("div",{key:w,ref_for:!0,ref:`resultItemRef${w}`,class:"result-item",style:Oe(r(v)),onMouseenter:F=>i(v)},[(C=v.meta)!=null&&C.svgIcon?(_(),x(g,{key:0,name:v.meta.svgIcon},null,8,["name"])):(A=v.meta)!=null&&A.elIcon?(_(),x(re(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),S("span",mn,W((L=v.meta)==null?void 0:L.title),1),a.value&&a.value===v.name?(_(),x(g,{key:2,name:"keyboard-enter"})):I("",!0)],44,vn)}),128))])}}});const gn=D(hn,[["__scopeId","data-v-7383ebb0"]]),Ce=n=>(be("data-v-3171d360"),n=n(),ye(),n),bn={class:"search-footer"},yn={class:"search-footer-item"},wn=Ce(()=>S("span",null,"确认",-1)),xn={class:"search-footer-item"},Sn=Ce(()=>S("span",null,"切换",-1)),kn={class:"search-footer-item"},Cn=Ce(()=>S("span",null,"关闭",-1)),Tn={class:"search-footer-total"},$n=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,t=te(),l=E(()=>t.device===X.Mobile);return(s,o)=>{const a=b("SvgIcon");return _(),T("div",bn,[l.value?I("",!0):(_(),T(K,{key:0},[S("span",yn,[d(a,{name:"keyboard-enter"}),wn]),S("span",xn,[d(a,{name:"keyboard-up"}),d(a,{name:"keyboard-down"}),Sn]),S("span",kn,[d(a,{name:"keyboard-esc"}),Cn])],64)),S("span",Tn,"共 "+W(e.total)+" 项",1)])}}});const En=D($n,[["__scopeId","data-v-3171d360"]]),Mn=S("p",null,"搜索结果",-1),Vn=R({__name:"SearchModal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,l=te(),s=_e(),o=P(null),a=P(null),r=P(null),i=P(""),u=Ze([]),p=P(void 0),c=P(!1),y=E(()=>l.device===X.Mobile?"80vw":"40vw"),g=E({get(){return t.modelValue},set(M){e("update:modelValue",M)}}),v=E(()=>ct(we().routes)),w=it(()=>{var f;const M=C(v.value);u.value=M.filter(V=>{var z,$;return i.value?($=(z=V.meta)==null?void 0:z.title)==null?void 0:$.toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim()):!1});const k=(f=u.value)==null?void 0:f.length;p.value=k>0?u.value[0].name:void 0},500),C=(M,k=[])=>(M.forEach(f=>{k.push(f),f.children&&C(f.children,k)}),k),A=()=>{g.value=!1,setTimeout(()=>{i.value="",u.value=[]},200)},L=M=>{var f;if(!r.value)return;const k=r.value.getScrollTop(M);(f=a.value)==null||f.setScrollTop(k)},F=()=>{c.value=!0;const{length:M}=u.value;if(M===0)return;const k=u.value.findIndex(f=>f.name===p.value);if(k===0){const f=u.value[M-1].name;p.value===f&&M>1?(p.value=u.value[M-2].name,L(M-2)):(p.value=f,L(M-1))}else p.value=u.value[k-1].name,L(k-1)},N=()=>{c.value=!0;const{length:M}=u.value;if(M===0)return;const k=u.value.map(f=>f.name).lastIndexOf(p.value);if(k===M-1){const f=u.value[0].name;p.value===f&&M>1?(p.value=u.value[1].name,L(1)):(p.value=f,L(0))}else p.value=u.value[k+1].name,L(k+1)},q=()=>{var V;const{length:M}=u.value;if(M===0)return;const k=p.value,f=(V=u.value.find(z=>z.name===k))==null?void 0:V.path;if(f&&ue(f)){window.open(f,"_blank","noopener, noreferrer");return}if(!k){ie.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{s.push({name:k})}catch{ie.error("该菜单有必填的动态参数,无法通过搜索进入");return}A()},O=()=>{c.value=!1};return(M,k)=>{const f=b("SvgIcon"),V=b("el-input"),z=b("el-empty"),$=b("el-dialog");return _(),x($,{modelValue:g.value,"onUpdate:modelValue":k[2]||(k[2]=B=>g.value=B),onOpened:k[3]||(k[3]=B=>{var Z;return(Z=o.value)==null?void 0:Z.focus()}),onClosed:k[4]||(k[4]=B=>{var Z;return(Z=o.value)==null?void 0:Z.blur()}),onKeydown:[se(F,["up"]),se(N,["down"]),se(q,["enter"])],onKeyup:se(O,["up","down"]),"before-close":A,width:y.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:m(()=>[d(En,{total:u.value.length},null,8,["total"])]),default:m(()=>[d(V,{ref_key:"inputRef",ref:o,modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=B=>i.value=B),onInput:h(w),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:m(()=>[d(f,{name:"search"})]),_:1},8,["modelValue","onInput"]),u.value.length===0?(_(),x(z,{key:0,description:"暂无搜索结果","image-size":100})):(_(),T(K,{key:1},[Mn,d(h(He),{ref_key:"scrollbarRef",ref:a,"max-height":"40vh",always:""},{default:m(()=>[d(gn,{ref_key:"searchResultRef",ref:r,modelValue:p.value,"onUpdate:modelValue":k[1]||(k[1]=B=>p.value=B),list:u.value,isPressUpOrDown:c.value,onClick:q},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","onKeydown","onKeyup","width"])}}});const An=R({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(l,s)=>{const o=b("SvgIcon"),a=b("el-tooltip");return _(),T("div",null,[d(a,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:m(()=>[d(o,{name:"search",onClick:t})]),_:1}),d(Vn,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=r=>e.value=r)},null,8,["modelValue"])])}}});const In=D(An,[["__scopeId","data-v-dc5accb4"]]),Rn=n=>(be("data-v-394c5e19"),n=n(),ye(),n),Ln={class:"navigation-bar"},Pn={class:"right-menu"},Dn={class:"right-menu-avatar"},Fn={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},Nn={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},zn=Rn(()=>S("span",{style:{display:"block"}},"退出登录",-1)),Bn=R({__name:"index",setup(n){const e=_e(),t=te(),l=Y(),s=ot(),{sidebar:o,device:a}=G(t),{layoutMode:r,showNotify:i,showThemeSwitch:u,showScreenfull:p,showSearchMenu:c}=G(l),y=E(()=>r.value==="top"),g=E(()=>a.value===X.Mobile),v=()=>{t.toggleSidebar(!1)},w=()=>{s.logout(),e.push("/login")};return(C,A)=>{const L=b("el-avatar"),F=b("el-dropdown-item"),N=b("el-dropdown-menu"),q=b("el-dropdown");return _(),T("div",Ln,[!y.value||g.value?(_(),x(Ct,{key:0,"is-active":h(o).opened,class:"hamburger",onToggleClick:v},null,8,["is-active"])):I("",!0),!y.value||g.value?(_(),x(Pt,{key:1,class:"breadcrumb"})):I("",!0),y.value&&!g.value?(_(),x(ke,{key:2,class:"sidebar"})):I("",!0),S("div",Pn,[h(c)?(_(),x(In,{key:0,class:"right-menu-item"})):I("",!0),h(p)?(_(),x(Xe,{key:1,class:"right-menu-item"})):I("",!0),h(u)?(_(),x(mt,{key:2,class:"right-menu-item"})):I("",!0),h(i)?(_(),x(pn,{key:3,class:"right-menu-item"})):I("",!0),d(q,{class:"right-menu-item"},{dropdown:m(()=>[d(N,null,{default:m(()=>[S("a",Fn,[d(F,null,{default:m(()=>[j("GitHub")]),_:1})]),S("a",Nn,[d(F,null,{default:m(()=>[j("Gitee")]),_:1})]),d(F,{divided:"",onClick:w},{default:m(()=>[zn]),_:1})]),_:1})]),default:m(()=>[S("div",Dn,[d(L,{icon:h(ut),size:30},null,8,["icon"]),S("span",null,W(h(s).username),1)])]),_:1})])])}}});const Te=D(Bn,[["__scopeId","data-v-394c5e19"]]),On={class:"select-layout-mode"},Wn=R({__name:"SelectLayoutMode",setup(n){const e=Y(),{layoutMode:t}=G(e),l=E(()=>t.value==="left"),s=E(()=>t.value==="top"),o=E(()=>t.value==="left-top");return(a,r)=>{const i=b("el-aside"),u=b("el-header"),p=b("el-main"),c=b("el-container"),y=b("el-tooltip");return _(),T("div",On,[d(y,{content:"左侧模式"},{default:m(()=>[d(c,{class:H(["layout-mode left",{active:l.value}]),onClick:r[0]||(r[0]=g=>t.value="left")},{default:m(()=>[d(i),d(c,null,{default:m(()=>[d(u),d(p)]),_:1})]),_:1},8,["class"])]),_:1}),d(y,{content:"顶部模式"},{default:m(()=>[d(c,{class:H(["layout-mode top",{active:s.value}]),onClick:r[1]||(r[1]=g=>t.value="top")},{default:m(()=>[d(u),d(p)]),_:1},8,["class"])]),_:1}),d(y,{content:"混合模式"},{default:m(()=>[d(c,{class:H(["layout-mode left-top",{active:o.value}]),onClick:r[2]||(r[2]=g=>t.value="left-top")},{default:m(()=>[d(u),d(c,null,{default:m(()=>[d(i),d(p)]),_:1})]),_:1},8,["class"])]),_:1})])}}});const Hn=D(Wn,[["__scopeId","data-v-e7938886"]]),Ke=n=>(be("data-v-4d7dda5b"),n=n(),ye(),n),Un={class:"setting-container"},qn=Ke(()=>S("h4",null,"布局配置",-1)),Xn=Ke(()=>S("h4",null,"功能配置",-1)),Kn={class:"setting-name"},Gn=R({__name:"index",setup(n){const e=Y(),{layoutMode:t,showTagsView:l,showLogo:s,fixedHeader:o,showNotify:a,showThemeSwitch:r,showScreenfull:i,showSearchMenu:u,cacheTagsView:p,showGreyMode:c,showColorWeakness:y}=G(e),g={显示标签栏:l,"显示 Logo":s,"固定 Header":o,显示消息通知:a,显示切换主题按钮:r,显示全屏按钮:i,显示搜索按钮:u,是否缓存标签栏:p,显示灰色模式:c,显示色弱模式:y};return ge(()=>{t.value!=="left"&&(o.value=!0)}),(v,w)=>{const C=b("el-divider"),A=b("el-switch"),L=b("el-button");return _(),T("div",Un,[qn,d(Hn),d(C),Xn,(_(),T(K,null,ee(g,(F,N,q)=>S("div",{class:"setting-item",key:q},[S("span",Kn,W(N),1),d(A,{modelValue:F.value,"onUpdate:modelValue":O=>F.value=O,disabled:h(t)!=="left"&&N==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(L,{type:"danger",icon:h(dt),onClick:h(Jt)},{default:m(()=>[j("重 置")]),_:1},8,["icon","onClick"])])}}});const Jn=D(Gn,[["__scopeId","data-v-4d7dda5b"]]),jn={class:"scroll-container"},Yn=200,Zn=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=de(),l=Y(),{listenerRouteChange:s}=ve(),o=P(),a=P();let r=0;const i=({scrollLeft:g})=>{r=g},u=({deltaY:g})=>{/^-/.test(g.toString())?c("left"):c("right")},p=()=>{const g=a.value.clientWidth,v=o.value.wrapRef.clientWidth,w=g-v-r;return{scrollbarContentRefWidth:g,scrollbarRefWidth:v,lastDistance:w}},c=(g,v=Yn)=>{let w=0;const{scrollbarContentRefWidth:C,scrollbarRefWidth:A,lastDistance:L}=p();A>C||(g==="left"?w=Math.max(0,r-v):w=Math.min(r+v,r+L),o.value.setScrollLeft(w))},y=()=>{const g=e.tagRefs;for(let v=0;v<g.length;v++)if(t.path===g[v].$props.to.path){const w=g[v].$el,C=w.offsetWidth,A=w.offsetLeft,{scrollbarRefWidth:L}=p();if(A<r){const N=r-A;c("left",N);return}const F=L+r-C;if(A>F){const N=A-F;c("right",N);return}}};return s(()=>{Qe(y)}),(g,v)=>{const w=b("el-icon");return _(),T("div",jn,[d(w,{class:"arrow left",onClick:v[0]||(v[0]=C=>c("left"))},{default:m(()=>[d(h(_t))]),_:1}),d(h(He),{ref_key:"scrollbarRef",ref:o,onWheelPassive:u,onScroll:i},{default:m(()=>[S("div",{ref_key:"scrollbarContentRef",ref:a,class:"scrollbar-content"},[ce(g.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(w,{class:"arrow right",onClick:v[1]||(v[1]=C=>c("right"))},{default:m(()=>[d(h(pt))]),_:1}),h(l).showScreenfull?(_(),x(Xe,{key:0,element:".app-main",content:!0,class:"screenfull"})):I("",!0)])}}});const Qn=D(Zn,[["__scopeId","data-v-519b3baa"]]),eo={class:"tags-view-container"},to=R({__name:"index",setup(n){const e=Be(),t=_e(),l=de(),s=We(),o=we(),{listenerRouteChange:a}=ve(),r=P([]),i=P(!1),u=P(0),p=P(0),c=P({});let y=[];const g=f=>f.path===l.path,v=f=>{var V;return(V=f.meta)==null?void 0:V.affix},w=(f,V="/")=>{const z=[];return f.forEach($=>{if(v($)){const B=qe.resolve(V,$.path);z.push({fullPath:B,path:B,name:$.name,meta:{...$.meta}})}if($.children){const B=w($.children,$.path);z.push(...B)}}),z},C=()=>{y=w(o.routes);for(const f of y)f.name&&s.addVisitedView(f)},A=f=>{f.name&&(s.addVisitedView(f),s.addCachedView(f))},L=f=>{s.delCachedView(f),t.replace({path:"/redirect"+f.path,query:f.query})},F=f=>{s.delVisitedView(f),s.delCachedView(f),g(f)&&O(s.visitedViews,f)},N=()=>{const f=c.value.fullPath;f!==l.path&&f!==void 0&&t.push(f),s.delOthersVisitedViews(c.value),s.delOthersCachedViews(c.value)},q=f=>{s.delAllVisitedViews(),s.delAllCachedViews(),!y.some(V=>V.path===l.path)&&O(s.visitedViews,f)},O=(f,V)=>{const z=f.slice(-1)[0],$=z==null?void 0:z.fullPath;$!==void 0?t.push($):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},M=(f,V)=>{const $=e.proxy.$el.getBoundingClientRect().left,Z=e.proxy.$el.offsetWidth-105,Ee=V.clientX-$+15;p.value=Ee>Z?Z:Ee,u.value=V.clientY,i.value=!0,c.value=f},k=()=>{i.value=!1};return Pe(i,f=>{f?document.body.addEventListener("click",k):document.body.removeEventListener("click",k)}),he(()=>{C(),a(async f=>{A(f)},!0)}),(f,V)=>{const z=b("el-icon");return _(),T("div",eo,[d(Qn,{class:"tags-view-wrapper","tag-refs":r.value},{default:m(()=>[(_(!0),T(K,null,ee(h(s).visitedViews,$=>(_(),x(h(et),{ref_for:!0,ref_key:"tagRefs",ref:r,key:$.path,class:H([{active:g($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:ae(B=>!v($)&&F($),["middle"]),onContextmenu:ae(B=>M($,B),["prevent"])},{default:m(()=>{var B;return[j(W((B=$.meta)==null?void 0:B.title)+" ",1),v($)?I("",!0):(_(),x(z,{key:0,size:12,onClick:ae(Z=>F($),["prevent","stop"])},{default:m(()=>[d(h(ft))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),pe(S("ul",{class:"contextmenu",style:Oe({left:p.value+"px",top:u.value+"px"})},[S("li",{onClick:V[0]||(V[0]=$=>L(c.value))},"刷新"),v(c.value)?I("",!0):(_(),T("li",{key:0,onClick:V[1]||(V[1]=$=>F(c.value))},"关闭")),S("li",{onClick:N},"关闭其它"),S("li",{onClick:V[2]||(V[2]=$=>q(c.value))},"关闭所有")],4),[[fe,i.value]])])}}});const $e=D(to,[["__scopeId","data-v-3bc82890"]]),no=R({__name:"index",props:{buttonTop:{default:350}},setup(n){const e=n;ze(s=>({eee8c778:t}));const t=e.buttonTop+"px",l=P(!1);return(s,o)=>{const a=b("el-icon"),r=b("el-drawer");return _(),T(K,null,[S("div",{class:"handle-button",onClick:o[0]||(o[0]=i=>l.value=!0)},[d(a,{size:24},{default:m(()=>[d(h(vt))]),_:1})]),d(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=i=>l.value=i),size:"300px","with-header":!1},{default:m(()=>[ce(s.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}});const oo=D(no,[["__scopeId","data-v-ec8bae57"]]),so=R({__name:"LeftMode",setup(n){const e=te(),t=Y(),{showTagsView:l,fixedHeader:s}=G(t),o=E(()=>({hideSidebar:!e.sidebar.opened,openSidebar:e.sidebar.opened,withoutAnimation:e.sidebar.withoutAnimation,mobile:e.device===X.Mobile})),a=()=>{e.closeSidebar(!1)};return(r,i)=>(_(),T("div",{class:H([o.value,"app-wrapper"])},[o.value.mobile&&o.value.openSidebar?(_(),T("div",{key:0,class:"drawer-bg",onClick:a})):I("",!0),d(h(ke),{class:"sidebar-container"}),S("div",{class:H([{hasTagsView:h(l)},"main-container"])},[S("div",{class:H([{"fixed-header":h(s)},"layout-header"])},[d(h(Te)),pe(d(h($e),null,null,512),[[fe,h(l)]])],2),d(h(xe),{class:"app-main"})],2)],2))}});const ao=D(so,[["__scopeId","data-v-f24dda26"]]),lo={class:"app-wrapper"},ro={class:"fixed-header layout-header"},co={class:"content"},io=R({__name:"TopMode",setup(n){const e=Y(),{showTagsView:t,showLogo:l}=G(e);return(s,o)=>(_(),T("div",lo,[S("div",ro,[S("div",co,[h(l)?(_(),x(h(Se),{key:0,collapse:!1,class:"logo"})):I("",!0),d(h(Te),{class:"navigation-bar"})]),pe(d(h($e),null,null,512),[[fe,h(t)]])]),S("div",{class:H([{hasTagsView:h(t)},"main-container"])},[d(h(xe),{class:"app-main"})],2)]))}});const uo=D(io,[["__scopeId","data-v-8946dd49"]]),_o={class:"fixed-header layout-header"},po={class:"content"},fo=R({__name:"LeftTopMode",setup(n){const e=te(),t=Y(),{showTagsView:l,showLogo:s}=G(t),o=E(()=>({hideSidebar:!e.sidebar.opened}));return(a,r)=>(_(),T("div",{class:H([o.value,"app-wrapper"])},[S("div",_o,[h(s)?(_(),x(h(Se),{key:0,collapse:!1,class:"logo"})):I("",!0),S("div",po,[d(h(Te)),pe(d(h($e),null,null,512),[[fe,h(l)]])])]),S("div",{class:H([{hasTagsView:h(l)},"main-container"])},[d(h(ke),{class:"sidebar-container"}),d(h(xe),{class:"app-main"})],2)],2))}});const vo=D(fo,[["__scopeId","data-v-08489ac9"]]),me="--v3-tagsview-height",mo=R({__name:"index",setup(n){yt();const e=te(),t=Y(),{showSettings:l,layoutMode:s,showTagsView:o,showGreyMode:a,showColorWeakness:r}=G(t),i=E(()=>({showGreyMode:a.value,showColorWeakness:r.value})),u=le(me);return ge(()=>{o.value?Ae(me,u):Ae(me,"0px")}),(p,c)=>(_(),T("div",{class:H(i.value)},[h(s)==="left"||h(e).device===h(X).Mobile?(_(),x(ao,{key:0})):h(s)==="top"?(_(),x(uo,{key:1})):h(s)==="left-top"?(_(),x(vo,{key:2})):I("",!0),h(l)?(_(),x(h(oo),{key:3},{default:m(()=>[d(h(Jn))]),_:1})):I("",!0)],2))}});const xo=D(mo,[["__scopeId","data-v-606e13ce"]]);export{xo as default};