import{u as p,_ as m}from"./index.js";import{b as c}from"./index-1adf9d7f.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-08ef39cb.js";import{ai as h}from"./antd-fb8ca017.js";import"./index-922f0b14.js";import"./index-094bd341.js";import"./index-5222460c.js";import"./index-be3bd629.js";import"./useContentViewHeight-3410df66.js";import"./useWindowSizeFn-40274562.js";import"./lock-4bf6aa77.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};
