@apollosproject/canvas-embeds 2.1.892 → 2.1.894
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/widget/index.js +1 -1
package/package.json
CHANGED
package/widget/index.js
CHANGED
|
@@ -596,7 +596,7 @@ Url: ${zf(a)}`),!0)}function aF0(a,t){return a.type||!t||!t.length?!1:lF0(a).som
|
|
|
596
596
|
url
|
|
597
597
|
}
|
|
598
598
|
`);var sL,ls0;function yW0(){if(ls0)return sL;ls0=1,sL=function(l,i,o){var c=document.head||document.getElementsByTagName("head")[0],m=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},m.type=i.type||"text/javascript",m.charset=i.charset||"utf8",m.async="async"in i?!!i.async:!0,m.src=l,i.attrs&&a(m,i.attrs),i.text&&(m.text=""+i.text);var u="onload"in m?t:n;u(m,o),m.onload||t(m,o),c.appendChild(m)};function a(r,l){for(var i in l)r.setAttribute(i,l[i])}function t(r,l){r.onload=function(){this.onerror=this.onload=null,l(null,r)},r.onerror=function(){this.onerror=this.onload=null,l(new Error("Failed to load "+this.src),r)}}function n(r,l){r.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,l(null,r))}}return sL}var mL,is0;function os0(){if(is0)return mL;is0=1;var a=function(_){return t(_)&&!n(_)};function t(S){return!!S&&typeof S=="object"}function n(S){var _=Object.prototype.toString.call(S);return _==="[object RegExp]"||_==="[object Date]"||i(S)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(S){return S.$$typeof===l}function o(S){return Array.isArray(S)?[]:{}}function c(S,_){return _.clone!==!1&&_.isMergeableObject(S)?V(o(S),S,_):S}function m(S,_,k){return S.concat(_).map(function(C){return c(C,k)})}function u(S,_){if(!_.customMerge)return V;var k=_.customMerge(S);return typeof k=="function"?k:V}function p(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(_){return Object.propertyIsEnumerable.call(S,_)}):[]}function f(S){return Object.keys(S).concat(p(S))}function A(S,_){try{return _ in S}catch{return!1}}function Z(S,_){return A(S,_)&&!(Object.hasOwnProperty.call(S,_)&&Object.propertyIsEnumerable.call(S,_))}function H(S,_,k){var C={};return k.isMergeableObject(S)&&f(S).forEach(function(L){C[L]=c(S[L],k)}),f(_).forEach(function(L){Z(S,L)||(A(S,L)&&k.isMergeableObject(_[L])?C[L]=u(L,k)(S[L],_[L],k):C[L]=c(_[L],k))}),C}function V(S,_,k){k=k||{},k.arrayMerge=k.arrayMerge||m,k.isMergeableObject=k.isMergeableObject||a,k.cloneUnlessOtherwiseSpecified=c;var C=Array.isArray(_),L=Array.isArray(S),T=C===L;return T?C?k.arrayMerge(S,_,k):H(S,_,k):c(_,k)}V.all=function(_,k){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(C,L){return V(C,L,k)},{})};var b=V;return mL=b,mL}var dL,cs0;function N4(){if(cs0)return dL;cs0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(u0,K)=>{for(var Y in K)t(u0,Y,{get:K[Y],enumerable:!0})},c=(u0,K,Y,e0)=>{if(K&&typeof K=="object"||typeof K=="function")for(let z of r(K))!i.call(u0,z)&&z!==Y&&t(u0,z,{get:()=>K[z],enumerable:!(e0=n(K,z))||e0.enumerable});return u0},m=(u0,K,Y)=>(Y=u0!=null?a(l(u0)):{},c(!u0||!u0.__esModule?t(Y,"default",{value:u0,enumerable:!0}):Y,u0)),u=u0=>c(t({},"__esModule",{value:!0}),u0),p={};o(p,{callPlayer:()=>J,getConfig:()=>t0,getSDK:()=>q,isBlobUrl:()=>g0,isMediaStream:()=>X,lazy:()=>H,omit:()=>n0,parseEndTime:()=>T,parseStartTime:()=>L,queryString:()=>R,randomString:()=>O,supportsWebKitPresentationMode:()=>y0}),dL=u(p);var f=m(E2()),A=m(yW0()),Z=m(os0());const H=u0=>f.default.lazy(async()=>{const K=await u0();return typeof K.default=="function"?K:K.default}),V=/[?&#](?:start|t)=([0-9hms]+)/,b=/[?&#]end=([0-9hms]+)/,S=/(\d+)(h|m|s)/g,_=/^\d+$/;function k(u0,K){if(u0 instanceof Array)return;const Y=u0.match(K);if(Y){const e0=Y[1];if(e0.match(S))return C(e0);if(_.test(e0))return parseInt(e0)}}function C(u0){let K=0,Y=S.exec(u0);for(;Y!==null;){const[,e0,z]=Y;z==="h"&&(K+=parseInt(e0,10)*60*60),z==="m"&&(K+=parseInt(e0,10)*60),z==="s"&&(K+=parseInt(e0,10)),Y=S.exec(u0)}return K}function L(u0){return k(u0,V)}function T(u0){return k(u0,b)}function O(){return Math.random().toString(36).substr(2,5)}function R(u0){return Object.keys(u0).map(K=>`${K}=${u0[K]}`).join("&")}function U(u0){return window[u0]?window[u0]:window.exports&&window.exports[u0]?window.exports[u0]:window.module&&window.module.exports&&window.module.exports[u0]?window.module.exports[u0]:null}const x={},q=function(K,Y,e0=null,z=()=>!0,H0=A.default){const V0=U(Y);return V0&&z(V0)?Promise.resolve(V0):new Promise((c0,P0)=>{if(x[K]){x[K].push({resolve:c0,reject:P0});return}x[K]=[{resolve:c0,reject:P0}];const l0=p0=>{x[K].forEach(v0=>v0.resolve(p0))};if(e0){const p0=window[e0];window[e0]=function(){p0&&p0(),l0(U(Y))}}H0(K,p0=>{p0?(x[K].forEach(v0=>v0.reject(p0)),x[K]=null):e0||l0(U(Y))})})};function t0(u0,K){return(0,Z.default)(K.config,u0.config)}function n0(u0,...K){const Y=[].concat(...K),e0={},z=Object.keys(u0);for(const H0 of z)Y.indexOf(H0)===-1&&(e0[H0]=u0[H0]);return e0}function J(u0,...K){if(!this.player||!this.player[u0]){let Y=`ReactPlayer: ${this.constructor.displayName} player could not call %c${u0}%c – `;return this.player?this.player[u0]||(Y+="The method was not available"):Y+="The player was not available",console.warn(Y,"font-weight: bold",""),null}return this.player[u0](...K)}function X(u0){return typeof window<"u"&&typeof window.MediaStream<"u"&&u0 instanceof window.MediaStream}function g0(u0){return/^blob:/.test(u0)}function y0(u0=document.createElement("video")){const K=/iPhone|iPod/.test(navigator.userAgent)===!1;return u0.webkitSupportsPresentationMode&&typeof u0.webkitSetPresentationMode=="function"&&K}function o0(u0){return u0}return dL}var uL,ss0;function Na(){if(ss0)return uL;ss0=1;var a=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,l=(J,X)=>{for(var g0 in X)a(J,g0,{get:X[g0],enumerable:!0})},i=(J,X,g0,y0)=>{if(X&&typeof X=="object"||typeof X=="function")for(let o0 of n(X))!r.call(J,o0)&&o0!==g0&&a(J,o0,{get:()=>X[o0],enumerable:!(y0=t(X,o0))||y0.enumerable});return J},o=J=>i(a({},"__esModule",{value:!0}),J),c={};l(c,{AUDIO_EXTENSIONS:()=>O,DASH_EXTENSIONS:()=>x,FLV_EXTENSIONS:()=>q,HLS_EXTENSIONS:()=>U,MATCH_URL_DAILYMOTION:()=>k,MATCH_URL_FACEBOOK:()=>Z,MATCH_URL_FACEBOOK_WATCH:()=>H,MATCH_URL_KALTURA:()=>T,MATCH_URL_MIXCLOUD:()=>C,MATCH_URL_MUX:()=>A,MATCH_URL_SOUNDCLOUD:()=>p,MATCH_URL_STREAMABLE:()=>V,MATCH_URL_TWITCH_CHANNEL:()=>_,MATCH_URL_TWITCH_VIDEO:()=>S,MATCH_URL_VIDYARD:()=>L,MATCH_URL_VIMEO:()=>f,MATCH_URL_WISTIA:()=>b,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>R,canPlay:()=>n0}),uL=o(c);var m=N4();const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,p=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,f=/vimeo\.com\/(?!progressive_redirect).+/,A=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,Z=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,H=/^https?:\/\/fb\.watch\/.+$/,V=/streamable\.com\/([a-z0-9]+)$/,b=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,S=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,_=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,k=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,C=/mixcloud\.com\/([^/]+\/[^/]+)/,L=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,T=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,O=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,R=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,U=/\.(m3u8)($|\?)/i,x=/\.(mpd)($|\?)/i,q=/\.(flv)($|\?)/i,t0=J=>{if(J instanceof Array){for(const X of J)if(typeof X=="string"&&t0(X)||t0(X.src))return!0;return!1}return(0,m.isMediaStream)(J)||(0,m.isBlobUrl)(J)?!0:O.test(J)||R.test(J)||U.test(J)||x.test(J)||q.test(J)},n0={youtube:J=>J instanceof Array?J.every(X=>u.test(X)):u.test(J),soundcloud:J=>p.test(J)&&!O.test(J),vimeo:J=>f.test(J)&&!R.test(J)&&!U.test(J),mux:J=>A.test(J),facebook:J=>Z.test(J)||H.test(J),streamable:J=>V.test(J),wistia:J=>b.test(J),twitch:J=>S.test(J)||_.test(J),dailymotion:J=>k.test(J),mixcloud:J=>C.test(J),vidyard:J=>L.test(J),kaltura:J=>T.test(J),file:t0};return uL}var pL,ms0;function bW0(){if(ms0)return pL;ms0=1;var a=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,l=(f,A)=>{for(var Z in A)a(f,Z,{get:A[Z],enumerable:!0})},i=(f,A,Z,H)=>{if(A&&typeof A=="object"||typeof A=="function")for(let V of n(A))!r.call(f,V)&&V!==Z&&a(f,V,{get:()=>A[V],enumerable:!(H=t(A,V))||H.enumerable});return f},o=f=>i(a({},"__esModule",{value:!0}),f),c={};l(c,{default:()=>p}),pL=o(c);var m=N4(),u=Na(),p=[{key:"youtube",name:"YouTube",canPlay:u.canPlay.youtube,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>ute))},{key:"soundcloud",name:"SoundCloud",canPlay:u.canPlay.soundcloud,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>hte))},{key:"vimeo",name:"Vimeo",canPlay:u.canPlay.vimeo,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Ate))},{key:"mux",name:"Mux",canPlay:u.canPlay.mux,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>gte))},{key:"facebook",name:"Facebook",canPlay:u.canPlay.facebook,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Hte))},{key:"streamable",name:"Streamable",canPlay:u.canPlay.streamable,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Ete))},{key:"wistia",name:"Wistia",canPlay:u.canPlay.wistia,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>yte))},{key:"twitch",name:"Twitch",canPlay:u.canPlay.twitch,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Ste))},{key:"dailymotion",name:"DailyMotion",canPlay:u.canPlay.dailymotion,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Fte))},{key:"mixcloud",name:"Mixcloud",canPlay:u.canPlay.mixcloud,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>kte))},{key:"vidyard",name:"Vidyard",canPlay:u.canPlay.vidyard,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Cte))},{key:"kaltura",name:"Kaltura",canPlay:u.canPlay.kaltura,lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>Tte))},{key:"file",name:"FilePlayer",canPlay:u.canPlay.file,canEnablePIP:f=>u.canPlay.file(f)&&(document.pictureInPictureEnabled||(0,m.supportsWebKitPresentationMode)())&&!u.AUDIO_EXTENSIONS.test(f),lazyPlayer:(0,m.lazy)(()=>Promise.resolve().then(()=>$te))}];return pL}var ds0=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function SW0(a,t){return!!(a===t||ds0(a)&&ds0(t))}function LW0(a,t){if(a.length!==t.length)return!1;for(var n=0;n<a.length;n++)if(!SW0(a[n],t[n]))return!1;return!0}function FW0(a,t){t===void 0&&(t=LW0);var n,r=[],l,i=!1;function o(){for(var c=[],m=0;m<arguments.length;m++)c[m]=arguments[m];return i&&n===this&&t(c,r)||(l=a.apply(this,c),i=!0,n=this,r=c),l}return o}const _W0=Vf(Object.freeze(Object.defineProperty({__proto__:null,default:FW0},Symbol.toStringTag,{value:"Module"})));var hL,us0;function ps0(){if(us0)return hL;us0=1;var a=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function l(i,o){if(i===o)return!0;if(i&&o&&typeof i=="object"&&typeof o=="object"){if(i.constructor!==o.constructor)return!1;var c,m,u;if(Array.isArray(i)){if(c=i.length,c!=o.length)return!1;for(m=c;m--!==0;)if(!l(i[m],o[m]))return!1;return!0}var p;if(t&&i instanceof Map&&o instanceof Map){if(i.size!==o.size)return!1;for(p=i.entries();!(m=p.next()).done;)if(!o.has(m.value[0]))return!1;for(p=i.entries();!(m=p.next()).done;)if(!l(m.value[1],o.get(m.value[0])))return!1;return!0}if(n&&i instanceof Set&&o instanceof Set){if(i.size!==o.size)return!1;for(p=i.entries();!(m=p.next()).done;)if(!o.has(m.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(o)){if(c=i.length,c!=o.length)return!1;for(m=c;m--!==0;)if(i[m]!==o[m])return!1;return!0}if(i.constructor===RegExp)return i.source===o.source&&i.flags===o.flags;if(i.valueOf!==Object.prototype.valueOf&&typeof i.valueOf=="function"&&typeof o.valueOf=="function")return i.valueOf()===o.valueOf();if(i.toString!==Object.prototype.toString&&typeof i.toString=="function"&&typeof o.toString=="function")return i.toString()===o.toString();if(u=Object.keys(i),c=u.length,c!==Object.keys(o).length)return!1;for(m=c;m--!==0;)if(!Object.prototype.hasOwnProperty.call(o,u[m]))return!1;if(a&&i instanceof Element)return!1;for(m=c;m--!==0;)if(!((u[m]==="_owner"||u[m]==="__v"||u[m]==="__o")&&i.$$typeof)&&!l(i[u[m]],o[u[m]]))return!1;return!0}return i!==i&&o!==o}return hL=function(o,c){try{return l(o,c)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}},hL}var xv={exports:{}},jv={exports:{}},R2={};var hs0;function kW0(){if(hs0)return R2;hs0=1;var a=typeof Symbol=="function"&&Symbol.for,t=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,r=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,o=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,m=a?Symbol.for("react.async_mode"):60111,u=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,f=a?Symbol.for("react.suspense"):60113,A=a?Symbol.for("react.suspense_list"):60120,Z=a?Symbol.for("react.memo"):60115,H=a?Symbol.for("react.lazy"):60116,V=a?Symbol.for("react.block"):60121,b=a?Symbol.for("react.fundamental"):60117,S=a?Symbol.for("react.responder"):60118,_=a?Symbol.for("react.scope"):60119;function k(L){if(typeof L=="object"&&L!==null){var T=L.$$typeof;switch(T){case t:switch(L=L.type,L){case m:case u:case r:case i:case l:case f:return L;default:switch(L=L&&L.$$typeof,L){case c:case p:case H:case Z:case o:return L;default:return T}}case n:return T}}}function C(L){return k(L)===u}return R2.AsyncMode=m,R2.ConcurrentMode=u,R2.ContextConsumer=c,R2.ContextProvider=o,R2.Element=t,R2.ForwardRef=p,R2.Fragment=r,R2.Lazy=H,R2.Memo=Z,R2.Portal=n,R2.Profiler=i,R2.StrictMode=l,R2.Suspense=f,R2.isAsyncMode=function(L){return C(L)||k(L)===m},R2.isConcurrentMode=C,R2.isContextConsumer=function(L){return k(L)===c},R2.isContextProvider=function(L){return k(L)===o},R2.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},R2.isForwardRef=function(L){return k(L)===p},R2.isFragment=function(L){return k(L)===r},R2.isLazy=function(L){return k(L)===H},R2.isMemo=function(L){return k(L)===Z},R2.isPortal=function(L){return k(L)===n},R2.isProfiler=function(L){return k(L)===i},R2.isStrictMode=function(L){return k(L)===l},R2.isSuspense=function(L){return k(L)===f},R2.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===r||L===u||L===i||L===l||L===f||L===A||typeof L=="object"&&L!==null&&(L.$$typeof===H||L.$$typeof===Z||L.$$typeof===o||L.$$typeof===c||L.$$typeof===p||L.$$typeof===b||L.$$typeof===S||L.$$typeof===_||L.$$typeof===V)},R2.typeOf=k,R2}var D2={},fs0;function wW0(){if(fs0)return D2;fs0=1;var a={};return a.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,m=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,A=t?Symbol.for("react.suspense"):60113,Z=t?Symbol.for("react.suspense_list"):60120,H=t?Symbol.for("react.memo"):60115,V=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,k=t?Symbol.for("react.scope"):60119;function C(B){return typeof B=="string"||typeof B=="function"||B===l||B===p||B===o||B===i||B===A||B===Z||typeof B=="object"&&B!==null&&(B.$$typeof===V||B.$$typeof===H||B.$$typeof===c||B.$$typeof===m||B.$$typeof===f||B.$$typeof===S||B.$$typeof===_||B.$$typeof===k||B.$$typeof===b)}function L(B){if(typeof B=="object"&&B!==null){var G=B.$$typeof;switch(G){case n:var r0=B.type;switch(r0){case u:case p:case l:case o:case i:case A:return r0;default:var Z0=r0&&r0.$$typeof;switch(Z0){case m:case f:case V:case H:case c:return Z0;default:return G}}case r:return G}}}var T=u,O=p,R=m,U=c,x=n,q=f,t0=l,n0=V,J=H,X=r,g0=o,y0=i,o0=A,u0=!1;function K(B){return u0||(u0=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(B)||L(B)===u}function Y(B){return L(B)===p}function e0(B){return L(B)===m}function z(B){return L(B)===c}function H0(B){return typeof B=="object"&&B!==null&&B.$$typeof===n}function V0(B){return L(B)===f}function c0(B){return L(B)===l}function P0(B){return L(B)===V}function l0(B){return L(B)===H}function p0(B){return L(B)===r}function v0(B){return L(B)===o}function L0(B){return L(B)===i}function M0(B){return L(B)===A}D2.AsyncMode=T,D2.ConcurrentMode=O,D2.ContextConsumer=R,D2.ContextProvider=U,D2.Element=x,D2.ForwardRef=q,D2.Fragment=t0,D2.Lazy=n0,D2.Memo=J,D2.Portal=X,D2.Profiler=g0,D2.StrictMode=y0,D2.Suspense=o0,D2.isAsyncMode=K,D2.isConcurrentMode=Y,D2.isContextConsumer=e0,D2.isContextProvider=z,D2.isElement=H0,D2.isForwardRef=V0,D2.isFragment=c0,D2.isLazy=P0,D2.isMemo=l0,D2.isPortal=p0,D2.isProfiler=v0,D2.isStrictMode=L0,D2.isSuspense=M0,D2.isValidElementType=C,D2.typeOf=L})(),D2}var As0;function vs0(){if(As0)return jv.exports;As0=1;var a={};return a.NODE_ENV==="production"?jv.exports=kW0():jv.exports=wW0(),jv.exports}var fL,gs0;function Zs0(){if(gs0)return fL;gs0=1;var a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function l(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},c=0;c<10;c++)o["_"+String.fromCharCode(c)]=c;var m=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(m.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fL=l()?Object.assign:function(i,o){for(var c,m=r(i),u,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var f in c)t.call(c,f)&&(m[f]=c[f]);if(a){u=a(c);for(var A=0;A<u.length;A++)n.call(c,u[A])&&(m[u[A]]=c[u[A]])}}return m},fL}var AL,Hs0;function vL(){if(Hs0)return AL;Hs0=1;var a="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return AL=a,AL}var gL,Ms0;function Es0(){return Ms0||(Ms0=1,gL=Function.call.bind(Object.prototype.hasOwnProperty)),gL}var ZL,Vs0;function CW0(){if(Vs0)return ZL;Vs0=1;var a={},t=function(){};if(a.NODE_ENV!=="production"){var n=vL(),r={},l=Es0();t=function(o){var c="Warning: "+o;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function i(o,c,m,u,p){if(a.NODE_ENV!=="production"){for(var f in o)if(l(o,f)){var A;try{if(typeof o[f]!="function"){var Z=Error((u||"React class")+": "+m+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}A=o[f](c,f,u,m,null,n)}catch(V){A=V}if(A&&!(A instanceof Error)&&t((u||"React class")+": type specification of "+m+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof A+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),A instanceof Error&&!(A.message in r)){r[A.message]=!0;var H=p?p():"";t("Failed "+m+" type: "+A.message+(H??""))}}}}return i.resetWarningCache=function(){a.NODE_ENV!=="production"&&(r={})},ZL=i,ZL}var HL,ys0;function NW0(){if(ys0)return HL;ys0=1;var a={},t=vs0(),n=Zs0(),r=vL(),l=Es0(),i=CW0(),o=function(){};a.NODE_ENV!=="production"&&(o=function(m){var u="Warning: "+m;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function c(){return null}return HL=function(m,u){var p=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function A(Y){var e0=Y&&(p&&Y[p]||Y[f]);if(typeof e0=="function")return e0}var Z="<<anonymous>>",H={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:k(),arrayOf:C,element:L(),elementType:T(),instanceOf:O,node:q(),objectOf:U,oneOf:R,oneOfType:x,shape:n0,exact:J};function V(Y,e0){return Y===e0?Y!==0||1/Y===1/e0:Y!==Y&&e0!==e0}function b(Y,e0){this.message=Y,this.data=e0&&typeof e0=="object"?e0:{},this.stack=""}b.prototype=Error.prototype;function S(Y){if(a.NODE_ENV!=="production")var e0={},z=0;function H0(c0,P0,l0,p0,v0,L0,M0){if(p0=p0||Z,L0=L0||l0,M0!==r){if(u){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(a.NODE_ENV!=="production"&&typeof console<"u"){var G=p0+":"+l0;!e0[G]&&z<3&&(o("You are manually calling a React.PropTypes validation function for the `"+L0+"` prop on `"+p0+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e0[G]=!0,z++)}}return P0[l0]==null?c0?P0[l0]===null?new b("The "+v0+" `"+L0+"` is marked as required "+("in `"+p0+"`, but its value is `null`.")):new b("The "+v0+" `"+L0+"` is marked as required in "+("`"+p0+"`, but its value is `undefined`.")):null:Y(P0,l0,p0,v0,L0)}var V0=H0.bind(null,!1);return V0.isRequired=H0.bind(null,!0),V0}function _(Y){function e0(z,H0,V0,c0,P0,l0){var p0=z[H0],v0=y0(p0);if(v0!==Y){var L0=o0(p0);return new b("Invalid "+c0+" `"+P0+"` of type "+("`"+L0+"` supplied to `"+V0+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return S(e0)}function k(){return S(c)}function C(Y){function e0(z,H0,V0,c0,P0){if(typeof Y!="function")return new b("Property `"+P0+"` of component `"+V0+"` has invalid PropType notation inside arrayOf.");var l0=z[H0];if(!Array.isArray(l0)){var p0=y0(l0);return new b("Invalid "+c0+" `"+P0+"` of type "+("`"+p0+"` supplied to `"+V0+"`, expected an array."))}for(var v0=0;v0<l0.length;v0++){var L0=Y(l0,v0,V0,c0,P0+"["+v0+"]",r);if(L0 instanceof Error)return L0}return null}return S(e0)}function L(){function Y(e0,z,H0,V0,c0){var P0=e0[z];if(!m(P0)){var l0=y0(P0);return new b("Invalid "+V0+" `"+c0+"` of type "+("`"+l0+"` supplied to `"+H0+"`, expected a single ReactElement."))}return null}return S(Y)}function T(){function Y(e0,z,H0,V0,c0){var P0=e0[z];if(!t.isValidElementType(P0)){var l0=y0(P0);return new b("Invalid "+V0+" `"+c0+"` of type "+("`"+l0+"` supplied to `"+H0+"`, expected a single ReactElement type."))}return null}return S(Y)}function O(Y){function e0(z,H0,V0,c0,P0){if(!(z[H0]instanceof Y)){var l0=Y.name||Z,p0=K(z[H0]);return new b("Invalid "+c0+" `"+P0+"` of type "+("`"+p0+"` supplied to `"+V0+"`, expected ")+("instance of `"+l0+"`."))}return null}return S(e0)}function R(Y){if(!Array.isArray(Y))return a.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),c;function e0(z,H0,V0,c0,P0){for(var l0=z[H0],p0=0;p0<Y.length;p0++)if(V(l0,Y[p0]))return null;var v0=JSON.stringify(Y,function(M0,B){var G=o0(B);return G==="symbol"?String(B):B});return new b("Invalid "+c0+" `"+P0+"` of value `"+String(l0)+"` "+("supplied to `"+V0+"`, expected one of "+v0+"."))}return S(e0)}function U(Y){function e0(z,H0,V0,c0,P0){if(typeof Y!="function")return new b("Property `"+P0+"` of component `"+V0+"` has invalid PropType notation inside objectOf.");var l0=z[H0],p0=y0(l0);if(p0!=="object")return new b("Invalid "+c0+" `"+P0+"` of type "+("`"+p0+"` supplied to `"+V0+"`, expected an object."));for(var v0 in l0)if(l(l0,v0)){var L0=Y(l0,v0,V0,c0,P0+"."+v0,r);if(L0 instanceof Error)return L0}return null}return S(e0)}function x(Y){if(!Array.isArray(Y))return a.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var e0=0;e0<Y.length;e0++){var z=Y[e0];if(typeof z!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+u0(z)+" at index "+e0+"."),c}function H0(V0,c0,P0,l0,p0){for(var v0=[],L0=0;L0<Y.length;L0++){var M0=Y[L0],B=M0(V0,c0,P0,l0,p0,r);if(B==null)return null;B.data&&l(B.data,"expectedType")&&v0.push(B.data.expectedType)}var G=v0.length>0?", expected one of type ["+v0.join(", ")+"]":"";return new b("Invalid "+l0+" `"+p0+"` supplied to "+("`"+P0+"`"+G+"."))}return S(H0)}function q(){function Y(e0,z,H0,V0,c0){return X(e0[z])?null:new b("Invalid "+V0+" `"+c0+"` supplied to "+("`"+H0+"`, expected a ReactNode."))}return S(Y)}function t0(Y,e0,z,H0,V0){return new b((Y||"React class")+": "+e0+" type `"+z+"."+H0+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V0+"`.")}function n0(Y){function e0(z,H0,V0,c0,P0){var l0=z[H0],p0=y0(l0);if(p0!=="object")return new b("Invalid "+c0+" `"+P0+"` of type `"+p0+"` "+("supplied to `"+V0+"`, expected `object`."));for(var v0 in Y){var L0=Y[v0];if(typeof L0!="function")return t0(V0,c0,P0,v0,o0(L0));var M0=L0(l0,v0,V0,c0,P0+"."+v0,r);if(M0)return M0}return null}return S(e0)}function J(Y){function e0(z,H0,V0,c0,P0){var l0=z[H0],p0=y0(l0);if(p0!=="object")return new b("Invalid "+c0+" `"+P0+"` of type `"+p0+"` "+("supplied to `"+V0+"`, expected `object`."));var v0=n({},z[H0],Y);for(var L0 in v0){var M0=Y[L0];if(l(Y,L0)&&typeof M0!="function")return t0(V0,c0,P0,L0,o0(M0));if(!M0)return new b("Invalid "+c0+" `"+P0+"` key `"+L0+"` supplied to `"+V0+"`.\nBad object: "+JSON.stringify(z[H0],null," ")+`
|
|
599
|
-
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var B=M0(l0,L0,V0,c0,P0+"."+L0,r);if(B)return B}return null}return S(e0)}function X(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(X);if(Y===null||m(Y))return!0;var e0=A(Y);if(e0){var z=e0.call(Y),H0;if(e0!==Y.entries){for(;!(H0=z.next()).done;)if(!X(H0.value))return!1}else for(;!(H0=z.next()).done;){var V0=H0.value;if(V0&&!X(V0[1]))return!1}}else return!1;return!0;default:return!1}}function g0(Y,e0){return Y==="symbol"?!0:e0?e0["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&e0 instanceof Symbol:!1}function y0(Y){var e0=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":g0(e0,Y)?"symbol":e0}function o0(Y){if(typeof Y>"u"||Y===null)return""+Y;var e0=y0(Y);if(e0==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return e0}function u0(Y){var e0=o0(Y);switch(e0){case"array":case"object":return"an "+e0;case"boolean":case"date":case"regexp":return"a "+e0;default:return e0}}function K(Y){return!Y.constructor||!Y.constructor.name?Z:Y.constructor.name}return H.checkPropTypes=i,H.resetWarningCache=i.resetWarningCache,H.PropTypes=H,H},HL}var ML,bs0;function TW0(){if(bs0)return ML;bs0=1;var a=vL();function t(){}function n(){}return n.resetWarningCache=t,ML=function(){function r(o,c,m,u,p,f){if(f!==a){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}r.isRequired=r;function l(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ML}var Ss0;function Ls0(){if(Ss0)return xv.exports;Ss0=1;var a={};if(a.NODE_ENV!=="production"){var t=vs0(),n=!0;xv.exports=NW0()(t.isElement,n)}else xv.exports=TW0()();return xv.exports}var EL,Fs0;function _s0(){if(Fs0)return EL;Fs0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(R,U)=>{for(var x in U)t(R,x,{get:U[x],enumerable:!0})},c=(R,U,x,q)=>{if(U&&typeof U=="object"||typeof U=="function")for(let t0 of r(U))!i.call(R,t0)&&t0!==x&&t(R,t0,{get:()=>U[t0],enumerable:!(q=n(U,t0))||q.enumerable});return R},m=(R,U,x)=>(x=R!=null?a(l(R)):{},c(!R||!R.__esModule?t(x,"default",{value:R,enumerable:!0}):x,R)),u=R=>c(t({},"__esModule",{value:!0}),R),p={};o(p,{defaultProps:()=>O,propTypes:()=>L}),EL=u(p);var f=m(Ls0());const{string:A,bool:Z,number:H,array:V,oneOfType:b,shape:S,object:_,func:k,node:C}=f.default,L={url:b([A,V,_]),playing:Z,loop:Z,controls:Z,volume:H,muted:Z,playbackRate:H,width:b([A,H]),height:b([A,H]),style:_,progressInterval:H,playsinline:Z,pip:Z,stopOnUnmount:Z,light:b([Z,A,_]),playIcon:C,previewTabIndex:H,previewAriaLabel:A,fallback:C,oEmbedUrl:A,wrapper:b([A,k,S({render:k.isRequired})]),config:S({soundcloud:S({options:_}),youtube:S({playerVars:_,embedOptions:_,onUnstarted:k}),facebook:S({appId:A,version:A,playerId:A,attributes:_}),dailymotion:S({params:_}),vimeo:S({playerOptions:_,title:A}),mux:S({attributes:_,version:A}),file:S({attributes:_,tracks:V,forceVideo:Z,forceAudio:Z,forceHLS:Z,forceSafariHLS:Z,forceDisableHls:Z,forceDASH:Z,forceFLV:Z,hlsOptions:_,hlsVersion:A,dashVersion:A,flvVersion:A}),wistia:S({options:_,playerId:A,customControls:V}),mixcloud:S({options:_}),twitch:S({options:_,playerId:A}),vidyard:S({options:_})}),onReady:k,onStart:k,onPlay:k,onPause:k,onBuffer:k,onBufferEnd:k,onEnded:k,onError:k,onDuration:k,onSeek:k,onPlaybackRateChange:k,onPlaybackQualityChange:k,onProgress:k,onClickPreview:k,onEnablePIP:k,onDisablePIP:k},T=()=>{},O={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:T},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:T,onStart:T,onPlay:T,onPause:T,onBuffer:T,onBufferEnd:T,onEnded:T,onError:T,onDuration:T,onSeek:T,onPlaybackRateChange:T,onPlaybackQualityChange:T,onProgress:T,onClickPreview:T,onEnablePIP:T,onDisablePIP:T};return EL}var VL,ks0;function PW0(){if(ks0)return VL;ks0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(k,C,L)=>C in k?t(k,C,{enumerable:!0,configurable:!0,writable:!0,value:L}):k[C]=L,c=(k,C)=>{for(var L in C)t(k,L,{get:C[L],enumerable:!0})},m=(k,C,L,T)=>{if(C&&typeof C=="object"||typeof C=="function")for(let O of r(C))!i.call(k,O)&&O!==L&&t(k,O,{get:()=>C[O],enumerable:!(T=n(C,O))||T.enumerable});return k},u=(k,C,L)=>(L=k!=null?a(l(k)):{},m(!k||!k.__esModule?t(L,"default",{value:k,enumerable:!0}):L,k)),p=k=>m(t({},"__esModule",{value:!0}),k),f=(k,C,L)=>(o(k,typeof C!="symbol"?C+"":C,L),L),A={};c(A,{default:()=>_}),VL=p(A);var Z=u(E2()),H=u(ps0()),V=_s0(),b=N4();const S=5e3;class _ extends Z.Component{constructor(){super(...arguments),f(this,"mounted",!1),f(this,"isReady",!1),f(this,"isPlaying",!1),f(this,"isLoading",!0),f(this,"loadOnReady",null),f(this,"startOnPlay",!0),f(this,"seekOnPlay",null),f(this,"onDurationCalled",!1),f(this,"handlePlayerMount",C=>{if(this.player){this.progress();return}this.player=C,this.player.load(this.props.url),this.progress()}),f(this,"getInternalPlayer",C=>this.player?this.player[C]:null),f(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const C=this.getCurrentTime()||0,L=this.getSecondsLoaded(),T=this.getDuration();if(T){const O={playedSeconds:C,played:C/T};L!==null&&(O.loadedSeconds=L,O.loaded=L/T),(O.playedSeconds!==this.prevPlayed||O.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(O),this.prevPlayed=O.playedSeconds,this.prevLoaded=O.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),f(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:C,playing:L,volume:T,muted:O}=this.props;C(),!O&&T!==null&&this.player.setVolume(T),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):L&&this.player.play(),this.handleDurationCheck()}),f(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:C,onPlay:L,playbackRate:T}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&T!==1&&this.player.setPlaybackRate(T),C(),this.startOnPlay=!1),L(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),f(this,"handlePause",C=>{this.isPlaying=!1,this.isLoading||this.props.onPause(C)}),f(this,"handleEnded",()=>{const{activePlayer:C,loop:L,onEnded:T}=this.props;C.loopOnEnded&&L&&this.seekTo(0),L||(this.isPlaying=!1,T())}),f(this,"handleError",(...C)=>{this.isLoading=!1,this.props.onError(...C)}),f(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const C=this.getDuration();C?this.onDurationCalled||(this.props.onDuration(C),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),f(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(C){if(!this.player)return;const{url:L,playing:T,volume:O,muted:R,playbackRate:U,pip:x,loop:q,activePlayer:t0,disableDeferredLoading:n0}=this.props;if(!(0,H.default)(C.url,L)){if(this.isLoading&&!t0.forceLoad&&!n0&&!(0,b.isMediaStream)(L)){console.warn(`ReactPlayer: the attempt to load ${L} is being deferred until the player has loaded`),this.loadOnReady=L;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(L,this.isReady)}!C.playing&&T&&!this.isPlaying&&this.player.play(),C.playing&&!T&&this.isPlaying&&this.player.pause(),!C.pip&&x&&this.player.enablePIP&&this.player.enablePIP(),C.pip&&!x&&this.player.disablePIP&&this.player.disablePIP(),C.volume!==O&&O!==null&&this.player.setVolume(O),C.muted!==R&&(R?this.player.mute():(this.player.unmute(),O!==null&&setTimeout(()=>this.player.setVolume(O)))),C.playbackRate!==U&&this.player.setPlaybackRate&&this.player.setPlaybackRate(U),C.loop!==q&&this.player.setLoop&&this.player.setLoop(q)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(C,L,T){if(!this.isReady){C!==0&&(this.seekOnPlay=C,setTimeout(()=>{this.seekOnPlay=null},S));return}if(L?L==="fraction":C>0&&C<1){const R=this.player.getDuration();if(!R){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(R*C,T);return}this.player.seekTo(C,T)}render(){const C=this.props.activePlayer;return C?Z.default.createElement(C,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}return f(_,"displayName","Player"),f(_,"propTypes",V.propTypes),f(_,"defaultProps",V.defaultProps),VL}var yL,ws0;function $W0(){if(ws0)return yL;ws0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(q,t0,n0)=>t0 in q?t(q,t0,{enumerable:!0,configurable:!0,writable:!0,value:n0}):q[t0]=n0,c=(q,t0)=>{for(var n0 in t0)t(q,n0,{get:t0[n0],enumerable:!0})},m=(q,t0,n0,J)=>{if(t0&&typeof t0=="object"||typeof t0=="function")for(let X of r(t0))!i.call(q,X)&&X!==n0&&t(q,X,{get:()=>t0[X],enumerable:!(J=n(t0,X))||J.enumerable});return q},u=(q,t0,n0)=>(n0=q!=null?a(l(q)):{},m(!q||!q.__esModule?t(n0,"default",{value:q,enumerable:!0}):n0,q)),p=q=>m(t({},"__esModule",{value:!0}),q),f=(q,t0,n0)=>(o(q,typeof t0!="symbol"?t0+"":t0,n0),n0),A={};c(A,{createReactPlayer:()=>x}),yL=p(A);var Z=u(E2()),H=u(os0()),V=u(_W0),b=u(ps0()),S=_s0(),_=N4(),k=u(PW0());const C=(0,_.lazy)(()=>Promise.resolve().then(()=>Ite)),L=typeof window<"u"&&window.document&&typeof document<"u",T=typeof cl<"u"&&cl.window&&cl.window.document,O=Object.keys(S.propTypes),R=L||T?Z.Suspense:()=>null,U=[],x=(q,t0)=>{var n0;return n0=class extends Z.Component{constructor(){super(...arguments),f(this,"state",{showPreview:!!this.props.light}),f(this,"references",{wrapper:J=>{this.wrapper=J},player:J=>{this.player=J}}),f(this,"handleClickPreview",J=>{this.setState({showPreview:!1}),this.props.onClickPreview(J)}),f(this,"showPreview",()=>{this.setState({showPreview:!0})}),f(this,"getDuration",()=>this.player?this.player.getDuration():null),f(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),f(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),f(this,"getInternalPlayer",(J="player")=>this.player?this.player.getInternalPlayer(J):null),f(this,"seekTo",(J,X,g0)=>{if(!this.player)return null;this.player.seekTo(J,X,g0)}),f(this,"handleReady",()=>{this.props.onReady(this)}),f(this,"getActivePlayer",(0,V.default)(J=>{for(const X of[...U,...q])if(X.canPlay(J))return X;return t0||null})),f(this,"getConfig",(0,V.default)((J,X)=>{const{config:g0}=this.props;return H.default.all([S.defaultProps.config,S.defaultProps.config[X]||{},g0,g0[X]||{}])})),f(this,"getAttributes",(0,V.default)(J=>(0,_.omit)(this.props,O))),f(this,"renderActivePlayer",J=>{if(!J)return null;const X=this.getActivePlayer(J);if(!X)return null;const g0=this.getConfig(J,X.key);return Z.default.createElement(k.default,{...this.props,key:X.key,ref:this.references.player,config:g0,activePlayer:X.lazyPlayer||X,onReady:this.handleReady})})}shouldComponentUpdate(J,X){return!(0,b.default)(this.props,J)||!(0,b.default)(this.state,X)}componentDidUpdate(J){const{light:X}=this.props;!J.light&&X&&this.setState({showPreview:!0}),J.light&&!X&&this.setState({showPreview:!1})}renderPreview(J){if(!J)return null;const{light:X,playIcon:g0,previewTabIndex:y0,oEmbedUrl:o0,previewAriaLabel:u0}=this.props;return Z.default.createElement(C,{url:J,light:X,playIcon:g0,previewTabIndex:y0,previewAriaLabel:u0,oEmbedUrl:o0,onClick:this.handleClickPreview})}render(){const{url:J,style:X,width:g0,height:y0,fallback:o0,wrapper:u0}=this.props,{showPreview:K}=this.state,Y=this.getAttributes(J),e0=typeof u0=="string"?this.references.wrapper:void 0;return Z.default.createElement(u0,{ref:e0,style:{...X,width:g0,height:y0},...Y},Z.default.createElement(R,{fallback:o0},K?this.renderPreview(J):this.renderActivePlayer(J)))}},f(n0,"displayName","ReactPlayer"),f(n0,"propTypes",S.propTypes),f(n0,"defaultProps",S.defaultProps),f(n0,"addCustomPlayer",J=>{U.push(J)}),f(n0,"removeCustomPlayers",()=>{U.length=0}),f(n0,"canPlay",J=>{for(const X of[...U,...q])if(X.canPlay(J))return!0;return!1}),f(n0,"canEnablePIP",J=>{for(const X of[...U,...q])if(X.canEnablePIP&&X.canEnablePIP(J))return!0;return!1}),n0};return yL}var bL,Cs0;function OW0(){if(Cs0)return bL;Cs0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(V,b)=>{for(var S in b)t(V,S,{get:b[S],enumerable:!0})},c=(V,b,S,_)=>{if(b&&typeof b=="object"||typeof b=="function")for(let k of r(b))!i.call(V,k)&&k!==S&&t(V,k,{get:()=>b[k],enumerable:!(_=n(b,k))||_.enumerable});return V},m=(V,b,S)=>(S=V!=null?a(l(V)):{},c(!V||!V.__esModule?t(S,"default",{value:V,enumerable:!0}):S,V)),u=V=>c(t({},"__esModule",{value:!0}),V),p={};o(p,{default:()=>H}),bL=u(p);var f=m(bW0()),A=$W0();const Z=f.default[f.default.length-1];var H=(0,A.createReactPlayer)(f.default,Z);return bL}var IW0=OW0();const xW0=A2(IW0),jW0=({media:a,shouldSendInteractions:t})=>{const n=HR0();return e.useCallback((r,l)=>{if(!(!a?.id||!t||!n))return n({media:a,action:r,data:l})},[a,t,n])},RW0=({media:a,livestream:t,content:n,playerRef:r})=>{const l=w9(),i=e.useRef(new Date().getTime());return e.useCallback((o,c)=>{const m=new Date;return l.track(o,{sessionId:i.current,contentAssetId:n?.id,parentOriginId:n?.originId,originId:a?.originId,originSource:a?.originType,videoPlayer:"Apollos Web",livestream:!1,timestamp:m.toUTCString(),title:n?.title,totalLength:a?.duration||r.current?.getDuration(),position:r.current?.getCurrentTime(),publishedAt:n?.publishDate?new Date(parseInt(n?.publishDate,10)):null,...t?{contentAssetId:`livestream_${m.getFullYear()}_${m.getMonth()+1}_${m.getDate()}`,livestream:!0,publishedAt:new Date(t.start||m)}:{},...c})},[a,t,n,l,r])},SL={wrapper:"rounded-xl w-full overflow-hidden relative",video:"aspect-video"},DW0=10,zW0=({media:a,coverImage:t,livestream:n,content:r,shouldSendInteractions:l,...i})=>{const o=e.useRef(null),c=e.useRef(0),m=RW0({media:a,livestream:n,content:r,playerRef:o}),u=jW0({media:a,shouldSendInteractions:l}),{playing:p,...f}=i,[A,Z]=e.useState(!0),[H,V]=e.useState(typeof p=="boolean"?p:!1),b=e.useRef(!1),S=e.useRef(0);e.useEffect(()=>()=>{b.current&&m("VideoPlaybackExited")},[]);const _=async()=>{if(n)n0();else{const g0=a?.userProgress?.playhead||0;g0>0&&A&&S.current!==g0&&(S.current=g0,o.current?.seekTo(g0))}},k=async()=>{m("VideoPlaybackCompleted"),u("COMPLETE"),V(!1)},C=()=>{V(!0),A?(Z(!1),m("VideoPlaybackResumed")):m("VideoPlaybackStarted"),b.current||(b.current=!0)},L=()=>{A||(Z(!0),m("VideoPlaybackPaused"),u("VIEW",{progress:o.current?.getCurrentTime()})),V(!1)},T=g0=>{g0.playbackRate===0?L():C()},O=()=>{m("VideoPlaybackSeekCompleted")},R=({played:g0})=>{const y0=o.current?.getCurrentTime()||0;g0&&Math.abs(y0-c.current)>=DW0&&(c.current=y0,u("VIEW",{progress:y0}))},U=(g0,...y0)=>{console.error("Video error",g0,y0),m("VideoPlaybackInterrupted")};if(a?.embedHtml)return w.jsx("div",{className:K1(SL.wrapper),dangerouslySetInnerHTML:{__html:a.embedHtml}});const x=typeof document>"u",q=!!a?.sources?.[0]?.uri,t0=!q||x,n0=()=>{if(!n?.start||!o.current)return;const g0=new Date(n.start),u0=(new Date().getTime()-g0.getTime())/1e3;o.current?.seekTo(u0)},J=t?.sources?.[0]?.uri,X={file:{attributes:{...n?{autoPlay:!0}:{}},hlsVersion:"1.5.19"}};return w.jsxs("div",{className:K1(SL.wrapper,SL.video),children:[t0?w.jsx(Yb,{image:t??void 0,className:"h-full w-full object-cover"}):w.jsx(xW0,{ref:o,url:a?.sources?.[0]?.uri??void 0,controls:!0,config:X,playing:n?!0:typeof p=="boolean"?p:H,playsinline:!0,width:"100%",height:"100%",onReady:_,onEnded:k,onPlay:C,onPause:L,onSeeked:O,onProgress:R,onError:U,onPlaybackRateChange:T,light:!1,...f}),J&&q&&!n&&!b.current&&w.jsxs("button",{type:"button",className:"absolute inset-0 flex items-center justify-center bg-black/40",style:{backgroundImage:`url(${J})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},onClick:()=>{V(!0)},children:[w.jsx("span",{className:"sr-only",children:"Play video"}),w.jsx(XS,{weight:"fill",size:60,className:"text-white drop-shadow-lg"})]})]})},BW0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240.49,103.52l-80-80A12,12,0,0,0,140,32V68.74c-25.76,3.12-53.66,15.89-76.75,35.47-29.16,24.74-47.32,56.69-51.14,90A16,16,0,0,0,39.67,207h0c10.46-11.14,47-45.74,100.33-50.42V192a12,12,0,0,0,20.48,8.48l80-80A12,12,0,0,0,240.49,103.52ZM164,163V144a12,12,0,0,0-12-12c-49,0-86.57,21.56-109.79,40.11,7.13-18.16,19.63-35.22,36.57-49.59C101.3,103.41,128.67,92,152,92a12,12,0,0,0,12-12V61l51,51Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M152,192V144c-61.4,0-104.61,37.19-121.07,54.72a4,4,0,0,1-6.9-3.18C31.51,130.45,99.19,80,152,80V32l80,80Z",opacity:"0.2"}),e.createElement("path",{d:"M237.66,106.35l-80-80A8,8,0,0,0,144,32V72.35c-25.94,2.22-54.59,14.92-78.16,34.91-28.38,24.08-46.05,55.11-49.76,87.37a12,12,0,0,0,20.68,9.58h0c11-11.71,50.14-48.74,107.24-52V192a8,8,0,0,0,13.66,5.65l80-80A8,8,0,0,0,237.66,106.35ZM160,172.69V144a8,8,0,0,0-8-8c-28.08,0-55.43,7.33-81.29,21.8a196.17,196.17,0,0,0-36.57,26.52c5.8-23.84,20.42-46.51,42.05-64.86C99.41,99.77,127.75,88,152,88a8,8,0,0,0,8-8V51.32L220.69,112Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.66,117.66l-80,80A8,8,0,0,1,144,192V152.23c-57.1,3.24-96.25,40.27-107.24,52h0a12,12,0,0,1-20.68-9.58c3.71-32.26,21.38-63.29,49.76-87.37,23.57-20,52.22-32.69,78.16-34.91V32a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,237.66,117.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M236.24,107.76l-80-80A6,6,0,0,0,146,32V74.2c-54.48,3.59-120.39,55-127.93,120.66a10,10,0,0,0,17.23,8h0C46.56,190.85,87,152.6,146,150.13V192a6,6,0,0,0,10.24,4.24l80-80A6,6,0,0,0,236.24,107.76ZM158,177.52V144a6,6,0,0,0-6-6c-27.73,0-54.76,7.25-80.32,21.55a193.38,193.38,0,0,0-40.81,30.65c4.7-26.56,20.16-52,44-72.27C98.47,97.94,127.29,86,152,86a6,6,0,0,0,6-6V46.49L223.51,112Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.66,106.35l-80-80A8,8,0,0,0,144,32V72.35c-25.94,2.22-54.59,14.92-78.16,34.91-28.38,24.08-46.05,55.11-49.76,87.37a12,12,0,0,0,20.68,9.58h0c11-11.71,50.14-48.74,107.24-52V192a8,8,0,0,0,13.66,5.65l80-80A8,8,0,0,0,237.66,106.35ZM160,172.69V144a8,8,0,0,0-8-8c-28.08,0-55.43,7.33-81.29,21.8a196.17,196.17,0,0,0-36.57,26.52c5.8-23.84,20.42-46.51,42.05-64.86C99.41,99.77,127.75,88,152,88a8,8,0,0,0,8-8V51.32L220.69,112Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M234.83,109.17l-80-80A4,4,0,0,0,148,32V76.09c-54,2.44-120.43,53.55-127.94,119a7.87,7.87,0,0,0,4.58,8.16,8,8,0,0,0,3.41.77,7.9,7.9,0,0,0,5.79-2.55h0c11.53-12.27,53.29-51.73,114.16-53.4V192a4,4,0,0,0,6.83,2.83l80-80A4,4,0,0,0,234.83,109.17ZM156,182.33V144a4,4,0,0,0-4-4c-27.39,0-54.08,7.17-79.34,21.3A189.91,189.91,0,0,0,28,196l2.92,2.74L28,196c3.36-29.21,19.55-57.48,45.6-79.57C97.53,96.11,126.83,84,152,84a4,4,0,0,0,4-4V41.66L226.34,112Z"}))]]),LL=e.forwardRef((a,t)=>e.createElement(E,{ref:t,...a,weights:BW0}));LL.displayName="ShareFatIcon";const FL=LL,UW0=Object.freeze(Object.defineProperty({__proto__:null,ShareFat:FL,ShareFatIcon:LL},Symbol.toStringTag,{value:"Module"})),qW0=(a=[])=>a?.filter(t=>(t?.features||[]).some(n=>n&&Object.keys(n).some(r=>!["id","__typename"].includes(r))))||[],WW0=({content:a,setIsCTAOpen:t,setInteractionType:n})=>w.jsx("div",{className:"flex justify-end",children:w.jsxs("div",{className:"fixed right-0 bottom-0 mr-4 [@media(width>=56rem)]:mr-8 [@media(width>=80rem)]:-mr-72 [@media(width>=80rem)]:right-auto mt-4 mb-8 py-1 flex flex-col justify-between items-center",children:[w.jsx("div",{className:"mb-4",children:w.jsx(Je,{onClick:()=>{t(!0),n(Ct.Like)},circular:!0,children:w.jsxs("div",{className:"flex flex-col px-1.5 items-center",children:[w.jsx(cv,{weight:a?.isLiked?"fill":"regular",size:20,className:`md:hidden ${a?.isLiked?"fill-action":"text-action"}`}),w.jsx(cv,{weight:a?.isLiked?"fill":"regular",size:28,className:`hidden md:flex ${a?.isLiked?"fill-action":"text-action"}`}),a.likedCount?w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute -bottom-2.5 bg-white dark:bg-brand px-2 rounded-full text-xs z-9",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-white dark:text-brand",children:a.likedCount})}),w.jsx("span",{className:"absolute -bottom-2.5 bg-accent/20 dark:bg-brand px-2 rounded-full text-xs z-10",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-accent/100",children:a.likedCount})})]}):null]})})}),a.commentsEnabled?w.jsx("div",{className:"mb-4",children:w.jsx(Je,{onClick:()=>{t(!0),n(Ct.Comment)},circular:!0,children:w.jsxs("div",{className:"flex flex-col px-1.5 items-center",children:[w.jsx(Wb,{weight:"fill",size:20,className:"md:hidden text-action"}),w.jsx(Wb,{weight:"fill",size:28,className:"hidden md:flex text-action"}),Vl(a.comments)?null:w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute -bottom-2.5 bg-white dark:bg-brand px-2 rounded-full text-xs z-9",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-white dark:text-brand",children:a.comments?.length??0})}),w.jsx("span",{className:"absolute -bottom-2.5 bg-accent/20 dark:bg-brand px-2 rounded-full text-xs z-10",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-accent/100",children:a.comments?.length??0})})]})]})})}):null,a.sharing?w.jsxs(VW0,{circular:!0,sharable:a.sharing,children:[w.jsx(FL,{weight:"fill",size:20,className:"mx-1.5 text-fg-secondary dark:text-fg-secondary-dark md:hidden"}),w.jsx(FL,{weight:"fill",size:28,className:"mx-2 text-fg-secondary dark:text-fg-secondary-dark hidden md:flex"})]}):w.jsx("div",{})]})}),GW0=({content:a,currentChurch:t,isInteractionEnabled:n=!1,userCanComment:r,userProfile:l,theme:i,executedConnectFeatureId:o})=>{const c=DV(),[m,u]=e.useState(!1),[p,f]=e.useState(Ct.Default),A=e.useMemo(()=>qW0(a.pages),[a.pages]);if(!a)return null;const Z=a?.videos?.find(C=>!!(C&&(C.embedHtml||C.sources?.some(L=>!!L?.uri)))),H=!!Z,V=!!a?.coverImage,b=a?.childContentItemsConnection?.edges??[],S=a?.siblingContentItemsConnection?.edges??[],_="md:border md:border-system-regular md:rounded-3xl py-6 md:p-6 mb-8 border-b border-b-system-regular",k=A?.length&&A?.length>1;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:k?_:"",children:[V&&!H?w.jsx(Yb,{image:a?.coverImage??void 0,className:"h-full w-full object-cover rounded-xl"}):null,H?w.jsx(zW0,{media:Z,coverImage:a?.coverImage??void 0,content:a??void 0,shouldSendInteractions:!!r}):null,w.jsxs("div",{className:`${H?"mt-6 md:mt-12":""} mb-4 mx-auto [&>*]:mx-auto [&>*]:max-w-[65ch]`,children:[w.jsx("div",{className:"prose dark:prose-invert",children:w.jsx(ge,{as:"h1",children:a.title})}),w.jsx("div",{className:"h-px bg-system-thin my-8"}),a.htmlContent?w.jsx($c0,{feature:{content:a.htmlContent}}):null,A?.length?w.jsx("div",{className:"flex flex-col gap-4",children:w.jsx(lL,{features:A[0]?.features??[],church:t,userProfile:l,isInteractionEnabled:n,theme:i,executedConnectFeatureId:o})}):null]})]}),A?.slice(1).map(C=>C&&C.features?.length&&C.features.length>0&&w.jsx("div",{className:_,children:w.jsx("div",{className:"flex flex-col gap-4",children:w.jsx(lL,{features:C.features??[],church:t,userProfile:l,isInteractionEnabled:n,theme:i,executedConnectFeatureId:o})})},C.id)),w.jsxs("div",{className:"mx-auto [&>*]:mx-auto [&>*]:max-w-[65ch]",children:[n?w.jsx(WW0,{content:a,setIsCTAOpen:u,setInteractionType:f}):null,b.length?w.jsx(UA,{className:"mt-10",children:b.map(C=>{const L=(C?.node?.coverImage?.sources??[])[0]?.uri;return w.jsx(gd,{as:Jy,to:{contentId:C?.node?.id},title:C?.node?.title??void 0,subtitle:C?.node?.summary,leadingAccessory:w.jsx(h9,{src:L??void 0}),trailingAccessory:w.jsx(or,{})},C?.node?.id)})}):null,a?.parentItem?w.jsxs("div",{className:"mt-12",children:[w.jsx(ge,{as:"h3",className:"mb-4",children:"This series"}),w.jsx(S70,{content:a?.parentItem})]}):null,S.length?w.jsxs("div",{className:"mt-10",children:[w.jsx(ge,{as:"h3",children:"In this series"}),w.jsx(Rb,{children:S.map(C=>w.jsx(S70,{content:C?.node??void 0,horizontal:!0},C?.node?.id))})]}):null]}),w.jsx(GS,{type:p,currentPageParams:c,isOpen:m,setIsOpen:u,church:t,hasComments:!Vl(a.comments),hasLikes:!!(a?.likedCount??0),isInteractionEnabled:n,theme:i})]})};d2(`
|
|
599
|
+
Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var B=M0(l0,L0,V0,c0,P0+"."+L0,r);if(B)return B}return null}return S(e0)}function X(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(X);if(Y===null||m(Y))return!0;var e0=A(Y);if(e0){var z=e0.call(Y),H0;if(e0!==Y.entries){for(;!(H0=z.next()).done;)if(!X(H0.value))return!1}else for(;!(H0=z.next()).done;){var V0=H0.value;if(V0&&!X(V0[1]))return!1}}else return!1;return!0;default:return!1}}function g0(Y,e0){return Y==="symbol"?!0:e0?e0["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&e0 instanceof Symbol:!1}function y0(Y){var e0=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":g0(e0,Y)?"symbol":e0}function o0(Y){if(typeof Y>"u"||Y===null)return""+Y;var e0=y0(Y);if(e0==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return e0}function u0(Y){var e0=o0(Y);switch(e0){case"array":case"object":return"an "+e0;case"boolean":case"date":case"regexp":return"a "+e0;default:return e0}}function K(Y){return!Y.constructor||!Y.constructor.name?Z:Y.constructor.name}return H.checkPropTypes=i,H.resetWarningCache=i.resetWarningCache,H.PropTypes=H,H},HL}var ML,bs0;function TW0(){if(bs0)return ML;bs0=1;var a=vL();function t(){}function n(){}return n.resetWarningCache=t,ML=function(){function r(o,c,m,u,p,f){if(f!==a){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}r.isRequired=r;function l(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ML}var Ss0;function Ls0(){if(Ss0)return xv.exports;Ss0=1;var a={};if(a.NODE_ENV!=="production"){var t=vs0(),n=!0;xv.exports=NW0()(t.isElement,n)}else xv.exports=TW0()();return xv.exports}var EL,Fs0;function _s0(){if(Fs0)return EL;Fs0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(R,U)=>{for(var x in U)t(R,x,{get:U[x],enumerable:!0})},c=(R,U,x,q)=>{if(U&&typeof U=="object"||typeof U=="function")for(let t0 of r(U))!i.call(R,t0)&&t0!==x&&t(R,t0,{get:()=>U[t0],enumerable:!(q=n(U,t0))||q.enumerable});return R},m=(R,U,x)=>(x=R!=null?a(l(R)):{},c(!R||!R.__esModule?t(x,"default",{value:R,enumerable:!0}):x,R)),u=R=>c(t({},"__esModule",{value:!0}),R),p={};o(p,{defaultProps:()=>O,propTypes:()=>L}),EL=u(p);var f=m(Ls0());const{string:A,bool:Z,number:H,array:V,oneOfType:b,shape:S,object:_,func:k,node:C}=f.default,L={url:b([A,V,_]),playing:Z,loop:Z,controls:Z,volume:H,muted:Z,playbackRate:H,width:b([A,H]),height:b([A,H]),style:_,progressInterval:H,playsinline:Z,pip:Z,stopOnUnmount:Z,light:b([Z,A,_]),playIcon:C,previewTabIndex:H,previewAriaLabel:A,fallback:C,oEmbedUrl:A,wrapper:b([A,k,S({render:k.isRequired})]),config:S({soundcloud:S({options:_}),youtube:S({playerVars:_,embedOptions:_,onUnstarted:k}),facebook:S({appId:A,version:A,playerId:A,attributes:_}),dailymotion:S({params:_}),vimeo:S({playerOptions:_,title:A}),mux:S({attributes:_,version:A}),file:S({attributes:_,tracks:V,forceVideo:Z,forceAudio:Z,forceHLS:Z,forceSafariHLS:Z,forceDisableHls:Z,forceDASH:Z,forceFLV:Z,hlsOptions:_,hlsVersion:A,dashVersion:A,flvVersion:A}),wistia:S({options:_,playerId:A,customControls:V}),mixcloud:S({options:_}),twitch:S({options:_,playerId:A}),vidyard:S({options:_})}),onReady:k,onStart:k,onPlay:k,onPause:k,onBuffer:k,onBufferEnd:k,onEnded:k,onError:k,onDuration:k,onSeek:k,onPlaybackRateChange:k,onPlaybackQualityChange:k,onProgress:k,onClickPreview:k,onEnablePIP:k,onDisablePIP:k},T=()=>{},O={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:T},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:T,onStart:T,onPlay:T,onPause:T,onBuffer:T,onBufferEnd:T,onEnded:T,onError:T,onDuration:T,onSeek:T,onPlaybackRateChange:T,onPlaybackQualityChange:T,onProgress:T,onClickPreview:T,onEnablePIP:T,onDisablePIP:T};return EL}var VL,ks0;function PW0(){if(ks0)return VL;ks0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(k,C,L)=>C in k?t(k,C,{enumerable:!0,configurable:!0,writable:!0,value:L}):k[C]=L,c=(k,C)=>{for(var L in C)t(k,L,{get:C[L],enumerable:!0})},m=(k,C,L,T)=>{if(C&&typeof C=="object"||typeof C=="function")for(let O of r(C))!i.call(k,O)&&O!==L&&t(k,O,{get:()=>C[O],enumerable:!(T=n(C,O))||T.enumerable});return k},u=(k,C,L)=>(L=k!=null?a(l(k)):{},m(!k||!k.__esModule?t(L,"default",{value:k,enumerable:!0}):L,k)),p=k=>m(t({},"__esModule",{value:!0}),k),f=(k,C,L)=>(o(k,typeof C!="symbol"?C+"":C,L),L),A={};c(A,{default:()=>_}),VL=p(A);var Z=u(E2()),H=u(ps0()),V=_s0(),b=N4();const S=5e3;class _ extends Z.Component{constructor(){super(...arguments),f(this,"mounted",!1),f(this,"isReady",!1),f(this,"isPlaying",!1),f(this,"isLoading",!0),f(this,"loadOnReady",null),f(this,"startOnPlay",!0),f(this,"seekOnPlay",null),f(this,"onDurationCalled",!1),f(this,"handlePlayerMount",C=>{if(this.player){this.progress();return}this.player=C,this.player.load(this.props.url),this.progress()}),f(this,"getInternalPlayer",C=>this.player?this.player[C]:null),f(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const C=this.getCurrentTime()||0,L=this.getSecondsLoaded(),T=this.getDuration();if(T){const O={playedSeconds:C,played:C/T};L!==null&&(O.loadedSeconds=L,O.loaded=L/T),(O.playedSeconds!==this.prevPlayed||O.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(O),this.prevPlayed=O.playedSeconds,this.prevLoaded=O.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),f(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:C,playing:L,volume:T,muted:O}=this.props;C(),!O&&T!==null&&this.player.setVolume(T),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):L&&this.player.play(),this.handleDurationCheck()}),f(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:C,onPlay:L,playbackRate:T}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&T!==1&&this.player.setPlaybackRate(T),C(),this.startOnPlay=!1),L(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),f(this,"handlePause",C=>{this.isPlaying=!1,this.isLoading||this.props.onPause(C)}),f(this,"handleEnded",()=>{const{activePlayer:C,loop:L,onEnded:T}=this.props;C.loopOnEnded&&L&&this.seekTo(0),L||(this.isPlaying=!1,T())}),f(this,"handleError",(...C)=>{this.isLoading=!1,this.props.onError(...C)}),f(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const C=this.getDuration();C?this.onDurationCalled||(this.props.onDuration(C),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),f(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(C){if(!this.player)return;const{url:L,playing:T,volume:O,muted:R,playbackRate:U,pip:x,loop:q,activePlayer:t0,disableDeferredLoading:n0}=this.props;if(!(0,H.default)(C.url,L)){if(this.isLoading&&!t0.forceLoad&&!n0&&!(0,b.isMediaStream)(L)){console.warn(`ReactPlayer: the attempt to load ${L} is being deferred until the player has loaded`),this.loadOnReady=L;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(L,this.isReady)}!C.playing&&T&&!this.isPlaying&&this.player.play(),C.playing&&!T&&this.isPlaying&&this.player.pause(),!C.pip&&x&&this.player.enablePIP&&this.player.enablePIP(),C.pip&&!x&&this.player.disablePIP&&this.player.disablePIP(),C.volume!==O&&O!==null&&this.player.setVolume(O),C.muted!==R&&(R?this.player.mute():(this.player.unmute(),O!==null&&setTimeout(()=>this.player.setVolume(O)))),C.playbackRate!==U&&this.player.setPlaybackRate&&this.player.setPlaybackRate(U),C.loop!==q&&this.player.setLoop&&this.player.setLoop(q)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(C,L,T){if(!this.isReady){C!==0&&(this.seekOnPlay=C,setTimeout(()=>{this.seekOnPlay=null},S));return}if(L?L==="fraction":C>0&&C<1){const R=this.player.getDuration();if(!R){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(R*C,T);return}this.player.seekTo(C,T)}render(){const C=this.props.activePlayer;return C?Z.default.createElement(C,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}return f(_,"displayName","Player"),f(_,"propTypes",V.propTypes),f(_,"defaultProps",V.defaultProps),VL}var yL,ws0;function $W0(){if(ws0)return yL;ws0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(q,t0,n0)=>t0 in q?t(q,t0,{enumerable:!0,configurable:!0,writable:!0,value:n0}):q[t0]=n0,c=(q,t0)=>{for(var n0 in t0)t(q,n0,{get:t0[n0],enumerable:!0})},m=(q,t0,n0,J)=>{if(t0&&typeof t0=="object"||typeof t0=="function")for(let X of r(t0))!i.call(q,X)&&X!==n0&&t(q,X,{get:()=>t0[X],enumerable:!(J=n(t0,X))||J.enumerable});return q},u=(q,t0,n0)=>(n0=q!=null?a(l(q)):{},m(!q||!q.__esModule?t(n0,"default",{value:q,enumerable:!0}):n0,q)),p=q=>m(t({},"__esModule",{value:!0}),q),f=(q,t0,n0)=>(o(q,typeof t0!="symbol"?t0+"":t0,n0),n0),A={};c(A,{createReactPlayer:()=>x}),yL=p(A);var Z=u(E2()),H=u(os0()),V=u(_W0),b=u(ps0()),S=_s0(),_=N4(),k=u(PW0());const C=(0,_.lazy)(()=>Promise.resolve().then(()=>Ite)),L=typeof window<"u"&&window.document&&typeof document<"u",T=typeof cl<"u"&&cl.window&&cl.window.document,O=Object.keys(S.propTypes),R=L||T?Z.Suspense:()=>null,U=[],x=(q,t0)=>{var n0;return n0=class extends Z.Component{constructor(){super(...arguments),f(this,"state",{showPreview:!!this.props.light}),f(this,"references",{wrapper:J=>{this.wrapper=J},player:J=>{this.player=J}}),f(this,"handleClickPreview",J=>{this.setState({showPreview:!1}),this.props.onClickPreview(J)}),f(this,"showPreview",()=>{this.setState({showPreview:!0})}),f(this,"getDuration",()=>this.player?this.player.getDuration():null),f(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),f(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),f(this,"getInternalPlayer",(J="player")=>this.player?this.player.getInternalPlayer(J):null),f(this,"seekTo",(J,X,g0)=>{if(!this.player)return null;this.player.seekTo(J,X,g0)}),f(this,"handleReady",()=>{this.props.onReady(this)}),f(this,"getActivePlayer",(0,V.default)(J=>{for(const X of[...U,...q])if(X.canPlay(J))return X;return t0||null})),f(this,"getConfig",(0,V.default)((J,X)=>{const{config:g0}=this.props;return H.default.all([S.defaultProps.config,S.defaultProps.config[X]||{},g0,g0[X]||{}])})),f(this,"getAttributes",(0,V.default)(J=>(0,_.omit)(this.props,O))),f(this,"renderActivePlayer",J=>{if(!J)return null;const X=this.getActivePlayer(J);if(!X)return null;const g0=this.getConfig(J,X.key);return Z.default.createElement(k.default,{...this.props,key:X.key,ref:this.references.player,config:g0,activePlayer:X.lazyPlayer||X,onReady:this.handleReady})})}shouldComponentUpdate(J,X){return!(0,b.default)(this.props,J)||!(0,b.default)(this.state,X)}componentDidUpdate(J){const{light:X}=this.props;!J.light&&X&&this.setState({showPreview:!0}),J.light&&!X&&this.setState({showPreview:!1})}renderPreview(J){if(!J)return null;const{light:X,playIcon:g0,previewTabIndex:y0,oEmbedUrl:o0,previewAriaLabel:u0}=this.props;return Z.default.createElement(C,{url:J,light:X,playIcon:g0,previewTabIndex:y0,previewAriaLabel:u0,oEmbedUrl:o0,onClick:this.handleClickPreview})}render(){const{url:J,style:X,width:g0,height:y0,fallback:o0,wrapper:u0}=this.props,{showPreview:K}=this.state,Y=this.getAttributes(J),e0=typeof u0=="string"?this.references.wrapper:void 0;return Z.default.createElement(u0,{ref:e0,style:{...X,width:g0,height:y0},...Y},Z.default.createElement(R,{fallback:o0},K?this.renderPreview(J):this.renderActivePlayer(J)))}},f(n0,"displayName","ReactPlayer"),f(n0,"propTypes",S.propTypes),f(n0,"defaultProps",S.defaultProps),f(n0,"addCustomPlayer",J=>{U.push(J)}),f(n0,"removeCustomPlayers",()=>{U.length=0}),f(n0,"canPlay",J=>{for(const X of[...U,...q])if(X.canPlay(J))return!0;return!1}),f(n0,"canEnablePIP",J=>{for(const X of[...U,...q])if(X.canEnablePIP&&X.canEnablePIP(J))return!0;return!1}),n0};return yL}var bL,Cs0;function OW0(){if(Cs0)return bL;Cs0=1;var a=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,l=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,o=(V,b)=>{for(var S in b)t(V,S,{get:b[S],enumerable:!0})},c=(V,b,S,_)=>{if(b&&typeof b=="object"||typeof b=="function")for(let k of r(b))!i.call(V,k)&&k!==S&&t(V,k,{get:()=>b[k],enumerable:!(_=n(b,k))||_.enumerable});return V},m=(V,b,S)=>(S=V!=null?a(l(V)):{},c(!V||!V.__esModule?t(S,"default",{value:V,enumerable:!0}):S,V)),u=V=>c(t({},"__esModule",{value:!0}),V),p={};o(p,{default:()=>H}),bL=u(p);var f=m(bW0()),A=$W0();const Z=f.default[f.default.length-1];var H=(0,A.createReactPlayer)(f.default,Z);return bL}var IW0=OW0();const xW0=A2(IW0),jW0=({media:a,shouldSendInteractions:t})=>{const n=HR0();return e.useCallback((r,l)=>{if(!(!a?.id||!t||!n))return n({media:a,action:r,data:l})},[a,t,n])},RW0=({media:a,livestream:t,content:n,playerRef:r})=>{const l=w9(),i=e.useRef(new Date().getTime());return e.useCallback((o,c)=>{const m=new Date;return l.track(o,{sessionId:i.current,contentAssetId:n?.id,parentOriginId:n?.originId,originId:a?.originId,originSource:a?.originType,videoPlayer:"Apollos Web",livestream:!1,timestamp:m.toUTCString(),title:n?.title,totalLength:a?.duration||r.current?.getDuration(),position:r.current?.getCurrentTime(),publishedAt:n?.publishDate?new Date(parseInt(n?.publishDate,10)):null,...t?{contentAssetId:`livestream_${m.getFullYear()}_${m.getMonth()+1}_${m.getDate()}`,livestream:!0,publishedAt:new Date(t.start||m)}:{},...c})},[a,t,n,l,r])},SL={wrapper:"rounded-xl w-full overflow-hidden relative",video:"aspect-video"},DW0=10,zW0=({media:a,coverImage:t,livestream:n,content:r,shouldSendInteractions:l,...i})=>{const o=e.useRef(null),c=e.useRef(0),m=RW0({media:a,livestream:n,content:r,playerRef:o}),u=jW0({media:a,shouldSendInteractions:l}),{playing:p,...f}=i,[A,Z]=e.useState(!0),[H,V]=e.useState(typeof p=="boolean"?p:!1),b=e.useRef(!1),S=e.useRef(0);e.useEffect(()=>()=>{b.current&&m("VideoPlaybackExited")},[]);const _=async()=>{if(n)n0();else{const g0=a?.userProgress?.playhead||0;g0>0&&A&&S.current!==g0&&(S.current=g0,o.current?.seekTo(g0))}},k=async()=>{m("VideoPlaybackCompleted"),u("COMPLETE"),V(!1)},C=()=>{V(!0),A?(Z(!1),m("VideoPlaybackResumed")):m("VideoPlaybackStarted"),b.current||(b.current=!0)},L=()=>{A||(Z(!0),m("VideoPlaybackPaused"),u("VIEW",{progress:o.current?.getCurrentTime()})),V(!1)},T=g0=>{g0.playbackRate===0?L():C()},O=()=>{m("VideoPlaybackSeekCompleted")},R=({played:g0})=>{const y0=o.current?.getCurrentTime()||0;g0&&Math.abs(y0-c.current)>=DW0&&(c.current=y0,u("VIEW",{progress:y0}))},U=(g0,...y0)=>{console.error("Video error",g0,y0),m("VideoPlaybackInterrupted")};if(a?.embedHtml)return w.jsx("div",{className:K1(SL.wrapper),dangerouslySetInnerHTML:{__html:a.embedHtml}});const x=typeof document>"u",q=!!a?.sources?.[0]?.uri,t0=!q||x,n0=()=>{if(!n?.start||!o.current)return;const g0=new Date(n.start),u0=(new Date().getTime()-g0.getTime())/1e3;o.current?.seekTo(u0)},J=t?.sources?.[0]?.uri,X={file:{attributes:{...n?{autoPlay:!0}:{}},hlsVersion:"1.5.19"}};return w.jsxs("div",{className:K1(SL.wrapper,SL.video),children:[t0?w.jsx(Yb,{image:t??void 0,className:"h-full w-full object-cover"}):w.jsx(xW0,{ref:o,url:a?.sources?.[0]?.uri??void 0,controls:!0,config:X,playing:n?!0:typeof p=="boolean"?p:H,playsinline:!0,width:"100%",height:"100%",onReady:_,onEnded:k,onPlay:C,onPause:L,onSeeked:O,onProgress:R,onError:U,onPlaybackRateChange:T,light:!1,...f}),J&&q&&!n&&!b.current&&w.jsxs("button",{type:"button",className:"absolute inset-0 flex items-center justify-center bg-black/40",style:{backgroundImage:`url(${J})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},onClick:()=>{V(!0)},children:[w.jsx("span",{className:"sr-only",children:"Play video"}),w.jsx(XS,{weight:"fill",size:60,className:"text-white drop-shadow-lg"})]})]})},BW0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M240.49,103.52l-80-80A12,12,0,0,0,140,32V68.74c-25.76,3.12-53.66,15.89-76.75,35.47-29.16,24.74-47.32,56.69-51.14,90A16,16,0,0,0,39.67,207h0c10.46-11.14,47-45.74,100.33-50.42V192a12,12,0,0,0,20.48,8.48l80-80A12,12,0,0,0,240.49,103.52ZM164,163V144a12,12,0,0,0-12-12c-49,0-86.57,21.56-109.79,40.11,7.13-18.16,19.63-35.22,36.57-49.59C101.3,103.41,128.67,92,152,92a12,12,0,0,0,12-12V61l51,51Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M152,192V144c-61.4,0-104.61,37.19-121.07,54.72a4,4,0,0,1-6.9-3.18C31.51,130.45,99.19,80,152,80V32l80,80Z",opacity:"0.2"}),e.createElement("path",{d:"M237.66,106.35l-80-80A8,8,0,0,0,144,32V72.35c-25.94,2.22-54.59,14.92-78.16,34.91-28.38,24.08-46.05,55.11-49.76,87.37a12,12,0,0,0,20.68,9.58h0c11-11.71,50.14-48.74,107.24-52V192a8,8,0,0,0,13.66,5.65l80-80A8,8,0,0,0,237.66,106.35ZM160,172.69V144a8,8,0,0,0-8-8c-28.08,0-55.43,7.33-81.29,21.8a196.17,196.17,0,0,0-36.57,26.52c5.8-23.84,20.42-46.51,42.05-64.86C99.41,99.77,127.75,88,152,88a8,8,0,0,0,8-8V51.32L220.69,112Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.66,117.66l-80,80A8,8,0,0,1,144,192V152.23c-57.1,3.24-96.25,40.27-107.24,52h0a12,12,0,0,1-20.68-9.58c3.71-32.26,21.38-63.29,49.76-87.37,23.57-20,52.22-32.69,78.16-34.91V32a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,237.66,117.66Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M236.24,107.76l-80-80A6,6,0,0,0,146,32V74.2c-54.48,3.59-120.39,55-127.93,120.66a10,10,0,0,0,17.23,8h0C46.56,190.85,87,152.6,146,150.13V192a6,6,0,0,0,10.24,4.24l80-80A6,6,0,0,0,236.24,107.76ZM158,177.52V144a6,6,0,0,0-6-6c-27.73,0-54.76,7.25-80.32,21.55a193.38,193.38,0,0,0-40.81,30.65c4.7-26.56,20.16-52,44-72.27C98.47,97.94,127.29,86,152,86a6,6,0,0,0,6-6V46.49L223.51,112Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M237.66,106.35l-80-80A8,8,0,0,0,144,32V72.35c-25.94,2.22-54.59,14.92-78.16,34.91-28.38,24.08-46.05,55.11-49.76,87.37a12,12,0,0,0,20.68,9.58h0c11-11.71,50.14-48.74,107.24-52V192a8,8,0,0,0,13.66,5.65l80-80A8,8,0,0,0,237.66,106.35ZM160,172.69V144a8,8,0,0,0-8-8c-28.08,0-55.43,7.33-81.29,21.8a196.17,196.17,0,0,0-36.57,26.52c5.8-23.84,20.42-46.51,42.05-64.86C99.41,99.77,127.75,88,152,88a8,8,0,0,0,8-8V51.32L220.69,112Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M234.83,109.17l-80-80A4,4,0,0,0,148,32V76.09c-54,2.44-120.43,53.55-127.94,119a7.87,7.87,0,0,0,4.58,8.16,8,8,0,0,0,3.41.77,7.9,7.9,0,0,0,5.79-2.55h0c11.53-12.27,53.29-51.73,114.16-53.4V192a4,4,0,0,0,6.83,2.83l80-80A4,4,0,0,0,234.83,109.17ZM156,182.33V144a4,4,0,0,0-4-4c-27.39,0-54.08,7.17-79.34,21.3A189.91,189.91,0,0,0,28,196l2.92,2.74L28,196c3.36-29.21,19.55-57.48,45.6-79.57C97.53,96.11,126.83,84,152,84a4,4,0,0,0,4-4V41.66L226.34,112Z"}))]]),LL=e.forwardRef((a,t)=>e.createElement(E,{ref:t,...a,weights:BW0}));LL.displayName="ShareFatIcon";const FL=LL,UW0=Object.freeze(Object.defineProperty({__proto__:null,ShareFat:FL,ShareFatIcon:LL},Symbol.toStringTag,{value:"Module"})),qW0=(a=[])=>a?.filter(t=>(t?.features||[]).some(n=>n&&Object.keys(n).some(r=>!["id","__typename"].includes(r))))||[],WW0=({content:a,setIsCTAOpen:t,setInteractionType:n})=>w.jsx("div",{className:"flex justify-end",children:w.jsxs("div",{className:"fixed right-0 bottom-0 mr-4 [@media(width>=56rem)]:mr-8 [@media(width>=80rem)]:-mr-72 [@media(width>=80rem)]:right-auto mt-4 mb-8 py-1 flex flex-col justify-between items-center",children:[w.jsx("div",{className:"mb-4",children:w.jsx(Je,{onClick:()=>{t(!0),n(Ct.Like)},circular:!0,children:w.jsxs("div",{className:"flex flex-col px-1.5 items-center",children:[w.jsx(cv,{weight:a?.isLiked?"fill":"regular",size:20,className:`md:hidden ${a?.isLiked?"fill-action":"text-action"}`}),w.jsx(cv,{weight:a?.isLiked?"fill":"regular",size:28,className:`hidden md:flex ${a?.isLiked?"fill-action":"text-action"}`}),a.likedCount?w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute -bottom-2.5 bg-white dark:bg-brand px-2 rounded-full text-xs z-9",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-white dark:text-brand",children:a.likedCount})}),w.jsx("span",{className:"absolute -bottom-2.5 bg-accent/20 dark:bg-brand px-2 rounded-full text-xs z-10",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-accent/100",children:a.likedCount})})]}):null]})})}),a.commentsEnabled?w.jsx("div",{className:"mb-4",children:w.jsx(Je,{onClick:()=>{t(!0),n(Ct.Comment)},circular:!0,children:w.jsxs("div",{className:"flex flex-col px-1.5 items-center",children:[w.jsx(Wb,{weight:"fill",size:20,className:"md:hidden text-action"}),w.jsx(Wb,{weight:"fill",size:28,className:"hidden md:flex text-action"}),Vl(a.comments)?null:w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"absolute -bottom-2.5 bg-white dark:bg-brand px-2 rounded-full text-xs z-9",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-white dark:text-brand",children:a.comments?.length??0})}),w.jsx("span",{className:"absolute -bottom-2.5 bg-accent/20 dark:bg-brand px-2 rounded-full text-xs z-10",children:w.jsx(ge,{fg:"secondary",className:"text-sm text-accent/100",children:a.comments?.length??0})})]})]})})}):null,a.sharing?w.jsxs(VW0,{circular:!0,sharable:a.sharing,children:[w.jsx(FL,{weight:"fill",size:20,className:"mx-1.5 text-fg-secondary dark:text-fg-secondary-dark md:hidden"}),w.jsx(FL,{weight:"fill",size:28,className:"mx-2 text-fg-secondary dark:text-fg-secondary-dark hidden md:flex"})]}):w.jsx("div",{})]})}),GW0=({content:a,currentChurch:t,isInteractionEnabled:n=!1,userCanComment:r,userProfile:l,theme:i,executedConnectFeatureId:o})=>{const c=DV(),[m,u]=e.useState(!1),[p,f]=e.useState(Ct.Default),A=e.useMemo(()=>qW0(a.pages),[a.pages]);if(!a)return null;const Z=a?.videos?.find(C=>!!(C&&(C.embedHtml||C.sources?.some(L=>!!L?.uri)))),H=!!Z,V=!!a?.coverImage,b=a?.childContentItemsConnection?.edges??[],S=a?.siblingContentItemsConnection?.edges??[],_="md:border md:border-system-regular md:rounded-3xl py-6 md:p-6 mb-8 border-b border-b-system-regular",k=A?.length&&A?.length>1;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:k?_:"",children:[V&&!H?w.jsx(Yb,{image:a?.coverImage??void 0,className:"h-full w-full object-cover rounded-xl"}):null,H?w.jsx(zW0,{media:Z,coverImage:a?.coverImage??void 0,content:a??void 0,shouldSendInteractions:!!r}):null,w.jsxs("div",{className:`${H||V?"mt-6 md:mt-12":""} mb-4 mx-auto [&>*]:mx-auto [&>*]:max-w-[65ch]`,children:[w.jsx("div",{className:"prose dark:prose-invert",children:w.jsx(ge,{as:"h1",children:a.title})}),w.jsx("div",{className:"h-px bg-system-thin my-8"}),a.htmlContent?w.jsx($c0,{feature:{content:a.htmlContent}}):null,A?.length?w.jsx("div",{className:"flex flex-col gap-4",children:w.jsx(lL,{features:A[0]?.features??[],church:t,userProfile:l,isInteractionEnabled:n,theme:i,executedConnectFeatureId:o})}):null]})]}),A?.slice(1).map(C=>C&&C.features?.length&&C.features.length>0&&w.jsx("div",{className:_,children:w.jsx("div",{className:"flex flex-col gap-4",children:w.jsx(lL,{features:C.features??[],church:t,userProfile:l,isInteractionEnabled:n,theme:i,executedConnectFeatureId:o})})},C.id)),w.jsxs("div",{className:"mx-auto [&>*]:mx-auto [&>*]:max-w-[65ch]",children:[n?w.jsx(WW0,{content:a,setIsCTAOpen:u,setInteractionType:f}):null,b.length?w.jsx(UA,{className:"mt-10",children:b.map(C=>{const L=(C?.node?.coverImage?.sources??[])[0]?.uri;return w.jsx(gd,{as:Jy,to:{contentId:C?.node?.id},title:C?.node?.title??void 0,subtitle:C?.node?.summary,leadingAccessory:w.jsx(h9,{src:L??void 0}),trailingAccessory:w.jsx(or,{})},C?.node?.id)})}):null,a?.parentItem?w.jsxs("div",{className:"mt-12",children:[w.jsx(ge,{as:"h3",className:"mb-4",children:"This series"}),w.jsx(S70,{content:a?.parentItem})]}):null,S.length?w.jsxs("div",{className:"mt-10",children:[w.jsx(ge,{as:"h3",children:"In this series"}),w.jsx(Rb,{children:S.map(C=>w.jsx(S70,{content:C?.node??void 0,horizontal:!0},C?.node?.id))})]}):null]}),w.jsx(GS,{type:p,currentPageParams:c,isOpen:m,setIsOpen:u,church:t,hasComments:!Vl(a.comments),hasLikes:!!(a?.likedCount??0),isInteractionEnabled:n,theme:i})]})};d2(`
|
|
600
600
|
fragment ContentItemFragment on ContentItem {
|
|
601
601
|
id
|
|
602
602
|
title
|