1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[542],{70542(P,O,a){a.d(O,{VideoDetailPage:()=>w});var r=a(55537),c=a(83534),y=a(49458),b=a(42962),$=a(68554),d=a(61e3),f=a(9717),g=a.n(f),D=a(92745),R=a.n(D),t=a(24565),s=a(86234),n=a(85238),h=a(22322),v=a(85562),e=a(10599),S=a(43400),T=a(20995);function A(o,u){1&o&&e.nrm(0,"app-skeleton-loader",12),2&o&&e.Y8G("lines",20)("showImage",!0)}function I(o,u){if(1&o&&(e.j41(0,"div",10),e.DNE(1,A,1,2,"app-skeleton-loader",11),e.k0s()),2&o){const i=e.XpG();e.R7$(),e.Y8G("ngIf",i.loading)}}function M(o,u){if(1&o&&(e.j41(0,"ion-grid",13)(1,"div",14)(2,"ion-card",15)(3,"div",16),e.nrm(4,"iframe",17),e.k0s(),e.j41(5,"ion-card-content")(6,"ion-card-title"),e.EFF(7),e.k0s(),e.j41(8,"p"),e.EFF(9),e.k0s(),e.j41(10,"p"),e.EFF(11),e.k0s(),e.nrm(12,"hr",18),e.k0s()()()()),2&o){const i=e.XpG();e.R7$(4),e.Y8G("src",i.video_url,e.f$h),e.R7$(3),e.JRh(i.youtube_video[0].snippet.title),e.R7$(2),e.JRh(i.app_service.getDateTimeFormat(i.youtube_video[0].contentDetails.videoPublishedAt)),e.R7$(2),e.JRh(i.youtube_video[0].snippet.description)}}function F(o,u){if(1&o&&(e.j41(0,"ion-grid",13)(1,"div",14)(2,"ion-card",15)(3,"div",16),e.nrm(4,"iframe",17),e.k0s(),e.j41(5,"ion-card-content")(6,"ion-card-title"),e.EFF(7),e.k0s(),e.j41(8,"p"),e.EFF(9),e.k0s(),e.j41(10,"p"),e.EFF(11),e.k0s(),e.nrm(12,"hr",18),e.k0s()()()()),2&o){const i=e.XpG();e.R7$(4),e.Y8G("src",i.video_url,e.f$h),e.R7$(3),e.JRh(i.vimeo_video.name),e.R7$(2),e.JRh(i.app_service.getDateTimeFormat(i.vimeo_video.created_time)),e.R7$(2),e.JRh(i.vimeo_video.description)}}function C(o,u){if(1&o&&(e.j41(0,"video",21),e.nrm(1,"source",22),e.k0s()),2&o){const i=e.XpG(2);e.R7$(),e.Y8G("src",i.rss_video_url)}}function Y(o,u){if(1&o&&e.nrm(0,"iframe",17),2&o){const i=e.XpG(2);e.Y8G("src",i.rss_video_url,e.f$h)}}function k(o,u){if(1&o&&(e.j41(0,"ion-grid",13)(1,"div",14)(2,"ion-card",15)(3,"div",16),e.DNE(4,C,2,1,"video",19)(5,Y,1,1,"iframe",20),e.k0s(),e.j41(6,"ion-card-content")(7,"ion-card-title"),e.EFF(8),e.k0s(),e.j41(9,"p"),e.EFF(10),e.k0s(),e.j41(11,"p"),e.EFF(12),e.k0s(),e.nrm(13,"hr",18),e.k0s()()()()),2&o){const i=e.XpG();e.R7$(4),e.Y8G("ngIf",i.rss_video_url&&("rss"===i.feed_type||"external"===i.feed_type)),e.R7$(),e.Y8G("ngIf",i.rss_video_url&&"vimeo"===i.feed_type),e.R7$(3),e.JRh(i.title?i.title:""),e.R7$(2),e.JRh(i.app_service.getDateTimeFormat(i.date)),e.R7$(2),e.JRh(i.description?i.description:"")}}function W(o,u){if(1&o&&(e.j41(0,"video",21),e.nrm(1,"source",22),e.k0s()),2&o){const i=e.XpG(2);e.R7$(),e.Y8G("src",i.rss_video_url)}}function U(o,u){if(1&o&&e.nrm(0,"iframe",17),2&o){const i=e.XpG(2);e.Y8G("src",i.rss_video_url,e.f$h)}}function V(o,u){if(1&o&&(e.j41(0,"ion-grid",13)(1,"div",14)(2,"ion-card",15)(3,"div",16),e.DNE(4,W,2,1,"video",19)(5,U,1,1,"iframe",20),e.k0s(),e.j41(6,"ion-card-content")(7,"ion-card-title"),e.EFF(8),e.k0s(),e.j41(9,"p"),e.EFF(10),e.k0s(),e.j41(11,"p"),e.EFF(12),e.k0s(),e.nrm(13,"hr",18),e.k0s()()()()),2&o){const i=e.XpG();e.R7$(4),e.Y8G("ngIf",i.rss_video_url&&("rss"===i.feed_type||"external"===i.feed_type)),e.R7$(),e.Y8G("ngIf",i.rss_video_url&&"vimeo"===i.feed_type),e.R7$(3),e.JRh(i.title?i.title:""),e.R7$(2),e.JRh(i.app_service.getDateTimeFormat(i.date)),e.R7$(2),e.JRh(i.description?i.description:"")}}function L(o,u){if(1&o&&(e.j41(0,"ion-grid",13)(1,"div",14)(2,"ion-card",15)(3,"div",16)(4,"video",23),e.nrm(5,"source",22),e.k0s()(),e.j41(6,"ion-card-content")(7,"ion-card-title"),e.EFF(8),e.k0s(),e.j41(9,"p"),e.EFF(10),e.k0s(),e.nrm(11,"div",24)(12,"hr",18),e.k0s()()()()),2&o){const i=e.XpG();e.R7$(5),e.Y8G("src",i.video_url),e.R7$(3),e.JRh(i.title?i.title:""),e.R7$(2),e.JRh(i.app_service.getDateTimeFormat(i.date)),e.R7$(),e.Y8G("innerHtml",i.description,e.npT)}}g().extend(R()),(0,h.a)({"arrow-back":v.$$C,arrowBack:v.$$C});let w=(()=>{class o{constructor(i,_,l,p,m){this.dom=i,this.app_service=_,this.shows_service=l,this.observable_service=p,this.activated_route=m,this.station_id="",this.rss_url="",this.loading=!1,this.feed_type="external",this.title="",this.description="",this.date="",this.rss_video_url=null}ngOnInit(){this.activated_route.params.subscribe(()=>{this.id=this.activated_route.snapshot.paramMap.get("id"),this.page_id=this.activated_route.snapshot.paramMap.get("page_id"),this.video_url=this.activated_route.snapshot.paramMap.get("video_url"),this.title=this.activated_route.snapshot.paramMap.get("title"),this.description=this.activated_route.snapshot.paramMap.get("description"),this.date=this.activated_route.snapshot.paramMap.get("date"),this.feed_type=this.activated_route.snapshot.paramMap.get("feed_type"),("rss"===this.feed_type||"vimeo"===this.feed_type||"external"===this.feed_type)&&this.video_url&&(this.rss_video_url=this.dom.bypassSecurityTrustUrl(this.video_url)),this.observable_service.station_detail.subscribe(i=>{i&&this.setPageData(i)})})}setPageData(i){this.station_id=i.design.station_id.toString();const _=i.pages.find(l=>l.id.toString()===this.page_id.toString());_&&_.url&&(this.rss_url=_.url,"rss"!==this.feed_type&&"vimeo"!==this.feed_type&&"external"!==this.feed_type&&this.get
1ShowVideosFromFeed(_.url,_.feed_type))}getShowVideosFromFeed(i,_){_===t.D.YoutubeChannel?(this.source=t.D.YoutubeChannel,this.getYoutubeChannelVideos(i)):_===t.D.YoutubePlaylist?(this.source=t.D.YoutubeChannel,this.getYoutubePlaylistVideos(i)):_===t.D.YoutubeUser?(this.source=t.D.YoutubeChannel,this.getYoutubeUserVideos(i)):_===t.D.VimeoChannel?(this.source=t.D.VimeoChannel,this.getVimeoChannelVideos(this.id)):_===t.D.VimeoUser&&(this.source=t.D.VimeoUser,this.getVimeoChannelVideos(this.id))}getYoutubeChannelVideos(i){this.loading=!0,i.includes("@")&&this.shows_service.getChannelId(i).subscribe(_=>{i=_}),setTimeout(()=>{this.shows_service.getYoutubeChannel(i).subscribe(_=>{this.loading=!1,this.shows_service.getYoutubePlaylist(_.data.items[0].contentDetails.relatedPlaylists.uploads).subscribe(p=>{const m=p.result.items.filter(E=>E.id===this.id);if(m.length>0&&(this.video_url="https://www.youtube.com/embed/"+m[0].contentDetails.videoId,this.video_url=this.dom.bypassSecurityTrustResourceUrl(this.video_url),this.youtube_video=m,this.youtube_video[0].contentDetails.videoPublishedAt)){const E=this.youtube_video[0].contentDetails.videoPublishedAt.replace("T"," ").replace("Z","");this.youtube_video[0].contentDetails.videoPublishedAt=g()(E,"YYYY-MM-DD HH:mm:ss")}})})},3e3)}getYoutubePlaylistVideos(i){this.loading=!0,this.shows_service.getYoutubePlaylist(i).subscribe(_=>{this.loading=!1;const l=_.result.items.filter(p=>p.id===this.id);if(l.length>0&&(this.video_url="https://www.youtube.com/embed/"+l[0].contentDetails.videoId,this.video_url=this.dom.bypassSecurityTrustResourceUrl(this.video_url),this.youtube_video=l,this.youtube_video[0].contentDetails.videoPublishedAt)){const p=this.youtube_video[0].contentDetails.videoPublishedAt.replace("T"," ").replace("Z","");this.youtube_video[0].contentDetails.videoPublishedAt=g()(p,"YYYY-MM-DD HH:mm:ss")}})}getYoutubeUserVideos(i){this.loading=!0,this.shows_service.getYoutubeUserPlaylist(i).subscribe(_=>{this.loading=!1,this.shows_service.getYoutubePlaylist(_.data.items[0].contentDetails.relatedPlaylists.uploads).subscribe(p=>{const m=p.result.items.filter(E=>E.id===this.id);if(m.length>0&&(this.video_url="https://www.youtube.com/embed/"+m[0].contentDetails.videoId,this.video_url=this.dom.bypassSecurityTrustResourceUrl(this.video_url),this.youtube_video=m,this.youtube_video[0].contentDetails.videoPublishedAt)){const E=this.youtube_video[0].contentDetails.videoPublishedAt.replace("T"," ").replace("Z","");this.youtube_video[0].contentDetails.videoPublishedAt=g()(E,"YYYY-MM-DD HH:mm:ss")}})})}getVimeoChannelVideos(i){this.loading=!0,this.shows_service.getVimeoChannel("https://api.vimeo.com/videos/"+i).subscribe(l=>{if(this.loading=!1,this.video_url="https://player.vimeo.com/video/"+i,this.video_url=this.dom.bypassSecurityTrustResourceUrl(this.video_url),this.vimeo_video=l.result,this.vimeo_video.created_time){const p=this.vimeo_video.created_time.replace("T"," ").replace("Z","");this.vimeo_video.created_time=g()(p,"YYYY-MM-DD HH:mm:ss")}})}goBack(){this.app_service.goBack()}static{this.\u0275fac=function(_){return new(_||o)(e.rXU(S.up),e.rXU(d.d),e.rXU(b.M),e.rXU($.s),e.rXU(T.nX))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["app-video-detail"]],decls:21,vars:12,consts:[[1,"innerPageHeader","innerPageHeader--mobile"],[1,"header--toolbar"],["slot","start"],["color","dark","fill","clear","size","small",3,"click"],["slot","start","name","arrow-back"],[1,"backBtn-wrapper","ion-hide-lg-down"],["color","primary","shape","round",3,"click"],[1,"page-wrapper"],["class","commonIcon ion-margin-end ion-text-center",4,"ngIf"],["fixed","",4,"ngIf"],[1,"commonIcon","ion-margin-end","ion-text-center"],["variant","article",3,"lines","showImage",4,"ngIf"],["variant","article",3,"lines","showImage"],["fixed",""],[1,"rssVideoDetail"],[1,"cCard"],[1,"cCard__videoDiv"],["frameborder","0","allowfullscreen","",3,"src"],[1,"cCard__divider"],["webkit-playsinline","","playsinline","","autoplay","","muted","","controls","controls","preload","metadata",4,"ngIf"],["frameborder","0","allowfullscreen","",3,"src",4,"ngIf"],["webkit-playsinline","","playsinline","","autoplay","","muted","","controls","controls","preload","metadata"],["type","video/mp4",3,"src"],["webkit-playsinline","","playsinline","","controls","","controlsList","nodownload","oncontextmenu","return false;","preload","metadata"],[3,"innerHtml"]],template:function(_,l){1&_&&(e.j41(0,"ion-header",0)(1,"ion-toolbar",1)(2,"ion-buttons",2)(3,"ion-button",3),e.bIt("click",function(){return l.goBack()}),e.nrm(4,"ion-icon",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()(),e.j41(7,"ion-content")(8,"div",5)(9,"ion-button",6),e.bIt("click",function(){return l.goBack()}),e.nrm(10,"ion-icon",4),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"div",7),e.DNE(14,I,2,1,"div",8)(15,M,13,4,"ion-grid",9)(16,F,13,4,"ion-grid",9)(17,k,14,5,"ion-grid",9)(18,V,14,5,"ion-grid",9)(19,L,13,4,"ion-grid",9),e.k0s(),e.nrm(20,"app-footer"),e.k0s()),2&_&&(e.R7$(5),e.SpI(" ",e.bMT(6,8,"Video")," "),e.R7$(6),e.SpI(" ",e.bMT(12,10,"VIDEO.Back")," "),e.R7$(3),e.Y8G("ngIf",l.loading),e.R7$(),e.Y8G("ngIf",l.youtube_video),e.R7$(),e.Y8G("ngIf",l.vimeo_video),e.R7$(),e.Y8G("ngIf","rss"===l.feed_type||"vimeo"===l.feed_type||"external"===l.feed_type),e.R7$(),e.Y8G("ngIf","rss"===l.feed_type||"vimeo"===l.feed_type||"external"===l.feed_type),e.R7$(),e.Y8G("ngIf","content"===l.feed_type))},dependencies:[c.eU,c.ai,c.QW,c.Jm,c.iq,c.W9,c.lO,c.b_,c.I9,c.tN,r.bT,y.h,s.n,n.W,y.D9],styles:[".rssVideoDetail[_ngcontent-%COMP%]{margin-top:0}"]})}}return o}
1)()},42962(P,O,a){a.d(O,{M:()=>g});var r=a(84943),c=a(11334),y=a(91876),b=a(59477),$=a(68554),d=a(53118),f=a(30299);let g=(()=>{class D{constructor(t,s){this.http=t,this.observableService=s,this.api_end_point=r.environment.api_end_point,this.selected_video={},this.is_iframe=!1,this._headers=new b.Lr,this._headers=this._headers.append("Content-Type","application/json"),this._headers=this._headers.append("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),this._headers=this._headers.append("Authorization",this.api_end_point)}getShows(t,s,n){return this.http.get(`${r.environment.api_end_point}${d.S.SHOWS.SHOWS_LISTING}/${t}/${s}/${n}`,{headers:this._headers})}getShow(t,s){return this.http.get(`${r.environment.api_end_point}${d.S.SHOWS.SHOW}/${s}/${t}`,{headers:this._headers})}getSeriesShows(t,s){return this.http.get(`${r.environment.api_end_point}${d.S.SHOWS.SHOWS_BY_ID}/${s}/${t}`,{headers:this._headers})}getAudioVideoShows(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.SHOWS_AUDIO_VIDEO}`,t,{headers:this._headers})}getVideoShowsFeed(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.SHOWS_AUDIO_VIDEO}`,t,{headers:this._headers})}getAllShows(t,s=null,n="0"){const h=t,v=localStorage.getItem("device_id");return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.EXTERNAL_LINK_DATA}`,JSON.stringify({url:h,method:"getAllShows",device_id:v,page_no:s,hide_future_rss_content:n}),{headers:this._headers})}getFeed(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.EXTERNAL_DATA}`,JSON.parse(t),{headers:this._headers})}getLatestShow(t){return this.http.get(`${r.environment.api_end_point}${d.S.CONTENT_CMS.GET_RECENT_SHOW}/${t}`,{headers:this._headers})}getYoutubeChannel(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.EXTERNAL_LINK_DATA}`,JSON.stringify({url:t,method:"getYoutubeChannel",app_lang:"en"}),{headers:this._headers})}getYoutubePlaylist(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.TRANSLATE_EXTERNAL_LINK}`,JSON.stringify({url:`https://www.googleapis.com/youtube/v3/playlistItems?part=snippet,contentDetails&maxResults=50&playlistId=${t}&key=${r.environment.youtube_api_key}`,method:"getYoutubePlaylist",app_lang:"en"}),{headers:this._headers})}getYoutubeUserPlaylist(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.EXTERNAL_LINK_DATA}`,JSON.stringify({url:t,method:"getYoutubeUserPlaylist",app_lang:"en"}),{headers:this._headers})}fetchAllVideoDetails(t){return this.http.get(`https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,statistics&id=${t}&key=${r.environment.youtube_api_key}`).pipe((0,y.T)(n=>{if(n.items&&n.items.length>0)return n;throw new Error(`No video details found for IDs: ${t}`)}))}getVimeoChannel(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.TRANSLATE_EXTERNAL_LINK}`,JSON.stringify({url:t,method:"getVimeoVideo",app_lang:"en"}))}getVimeoUser(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.TRANSLATE_EXTERNAL_LINK}`,JSON.stringify({url:t,method:"getVimeoUser",app_lang:"en"}),{headers:this._headers})}getChannelId(t){const s=new c.B;return this.http.get(`https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=5&q=${t}&type=channel&key=${r.environment.youtube_api_key}`).subscribe(n=>{if(0===n.items.length)throw new Error(`Channel not found: ${t}`);s.next(n.items[0].id.channelId)}),s.asObservable()}checkData(t){if(Array.isArray(t))return t;if(t instanceof Object){if(t.hasOwnProperty("data"))return t.data;if(t.hasOwnProperty("items"))return t.items;if(t.hasOwnProperty("channel"))return t.channel.item;{let s=!1,n=[];return Object.keys(t).forEach(h=>{Array.isArray(t[h])&&!s?(s=!0,n=t[h]):Object.keys(t[h]).forEach(v=>{Array.isArray(t[v])&&!s&&(s=!0,n=t[v])})}),n}}}getRss(t,s){return this.http.get(`${r.environment.api_end_point}${d.S.SHOWS.SHOW_EXTERNAL}/${t}/${s}`)}createAudioFeedRss(t){return this.http.post(`${r.environment.api_end_point}${d.S.FEEDS.ADD_FEED_RSS}`,JSON.parse(t),{headers:this._headers})}externalLinkData(t,s=0,n="0"){const v=`${r.environment.api_end_point}${d.S.SHOWS.EXTERNAL_LINK_DATA}`,S=JSON.stringify({url:t,method:"getrss",offset:s,hide_future_r
1ss_content:n});return this.http.post(v,JSON.parse(S),{headers:this._headers})}createAudioFeeds(t){return this.http.post(`${r.environment.api_end_point}${d.S.FEEDS.ADD_FEED}`,JSON.parse(t),{headers:this._headers})}createVideoFeeds(t){return this.http.post(`${r.environment.api_end_point}${d.S.FEEDS.ADD_FEED}`,JSON.parse(t),{headers:this._headers})}getFeedsRss(t){return this.http.get(`${r.environment.api_end_point}${d.S.FEEDS.COMMENTS_RSS}${t}`)}getFeeds(t,s){return this.http.get(`${r.environment.api_end_point}${d.S.FEEDS.FEED_COMMENTS}${s}/${t}`)}getPodsDataWithPagination(t){return this.http.post(`${r.environment.api_end_point}${d.S.FEEDS.RSS_AUDIO_FETCH}`,JSON.parse(t),{headers:this._headers})}createAudioFeedsArray(t){return this.http.post(`${r.environment.api_end_point}${d.S.FEEDS.ADD_AUDIO_FEED_MULTIPLE}`,JSON.parse(t),{headers:this._headers})}createSermon(t){return this.http.post(`${r.environment.api_end_point}${d.S.SHOWS.ADD_SHOW}`,JSON.parse(t),{headers:this._headers})}getSermons(t){return this.http.get(`${r.environment.api_end_point}${d.S.SHOWS.SHOW_COMMENTS}${t}`+t)}static{this.\u0275fac=function(s){return new(s||D)(f.KVO(b.Qq),f.KVO($.s))}}static{this.\u0275prov=f.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}}return D})()}}]);
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.