import{m as p,B as c,H as v,P as m,C as _,n as u}from"./index-Bku7SJna.js";import"./vuetify-Ce4WN_Dg.js";import"./overlayscrollbars-CiKU261J.js";import"./echarts-DzoUeqWp.js";var f=Object.defineProperty,b=Object.getOwnPropertyDescriptor,o=(a,e,t,r)=>{for(var s=r>1?void 0:r?b(e,t):e,n=a.length-1,l;n>=0;n--)(l=a[n])&&(s=(r?l(e,t,s):l(s))||s);return r&&s&&f(e,t,s),s};let i=class extends p(c,v){constructor(){super(...arguments),this.isVisible=!0}get url(){var e;return this.convertUrl((e=this.camSettings)==null?void 0:e.stream_url,this.printerUrl)}get webcamStyle(){var e,t,r;return{transform:this.generateTransform((e=this.camSettings.flip_horizontal)!=null?e:!1,(t=this.camSettings.flip_vertical)!=null?t:!1,(r=this.camSettings.rotation)!=null?r:0)}}visibilityChanged(e){this.isVisible=e}};o([m({required:!0})],i.prototype,"camSettings",2);o([m({default:null})],i.prototype,"printerUrl",2);i=o([_],i);var h=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("video",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}],staticClass:"webcamImage",style:e.webcamStyle,attrs:{src:e.url,autoplay:""}})},g=[],y=u(i,h,g,!1,null,"05ec379f");const w=y.exports;export{w as default};
