import{l as m,bG as y,az as _,V as b,b2 as u,Y as a,F as r,y as k,X as q,a3 as t,bJ as v,b4 as n,bo as o,bS as c,bM as d,bI as w,W as z,bT as x}from"./index.69621fe4.js";import{_ as C}from"./logo.0988188a.js";const P={class:"column justify-center",style:{"min-height":"90vh"}},B={class:"col-4 column justify-center"},I=a("img",{alt:"XContact logo",src:C,style:{width:"500px"}},null,-1),N={href:"https://www.xcontactcenter.com.br/politica_de_privacidade.html",target:"_blank",class:"text-grey self-end"},Q={key:0,class:"col-4 justify-center"},V={class:"text-h6"},D={class:"q-pa-md q-gutter-y-sm column"},M={class:"q-ml-sm text-subtitle2"},$={class:"q-pa-md q-gutter-y-sm column"},j={class:"q-ml-sm text-subtitle2"},U={class:"q-pa-md q-gutter-y-sm column"},X={class:"q-ml-sm text-subtitle2"},S={__name:"IndexPage",setup(E){const l=m("prompt"),s=m("prompt"),i=m("prompt"),{t:p}=y();navigator.permissions.query({name:"microphone"}).then(function(e){l.value=e.state,e.onchange=function(){l.value=this.state}}),navigator.permissions.query({name:"notifications"}).then(function(e){i.value=e.state,e.onchange=function(){i.value=this.state}}),navigator.permissions.query({name:"camera"}).then(function(e){s.value=e.state,e.onchange=function(){s.value=this.state}});function g(){navigator.mediaDevices.getUserMedia({audio:!0}).then(function(e){l.value="granted"}).catch(function(e){l.value="denied",console.log(e)})}function h(){Notification.requestPermission().then(e=>{i.value=e})}function f(){navigator.mediaDevices.getUserMedia({video:!0}).then(function(e){s.value="granted"}).catch(function(e){s.value="denied",console.log(e)})}return(e,F)=>(_(),b(x,{class:"fit column no-wrap items-center q-pa-lg"},{default:u(()=>[a("div",P,[a("div",B,[I,a("a",N,r(k(p)("privacy_policy_full")),1)]),l.value!=="granted"||i.value!=="granted"||s.value!=="granted"?(_(),q("div",Q,[t(w,{class:"cabecalho"},{default:u(()=>[t(v,null,{default:u(()=>[a("div",V,r(e.$t("permissoes")),1)]),_:1}),t(v,null,{default:u(()=>[a("div",D,[a("span",null,[n(t(c,{name:"check_circle",color:"green",size:"3em"},null,512),[[o,l.value==="granted"]]),n(t(c,{name:"block",color:"red",size:"3em"},null,512),[[o,l.value==="denied"]]),n(t(c,{name:"warning",color:"yellow",size:"3em"},null,512),[[o,l.value==="prompt"]]),a("span",M,r(e.$t("acesso_microfone")),1),n(t(d,{color:"primary",icon:"lock_open",class:"q-ml-sm",onClick:g},null,512),[[o,l.value!=="granted"]])])]),a("div",$,[a("span",null,[n(t(c,{name:"check_circle",color:"green",size:"3em"},null,512),[[o,i.value==="granted"]]),n(t(c,{name:"block",color:"red",size:"3em"},null,512),[[o,i.value==="denied"]]),n(t(c,{name:"warning",color:"yellow",size:"3em"},null,512),[[o,i.value==="prompt"]]),a("span",j,r(e.$t("notificacoes_area_de_trabalho")),1),n(t(d,{color:"primary",icon:"lock_open",class:"q-ml-sm",onClick:h},null,512),[[o,i.value!=="granted"]])])]),a("div",U,[a("span",null,[n(t(c,{name:"check_circle",color:"green",size:"3em"},null,512),[[o,s.value==="granted"]]),n(t(c,{name:"block",color:"red",size:"3em"},null,512),[[o,s.value==="denied"]]),n(t(c,{name:"warning",color:"yellow",size:"3em"},null,512),[[o,s.value==="prompt"]]),a("span",X,r(e.$t("acesso_camera")),1),n(t(d,{color:"primary",icon:"lock_open",class:"q-ml-sm",onClick:f},null,512),[[o,s.value!=="granted"]])])])]),_:1})]),_:1})])):z("",!0)])]),_:1}))}};export{S as default};
