1(self.webpackChunkmaine_college_of_art_design=self.webpackChunkmaine_college_of_art_design||[]).push([[8446,8553],{2308:function(e,t,a){var l,s=Object.create,o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,y=(e,t,a,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of n(t))c.call(e,s)||s===a||o(e,s,{get:()=>t[s],enumerable:!(l=r(t,s))||l.enumerable});return e},u=(e,t,a)=>(((e,t,a)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a})(e,"symbol"!=typeof t?t+"":t,a),a),p={};((e,t)=>{for(var a in t)o(e,a,{get:t[a],enumerable:!0})})(p,{default:()=>b}),e.exports=(l=p,y(o({},"__esModule",{value:!0}),l));var d=((e,t,a)=>(a=null!=e?s(i(e)):{},y(!t&&e&&e.__esModule?a:o(a,"default",{value:e,enumerable:!0}),e)))(a(30758)),h=a(72561),P=a(92097);const f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,g=/user\/([a-zA-Z0-9_-]+)\/?/,m=/youtube-nocookie\.com/;class b extends d.Component{constructor(){super(...arguments),u(this,"callPlayer",h.callPlayer),u(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(g.test(e)){const[,t]=e.match(g);return{listType:"user_uploads",list:t}}return{}}),u(this,"onStateChange",e=>{const{data:t}=e,{onPlay:a,onPause:l,onBuffer:s,onBufferEnd:o,onEnded:r,onReady:n,loop:i,config:{playerVars:c,onUnstarted:y}}=this.props,{UNSTARTED:u,PLAYING:p,PAUSED:d,BUFFERING:h,ENDED:P,CUED:f}=window.YT.PlayerState;if(t===u&&y(),t===p&&(a(),o()),t===d&&l(),t===h&&s(),t===P){const e=!!this.callPlayer("getPlaylist");i&&!e&&(c.start?this.seekTo(c.start):this.play()),r()}t===f&&n()}),u(this,"mute",()=>{this.callPlayer("mute")}),u(this,"unmute",()=>{this.callPlayer("unMute")}),u(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(P.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:a,muted:l,playsinline:s,controls:o,loop:r,config:n,onError:i}=this.props,{playerVars:c,embedOptions:y}=n,u=this.getID(e);if(t)return f.test(e)||g.test(e)||e instanceof Array?void this.player.loadPlaylist(this.parsePlaylist(e)):void this.player.cueVideoById({videoId:u,startSeconds:(0,h.parseStartTime)(e)||c.start,endSeconds:(0,h.parseEndTime)(e)||c.end});(0,h.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",e=>e.loaded).then(t=>{this.container&&(this.player=new t.Player(this.container,{width:"100%",height:"100%",videoId:u,playerVars:{autoplay:a?1:0,mute:l?1:0,controls:o?1:0,start:(0,h.parseStartTime)(e),end:(0,h.parseEndTime)(e),origin:window.location.origin,playsinline:s?1:0,...this.parsePlaylist(e),...c},events:{onReady:()=>{r&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:e=>this.props.onPlaybackRateChange(e.data),onPlaybackQualityChange:e=>this.props.onPlaybackQualityChange(e),onStateChange:this.onStateChange,onError:e=>i(e.data)},host:m.test(e)?"https://www.youtube-nocookie.com":void 0,...y}))},i),y.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayerâs callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),t||this.props.playing||this.pause()}setVolume(e){this.callPlayer("setVolume",100*e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return d.default.createElement("div",{style:t},d.default.createElement("div",{ref:this.ref}))}}u(b,"displayName","YouTube"),u(b,"canPlay",P.canPlay.youtube)},8553:function(e,t,a){"use strict";a.r(t);a(30758);var l=a(34437),s=a.n(l),o=a(95138);t.default=e=>{let t=e.value;return(0,o.Y)("figure",null,(0,o.Y)(s(),{url:t.videourl,muted:!0,volume:0,loop:!0,playing:!0,playsinline:!0,controls:!0,className:"react-player",width:"100%"}))}}
1,34437:function(e,t,a){var l=a(81658).createReactPlayer,s=a(2308).default;e.exports=l([{key:"youtube",canPlay:s.canPlay,lazyPlayer:s}])}}]);
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.