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-B_2CoVdl.js";import{b as D}from"./index-mJaUOqVi.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CC3OF1BO.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-DD-46f26.js";import"./useMultipleTabSetting-DUkfrN4E.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};
