import{u as p,_ as m}from"./index.js";import{b as c}from"./index-505b5f6e.js";import{d,Z as n,_ as r,F as u,a7 as _,a1 as a,a6 as f,ad as C,k}from"./vue-72a104e4.js";import{ab as h}from"./antd-835b28bf.js";import"./index-e9fd0db7.js";import"./index-12377682.js";import"./index-b4ea7fff.js";import"./index-a5c222af.js";import"./useContentViewHeight-91c9d265.js";import"./useWindowSizeFn-7c45a656.js";import"./lock-f3b41037.js";const v=d({name:"ThemeColorPicker",components:{CheckOutlined:h},props:{colorList:{type:Array,default:()=>[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:o}=p("setting-theme-picker");function s(i){e.event&&c(e.event,i)}return{prefixCls:o,handleClick:s}}});const y=["onClick"];function $(e,o,s,i,g,b){const l=f("CheckOutlined");return n(),r("div",{class:a(e.prefixCls)},[(n(!0),r(u,null,_(e.colorList||[],t=>(n(),r("span",{key:t,onClick:L=>e.handleClick(t),class:a([`${e.prefixCls}__item`,{[`${e.prefixCls}__item--active`]:e.def===t}]),style:C({background:t})},[k(l)],14,y))),128))],2)}const E=m(v,[["render",$]]);export{E as default};
