(this.webpackJsonpvertical=this.webpackJsonpvertical||[]).push([[106],{1690:function(e,n,t){var a,o=t(1110),l=t(1099),r=t(1100),i=t(1097),u=t(1101),s=t(1102),c=t(1094),y=Object.create,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,h=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,v=function(e,n,t,a){if(n&&"object"===typeof n||"function"===typeof n){var o,l=c(f(n));try{var r=function(){var l=o.value;b.call(e,l)||l===t||p(e,l,{get:function(){return n[l]},enumerable:!(a=d(n,l))||a.enumerable})};for(l.s();!(o=l.n()).done;)r()}catch(i){l.e(i)}finally{l.f()}}return e},P=function(e,n,t){return function(e,n,t){n in e?p(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t}(e,"symbol"!==typeof n?n+"":n,t),t},k={};!function(e,n){for(var t in n)p(e,t,{get:n[t],enumerable:!0})}(k,{default:function(){return C}}),e.exports=(a=k,v(p({},"__esModule",{value:!0}),a));var m=function(e,n,t){return t=null!=e?y(h(e)):{},v(!n&&e&&e.__esModule?t:p(t,"default",{value:e,enumerable:!0}),e)}(t(2)),g=t(1098),w=t(1109),C=function(e){"use strict";s(t,e);var n=u(t);function t(){var e;return l(this,t),e=n.apply(this,arguments),P(i(e),"callPlayer",g.callPlayer),P(i(e),"playerID",e.props.config.playerId||"".concat("wistia-player-").concat((0,g.randomString)())),P(i(e),"onPlay",(function(){var n;return(n=e.props).onPlay.apply(n,arguments)})),P(i(e),"onPause",(function(){var n;return(n=e.props).onPause.apply(n,arguments)})),P(i(e),"onSeek",(function(){var n;return(n=e.props).onSeek.apply(n,arguments)})),P(i(e),"onEnded",(function(){var n;return(n=e.props).onEnded.apply(n,arguments)})),P(i(e),"onPlaybackRateChange",(function(){var n;return(n=e.props).onPlaybackRateChange.apply(n,arguments)})),P(i(e),"mute",(function(){e.callPlayer("mute")})),P(i(e),"unmute",(function(){e.callPlayer("unmute")})),e}return r(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var n=this,t=this.props,a=t.playing,l=t.muted,r=t.controls,i=t.onReady,u=t.config,s=t.onError;(0,g.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then((function(e){u.customControls&&u.customControls.forEach((function(n){return e.defineControl(n)})),window._wq=window._wq||[],window._wq.push({id:n.playerID,options:o({autoPlay:a,silentAutoPlay:"allow",muted:l,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r},u.options),onReady:function(e){n.player=e,n.unbind(),n.player.bind("play",n.onPlay),n.player.bind("pause",n.onPause),n.player.bind("seek",n.onSeek),n.player.bind("end",n.onEnded),n.player.bind("playbackratechange",n.onPlaybackRateChange),i()}})}),s)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.callPlayer("time",e),n||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.url,n=e&&e.match(w.MATCH_URL_WISTIA)[1],t="wistia_embed wistia_async_".concat(n);return m.default.createElement("div",{id:this.playerID,key:n,className:t,style:{width:"100%",height:"100%"}})}}]),t}(m.Component);P(C,"displayName","Wistia"),P(C,"canPlay",w.canPlay.wistia),P(C,"loopOnEnded",!0)}}]);