var i=Object.defineProperty;var f=(a,e,r)=>e in a?i(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r;var o=(a,e,r)=>f(a,typeof e!="symbol"?e+"":e,r);import{m as _,C as p,f as u,R as v,j as I}from"./index-DNWTsqTH.js";var h=Object.defineProperty,C=Object.getOwnPropertyDescriptor,l=(a,e,r,s)=>{for(var t=s>1?void 0:s?C(e,r):e,c=a.length-1,n;c>=0;c--)(n=a[c])&&(t=(s?n(e,r,t):n(t))||t);return s&&t&&h(e,r,t),t};let m=class extends _(p){constructor(){super(...arguments);o(this,"cameraIframe");o(this,"cameraIFrameSource","")}startPlayback(){const r=this.buildAbsoluteUrl(this.camera.stream_url||"").toString();this.cameraIFrameSource=r,this.$emit("raw-camera-url",r)}stopPlayback(){this.cameraIFrameSource="",this.cameraIframe.src=""}};l([v("streamingElement")],m.prototype,"cameraIframe",2);m=l([u({})],m);var b=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("iframe",{ref:"streamingElement",staticStyle:{border:"none",width:"100%"},style:{"aspect-ratio":(e.camera.aspect_ratio||"16:9").replace(":","/"),...e.cameraStyle},attrs:{src:e.cameraIFrameSource}})},y=[],P=I(m,b,y,!1,null,null);const F=P.exports;export{F as default};
