var i=Object.defineProperty;var u=(a,e,r)=>e in a?i(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var n=(a,e,r)=>(u(a,typeof e!="symbol"?e+"":e,r),r);import{m as _,C as p,R as g,e as f}from"./index-7a0f6c6e.js";import{C as h}from"./camera-987eaf29.js";var v=Object.defineProperty,C=Object.getOwnPropertyDescriptor,l=(a,e,r,t)=>{for(var s=t>1?void 0:t?C(e,r):e,c=a.length-1,o;c>=0;c--)(o=a[c])&&(s=(t?o(e,r,s):o(s))||s);return t&&s&&v(e,r,s),s};let m=class extends _(h){constructor(){super(...arguments);n(this,"cameraImage");n(this,"cameraImageSource","")}startPlayback(){const r=this.buildAbsoluteUrl(this.camera.urlStream||"");r.searchParams.set("cacheBust",Date.now().toString()),this.cameraImageSource=r.toString(),this.$emit("raw-camera-url",this.cameraImageSource)}stopPlayback(){this.cameraImageSource="",this.cameraImage.src=""}};l([g("streamingElement")],m.prototype,"cameraImage",2);m=l([p({})],m);var S=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("img",{ref:"streamingElement",style:e.cameraStyle,attrs:{src:e.cameraImageSource,crossorigin:e.crossorigin}})},I=[],P=f(m,S,I,!1,null,null,null,null);const d=P.exports;export{d as default};
