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-74b7e662.js
2023-09-01 03:54:57 +00:00

2 lines
39 KiB
JavaScript

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