diff --git a/build/assets/index-668295f8.js b/build/assets/index-33abee2c.js similarity index 99% rename from build/assets/index-668295f8.js rename to build/assets/index-33abee2c.js index b0dad0995..2cb54b11a 100644 --- a/build/assets/index-668295f8.js +++ b/build/assets/index-33abee2c.js @@ -6847,7 +6847,7 @@ void main() { `,Fallback=()=>jsxRuntimeExports.jsx(Html$1,{children:jsxRuntimeExports.jsx(Loader$1,{})}),Content$1=()=>{const{universeColor:tt}=useControls("universe",{universeColor:colors.black}),et=useSelectedNode(),nt=reactExports.useMemo(()=>et!=null&&et.node_type?getNodeColorByType(et.node_type):outlineEffectColor,[et]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("color",{args:[tt],attach:"background"}),jsxRuntimeExports.jsx(Lights,{}),jsxRuntimeExports.jsx(Controls,{}),jsxRuntimeExports.jsxs(Selection$2,{children:[jsxRuntimeExports.jsxs(EffectComposer,{autoClear:!1,multisampling:8,children:[jsxRuntimeExports.jsx(Vignette,{darkness:.7,eskil:!1,offset:.05}),jsxRuntimeExports.jsx(Bloom,{luminanceThreshold:1,mipmapBlur:!0,resolutionX:Resolution.AUTO_SIZE,resolutionY:Resolution.AUTO_SIZE}),jsxRuntimeExports.jsx(Outline,{blendFunction:BlendFunction.SCREEN,blur:!0,edgeStrength:4,hiddenEdgeColor:nt,visibleEdgeColor:nt})]}),jsxRuntimeExports.jsx(Graph,{})]})]})};let wheelEventTimeout=null;const cameraProps={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[initialCameraPosition.x,initialCameraPosition.y,initialCameraPosition.z]},_Universe=()=>{const[tt,et,nt]=[useControlStore(at=>at.setIsUserScrollingOnHtmlPanel),useControlStore(at=>at.setIsUserScrolling),useControlStore(at=>at.setUserMovedCamera)],rt=useDataStore(at=>at.isFetching),it=reactExports.useCallback(at=>{var ct;const{target:st}=at,{offsetParent:lt}=st;wheelEventTimeout&&clearTimeout(wheelEventTimeout),(ct=lt==null?void 0:lt.classList)!=null&&ct.contains("html-panel")&<.clientHeight{et(!1),tt(!1)},200)},[et,tt,nt]),ot=reactExports.useCallback(at=>addToGlobalForE2e(at,"threeState"),[]);return jsxRuntimeExports.jsxs(Wrapper$l,{children:[jsxRuntimeExports.jsx(Overlay,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:null,children:jsxRuntimeExports.jsxs(Canvas$1,{camera:cameraProps,id:"universe-canvas",onCreated:ot,onWheel:it,children:[isDevelopment&&jsxRuntimeExports.jsx(Perf,{position:"top-right"}),jsxRuntimeExports.jsxs(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Fallback,{}),children:[jsxRuntimeExports.jsx(Preload,{}),jsxRuntimeExports.jsx(AdaptiveDpr,{}),jsxRuntimeExports.jsx(AdaptiveEvents,{}),jsxRuntimeExports.jsx(Content$1,{})]})]})}),rt&&jsxRuntimeExports.jsx(Preloader,{fullSize:!1})]})},Wrapper$l=styled$4(Flex)` flex: 1 1 100%; position: relative; -`,Universe=reactExports.memo(_Universe),defaultData$3={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},useTeachStore=react(tt=>({...defaultData$3,setAskedQuestion:et=>tt(nt=>({askedQuestions:[...nt.askedQuestions||[],et],hasQuestionInProgress:!0})),setAskedQuestionAnswer:et=>tt(nt=>({askedQuestionsAnswers:[...nt.askedQuestionsAnswers||[],et],hasQuestionInProgress:!1})),setHasQuestionInProgress:et=>tt({hasQuestionInProgress:et}),setHasTeachingInProgress:et=>tt({hasTeachingInProgress:et}),setHasInstagraphInProgress:et=>tt({hasInstagraphInProgress:et}),setTeachMeAnswer:et=>tt({hasTeachingInProgress:!1,teachMeAnswer:et}),setInstagraphAnswer:et=>{var nt,rt,it,ot;(nt=et==null?void 0:et.instagraph)!=null&&nt.edges&&((rt=et==null?void 0:et.instagraph)!=null&&rt.nodes)&&tt({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(it=et==null?void 0:et.instagraph)==null?void 0:it.edges,nodes:(ot=et==null?void 0:et.instagraph)==null?void 0:ot.nodes}})}})),version="0.1.82",StyledTableCell=styled$4(TableCell$1)` +`,Universe=reactExports.memo(_Universe),defaultData$3={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},useTeachStore=react(tt=>({...defaultData$3,setAskedQuestion:et=>tt(nt=>({askedQuestions:[...nt.askedQuestions||[],et],hasQuestionInProgress:!0})),setAskedQuestionAnswer:et=>tt(nt=>({askedQuestionsAnswers:[...nt.askedQuestionsAnswers||[],et],hasQuestionInProgress:!1})),setHasQuestionInProgress:et=>tt({hasQuestionInProgress:et}),setHasTeachingInProgress:et=>tt({hasTeachingInProgress:et}),setHasInstagraphInProgress:et=>tt({hasInstagraphInProgress:et}),setTeachMeAnswer:et=>tt({hasTeachingInProgress:!1,teachMeAnswer:et}),setInstagraphAnswer:et=>{var nt,rt,it,ot;(nt=et==null?void 0:et.instagraph)!=null&&nt.edges&&((rt=et==null?void 0:et.instagraph)!=null&&rt.nodes)&&tt({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(it=et==null?void 0:et.instagraph)==null?void 0:it.edges,nodes:(ot=et==null?void 0:et.instagraph)==null?void 0:ot.nodes}})}})),version="0.1.83",StyledTableCell=styled$4(TableCell$1)` && { color: ${colors.white}; border: none; @@ -7992,7 +7992,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ot=!0,at=!1,st;return{s:function(){nt=tt[Symbol.iterator]()},n:function(){var ct=nt.next();return ot=ct.done,ct},e:function(ct){at=!0,st=ct},f:function(){try{!ot&&nt.return!=null&&nt.return()}finally{if(at)throw st}}}}function _unsupportedIterableToArray$1(tt,et){if(tt){if(typeof tt=="string")return _arrayLikeToArray$1(tt,et);var nt=Object.prototype.toString.call(tt).slice(8,-1);if(nt==="Object"&&tt.constructor&&(nt=tt.constructor.name),nt==="Map"||nt==="Set")return Array.from(tt);if(nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nt))return _arrayLikeToArray$1(tt,et)}}function _arrayLikeToArray$1(tt,et){(et==null||et>tt.length)&&(et=tt.length);for(var nt=0,rt=new Array(et);ntzt.length)&&(Ft=zt.length);for(var Nt=0,Ut=new Array(Ft);Nt"u"||!(Symbol.iterator in Object(zt)))){var Nt=[],Ut=!0,Mt=!1,Ht=void 0;try{for(var en=zt[Symbol.iterator](),sn;!(Ut=(sn=en.next()).done)&&(Nt.push(sn.value),!(Ft&&Nt.length===Ft));Ut=!0);}catch(Kt){Mt=!0,Ht=Kt}finally{try{!Ut&&en.return!=null&&en.return()}finally{if(Mt)throw Ht}}return Nt}}function mt(zt){if(Array.isArray(zt))return zt}function gt(zt,Ft){if(!(zt instanceof Ft))throw new TypeError("Cannot call a class as a function")}function yt(zt,Ft){for(var Nt=0;Nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Et(zt){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(Nt){return Nt.__proto__||Object.getPrototypeOf(Nt)},Et(zt)}function $t(zt,Ft,Nt){return Ft in zt?Object.defineProperty(zt,Ft,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):zt[Ft]=Nt,zt}var Dt="https://www.youtube.com/iframe_api",jt="YT",Pt="onYouTubeIframeAPIReady",Ct=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,wt=/user\/([a-zA-Z0-9_-]+)\/?/,It=/youtube-nocookie\.com/,Ot="https://www.youtube-nocookie.com",Wt=function(zt){vt(Nt,zt);var Ft=kt(Nt);function Nt(){var Ut;gt(this,Nt);for(var Mt=arguments.length,Ht=new Array(Mt),en=0;en1&&arguments[1]!==void 0?arguments[1]:!1;this.callPlayer("seekTo",Mt),!Ht&&!this.props.playing&&this.pause()}},{key:"setVolume",value:function(Mt){this.callPlayer("setVolume",Mt*100)}},{key:"setPlaybackRate",value:function(Mt){this.callPlayer("setPlaybackRate",Mt)}},{key:"setLoop",value:function(Mt){this.callPlayer("setLoop",Mt)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var Mt=this.props.display,Ht={width:"100%",height:"100%",display:Mt};return nt.default.createElement("div",{style:Ht},nt.default.createElement("div",{ref:this.ref}))}}]),Nt}(nt.Component);tt.default=Wt,$t(Wt,"displayName","YouTube"),$t(Wt,"canPlay",it.canPlay.youtube)}(YouTube$1)),YouTube$1}var SoundCloud={},hasRequiredSoundCloud;function requireSoundCloud(){return hasRequiredSoundCloud||(hasRequiredSoundCloud=1,function(tt){function et(At){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function($t){return typeof $t}:et=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},et(At)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var At=new WeakMap;return ot=function(){return At},At}function at(At){if(At&&At.__esModule)return At;if(At===null||et(At)!=="object"&&typeof At!="function")return{default:At};var Et=ot();if(Et&&Et.has(At))return Et.get(At);var $t={},Dt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var jt in At)if(Object.prototype.hasOwnProperty.call(At,jt)){var Pt=Dt?Object.getOwnPropertyDescriptor(At,jt):null;Pt&&(Pt.get||Pt.set)?Object.defineProperty($t,jt,Pt):$t[jt]=At[jt]}return $t.default=At,Et&&Et.set(At,$t),$t}function st(At,Et){var $t=Object.keys(At);if(Object.getOwnPropertySymbols){var Dt=Object.getOwnPropertySymbols(At);Et&&(Dt=Dt.filter(function(jt){return Object.getOwnPropertyDescriptor(At,jt).enumerable})),$t.push.apply($t,Dt)}return $t}function lt(At){for(var Et=1;Et"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vt(At){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function($t){return $t.__proto__||Object.getPrototypeOf($t)},vt(At)}function xt(At,Et,$t){return Et in At?Object.defineProperty(At,Et,{value:$t,enumerable:!0,configurable:!0,writable:!0}):At[Et]=$t,At}var kt="https://w.soundcloud.com/player/api.js",St="SC",Tt=function(At){dt($t,At);var Et=mt($t);function $t(){var Dt;ct(this,$t);for(var jt=arguments.length,Pt=new Array(jt),Ct=0;Ct1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seekTo",jt*1e3),Pt||this.pause()}},{key:"setVolume",value:function(jt){this.callPlayer("setVolume",jt*100)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var jt=this.props.display,Pt={width:"100%",height:"100%",display:jt};return nt.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:Pt,frameBorder:0,allow:"autoplay"})}}]),$t}(nt.Component);tt.default=Tt,xt(Tt,"displayName","SoundCloud"),xt(Tt,"canPlay",it.canPlay.soundcloud),xt(Tt,"loopOnEnded",!0)}(SoundCloud)),SoundCloud}var Vimeo={},hasRequiredVimeo;function requireVimeo(){return hasRequiredVimeo||(hasRequiredVimeo=1,function(tt){function et(Et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Dt){return typeof Dt}:et=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},et(Et)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var Et=new WeakMap;return ot=function(){return Et},Et}function at(Et){if(Et&&Et.__esModule)return Et;if(Et===null||et(Et)!=="object"&&typeof Et!="function")return{default:Et};var $t=ot();if($t&&$t.has(Et))return $t.get(Et);var Dt={},jt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in Et)if(Object.prototype.hasOwnProperty.call(Et,Pt)){var Ct=jt?Object.getOwnPropertyDescriptor(Et,Pt):null;Ct&&(Ct.get||Ct.set)?Object.defineProperty(Dt,Pt,Ct):Dt[Pt]=Et[Pt]}return Dt.default=Et,$t&&$t.set(Et,Dt),Dt}function st(Et,$t){var Dt=Object.keys(Et);if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(Et);$t&&(jt=jt.filter(function(Pt){return Object.getOwnPropertyDescriptor(Et,Pt).enumerable})),Dt.push.apply(Dt,jt)}return Dt}function lt(Et){for(var $t=1;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vt(Et){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},vt(Et)}function xt(Et,$t,Dt){return $t in Et?Object.defineProperty(Et,$t,{value:Dt,enumerable:!0,configurable:!0,writable:!0}):Et[$t]=Dt,Et}var kt="https://player.vimeo.com/api/player.js",St="Vimeo",Tt=function($t){return $t.replace("/manage/videos","")},At=function(Et){dt(Dt,Et);var $t=mt(Dt);function Dt(){var jt;ct(this,Dt);for(var Pt=arguments.length,Ct=new Array(Pt),wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",Pt),Ct||this.pause()}},{key:"setVolume",value:function(Pt){this.callPlayer("setVolume",Pt)}},{key:"setMuted",value:function(Pt){this.callPlayer("setMuted",Pt)}},{key:"setLoop",value:function(Pt){this.callPlayer("setLoop",Pt)}},{key:"setPlaybackRate",value:function(Pt){this.callPlayer("setPlaybackRate",Pt)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var Pt=this.props.display,Ct={width:"100%",height:"100%",overflow:"hidden",display:Pt};return nt.default.createElement("div",{key:this.props.url,ref:this.ref,style:Ct})}}]),Dt}(nt.Component);tt.default=At,xt(At,"displayName","Vimeo"),xt(At,"canPlay",it.canPlay.vimeo),xt(At,"forceLoad",!0)}(Vimeo)),Vimeo}var Facebook={},hasRequiredFacebook;function requireFacebook(){return hasRequiredFacebook||(hasRequiredFacebook=1,function(tt){function et(Et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Dt){return typeof Dt}:et=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},et(Et)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var Et=new WeakMap;return ot=function(){return Et},Et}function at(Et){if(Et&&Et.__esModule)return Et;if(Et===null||et(Et)!=="object"&&typeof Et!="function")return{default:Et};var $t=ot();if($t&&$t.has(Et))return $t.get(Et);var Dt={},jt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in Et)if(Object.prototype.hasOwnProperty.call(Et,Pt)){var Ct=jt?Object.getOwnPropertyDescriptor(Et,Pt):null;Ct&&(Ct.get||Ct.set)?Object.defineProperty(Dt,Pt,Ct):Dt[Pt]=Et[Pt]}return Dt.default=Et,$t&&$t.set(Et,Dt),Dt}function st(){return st=Object.assign||function(Et){for(var $t=1;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function bt(Et){return bt=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},bt(Et)}function vt(Et,$t,Dt){return $t in Et?Object.defineProperty(Et,$t,{value:Dt,enumerable:!0,configurable:!0,writable:!0}):Et[$t]=Dt,Et}var xt="https://connect.facebook.net/en_US/sdk.js",kt="FB",St="fbAsyncInit",Tt="facebook-player-",At=function(Et){ht(Dt,Et);var $t=pt(Dt);function Dt(){var jt;lt(this,Dt);for(var Pt=arguments.length,Ct=new Array(Pt),wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",Pt),Ct||this.pause()}},{key:"setVolume",value:function(Pt){this.callPlayer("setVolume",Pt)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var Pt=this.props.config.attributes,Ct={width:"100%",height:"100%"};return nt.default.createElement("div",st({style:Ct,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},Pt))}}]),Dt}(nt.Component);tt.default=At,vt(At,"displayName","Facebook"),vt(At,"canPlay",it.canPlay.facebook),vt(At,"loopOnEnded",!0)}(Facebook)),Facebook}var Streamable={},hasRequiredStreamable;function requireStreamable(){return hasRequiredStreamable||(hasRequiredStreamable=1,function(tt){function et(St){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(At){return typeof At}:et=function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},et(St)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var St=new WeakMap;return ot=function(){return St},St}function at(St){if(St&&St.__esModule)return St;if(St===null||et(St)!=="object"&&typeof St!="function")return{default:St};var Tt=ot();if(Tt&&Tt.has(St))return Tt.get(St);var At={},Et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $t in St)if(Object.prototype.hasOwnProperty.call(St,$t)){var Dt=Et?Object.getOwnPropertyDescriptor(St,$t):null;Dt&&(Dt.get||Dt.set)?Object.defineProperty(At,$t,Dt):At[$t]=St[$t]}return At.default=St,Tt&&Tt.set(St,At),At}function st(St,Tt){if(!(St instanceof Tt))throw new TypeError("Cannot call a class as a function")}function lt(St,Tt){for(var At=0;At"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function yt(St){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(At){return At.__proto__||Object.getPrototypeOf(At)},yt(St)}function bt(St,Tt,At){return Tt in St?Object.defineProperty(St,Tt,{value:At,enumerable:!0,configurable:!0,writable:!0}):St[Tt]=At,St}var vt="https://cdn.embed.ly/player-0.1.0.min.js",xt="playerjs",kt=function(St){ut(At,St);var Tt=dt(At);function At(){var Et;st(this,At);for(var $t=arguments.length,Dt=new Array($t),jt=0;jt<$t;jt++)Dt[jt]=arguments[jt];return Et=Tt.call.apply(Tt,[this].concat(Dt)),bt(mt(Et),"callPlayer",rt.callPlayer),bt(mt(Et),"duration",null),bt(mt(Et),"currentTime",null),bt(mt(Et),"secondsLoaded",null),bt(mt(Et),"mute",function(){Et.callPlayer("mute")}),bt(mt(Et),"unmute",function(){Et.callPlayer("unmute")}),bt(mt(Et),"ref",function(Pt){Et.iframe=Pt}),Et}return ct(At,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function($t){var Dt=this;(0,rt.getSDK)(vt,xt).then(function(jt){Dt.iframe&&(Dt.player=new jt.Player(Dt.iframe),Dt.player.setLoop(Dt.props.loop),Dt.player.on("ready",Dt.props.onReady),Dt.player.on("play",Dt.props.onPlay),Dt.player.on("pause",Dt.props.onPause),Dt.player.on("seeked",Dt.props.onSeek),Dt.player.on("ended",Dt.props.onEnded),Dt.player.on("error",Dt.props.onError),Dt.player.on("timeupdate",function(Pt){var Ct=Pt.duration,wt=Pt.seconds;Dt.duration=Ct,Dt.currentTime=wt}),Dt.player.on("buffered",function(Pt){var Ct=Pt.percent;Dt.duration&&(Dt.secondsLoaded=Dt.duration*Ct)}),Dt.props.muted&&Dt.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function($t){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",$t),Dt||this.pause()}},{key:"setVolume",value:function($t){this.callPlayer("setVolume",$t*100)}},{key:"setLoop",value:function($t){this.callPlayer("setLoop",$t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var $t=this.props.url.match(it.MATCH_URL_STREAMABLE)[1],Dt={width:"100%",height:"100%"};return nt.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat($t),frameBorder:"0",scrolling:"no",style:Dt,allow:"encrypted-media; autoplay; fullscreen;"})}}]),At}(nt.Component);tt.default=kt,bt(kt,"displayName","Streamable"),bt(kt,"canPlay",it.canPlay.streamable)}(Streamable)),Streamable}var Wistia={},hasRequiredWistia;function requireWistia(){return hasRequiredWistia||(hasRequiredWistia=1,function(tt){function et(Et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Dt){return typeof Dt}:et=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},et(Et)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var Et=new WeakMap;return ot=function(){return Et},Et}function at(Et){if(Et&&Et.__esModule)return Et;if(Et===null||et(Et)!=="object"&&typeof Et!="function")return{default:Et};var $t=ot();if($t&&$t.has(Et))return $t.get(Et);var Dt={},jt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in Et)if(Object.prototype.hasOwnProperty.call(Et,Pt)){var Ct=jt?Object.getOwnPropertyDescriptor(Et,Pt):null;Ct&&(Ct.get||Ct.set)?Object.defineProperty(Dt,Pt,Ct):Dt[Pt]=Et[Pt]}return Dt.default=Et,$t&&$t.set(Et,Dt),Dt}function st(Et,$t){var Dt=Object.keys(Et);if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(Et);$t&&(jt=jt.filter(function(Pt){return Object.getOwnPropertyDescriptor(Et,Pt).enumerable})),Dt.push.apply(Dt,jt)}return Dt}function lt(Et){for(var $t=1;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vt(Et){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},vt(Et)}function xt(Et,$t,Dt){return $t in Et?Object.defineProperty(Et,$t,{value:Dt,enumerable:!0,configurable:!0,writable:!0}):Et[$t]=Dt,Et}var kt="https://fast.wistia.com/assets/external/E-v1.js",St="Wistia",Tt="wistia-player-",At=function(Et){dt(Dt,Et);var $t=mt(Dt);function Dt(){var jt;ct(this,Dt);for(var Pt=arguments.length,Ct=new Array(Pt),wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("time",Pt),Ct||this.pause()}},{key:"setVolume",value:function(Pt){this.callPlayer("volume",Pt)}},{key:"setPlaybackRate",value:function(Pt){this.callPlayer("playbackRate",Pt)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var Pt=this.props.url,Ct=Pt&&Pt.match(it.MATCH_URL_WISTIA)[1],wt="wistia_embed wistia_async_".concat(Ct),It={width:"100%",height:"100%"};return nt.default.createElement("div",{id:this.playerID,key:Ct,className:wt,style:It})}}]),Dt}(nt.Component);tt.default=At,xt(At,"displayName","Wistia"),xt(At,"canPlay",it.canPlay.wistia),xt(At,"loopOnEnded",!0)}(Wistia)),Wistia}var Twitch={},hasRequiredTwitch;function requireTwitch(){return hasRequiredTwitch||(hasRequiredTwitch=1,function(tt){function et(Et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Dt){return typeof Dt}:et=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},et(Et)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var Et=new WeakMap;return ot=function(){return Et},Et}function at(Et){if(Et&&Et.__esModule)return Et;if(Et===null||et(Et)!=="object"&&typeof Et!="function")return{default:Et};var $t=ot();if($t&&$t.has(Et))return $t.get(Et);var Dt={},jt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in Et)if(Object.prototype.hasOwnProperty.call(Et,Pt)){var Ct=jt?Object.getOwnPropertyDescriptor(Et,Pt):null;Ct&&(Ct.get||Ct.set)?Object.defineProperty(Dt,Pt,Ct):Dt[Pt]=Et[Pt]}return Dt.default=Et,$t&&$t.set(Et,Dt),Dt}function st(Et,$t){var Dt=Object.keys(Et);if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(Et);$t&&(jt=jt.filter(function(Pt){return Object.getOwnPropertyDescriptor(Et,Pt).enumerable})),Dt.push.apply(Dt,jt)}return Dt}function lt(Et){for(var $t=1;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vt(Et){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},vt(Et)}function xt(Et,$t,Dt){return $t in Et?Object.defineProperty(Et,$t,{value:Dt,enumerable:!0,configurable:!0,writable:!0}):Et[$t]=Dt,Et}var kt="https://player.twitch.tv/js/embed/v1.js",St="Twitch",Tt="twitch-player-",At=function(Et){dt(Dt,Et);var $t=mt(Dt);function Dt(){var jt;ct(this,Dt);for(var Pt=arguments.length,Ct=new Array(Pt),wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",Pt),Ct||this.pause()}},{key:"setVolume",value:function(Pt){this.callPlayer("setVolume",Pt)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var Pt={width:"100%",height:"100%"};return nt.default.createElement("div",{style:Pt,id:this.playerID})}}]),Dt}(nt.Component);tt.default=At,xt(At,"displayName","Twitch"),xt(At,"canPlay",it.canPlay.twitch),xt(At,"loopOnEnded",!0)}(Twitch)),Twitch}var DailyMotion={},hasRequiredDailyMotion;function requireDailyMotion(){return hasRequiredDailyMotion||(hasRequiredDailyMotion=1,function(tt){function et(wt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Ot){return typeof Ot}:et=function(Ot){return Ot&&typeof Symbol=="function"&&Ot.constructor===Symbol&&Ot!==Symbol.prototype?"symbol":typeof Ot},et(wt)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var wt=new WeakMap;return ot=function(){return wt},wt}function at(wt){if(wt&&wt.__esModule)return wt;if(wt===null||et(wt)!=="object"&&typeof wt!="function")return{default:wt};var It=ot();if(It&&It.has(wt))return It.get(wt);var Ot={},Wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var zt in wt)if(Object.prototype.hasOwnProperty.call(wt,zt)){var Ft=Wt?Object.getOwnPropertyDescriptor(wt,zt):null;Ft&&(Ft.get||Ft.set)?Object.defineProperty(Ot,zt,Ft):Ot[zt]=wt[zt]}return Ot.default=wt,It&&It.set(wt,Ot),Ot}function st(wt,It){var Ot=Object.keys(wt);if(Object.getOwnPropertySymbols){var Wt=Object.getOwnPropertySymbols(wt);It&&(Wt=Wt.filter(function(zt){return Object.getOwnPropertyDescriptor(wt,zt).enumerable})),Ot.push.apply(Ot,Wt)}return Ot}function lt(wt){for(var It=1;Itwt.length)&&(It=wt.length);for(var Ot=0,Wt=new Array(It);Ot"u"||!(Symbol.iterator in Object(wt)))){var Ot=[],Wt=!0,zt=!1,Ft=void 0;try{for(var Nt=wt[Symbol.iterator](),Ut;!(Wt=(Ut=Nt.next()).done)&&(Ot.push(Ut.value),!(It&&Ot.length===It));Wt=!0);}catch(Mt){zt=!0,Ft=Mt}finally{try{!Wt&&Nt.return!=null&&Nt.return()}finally{if(zt)throw Ft}}return Ot}}function mt(wt){if(Array.isArray(wt))return wt}function gt(wt,It){if(!(wt instanceof It))throw new TypeError("Cannot call a class as a function")}function yt(wt,It){for(var Ot=0;Ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Et(wt){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(Ot){return Ot.__proto__||Object.getPrototypeOf(Ot)},Et(wt)}function $t(wt,It,Ot){return It in wt?Object.defineProperty(wt,It,{value:Ot,enumerable:!0,configurable:!0,writable:!0}):wt[It]=Ot,wt}var Dt="https://api.dmcdn.net/all.js",jt="DM",Pt="dmAsyncInit",Ct=function(wt){vt(Ot,wt);var It=kt(Ot);function Ot(){var Wt;gt(this,Ot);for(var zt=arguments.length,Ft=new Array(zt),Nt=0;Nt1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",zt),Ft||this.pause()}},{key:"setVolume",value:function(zt){this.callPlayer("setVolume",zt)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var zt=this.props.display,Ft={width:"100%",height:"100%",display:zt};return nt.default.createElement("div",{style:Ft},nt.default.createElement("div",{ref:this.ref}))}}]),Ot}(nt.Component);tt.default=Ct,$t(Ct,"displayName","DailyMotion"),$t(Ct,"canPlay",it.canPlay.dailymotion),$t(Ct,"loopOnEnded",!0)}(DailyMotion)),DailyMotion}var Mixcloud={},hasRequiredMixcloud;function requireMixcloud(){return hasRequiredMixcloud||(hasRequiredMixcloud=1,function(tt){function et(At){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function($t){return typeof $t}:et=function($t){return $t&&typeof Symbol=="function"&&$t.constructor===Symbol&&$t!==Symbol.prototype?"symbol":typeof $t},et(At)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var At=new WeakMap;return ot=function(){return At},At}function at(At){if(At&&At.__esModule)return At;if(At===null||et(At)!=="object"&&typeof At!="function")return{default:At};var Et=ot();if(Et&&Et.has(At))return Et.get(At);var $t={},Dt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var jt in At)if(Object.prototype.hasOwnProperty.call(At,jt)){var Pt=Dt?Object.getOwnPropertyDescriptor(At,jt):null;Pt&&(Pt.get||Pt.set)?Object.defineProperty($t,jt,Pt):$t[jt]=At[jt]}return $t.default=At,Et&&Et.set(At,$t),$t}function st(At,Et){var $t=Object.keys(At);if(Object.getOwnPropertySymbols){var Dt=Object.getOwnPropertySymbols(At);Et&&(Dt=Dt.filter(function(jt){return Object.getOwnPropertyDescriptor(At,jt).enumerable})),$t.push.apply($t,Dt)}return $t}function lt(At){for(var Et=1;Et"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vt(At){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function($t){return $t.__proto__||Object.getPrototypeOf($t)},vt(At)}function xt(At,Et,$t){return Et in At?Object.defineProperty(At,Et,{value:$t,enumerable:!0,configurable:!0,writable:!0}):At[Et]=$t,At}var kt="https://widget.mixcloud.com/media/js/widgetApi.js",St="Mixcloud",Tt=function(At){dt($t,At);var Et=mt($t);function $t(){var Dt;ct(this,$t);for(var jt=arguments.length,Pt=new Array(jt),Ct=0;Ct1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",jt),Pt||this.pause()}},{key:"setVolume",value:function(jt){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var jt=this.props,Pt=jt.url,Ct=jt.config,wt=Pt.match(it.MATCH_URL_MIXCLOUD)[1],It={width:"100%",height:"100%"},Ot=(0,rt.queryString)(lt(lt({},Ct.options),{},{feed:"/".concat(wt,"/")}));return nt.default.createElement("iframe",{key:wt,ref:this.ref,style:It,src:"https://www.mixcloud.com/widget/iframe/?".concat(Ot),frameBorder:"0",allow:"autoplay"})}}]),$t}(nt.Component);tt.default=Tt,xt(Tt,"displayName","Mixcloud"),xt(Tt,"canPlay",it.canPlay.mixcloud),xt(Tt,"loopOnEnded",!0)}(Mixcloud)),Mixcloud}var Vidyard={},hasRequiredVidyard;function requireVidyard(){return hasRequiredVidyard||(hasRequiredVidyard=1,function(tt){function et(Et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Dt){return typeof Dt}:et=function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},et(Et)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var Et=new WeakMap;return ot=function(){return Et},Et}function at(Et){if(Et&&Et.__esModule)return Et;if(Et===null||et(Et)!=="object"&&typeof Et!="function")return{default:Et};var $t=ot();if($t&&$t.has(Et))return $t.get(Et);var Dt={},jt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pt in Et)if(Object.prototype.hasOwnProperty.call(Et,Pt)){var Ct=jt?Object.getOwnPropertyDescriptor(Et,Pt):null;Ct&&(Ct.get||Ct.set)?Object.defineProperty(Dt,Pt,Ct):Dt[Pt]=Et[Pt]}return Dt.default=Et,$t&&$t.set(Et,Dt),Dt}function st(Et,$t){var Dt=Object.keys(Et);if(Object.getOwnPropertySymbols){var jt=Object.getOwnPropertySymbols(Et);$t&&(jt=jt.filter(function(Pt){return Object.getOwnPropertyDescriptor(Et,Pt).enumerable})),Dt.push.apply(Dt,jt)}return Dt}function lt(Et){for(var $t=1;$t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function vt(Et){return vt=Object.setPrototypeOf?Object.getPrototypeOf:function(Dt){return Dt.__proto__||Object.getPrototypeOf(Dt)},vt(Et)}function xt(Et,$t,Dt){return $t in Et?Object.defineProperty(Et,$t,{value:Dt,enumerable:!0,configurable:!0,writable:!0}):Et[$t]=Dt,Et}var kt="https://play.vidyard.com/embed/v4.js",St="VidyardV4",Tt="onVidyardAPI",At=function(Et){dt(Dt,Et);var $t=mt(Dt);function Dt(){var jt;ct(this,Dt);for(var Pt=arguments.length,Ct=new Array(Pt),wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("seek",Pt),Ct||this.pause()}},{key:"setVolume",value:function(Pt){this.callPlayer("setVolume",Pt)}},{key:"setPlaybackRate",value:function(Pt){this.callPlayer("setPlaybackSpeed",Pt)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var Pt=this.props.display,Ct={width:"100%",height:"100%",display:Pt};return nt.default.createElement("div",{style:Ct},nt.default.createElement("div",{ref:this.ref}))}}]),Dt}(nt.Component);tt.default=At,xt(At,"displayName","Vidyard"),xt(At,"canPlay",it.canPlay.vidyard)}(Vidyard)),Vidyard}var Kaltura={},hasRequiredKaltura;function requireKaltura(){return hasRequiredKaltura||(hasRequiredKaltura=1,function(tt){function et(St){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(At){return typeof At}:et=function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},et(St)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var St=new WeakMap;return ot=function(){return St},St}function at(St){if(St&&St.__esModule)return St;if(St===null||et(St)!=="object"&&typeof St!="function")return{default:St};var Tt=ot();if(Tt&&Tt.has(St))return Tt.get(St);var At={},Et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $t in St)if(Object.prototype.hasOwnProperty.call(St,$t)){var Dt=Et?Object.getOwnPropertyDescriptor(St,$t):null;Dt&&(Dt.get||Dt.set)?Object.defineProperty(At,$t,Dt):At[$t]=St[$t]}return At.default=St,Tt&&Tt.set(St,At),At}function st(St,Tt){if(!(St instanceof Tt))throw new TypeError("Cannot call a class as a function")}function lt(St,Tt){for(var At=0;At"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function yt(St){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(At){return At.__proto__||Object.getPrototypeOf(At)},yt(St)}function bt(St,Tt,At){return Tt in St?Object.defineProperty(St,Tt,{value:At,enumerable:!0,configurable:!0,writable:!0}):St[Tt]=At,St}var vt="https://cdn.embed.ly/player-0.1.0.min.js",xt="playerjs",kt=function(St){ut(At,St);var Tt=dt(At);function At(){var Et;st(this,At);for(var $t=arguments.length,Dt=new Array($t),jt=0;jt<$t;jt++)Dt[jt]=arguments[jt];return Et=Tt.call.apply(Tt,[this].concat(Dt)),bt(mt(Et),"callPlayer",rt.callPlayer),bt(mt(Et),"duration",null),bt(mt(Et),"currentTime",null),bt(mt(Et),"secondsLoaded",null),bt(mt(Et),"mute",function(){Et.callPlayer("mute")}),bt(mt(Et),"unmute",function(){Et.callPlayer("unmute")}),bt(mt(Et),"ref",function(Pt){Et.iframe=Pt}),Et}return ct(At,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function($t){var Dt=this;(0,rt.getSDK)(vt,xt).then(function(jt){Dt.iframe&&(Dt.player=new jt.Player(Dt.iframe),Dt.player.on("ready",function(){setTimeout(function(){Dt.player.isReady=!0,Dt.player.setLoop(Dt.props.loop),Dt.props.muted&&Dt.player.mute(),Dt.addListeners(Dt.player,Dt.props),Dt.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function($t,Dt){var jt=this;$t.on("play",Dt.onPlay),$t.on("pause",Dt.onPause),$t.on("ended",Dt.onEnded),$t.on("error",Dt.onError),$t.on("timeupdate",function(Pt){var Ct=Pt.duration,wt=Pt.seconds;jt.duration=Ct,jt.currentTime=wt})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function($t){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.callPlayer("setCurrentTime",$t),Dt||this.pause()}},{key:"setVolume",value:function($t){this.callPlayer("setVolume",$t)}},{key:"setLoop",value:function($t){this.callPlayer("setLoop",$t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var $t={width:"100%",height:"100%"};return nt.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:$t,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),At}(nt.Component);tt.default=kt,bt(kt,"displayName","Kaltura"),bt(kt,"canPlay",it.canPlay.kaltura)}(Kaltura)),Kaltura}var FilePlayer={},hasRequiredFilePlayer;function requireFilePlayer(){return hasRequiredFilePlayer||(hasRequiredFilePlayer=1,function(tt){function et(Wt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(Ft){return typeof Ft}:et=function(Ft){return Ft&&typeof Symbol=="function"&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft},et(Wt)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=at(reactExports),rt=utils,it=patterns;function ot(){if(typeof WeakMap!="function")return null;var Wt=new WeakMap;return ot=function(){return Wt},Wt}function at(Wt){if(Wt&&Wt.__esModule)return Wt;if(Wt===null||et(Wt)!=="object"&&typeof Wt!="function")return{default:Wt};var zt=ot();if(zt&&zt.has(Wt))return zt.get(Wt);var Ft={},Nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ut in Wt)if(Object.prototype.hasOwnProperty.call(Wt,Ut)){var Mt=Nt?Object.getOwnPropertyDescriptor(Wt,Ut):null;Mt&&(Mt.get||Mt.set)?Object.defineProperty(Ft,Ut,Mt):Ft[Ut]=Wt[Ut]}return Ft.default=Wt,zt&&zt.set(Wt,Ft),Ft}function st(){return st=Object.assign||function(Wt){for(var zt=1;zt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function bt(Wt){return bt=Object.setPrototypeOf?Object.getPrototypeOf:function(Ft){return Ft.__proto__||Object.getPrototypeOf(Ft)},bt(Wt)}function vt(Wt,zt,Ft){return zt in Wt?Object.defineProperty(Wt,zt,{value:Ft,enumerable:!0,configurable:!0,writable:!0}):Wt[zt]=Ft,Wt}var xt=typeof navigator<"u",kt=xt&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,St=xt&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||kt)&&!window.MSStream,Tt=xt&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,At="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",Et="Hls",$t="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",Dt="dashjs",jt="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",Pt="flvjs",Ct=/www\.dropbox\.com\/.+/,wt=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,It="https://videodelivery.net/{id}/manifest/video.m3u8",Ot=function(Wt){ht(Ft,Wt);var zt=pt(Ft);function Ft(){var Nt;lt(this,Ft);for(var Ut=arguments.length,Mt=new Array(Ut),Ht=0;Ht1&&arguments[1]!==void 0?arguments[1]:!0;this.player.currentTime=Ut,Mt||this.pause()}},{key:"setVolume",value:function(Ut){this.player.volume=Ut}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,rt.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,rt.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(Ut){try{this.player.playbackRate=Ut}catch(Mt){this.props.onError(Mt)}}},{key:"getDuration",value:function(){if(!this.player)return null;var Ut=this.player,Mt=Ut.duration,Ht=Ut.seekable;return Mt===1/0&&Ht.length>0?Ht.end(Ht.length-1):Mt}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var Ut=this.player.buffered;if(Ut.length===0)return 0;var Mt=Ut.end(Ut.length-1),Ht=this.getDuration();return Mt>Ht?Ht:Mt}},{key:"getSource",value:function(Ut){var Mt=this.shouldUseHLS(Ut),Ht=this.shouldUseDASH(Ut),en=this.shouldUseFLV(Ut);if(!(Ut instanceof Array||(0,rt.isMediaStream)(Ut)||Mt||Ht||en))return Ct.test(Ut)?Ut.replace("www.dropbox.com","dl.dropboxusercontent.com"):Ut}},{key:"render",value:function(){var Ut=this.props,Mt=Ut.url,Ht=Ut.playing,en=Ut.loop,sn=Ut.controls,Kt=Ut.muted,rn=Ut.config,nn=Ut.width,hn=Ut.height,vn=this.shouldUseAudio(this.props),an=vn?"audio":"video",Qt={width:nn==="auto"?nn:"100%",height:hn==="auto"?hn:"100%"};return nt.default.createElement(an,st({ref:this.ref,src:this.getSource(Mt),style:Qt,preload:"auto",autoPlay:Ht||void 0,controls:sn,muted:Kt,loop:en},rn.attributes),Mt instanceof Array&&Mt.map(this.renderSourceElement),rn.tracks.map(this.renderTrack))}}]),Ft}(nt.Component);tt.default=Ot,vt(Ot,"displayName","FilePlayer"),vt(Ot,"canPlay",it.canPlay.file)}(FilePlayer)),FilePlayer}(function(tt){Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var et=reactExports,nt=utils,rt=patterns;function it(lt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?it=function(ut){return typeof ut}:it=function(ut){return ut&&typeof Symbol=="function"&&ut.constructor===Symbol&&ut!==Symbol.prototype?"symbol":typeof ut},it(lt)}function ot(){if(typeof WeakMap!="function")return null;var lt=new WeakMap;return ot=function(){return lt},lt}function at(lt){if(lt&<.__esModule)return lt;if(lt===null||it(lt)!=="object"&&typeof lt!="function")return{default:lt};var ct=ot();if(ct&&ct.has(lt))return ct.get(lt);var ut={},ht=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var dt in lt)if(Object.prototype.hasOwnProperty.call(lt,dt)){var pt=ht?Object.getOwnPropertyDescriptor(lt,dt):null;pt&&(pt.get||pt.set)?Object.defineProperty(ut,dt,pt):ut[dt]=lt[dt]}return ut.default=lt,ct&&ct.set(lt,ut),ut}var st=[{key:"youtube",name:"YouTube",canPlay:rt.canPlay.youtube,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireYouTube())})})},{key:"soundcloud",name:"SoundCloud",canPlay:rt.canPlay.soundcloud,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireSoundCloud())})})},{key:"vimeo",name:"Vimeo",canPlay:rt.canPlay.vimeo,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireVimeo())})})},{key:"facebook",name:"Facebook",canPlay:rt.canPlay.facebook,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireFacebook())})})},{key:"streamable",name:"Streamable",canPlay:rt.canPlay.streamable,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireStreamable())})})},{key:"wistia",name:"Wistia",canPlay:rt.canPlay.wistia,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireWistia())})})},{key:"twitch",name:"Twitch",canPlay:rt.canPlay.twitch,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireTwitch())})})},{key:"dailymotion",name:"DailyMotion",canPlay:rt.canPlay.dailymotion,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireDailyMotion())})})},{key:"mixcloud",name:"Mixcloud",canPlay:rt.canPlay.mixcloud,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireMixcloud())})})},{key:"vidyard",name:"Vidyard",canPlay:rt.canPlay.vidyard,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireVidyard())})})},{key:"kaltura",name:"Kaltura",canPlay:rt.canPlay.kaltura,lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireKaltura())})})},{key:"file",name:"FilePlayer",canPlay:rt.canPlay.file,canEnablePIP:function(ct){return rt.canPlay.file(ct)&&(document.pictureInPictureEnabled||(0,nt.supportsWebKitPresentationMode)())&&!rt.AUDIO_EXTENSIONS.test(ct)},lazyPlayer:(0,et.lazy)(function(){return Promise.resolve().then(function(){return at(requireFilePlayer())})})}];tt.default=st})(players);var ReactPlayer$1={},safeIsNaN=Number.isNaN||function tt(et){return typeof et=="number"&&et!==et};function isEqual(tt,et){return!!(tt===et||safeIsNaN(tt)&&safeIsNaN(et))}function areInputsEqual(tt,et){if(tt.length!==et.length)return!1;for(var nt=0;nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function xt(At){return xt=Object.setPrototypeOf?Object.getPrototypeOf:function($t){return $t.__proto__||Object.getPrototypeOf($t)},xt(At)}function kt(At,Et,$t){return Et in At?Object.defineProperty(At,Et,{value:$t,enumerable:!0,configurable:!0,writable:!0}):At[Et]=$t,At}var St=5e3,Tt=function(At){pt($t,At);var Et=gt($t);function $t(){var Dt;ut(this,$t);for(var jt=arguments.length,Pt=new Array(jt),Ct=0;Ct0&&jt<1;if(It){var Ot=this.player.getDuration();if(!Ot){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(Ot*jt,Ct);return}this.player.seekTo(jt,Ct)}},{key:"render",value:function(){var jt=this.props.activePlayer;return jt?nt.default.createElement(jt,ct({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),$t}(nt.Component);tt.default=Tt,kt(Tt,"displayName","Player"),kt(Tt,"propTypes",it.propTypes),kt(Tt,"defaultProps",it.defaultProps)})(Player);var Preview$1={},hasRequiredPreview;function requirePreview(){return hasRequiredPreview||(hasRequiredPreview=1,function(tt){function et(St){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?et=function(At){return typeof At}:et=function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},et(St)}Object.defineProperty(tt,"__esModule",{value:!0}),tt.default=void 0;var nt=it(reactExports);function rt(){if(typeof WeakMap!="function")return null;var St=new WeakMap;return rt=function(){return St},St}function it(St){if(St&&St.__esModule)return St;if(St===null||et(St)!=="object"&&typeof St!="function")return{default:St};var Tt=rt();if(Tt&&Tt.has(St))return Tt.get(St);var At={},Et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $t in St)if(Object.prototype.hasOwnProperty.call(St,$t)){var Dt=Et?Object.getOwnPropertyDescriptor(St,$t):null;Dt&&(Dt.get||Dt.set)?Object.defineProperty(At,$t,Dt):At[$t]=St[$t]}return At.default=St,Tt&&Tt.set(St,At),At}function ot(St,Tt){var At=Object.keys(St);if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(St);Tt&&(Et=Et.filter(function($t){return Object.getOwnPropertyDescriptor(St,$t).enumerable})),At.push.apply(At,Et)}return At}function at(St){for(var Tt=1;Tt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function yt(St){return yt=Object.setPrototypeOf?Object.getPrototypeOf:function(At){return At.__proto__||Object.getPrototypeOf(At)},yt(St)}function bt(St,Tt,At){return Tt in St?Object.defineProperty(St,Tt,{value:At,enumerable:!0,configurable:!0,writable:!0}):St[Tt]=At,St}var vt="64px",xt={},kt=function(St){ut(At,St);var Tt=dt(At);function At(){var Et;st(this,At);for(var $t=arguments.length,Dt=new Array($t),jt=0;jt<$t;jt++)Dt[jt]=arguments[jt];return Et=Tt.call.apply(Tt,[this].concat(Dt)),bt(mt(Et),"mounted",!1),bt(mt(Et),"state",{image:null}),bt(mt(Et),"handleKeyPress",function(Pt){(Pt.key==="Enter"||Pt.key===" ")&&Et.props.onClick()}),Et}return ct(At,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function($t){var Dt=this.props,jt=Dt.url,Pt=Dt.light;($t.url!==jt||$t.light!==Pt)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function($t){var Dt=this,jt=$t.url,Pt=$t.light,Ct=$t.oEmbedUrl;if(!nt.default.isValidElement(Pt)){if(typeof Pt=="string"){this.setState({image:Pt});return}if(xt[jt]){this.setState({image:xt[jt]});return}return this.setState({image:null}),window.fetch(Ct.replace("{url}",jt)).then(function(wt){return wt.json()}).then(function(wt){if(wt.thumbnail_url&&Dt.mounted){var It=wt.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");Dt.setState({image:It}),xt[jt]=It}})}}},{key:"render",value:function(){var $t=this.props,Dt=$t.light,jt=$t.onClick,Pt=$t.playIcon,Ct=$t.previewTabIndex,wt=this.state.image,It=nt.default.isValidElement(Dt),Ot={display:"flex",alignItems:"center",justifyContent:"center"},Wt={preview:at({width:"100%",height:"100%",backgroundImage:wt&&!It?"url(".concat(wt,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},Ot),shadow:at({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:vt,width:vt,height:vt,position:It?"absolute":void 0},Ot),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},zt=nt.default.createElement("div",{style:Wt.shadow,className:"react-player__shadow"},nt.default.createElement("div",{style:Wt.playIcon,className:"react-player__play-icon"}));return nt.default.createElement("div",{style:Wt.preview,className:"react-player__preview",onClick:jt,tabIndex:Ct,onKeyPress:this.handleKeyPress},It?Dt:null,Pt||zt)}}]),At}(nt.Component);tt.default=kt}(Preview$1)),Preview$1}Object.defineProperty(ReactPlayer$1,"__esModule",{value:!0});ReactPlayer$1.createReactPlayer=void 0;var _react=_interopRequireWildcard(reactExports),_deepmerge=_interopRequireDefault(cjs),_memoizeOne=_interopRequireDefault(require$$2),_reactFastCompare=_interopRequireDefault(reactFastCompare),_props=props,_utils=utils,_Player3=_interopRequireDefault(Player);function _interopRequireDefault(tt){return tt&&tt.__esModule?tt:{default:tt}}function _typeof(tt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(nt){return typeof nt}:_typeof=function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_typeof(tt)}function ownKeys(tt,et){var nt=Object.keys(tt);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols(tt);et&&(rt=rt.filter(function(it){return Object.getOwnPropertyDescriptor(tt,it).enumerable})),nt.push.apply(nt,rt)}return nt}function _objectSpread(tt){for(var et=1;ettt.length)&&(et=tt.length);for(var nt=0,rt=new Array(et);nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(tt){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(nt){return nt.__proto__||Object.getPrototypeOf(nt)},_getPrototypeOf(tt)}function _defineProperty(tt,et,nt){return et in tt?Object.defineProperty(tt,et,{value:nt,enumerable:!0,configurable:!0,writable:!0}):tt[et]=nt,tt}function _getRequireWildcardCache(){if(typeof WeakMap!="function")return null;var tt=new WeakMap;return _getRequireWildcardCache=function(){return tt},tt}function _interopRequireWildcard(tt){if(tt&&tt.__esModule)return tt;if(tt===null||_typeof(tt)!=="object"&&typeof tt!="function")return{default:tt};var et=_getRequireWildcardCache();if(et&&et.has(tt))return et.get(tt);var nt={},rt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var it in tt)if(Object.prototype.hasOwnProperty.call(tt,it)){var ot=rt?Object.getOwnPropertyDescriptor(tt,it):null;ot&&(ot.get||ot.set)?Object.defineProperty(nt,it,ot):nt[it]=tt[it]}return nt.default=tt,et&&et.set(tt,nt),nt}var Preview=(0,_react.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(requirePreview())})}),IS_BROWSER=typeof window<"u"&&window.document,IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?_react.Suspense:function(){return null},customPlayers=[],createReactPlayer=function tt(et,nt){var rt,it;return it=rt=function(ot){_inherits(st,ot);var at=_createSuper(st);function st(){var lt;_classCallCheck(this,st);for(var ct=arguments.length,ut=new Array(ct),ht=0;ht0&&arguments[0]!==void 0?arguments[0]:"player";return lt.player?lt.player.getInternalPlayer(dt):null}),_defineProperty(_assertThisInitialized(lt),"seekTo",function(dt,pt,mt){if(!lt.player)return null;lt.player.seekTo(dt,pt,mt)}),_defineProperty(_assertThisInitialized(lt),"handleReady",function(){lt.props.onReady(_assertThisInitialized(lt))}),_defineProperty(_assertThisInitialized(lt),"getActivePlayer",(0,_memoizeOne.default)(function(dt){for(var pt=0,mt=[].concat(customPlayers,_toConsumableArray(et));pt{const tt=useDataStore(gt=>gt.selectedNode),et=reactExports.useRef(null),{link:nt,timestamp:rt,image_url:it,description:ot,date:at,boost:st,type:lt,id:ct,episode_title:ut,ref_id:ht}=tt||{},[dt,pt]=reactExports.useState(st||0),mt=videoTimetoSeconds(rt||"");return reactExports.useEffect(()=>{var gt;et.current&&((gt=et.current)==null||gt.seekTo(mt))},[et,mt]),tt?jsxRuntimeExports.jsxs(Wrapper$4,{children:[jsxRuntimeExports.jsx(PlayerWrapper,{children:jsxRuntimeExports.jsx(Flex,{direction:"row",children:jsxRuntimeExports.jsx(ReactPlayer,{ref:et,controls:!0,height:"200px",playing:!0,url:nt,width:"100%"})})}),jsxRuntimeExports.jsx(StyledEpisode,{boostCount:dt||0,date:at||0,description:formatDescription(ot),id:ct,imageUrl:it||"video_default.svg",isSelectedView:!0,onClick:()=>null,title:ut,type:lt}),jsxRuntimeExports.jsx(StyledDivider,{}),jsxRuntimeExports.jsxs(BoostWrapper,{children:[jsxRuntimeExports.jsx(BoostAmt,{amt:dt}),jsxRuntimeExports.jsx(Booster,{content:tt,count:dt,refId:ht,updateCount:pt})]}),jsxRuntimeExports.jsx(StyledDivider,{}),jsxRuntimeExports.jsx(TranscriptWrapper,{grow:1,shrink:1,children:jsxRuntimeExports.jsx(Transcript,{node:tt,stateless:!0})})]}):null},Wrapper$4=styled$4(Flex)` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(tt,et){if(tt){if(typeof tt=="string")return _arrayLikeToArray(tt,et);var nt=Object.prototype.toString.call(tt).slice(8,-1);if(nt==="Object"&&tt.constructor&&(nt=tt.constructor.name),nt==="Map"||nt==="Set")return Array.from(tt);if(nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nt))return _arrayLikeToArray(tt,et)}}function _iterableToArray(tt){if(typeof Symbol<"u"&&Symbol.iterator in Object(tt))return Array.from(tt)}function _arrayWithoutHoles(tt){if(Array.isArray(tt))return _arrayLikeToArray(tt)}function _arrayLikeToArray(tt,et){(et==null||et>tt.length)&&(et=tt.length);for(var nt=0,rt=new Array(et);nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(tt){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(nt){return nt.__proto__||Object.getPrototypeOf(nt)},_getPrototypeOf(tt)}function _defineProperty(tt,et,nt){return et in tt?Object.defineProperty(tt,et,{value:nt,enumerable:!0,configurable:!0,writable:!0}):tt[et]=nt,tt}function _getRequireWildcardCache(){if(typeof WeakMap!="function")return null;var tt=new WeakMap;return _getRequireWildcardCache=function(){return tt},tt}function _interopRequireWildcard(tt){if(tt&&tt.__esModule)return tt;if(tt===null||_typeof(tt)!=="object"&&typeof tt!="function")return{default:tt};var et=_getRequireWildcardCache();if(et&&et.has(tt))return et.get(tt);var nt={},rt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var it in tt)if(Object.prototype.hasOwnProperty.call(tt,it)){var ot=rt?Object.getOwnPropertyDescriptor(tt,it):null;ot&&(ot.get||ot.set)?Object.defineProperty(nt,it,ot):nt[it]=tt[it]}return nt.default=tt,et&&et.set(tt,nt),nt}var Preview=(0,_react.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(requirePreview())})}),IS_BROWSER=typeof window<"u"&&window.document,IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?_react.Suspense:function(){return null},customPlayers=[],createReactPlayer=function tt(et,nt){var rt,it;return it=rt=function(ot){_inherits(st,ot);var at=_createSuper(st);function st(){var lt;_classCallCheck(this,st);for(var ct=arguments.length,ut=new Array(ct),ht=0;ht0&&arguments[0]!==void 0?arguments[0]:"player";return lt.player?lt.player.getInternalPlayer(dt):null}),_defineProperty(_assertThisInitialized(lt),"seekTo",function(dt,pt,mt){if(!lt.player)return null;lt.player.seekTo(dt,pt,mt)}),_defineProperty(_assertThisInitialized(lt),"handleReady",function(){lt.props.onReady(_assertThisInitialized(lt))}),_defineProperty(_assertThisInitialized(lt),"getActivePlayer",(0,_memoizeOne.default)(function(dt){for(var pt=0,mt=[].concat(customPlayers,_toConsumableArray(et));pt{const tt=useDataStore(gt=>gt.selectedNode),et=reactExports.useRef(null),{link:nt,timestamp:rt,image_url:it,description:ot,date:at,boost:st,type:lt,id:ct,show_title:ut,ref_id:ht}=tt||{},[dt,pt]=reactExports.useState(st||0),mt=videoTimetoSeconds(rt||"");return reactExports.useEffect(()=>{var gt;et.current&&((gt=et.current)==null||gt.seekTo(mt))},[et,mt]),tt?jsxRuntimeExports.jsxs(Wrapper$4,{children:[jsxRuntimeExports.jsx(PlayerWrapper,{children:jsxRuntimeExports.jsx(Flex,{direction:"row",children:jsxRuntimeExports.jsx(ReactPlayer,{ref:et,controls:!0,height:"200px",playing:!0,url:nt,width:"100%"})})}),jsxRuntimeExports.jsx(StyledEpisode,{boostCount:dt||0,date:at||0,description:formatDescription(ot),id:ct,imageUrl:it||"video_default.svg",isSelectedView:!0,onClick:()=>null,title:ut,type:lt}),jsxRuntimeExports.jsx(StyledDivider,{}),jsxRuntimeExports.jsxs(BoostWrapper,{children:[jsxRuntimeExports.jsx(BoostAmt,{amt:dt}),jsxRuntimeExports.jsx(Booster,{content:tt,count:dt,refId:ht,updateCount:pt})]}),jsxRuntimeExports.jsx(StyledDivider,{}),jsxRuntimeExports.jsx(TranscriptWrapper,{grow:1,shrink:1,children:jsxRuntimeExports.jsx(Transcript,{node:tt,stateless:!0})})]}):null},Wrapper$4=styled$4(Flex)` flex: 1; min-height: 100%; flex-direction: column; diff --git a/build/index.html b/build/index.html index 5177d9d6e..d064889f1 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +