!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=9)}([function(t,e){t.exports=React},function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(0),s=i(2),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){if(null!=this.props.attributes.src){var t={width:"100%",height:"100%"};return""!=this.props.attributes.align&&(t.textAlign=this.props.attributes.align),o.createElement("figure",{className:"rnAdvanceVideo",style:t},this.GetVideoControl())}},e.prototype.GetVideoControl=function(){var t=this,e={width:"100%",height:"100%"};this.props.attributes.width>=0&&(e.width=this.props.attributes.width),e.display="inline-block";var i=o.createElement("div",{style:e},o.createElement("video",{src:this.props.attributes.src,controls:this.props.attributes.showControls,loop:this.props.attributes.loop,autoPlay:this.props.attributes.autoPlay}));return this.props.IsDesign?o.createElement(s.default,{className:"rnVideoResizer"+(this.props.isSelected?" is-focused":""),maxWidth:"100%",size:e,style:{display:"inline-block"},lockAspectRatio:!0,onResizeStart:function(){t.props.setAttributes({width:-1,height:-1}),t.props.toggleSelection(!1)},onResizeStop:function(e,i,n,r){t.props.setAttributes({width:parseInt(n.offsetWidth),height:parseInt(n.offsetHeight)}),t.props.toggleSelection(!0)},enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},handleClasses:{topRight:"rnAdvanceVideo__resize-handler-top-right",bottomRight:"rnAdvanceVideo__resize-handler-bottom-right",topLeft:"rnAdvanceVideo__resize-handler-top-left",bottomLeft:"rnAdvanceVideo__resize-handler-bottom-left"}},i):i},e}(o.Component);e.VideoControl=a},function(t,e,i){"use strict";i.r(e);var n=i(0),r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},o=function(){function t(t,e){for(var i=0;i1)for(var i=1;i0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=0&&(i.width=this.props.attributes.width),this.props.attributes.height>=0&&(i.height=this.props.attributes.height),e=u.createElement(c.VideoControl,o({IsDesign:!0},this.props))}return[this.props.isSelected&&u.createElement(p,null,u.createElement(d,{label:"Show Controls",checked:this.props.attributes.showControls,onChange:function(e){t.props.setAttributes({showControls:e})}}),u.createElement(d,{label:"AutoPlay",checked:this.props.attributes.autoPlay,onChange:function(e){t.props.setAttributes({autoPlay:e})}}),u.createElement(d,{label:"Loop",checked:this.props.attributes.loop,onChange:function(e){t.props.setAttributes({loop:e})}})),this.GetBlockControls(),e]},e.prototype.VideoSelected=function(t){this.setState({src:this.props.attributes.src,id:this.props.attributes.id})},e.prototype.GetBlockControls=function(){var t=this;return this.props.attributes.width>=0||this.props.attributes.height>=0?u.createElement(f,null,u.createElement(v,{value:this.props.attributes.align,onChange:function(e){t.props.setAttributes({align:e})}}),u.createElement(b,null,u.createElement("button",{className:"resizeButton components-button components-icon-button components-toolbar__control",style:{padding:0,margin:0},onClick:this.ResetSize},u.createElement("i",{title:"Reset Size",className:"fa fa-arrows-alt","aria-hidden":"true",style:{cursor:"pointer"}})))):null},e.prototype.ResetSize=function(){this.props.setAttributes({width:-1,height:-1,align:""})},e}(u.Component);e.AdvanceVideoDesign=g}).call(this,i(6))},function(t,e,i){"use strict";var n=this&&this.__assign||Object.assign||function(t){for(var e,i=1,n=arguments.length;i