!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p=".",r(r.s=0)}({"./src/backgroundVideoEmbed.css":function(e,t){},"./src/backgroundVideoEmbed.js":function(e,t,r){"use strict";r.r(t);r("./src/backgroundVideoEmbed.css");window.vcv.on("ready",(function(e,t){if("merge"!==e){var r="[data-vce-assets-video-embed]";r=t?'[data-vcv-element="'+t+'"] '+r:r,window.vceAssetsBackgroundVideoEmbed(r)}}))},"./src/plugin.js":function(e,t){!function(e,t){var r=function(r){var i=t.querySelectorAll(r);return(i=[].slice.call(i)).forEach((function(t){t.getVceEmbedVideo?t.getVceEmbedVideo.updatePlayer():function(t){({element:null,player:null,videoId:null,resizer:null,ratio:null,setup:function(t){return t.getVceEmbedVideo?this.updatePlayer():(t.getVceEmbedVideo=this,this.element=t,this.resizer=t.querySelector(".vce-asset-video-embed-sizer"),this.createPlayer(),this.checkOrientation=this.checkOrientation.bind(this),e.addEventListener("resize",this.checkOrientation)),t.getVceEmbedVideo},updatePlayerData:function(){var e=t.dataset.vceAssetsVideoEmbed||null;e!==this.videoId&&(this.videoId=e,this.player=t.querySelector(t.dataset.vceAssetsVideoReplacer))},createPlayer:function(){var e=this;this.updatePlayerData(),this.player.load(),this.player.onloadedmetadata=function(){e.resizer.setAttribute("width",e.player.videoWidth),e.resizer.setAttribute("height",e.player.videoHeight),e.resizer.setAttribute("data-vce-assets-video-state","visible"),e.ratio=parseInt(e.player.videoWidth)/parseInt(e.player.videoHeight),e.checkOrientation()},this.player.muted=!0,this.player.loop=!0;var t=this.player.play();void 0!==t&&t.then(e=>{}).catch(e=>{})},updatePlayer:function(){this.createPlayer()},checkOrientation:function(){var t=this.element.dataset.vceAssetsVideoOrientationClass||null,r=e.getComputedStyle(this.element.parentNode);t&&(parseInt(r.width)/parseInt(r.height)>this.ratio?this.element.classList.add(t):this.element.classList.remove(t))}}).setup(t)}(t)})),1===i.length?i.pop():i};e.vceAssetsBackgroundVideoEmbed=r}(window,document)},0:function(e,t,r){r("./src/plugin.js"),e.exports=r("./src/backgroundVideoEmbed.js")}});