1"use strict";(self.webpackChunkmyApp=self.webpackChunkmyApp||[]).push([[135],{2135:(b,p,c)=>{c.r(p),c.d(p,{VideoswidgetModule:()=>L});var l=c(4755),h=c(4209),u=c(2340),d=c(1591),t=c(9523),v=c(1491),m=c(4333);const _=function(a){return{current:a}};function w(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"li",17),t.NdJ("click",function(){const n=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.filtermediaDataBycategory(n))}),t._uU(1),t.qZA()}if(2&a){const e=s.$implicit,i=t.oxw(2);t.Tol(e.CategoryName),t.Q6J("ngClass",t.VKq(5,_,e.CategoryName==i.catGoryMenu)),t.xp6(1),t.Oqu(e.CategoryName)}}function T(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",11)(1,"div",12)(2,"div",13)(3,"ul",14)(4,"li",15),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.filtermediaDataBycategory(""))}),t._uU(5,"All"),t.qZA(),t.YNc(6,w,2,7,"li",16),t.qZA()()()()}if(2&a){const e=t.oxw();t.xp6(4),t.Q6J("ngClass",t.VKq(2,_,"all"==e.catGoryMenu)),t.xp6(2),t.Q6J("ngForOf",e.categList)}}function C(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"img",35),t.NdJ("error",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.src=o.swidgetBasePath+"images/videodefault.jpg")}),t.qZA()}if(2&a){const e=t.oxw().$implicit;t.s9C("src",e.MediumThumbImage,t.LSH)}}function x(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"img",35),t.NdJ("error",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.src=o.swidgetBasePath+"images/videodefault.jpg")}),t.qZA()}if(2&a){const e=t.oxw().$implicit;t.s9C("src",e.MediaData.videoMedImg,t.LSH)}}function y(a,s){if(1&a&&t._UZ(0,"img",36),2&a){const e=t.oxw(2);t.MGl("src","",e.swidgetBasePath,"images/videodefault.jpg",t.LSH)}}function I(a,s){if(1&a&&(t.TgZ(0,"p",37),t._uU(1),t.qZA()),2&a){const e=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.Oqu(i.getCategoryName(e.Category))}}function S(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",38)(1,"div",39),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.share("facebook"))}),t.O4$(),t.TgZ(2,"svg",40),t._UZ(3,"path",41),t.qZA()(),t.kcU(),t.TgZ(4,"div",42),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.share("twitter"))}),t.O4$(),t.TgZ(5,"svg",43),t._UZ(6,"path",44),t.qZA()(),t.kcU(),t.TgZ(7,"div",45),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.share("whatsapp"))}),t.O4$(),t.TgZ(8,"svg",43),t._UZ(9,"path",46),t.qZA()()()}2&a&&t.Q6J("@slideInOut",void 0)}const M=function(a){return{active:a}};function N(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",18)(1,"figure",19)(2,"picture"),t.YNc(3,C,1,1,"img",20),t.YNc(4,x,1,1,"img",20),t.YNc(5,y,1,1,"img",21),t.qZA(),t.TgZ(6,"p",22)(7,"i"),t._uU(8),t.qZA()(),t.TgZ(9,"figcaption",23),t.YNc(10,I,2,1,"p",24),t.TgZ(11,"p",25),t._uU(12),t.qZA(),t._UZ(13,"img",26),t.TgZ(14,"div",27)(15,"span",28),t._uU(16),t.qZA()()(),t._UZ(17,"a",29),t.TgZ(18,"div",30)(19,"button",31,32),t.NdJ("click",function(){const n=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.toggleShareOptions(n))}),t._UZ(21,"img",33),t.qZA(),t.YNc(22,S,10,1,"div",34),t.qZA()()()}if(2&a){const e=s.$implicit,i=t.oxw();t.Gre("col s12 m6 l3 videoGrid-thumb ",i.widgetGrid,""),t.xp6(3),t.Q6J("ngIf",null!=e.MediumThumbImage&&""!=e.MediumThumbImage),t.xp6(1),t.Q6J("ngIf",!(null!=e.MediumThumbImage&&""!=e.MediumThumbImage||null==e.MediaData.videoMedImg&&""==e.MediaData.videoMedImg)),t.xp6(1),t.Q6J("ngIf",!(null!=e.MediumThumbImage&&""!=e.MediumThumbImage||null!=e.MediaData.videoMedImg&&""!=e.MediaData.videoMedImg)),t.xp6(3),t.Oqu(e.MediaData.videoDuration),t.xp6(2),t.Q6J("ngIf",null!=e.Category&&""!=e.Category&&0!=e.Category),t.xp6(2),t.Oqu(e.Title),t.xp6(4),t.Oqu(i.getDate(e.Date)),t.xp6(1),t.cQ8("href","",i.siteBasePath,"videos/",e.Season,"/",e.SNo,"",t.LSH),t.xp6(2),t.Q6J("ngClass",t.VKq(15,M,1==e.isShare)),t.xp6(3),t.Q6J("ngIf",1==e.isShare)}}function V(a,s){if(1&a){const e=t.EpF();t.TgZ(0,"div",47)(1,"pagination-controls",48),t.NdJ("pageChange",function(o){t.CHM(e);const n=t.oxw();return t.KtG(n.page=o)}),t.qZA()()}}const Z=function(a){return{itemsPerPage:10,currentPage:a}},D=[{path:"",component:(()=>{class a{constructor(e,i,o){this.apiService=e,this.document=i,this.renderer=o,this.swidgetBasePath=u.N.swidgetBasePath,this.siteBasePath=u.N.mediaPath,this.widgetGrid=16,this.menuId="1",this.pagedItems=[],this.categList=[],this.clientFeedData=[],this.mediaList=[],this.page=1,this.maxSize=5,this.directionLinks=!0,this.autoHide=!0,this.catGoryMenu="all",this.platforms={facebook:"https://www.facebook.com/sharer/sharer.php",twitter:"https://twitter.com/intent/tweet",linkedin:"https://www.linkedin.com/shareArticle",whatsapp:"https://api.whatsapp.com/se
1nd",instagram:"instagram://story-share"}}loadCSS(e,i){const o=e.createElement("link");return o.rel="stylesheet",o.type="text/css",o.href=i,e.appendChild(this.document.body,o),o}ngOnInit(){(new Date).getTime(),this.apiService.fetchClientData().subscribe(i=>{if(i=JSON.parse(i),this.clientFeedData=null!=i.clientData&&i.clientData.length>0?i.clientData:[],this.clientFeedData.length>0){var o=this.clientFeedData.filter(r=>r.menuId==this.menuId),n=o[0].groupName;console.log(o,"newsfeedlink"),null!=o[0].data[0].categoryPath&&""!=o[0].data[0].categoryPath&&this.getCategList(o[0].data[0].categoryPath,n)}}),this.apiService.getVideosData().subscribe(i=>{i=(i=i.replace("onVideos(","")).replace(");","");var o=null!=(i=JSON.parse(i)).videos?i.videos:[];console.log(o,"testphotoeswidjettt"),console.log([]),this.mediaList=o,this.pagedItems=o}),this.loadCSS(this.renderer,"assets/css/stories/PVNI-crud.css?v=081112")}getCategList(e,i){var o="on"+i+"Category";this.apiService.fetchMediaCategList(e).subscribe(n=>{n=(n=n.replace(o+"(","")).replace(");","");let r=[];r=(n=JSON.parse(n)).category,this.categList=r.filter(g=>0!=g.CategoryID),console.log(this.categList,"urlnewslistcat")})}filtermediaDataBycategory(e){if(""!=e&&null!=e){let i=e.CategoryID;this.catGoryMenu=e.CategoryName,console.log(this.catGoryMenu,"menutype");let o=[];o=this.mediaList.filter(n=>n.Category==i),this.pagedItems=o}else this.catGoryMenu="all",this.page=1,this.pagedItems=this.mediaList}getDate(e){var i=e.split(" "),o="",g=i[0].split("-");return[{mNo:"01",mText:"Jan"},{mNo:"02",mText:"Feb"},{mNo:"03",mText:"Mar"},{mNo:"04",mText:"Apr"},{mNo:"05",mText:"May"},{mNo:"06",mText:"Jun"},{mNo:"07",mText:"Jul"},{mNo:"08",mText:"Aug"},{mNo:"09",mText:"Sep"},{mNo:"10",mText:"Oct"},{mNo:"11",mText:"Nov"},{mNo:"12",mText:"Dec"}].map(function(f){f.mNo==g[1]&&(o=f.mText)}),g[2]+" "+o+" "+g[0]}getCategoryName(e){if(null!=this.categList&&this.categList.length>0){var i=this.categList.filter(o=>o.CategoryID==e);return null!=i&&i.length>0?i[0].CategoryName:""}}toggleShareOptions(e){console.log(this.pagedItems,"testtt"),console.log(e.SNo,"test2");for(var i=0;i<this.pagedItems.length;i++)this.pagedItems[i].SNo==e.SNo?(console.log("yes11"),this.pagedItems[i].isShare=0==this.pagedItems[i].isShare||""==this.pagedItems[i].isShare||null==this.pagedItems[i].isShare?1:0):this.pagedItems[i].isShare=0;this.shareItem=e,this.shareItem.url=this.siteBasePath+"photos/"+e.Season+"/"+e.SNo,console.log(this.shareItem,"clicknews")}share(e){"facebook"==e?this.shareToFacebook(this.shareItem):"twitter"==e?this.shareToTwitter(this.shareItem):"linkedin"==e?this.shareToLinkedIn(this.shareItem):"whatsapp"==e?this.shareToWhatsApp(this.shareItem):"instagram"==e?this.shareToInstagram(this.shareItem):console.warn(`Unsupported platform: ${e}`)}shareToFacebook(e){const i=new URLSearchParams({u:e.url,quote:e.Title});this.openShareWindow(`${this.platforms.facebook}?${i}`)}shareToTwitter(e){e.Description=null!=e.Description&&""!=e.Description?e.Description:"";const i=new URLSearchParams({text:`${e.Title}\n${e.Description}`,url:e.url});this.openShareWindow(`${this.platforms.twitter}?${i}`)}shareToLinkedIn(e){const i=new URLSearchParams({url:e.url,Title:e.Title,summary:null!=e.Description&&""!=e.Description?e.Description:"",source:window.location.hostname});this.openShareWindow(`${this.platforms.linkedin}?${i}`)}shareToWhatsApp(e){console.log(e.Description),e.Description=null!=e.Description&&""!=e.Description?e.Description:"";const o=new URLSearchParams({text:`${e.Title}\n\n${e.Description}\n\n${e.url}`});this.openShareWindow(`${this.platforms.whatsapp}?${o}`)}shareToInstagram(e){if(this.isInstagramAvailable())try{console.log("testinsta");const i=new URLSearchParams({source_application:window.location.hostname,text:e.Title,url:e.url,caption:null!=e.Description&&""!=e.Description?e.Description:""});window.location.href=`${this.platforms.instagram}?${i}`}catch(i){console.warn("Failed to open Instagram sharing:",i),this.fallbackToInstagramShare(e)}else this.fallbackToInstagramShare(e)}fallbackToInstagramShare(e){this.openShareWindow("https://instagram.com"),console.info("Direct sharing to Instagram is not supported. Please copy and paste the content manually.")}isInstagramAvailable(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)}openShareWindow(e){window.open(e,"ShareWindow","height=450, width=600, top="+(window.innerHeight/2-225)+", left
1="+(window.innerWidth/2-300))}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(v.s),t.Y36(l.K0),t.Y36(t.Qsj))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-videoswidget"]],decls:14,vars:8,consts:[["id","mediaGrid-page",1,"default-bg-pattern"],[1,"indPage-Header"],[1,"header-wrapper"],["id","main-content","tabindex","0"],["type","hidden","name","pagename","value","videos",1,"pagename"],[1,"wrapper"],[1,"row"],["id","mcMenuWrapper","class","secondary-menu-container",4,"ngIf"],[1,"videoSlider"],["data-mediaId","item.SNo",3,"class",4,"ngFor","ngForOf"],["class","pagination_container",4,"ngIf"],["id","mcMenuWrapper",1,"secondary-menu-container"],[1,"mcContainer"],[1,"tabLinkscontainer","tabLinkscontainer-second"],[1,"mcTabs","mcTabs-second"],[1,"all",3,"ngClass","click"],[3,"class","ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"],["data-mediaId","item.SNo"],[1,"thumb-container"],["loading","lazy","alt","","class","thumb-image lazyload",3,"src","error",4,"ngIf"],["loading","lazy","alt","","class","thumb-image lazyload",3,"src",4,"ngIf"],[1,"marker","markerVideo","tagColor-three"],[1,"thumb-caption","anim-transition"],["class","secTag tagColor-one",4,"ngIf"],[1,"capTitle","marginB10"],["src","assets/images/play-icon.png","alt","",1,"vid-icon"],[1,"story-content-detail"],[1,"postDate"],[1,"otherLinks",3,"href"],[1,"share-container"],[1,"share-button",3,"ngClass","click"],["shareBtn",""],["src","assets/images/share-ico.png","alt","Share"],["class","share-menu",4,"ngIf"],["loading","lazy","alt","",1,"thumb-image","lazyload",3,"src","error"],["loading","lazy","alt","",1,"thumb-image","lazyload",3,"src"],[1,"secTag","tagColor-one"],[1,"share-menu"],["title","Share on Facebook",1,"share-option",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512"],["d","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"],["title","Share on Twitter",1,"share-option",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512"],["d","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm297.1 84L257.3 234.6 379.4 396H283.8L209 298.1 123.3 396H75.8l111-126.9L69.7 116h98l67.7 89.5L313.6 116h47.5zM323.3 367.6L153.4 142.9H125.1L296.9 367.6h26.3z"],["title","Share on WhatsApp",1,"share-option",3,"click"],["d","M92.1 254.6c0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6L152 365.2l4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8c0-35.2-15.2-68.3-40.1-93.2c-25-25-58-38.7-93.2-38.7c-72.7 0-131.8 59.1-131.9 131.8zM274.8 330c-12.6 1.9-22.4 .9-47.5-9.9c-36.8-15.9-61.8-51.5-66.9-58.7c-.4-.6-.7-.9-.8-1.1c-2-2.6-16.2-21.5-16.2-41c0-18.4 9-27.9 13.2-32.3c.3-.3 .5-.5 .7-.8c3.6-4 7.9-5 10.6-5c2.6 0 5.3 0 7.6 .1c.3 0 .5 0 .8 0c2.3 0 5.2 0 8.1 6.8c1.2 2.9 3 7.3 4.9 11.8c3.3 8 6.7 16.3 7.3 17.6c1 2 1.7 4.3 .3 6.9c-3.4 6.8-6.9 10.4-9.3 13c-3.1 3.2-4.5 4.7-2.3 8.6c15.3 26.3 30.6 35.4 53.9 47.1c4 2 6.3 1.7 8.6-1c2.3-2.6 9.9-11.6 12.5-15.5c2.6-4 5.3-3.3 8.9-2s23.1 10.9 27.1 12.9c.8 .4 1.5 .7 2.1 1c2.8 1.4 4.7 2.3 5.5 3.6c.9 1.9 .9 9.9-2.4 19.1c-3.3 9.3-19.1 17.7-26.7 18.8zM448 96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96zM148.1 393.9L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5c29.9 30 47.9 69.8 47.9 112.2c0 87.4-72.7 158.5-160.1 158.5c-26.6 0-52.7-6.7-75.8-19.3z"],[1,"pagination_container"],[1,"float-right",3,"pageChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),t._uU(4,"Videos"),t.qZA()()(),t.TgZ(5,"main",3),t._UZ(6,"input",4),t.TgZ(7,"div",5)(8,"div",6),t.YNc(9,T,7,4,"div",7),t.TgZ(10,"div",8),t.YNc(11,N,23,17,"div",9),t.ALo(12,"paginate"),t.qZA(),t.YNc(13,V,2,0,"div",10),t.qZA()()()()),2&e&&(t.xp6(9),t.Q6J("ngIf",i.categList.length>0),t.xp6(2),t.Q6J("ngForOf",t.xi3(12,3,i.pagedItems,t.VKq(6,Z,i.page))),t.xp6(2),t.Q6J("ngIf",i.pagedItems.length>10))},dependencies:[l.mk,l.sg,l.O5,m.LS,m._s],data:{animation:[(0,d.X$)("slideInOut",[(0,d.eR)(":enter",[(0,d.oB)({transform:"translateY(-10px)",opacity:0}
1),(0,d.jt)("200ms ease-out",(0,d.oB)({transform:"translateY(0)",opacity:1}))]),(0,d.eR)(":leave",[(0,d.jt)("200ms ease-in",(0,d.oB)({transform:"translateY(-10px)",opacity:0}))])])]}}),a})()}];let k=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[h.Bz.forChild(D),h.Bz]}),a})(),L=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[l.ez,k,m.JX]}),a})()}}]);
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.