import{a1 as i,o as u,P as m,b as d,c as p,v as f,d as t,q as v,a as _}from"./vue-core-Di3IuVqe.js";import b from"./StatistiquesAtelier-D8kvTVVi.js";import{_ as h}from"./index-BxIwIJfy.js";import"./cjs-helpers-psZwOBky.js";import"./primevue-CfIk0_DY.js";import"./DataGrid-CoMfrBJA.js";import"./useAgGridConfig-Dp3DkgaV.js";import"./ComboDynamique-BzWI4ISP.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";const w={class:"control-buttons"},E=["title"],k={__name:"StatistiquesAtelierTV",setup(F){const c=i(),e=_(!1),a=()=>{document.fullscreenElement&&document.exitFullscreen(),c.push("/")},n=async()=>{try{document.fullscreenElement?(await document.exitFullscreen(),e.value=!1):(await document.documentElement.requestFullscreen(),e.value=!0)}catch{}},l=()=>{e.value=!!document.fullscreenElement},r=o=>{o.key==="F11"&&(o.preventDefault(),n())};return u(()=>{document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",r),setTimeout(()=>{n()},500)}),m(()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",r)}),(o,s)=>(d(),p("div",{class:"tv-container",onDblclick:n},[f(b,{modeTV:!0,refreshInterval:3e4}),t("div",w,[t("button",{class:"control-btn",onClick:a,title:"Retour à l'application"},[...s[0]||(s[0]=[t("i",{class:"pi pi-arrow-left"},null,-1)])]),t("button",{class:"control-btn",onClick:n,title:e.value?"Quitter le plein écran (Échap)":"Plein écran (F11 ou double-clic)"},[t("i",{class:v(e.value?"pi pi-window-minimize":"pi pi-window-maximize")},null,2)],8,E)])],32))}},A=h(k,[["__scopeId","data-v-fa50bbd0"]]);export{A as default};
