edu/frontend/assets/index.36d9dba1.js

2 lines
22 KiB
JavaScript
Raw Normal View History

2022-04-26 04:00:22 +00:00
var Z=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var M=(e,t,o)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))oe.call(t,o)&&M(e,o,t[o]);if(S)for(var o of S(t))se.call(t,o)&&M(e,o,t[o]);return e},V=(e,t)=>ee(e,te(t));import{d as A,t as ne,c as g,r as u,a as E,b as D,w as _,e as J,o as m,f as p,n as N,g as O,F as H,h as Q,i as l,j as F,k as re,l as ie,E as T,m as ae,R as G,p as ce,u as ue,q as le,s as _e,v as de,x as pe,y as me,z as fe,N as j,A as he,B as ve,C as q,D as ge,U as ye,G as Ee,H as we,I as be,J as $e,K as Ae,L as Pe,M as De,O as Le,P as Re,Q as ke,S as Ie,T as Oe}from"./vendor.bbaa8c82.js";const Te=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerpolicy&&(i.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?i.credentials="include":n.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}};Te();const je={token:e=>e.user.token,userInfo:e=>e.user.user,config:e=>e.app.config,permission:e=>e.user.permissions},Ce=1,Ve="1.0.0";function xe(e,t=1e3,o){let s=new Date(0).getTime();return function(...n){const i=new Date().getTime();if(i-s>t)return s=i,e.apply(o,n)}}function Fe(e){const t={};for(const o of e.split("&"))t[o.split("=")[0]]=o.split("=")[1];return t}function Se(e=[],t=[],o="children"){return e.forEach(s=>{const n=s[o];n?Se(n,t,o):t.push(s)}),t}const Me="modulepreload",B={},Ne="/",c=function(t,o){return!o||o.length===0?t():Promise.all(o.map(s=>{if(s=`${Ne}${s}`,s in B)return;B[s]=!0;const n=s.endsWith(".css"),i=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${i}`))return;const r=document.createElement("link");if(r.rel=n?"stylesheet":Me,n||(r.as="script",r.crossOrigin=""),r.href=s,document.head.appendChild(r),n)return new Promise((d,f)=>{r.addEventListener("load",d),r.addEventListener("error",f)})})).then(()=>t())};function qe(e){return/([^?&=]+)=([^?&=]*)/g.test(e)}var P=(e,t)=>{const o=e.__vccOpts||e;for(const[s,n]of t)o[s]=n;return o};const Be=A({components:{},props:{route:{type:Object,default:()=>({})},path:{type:String}},setup(e){const{path:t,route:o}=ne(e),s=g(()=>{var d;return!!((d=o.value.children)!=null?d:[]).filter(f=>{var v;return!((v=f.meta)==null?void 0:v.hidden)}).length}),n=g(()=>r=>r!==void 0?`${t.value}/${r}`:t.value),i=g(()=>{const r=o.value.query;try{return qe(r)?Fe(r):JSON.parse(r)}catch{}});return{hasChildren:s,resolvePath:n,resolveQuery:i}}}),Ue={key:0};function ze(e,t,o,s,n,i){const r=u("sub-menu",!0),d=u("el-sub-menu"),f=u("el-menu-item"),v=u("router-link");return e.route.meta.hidden?J("",!0):(m(),E("div",Ue,[e.hasChildren?(m(),D(d,{key:0,index:e.path},{title:_(()=>[p("i",{class:N(["iconfont m-r-10 icon-szie",e.route.meta.icon])},null,2),p("span",null,O(e.route.meta.title),1)]),default:_(()=>[(m(!0),E(H,null,Q(e.route.children,(y,w)=>(m(),D(r,{key:w,route:y,path:e.resolvePath(y.path)},null,8,["route","path"]))),128))]),_:1},8,["index"])):(m(),D(v,{key:1,to:{path:e.path,query:e.resolveQuery}},{default:_(()=>[l(f,{index:e.path},{default:_(()=>[p("i",{class:N(["iconfont m-r-10",e.route.meta.icon])},null,2),p("span",null,O(e.route.meta.title),1)]),_:1},8,["index"])]),_:1},8,["to"]))]))}var Ke=P(Be,[["render",ze],["__scopeId","data-v-298a41e8"]]);const Je=A({components:{SubMenu:Ke},setup(){const{store:e,route:t}=C(),o=g(()=>e.state.permission.sidebar),s=g(()=>{var i,r;return(r=(i=t.meta)==null?void 0:i.activeMenu)!=null?r:t.path});return{config:g(()=>e