(self.webpackChunkOne=self.webpackChunkOne||[]).push([["1998"],{15873:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n,o=r(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let i=e=>o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fillRule:"evenodd",d:"M1.9 22.1h8.2V1.9H1.9v20.2zm7-1.2H3.1V3.1h5.8v17.8zm5 1.2h8.2V1.9h-8.2v20.2zm1.2-1.2h5.8V3.1h-5.8v17.8z",clipRule:"evenodd"})))},98658:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n,o=r(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let i=e=>o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fillRule:"evenodd",d:"m4.28 21.855.22.09.21-.095c3.326-1.328 13.156-7.472 15.23-8.77l.37-.23.28-.175V11.28l-.24-.18C14.632 6.811 5.108 2.333 4.75 2.165a3.664 3.664 0 0 1-.01-.005l-.24-.115-1.1.455v18.825l.245.175c.197.144.41.263.635.355zm.32-1.25V3.415c1.77.845 9.71 4.715 14.8 8.47v.125l-.147.092C17.168 13.403 8.05 19.094 4.6 20.605z",clipRule:"evenodd"})))},64063:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var n,o,a,i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r}},49090:function(e){e.exports=function(e,n,o){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");"function"==typeof n&&(o=n,n={}),n=n||{},o=o||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async=!("async"in n)||!!n.async,i.src=e,n.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(i,n.attrs),n.text&&(i.text=""+n.text),("onload"in i?t:r)(i,o),!i.onload&&t(i,o),a.appendChild(i)};function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}function r(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}}},13913:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(45697),o=r.n(n),a=r(67294),i=r(64063),s=r.n(i),l=r(11062),u=r.n(l),c=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&v(e,r,t[r]);if(f)for(var r of f(t))y.call(t,r)&&v(e,r,t[r]);return e},g=(e,t)=>d(e,p(t)),b=(e,t,r)=>new Promise((n,o)=>{var a=e=>{try{s(r.next(e))}catch(e){o(e)}},i=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,i);s((r=r.apply(e,t)).next())});function P(e={}){return g(m({},e),{height:0,width:0,playerVars:g(m({},e.playerVars),{autoplay:0,start:0,end:0})})}var C={videoId:o().string,id:o().string,className:o().string,iframeClassName:o().string,style:o().object,title:o().string,loading:o().oneOf(["lazy","eager"]),opts:o().objectOf(o().any),onReady:o().func,onError:o().func,onPlay:o().func,onPause:o().func,onEnd:o().func,onStateChange:o().func,onPlaybackRateChange:o().func,onPlaybackQualityChange:o().func},w=class extends a.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,n,o,a,i,s,l;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case w.PlayerState.ENDED:null==(o=(n=this.props).onEnd)||o.call(n,e);break;case w.PlayerState.PLAYING:null==(i=(a=this.props).onPlay)||i.call(a,e);break;case w.PlayerState.PAUSED:null==(l=(s=this.props).onPause)||l.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise){this.destroyPlayerPromise.then(this.createPlayer);return}let e=g(m({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,n;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let o=!1,a={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(o=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(a.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(a.endSeconds=this.props.opts.playerVars.end)),o){null==(r=this.internalPlayer)||r.loadVideoById(a);return}null==(n=this.internalPlayer)||n.cueVideoById(a)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return b(this,null,function*(){var t,r,n,o,a,i,l,u;if(t=e,r=this.props,t.id!==r.id||t.className!==r.className||(null==(n=t.opts)?void 0:n.width)!==(null==(o=r.opts)?void 0:o.width)||(null==(a=t.opts)?void 0:a.height)!==(null==(i=r.opts)?void 0:i.height)||t.iframeClassName!==r.iframeClassName||t.title!==r.title)this.updatePlayer();if(l=e,u=this.props,l.videoId!==u.videoId||!s()(P(l.opts),P(u.opts)))yield this.resetPlayer();(function(e,t){var r,n;if(e.videoId!==t.videoId)return!0;let o=(null==(r=e.opts)?void 0:r.playerVars)||{},a=(null==(n=t.opts)?void 0:n.playerVars)||{};return o.start!==a.start||o.end!==a.end})(e,this.props)&&this.updateVideo()})}componentWillUnmount(){this.destroyPlayer()}render(){return a.createElement("div",{className:this.props.className,style:this.props.style},a.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};w.propTypes=C,w.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},w.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var x=w},33988:function(e){"use strict";var t;t=function(){var e={},t={};return e.on=function(e,r){var n={name:e,handler:r};return t[e]=t[e]||[],t[e].unshift(n),n},e.off=function(e){var r=t[e.name].indexOf(e);-1!==r&&t[e.name].splice(r,1)},e.trigger=function(e,r){var n,o=t[e];if(o)for(n=o.length;n--;)o[n].handler(r)},e},e.exports=t},66006:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(22275));t.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},89125:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(9215)),o=s(r(28255)),a=s(r(65279)),i=s(r(66006));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,n.default)("youtube-player"),u={};u.proxyEvents=function(e){var t={},r=function(r){var n="on"+r.slice(0,1).toUpperCase()+r.slice(1);t[n]=function(t){l('event "%s"',n,t),e.trigger(r,t)}},n=!0,o=!1,i=void 0;try{for(var s,u=a.default[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var c=s.value;r(c)}}catch(e){o=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t},u.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},n=function(n){t&&i.default[n]?r[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.then(function(e){var t=i.default[n],o=e.getPlayerState(),a=e[n].apply(e,r);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(o)?new Promise(function(r){e.addEventListener("onStateChange",function n(){var o=e.getPlayerState(),a=void 0;"number"==typeof t.timeout&&(a=setTimeout(function(){e.removeEventListener("onStateChange",n),r()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(o)&&(e.removeEventListener("onStateChange",n),clearTimeout(a),r())})}).then(function(){return a}):a})}:r[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.then(function(e){return e[n].apply(e,r)})}},a=!0,s=!1,l=void 0;try{for(var u,c=o.default[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;n(d)}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return r},t.default=u,e.exports=t.default},22275:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},65279:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default},28255:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default},11062:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=s(r(33988)),a=s(r(55900)),i=s(r(89125));function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,o.default)();if(!l&&(l=(0,a.default)(s)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=i.default.proxyEvents(s);var u=new Promise(function(r){(void 0===e?"undefined":n(e))==="object"&&e.playVideo instanceof Function?r(e):l.then(function(n){var o=new n.Player(e,t);return s.on("ready",function(){r(o)}),null})}),c=i.default.promisifyPlayer(u,r);return c.on=s.on,c.off=s.off,c},e.exports=t.default},55900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(49090));t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){t(window.YT);return}var r="http:"===window.location.protocol?"http:":"https:";(0,n.default)(r+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var o=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){o&&o(),t(window.YT)}})},e.exports=t.default},9215:function(e,t,r){(t=e.exports=r(55046)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))}),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function n(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}t.enable(n())},55046:function(e,t,r){var n;(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,o=0;o<n;o++)r[o]&&("-"===(e=r[o].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(14680),t.names=[],t.skips=[],t.formatters={};function o(e){function r(){if(r.enabled){var e=+new Date,o=e-(n||e);r.diff=o,r.prev=n,r.curr=e,n=e;for(var a=Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var s=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;s++;var o=t.formatters[n];if("function"==typeof o){var i=a[s];e=o.call(r,i),a.splice(s,1),s--}return e}),t.formatArgs.call(r,a),(r.log||t.log||console.log.bind(console)).apply(r,a)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r)|0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}},14680:function(e){var t=6e4,r=36e5,n=864e5,o=315576e5;e.exports=function(e,i){i=i||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!!a){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*o;case"days":case"day":case"d":return i*n;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*t;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}(e);if("number"===s&&!1===isNaN(e))return i.long?function(e){return a(e,n,"day")||a(e,r,"hour")||a(e,t,"minute")||a(e,1e3,"second")||e+" ms"}(e):function(e){return e>=n?Math.round(e/n)+"d":e>=r?Math.round(e/r)+"h":e>=t?Math.round(e/t)+"m":e>=1e3?Math.round(e/1e3)+"s":e+"ms"}(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function a(e,t,r){return e<t?void 0:e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}},55751:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893),o=r(63387),a=r.n(o),i=r(15873),s=r(98658);let l=({shouldShowPlayIcon:e,onClick:t,className:r,isCountdown:o})=>(0,n.jsx)("span",{className:a()("VideoControlButton",r,{"is-countDown":o}),role:"button",tabIndex:0,onClick:t,children:e?(0,n.jsx)(s.Z,{className:"VideoControlButton__icon"}):(0,n.jsx)(i.Z,{className:"VideoControlButton__icon"})})},98355:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return C}});var n=r(85893),o=r(67294),a=r(13913),i=r(81722),s=r(63387),l=r.n(s),u=r(57581),c=r(77091),d=r(61228),p=r(82727),f=r(92885),h=r(36658),y=r(19350),v=r(55751),m=r(51220);let g={name:"name",thumbnailUrl:"thumbnailUrl",embedUrl:"embedUrl",description:"description",video:"video"},b="http://schema.org/VideoObject",P=({youtubeVideoId:e,alt:t,videoDescription:r})=>(0,n.jsxs)(o.Fragment,{children:[t&&(0,n.jsx)("meta",{itemProp:g.name,content:t}),e&&(0,n.jsx)("meta",{itemProp:g.thumbnailUrl,content:`https://img.youtube.com/vi/${e}/maxresdefault.jpg`}),e&&(0,n.jsx)("meta",{itemProp:g.embedUrl,content:`https://www.youtube.com/watch?v=${e}`}),r&&(0,n.jsx)("meta",{itemProp:g.description,content:r})]}),C=(0,i.$j)(({app:e})=>{var t;return{cookieAuthorization:null!==(t=null==e?void 0:e.cookieAuthorization)&&void 0!==t?t:{}}})(({className:e="",playVideoInContext:t=!1,playVideo:r=!1,muteVideo:i=!1,alt:s="thumbnail",mediaTitle:C="",mediaBodyCopy:w="",youtubeVideoId:x="",videoDescription:j="",src:E,children:O,cookieAuthorization:S,editContext:_,isContained:N})=>{let{ref:A,isVisible:k}=(0,h.Z)({role:"lazyload"}),[{hasOverlay:V,isModalOpen:I,height:R,width:D,player:M,playerContainer:T},U]=(0,o.useReducer)((e,t)=>(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n,o,a;n=e,o=t,a=r[t],o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})}return e})({},e,t),{hasOverlay:!r,isModalOpen:!1,height:0,width:0,player:void 0,playerContainer:{div:void 0}});(0,o.useEffect)(()=>{if(I&&T.div){let e=T.div.getBoundingClientRect();U({height:.525*e.width,width:e.width})}},[I,T.div]);let B=()=>U({isModalOpen:!1,hasOverlay:!0}),z=e=>()=>{e?U({isModalOpen:!0,hasOverlay:!1}):M&&(U({hasOverlay:!1}),M.playVideo()),(0,f.y_)({event:"videoInteraction",videoName:C||s})},L=e=>{if(U({player:e.target}),i){var t;null===(t=e.target)||void 0===t||t.mute()}},Y=e=>{let[t,o=0]=x.split("|");return k?(0,n.jsx)(a.Z,{iframeClassName:"Component28v0__player",videoId:t,opts:{height:R,width:D,playerVars:{start:o,autoplay:e||r?1:0,modestbranding:1,rel:0}},onReady:L}):null},F=e=>{let t=E&&Object.keys(E).length>0,r=x.split("|")[0];return V&&(0,n.jsxs)("div",{className:"Component28v0__overlay",children:[E&&t&&(0,n.jsx)(m.Z,{className:"Component28v0__image",sources:E,alt:s,isCovered:!0}),!t&&r&&(0,n.jsx)("img",{className:"Component28v0__image",src:`https://img.youtube.com/vi/${r}/maxresdefault.jpg`,alt:s}),(C||w)&&(0,n.jsxs)("div",{className:"Component28v0__media",children:[C&&(0,n.jsx)("p",{className:"Component28v0__mediaTitle",children:C}),w&&(0,n.jsx)("p",{className:"Component28v0__mediaBodyCopy",children:w})]}),(0,n.jsx)(v.Z,{shouldShowPlayIcon:!0,onClick:e,className:"Component28v0__button"})]})},{ccSocial:Z}=S||{},Q=x.split("|")[0],G=t?(0,n.jsxs)("div",{className:l()("Component28v0",e,{"is-contained":N}),ref:e=>{e&&(T.div=e)},children:[(0,n.jsxs)("div",{className:"Component28v0__inner",itemProp:g.video,itemScope:!0,itemType:b,ref:A,children:[Y(!1),F(z(!1)),(0,n.jsx)(P,{youtubeVideoId:Q,alt:s,videoDescription:j})]}),(0,n.jsx)(p.Cq,{editContext:_})]}):I?(0,n.jsxs)(o.Fragment,{children:[(0,n.jsx)(c.V,{onClose:B,size:"fullscreen",variant:"wrapper",children:(0,n.jsxs)("div",{className:"Component28v0 is-contained",ref:e=>{e&&(T.div=e)},itemProp:g.video,itemScope:!0,itemType:b,children:[Y(!0),(0,n.jsx)(P,{youtubeVideoId:x,alt:s,videoDescription:j})]})}),(0,n.jsx)("div",{ref:A})]}):(0,n.jsxs)("div",{className:l()("Component28v0",e),ref:A,children:[!O&&(0,n.jsxs)("div",{className:"Component28v0__inner",children:[(0,n.jsx)("div",{className:"Component28v0__player"}),F(z(!0))]}),!!O&&O({handleOverlayClick:z(!0)}),(0,n.jsx)(p.Cq,{editContext:_})]});return"accept"===Z?G:(0,n.jsx)("div",{className:"Component28v0__updateCookiesContainer",ref:A,children:(0,n.jsxs)("div",{className:"Component28v0__updateCookiesContent",children:[(0,n.jsx)(u.b,{className:"Component28v0__updateCookiesNotification",content:(0,y.re)("wording.youtubeCookieError")}),(0,n.jsxs)("div",{className:"Component28v0__updateCookiesCtas",children:[(0,n.jsx)(d.e,{isInverted:!0,variant:"cta-ghost",useButtonMarkup:!0,children:(0,y.re)("wording.refuseCTA")}),(0,n.jsx)(d.e,{isInverted:!0,variant:"cta-primary",onClick:()=>window.consentToSocialCookies(),useButtonMarkup:!0,children:(0,y.re)("wording.acceptCTA")})]})]})})})}}]);