Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-05-08 03:49:20 +08:00
v3-admin-vite/static/index-e7ae8c2f.js

2 lines
30 KiB
JavaScript
Raw Normal View History

import{d as e,b as t,c as a,e as l}from"./user-ad6dac94.js";import{g as n,s as r}from"./useTheme-73691e21.js";import{aq as o,as as i,x as s,j as c,aw as u,ak as d,m as p,u as m,b2 as f,k as h,aS as v,ay as g,aZ as b,au as w,F as y,aK as _,ai as k,n as x,t as C,l as E,ao as V,al as S,av as A,r as T,a4 as I,ad as F,b4 as P,a6 as M,I as j,a8 as R,a9 as z}from"./runtime-core.esm-bundler-1857aef3.js";import{T as D,n as O,by as L,bz as q,bt as N,bA as B,bB as H,aD as U,aE as X,m as $,aG as W,f as G,bC as Y}from"./index-98eefc51.js";import{u as Z,b as J}from"./vue-router-5ddbd26f.js";import{_ as K}from"./_plugin-vue_export-helper-1b428a4d.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-582e74a2.js";import{E as ee}from"./dayjs.min-0c3c7af8.js";import"./error-c58402b8.js";var te=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(te||{});const ae=e("app",(()=>{const e=o({opened:"closed"!==n(),withoutAnimation:!1}),t=i(1);return{device:t,sidebar:e,toggleSidebar:t=>{e.opened=!e.opened,e.withoutAnimation=t,e.opened?r("opened"):r("closed")},closeSidebar:t=>{e.opened=!1,e.withoutAnimation=t,r("closed")},toggleDevice:e=>{t.value=e}}})),le=!0,ne=!0,re=!0,oe=!0,ie=!0,se=!0,ce=!0,ue=!1,de=!1,pe=e("settings",(()=>({fixedHeader:i(re),showSettings:i(le),showTagsView:i(ne),showSidebarLogo:i(oe),showNotify:i(ie),showThemeSwitch:i(se),showScreenfull:i(ce),showGreyMode:i(ue),showColorWeakness:i(de)}))),me={class:"app-main"},fe=K(s({__name:"AppMain",setup(e){const t=Z(),a=c((()=>t.path));return(e,t)=>{const l=u("router-view");return d(),p("section",me,[m(l,null,{default:f((({Component:e})=>[m(D,{name:"fade-transform",mode:"out-in"},{default:f((()=>[(d(),h(g(e),{key:v(a)}))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-bcc67543"]]);function he(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var l=e[a];if("*"!==l&&"+"!==l&&"?"!==l)if("\\"!==l)if("{"!==l)if("}"!==l)if(":"!==l)if("("!==l)t.push({type:"CHAR",index:a,value:e[a++]});else{var n=1,r="";if("?"===e[i=a+1])throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;)if("\\"!==e[i]){if(")"===e[i]){if(0==--n){i++;break}}else if("("===e[i]&&(n++,"?"!==e[i+1]))throw new TypeError("Capturing groups are not allowed at ".concat(i));r+=e[i++]}else r+=e[i++]+e[i++];if(n)throw new TypeError("Unbalanced pattern at ".concat(a));if(!r)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:r}),a=i}else{for(var o="",i=a+1;i<e.length;){var s=e.charCodeAt(i);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;o+=e[i++]}if(!o)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:o}),a=i}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),l=t.prefixes,n=void 0===l?"./":l,r="[^".concat(function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?"),"]+?"),o=[],i=0,s=0,c="",u=function(e){if(s<a.length&&a[s].type===e)return a[s++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var l=a[s],n=l.type,r=l.index;throw new TypeError("Unexpected ".concat(n," at ").concat(r,", expected ").concat(e))},p=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};s<a.length;){var m=u("CHAR"),f=u("NAME"),h=u("PATTERN");if(f||h){var v=m||"";-1===n.indexOf(v)&&(c+=v,v=""),c&&(o.push(c),c=""),o.push({name:f||i++,prefix:v,suffix:"",pattern:h||r,modifier:u("MODIFIER")||""})}else{var g=m||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(o.push(c),c=""),u("OPEN")){v=p();var b=u("NAME")||"",w=u("PATTERN")||"",y=p();d("CLOSE"),o.push({name:b||(w?i++:""),pattern:b&&!w?r:w,prefix:v,suffix:y,modifier:u("MODIFIER")||""})}else d("END")}}return o}function ve(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),l=t.encode,n=void 0===l?function(e){return e}:l,r=t.validate,o=void 0===r||r,i=e.map((func