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.f9240906.js";import{b as h}from"./index.769a5dcd.js";import"./index.51ec6257.js";import"./index.5459a547.js";import"./ArrowLeftOutlined.8ef55b3d.js";import"./index.db62f8f7.js";import"./index.694cbe8b.js";import"./FullscreenOutlined.16e551d7.js";import"./index.37126e12.js";import"./useWindowSizeFn.e05ba499.js";import"./useContentViewHeight.51fb01ea.js";import"./uniqBy.8dd4637c.js";import"./_baseIteratee.dc5455db.js";import"./get.10de1502.js";import"./index.bc1d0b0a.js";import"./useRefs.704645bf.js";import"./PlusOutlined.d3b73e32.js";import"./RedoOutlined.74a164b2.js";import"./index.55d1c7b9.js";import"./TabPane.9a67e6d2.js";import"./lock.a04a9985.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};