import{cA as m}from"./index.17037962789732.js";import"./index.170379627897320.js";import{d as i,l as y,r as v,o as a,x as l,F as f,h as g,D as r,z as s,A as b,c as C,a as h,b as B,B as k,y as w,u as x}from"./vue.1703796278973.js";const A=["onClick"],N={class:"way-item-title"},P={class:"label"},S={class:"way-item-image"},V=["src"],z=i({name:"TopCard"}),j=i({...z,props:{options:{type:Array,default:()=>[]},value:{type:String,default:""},class:{type:String,default:""},disabled:{type:Boolean,default:!1},labelBottom:{type:Boolean,default:!1}},emits:["update:value","select"],setup(t,{emit:n}){const c=t,d=y(()=>[c.class,"trigger-way-warp",c.disabled?"disabled":""]),p=o=>{n("update:value",o),n("select",o)};return(o,D)=>{const u=v("AIcon"),_=m;return a(),l("div",{class:r(x(d))},[(a(!0),l(f,null,g(t.options,e=>(a(),l("div",{key:e.value,class:r(["trigger-way-item",t.value===e.value?"active":"",t.labelBottom?"label-bottom":""]),onClick:()=>p(e.value)},[s("div",N,[s("span",P,b(e.label),1),e.tip?(a(),C(_,{key:0,content:e.tip},{default:h(()=>[B(u,{type:"QuestionCircleOutlined",class:"icon"})]),_:2},1032,["content"])):k("",!0)]),s("div",S,[s("img",w({width:"48"},e.imgProps,{src:e.img}),null,16,V)])],10,A))),128))],2)}}});export{j as _};
