import{$ as _,a4 as M,i as t,an as h,a6 as k,M as v,f as b}from"./app-JmgyQoR0.js";import{b as g,a as d,w as B,c as p,h as V,t as x,l as c,j as o,K as s,E as n,z as l,u as m}from"./vue-y3KLWBaS.js";const w={class:"_formRoot"},y=m("br",null,null,-1),j=m("i",{class:"ph-floppy-disk-back ph-bold ph-lg"},null,-1),N=g({__name:"instance-mute",setup(C){const a=d(_.mutedInstances.join(`
`)),i=d(!1);async function f(){let u=a.value.trim().split(`
`).map(e=>e.trim()).filter(e=>e);await b("i/update",{mutedInstances:u}),i.value=!1,a.value=u.join(`
`)}return B(a,()=>{i.value=!0}),p(()=>[]),p(()=>[]),M({title:t.ts.instanceMute,icon:"ph-speaker-none ph-bold ph-lg"}),(u,e)=>(V(),x("div",w,[c(h,null,{default:o(()=>[s(n(l(t).ts._instanceMute.title),1)]),_:1}),c(k,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=r=>a.value=r),class:"_formBlock"},{label:o(()=>[s(n(l(t).ts._instanceMute.heading),1)]),caption:o(()=>[s(n(l(t).ts._instanceMute.instanceMuteDescription),1),y,s(n(l(t).ts._instanceMute.instanceMuteDescription2),1)]),_:1},8,["modelValue"]),c(v,{primary:"",disabled:!i.value,class:"_formBlock",onClick:e[1]||(e[1]=r=>f())},{default:o(()=>[j,s(" "+n(l(t).ts.save),1)]),_:1},8,["disabled"])]))}});export{N as default};
