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-CDWW6V_M.js";import{C as b,B as $,at as g,_ as y}from"./index-CYriLmQo.js";import{b as D}from"./index-GjumQ7Np.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-qSr7C5NQ.js";import"./index-CxQILSKV.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-CXg3DDAh.js";import"./useMultipleTabSetting-Bb15bRQg.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};
