"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[1526],{13014:function(t,e,n){n.d(e,{A:function(){return m}});var a=n(20641),l=n(53751);const i={class:"tts-container"},s={class:"field text-container"},u=["disabled"],r={class:"field lang-container"},d=["disabled"],o={class:"field buttons"},c=["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",o,[(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,c)])],32)])}var k=n(91387),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(66262);const v=(0,f.A)(g,[["render",p],["__scopeId","data-v-a248454a"]]);var m=v},31526:function(t,e,n){n.r(e),n.d(e,{default:function(){return d}});var a=n(20641);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.google"})}var i=n(13014),s={name:"Tts",components:{Panel:i.A}},u=n(66262);const r=(0,u.A)(s,[["render",l]]);var d=r}}]);
//# sourceMappingURL=1526.33e3fffd.js.map