platypush/platypush/backend/http/webapp/dist/static/js/4589.f7212e88.js

2 lines
7.6 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[4589],{4589:function(s,l,a){a.r(l),a.d(l,{default:function(){return Zs}});var t=a(6252);const e=s=>((0,t.dD)("data-v-aa2b30ec"),s=s(),(0,t.Cn)(),s),n={class:"tv-samsung-ws-container"},o={class:"controls",tabindex:"1"},c={class:"row section"},i={class:"col-4"},u=e((()=>(0,t._)("i",{class:"fas fa-home"},null,-1))),r=[u],v=e((()=>(0,t._)("div",{class:"col-4"}," ",-1))),w={class:"col-4"},_=e((()=>(0,t._)("i",{class:"fas fa-power-off"},null,-1))),d=[_],h={class:"row rows section"},m={class:"row"},f={class:"col-4"},b=e((()=>(0,t._)("i",{class:"fas fa-undo"},null,-1))),p=[b],g={class:"col-4"},k=e((()=>(0,t._)("i",{class:"fas fa-info"},null,-1))),y=[k],C={class:"col-4"},q=e((()=>(0,t._)("i",{class:"fas fa-plug"},null,-1))),D=[q],U={class:"row"},B={class:"col-4"},x=e((()=>(0,t._)("i",{class:"fas fa-bars"},null,-1))),I=[x],O={class:"col-4"},R=e((()=>(0,t._)("i",{class:"fas fa-tools"},null,-1))),S=[R],H={class:"col-4"},L=e((()=>(0,t._)("i",{class:"fas fa-globe"},null,-1))),M=[L],P={class:"volume-channel section"},T={class:"volume col-5"},V={class:"row"},Z=e((()=>(0,t._)("i",{class:"fas fa-plus"},null,-1))),E=[Z],G=e((()=>(0,t._)("div",{class:"row"},[(0,t._)("i",{class:"fas fa-volume-up"})],-1))),K={class:"row"},N=e((()=>(0,t._)("i",{class:"fas fa-minus"},null,-1))),W=[N],Y={class:"row"},j=e((()=>(0,t._)("i",{class:"fas fa-volume-mute"},null,-1))),z=[j],A=e((()=>(0,t._)("div",{class:"col-2"}," ",-1))),F={class:"channel col-5"},J={class:"row"},Q=e((()=>(0,t._)("i",{class:"fas fa-plus"},null,-1))),X=[Q],$=e((()=>(0,t._)("div",{class:"row"}," CH ",-1))),ss={class:"row"},ls=e((()=>(0,t._)("i",{class:"fas fa-minus"},null,-1))),as=[ls],ts={class:"row"},es=e((()=>(0,t._)("i",{class:"fas fa-keyboard"},null,-1))),ns=[es],os={class:"directions section"},cs={class:"row"},is=e((()=>(0,t._)("div",{class:"col-4"}," ",-1))),us={class:"col-4"},rs=e((()=>(0,t._)("i",{class:"fas fa-chevron-up"},null,-1))),vs=[rs],ws=e((()=>(0,t._)("div",{class:"col-4"}," ",-1))),_s={class:"row"},ds={class:"col-4"},hs=e((()=>(0,t._)("i",{class:"fas fa-chevron-left"},null,-1))),ms=[hs],fs={class:"col-4"},bs=e((()=>(0,t._)("i",{class:"far fa-circle"},null,-1))),ps=[bs],gs={class:"col-4"},ks=e((()=>(0,t._)("i",{class:"fas fa-chevron-right"},null,-1))),ys=[ks],Cs={class:"row"},qs=e((()=>(0,t._)("div",{class:"col-4"}," ",-1))),Ds={class:"col-4"},Us=e((()=>(0,t._)("i",{class:"fas fa-chevron-down"},null,-1))),Bs=[Us],xs=e((()=>(0,t._)("div",{class:"col-4"}," ",-1))),Is={class:"row colors section"},Os={class:"col-3"},Rs={class:"col-3"},Ss={class:"col-3"},Hs={class:"col-3"};function Ls(s,l,a,e,u,_){return(0,t.wg)(),(0,t.iD)("div",n,[(0,t._)("div",o,[(0,t._)("div",c,[(0,t._)("div",i,[(0,t._)("button",{onClick:l[0]||(l[0]=(...s)=>_.home&&_.home(...s)),value:"home",title:"Home"},r)]),v,(0,t._)("div",w,[(0,t._)("button",{onClick:l[1]||(l[1]=(...s)=>_.power&&_.power(...s)),class:"power pull-right",value:"power",title:"Power Off"},d)])]),(0,t._)("div",h,[(0,t._)("div",m,[(0,t._)("div",f,[(0,t._)("button",{onClick:l[2]||(l[2]=(...s)=>_.back&&_.back(...s)),value:"back",title:"Back"},p)]),(0,t._)("div",g,[(0,t._)("button",{onClick:l[3]||(l[3]=(...s)=>_.info&&_.info(...s)),value:"info",title:"Info"},y)]),(0,t._)("div",C,[(0,t._)("button",{onClick:l[4]||(l[4]=(...s)=>_.source&&_.source(...s)),value:"source",title:"Select source"},D)])]),(0,t._)("div",U,[(0,t._)("div",B,[(0,t._)("button",{onClick:l[5]||(l[5]=(...s)=>_.menu&&_.menu(...s)),value:"menu",title:"Menu"},I)]),(0,t._)("div",O,[(0,t._)("button",{onClick:l[6]||(l[6]=(...s)=>_.tools&&_.tools(...s)),value:"tools",title:"Tools"},S)]),(0,t._)("div",H,[(0,t._)("button",{onClick:l[7]||(l[7]=(...s)=>_.browser&&_.browser(...s)),value:"browser",title:"Open browser"},M)])])]),(0,t._)("div",P,[(0,t._)("div",T,[(0,t._)("div",V,[(0,t._)("button",{onClick:l[8]||(l[8]=(...s)=>_.volumeUp&&_.volumeUp(...s)),value:"volume_up",title:"Volume Up"},E)]),G,(0,t._)("div",K,[(0,t._)("button",{onClick:l[9]||(l[9]=(...s)=>_.volumeDown&&_.volumeDown(...s)),value:"volume_down",title:"Volume Down"},W)]),(0,t._)("div",Y,[(0,t._)("button",{onClick:l[10]||(l[10]=(...s)=>_.mute&&_.mute(...s)),value:"mute",title:"Mute"},z)])]),A,(0,t._)("div",F,[(0,t._)("div",J,[(0,t._)("button",{onClick:l[11]||(l[11]=(...s)=>_.channelUp&&_.channelUp(...s)),value:"channel_up",title:"Next Channel"},X)]),$,(0,t._)("div",ss,[(0,t._)("button",{onClick:l[12]||(l[12]=(...s)=>_.channelDown&&_.channelDown(...s)),value:"channel_down",title:"Previous Channel"},as)]),(0,t._)("div",ts,[(0,t._)("button",{onClick:l[13]||(l[13]=(...s)=>_.channel&&_.channel(...s)),value:"channel",title:"Select Channel"},ns)])])]),(0,t._)("div",os,[(0,t._)("div",cs,[is,(0,t._)("div",us,[(0,t._)("button",{onClick:l[14]||(l[14]=(...s)=>_.up&&_.up(...s)),value:"up",title:"Up"},vs)]),ws]),(0,t._)("div",_s,[(0,t._)("div",ds,[(0,t._)("button",{onClick:l[15]||(l[15]=(...s)=>_.left&&_.left(...s)),value:"left",title:"Left"},ms)]),(0,t._)("div",fs,[(0,t._)("button",{onClick:l[16]||(l[16]=(...s)=>_.enter&&_.enter(...s)),value:"enter",title:"Enter/OK"},ps)]),(0,t._)("div",gs,[(0,t._)("button",{onClick:l[17]||(l[17]=(...s)=>_.right&&_.right(...s)),value:"right",title:"Right"},ys)])]),(0,t._)("div",Cs,[qs,(0,t._)("div",Ds,[(0,t._)("button",{onClick:l[18]||(l[18]=(...s)=>_.down&&_.down(...s)),value:"down",title:"Down"},Bs)]),xs])]),(0,t._)("div",Is,[(0,t._)("div",Os,[(0,t._)("button",{class:"color red",onClick:l[19]||(l[19]=(...s)=>_.color&&_.color(...s)),value:"red",title:"Red Button"})]),(0,t._)("div",Rs,[(0,t._)("button",{class:"color green",onClick:l[20]||(l[20]=(...s)=>_.color&&_.color(...s)),value:"green",title:"Green Button"})]),(0,t._)("div",Ss,[(0,t._)("button",{class:"color yellow",onClick:l[21]||(l[21]=(...s)=>_.color&&_.color(...s)),value:"yellow",title:"Yellow Button"})]),(0,t._)("div",Hs,[(0,t._)("button",{class:"color blue",onClick:l[22]||(l[22]=(...s)=>_.color&&_.color(...s)),value:"blue",title:"Blue Button"})])])])])}var Ms=a(8637),Ps={name:"TvSamsungWs",mixins:[Ms.Z],methods:{async up(){await this.request("tv.samsung.ws.up")},async down(){await this.request("tv.samsung.ws.down")},async left(){await this.request("tv.samsung.ws.left")},async right(){await this.request("tv.samsung.ws.right")},async enter(){await this.request("tv.samsung.ws.enter")},async power(){await this.request("tv.samsung.ws.power")},async red(){await this.request("tv.samsung.ws.red")},async yellow(){await this.request("tv.samsung.ws.yellow")},async green(){await this.request("tv.samsung.ws.green")},async blue(){await this.request("tv.samsung.ws.blue")},async volumeUp(){await this.request("tv.samsung.ws.volume_up")},async volumeDown(){await this.request("tv.samsung.ws.volume_down")},async channelUp(){await this.request("tv.samsung.ws.channel_up")},async channelDown(){await this.request("tv.samsung.ws.channel_down")},async mute(){await this.request("tv.samsung.ws.mute")},async home(){await this.request("tv.samsung.ws.home")},async back(){await this.request("tv.samsung.ws.back")},async menu(){await this.request("tv.samsung.ws.menu")},async info(){await this.request("tv.samsung.ws.info")},async source(){await this.request("tv.samsung.ws.source")},async tools(){await this.request("tv.samsung.ws.tools")},async browser(){const s=prompt("URL to open").trim();s.length&&await this.request("tv.samsung.ws.open_browser",{url:s})},async channel(){const s=prompt("Channel number").trim();s.length&&await this.request("tv.samsung.ws.channel",{channel:parseInt(s)})},async color(s){await this.request("tv.samsung.ws."+s.target.value)}}},Ts=a(3744);const Vs=(0,Ts.Z)(Ps,[["render",Ls],["__scopeId","data-v-aa2b30ec"]]);var Zs=Vs}}]);
//# sourceMappingURL=4589.f7212e88.js.map