1(self.webpackChunk_jmc_janssen_medical_cloud_frontend=self.webpackChunk_jmc_janssen_medical_cloud_frontend||[]).push([[5908],{65908:function(e,t,i){"use strict";i.r(t),i.d(t,{YoutubePreload:function(){return b},default:function(){return P}});var s=i(65321),a=i(95553),r=i.n(a),o=i(2784),n=(i(69186),i(40167)),l=i(28154),d=i(79281),h=i(52593),u=i(26227),c=i(58069),y=i(30446),p=i(85606);const m=(0,i(55740).ZP)((()=>Promise.resolve().then(i.bind(i,77004)))),g=e=>{const{title:t,showInHeader:i=!1,summary:s,isAudio:a=!1,thumbnail:o,contentAlignment:l="center",contentVerticalAlignment:d="center",showLargePlayButton:h=!0}=e,u="center"===d&&h?"center_button":d;return t||s?React.createElement("div",{className:r()(a&&!o?n.Z.player__hide:n.Z.player__content,n.Z[`player__content__alignment__horizontal_${l}`],n.Z[`player__content__alignment__vertical_${u}`])},t&&React.createElement("div",{className:r()(n.Z.player__content__title),"data-test-id":"VideoPlayer.Title"},React.createElement(p.Z,{variant:i?"h2":"h3",color:"white"},t)),s&&React.createElement("div",{className:r()(n.Z.player__content__summary),"data-test-id":"VideoPlayer.Summary",style:{textAlign:l}},React.createElement(m,{onTransform:e=>{var t;if("p"===(null==e?void 0:e.type))return React.createElement(p.Z,{variant:"body",color:"white"},null==e||null===(t=e.props)||void 0===t?void 0:t.children)}},s))):null},v=e=>{const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&11==t[2].length?t[2]:e},_=e=>{let{videoId:t,title:i,summary:s,videoPlayable:a=!0,offset:d=0,thumbnail:p,autoplay:m=!1,play:v=!1,onTimeUpdate:_,onPlay:b,onPause:P,hasOverlay:f=!1,contentAlignment:k="center",contentVerticalAlignment:I="center",showControls:S=!0,showLargePlayButton:w=!0,showDuration:E=!1,isAudio:R=!1,warningMessage:T,showInHeader:A=!1,mediastop:N=null,getLength:V=null,cookieAccept:C=null,getCurrentTime:j=null,imageFocus:B=null,className:O=null,startPlaying:Z=!1}=e;const{Video:L,player:Y,ready:D}=(0,u.A)({techOrder:["youtube"],sources:[{type:"video/youtube",src:`https://www.youtube.com/watch?v=${t}`}],youtube:{enablePrivacyEnhancedMode:!0}}),[U,F]=o.useState(v),[G,x]=o.useState(null),[,$]=o.useState(""),[,H]=o.use
1State(E),{0:Q,1:M}=(0,o.useState)("loading"),J=(0,o.useRef)(null),W=(0,o.useRef)("");return W.current||(W.current=(0,y.JP)()),(0,o.useEffect)((()=>{G||x(Y)}),[D]),(0,o.useEffect)((()=>{Z&&G&&setTimeout((()=>{G.play()}),400)}),[G]),o.useEffect((()=>{if(!G)return;const e=G.posterImage;if(B){e.el().style.backgroundPosition=B.replace("-"," ")}G.on("posterchange",(()=>{if(f){const t=e.el(),i=t.style.backgroundImage;t.style.backgroundImage=`linear-gradient(0deg, rgba(20, 20, 20, 0.38), rgba(20, 20, 20, 0.38)), ${i}`}})),G.on("play",(()=>{U||(N&&N(c.J.PLAY,G.cache_.currentTime),F(!0),E&&H(!1),b&&b(J),(0,y.ny)(W.current))})),G.on("pause",(()=>{U&&(N&&N(c.J.PAUSE,G.cache_.currentTime),E&&H(!0),F(!1),P&&P(J))})),G.on("timeupdate",(()=>{j&&j(G.cache_.currentTime),_&&_()})),G.on("ready",(()=>{m&&G.muted(!0),m&&G.autoplay(!0),m&&N&&N(c.J.PLAY,G.cache_.currentTime)})),G.on("ended",(()=>{P&&P(J)})),G.on("loadedmetadata",(()=>{const e=(0,h.q)(G.cache_.duration);$(e.replace(/^0/,"")),V&&V(G.cache_.duration)})),G.on("touchstart",(()=>{S||(G.paused()&&G.hasStarted()?G.play():G.pause())}))}),[G,U]),o.useEffect((()=>{G&&(null==G||G.currentTime(d))}),[G,d]),o.useEffect((()=>{G&&G.play()}),[d]),o.useEffect((()=>{G&&(v?null==G||G.play():null==G||G.pause())}),[G,v]),(0,o.useEffect)((()=>{const e=()=>{var e,t;const i=null===(e=window)||void 0===e?void 0:e.OptanonActiveGroups,s=null!=i&&null!==(t=i.split(","))&&void 0!==t&&t.includes(`${l.G.FUNTIONAL_COOKIES}`)||void 0===i?"ready":"blocked";M(s),C&&C("ready"===s)};return e(),window.addEventListener("OptanonActiveGroupsChanged",e),()=>{window.removeEventListener("OptanonActiveGroupsChanged",e)}})),o.useEffect((()=>{if(G)return(0,y.I)(W.current,(()=>{G.pause()}))}),[G]),o.createElement("div",{className:r()(O,a?n.Z.player:n.Z.disabled,!R||p?n.Z.videoPlayer:n.Z.ajs,!w||!p&&R?n.Z.hidePlay:n.Z.playButton,"blocked"===Q&&n.Z.blocked),ref:J},"blocked"===Q&&T&&o.createElement("div",{id:"superduperid",className:n.Z.warning,"data-test-id":`VideoPlayer.${t}`},T),o.createElement("div",{style:{display:"ready"===Q?"block":"none"},"data-test-id":`VideoPlayer.${t}`},o.createElement(L,{className:r()("vjs-big-play-centered","vjs-16-9","video-js"),controls:!0,controlBar:S,autoPlay:m,poster:p||""})),!1===U&&o.createElement(g,{title:i,showInHeader:A,summary:s,isAudio:R,thumbnail:p,contentAlignment:k,contentVerticalAlignment:I,showLargePlayButton:w}))};const b=e=>{const{0:t,1:i}=(0,o.useState)(!1),{0:a,1:h}=(0,o.useState)("loading"),{0:u,1:c}=(0,o.useState)(!1),{showInHeader:y=!1,thumbnail:p,videoId:m,className:b=null,isAudio:P=!1,showLargePlayButton:f=!0,warningMessage:k,cookieAccept:I=null,contentAlignment:S="center",contentVerticalAlignment:w="center",play:E=!1,autoplay:R=!1,videoPlayable:T=!0,metadata:A,showInfo:N=!0,defaultThumbnail:V}=e,C=(0,o.useRef)(null),j=(e=>{var t,i;let s=640;((null==C||null===(t=C.current)||void 0===t||null===(i=t.getBoundingClientRect())||void 0===i?void 0:i.width)>640||u)&&(s=1920,u||c(!0));let a=e;if(null!=e&&e.startsWith("http")){const t=new URL(e);t.searchParams.append("width",s.toString()),t.searchParams.append("disable","upscale"),a=t.href}return a})(p),B=()=>{i(!0)};(0,o.useEffect)((()=>{const e=()=>{var e,t;const i=null===(e=window)||void 0===e?void 0:e.OptanonActiveGroups,s=null!=i&&null!==(t=i.split(","))&&void 0!==t&&t.includes(`${l.G.FUNTIONAL_COOKIES}`)||void 0===i?"ready":"blocked";h(s),null==I||I("ready"===s)};return e(),window.addEventListener("OptanonActiveGroupsChanged",e),()=>{window.removeEventListener("OptanonActiveGroupsChanged",e)}}));const O=(t||E||R)&&T?React.createElement(_,Object.assign({},e,{startPlaying:!0,thumbnail:j})):React.createElement("div",{ref:C,onClick:()=>B(),className:r()(b,n.Z.player,!P||p?n.Z.videoPlayer:n.Z.ajs,!f||!p&&P?n.Z.hidePlay:n.Z.playButton,"blocked"===a&&n.Z.blocked),onKeyDown:e=>(0,s.q)(e.key,(()=>B())),"data-test-id":`Video.YouTube.Preload.${v(m)}`,role:"button",tabIndex:0},"blocked"===a&&k&&React.createElement("div",{id:`cookie-warning-${v(m)}`,className:n.Z.warning,"data-test-id":`VideoPlayer.${m}`},k),"blocked"!==a&&React.createElement(d.A,{isAudio:P,thumbnail:p,defaultThumbnail:V,metadata:A,showLargePlayButton:f,showInfo:N}),React.createElement(g,{showInHeader:y,isAudio:P,thumbnail:p,contentAlignment:S,contentVerticalAlignment:w,showLargePlayButton:f}));return React.createElement("div",{className:n.Z.preloadWrapper},React.createElement("div",{className:n.Z.preloadContent},O))};var P=b},69186:function(e,t,i){var s;s=i(94075),e.exports=function(e){"use strict";var t=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,i=e.getTech("Tech");class s extends i{constructor(e,i){super(e,i),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",t&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),s.isApiReady?this.initYTPlayer():s.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=s.apiReadyQueue.indexOf(this);-1!==e&&s.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),i.prototype.dispose.call(this)}createEl(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var i=document.createElement("div");if(i.appendChild(e),!t&&!this.options_.ytControls){var s=document.createElement("div");s.setAttribute("class","vjs-iframe-blocker"),s.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),s.onclick=function(){this.pause()}.bind(this),i.appendChild(s)}return i}initYTPlayer(){var e={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(e.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(e.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(e.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(e.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(e.color=this.options_.color),e.controls?void 0!==this.options_.fs&&
vendor: 7,676 bytes, line 1
1(e.fs=this.options_.fs):e.fs=0,-1!==this.options_.source.src.indexOf("end=")){var t=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(t[1])}if(void 0!==this.options_.end&&(e.end=this.options_.end),void 0!==this.options_.hl?e.hl=this.options_.hl:void 0!==this.options_.language&&(e.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(e.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?e.list=this.options_.list:this.url&&void 0!==this.url.listId&&(e.list=this.url.listId),void 0!==this.options_.listType&&(e.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(e.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(e.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(e.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(e.rel=this.options_.rel),void 0!==this.options_.showinfo&&(e.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var i=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(i[1])}if(void 0!==this.options_.start&&(e.start=this.options_.start),void 0!==this.options_.theme&&(e.theme=this.options_.theme),void 0!==this.options_.customVars){var s=this.options_.customVars;Object.keys(s).forEach((function(t){e[t]=s[t]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var a={videoId:this.activeVideoId,playerVars:e,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(a.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,a)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(e){var t=e.data;if(t!==this.lastState&&!this.errorNumber)switch(this.lastState=t,t){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(e){this.errorNumber=e.data,this.trigger("pause"),this.trigger("error")}error(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:"Error while trying to play the video"};case 2:case 100:return{code:e,message:"Unable to find the video"};case 101:case 150:return{code:e,message:"Playback on other Websites has been disabled by the video owner."}}return{code:e,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(t)}cueVideoById_(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(t)}src(e){return e&&this.setSrc({src:e}),this.source}poster(){return t?null:this.poster_}setPoster(e){this.poster_=e}setSrc(e){e&&e.src&&(delete this.errorNumber,this.source=e,this.url=s.parseUrl(e.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!t?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(e){this.options_.autoplay=e}loop(){return this.options_.loop}setLoop(e){this.options_.loop=e}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(e){this.ytPlayer&&this.ytPlayer.setVolume(100*e)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(e){this.ytPlayer&&(this.muted(!0),e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((function(){this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,t)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var e="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var t=new Image;t.onload=function(){if("naturalHeight"in t){if(t.naturalHeight<=90||t.naturalWi
1dth<=120)return}else if(t.height<=90||t.width<=120)return;this.poster_=e,this.trigger("posterchange")}.bind(this),t.onerror=function(){},t.src=e}catch(i){}}}function a(){YT.ready((function(){s.isApiReady=!0;for(var e=0;e<s.apiReadyQueue.length;++e)s.apiReadyQueue[e].initYTPlayer()}))}function r(e,t){var i=!1,s=document.createElement("script"),a=document.getElementsByTagName("script")[0];a&&(a.parentNode.insertBefore(s,a),s.onload=function(){i||(i=!0,t())},s.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,t())},s.src=e)}function o(){var e=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),t.appendChild(i)}s.isSupported=function(){return!0},s.canPlaySource=function(e){return s.canPlayType(e.type)},s.canPlayType=function(e){return"video/youtube"===e},s.parseUrl=function(e){var t={videoId:null},i=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,s=e.match(i);s&&11===s[2].length&&(t.videoId=s[2]);var a=/[?&]list=([^#\&\?]+)/;return(s=e.match(a))&&s[1]&&(t.listId=s[1]),t},s.apiReadyQueue=[],"undefined"!=typeof document&&(r("https://www.youtube.com/iframe_api",a),o()),void 0!==e.registerTech?e.registerTech("Youtube",s):e.registerComponent("Youtube",s)}(s.default||s)}}]); 2//# sourceMappingURL=5908-00c4508c702eb4e5d6f7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.