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.881f45cb.js

2 lines
25 KiB
JavaScript
Raw Normal View History

import{d as e,r as t,g as a,a as n,s as l,b as r,u as i,c as o,e as s,o as c,f as u,h as d,w as f,T as p,i as h,j as m,k as v,_ as g,l as b,m as w,F as _,n as y,t as k,p as x,q as E,v as C,x as A,E as V,y as S,z as T,A as F,B as I,C as P,D as R,G as M,H as L,I as O,J as q,K as D,L as j,M as z,N as H,O as N,P as $,Q as B,R as U,S as G,U as W,V as J,W as X,X as Y,Y as K,Z as Q}from"./index.b2caceec.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.87319ac7.js";var ee=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(ee||{});const te=e("app",(()=>{const e=t({opened:"closed"!==a(),withoutAnimation:!1}),r=n(1);return{device:r,sidebar:e,toggleSidebar:t=>{e.opened=!e.opened,e.withoutAnimation=t,e.opened?l("opened"):l("closed")},closeSidebar:t=>{e.opened=!1,e.withoutAnimation=t,l("closed")},toggleDevice:e=>{r.value=e}}})),ae=!0,ne=!0,le=!0,re=!0,ie=!0,oe=!0,se=e("settings",(()=>({fixedHeader:n(le),showSettings:n(ae),showTagsView:n(ne),showSidebarLogo:n(re),showThemeSwitch:n(ie),showScreenfull:n(oe)}))),ce={class:"app-main"},ue=g(r({__name:"AppMain",setup(e){const t=i(),a=o((()=>t.path));return(e,t)=>{const n=s("router-view");return c(),u("section",ce,[d(n,null,{default:f((({Component:e})=>[d(p,{name:"fade-transform",mode:"out-in"},{default:f((()=>[(c(),h(m(e),{key:v(a)}))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-0058dddf"]]);function de(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var n=e[a];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:a,value:e[a++]});else{var l=1,r="";if("?"===e[o=a+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;)if("\\"!==e[o]){if(")"===e[o]){if(0==--l){o++;break}}else if("("===e[o]&&(l++,"?"!==e[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));r+=e[o++]}else r+=e[o++]+e[o++];if(l)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=o}else{for(var i="",o=a+1;o<e.length;){var s=e.charCodeAt(o);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;i+=e[o++]}if(!i)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:i}),a=o}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),n=t.prefixes,l=void 0===n?"./":n,r="[^".concat(function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?"),"]+?"),i=[],o=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 n=a[s],l=n.type,r=n.index;throw new TypeError("Unexpected ".concat(l," at ").concat(r,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};s<a.length;){var p=u("CHAR"),h=u("NAME"),m=u("PATTERN");if(h||m){var v=p||"";-1===l.indexOf(v)&&(c+=v,v=""),c&&(i.push(c),c=""),i.push({name:h||o++,prefix:v,suffix:"",pattern:m||r,modifier:u("MODIFIER")||""})}else{var g=p||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(i.push(c),c=""),u("OPEN")){v=f();var b=u("NAME")||"",w=u("PATTERN")||"",_=f();d("CLOSE"),i.push({name:b||(w?o++:""),pattern:b&&!w?r:w,prefix:v,suffix:_,modifier:u("MODIFIER")||""})}else d("END")}}return i}function fe(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),n=t.encode,l=void 0===n?function(e){return e}:n,r=t.validate,i=void 0===r||r,o=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),a)}));return function(t){for(var a="",n=0;n<e.length;n++){var r=e[n];if("string"!=typeof r){var s=t?t[r.name]:void 0,c="?"===r.modifier||"*"===r.modifier,u="*"===r.modifier||"+"===r.modifier;if(Array.isArray(s)){if(!u)throw new TypeError('Expected "'.concat(r.name,'" to not repeat, but got an array'));if(0===s.l