import"./modulepreload-polyfill.b7f2da20.js";/* empty css             */import{N,aW as T,y as $,B as z,l as F,bF as I,aP as A,Q as k,R as x,o as l,c as u,V as c,W as r,a,a3 as _,a0 as d,X as E,a_ as L,Y as R,Z as U,$ as O,a1 as K,aK as p,t as Q,d4 as X,a$ as Y,bk as Z,bO as j,bP as q}from"./index.2e2ba873.js";/* empty css               */import{B as H}from"./style.488e5a30.js";import{D as J}from"./theme-map.83df99de.js";const ee={class:"tracker"},te={class:"content-wrapper"},ae=a("h3",{class:"b_text text1 text_center mt_0"},"\u624B\u67C4\u7A97\u53E3\u64CD\u4F5C",-1),se=_(" \u6253\u5F00\u4E3B\u7A97\u53E3 "),oe=a("span",{class:"gamepad-cursor-modal"},null,-1),ne=a("span",{class:"gamepad-cursor-modal"},null,-1),le=_(" \u7A97\u53E3\u5C45\u4E2D "),ue=a("span",{class:"gamepad-cursor-modal"},null,-1),ie=_(" \u5173\u95ED\u5F53\u524D\u7A97\u53E3 "),ce=a("span",{class:"gamepad-cursor-modal"},null,-1),re=a("span",{class:"gamepad-cursor-modal cursor-modal-close"},null,-1),de={class:"flex_col items_start"},pe=["onClick"],_e={key:0},me={key:1},ve={key:2},fe={key:3},ge=a("span",{class:"gamepad-cursor-player"},null,-1),he=N({__name:"Tracker",setup(we){const b=location.href.includes("win=liveRoom"),g=T(),{isShowGpMenuModal:n,isShowGpPlayerMenu:h}=$(g),v=z(()=>b&&h.value),i=F({}),D=[{action:"toggleSidebar",text:"\u4FA7\u8FB9\u680F\uFF08\u5F39\u5E55\u8BC4\u8BBA\uFF09"},{action:"togglePlay",text:"\u6682\u505C"},{action:"toggleDm",text:"\u5173\u95ED\u5F39\u5E55"},{action:"volumeUp",text:"\u97F3\u91CF +"},{action:"volumeDown",text:"\u97F3\u91CF -"},{action:"toggleFullscreen",text:"\u5168\u5C4F\u64AD\u653E"}],f=F(I());A("window/maximizeChange",({data:e})=>f.value=e);const P=()=>{f.value||p("system/gamepadAction",{action:"centerWindow"})},w=()=>{p("system/gamepadAction",{action:"livePlayerAction",params:{action:"livePlayerInfo"}})};A("system/gamepadLiveInfo",({data:e})=>i.value=e);const B=({action:e})=>{p("system/gamepadAction",{action:"livePlayerAction",params:{action:e}}),e!=="volumeUp"&&e!=="volumeDown"?h.value=!1:(setTimeout(()=>w(),100),setTimeout(()=>{var t,s;Q({content:`\u97F3\u91CF\uFF1A${Math.round(((s=(t=i.value)==null?void 0:t.volume)==null?void 0:s.value)||0)}%`})},200))},M=()=>{n.value=!1,X()},S=()=>{n.value=!1,Y()},W=()=>{n.value=!1,P()},V=()=>{n.value=!1,Z()},y=(e,t)=>{if(e){let s={width:360,height:243};t&&(s={width:300,height:580},w(),g.flashPlayerCursors(!0)),p("system/gamepadAction",{action:"showGpView",params:s})}else p("system/gamepadAction",{action:"hideGpView"})};return k(v,e=>y(e,!0)),k(n,e=>y(e,!1)),(e,t)=>{const s=x("v-button"),G=x("v-dialog");return l(),u("div",ee,[c(G,{visible:E(n),"onUpdate:visible":t[0]||(t[0]=o=>L(n)?n.value=o:null),"class-name":"i_dialog py_lg",maskClosable:!1,width:360,"is-show-default-footer":!1,onCancel:t[1]||(t[1]=o=>n.value=!1)},{default:r(()=>[a("div",te,[ae,c(s,{class:"dropdown_select--button w_100 mt_sm p_relative fs_4 text_left",onClick:M},{default:r(()=>[se,oe]),_:1}),c(s,{class:"dropdown_select--button w_100 mt_sm p_relative fs_4 text_left",onClick:S},{default:r(()=>[_(d(f.value?"\u7A97\u53E3\u9000\u51FA\u6700\u5927\u5316":"\u7A97\u53E3\u6700\u5927\u5316")+" ",1),ne]),_:1}),c(s,{class:"dropdown_select--button w_100 mt_sm p_relative fs_4 text_left",onClick:W},{default:r(()=>[le,ue]),_:1}),c(s,{class:"dropdown_select--button w_100 mt_sm p_relative fs_4 text_left",onClick:V},{default:r(()=>[ie,ce]),_:1}),re])]),_:1},8,["visible"]),E(v)?(l(),u("div",{key:0,id:"gamepad-player-menu",onClick:t[3]||(t[3]=o=>v.value=!1)},[a("div",{class:"gp-menu-wrapper",onClick:t[2]||(t[2]=O(()=>{},["stop"]))},[a("ul",de,[(l(),u(R,null,U(D,o=>{var C;return a("li",{class:"p_relative",key:o.action,onClick:ye=>B(o)},[o.action==="togglePlay"?(l(),u("span",_e,d(i.value.playingStatus?"\u6682\u505C":"\u64AD\u653E"),1)):o.action==="toggleDm"?(l(),u("span",me,d((C=i.value.danmaku)!=null&&C.display?"\u5173\u95ED\u5F39\u5E55":"\u6253\u5F00\u5F39\u5E55"),1)):o.action==="toggleFullscreen"?(l(),u("span",ve,d(i.value.playerStatus===2?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F\u64AD\u653E"),1)):(l(),u("span",fe,d(o.text),1)),ge],8,pe)}),64))])])])):K("",!0)])}}}),m=j(he);m.use(q());m.use(H);m.use(J);m.mount("#app");
