import{Y as f,cA as y}from"./index.17037962789732.js";import"./index.170379627897320.js";import{d as g,k as h,m as C,r as b,o as s,x as n,F as w,h as B,D as r,u as k,z as l,A as x,c as A,a as d,b as p,B as T}from"./vue.1703796278973.js";import{_ as I}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";const L=["onClick"],N={class:"'way-item-title"},S={class:"way-item-label"},V={class:"way-item-image"},j=["src"],z=g({__name:"TopCard",props:{typeList:{type:Array,default:()=>[]},value:{type:String,default:""},disabled:{type:Boolean,default:!1},labelBottom:{type:Boolean,default:!1}},emits:["update:value","change"],setup(o,{emit:c}){const a=o,i=h((a==null?void 0:a.value)||"");C(()=>a.value,t=>{i.value=t||""},{immediate:!0,deep:!0});const u=t=>{a.disabled||(i.value=t,c("update:value",t),c("change",t))};return(t,D)=>{const m=b("AIcon"),_=f,v=y;return s(),n("div",{class:r(["trigger-way-warp",{disabled:o.disabled}])},[(s(!0),n(w,null,B(o.typeList,e=>(s(),n("div",{key:e.value,class:r(["trigger-way-item",{active:k(i)===e.value,labelBottom:o.labelBottom}]),onClick:F=>u(e.value)},[l("div",N,[l("span",S,x(e.label),1),e.tip?(s(),A(v,{key:0},{default:d(()=>[p(_,{title:e.tip},{default:d(()=>[p(m,{type:"QuestionCircleOutlined",class:"way-item-icon"})]),_:2},1032,["title"])]),_:2},1024)):T("",!0)]),l("div",V,[l("img",{width:48,src:e.image},null,8,j)])],10,L))),128))],2)}}});const K=I(z,[["__scopeId","data-v-85a088c8"]]);export{K as default};
