import{u as e,w as t,b as s,c as i,d as a,e as o,k as m,j as c,n as l}from"./index.1713442796762.js";const n={class:"theme-control space-y-2"},h={class:"labelItem flex-col"},d={class:"flex w-full items-center justify-between"},f=o("span",{class:"flex-shrink-0 text-sm"},"显示时间",-1),g={class:"ml-auto"},r={class:"m-2 bg-gray-100 rounded-lg w-full p-2 grid grid-cols-3 grid-rows-2 gap-2 timeSet"},u={class:"labelItem h-11"},k=o("span",{class:"flex-shrink-0"},"日期字体颜色",-1),v={class:"ml-auto"},p={__name:"time",setup(p){const C=e();return t(C.state.config.theme,(e=>{C.commit("updateConfig")})),(e,t)=>{const p=s("el-switch"),w=s("el-color-picker");return i(),a("div",n,[o("div",h,[o("div",d,[f,o("div",g,[m(p,{size:"small",modelValue:c(C).state.config.theme.timeView,"onUpdate:modelValue":t[0]||(t[0]=e=>c(C).state.config.theme.timeView=e)},null,8,["modelValue"])])]),o("div",r,[o("div",{class:l({chooseItem:c(C).state.config.theme.timeMonthDay}),onClick:t[1]||(t[1]=e=>c(C).state.config.theme.timeMonthDay=!c(C).state.config.theme.timeMonthDay)}," 年月 ",2),o("div",{class:l({chooseItem:c(C).state.config.theme.timeWeek}),onClick:t[2]||(t[2]=e=>c(C).state.config.theme.timeWeek=!c(C).state.config.theme.timeWeek)}," 周 ",2),o("div",{class:l({chooseItem:c(C).state.config.theme.timeLunar}),onClick:t[3]||(t[3]=e=>c(C).state.config.theme.timeLunar=!c(C).state.config.theme.timeLunar)}," 农历 ",2),o("div",{class:l(["time24",{chooseItem:c(C).state.config.theme.time24}]),onClick:t[4]||(t[4]=e=>c(C).state.config.theme.time24=!c(C).state.config.theme.time24)}," 24小时制 ",2),o("div",{class:l({chooseItem:c(C).state.config.theme.timeSecond}),onClick:t[5]||(t[5]=e=>c(C).state.config.theme.timeSecond=!c(C).state.config.theme.timeSecond)}," 秒 ",2),o("div",{class:l({chooseItem:c(C).state.config.theme.timeGanZhi}),onClick:t[6]||(t[6]=e=>c(C).state.config.theme.timeGanZhi=!c(C).state.config.theme.timeGanZhi)}," 干支 ",2)])]),o("div",u,[k,o("div",v,[m(w,{modelValue:c(C).state.config.theme.timeColor,"onUpdate:modelValue":t[7]||(t[7]=e=>c(C).state.config.theme.timeColor=e)},null,8,["modelValue"])])])])}}};export{p as default};