import{a as x,r as u,w as g,aj as p,J as w,o as v,K as i,b as e,c as y,a9 as B,G as c,Q as _,R as V,S as T,P as N}from"./vue.D1BjjNmv.js";import{_ as S}from"./_plugin-vue_export-helper.DlAUqK2U.js";const j={class:"modal-body"},z={class:"option-group"},D=["onClick"],E={class:"option-header"},F={class:"option-title"},G={class:"option-description"},I={class:"modal-footer"},J=x({__name:"index",props:{visible:{type:Boolean}},emits:["update:visible","select"],setup(f,{emit:m}){const d=f,a=m,t=u(d.visible),n=u(null);g(()=>d.visible,s=>{t.value=s,s&&(n.value=null)});const b=[{value:1,label:"课堂借用"},{value:2,label:"特殊借用"}];function h(s){n.value=s,setTimeout(()=>{a("select",s),a("update:visible",!1)},200)}function r(){a("update:visible",!1)}return(s,l)=>{const k=p("el-button"),C=p("el-dialog");return v(),w(C,{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=o=>t.value=o),title:"选择借用性质",width:"500px","close-on-click-modal":!1,onClose:r,class:"borrow-type-dialog","show-close":!1},{footer:i(()=>[e("div",I,[T(k,{onClick:r,class:"btns-close"},{default:i(()=>l[2]||(l[2]=[N("关闭")])),_:1})])]),default:i(()=>[e("div",j,[e("div",z,[(v(),y(V,null,B(b,o=>e("div",{key:o.value,onClick:K=>h(o.value),class:c(["option-item",{selected:n.value===o.value}])},[l[1]||(l[1]=e("div",{class:"selection-indicator"},[e("i",{class:"fas fa-check"})],-1)),e("div",E,[e("div",{class:c(["option-icon",o.value===1?"classroom-icon":"special-icon"])},[e("i",{class:c(o.value===1?"fas fa-chalkboard-teacher":"fas fa-exclamation-triangle")},null,2)],2),e("div",F,_(o.label),1)]),e("div",G,_(o.value===1?"课堂教学活动、实验操作、课程项目等教学时段的正式使用":"突发紧急情况、非常规教学需求或特殊事件下的临时性借用"),1)],10,D)),64))])])]),_:1},8,["modelValue"])}}}),Q=S(J,[["__scopeId","data-v-aa02daa3"]]);export{Q as default};
