import{av as m,a as l,di as c,b as d,a_ as u,o as r,h as o,F as _,b2 as C,q as a,bk as f,n as k}from"./index.3f97cc33.js";import{b as h}from"./index.432261d4.js";import"./index.57748f4c.js";import"./index.fb0ad110.js";import"./ArrowLeftOutlined.5c21fff9.js";import"./index.222f0459.js";import"./index.3e181a91.js";import"./FullscreenOutlined.79df86c0.js";import"./index.8e28a80a.js";import"./useWindowSizeFn.63c1b6a0.js";import"./useContentViewHeight.1983ed20.js";import"./uniqBy.66af1ece.js";import"./_baseIteratee.74621dd5.js";import"./get.7e5a4802.js";import"./index.8c14bde9.js";import"./useRefs.428779fe.js";import"./PlusOutlined.f1f3bd13.js";import"./RedoOutlined.fe1eaec0.js";import"./index.f74085c4.js";import"./TabPane.2340d2dc.js";import"./lock.b909ef7b.js";const v=l({name:"ThemeColorPicker",components:{CheckOutlined:c},props:{colorList:{type:Array,defualt:[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:i}=d("setting-theme-picker");function n(s){e.event&&h(e.event,s)}return{prefixCls:i,handleClick:n}}}),y=["onClick"];function b(e,i,n,s,$,g){const p=u("CheckOutlined");return r(),o("div",{class:a(e.prefixCls)},[(r(!0),o(_,null,C(e.colorList||[],t=>(r(),o("span",{key:t,onClick:L=>e.handleClick(t),class:a([`${e.prefixCls}__item`,{[`${e.prefixCls}__item--active`]:e.def===t}]),style:f({background:t})},[k(p)],14,y))),128))],2)}var M=m(v,[["render",b]]);export{M as default};