import{K as i,f as u,af as m,o as d,c as p,a as f,b as t,E as v,r as _}from"./vendor-0kGcmQpG.js";import E from"./StatistiquesAtelier-BJ9XzbmJ.js";import{_ as b}from"./index-Bn9WoKhP.js";import"./DataGrid-tb6QVwpZ.js";import"./useAgGridConfig-DjXMc6wb.js";import"./ComboDynamique-CzrtYPe1.js";const h={class:"control-buttons"},w=["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},s=o=>{o.key==="F11"&&(o.preventDefault(),n())};return u(()=>{document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",s),setTimeout(()=>{n()},500)}),m(()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",s)}),(o,r)=>(d(),p("div",{class:"tv-container",onDblclick:n},[f(E,{modeTV:!0,refreshInterval:3e4}),t("div",h,[t("button",{class:"control-btn",onClick:a,title:"Retour à l'application"},[...r[0]||(r[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,w)])],32))}},C=b(k,[["__scopeId","data-v-fa50bbd0"]]);export{C as default};
