module.exports=[213235,(a,b,c)=>{let d,e,f;var g=Object.create,h=Object.defineProperty,i=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,m=(a,b,c,d)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let e of j(b))l.call(a,e)||e===c||h(a,e,{get:()=>b[e],enumerable:!(d=i(b,e))||d.enumerable});return a},n=(a,b,c)=>{let d;return(d="symbol"!=typeof b?b+"":b)in a?h(a,d,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[d]=c,c},o={},p={default:()=>u};for(var q in p)h(o,q,{get:p[q],enumerable:!0});b.exports=m(h({},"__esModule",{value:!0}),o);var r=(f=null!=(d=a.r(572131))?g(k(d)):{},m(!e&&d&&d.__esModule?f:h(f,"default",{value:d,enumerable:!0}),d)),s=a.r(187287),t=a.r(441795);class u extends r.Component{constructor(){super(...arguments),n(this,"callPlayer",s.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"secondsLoaded",null),n(this,"mute",()=>{this.setMuted(!0)}),n(this,"unmute",()=>{this.setMuted(!1)}),n(this,"ref",a=>{this.container=a})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(a){this.duration=null,(0,s.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then(b=>{if(!this.container)return;let{playerOptions:c,title:d}=this.props.config;this.player=new b.Player(this.container,{url:a.replace("/manage/videos",""),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...c}),this.player.ready().then(()=>{let a=this.container.querySelector("iframe");a.style.width="100%",a.style.height="100%",d&&(a.title=d)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",a=>this.props.onSeek(a.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:a})=>{this.currentTime=a}),this.player.on("progress",({seconds:a})=>{this.secondsLoaded=a}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",a=>this.props.onPlaybackRateChange(a.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(a=>{this.duration=a})}play(){let a=this.callPlayer("play");a&&a.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(a,b=!0){this.callPlayer("setCurrentTime",a),b||this.pause()}setVolume(a){this.callPlayer("setVolume",a)}setMuted(a){this.callPlayer("setMuted",a)}setLoop(a){this.callPlayer("setLoop",a)}setPlaybackRate(a){this.callPlayer("setPlaybackRate",a)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){let{display:a}=this.props;return r.default.createElement("div",{key:this.props.url,ref:this.ref,style:{width:"100%",height:"100%",overflow:"hidden",display:a}})}}n(u,"displayName","Vimeo"),n(u,"canPlay",t.canPlay.vimeo),n(u,"forceLoad",!0)}];

//# sourceMappingURL=node_modules_react-player_lazy_players_Vimeo_46e0e076.js.map