import{r as i,h as s,H as t,e}from"./p-38650bfb.js";const a=class{constructor(s){i(this,s),this.width=720,this.height=520}handleWindowResize(){window.requestAnimationFrame(()=>this.resizeVideo())}componentDidLoad(){window.requestAnimationFrame(()=>this.resizeVideo())}resizeVideo(){if(this.el){const i=this.el.parentElement,s=null==i?void 0:i.offsetWidth;if(!s)return;this.width=s,this.height=.625*s}}render(){const{videoId:i}=this;return i?s(t,null,s("script",{src:"//fast.wistia.com/assets/external/E-v1.js",async:!0}),s("div",{class:"wistia_embed wistia_async_"+i,style:{width:this.width+"px",height:this.height+"px"}}," ")):null}get el(){return e(this)}};a.style=".sc-wistia-video-h{display:block}.sc-wistia-video-h .wistia_embed.sc-wistia-video{margin:auto}";export{a as wistia_video}