"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65207,97312,99008,88924],{99008:function(t,e,r){r.r(e),r.d(e,{VideoIframe:function(){return d},default:function(){return p}});var n=r(59499),o=r(4730);r(67294);var i=r(78171),a=r(94480),c=r(46746),l=r(35944),u=["raw","aspectRatio","autoplay","hidePlayPause","hidePlayButton","hideFullScreenButton","hideControls"];function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){var e=t.raw,r=t.aspectRatio,n=t.autoplay,s=t.hidePlayPause,p=t.hidePlayButton,f=t.hideFullScreenButton,h=t.hideControls,v=(0,o.Z)(t,u),b=v.id.includes("?"),y=new URLSearchParams;return"Wistia"===v.type&&(v.objectFit&&y.append("fitStrategy",v.objectFit),y.append("autoPlay",void 0!==n&&n?"muted":"false"),y.append("playPauseNotifier","".concat(!(void 0!==s&&s))),y.append("playButton","".concat(!(void 0!==p&&p))),y.append("fullscreenButton","".concat(!(void 0!==f&&f))),y.append("playSuspendedOffScreen","true"),void 0!==h&&h&&(y.append("playbar","false"),y.append("smallPlayButton","false"),y.append("volumeControl","false"),y.append("settingsControl","false"))),(0,l.tZ)(a.Z,{condition:!(void 0!==e&&e),Wrapper:i.sz,children:(0,l.BX)(c.o,{ratio:r,children:["IBM"===v.type&&(0,l.tZ)(d,{src:"https://video.ibm.com/embed/".concat(v.id,"?autoplay=true&showtitle=false"),allow:"autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"}),"Wistia"===v.type&&(0,l.tZ)(d,{src:"https://fast.wistia.net/embed/iframe/".concat(v.id,"?").concat(y.toString()),scrolling:"no"}),"Youtube"===v.type&&(0,l.tZ)(d,{src:"https://www.youtube.com/embed/".concat(v.id+(b?"&rel=0&enablejsapi=1":"?rel=0&enablejsapi=1")),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",id:"embedded-youtube-video-player"})]})})}function d(t){return(0,l.tZ)(i.y8,function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"original",n=arguments.length>1?arguments[1]:void 0;if("original"===r)return 1/(null!==(t=null==n?void 0:n.width)&&void 0!==t?t:1)*(null!==(e=null==n?void 0:n.height)&&void 0!==e?e:1);var o=(0,l.Z)(r,2);return 1/o[0]*o[1]}(D,null!==(g=null!==(m=null!=z?z:N)&&void 0!==m?m:null==_?void 0:_.thumbnail.image)&&void 0!==g?g:null==_?void 0:_.thumbnail.video),n=(0,o.useRef)(null),b=(h=(0,o.useState)(function(){return"100%"===R?0:R*r}))[0],y=h[1],(0,u.Z)(function(){var t;function e(){null!=n.current&&y(n.current.offsetWidth*r)}return e(),null===(t=visualViewport)||void 0===t||t.addEventListener("resize",e),function(){var t;null===(t=visualViewport)||void 0===t||t.removeEventListener("resize",e)}},[r,R,null===(e=n.current)||void 0===e?void 0:e.offsetWidth]),(0,o.useMemo)(function(){return{containerRef:n,computedHeight:b}},[b])),F=V.containerRef,L=V.computedHeight,H=(0,a.Z)(),T=H.initializePlayer,q=H.startVideo;return(0,f.tZ)(c.W2,{ref:F,cssWidth:R,cssHeight:null!==(O=null!=B?B:W?"auto":null)&&void 0!==O?O:L,shadow:void 0!==C&&C,className:k,children:null!=z&&z.height&&z.width?(0,f.tZ)(i.default,{src:z.src,alt:z.alt,width:z.width,height:z.height,sizes:z.sizes,layout:"responsive"}):null!=N?(0,f.tZ)(s.n,{width:"100%",height:"100%",videoRef:M,poster:null!==(w=N.poster)&&void 0!==w?w:void 0,autoPlay:null===(j=N.autoPlay)||void 0===j||j,preload:N.preload,onEnded:N.onEnded,controlsList:N.controlsList,children:(0,f.tZ)("source",{src:N.src,type:"video/mp4"})}):null!=W?(0,f.tZ)(p.default,v(v({},W),{},{objectFit:S,aspectRatio:"original"===D?void 0:D})):null!=_?(0,f.BX)(c.bk,{onClick:function(){T({id:_.id,autoplay:!1,controls:!0}),q({config:{id:_.id}})},children:[(0,f.tZ)(c.rp,{position:_.playButtonPosition||"center"}),null!=_.thumbnail.image&&(0,f.tZ)(c.Mq,{src:_.thumbnail.image.src,alt:_.thumbnail.image.alt,width:null!==(P=_.thumbnail.image.width)&&void 0!==P?P:void 0,height:null!==(Z=_.thumbnail.image.height)&&void 0!==Z?Z:void 0,layout:"responsive",objectFit:"cover"}),null!=_.thumbnail.video&&(0,f.tZ)(s.n,{width:"100%",height:"100%",autoPlay:!0,children:(0,f.tZ)("source",{src:_.thumbnail.video.src,type:"video/mp4"})})]}):null})}var y=b},68554:function(t,e,r){r.d(e,{W2:function(){return f},rp:function(){return y},yj:function(){return h},bk:function(){return v},Mq:function(){return b}});var n=r(55319),o=r(70917),i=r(97312),a=r(59499),c=r(38841),l=r(35944);function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e