import{r as p,X as x,b7 as b,a as S,u as w,aS as c,aT as d,bf as l,a$ as f,b0 as V,ba as r,N as y,bc as C,aB as h,b9 as A,a_ as B,aC as E,b8 as N,aX as k}from"./index-xnhGKCfe.js";/* empty css              */import{S as z}from"./index-D09RZK4J.js";const L="/assets/bellow-sKe24weK.mp3",P="/assets/menu-C2fdkQzE.mp3",u=x({}),D={bellow:L,menu:P},I=p(!0);let m=!1;function K(){return{loadAudio:async()=>{if(m)return;const t=[];Object.entries(D).forEach(([a,s])=>{t.push(new Promise(n=>{const e=new Audio(s);e.loop=!1,e.volume=.5,e.style.display="none",e.setAttribute("id",a),document.body.appendChild(e),e.addEventListener("canplaythrough",()=>{(u[a]??(u[a]={})).play=()=>{e.play().catch(g=>{})},n()}),e.load()}))}),await Promise.all(t),m=!0},audio:u,isSound:I}}const R={class:"languageSuffix"},U=b({__name:"settings",setup(v){const{getActiveLanguage:t}=S(),{t:a}=w(),{isSound:s}=K(),n=p({sound:a("t1206"),version:"version",language:a("t1205")}),e=E([{type:"text",key:"sound",suffix:!0,prefix:!0,onClick:()=>{s.value=!s.value}},{type:"text",key:"language",icon:"lang",suffix:!0,onClick:()=>{}}]);return(g,o)=>{const _=z;return d(),c(N,{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=i=>n.value=i),configs:e.value,hideSubmit:!0},{soundPrefix:l(()=>[n.value.sound?(d(),c(B,{key:0,name:"icon_sound","icon-class":"pre"})):A("",!0)]),soundSuffix:l(()=>[y(_,{class:C({soundSuffix:!0,noActive:!r(s)}),disabled:!0,modelValue:r(s),"onUpdate:modelValue":o[0]||(o[0]=i=>h(s)?s.value=i:null),"active-color":"var(--main_color)","inactive-color":"var(--secondary_color2)",size:"18px"},null,8,["class","modelValue"])]),versionSuffix:l(()=>[...o[2]||(o[2]=[f("span",{class:"versionSuffix"},"Version:1.2.4",-1)])]),languageSuffix:l(()=>[f("span",R,V(r(t)),1)]),_:1},8,["modelValue","configs"])}}}),F=k(U,[["__scopeId","data-v-0d5b7466"]]);export{F as default};
