"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2392],{2392:function(t,e,n){n.r(e),n.d(e,{default:function(){return d}});var a=n(641);function l(t,e,n,l,i,s){const u=(0,a.g2)("Panel");return(0,a.uX)(),(0,a.Wv)(u,{"plugin-name":"tts"})}var i=n(9960),s={name:"Tts",components:{Panel:i.A}},u=n(6262);const r=(0,u.A)(s,[["render",l]]);var d=r},9960:function(t,e,n){n.d(e,{A:function(){return m}});var a=n(641),l=n(3751);const i={class:"tts-container"},s={class:"field text-container"},u=["disabled"],r={class:"field lang-container"},d=["disabled"],c={class:"field buttons"},o=["disabled"];function p(t,e,n,p,k,g){return(0,a.uX)(),(0,a.CE)("div",i,[(0,a.Lk)("form",{onSubmit:e[0]||(e[0]=(0,l.D$)(((...t)=>g.talk&&g.talk(...t)),["prevent"]))},[(0,a.Lk)("div",s,[(0,a.Lk)("label",null,[(0,a.Lk)("input",{type:"text",name:"text",placeholder:"Text to say",disabled:k.talking},null,8,u)])]),(0,a.Lk)("div",r,[(0,a.Lk)("label",null,[(0,a.Lk)("input",{type:"text",name:"language",placeholder:"Language code",disabled:k.talking},null,8,d)])]),(0,a.Lk)("div",c,[(0,a.Lk)("button",{type:"submit",disabled:k.talking},e[1]||(e[1]=[(0,a.Lk)("i",{class:"fa fa-volume-up"},null,-1)]),8,o)])],32)])}var k=n(2002),g={name:"Panel",mixins:[k.A],props:{pluginName:{type:String,required:!0}},data(){return{talking:!1}},methods:{async talk(t){const e=[...t.target.querySelectorAll("input")].reduce(((t,e)=>(e.value.length&&(t[e.name]=e.value),t)),{});this.talking=!0;try{await this.request(`${this.pluginName}.say`,e)}finally{this.talking=!1}}}},f=n(6262);const v=(0,f.A)(g,[["render",p],["__scopeId","data-v-a248454a"]]);var m=v}}]);
//# sourceMappingURL=2392.6203d19b.js.map