import{d as E,X as R,g as x,ab as A,e as B,j as p,o as T,f as D,n as S,a1 as k,u as e,l as a,b as l,z as b,af as F,ag as P,a as d,p as M,ah as g,ai as N,R as O,r,_ as j}from"./index-ongssuUn.js";const X=["title"],q={class:"compass-clock-container"},G=["src"],H={class:"settings-content"},J={class:"settings-header"},K={class:"settings-body"},Q=E({name:"Clock5Content",__name:"content",setup(W){const V=R(),h=x(),{clock5Config:t}=A(V),_=r(!1),u=r(!1),C=s=>{if(s!==void 0){u.value=s;return}u.value=!u.value},z=r(["#000000","#1a1a1a","#34495e","#16b8f3","#27ae60","#2980b9","#8e44ad","#2c2c54","#833471","#6c5ce7","#fd79a8","#721422","#0f4c81","#a47864","#008c8c"]),y=r(["#858586","#a4a4a5","#a4a4a5","#ffffff","#008c8c","#27ae60","#2980b9"]),$=r(["#ffffff","#2980b9","#8e44ad","#833471","#6c5ce7","#fd79a8","#721422"]),c=r(null),i=r(!1),w=()=>{i.value=!i.value,c.value&&(i.value?c.value.play():c.value.pause())},L=()=>{c.value&&i.value&&c.value.play()};B(()=>{});const f=()=>{h.updateBackupDebounceConfirm(["more"])};return(s,o)=>{const v=p("SvgIcon"),m=p("el-form-item"),I=p("el-slider"),U=p("el-form");return T(),D("div",{class:"clock5-content",ref:"clockContainerRef",style:O({backgroundColor:e(t).bgColor}),onClick:o[7]||(o[7]=n=>C(!1))},[S(a("div",{class:"settings-btn",onClick:o[0]||(o[0]=b(n=>C(),["stop"]))},[l(v,{name:"el el-Setting",size:20,color:"#999"})],512),[[k,!e(_)]]),a("div",{class:"sound-control-btn",onClick:b(w,["stop"]),title:e(i)?s.$t("关闭声音"):s.$t("开启声音")},[l(v,{name:e(i)?"el el-Open":"el el-TurnOff",size:20,color:e(i)?"#409EFF":"#999"},null,8,["name","color"])],8,X),a("div",q,[l(F,{width:e(t).fontSize/.022,fontSize:e(t).fontSize,textColor:e(t).textColor,activeColor:e(t).activeColor,onPlay:L},null,8,["width","fontSize","textColor","activeColor"])]),a("audio",{ref_key:"audioRef",ref:c,src:`${e(P)}/yy_music/music.mp3`},null,8,G),l(N,{name:"slide-fade"},{default:d(()=>[S(a("div",{class:"settings-panel",onClick:o[6]||(o[6]=b(()=>{},["stop"]))},[a("div",H,[a("div",J,[a("h3",null,M(s.$t("指南针时钟设置")),1),a("div",{class:"close-btn",onClick:o[1]||(o[1]=n=>C())},[l(v,{name:"el el-Close",size:18})])]),a("div",K,[l(U,{"label-width":"100px","label-position":"left",size:"small"},{default:d(()=>[l(m,{label:s.$t("背景颜色")},{default:d(()=>[l(g,{onChange:f,showAlpha:!0,colorList:e(z),modelValue:e(t).bgColor,"onUpdate:modelValue":o[2]||(o[2]=n=>e(t).bgColor=n)},null,8,["colorList","modelValue"])]),_:1},8,["label"]),l(m,{label:s.$t("文字颜色")},{default:d(()=>[l(g,{onChange:f,showAlpha:!0,colorList:e(y),modelValue:e(t).textColor,"onUpdate:modelValue":o[3]||(o[3]=n=>e(t).textColor=n)},null,8,["colorList","modelValue"])]),_:1},8,["label"]),l(m,{label:s.$t("激活颜色")},{default:d(()=>[l(g,{onChange:f,showAlpha:!0,colorList:e($),modelValue:e(t).activeColor,"onUpdate:modelValue":o[4]||(o[4]=n=>e(t).activeColor=n)},null,8,["colorList","modelValue"])]),_:1},8,["label"]),l(m,{label:s.$t("字体大小")},{default:d(()=>[l(I,{onChange:f,min:6,max:30,modelValue:e(t).fontSize,"onUpdate:modelValue":o[5]||(o[5]=n=>e(t).fontSize=n)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])])],512),[[k,e(u)&&!e(_)]])]),_:1})],4)}}}),Z=j(Q,[["__scopeId","data-v-fcc8204b"]]);export{Z as default};
