const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/YouTube-mhIhsx4O.js","assets/index-CNnTZTc7.js","assets/index-DoEHmGD5.css","assets/SoundCloud-DYhyjfGb.js","assets/Vimeo-CYJR9cWH.js","assets/Mux-C5ZK35Ab.js","assets/Facebook-BDGMVq_W.js","assets/Streamable-BPEKHQb1.js","assets/Wistia-ABsDAY1n.js","assets/Twitch-CPfAOtAC.js","assets/DailyMotion-DW8dMXM8.js","assets/Mixcloud-C_l0NMB0.js","assets/Vidyard-Dk8nxLzz.js","assets/Kaltura-BdMPXSHt.js","assets/FilePlayer-DfoZYmU6.js","assets/Preview-CuG18eo6.js"])))=>i.map(i=>d[i]); import{r as z,dk as w,dl as gt,d0 as _t,dm as Ae,aZ as X,d1 as It,j as s,q as bt,T as Pt,ab as j,y as vt,t as Ct,b5 as wt,M as At,d as Ot,dn as Mt,B as Tt,dp as St}from"./index-CNnTZTc7.js";import{T as Nt}from"./index-DOymSElJ.js";var Lt=function(t,a,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof a=="function"&&(n=a,a={}),a=a||{},n=n||function(){},i.type=a.type||"text/javascript",i.charset=a.charset||"utf8",i.async="async"in a?!!a.async:!0,i.src=t,a.attrs&&Dt(i,a.attrs),a.text&&(i.text=""+a.text);var l="onload"in i?ge:xt;l(i,n),i.onload||ge(i,n),r.appendChild(i)};function Dt(e,t){for(var a in t)e.setAttribute(a,t[a])}function ge(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function xt(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Rt=function(t){return jt(t)&&!Et(t)};function jt(e){return!!e&&typeof e=="object"}function Et(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Zt(e)}var kt=typeof Symbol=="function"&&Symbol.for,Ut=kt?Symbol.for("react.element"):60103;function Zt(e){return e.$$typeof===Ut}function $t(e){return Array.isArray(e)?[]:{}}function Z(e,t){return t.clone!==!1&&t.isMergeableObject(e)?x($t(e),e,t):e}function Ht(e,t,a){return e.concat(t).map(function(n){return Z(n,a)})}function Gt(e,t){if(!t.customMerge)return x;var a=t.customMerge(e);return typeof a=="function"?a:x}function zt(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function _e(e){return Object.keys(e).concat(zt(e))}function Oe(e,t){try{return t in e}catch{return!1}}function Wt(e,t){return Oe(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Vt(e,t,a){var n={};return a.isMergeableObject(e)&&_e(e).forEach(function(r){n[r]=Z(e[r],a)}),_e(t).forEach(function(r){Wt(e,r)||(Oe(e,r)&&a.isMergeableObject(t[r])?n[r]=Gt(r,a)(e[r],t[r],a):n[r]=Z(t[r],a))}),n}function x(e,t,a){a=a||{},a.arrayMerge=a.arrayMerge||Ht,a.isMergeableObject=a.isMergeableObject||Rt,a.cloneUnlessOtherwiseSpecified=Z;var n=Array.isArray(t),r=Array.isArray(e),i=n===r;return i?n?a.arrayMerge(e,t,a):Vt(e,t,a):Z(t,a)}x.all=function(t,a){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,r){return x(n,r,a)},{})};var Bt=x,Me=Bt,Yt=Object.create,W=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Jt=Object.getOwnPropertyNames,Xt=Object.getPrototypeOf,Kt=Object.prototype.hasOwnProperty,Qt=(e,t)=>{for(var a in t)W(e,a,{get:t[a],enumerable:!0})},Te=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Jt(t))!Kt.call(e,r)&&r!==a&&W(e,r,{get:()=>t[r],enumerable:!(n=Ft(t,r))||n.enumerable});return e},ne=(e,t,a)=>(a=e!=null?Yt(Xt(e)):{},Te(!e||!e.__esModule?W(a,"default",{value:e,enumerable:!0}):a,e)),qt=e=>Te(W({},"__esModule",{value:!0}),e),Se={};Qt(Se,{callPlayer:()=>ha,getConfig:()=>ma,getSDK:()=>pa,isBlobUrl:()=>ga,isMediaStream:()=>fa,lazy:()=>ra,omit:()=>ya,parseEndTime:()=>ca,parseStartTime:()=>la,queryString:()=>da,randomString:()=>ua,supportsWebKitPresentationMode:()=>_a});var V=qt(Se),ea=ne(z),ta=ne(Lt),aa=ne(Me);const ra=e=>ea.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),na=/[?&#](?:start|t)=([0-9hms]+)/,ia=/[?&#]end=([0-9hms]+)/,ee=/(\d+)(h|m|s)/g,sa=/^\d+$/;function Ne(e,t){if(e instanceof Array)return;const a=e.match(t);if(a){const n=a[1];if(n.match(ee))return oa(n);if(sa.test(n))return parseInt(n)}}function oa(e){let t=0,a=ee.exec(e);for(;a!==null;){const[,n,r]=a;r==="h"&&(t+=parseInt(n,10)*60*60),r==="m"&&(t+=parseInt(n,10)*60),r==="s"&&(t+=parseInt(n,10)),a=ee.exec(e)}return t}function la(e){return Ne(e,na)}function ca(e){return Ne(e,ia)}function ua(){return Math.random().toString(36).substr(2,5)}function da(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function K(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const N={},pa=function(t,a,n=null,r=()=>!0,i=ta.default){const l=K(a);return l&&r(l)?Promise.resolve(l):new Promise((c,o)=>{if(N[t]){N[t].push({resolve:c,reject:o});return}N[t]=[{resolve:c,reject:o}];const I=h=>{N[t].forEach(m=>m.resolve(h))};if(n){const h=window[n];window[n]=function(){h&&h(),I(K(a))}}i(t,h=>{h?(N[t].forEach(m=>m.reject(h)),N[t]=null):n||I(K(a))})})};function ma(e,t){return(0,aa.default)(t.config,e.config)}function ya(e,...t){const a=[].concat(...t),n={},r=Object.keys(e);for(const i of r)a.indexOf(i)===-1&&(n[i]=e[i]);return n}function ha(e,...t){if(!this.player||!this.player[e]){let a=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(a+="The method was not available"):a+="The player was not available",console.warn(a,"font-weight: bold",""),null}return this.player[e](...t)}function fa(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function ga(e){return/^blob:/.test(e)}function _a(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var ie=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyNames,Pa=Object.prototype.hasOwnProperty,va=(e,t)=>{for(var a in t)ie(e,a,{get:t[a],enumerable:!0})},Ca=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ba(t))!Pa.call(e,r)&&r!==a&&ie(e,r,{get:()=>t[r],enumerable:!(n=Ia(t,r))||n.enumerable});return e},wa=e=>Ca(ie({},"__esModule",{value:!0}),e),Le={};va(Le,{AUDIO_EXTENSIONS:()=>se,DASH_EXTENSIONS:()=>Ve,FLV_EXTENSIONS:()=>Be,HLS_EXTENSIONS:()=>le,MATCH_URL_DAILYMOTION:()=>He,MATCH_URL_FACEBOOK:()=>je,MATCH_URL_FACEBOOK_WATCH:()=>Ee,MATCH_URL_KALTURA:()=>We,MATCH_URL_MIXCLOUD:()=>Ge,MATCH_URL_MUX:()=>Re,MATCH_URL_SOUNDCLOUD:()=>De,MATCH_URL_STREAMABLE:()=>ke,MATCH_URL_TWITCH_CHANNEL:()=>$e,MATCH_URL_TWITCH_VIDEO:()=>Ze,MATCH_URL_VIDYARD:()=>ze,MATCH_URL_VIMEO:()=>xe,MATCH_URL_WISTIA:()=>Ue,MATCH_URL_YOUTUBE:()=>te,VIDEO_EXTENSIONS:()=>oe,canPlay:()=>Oa});var Aa=wa(Le),Ie=V;const te=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,De=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,xe=/vimeo\.com\/(?!progressive_redirect).+/,Re=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,je=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Ee=/^https?:\/\/fb\.watch\/.+$/,ke=/streamable\.com\/([a-z0-9]+)$/,Ue=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Ze=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,$e=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,He=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Ge=/mixcloud\.com\/([^/]+\/[^/]+)/,ze=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,We=/^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-_].*)$/,se=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,oe=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,le=/\.(m3u8)($|\?)/i,Ve=/\.(mpd)($|\?)/i,Be=/\.(flv)($|\?)/i,ae=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&ae(t)||ae(t.src))return!0;return!1}return(0,Ie.isMediaStream)(e)||(0,Ie.isBlobUrl)(e)?!0:se.test(e)||oe.test(e)||le.test(e)||Ve.test(e)||Be.test(e)},Oa={youtube:e=>e instanceof Array?e.every(t=>te.test(t)):te.test(e),soundcloud:e=>De.test(e)&&!se.test(e),vimeo:e=>xe.test(e)&&!oe.test(e)&&!le.test(e),mux:e=>Re.test(e),facebook:e=>je.test(e)||Ee.test(e),streamable:e=>ke.test(e),wistia:e=>Ue.test(e),twitch:e=>Ze.test(e)||$e.test(e),dailymotion:e=>He.test(e),mixcloud:e=>Ge.test(e),vidyard:e=>ze.test(e),kaltura:e=>We.test(e),file:ae};var ce=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,Ta=Object.getOwnPropertyNames,Sa=Object.prototype.hasOwnProperty,Na=(e,t)=>{for(var a in t)ce(e,a,{get:t[a],enumerable:!0})},La=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ta(t))!Sa.call(e,r)&&r!==a&&ce(e,r,{get:()=>t[r],enumerable:!(n=Ma(t,r))||n.enumerable});return e},Da=e=>La(ce({},"__esModule",{value:!0}),e),Ye={};Na(Ye,{default:()=>Ra});var xa=Da(Ye),v=V,b=Aa,Ra=[{key:"youtube",name:"YouTube",canPlay:b.canPlay.youtube,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./YouTube-mhIhsx4O.js").then(e=>e.Y),__vite__mapDeps([0,1,2])))},{key:"soundcloud",name:"SoundCloud",canPlay:b.canPlay.soundcloud,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./SoundCloud-DYhyjfGb.js").then(e=>e.S),__vite__mapDeps([3,1,2])))},{key:"vimeo",name:"Vimeo",canPlay:b.canPlay.vimeo,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Vimeo-CYJR9cWH.js").then(e=>e.V),__vite__mapDeps([4,1,2])))},{key:"mux",name:"Mux",canPlay:b.canPlay.mux,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Mux-C5ZK35Ab.js").then(e=>e.M),__vite__mapDeps([5,1,2])))},{key:"facebook",name:"Facebook",canPlay:b.canPlay.facebook,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Facebook-BDGMVq_W.js").then(e=>e.F),__vite__mapDeps([6,1,2])))},{key:"streamable",name:"Streamable",canPlay:b.canPlay.streamable,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Streamable-BPEKHQb1.js").then(e=>e.S),__vite__mapDeps([7,1,2])))},{key:"wistia",name:"Wistia",canPlay:b.canPlay.wistia,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Wistia-ABsDAY1n.js").then(e=>e.W),__vite__mapDeps([8,1,2])))},{key:"twitch",name:"Twitch",canPlay:b.canPlay.twitch,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Twitch-CPfAOtAC.js").then(e=>e.T),__vite__mapDeps([9,1,2])))},{key:"dailymotion",name:"DailyMotion",canPlay:b.canPlay.dailymotion,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./DailyMotion-DW8dMXM8.js").then(e=>e.D),__vite__mapDeps([10,1,2])))},{key:"mixcloud",name:"Mixcloud",canPlay:b.canPlay.mixcloud,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Mixcloud-C_l0NMB0.js").then(e=>e.M),__vite__mapDeps([11,1,2])))},{key:"vidyard",name:"Vidyard",canPlay:b.canPlay.vidyard,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Vidyard-Dk8nxLzz.js").then(e=>e.V),__vite__mapDeps([12,1,2])))},{key:"kaltura",name:"Kaltura",canPlay:b.canPlay.kaltura,lazyPlayer:(0,v.lazy)(()=>w(()=>import("./Kaltura-BdMPXSHt.js").then(e=>e.K),__vite__mapDeps([13,1,2])))},{key:"file",name:"FilePlayer",canPlay:b.canPlay.file,canEnablePIP:e=>b.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,v.supportsWebKitPresentationMode)())&&!b.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,v.lazy)(()=>w(()=>import("./FilePlayer-DfoZYmU6.js").then(e=>e.F),__vite__mapDeps([14,1,2])))}],be=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ja(e,t){return!!(e===t||be(e)&&be(t))}function Ea(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!ja(e[a],t[a]))return!1;return!0}function ka(e,t){t===void 0&&(t=Ea);var a,n=[],r,i=!1;function l(){for(var c=[],o=0;o<arguments.length;o++)c[o]=arguments[o];return i&&a===this&&t(c,n)||(r=e.apply(this,c),i=!0,a=this,n=c),r}return l}const Ua=Object.freeze(Object.defineProperty({__proto__:null,default:ka},Symbol.toStringTag,{value:"Module"})),Za=gt(Ua);var $a=Object.create,B=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Ga=Object.getOwnPropertyNames,za=Object.getPrototypeOf,Wa=Object.prototype.hasOwnProperty,Va=(e,t)=>{for(var a in t)B(e,a,{get:t[a],enumerable:!0})},Fe=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ga(t))!Wa.call(e,r)&&r!==a&&B(e,r,{get:()=>t[r],enumerable:!(n=Ha(t,r))||n.enumerable});return e},Ba=(e,t,a)=>(a=e!=null?$a(za(e)):{},Fe(!e||!e.__esModule?B(a,"default",{value:e,enumerable:!0}):a,e)),Ya=e=>Fe(B({},"__esModule",{value:!0}),e),Je={};Va(Je,{defaultProps:()=>Xa,propTypes:()=>Ja});var Xe=Ya(Je),Fa=Ba(_t);const{string:f,bool:P,number:L,array:Q,oneOfType:E,shape:A,object:_,func:y,node:Pe}=Fa.default,Ja={url:E([f,Q,_]),playing:P,loop:P,controls:P,volume:L,muted:P,playbackRate:L,width:E([f,L]),height:E([f,L]),style:_,progressInterval:L,playsinline:P,pip:P,stopOnUnmount:P,light:E([P,f,_]),playIcon:Pe,previewTabIndex:L,previewAriaLabel:f,fallback:Pe,oEmbedUrl:f,wrapper:E([f,y,A({render:y.isRequired})]),config:A({soundcloud:A({options:_}),youtube:A({playerVars:_,embedOptions:_,onUnstarted:y}),facebook:A({appId:f,version:f,playerId:f,attributes:_}),dailymotion:A({params:_}),vimeo:A({playerOptions:_,title:f}),mux:A({attributes:_,version:f}),file:A({attributes:_,tracks:Q,forceVideo:P,forceAudio:P,forceHLS:P,forceSafariHLS:P,forceDisableHls:P,forceDASH:P,forceFLV:P,hlsOptions:_,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:A({options:_,playerId:f,customControls:Q}),mixcloud:A({options:_}),twitch:A({options:_,playerId:f}),vidyard:A({options:_})}),onReady:y,onStart:y,onPlay:y,onPause:y,onBuffer:y,onBufferEnd:y,onEnded:y,onError:y,onDuration:y,onSeek:y,onPlaybackRateChange:y,onPlaybackQualityChange:y,onProgress:y,onClickPreview:y,onEnablePIP:y,onDisablePIP:y},g=()=>{},Xa={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:g},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:g,onStart:g,onPlay:g,onPause:g,onBuffer:g,onBufferEnd:g,onEnded:g,onError:g,onDuration:g,onSeek:g,onPlaybackRateChange:g,onPlaybackQualityChange:g,onProgress:g,onClickPreview:g,onEnablePIP:g,onDisablePIP:g};var Ka=Object.create,$=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,qa=Object.getOwnPropertyNames,er=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty,ar=(e,t,a)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,rr=(e,t)=>{for(var a in t)$(e,a,{get:t[a],enumerable:!0})},Ke=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qa(t))!tr.call(e,r)&&r!==a&&$(e,r,{get:()=>t[r],enumerable:!(n=Qa(t,r))||n.enumerable});return e},Qe=(e,t,a)=>(a=e!=null?Ka(er(e)):{},Ke(!e||!e.__esModule?$(a,"default",{value:e,enumerable:!0}):a,e)),nr=e=>Ke($({},"__esModule",{value:!0}),e),d=(e,t,a)=>(ar(e,typeof t!="symbol"?t+"":t,a),a),qe={};rr(qe,{default:()=>Y});var ir=nr(qe),ve=Qe(z),sr=Qe(Ae),et=Xe,or=V;const lr=5e3;class Y extends ve.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"isReady",!1),d(this,"isPlaying",!1),d(this,"isLoading",!0),d(this,"loadOnReady",null),d(this,"startOnPlay",!0),d(this,"seekOnPlay",null),d(this,"onDurationCalled",!1),d(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),d(this,"getInternalPlayer",t=>this.player?this.player[t]:null),d(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,a=this.getSecondsLoaded(),n=this.getDuration();if(n){const r={playedSeconds:t,played:t/n};a!==null&&(r.loadedSeconds=a,r.loaded=a/n),(r.playedSeconds!==this.prevPlayed||r.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(r),this.prevPlayed=r.playedSeconds,this.prevLoaded=r.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),d(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:a,volume:n,muted:r}=this.props;t(),!r&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):a&&this.player.play(),this.handleDurationCheck()}),d(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:a,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),a(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),d(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),d(this,"handleEnded",()=>{const{activePlayer:t,loop:a,onEnded:n}=this.props;t.loopOnEnded&&a&&this.seekTo(0),a||(this.isPlaying=!1,n())}),d(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),d(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),d(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(t){if(!this.player)return;const{url:a,playing:n,volume:r,muted:i,playbackRate:l,pip:c,loop:o,activePlayer:I,disableDeferredLoading:h}=this.props;if(!(0,sr.default)(t.url,a)){if(this.isLoading&&!I.forceLoad&&!h&&!(0,or.isMediaStream)(a)){console.warn(`ReactPlayer: the attempt to load ${a} is being deferred until the player has loaded`),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&c&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!c&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==r&&r!==null&&this.player.setVolume(r),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),r!==null&&setTimeout(()=>this.player.setVolume(r)))),t.playbackRate!==l&&this.player.setPlaybackRate&&this.player.setPlaybackRate(l),t.loop!==o&&this.player.setLoop&&this.player.setLoop(o)}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(t,a,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},lr));return}if(a?a==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?ve.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}d(Y,"displayName","Player");d(Y,"propTypes",et.propTypes);d(Y,"defaultProps",et.defaultProps);var cr=Object.create,H=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyNames,pr=Object.getPrototypeOf,mr=Object.prototype.hasOwnProperty,yr=(e,t,a)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,hr=(e,t)=>{for(var a in t)H(e,a,{get:t[a],enumerable:!0})},tt=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of dr(t))!mr.call(e,r)&&r!==a&&H(e,r,{get:()=>t[r],enumerable:!(n=ur(t,r))||n.enumerable});return e},G=(e,t,a)=>(a=e!=null?cr(pr(e)):{},tt(!e||!e.__esModule?H(a,"default",{value:e,enumerable:!0}):a,e)),fr=e=>tt(H({},"__esModule",{value:!0}),e),u=(e,t,a)=>(yr(e,typeof t!="symbol"?t+"":t,a),a),at={};hr(at,{createReactPlayer:()=>Ar});var gr=fr(at),D=G(z),_r=G(Me),q=G(Za),Ce=G(Ae),U=Xe,rt=V,Ir=G(ir);const br=(0,rt.lazy)(()=>w(()=>import("./Preview-CuG18eo6.js").then(e=>e.P),__vite__mapDeps([15,1,2]))),Pr=typeof window<"u"&&window.document&&typeof document<"u",vr=typeof X<"u"&&X.window&&X.window.document,Cr=Object.keys(U.propTypes),wr=Pr||vr?D.Suspense:()=>null,k=[],Ar=(e,t)=>{var a;return a=class extends D.Component{constructor(){super(...arguments),u(this,"state",{showPreview:!!this.props.light}),u(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),u(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),u(this,"showPreview",()=>{this.setState({showPreview:!0})}),u(this,"getDuration",()=>this.player?this.player.getDuration():null),u(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),u(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),u(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),u(this,"seekTo",(n,r,i)=>{if(!this.player)return null;this.player.seekTo(n,r,i)}),u(this,"handleReady",()=>{this.props.onReady(this)}),u(this,"getActivePlayer",(0,q.default)(n=>{for(const r of[...k,...e])if(r.canPlay(n))return r;return t||null})),u(this,"getConfig",(0,q.default)((n,r)=>{const{config:i}=this.props;return _r.default.all([U.defaultProps.config,U.defaultProps.config[r]||{},i,i[r]||{}])})),u(this,"getAttributes",(0,q.default)(n=>(0,rt.omit)(this.props,Cr))),u(this,"renderActivePlayer",n=>{if(!n)return null;const r=this.getActivePlayer(n);if(!r)return null;const i=this.getConfig(n,r.key);return D.default.createElement(Ir.default,{...this.props,key:r.key,ref:this.references.player,config:i,activePlayer:r.lazyPlayer||r,onReady:this.handleReady})})}shouldComponentUpdate(n,r){return!(0,Ce.default)(this.props,n)||!(0,Ce.default)(this.state,r)}componentDidUpdate(n){const{light:r}=this.props;!n.light&&r&&this.setState({showPreview:!0}),n.light&&!r&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:r,playIcon:i,previewTabIndex:l,oEmbedUrl:c,previewAriaLabel:o}=this.props;return D.default.createElement(br,{url:n,light:r,playIcon:i,previewTabIndex:l,previewAriaLabel:o,oEmbedUrl:c,onClick:this.handleClickPreview})}render(){const{url:n,style:r,width:i,height:l,fallback:c,wrapper:o}=this.props,{showPreview:I}=this.state,h=this.getAttributes(n),m=typeof o=="string"?this.references.wrapper:void 0;return D.default.createElement(o,{ref:m,style:{...r,width:i,height:l},...h},D.default.createElement(wr,{fallback:c},I?this.renderPreview(n):this.renderActivePlayer(n)))}},u(a,"displayName","ReactPlayer"),u(a,"propTypes",U.propTypes),u(a,"defaultProps",U.defaultProps),u(a,"addCustomPlayer",n=>{k.push(n)}),u(a,"removeCustomPlayers",()=>{k.length=0}),u(a,"canPlay",n=>{for(const r of[...k,...e])if(r.canPlay(n))return!0;return!1}),u(a,"canEnablePIP",n=>{for(const r of[...k,...e])if(r.canEnablePIP&&r.canEnablePIP(n))return!0;return!1}),a};var Or=Object.create,F=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Tr=Object.getOwnPropertyNames,Sr=Object.getPrototypeOf,Nr=Object.prototype.hasOwnProperty,Lr=(e,t)=>{for(var a in t)F(e,a,{get:t[a],enumerable:!0})},nt=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Tr(t))!Nr.call(e,r)&&r!==a&&F(e,r,{get:()=>t[r],enumerable:!(n=Mr(t,r))||n.enumerable});return e},Dr=(e,t,a)=>(a=e!=null?Or(Sr(e)):{},nt(!e||!e.__esModule?F(a,"default",{value:e,enumerable:!0}):a,e)),xr=e=>nt(F({},"__esModule",{value:!0}),e),it={};Lr(it,{default:()=>kr});var Rr=xr(it),re=Dr(xa),jr=gr;const Er=re.default[re.default.length-1];var kr=(0,jr.createReactPlayer)(re.default,Er);const Ur=It(Rr),Zr="_articleTitle_sbdxi_88",$r={articleTitle:Zr},Hr=({articleTitle:e,css:t=""})=>s.jsx("div",{className:`${$r.articleTitle} ${t}`,children:e}),Gr="data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.29773%200.5L7.11646%201.82187L11.7913%207.0625H0V8.9375H11.7913L7.11646%2014.1781L8.29773%2015.5L15%208L8.29773%200.5Z'%20fill='%230F64E3'/%3e%3c/svg%3e",zr="_readMoreText_1v328_88",Wr="_arrow_1v328_106",we={readMoreText:zr,arrow:Wr},Vr=({className:e,image:t,articleType:a})=>s.jsxs("div",{className:`${e} ${we.readMoreText}`,children:[(a==null?void 0:a.toLowerCase())==="video"?"Watch Now":"Read More",s.jsx("img",{alt:"",src:t||Gr,className:we.arrow})]}),Br="data:image/svg+xml,%3csvg%20id='PremiumContent'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='136'%20height='136'%20viewBox='0%200%20136%20136'%3e%3cdefs%3e%3cclipPath%20id='clip-path'%3e%3crect%20id='Rectangle_20801'%20data-name='Rectangle%2020801'%20width='136'%20height='136'%20transform='translate(-14112%20-19346)'%20fill='%23fff'/%3e%3c/clipPath%3e%3cfilter%20id='Rectangle_13725'%20x='-36.531'%20y='-33.532'%20width='175.685'%20height='175.685'%20filterUnits='userSpaceOnUse'%3e%3cfeOffset%20dy='3'%20input='SourceAlpha'/%3e%3cfeGaussianBlur%20stdDeviation='3'%20result='blur'/%3e%3cfeFlood%20flood-opacity='0.161'/%3e%3cfeComposite%20operator='in'%20in2='blur'/%3e%3cfeComposite%20in='SourceGraphic'/%3e%3c/filter%3e%3cclipPath%20id='clip-path-2'%3e%3crect%20id='Rectangle_20804'%20data-name='Rectangle%2020804'%20width='22.349'%20height='29.211'%20transform='translate(0%200)'%20fill='none'%20stroke='%23fff'%20stroke-width='1'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20id='Mask_Group_36'%20data-name='Mask%20Group%2036'%20transform='translate(14112%2019346)'%20clip-path='url(%23clip-path)'%3e%3cg%20id='Group_5351'%20data-name='Group%205351'%20transform='translate(-15461.114%20-19162.107)%20rotate(-45)'%3e%3cg%20transform='matrix(0.71,%200.71,%20-0.71,%200.71,%201084,%20823.94)'%20filter='url(%23Rectangle_13725)'%3e%3crect%20id='Rectangle_13725-2'%20data-name='Rectangle%2013725'%20width='192'%20height='31'%20transform='translate(-27.53%20108.23)%20rotate(-45)'%20fill='%23fff'/%3e%3c/g%3e%3cg%20id='Group_2993'%20data-name='Group%202993'%20transform='translate(1059%20871)'%3e%3cg%20id='Group_2993-2'%20data-name='Group%202993'%3e%3cg%20id='Group_2989'%20data-name='Group%202989'%3e%3cg%20id='Group_2994'%20data-name='Group%202994'%3e%3cg%20id='Group_2987'%20data-name='Group%202987'%3e%3cg%20id='Group_2986'%20data-name='Group%202986'%3e%3cg%20id='Group_5353'%20data-name='Group%205353'%3e%3cpath%20id='Path_2809'%20data-name='Path%202809'%20d='M50,25A25,25,0,1,1,25,0,25,25,0,0,1,50,25'%20fill='%231157ee'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='Group_5354'%20data-name='Group%205354'%20transform='translate(13.827%2010.393)'%3e%3cg%20id='Group_5354-2'%20data-name='Group%205354'%20clip-path='url(%23clip-path-2)'%3e%3cpath%20id='Rectangle_20803'%20data-name='Rectangle%2020803'%20d='M2.46,0H18.889a2.46,2.46,0,0,1,2.46,2.46V13.551a2.461,2.461,0,0,1-2.461,2.461H2.46A2.46,2.46,0,0,1,0,13.552V2.46A2.46,2.46,0,0,1,2.46,0Z'%20transform='translate(0.5%2012.699)'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1'/%3e%3cpath%20id='Path_20975'%20data-name='Path%2020975'%20d='M4.312,7.362a6.862,6.862,0,1,1,13.724,0V12.7'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1'/%3e%3cpath%20id='Path_20976'%20data-name='Path%2020976'%20d='M13.855,18.676a2.68,2.68,0,1,0-4.23,2.18l-.766,4.519h4.632l-.767-4.518A2.672,2.672,0,0,0,13.855,18.676Z'%20fill='none'%20stroke='%23fff'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Yr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMzc4IiBoZWlnaHQ9IjUzIiB2aWV3Qm94PSIwIDAgMzc4IDUzIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9IlJlY3RhbmdsZV8xMzcyNSIgeD0iMCIgeT0iNCIgd2lkdGg9IjM3OCIgaGVpZ2h0PSI0OSIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPGZlT2Zmc2V0IGR5PSIzIiBpbnB1dD0iU291cmNlQWxwaGEiLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMyIgcmVzdWx0PSJibHVyIi8+CiAgICAgIDxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAuMTYxIi8+CiAgICAgIDxmZUNvbXBvc2l0ZSBvcGVyYXRvcj0iaW4iIGluMj0iYmx1ciIvPgogICAgICA8ZmVDb21wb3NpdGUgaW49IlNvdXJjZUdyYXBoaWMiLz4KICAgIDwvZmlsdGVyPgogICAgPGNsaXBQYXRoIGlkPSJjbGlwLXBhdGgiPgogICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlXzEzNzIzIiBkYXRhLW5hbWU9IlJlY3RhbmdsZSAxMzcyMyIgd2lkdGg9IjUwIiBoZWlnaHQ9IjUwIiBmaWxsPSIjMTE1N2VlIi8+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KICA8ZyBpZD0iUHJlbWl1bUNvbnRlbnRfTG9ja2VkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5KSI+CiAgICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCAtOSwgMCkiIGZpbHRlcj0idXJsKCNSZWN0YW5nbGVfMTM3MjUpIj4KICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZV8xMzcyNS0yIiBkYXRhLW5hbWU9IlJlY3RhbmdsZSAxMzcyNSIgd2lkdGg9IjM2MCIgaGVpZ2h0PSIzMSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOSAxMCkiIGZpbGw9IiNmZmYiLz4KICAgIDwvZz4KICAgIDxnIGlkPSJHcm91cF8yOTkzIiBkYXRhLW5hbWU9Ikdyb3VwIDI5OTMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1NSkiPgogICAgICA8ZyBpZD0iR3JvdXBfMjk5My0yIiBkYXRhLW5hbWU9Ikdyb3VwIDI5OTMiPgogICAgICAgIDxnIGlkPSJHcm91cF8yOTg5IiBkYXRhLW5hbWU9Ikdyb3VwIDI5ODkiPgogICAgICAgICAgPGcgaWQ9Ikdyb3VwXzI5OTQiIGRhdGEtbmFtZT0iR3JvdXAgMjk5NCI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cF8yOTg3IiBkYXRhLW5hbWU9Ikdyb3VwIDI5ODciPgogICAgICAgICAgICAgIDxnIGlkPSJHcm91cF8yOTg2IiBkYXRhLW5hbWU9Ikdyb3VwIDI5ODYiPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwXzI5ODUiIGRhdGEtbmFtZT0iR3JvdXAgMjk4NSIgY2xpcC1wYXRoPSJ1cmwoI2NsaXAtcGF0aCkiPgogICAgICAgICAgICAgICAgICA8cGF0aCBpZD0iUGF0aF8yODA5IiBkYXRhLW5hbWU9IlBhdGggMjgwOSIgZD0iTTUwLDI1QTI1LDI1LDAsMSwxLDI1LDAsMjUsMjUsMCwwLDEsNTAsMjUiIGZpbGw9IiMxMTU3ZWUiLz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPHBhdGggaWQ9IlJlY3RhbmdsZV8xMzcyNCIgZGF0YS1uYW1lPSJSZWN0YW5nbGUgMTM3MjQiIGQ9Ik0yLjQ2LDBIMTguODg4YTIuNDYxLDIuNDYxLDAsMCwxLDIuNDYxLDIuNDYxdjExLjA5YTIuNDYxLDIuNDYxLDAsMCwxLTIuNDYxLDIuNDYxSDIuNDZBMi40NiwyLjQ2LDAsMCwxLDAsMTMuNTUyVjIuNDZBMi40NiwyLjQ2LDAsMCwxLDIuNDYsMFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0LjMyNSAyMy4wOTQpIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIi8+CiAgICAgICAgICAgIDxwYXRoIGlkPSJQYXRoXzI4MTAiIGRhdGEtbmFtZT0iUGF0aCAyODEwIiBkPSJNMzEuODYyLDIzLjA5NEgxOC4xMzhWMTcuNzU3YTYuODYyLDYuODYyLDAsMSwxLDEzLjcyNCwwWiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMSIvPgogICAgICAgICAgICA8cGF0aCBpZD0iUGF0aF8yODExIiBkYXRhLW5hbWU9IlBhdGggMjgxMSIgZD0iTTI3LjY4LDI5LjA3YTIuNjgsMi42OCwwLDEsMC00LjIzLDIuMThsLS43NjYsNC41MTloNC42MzJsLS43NjctNC41MThBMi42NzIsMi42NzIsMCwwLDAsMjcuNjgsMjkuMDdaIiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmYiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxIi8+CiAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgICA8dGV4dCBpZD0iUHJlbWl1bSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTQ3IDMxKSIgZmlsbD0iIzI0NjNlZSIgZm9udC1zaXplPSIxOCIgZm9udC1mYW1pbHk9IlJvYm90by1NZWRpdW0sIFJvYm90byIgZm9udC13ZWlnaHQ9IjUwMCI+PHRzcGFuIHg9Ii03MyIgeT0iMCI+UHJlbWl1bTwvdHNwYW4+PC90ZXh0PgogICAgPHRleHQgaWQ9IkNvbnRlbnQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIxMyAzMSkiIGZpbGw9IiMyNDYzZWUiIGZvbnQtc2l6ZT0iMTgiIGZvbnQtZmFtaWx5PSJSb2JvdG8tTWVkaXVtLCBSb2JvdG8iIGZvbnQtd2VpZ2h0PSI1MDAiPjx0c3BhbiB4PSIwIiB5PSIwIj5Db250ZW50PC90c3Bhbj48L3RleHQ+CiAgPC9nPgo8L3N2Zz4K",Fr="_articleCard_b3bmv_88",Jr="_articleImage_b3bmv_103",Xr="_articleTitle_b3bmv_110",Kr="_articleContent_b3bmv_118",Qr="_articleCardPremiumOverlay_b3bmv_122",qr="_articleCardPremiumOverlayLocked_b3bmv_130",en="_content_b3bmv_139",tn="_description_b3bmv_147",an="_premiumBannerImageLocked_b3bmv_155",rn="_premiumBannerImage_b3bmv_155",nn="_readMore_b3bmv_165",sn="_tagsContainer_b3bmv_169",C={articleCard:Fr,articleImage:Jr,articleTitle:Xr,articleContent:Kr,articleCardPremiumOverlay:Qr,articleCardPremiumOverlayLocked:qr,content:en,description:tn,premiumBannerImageLocked:an,premiumBannerImage:rn,readMore:nn,tagsContainer:sn},on=e=>{var de,pe;const{className:t="",description:a,hasPremiumAccess:n=!1,isPremium:r=!1,mainImage:i={},onClick:l=()=>{},onPremiumCardClick:c,slug:o={},style:I={},tags:h,title:m,articleVideo:O,articleThumbnail:p={},articleType:S}=e,ot=bt(),lt=e["data-gtm"]||"",ct=((de=i==null?void 0:i.asset)==null?void 0:de.url)||"",ue=((pe=p.asset)==null?void 0:pe.url)||"",J=(i==null?void 0:i.alt)||"",ut=o==null?void 0:o.current;if(!m)return null;const dt=()=>{if(r&&!n)return null;ot.push(`/learning-center/${ut}`)},pt=()=>{var T,R;if((T=p==null?void 0:p.asset)!=null&&T.url)return(R=p==null?void 0:p.asset)==null?void 0:R.url},mt=()=>{var T;return s.jsx(j,{className:C.articleImage,image:(T=p==null?void 0:p.asset)==null?void 0:T.url,alt:p.alt})},yt=()=>{var T,R,me,ye,he,fe;return(T=p==null?void 0:p.asset)!=null&&T.url?mt():(he=(ye=(me=(R=O==null?void 0:O.asset)==null?void 0:R.url)==null?void 0:me.toString())==null?void 0:ye.trim())!=null&&he.length?s.jsx("div",{className:C.videoPlayerContainer,children:s.jsx(Ur,{url:((fe=O==null?void 0:O.asset)==null?void 0:fe.url)||"",playing:!1,playsinline:!0,volume:1,light:pt(),width:350,height:198})}):null},ht=()=>s.jsx(j,{className:C.articleImage,image:ct,alt:J}),ft=()=>s.jsx(j,{className:C.articleImage,image:ue,alt:p.alt});return s.jsxs("div",{onClick:dt,className:`${C.articleCard} ${t}`,"data-gtm":lt,style:I,children:[ue?ft():(S==null?void 0:S.toLowerCase())==="video"?yt():ht(),s.jsxs("div",{className:C.content,children:[s.jsx(Hr,{css:C.articleTitle,articleTitle:m}),s.jsx(Pt,{className:C.description,text:a}),h?s.jsx(Nt,{className:C.tagsContainer,items:h,onClick:l}):null,s.jsx(Vr,{className:C.readMore,articleType:S})]}),r&&!n&&s.jsx("div",{className:C.articleCardPremiumOverlayLocked,onClick:c,children:s.jsx(j,{className:C.premiumBannerImageLocked,image:Yr,alt:J})}),r&&n&&s.jsx("div",{className:C.articleCardPremiumOverlay,onClick:c,children:s.jsx(j,{className:C.premiumBannerImage,image:Br,alt:J})})]})},ln="_articleCards_1t2ky_88",cn="_articleCard_1t2ky_88",st={articleCards:ln,articleCard:cn},un=({className:e="",hasPremiumAccess:t,items:a,onClick:n=()=>{},onPremiumCardClick:r})=>a.map(({description:i,tags:l,title:c,mainImage:o,slug:I,premiumContent:h,articleVideo:m,articleType:O,articleThumbnail:p},S)=>s.jsx(on,{className:`${st.articleCard} ${e}`,"data-gtm":"ar-article-item",description:i,hasPremiumAccess:t,isPremium:h,mainImage:o,onClick:n,onPremiumCardClick:()=>r(I),slug:I,style:{order:S+1},tags:l,title:c,articleVideo:m,articleType:O,articleThumbnail:p},S)),vn=e=>{const{cardClassName:t="",children:a,className:n="",hasPremiumAccess:r,items:i=[],onClick:l,onPremiumCardClick:c,ref:o}=e,I=e["data-gtm"]||"";return s.jsxs("div",{className:`${st.articleCards} ${n}`,"data-gtm":I,ref:o,children:[un({className:t,hasPremiumAccess:r,items:i,onClick:l,onPremiumCardClick:c}),a]})},dn="/assets/image-D4LkzjFU.svg",pn="_button_1v403_88",mn="_buttonContainer_1v403_101",yn="_content_1v403_105",hn="_contentClassName_1v403_122",fn="_closeIconClassName_1v403_129",gn="_headerClassName_1v403_139",_n="_headerTextClassName_1v403_145",In="_footerClassName_1v403_149",M={button:pn,buttonContainer:mn,content:yn,contentClassName:hn,closeIconClassName:fn,headerClassName:gn,headerTextClassName:_n,footerClassName:In},Cn=({isOpen:e,onClose:t,onSubmitSuccessfully:a})=>{const n=vt(m=>m.guidedDetails.isGuidedProcess)||!0,[r,i]=z.useState(!1),{formState:{errors:l},handleSubmit:c,register:o,setError:I}=Ct(),h=async m=>{var p;i(!0);const O=await St(m==null?void 0:m.emailAddress);((p=O==null?void 0:O.email)==null?void 0:p.status)==="invalid"?I("emailAddress",{type:"pattern"}):a(m==null?void 0:m.emailAddress),i(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(wt,{}),s.jsx("div",{className:M.modalWithHeaderFooter,children:s.jsx(At,{className:M.modal,isOpen:e,children:s.jsxs(Ot,{contentClassName:M.contentClassName,closeIconClassName:M.closeIconClassName,footerClassName:M.footerClassName,headerIcon:dn,headerTitle:"Premium Content",headerText:"Get access to premium articles, videos, and content that will help you make your Medicare decision.",headerTextClassName:M.headerTextClassName,headerClassName:M.headerClassName,onClose:()=>t(),children:[s.jsx("div",{className:M.content,"data-testid":"premium-content-modal",children:s.jsxs("form",{onSubmit:c(h),children:[s.jsx(Mt,{error:l==null?void 0:l.emailAddress,id:"emailAddress",labelText:"Email Address",placeholder:"name@company.com",register:o,required:!0}),s.jsx("div",{className:M.buttonContainer,children:s.jsx(Tt,{className:M.button,disabled:r,label:"View Content",type:"submit"})})]})}),n&&!1,s.jsx("br",{})]})})})]})};export{vn as A,Cn as P,Ur as R,Aa as p,V as u}; //# sourceMappingURL=index-W-2gvPQ_.js.map