1import{_ as p}from"./img_placeholder-hFi2xKGU.js";import{z as w,m as b,L as C,r as $,o as l,c as a,b as t,a as k,w as i,n as d,v as e,a8 as r,x as B,F as u,i as I,j as f,t as S}from"./index-w-acfVLT.js";const j={class:"group"},z=t("div",{class:"w-full h-full flex justify-center items-center bg-[--el-fill-color-light]"},[t("img",{class:"w-[100px]",src:p})],-1),E=t("div",{class:"w-full h-full flex justify-center items-center bg-[--el-fill-color-light]"},[t("img",{class:"w-[100px]",src:p})],-1),F={class:"mt-4 flex items-center"},L=["src"],H={class:"text-[16px] font-bold truncate group-hover:text-[var(--el-color-primary)]"},N={class:"flex flex-col md:flex-row"},V={key:0},M={class:"flex-grow"},R={__name:"course_card",props:{data:{type:Object,default:()=>({})},showLangIcon:{type:Boolean,default:!1},height:{type:String,default:"174px"},disableHoverEffect:{type:Boolean,default:!1}},setup(n){const h=w(),m=b(()=>h.state.langMus),g=n,{data:s,showLangIcon:v,height:_}=C(g);return(o,T)=>{const x=$("el-image");return l(),a("div",j,[t("div",{class:"relative w-full rounded-2xl",style:B({height:e(_)})},[k(x,{class:d(["w-full h-full rounded-2xl shadow-[0_16px_16px_-16px_rgba(23,25,29,0.2)] transition-all duration-[400ms]",n.disableHoverEffect?"":"group-hover:opacity-80 group-hover:scale-105 group-hover:translate-y-[-10px]"]),src:o.$util.translateText(e(s).coverCn,e(s).coverFn),lazy:""},{placeholder:i(()=>[z]),error:i(()=>[E]),_:1},8,["class","src"]),t("div",{class:d(["absolute top-0 right-0 transition-all duration-[400ms]",n.disableHoverEffect?"":"group-hover:opacity-90 group-hover:scale-105"])},[r(o.$slots,"top-right")],2),r(o.$slots,"image",{data:e(s)})],4),t("div",F,[(l(!0),a(u,null,I(m.value.list,(c,y)=>(l(),a(u,{key:y},[e(v)&&e(s).langId==c.id?(l(),a("img",{key:0,class:"w-[32px] h-[32px] rounded-full mr-2",src:c.icon},null,8,L)):f("",!0)],64))),128)),t("div",H,S(o.$util.translateText(e(s).nameCn,e(s).nameFn)),1)]),t("div",N,[e(s).levelInfo?(l(),a("div",V,[r(o.$slots,"custom-content",{data:e(s).levelInfo})])):f("",!0),t("div",M,[r(o.$slots,"direction-content",{data:e(s)})])])])}}};export{R as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.