import{d as f,f as c,w as d,U as u,a2 as a,a3 as r,F as C,ae as k,ac as h,a6 as m,k as v}from"./vue-vendor-CxLCUzY4.js";import{az as _}from"./antd-vue-vendor-CahNzUUa.js";import{C as b,B as $,at as g,_ as y}from"./index-Cy4uayzW.js";import{b as D}from"./index-BQJSeoLx.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-CJ4Xt1FM.js";import"./index-Bdn0r8CG.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-CuqgO3-E.js";import"./useMultipleTabSetting-DhBHiAGf.js";const z=f({name:"ThemeColorPicker",components:{CheckOutlined:_},props:{colorList:{type:Array,defualt:[]},event:{type:Number},def:{type:String}},setup(e){const{prefixCls:i}=b("setting-theme-picker"),{getDarkMode:n}=$(),o=c(!1);function l(s){e.event&&D(e.event,s)}return d(()=>n.value,s=>{o.value=e.event===1?!1:s===g.DARK},{immediate:!0}),{prefixCls:i,handleClick:l,isDisabledColor:o}}}),B=["onClick"];function L(e,i,n,o,l,s){const p=u("CheckOutlined");return a(),r("div",{class:m(e.prefixCls)},[(a(!0),r(C,null,k(e.colorList||[],t=>(a(),r("span",{key:t,onClick:O=>!e.isDisabledColor&&e.handleClick(t),class:m([`${e.prefixCls}__item`,{[`${e.prefixCls}__item--active`]:e.def===t,[`${e.prefixCls}__item--black`]:t=="#ffffff",disabledColor:e.isDisabledColor}]),style:h({background:t})},[v(p)],14,B))),128))],2)}const j=y(z,[["render",L]]);export{j as default};
