import{b,d as S,cc as T,l as N,O as c,r as l,o as s,c as a,F as d,q as i,u as o,E as k,w as _,p as m,f as w,g as B,t as V,as as y,R as u,am as z}from"./index-5427279b.js";import{u as D,c as O,n as R,o as A,m as F}from"./chartEditStore-53dc1709.js";import"./plugin-49832ae5.js";import"./icon-d6196121.js";const H={class:"go-chart-theme-color"},L={class:"go-flex-items-center"},q=S({__name:"index",setup(I){T(e=>({"499260ce":o(C)}));const n=D(),p=N(),C=c(()=>p.getAppTheme),h=c(()=>n.getEditCanvasConfig.chartThemeColor),g=e=>y(e).splice(0,6),f=e=>{n.setEditCanvasConfig(F.CHART_THEME_COLOR,e)};return(e,M)=>{const v=l("n-text"),x=l("n-card");return s(),a("div",H,[(s(!0),a(d,null,i(o(O),(E,t)=>(s(),k(x,{key:t,class:z(["card-box",{selected:t===o(h)}]),size:"small",hoverable:"",embedded:"",onClick:r=>f(t)},{default:_(()=>[m("div",L,[w(v,null,{default:_(()=>[B(V(o(R)[t]),1)]),_:2},1024),(s(!0),a(d,null,i(g(E.color),r=>(s(),a("span",{class:"theme-color-item",key:r,style:u({backgroundColor:r})},null,4))),128))]),m("div",{class:"theme-bottom",style:u({backgroundImage:o(A)[t]})},null,4)]),_:2},1032,["class","onClick"]))),128))])}}});var K=b(q,[["__scopeId","data-v-87b1111a"]]);export{K as default};
