app.a742e359.js 31 KB

1
  1. (function(){"use strict";var e={7053:function(e,t,n){n.d(t,{MJ:function(){return m},Wz:function(){return p},Z9:function(){return f},rO:function(){return v}});var o=n(7327),r=n(4161),a=n(3643),i=n(7178),s=n(5402),l=n(2529);class u{constructor(e,t){(0,o.Z)(this,"URL",""),(0,o.Z)(this,"axiosObj",void 0),this.URL=e,this.axiosObj=t}httpInterceptor(e){(!this.axiosObj||!1!==this.axiosObj.nprogress)&&a.Z.start(),e.interceptors.request.use((e=>e),(e=>{console.log(e),a.Z.done();const t={code:500,message:"系统运行异常,请刷新页面",data:null};return Promise.reject(t)})),e.interceptors.response.use((e=>{if(a.Z.done(),e.data.msg&&(e.data.message=e.data.msg),e.data.code===s.YS&&s.PL){const t=e.data;i.z8.error(t.message),(0,l.Z)().resetUser()}return e}),(e=>{console.log(e),a.Z.done();const t=e.code===s.xU?{code:e.code,message:"系统取消接口",data:null}:{code:500,message:"系统运行异常,请刷新页面",data:null};return Promise.reject(t)}))}createInstance(){const e=this.axiosObj;return r.Z.create(e?.tokenName?{baseURL:this.URL,headers:{[e.tokenName]:e.getTokenFun&&e.getTokenFun()}}:{baseURL:this.URL})}axioseRquest(e){const t=this.createInstance();return this.httpInterceptor(t),t(e)}}var c=u,d=n(6636);const m=new c(d.dz),p=new c(d.dz,{nprogress:!1}),f=new c(d.Ct,{tokenName:"Authorization",getTokenFun:s.LP}),v=new c(d.$C,{tokenName:"Authorization",getTokenFun:s.LP})},3332:function(e,t,n){n.d(t,{CH:function(){return c},Kk:function(){return u},M$:function(){return r},RC:function(){return i},VB:function(){return a},bJ:function(){return s},zt:function(){return l}});var o=n(7053);const r=e=>o.MJ.axioseRquest({method:"get",url:"/open/qrcode/create?uuid="+e}),a=e=>o.Wz.axioseRquest({method:"get",url:"/open/qrcode/query/"+e}),i=e=>o.MJ.axioseRquest({method:"get",url:"/api/v1/dictitem/getByValue",params:{value:e}}),s=()=>o.Z9.axioseRquest({method:"get",url:"/api-teacher/teacher/queryUserInfo"}),l=()=>o.Z9.axioseRquest({method:"get",url:"/api-auth/exit",headers:{"Content-Type":"x-www-form-urlencoded"}}),u=()=>o.rO.axioseRquest({method:"get",url:"/api-teacher/user/getUserInfo"}),c=()=>o.rO.axioseRquest({method:"get",url:"/api-teacher/user/logout"})},1565:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(3396),r=n(7139),a=n(4870),i=(0,o.aZ)({__name:"ellipsisScroll",props:{title:{}},setup(e){const t=e,n=(0,a.iH)(),i=(0,a.iH)(!1);(0,o.bv)((()=>{n.value?.addEventListener("mouseenter",l),n.value?.addEventListener("mouseleave",u)})),(0,o.Ah)((()=>{n.value?.removeEventListener("mouseenter",l),n.value?.removeEventListener("mouseleave",u)}));let s=0;function l(e){const t=e.target;s=t.scrollWidth-t.clientWidth,i.value=s>0}function u(){i.value=!1}return(e,a)=>((0,o.wg)(),(0,o.iD)("div",{ref_key:"ellipsisScrollDom",ref:n,class:(0,r.C_)([{isScroll:i.value},"ellipsisScroll"])},(0,r.zw)(t.title),3))}}),s=n(89);const l=(0,s.Z)(i,[["__scopeId","data-v-7609a74c"]]);var u=l,c=u},6636:function(e,t,n){n.d(t,{$C:function(){return r},Ct:function(){return a},dz:function(){return o},z:function(){return i}});const o="https://dev.resource.colexiu.com/cbs-app",r="https://dev.lexiaoya.cn",a="https://dev.dayaedu.com",i="https://test.lexiaoya.cn/whiteboard-noCollab"},5402:function(e,t,n){n.d(t,{H6:function(){return i},LP:function(){return c},Ng:function(){return f},PL:function(){return u},YS:function(){return r},ex:function(){return v},gm:function(){return h},gy:function(){return m},o4:function(){return d},xU:function(){return a}});var o=n(680);n(9564);let r=403;const a="ERR_CANCELED";function i(e){r=e}const s="classroom-Token",l=7;let u=!0;function c(){return o.Z.get(s)&&"bearer "+o.Z.get(s)}function d(e){return u=!0,o.Z.set(s,e,{expires:l})}function m(){return u=!1,o.Z.remove(s)}const p="userType";function f(){return o.Z.get(p)}function v(e){return o.Z.set(p,e,{expires:l})}function h(){return o.Z.remove(p)}},1407:function(e,t,n){n.d(t,{cM:function(){return r},dp:function(){return a},n6:function(){return o}});const o=1920,r=18;let a=r;const i=680,s=document.documentElement;function l(){const e=s.getBoundingClientRect().width;a=r*((e>i?e:i)/o),s.style.fontSize=a+"px"}l(),window.addEventListener("resize",l)},9327:function(e,t,n){n.d(t,{C2:function(){return l},Ds:function(){return r},IV:function(){return s},WU:function(){return o},cn:function(){return i}});n(6229),n(7330),n(2062);const o=(e,t)=>{const n=e?new Date("string"===typeof e?e.replace(/-/g,"/"):e):new Date;t=t||"yyyy-mm-dd";const o={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"i+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};let r;for(r in o){const e=new RegExp(`(${r})`).exec(t);e&&(t=t.replace(e[1],1==e[1].length?o[r]:o[r].padStart(e[1].length,"0")))}return t},r=(e,t=600,n=!1)=>{let o,r,a,i,s;const l=function(){const u=(new Date).getTime()-r;t>u?o=window.setTimeout(l,t-u):(o=null,n||(i=e.apply(s,a)),o||(a=[],s=null))},u=function(...u){return s=this,a=u,r=(new Date).getTime(),o||(o=window.setTimeout(l,t),n&&(i=e.apply(s,a))),i};return u.cancel=function(){o&&clearTimeout(o),a=[],o=s=null},u};const a=(e="")=>e.split(" ").filter((e=>!!e.trim())),i=(e,t)=>{e&&e.classList.add(...a(t))},s=(e,t)=>{e&&e.classList.remove(...a(t))},l=(e,t)=>{if(!e)return"";"float"===t&&(t="cssFloat");try{const n=e.style[t];if(n)return n;const o=document.defaultView?.getComputedStyle(e,"");return o?o[t]:""}catch{return e.style[t]}}},1096:function(e,t,n){var o=n(9242),r=n(3396);function a(e,t){const n=(0,r.up)("router-view");return(0,r.wg)(),(0,r.j4)(n)}var i=n(89);const s={},l=(0,i.Z)(s,[["render",a]]);var u=l,c=n(1407),d=n(7623),m=n(7627),p=e=>{e.use(d.Z),(0,m.Z)(e)},f=n(1934),v=n(812),h=n(2594),g=n(3332),y=n(2317);const w=(0,h.Q_)("dictionaryCache",{state:()=>({cache:new Map}),actions:{async getDictionary(e){const t=this.cache;if(t.has(e))return t.get(e);{const t=await(0,y.hk)(g.RC,e);return 200===t.code?(this.cache.set(e,t.data),t.data):[]}}}});var b=()=>w(m.h),A=(0,r.aZ)({__name:"dictionary",props:{clearable:{type:Boolean,default:!0},propsOpt:{default:()=>({})},dictionaryKey:{},popperClass:{},width:{},height:{}},setup(e){const t=e;(0,o.sj)((e=>({"446cf0d4":s.value,"7ccf1d52":l.value})));const n=(0,r.l1)(),a=b(),i={emitPath:!!Array.isArray(n.modelValue),lazy:!!t.dictionaryKey,leaf:"haveChild",async lazyLoad({level:e,data:n},o){const r=await a.getDictionary(0===e?t.dictionaryKey:n.itemdetailid);o(r)}};Object.assign(i,t.propsOpt);const s=(0,r.Fl)((()=>t.width?(t.width/c.cM).toFixed(5)+"rem":"100%")),l=(0,r.Fl)((()=>(((t.height||32)-4)/c.cM).toFixed(5)+"rem"));return(e,n)=>{const o=(0,r.up)("el-cascader");return(0,r.wg)(),(0,r.j4)(o,(0,r.dG)({class:"h_dictionary","show-all-levels":!1,props:i,clearable:t.clearable,popperClass:e.popperClass+" dictionaryPopper"},e.$attrs),null,16,["clearable","popperClass"])}}});const M=A;var _=M,x=_,k=n(7139),C=n(4870),S=(0,r.aZ)({__name:"tooltipAutoShow",props:{title:{},placement:{default:"top"},maxWidth:{default:250}},setup(e){const t=e,n=(0,C.iH)(),o=(0,C.iH)(!1);function a(e){const t=e.target;t.clientWidth<t.scrollWidth?o.value=!1:o.value=!0}return(0,r.bv)((()=>{n.value?.addEventListener("mouseenter",a)})),(0,r.Ah)((()=>{n.value?.removeEventListener("mouseenter",a)})),(e,a)=>{const i=(0,r.up)("el-tooltip");return(0,r.wg)(),(0,r.j4)(i,{placement:t.placement,disabled:o.value},{content:(0,r.w5)((()=>[(0,r._)("div",{style:(0,k.j5)({width:`${t.maxWidth}px`})},(0,k.zw)(t.title),5)])),default:(0,r.w5)((()=>[(0,r._)("div",{ref_key:"tooltipDom",ref:n,class:"tooltipAutoShow"},(0,k.zw)(t.title),513)])),_:1},8,["placement","disabled"])}}});const z=(0,i.Z)(S,[["__scopeId","data-v-611285fe"]]);var I=z,Z=I,E=(0,r.aZ)({__name:"trigger",props:{mode:{}},setup(e){const t=e,n=(0,r.Fl)((()=>"vertical"===t.mode));return(e,t)=>((0,r.wg)(),(0,r.iD)("div",{class:(0,k.C_)(["trigger",[n.value?"trigger-vertical":"trigger-horizontal"]])},[(0,r._)("div",{class:(0,k.C_)(["bar-con",[n.value?"vertical":"horizontal"]])},[t[0]||((0,r.qZ)(-1),t[0]=((0,r.wg)(),(0,r.iD)(r.HY,null,(0,r.Ko)(8,(e=>(0,r._)("i",{class:"bar",key:e}))),64)),(0,r.qZ)(1),t[0])],2)],2))}});const U=(0,i.Z)(E,[["__scopeId","data-v-2bf8523c"]]);var F=U;const T={key:0,class:"cover"};var j=(0,r.aZ)({__name:"split",props:{modelValue:{default:.5},mode:{default:"horizontal"},min:{default:"40"},max:{default:"40"}},emits:["update:modelValue","on-move-start","on-moving","on-move-end","on-resize-change"],setup(e,{emit:t}){const n=e;(0,r.bv)((()=>{v(),window.addEventListener("resize",v)})),(0,r.Jd)((()=>{window.removeEventListener("resize",v)})),(0,r.YP)((()=>n.modelValue),(()=>{f()}));const o=(0,C.iH)(),a=(0,C.Um)({initOffset:0,offset:0,oldOffset:0,isMoving:!1,computedMin:0,computedMax:0}),i=(0,r.Fl)((()=>"horizontal"===n.mode)),s=(0,r.Fl)((()=>100-a.offset)),l=(0,r.Fl)((()=>"string"===typeof n.modelValue)),u=(0,r.Fl)((()=>i.value?"offsetWidth":"offsetHeight"));function c(e){a.initOffset=i.value?e.pageX:e.pageY,a.oldOffset="string"===typeof n.modelValue?parseFloat(n.modelValue):n.modelValue,a.isMoving=!0,document.addEventListener("mousemove",d),document.addEventListener("mouseup",m),t("on-move-start")}function d(e){const n=i.value?e.pageX:e.pageY,r=n-a.initOffset,s=o.value[u.value],c=l.value?a.oldOffset+r:w(s*a.oldOffset+r,s);p(c),t("on-moving",e)}function m(){a.isMoving=!1,document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",m),t("on-move-end")}function p(e){const n=g(e);e<=a.computedMin&&(e=a.computedMin),n<=a.computedMax&&(e=g(a.computedMax)),t("update:modelValue",l.value?e+"":e)}function f(){(0,r.Y3)((()=>{a.offset=1e4*(l.value?w(n.modelValue,o.value[u.value]):n.modelValue)/100}))}function v(){h(),p("string"===typeof n.modelValue?parseFloat(n.modelValue):n.modelValue),f(),t("on-resize-change")}function h(){const e=o.value[u.value];let t=y("min"),n=y("max");g(t+n)<0&&(t=l.value?.1*e:.1,n=l.value?.1*e:.1),a.computedMin=t,a.computedMax=n}function g(e){return l.value?o.value[u.value]-e:1-e}function y(e){const t=o.value[u.value],r=n[e];return l.value?"string"===typeof r?parseFloat(r):t*r:"string"===typeof r?w(r,t):r}function w(e,t){return parseFloat("number"===typeof e?e+"":e)/parseFloat("number"===typeof t?t+"":t)}return(e,t)=>((0,r.wg)(),(0,r.iD)("div",{ref_key:"splitDom",ref:o,class:(0,k.C_)(["split",[(0,C.SU)(a).isMoving&&"no-select",i.value?"horizontal":"vertical"]])},[(0,C.SU)(a).isMoving?((0,r.wg)(),(0,r.iD)("div",T)):(0,r.kq)("",!0),i.value?((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[(0,r._)("div",{style:(0,k.j5)({right:`${s.value}%`}),class:(0,k.C_)(["left-pane pane",{"pane-moving":(0,C.SU)(a).isMoving}])},[(0,r.WI)(e.$slots,"left")],6),(0,r._)("div",{class:"trigger-con",style:(0,k.j5)({left:`${(0,C.SU)(a).offset}%`}),onMousedown:c},[(0,r.WI)(e.$slots,"trigger",{},(()=>[(0,r.Wm)(F,{mode:"vertical"})]))],36),(0,r._)("div",{style:(0,k.j5)({left:`${(0,C.SU)(a).offset}%`}),class:(0,k.C_)(["right-pane pane",{"pane-moving":(0,C.SU)(a).isMoving}])},[(0,r.WI)(e.$slots,"right")],6)],64)):((0,r.wg)(),(0,r.iD)(r.HY,{key:2},[(0,r._)("div",{style:(0,k.j5)({bottom:`${s.value}%`}),class:(0,k.C_)(["top-pane pane",{"pane-moving":(0,C.SU)(a).isMoving}])},[(0,r.WI)(e.$slots,"top")],6),(0,r._)("div",{class:"trigger-con",style:(0,k.j5)({top:`${(0,C.SU)(a).offset}%`}),onMousedown:c},[(0,r.WI)(e.$slots,"trigger",{},(()=>[(0,r.Wm)(F,{mode:"horizontal"})]))],36),(0,r._)("div",{style:(0,k.j5)({top:`${(0,C.SU)(a).offset}%`}),class:(0,k.C_)(["bottom-pane pane",{"pane-moving":(0,C.SU)(a).isMoving}])},[(0,r.WI)(e.$slots,"bottom")],6)],64))],2))}});const P=(0,i.Z)(j,[["__scopeId","data-v-0322fd07"]]);var R=P,L=R,D=n(9327),O=(0,r.aZ)({__name:"ellipsis",props:{text:{},height:{},lines:{},length:{},disabled:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},placement:{default:"top"},maxWidth:{default:250}},setup(e){const t=e;(0,r.YP)([()=>t.disabled,()=>t.text,()=>t.height,()=>t.length,()=>t.lines],(()=>{l()})),(0,r.bv)((()=>{s()}));const n=(0,C.iH)(),a=(0,C.iH)(),i=(0,C.Um)({oversize:!1,computedReady:!1,key:0});function s(){t.disabled||u()}function l(){i.key++,s()}function u(){i.oversize=!1,i.computedReady=!1,(0,r.Y3)((()=>{let e=t.text;const o=t.length;if(o){const t=e.length;t>o&&(i.oversize=!0,e=e.slice(0,o),n.value.innerText=e)}else if(t.lines||t.height){let o=t.height||0;const s=t.lines;if(!o&&s){const e=parseInt((0,D.C2)(a.value,"lineHeight"));o=e*s}a.value.offsetHeight>o&&(i.oversize=!0,(0,r.Y3)((()=>{while(a.value.offsetHeight>o)a.value.offsetHeight>3*o?n.value.innerText=e=e.substring(0,Math.floor(e.length/2)):n.value.innerText=e=e.substring(0,e.length-1)})))}i.computedReady=!0}))}return(e,s)=>{const l=(0,r.up)("el-tooltip");return(0,r.wg)(),(0,r.j4)(l,{placement:t.placement,disabled:!(0,C.SU)(i).oversize||!t.tooltip},{content:(0,r.w5)((()=>[(0,r._)("div",{style:(0,k.j5)({maxWidth:`${t.maxWidth}px`})},(0,k.zw)(t.text),5)])),default:(0,r.w5)((()=>[((0,r.wg)(),(0,r.iD)("div",{ref_key:"ellipsisDom",ref:a,class:(0,k.C_)(["ellipsis",{vis:!(0,C.SU)(i).computedReady}]),key:(0,C.SU)(i).key},[(0,r._)("span",{ref_key:"textDom",ref:n},(0,k.zw)(t.text),513),(0,r.wy)((0,r._)("span",null,"...",512),[[o.F8,(0,C.SU)(i).oversize]])],2))])),_:1},8,["placement","disabled"])}}});const B=(0,i.Z)(O,[["__scopeId","data-v-2c14fbdc"]]);var W=B,H=W,N=n(1565),V=e=>{e.use(f.Z,{locale:v.Z}),e.component("dictionary",x),e.component("tooltipAutoShow",Z),e.component("split",L),e.component("ellipsis",H),e.component("ellipsisScroll",N.Z)};const Y=(0,o.ri)(u);p(Y),V(Y),Y.mount("#app")},2317:function(e,t,n){n.d(t,{hk:function(){return A},Jj:function(){return M},gx:function(){return _},Ms:function(){return x}});var o=n(3396),r=n(7139),a=n(9242);const i={class:"h-loading-bar"},s={class:"loading-bar-content"},l=(0,o._)("div",{class:"loading-svg"},[(0,o._)("svg",{class:"circular",viewBox:"0 0 50 50"},[(0,o._)("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})])],-1);function u(e,t,n,u,c,d){return(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",i,[(0,o._)("div",s,[l,(0,o._)("span",null,(0,r.zw)(e.loadingBarData.text),1)])],512)),[[a.F8,e.loadingBarData.show]])}var c=n(4870),d=n(9327),m=(0,o.aZ)({setup(){const e=(0,c.Um)({text:"",show:!1}),t=document.querySelector("body"),n="h-loadingBarBody",o="正在加载中...",r=(r,a)=>{e.text=a??o,e.show=r,e.show?(0,d.cn)(t,n):(0,d.IV)(t,n)};return{loadingBarData:e,loading:r}}}),p=n(89);const f=(0,p.Z)(m,[["render",u]]);var v=f;const h=(0,o.h)(v);(0,a.sY)(h,document.body);const g=h.component.proxy,y=g;var w=y,b=n(7178);const A=function(e,...t){return new Promise((n=>{e(...t).then((e=>{n(e.data)})).catch((e=>{n(e)}))}))},M=function(e,...t){return new Promise((n=>{e(...t).then((e=>{const t=e.data;200!==t.code&&(0,b.z8)({showClose:!0,message:t.message,type:"error"}),n(e.data)})).catch((e=>{(0,b.z8)({showClose:!0,message:e.message,type:"error"}),n(e)}))}))},_=function(e,...t){return new Promise((n=>{w.loading(!0),e(...t).then((e=>{w.loading(!1),n(e.data)})).catch((e=>{w.loading(!1),n(e)}))}))},x=function(e,...t){return new Promise((n=>{w.loading(!0),e(...t).then((e=>{w.loading(!1);const t=e.data;200!==t.code&&(0,b.z8)({showClose:!0,message:t.message,type:"error"}),n(e.data)})).catch((e=>{w.loading(!1),(0,b.z8)({showClose:!0,message:e.message||e.msg,type:"error"}),n(e)}))}))}},4505:function(e,t,n){n.d(t,{AV:function(){return y},ZP:function(){return b},wC:function(){return g}});var o=n(3396),r=n(9242),a=n(7139),i=n(4870),s=n(2748),l=n(9327),u=n(1407);const c={class:"animationBox"},d={key:0,class:"frameBtn"};var m=(0,o.aZ)({__name:"modalFrame",props:{template:{},className:{default:""},modalData:{},width:{default:"800"},height:{default:"600"},onCancel:{type:Function,default:void 0},onOk:{type:Function,default:void 0},onClose:{type:Function,default:void 0},title:{default:""},btnShow:{default:()=>[!0,!0]},btnTit:{default:()=>["确认","取消"]},maskClose:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},setup(e,{expose:t}){const n=e,m=document.querySelector("body"),p="h-modalFrameBody",f=(0,i.iH)(!1),v=(0,i.XI)(),h=(0,i.XI)(),y=(0,i.iH)(),w=(0,i.iH)(),b=(0,i.iH)(),A=(0,o.Fl)((()=>{const{btnShow:e}=n;return!(!e[0]&&!e[1])})),M=(0,o.Fl)((()=>{const e=_(n.height),t=_(n.width),o=x("width",t),r=x("height",e);return`transform:translate(${o.pos}rem,${r.pos}px);width:${o.unit};height:${r.unit};`}));function _(e){if("number"===typeof e)return e;if(isNaN(Number(e))){if(/((^[1-9][0-9]{0,1})|100)%$/.test(e))return e;throw new Error("`width`和`height`参数只能为数字或字符串类型数字或者字符串百分比")}return Number(e)}function x(e,t){const n="width"==e?u.n6:document.documentElement.clientHeight;return"string"===typeof t?{pos:"width"==e?((n-parseInt(t)/100*n)/2/u.cM).toFixed(5):(n-parseInt(t)/100*n)/2,unit:t}:{pos:"width"==e?((n-t)/2/u.cM).toFixed(5):(n-t*(u.dp/u.cM))/2,unit:(t/u.cM).toFixed(5)+"rem"}}function k(e){function t(e){const t=w.value,n=t.getBoundingClientRect(),o=e.clientX,r=e.clientY,a=document.documentElement.clientWidth,i=document.documentElement.clientHeight,s=0,l=0,u=a-n.width,c=i-n.height;function d(e){let a=n.left+(e.clientX-o),i=n.top+(e.clientY-r);a=a<s?s:a>u?u:a,i=i<l?l:i>c?c:i,t.style.transform=`translate(${a}px, ${i}px)`}function m(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",m)}document.addEventListener("mousemove",d),document.addEventListener("mouseup",m)}e.addEventListener("mousedown",t)}function C(){const e=x("width",n.width),t=x("height",n.height);w.value&&(w.value.style.transform=`translate(${e.pos}rem, ${t.pos}px)`)}function S(){n.onCancel?n.onCancel(v.value,b.value):E()}function z(){n.onOk?n.onOk(v.value,b.value):E()}function I(){n.onClose?n.onClose(v.value,b.value):E()}function Z(){n.maskClose&&I()}function E(){f.value=!1}function U(){window.removeEventListener("resize",C),v.value&&m.removeChild(v.value.$el),h.value&&g.delete(h.value),h.value?.unmount(),(0,l.IV)(m,p)}return(0,o.bv)((()=>{(0,l.cn)(m,p),n.draggable&&k(y.value),window.addEventListener("resize",C)})),t({vm:v,vmApp:h,remove:E,show:f}),(e,t)=>{const l=(0,o.up)("el-icon"),u=(0,o.up)("el-button");return(0,o.wg)(),(0,o.j4)(r.uT,{name:"bounceModalFrame",onAfterLeave:U},{default:(0,o.w5)((()=>[(0,o.wy)((0,o._)("div",{class:(0,a.C_)(["h-modalFrame",n.className]),onClick:Z},[(0,o._)("div",c,[(0,o._)("div",{ref_key:"modalFrameBoxDom",ref:w,class:"modalFrameBox",style:(0,a.j5)(M.value),onClick:t[0]||(t[0]=(0,r.iM)((()=>{}),["stop"]))},[(0,o._)("div",{ref_key:"modalFrameTitleDom",ref:y,class:(0,a.C_)(["modalFrameTitle",{noMove:!n.draggable}])},[(0,o._)("span",null,(0,a.zw)(n.title),1),(0,o.Wm)(l,{class:"icon",onClick:I},{default:(0,o.w5)((()=>[(0,o.Wm)((0,i.SU)(s.x8P))])),_:1})],2),(0,o._)("div",{class:(0,a.C_)(["frameBox",{frameBtnNone:!A.value}])},[((0,o.wg)(),(0,o.j4)((0,o.LL)(n.template),{ref_key:"templateModal",ref:b,onOnCancel:S,onOnClose:I,onOnOk:z,"modal-data":n.modalData},null,40,["modal-data"]))],2),A.value?((0,o.wg)(),(0,o.iD)("div",d,[n.btnShow[1]?((0,o.wg)(),(0,o.j4)(u,{key:0,onClick:S},{default:(0,o.w5)((()=>[(0,o.Uk)((0,a.zw)(n.btnTit[1]),1)])),_:1})):(0,o.kq)("",!0),n.btnShow[0]?((0,o.wg)(),(0,o.j4)(u,{key:1,type:"primary",onClick:z},{default:(0,o.w5)((()=>[(0,o.Uk)((0,a.zw)(n.btnTit[0]),1)])),_:1})):(0,o.kq)("",!0)])):(0,o.kq)("",!0)],4)])],2),[[r.F8,f.value]])])),_:1})}}});const p=m;var f=p,v=n(1934),h=n(812);const g=new Set;function y(){g.forEach((e=>{e&&(g.delete(e),e.unmount())}))}const w=e=>{const t=(0,r.ri)(f,{...e});t.use(v.Z,{locale:h.Z});const n=t.mount(document.createElement("div"));n.vm=n,n.vmApp=t,g.add(n.vmApp),document.body.appendChild(n.$el),n.$nextTick((()=>{n.show=!0}))};var b=w},3643:function(e,t,n){var o=n(530),r=n.n(o);r().configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3}),t.Z=r()},7623:function(e,t,n){n.d(t,{Z:function(){return N},P:function(){return H}});n(7658);var o=n(2483),r=n(3396),a=n(7139),i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAMAAABV0m3JAAAAS1BMVEUAAAAkS1UkS1UkS1UjS1UkSlQjSlQkS1UkSlUjS1QjS1UkSlQkS1QkTFQfSlYjRlEnTk4nTk4kTFUlTFUkSlUkSlMkTFQmTVMkS1U6T+GqAAAAGHRSTlMA2t7P8dfmyayXgU07LSAWDQa9vHhrWyiylsCAAAAAVklEQVQI12XIRxKAIBAEwFkRE9nI/18qFIUS+tjYOAVDRMQ5Y2y+cfqOANb2LgRLfRsit5e3IrHsvwWZoXyHw0dP6WaLghrjkUFFhp00GsKPCh35IHsBX6oKUYh/ySwAAAAASUVORK5CYII=",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAuCAMAAABkkgs4AAAAZlBMVEUAAAAzMzMzMzMyMjIwMDAzMzMyMjIyMjIzMzMzMzMxMTEuLi4yMjI1NTUyMjIzMzMyMjIzMzMyMjIxMTEzMzMyMjI0NDQzMzM0NDQwMDAzMzMzMzMzMzMzMzM0NDQyMjIwMDAzMzNJLLFKAAAAIXRSTlMA1PpqJdrAtWFAFhDvIerNxJB5XE06qHFFCvPnpJpZMCD0I3lGAAABZElEQVRIx7zSyY6CQBQF0LZQQARxDMH5/P9P9kpaxrDoWKu6yVm8vPt+vvw2m/n2EcJjNi4pZ+MFi3/F2SHt4vSQDdv1laqNK67rIZsG3Nv4jpAOWMifbfzMoafXAWXRnbkoETqTZFvEdX8bdYxt1sI3lPXQ6uoSt097Rv4a3vMrx/kDJ4jGSomQ/MUCq/EGVyiaVCEaxxGqJsWEbBxngbhJF3ZTh7Tj8v4vsZ/Ceyzf7SGawhHeLZ5wnMJHnMZwQtLDY2Msf7spYx2GYRCIIkxipSiR4ySWV/7/JyuWSgbc7n2zhe7McTmTk2ENerxBQPN1liKCw1IYpvCwlGpEK0ZytUHy+CD5iPrB2YafIIRs+KGpEA7dqYgWHCwHb4ODhY46m5wGnYs9LplkvA0lY+tLlsQfBWmRsL6UfoiC5UzXlc6Cohx9UrlNHO0FM54sA/mBb+x1RREF17rDb2i7743gP3gDGHwrQ6M7X1EAAAAASUVORK5CYII=",l=n(2529),u=n(4870),c=n(7178);const d=e=>((0,r.dD)("data-v-078aac42"),e=e(),(0,r.Cn)(),e),m={class:"layout"},p={class:"head"},f={class:"avatar"},v={class:"imgCon"},h={class:"name"},g={class:"dropdown"},y={class:"avatar-item"},w={class:"userInfo"},b={class:"realName"},A={class:"phone"},M=d((()=>(0,r._)("img",{src:s},null,-1))),_=d((()=>(0,r._)("div",{class:"text"},"退出登录",-1))),x=[M,_];var k=(0,r.aZ)({__name:"layout",setup(e){const t=(0,l.Z)(),o=(0,r.Fl)((()=>t.userInfo)),s=(0,u.iH)(!1);function d(e){s.value=e}function M(){(0,l.Z)().loginOut().then().catch((e=>{c.z8.error(e.message)}))}return(e,t)=>{const l=(0,r.up)("el-image"),u=(0,r.up)("ellipsisScroll"),c=(0,r.up)("el-dropdown"),_=(0,r.up)("RouterView");return(0,r.wg)(),(0,r.iD)("div",m,[(0,r._)("div",p,[(0,r.Wm)(c,{"popper-class":"headDropdown",class:"avatar-con",trigger:"click",onVisibleChange:d},{dropdown:(0,r.w5)((()=>[(0,r._)("div",g,[(0,r._)("div",y,[(0,r.Wm)(l,{class:"avatarImg",src:o.value.avatar||n(4789)},null,8,["src"]),(0,r._)("div",w,[(0,r._)("div",b,[(0,r.Wm)(u,{title:o.value.username||""},null,8,["title"])]),(0,r._)("div",A,(0,a.zw)(o.value.phone),1)])]),(0,r._)("div",{class:"logout-item"},[(0,r._)("div",{class:"logoutBtn",onClick:M},x)])])])),default:(0,r.w5)((()=>[(0,r._)("div",f,[(0,r._)("div",v,[(0,r.Wm)(l,{class:"avatarImg",src:o.value.avatar||n(4789)},null,8,["src"])]),(0,r._)("div",h,[(0,r.Wm)(u,{title:o.value.username||""},null,8,["title"])]),(0,r._)("img",{class:(0,a.C_)(["horn",{isVisible:s.value}]),src:i},null,2)])])),_:1})]),(0,r.Wm)(_)])}}}),C=n(89);const S=(0,C.Z)(k,[["__scopeId","data-v-078aac42"]]);var z=S,I=z,Z={homePage:()=>Promise.all([n.e(530),n.e(967),n.e(808)]).then(n.bind(n,5808)),cloudTextbooks:()=>Promise.all([n.e(530),n.e(421)]).then(n.bind(n,6453)),coursewarePlay:()=>Promise.all([n.e(365),n.e(901)]).then(n.bind(n,6600)),curriculum:()=>Promise.all([n.e(530),n.e(967)]).then(n.bind(n,8658))};const E=[{path:"/login",name:"login",component:()=>n.e(25).then(n.bind(n,100))}],U={...Z,layout:I};var F=n(3643),T=n(5402);const j=(e,t)=>({asyncRoutes:P(e,t)}),P=(e,t)=>{function o(e){const n=[],r=[];for(const a of e){const{path:e,component:i,meta:s}=a;if(a.children&&a.children.length>0){const e=o(a.children);n.push(...e.layoutRoutes),r.push(...e.singlepageRoutes)}else("layout"===s.routeType?n:r).push({path:e,name:i,component:t[i],meta:s})}return{layoutRoutes:n,singlepageRoutes:r}}const{layoutRoutes:r,singlepageRoutes:a}=o(e),i=[{path:"/layout",name:"layout",redirect:"/noRedirect",component:t["layout"],children:r},...a];function s(e){const t=e[0];return t?t.children&&t.children.length?s(t.children):t.path:"/noRedirect"}const l=s(e);return i.push({path:"/",redirect:l}),i.push({path:"/:pathMatch(.*)*",name:"errorPage",component:()=>Promise.all([n.e(365),n.e(77)]).then(n.bind(n,4012))}),i},R=(0,l.Z)(),L=(0,o.p7)({history:(0,o.r5)("/"),routes:E,scrollBehavior(){return{left:0,top:0}}});function D(e,t){return e.findIndex((e=>e.test(t)))>-1}const O=["/login"],B=[];let W=[];L.beforeEach(((e,t,n)=>{F.Z.start();const o=(0,T.LP)();if(o&&!O.includes(e.path)){const t=R.roles;t?n():R.getUserInfo().then((t=>{const{asyncRoutes:o}=j(t,U);o.map((e=>{W.push(L.addRoute(e))})),n({...e,replace:!0})})).catch((e=>{e.code!==T.YS&&(c.z8.error(e.message),R.resetUser())}))}else O.includes(e.path)||D(B,e.path)?n():n({path:"/login"})})),L.afterEach((()=>{F.Z.done()}));const H=()=>{W.map((e=>{e()})),W=[]};var N=L},7627:function(e,t,n){n.d(t,{h:function(){return r}});var o=n(2594);const r=(0,o.WB)();t.Z=e=>{e.use(r)}},2529:function(e,t,n){n.d(t,{Z:function(){return p}});n(7658);var o=n(2594),r=n(7627),a=n(3332),i=n(5402),s=n(7623),l=n(2317);const u=[{path:"/homePage",component:"homePage",title:"首页",icon:"",meta:{routeType:"layout"},children:[]},{path:"/cloudTextbooks",component:"cloudTextbooks",title:"云教材",icon:"",meta:{routeType:"layout"},children:[]},{path:"/coursewarePlay/:id",component:"coursewarePlay",title:"播放器",icon:"",meta:{routeType:"singlepage"},children:[]},{path:"/curriculum",component:"curriculum",title:"课表",icon:"",meta:{routeType:"layout"},children:[]}],c=[{path:"/homePage",component:"homePage",title:"首页",icon:"",meta:{routeType:"layout"},children:[]},{path:"/cloudTextbooks",component:"cloudTextbooks",title:"云教材",icon:"",meta:{routeType:"layout"},children:[]},{path:"/coursewarePlay/:id",component:"coursewarePlay",title:"播放器",icon:"",meta:{routeType:"singlepage"},children:[]},{path:"/curriculum",component:"curriculum",title:"课表",icon:"",meta:{routeType:"layout"},children:[]}];var d=n(4505);const m=(0,o.Q_)("user",{state:()=>({userInfo:{},roles:void 0}),actions:{async login({data:e,appKey:t}){return(0,i.o4)("GYM"===t?e:e.access_token),(0,i.ex)(t),Promise.resolve()},async getUserInfo(){const e=(0,i.Ng)();if(!e)return Promise.reject({code:"500",data:null,message:"获取用户信息出错!"});"GYM"!==e||(0,i.H6)(5e3);const t=await(0,l.gx)("GYM"===e?a.bJ:a.Kk);return 200!==t.code?Promise.reject(t):(this.userInfo=f(e,t.data),this.roles=e,Promise.resolve("GYM"===e?c:u))},async loginOut(){const e=await(0,l.hk)("GYM"===this.roles?a.zt:a.CH);return 200!==e.code?Promise.reject(e):(this.resetUser(),Promise.resolve(e))},resetUser(){this.userInfo={},this.roles=void 0,(0,d.AV)(),(0,i.gy)(),(0,i.gm)(),(0,s.P)(),s.Z.push({path:"/login"})}}});var p=()=>m(r.h);function f(e,t){let n,o,r,a;return"GYM"===e?(n=t.avatar,o=t.username,r=t.realName,a=t.phone):(n=t.avatar,o=t.nickname,r=t.realName,a=t.phone),{avatar:n,username:o,realName:r,phone:a}}},4789:function(e,t,n){e.exports=n.p+"img/userImg.e8e21d4c.png"}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.m=e,function(){n.amdO={}}(),function(){var e=[];n.O=function(t,o,r,a){if(!o){var i=1/0;for(c=0;c<e.length;c++){o=e[c][0],r=e[c][1],a=e[c][2];for(var s=!0,l=0;l<o.length;l++)(!1&a||i>=a)&&Object.keys(n.O).every((function(e){return n.O[e](o[l])}))?o.splice(l--,1):(s=!1,a<i&&(i=a));if(s){e.splice(c--,1);var u=r();void 0!==u&&(t=u)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[o,r,a]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,o){return n.f[o](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{25:"10a6bf22",77:"c777ee5c",365:"207cd5d1",421:"7cea7a31",530:"a9aeccbb",808:"d0984145",901:"2600f8d0",967:"ce6c8833"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{25:"adf5a690",77:"586635e1",365:"eb7f6ac0",421:"bdf73258",808:"dd15425d",901:"c50714b7",967:"700f8b8c"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="classroom:";n.l=function(o,r,a,i){if(e[o])e[o].push(r);else{var s,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=o),e[o]=[r];var m=function(t,n){s.onerror=s.onload=null,clearTimeout(p);var r=e[o];if(delete e[o],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=m.bind(null,s.onerror),s.onload=m.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p="/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,n,o,r){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css";var i=function(n){if(a.onerror=a.onload=null,"load"===n.type)o();else{var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,a.parentNode&&a.parentNode.removeChild(a),r(l)}};return a.onerror=a.onload=i,a.href=t,n?n.parentNode.insertBefore(a,n.nextSibling):document.head.appendChild(a),a},t=function(e,t){for(var n=document.getElementsByTagName("link"),o=0;o<n.length;o++){var r=n[o],a=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(a===e||a===t))return r}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){r=i[o],a=r.getAttribute("data-href");if(a===e||a===t)return r}},o=function(o){return new Promise((function(r,a){var i=n.miniCssF(o),s=n.p+i;if(t(i,s))return r();e(o,s,null,r,a)}))},r={143:0};n.f.miniCss=function(e,t){var n={25:1,77:1,365:1,421:1,808:1,901:1,967:1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=o(e).then((function(){r[e]=0}),(function(t){throw delete r[e],t})))}}}(),function(){var e={143:0};n.f.j=function(t,o){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(365!=t){var a=new Promise((function(n,o){r=e[t]=[n,o]}));o.push(r[2]=a);var i=n.p+n.u(t),s=new Error,l=function(o){if(n.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,r[1](s)}};n.l(i,l,"chunk-"+t,t)}else e[t]=0},n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,a,i=o[0],s=o[1],l=o[2],u=0;if(i.some((function(t){return 0!==e[t]}))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)var c=l(n)}for(t&&t(o);u<i.length;u++)a=i[u],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(c)},o=self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var o=n.O(void 0,[998],(function(){return n(1096)}));o=n.O(o)})();