import{L as m,a as l,da as c,b as d,aG as u,o as r,h as o,F as C,aJ as _,q as a,bn as f,n as k}from"./index.c32990f8.js";import{b as h}from"./index.c95ddf9c.js";import"./index.fd979a7c.js";import"./index.1a868190.js";import"./ArrowLeftOutlined.261ec900.js";import"./index.b9cb2689.js";import"./index.cc8794ff.js";import"./FullscreenOutlined.c00357d2.js";import"./index.508bc7ec.js";import"./useWindowSizeFn.aeae38b8.js";import"./useContentViewHeight.9f7d31eb.js";import"./uniqBy.ac8c5ce3.js";import"./_baseIteratee.b53edf8d.js";import"./get.0f83bcc9.js";import"./index.ec7e65df.js";import"./useRefs.e81244b6.js";import"./PlusOutlined.36faec12.js";import"./RedoOutlined.322588a1.js";import"./index.b9570ac8.js";import"./lock.5b93a1fe.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 $(e,i,n,s,b,g){const p=u("CheckOutlined");return r(),o("div",{class:a(e.prefixCls)},[(r(!0),o(C,null,_(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 K=m(v,[["render",$]]);export{K as default};