1(self.webpackChunkangular_project=self.webpackChunkangular_project||[]).push([[806],{2806:(e,i,t)=>{"use strict";t.r(i),t.d(i,{VideoModule:()=>ft});var s=t(4195),n=t(8864),o=t(8909),l=t(4542),a=t(1571),d=t(7397),r=t(905),c=t(7688),u=t(2340),g=t(6401),h=t(6665),p=t(8414),v=t(7716),m=t(4817),b=t(6595),f=t(2522),T=t(2743),x=t(8694),S=t(6790),Z=t(8583),V=t(6324),L=t(6704),C=t(4453),y=t(9374),A=t(4514);function I(e,i){1&e&&v._UZ(0,"nz-skeleton",11),2&e&&v.Q6J("nzActive",!0)}function z(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"div",15),v.TgZ(1,"ui-video-card-list",16),v.NdJ("outputAction",function(i){return v.CHM(e),v.oxw(2).navigateToVideoListPage(i)}),v.qZA(),v.qZA()}if(2&e){const e=v.oxw(2);v.xp6(1),v.Q6J("enabled",!0)("videos",e.recommendedVideoList)("loading",e.isLoadingRecommendedList)}}function w(e,i){if(1&e&&(v.TgZ(0,"div",12),v.TgZ(1,"h1",13),v._uU(2,"Recommended Videos"),v.qZA(),v.YNc(3,z,2,3,"div",14),v.qZA()),2&e){const e=v.oxw();v.xp6(3),v.Q6J("ngIf",e.recommendedVideoList.length>0)}}function M(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"p",28),v._uU(1),v.TgZ(2,"a",29),v.NdJ("click",function(){return v.CHM(e),v.oxw(3).expandOrMinim
1ize()}),v._uU(3),v.qZA(),v.qZA()}if(2&e){const e=v.oxw(2).$implicit,i=v.oxw();v.xp6(1),v.hij(" ",i.isSeeMore?null==e||null==e.description?null:e.description.substr(0,200):null==e?null:e.description," "),v.xp6(2),v.hij(" ",i.isSeeMore?"see more":"see less"," ")}}function _(e,i){if(1&e&&(v.TgZ(0,"p",28),v._uU(1),v.qZA()),2&e){const e=v.oxw(2).$implicit;v.xp6(1),v.hij(" ",null==e?null:e.description," ")}}function k(e,i){if(1&e&&(v.TgZ(0,"div",15),v._UZ(1,"ui-video-card-list",30),v.qZA()),2&e){const e=v.oxw(2).$implicit;v.xp6(1),v.Q6J("videos",e.video.slice(0,10))("enabled",!0)}}function q(e,i){if(1&e&&(v.ynx(0),v.TgZ(1,"nz-row",18),v.TgZ(2,"h1",13),v._uU(3),v.qZA(),v.TgZ(4,"span"),v.TgZ(5,"div",19),v.TgZ(6,"a",20),v.TgZ(7,"span",21),v.TgZ(8,"span",22),v._uU(9,"chevron_right"),v.qZA(),v.TgZ(10,"a",23),v._uU(11," All Videos "),v.TgZ(12,"span",24),v._uU(13,"chevron_right"),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(14,"div",25),v.TgZ(15,"div",26),v.YNc(16,M,4,2,"p",27),v.YNc(17,_,2,1,"p",27),v.qZA(),v.qZA(),v.YNc(18,k,2,2,"div",14),v.BQk()),2&e){const e=v.oxw().$implicit,i=v.oxw();v.xp6(3),v.Oqu(e.displayName),v.xp6(7),v.Q6J("routerLink","../"+e.id+"/"+i.convertTitle(e.displayName)),v.xp6(6),v.Q6J("ngIf",(null==e||null==e.description?null:e.description.length)>200),v.xp6(1),v.Q6J("ngIf",(null==e||null==e.description?null:e.description.length)<=200),v.xp6(1),v.Q6J("ngIf",e.video.length>0)}}
1function P(e,i){if(1&e&&(v.TgZ(0,"div",12),v.YNc(1,q,19,5,"ng-container",17),v.qZA()),2&e){const e=i.$implicit;v.xp6(1),v.Q6J("ngIf",(null==e||null==e.video?null:e.video.length)>0)}}function N(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"div",31),v.TgZ(1,"div",32),v.TgZ(2,"a",33),v.NdJ("click",function(){return v.CHM(e),v.oxw().handleCancel()}),v._uU(3," close "),v.qZA(),v._UZ(4,"img",34),v.TgZ(5,"div",35),v.TgZ(6,"div",36),v._uU(7," Improve your feed "),v.qZA(),v.TgZ(8,"div",37),v._uU(9," Follow more video series to explore your interest with us. "),v.qZA(),v.TgZ(10,"button",38),v.NdJ("click",function(){return v.CHM(e),v.oxw().goToOnboarding()}),v._uU(11,"Create Now "),v.qZA(),v.qZA(),v.qZA(),v.qZA()}}let O=(()=>{class e{constructor(e,i,t,s,n){this.router=e,this.categoryRestService=i,this.videoRestService=t,this.onboardingRestService=s,this.store=n,this.videoType="VIDEO",this.sortBy="ON_DEMAND_DATE",this.titlePageSize=11,this.tagPageSize=11,this.subSeriesPageSize=11,this.appConstant=d.$,this.routeConstant=l.o,this.loadingSeries=!1,this.loadingVideo=!1,this.isLoadingRecommendedList=!1,this.seriesList=[],this.recommendedVideoList=[],this.isOnboardingCTAVisible=!1,this.isLoggedIn=!1,this.isSeeMore=!0,this.environment=u.N,this.isMobile=!1}ngOnInit(){this.isMobile=(0,p.S)(),this.checkIsLoggedIn(),this.checkOnboardingSurvey(),this.getRecommendedVideo(),this.loadingSeries=!0,this.loadingVideo=!0,this.categoryRestService.getAvailableCategory().subscribe(e=>{this.seriesList=e.data.sort((e,i)=>e.displayName.localeCompare(i.displayName));let i=[];this.seriesList.forEach(e=>{i.push(this.videoRestService.searchVideoListV3(0,0,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,[e.id],[null],"",this.sortBy))}),this.loadingSeries=!1,(0,a.$R)(...i).subscribe(e=>{var i;for(let t=0;t<this.seriesList.length;t++)this.seriesList[t].video=null===(i=e[t].data.byGeneral)||void 0===i?void 0:i.result;this.loadingVideo=!1})})}getRecommendedVideo(e){this.isLoadingRecommendedList=!0,this.videoRestService.getRecommendedVideoList(e?e.currentPage:0,e?e.pageSize:10,"",!0).subscribe(e=>{this.isLoadingRecommendedList=!1,this.recommendedVideoList=(0,r.p)((0,c.o)(this.recommendedVideoList.concat(e.data.result),"videoId"))})}convertTitle(e){return(0,h.b)(e)}
1expandOrMinimize(){this.isSeeMore=!this.isSeeMore}checkOnboardingSurvey(){this.isLoggedIn&&this.store.select(g.xy.getUserId).subscribe(e=>{this.onboardingRestService.getOnboardingSurvey(e).subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&null==e.data.userId&&(this.isOnboardingCTAVisible=!0)})})}navigateToVideoListPage(e){}handleCancel(){this.isOnboardingCTAVisible=!1}goToOnboarding(){this.router.navigate([l.o.ONBOARDING])}checkIsLoggedIn(){this.isLoggedIn=""!==this.store.selectSnapshot(g.jq.getAccessToken)}}return e.\u0275fac=function(i){return new(i||e)(v.Y36(o.F0),v.Y36(m.F),v.Y36(b.C),v.Y36(f.t),v.Y36(T.yh))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-series-page"]],decls:11,vars:7,consts:[[1,"bg-black-7"],[1,"opacity"],[1,"video-category-bg"],[1,"container","pt-28","series-container"],[3,"categoryList"],[3,"nzActive","nzLoading"],[1,"container","series-showcase-container"],["class","mb-72",3,"nzActive",4,"ngIf"],["class","pb-10",4,"ngIf"],["class","pb-10",4,"ngFor","ngForOf"],["class","onboarding-cta",4,"ngIf"],[1,"mb-72",3,"nzActive"],[1,"pb-10"],[1,"text-lg","mb-0"],["class","offset-pl",4,"ngIf"],[1,"offset-pl"],[3,"enabled","videos","loading","outputAction"],[4,"ngIf"],["nzAlign","middle"],[1,"leading-4"],[1,"link"],[1,"all-videos-link-wrapper"],[1,"all-videos-right-icon","font-semibold","material-icons-outlined","text-sm","ml-2"],[1,"all-videos-text","font-semibold",3,"routerLink"],[1,"font-semibold","material-icons-outlined","text-sm"],[1,"grid","grid-cols-24","mb-2"],[1,"col-span-24","lg:col-span-18","desc","text-sm","leading-5","text-desc"],["class","mb-0",4,"ngIf"],[1,"mb-0"],[1,"link",3,"click"],[3,"videos","enabled"],[1,"onboarding-cta"],[1,"flex","p-4"],[1,"material-icons-outlined","text-xl","text-black-2","absolute","top-3","right-3",3,"click"],["src","/assets/images/dev/improve-your-feed.jpg","alt","video-img",1,"rounded-xl","max-h-40","mr-4"],[1,"pr-4"],[1,"text-md","font-bold","mb-2"],[1,"mb-5"],["nz-button","","id","gtag-track-onboarding-survey",1,"btn-outline",3,"click"]],template:function(e,i){1&e&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v.TgZ(2,"div",2),v.TgZ(3,"div",3),v._UZ(4,"ui-video-category-list",4),v._UZ(5,"nz-skeleton",5),v.qZA(),v.qZA(),v.TgZ(6,"div",6),v.YNc(7,I,1,1,"nz-skeleton",7),v.YNc(8,w,4,1,"div",8),v.YNc(9,P,2,1,"div",9),v.qZA(),v.qZA(),v.YNc(10,N,12,0,"div",10)),2&e&&(v.xp6(4),v.Q6J("categoryList",i.seriesList),v.xp6(1),v.Q6J("nzActive",!0)("nzLoading",i.loadingSeries),v.xp6(2),v.Q6J("ngIf",i.loadingVideo),v.xp6(1),v.Q6J("ngIf",i.recommendedVideoList.length>0),v.xp6(1),v.Q6J("ngForOf",i.seriesList),v.xp6(1),v.Q6J("ngIf",i.isOnboardingCTAVisible&&!i.isMobile))},directives:[x.j,S.ng,Z.O5,Z.sg,V.r,L.SK,o.yS,C.ix,y.dQ,A.w],styles:[".video-category-bg[_ngcontent-%COMP%]{background:linear-gradient(180deg,#17171733 0,#0000 50%,var(--black-7) 100%),linear-gradient(78deg,#5b3db7 0,#a344b4 52%,#e22b9c 100%)}.series-container[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.series-showcase-container[_ngcontent-%COMP%]{padding-top:20px}@media only screen and (max-width: 992px){.series-list[_ngcontent-%COMP%]{display:grid;grid-row-gap:16px;grid-column-gap:100px;padding:16px;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));grid-template-rows:auto auto;grid-auto-flow:column;grid-auto-columns:minmax(175px,1fr);overflow-x:auto}.series-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px}.series-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:20px;background:var(--black-5)}.series-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:20px;background:var(--black-2)}.series-list[_ngcontent-%COMP%]::-webkit-scrollbar-corner{background:var(--black-5)}.series-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:var(--black-3)}}.onboarding-cta[_ngcontent-%COMP%]{width:529px;height:188px;border-radius:14px;background-color:var(--black-5);position:fixed;bottom:25px;left:25px;z-index:1000}.opacity[_ngcontent-%COMP%]{height:60px;width:100%;background-image:linear-gradient(#2e2e30,#080e3000);z-index:1;position:absolute}.desc[_ngcontent-%COMP%]{white-space:pre-line}.all-videos-link-wrapper[_ngcontent-%COMP%]:hover .all-videos-right-icon[_ngcontent-%COMP%]{visibility:hidden}.all-videos-link-wrapper[_ngcontent-%COMP%]:hover .all-videos-text[_ngcontent-%COMP%]{visibility:visible;margin-left:-.5rem}.all-videos-text[_ngcontent-%COMP%]{visibility:hidden}"]}),e})();var J=t(9765),U=t(4395),E=t(530),D=t(3386),Q=t(9075),R=t(8058),Y=t(812),F=t(5418),H=t(7076),$=t(8720),B=t(3109),W=t(5887),G=t(7674),j=t(3679),K=t(5386),X=t(4401),ee=t(3730),ie=t(9376),te=t(5073);const se=["videoCategoryColorCode"],ne=["searchForm"];function oe(e,i){1&e&&(v.TgZ(0,"span",23),v._uU(1,"search"),v.qZA())}function le(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){return v.CHM(e),v.oxw().clearInput()}),v.TgZ(1,"span",25),v._uU(2,"cancel"),v.qZA(),v.qZA()}if(2&e){const e=v.oxw();v.Q6J("hidden",!e.searchText)}}function ae(e,i){1&e&&v.GkF(0)}function de(e,i){if(1&e&&(v.TgZ(0,"div"),v.YNc(1,ae,1,0,"ng-container",26),v.qZA()),2&e){v.oxw();const e=v.MAs(29);v.xp6(1),v.Q6J("ngTemplateOutlet",e)}}function re(e,i){1&e&&v.GkF(0)}function ce(e,i){if(1&e&&(v.TgZ(0,"div"),v.YNc(1,re,1,0,"ng-container",26),v.qZA()),2&e){v.oxw();const e=v.MAs(31);v.xp6(1),v.Q6J("ngTemplateOutlet",e)}}const ue=function(e){return{desc:e}};function ge(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"p",44),v._UZ(1,"span",45),v.TgZ(2,"a",46),v.NdJ("click",function(){return v.CHM(e),v.oxw(3).expandOrMinim
1ize()}),v._uU(3),v.qZA(),v.qZA()}if(2&e){const e=v.oxw(3);v.xp6(1),v.Q6J("ngClass",v.VKq(3,ue,1!==(null==e.featuredVideo?null:e.featuredVideo.isDescClob)))("innerHTML",e.isSeeMore?null==e.featuredVideo||null==e.featuredVideo.description?null:e.featuredVideo.description.substr(0,200):null==e.featuredVideo?null:e.featuredVideo.description,v.oJD),v.xp6(2),v.hij(" ",e.isSeeMore?"see more":"see less"," ")}}function he(e,i){if(1&e&&v._UZ(0,"p",47),2&e){const e=v.oxw(3);v.Q6J("ngClass",v.VKq(2,ue,1!==(null==e.featuredVideo?null:e.featuredVideo.isDescClob)))("innerHTML",null==e.featuredVideo?null:e.featuredVideo.description,v.oJD)}}const pe=function(e){return[e]};function ve(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"div",31),v.TgZ(1,"div",32),v.TgZ(2,"ui-jw-player",33),v.NdJ("outputAction",function(i){return v.CHM(e),v.oxw(2).triggerJwPlayerAction(i)}),v.qZA(),v.qZA(),v.TgZ(3,"div",34),v.TgZ(4,"div",35),v.TgZ(5,"p",36),v._uU(6,"Featured Video"),v.qZA(),v.TgZ(7,"h1",37),v._uU(8),v.qZA(),v.YNc(9,ge,4,5,"p",38),v.YNc(10,he,1,4,"p",39),v.TgZ(11,"div",40),v.TgZ(12,"a",41),v.NdJ("click",function(){return v.CHM(e),v.oxw(2).redirect()}),v.TgZ(13,"button",42),v.TgZ(14,"span",43),v._uU(15,"play_circle_filled"),v.qZA(),v.TgZ(16,"span"),v._uU(17,"\xa0Watch"),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA()}if(2&e){const e=v.oxw(2);v.xp6(2),v.Q6J("inputVideo",e.featuredVideo)("playList",v.VKq(5,pe,e.appConstant.JWPLAYER_MEDIA_URL+(null==e.featuredVideo?null:e.featuredVideo.videoId)+"?token="+e.encodedJwt)),v.xp6(6),v.Oqu(null==e.featuredVideo?null:e.featuredVideo.title),v.xp6(1),v.Q6J("ngIf",(null==e.featuredVideo||null==e.featuredVideo.description?null:e.featuredVideo.description.length)>200),v.xp6(1),v.Q6J("ngIf",(null==e.featuredVideo||null==e.featuredVideo.description?null:e.featuredVideo.description.length)<=200)}}function me(e,i){1&e&&(v.TgZ(0,"div",48),v._UZ(1,"img",49),v.TgZ(2,"h1",50),v._uU(3,"Oopss..."),v.qZA(),v.TgZ(4,"p",51),v._uU(5,"No video found for selected subseries, please choose another subseries."),v.qZA(),v.qZA())}function be(e,i){if(1&e&&(v.TgZ(0,"div",56),v._UZ(1,"ui-video-card-list",57),v.qZA()),2&e){const e=v.oxw(4);v.xp6(1),v.Q6J("videos",null==e.latestVideos?null:e.latestVideos.video)("enabled",!0)}}function fe(e,i){if(1&e&&(v.TgZ(0,"div"),v.TgZ(1,"h1",53),v._uU(2,"Latest Videos"),v.qZA(),v.TgZ(3,"div",54),v.YNc(4,be,2,2,"div",55),v.qZA(),v.qZA()),2&e){const e=v.oxw(3);v.xp6(4),v.Q6J("ngIf",(null==e.latestVideos?null:e.latestVideos.video.length)>0)}}function Te(e,i){if(1&e){const e=v.EpF();
1v.TgZ(0,"div",60),v.TgZ(1,"div",61),v.TgZ(2,"nz-row",62),v.TgZ(3,"h1",53),v._uU(4),v.qZA(),v.TgZ(5,"span"),v.TgZ(6,"div",63),v.TgZ(7,"a",64),v.TgZ(8,"span",65),v.TgZ(9,"span",66),v._uU(10,"chevron_right"),v.qZA(),v.TgZ(11,"a",67),v.NdJ("click",function(){v.CHM(e);const i=v.oxw().$implicit;return v.oxw(3).selectVideos(i.subseries)}),v._uU(12," All Videos "),v.TgZ(13,"span",68),v._uU(14,"chevron_right"),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(15,"div",69),v.TgZ(16,"p",70),v._uU(17),v.qZA(),v.qZA(),v.qZA()}if(2&e){const e=v.oxw().$implicit,i=v.oxw(3);v.xp6(4),v.Oqu(i.findSubseriesTitle(e.subseries)),v.xp6(13),v.Oqu(null==e?null:e.description)}}function xe(e,i){if(1&e&&(v.TgZ(0,"div",71),v.TgZ(1,"div",56),v._UZ(2,"ui-video-card-list",57),v.qZA(),v.qZA()),2&e){const e=v.oxw().$implicit;v.xp6(2),v.Q6J("videos",null==e?null:e.videos)("enabled",!0)}}function Se(e,i){if(1&e&&(v.ynx(0),v.YNc(1,Te,18,2,"div",58),v.TgZ(2,"div",54),v.YNc(3,xe,3,2,"div",59),v.qZA(),v.BQk()),2&e){const e=i.$implicit;v.xp6(1),v.Q6J("ngIf",(null==e?null:e.videos.length)>0),v.xp6(2),v.Q6J("ngIf",(null==e?null:e.videos.length)>0)}}function Ze(e,i){if(1&e&&(v.TgZ(0,"div"),v.YNc(1,fe,5,1,"div",20),v.YNc(2,Se,4,2,"ng-container",52),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.Q6J("ngIf",!e.loadingLatest&&!e.loadingVideo),v.xp6(1),v.Q6J("ngForOf",e.subseriesVideoList)}}function Ve(e,i){if(1&e&&(v.YNc(0,ve,18,7,"div",27),v.TgZ(1,"div",28),v._UZ(2,"nz-skeleton",5),v.TgZ(3,"div",29),v.YNc(4,me,6,0,"div",30),v.YNc(5,Ze,3,2,"div",20),v.qZA(),v.qZA()),2&e){const e=v.oxw();v.Q6J("ngIf",e.featuredVideo),v.xp6(2),v.Q6J("nzActive",!0)("nzLoading",e.loadingVideo),v.xp6(2),v.Q6J("ngIf",e.noVideo),v.xp6(1),v.Q6J("ngIf",!e.noVideo)}}function Le(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"li",87),v.NdJ("click",function(){const i=v.CHM(e).$implicit;return v.oxw(2).applySort(i)}),v._uU(1),v.qZA()}if(2&e){const e=i.$implicit,t=v.oxw(2);v.Q6J("ngClass",t.selectedSort===e?"dropdown-selected":""),v.xp6(1),v.Oqu(e)}}function Ce(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"li",87),v.NdJ("click",function(){const i=v.CHM(e).$implicit;return v.oxw(2).applyFilter(i)}),v._uU(1),v.qZA()}if(2&e){const e=i.$implicit,t=v.oxw(2);v.Q6J("ngClass",t.selectedFilter===e.subseriesName?"dropdown-selected":""),v.xp6(1),v.Oqu(e.subseriesName)}}function ye(e,i){1&e&&v._UZ(0,"nz-skeleton",88),2&e&&v.Q6J("nzActive",!0)}function Ae(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",94),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(4);v.xp6(1),v.Q6J("nzDate",null!=e&&e.onDemandDate?null==e?null:e.onDemandDate:null==e?null:e.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e?null:e.videoId)+"/"+e.title)("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+e.videoId+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",e.title)("video",e)("nzDuration",e.duration)("nzView",e.views)("searchText",t.searchText)}}function Ie(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",94),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(4);v.xp6(1),v.Q6J("nzDate",null!=e&&e.onDemandDate?null==e?null:e.onDemandDate:null==e?null:e.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e?null:e.videoId)+"/"+e.title)("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+e.videoId+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",e.title)("video",e)("nzDuration",e.duration)("nzView",e.views)("searchText",t.searchText)}}function ze(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",95),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(4);v.xp6(1),v.Q6J("nzType","tag")("nzDate",null!=e&&null!=e.video&&e.video.onDemandDate?null==e||null==e.video?null:e.video.onDemandDate:null==e||null==e.video?null:e.video.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e||null==e.video?null:e.video.videoId)+"/"+(null==e?null:e.video.title))("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+(null==e?null:e.video.videoId)+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",null==e?null:e.video.title)("video",null==e?null:e.video)("nzDuration",null==e?null:e.video.duration)("nzView",null==e?null:e.video.views)("tagName",e.tagDisplayName)}}function we(e,i){1&e&&(v.TgZ(0,"div",54),v._UZ(1,"nz-skeleton",88),v.qZA()),2&e&&(v.xp6(1),v.Q6J("nzActive",!0))}function Me(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",96),v.NdJ("click",function(){v.CHM(e);const i=v.oxw(4);
1return i.loadMoreVideos(i.generalVideoList,i.titleVideoList,i.tagVideoList)}),v._uU(1,"Load More"),v.qZA()}}function _e(e,i){if(1&e&&(v.TgZ(0,"div"),v.TgZ(1,"div",90),v.YNc(2,Ae,2,8,"ng-container",52),v.YNc(3,Ie,2,8,"ng-container",52),v.YNc(4,ze,2,9,"ng-container",52),v.qZA(),v.YNc(5,we,2,1,"div",91),v.TgZ(6,"nz-row",92),v.YNc(7,Me,2,0,"button",93),v.qZA(),v.qZA()),2&e){const e=v.oxw(3);v.xp6(1),v.Q6J("ngClass",e.checkIsNonSubSeriesNotEmpty()?"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-8 md:px-0 sm:gap-4":"mb-0"),v.xp6(1),v.Q6J("ngForOf",null==e.generalVideoList?null:e.generalVideoList.videos),v.xp6(1),v.Q6J("ngForOf",null==e.titleVideoList?null:e.titleVideoList.videos),v.xp6(1),v.Q6J("ngForOf",null==e.tagVideoList?null:e.tagVideoList.tags),v.xp6(1),v.Q6J("ngIf",e.loadingMoreVideos),v.xp6(2),v.Q6J("ngIf",!(null!=e.generalVideoList&&e.generalVideoList.isLastPage||null!=e.titleVideoList&&e.titleVideoList.isLastPage||null!=e.tagVideoList&&e.tagVideoList.isLastPage))}}function ke(e,i){if(1&e&&(v.TgZ(0,"div"),v.YNc(1,_e,8,6,"div",89),v.qZA()),2&e){v.oxw();const e=v.MAs(28),i=v.oxw();v.xp6(1),v.Q6J("ngIf",i.checkIsResultNotEmpty())("ngIfElse",e)}}function qe(e,i){1&e&&(v.TgZ(0,"div",97),v._UZ(1,"img",98),v.TgZ(2,"h1",50),v._uU(3,"No results found."),v.qZA(),v.TgZ(4,"p",51),v._uU(5,"We can\u2019t find any available listings within your search filters. Try search a different keywords or change your search criteria."),v.qZA(),v.qZA())}function Pe(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",103),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(4);v.xp6(1),v.Q6J("nzDate",null!=e&&e.onDemandDate?null==e?null:e.onDemandDate:null==e?null:e.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e?null:e.videoId)+"/"+e.title)("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+e.videoId+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",e.title)("video",e)("nzDuration",e.duration)("nzView",e.views)}}function Ne(e,i){1&e&&(v.TgZ(0,"div",54),v._UZ(1,"nz-skeleton",88),v.qZA()),2&e&&(v.xp6(1),v.Q6J("nzActive",!0))}function Oe(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",104),v.NdJ("click",function(){v.CHM(e);const i=v.oxw().$implicit;return v.oxw(3).loadMoreSubSeries(i)}),v._uU(1,"Load More"),v.qZA()}}function Je(e,i){if(1&e&&(v.ynx(0),v.TgZ(1,"p"),v._uU(2,"Subcategory with: "),v.TgZ(3,"span",100),v.ALo(4,"textHighlight"),v._uU(5),v.qZA(),v.qZA(),v.TgZ(6,"div",101),v.YNc(7,Pe,2,7,"ng-container",52),v.qZA(),v.YNc(8,Ne,2,1,"div",91),v.TgZ(9,"nz-row",92),v.YNc(10,Oe,2,0,"button",102),v.qZA(),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(3);v.xp6(3),v.Q6J("innerHTML",v.xi3(4,5,e.subseriesName,t.searchText),v.oJD),v.xp6(2),v.Oqu(e.subseriesName),v.xp6(2),v.Q6J("ngForOf",null==e?null:e.videos),v.xp6(1),v.Q6J("ngIf",e.loading),v.xp6(2),v.Q6J("ngIf",!e.isLastPage)}}function Ue(e,i){if(1&e&&(v.TgZ(0,"div",99),v.YNc(1,Je,11,8,"ng-container",52),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.Q6J("ngForOf",e.searchSubSeriesVideoList)}}function Ee(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"div",72),v.TgZ(1,"nz-row",73),v.TgZ(2,"a",74),v.TgZ(3,"span",75),v._uU(4,"sort"),v.qZA(),v.TgZ(5,"p",76),v._uU(6,"Sort by:"),v.qZA(),v.TgZ(7,"span",77),v.NdJ("ngModelChange",function(i){return v.CHM(e),v.oxw().selectedSort=i}),v._uU(8),v.qZA(),v.qZA(),v.TgZ(9,"nz-dropdown-menu",null,78),v.TgZ(11,"ul",79),v.YNc(12,Le,2,2,"li",80),v.qZA(),v.qZA(),v.TgZ(13,"a",81),v.TgZ(14,"span",75),v._uU(15,"filter_alt"),v.qZA(),v.TgZ(16,"p",76),v._uU(17,"Filter by:"),v.qZA(),v.TgZ(18,"span",77),v.NdJ("ngModelChange",function(i){return v.CHM(e),v.oxw().selectedFilter=i}),v._uU(19),v.qZA(),v.qZA(),v.TgZ(20,"nz-dropdown-menu",null,82),v.TgZ(22,"ul",79),v.YNc(23,Ce,2,2,"li",80),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.YNc(24,ye,1,1,"nz-skeleton",83),v.TgZ(25,"div",84),v.YNc(26,ke,2,2,"div",20),v.YNc(27,qe,6,0,"ng-template",null,85,v.W1O),v.YNc(29,Ue,2,1,"div",86),v.qZA()}if(2&e){const e=v.MAs(10),i=v.MAs(21),t=v.oxw();v.xp6(2),v.Q6J("nzDropdownMenu",e),v.xp6(5),v.Q6J("ngModel",t.selectedSort),v.xp6(1),v.Oqu(t.selectedSort),v.xp6(4),v.Q6J("ngForOf",t.sortMenuItems),v.xp6(1),v.Q6J("nzDropdownMenu",i),v.xp6(
15),v.Q6J("ngModel",t.selectedFilter),v.xp6(1),v.Oqu(t.selectedFilter),v.xp6(4),v.Q6J("ngForOf",t.filterMenuItems),v.xp6(1),v.Q6J("ngIf",t.loadingAllVideos),v.xp6(2),v.Q6J("ngIf",!t.loadingAllVideos),v.xp6(3),v.Q6J("ngIf",!t.loadingAllVideos&&t.checkIsResultNotEmpty())}}const De=function(e){return{visibility:e}};let Qe=(()=>{class e{constructor(e,i,t,s,n,o,a,r,c,g,h){this.metaService=e,this.titleService=i,this.nzMessageService=t,this.router=s,this.activatedRoute=n,this.categoryRestService=o,this.videoRestService=a,this.videoViewsRestService=r,this.customViewTempRestService=c,this.jwplayerRestService=g,this.ipRestService=h,this.videoType="VIDEO",this.titlePageSize=15,this.tagPageSize=15,this.subSeriesPageSize=15,this.clientIpAddress="",this.appConstant=d.$,this.iTvCustomViewCompleteTypeEnum=D.d,this.seriesList=[],this.subseriesVideoList=[],this.searchSubSeriesVideoList=[],this.loadingSeries=!1,this.loadingVideo=!1,this.loadingLatest=!1,this.loadingAllVideos=!1,this.loadingMoreVideos=!1,this.featuredVideoLoading=!1,this.routeConstant=l.o,this.noVideo=!1,this.isSeeMore=!0,this.environment=u.N,this.sortMenuItems=["Most Recent","Most Viewed"],this.filterMenuItems=[],this.selectedSort="",this.selectedFilter="",this.sortColumns=["ON_DEMAND_DATE","VIEWS"],this.selectedSortColumn="",this.searchText="",this.searchTextChanged=new J.xQ,this.debounceTime=500,this.isHover=!1,this.counter=0}ngOnInit(){this.isSeeMore=!0,this.activatedRoute.params.subscribe(e=>{this.series=parseInt(e.series),this.counter=0,this.categoryRestService.getCategory(!0).subscribe(e=>{this.loadingVideo=!0,this.seriesList=e.data;const i=this.seriesList.find(e=>e.id===this.series);this.initCategoryColorCode(i),this.findFeaturedVideo(i),this.findLatestVideos(i),this.findSubSeriesListVideos(i),this.searchVideos(i),this.loadingVideo=!1})}),this.getSearchText()}getSearchText(){this.searchTextChanged.pipe((0,U.b)(this.debounceTime)).subscribe(()=>{this.selectVideos(this.subseries)})}inputChanged(e){this.searchTextChanged.next(e)}clearInput(){this.searchText="",this.searchForm.nativeElement.focus(),this.searchVideos()}
1expandOrMinimize(){this.isSeeMore=!this.isSeeMore}findFeaturedVideo(e){if(this.featuredVideo=e.featureVideoModel,this.featuredVideo){const e={exp:(new Date).setHours(d.$.TOKEN_EXPIRY_HOUR).toString(),contentPath:d.$.JWPLAYER_MEDIA_URL_CONTENT_PATH+this.featuredVideo.videoId};this.featuredVideoLoading=!0,this.jwplayerRestService.encodeJwt(e).subscribe(e=>{this.encodedJwt=e.data,this.featuredVideoLoading=!1})}}navigateToVideoListPage(e){this.router.navigate([l.o.VIDEOS+l.o.LIST,e.videoId,e.title.replace(/[^a-zA-Z0-9]/g,"-").replace(/\s/g,"-").toLowerCase()])}findSeriesTitle(e){var i;return null===(i=this.seriesList.find(i=>i.id===e))||void 0===i?void 0:i.displayName}findSeriesDesc(e){var i;return null===(i=this.seriesList.find(i=>i.id===e))||void 0===i?void 0:i.description}findSubseriesTitle(e){var i;return null===(i=this.subseriesVideoList.find(i=>i.subseries===e))||void 0===i?void 0:i.subseriesName}initCategoryColorCode(e){this.videoCategoryColorCode.nativeElement.style.borderLeftColor=void 0===e.bannerColor?"#BC5DBF":e.bannerColor}findLatestVideos(e){this.loadingLatest=!0,this.videoRestService.getVideoSeries(e.id,null,0,10).subscribe(i=>{i.data&&i.status===d.$.STATUS_SUCCESS?(this.latestVideos={video:i.data.result.slice(0,10),category:e.id},this.loadingLatest=!1):console.log("failed to load latest videos")})}selectHome(){window.scrollTo({top:0}),this.isHomeSelected=!0,this.isVideosSelected=!1,this.searchText="",this.subseries=null,this.genUrl("Home")}selectVideos(e){window.scrollTo({top:0}),this.isHomeSelected=!1,this.isVideosSelected=!0,this.subseries=e||null,this.selectedSort=this.selectedSortColumn&&this.selectedSortColumn===this.sortColumns[1]?this.sortMenuItems[1]:this.sortMenuItems[0],this.initFilters(),this.searchVideos()}genUrl(e){"Videos"===e?this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{subseries:this.subseries,sort:this.selectedSortColumn,q:""!==this.searchText?this.searchText:null},queryParamsHandling:"merge"}):"Home"===e&&this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{subseries:null,sort:null,q:null},queryParamsHandling:"merge"})}findSubSeriesListVideos(e){this.subseriesVideoList=[];let i=[];const t=this.seriesList.find(e=>e.id===this.series).subCategory;t.forEach(e=>{i.push(this.videoRestService.searchVideoListV3(0,0,0,10,this.tagPageSize,this.subSeriesPageSize,this.videoType,[this.series],[e.id],this.searchText,this.selectedSortColumn))}),0===t.length&&(this.loadingVideo=!1,this.noVideo=!0),(0,a.$R)(...i).subscribe(i=>{var t,s,n,o,l,a,d,r,c;this.noVideo=!0;for(let u=0;u<i.length;u++)this.subseriesVideoList.push({description:null===(n=null===(s=null===(t=i[u].data.byGeneral)||void 0===t?void 0:t.result[0])||void 0===s?void 0:s.subCategoryModel)||void 0===n?void 0:n.description,videos:null===(o=i[u].data.byGeneral)||void 0===o?void 0:o.result.slice(0,10),isLastPage:i[u].data.byGeneral.totalCounts<=5,currentPage:1,subseries:null===(a=null===(l=i[u].data.byGeneral)||void 0===l?void 0:l.result[0])||void 0===a?void 0:a.subCategoryId,subseriesName:null===(c=null===(r=null===(d=i[u].data.byGeneral)||void 0===d?void 0:d.result[0])||void 0===r?void 0:r.subCategoryModel)||void 0===c?void 0:c.displayName,series:e.id}),i[u].data.byGeneral.totalCounts>0&&(this.noVideo=!1);this.selectHomeOrVideo(),this.loadingVideo=!1})}selectHomeOrVideo(){this.activatedRoute.queryParams.subscribe(e=>{this.subseries=parseInt(e.subseries)||null,this.searchText=e.q||"",this.selectedSortColumn=e.sort||this.sortColumns[0],e.hasOwnProperty("subseries")||e.hasOwnProperty("q")||e.hasOwnProperty("sort")?this.selectVideos(this.subseries):this.selectHome()})}searchVideos(e){this.loadingAllVideos=!0,this.selectedSortColumn=this.sortColumns[this.sortMenuItems.indexOf(this.selectedSort)],e&&(this.series=e.id),0!==this.counter&&this.genUrl("Videos"),this.counter++,this.videoRestService.searchVideoListV3(0,0,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,[this.series],[this.subseries],this.searchText,this.selectedSortColumn).subscribe(e=>{e.data&&e.status!==d.$.STATUS_FAILED&&(this.result=e.data,this.initGeneralVideoList(),this.initTitleVideoList(),this.initTagVideoList(),this.initSubSeriesVideoList(),this.loadingAllVideos=!1)})}initGeneralVideoList(){var e,i,t;this.generalVideoList={videos:null===(e=this.result.byGeneral)||void 0===e?void 0:e.result,isLastPage:(null===(i=this.result.byGeneral)||void 0===i?void 0:i.totalCounts)<=(null===(t=this.result.byGeneral)||void 0===t?void 0:t.result.length),currentPage:1}}initTitleVideoList(){var e,i,t;this.titleVideoList={videos:null===(e=this.result.byTitle)||void 0===e?void 0:e.result,isLastPage:(null===(i=this.result.byTitle)||void 0===i?void 0:i.totalCounts)<=(null===(t=this.result.byTitle)||void 0===t?void 0:t.result.length),currentPage:1}}initTagVideoList(){var e,i,t;this.tagVideoList={tags:null===(e=this.result.byTags)||void 0===e?void 0:e.result,isLastPage:(null===(i=this.result.byTags)||void 0===i?void 0:i.totalCounts)<=(null===(t=this.result.byTags)||void 0===t?void 0:t.result.length),currentPage:1}}initSubSeriesVideoList(){var e;this.searchSubSeriesVideoList=[],null===(e=this.result.bySubSeries)||void 0===e||e.forEach(e
1=>{this.searchSubSeriesVideoList.push({subseriesName:e.subSeriesDisplayName,videos:e.videos.result,isLastPage:e.videos.totalCounts<=e.videos.result.length,currentPage:1,loading:!1})})}checkIsResultNotEmpty(){var e,i,t,s,n,o,l,a;return(null===(i=null===(e=this.result)||void 0===e?void 0:e.byTitle)||void 0===i?void 0:i.totalCounts)>0||(null===(s=null===(t=this.result)||void 0===t?void 0:t.byTags)||void 0===s?void 0:s.totalCounts)>0||(null===(o=null===(n=this.result)||void 0===n?void 0:n.bySubSeries)||void 0===o?void 0:o.length)>0||(null===(a=null===(l=this.result)||void 0===l?void 0:l.byGeneral)||void 0===a?void 0:a.totalCounts)>0}checkIsNonSubSeriesNotEmpty(){var e,i,t,s,n,o;return(null===(i=null===(e=this.result)||void 0===e?void 0:e.byTitle)||void 0===i?void 0:i.totalCounts)>0||(null===(s=null===(t=this.result)||void 0===t?void 0:t.byTags)||void 0===s?void 0:s.totalCounts)>0||(null===(o=null===(n=this.result)||void 0===n?void 0:n.byGeneral)||void 0===o?void 0:o.totalCounts)>0}loadMoreVideos(e,i,t){this.loadingMoreVideos=!0,""!==this.searchText?this.videoRestService.searchVideoListV3(i.currentPage,t.currentPage,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,[this.series],[this.subseries],this.searchText,this.selectedSortColumn).subscribe(e=>{var s,n,o,l,a;e.data&&e.status===d.$.STATUS_SUCCESS?(i.videos.push(...null===(s=e.data.byTitle)||void 0===s?void 0:s.result),i.isLastPage=(null===(n=e.data.byTitle)||void 0===n?void 0:n.totalCounts)<=i.videos.length,i.currentPage++,null===(o=null==t?void 0:t.tags)||void 0===o||o.push(...null===(l=e.data.byTags)||void 0===l?void 0:l.result),t.isLastPage=(null===(a=e.data.byTags)||void 0===a?void 0:a.totalCounts)<=t.tags.length,t.currentPage++,this.loadingMoreVideos=!1):console.log("failed to see all videos")}):this.videoRestService.searchVideoListV3(e.currentPage,t.currentPage,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,[this.series],[this.subseries],this.searchText,this.selectedSortColumn).subscribe(i=>{i.data&&i.status===d.$.STATUS_SUCCESS?(e.videos.push(...i.data.byGeneral.result),e.isLastPage=i.data.byGeneral.totalCounts<=e.videos.length,e.currentPage++,this.loadingMoreVideos=!1):console.log("failed to see all videos")})}loadMoreSubSeries(e){e.loading=!0,this.videoRestService.searchVideoListV3(0,0,e.currentPage,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,[this.series],[this.subseries],this.searchText,this.selectedSortColumn).subscribe(i=>{i.data&&i.status===d.$.STATUS_SUCCESS?(i.data.bySubSeries.forEach(i=>{i.subSeriesDisplayName===e.subseriesName&&(e.videos.push(...i.videos.result),e.isLastPage=i.videos.totalCounts<=e.videos.length,e.currentPage++)}),e.loading=!1):console.log("failed to see all subseries videos")})}initFilters(){this.filterMenuItems=[],this.filterMenuItems.push({seriesId:this.series,subseriesId:null,subseriesName:"All"}),this.subseriesVideoList.forEach(e=>{e.series===this.series&&this.filterMenuItems.push({seriesId:e.series,subseriesId:e.subseries,subseriesName:e.subseriesName})}),this.selectedFilter=this.subseries?this.filterMenuItems.find(e=>e.subseriesId===this.subseries).subseriesName:this.filterMenuItems[0].subseriesName}applySort(e){this.selectedSort=e,this.searchVideos()}applyFilter(e){this.selectedFilter=e.subseriesName,this.subseries=e.subseriesId,this.searchVideos()}redirect(){var e,i;this.router.navigate([l.o.VIDEOS+l.o.LIST+"/"+(null===(e=this.featuredVideo)||void 0===e?void 0:e.videoId)+"/"+(0,h.b)(null===(i=this.featuredVideo)||void 0===i?void 0:i.title)])}triggerJwPlayerAction(e){"initPlay"===e?this.insertCustomViewTemp(this.featuredVideo,this.iTvCustomViewCompleteTypeEnum.FIRST_FRAME):"completes100"===e?this.insertCustomViewTemp(this.featuredVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_100):"completes25"===e?this.insertCustomViewTemp(this.featuredVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_25):"completes50"===e?this.insertCustomViewTemp(this.featuredVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_50):"completes75"===e&&this.insertCustomViewTemp(this.featuredVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_75)}insertCustomViewTemp(e,i){if(null!==e){let t=new E.o;t.videoId=e.videoId,t.domain=u.N.url,t.completeType=i,this.ipRestService.getClientIp().subscribe(s=>{console.log("IP Address:",s),t.clientIp=s.ip,this.insertCustomViewTempApi(e,i,t)},e=>{console.error(e)},()=>{})}}insertCustomViewTempApi(e,i,t){this.customViewTempRestService.insertCustomViewTemp(t).subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&console.log(i+" view added for videoId: "+t.videoId)})}incrementVideoCustomViewsHistoryCache(e){this.videoViewsRestService.incrementVideoCustomViewsHistoryCache(e.videoId).subscribe(e=>{})}}return e.\u0275fac=function(i){return new(i||e)(v.Y36(Q.h_),v.Y36(Q.Dx),v.Y36(R.dD),v.Y36(o.F0),v.Y36(o.gz),v.Y36(m.F),v.Y36(b.C),v.Y36(Y.F),v.Y36(F.Q),v.Y36(H.x),v.Y36($.i))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-subseries-page"]],viewQuery:function(e,i){if(1&e&&(v.Gf(se,5),v.Gf(ne,5)),2&e){let e;v.iGM(e=v.CRH())&&(i.videoCategoryColorCode=e.first),v.iGM(e=v.CRH())&&(i.searchForm=e.first)}},decls:32,vars:15,consts:[[1,"bg-black-7"],[1,"opacity"],[1,"video-category-bg"],[1,"container","pt-28","series-container"],[3,"categoryList"],[3,"nzActive","nzLoading"],[1,"container","pt-5","pb-0"],[1,"vertical-line"],["videoCategoryColorCode",""],[1,"text-xl","my-0"],[1,"mt-2"],[1,"mb-3","lg:flex","lg:items-center"],["nzText","Home",1,"mr-5",3,"nzSelected","click"],["nzText","Videos",1,"mr-6",3,"nzSelected","click"],[1,"category-search-container"],[1,"search-input",3,"ngStyle","nzSuffix","nzPrefix","mouseover","mouseleave"],["name","searchForm","autocomplete","off","nz-input","","placeholder","Search title or series of your choice\u2026",3,"ngModel","ngModelChange"],["searchForm",""],["prefixTemplate",""],["suffixTemplate",""],[4,"ngIf"],["homeTemplate",""],["videosTemplate",""],[1,"material-icons-outlined","text-primary-200","search-icon"],[3,"hidden","click"],[1,"material-icons-outlined","text-black-3"],[4,"ngTemplateOutlet"],["class","grid grid-cols-24 py-4",4,"ngIf"],[1,"container"],[1,"py-4","pb-4","lg:pb-6","pt-4"],["class","text-center py-8",4,"ngIf"],[1,"grid","grid-cols-24","py-4"],[1,"col-span-24","lg:col-span-8"],[1,"rounded-t-md",3,"inputVideo","playList","outputAction"],[1,"col-span-24","lg:col-span-16","lg:mr-8"],[1,"pl-8","featured-video-info"],[1,"text-black-2","text-base","mt-0"],[1,"text-md"],["class","mt-0 link-desc",4,"ngIf"],["class","mt-0 text-base link-desc",3,"ngClass","innerHTML",4,"ngIf"],[1,"watch-btn"],[1,"w-full","sm:w-auto",3,"click"],["nz-button","","nzSize","small","nzBlock","",1,"btn-outline"],[1,"material-icons-outlined","play-icon"],[1,"mt-0","link-desc"],[3,"ngClass","innerHTML"],[3,"click"],[1,"mt-0","text-base","link-desc",3,"ngClass","innerHTML"],[1,"text-center","py-8"],["src","/assets/images/dev/video-clipart.png","alt","no-video-icon",1,"mx-auto","mb-4"],[1,"text-xl"],[1,"text-md","text-black-2"],[4,"ngFor","ngForOf"],[1,"text-lg","mb-0"],[1,"mb-10"],["class","offset-pl",4,"ngIf"],[1,"offset-pl"],[3,"videos","enabled"],["class","grid grid-cols-24",4,"ngIf"],["class","",4,"ngIf"],[1,"grid","grid-cols-24"],[1,"col-span-24","lg:col-span-24"],["nzAlign","middle"],[1,"leading-4"],[1,"link"],[1,"all-videos-link-wrapper"],[1,"all-videos-right-icon","font-semibold","material-icons-outlined","text-sm","ml-2"],[1,"all-videos-text","font-semibold",3,"click"],[1,"font-semibold","material-icons-outlined","text-sm"],[1,"col-span-24","lg:col-span-24","text-desc"],[1,"text-sm","mb-0"],[1,""],[1,"mt-5"],["nzJustify","start"],["nz-dropdown","",1,"flex","mr-10",3,"nzDropdownMenu"],[1,"material-icons-outlined","text-desc","mr-1"],[1,"text-desc","mr-2"],[1,"font-semibold",3,"ngModel","ngModelChange"],["sortMenu","nzDropdownMenu"],["nz-menu","","nzSelectable",""],["nz-menu-item","",3,"ngClass","click",4,"ngFor","ngForOf"],["nz-dropdown","",1,"flex",3,"nzDropdownMenu"],["filterMenu","nzDropdownMenu"],[3,"nzActive",4,"ngIf"],[1,"pb-10"],["noResultBlock",""],["class","mt-4",4,"ngIf"],["nz-menu-item","",3,"ngClass","click"],[3,"nzActive"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["class","mb-10",4,"ngIf"],["nzJustify","center"],["nz-button","","class","mt-4 btn-outline","nzSize","small",3,"click",4,"ngIf"],["nzCategoryLink","/videos",3,"nzDate","nzLink","nzImage","nzTitle","video","nzDuration","nzView","searchText"],["nzCategoryLink","/videos",3,"nzType","nzDate","nzLink","nzImage","nzTitle","video","nzDuration","nzView","tagName"],["nz-button","","nzSize","small",1,"mt-4","btn-outline",3,"click"],[1,"px-3","text-center","no-result"],["src","/assets/images/dev/video-clipart.png","alt","no-result-icon",1,"mx-auto","mb-2"],[1,"mt-4"],[1,"font-semibold",3,"innerHTML"],[1,"mb-10","grid","grid-cols-1","sm:grid-cols-2","md:grid-cols-3","lg:grid-cols-4","xl:grid-cols-5","gap-8","md:px-0","
1sm:gap-4"],["nz-button","","class","my-4 btn-outline","nzSize","small",3,"click",4,"ngIf"],["nzCategoryLink","/videos",3,"nzDate","nzLink","nzImage","nzTitle","video","nzDuration","nzView"],["nz-button","","nzSize","small",1,"my-4","btn-outline",3,"click"]],template:function(e,i){if(1&e&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v.TgZ(2,"div",2),v.TgZ(3,"div",3),v._UZ(4,"ui-video-category-list",4),v._UZ(5,"nz-skeleton",5),v.qZA(),v.qZA(),v.TgZ(6,"div"),v.TgZ(7,"div",6),v.TgZ(8,"div",7,8),v.TgZ(10,"h1",9),v._uU(11),v.qZA(),v.TgZ(12,"p",10),v._uU(13),v.qZA(),v.qZA(),v.TgZ(14,"div",11),v.TgZ(15,"ui-chipbar",12),v.NdJ("click",function(){return i.selectHome()}),v.qZA(),v.TgZ(16,"ui-chipbar",13),v.NdJ("click",function(){return i.selectVideos()}),v.qZA(),v.TgZ(17,"div",14),v.TgZ(18,"nz-form-control"),v.TgZ(19,"nz-input-group",15),v.NdJ("mouseover",function(){return i.isHover=!0})("mouseleave",function(){return i.isHover=!1}),v.TgZ(20,"input",16,17),v.NdJ("ngModelChange",function(e){return i.inputChanged(e)})("ngModelChange",function(e){return i.searchText=e}),v.qZA(),v.qZA(),v.YNc(22,oe,2,0,"ng-template",null,18,v.W1O),v.YNc(24,le,3,1,"ng-template",null,19,v.W1O),v.qZA(),v.qZA(),v.qZA(),v.YNc(26,de,2,1,"div",20),v.YNc(27,ce,2,1,"div",20),v.qZA(),v.qZA(),v.YNc(28,Ve,6,5,"ng-template",null,21,v.W1O),v.YNc(30,Ee,30,11,"ng-template",null,22,v.W1O),v.qZA()),2&e){const e=v.MAs(23),t=v.MAs(25);v.xp6(4),v.Q6J("categoryList",i.seriesList),v.xp6(1),v.Q6J("nzActive",!0)("nzLoading",i.loadingSeries),v.xp6(6),v.Oqu(i.findSeriesTitle(i.series)),v.xp6(2),v.Oqu(i.findSeriesDesc(i.series)),v.xp6(2),v.Q6J("nzSelected",i.isHomeSelected),v.xp6(1),v.Q6J("nzSelected",i.isVideosSelected),v.xp6(3),v.Q6J("ngStyle",v.VKq(13,De,i.isHomeSelected&&!i.isHover?"hidden":"visible"))("nzSuffix",t)("nzPrefix",e),v.xp6(1),v.Q6J("ngModel",i.searchText),v.xp6(6),v.Q6J("ngIf",i.isHomeSelected),v.xp6(1),v.Q6J("ngIf",i.isVideosSelected)}},directives:[x.j,S.ng,B.G,L.t3,W.Fd,A.w,G.gB,G.ke,Z.PC,G.Zp,j.Fj,j.JJ,j.On,Z.O5,Z.tP,K.t,C.ix,y.dQ,Z.mk,Z.sg,V.r,L.SK,X.Ws,X.cm,X.RR,ee.wO,ee.r9,ie.r],pipes:[te.f],styles:[".opacity[_ngcontent-%COMP%]{height:60px;width:100%;background-image:linear-gradient(#2e2e30,#080e3000);z-index:1;position:absolute}.video-category-bg[_ngcontent-%COMP%]{background:linear-gradient(180deg,#17171733 0,#0000 50%,var(--black-7) 100%),linear-gradient(78deg,#5b3db7 0,#a344b4 52%,#e22b9c 100%)}.series-container[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.vertical-line[_ngcontent-%COMP%]{border-left:8px solid #bc5dbf;padding:0 1rem;margin-bottom:40px}@media screen and (min-width: 992px){.featured-video-info[_ngcontent-%COMP%]{position:relative;min-height:270px}}.category-search-container[_ngcontent-%COMP%]{width:100%}.category-search-container[_ngcontent-%COMP%] .ant-input{transition:none}.category-search-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .category-search-container[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]:hover{visibility:visible}@media screen and (min-width: 768px){.category-search-container[_ngcontent-%COMP%]{width:60%}}@media screen and (min-width: 992px){.category-search-container[_ngcontent-%COMP%]{width:40%}}[_nghost-%COMP%] .highlight{color:var(--brand-primary-200)}.all-videos-link-wrapper[_ngcontent-%COMP%]:hover .all-videos-right-icon[_ngcontent-%COMP%]{visibility:hidden}.all-videos-link-wrapper[_ngcontent-%COMP%]:hover .all-videos-text[_ngcontent-%COMP%]{visibility:visible;margin-left:-.5rem}.all-videos-text[_ngcontent-%COMP%]{visibility:hidden}.featured-video-bg[_ngcontent-%COMP%]{min-height:463px;background-repeat:no-repeat;background-size:cover;filter:brightness(85%)}.play-icon[_ngcontent-%COMP%]{font-size:15px}.subseries-title[_ngcontent-%COMP%]{line-height:32px;padding-top:40px}@media (min-width: 576px){.subseries-title[_ngcontent-%COMP%]{line-height:normal}}.dropdown-selected[_ngcontent-%COMP%]{color:var(--brand-primary-200);background:var(--black-7)}.desc[_ngcontent-%COMP%]{white-space:pre-line}"]}),e})();var Re=t(240),Ye=t(9595),Fe=t(9157),He=t(1644),$e=t(1131),Be=t(9484),We=t(3203),Ge=t(1729),je=t(7850),Ke=t(4456),Xe=t(5701);function ei(e,i){1&e&&v._UZ(0,"nz-spin",37)}function ii(e,i){1&e&&v._UZ(0,"nz-spin")}function ti(e,i){if(1&e&&(v.TgZ(0,"div",35),v.YNc(1,ei,1,0,"nz-spin",36),v.YNc(2,ii,1,0,"nz-spin",20),v.qZA()),2&e){const e=v.oxw();v.xp6(1),v.Q6J("ngIf",e.window.innerWidth>=992),v.xp6(1),v.Q6J("ngIf",e.window.innerWidth<992)}}const si=function(e){return[e]},ni=function(){return[]};function oi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"ui-jw-player",38),v.NdJ("outputAction",function(i){return v.CHM(e),v.oxw().triggerJwPlayerAction(i)}),v.qZA()}if(2&e){const e=v.oxw();v.Q6J("mode",e.iJwplayerModeEnum.VIDEO)("inputVideo",e.selectedVideo)("action",e.currentVideoAction)("playList",e.selectedVideo?v.VKq(4,si,e.appConstant.JWPLAYER_MEDIA_URL+(null==e.selectedVideo?null:e.selectedVideo.videoId)+"?token="+e.encodedJwt):v.DdM(6,ni))}}function li(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"p",39),v._UZ(1,"span",40),v.ALo(2,"truncateHtml"),v.TgZ(3,"a",41),v.NdJ("click",function(){return v.CHM(e),v.oxw().expandOrMinim
1ize()}),v._uU(4),v.qZA(),v.qZA()}if(2&e){const e=v.oxw();v.xp6(1),v.Q6J("innerHTML",e.isSeeMore?v.xi3(2,2,null==e.selectedVideo?null:e.selectedVideo.description,200):null==e.selectedVideo?null:e.selectedVideo.description,v.oJD),v.xp6(3),v.hij(" ",e.isSeeMore?"See More":"See Less"," ")}}function ai(e,i){if(1&e&&v._UZ(0,"p",42),2&e){const e=v.oxw();v.Q6J("innerHTML",null==e.selectedVideo?null:e.selectedVideo.description,v.oJD)}}function di(e,i){1&e&&(v.TgZ(0,"div",49),v._uU(1,"Like this video?"),v.qZA(),v.TgZ(2,"div",50),v._uU(3,"Sign in to make your opinion count."),v.qZA())}function ri(e,i){1&e&&(v.TgZ(0,"div",49),v._uU(1,"Want to watch this again later?"),v.qZA(),v.TgZ(2,"div",50),v._uU(3,"Sign in to add this video into your saved list."),v.qZA())}const ci=function(e,i){return{"material-icons":e,"material-icons-outlined":i}};function ui(e,i){if(1&e){const e=v.EpF();v.ynx(0),v.TgZ(1,"nz-spin",43),v.TgZ(2,"div",44),v.NdJ("click",function(){return v.CHM(e),v.oxw().likeOrUnlikeVideo()})("nzOnConfirm",function(){return v.CHM(e),v.oxw().goToSignIn()}),v.YNc(3,di,4,0,"ng-template",null,45,v.W1O),v.TgZ(5,"span",46),v._uU(6," thumb_up "),v.qZA(),v.TgZ(7,"span",47),v._uU(8),v.qZA(),v.qZA(),v.qZA(),v.TgZ(9,"nz-spin",43),v.TgZ(10,"div",44),v.NdJ("click",function(){return v.CHM(e),v.oxw().saveOrUnsaveVideo()})("nzOnConfirm",function(){return v.CHM(e),v.oxw().goToSignIn()}),v.YNc(11,ri,4,0,"ng-template",null,48,v.W1O),v.TgZ(13,"span",46),v._uU(14," bookmark_add "),v.qZA(),v._uU(15," Save "),v.qZA(),v.qZA(),v.BQk()}if(2&e){const e=v.MAs(4),i=v.MAs(12),t=v.oxw();v.xp6(1),v.Q6J("nzSpinning",t.likeLoading),v.xp6(1),v.Q6J("nzPopconfirmTitle",e)("nzOkText","Sign In")("nzCancelText","Remind Me Later"),v.xp6(3),v.Q6J("ngClass",v.WLB(11,ci,t.isLiked,!t.isLiked)),v.xp6(3),v.Oqu(null===t.likeCount?0:t.likeCount),v.xp6(1),v.Q6J("nzSpinning",t.saveLoading),v.xp6(1),v.Q6J("nzPopconfirmTitle",i)("nzOkText","Sign In")("nzCancelText","Remind Me Later"),v.xp6(3),v.Q6J("ngClass",v.WLB(14,ci,t.isSaved,!t.isSaved))}}const gi=function(e,i){return{"material-icons text-accent-1":e,"material-icons-outlined":i}},hi=function(e){return{"text-accent-1":e}},pi=function(e,i){return{"material-icons text-accent-1":e,"material-icons-outlined":i}};function vi(e,i){if(1&e){const e=v.EpF();v.ynx(0),v.TgZ(1,"nz-spin",43),v.TgZ(2,"div",51),v.NdJ("click",function(){return v.CHM(e),v.oxw().likeOrUnlikeVideo()}),v.TgZ(3,"span",46),v._uU(4,"thumb_up "),v.qZA(),v.TgZ(5,"span",52),v._uU(6),v.qZA(),v.qZA(),v.qZA(),v.TgZ(7,"nz-spin",43),v.TgZ(8,"div",53),v.NdJ("click",function(){return v.CHM(e),v.oxw().handleAddPlaylistModalVisible()}),v.TgZ(9,"span",46),v._uU(10," bookmark_add "),v.qZA(),v.TgZ(11,"span",52),v._uU(12),v.qZA(),v.qZA(),v.qZA(),v.BQk()}if(2&e){const e=v.oxw();v.xp6(1),v.Q6J("nzSpinning",e.likeLoading),v.xp6(2),v.Q6J("ngClass",v.WLB(8,gi,e.isLiked,!e.isLiked)),v.xp6(2),v.Q6J("ngClass",v.VKq(11,hi,e.isLiked)),v.xp6(1),v.Oqu(null===e.likeCount?0:e.likeCount),v.xp6(1),v.Q6J("nzSpinning",e.saveLoading),v.xp6(2),v.Q6J("ngClass",v.WLB(13,pi,e.isSaved,!e.isSaved)),v.xp6(2),v.Q6J("ngClass",v.VKq(16,hi,e.isSaved)),v.xp6(1),v.Oqu(e.isSaved?"Saved":"Save")}}function mi(e,i){if(1&e&&(v.TgZ(0,"p",58),v._uU(1),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.Oqu(e.videoList.totalCount+" Video(s)")}}function bi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"p",59),v._uU(1),v.TgZ(2,"a",60),v.NdJ("click",function(){return v.CHM(e),v.oxw(2).exp
1andOrMinimizeSubSeriesDesc()}),v._uU(3),v.qZA(),v.qZA()}if(2&e){const e=v.oxw(2);v.xp6(1),v.hij(" ",e.isSubSeriesDescSeeMore?null==e.selectedVideo||null==e.selectedVideo.subCategoryModel?null:e.selectedVideo.subCategoryModel.description.substr(0,150):null==e.selectedVideo||null==e.selectedVideo.subCategoryModel?null:e.selectedVideo.subCategoryModel.description," "),v.xp6(2),v.Oqu(e.isSubSeriesDescSeeMore?"see more":"see less")}}function fi(e,i){if(1&e&&(v.TgZ(0,"p",59),v._uU(1),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.hij(" ",null==e.selectedVideo||null==e.selectedVideo.subCategoryModel?null:e.selectedVideo.subCategoryModel.description," ")}}function Ti(e,i){if(1&e&&(v.ynx(0),v.TgZ(1,"h3",54),v._uU(2),v.TgZ(3,"span",55),v._uU(4),v.qZA(),v.qZA(),v.YNc(5,mi,2,1,"p",56),v.YNc(6,bi,4,2,"p",57),v.YNc(7,fi,2,1,"p",57),v.BQk()),2&e){const e=v.oxw();v.xp6(2),v.Oqu((null==e.selectedVideo||null==e.selectedVideo.categoryModel?null:e.selectedVideo.categoryModel.displayName)+" - "),v.xp6(2),v.Oqu(null==e.selectedVideo||null==e.selectedVideo.subCategoryModel?null:e.selectedVideo.subCategoryModel.displayName),v.xp6(1),v.Q6J("ngIf",e.videoList&&e.videoList.videos.length>0),v.xp6(1),v.Q6J("ngIf",(null==e.selectedVideo||null==e.selectedVideo.subCategoryModel||null==e.selectedVideo.subCategoryModel.description?null:e.selectedVideo.subCategoryModel.description.length)>150),v.xp6(1),v.Q6J("ngIf",(null==e.selectedVideo||null==e.selectedVideo.subCategoryModel||null==e.selectedVideo.subCategoryModel.description?null:e.selectedVideo.subCategoryModel.description.length)<=150)}}function xi(e,i){if(1&e&&(v.TgZ(0,"p",62),v._uU(1),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.hij(" ",e.selectedPlayList.playListVideos.length+" Video(s)"," ")}}function Si(e,i){if(1&e&&(v.ynx(0),v.TgZ(1,"h3",54),v._uU(2),v.qZA(),v.YNc(3,xi,2,1,"p",61),v.BQk()),2&e){const e=v.oxw();v.xp6(2),v.Oqu(e.selectedPlayList.playListName),v.xp6(1),v.Q6J("ngIf",e.selectedPlayList.playListVideos&&e.selectedPlayList.playListVideos.length>0)}}function Zi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"ui-info-list",66),v.NdJ("iconEmitter",function(i){return v.CHM(e),v.oxw(3).pauseOrPlayVideo(i)})("selectedVideoEmitter",function(i){return v.CHM(e),v.oxw(3).redirect(i)}),v.qZA()}if(2&e){const e=v.oxw().$implicit,i=v.oxw(2);v.Q6J("videoModel",e)("currentVideoID",i.currentVideoID)}}function Vi(e,i){if(1&e&&(v.TgZ(0,"div"),v.YNc(1,Zi,1,2,"ui-info-list",65),v._UZ(2,"hr"),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.Q6J("ngIf",!e.videoListLoading)}}function Li(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",67),v.NdJ("click",function(){return v.CHM(e),v.oxw(2).getMoreVideos()}),v._uU(1,"See More"),v.qZA()}}function Ci(e,i){if(1&e&&(v.ynx(0),v.YNc(1,Vi,3,1,"div",31),v.TgZ(2,"nz-row",63),v.YNc(3,Li,2,0,"button",64),v.qZA(),v.BQk()),2&e){const e=v.oxw();v.xp6(1),v.Q6J("ngForOf",null==e.videoList?null:e.videoList.videos),v.xp6(2),v.Q6J("ngIf",!(null!=e.videoList&&e.videoList.isLastPage))}}function yi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"ui-info-list",66),v.NdJ("iconEmitter",function(i){return v.CHM(e),v.oxw(3).pauseOrPlayVideo(i)})("selectedVideoEmitter",function(i){return v.CHM(e),v.oxw(3).redirect(i)}),v.qZA()}if(2&e){const e=v.oxw().$implicit,i=v.oxw(2);v.Q6J("videoModel",e)("currentVideoID",i.currentVideoID)}}function Ai(e,i){if(1&e&&(v.TgZ(0,"div"),v.YNc(1,yi,1,2,"ui-info-list",65),v._UZ(2,"hr"),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.Q6J("ngIf",!e.videoListLoading)}}function Ii(e,i){if(1&e&&(v.ynx(0),v.YNc(1,Ai,3,1,"div",31),v.BQk()),2&e){const e=v.oxw();v.xp6(1),v.Q6J("ngForOf",e.selectedPlayList.playListVideos)}}function zi(e,i){if(1&e&&v._UZ(0,"nz-skeleton",68),2&e){const e=v.oxw();v.Q6J("nzActive",!0)("nzLoading",e.loadingVideo)}}function wi(e,i){if(1&e&&(v.TgZ(0,"div"),v.TgZ(1,"div",74),v.TgZ(2,"a",75),v.TgZ(3,"span",76),v.TgZ(4,"span",77),v._uU(5,"chevron_right"),v.qZA(),v.TgZ(6,"a",78),v._uU(7," More Videos "),v.TgZ(8,"span",79),v._uU(9,"chevron_right"),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA()),2&e){const e=v.oxw(2).$implicit,i=v.oxw();v.xp6(6),v.Q6J("routerLink",null!=i.params&&i.params.title?"../../../"+i.routeConstant.SERIES+"/"+e.id+"/"+i.convertTitle(e.dis
1playName):"../../"+i.routeConstant.SERIES+"/"+e.id+"/"+i.convertTitle(e.displayName))}}function Mi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"div",80),v.TgZ(1,"ui-video-card-list",81),v.NdJ("outputAction",function(i){return v.CHM(e),v.oxw(3).redirectForeMoreSeries(i)}),v.qZA(),v.qZA()}if(2&e){const e=v.oxw(2).$implicit;v.xp6(1),v.Q6J("enabled",!0)("videos",e.video.slice(0,10))}}function _i(e,i){if(1&e&&(v.ynx(0),v.TgZ(1,"nz-row",69),v.TgZ(2,"h2",70),v._uU(3),v.qZA(),v.YNc(4,wi,10,1,"div",20),v.qZA(),v.TgZ(5,"div",6),v.TgZ(6,"div",71),v.TgZ(7,"p",72),v._uU(8),v.qZA(),v.qZA(),v.qZA(),v.YNc(9,Mi,2,2,"div",73),v.BQk()),2&e){const e=v.oxw().$implicit;v.xp6(3),v.Oqu(e.displayName),v.xp6(1),v.Q6J("ngIf",(null==e||null==e.video?null:e.video.length)>10),v.xp6(4),v.Oqu(e.description),v.xp6(1),v.Q6J("ngIf",e.video.length>0)}}function ki(e,i){if(1&e&&(v.ynx(0),v.YNc(1,_i,10,4,"ng-container",20),v.BQk()),2&e){const e=i.$implicit;v.xp6(1),v.Q6J("ngIf",(null==e||null==e.video?null:e.video.length)>0)}}const qi=function(e){return{desc:e}};Ye.ZP.use([Ye.eZ]);let Pi=(()=>{class e{constructor(e,i,t,s,n,o,a,r,c,g,h,p,v){this.videoRestService=e,this.videoViewsRestService=i,this.customViewTempRestService=t,this.jwplayerRestService=s,this.categoryRestService=n,this.socialRestService=o,this.activatedRoute=a,this.metaService=r,this.titleService=c,this.router=g,this.messageService=h,this.store=p,this.ipRestService=v,this.iTvCustomViewCompleteTypeEnum=D.d,this.slides=Array.from({length:600}).map((e,i)=>`Slide ${i+1}`),this.isLiked=!1,this.isSaved=!1,this.likeCount=0,this.seriesList=[],this.shareLink=u.N.url+l.o.VIDEOS+l.o.LIST+"/",this.shareFb=d.$.VIDEOS_FB_LINK+u.N.url+l.o.VIDEOS+l.o.LIST+"/",this.shareTw=d.$.VIDEOS_TWITTER_LINK+u.N.url+l.o.VIDEOS+l.o.LIST+"/",this.shareTe=d.$.VIDEOS_TELEGRAM_LINK+u.N.url+l.o.VIDEOS+l.o.LIST+"/",this.shareWa=d.$.VIDEOS_WA_LINK+u.N.url+l.o.VIDEOS+l.o.LIST+"/",this.isSeeMore=!0,this.isSubSeriesDescSeeMore=!0,this.isVisible=!1,this.appConstant=d.$,this.encodedJwt="",this.playerLoading=!0,this.videoListLoading=!0,this.loadingVideo=!0,this.likeLoading=!1,this.saveLoading=!1,this.routeConstant=l.o,this.iJwplayerModeEnum=Re.G,this.currentVideoAction="",this.window=window,this.environment=u.N,this.playListId="",this.isAddPlaylistModalVisible=!1,this.createNewPlayListModalVisible=!1,this.isCreateNewPlaylistShowBack=!1,this.playlists=[],this.tickedPlaylists=[],this.isLoop=!1,this.clientIpAddress=""}ngOnInit(){this.params=this.activatedRoute.snapshot.params,this.currentVideoID=this.activatedRoute.snapshot.paramMap.get("videoID"),this.playListId=this.activatedRoute.snapshot.queryParamMap.get("playListId"),this.isLoggedIn()&&this.playListId&&this.initPlaylist(),this.getLikeCount(),this.getVideoInfo(),this.activatedRoute.params.subscribe(e=>{this.params!=e&&(this.currentVideoID=this.activatedRoute.snapshot.paramMap.get("videoID"),this.getLikeCount(),this.getVideoInfo())})}initPlaylist(){this.socialRestService.readPlaylist(0,1,this.playListId).subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&(this.selectedPlayList=e.data&&e.data.result[0],this.socialRestService.readVideosInPlaylistV2(parseInt(this.playListId)).subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&(this.selectedPlayList.playListVideos=e.data)}))})}handleNewplaylistModalVisible(e=!1){this.createNewPlayListModalVisible=!0,this.isCreateNewPlaylistShowBack=e,this.isAddPlaylistModalVisible=!1}setMetaTag(e){this.titleService.setTitle(e.title)}pauseOrPlayVideo(e){this.currentVideoAction=e}getVideoInfo(){this.videoRestService.getVideoInfo(this.activatedRoute.snapshot.paramMap.get("videoID")).subscribe(e=>{this.selectVideo(e.data),this.isLoggedIn()&&this.socialRestService.createWatchedHistory(this.currentVideoID).subscribe(),this.setMetaTag(e.data)}),this.loadingVideo=!0,this.categoryRestService.getCategory(!1).subscribe(e=>{this.seriesList=e.data;let i=[];this.seriesList.forEach(e=>{i.push(this.videoRestService.getVideoSeries(e.id,null,0,11))}),(0,a.$R)(...i).subscribe(e=>{for(let i=0;i<this.seriesList.length;i++)this.seriesList[i].video=e[i].data.result,this.seriesList[i].video=this.seriesList[i].video.filter(e=>{var i;return(null==e?void 0:e.videoId)!==(null===(i=this.selectedVideo)||void 0===i?void 0:i.videoId)});this.loadingVideo=!1})})}convertToEllipsis(e,i){return(null==e?void 0:e.length)>i?function(e,i){return e.substr(0,i)+"..."}(e,i):e}
1expandOrMinimize(){this.isSeeMore=!this.isSeeMore}expandOrMinimizeSubSeriesDesc(){this.isSubSeriesDescSeeMore=!this.isSubSeriesDescSeeMore}searchVideo(e,i){const t=i;t.loading=!0,this.videoRestService.getVideoSeries(i.id,null,e.currentPage,e.pageSize).subscribe(e=>{let s=this.seriesList.find(e=>e.displayName===i.displayName);s.video=(0,c.o)(s.video.concat(e.data.result),"videoId"),t.loading=!1,i=(0,r.p)(t)})}showModal(){this.isVisible=!0}watchAll(){this.isLoop=!this.isLoop}redirect(e){window.location.href=u.N.url+l.o.VIDEOS+l.o.LIST+"/"+e.videoId+"/"+this.convertTitle(e.title)+(null!==this.playListId?"?playListId="+this.playListId:"")}redirectForeMoreSeries(e){this.selectedPlayList=null,this.playListId=null}selectVideo(e){this.setMetaTag(e),this.playerLoading=!0,this.videoListLoading=!0,this.currentVideoID=null==e?void 0:e.videoId,this.checkIsVideoLiked(),this.checkIsVideoSaved(),this.series=e.categoryId,this.subseries=null==e?void 0:e.subCategoryId,this.videoRestService.getVideoSeries(this.series,this.subseries,0,100).subscribe(e=>{this.videoList={videos:e.data.result,currentPage:1,isLastPage:e.data.totalCounts<=100,totalCount:e.data.totalCounts},this.videoListLoading=!1});const i={exp:(new Date).setHours(d.$.TOKEN_EXPIRY_HOUR).toString(),contentPath:d.$.JWPLAYER_MEDIA_URL_CONTENT_PATH+(null==e?void 0:e.videoId)};this.jwplayerRestService.encodeJwt(i).subscribe(i=>{this.selectedVideo=e,this.encodedJwt=i.data,this.playerLoading=!1})}convertDate(e){return(0,Fe.f)(e,!1,!1)}likeOrUnlikeVideo(){this.isLoggedIn()&&(this.likeLoading=!0,this.isLiked?this.socialRestService.deleteLike(this.currentVideoID).subscribe(e=>{e.data&&(this.isLiked=!1,this.messageService.remove(),this.messageService.success("You've unliked the video"),this.getLikeCount()),this.likeLoading=!1}):this.socialRestService.createLike(this.currentVideoID).subscribe(e=>{e.data&&(this.isLiked=!0,this.messageService.remove(),this.messageService.success("You've liked the video"),this.getLikeCount()),this.likeLoading=!1}))}saveOrUnsaveVideo(){this.isLoggedIn()&&(this.saveLoading=!0,this.isSaved?this.socialRestService.deleteSaved(this.currentVideoID).subscribe(e=>{e.data&&(this.isSaved=!1,this.messageService.remove(),this.messageService.success("You've unsaved the video")),this.saveLoading=!1}):this.socialRestService.createSaved(this.currentVideoID).subscribe(e=>{e.data&&(this.isSaved=!0,this.messageService.remove(),this.messageService.success("You've saved the video")),this.saveLoading=!1}))}getLikeCount(){this.likeLoading=!0,this.socialRestService.getLikeCount(this.currentVideoID).subscribe(e=>{this.likeCount=e.data,this.likeLoading=!1})}checkIsVideoSaved(){this.isLoggedIn()&&(this.saveLoading=!0,this.socialRestService.checkSaved(this.currentVideoID).subscribe(e=>{this.isSaved=void 0!==e.data,this.checkIsVideoSavedInPlaylist()}))}checkIsVideoSavedInPlaylist(){let e=[];this.socialRestService.readPlaylist(0,d.$.MAXIMUM_PAGE_SIZE).subscribe(i=>{var t,s;this.playlists=[],null===(s=null===(t=null==i?void 0:i.data)||void 0===t?void 0:t.result)||void 0===s||s.forEach(i=>{var t;this.playlists.push({label:i.playListName,value:i.playListId,checked:!1}),e.push(this.socialRestService.readVideosInPlaylistV2(i.playListId,null===(t=this.selectedVideo)||void 0===t?void 0:t.videoId))}),e.length>0?(0,a.$R)(...e).subscribe(e=>{var i,t;this.saveLoading=!1;for(let s=0;s<e.length;s++)if((null===(t=null===(i=e[s])||void 0===i?void 0:i.data)||void 0===t?void 0:t.length)>0)return void(this.isSaved=e[s].data.length>0)}):this.saveLoading=!1})}checkIsVideoLiked(){this.isLoggedIn()&&(this.likeLoading=!0,this.socialRestService.checkLike(this.currentVideoID).subscribe(e=>{this.isLiked=void 0!==e.data,this.getLikeCount(),this.likeLoading=!1}))}isLoggedIn(){return this.store.selectSnapshot(g.jq.getAccessToken)}goToSignIn(){this.router.navigate([l.o.SIGN_IN])}handleAddPlaylistModalVisible(){this.isAddPlaylistModalVisible=!0,this.createNewPlayListModalVisible=!1}tickPlaylists(e){this.tickedPlaylists=(0,r.p)(e)}addToPlaylistModalVisibleChg(e){this.createNewPlayListModalVisible=!1,this.isAddPlaylistModalVisible=e}getMoreVideos(){this.videoListLoading=!0,this.videoRestService.getVideoSeries(this.series,this.subseries,this.videoList.currentPage,100).subscribe(e=>{this.videoList.videos.push(...e.data.result),this.videoList.currentPage++,this.videoList.isLastPage=e.data.totalCounts<=100+100*this.videoList.currentPage,this.videoListLoading=!1})}convertTitle(e){return(0,h.b)(e)}
1triggerJwPlayerAction(e){"initPlay"===e?this.insertCustomViewTemp(this.selectedVideo,this.iTvCustomViewCompleteTypeEnum.FIRST_FRAME):"completes100"===e?this.insertCustomViewTemp(this.selectedVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_100):"completes25"===e?this.insertCustomViewTemp(this.selectedVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_25):"completes50"===e?this.insertCustomViewTemp(this.selectedVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_50):"completes75"===e&&this.insertCustomViewTemp(this.selectedVideo,this.iTvCustomViewCompleteTypeEnum.COMPLETES_75)}insertCustomViewTemp(e,i){if(null!==e){let t=new E.o;t.videoId=e.videoId,t.domain=u.N.url,t.completeType=i,this.ipRestService.getClientIp().subscribe(s=>{console.log("IP Address:",s),t.clientIp=s.ip,this.insertCustomViewTempApi(e,i,t)},e=>{console.error(e)},()=>{})}}insertCustomViewTempApi(e,i,t){this.customViewTempRestService.insertCustomViewTemp(t).subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&console.log(i+" view added for videoId: "+t.videoId)})}incrementVideoCustomViewsHistoryCache(e){this.videoViewsRestService.incrementVideoCustomViewsHistoryCache(e.videoId).subscribe(e=>{})}}return e.\u0275fac=function(i){return new(i||e)(v.Y36(b.C),v.Y36(Y.F),v.Y36(F.Q),v.Y36(H.x),v.Y36(m.F),v.Y36(He.w),v.Y36(o.gz),v.Y36(Q.h_),v.Y36(Q.Dx),v.Y36(o.F0),v.Y36(R.dD),v.Y36(T.yh),v.Y36($.i))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-video-list-page"]],decls:47,vars:33,consts:[[1,"main-nav-placeholder","bg-black-6"],[1,"grid","grid-cols-24","lg:container"],[1,"col-span-24","lg:col-span-17","xl:col-span-18","pt-0","lg:pt-6"],["class","loading-skeleton flex justify-center items-center",4,"ngIf"],["class","w-full",3,"mode","inputVideo","action","playList","outputAction",4,"ngIf"],[1,"py-5","pr-5","pl-3","lg:pl-0"],[1,"grid","grid-cols-24"],[1,"col-span-24"],["target","_blank",1,"hover:no-underline",3,"href"],[1,"font-normal","mb-1","text-warning","hover:underline"],[1,"text-lg","mb-0"],[1,"text-black-2"],[1,"col-span-24","lg:col-span-22","break-word-container","link-desc",3,"ngClass"],["class","mt-4",4,"ngIf"],["class","mt-4",3,"innerHTML",4,"ngIf"],[1,"flex","justify-between","items-start","lg:justify-end","lg:items-end","h-full"],[1,"w-auto"],["nz-button","","nzSize","small","nzBlock","",1,"text-xs","btn-outline",3,"click"],[1,"material-icons-outlined","text-sm","mr-3"],[1,"flex"],[4,"ngIf"],[1,"col-span-24","lg:col-span-7","xl:col-span-6","pt-0","lg:pt-6"],[1,"relative","h-full","overflow-x-hidden","overflow-y-scroll","scrollbar-hide","bg-black-7"],[1,"bg-black-6","pt-4","px-2"],[1,"overflow-x-hidden","video-list-wrapper","scrollbar-hide","bg-black-7"],[1,"video-list","scrollbar-hide"],[1,"pl-4","pr-8",3,"nzActive","nzLoading"],[1,"container"],[1,"mb-6"],[1,"text-xl","mb-2"],["class","pb-9",3,"nzActive","nzLoading",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzVisible","shareLink","shareFbLink","shareTwLink","shareTeLink","shareWaLink","nzVisibleChange"],[3,"nzVisible","video","nzVisibleChange","nzAddNewPlayListModalVisibleChange","tickPlaylistsEvent"],[3,"nzVisible","video","playlists","isShowBack","nzVisibleChange","backClicked","nzAddToPlayListModalVisibleChange"],[1,"loading-skeleton","flex","justify-center","items-center"],["nzSize","large",4,"ngIf"],["nzSize","large"],[1,"w-full",3,"mode","inputVideo","action","playList","outputAction"],[1,"mt-4"],[3,"innerHTML"],[3,"click"],[1,"mt-4",3,"innerHTML"],[3,"nzSpinning"],["nz-popconfirm","","nzPopconfirmPlacement","topCenter","nz-button","",1,"cursor-pointer","ml-6",3,"nzPopconfirmTitle","nzOkText","nzCancelText","click","nzOnConfirm"],["likeTemplate",""],[1,"material-icons","pb-1",3,"ngClass"],[1,"p-1"],["saveTemplate",""],[1,"font-bold","mb-3"],[1,"text-sm"],["nzPopconfirmPlacement","topLeft","nz-button","",1,"cursor-pointer","ml-6",3,"click"],[1,"p-1",3,"ngClass"],["nz-button","",1,"cursor-pointer","ml-6",3,"click"],[1,"mb-0"],[1,"text-purple"],["class","mb-0 text-desc text-sm",4,"ngIf"],["class","py-2 mb-0 text-desc text-xs",4,"ngIf"],[1,"mb-0","text-desc","text-sm"],[1,"py-2","mb-0","text-desc","text-xs"],[1,"link",3,"click"],["class","py-2 text-desc text-sm",4,"ngIf"],[1,"py-2","text-desc","text-sm"],["nzJustify","center"],["nz-button","","class","mt-4 mb-4 btn-outline","nzSize","small",3,"click",4,"ngIf"],[3,"videoModel","currentVideoID","iconEmitter","selectedVideoEmitter",4,"ngIf"],[3,"videoModel","currentVideoID","iconEmitter","selectedVideoEmitter"],["nz-button","","nzSize","small",1,"mt-4","mb-4","btn-outline",3,"click"],[1,"pb-9",3,"nzActive","nzLoading"],["nzAlign","middle"],[1,"mb-0","text-lg"],[1,"col-span-24","lg:col-span-18"],[1,"mb-0","text-sm","text-desc","desc"],["class","mb-10 offset-pl",4,"ngIf"],[1,"leading-4"],[1,"link"],[1,"all-videos-link-wrapper"],[1,"all-videos-right-icon","font-semibold","material-icons-outlined","text-sm","ml-2"],[1,"all-videos-text","font-semibold",3,"routerLink"],[1,"font-semibold","material-icons-outlined","text-sm"],[1,"mb-10","offset-pl"],[3,"enabled","videos","outputAction"]],template:function(e,i){1&e&&(v._UZ(0,"div",0),v.TgZ(1,"div",1),v.TgZ(2,"div",2),v.YNc(3,ti,3,2,"div",3),v.YNc(4,oi,1,7,"ui-jw-player",4),v.TgZ(5,"div",5),v.TgZ(6,"div",6),v.TgZ(7,"div",7),v.TgZ(8,"a",8),v.TgZ(9,"h2",9),v._uU(10),v.qZA(),v.qZA(),v.TgZ(11,"h1",10),v._uU(12),v.qZA(),v.TgZ(13,"time",11),v._uU(14),v.qZA(),v.qZA(),v.TgZ(15,"div",12),v.YNc(16,li,5,5,"p",13),v.YNc(17,ai,1,1,"p",14),v.qZA(),v.TgZ(18,"div",7),v.TgZ(19,"div",15),v.TgZ(20,"div",16),v.TgZ(21,"button",17),v.NdJ("click",function(){return i.showModal()}),v.TgZ(22,"span",18),v._uU(23," share "),v.qZA(),v._uU(24," Share "),v.qZA(),v.qZA(),v.TgZ(25,"div",19),v.YNc(26,ui,16,17,"ng-container",20),v.YNc(27,vi,13,18,"ng-container",20),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(28,"div",21),v.TgZ(29,"div",22),v.TgZ(30,"div",23),v.YNc(31,Ti,8,5,"ng-container",20),v.YNc(32,Si,4,2,"ng-container",20),v.qZA(),v.TgZ(33,"div",24),v.TgZ(34,"div",25),v._UZ(35,"nz-skeleton",26),v.YNc(36,Ci,4,2,"ng-container",20),v.YNc(37,Ii,2,1,"ng-container",20),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(38,"div",27),v._UZ(39,"hr",28),v.TgZ(40,"h2",29),v._uU(41,"Explore More Series"),v.qZA(),v.YNc(42,zi,1,2,"nz-skeleton",30),v.YNc(43,ki,2,1,"ng-container",31),v.qZA(),v.TgZ(44,"ui-share-link-modal",32),v.NdJ("nzVisibleChange",function(e){return i.isVisible=e}),v.qZA(),v.TgZ(45,"ui-add-to-playlist-modal",33),v.NdJ("nzVisibleChange",function(e){return i.isAddPlaylistModalVisible=e})("nzVisibleChange",function(){return i.checkIsVideoSaved()})("nzAddNewPlayListModalVisibleChange",function(e){return i.handleNewplaylistModalVisible(e)})("tickPlaylistsEvent",function(e){return i.tickPlaylists(e)}),v.qZA(),v.TgZ(46,"ui-create-new-playlist-modal",34),v.NdJ("nzVisibleChange",function(e){return i.createNewPlayListModalVisible=e})("nzVisibleChange",function(){return i.checkIsVideoSaved()})("backClicked",function(){return i.handleAddPlaylistModalVisible()})("nzAddToPlayListModalVisibleChange",function(e){return i.addToPlaylistModalVisibleChg(e)}),v.qZA()),2&e&&(v.xp6(3),v.Q6J("ngIf",i.playerLoading),v.xp6(1),v.Q6J("ngIf",!i.playerLoading),v.xp6(4),v.Q6J("href",i.routeC
1onstant.VIDEOS+i.routeConstant.SERIES+"/"+(null==i.selectedVideo||null==i.selectedVideo.categoryModel?null:i.selectedVideo.categoryModel.id)+"/"+i.convertTitle(null==i.selectedVideo||null==i.selectedVideo.categoryModel?null:i.selectedVideo.categoryModel.displayName),v.LSH),v.xp6(2),v.Oqu(i.convertToEllipsis(null==i.selectedVideo||null==i.selectedVideo.categoryModel?null:i.selectedVideo.categoryModel.displayName,50)),v.xp6(2),v.Oqu(i.convertToEllipsis(null==i.selectedVideo?null:i.selectedVideo.title,100)),v.xp6(2),v.Oqu(i.convertDate(null!=i.selectedVideo&&i.selectedVideo.onDemandDate?null==i.selectedVideo?null:i.selectedVideo.onDemandDate:null==i.selectedVideo?null:i.selectedVideo.createdDate)),v.xp6(1),v.Q6J("ngClass",v.VKq(31,qi,1!==(null==i.selectedVideo?null:i.selectedVideo.isDescClob))),v.xp6(1),v.Q6J("ngIf",(null==i.selectedVideo||null==i.selectedVideo.description?null:i.selectedVideo.description.length)>200),v.xp6(1),v.Q6J("ngIf",(null==i.selectedVideo||null==i.selectedVideo.description?null:i.selectedVideo.description.length)<=200),v.xp6(9),v.Q6J("ngIf",!i.isLoggedIn()),v.xp6(1),v.Q6J("ngIf",i.isLoggedIn()),v.xp6(4),v.Q6J("ngIf",!i.selectedPlayList),v.xp6(1),v.Q6J("ngIf",i.selectedPlayList),v.xp6(3),v.Q6J("nzActive",!0)("nzLoading",i.videoListLoading),v.xp6(1),v.Q6J("ngIf",!i.selectedPlayList),v.xp6(1),v.Q6J("ngIf",i.selectedPlayList),v.xp6(5),v.Q6J("ngIf",i.loadingVideo),v.xp6(1),v.Q6J("ngForOf",i.seriesList),v.xp6(1),v.s9C("shareLink",i.shareLink+i.currentVideoID+"/"+i.convertTitle(null==i.selectedVideo?null:i.selectedVideo.title)),v.s9C("shareFbLink",i.shareFb+i.currentVideoID+"/"+i.convertTitle(null==i.selectedVideo?null:i.selectedVideo.title)),v.s9C("shareTwLink",i.shareTw+i.currentVideoID+"/"+i.convertTitle(null==i.selectedVideo?null:i.selectedVideo.title)),v.s9C("shareTeLink",i.shareTe+i.currentVideoID+"/"+i.convertTitle(null==i.selectedVideo?null:i.selectedVideo.title)),v.s9C("shareWaLink",i.shareWa+i.currentVideoID+"/"+i.convertTitle(null==i.selectedVideo?null:i.selectedVideo.title)),v.Q6J("nzVisible",i.isVisible),v.xp6(1),v.Q6J("nzVisible",i.isAddPlaylistModalVisible)("video",i.selectedVideo),v.xp6(1),v.Q6J("nzVisible",i.createNewPlayListModalVisible)("video",i.selectedVideo)("playlists",i.tickedPlaylists)("isShowBack",i.isCreateNewPlaylistShowBack))},directives:[Z.O5,Z.mk,C.ix,y.dQ,A.w,S.ng,Z.sg,$e.u,Be.B,We.p,Ge.W,K.t,je.JW,L.SK,Ke.n,o.yS,V.r],pipes:[Xe.K],styles:[".video-list-wrapper[_ngcontent-%COMP%]{min-height:300px}@media screen and (min-width: 992px){.video-list-wrapper[_ngcontent-%COMP%]{min-height:285px}}@media screen and (min-width: 1200px){.video-list-wrapper[_ngcontent-%COMP%]{min-height:385px}}@media screen and (min-width: 1600px){.video-list-wrapper[_ngcontent-%COMP%]{min-height:460px}}.video-list[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 38px);width:calc(100% + 17px);overflow:auto;scroll-behavior:smooth}.scrollbar-hide[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.scrollbar-hide[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.loading-skeleton[_ngcontent-%COMP%]{width:100%;height:546.75px}@media only screen and (max-width: 1200px){.loading-skeleton[_ngcontent-%COMP%]{height:373px}}@media only screen and (max-width: 992px){.loading-skeleton[_ngcontent-%COMP%]{height:56vw}}.desc[_ngcontent-%COMP%]{white-space:pre-line}.text-purple[_ngcontent-%COMP%]{color:var(--brand-accent-3)}.all-videos-link-wrapper[_ngcontent-%COMP%]:hover .all-videos-right-icon[_ngcontent-%COMP%]{visibility:hidden}.all-videos-link-wrapper[_ngcontent-%COMP%]:hover .all-videos-text[_ngcontent-%COMP%]{visibility:visible;margin-left:-.5rem}.all-videos-text[_ngcontent-%COMP%]{visibility:hidden}.break-word-container[_ngcontent-%COMP%]{word-break:break-word}"]}),e})();var Ni=t(6933),Oi=t(1841),Ji=t(1350);let Ui=(()=>{class e{constructor(e,i){this.http=e,this.paramService=i,this.BASE_URL=l.o.SUBCATEGORY,this.httpOptions={headers:new Oi.WM({"Content-Type":"application/json"})}}getSubcategory(e){const i=this.paramService.buildHttpParams({seriesIdList:e});return this.http.get(this.BASE_URL+l.o.LIST,{params:i})}}return e.\u0275fac=function(i){return new(i||e)(v.LFG(Oi.eN),v.LFG(Ji.O))},e.\u0275prov=v.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ei=t(4812),Di=t(2079);const Qi=["searchForm"];function Ri(e,i){1&e&&(v.TgZ(0,"span",29),v._uU(1,"search"),v.qZA())}function Yi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",30),v.NdJ("click",function(){return v.CHM(e),v.oxw().clearInput()}),v.TgZ(1,"span",31),v._uU(2,"cancel"),v.qZA(),v.qZA()}if(2&e){const e=v.oxw();v.Q6J("hidden",!e.searchText)}}function Fi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"li",32),v.NdJ("click",function(){const i=v.CHM(e).$implicit;return v.oxw().applySort(i)}),v._uU(1),v.qZA()}if(2&e){const e=i.$implicit,t=v.oxw();v.Q6J("ngClass",t.selectedSort===e?"sort-selected":""),v.xp6(1),v.Oqu(e)}}function Hi(e,i){if(1&e){const e=v.EpF();v.ynx(0),v.TgZ(1,"div",37),v.TgZ(2,"label",38),v.NdJ("ngModelChange",function(i){return v.CHM(e).$implicit.checked=i})("ngModelChange",function(){v.CHM(e);const i=v.oxw().$implicit;return v.oxw().applyFilters(i.name)}),v._uU(3),v.qZA(),v.qZA(),v.BQk()}if(2&e){const e=i.$implicit;v.xp6(2),v.Q6J("nzValue",null==e?null:e.value)("ngModel",e.checked),v.xp6(1),v.Oqu(null==e?null:e.label)}}function $i(e,i){if(1&e&&(v.TgZ(0,"nz-collapse-panel",33),v.TgZ(1,"nz-checkbox-wrapper",34),v.TgZ(2,"div",35),v.YNc(3,Hi,4,3,"ng-container",36),v.qZA(),v.qZA(),v.qZA()),2&e){const e=i.$implicit;v.Q6J("nzHeader",e.name)("nzActive",e.active),v.xp6(3),v.Q6J("ngForOf",e.content)}}function Bi(e,i){1&e&&(v.TgZ(0,"div",39),v._UZ(1,"nz-skeleton",40),v.qZA()),2&e&&(v.xp6(1),v.Q6J("nzActive",!0))}function Wi(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",46),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(3);v.xp6(1),v.Q6J("nzDate",null!=e&&e.onDemandDate?null==e?null:e.onDemandDate:null==e?null:e.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e?null:e.videoId)+"/"+t.convertTitle(e.title))("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+e.videoId+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",e.title)("video",e)("nzDuration",e.duration)("nzView",e.views)("searchText",t.searchText)}}function Gi(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",46),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(3);v.xp6(1),v.Q6J("nzDate",null!=e&&e.onDemandDate?null==e?null:e.onDemandDate:null==e?null:e.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e?null:e.videoId)+"/"+t.convertTitle(e.title))("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+e.videoId+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",e.title)("video",e)("nzDuration",e.duration)("nzView",e.views)("searchText",t.searchText)}}function ji(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",47),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(3);v.xp6(1),v.Q6J("nzType","tag")("nzDate",null!=e&&null!=e.video&&e.video.onDemandDate?null==e||null==e.video?null:e.video.onDemandDate:null==e||null==e.video?null:e.video.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e||null==e.video?null:e.video.videoId)+"/"+t.convertTitle(null==e?null:e.video.title))("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+(null==e?null:e.video.videoId)+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",null==e?null:e.video.title)("video",null==e?null:e.video)("nzDuration",null==e?null:e.video.duration)("nzView",null==e?null:e.video.views)("tagName",e.tagDisplayName)}}function Ki(e,i){1&e&&(v.TgZ(0,"div",39),v._UZ(1,"nz-skeleton",40),v.qZA()),2&e&&(v.xp6(1),v.Q6J("nzActive",!0))}function Xi(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",48),v.NdJ("click",function(){v.CHM(e);const i=v.oxw(3);
1return i.loadMoreVideos(i.generalVideoList,i.titleVideoList,i.tagVideoList)}),v._uU(1,"Load More"),v.qZA()}}function et(e,i){if(1&e&&(v.TgZ(0,"div"),v.TgZ(1,"div",43),v.YNc(2,Wi,2,8,"ng-container",36),v.YNc(3,Gi,2,8,"ng-container",36),v.YNc(4,ji,2,9,"ng-container",36),v.qZA(),v.YNc(5,Ki,2,1,"div",26),v.TgZ(6,"nz-row",44),v.YNc(7,Xi,2,0,"button",45),v.qZA(),v.qZA()),2&e){const e=v.oxw(2);v.xp6(1),v.Q6J("ngClass",e.checkIsNonSubSeriesNotEmpty()?"mb-10 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-4 gap-8 md:px-0 sm:gap-4":"mb-0"),v.xp6(1),v.Q6J("ngForOf",null==e.generalVideoList?null:e.generalVideoList.videos),v.xp6(1),v.Q6J("ngForOf",null==e.titleVideoList?null:e.titleVideoList.videos),v.xp6(1),v.Q6J("ngForOf",null==e.tagVideoList?null:e.tagVideoList.tags),v.xp6(1),v.Q6J("ngIf",e.loadingMore),v.xp6(2),v.Q6J("ngIf",!(null!=e.generalVideoList&&e.generalVideoList.isLastPage||null!=e.titleVideoList&&e.titleVideoList.isLastPage||null!=e.tagVideoList&&e.tagVideoList.isLastPage))}}function it(e,i){if(1&e&&(v.TgZ(0,"div",41),v.YNc(1,et,8,6,"div",42),v.qZA()),2&e){const e=v.oxw(),i=v.MAs(35);v.xp6(1),v.Q6J("ngIf",e.checkIsResultNotEmpty())("ngIfElse",i)}}function tt(e,i){1&e&&(v.TgZ(0,"div",49),v._UZ(1,"img",50),v.TgZ(2,"h1",51),v._uU(3,"No results found."),v.qZA(),v.TgZ(4,"p",52),v._uU(5,"We can\u2019t find any available listings within your search filters. Try search a different keywords or change your search criteria."),v.qZA(),v.qZA())}function st(e,i){if(1&e&&(v.ynx(0),v._UZ(1,"ui-video-card",56),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(3);v.xp6(1),v.Q6J("nzDate",null!=e&&e.onDemandDate?null==e?null:e.onDemandDate:null==e?null:e.createdDate)("nzLink",t.routeConstant.VIDEOS+t.routeConstant.LIST+"/"+(null==e?null:e.videoId)+"/"+t.convertTitle(e.title))("nzImage",t.appConstant.JWPLAYER_URL_THUMBNAIL_URL_CONTENT_PATH+e.videoId+t.appConstant.THUMBNAIL_RESOLUTION_FORMAT)("nzTitle",e.title)("video",e)("nzDuration",e.duration)("nzView",e.views)}}function nt(e,i){1&e&&(v.TgZ(0,"div",39),v._UZ(1,"nz-skeleton",40),v.qZA()),2&e&&(v.xp6(1),v.Q6J("nzActive",!0))}function ot(e,i){if(1&e){const e=v.EpF();v.TgZ(0,"button",57),v.NdJ("click",function(){v.CHM(e);const i=v.oxw().$implicit;return v.oxw(2).loadMoreSubSeries(i)}),v._uU(1,"Load More"),v.qZA()}}function lt(e,i){if(1&e&&(v.ynx(0),v.TgZ(1,"p"),v._uU(2,"Subcategory with: "),v.TgZ(3,"span",53),v.ALo(4,"textHighlight"),v._uU(5),v.qZA(),v.qZA(),v.TgZ(6,"div",54),v.YNc(7,st,2,7,"ng-container",36),v.qZA(),v.YNc(8,nt,2,1,"div",26),v.TgZ(9,"nz-row",44),v.YNc(10,ot,2,0,"button",55),v.qZA(),v.BQk()),2&e){const e=i.$implicit,t=v.oxw(2);v.xp6(3),v.Q6J("innerHTML",v.xi3(4,5,e.displayName,t.searchText),v.oJD),v.xp6(2),v.Oqu(e.displayName),v.xp6(2),v.Q6J("ngForOf",null==e?null:e.videos),v.xp6(1),v.Q6J("ngIf",e.loading),v.xp6(2),v.Q6J("ngIf",!e.isLastPage)}}function at(e,i){if(1&e&&(v.TgZ(0,"div",41),v.YNc(1,lt,11,8,"ng-container",36),v.qZA()),2&e){const e=v.oxw();v.xp6(1),v.Q6J("ngForOf",e.subSeriesVideoList)}}const dt=[{path:l.o.VIDEOS+l.o.LIST+"/:videoID",component:Pi,canActivate:[Ni.u],data:{}},{path:l.o.VIDEOS+l.o.SEARCH,component:(()=>{class e{constructor(e,i,t,s,n,o){this.router=e,this.activatedRoute=i,this.changeDetectorRef=t,this.categoryRestService=s,this.subCategoryRestService=n,this.videoRestService=o,this.videoType="VIDEO",this.titlePageSize=8,this.tagPageSize=8,this.subSeriesPageSize=12,this.appConstant=d.$,this.routeConstant=l.o,this.searchText="",this.searchTextChanged=new J.xQ,this.debounceTime=500,this.selectedSeriesIdList=[],this.selectedSubSeriesIdList=[],this.categoryFilterList=[],this.subCategoryFilterList=[],this.subSeriesVideoList=[],this.panels=[{name:"Main Category",active:!0},{name:"Sub Category",active:!1}],this.sortMenuItems=["Relevant","Most Recent","Most Viewed"],this.sortColumns=["RELEVANT","ON_DEMAND_DATE","VIEWS"],this.selectedSort="",this.sortColumn="",this.isResultLoading=!0,this.loadingMoreSubSeries=!1,this.loadingMore=!1}ngOnInit(){this.searchText=this.activatedRoute.snapshot.queryParamMap.get("q"),this.selectedSort=this.sortMenuItems[0],this.sortColumn=this.sortColumns[0],this.getAvailableCategory(),this.getAvailableSubCategory([]),this.get
1SearchText(),this.initVideoList()}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}getSearchText(){this.searchTextChanged.pipe((0,U.b)(this.debounceTime)).subscribe(()=>{this.router.navigate([l.o.VIDEOS+l.o.SEARCH],{queryParams:{q:this.searchText}}),this.initVideoList()})}checkIsResultNotEmpty(){var e,i,t,s,n,o,l,a;return(null===(i=null===(e=this.result)||void 0===e?void 0:e.byTitle)||void 0===i?void 0:i.totalCounts)>0||(null===(s=null===(t=this.result)||void 0===t?void 0:t.byTags)||void 0===s?void 0:s.totalCounts)>0||(null===(o=null===(n=this.result)||void 0===n?void 0:n.bySubSeries)||void 0===o?void 0:o.length)>0||(null===(a=null===(l=this.result)||void 0===l?void 0:l.byGeneral)||void 0===a?void 0:a.totalCounts)>0}checkIsNonSubSeriesNotEmpty(){var e,i,t,s,n,o;return(null===(i=null===(e=this.result)||void 0===e?void 0:e.byTitle)||void 0===i?void 0:i.totalCounts)>0||(null===(s=null===(t=this.result)||void 0===t?void 0:t.byTags)||void 0===s?void 0:s.totalCounts)>0||(null===(o=null===(n=this.result)||void 0===n?void 0:n.byGeneral)||void 0===o?void 0:o.totalCounts)>0}clearInput(){this.searchText="",this.searchForm.nativeElement.focus()}inputChanged(e){this.searchTextChanged.next(e)}applyFilters(e){e===this.panels[0].name?(this.selectedSeriesIdList=this.categoryFilterList.filter(e=>e.checked&&e.value).map(e=>e.value),this.getAvailableSubCategory(this.selectedSeriesIdList)):e===this.panels[1].name&&(this.selectedSubSeriesIdList=this.subCategoryFilterList.filter(e=>e.checked&&e.value).map(e=>e.value)),this.inputChanged(this.searchText)}applySort(e){switch(this.selectedSort=e,e){case this.sortMenuItems[1]:this.sortColumn=this.sortColumns[1];break;case this.sortMenuItems[2]:this.sortColumn=this.sortColumns[2];break;default:this.sortColumn=this.sortColumns[0]}this.inputChanged(this.searchText)}loadMoreVideos(e,i,t){this.loadingMore=!0,""!==this.searchText?this.videoRestService.searchVideoListV3(i.currentPage,t.currentPage,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,this.selectedSeriesIdList,this.selectedSubSeriesIdList,this.searchText,this.sortColumn).subscribe(e=>{var s,n,o,l,a;e.data&&e.status===d.$.STATUS_SUCCESS?(i.videos.push(...null===(s=e.data.byTitle)||void 0===s?void 0:s.result),i.isLastPage=(null===(n=e.data.byTitle)||void 0===n?void 0:n.totalCounts)<=i.videos.length,i.currentPage++,null===(o=null==t?void 0:t.tags)||void 0===o||o.push(...null===(l=e.data.byTags)||void 0===l?void 0:l.result),t.isLastPage=(null===(a=e.data.byTags)||void 0===a?void 0:a.totalCounts)<=t.tags.length,t.currentPage++,this.loadingMore=!1):console.log("failed to see all videos")}):this.videoRestService.searchVideoListV3(e.currentPage,t.currentPage,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,this.selectedSeriesIdList,this.selectedSubSeriesIdList,this.searchText,this.sortColumn).subscribe(i=>{i.data&&i.status===d.$.STATUS_SUCCESS?(e.videos.push(...i.data.byGeneral.result),e.isLastPage=i.data.byGeneral.totalCounts<=e.videos.length,e.currentPage++,this.loadingMore=!1):console.log("failed to see all videos")})}loadMoreSubSeries(e){e.loading=!0,this.videoRestService.searchVideoListV3(0,0,e.currentPage,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,this.selectedSeriesIdList,this.selectedSubSeriesIdList,this.searchText,this.sortColumn).subscribe(i=>{i.data&&i.status===d.$.STATUS_SUCCESS?(i.data.bySubSeries.forEach(i=>{i.subSeriesDisplayName===e.displayName&&(e.videos.push(...i.videos.result),e.isLastPage=i.videos.totalCounts<=e.videos.length,e.currentPage++)}),e.loading=!1):console.log("failed to see all subseries videos")})}navigateToVideoListPage(e){this.router.navigate(["../"+l.o.VIDEOS+l.o.LIST,e.videoId,e.title.replace(/[^a-zA-Z0-9]/g,"-").replace(/\s/g,"-").toLowerCase()])}getAvailableCategory(){this.categoryRestService.getAvailableCategory().subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&e.data&&(this.categoryFilterList=e.data.map(e=>({label:e.displayName,value:e.id,checked:!1})),this.panels[0].content=this.categoryFilterList)})}getAvailableSubCategory(e){this.subCategoryRestService.getSubcategory(e).subscribe(e=>{e.status===d.$.STATUS_SUCCESS&&e.data&&(this.subCategoryFilterList=e.data.map(e=>({label:e.displayName,value:e.id,checked:!1}
1)),this.panels[1].content=this.subCategoryFilterList)})}initVideoList(){this.isResultLoading=!0,this.videoRestService.searchVideoListV3(0,0,0,this.titlePageSize,this.tagPageSize,this.subSeriesPageSize,this.videoType,this.selectedSeriesIdList,this.selectedSubSeriesIdList,this.searchText,this.sortColumn).subscribe(e=>{e.data&&e.status===d.$.STATUS_SUCCESS&&(this.result=e.data,this.initGeneralVideoList(),this.initTitleVideoList(),this.initTagVideoList(),this.initSubSeriesVideoList()),this.isResultLoading=!1})}initGeneralVideoList(){var e,i,t;this.generalVideoList={videos:null===(e=this.result.byGeneral)||void 0===e?void 0:e.result,isLastPage:(null===(i=this.result.byGeneral)||void 0===i?void 0:i.totalCounts)<=(null===(t=this.result.byGeneral)||void 0===t?void 0:t.result.length),currentPage:1}}initTitleVideoList(){var e,i,t;this.titleVideoList={videos:null===(e=this.result.byTitle)||void 0===e?void 0:e.result,isLastPage:(null===(i=this.result.byTitle)||void 0===i?void 0:i.totalCounts)<=(null===(t=this.result.byTitle)||void 0===t?void 0:t.result.length),currentPage:1}}initTagVideoList(){var e,i,t;this.tagVideoList={tags:null===(e=this.result.byTags)||void 0===e?void 0:e.result,isLastPage:(null===(i=this.result.byTags)||void 0===i?void 0:i.totalCounts)<=(null===(t=this.result.byTags)||void 0===t?void 0:t.result.length),currentPage:1}}initSubSeriesVideoList(){var e;this.subSeriesVideoList=[],null===(e=this.result.bySubSeries)||void 0===e||e.forEach(e=>{this.subSeriesVideoList.push({displayName:e.subSeriesDisplayName,videos:e.videos.result,isLastPage:e.videos.totalCounts<=e.videos.result.length,currentPage:1,loading:!1})})}convertTitle(e){return(0,h.b)(e)}}return e.\u0275fac=function(i){return new(i||e)(v.Y36(o.F0),v.Y36(o.gz),v.Y36(v.sBO),v.Y36(m.F),v.Y36(Ui),v.Y36(b.C))},e.\u0275cmp=v.Xpm({type:e,selectors:[["app-search-results"]],viewQuery:function(e,i){if(1&e&&v.Gf(Qi,5),2&e){let e;v.iGM(e=v.CRH())&&(i.searchForm=e.first)}},decls:37,vars:12,consts:[[1,"main-nav-placeholder"],[1,"bg-black-7"],[1,"container","py-6","lg:py-10"],["nzJustify","center",1,"search-row"],["nzXs","24","nzSm","24","nzMd","18","nzLg","16",1,"search-bg"],[1,"global-search-container"],[1,"search-input-row"],[3,"nzSuffix","nzPrefix"],["name","searchForm","autocomplete","off","nz-input","","placeholder","Search title or series of your choice\u2026",3,"ngModel","ngModelChange"],["searchForm",""],["prefixTemplate",""],["suffixTemplate",""],[1,"container","py-6","lg:pb-10","lg:pt-6"],["nzJustify","end"],["nz-dropdown","",1,"flex",3,"nzDropdownMenu"],[1,"material-icons-outlined","text-desc","mr-1"],[1,"text-desc","mr-2"],[1,"font-semibold",3,"ngModel","ngModelChange"],["menu","nzDropdownMenu"],["nz-menu","","nzSelectable",""],["nz-menu-item","",3,"ngClass","click",4,"ngFor","ngForOf"],["nzJustify","center",1,"mt-2"],["nzXs","24","nzSm","24","nzMd","6","nzLg","6",1,"mb-4"],["nzExpandIconPosition","right",3,"nzBordered"],[3,"nzHeader","nzActive",4,"ngFor","ngForOf"],["nzXs","24","nzSm","24","nzMd","18","nzLg","18"],["class","mb-10 md:ml-3 lg:ml-3 xl:ml-3",4,"ngIf"],["class","md:ml-3 lg:ml-3 xl:ml-3",4,"ngIf"],["noResultBlock",""],[1,"material-icons-outlined","text-primary-200"],[3,"hidden","click"],[1,"material-icons-outlined","text-black-3"],["nz-menu-item","",3,"ngClass","click"],[3,"nzHeader","nzActive"],[2,"width","100%"],["nz-row",""],[4,"ngFor","ngForOf"],["nz-col","","nzSpan","24"],["nz-checkbox","",1,"my-1",3,"nzValue","ngModel","ngModelChange"],[1,"mb-10","md:ml-3","lg:ml-3","xl:ml-3"],[3,"nzActive"],[1,"md:ml-3","lg:ml-3","xl:ml-3"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["nzJustify","center"],["nz-button","","class","mt-4 btn-outline","nzSize","small",3,"click",4,"ngIf"],["nzCategoryLink","/videos",3,"nzDate","nzLink","nzImage","nzTitle","video","nzDuration","nzView","searchText"],["nzCategoryLink","/videos",3,"nzType","nzDate","nzLink","nzImage","nzTitle","video","nzDuration","nzView","tagName"],["nz-button","","nzSize","small",1,"mt-4","btn-outline",3,"click"],[1,"px-3","text-center","no-result"],["src","/assets/images/dev/video-clipart.png","alt","no-result-icon",1,"mx-auto","mb-2"],[1,"text-xl"],[1,"text-md","text-black-2"],[1,"font-semibold",3,"innerHTML"],[1,"mb-10","grid","grid-cols-1","sm:grid-cols-2","md:grid-cols-3","lg:grid-cols-3","xl:grid-cols-4","gap-8","md:px-0","
1sm:gap-4"],["nz-button","","class","my-4 btn-outline","nzSize","small",3,"click",4,"ngIf"],["nzCategoryLink","/videos",3,"nzDate","nzLink","nzImage","nzTitle","video","nzDuration","nzView"],["nz-button","","nzSize","small",1,"my-4","btn-outline",3,"click"]],template:function(e,i){if(1&e&&(v._UZ(0,"div",0),v.TgZ(1,"div",1),v.TgZ(2,"div",2),v.TgZ(3,"nz-row",3),v.TgZ(4,"nz-col",4),v.TgZ(5,"div",5),v.TgZ(6,"nz-form-control",6),v.TgZ(7,"nz-input-group",7),v.TgZ(8,"input",8,9),v.NdJ("ngModelChange",function(e){return i.inputChanged(e)})("ngModelChange",function(e){return i.searchText=e}),v.qZA(),v.qZA(),v.YNc(10,Ri,2,0,"ng-template",null,10,v.W1O),v.YNc(12,Yi,3,1,"ng-template",null,11,v.W1O),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(14,"div",12),v.TgZ(15,"nz-row",13),v.TgZ(16,"a",14),v.TgZ(17,"span",15),v._uU(18,"sort"),v.qZA(),v.TgZ(19,"p",16),v._uU(20,"Sort by:"),v.qZA(),v.TgZ(21,"span",17),v.NdJ("ngModelChange",function(e){return i.selectedSort=e}),v._uU(22),v.qZA(),v.qZA(),v.TgZ(23,"nz-dropdown-menu",null,18),v.TgZ(25,"ul",19),v.YNc(26,Fi,2,2,"li",20),v.qZA(),v.qZA(),v.qZA(),v.TgZ(27,"nz-row",21),v.TgZ(28,"nz-col",22),v.TgZ(29,"nz-collapse",23),v.YNc(30,$i,4,3,"nz-collapse-panel",24),v.qZA(),v.qZA(),v.TgZ(31,"nz-col",25),v.YNc(32,Bi,2,1,"div",26),v.YNc(33,it,2,2,"div",27),v.YNc(34,tt,6,0,"ng-template",null,28,v.W1O),v.YNc(36,at,2,1,"div",27),v.qZA(),v.qZA(),v.qZA()),2&e){const e=v.MAs(11),t=v.MAs(13),s=v.MAs(24);v.xp6(7),v.Q6J("nzSuffix",t)("nzPrefix",e),v.xp6(1),v.Q6J("ngModel",i.searchText),v.xp6(8),v.Q6J("nzDropdownMenu",s),v.xp6(5),v.Q6J("ngModel",i.selectedSort),v.xp6(1),v.Oqu(i.selectedSort),v.xp6(4),v.Q6J("ngForOf",i.sortMenuItems),v.xp6(3),v.Q6J("nzBordered",!1),v.xp6(1),v.Q6J("ngForOf",i.panels),v.xp6(2),v.Q6J("ngIf",i.isResultLoading),v.xp6(1),v.Q6J("ngIf",!i.isResultLoading),v.xp6(3),v.Q6J("ngIf",!i.isResultLoading&&i.checkIsResultNotEmpty())}},directives:[L.SK,L.t3,W.Fd,A.w,G.gB,G.ke,G.Zp,j.Fj,j.JJ,j.On,X.Ws,X.cm,X.RR,ee.wO,Z.sg,Ei.yH,Z.O5,ee.r9,Z.mk,Ei.Zv,Di.EZ,Di.Ie,S.ng,ie.r,C.ix,y.dQ],pipes:[te.f],styles:[".global-search-container[_ngcontent-%COMP%]{background-color:var(--black-4);width:100%;border-radius:30px}.global-search-container[_ngcontent-%COMP%] .ant-input-affix-wrapper[_ngcontent-%COMP%]{border-bottom:none}@media only screen and (max-width: 768px){.global-search-container[_ngcontent-%COMP%]{border-radius:0}}.search-input-row[_ngcontent-%COMP%]{max-height:40px;justify-content:center}[_nghost-%COMP%] .highlight{color:var(--brand-primary-200)}[_nghost-%COMP%] .ant-collapse-content-box{background:var(--black-7)}.sort-selected[_ngcontent-%COMP%]{color:var(--brand-primary-200);background:var(--black-7)}"]}),e})(),canActivate:[Ni.u],data:{title:"iFAST TV - Search Videos"}},{path:l.o.VIDEOS+l.o.LIST+"/:videoID/:title",component:Pi,canActivate:[Ni.u],data:{}},{path:l.o.VIDEOS+l.o.SERIES+l.o.LIST,component:O,canActivate:[Ni.u],data:{title:"iFAST TV - Daily Videos on Investment"}},{path:l.o.VIDEOS+l.o.SERIES+"/:series",component:Qe,canActivate:[Ni.u],data:{}},{path:l.o.VIDEOS+l.o.SERIES+"/:series/:title",component:Qe,canActivate:[Ni.u],data:{}}];let rt=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=v.oAB({type:e}),e.\u0275inj=v.cJS({imports:[[o.Bz.forChild(dt)],o.Bz]}),e})();var ct=t(308),ut=t(9614),gt=t(6299),ht=t(4629),pt=t(3623),vt=t(3464),mt=t(2737),bt=t(7111);let ft=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=v.oAB({type:e}),e.\u0275inj=v.cJS({imports:[[n.m,mt.Y,s.P,rt,ct.W,ut.E,gt.L,ht.Q,R.gR,Ge.j,je._p,W.U5,Ei.cD,Di.Wr,X.b1,pt.U,vt.r,bt.e]]}),e})()}}]);
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.