1"use strict";(self.webpackChunkep_www_client=self.webpackChunkep_www_client||[]).push([[5508],{5508:(k,M,a)=>{a.r(M),a.d(M,{ContentPlayerPageModule:()=>Fe});var d=a(6362),u=a(4860),e=a(3184);let _=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez]]}),n})();var x=a(3676);let m=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,x.a]]}),n})();var w=a(5983),r=a(671),s=a(10),c=a(379),g=a(8249),C=a(2625),T=a(4140),I=a(9910),v=a(587),P=a(6317),h=a(6067),y=a(8951),f=a(635),V=a(8977),U=a(116),S=a(2673),N=a(6562),Y=a(4874),z=a(8653),K=a(9295),W=a(318),X=a(251),B=a(4244),$=a(4476),G=a(8784),J=a(9957);function q(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"input",9),e.NdJ("change",function(i){return e.CHM(t),e.oxw().checkboxSelected(i)}),e.qZA(),e.TgZ(2,"label",10),e._uU(3,"Low (720p)"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("checked","hd"===t.selectedOption)}}function ee(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"input",11),e.NdJ("change",function(i){return e.CHM(t),e.oxw().checkboxSelected(i)}),e.qZA(),e.TgZ(2,"label",12),e._uU(3,"Standard (1080p)"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("checked","fhd"===t.selectedOption)}}function te(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",8),e.TgZ(1,"input",13),e.NdJ("change",function(i){return e.CHM(t),e.oxw().checkboxSelected(i)}),e.qZA(),e.TgZ(2,"label",14),e._uU(3,"High (4k)"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("checked","uhd"===t.selectedOption)}}let ne=(()=>{class n{constructor(t,o,i){this.http=t,this.dialogRef=o,this.media=i,this.selectedOption=""}ngOnInit(){this.selectedOption=this.media.fhdLink?"fhd":this.media.hdLink?"hd":"uhd"}checkboxSelected(t){this.selectedOption=t.target.value}download(){switch(this.selectedOption){case"hd":this.downloadFile(new URL(this.media.hdLink));break;case"fhd":this.downloadFile(new URL(this.media.fhdLink));break;case"uhd":this.downloadFile(new URL(this.media.uhdLink))}this.close()}downloadFile(t){const o=document.createElement("a");t.searchParams.append("download","true"),o.href=t.toString(),o.download=t.pathname.split("/").pop()||"download",o.click()}close(){this.dialogRef.close()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(G.eN),e.Y36(L),e.Y36(j))},n.\u0275cmp=e.Xpm({type:n,selectors:[["download"]],decls:14,vars:3,consts:[[1,"download"],[1,"title"],["class","checkbox-container",4,"ngIf"],[1,"button-container"],["text","Download","icon","arrow","iconRotation","90","theme","tertiary","customButton","true","marginTop","0",3,"click"],["text","Cancel","theme","tertiary","customButton","true","marginTop","0","animation","glow","noBorder","true",3,"click"],[1,"legal"],["href","https://creativecommons.org/licenses/by-nc/4.0/deed.en"],[1,"checkbox-container"],["type","radio","name","download","id","hd","value","hd",1,"checkbox",3,"checked","change"],["for","hd"],["type","radio","name","download","id","fhd","value","fhd",1,"checkbox",3,"checked","change"],["for","fhd"],["type","radio","name","download","id","uhd","value","uhd",1,"checkbox",3,"checked","change"],["for","uhd"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"h5",1),e._uU(2,"DOWNLOAD THIS VIDEO"),e.qZA(),e.YNc(3,q,4,1,"div",2),e.YNc(4,ee,4,1,"div",2),e.YNc(5,te,4,1,"div",2),e.TgZ(6,"div",3),e.TgZ(7,"spx-button",4),e.NdJ("click",function(){return o.download()}),e.qZA(),e.TgZ(8,"spx-button",5),e.NdJ("click",function(){return o.close()}),e.qZA(),e.qZA(),e.TgZ(9,"p",6),e._uU(10," SpaceX photos and videos are subject to copyright in the United States and most jurisdictions around the world. You may use SpaceX photos and videos for educational or informational purposes, including but not limited to photo and video collections, textbooks, public exhibits, documentaries, news media, and Internet Web pages, subject to the "),e.TgZ(11,"a",7),e._uU(12,"Creative
1Commons Attribution - NonCommercial - International license terms"),e.qZA(),e._uU(13,". SpaceX content used in a non-commercial, factual manner that does not imply endorsement may be used without needing explicit permission. SpaceX must be acknowledged as the source of the material. "),e.qZA(),e.qZA()),2&t&&(e.xp6(3),e.Q6J("ngIf",o.media.hdLink),e.xp6(1),e.Q6J("ngIf",o.media.fhdLink),e.xp6(1),e.Q6J("ngIf",o.media.uhdLink))},directives:[d.O5,J.U],styles:[".download[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:443px;border-radius:8px;padding:40px;gap:40px;background:#232323}.title[_ngcontent-%COMP%]{text-transform:uppercase;font-family:D-DIN-Bold;font-size:1.5rem;line-height:120%;letter-spacing:.02em}.legal[_ngcontent-%COMP%]{font-family:D-DIN;font-size:.625rem;line-height:130%;letter-spacing:.08em;color:#f0f0facc}.legal[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#f0f0facc}.checkbox-container[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;position:relative;left:3%}.checkbox-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:16px}.button-container[_ngcontent-%COMP%]{display:flex;gap:20px}.checkbox[_ngcontent-%COMP%]{appearance:none;width:15px;height:15px;border:3px solid #232323;outline:2px solid rgba(250,250,250,.7);border-radius:50%;background-color:transparent;transition:.12s background-color ease-in-out}.checkbox[_ngcontent-%COMP%]:checked{background-color:#fff;outline:2px solid white}"],changeDetection:0}),n})();const j=new e.OlP("DOWNLOAD_MODAL_DATA");class L{constructor(l){this.overlayRef=l}close(){this.overlayRef.dispose()}}let oe=(()=>{class n{constructor(t,o){this.injector=t,this.overlay=o}open(t){const o=this.overlay.create(new B.X_({hasBackdrop:!0,panelClass:"overlay",scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically()})),i=new L(o),p=this.createInjector(i,t),O=new $.C5(ne,null,p);return o.attach(O),i}createInjector(t,o){const i=new WeakMap;return i.set(L,t),i.set(j,o),new $.nK(this.injector,i)}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(e.zs3),e.LFG(B.aV))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var ie=a(1423),ae=a(7409),le=a(8100);const re=["posterImage"],ce=["hostedVideo"];function de(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",4),e.ALo(1,"async"),e.TgZ(2,"picture",5,6),e._UZ(4,"img",7),e.TgZ(5,"play-svg",8),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).showVideo()}),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.Udp("height",100,"%"),e.Q6J("hidden",e.lcZ(1,11,t.shouldShowVideo$)),e.xp6(2),e.Udp("height",100,"%"),e.xp6(2),e.Udp("height",100,"%")("object-fit","contain"),e.Q6J("src",t.videoTile.imageUrl,e.LSH)("alt",t.videoTile.imageAltText)}}function se(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div"),e.YNc(2,de,6,13,"div",1),e.TgZ(3,"video",2,3),e.NdJ("contextmenu",function(i){return e.CHM(t),e.oxw().openContextMenu(i)})("ended",function(){return e.CHM(t),e.oxw().emitVideoEnd()}),e.ALo(5,"async"),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.Udp("height",100,"%"),e.xp6(1),e.Udp("height",100,"%"),e.xp6(1),e.Q6J("ngIf",t.videoTile.imageUrl),e.xp6(1),e.Udp("height",100,"%")("width",100,"%"),e.Q6J("hidden",!e.lcZ(5,10,t.shouldShowVideo$))}}let pe=(()=>{class n{constructor(t,o){this._changeDetectorRef=t,this._contextMenuService=o,this.videoEnded=new e.vpe,this._shouldShowVideo$=new P.X(!1),this.shouldShowVideo$=this._shouldShowVideo$.asObservable()}set videoTile(t){var o,i,p,O,Z;const A=!1===(null===(o=this.hostedVideo)||void 0===o?void 0:o.nativeElement.paused)||!0===(null===(i=this.hostedVideo)||void 0===i?void 0:i.nativeElement.ended);let D=0;t.videoId===(null===(p=this._videoTile)||void 0===p?void 0:p.videoId)&&t.videoUrl!==(null===(O=this._videoTile)||void 0===O?void 0:O.videoUrl)&&(D=null===(Z=this.hostedVideo)||void 0===Z?void 0:Z.nativeElement.currentTime),this._videoTile=t,this._changeDetectorRef.detectChanges(),this.loadVideo(),this.hostedVideo&&D&&(this.hostedVideo.nativeElement.currentTime=D),A&&this.showVideo(),!A&&!D&&this.hideVideo()}get videoTile(){return this._videoTile}showVideo(){var t,o;this._shouldShowVideo$.next(!0),null===(t=this.hostedVideo)||void 0===t||t.nativeElement.setAttribute("controls",""),null===(o=this.hostedVideo)||void 0===o||o.nativeElement.play().catch(i=>{this.hideVideo()}),this._changeDetectorRef.detectChanges()}hideVideo(){var t;this._shouldShowVideo$.next(!1),null===(t=this.hostedVideo)||void 0===t||t.nativeElement.pause()}emitVideoEnd(){this.videoEnded.emit(),this._changeDetectorRef.detectChanges()}get containedHeightValue(){return this.height}jumpToTime(t){this.hostedVideo.nativeElement.currentTime=t,0==this._shouldShowVideo$.value&&this.showVideo()}openContextMenu(t){var o;t.preventDefault(),this._contextMenuService.open(t,null===(o=this.hostedVideo)||void 0===o?void 0:o.nativeElement)}loadVideo(){var t;this.hostedVideo.nativeElement.src=(null===(t=this.hostedVideo)||void 0===t?void 0:t.nativeElement.canPlayType("application/vnd.apple.mpegurl"))?this._videoTile.videoUrl:this._videoTile.fallbackUrl}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(e.sBO),e.Y36(ae.Lk))},n.\u0275cmp=e.Xpm({type:n,selectors:[["content-hub-video-tile"]],viewQuery:function(t,o){if(1&t&&(e.Gf(re,5),e.Gf(ce,5)),2&t){let i;e.iGM(i=e.CRH())&&(o.posterImage=i.first),e.iGM(i=e.CRH())&&(o.hostedVideo=i.first)}},inputs:{videoTile:"videoTile",height:"height"},outputs:{videoEnded:"videoEnded"},decls:1,vars:1,consts:[[3,"height",4,"ngIf"],["role","button",3,"height","hidden",4,"ngIf"],["controls","","playsinline","","controlslist","nodownload",3,"hidden","contextmenu","ended"],["hostedVideo",""],["role","button",3,"hidden"],[1,"responsive-image"],["posterImage",""],["loading","lazy",3,"src","alt"],[1,"play-arrow",3,"click"]],template:function(t,o){1&t&&e.YNc(0,se,6,12,"div",0),2&t&&e.Q6J("ngIf",o.videoTile)},directives:[d.O5,le.z],pipes:[d.Ov],styles:[".responsive-image[_ngcontent-%COMP%], .responsive-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;position:relative;width:100%;height:auto}.responsive-image.hide[_ngcontent-%COMP%]{display:none}.play-arrow[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:100px;height:100px;transform:translate(-50%,-50%);transition:background-color .5s ease-in-out,opacity .5s ease-in-out;z-index:20;cursor:pointer;filter:brightness(.9);border-radius:4px}.play-arrow[_ngcontent-%COMP%]:hover{background-color:#00000080;filter:none}"],changeDetection:0}),n})();var ge=a(734),ue=a(6304),_e=a(8340);let he=(()=>{class n{constructor(){}transform(t,o="true"){let i="true"===o;const p=Math.pow(10,0),O=86400*p,Z=3600*p,A=60*p,D=p;let b=Math.round(t*p);const E=Math.trunc(b/O);b-=E*O;const Q=Math.trunc(b/Z);
1b-=Q*Z;let F=Math.trunc(b/A);b-=F*A,!i&&b>=30&&(F+=1);let H=`${0==E?"":E}${0==E?"":"."}${Q.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}`;if(i){let R=Math.trunc(b/D);b-=R*D,b>=.5&&(R+=1),H+=`:${R.toString().padStart(2,"0")}`}return H}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=e.Yjl({name:"timespan",type:n,pure:!0}),n})();var me=a(416);const ve=["videoTile"];function ye(n,l){1&n&&(e.TgZ(0,"div",7,8),e.TgZ(2,"span"),e._uU(3,"Playlist Not Found"),e.qZA(),e.qZA())}function Ce(n,l){1&n&&(e.TgZ(0,"div",22,23),e.TgZ(2,"span"),e._uU(3,"Video Not Found"),e.qZA(),e.qZA())}const fe=function(n,l,t,o,i){return{imageAltText:n,imageUrl:l,videoId:t,videoUrl:o,fallbackUrl:i}};function Pe(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"content-hub-video-tile",24,25),e.NdJ("videoEnded",function(){return e.CHM(t),e.oxw(4).countdownToNextVideo()}),e.qZA()}if(2&n){const t=e.oxw(3).ngIf,o=e.oxw();let i;e.Q6J("videoTile",e.qbA(1,fe,null==t.currentVideo.posterImage?null:t.currentVideo.posterImage.alternateText,null==t.currentVideo.poster?null:t.currentVideo.poster.url,null!==(i=t.currentVideo.link)&&void 0!==i?i:"",o.getVideoUrl(t.timeToStart),o.getFallbackVideoUrl(t.timeToStart)))}}function Me(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e.TgZ(1,"div",27),e.TgZ(2,"p",28),e._uU(3,"Up Next:"),e.qZA(),e._UZ(4,"media-tile",29),e.TgZ(5,"p",30),e._uU(6),e.qZA(),e.TgZ(7,"div",31),e.TgZ(8,"spx-button",32),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).playNextVideo()}),e.qZA(),e.TgZ(9,"spx-button",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).cancelNextVideoCountdown()}),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(4);e.xp6(4),e.Q6J("media",t.nextVideo),e.xp6(2),e.Oqu(t.nextVideo.title)}}function xe(n,l){if(1&n&&(e.TgZ(0,"div",14,15),e.YNc(2,Ce,4,0,"div",16),e.YNc(3,Pe,2,7,"content-hub-video-tile",17),e.TgZ(4,"div",18),e.YNc(5,Me,10,2,"div",19),e.TgZ(6,"div",20),e._UZ(7,"div",21),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf,o=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.currentVideo),e.xp6(1),e.Q6J("ngIf",t.currentVideo),e.xp6(1),e.ekj("visible",o.nextVideo),e.xp6(1),e.Q6J("ngIf",o.nextVideo)}}function Oe(n,l){if(1&n&&(e.TgZ(0,"span",49),e._uU(1),e.ALo(2,"timespan"),e.qZA()),2&n){const t=e.oxw().$implicit,o=e.oxw(4);e.xp6(1),e.hij(" ",e.lcZ(2,1,o.durationMap[t.id])," ")}}function Te(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",43,44),e.TgZ(2,"div",45),e.TgZ(3,"video",46),e.NdJ("loadedmetadata",function(i){const O=e.CHM(t).$implicit;return e.oxw(4).storeVideoDuration(O,null==i.srcElement?null:i.srcElement.duration,i.srcElement)}),e.qZA(),e.TgZ(4,"div",47),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.YNc(7,Oe,3,3,"span",48),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=l.$implicit,o=e.oxw(3).ngIf,i=e.oxw();e.ekj("current",t.id===(null==o.currentVideo?null:o.currentVideo.id)),e.hYB("routerLink","/content/",o.playlist.link,"/",t.link,""),e.xp6(3),e.Q6J("src",t.hdLink,e.LSH)("poster",t.poster.url,e.LSH),e.xp6(3),e.Oqu(t.title),e.xp6(1),e.Q6J("ngIf",i.durationMap[t.id])}}function be(n,l){if(1&n&&(e.TgZ(0,"div",34,35),e.TgZ(2,"div",36,37),e.ynx(4),e.TgZ(5,"h2"),e._uU(6),e.qZA(),e.TgZ(7,"p",38),e.TgZ(8,"span"),e._uU(9,"TOTAL"),e.qZA(),e.TgZ(10,"span",39),e._uU(11),e.qZA(),e.qZA(),e.BQk(),e.qZA(),e.TgZ(12,"div",40,41),e.YNc(14,Te,8,8,"div",42),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(6),e.Oqu(t.playlist.title),e.xp6(5),e.Oqu(null==t.playlist.media?null:t.playlist.media.length),e.xp6(3),e.Q6J("ngForOf",t.playlist.media)}}function we(n,l){if(1&n&&e._UZ(0,"filter",64),2&n){const t=e.oxw(3).ngIf,o=e.oxw();e.Q6J("items",t.currentVideo.chapters)("control",o.selectedChapter)("isMultiSelect",!1)("setWidth",!1)("labelFn",o.getChapterTitle)}}function Ze(n,l){if(1&n&&(e.TgZ(0,"div",65),e._uU(1),e.ALo(2,"date"),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Oqu(e.xi3(2,1,t.currentVideo.date,"longDate"))}}function Ve(n,l){if(1&n&&(e._UZ(0,"div",66),e.ALo(1,"safeHtml")),2&n){const t=e.oxw(3).ngIf;e.Q6J("innerHtml",e.lcZ(1,1,t.currentVideo.description),e.oJD)}}function Ae(n,l){if(1&n){const t=e.EpF();e.TgZ(0,"div",50,51),e.TgZ(2,"div",52,53),e.TgZ(4,"h2"),e._uU(5),e.qZA(),e.TgZ(6,"div",54,55),e._UZ(8,"filter",56),e.YNc(9,we,1,5,"filter",57
1),e.TgZ(10,"spx-button",58),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).ngIf;return e.oxw().download(i.currentVideo)}),e.qZA(),e._UZ(11,"x-share",59),e.qZA(),e.qZA(),e.TgZ(12,"div",60,61),e.YNc(14,Ze,3,4,"div",62),e.YNc(15,Ve,2,3,"div",63),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2).ngIf,o=e.oxw();let i;e.xp6(5),e.Oqu(t.currentVideo.title),e.xp6(3),e.Q6J("items",t.availableQualities)("control",o.selectedQuality)("isMultiSelect",!1)("setWidth",!1)("labelFn",o.getQualityTitle),e.xp6(1),e.Q6J("ngIf",t.currentVideo.chapters.length),e.xp6(2),e.Q6J("text",null!==(i=t.currentVideo.shareText)&&void 0!==i?i:t.currentVideo.title)("url",o.xShareUrl),e.xp6(3),e.Q6J("ngIf",null==t.currentVideo?null:t.currentVideo.date),e.xp6(1),e.Q6J("ngIf",null==t.currentVideo?null:t.currentVideo.description)}}function De(n,l){if(1&n&&(e.TgZ(0,"div",9,10),e.YNc(2,xe,8,5,"div",11),e.YNc(3,be,15,3,"div",12),e.YNc(4,Ae,16,11,"div",13),e.qZA()),2&n){const t=e.oxw().ngIf;e.xp6(2),e.Q6J("ngIf",t.playlist),e.xp6(1),e.Q6J("ngIf",t.playlist),e.xp6(1),e.Q6J("ngIf",t.currentVideo)}}function Ie(n,l){if(1&n&&(e.TgZ(0,"div",1),e.TgZ(1,"div",2),e._UZ(2,"spx-button",3),e.qZA(),e.YNc(3,ye,4,0,"div",4),e.YNc(4,De,5,3,"div",5),e.TgZ(5,"div",6),e._UZ(6,"email-signup"),e.qZA(),e.qZA()),2&n){const t=l.ngIf,o=e.oxw();e.xp6(3),e.Q6J("ngIf",!t.playlist&&!o.loading),e.xp6(1),e.Q6J("ngIf",t.playlist)}}const Ue=function(n,l,t,o){return{playlist:n,currentVideo:l,timeToStart:t,availableQualities:o}},ke=[{path:"**",component:(()=>{class n{constructor(t,o,i,p,O,Z,A){this._route=t,this._router=o,this._changeDetectorRef=i,this._breakpointObserver=p,this._titleService=O,this._cmsContentService=Z,this._downloadModalService=A,this.secondsBetweenVideos=5,this.autoplay=!1,this.durationMap={},this.nextVideo=void 0,this.secondsUntilNextVideo=this.secondsBetweenVideos,this.selectedChapter=new v.NI(null),this.selectedQuality=new v.NI(null),this._playlist$=new P.X(void 0),this.playlist$=this._playlist$.asObservable(),this._currentVideo$=new P.X(void 0),this.currentVideo$=this._currentVideo$.asObservable(),this._availableQualities$=new P.X([]),this.availableQualities$=this._availableQualities$.asObservable(),this._destroy$=new h.t(1),this._titleService.setTitle("SpaceX - Video Player")}set videoTile(t){this._videoTile=t,t&&this._currentVideo$.value&&this._videoTile.showVideo()}get videoTile(){return this._videoTile}ngOnInit(){this.loading=!0,this._breakpointObserver.observe([I.u3.Small,I.u3.XSmall]).pipe((0,y.R)(this._destroy$)).subscribe({next:t=>{this.isMobile=t.matches}}),this._route.paramMap.pipe((0,f.U)(t=>t.get("playlistKey")),(0,V.x)(),(0,U.h)(t=>null!=t),(0,S.w)(t=>this._cmsContentService.getPlaylist(t)),(0,f.U)(t=>{if(null==t?void 0:t.media)return t.media=t.media.filter(o=>o.link),t;this.loading=!1}),(0,y.R)(this._destroy$)).subscribe(t=>this._playlist$.next(t)),this.videoKey$=this._route.paramMap.pipe((0,f.U)(t=>t.get("videoKey")),(0,V.x)(),(0,y.R)(this._destroy$)),(0,N.a)({playlist:this.playlist$,videoKey:this.videoKey$}).pipe((0,f.U)(t=>{var o;if(!(null==(null===(o=t.playlist)||void 0===o?void 0:o.media)||t.playlist.media.length<=0))return t.videoKey?t.playlist.media.find(i=>i.link===t.videoKey):t.playlist.media[0]}),(0,V.x)(),(0,U.h)(t=>null!=t),(0,y.R)(this._destroy$)).subscribe(t=>{this._currentVideo$.next(t),this._titleService.setTitle(`SpaceX - ${t.title}`),this.xShareUrl=`spacex.com%2Fcontent%2F${this._playlist$.value.link}%2F${t.link}`,this._availableQualities$.next(this._getAvailableResolutions(t)),this.selectedQuality.setValue(this._availableQualities$.value[0]),this.isMobile||setTimeout(()=>{var o;return null===(o=document.getElementsByClassName("current")[0])||void 0===o?void 0:o.scrollIntoView({behavior:"smooth",block:"nearest"})}),this.loading=!1,this._changeDetectorRef.detectChanges()}),this.timeToStart$=this._route.queryParamMap.pipe((0,f.U)(t=>Number(t.get("t"))),(0,U.h)(t=>!isNaN(Number(t))),(0,Y.O)(0)),this.selectedChapter.valueChanges.subscribe(t=>this.jumpToTime(t.seconds))}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}storeVideoDuration(t,o,i){null==i||i.pause(),i.src="",this.durationMap[t.id]=o}download(t){this._downloadModalService.open(t)}getVideoUrl(t){var o;let i=null===(o=this.selectedQuality.value)||void 0===o?void 0:o.url;return i&&t?`${i}#t=${t}`:i}getFallbackVideoUrl(t){var o;let i=null===(o=this.selectedQuality.value)||void 0===o?void 0:o.fallbackUrl;return i&&t?`${i}#t=${t}`:i}getChapterTitle(t){return t.title}getQualityTitle(t){return t.name}jumpToTime(t){var o;null===(o=this._videoTile)||void 0===o||o.jumpToTime(t)}countdownToNextVideo(){const t=this._playlist$.value,o=this._currentVideo$.value;if(!t||!o)return;const i=t.media.findIndex(p=>p.link===o.link);this.nextVideo=t.media[i+1],!(i<0)&&this.nextVideo&&(document.fullscreenElement&&document.exitFullscreen(),this.videoTile&&this.videoTile.hostedVideo.nativeElement.removeAttribute("controls"),this.secondsUntilNextVideo=this.secondsBetweenVideos,this.nextVideoSubscription=(0,z.F)(1e3).pipe((0,K.q)(this.secondsBetweenVideos)).subscribe(()=>{this.secondsUntilNextVideo--,this.secondsUntilNextVideo<=0&&this.playNextVideo()}))}cancelNextVideoCountdown(){var t;this.nextVideo=void 0,this.secondsUntilNextVideo=this.secondsBetweenVideos,null===(t=this.nextVideoSubscription)||void 0===t||t.unsubscribe(),this.videoTile.hostedVideo.nativeElement.setAttribute("controls","")}playNextVideo(){var t;if(!this.nextVideo||!this._playlist$.value)return;const o=this.nextVideo.link,i=this._playlist$.value;this.nextVideo=void 0,this.secondsUntilNextVideo=this.secondsBetweenVideos,null===(t=this.nextVideoSubscription)||void 0===t||t.unsubscribe(),this._router.navigate(["content",i.link,o])}_getAvailableResolutions(t){let o=[];return t.hdStreamingLink&&o.push({name:"720p",url:t.hdStreamingLink,fallbackUrl:t.hdLink}),t.fhdStreamingLink&&o.push({name:"1080p",url:t.fhdStreamingLink,fallbackUrl:t.fhdLink}),t.uhdStreamingLink&&o.push({name:"4k",url:t.uhdStreamingLink,fallbackUrl:t.uhdLink}),o}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(T.gz),e.Y36(T.F0),e.Y36(e.sBO),e.Y36(I.Yg),e.Y36(W.Dx),e.Y36(X.E),e.Y36(oe))}
1,n.\u0275cmp=e.Xpm({type:n,selectors:[["content-player-page"]],viewQuery:function(t,o){if(1&t&&e.Gf(ve,5),2&t){let i;e.iGM(i=e.CRH())&&(o.videoTile=i.first)}},decls:5,vars:14,consts:[["class","player-page",4,"ngIf"],[1,"player-page"],[1,"back"],["text","View All Content","marginTop","0","noBorder","true","icon","thin-arrow","iconPlacement","left","theme","minimal","url","/content","animation","glow","paddingHorizontal","0"],["class","playlist-not-found section-inner",4,"ngIf"],["class","section-inner player",4,"ngIf"],[1,"email-signup-container"],[1,"playlist-not-found","section-inner"],["playlistError",""],[1,"section-inner","player"],["player",""],["class","video-player",4,"ngIf"],["class","playlist",4,"ngIf"],["class","video-details",4,"ngIf"],[1,"video-player"],["videoPlayer",""],["class","video-placeholder",4,"ngIf"],["height","100%",3,"videoTile","videoEnded",4,"ngIf"],[1,"next-video"],["class","next-video-content-container",4,"ngIf"],[1,"progress-bar-container"],[1,"progress-fill"],[1,"video-placeholder"],["videoError",""],["height","100%",3,"videoTile","videoEnded"],["videoTile",""],[1,"next-video-content-container"],[1,"next-video-content"],[1,"next-video-header"],["titleOnly","",3,"media"],[1,"next-video-title","mobile-only"],[1,"next-video-buttons"],["customButton","true","marginTop","0","paddingHorizontal","0","text","Play Now","widthPercent","100",1,"next-video-button",3,"click"],["theme","tertiary","customButton","true","marginTop","0","paddingHorizontal","0","text","Cancel","widthPercent","100",1,"next-video-button",3,"click"],[1,"playlist"],["playlist",""],[1,"playlist-header"],["playlistHeader",""],[1,"media-count"],[1,"media-count-value"],[1,"playlist-container"],["playlistItems",""],["class","playlist-item-container",3,"current","routerLink",4,"ngFor","ngForOf"],[1,"playlist-item-container",3,"routerLink"],["playlistItem",""],[1,"playlist-item"],["preload","metadata",3,"src","poster","loadedmetadata"],[1,"playlist-item-details"],["class","video-duration",4,"ngIf"],[1,"video-duration"],[1,"video-details"],["videoDetails",""],[1,"video-details-header"],["detailHeader",""],[1,"video-details-header-actions"],["detailHeaderActions",""],["title","Video Quality",3,"items","control","isMultiSelect","setWidth","labelFn"],["title","Chapters",3,"items","control","isMultiSelect","setWidth","labelFn",4,"ngIf"],["text","Download","customButton","true","marginTop","0","theme","thin","paddingHorizontal","12","icon","download",3,"click"],["size","small",3,"text","url"],[1,"video-description"],["details",""],["class","video-date",4,"ngIf"],["class","link-white",3,"innerHtml",4,"ngIf"],["title","Chapters",3,"items","control","isMultiSelect","setWidth","labelFn"],[1,"video-date"],[1,"link-white",3,"innerHtml"]],template:function(t,o){1&t&&(e.YNc(0,Ie,7,2,"div",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async")),2&t&&e.Q6J("ngIf",e.l5B(9,Ue,e.lcZ(1,1,o.playlist$),e.lcZ(2,3,o.currentVideo$),e.lcZ(3,5,o.timeToStart$),e.lcZ(4,7,o.availableQualities$)))},directives:[d.O5,J.U,ie.m,pe,ge.F,d.sg,T.rH,ue.z,_e.U],pipes:[d.Ov,he,d.uU,me.z],styles:[".player-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;margin-left:4.25rem;margin-right:4.25rem;margin-bottom:4.25rem;padding-top:75px;gap:4.25rem}.player-page[_ngcontent-%COMP%] .playlist-not-found[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;font-family:D-DIN-Bold;font-size:3rem;height:65vh;justify-content:center;text-transform:uppercase}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 25%;grid-template-rows:1fr auto;grid-gap:.75rem;gap:.75rem}.player-page[_ngcontent-%COMP%] .player.section-inner[_ngcontent-%COMP%]{height:unset;max-width:unset}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%]{aspect-ratio:16/9;display:flex;justify-content:center;position:relative;width:100%;border-radius:4px;overflow:hidden}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .video-placeholder[_ngcontent-%COMP%]{align-items:center;border:1px solid var(--white-15);border-radius:4px;display:flex;flex-direction:column;font-family:D-DIN-Bold;font-size:3rem;height:100%;justify-content:center;text-transform:uppercase;width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%]{align-items:center;background-color:var(--black-80);border:1px solid var(--white-15);box-sizing:border-box;display:flex;flex-direction:column;flex:1;font-family:D-DIN-Bold;font-size:3rem;height:100%;justify-content:flex-end;left:0;opacity:0;position:absolute;top:0;transition:opacity .5s ease-in-out,visibility .5s ease-in-out;visibility:hidden;width:100%;z-index:1}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video.visible[_ngcontent-%COMP%]{opacity:1;visibility:visible}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video.visible[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%] .progress-fill[_ngcontent-%COMP%]{width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;justify-content:center}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%] .next-video-content[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;gap:1rem;justify-content:flex-start}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%] .next-video-content[_ngcontent-%COMP%] .next-video-header[_ngcontent-%COMP%]{font-family:D-DIN-Bold;font-size:1.125rem;line-height:100%;width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%] .next-video-content[_ngcontent-%COMP%] .next-video-title[_ngcontent-%COMP%]{width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%] .next-video-content[_ngcontent-%COMP%] .next-video-buttons[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:space-between;width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%] .next-video-content[_ngcontent-%COMP%] .next-video-buttons[_ngcontent-%COMP%] .next-video-button[_ngcontent-%COMP%]{flex:1}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%]{width:100%;height:4px;background-color:#ffffff4d;overflow:hidden;margin-bottom:19px}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .progress-bar-container[_ngcontent-%COMP%] .progress-fill[_ngcontent-%COMP%]{height:100%;background-color:#fff;width:0%;transition:width 5s linear}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-detail
1s[_ngcontent-%COMP%]{margin-top:.75rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-details-header[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;width:100%;margin-bottom:.75rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-details-header[_ngcontent-%COMP%] .video-details-header-actions[_ngcontent-%COMP%]{align-items:center;display:flex;gap:1.75rem;justify-content:space-between}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-description[_ngcontent-%COMP%] .video-date[_ngcontent-%COMP%]{margin-bottom:.75rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%]{aspect-ratio:16/9;border:1px solid var(--white-15);border-radius:4px;height:100%;width:400px}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:.75rem .5rem .5rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-family:D-DIN-Bold;letter-spacing:2%;line-height:120%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-header[_ngcontent-%COMP%] .media-count[_ngcontent-%COMP%]{font-family:Roboto Mono}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-header[_ngcontent-%COMP%] .media-count[_ngcontent-%COMP%] .media-count-value[_ngcontent-%COMP%]{margin-left:.5rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%]{height:85%;overflow-x:hidden;overflow-y:auto;scrollbar-color:var(--white-25) transparent;scrollbar-width:thin;width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%]{cursor:pointer;display:flex}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container.current[_ngcontent-%COMP%]{background-color:var(--gray-80);border-left:1px solid var(--white-15);border-right:1px solid var(--white-15)}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:var(--white-15);border-left:1px solid var(--white-25);border-right:1px solid var(--white-25)}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] .playlist-item[_ngcontent-%COMP%]{border-left:none;border-right:none;display:flex;justify-content:space-between;padding:1rem .5rem;width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] .playlist-item[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{background-color:unset;border-left:none;border-right:none}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] .playlist-item[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{aspect-ratio:16/9;flex-basis:12%;width:33%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] .playlist-item[_ngcontent-%COMP%] .playlist-item-details[_ngcontent-%COMP%]{border-left:none;border-right:none;display:flex;flex-direction:column;justify-content:space-between;margin-left:1rem;width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] .playlist-item[_ngcontent-%COMP%] .playlist-item-details[_ngcontent-%COMP%] .video-duration[_ngcontent-%COMP%]{font-family:Roboto Mono;font-size:.625rem;letter-spacing:12%}.back[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:-3.5rem}.mobile-only[_ngcontent-%COMP%]{display:none}
1 .header .header-shadow{display:none}content-hub-video-tile[_ngcontent-%COMP%]{width:100%}","@media (max-width: 1300px){.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-details-header[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:1.25rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-details-header[_ngcontent-%COMP%] .video-details-header-actions[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:unset}}@media (max-width: 961px){.player-page[_ngcontent-%COMP%]{margin-left:0;margin-right:0;line-height:120%;letter-spacing:2%}.player-page[_ngcontent-%COMP%] .playlist-not-found[_ngcontent-%COMP%]{font-size:2rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%]{font-size:1rem;gap:1.25rem;grid-template-columns:auto;height:100%;line-height:120%;letter-spacing:2%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%]{order:1;aspect-ratio:16/9}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%]{border:none;font-size:1.25rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%]{width:75%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-content-container[_ngcontent-%COMP%] .next-video-content[_ngcontent-%COMP%] media-tile[_ngcontent-%COMP%]{display:none}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-player[_ngcontent-%COMP%] .next-video[_ngcontent-%COMP%] .next-video-buttons[_ngcontent-%COMP%]{width:100%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%]{order:2;display:flex;flex-direction:column;gap:1.25rem;line-height:120%;margin-left:1rem;margin-right:1rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:29px;font-weight:700;line-height:120%}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-details-header[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:1.25rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-details-header[_ngcontent-%COMP%] .video-details-header-actions[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:unset}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .video-details[_ngcontent-%COMP%] .video-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%]{order:3;border:none;width:100%;aspect-ratio:unset;margin-top:50px}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:1.25rem;font-weight:400;gap:.75rem;letter-spacing:6%;margin-bottom:.75rem;padding-left:.75rem;padding-right:.75rem}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;height:unset}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container.current[_ngcontent-%COMP%]{border:none}.player-page[_ngcontent-%COMP%] .player[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%] .playlist-container[_ngcontent-%COMP%] .playlist-item-container[_ngcontent-%COMP%] .playlist-item[_ngcontent-%COMP%]{padding:.25rem .75rem}.email-signup-container[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.back[_ngcontent-%COMP%]{margin-left:12px}.mobile-only[_ngcontent-%COMP%]{display:unset}}"],changeDetection:0}),n})()}];let Ee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[T.Bz.forChild(ke)],T.Bz]}),n})();var Se=a(5609),Ne=a(269);let Le=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,Ne.Y,r.p,Se.w]]}),n})(),Fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[{provide:Window,useValue:window}],imports:[[d.ez,Ee,s.e,m,w.X,r.p,C.C,c.O,u.k,x.a,_,Le,g.v]]}),n})()},5609:(k,M,a)=>{a.d(M,{w:()=>e});var d=a(6362),u=a(3184);let e=(()=>{class _{}return _.\u0275fac=function(m){return new(m||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[[d.ez]]}),_})()},7409:(k,M,a)=>{a.d(M,{pe:()=>C,Xj:()=>T,Lk:()=>I});var d=a(4244),u=a(4476),e=a(3184),_=a(6646),x=a(3280),m=a(7260),w=a(116),r=a(9295),s=a(4140),c=a(1604);let g=(()=>{class v{constructor(h,y,f,V){this.router=h,this.clipboard=y,this.dialogRef=f,this.video=V}ngOnInit(){(0,_.T)((0,x.R)(document,"click"),(0,x.R)(document,"contextmenu")).pipe((0,m.T)(1),(0,w.h)(h=>!this.dialogRef.isContained(h.target)),(0,r.q)(1)).subscribe(()=>this.dialogRef.close())}copy(){this.clipboard.copy(`${window.location.origin}${this.router.url}?t=${Math.floor(this.video.currentTime)}`),this.dialogRef.close()}}return v.\u0275fac=function(h){return new(h||v)(e.Y36(s.F0),e.Y36(c.TU),e.Y36(T),e.Y36(C))},v.\u0275cmp=e.Xpm({type:v,selectors:[["context-menu"]],decls:3,vars:0,consts:[[1,"context-menu"],[3,"click"]],template:function(h,y){1&h&&(e.TgZ(0,"section",0),e.TgZ(1,"div",1),e.NdJ("click",function(){return y.copy()}),e._uU(2,"Copy video URL at current time"),e.qZA(),e.qZA())},styles:[".context-menu[_ngcontent-%COMP%]{background:#232323}.context-menu[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding:20px;border-radius:7px}.context-menu[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:hover{background:#2d2d2d;cursor:pointer}"],changeDetection:0}),v})();const C=new e.OlP("CONTEXT_MENU_DATA");class T{constructor(P){this.overlayRef=P}isContained(P){return this.overlayRef.overlayElement.contains(P)}close(){this.overlayRef.dispose()}}let I=(()=>{class v{constructor(h,y){this.injector=h,this.overlay=y}open({x:h,y},f){const V=this.overlay.create(new d.X_({scrollStrategy:this.overlay.scrollStrategies.close(),positionStrategy:this.overlay.position().flexibleConnectedTo({x:
1h,y}).withPositions([{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}])})),U=new T(V),S=this.createInjector(U,f),N=new u.C5(g,null,S);return V.attach(N),U}createInjector(h,y){const f=new WeakMap;return f.set(T,h),f.set(C,y),new u.nK(this.injector,f)}}return v.\u0275fac=function(h){return new(h||v)(e.LFG(e.zs3),e.LFG(d.aV))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},269:(k,M,a)=>{a.d(M,{Y:()=>x});var d=a(6362),u=a(1604),e=a(4140),_=a(3184);let x=(()=>{class m{}return m.\u0275fac=function(r){return new(r||m)},m.\u0275mod=_.oAB({type:m}),m.\u0275inj=_.cJS({imports:[[d.ez,u.Iq,e.Bz]]}),m})()},379:(k,M,a)=>{a.d(M,{O:()=>w});var d=a(6362),u=a(4860),e=a(671),_=a(3676),x=a(5983),m=a(3184);let w=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=m.oAB({type:r}),r.\u0275inj=m.cJS({imports:[[d.ez,e.p,u.k,_.a,x.X]]}),r})()},1604:(k,M,a)=>{a.d(M,{Iq:()=>w,TU:()=>_});var d=a(6362),u=a(3184);class e{constructor(s,c){this._document=c;const g=this._textarea=this._document.createElement("textarea"),C=g.style;C.position="fixed",C.top=C.opacity="0",C.left="-999em",g.setAttribute("aria-hidden","true"),g.value=s,this._document.body.appendChild(g)}copy(){const s=this._textarea;let c=!1;try{if(s){const g=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),c=this._document.execCommand("copy"),g&&g.focus()}}catch(g){}return c}destroy(){const s=this._textarea;s&&(s.remove(),this._textarea=void 0)}}let _=(()=>{class r{constructor(c){this._document=c}copy(c){const g=this.beginCopy(c),C=g.copy();return g.destroy(),C}beginCopy(c){return new e(c,this._document)}}return r.\u0275fac=function(c){return new(c||r)(u.LFG(d.K0))},r.\u0275prov=u.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),w=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({}),r})()}}]); 2//# sourceMappingURL=5508.e346e67755d71dd9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.