import{u as p,_ as m}from"./index.js";import{b as c}from"./index-ddf909b2.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{ad as h}from"./antd-0679333d.js";import"./index-679d8a0a.js";import"./index-fb041426.js";import"./index-263734bb.js";import"./index-0a75e8e4.js";import"./useContentViewHeight-1771cd5b.js";import"./useWindowSizeFn-1db11f4f.js";import"./lock-a170f962.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};
