import"./index-ae60edf9.js";import{S as u}from"./index-ce3b9548.js";import{b as m}from"./back-099fa84a.js";import{d as f,o as t,c as l,a as o,aX as n,an as c,O as b,r as h,u as y,P as k}from"./@vue-cb50a1c4.js";const w={class:"flex items-center justify-between"},p={key:1,class:"flex items-center justify-between text-[#999]"},x=["src"],C=f({__name:"index",props:{checked:{type:Boolean},loading:{type:Boolean,default:!1},border:{type:Boolean,default:!1},arrow:{type:Boolean,default:!0},showSwitch:{type:Boolean,default:!1},title:null,subTitle:null,danger:{type:Boolean}},emits:["updateValue","clickItem"],setup(e,{emit:s}){const i=a=>{s("updateValue",a)},r=()=>{s("clickItem")};return(a,g)=>{const d=u;return t(),l("div",{onClick:r,class:c(["flex items-center justify-between bg-white px-4 py-3",{"border-b border-[rgba(153,153,153,0.3)] last:border-0":e.border}])},[o("div",{class:c({"text-error-text":e.danger})},n(e.title),3),o("div",w,[e.showSwitch?(t(),b(d,{key:0,size:"20",loading:e.loading,"model-value":e.checked,"onUpdate:modelValue":i},null,8,["loading","model-value"])):(t(),l("div",p,[h(a.$slots,"default",{},()=>[o("div",null,n(e.subTitle),1)]),e.arrow?(t(),l("img",{key:0,class:"h-[24px] w-[24px]",src:y(m)},null,8,x)):k("",!0)]))])],2)}}});export{C as _};
