PageSourceSearch

https://www.vivanationtv.com/3195.6330a8cf0c79a3a8.js

js vivanationtv.com collected 2026-10-07 19:30:10 UTC 230,000 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhungama_music_web=self.webpackChunkhungama_music_web||[]).push([[3195],{63195:(xn,ht,x)=>{x.r(ht),x.d(ht,{LibraryModule:()=>Tn});var S=x(69808),O=x(56443),N=x(74538),j=x(73673),c=x(38757),t=x(29863),J=x(52690),U=x(41845),B=x(5070),P=x(89854),z=x(7408),Q=x(63601);function wt(l,r){1&l&&(t.TgZ(0,"a",28),t._UZ(1,"img",29),t.qZA())}function kt(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",13),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().postAddToPlaylist(o)}),t.TgZ(2,"div",14)(3,"div",15)(4,"a",16),t._UZ(5,"i",17),t.qZA()(),t.TgZ(6,"a",16),t._UZ(7,"img",18),t.qZA()(),t.TgZ(8,"div",19)(9,"p",20),t._uU(10),t.qZA(),t.TgZ(11,"p",21),t.YNc(12,wt,2,0,"a",22),t._uU(13),t.qZA()(),t._UZ(14,"div",23),t.TgZ(15,"div",24),t._uU(16),t.qZA(),t.TgZ(17,"div",25)(18,"a",26),t._UZ(19,"span",27),t.qZA()()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw();t.xp6(1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(6),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(3),t.hij("",null==e||null==e.data?null:e.data.title," "),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data||null==e.data.misc?null:e.data.misc.explicit),t.xp6(1),t.hij("",null==e||null==e.data?null:e.data.subtitle," "),t.xp6(3),t.hij(" ",i.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," ")}}let At=(()=>{class l{constructor(e,i,n,o,a,s){this.libraryService=e,this.ssoStorageService=i,this.router=n,this.storageService=o,this.activeRoute=a,this.translate=s,this.similarList=[],this.searchText="",this.header={title:" Add Song"},this.breadcrumbs=[],this.isOpenSideBar=!0,this.lastToastTime=0,this.toastQueue=[],this.toastTimer=null,this.toastCooldown=!1}ngOnInit(){this.isOpenSideBar=this.storageService.getSideBarStatus(),this.getRecommendedSong()}getRecommendedSong(){this.libraryService.getRecommdedSong("49541390").subscribe(i=>{i&&i.data&&i.data.body&&i.data.body.rows&&(this.similarList=i.data.body.rows,this.makeBreadCrumList())})}postAddToPlaylist(e){this.similarList=(this.similarList||[]).filter(a=>a.data.id!=e.data.id);const i=this.ssoStorageService.getUserDetails();let n=this.activeRoute.snapshot.paramMap.get("typeId");this.libraryService.getAddToPlayList({contentid:n,uid:i.uid||i.user_id}).subscribe(a=>{var s,d;if(a&&a.data){if(a.data.body.rows.filter(_=>_.data.id===e.data.id).length>0)return(null==i?void 0:i.isGold)?void c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.title)+`${this.translate.instant("toast_str_42")}`,"TOP_RIGHT","INFO"):void c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.title)+`${this.translate.instant("toast_str_42")}`,"TOP_RIGHT","SUCCESS");this.libraryService.postAddToPlaylist({contentid:e.data.id,uid:i.uid||i.user_id,activeRouteId:n}).subscribe(_=>{"success"===_.message?c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,this.translate.instant("toast_str_42"),"TOP_RIGHT","SUCCESS"):c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,_.message,"TOP_RIGHT","DANGER")})}})}makeBreadCrumList(){this.breadcrumbs=j.E.ADD_SONG_TO_PLAYLIST}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(J.$),t.Y36(U.T),t.Y36(O.F0),t.Y36(B.V),t.Y36(O.gz),t.Y36(P.sK))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-add-song-into-playlist"]],decls:17,vars:15,consts:[[1,"for-left-padding","main-area-container","fullscreen"],[1,"inner-mid-area"],["id","Listen",1,"hg-tabcontent","d-block"],[1,"listen-playlist-wrapper"],[1,"playlist-player"],[1,"playlist-player-inner","pdlr-40"],[3,"songDetails","isThreedotDisplay","rowsPlayList","threeDotType","TYPE_THREE_DOTS","breadcrumbs"],[1,"queue-list-title"],[1,"queue-list-col-title","queue-list-song-col"],[1,"queue-list-col-title","queue-list-album-col"],[1,"queue-list-col-title","queue-list-duration-col"],["id","dragdrop",1,"queue-listing-wrap","queue-listing-wrap-reset","add-song-plr"],[4,"ngFor","ngForOf"],[1,"queue-list","sortable-active",3,"title","click"],[1,"queue-list-thmb"],[1,"queue-list-thmb-overlay"],[1,"curs
1or-pointer"],[1,"icon-play"],["alt","thumbnail",3,"src"],[1,"queue-list-song-desc"],[1,"queue-song-name"],[1,"queue-song-desc"],["class","queue-e cursor-pointer",4,"ngIf"],[1,"queue-list-song-albumname"],[1,"queue-list-song-duration"],[1,"queue-list-song-features"],[1,"qdownload","cursor-pointer"],[1,"icon-Add_Song"],[1,"queue-e","cursor-pointer"],["src","https://assetsun.hungama.com/image/e.svg"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),t._UZ(6,"app-breadcrumbs",6),t.TgZ(7,"div",7)(8,"div",8),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"div",9),t.TgZ(12,"div",10),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",11),t.YNc(16,kt,20,6,"ng-container",12),t.qZA()()()()()()()),2&e&&(t.ekj("for-left-padding",!i.isOpenSideBar),t.xp6(6),t.Q6J("songDetails",i.header)("isThreedotDisplay",!1)("rowsPlayList",i.similarList)("threeDotType","PLYLIST_DETAIL_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","PLAYLIST_DETAIL")("breadcrumbs",i.breadcrumbs),t.xp6(3),t.hij(" ",t.lcZ(10,11,"Title")," "),t.xp6(4),t.hij(" ",t.lcZ(14,13,"Duration")," "),t.xp6(3),t.Q6J("ngForOf",i.similarList))},directives:[z.n,S.sg,Q.u,S.O5],pipes:[P.X$],styles:['.queue-popup-wrapper{position:fixed;padding:0 320px 0 276px;z-index:5;top:80px;width:100%;left:0px;display:none;transition:all .2s}.main-area-container.for-left-padding .queue-popup-wrapper{padding-left:107px!important}#music-queue .queue-popupbox-wrapper{background-image:url(https://assetsun.hungama.com/image/music-queue-bg.png);background-size:100% 100%;width:100%;height:100vh;position:sticky;top:0px}.queue-box-inner{-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);width:100%;height:100vh;background-color:#0000005d;padding:15px 20px;position:relative}.queue-htittle-box{text-align:center}.queue-htittle-box{text-align:center;width:100%;position:relative;margin-bottom:15px}.next-queue{margin:0;color:#fff;font-size:16px;line-height:38px}.next-queue-closebtn{right:0;top:0}.q-nowplaying-title{padding:0 10px;margin:0;color:#fff;font-size:14px}.queue-nowplaying-box{background:rgba(255,255,255,.1);border-radius:7px;padding:10px;margin:15px 0 30px;display:flex;align-items:center;-webkit-align-items:center}.queue-song-name{margin:0 0 3px;color:#fff;font-size:16px;line-height:18px}.queue-song-desc{font-size:13px;color:#c6c6c6;overflow:hidden;text-overflow:ellipsis;width:97%;display:inline-block;white-space:nowrap}.queue-song-thmb{width:56px;margin-right:10px;border-radius:7px;overflow:hidden;position:relative}.queue-song-thmb:after{width:56px;height:56px;content:"";background:rgb(0 0 0 / 50%);position:absolute;left:0;top:0}.queue-song-thmb img{width:100%}.que-equ-icon{color:#fff;font-size:21px;position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%)}.queue-e{width:11px;display:inline-block;margin-right:5px}.queue-e img{width:100%;position:relative;top:1px}.queue-list-title{padding:10px;display:flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between;color:#fff;position:relative;cursor:move}.queue-list-col-title{font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#909090}.queue-list-song-col{width:46%;padding-left:10px}.queue-list-album-col{width:29%}.queue-list-duration-col{width:28%}.queue-list{border-radius:7px;padding:10px 20px;display:flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between;color:#fff;position:relative;cursor:move}.sortable-chosen,.sortable-ghost,.sortable-active{background:rgb(0 0 0 / 10%);-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px)}.queue-list-icon .icon-Align-song-up-n-down{font-size:18px}.queue-list-thmb{border-radius:7px;width:54px;overflow:hidden;margin:0 20px 0 0;position:relative}.queue-list-song-desc{width:30%}.queue-list-song-desc-reset{width:70%;margin-top:7px}.queue-list .queue-song-name{cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;width:90%}.queue-list-song-albumname{width:28%;font-size:14px;color:#c6c6c6}.queue-list-song-duration{width:10%;font-size:14px;color:#c6c6c6}.qlike,.qdownload{font-size:20px;color:#fff}.queue-list-song-features{width:15%;text-align:right}.queue-list:after{content:"";width:97%;height:1px;background:rgb(229 229 229 / 15%);position:absolute;bottom:0;left:2%}.queue-list-thmb-overlay{display:none;position:absolute;
1left:0px;top:0px;height:100%;width:100%;z-index:1;background:#00000070;border-radius:7px}.queue-list-thmb-overlay a{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);color:#282828;width:24px;height:24px;text-align:center;background:#ffffff;border-radius:50%;display:flex;align-items:center;-webkit-align-items:center;justify-content:center;-webkit-justify-content:center}.queue-list-thmb:hover .queue-list-thmb-overlay{display:block}.queue-listing-wrap{margin-top:15px}.queue-listing-wrap{margin-top:20px;overflow-x:scroll;height:50vh}.queue-listing-wrap .queue-list:last-child:after{display:none}.queue-listing-wrap-reset{height:auto}.fs-hover .queue-list:hover{background:#e5e5e52b;border-radius:5px}.fs-hover .queue-list:hover:after{display:none}#podcast-queue .queue-popupbox-wrapper{background-image:url(https://assetsun.hungama.com/image/podcastimg.png);background-size:100% 100%;width:100%;height:100vh;position:sticky;top:0px}.time-border-right{border-right:1px solid #3a3a3a}.onex{width:22px}.radio-live{background:#282828;border-radius:5px;font-size:14px;padding:5px 12px;color:#fff;margin-right:5px}.disable-button,.disable-button:hover{color:#646464}.get-app-premium a:first-child{line-height:21px}.search-bar input{font-size:15px}.queue-list-song-features .qfa{margin-left:12px}.add-song-plr{margin-right:-20px;margin-bottom:80px}.current-play-song{-webkit-text-size-adjust:100%;--swiper-theme-color: #007aff;--swiper-navigation-size: 44px;cursor:pointer;-webkit-box-sizing:border-box;margin:0;padding:0;border:0;vertical-align:baseline;font-family:icomoon!important;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;position:absolute;top:50%;left:50%;font-size:22px!important;-webkit-transform:translate(-50%,-50%);opacity:1!important;color:#fff!important}app-add-song-into-playlist .queue-list:hover{background:#e5e5e52b;border-radius:5px;border-top:2px solid transparent}app-add-song-into-playlist .queue-list:hover .queue-list-thmb-overlay{display:block}\n'],encapsulation:2}),l})();var Z=x(98340),u=x(48340),M=x(17489),b=x(99056),C=x(93075),k=x(52308),ct=x(53935),mt=x(16944),bt=x(52950),V=x(41303),ft=x(66899),W=x(38194),yt=x(25510),st=x(62920),Tt=x(98850),rt=x(80193),K=x(61881),ut=x(31354);function Lt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-three-dots",53),t.NdJ("optionDetails",function(n){return t.CHM(e),t.oxw().getThreeDotdata(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("optionDetail",e.optionDetail)}}function Pt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-breadcrumbs",54),t.NdJ("click",function(){return t.CHM(e),t.oxw().updatePlaylist()}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("songDetails",null==e.createPlaylistDetail||null==e.createPlaylistDetail.head?null:e.createPlaylistDetail.head.data)("rowsPlayList",e.createdPlayList)("threeDotType","CREATE_PLAYLIST_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","PLAYLIST_DETAIL")("breadcrumbs",e.breadcrumbs)}}function Et(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-breadcrumbs",54),t.NdJ("click",function(){return t.CHM(e),t.oxw().updatePlaylist()}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("songDetails",null==e.createPlaylistDetail||null==e.createPlaylistDetail.head?null:e.createPlaylistDetail.head.data)("rowsPlayList",e.createdPlayList)("threeDotType","CREATE_PLAYLIST_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","PLAYLIST_DETAIL")("breadcrumbs",e.breadcrumbs)}}function Ot(l,r){1&l&&t._UZ(0,"img",55)}function Zt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"img",56),t.NdJ("error",function(){t.CHM(e);const n=t.oxw();return n.storageService.setDefaultImageWithMusicSymbol(null==n.createPlaylistDetail?null:n.createPlaylistDetail.head.data,"image")}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("src",null==e.createPlaylistDetail||null==e.createPlaylistDetail.head||null==e.createPlaylistDetail.head.data?null:e.createPlaylistDetail.head.data.image,t.LSH)}}function Mt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"a",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().playAllSong()}),t._UZ(1,"span",57),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&l){const e=t.oxw();t.ekj("btn-gold-bg",null==e.userDetails?null:e.userDetails.isGold),t.xp6(2),t.hij(" ",t.lcZ(3,3,"playall_general")," ")}}function It(l,r){1&l&&t._UZ(0,"img",55)}function Nt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"img",56),t.NdJ("error",function(){t.CHM(e);const n=t.oxw(2);return n.storageService.setDefaultImageWithMusicSymbol(null==n.createPlaylistDetail?null:n.createPlaylistDetail.head.data,"image")}),t.qZA()}if(2&l){const e=t.oxw(2);t.ekj("h-100","https://assetsun.hungama.com/images/default_playlist-icon.png"==(null==e.createPlaylistDetail?null:e.createPlaylistDetail.head.data.image)),t.Q6J("src",null==e.createPlaylistDetail||null==e.createPlaylistDetail.head||null==e.createPlaylistDetail.head.data?null:e.createPlaylistDetail.head.data.image,t.LSH)}}function Rt(l,r){if(1&l&&(t.TgZ(0,"div",58),t.YNc(1,It,1,0,"img",13),t.YNc(2,Nt,1,3,"img",59),t.qZA()),2&l){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!(null!=e.createPlaylistDetail&&null!=e.createPlaylistDetail.head&&null!=e.createPlaylistDetail.head.data&&e.createPlaylistDetail.head.data.image)),t.xp6(1),t.Q6J("ngIf",null==e.createPlaylistDetail||null==e.createPlaylistDetail.head||null==e.createPlaylistDetail.head.data?null:e.createPlaylistDetail.head.data.image)}}function qt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",62)(1,"img",63),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw(2).storageService.setDefaultImage(null==o?null:o.data.image,"image")}),t.qZA()()}if(2&l){const e=r.$implicit;t.xp6(1),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.MGl("alt","",null==e||null==e.data?null:e.data.title,"-hover")}}function Yt(l,r){if(1&l&&(t.TgZ(0,"div",60),t.YNc(1,qt,2,2,"div",61),t.qZA()),2&l){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.imgArtworkList)}}function Ut(l,r){if(1&l&&(t.TgZ(0,"h1",64),t._uU(1),t.qZA()),2&l){const e=t.oxw();t.xp6(1),t.hij(" ",null==e.createPlaylistDetail||null==e.createPlaylistDetail.head||null==e.createPlaylistDetail.head.data?null:e.createPlaylistDetail.head.data.title,"")}}function Ft(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"h1",65),t._UZ(1,"i",66),t.TgZ(2,"input",67),t.NdJ("input",function(n){t.CHM(e);const o=t.oxw();return o.onSearchChange(n.target.value),o.editName=!0})("click",function(){return t.CHM(e),t.oxw().editName=!0}),t.qZA()()}if(2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("formControl",e.editPlaylistName)}}function Gt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"a",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().playAllSong()}),t._UZ(1,"span",57),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&l){const e=t.oxw();t.ekj("btn-gold-bg",null==e.userDetails?null:e.userDetails.isGold),t.xp6(2),t.hij(" ",t.lcZ(3,3,"playall_general"),"")}}function Ht(l,r){1&l&&t._UZ(0,"i",85)}function Jt(l,r){1&l&&(t.TgZ(0,"span",86),t._UZ(1,"img",87),t.qZA())}function Bt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"span",88)(1,"ng-lottie",89),t.NdJ("animationCreated",function(n){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().animationCreatedforFooterLoop(n,null==o?null:o.data)}),t.qZA()()}if(2&l){const e=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.Q6J("styles",i.styles1)("options",null==e?null:e.lottie)}}function Qt(l,r){1&l&&(t.TgZ(0,"a",90),t._UZ(1,"img",91),t.qZA())}function Vt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",92)(1,"a",93),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw().$implicit,a=t.oxw();return null!=a.addToplaylistDataSettingResponse&&null!=a.addToplaylistDataSettingResponse.parentalControl&&a.addToplaylistDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=o&&null!=o.data&&null!=o.data.misc&&o.data.misc.explicit?a.explicitiContentPopup():a.makeFavorite(o,"",!0),n.stopPropagation()}),t.TgZ(2,"span",94)(3,"ng-lottie",95),t.NdJ("animationCreated",function(n){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().animationCreatedforFooter(n,null==o?null:o.data)})("enterFrame",function(){t.CHM(e);const n=t.oxw().$implicit;return t.oxw().onLoopCompleteofFooter(null==n?null:n.data)}),t.qZA()()(),t.TgZ(4,"a",93),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw().$implicit,a=t.oxw();return null!=a.addToplaylistDataSettingResponse&&null!=a.addToplaylistDataSettingResponse.parentalControl&&a.addToplaylistDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=o&&null!=o.data&&null!=o.data.misc&&o.data.misc.explicit?a.explicitiContentPopup():a.onDonwload(null==o?null:o.data),n.stopPropagation()}
1),t._UZ(5,"span",96),t.qZA(),t.TgZ(6,"div",26)(7,"div",25)(8,"a",97),t.NdJ("click",function(n){return n.stopPropagation()}),t._UZ(9,"span",28),t.TgZ(10,"div",29)(11,"app-three-dots",98),t.NdJ("onTreeDotOptionChange",function(n){t.CHM(e);const o=t.oxw(2);return o.onTreeDotOptionChange(n,null==o.createPlaylistDetail||null==o.createPlaylistDetail.head?null:o.createPlaylistDetail.head.data,o.createPlaylistDetail,o.TYPE_THREE_DOTS)}),t.qZA()()()()(),t.TgZ(12,"a",32),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw().$implicit,a=t.oxw();return n.stopPropagation(),a.OnThreeDotClick(a.threeDotType.SUBTYPE,o)}),t._UZ(13,"span",33),t.qZA()()}if(2&l){const e=t.oxw().$implicit,i=t.oxw();t.xp6(3),t.Q6J("styles",i.styles)("options",null==e||null==e.options?null:e.options.option),t.xp6(8),t.Q6J("threeDotType","CREATE_PLAYLIST_SUB_TYPE_THREE_DOTS")}}function $t(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div")(1,"button",99),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onRemoveFromPlayelistClick(null==o?null:o.data),n.stopPropagation()}
1),t._UZ(2,"span",100),t.qZA()()}}function jt(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",68),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return null!=a.addToplaylistDataSettingResponse&&null!=a.addToplaylistDataSettingResponse.parentalControl&&a.addToplaylistDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=o&&null!=o.data&&null!=o.data.misc&&o.data.misc.explicit?a.explicitiContentPopup():a.onPlayBtnClick(o,!1)}),t.TgZ(2,"div",69),t.NdJ("click",function(n){return n.stopPropagation()}),t.YNc(3,Ht,1,0,"i",70),t.qZA(),t.TgZ(4,"div",71),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onPlayBtnClick(o,!1)}),t.YNc(5,Jt,2,0,"span",72),t.TgZ(6,"div",73),t.NdJ("click",function(n){const a=t.CHM(e).$implicit;return t.oxw().onPlayBtnClick(a,!1),n.stopPropagation()}),t.TgZ(7,"a",74),t._UZ(8,"i"),t.qZA()(),t.YNc(9,Bt,2,2,"span",75),t.TgZ(10,"a",74)(11,"img",76),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw().storageService.setDefaultImage(null==o||null==o.data?null:o.data.image,"")}),t.qZA()()(),t.TgZ(12,"div",77),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return null!=s.addToplaylistDataSettingResponse&&null!=s.addToplaylistDataSettingResponse.parentalControl&&s.addToplaylistDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=a&&null!=a.data&&null!=a.data.misc&&a.data.misc.explicit?s.explicitiContentPopup():s.onPlayBtnClick(a,!1),n.stopPropagation()}),t.TgZ(13,"p",78),t._uU(14),t.qZA(),t.TgZ(15,"p",79),t.YNc(16,Qt,2,0,"a",80),t._uU(17),t.qZA()(),t._UZ(18,"div",81),t.TgZ(19,"div",82),t._uU(20),t.qZA(),t.TgZ(21,"li",24),t.YNc(22,Vt,14,3,"div",83),t.YNc(23,$t,3,0,"div",84),t.qZA()(),t.BQk()}if(2&l){const e=r.$implicit,i=r.index,n=t.oxw();t.xp6(1),t.ekj("active_explicit_ul",(null==n.addToplaylistDataSettingResponse||null==n.addToplaylistDataSettingResponse.parentalControl?null:n.addToplaylistDataSettingResponse.parentalControl.allowExplicitAudioContent)&&(null==e||null==e.data||null==e.data.misc?null:e.data.misc.explicit))("sortable-active",0===i),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf",n.isEditPlaylist),t.xp6(2),t.Q6J("ngIf","AMOD"==(null==e||null==e.data||null==e.data.misc?null:e.data.misc.movierights[0])),t.xp6(3),t.Gre("icon-",e.isPlay&&(null==e||null==e.data?null:e.data.title)===(null==n.selectedSongs||null==n.selectedSongs.data?null:n.selectedSongs.data.title)?"pause_1":"play_1",""),t.xp6(1),t.Q6J("ngIf",e.isPlay),t.xp6(2),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data||null==e.data.misc?null:e.data.misc.explicit),t.xp6(1),t.hij("",null==e||null==e.data?null:e.data.subtitle," "),t.xp6(3),t.hij(" ",n.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," "),t.xp6(2),t.Q6J("ngIf",!n.isEditPlaylist),t.xp6(1),t.Q6J("ngIf",n.isEditPlaylist)}}function zt(l,r){1&l&&(t.TgZ(0,"span",86),t._UZ(1,"img",87),t.qZA())}function Wt(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"img",76),t.NdJ("error",function(){t.CHM(e);const n=t.oxw().$implicit;return t.oxw().storageService.setDefaultImageWithMusicSymbol(n.data,"image")}),t.qZA()}if(2&l){const e=t.oxw().$implicit;t.ekj("error-image","https://assetsun.hungama.com/images/default_playlist-icon.png"==e.data.image),t.Q6J("src",null==e||null==e.data?null:e.data.image,t.LSH)}}function Kt(l,r){1&l&&(t.TgZ(0,"a",111),t._UZ(1,"img",91),t.qZA())}function Xt(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",101)(2,"div",102),t.YNc(3,zt,2,0,"span",72),t.TgZ(4,"div",103)(5,"a",74),t._UZ(6,"i",104),t.qZA()(),t.TgZ(7,"a",74),t.YNc(8,Wt,1,3,"img",105),t.qZA()(),t.TgZ(9,"div",106)(10,"p",78),t._uU(11),t.qZA(),t.TgZ(12,"p",79),t.YNc(13,Kt,2,0,"a",107),t._uU(14),t.qZA()(),t._UZ(15,"div",81),t.TgZ(16,"div",82),t._uU(17),t.qZA(),t.TgZ(18,"div",108)(19,"a",109)(20,"i",110),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onAddToPlayList(o)}),t.qZA()()()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw();t.xp6(1),t.ekj("sortable-active",!1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf","AMOD"==(null==e||null==e.data||null==e.data.misc?null:e.data.misc.movierights[0])),t.xp6(5),t.Q6J("ngIf",null==e||null==e.data?null:e.data.image),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data||null==e.data.misc?null:e.data.misc.explicit),t.xp6(1),t.hij("",null==e||null==e.data?null:e.data.subtitle," "),t.xp6(3),t.hij(" ",i.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," ")}}const te=function(l){return{"background-image":l}};let ee=(()=>{class l{constructor(e,i,n,o,a,s,d,p,_,g,m,T,f,v,y,h,D,E){this.libraryService=e,this.playerService=i,this.activeRoute=n,this.router=o,this.translate=a,this.storageService=s,this.explicitService=d,this.userService=p,this.notificationPopupService=_,this.ssoStorageService=g,this.loginService=m,this.eventTrackingService=T,this.notificationService=f,this.addToPlaylistService=v,this.miscService=y,this.listenService=h,this.commonUtil=D,this.location=E,this.updatePlayListPosition=new t.vpe,this.similarList=[],this.createdPlayList=[],this.optionDetail={type:"",data:{},itemList:[]},this.threeDotType=u.jG,this.TYPE_THREE_DOTS="PLAYLIST_DETAIL",this.breadcrumbs=[],this.isOpenSideBar=!0,this.imgArtworkList=[],this.styles={"margin-right":"10px","font-size":"20px"},this.isEditPlaylist=!1,this.editPlaylistName=new C.NI(""),this.editName=!1,this.lastToastTime=0,this.toastQueue=[],this.toastTimer=null,this.toastCooldown=!1,this.styles1={"margin-right":"5px","font-size":"20px",top:"25%",left:"25%","z-index":" 3"},this.device_name="web",null!==localStorage.getItem("DeviceType")&&void 0!==localStorage.getItem("DeviceType")||c.l.getDeviceType(),this.device_name=localStorage.getItem("DeviceType"),this.createPlaylistId=this.activeRoute.snapshot.paramMap.get("contentId"),this.createPlaylistName=this.activeRoute.snapshot.paramMap.get("contentName"),this.breadcrumb=this.storageService.getBreadcrumb()}ngOnInit(){this.isOpenSideBar=this.storageService.getSideBarStatus(),this.userDetails=this.ssoStorageService.getUserDetails(),this.getAddToPlayList(),this.getRecommendedSong(
1),this.playerService.globalPlayPause.subscribe(e=>{e&&"FROM_MINI_PLAYER"==e.type&&this.makeSelected(e)}),this.playerService.miniPlayerNext.subscribe(e=>{e&&this.playCount()}),this.playerService.onEditPlaylistClick(!1),this.playerService.isEditPlaylist.subscribe(e=>{this.isEditPlaylist=e})}animationCreatedforFooter(e,i){t.R0b.assertInAngularZone(),i.animationItem=e}onLoopCompleteofFooter(e){(null==e?void 0:e.animationItem).loop=!1}swapPlayList(e,i,n){[e[i],e[n]]=[e[n],e[i]];const o=this.ssoStorageService.getUserDetails();let a,s=[];return e.forEach(d=>{s.push(d.data.id)}),a={contentid:s},this.listenService.postqueueIndex(a,o.user_id,this.createPlaylistId).subscribe(d=>{}),e}onSearchChange(e){this.editPlaylistName.setValue(e),this.updatePlaylist(),this.editName=!1}makeSelected(e=null){const i=this.storageService.getLastPlayedSong(),o=c.l.addPlayButtonStatusDetails(this.createdPlayList,e||i);o&&(this.selectedSongs=o,(this.createdPlayList||[]).forEach(a=>{var s,d,p;(null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.title)===(null===(p=null===(d=this.selectedSongs)||void 0===d?void 0:d.data)||void 0===p?void 0:p.title)&&(a.lottie={path:"/assets/ngx-lottie/Equalizer_REV_slower.json",autoplay:!0})}))}getRecommendedSong(){this.libraryService.getRecommdedSong(this.userDetails.user_id).subscribe(e=>{e&&e.data&&e.data.body&&e.data.body.rows&&(this.similarList=e.data.body.rows,this.removeAddedSongsInsimilarList())})}getAddToPlayList(){const e=this.ssoStorageService.getUserDetails(),n={contentid:this.activeRoute.snapshot.paramMap.get("contentId"),uid:e.uid};this.libraryService.getAddToPlayList(n).subscribe(o=>{var a,s,d;o&&o.data&&(o.data.body&&o.data.body.rows&&((o.data.body.rows||[]).forEach((p,_)=>{p.rowId=_+1,p.isLast=(o.data.body.rows||[]).length===_+1}),this.createdPlayList=o.data.body.rows,this.makeImageArtwork(),this.removeAddedSongsInsimilarList(),this.getAllFavoriteRecords(),this.selectedSongs=this.createdPlayList[0]),o.data.head&&o.data.head.data&&(this.createPlaylistDetail=o.data,this.editPlaylistName.setValue(null===(d=null===(s=null===(a=this.createPlaylistDetail)||void 0===a?void 0:a.head)||void 0===s?void 0:s.data)||void 0===d?void 0:d.title)),this.makeBreadCrumList()),this.getAllFavoriteRecords()})}
1backIconClick(){this.location.back()}getAllFavoriteRecords(){const e=this.ssoStorageService.getUserDetails();e&&e.user_id&&this.miscService.getBookmark(Z.gF.FAVORITE,e.user_id).subscribe(i=>{var n,o,a;if(i){const s=null===(a=null===(o=null===(n=null==i?void 0:i.response)||void 0===n?void 0:n.data)||void 0===o?void 0:o.body)||void 0===a?void 0:a.rows;(s||[]).find(d=>{var p,_,g;return(null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.id)===(null===(g=null===(_=this.createdPlayList)||void 0===_?void 0:_.data)||void 0===g?void 0:g.id)})&&(this.createPlaylistDetail.isLiked=!0),(s||[]).forEach(d=>{const p=this.createdPlayList.find(_=>{var g,m;return(null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.id)===(null===(m=null==d?void 0:d.data)||void 0===m?void 0:m.id)});p&&(p.isLiked=!0,p.options={option:{path:"/assets/ngx-lottie/favourtie.json",autoplay:!0}})})}})}animationCreatedforFooterLoop(e,i){t.R0b.assertInAngularZone(),i.animationItem=e}makeImageArtwork(){this.imgArtworkList=[],this.imgArtworkList=(this.createdPlayList||[]).filter((e,i)=>i<4)}removeAddedSongsInsimilarList(){if(this.similarList&&this.similarList.length&&this.createdPlayList&&this.createdPlayList.length){const e=(0,M.cloneDeep)(this.createdPlayList).map(i=>{var n;return null===(n=i.data)||void 0===n?void 0:n.title});this.similarList=this.similarList.filter(i=>-1===e.indexOf(i.data.title))}}onAddToPlayList(e){var i;this.similarList=(this.similarList||[]).filter(n=>n.data.id!=e.data.id),(this.createdPlayList||[]).filter(n=>n.data.id==e.data.id).length>0?c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.title)+`${this.translate.instant("msg_song_exists")}`,"TOP_RIGHT"):(this.createdPlayList.push(e),this.createdPlayList=[...this.createdPlayList],this.postAddToPlaylist(e))}postAddToPlaylist(e){const i=this.ssoStorageService.getUserDetails();let n=this.activeRoute.snapshot.paramMap.get("contentId");this.libraryService.postAddToPlaylist({contentid:e.data.id,uid:i.uid,activeRouteId:n}).subscribe(a=>{"success"===a.message?(this.trackAddToPlayList(e),c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,this.translate.instant("toast_str_43"),"TOP_RIGHT"),this.getAddToPlayList()):(c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,a.message,"TOP_RIGHT"),this.getAddToPlayList())})}onAddSong(){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate(["./library/add-song",this.createPlaylistName,this.createPlaylistId]))}updatePlaylist(){var e,i,n,o,a,s;if(this.editName){const d=this.ssoStorageService.getUserDetails(),p=null===(n=null===(i=null===(e=this.createPlaylistDetail)||void 0===e?void 0:e.head)||void 0===i?void 0:i.data)||void 0===n?void 0:n.id,_={uid:null==d?void 0:d.user_id,name:this.editPlaylistName.value,public:null===(s=null===(a=null===(o=this.createPlaylistDetail)||void 0===o?void 0:o.head)||void 0===a?void 0:a.data)||void 0===s?void 0:s.public};this.miscService.playlistPublicPrivate(p,_).subscribe(g=>{g&&(this.editName=!1)})}}onPlayBtnClick(e,i=!1){var n,o;this.storageService.setPlayPauseState(!0),this.playerService.clearLyricsSource(),this.selectedSongs=e,this.trackGoogleADsPlayPauseEvent(e,"play");const a=(this.createdPlayList||[]).filter(d=>!d.adContainer&&8===d.itype);if(a&&a.length&&(a.forEach(d=>{var p;null===(p=d.data)||void 0===p||delete p.animationItem},100),delete e.data.animationItem,c.l.onPlayBtnClicksetInQueue(a,e,this.storageService)),null===(o=null===(n=this.addToplaylistDataSettingResponse)||void 0===n?void 0:n.parentalControl)||void 0===o?void 0:o.allowExplicitAudioContent){const d=(this.createdPlayList||[]).filter(p=>{var _,g;return 0===(null===(g=null===(_=p.data)||void 0===_?void 0:_.misc)||void 0===g?void 0:g.explicit)&&!p.adContainer});d.forEach(p=>{var _;null===(_=p.data)||void 0===_||delete _.animationItem},100),delete e.data.animationItem,c.l.onPlayBtnClicksetInQueue(d,e,this.storageService)}else{const d=(this.createdPlayList||[]).filter(p=>!p.adContainer);d&&d.length&&(d.forEach(p=>{var _;null===(_=p.data)||void 0===_||delete _.animationItem},100),delete e.data.animationItem,c.l.onPlayBtnClicksetInQueue(d,e,this.storageService))}const s=c.l.getCurrentItemConfig((0,M.cloneDeep)(e),(0,M.cloneDeep)(e.data.id),(0,M.cloneDeep)(this.createdPlayList));if(s.player===Z.jM.MINI_PLAYER){const d=this.storageService.getLastPlayedSong();return!i&&d&&d.itemId&&s&&s.itemId&&d.itemId==s.itemId?"isPlay"in s.item&&(s.item.isPlay?(s.item.isPlay=!1,e.isPlay=!1):(s.item.isPlay=!0,e.isPlay=!0)):i||(e.isPlay=!0,s.item.isPlay=!0),i&&(delete e.isPlay,delete s.item.isPlay),this.playerService.updatedPlayerSource((0,M.cloneDeep)(s)),void this.playCount()}c.l.navigateToRelatedView(this.router,s)}OnThreeDotClick(e,i=null){let n=!1;if(e==u.jG.GLOBAL){const a=(u.z9||[]).map(s=>(s.title=this.instant(s.title),s));return void(this.optionDetail={type:e,isOptionShow:n=!n,data:{},itemList:a})}const o=(u._i||[]).map(a=>(a.title=this.instant(a.title),a));this.optionDetail={type:e,isOptionShow:n=!n,data:i||{},itemList:o}}
1OnThreeDotClick2(e,i=null){c.l.bodyOverflowHiddenMobile();let n=!1;if(e==u.jG.GLOBAL){const a=(u.z9||[]).map(s=>(s.title=this.instant(s.title),s));return void(this.optionDetail={type:e,isOptionShow:n=!n,data:i||{},itemList:a})}const o=(u._i||[]).map(a=>("Like"===a.name&&(a.icon=i.isLiked?"icon-favorited":"icon-like",a.title=i.isLiked?"menu_str_22":"menu_str_10"),a.title=this.instant(a.title),a));this.optionDetail={type:e,isOptionShow:n=!n,data:i||{},itemList:i.isLast?o.filter(a=>"Play Next"!==a.name):o}}getThreeDotdata(e){var i,n,o,a,s,d,p,_,g,m,T,f,y,h,E,A,w,I,q,Y,X,tt,et,it,nt,ot,lt,at,dt;c.l.bodyOverflowAuto(),this.optionDetail=e||{};const St=c.l.login(this.loginService);if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SHARE){if(this.optionDetail.type==u.jG.GLOBAL)return void c.l.share(null===(n=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.head)||void 0===n?void 0:n.data,this.notificationService);c.l.share(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.data,this.notificationService)}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.EDIT_PLAYLIST&&(this.isEditPlaylist=!0,c.l.bodyOverflowAuto()),this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.DELETE_PLAYLIST){const $=this.ssoStorageService.getUserDetails().user_id,G=this.activeRoute.snapshot.paramMap.get("contentId");return this.listenService.deletePlaylist(G,$).subscribe(H=>{"success"===H.message&&(this.trackDeletePlaylist(e),this.router.navigateByUrl(N.of.MAIN_ROUTING.LIBRARY))}),void this.trackGoogleADsThreeDotsEvent(u.g6.DELETE_PLAYLIST)}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.ADD_TO_QUEUE)if(1==this.userDetails.isGold){if(this.optionDetail.type==u.jG.GLOBAL){const G=(this.createdPlayList||[]).filter(H=>!(null==H?void 0:H.adContainer));return void c.l.addToQueue(this.storageService,G,"",this.TYPE_THREE_DOTS,this.translate,"IS_GLOBAL_THREE_DOT")}const $=((this.createdPlayList||[]).filter(G=>!G.adContainer)||[]).find((G,H)=>G.data.id===(null==e?void 0:e.data.id));c.l.addToQueue(this.storageService,$,"subTypeOption","",this.translate),this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_QUEUE)}else localStorage.setItem("popup_type","song"),this.subscribtionpop_up();if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.LIKE)return this.trackGoogleADsThreeDotsEvent(u.g6.LIKE),St?void this.makeFavorite(e):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.PLAY_NEXT&&this.optionDetail.type){if(1==this.userDetails.isGold){const{nextIndex:F}=c.l.playNext(this.createdPlayList.filter($=>!$.adContainer),null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.data);return this.trackGoogleADsThreeDotsEvent(u.g6.PLAY_NEXT),void(F&&this.onPlayBtnClick(this.createdPlayList[F]))}localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SONG_DETAILS&&this.optionDetail.type){let F={title:null===(d=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.data)||void 0===d?void 0:d.title,id:null===(_=null===(p=null==e?void 0:e.data)||void 0===p?void 0:p.data)||void 0===_?void 0:_.id};this.trackGoogleADsThreeDotsEvent(u.g6.SONG_DETAILS),c.l.songDetails(this.router,F)}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.ADD_TO_OTHER_PLAYLIST&&this.optionDetail.type){if(!St)return c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"});this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_PLAYLIST),c.l.addToPlaylist(null===(g=null==e?void 0:e.data)||void 0===g?void 0:g.data,this.addToPlaylistService)}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.GO_TO_ALBUM&&this.optionDetail.type)return this.trackGoogleADsThreeDotsEvent(u.g6.GO_TO_ALBUM),void c.l.albumDetails(this.router,null===(m=null==e?void 0:e.data)||void 0===m?void 0:m.data);if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.REMOVE_FROM_PLAYLIST&&this.optionDetail.type){const F=this.ssoStorageService.getUserDetails();let $=this.activeRoute.snapshot.paramMap.get("contentId");this.libraryService.removeFromPlaylist({uid:F.uid,activeRouteId:$,contentid:e.data.data.id}).subscribe(H=>{"success"===H.message?(this.getAddToPlayList(),this.getRecommendedSong(
1),c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,this.translate.instant("menu_str_20"),"TOP_RIGHT")):c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,H.message,"TOP_RIGHT")})}this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.Make_Playlist_Private&&this.optionDetail.type&&(null===(f=null===(T=this.createPlaylistDetail)||void 0===T?void 0:T.head)||void 0===f?void 0:f.data,null===(h=null===(y=this.createPlaylistDetail)||void 0===y?void 0:y.head)||void 0===h?void 0:h.data,null===(A=null===(E=this.createPlaylistDetail)||void 0===E?void 0:E.head)||void 0===A?void 0:A.data,null===(I=null===(w=this.createPlaylistDetail)||void 0===w?void 0:w.head)||void 0===I?void 0:I.data,c.l.bodyOverflowHidden(),this.explicitService.setOptions({notification:!1,type:"confirmation",title:null===(X=null===(Y=null===(q=this.createPlaylistDetail)||void 0===q?void 0:q.head)||void 0===Y?void 0:Y.data)||void 0===X?void 0:X.title,message:"Are you sure you want to make the Playlist  "+((null===(it=null===(et=null===(tt=this.createPlaylistDetail)||void 0===tt?void 0:tt.head)||void 0===et?void 0:et.data)||void 0===it?void 0:it.public)?"Private":"Public"),btn1:"Not Now",btn2:(null===(lt=null===(ot=null===(nt=this.createPlaylistDetail)||void 0===nt?void 0:nt.head)||void 0===ot?void 0:ot.data)||void 0===lt?void 0:lt.public)?"Make Private":"Make Public",data:null===(dt=null===(at=this.createPlaylistDetail)||void 0===at?void 0:at.head)||void 0===dt?void 0:dt.data}),this.getAddToPlayList())}download(e){var i,n;const o={event:this.breadcrumbs&&(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"library",action:"download",label:(null==e?void 0:e.title)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.title),method:[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]};c.l.trackGoogleADsDownloadEvent(o,this.eventTrackingService),c.l.download(null==e?void 0:e.data,this.notificationService)}playAll(){this.selectedSongs=this.createdPlayList[0],this.onPlayBtnClick(this.createdPlayList[0],!0)}playAllSong(){this.createdPlayList[0]&&(this.selectedSongs=this.createdPlayList[0],this.setPlayStatus(),this.onPlayBtnClick(this.createdPlayList[0],!0))}playCount(){const e=this.ssoStorageService.getUserDetails(),n={contentid:this.activeRoute.snapshot.paramMap.get("contentId"),uid:e.uid||e.user_id};this.libraryService.postPlayCount(n).subscribe(o=>{this.getAddToPlayList()})}setPlayStatus(){this.selectedSongs&&(this.selectedSongs.isPlay=!0)}instant(e){return this.translate.instant(e)}onDonwload(e){var i,n;const o={event:this.breadcrumbs&&(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"library",action:"download",label:(null==e?void 0:e.title)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.title),method:[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]};c.l.trackGoogleADsDownloadEvent(o,this.eventTrackingService),c.l.download(e,this.notificationPopupService)}onback(){this.router.navigate([this.breadcrumb.activePage]),this.storageService.setBreadcrumb(Object.assign(this.breadcrumb,{activeTab:"home"})),this.trackGoogleADsBackEvent()}remove_subscribtionpop_up(){localStorage.setItem("popup_type","remove_ad"),this.subscribtionpop_up()}subscribtionpop_up(){setTimeout(()=>{c.l.subscribtionpop_up_2("",this.notificationService)},1e3)}onTreeDotOptionChange(e,i,n,o){var a,s;const d=c.l.login(this.loginService);if(e.name===u.g6.SHARE){if(o)return void c.l.share(i,this.notificationService);c.l.share(n.data,this.notificationService)}if(e.name===u.g6.Make_Playlist_Private)return this.notificationService.setOptions({notification:!1,type:"make_playlist_private",title:"MAKE_PLALIST_PRIVATE",data:i,callback:this.getAddToPlayList.bind(this)}),void this.trackGoogleADsThreeDotsEvent(u.g6.Make_Playlist_Private);if(e.name===u.g6.ADD_TO_QUEUE)if(1==this.userDetails.isGold){if(o){const g=(this.createdPlayList||[]).filter(m=>!(null==m?void 0:m.adContainer));return void c.l.addToQueue(this.storageService,g,"",this.TYPE_THREE_DOTS,this.translate,"IS_GLOBAL_THREE_DOT")}const _=((this.createdPlayList||[]).filter(g=>!g.adContainer)||[]).find((g,m)=>g.data.id===n.data.id);c.l.addToQueue(this.storageService,_,"subTypeOption","",this.translate),this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_QUEUE)}else localStorage.setItem("popup_type","song"),this.subscribtionpop_up();if(e.name===u.g6.ADD_TO_PLAYLIST||e.name===u.g6.ADD_TO_OTHER_PLAYLIST)return this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_PLAYLIST),d?void c.l.addToPlaylist(n.data,this.addToPlaylistService):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(e.name===u.g6.SONG_DETAILS)return this.trackGoogleADsThreeDotsEvent(u.g6.SONG_DETAILS),void c.l.songDetails(this.router,null==n?void 0:n.data);if(e.name===u.g6.PLAY_NEXT){if(1==this.userDetails.isGold){this.trackGoogleADsThreeDotsEvent(u.g6.PLAY_NEXT);const _=((this.createdPlayList||[]).filter(g=>!g.adContainer)||[]).find((g,m)=>g.data.id===n.data.id);return null===(a=_.data)||void 0===a||delete a.animationItem,delete _.options,void c.l.addNextSongInNextInQueue(_,this.storageService,this.translate)}localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}if(e.name===u.g6.GO_TO_ALBUM)return this.trackGoogleADsThreeDotsEvent(u.g6.GO_TO_ALBUM),void c.l.albumDetails(this.router,null==i?void 0:i.data);if(e.name===u.g6.LIKE)return this.trackGoogleADsThreeDotsEvent(u.g6.L
1IKE),d?void this.makeFavorite(n,""):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(e.name===u.g6.REMOVE_FROM_PLAYLIST){const p=this.ssoStorageService.getUserDetails();let _=this.activeRoute.snapshot.paramMap.get("contentId");const g={uid:p.uid,activeRouteId:_,contentid:null===(s=null==n?void 0:n.data)||void 0===s?void 0:s.id};this.libraryService.removeFromPlaylist(g).subscribe(m=>{"success"!==m.message||this.isEditPlaylist?c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,m.message,"TOP_RIGHT"):(this.getAddToPlayList(),this.getRecommendedSong(),c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,this.translate.instant("menu_str_20"),"TOP_RIGHT"))})}if(e.name===u.g6.DELETE_PLAYLIST){const _=this.ssoStorageService.getUserDetails().user_id,g=this.activeRoute.snapshot.paramMap.get("contentId");return this.listenService.deletePlaylist(g,_).subscribe(m=>{"success"===m.message&&(this.trackDeletePlaylist(n),this.router.navigateByUrl(N.of.MAIN_ROUTING.LIBRARY))}),void this.trackGoogleADsThreeDotsEvent(u.g6.DELETE_PLAYLIST)}}onRemoveFromPlayelistClick(e){const i=this.ssoStorageService.getUserDetails();let n=this.activeRoute.snapshot.paramMap.get("contentId");this.libraryService.removeFromPlaylist({uid:i.uid,activeRouteId:n,contentid:e.id}).subscribe(a=>{"success"===a.message&&this.isEditPlaylist?(this.getAddToPlayList(),this.getRecommendedSong(),this.playerService.onEditPlaylistClick(!0),c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,this.translate.instant("menu_str_20"),"TOP_RIGHT")):c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,a.message,"TOP_RIGHT")})}makeFavorite(e,i="",n=!1){var o,a;const s=this.ssoStorageService.getUserDetails();if(!s||!s.user_id)return;const d={contentId:null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.id,typeId:null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.type,action:!e.isLiked,module:Z.gF.FAVORITE};this.miscService.postBookmark(d,s.user_id).subscribe(p=>{var _,g,m;if(p){e.options={option:{path:e&&e.options.option.path,autoplay:!e.isLiked}};const T=this.createdPlayList.find(f=>{var v,y;return(null===(v=null==f?void 0:f.data)||void 0===v?void 0:v.id)===(null===(y=null==e?void 0:e.data)||void 0===y?void 0:y.id)});if(T){const f=(null===(_=null==e?void 0:e.data)||void 0===_?void 0:_.title)||"";c.l.toastNotification(`${this.translate.instant("profile_str_30")}`,e.isLiked?`${f} ${this.translate.instant("toast_str_16")}`:`${f} ${this.translate.instant("library_playlist_str_25")}`,"TOP_RIGHT");const v={event:null===(g=this.breadcrumbs[1])||void 0===g?void 0:g.name,action:!e.isLiked,label:(null==e?void 0:e.title)||(null===(m=null==e?void 0:e.data)||void 0===m?void 0:m.title),method:[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]};c.l.trackGoogleADsfavoriteEvent(v,this.eventTrackingService),T.isLiked=!T.isLiked}}})}explicitiContentPopup(){c.l.explicitContentPopup(this.explicitService,!1)}makeBreadCrumList(){this.breadcrumbs=(0,M.cloneDeep)(j.E.LIBRARY.CREATED_PLAYLIST),this.breadcrumbs.forEach(e=>{var i,n,o;e.name=e.name.replace(/DYNAMIC_NAME/g,(null===(o=null===(n=null===(i=this.createPlaylistDetail)||void 0===i?void 0:i.head)||void 0===n?void 0:n.data)||void 0===o?void 0:o.title)||"")}),this.breadcrumbs=[...this.breadcrumbs]}onQueueScroll(e){this.dropdowns.toArray().forEach(i=>i.close())}ngAfterViewInit(){c.l.setSortableJs("dragdrop",e=>{e.newIndex==this.createdPlayList.length&&(e.newIndex=e.newIndex-1),e.oldIndex==this.createdPlayList.length&&(e.oldIndex=e.oldIndex-1);const i=this.swapPlayList(this.createdPlayList,e.newIndex,e.oldIndex);this.updatePlayListPosition.emit(i)})}trackAddToPlayList(e,i=null){var n,o,a,s,d,p,_,g,m,T,f,v,y,h,D,E,A,L,w,I,R,q,Y,X,tt,et,it,nt,ot,lt,at;const dt={Actor:e&&(null==e?void 0:e.data)&&(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.misc)&&(null===(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.misc)||void 0===a?void 0:a.actorf)||["Sara Ali Khan","Kartik Aaryan"],"Content ID":0,"Content Name":e&&(null==e?void 0:e.data)&&(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.title)||"","Content Type":e&&(null==e?void 0:e.data)&&(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.type)||"",Genre:e&&(null==e?void 0:e.data)&&(null===(p=null==e?void 0:e.data)||void 0===p?void 0:p.genre)||e&&(null==e?void 0:e.data)&&(null===(_=null==e?void 0:e.data)||void 0===_?void 0:_.genre_en)||[],Language:e&&(null==e?void 0:e.data)&&(null===(m=null===(g=null==e?void 0:e.data)||void 0===g?void 0:g.misc)||void 0===m?void 0:m.lang)||e&&(null==e?void 0:e.data)&&(null===(f=null===(T=null==e?void 0:e.data)||void 0===T?void 0:T.misc)||void 0===f?void 0:f.lang_en)||[],Lyricist:e&&(null==e?void 0:e.data)&&(null===(y=null===(v=null==e?void 0:e.data)||void 0===v?void 0:v.misc)||void 0===y?void 0:y.lyricist)||e&&(null==e?void 0:e.data)&&(null===(D=null===(h=null==e?void 0:e.data)||void 0===h?void 0:h.misc)||void 0===D?void 0:D.lyricistf)||[],Mood:e&&(null==e?void 0:e.data)&&(null===(E=null==e?void 0:e.data)||void 0===E?void 0:E.misc)&&(null===(L=null===(A=null==e?void 0:e.data)||void 0===A?void 0:A.misc)||void 0===L?void 0:L.mood)||[],"Music Director/Composer":e&&(null==e?void 0:e.data)&&(null===(w=null==e?void 0:e.data)||void 0===w?void 0:w.misc)&&(null===(R=null===(I=null==e?void 0:e.data)||void 0===I?void 0:I.misc)||void 0===R?void 0:R.musicdirectorf)||[],"Playlist Name":e&&(null==e?void 0:e.data)&&(null===(q=null==e?void 0:e.data)||void 0===q?void 0:q.misc)&&(null===(X=null===(Y=null==e?void 0:e.data)||void 0===Y?void 0:Y.misc)||void 0===X?void 0:X.p_name)||[],Singer:e&&(null==e?void 0:e.data)&&(null===(tt=null==e?void 0:e.data)||void 0===tt?void 0:tt.misc)&&(null===(it=null===(et=null==e?void 0:e.data)||void 0===et?void 0:et.misc)||void 0===it?void 0:it.singerf)||[],Tempo:e&&(null==e?void 0:e.data)&&(null===(nt=null==e?void 0:e.data)||void 0===nt?void 0:nt.misc)&&(null===(lt=null===(ot=null==e?void 0:e.data)||void 0===ot?void 0:ot.misc)||void 0===lt?void 0:lt.tempo[0])||0,"Year of release":(null===(at=null==e?void 0:e.data)||void 0===at?void 0:at.releasedate.split("/")[0])||"",source_name:window.location.pathname.split("/")[1]||"home",Device:this.device_name};this.trackEvent("Added to Playlist",dt,[b.F5.MOENGAGE,b.F5.AMPLITUDE,b.F5.MIXPANEL])}trackDeletePlaylist(e){var i,n,o,a;const s={playlist_name:e&&(null==e?void 0:e.data)&&(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.misc)&&(null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.misc)||void 0===o?void 0:o.p_name),playlist_id:e&&(null==e?void 0:e.data)&&(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.id),Device:this.device_name};this.trackEvent("Playlist_deleted",s,[b.F5.MOENGAGE,b.F5.AMPLITUDE,b.F5.MIXPANEL])}trackGoogleADsPlayPauseEvent(e,i){var n,o,a,s;let d;(null==e?void 0:e.isPlay)?(d={event:(null===(n=this.breadcrumbs[1])||void 0===n?void 0:n.name)||"N/A",action:i||"N/A",label:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.title)||"
1N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])):(d={event:(null===(a=this.breadcrumbs[1])||void 0===a?void 0:a.name)||"N/A",action:"pause",label:(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]))}trackGoogleADsThreeDotsEvent(e){var i;let n;n={event:(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"N/A",action:"3dot_menu_song",label:e||"N/A"},this.trackEvent(n,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackMixPanelEvent(e){var i,n,o,a;let s;s={"Content ID":"song","Content Name":e&&(null==e?void 0:e.data)&&(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.title),"Playlist Name":e&&(null==e?void 0:e.data)&&(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.misc)&&(null===(a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.misc)||void 0===a?void 0:a.p_name),Device:this.device_name},this.trackEvent("Added to Playlist",s,[b.F5.MIXPANEL])}trackGoogleADsBackEvent(){let e;e={event:this.breadcrumb.activePage||"N/A",action:"back"},this.trackEvent(e,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(J.$),t.Y36(ct.l),t.Y36(O.gz),t.Y36(O.F0),t.Y36(P.sK),t.Y36(B.V),t.Y36(mt.A),t.Y36(bt.K),t.Y36(V.n),t.Y36(U.T),t.Y36(ft.M),t.Y36(W.f),t.Y36(V.n),t.Y36(yt.F),t.Y36(st.Y),t.Y36(Tt.P),t.Y36(c.l),t.Y36(S.Ye))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-create-playlist"]],viewQuery:function(e,i){if(1&e&&t.Gf(k.jt,5),2&e){let n;t.iGM(n=t.CRH())&&(i.dropdowns=n)}},outputs:{updatePlayListPosition:"updatePlayListPosition"},decls:75,vars:48,consts:[[3,"optionDetail","optionDetails",4,"ngIf"],[3,"footer"],["body-view",""],[1,"inner-mid-area"],["id","Listen",1,"hg-tabcontent","d-block"],[1,"listen-playlist-wrapper"],[3,"songDetails","rowsPlayList","threeDotType","TYPE_THREE_DOTS","breadcrumbs","click",4,"ngIf"],[1,"playlist-player"],[1,"playlist-player-inner","pdlr-40",3,"click"],["id","created-playlist-content",1,"scroll-ms-topBar","noads-padding","fxd","pd-md","padding-created-playlist"],[1,"scroll-ms-topBar-inr","flex1"],[1,"playlist_data","flex2"],[1,"playlist_thumb","playlist_thumb_topBar","hide-sec"],["src","https://assetsun.hungama.com/images/no-playlist-cover.svg",4,"ngIf"],[3,"src","error",4,"ngIf"],[1,"playlist_thumb_det","hide-sec"],[1,"playlist_sg_nm"],[1,"hg_albm_name","hg-albm-ttl","cursor-pointer"],[1,"btn-38","mobile-div",3,"click"],[1,"icon-Back"],[1,"like_play_dwn","like_play_dwn_topBar"],["class","button-blue button-padding-50",3,"btn-gold-bg","click",4,"ngIf"],[1,"button-blue","button-padding-50",3,"click"],[1,"icon-Add_Song","button-icon"],[1,"sg_duration","sg_durationWith_opt","hg_albm_owner","flex1"],[1,"threedot-desktop-menu"],[1,"like-dwn-opt"],["ngbDropdown","","container","body",1,"dropdown",3,"click"],["ngbDropdownToggle","",1,"icon-Options"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",1,"paddthreedot"],[3,"threeDotType","TYPE_THREE_DOTS","rowsPlayList","threedotData","onTreeDotOptionChange"],[1,"threedot-mobile-div"],[1,"clr1","cursor-pointer","threedot-mobile-menu",3,"click"],[1,"icon-Options"],[1,"myPlaylist_player","flex2"],["class","playlist_artwork",4,"ngIf"],["class"," playlist_artwork fav-artworkbox",4,"ngIf"],[1,"myPlaylist-desc"],["class","h2-heading",4,"ngIf"],["class","h2-heading playlitTitle",4,"ngIf"],[1,"h5-heading"],[1,"plylst_plSg_count",2,"margin-bottom","0"],[1,"plylst_plSg_count",2,"margin-bottom","20px","margin-top","9px"],[1,"like_play_dwn"],[1,"queue-list-title"],[1,"queue-list-col-title","queue-list-album-col"],[1,"queue-list-col-title","queue-list-duration-col"],[1,"queue-listing-wrap","nospace",3,"scroll"],["id","dragdrop"],[4,"ngFor","ngForOf"],["id","listen",1,"hg-tabcontent"],[1,"hg_headline","mb-20"],[1,"blur-overlay","myPlaylist-overlay",3,"ngStyle"],[3,"optionDetail","optionDetails"],[3,"songDetails","rowsPlayList","threeDotType","TYPE_THREE_DOTS","breadcrumbs","click"],["src","https://assetsun.hungama.com/images/no-playlist-cover.svg"],[3,"src","error"],[1,"icon-play_all"],[1,"playlist_artwork"],[3,"src","h-100","error",4,"ngIf"],[1,"playlist_artwork","fav-artworkbox"],["class","fav-artworkimg-box",4,"ngFor","ngForOf"],[1,"fav-artworkimg-box"],[3,"src","alt","error"],[1,"h2-heading"],[1,"h2-heading","playlitTitle"],[1,"icon-edit"],["type","text","id","editPlaylistName","maxlength","40",3,"formControl","input","click"],[1,"queue-list",3,"title","click"],["cdkDrag","",1,"queue-list-icon",3,"click"],["class","icon-Align-song-up-n-down",4,"ngIf"],[1,"queue-list-thmb","overflow_unset","border-rad-5",3,"click"],["class","thum_free_tag",4,"ngIf"],[1,"queue-list-thmb-overlay","border-rad-5",3,"click"],[1,"curs
1or-pointer"],["class","current-play-song",4,"ngIf"],["alt","thumbnail",1,"border-rad-5",3,"src","error"],[1,"queue-list-song-desc",3,"click"],[1,"queue-song-name"],[1,"queue-song-desc"],["class","cursor-pointer","class","queue-e",4,"ngIf"],[1,"queue-list-song-albumname","hide-sec"],[1,"queue-list-song-duration","hide-sec"],["class","like-dwn-opt like-dwn-row",4,"ngIf"],[4,"ngIf"],[1,"icon-Align-song-up-n-down"],[1,"thum_free_tag"],["src","https://assetsun.hungama.com/images/free-tag.svg"],[1,"current-play-song"],["width","25px","height","25px","containerClass","moving-box moving-box-second-class",3,"styles","options","animationCreated"],[1,"queue-e"],["src","https://assetsun.hungama.com/image/e.svg"],[1,"like-dwn-opt","like-dwn-row"],[1,"qdownload","cursor-pointer",3,"click"],[1,"fav-icon","hide-sec"],["width","45px","height","45px","containerClass","moving-box moving-box-second-class",3,"styles","options","animationCreated","enterFrame"],[1,"icon-Download"],["ngbDropdown","","container","body","display","dynamic","placement","bottom-right",1,"dropdown","cursor-pointer",3,"click"],[3,"threeDotType","onTreeDotOptionChange"],[1,"btn-38","remove-icon-add",3,"click"],[1,"icon-Remove","f-12","closeEditPlaylist"],[1,"queue-list",3,"title"],[1,"queue-list-thmb","overflow_unset","border-rad-5"],[1,"queue-list-thmb-overlay","border-rad-5"],[1,"icon-play"],["class","border-rad-5","alt","thumbnail",3,"error-image","src","error",4,"ngIf"],[1,"queue-list-song-desc"],["class","queue-e cursor-pointer",4,"ngIf"],[1,"queue-list-song-features"],[1,"qdownload","cursor-pointer"],[1,"icon-Add_Song","button-icon",3,"click"],[1,"queue-e","cursor-pointer"]],template:function(e,i){1&e&&(t.YNc(0,Lt,1,1,"app-three-dots",0),t.TgZ(1,"base-view",1),t.ynx(2,2),t.TgZ(3,"div",3)(4,"div",4)(5,"div",5),t.YNc(6,Pt,1,5,"app-breadcrumbs",6),t.TgZ(7,"div",7)(8,"div",8),t.NdJ("click",function(){return i.getAddToPlayList()}),t.YNc(9,Et,1,5,"app-breadcrumbs",6),t.TgZ(10,"div",9)(11,"div",10)(12,"div",11)(13,"div",12),t.YNc(14,Ot,1,0,"img",13),t.YNc(15,Zt,1,1,"img",14),t.qZA(),t.TgZ(16,"div",15)(17,"div",16)(18,"a",17),t._uU(19),t.qZA()()(),t.TgZ(20,"button",18),t.NdJ("click",function(){return i.backIconClick()}),t._UZ(21,"span",19),t.qZA()(),t.TgZ(22,"div",20),t.YNc(23,Mt,4,5,"a",21),t.TgZ(24,"a",22),t.NdJ("click",function(){return i.onAddSong()}),t._UZ(25,"i",23),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"li",24)(29,"div",25)(30,"div",26)(31,"a",27),t.NdJ("click",function(o){return o.stopPropagation()}),t._UZ(32,"span",28),t.TgZ(33,"div",29)(34,"app-three-dots",30),t.NdJ("onTreeDotOptionChange",function(o){return i.onTreeDotOptionChange(o,null==i.createPlaylistDetail||null==i.createPlaylistDetail.head?null:i.createPlaylistDetail.head.data,i.createPlaylistDetail,i.TYPE_THREE_DOTS)}),t.qZA()()()()()()(),t.TgZ(35,"div",31)(36,"a",32),t.NdJ("click",function(o){return o.stopPropagation(),i.OnThreeDotClick2(i.threeDotType.GLOBAL,i.createPlaylistDetail)}),t._UZ(37,"span",33),t.qZA()()()(),t.TgZ(38,"div",34),t.YNc(39,Rt,3,2,"div",35),t.YNc(40,Yt,2,1,"div",36),t.TgZ(41,"div",37),t.YNc(42,Ut,2,1,"h1",38),t.YNc(43,Ft,3,1,"h1",39),t.TgZ(44,"h5",40),t._uU(45),t.qZA(),t.TgZ(46,"div",41)(47,"span"),t._uU(48),t.ALo(49,"translate"),t.qZA(),t.TgZ(50,"span"),t._uU(51),t.ALo(52,"translate"),t.qZA()(),t.TgZ(53,"div",42)(54,"span"),t._uU(55," Lets Add some songs to your playlist "),t.qZA()(),t.TgZ(56,"div",43),t.YNc(57,Gt,4,5,"a",21),t.TgZ(58,"a",22),t.NdJ("click",function(){return i.onAddSong()}),t._UZ(59,"i",23),t._uU(60),t.ALo(61,"translate"),t.qZA()()()(),t.TgZ(62,"div",44),t._UZ(63,"div",45)(64,"div",46),t.qZA(),t.TgZ(65,"div",47),t.NdJ("scroll",function(o){return i.onQueueScroll(o)}),t.TgZ(66,"div",48),t.YNc(67,jt,24,18,"ng-container",49),t.qZA()(),t.TgZ(68,"div",50)(69,"h3",51),t._uU(70),t.ALo(71,"translate"),t.qZA(),t.TgZ(72,"div"),t.YNc(73,Xt,21,9,"ng-container",49),t.qZA()()(),t._UZ(74,"div",52),t.qZA()()()(),t.BQk(),t.qZA()),2&e&&(t.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),t.xp6(1),t.Q6J("footer",!0),t.xp6(5),t.Q6J("ngIf",i.device_name&&"mobile"==i.device_name),t.xp6(3),t.Q6J("ngIf",i.device_name&&"web"==i.device_name),t.xp6(1),t.ekj("padding-created-playlist-mini-screen",i.isOpenSideBar)("gold-user-no-ads",null==i.userDetails?null:i.userDetails.isGold),t.xp6(4),t.Q6J("ngIf",!(null!=i.createPlaylistDetail&&null!=i.createPlaylistDetail.head&&null!=i.createPlaylistDetail.head.data&&i.createPlaylistDetail.head.data.image)),t.xp6(1),t.Q6J("ngIf",null==i.createPlaylistDetail||null==i.createPlaylistDetail.head||null==i.createPlaylistDetail.head.data?null:i.createPlaylistDetail.head.data.image),t.xp6(4),t.hij(" ",null==i.createPlaylistDetail||null==i.createPlaylistDetail.head||null==i.createPlaylistDetail.head.data?null:i.createPlaylistDetail.head.data.title,""),t.xp6(4),t.Q6J("ngIf",i.createdPlayList&&i.createdPlayList.length&&i.createdPlayList.length>=2),t.xp6(1),t.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),t.xp6(2),t.hij("",t.lcZ(27,36,"playlist_str_6")," "),t.xp6(8),t.Q6J("threeDotType","CREATE_PLAYLIST_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","PLAYLIST_DETAIL")("rowsPlayList",i.createdPlayList)("threedotData",null==i.createPlaylistDetail||null==i.createPlaylistDetail.head?null:i.createPlaylistDetail.head.data),t.xp6(5),t.Q6J("ngIf",i.imgArtworkList.length<4),t.xp6(1),t.Q6J("ngIf",i.imgArtworkList&&i.imgArtworkList.length&&4==i.imgArtworkList.length),t.xp6(2),t.Q6J("ngIf",!i.isEditPlaylist),t.xp6(1),t.Q6J("ngIf",i.isEditPlaylist),t.xp6(2),t.hij(" By ",i.userDetails.handleName||i.userDetails.first_name||" Viva Nation"," "),t.xp6(3),t.AsE("",(null==i.createPlaylistDetail||null==i.createPlaylistDetail.head||null==i.createPlaylistDetail.head.data?null:i.createPlaylistDetail.head.data.playcount)||0," ",t.lcZ(49,38,"plays_general")," "),t.xp6(3),t.AsE("",(null==i.createPlaylistDetail||null==i.createPlaylistDetail.head||null==i.createPlaylistDetail.head.data?null:i.createPlaylistDetail.head.data.count)||0," ",t.lcZ(52,40,"songs_general")," "),t.xp6(6),t.Q6J("ngIf",i.createdPlayList&&i.createdPlayList.length&&i.createdPlayList.length>=2),t.xp6(1),t.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),t.xp6(2),t.Oqu(t.lcZ(61,42,"playlist_str_6")),t.xp6(7),t.Q6J("ngForOf",i.createdPlayList),t.xp6(3),t.hij(" ",t.lcZ(71,44,"playlist_str_5")," "),t.xp6(3),t.Q6J("ngForOf",i.similarList),t.xp6(1),t.Q6J("ngStyle",t.VKq(46,te,"url("+(null==i.similarList[0]||null==i.similarList[0].data?null:i.similarList[0].data.image)+")")))},directives:[S.O5,rt.w,K.K,z.n,Q.u,k.jt,k.iD,k.Vi,S.sg,C.Fj,C.nD,
1C.JJ,C.oH,ut.e$,S.PC],pipes:[P.X$],styles:['@import"https://assetsun.hungama.com/css/music-listing.css";.padding-created-playlist[_ngcontent-%COMP%]{padding:0 220px 0 150px}.padding-created-playlist-mini-screen[_ngcontent-%COMP%]{padding:0 240px 0 290px!important}.fav-artworkimg-box[_ngcontent-%COMP%]{width:108px;float:left}.fav-artworkimg-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;float:left}.gold-user-no-ads[_ngcontent-%COMP%]{padding:0 20px 0 290px!important}.sg_duration[_ngcontent-%COMP%]{width:16%!important}.error-image[_ngcontent-%COMP%]{height:54px;width:54px}.h-100[_ngcontent-%COMP%]{height:100%}.playlitTitle[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:auto;border-bottom:none;border:none;margin-left:8px;font-weight:600;background:none}.closeEditPlaylist[_ngcontent-%COMP%]{font-size:13px;transform:translate(-51%,-40%)}.like-dwn-opt.like-dwn-row[_ngcontent-%COMP%]{display:inherit;width:100%;justify-content:flex-end;align-items:center}.like-dwn-opt.like-dwn-row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:nth-child(2){margin:0 14px 0 0}.queue-listing-wrap.nospace[_ngcontent-%COMP%]{height:auto}.queue-listing-wrap.nospace[_ngcontent-%COMP%]   .queue-list-icon[_ngcontent-%COMP%]{display:none}@media only screen and (max-width: 1023px){#Listen[_ngcontent-%COMP%], .playlist-player[_ngcontent-%COMP%]   .myPlaylist_player[_ngcontent-%COMP%]{padding:0 18px}.playlist-player[_ngcontent-%COMP%]   .myPlaylist_player[_ngcontent-%COMP%]   .playlist_artwork[_ngcontent-%COMP%]{width:47.444vw;height:47.444vw;margin:0 auto 5vw}.myPlaylist-desc[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{text-align:center}.queue-list[_ngcontent-%COMP%]{padding:10px 0}.padding-created-playlist-mini-screen[_ngcontent-%COMP%]{padding:0!important}#Listen[_ngcontent-%COMP%]   .like_play_dwn[_ngcontent-%COMP%]{width:auto}.btn-38[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:4.2vw}.fav-artworkimg-box[_ngcontent-%COMP%]{width:100%}.queue-list-thmb[_ngcontent-%COMP%]{margin-right:0}.queue-list-song-desc[_ngcontent-%COMP%]{width:63%;margin-left:10px}#created-playlist-content[_ngcontent-%COMP%]{z-index:9}.sg_duration[_ngcontent-%COMP%]{width:6%!important}.playlist_data[_ngcontent-%COMP%]{margin-left:10px}.threedot-mobile-div[_ngcontent-%COMP%]{margin-right:14px}.threedot-mobile-div[_ngcontent-%COMP%]   .icon-Options[_ngcontent-%COMP%]{font-size:4.2vw}#Listen[_ngcontent-%COMP%]   .playlist-player[_ngcontent-%COMP%]   .myPlaylist_player[_ngcontent-%COMP%]   .myPlaylist-desc[_ngcontent-%COMP%]   .like_play_dwn[_ngcontent-%COMP%]{width:100%}}']}),l})();var xt=x(30567),ie=x(35966);function ne(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-three-dots",51),t.NdJ("optionDetails",function(n){return t.CHM(e),t.oxw().getThreeDotdata(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("optionDetail",e.optionDetail)}}function oe(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",52)(1,"div",53)(2,"img",54),t.NdJ("error",function(){t.CHM(e);const n=t.oxw();return n.storageService.setDefaultImage(n.favoritedList[0],"image")}),t.qZA()(),t.TgZ(3,"div",53)(4,"img",54),t.NdJ("error",function(){t.CHM(e);const n=t.oxw();return n.storageService.setDefaultImage(n.favoritedList[1],"image")}),t.qZA()(),t.TgZ(5,"div",53)(6,"img",54),t.NdJ("error",function(){t.CHM(e);const n=t.oxw();return n.storageService.setDefaultImage(n.favoritedList[3],"image")}),t.qZA()(),t.TgZ(7,"div",53)(8,"img",54),t.NdJ("error",function(){t.CHM(e);const n=t.oxw();return n.storageService.setDefaultImage(n.favoritedList[4],"image")}),t.qZA()()()}if(2&l){const e=t.oxw();
1t.xp6(2),t.s9C("src",null==e.favoritedList[0]||null==e.favoritedList[0].data?null:e.favoritedList[0].data.image,t.LSH),t.MGl("alt","",null==e.selectedSongs||null==e.selectedSongs.data?null:e.selectedSongs.data.title,"-hover"),t.xp6(2),t.s9C("src",null==e.favoritedList[1]||null==e.favoritedList[1].data?null:e.favoritedList[1].data.image,t.LSH),t.MGl("alt","",null==e.selectedSongs||null==e.selectedSongs.data?null:e.selectedSongs.data.title,"-hover"),t.xp6(2),t.s9C("src",null==e.favoritedList[2]||null==e.favoritedList[2].data?null:e.favoritedList[2].data.image,t.LSH),t.MGl("alt","",null==e.selectedSongs||null==e.selectedSongs.data?null:e.selectedSongs.data.title,"-hover"),t.xp6(2),t.s9C("src",null==e.favoritedList[3]||null==e.favoritedList[3].data?null:e.favoritedList[3].data.image,t.LSH),t.MGl("alt","",null==e.selectedSongs||null==e.selectedSongs.data?null:e.selectedSongs.data.title,"-hover")}}function le(l,r){if(1&l&&(t.TgZ(0,"div",55),t._UZ(1,"img",56),t.qZA()),2&l){const e=t.oxw();t.xp6(1),t.s9C("src",null==e.favoritedList[0]||null==e.favoritedList[0].data?null:e.favoritedList[0].data.image,t.LSH)}}function ae(l,r){1&l&&(t.TgZ(0,"span",77),t._UZ(1,"img",78),t.qZA())}function se(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"span",79)(1,"ng-lottie",80),t.NdJ("animationCreated",function(n){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().animationCreatedforFooterLoop(n,null==o?null:o.data)}),t.qZA()()}if(2&l){const e=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.Q6J("styles",i.styles1)("options",null==e?null:e.lottie)}}function re(l,r){1&l&&(t.TgZ(0,"a",81),t._UZ(1,"img",82),t.qZA())}function de(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",57),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return null!=a.favSongsDataSettingResponse&&null!=a.favSongsDataSettingResponse.parentalControl&&a.favSongsDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=o&&null!=o.data&&null!=o.data.misc&&o.data.misc.explicit?a.explicitiContentPopup():a.onPlayBtnClick(o,!0)}),t.TgZ(2,"div",58),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return null!=a.favSongsDataSettingResponse&&null!=a.favSongsDataSettingResponse.parentalControl&&a.favSongsDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=o&&null!=o.data&&null!=o.data.misc&&o.data.misc.explicit?a.explicitiContentPopup():a.onPlayBtnClick(o,!0),a.selectedSongs=o}),t.YNc(3,ae,2,0,"span",59),t.TgZ(4,"div",60),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return null!=s.favSongsDataSettingResponse&&null!=s.favSongsDataSettingResponse.parentalControl&&s.favSongsDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=a&&null!=a.data&&null!=a.data.misc&&a.data.misc.explicit?s.explicitiContentPopup():s.onPlayBtnClick(a,!0),n.stopPropagation()}),t.TgZ(5,"a",18),t._UZ(6,"i"),t.qZA()(),t.YNc(7,se,2,2,"span",61),t.TgZ(8,"a",18)(9,"img",62),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw().storageService.setDefaultImage(null==o||null==o.data?null:o.data.image,"")}),t.qZA()()(),t.TgZ(10,"div",63),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return null!=a.favSongsDataSettingResponse&&null!=a.favSongsDataSettingResponse.parentalControl&&a.favSongsDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=o&&null!=o.data&&null!=o.data.misc&&o.data.misc.explicit?a.explicitiContentPopup():a.onPlayBtnClick(o,!0),a.selectedSongs=o}),t.TgZ(11,"p",64),t._uU(12),t.qZA(),t.TgZ(13,"p",17),t.YNc(14,re,2,0,"a",65),t._uU(15),t.qZA()(),t.TgZ(16,"div",66),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return a.selectedSongs=o,a.onPlayBtnClick(o)}),t.qZA(),t.TgZ(17,"div",67),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw();return a.selectedSongs=o,a.onPlayBtnClick(o)}),t._uU(18," \xa0 "),t.qZA(),t.TgZ(19,"li",68)(20,"a",69),t._uU(21),t.qZA(),t.TgZ(22,"div",70)(23,"a",71),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return null!=s.favSongsDataSettingResponse&&null!=s.favSongsDataSettingResponse.parentalControl&&s.favSongsDataSettingResponse.parentalControl.allowExplicitAudioContent&&null!=a&&null!=a.data&&null!=a.data.misc&&a.data.misc.explicit?s.explicitiContentPopup():s.download(a),n.stopPropagation()}),t._UZ(24,"span",42),t.qZA(),t.TgZ(25,"div",27)(26,"a",72),t.NdJ("click",function(n){return n.stopPropagation()}),t._UZ(27,"span",73),t.TgZ(28,"div",74)(29,"app-three-dots",75),t.NdJ("onTreeDotOptionChange",function(n){const a=t.CHM(e).$implicit;return t.oxw().onTreeDotOptionChange(n,a,"")}),t.qZA()()()(),t.TgZ(30,"a",76),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return n.stopPropagation(),s.OnThreeDotClick(s.threeDotType.SUBTYPE,a)}),t._UZ(31,"span",29),t.qZA()()()(),t.BQk()}if(2&l){const e=r.$implicit,i=r.index,n=t.oxw();
1t.xp6(1),t.ekj("active_explicit_ul",(null==n.favSongsDataSettingResponse||null==n.favSongsDataSettingResponse.parentalControl?null:n.favSongsDataSettingResponse.parentalControl.allowExplicitAudioContent)&&(null==e||null==e.data||null==e.data.misc?null:e.data.misc.explicit))("sortable-active",(null==e||null==e.data?null:e.data.title)===(null==n.selectedSongs||null==n.selectedSongs.data?null:n.selectedSongs.data.title)),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf","AMOD"==(null==e||null==e.data||null==e.data.misc?null:e.data.misc.movierights[0])),t.xp6(3),t.Gre("icon-",e.isPlay&&(null==e||null==e.data?null:e.data.title)===(null==n.selectedSongs||null==n.selectedSongs.data?null:n.selectedSongs.data.title)?"pause_1":"play_1",""),t.xp6(1),t.Q6J("ngIf",e.isPlay&&(null==e||null==e.data?null:e.data.title)===(null==n.selectedSongs||null==n.selectedSongs.data?null:n.selectedSongs.data.title)),t.xp6(2),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(3),t.AsE("",i+1,". ",null==e||null==e.data?null:e.data.title," "),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data||null==e.data.misc?null:e.data.misc.explicit),t.xp6(1),t.hij("",null==e||null==e.data?null:e.data.subtitle," "),t.xp6(6),t.hij(" ",n.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," "),t.xp6(8),t.Q6J("threeDotType","FAVOURITE_SUB_TYPE_THREE_DOTS")}}const ce=function(l){return{"background-image":l}};let ue=(()=>{class l{constructor(e,i,n,o,a,s,d,p,_,g,m,T,f,v){this.router=e,this.libraryService=i,this.playerService=n,this.miscService=o,this.notificationService=a,this.notificationPopupService=s,this.translate=d,this.ssoStorageService=p,this.loginService=_,this.explicitService=g,this.userService=m,this.storageService=T,this.eventTrackingService=f,this.addToPlaylistService=v,this.optionDetail={isOptionShow:!1,type:"",data:{},itemList:[]},this.threeDotType=u.jG,this.row="loop varialbe",this.favoritedList=[],this.TYPE_THREE_DOTS="ALBUM_DETAIL",this.breadcrumbs=[],this.isOpenSideBar=!0,this.styles1={"margin-right":"5px","font-size":"20px",top:"25%",left:"25%","z-index":" 3"},this.isOpenSideBar=this.storageService.getSideBarStatus(),this.breadcrumb=this.storageService.getBreadcrumb()}ngOnInit(){this.makeBreadCrumList(),this.userDetails=this.ssoStorageService.getUserDetails(),this.getfavoritedSong(),this.getNextPrevSongDetails(),this.playerService.globalPlayPause.subscribe(e=>{e&&"FROM_MINI_PLAYER"==e.type&&this.makeSelected(e)})}makeSelected(e=null){const i=this.storageService.getLastPlayedSong(),o=c.l.addPlayButtonStatusDetails(this.favoritedList,e||i);o&&(this.selectedSongs=o,this.selectedSongs.data.image.includes("_xs")&&(this.selectedSongs.data.image=this.selectedSongs.data.image.replace("_xs","_l")),(this.favoritedList||[]).forEach(a=>{var s,d,p;(null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.title)===(null===(p=null===(d=this.selectedSongs)||void 0===d?void 0:d.data)||void 0===p?void 0:p.title)&&(a.lottie={path:"/assets/ngx-lottie/Equalizer_REV_slower.json",autoplay:!0})}))}getNextPrevSongDetails(){this.playerService.nextPrevPlayedSongSource$.subscribe(e=>{e&&this.favoritedList.length&&(this.selectedSongs=(this.favoritedList||[]).find(i=>{var n,o;return(null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.id)===(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.id)})||null,this.setPlayStatus())})}onPauseBtnClick(e){if("isPlay"in e)return e.isPlay=!e.isPlay,void this.trackGoogleADsPlayPauseEvent(e,"play");this.resetPlayButton(),this.selectedSongs=e,this.onPlayBtnClick(e)}resetPlayButton(){(this.favoritedList||[]).forEach(e=>{delete e.isPlay})}getfavoritedSong(){var e;const i={userId:null===(e=this.userDetails)||void 0===e?void 0:e.user_id,module:1,typeId:"21"},n=[this.libraryService.getFavoritedSong(i)];this.userDetails&&this.userDetails.user_id&&n.push(this.userService.getGeneralSetting(this.userDetails.user_id,ie.Fh.GENRAL_SETTING)),(0,xt.D)(n).subscribe(o=>{if(o&&o.length){const a=o[0]||[],s=o[1]||[];s&&s.data&&s.data.data&&s.data.data[0]&&s.data.data[0].preference&&(this.favSongsDataSettingResponse=s.data.data[0].preference[0]),a&&(null==a?void 0:a.data)&&a.data.body&&a.data.body.rows&&(this.favoritedList=a.data.body.rows,this.favoritedList[0].data.image=this.favoritedList[0].data.image.replace("_xs","_l"),this.getAllFavoriteRecords())}})}
1explicitiContentPopup(){c.l.explicitContentPopup(this.explicitService,!1)}getAllFavoriteRecords(){const e=this.ssoStorageService.getUserDetails();e&&e.user_id&&this.miscService.getBookmark(Z.gF.FAVORITE,e.user_id).subscribe(i=>{var n,o,a;if(i){const s=null===(a=null===(o=null===(n=null==i?void 0:i.response)||void 0===n?void 0:n.data)||void 0===o?void 0:o.body)||void 0===a?void 0:a.rows;(s||[]).find(d=>{var p,_,g;return(null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.id)===(null===(g=null===(_=this.favoritedList[0])||void 0===_?void 0:_.data)||void 0===g?void 0:g.id)})&&(this.favoritedList[0].isLiked=!0),(s||[]).forEach(d=>{const p=this.favoritedList.find(_=>{var g,m;return(null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.id)===(null===(m=null==d?void 0:d.data)||void 0===m?void 0:m.id)});p&&(p.isLiked=!0)})}})}animationCreatedforFooterLoop(e,i){t.R0b.assertInAngularZone(),i.animationItem=e}makeFavorite(e,i=""){var n,o;const a=this.ssoStorageService.getUserDetails();if(!a||!a.user_id)return;const s={contentId:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.id,typeId:null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.type,action:!e.isLiked,module:Z.gF.FAVORITE};this.miscService.postBookmark(s,a.user_id).subscribe(d=>{var p,_,g;if(d){const m=this.favoritedList.find(T=>{var f,v;return(null===(f=null==T?void 0:T.data)||void 0===f?void 0:f.id)===(null===(v=null==e?void 0:e.data)||void 0===v?void 0:v.id)});if(m){const T=(null===(p=null==e?void 0:e.data)||void 0===p?void 0:p.title)||"";c.l.toastNotification(`${this.translate.instant("menu_str_10")}`,e.isLiked?`${T} ${this.translate.instant("toast_str_18")}`:`${T} ${this.translate.instant("toast_str_17")}`,"TOP_RIGHT");const f={event:null===(_=this.breadcrumbs[1])||void 0===_?void 0:_.name,action:!e.isLiked,label:(null==e?void 0:e.title)||(null===(g=null==e?void 0:e.data)||void 0===g?void 0:g.title),method:[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]};c.l.trackGoogleADsfavoriteEvent(f,this.eventTrackingService),m.isLiked=!m.isLiked}}})}makeBreadCrumList(){this.breadcrumbs=(0,M.cloneDeep)(j.E.LIBRARY.FAVOURITE_PLAYLIST),this.breadcrumbs.forEach(e=>{e.name=e.name.replace(/DYNAMIC_NAME/g,"Favourited Songs")}),this.breadcrumbs=[...this.breadcrumbs]}download(e){var i,n;const o={event:this.breadcrumbs&&(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"library",action:"download",label:(null==e?void 0:e.title)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.title),method:[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]};c.l.trackGoogleADsDownloadEvent(o,this.eventTrackingService),c.l.download(null==e?void 0:e.data,this.notificationService)}setPlayStatus(e=!0){this.selectedSongs&&(this.selectedSongs.isPlay=!0)}playAll(){1==this.userDetails.isGold?(this.selectedSongs=this.favoritedList[0],this.setPlayStatus(),this.onPlayBtnClick(this.favoritedList[0],!0,!0)):(localStorage.setItem("popup_type","song"),this.subscribtionpop_up())}remove_subscribtionpop_up(){localStorage.setItem("popup_type","remove_ad"),this.subscribtionpop_up()}subscribtionpop_up(){setTimeout(()=>{c.l.subscribtionpop_up_2("",this.notificationService)},1e3)}onPlayBtnClick(e,i=!1,n=!1){var o,a,s,d,p,_,g;if(1==this.userDetails.isGold||"AMOD"==e.data.misc.movierights[0]||null!=localStorage.getItem("MINI_PLAYER_SET")||null!=localStorage.getItem("MINI_PLAYER_SET")){this.storageService.setPlayPauseState(!0),this.trackGoogleADsPlayPauseEvent(e,"play_all");const m=this.favoritedList.filter(y=>{var h,D;return 0===(null===(D=null===(h=null==y?void 0:y.data)||void 0===h?void 0:h.misc)||void 0===D?void 0:D.explicit)}),T=this.favoritedList.filter(y=>y.explicitContent);let f;f=T&&T.length?c.l.getCurrentItemConfig(e,null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.id,m):c.l.getCurrentItemConfig(e,e.data.id,this.favoritedList),this.playerService.clearLyricsSource(),this.albumDetail={image:null===(s=null===(a=this.selectedSongs)||void 0===a?void 0:a.data)||void 0===s?void 0:s.image,title:null===(p=null===(d=this.selectedSongs)||void 0===d?void 0:d.data)||void 0===p?void 0:p.title};const v=(this.favoritedList||[]).filter(y=>{var h,D;return 0===(null===(D=null===(h=y.data)||void 0===h?void 0:h.misc)||void 0===D?void 0:D.explicit)&&!y.adContainer});if((null===(g=null===(_=this.favSongsDataSettingResponse)||void 0===_?void 0:_.parentalControl)||void 0===g?void 0:g.allowExplicitAudioContent)&&v&&v.length)this.favoritedList.forEach(y=>{var h;y.data.animationItem={},null===(h=y.data)||void 0===h||delete h.animationItem},100),delete e.data.animationItem,c.l.onPlayBtnClicksetInQueue(v,e,this.storageService);else{const y=(this.favoritedList||[]).filter(h=>!h.adContainer);y&&y.length&&(y.forEach(h=>{var D;h.data.animationItem={},null===(D=h.data)||void 0===D||delete D.animationItem},100),delete e.data.animationItem,c.l.onPlayBtnClicksetInQueue(y,e,this.storageService))}if(f.player===Z.jM.MINI_PLAYER){const y=this.storageService.getLastPlayedSong();return!n&&y&&y.itemId&&f&&f.itemId&&y.itemId==f.itemId?"isPlay"in f.item&&(f.item.isPlay?(f.item.isPlay=!1,e.isPlay=!1):(f.item.isPlay=!0,e.isPlay=!0)):n||(e.isPlay=!0,f.item.isPlay=!0),n&&(delete e.isPlay,delete f.item.isPlay),void this.playerService.updatedPlayerSource((0,M.cloneDeep)(f))}c.l.navigateToRelatedView(this.router,f)}else localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}onback(){this.router.navigate([this.breadcrumb.activePage]),this.storageService.setBreadcrumb(Object.assign(this.breadcrumb,{activeTab:"home"}))}instant(e){return this.translate.instant(e)}OnThreeDotClick(e,i=null){let n=!1;if(e==u.jG.GLOBAL){const a=(u.gH||[]).map(s=>(s.title=this.instant(s.title),s));return void(this.optionDetail={type:e,isOptionShow:n=!n,data:i||{},itemList:a})}const o=(u.Qf||[]).map(a=>(a.title=this.instant(a.title),a));this.optionDetail={type:e,isOptionShow:n=!n,data:i||{},itemList:o}}onDonwload(e){var i,n;this.explicitiContentPopup();const o={event:this.breadcrumbs&&(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"library",action:"download",label:(null==e?void 0:e.title)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.title),method:[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]};c.l.trackGoogleADsDownloadEvent(o,this.eventTrackingService),c.l.download(e,this.notificationPopupService)}getThreeDotdata(e){var i,n,o,a,s,d,p,_,g,m,T,f,v;const y=c.l.login(this.loginService);if(this.optionDetail=e||{},this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.data,this.notificationService);if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SHUFFLE_PLAY&&(c.l.shufflePlay(this.storageService,this.favoritedList),this.trackGoogleADsThreeDotsEvent(u.g6.SHUFFLE_PLAY)),this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.ADD_TO_QUEUE&&this.optionDetail.type===u.jG.GLOBAL){if(1==this.userDetails.isGold){this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_QUEUE);const h=(this.favoritedList||[]).filter(D=>!D.adContainer);return void c.l.addToQueue(this.storageService,h,"",this.TYPE_THREE_DOTS,this.translate,"IS_GLOBAL_THREE_DOT")}localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.ADD_TO_QUEUE&&this.optionDetail.type===u.jG.SUBTYPE)if(1==this.userDetails.isGold){const h=(this.favoritedList||[]).find((D,E)=>{var A,L,w;return D.data.id===(null===(w=null===(L=null===(A=this.optionDetail)||void 0===A?void 0:A.data)||void 0===L?void 0:L.data)||void 0===w?void 0:w.id)});this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_QUEUE),c.l.addToQueue(this.storageService,h,"subTypeOption","",this.translate)}else localStorage.setItem("popup_type","song"),this.subscribtionpop_up();if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.PLAY_NEXT&&this.optionDetail.type===u.jG.SUBTYPE){if(1==this.userDetails.isGold){const{nextIndex:h}=c.l.playNext(this.favoritedList,null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data);return h&&this.onPlayBtnClick(this.favoritedList[h]),void this.trackGoogleADsThreeDotsEvent(u.g6.PLAY_NEXT)}localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.ADD_TO_PLAYLIST&&this.optionDetail.type===u.jG.SUBTYPE)return this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_PLAYLIST),y?void c.l.addToPlaylist(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.data,this.addToPlaylistService):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.LIKE&&this.optionDetail.type===u.jG.SUBTYPE)return this.trackGoogleADsThreeDotsEvent(u.g6.L
1IKE),y?void this.makeFavorite(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.data,""):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SONG_DETAILS&&this.optionDetail.type===u.jG.SUBTYPE){let h={title:null===(d=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.data)||void 0===d?void 0:d.title,id:null===(_=null===(p=null==e?void 0:e.data)||void 0===p?void 0:p.data)||void 0===_?void 0:_.id};this.trackGoogleADsThreeDotsEvent(u.g6.SONG_DETAILS),c.l.songDetails(this.router,h)}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.PLAY_NEXT&&this.optionDetail.type===u.jG.SUBTYPE){if(1==this.userDetails.isGold){const h=(this.favoritedList||[]).find((D,E)=>D.data.id===e.data.id);return c.l.addNextSongInNextInQueue(h,this.storageService,this.translate),void this.trackGoogleADsThreeDotsEvent(u.g6.PLAY_NEXT)}localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.GO_TO_ALBUM){let h=null===(g=null==e?void 0:e.data)||void 0===g?void 0:g.data;this.trackGoogleADsThreeDotsEvent(u.g6.GO_TO_ALBUM),c.l.albumDetails(this.router,h)}if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.REMOVE_FROM_LIBRARY){this.trackGoogleADsThreeDotsEvent(u.g6.REMOVE_FROM_LIBRARY);const h=this.ssoStorageService.getUserDetails();if(!h||!h.user_id)return;const D={contentId:null===(T=null===(m=null==e?void 0:e.data)||void 0===m?void 0:m.data)||void 0===T?void 0:T.id,typeId:null===(v=null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.data)||void 0===v?void 0:v.type,action:!1,module:Z.gF.FAVORITE};this.miscService.postBookmark(D,h.user_id).subscribe(E=>{var A;if(E){const w=this.favoritedList.find(I=>{var R,q,Y;return(null===(R=null==I?void 0:I.data)||void 0===R?void 0:R.id)===(null===(Y=null===(q=null==e?void 0:e.data)||void 0===q?void 0:q.data)||void 0===Y?void 0:Y.id)});w&&(null===(A=null==e?void 0:e.data)||void 0===A?void 0:A.data,w.isLiked=!1),this.getfavoritedSong()}})}}share(e){}onTreeDotOptionChange(e,i,n){var o,a;const s=c.l.login(this.loginService);if(e.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null==i?void 0:i.data,this.notificationService);if(e.name===u.g6.SONG_DETAILS)return this.trackGoogleADsThreeDotsEvent(u.g6.SONG_DETAILS),void c.l.songDetails(this.router,null==i?void 0:i.data);if(e.name===u.g6.GO_TO_ALBUM&&(this.trackGoogleADsThreeDotsEvent(u.g6.GO_TO_ALBUM),c.l.albumDetails(this.router,null==i?void 0:i.data)),e.name===u.g6.ADD_TO_QUEUE)if(1==this.userDetails.isGold){if(n){const p=(this.favoritedList||[]).filter(_=>!(null==_?void 0:_.adContainer));return void c.l.addToQueue(this.storageService,p,"",this.TYPE_THREE_DOTS,this.translate,"IS_GLOBAL_THREE_DOT")}const d=(this.favoritedList||[]).find((p,_)=>p.data.id===i.data.id);c.l.addToQueue(this.storageService,d,"subTypeOption","",this.translate),this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_QUEUE)}else localStorage.setItem("popup_type","song"),this.subscribtionpop_up();if(e.name===u.g6.ADD_TO_PLAYLIST)return this.trackGoogleADsThreeDotsEvent(u.g6.ADD_TO_PLAYLIST),s?void c.l.addToPlaylist(null==i?void 0:i.data,this.addToPlaylistService):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(e.name===u.g6.PLAY_NEXT){if(1==this.userDetails.isGold){const d=(this.favoritedList||[]).find((p,_)=>p.data.id===i.data.id);return c.l.addNextSongInNextInQueue(d,this.storageService,this.translate),void this.trackGoogleADsThreeDotsEvent(u.g6.PLAY_NEXT)}localStorage.setItem("popup_type","song"),this.subscribtionpop_up()}if(e.name===u.g6.LIKE)return this.trackGoogleADsThreeDotsEvent(u.g6.LIKE),s?void this.makeFavorite(i,""):(c.l.bodyOverflowHidden(),void this.loginService.setPopup({notification:!1,message:"",type:"login",title:"login"}));if(e.name===u.g6.REMOVE_FROM_LIBRARY){this.trackGoogleADsThreeDotsEvent(u.g6.REMOVE_FROM_LIBRARY);const d=this.ssoStorageService.getUserDetails();
1if(!d||!d.user_id)return;const p={contentId:null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.id,typeId:null===(a=null==i?void 0:i.data)||void 0===a?void 0:a.type,action:!i.isLiked,module:Z.gF.FAVORITE};this.miscService.postBookmark(p,d.user_id).subscribe(_=>{if(_){const m=this.favoritedList.find(T=>{var f,v;return(null===(f=null==T?void 0:T.data)||void 0===f?void 0:f.id)===(null===(v=null==i?void 0:i.data)||void 0===v?void 0:v.id)});m&&(null==i?void 0:i.data,m.isLiked=!m.isLiked),this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate(["./library/favourite-playlist/"]))}})}}playNext(e){var i,n,o,a;(null===(i=this.favoritedList[e])||void 0===i?void 0:i.explicitContent)&&(null===(a=null===(o=null===(n=this.favoritedList[e])||void 0===n?void 0:n.data)||void 0===o?void 0:o.misc)||void 0===a?void 0:a.explicit)?this.playNext(e+=1):e&&this.onPlayBtnClick(this.favoritedList.filter(s=>!s.adContainer)[e])}trackGoogleADsPlayPauseEvent(e,i){var n,o,a,s;let d;(null==e?void 0:e.isPlay)?(d={event:(null===(n=this.breadcrumbs[1])||void 0===n?void 0:n.name)||"N/A",action:i||"N/A",label:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])):(d={event:(null===(a=this.breadcrumbs[1])||void 0===a?void 0:a.name)||"N/A",action:"pause",label:(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]))}trackGoogleADsThreeDotsEvent(e){var i;let n;n={event:(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"N/A",action:"3dot_menu_song",label:e||"N/A"},this.trackEvent(n,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(O.F0),t.Y36(J.$),t.Y36(ct.l),t.Y36(st.Y),t.Y36(V.n),t.Y36(V.n),t.Y36(P.sK),t.Y36(U.T),t.Y36(ft.M),t.Y36(mt.A),t.Y36(bt.K),t.Y36(B.V),t.Y36(W.f),t.Y36(yt.F))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-favorited-song"]],decls:73,vars:52,consts:[[3,"optionDetail","optionDetails",4,"ngIf"],[3,"footer"],["body-view",""],["id","Listen",1,"hg-tabcontent","d-block"],[1,"listen-playlist-wrapper"],[1,"playlist-player"],[1,"mobile-div",3,"songDetails","rowsPlayList","threeDotType","TYPE_THREE_DOTS","breadcrumbs"],[1,"playlist-player-inner","pdlr-40"],[1,"hide-sec",3,"songDetails","rowsPlayList","threeDotType","TYPE_THREE_DOTS","breadcrumbs"],["id","favoritred-song-content",1,"scroll-ms-topBar","padding-fav","fxd","pd-md"],[1,"scroll-ms-topBar-inr","flex1"],[1,"playlist_data","flex2","hide-sec"],[1,"playlist_thumb","playlist_thumb_topBar"],[3,"alt","error"],[1,"playlist_thumb_det"],[1,"playlist_sg_nm"],[1,"hg_albm_name","hg-albm-ttl","cursor-pointer"],[1,"plst_sg_ownr","hg_albm_owner","hg-albm-ttl"],[1,"cursor-pointer"],[1,"like_play_dwn","like_play_dwn_topBar"],[1,"btn-38","mobile-back-btn",3,"click"],[1,"icon-Back"],[1,"btn-38"],[1,"button-blue","cursor-pointer",3,"click"],[1,"icon-play_all"],[1,"icon-Download",3,"click"],["ngbDropdown","","container","body","display","dynamic","placement","bottom-right",1,"brdcrms-nav-right","pr"],[1,"threedot-desktop-menu"],["tabindex","0","ngbDropdownToggle","",1,"btn-38"],[1,"icon-Options"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],[3,"threeDotType","TYPE_THREE_DOTS","onTreeDotOptionChange"],[1,"btn-38","threedot-mobile-menu",3,"click"],[1,"myPlaylist_player","flex2"],["class","playlist_artwork fav-artworkbox",4,"ngIf"],["class","playlist_artwork favourite_img",4,"ngIf"],[1,"myPlaylist-desc"],[1,"h2-heading","mt-10"],[1,"h5-heading"],[1,"plylst_plSg_count"],[1,"like_play_dwn"],[1,"btn-38",3,"click"],[1,"icon-Download"],[1,"queue-list-title"],[1,"queue-list-col-title","queue-list-song-col"],[1,"queue-list-col-title","queue-list-album-col"],[1,"queue-list-col-title","queue-list-duration-col"],["id","dragdrop",1,"queue-listing-wrap","queue-listing-wrap-reset","fs-hover"],[4,"ngFor","ngForOf"],[1,"blur-overlay","myPlaylist-overlay",3,"ngStyle"],[1,"backlayer_of_gredient","fxd","pd-md"],[3,"optionDetail","optionDetail
1s"],[1,"playlist_artwork","fav-artworkbox"],[1,"fav-artworkimg-box"],[3,"src","alt","error"],[1,"playlist_artwork","favourite_img"],["alt","artwork",3,"src"],[1,"queue-list","sortable-active",3,"title","click"],[1,"queue-list-thmb","overflow_unset","border-rad-5",3,"click"],["class","thum_free_tag",4,"ngIf"],[1,"queue-list-thmb-overlay","border-rad-5",3,"click"],["class","current-play-song",4,"ngIf"],["alt","thumbnail",1,"border-rad-5",2,"max-width","-webkit-fill-available",3,"src","error"],[1,"queue-list-song-desc",3,"click"],[1,"queue-song-name"],["class","queue-e cursor-pointer",4,"ngIf"],[1,"queue-list-song-albumname",3,"click"],[1,"queue-list-song-duration",3,"click"],[1,"sg_duration","sg_durationWith_opt","hg_albm_owner","flex1"],[1,"cursor-pointer","duration_sec"],[1,"like-dwn-opt"],[1,"qdownload","cursor-pointer",3,"click"],["ngbDropdown","","container","body","display","dynamic","placement","bottom-right",1,"dropdown","cursor-pointer",3,"click"],["ngbDropdownToggle","",1,"icon-Options"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",1,"paddthreedot"],[3,"threeDotType","onTreeDotOptionChange"],[1,"clr1","cursor-pointer","threedot-mobile-menu",3,"click"],[1,"thum_free_tag"],["src","https://assetsun.hungama.com/images/free-tag.svg"],[1,"current-play-song"],["width","25px","height","25px","containerClass","moving-box moving-box-second-class",3,"styles","options","animationCreated"],[1,"queue-e","cursor-pointer"],["src","https://assetsun.hungama.com/image/e.svg"]],template:function(e,i){1&e&&(t.YNc(0,ne,1,1,"app-three-dots",0),t.TgZ(1,"base-view",1),t.ynx(2,2),t.TgZ(3,"div",3)(4,"div",4)(5,"div",5),t._UZ(6,"app-breadcrumbs",6),t.TgZ(7,"div",7),t._UZ(8,"app-breadcrumbs",8),t.TgZ(9,"div",9)(10,"div",10)(11,"div",11)(12,"div",12)(13,"img",13),t.NdJ("error",function(){return i.storageService.setDefaultImage(null==i.selectedSongs?null:i.selectedSongs.data,"image")}),t.qZA()(),t.TgZ(14,"div",14)(15,"div",15)(16,"a",16),t._uU(17,"1. Favourited Songs"),t.qZA()(),t.TgZ(18,"div",17)(19,"a",18),t._uU(20),t.qZA()()()(),t.TgZ(21,"div",19)(22,"button",20),t.NdJ("click",function(){return i.onback()}),t._UZ(23,"span",21),t.qZA(),t.TgZ(24,"button",22),t._UZ(25,"span"),t.qZA(),t.TgZ(26,"a",23),t.NdJ("click",function(){return i.playAll()}),t._UZ(27,"span",24),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.TgZ(30,"button",22)(31,"span",25),t.NdJ("click",function(){return i.download(i.selectedSongs)}),t.qZA()(),t.TgZ(32,"div",26)(33,"div",27)(34,"button",28),t._UZ(35,"span",29),t.qZA(),t.TgZ(36,"div",30)(37,"app-three-dots",31),t.NdJ("onTreeDotOptionChange",function(o){return i.onTreeDotOptionChange(o,i.favoritedList,i.TYPE_THREE_DOTS)}),t.qZA()()(),t.TgZ(38,"button",32),t.NdJ("click",function(o){return o.stopPropagation(),i.OnThreeDotClick(i.threeDotType.GLOBAL,i.favoritedList)}),t._UZ(39,"span",29),t.qZA()()()()(),t.TgZ(40,"div",33),t.YNc(41,oe,9,8,"div",34),t.YNc(42,le,2,1,"div",35),t.TgZ(43,"div",36)(44,"h1",37),t._uU(45,"Favourited Songs"),t.qZA(),t.TgZ(46,"h5",38),t._uU(47),t.qZA(),t.TgZ(48,"div",39)(49,"span"),t._uU(50),t.ALo(51,"translate"),t.qZA()(),t.TgZ(52,"div",40)(53,"button",22),t._UZ(54,"span"),t.qZA(),t.TgZ(55,"a",23),t.NdJ("click",function(o){return i.playAll(),o.stopPropagation()}),t._UZ(56,"span",24),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"button",41),t.NdJ("click",function(o){return i.download(i.favoritedList[0]),o.stopPropagation()}),t._UZ(60,"span",42),t.qZA()()()(),t.TgZ(61,"div",43)(62,"div",44),t._uU(63),t.ALo(64,"translate"),t.qZA(),t._UZ(65,"div",45),t.TgZ(66,"div",46),t._uU(67),t.ALo(68,"translate"),t.qZA()(),t.TgZ(69,"div",47),t.YNc(70,de,32,17,"ng-container",48),t.qZA()(),t._UZ(71,"div",49)(72,"div",50),t.qZA()()(),t.BQk(),t.qZA()),2&e&&(t.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),t.xp6(1),t.Q6J("footer",!0),t.xp6(5),t.Q6J("songDetails",i.albumDetail)("rowsPlayList",i.favoritedList)("threeDotType","FAVOURITE_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","ALBUM_DETAIL")("breadcrumbs",i.breadcrumbs),t.xp6(2),t.Q6J("songDetails",i.albumDetail)("rowsPlayList",i.favoritedList)("threeDotType","FAVOURITE_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","ALBUM_DETAIL")("breadcrumbs",i.breadcrumbs),t.xp6(1),t.ekj("padding-fav-mini-screen",i.isOpenSideBar),t.xp6(4),t.MGl("alt","",null==i.selectedSongs||null==i.selectedSongs.data?null:i.selectedSongs.data.title,"-hover"),t.uIk("src",(null==i.selectedSongs||null==i.selectedSongs.data?null:i.selectedSongs.data.image)||(null==i.favoritedList[0]||null==i.favoritedList[0].data?null:i.favoritedList[0].data.image),t.LSH),t.xp6(7),t.hij(" By ",null!=i.userDetails&&i.userDetails.firstName&&null!=i.userDetails&&i.userDetails.lastName?(null==i.userDetails?null:i.userDetails.firstName)+(null==i.userDetails?null:i.userDetails.lastName):null==i.userDetails?null:i.userDetails.handleName," "),t.xp6(5),t.Gre("icon-",null!=i.favoritedList[0]&&i.favoritedList[0].isLiked?"favorited":"like",""),t.xp6(1),t.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),t.xp6(2),t.hij(" ",t.lcZ(29,40,"playall_general")," "),t.xp6(9),t.Q6J("threeDotType","FAVOURITE_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","ALBUM_DETAIL"),t.xp6(4),t.Q6J("ngIf",(null==i.favoritedList[0]||null==i.favoritedList[0].data?null:i.favoritedList[0].data.image)&&(null==i.favoritedList[1]||null==i.favoritedList[1].data?null:i.favoritedList[1].data.image)&&(null==i.favoritedList[2]||null==i.favoritedList[2].data?null:i.favoritedList[2].data.image)&&(null==i.favoritedList[3]||null==i.favoritedList[3].data?null:i.favoritedList[3].data.image)),t.xp6(1),t.Q6J("ngIf",!(null!=i.favoritedList[1]&&null!=i.favoritedList[1].data&&i.favoritedList[1].data.image&&null!=i.favoritedList[2]&&null!=i.favoritedList[2].data&&i.favoritedList[2].data.image&&null!=i.favoritedList[3]&&null!=i.favoritedList[3].data&&i.favoritedList[3].data.image)),t.xp6(5),t.hij("By ",null!=i.userDetails&&i.userDetails.firstName&&null!=i.userDetails&&i.userDetails.lastName?(null==i.userDetails?null:i.userDetails.firstName)+(null==i.userDetails?null:i.userDetails.lastName):null==i.userDetails?null:i.userDetails.handleName,""),t.xp6(3),t.AsE("",null==i.favoritedList?null:i.favoritedList.length," ",t.lcZ(51,42,"Songs"),""),t.xp6(4),t.Gre("icon-",null!=i.favoritedList[0]&&i.favoritedList[0].isLiked?"favorited":"like"," tsticn"),t.xp6(1),t.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),t.xp6(2),t.hij(" ",t.lcZ(58,44,"playall_general")," "),t.xp6(6),t.hij(" ",t.lcZ(64,46,"Title")," "),t.xp6(4),t.hij(" ",t.lcZ(68,48,"duration")," "),t.xp6(3),t.Q6J("ngForOf",i.favoritedList),t.xp6(1),t.Q6J("ngStyle",t.VKq(50,ce,"url("+(null==i.favoritedList[0]||null==i.favoritedList[0].data?null:i.favoritedList[0].data.image)+")")))},directives:[S.O5,rt.w,K.K,z.n,Q.u,k.jt,k.iD,k.Vi,S.sg,ut.e$,S.PC],pipes:[P.X$],styles:['@import"https://assetsun.hungama.com/css/music-listing.css";.fav-artworkimg-box[_ngcontent-%COMP%]{width:108px;float:left}.fav-artworkimg-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;float:left}.padding-fav[_ngcontent-%COMP%]{padding:0 20px 0 150px!important}.padding-fav-mini-screen[_ngcontent-%COMP%]{padding:0 240px 0 290px!important}.gold-user-no-ads[_ngcontent-%COMP%]{padding:0 20px 0 290px!important}@media only screen and (max-width: 1023px){.hg-tabcontent[_ngcontent-%COMP%]{padding-top:0!important}.playlist_artwork.fav-artworkbox[_ngcontent-%COMP%]{width:217px;height:217px;border-radius:7px;overflow:hidden;margin:0 auto}h5.h5-heading[_ngcontent-%COMP%]{text-align:center!important}.queue-list[_ngcontent-%COMP%]{padding:2.5vw 2vw}.queue-list-title[_ngcontent-%COMP%], .duration_sec[_ngcontent-%COMP%], .queue-list-song-albumname[_ngcontent-%COMP%], .queue-list-song-duration[_ngcontent-%COMP%]{display:none}.queue-list-song-desc[_ngcontent-%COMP%]{width:61%}.queue-listing-wrap-reset[_ngcontent-%COMP%]{padding:0 18px}.like-dwn-opt[_ngcontent-%COMP%]{display:flex}.sg_duration[_ngcontent-%COMP%]{width:15%}
1.queue-list[_ngcontent-%COMP%]   .queue-song-name[_ngcontent-%COMP%]{width:78%}.hg-albm-ttl[_ngcontent-%COMP%]{width:72%;font-size:3.47vw;color:#c6c6c6!important}.like-dwn-opt[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:nth-child(2){margin:0 10px}.padding-fav-mini-screen[_ngcontent-%COMP%]{padding:0!important}.like_play_dwn[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:6vw!important}.playlist-player[_ngcontent-%COMP%]   .myPlaylist_player[_ngcontent-%COMP%]   .playlist_artwork.favourite_img[_ngcontent-%COMP%]{width:47.444vw;height:47.444vw;margin:0 auto 5vw}}']}),l})(),pe=(()=>{class l{transform(e,i,n=[]){return i&&e?l.filter(e,i,n):e}static filter(e,i,n){const o=i.toLowerCase();function a(s,d){if("string"==typeof s&&s.toString().toLowerCase().includes(o))return!0;for(let p in s)if(null!==s[p]&&null!=s[p]&&!n.includes(p))if("object"==typeof s[p]){if(a(s[p],d))return!0}else if(s[p].toString().toLowerCase().includes(o))return!0;return!1}return e.filter(function(s){return a(s,i)})}}return l.\u0275fac=function(e){return new(e||l)},l.\u0275pipe=t.Yjl({name:"filter",type:l,pure:!0}),l})();function _e(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",16),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onBucketClick(o)}),t.TgZ(2,"div",17)(3,"div",18)(4,"a",19),t._UZ(5,"img",20),t.qZA()(),t.TgZ(6,"div",21)(7,"p",22),t._uU(8),t.qZA(),t.TgZ(9,"p",23),t._uU(10),t.qZA()()(),t.TgZ(11,"div",24)(12,"a",25),t._UZ(13,"span",26),t.qZA()()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(4),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.MGl("alt","",null==e||null==e.data?null:e.data.title,"-hover"),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(2),t.Oqu(null==e||null==e.data?null:e.data.subtitle)}}let ge=(()=>{class l{constructor(e,i,n,o,a,s,d,p,_){this.router=e,this.libraryService=i,this.playerService=n,this.storageService=o,this.ssoStorageService=a,this.eventTrackingService=s,this.miscService=d,this.translate=p,this._location=_,this.followPodcastList=[],this.breadcrumbs=[],this.breadcrumb=this.storageService.getBreadcrumb()}ngOnInit(){this.getFollowPodcastDetail()}getFollowPodcastDetail(){const e=this.ssoStorageService.getUserDetails();this.libraryService.getFollowPodcastDetail({uId:null==e?void 0:e.user_id,recommendedId:"80370677"}).subscribe(n=>{n&&n.data&&n.data.body&&n.data.body.similar&&(this.followPodcastList=n.data.body.similar,this.makeBreadCrumList())})}onBucketClick(e){this.getfollowPodcastList(e)}getfollowPodcastList(e){var i,n;const o=this.ssoStorageService.getUserDetails(),s={contentId:null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.id,typeId:null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.type,action:!0,module:5};this.miscService.postFollow({followingId:null==e?void 0:e.data.id,follow:!0},o.user_id).subscribe(d=>{d&&(c.l.toastNotification(`${this.translate.instant("library_playlist_str_21")}`,d.message,"TOP_RIGHT"),this.followPodcastList=(this.followPodcastList||[]).filter(p=>p.data.id!=e.data.id))}),this.miscService.postFollowForLibrary(s,o.user_id).subscribe(d=>{})}makeBreadCrumList(){this.breadcrumbs=(0,M.cloneDeep)(j.E.LIBRARY.FOLLOW_PODCAST),this.breadcrumbs.forEach(e=>{e.name=e.name.replace(/DYNAMIC_NAME/g,"Podcast")}),this.breadcrumbs=[...this.breadcrumbs]}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}onback(){this._location.back()}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(O.F0),t.Y36(J.$),t.Y36(ct.l),t.Y36(B.V),t.Y36(U.T),t.Y36(W.f),t.Y36(st.Y),t.Y36(P.sK),t.Y36(S.Ye))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-follow-podcast"]],decls:19,vars:14,consts:[[3,"footer"],["body-view",""],["id","Listen",1,"hg-tabcontent","d-block"],[1,"listen-playlist-wrapper"],[1,"playlist-player"],[1,"playlist-player-inner","pdlr-40"],[1,"hide-sec",3,"rowsPlayList","isThreedotDisplay","threeDotType","TYPE_THREE_DOTS","breadcrumbs"],["id","headpadd",1,"headpadd","flex2",2,"display","flex","align-items","center"],[1,"clr1","cursor-pointer",3,"click"],["loading","lazy","src","https://pwa-un.hungama.com/images/arw_left.svg","alt","arrow"],[1,"player-title","hg-albm-ttl","padding-25"],["
1id","dragdrop",1,"queue-listing-wrap","queue-listing-wrap-reset"],[1,"search-box"],[1,"icon-Search","text-white"],["type","text","placeholder","Search...",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[1,"queue-list",3,"title","click"],[1,"d-flex","w-80"],[1,"queue-list-thmb"],[1,"cursor-pointer"],["loading","lazy",3,"src","alt"],[1,"queue-list-song-desc","queue-list-song-desc-reset"],[1,"podcast-title"],[1,"podcast-info"],[1,"queue-list-song-features"],[1,"qdownload","cursor-pointer"],[1,"icon-follow-podcast"]],template:function(e,i){1&e&&(t.TgZ(0,"base-view",0),t.ynx(1,1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),t._UZ(6,"app-breadcrumbs",6),t.TgZ(7,"div",7)(8,"a",8),t.NdJ("click",function(){return i.onback()}),t._UZ(9,"img",9),t.qZA(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"div",11)(14,"div",12),t._UZ(15,"i",13),t.TgZ(16,"input",14),t.NdJ("ngModelChange",function(o){return i.searchText=o}),t.qZA()(),t.YNc(17,_e,14,5,"ng-container",15),t.ALo(18,"filter"),t.qZA()()()()(),t.BQk(),t.qZA()),2&e&&(t.Q6J("footer",!0),t.xp6(6),t.Q6J("rowsPlayList",i.followPodcastList)("isThreedotDisplay",!1)("threeDotType","FAVOURITE_GLOBAL_THREE_DOTS")("TYPE_THREE_DOTS","FAVOURITE_GLOBAL_THREE_DOTS")("breadcrumbs",i.breadcrumbs),t.xp6(5),t.hij(" ",t.lcZ(12,9,"library_playlist_str_21")," "),t.xp6(5),t.Q6J("ngModel",i.searchText),t.xp6(1),t.Q6J("ngForOf",t.xi3(18,11,i.followPodcastList,i.searchText)))},directives:[K.K,z.n,Q.u,C.Fj,C.JJ,C.On,S.sg],pipes:[P.X$,pe],styles:['.queue-listing-wrap[_ngcontent-%COMP%]{margin-top:20px;overflow-x:scroll;height:50vh;padding-bottom:80px}.queue-listing-wrap[_ngcontent-%COMP%]   .queue-list[_ngcontent-%COMP%]:last-child:after{display:none}.queue-listing-wrap-reset[_ngcontent-%COMP%]{height:auto}.queue-list-thmb[_ngcontent-%COMP%]{border-radius:7px;width:54px;overflow:hidden;margin:0 20px 0 0;position:relative}.queue-list-song-desc[_ngcontent-%COMP%]{width:30%}.queue-list-song-desc-reset[_ngcontent-%COMP%]{width:70%;margin-top:7px}.queue-list-song-features[_ngcontent-%COMP%]{width:15%;text-align:right}.queue-list[_ngcontent-%COMP%]{border-radius:7px;padding:10px 0;display:flex;align-items:center;-webkit-align-items:center;justify-content:space-between;-webkit-justify-content:space-between;color:#fff;position:relative;cursor:move}.qdownload[_ngcontent-%COMP%]{font-size:20px;color:#fff;margin:0 10px}.queue-list[_ngcontent-%COMP%]:after{content:"";width:100%;height:1px;background:rgba(229,229,229,.15);position:absolute;bottom:0;left:0}.podcast-title[_ngcontent-%COMP%]{font-size:16px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#fff}.podcast-info[_ngcontent-%COMP%]{font-size:13px;font-weight:400;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#c6c6c6!important}.search-box[_ngcontent-%COMP%], .headpadd[_ngcontent-%COMP%]{display:none!important}@media only screen and (max-width: 1023px){.hg-tabcontent[_ngcontent-%COMP%]{padding-top:0}div#dragdrop[_ngcontent-%COMP%]{padding:0 18px;margin-top:70px!important}.queue-list-song-desc-reset[_ngcontent-%COMP%]{margin-top:0}.queue-list-thmb[_ngcontent-%COMP%]{width:48px;height:48px;margin-right:10px}.podcast-title[_ngcontent-%COMP%], .podcast-info[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.headpadd[_ngcontent-%COMP%]{padding:5.5vw 7vw;position:fixed;z-index:99;width:100%;display:flex!important;align-items:center;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}.headpadd[_ngcontent-%COMP%]   .player-title[_ngcontent-%COMP%]{font-size:16px;color:#fff;max-width:200px;overflow:hidden;text-overflow:ellipsis;width:97%;display:block;white-space:nowrap;padding-left:25px;font-weight:600}.search-box[_ngcontent-%COMP%]{padding:13px;object-fit:contain;border-radius:9px;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);background-color:#fff3;display:flex!important;margin:0;align-items:center;width:100%}.search-box[_ngcontent-%COMP%]   .icon-Search[_ngcontent-%COMP%]{font-size:20px;margin-right:10px;color:#fff!important}.search-box[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;font-size:13px;color:#fff;padding:0!important;background-color:transparent;border:0px;line-height:normal}}']}),l})();const ve=[{id:1,title:"library_str_2",constant:"Videos",subHeaders:[{id:0,constant:"library_video_str_2",title:"Watchlist",getPayload:{playlist:!1,download:!1,favourite:!1,stream:!1,follow:!1,favouriteType:[],downloadType:[],streamType:[],followType:[]},getErrorPayload:{title:"No Album Favorited",sub_title:"You can browse podcast and save it<br>Into your library",image:"https://assetsun.hungama.com/images/library-watchlist.svg",constant:"No Album Favorited",btnName:"Explore Now",imageClass:"no-podcast-img"}},{id:1,constant:"library_video_str_3",title:"Save Videos",getPayload:{playlist:!1,download:!1,favourite:!1,stream:!1,follow:!1,favouriteType:[],downloadType:[],streamType:[],followType:[]},getErrorPayload:{title:"No videos has been saved",sub_title:"You can browse music videos and short videos and save them",image:"https://assetsun.hungama.com/images/no-saved-video.svg",constant:"No Album Favorited",btnName:"Explore Now",imageClass:"no-podcast-img"}}]},{id:2,title:"library_str_3",constant:"Purchases",subHeaders:[{id:0,constant:"library_maintab_str_10",title:"Event",getPayload:{playlist:!1,download:!1,favourite:!1,stream:!1,follow:!1,favouriteType:[],downloadType:[],streamType:[],followType:[]},getErrorPayload:{title:"No Album Favorited",sub_title:"You can browse podcast and save it<br>Into your library",image:"https://assetsun.hungama.com/image/purches-event.svg",constant:"No Album Favorited",btnName:"Explore Now",imageClass:"no-podcast-img"}},{id:1,constant:"library_maintab_str_11",title:"Rented Movies",getPayload:{playlist:!1,download:!1,favourite:!1,stream:!1,follow:!1,favouriteType:[],downloadType:[],streamType:[],followType:[]},getErrorPayload:{title:"No Movies Rented",sub_title:"You can browse Movies, TV Shows and add it<br> into your watchlist",image:"https://assetsun.hungama.com/images/library-rentedmovies.svg",constant:"No Album Favorited",btnName:"Explore Now",imageClass:"no-podcast-img"}}]}],he=[{id:0,image:"https://assetsun.hungama.com/image/video-watch.svg",title:"Movies",sub_title:"Movies",btnClass:"btn-favourite",route:"./library/"+N.wi.LIBRARY_MY_MOVIES+"/"},{id:1,icon:"icon-TV button-icon-1",title:"TV show",sub_title:"TV show",btnClass:"btn-favourite",route:"./library/"+N.wi.LIBRARY_MY_TV_SHOW+"/"},{id:2,image:"https://assetsun.hungama.com/image/video-watch.svg",title:"Short Videos",sub_title:"Short Videos",btnClass:"btn-favourite",route:"./library/"+N.wi.LIBRARY_MY_SHORT_VIDEO+"/"}
1],Dt={getErrorPayload:{title:"No Movies, TV shows and Short<br>Movies has been added",sub_title:"You can browse Movies, TV Shows and add it<br>into your watchlist",image:"https://assetsun.hungama.com/images/library-watchlist.svg",constant:"No Movies, TV shows and Short<br>Movies has been added",btnName:"Explore Now",imageClass:"no-playlist-img"}},me={getErrorPayload:{title:"No Upcoming Events",sub_title:"Looks Like You Don\u2019t Have Any Upcoming Events",image:"https://assetsun.hungama.com/image/purches-event.svg",constant:"no event",btnName:"Explore Now",imageClass:"no-saved-video"}},be={getErrorPayload:{title:"No Movies Rented",sub_title:"You can browse Movies, TV Shows and add it<br> into your watchlist",image:"https://assetsun.hungama.com/images/library-rentedmovies.svg",constant:"No Movies Rented",btnName:"Explore Now",imageClass:"library-saved-video"}},fe={getErrorPayload:{title:"No videos has been saved",sub_title:"You can browse music videos and<br>short videos and save them",image:"https://assetsun.hungama.com/images/no-saved-video.svg",constant:"no videos has been saved",btnName:"Explore Now",imageClass:"no-saved-video"}};function ye(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",3),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onClickThreeDot(o)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.name)," ")}}let pt=(()=>{class l{constructor(){this.onTreeDotOptionChange=new t.vpe}ngOnInit(){}onClickThreeDot(e){if(c.l.bodyOverflowHidden(),e&&"Select All"==e.name&&this.editDetails&&this.editDetails.myMovieList&&this.editDetails.myMovieList.length){const i=(this.editDetails.itemList||[]).findIndex(n=>"Select All"===n.name);this.editDetails.itemList[i]={icon:"icon-Remove",name:"Unselect All",title:"Unselect All"}}if(e&&"Unselect All"==e.name&&this.editDetails&&this.editDetails.myMovieList&&this.editDetails.myMovieList.length){const i=(this.editDetails.itemList||[]).findIndex(n=>"Unselect All"===n.name);this.editDetails.itemList[i]={icon:"icon-Discover_unselect",name:"Select All",title:"Select All"}}this.onTreeDotOptionChange.emit(e)}}return l.\u0275fac=function(e){return new(e||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-library-edit-component"]],inputs:{editDetails:"editDetails"},outputs:{onTreeDotOptionChange:"onTreeDotOptionChange"},decls:3,vars:1,consts:[["id","music",1,""],[1,"music-player-popup"],[4,"ngFor","ngForOf"],[1,"mylab-contentbox-title",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,ye,4,3,"ng-container",2),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("ngForOf",i.editDetails.itemList))},directives:[S.sg],pipes:[P.X$],styles:['app-library-edit-component .music-player-popup{height:11vh;padding:9vw 7vw 0;display:flex;justify-content:space-between;position:fixed;bottom:0px;z-index:9999999}app-library-edit-component .cdropdown-popupbox{content:"";position:fixed;width:100%;height:100vh;background:rgba(0,0,0,.5);left:0;top:0;z-index:9999}app-library-edit-component .cdropdown{width:100%;height:auto;padding:7px 25px 0;border-top-left-radius:7vw;border-top-right-radius:7vw;border:1px solid #4d4c4c42;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(29px);-moz-backdrop-filter:blur(30px);background:#4644443b;position:absolute;z-index:99999;left:0px;bottom:0px}\n'],encapsulation:2}),l})();var _t=x(63202);function Te(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-three-dots",17),t.NdJ("optionDetails",function(n){return t.CHM(e),t.oxw().getThreeDotdata(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("optionDetail",e.optionDetail)}}function xe(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-library-edit-component",18),t.NdJ("onTreeDotOptionChange",function(n){return t.CHM(e),t.oxw().onEditThreeDotChange(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("editDetails",e.editDetail)}}function De(l,r){1&l&&t._UZ(0,"img",51)}function Ce(l,r){1&l&&t._UZ(0,"img",52)}function Se(l,r){if(1&l&&(t.TgZ(0,"a",48),t.YNc(1,De,1,0,"img",49),t.YNc(2,Ce,1,0,"img",50),t.qZA()),2&l){const e=t.oxw().$implicit;t.ekj("custom-rent-sign-label","Rent"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Q6J("ngIf","Rent"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Q6J("ngIf","Subscribe"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel))}}function we(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",53)(1,"input",54,55),t.NdJ("change",function(){return t.CHM(e),t.oxw(2).onCheckboxCheckEvent()})("ngModelChange",function(n){return t.CHM(e),t.oxw().$implicit.checked=n}),t.qZA(),t.TgZ(3,"label",56),t.NdJ("click",function(){return t.CHM(e),t.MAs(2).click()}),t.qZA()()}if(2&l){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.checked)}}function ke(l,r){if(1&l&&(t.TgZ(0,"span",57),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit,i=t.oxw();
1t.xp6(1),t.hij(" ",i.storageService.formatElapsedTimeMinandSecandhours(60*(null==e||null==e.data?null:e.data.duration)),"")}}function Ae(l,r){if(1&l&&(t.TgZ(0,"a",58),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(null==e||null==e.data?null:e.data.title)}}function Le(l,r){if(1&l&&(t.TgZ(0,"span",59),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(null==e||null==e.data?null:e.data.subtitle)}}function Pe(l,r){if(1&l&&(t.TgZ(0,"a",60),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(null==e||null==e.data||null==e.data.misc?null:e.data.misc.synopsis)}}function Ee(l,r){1&l&&t._UZ(0,"span",61)}function Oe(l,r){1&l&&(t.TgZ(0,"div",62),t._UZ(1,"span",63),t.qZA())}function Ze(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",64),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw().$implicit;return t.oxw().onThreeDotClick(o,a)}),t.TgZ(2,"a",22),t._UZ(3,"i"),t.TgZ(4,"span",65),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(3),t.Tol(null==e?null:e.icon),t.xp6(2),t.Oqu(t.lcZ(6,4,null==e?null:e.title))}}const Me=function(l){return{"background-image":l}};function Ie(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"li",19),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onMyVideoBucketClick(o)}),t._uU(2),t.TgZ(3,"div",20),t.YNc(4,Se,3,4,"a",21),t._UZ(5,"div"),t.TgZ(6,"a",22)(7,"img",23),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw().storageService.setDefaultImage(o.data,"image")}),t.qZA()(),t.ynx(8),t.TgZ(9,"div"),t.YNc(10,we,4,1,"div",24),t.qZA(),t.BQk(),t.TgZ(11,"div",25),t.YNc(12,ke,2,1,"span",26),t.TgZ(13,"div",27)(14,"div",28),t.YNc(15,Ae,2,1,"a",29),t.TgZ(16,"div",30),t.YNc(17,Le,2,1,"span",31),t.YNc(18,Pe,2,1,"a",32),t.qZA()(),t.TgZ(19,"a",33),t._UZ(20,"span",34),t.TgZ(21,"span"),t._uU(22,"Watch Now"),t.qZA()()()()(),t.TgZ(23,"div",35)(24,"div",36)(25,"div",37)(26,"a",38),t._uU(27),t.qZA(),t.TgZ(28,"div",39)(29,"a",22)(30,"div",40)(31,"button",41),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return n.stopPropagation(),s.clickThreedot(a)})("click",function(){const o=t.CHM(e).$implicit;return t.oxw().optionClik(null==o||null==o.data?null:o.data.title,!0)})("onClickedOutside",function(n){return t.CHM(e),t.oxw().onClickedOutside(n)}),t.YNc(32,Ee,1,0,"span",42),t.YNc(33,Oe,2,0,"div",43),t.TgZ(34,"div",44),t.YNc(35,Ze,7,6,"ng-container",15),t.qZA()()()()()()(),t.TgZ(36,"div",45),t._UZ(37,"a",22),t._uU(38),t.TgZ(39,"a",22),t._uU(40),t.qZA(),t._uU(41," \u2027 "),t.TgZ(42,"a",22),t._uU(43),t.qZA()()(),t.TgZ(44,"button",46),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return n.stopPropagation(),s.OnThreeDotClick(s.threeDotType.GLOBAL,a)}),t._UZ(45,"span",47),t.qZA()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw();t.xp6(1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(1),t.hij(" ",i.getSubcriptionType(e)," "),t.xp6(2),t.Q6J("ngIf","Play"!==(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Tol(i.ischeckboxShow?"":"ms-box-overlay"),t.xp6(2),t.ekj("opacity5",i.ischeckboxShow),t.s9C("alt",null==e||null==e.data?null:e.data.title),t.uIk("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(3),t.Q6J("ngIf",i.ischeckboxShow),t.xp6(1),t.ekj("opacity5",i.ischeckboxShow),t.Q6J("ngStyle",t.VKq(25,Me,"linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000),url("+(null==e||null==e.data?null:e.data.image)+")")),t.xp6(1),t.Q6J("ngIf",null==e||null==e.data?null:e.data.duration),t.xp6(3),t.Q6J("ngIf",null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data?null:e.data.subtitle),t.xp6(1),t.Q6J("ngIf",null==e||null==e.data||null==e.data.misc?null:e.data.misc.synopsis),t.xp6(9),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(5),t.Q6J("ngIf",!i.isVisibleRemove||i.listId!==e.data.id),t.xp6(1),t.Q6J("ngIf",i.isVisibleRemove&&i.listId===e.data.id),t.xp6(2),t.Q6J("ngForOf",i.treeDotOption.MY_MOVIES_THREE_DOTS),t.xp6(3),t.hij("",(null==e||null==e.data||null==e.data.misc?null:e.data.misc.attribute_censor_rating[0])||"0+"," \u2027 "),t.xp6(2),t.hij(" ",null==e||null==e.data||null==e.data.misc?null:e.data.misc.lang[0],""),t.xp6(3),t.hij(" ",null==e||null==e.data?null:e.data.genre[0],"")}}function Ne(l,r){if(1&l){const e=t.EpF();t.ynx(0),t._UZ(1,"div",66),t.TgZ(2,"div",67)(3,"div",68)(4,"a",69),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("remove")}),t._UZ(5,"span",70),t.qZA(),t.TgZ(6,"div",71),t._uU(7,"My Videos"),t.qZA(),t.TgZ(8,"p",72),t._uU(9,"Are You sure you want to delete?"),t.qZA(),t.TgZ(10,"div",73)(11,"a",74),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("remove")}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"a",75),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("ok")}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()(),t.BQk()}2&l&&(t.xp6(12),t.hij(" ",t.lcZ(13,2,"popup_str_75"),""),t.xp6(3),t.Oqu(t.lcZ(16,4,"discover_str_13")))}let Re=(()=>{class l{constructor(e,i,n,o,a,s,d,p,_){this.libraryService=e,this.router=i,this.translate=n,this.storageService=o,this.ssoStorageService=a,this.notificationService=s,this.miscService=d,this.eventTrackingService=p,this._location=_,this.myMovieList=[],this.isRemoveClick=!1,this.optionDetail={isOptionShow:!1,type:"",data:{},itemList:[]},this.ischeckboxShow=!1,this.treeDotOption=u.zl,this.breadcrumbs=[],this.isVisibleRemove=!1,this.editDetail={isEditIconShow:!0,itemList:[],myMovieList:[],isRemove:!1},this.threeDotType=u.jG}ngOnInit(){this.getLibraryMyMoviesList(),this.makeBreadCrumList()}onShowCheckBox(e){this.ischeckboxShow=e}optionClik(e,i){}clickThreedot(e){this.myMovieList.find(i=>i.data.id===e.data.id)&&(this.isVisibleRemove=this.listId!==e.data.id||!this.isVisibleRemove,this.listId=e.data.id)}onClickedOutside(e){this.isVisibleRemove=!1}onThreeDotClickEvent(e){if(!this.myMovieList||this.myMovieList.length){if(e&&"Select All"===e.name)(this.myMovieList||[]).map(i=>i.checked=!0);else if(e&&"Unselect All"===e.name)(this.myMovieList||[]).map(i=>i.checked=!1);else if(e&&"Remove"===e.name){const i=(this.myMovieList||[]).filter(n=>n.checked);if(i&&!i.length)return void c.l.toastNotification("MY Movies","Please select Atleast one item","TOP_RIGHT","","DANGER");this.isRemoveClick=!0}}else c.l.toastNotification("MY video list","Can't take Action","TOP_RIGHT","","DANGER")}
1OnThreeDotClick(e,i=null){if(c.l.bodyOverflowHiddenMobile(),this.editDetail&&!this.editDetail.isEditIconShow)return;const n=(u.$l||[]).map(a=>(a.title=this.instant(a.title),a));let o=!1;this.optionDetail={type:e||u.jG.GLOBAL,isOptionShow:o=!o,data:i||{},itemList:n}}getThreeDotdata(e){var i;if(c.l.bodyOverflowAuto(),this.optionDetail=e||{},this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.data,this.notificationService);this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.REMOVE_FROM_MY_LIST&&this.removeFromMyList(event,null==e?void 0:e.data),this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.DOWNLOAD&&(this.trackGoogleADsThreeDotsEvent(u.g6.DOWNLOAD),c.l.download(null==e?void 0:e.data,this.notificationService))}onback(){this._location.back()}onEditIconClick(){this.ischeckboxShow?(this.ischeckboxShow=!1,this.editDetail.isEditIconShow=!1,this.editDetail.isRemove=!1):this.ischeckboxShow=!0,(this.myMovieList||[]).map(i=>i.checked=!1),this.editDetail.isEditIconShow=!this.editDetail.isEditIconShow;const e=(u.ZP||[]).map(i=>(i.title=this.instant(i.title),i));this.editDetail.itemList=e,this.editDetail.myMovieList=this.myMovieList||[]}onEditThreeDotChange(e){if(!this.myMovieList||this.myMovieList.length){if(e&&"Select All"===e.name)(this.myMovieList||[]).map(i=>i.checked=!0);else if(e&&"Unselect All"===e.name)(this.myMovieList||[]).map(i=>i.checked=!1);else if(e&&"Remove"===e.name){const i=(this.myMovieList||[]).filter(n=>n.checked);if(i&&!i.length)return void c.l.toastNotification("MY TV SHOW","Can't take Action","TOP_RIGHT","","DANGER");this.editDetail.isRemove=!0,this.removeMyVideoList2(i)}}else c.l.toastNotification("MY TV SHOW","Can't take Action","TOP_RIGHT","","DANGER")}removeMyVideoList2(e){this.editDetail.isEditIconShow=!0,this.editDetail.isRemove=!1;const i=(e||[]).map(a=>a&&a.data&&a.data.id),n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,typeId:"4",action:!1,contentId:i}).subscribe(a=>{this.ischeckboxShow=!1,this.editDetail.isEditIconShow=!0,this.editDetail.isRemove=!0,this.getLibraryMyMoviesList(),c.l.toastNotification("MY video list","Removed successfully","TOP_RIGHT")})}removeClick(e){if(this.isRemoveClick=!1,this.ischeckboxShow=!1,"ok"===e){const i=(this.myMovieList||[]).filter(n=>n.checked);c.l.toastNotification("MY video list","Removed successfully","TOP_RIGHT"),this.removeMyVideoList(i)}}removeMyVideoList(e){const i=(e||[]).map(a=>a&&a.data&&a.data.id),n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,typeId:"4",action:!1,contentId:i}).subscribe(a=>{this.ischeckboxShow=!1,this.getLibraryMyMoviesList()})}getLibraryMyMoviesList(){const e=this.ssoStorageService.getUserDetails();this.libraryService.getLibraryMyMovies({userId:null==e?void 0:e.user_id,module:2,typeId:"4"}).subscribe(n=>{if(n&&n.data&&n.data.body&&n.data.body.rows&&n.data.body.rows.length)return this.myMovieList=n.data.body.rows||[],void this.setMovieRights();this.showErrorMEssage(Dt)})}showErrorMEssage(e){this.myMovieList=[],this.errorDetails=e.getErrorPayload}onMyVideoBucketClick(e){if(this.ischeckboxShow)return;const i=c.l.getCurrentItemConfig(e,e.data.id,null);i&&c.l.navigateToRelatedView(this.router,i)}instant(e){return this.translate.instant(e)}onThreeDotClick(e,i){if(e.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null==i?void 0:i.data,this.notificationService);e.name===u.g6.DOWNLOAD&&(this.trackGoogleADsThreeDotsEvent(u.g6.DOWNLOAD),c.l.download(null==i?void 0:i.data,this.notificationService)),e.name===u.g6.REMOVE_FROM_MY_LIST&&this.removeFromMyList(e,i)}removeFromMyList(e,i){var n,o;this.trackGoogleADsThreeDotsEvent(u.g6.REMOVE_FROM_MY_LIST);const a=this.ssoStorageService.getUserDetails(),s={contentId:null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.id,typeId:null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.type,action:!1,module:2};
1this.miscService.postBookmark(s,a.user_id).subscribe(d=>{var p;if(d)return i.isAddedToWatch=!1,c.l.trackAllDetailPageAddAndRemoveToPlayListEvent(e,this.eventTrackingService),void("success"===d.message&&(c.l.toastNotification(`${this.translate.instant("movie_str_4")}`,(null===(p=null==i?void 0:i.data)||void 0===p?void 0:p.title)+`${this.translate.instant("msg_remove_towatchlist")}`,"TOP_RIGHT"),this.getLibraryMyMoviesList()))})}setMovieRights(){(this.myMovieList||[]).forEach(e=>{var i;const n=null==e?void 0:e.data.misc,o=(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.id)||null;n&&n.movierights&&n.movierights.length&&(n.rentLabel=c.l.getVideoButtonLabel(n.movierights,o))})}onCheckboxCheckEvent(){const e=(this.myMovieList||[]).every(i=>1==i.checked);if(e){const i=(this.treeDotOption.LIBRARY_EDIT_THREE_DOT||[]).findIndex(n=>"Select All"===n.name);this.treeDotOption.LIBRARY_EDIT_THREE_DOT[i]={icon:"icon-Remove",name:"Unselect All",title:"Unselect All"}}if(!e){const i=(this.treeDotOption.LIBRARY_EDIT_THREE_DOT||[]).findIndex(n=>"Unselect All"===n.name);this.treeDotOption.LIBRARY_EDIT_THREE_DOT[i]={icon:"icon-Discover_unselect",name:"Select All",title:"Select All"}}}makeBreadCrumList(){this.breadcrumbs=(0,M.cloneDeep)(j.E.LIBRARY.MY_MOVIE),this.breadcrumbs.forEach(e=>{e.name=e.name.replace(/DYNAMIC_NAME/g,"Movies")}),this.breadcrumbs=[...this.breadcrumbs]}trackGoogleADsPlayPauseEvent(e,i){var n,o,a,s;let d;(null==e?void 0:e.isPlay)?(d={event:(null===(n=this.breadcrumbs[1])||void 0===n?void 0:n.name)||"N/A",action:i||"N/A",label:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])):(d={event:(null===(a=this.breadcrumbs[1])||void 0===a?void 0:a.name)||"N/A",action:"pause",label:(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]))}trackGoogleADsThreeDotsEvent(e){var i;let n;n={event:(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"N/A",action:"3dot_menu_song",label:e||"N/A"}}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}getSubcriptionType(e){var i,n,o;const a=(null===(n=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.misc)||void 0===n?void 0:n.movierights)||[];e.data.misc.rentLabel=c.l.getVideoButtonLabel(a,null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.id)}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(J.$),t.Y36(O.F0),t.Y36(P.sK),t.Y36(B.V),t.Y36(U.T),t.Y36(V.n),t.Y36(st.Y),t.Y36(W.f),t.Y36(S.Ye))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-my-movies"]],decls:19,vars:16,consts:[[3,"optionDetail","optionDetails",4,"ngIf"],[3,"editDetails","onTreeDotOptionChange",4,"ngIf"],[3,"footer"],["body-view",""],[1,"common-padding","position-relative","overflow-hidden","pt-15"],[1,"hide-sec",3,"isEdit","isLibrarySec","rowsPlayList","threeDotType","breadcrumbs","onTreeDotOptionChangeEvent","onShowCheckBox"],[1,"headpadd","flex1","mobile-header-sec"],[1,"clr1",3,"click"],[1,"icon-Back"],[1,"player-title","hg-albm-ttl","text-bold"],[1,"clr1"],[3,"click"],[1,"myPlaylist_player","flex2"],[1,"viewouter"],[1,"viewalltb"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"optionDetail","optionDetails"],[3,"editDetails","onTreeDotOptionChange"],[1,"my-movies-list",3,"title","click"],[1,"hg_item_image_wrapper","hg-trendingMv-wrpr"],["class","rent-sign-label cursor-pointer",3,"custom-rent-sign-label",4,"ngIf"],[1,"cursor-pointer"],["loading","lazy",1,"hg_item_image",3,"alt","error"],["class","form-group",4,"ngIf"],[1,"hover-item-box","trendingMv-hvr-bx","hide-sec",3,"ngStyle"],["class","mv-time",4,"ngIf"],[1,"hover-box-inner"],[1,"hvr-item-dsc"],["class","clr1 cursor-pointer",4,"ngIf"],[1,"hvrble-bx-dsc"],["class","clr2",4,"ngIf"],["class","clr2 hg-albm-ttl cursor-pointer","style","white-space: break-spaces; display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;",4,"ngIf"],[1,"watchMv-now","clr1","cursor-pointer"],[1,"icon-play_all"],[1,"hg_item_description"],[1,"overflow-hidden"],[2,"display","flex","justify-content","space-between"],[1,"hg_albm_name","hg-albm-ttl","fleft","max-width-145"],[1,"threedot-desktop-menu"],[1,"like-option","movei-sub-treedot"],["ngbDropdown","","container","body","appClickOutside","",3,"click","onClickedOutside"],["class","icon-Options text-white fright font-16 threeDotIcon","ngbDropdownToggle","",4,"ngIf"],["ngbDropdownToggle","","class","close-btn",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",1,"dropdownc","movie-3-popup"],[1,"hg_albm_owner","hg-albm-ttl"],[1,"btn-38","threedot-mobile-menu",3,"click"],[1,"icon-Options"],[1,"rent-sign-label","cursor-pointer"],["class","custom-rent","loading","lazy","src","../../../../assets/hungama-icons/icons/movie_rent.svg",4,"ngIf"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_gold.svg","class","subscribe-content-img subscribe-logo",4,"ngIf"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_rent.svg",1,"custom-rent"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_gold.svg",1,"subscribe-content-img","subscribe-logo"],[1,"form-group"],["type","checkbox",3,"ngModel","change","ngModelChange"],["checkboxClick",""],["for","videolangmusiclang-",3,"click"],[1,"mv-time"],[1,"clr1","cursor-pointer"],[1,"clr2"],[1,"clr2","hg-albm-ttl","cursor-pointer",2,"white-space","break-spaces","display","-webkit-box","-webkit-line-clamp","2","-webkit-box-orient","vertical","overflow","hidden","text-overflow","ellipsis"],["ngbDropdownToggle","",1,"icon-Options","text-white","fright","font-16","threeDotIcon"],["ngbDropdownToggle","",1,"close-btn"],[1,"icon-Remove","f-12","text-white","fright","font-16",2,"to
1p","0","right","0"],["ngbDropdownItem","",3,"click"],[1,"tv-dotp-txt"],[1,"trans"],[1,"vlangpopup","logout-popup"],[1,"poppad","poppad-reset"],[1,"closepop","cursor-pointer",3,"click"],[1,"icon-Remove"],[1,"cmlang"],[1,"cmlangsel"],[1,"d-flex","justify-content-center"],[1,"button-transparent","mr-5","w-100","cursor-pointer",3,"click"],[1,"button-blue","w-100","cursor-pointer",3,"click"]],template:function(e,i){1&e&&(t.YNc(0,Te,1,1,"app-three-dots",0),t.YNc(1,xe,1,1,"app-library-edit-component",1),t.TgZ(2,"base-view",2),t.ynx(3,3),t.TgZ(4,"div",4)(5,"app-breadcrumbs",5),t.NdJ("onTreeDotOptionChangeEvent",function(o){return i.onThreeDotClickEvent(o)})("onShowCheckBox",function(o){return i.onShowCheckBox(o)}),t.qZA(),t.TgZ(6,"div",6)(7,"a",7),t.NdJ("click",function(){return i.onback()}),t._UZ(8,"span",8),t.qZA(),t.TgZ(9,"span",9),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"a",10)(13,"i",11),t.NdJ("click",function(){return i.onEditIconClick()}),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"ul",14),t.YNc(17,Ie,46,27,"ng-container",15),t.qZA()()()(),t.BQk(),t.qZA(),t.YNc(18,Ne,17,6,"ng-container",16)),2&e&&(t.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),t.xp6(1),t.Q6J("ngIf",!i.editDetail.isEditIconShow&&!i.editDetail.isRemove),t.xp6(1),t.Q6J("footer",!0),t.xp6(3),t.Q6J("isEdit",!0)("isLibrarySec",!0)("rowsPlayList",i.myMovieList)("threeDotType","LIBRARY_EDIT_THREE_DOT")("breadcrumbs",i.breadcrumbs),t.xp6(5),t.Oqu(t.lcZ(11,14,"library_video_str_10")),t.xp6(3),t.Tol(i.ischeckboxShow?"icon-Remove":"icon-Edit-Profile"),t.xp6(4),t.Q6J("ngForOf",i.myMovieList),t.xp6(1),t.Q6J("ngIf",i.isRemoveClick))},directives:[S.O5,rt.w,pt,K.K,z.n,S.sg,Q.u,C.Wl,C.JJ,C.On,S.PC,k.jt,_t._,k.iD,k.Vi,k.TH],pipes:[P.X$],styles:['@import"https://assetsun.hungama.com/css/library-form-group.css";@import"https://assetsun.hungama.com/css/view-all.css";app-my-movies .max-width-145{max-width:145px}app-my-movies .form-group{position:absolute;left:0;right:-114px;top:8px;display:flex;justify-content:center}app-my-movies .movei-sub-treedot{bottom:0;padding:0;margin-top:3px;position:relative}app-my-movies .movei-sub-treedot button{z-index:0!important}app-my-movies .close-btn{margin-top:-6px;width:24px;height:24px;background-color:#191919;justify-content:center;align-items:center;border-radius:50%;display:flex}.mobile-header-sec{display:none!important}@media only screen and (max-width: 1023px){.common-padding{padding:0!important}.viewalltb li.my-movies-list{background-color:#0006;padding:2.5vw 2vw;display:flex;width:100%;margin:0}.viewalltb li.my-movies-list:nth-child(odd){background-color:#181818}.viewalltb li.my-movies-list .hg_item_image{width:90px;height:129px;position:relative}.viewalltb li.my-movies-list .hg-trendingMv-wrpr{height:auto;padding:0;width:28%}.viewalltb li.my-movies-list .hg_item_description{width:61%;margin-top:0;padding-left:1vw}.viewalltb li.my-movies-list .form-group{left:53%;top:0;right:0}.btn-38 span{font-size:18px!important}app-my-movies .max-width-145{max-width:auto;font-size:4.55vw;color:#fff;margin-bottom:1vw;line-height:5.5vw;font-weight:700}.myPlaylist_player.flex2{padding-top:17vw}.mobile-header-sec{display:flex!important}.headpadd{display:flex;justify-content:space-between;-webkit-justify-content:space-between;align-items:center;padding:5.5vw 7vw;position:fixed;z-index:99;width:100%;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}.headpadd .hg-albm-ttl{font-size:16px;color:#fff;max-width:200px;overflow:hidden;text-overflow:ellipsis;width:97%;display:block;white-space:nowrap;font-weight:700;align-content:center;justify-content:center;display:flex}.headpadd .icon-Edit-Profile,.headpadd .icon-Back{font-size:18px}}\n'],encapsulation:2}),l})();function qe(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-three-dots",17),t.NdJ("optionDetails",function(n){return t.CHM(e),t.oxw().getThreeDotdata(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("optionDetail",e.optionDetail)}}function Ye(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-library-edit-component",18),t.NdJ("onTreeDotOptionChange",function(n){return t.CHM(e),t.oxw().onEditThreeDotChange(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("editDetails",e.editDetail)}}function Ue(l,r){1&l&&t._UZ(0,"img",37)}function Fe(l,r){1&l&&t._UZ(0,"img",38)}function Ge(l,r){if(1&l&&(t.TgZ(0,"a",34),t.YNc(1,Ue,1,0,"img",35),t.YNc(2,Fe,1,0,"img",36),t.qZA()),2&l){const e=t.oxw().$implicit;t.ekj("custom-rent-sign-label","Rent"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Q6J("ngIf","Rent"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Q6J("ngIf","Subscribe"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel))}}function He(l,r){1&l&&t._UZ(0,"span",45)}function Je(l,r){1&l&&(t.TgZ(0,"div",46),t._UZ(1,"span",47),t.qZA())}function Be(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",48),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw(2).$implicit;return t.oxw().onThreeDotClick(o,a)}),t.TgZ(2,"a",22),t._UZ(3,"i"),t.TgZ(4,"span",49),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(3),t.Tol(null==e?null:e.icon),t.xp6(2),t.Oqu(t.lcZ(6,4,null==e?null:e.title))}}function Qe(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",39)(1,"a",22)(2,"div",40),t._UZ(3,"span"),t.TgZ(4,"button",41),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw().$implicit,a=t.oxw();return n.stopPropagation(),a.clickThreedot(o)})("onClickedOutside",function(n){return t.CHM(e),t.oxw(2).onClickedOutside(n)}),t.YNc(5,He,1,0,"span",42),t.YNc(6,Je,2,0,"div",43),t.TgZ(7,"div",44),t.YNc(8,Be,7,6,"ng-container",15),t.qZA()()()()()}if(2&l){const e=t.oxw().$implicit,i=t.oxw();
1t.xp6(5),t.Q6J("ngIf",!i.isVisibleRemove||i.listId!==e.data.id),t.xp6(1),t.Q6J("ngIf",i.isVisibleRemove&&i.listId===e.data.id),t.xp6(2),t.Q6J("ngForOf",i.treeDotOption.MY_MOVIES_THREE_DOTS)}}function Ve(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",50)(1,"input",51,52),t.NdJ("change",function(){return t.CHM(e),t.oxw(2).onCheckboxCheckEvent()})("ngModelChange",function(n){return t.CHM(e),t.oxw().$implicit.checked=n}),t.qZA(),t.TgZ(3,"label",53),t.NdJ("click",function(){return t.CHM(e),t.MAs(2).click()}),t.qZA()()}if(2&l){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.checked)}}function $e(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"li",19),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onMyShortVideoBucket(o)}),t._uU(2),t.TgZ(3,"div",20),t.YNc(4,Ge,3,4,"a",21),t.TgZ(5,"a",22),t._UZ(6,"img",23),t.TgZ(7,"span",24),t._uU(8),t.qZA()(),t.TgZ(9,"div",25),t.YNc(10,Qe,9,3,"div",26),t.qZA(),t.YNc(11,Ve,4,1,"div",27),t.qZA(),t.TgZ(12,"div",28)(13,"div",29)(14,"a",30),t._uU(15),t.qZA(),t._UZ(16,"a"),t.qZA(),t.TgZ(17,"div",31)(18,"a",22),t._uU(19),t.qZA()()(),t.TgZ(20,"button",32),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return n.stopPropagation(),s.OnThreeDotClick(s.threeDotType.GLOBAL,a)}),t._UZ(21,"span",33),t.qZA()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw();t.xp6(1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(1),t.hij(" ",i.getSubcriptionType(e)," "),t.xp6(2),t.Q6J("ngIf","Play"!==(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.ekj("opacity5",i.ischeckboxShow),t.xp6(1),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(2),t.hij(" ",i.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," "),t.xp6(2),t.Q6J("ngIf",!i.ischeckboxShow),t.xp6(1),t.Q6J("ngIf",i.ischeckboxShow),t.xp6(4),t.hij(" ",null==e||null==e.data?null:e.data.title,""),t.xp6(4),t.Oqu(null==e?null:e.data.subtitle)}}function je(l,r){if(1&l){const e=t.EpF();t.ynx(0),t._UZ(1,"div",54),t.TgZ(2,"div",55)(3,"div",56)(4,"a",57),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("remove")}),t._UZ(5,"span",58),t.qZA(),t.TgZ(6,"div",59),t._uU(7,"My Tvshow"),t.qZA(),t.TgZ(8,"p",60),t._uU(9,"Are You sure you want to delete?"),t.qZA(),t.TgZ(10,"div",61)(11,"a",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("remove")}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"a",63),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("ok")}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()(),t.BQk()}2&l&&(t.xp6(12),t.hij(" ",t.lcZ(13,2,"popup_str_75"),""),t.xp6(3),t.Oqu(t.lcZ(16,4,"discover_str_13")))}let ze=(()=>{class l{constructor(e,i,n,o,a,s,d,p,_){this.libraryService=e,this.router=i,this.storageService=n,this.ssoStorageService=o,this.notificationService=a,this.miscService=s,this.eventTrackingService=d,this.translate=p,this._location=_,this.myShortListVideoList=[],this.ischeckboxShow=!1,this.treeDotOption=u.zl,this.isRemoveClick=!1,this.breadcrumbs=[],this.isVisibleRemove=!1,this.editDetail={isEditIconShow:!0,itemList:[],myMovieList:[],isRemove:!1},this.optionDetail={isOptionShow:!1,type:"",data:{},itemList:[]},this.threeDotType=u.jG,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.breadcrumb=this.storageService.getBreadcrumb()}ngOnInit(){this.getMyShortVideoList(),this.makeBreadCrumList()}getMyShortVideoList(){const e=this.ssoStorageService.getUserDetails();this.libraryService.getMyShortVideoDetail({userId:null==e?void 0:e.user_id,module:2,typeId:"93"}).subscribe(n=>{n&&n.data&&n.data.body&&n.data.body.rows&&(this.myShortListVideoList=n.data.body.rows)})}onMyShortVideoBucket(e){if(this.ischeckboxShow)return;const i=c.l.getCurrentItemConfig(e,e.data.id,null);i&&c.l.navigateToRelatedView(this.router,i)}onback(){this.router.navigate([this.breadcrumb.activePage]),this.storageService.setBreadcrumb(Object.assign(this.breadcrumb,{activeTab:"home"})),this.trackGoogleADsBackEvent()}clickThreedot(e){this.myShortListVideoList.find(i=>i.data.id===e.data.id)&&(this.isVisibleRemove=!this.isVisibleRemove,this.listId=e.data.id)}onClickedOutside(e){this.isVisibleRemove=!1}onThreeDotClick(e,i){var n,o;if(e.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null==i?void 0:i.data,this.notificationService);if(e.name===u.g6.DOWNLOAD&&(this.trackGoogleADsThreeDotsEvent(u.g6.DOWNLOAD),c.l.download(null==i?void 0:i.data,this.notificationService)),e.name===u.g6.REMOVE_FROM_MY_LIST){this.trackGoogleADsThreeDotsEvent(u.g6.REMOVE_FROM_MY_LIST);const a=this.ssoStorageService.getUserDetails(),s={contentId:null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.id,typeId:null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.type,action:!1,module:2};
1this.miscService.postBookmark(s,a.user_id).subscribe(d=>{var p;if(d)return i.isAddedToWatch=!1,c.l.trackAllDetailPageAddAndRemoveToPlayListEvent(e,this.eventTrackingService),void("success"===d.message&&(c.l.toastNotification(`${this.translate.instant("library_video_str_2")}`,(null===(p=null==i?void 0:i.data)||void 0===p?void 0:p.title)+`${this.translate.instant("msg_remove_towatchlist")}`,"TOP_RIGHT"),this.getMyShortVideoList()))})}}onMyTvShowBucketClick(e){if(this.ischeckboxShow)return;const i=c.l.getCurrentItemConfig(e,e.data.id,null);i&&c.l.navigateToRelatedView(this.router,i)}redirectToBack(){this.router.navigate(["/library"])}onShowCheckBox(e){this.ischeckboxShow=e}onThreeDotClickEvent(e){if(!this.myShortListVideoList||this.myShortListVideoList.length){if(e&&"Select All"===e.name)return this.trackGoogleADsThreeDotsEvent("Select All"),void(this.myShortListVideoList||[]).map(i=>i.checked=!0);if(e&&"Unselect All"===e.name)return this.trackGoogleADsThreeDotsEvent("Unselect All"),void(this.myShortListVideoList||[]).map(i=>i.checked=!1);if(e&&"Remove"===e.name){this.trackGoogleADsThreeDotsEvent("Remove");const i=(this.myShortListVideoList||[]).filter(n=>n.checked);if(i&&!i.length)return void c.l.toastNotification("MY video list","Please select Atleast one item","TOP_RIGHT","","DANGER");this.isRemoveClick=!0}}else c.l.toastNotification("MY Short list","Can't take Action","TOP_RIGHT","","DANGER")}removeClick(e){if(this.isRemoveClick=!1,this.ischeckboxShow=!1,"ok"===e){const i=(this.myShortListVideoList||[]).filter(n=>n.checked);c.l.toastNotification("MY video list","Removed suucesfully","TOP_RIGHT"),this.removeMyVideoList(i)}}instant(e){return this.translate.instant(e)}OnThreeDotClick(e,i=null){if(c.l.bodyOverflowHiddenMobile(),this.editDetail&&!this.editDetail.isEditIconShow)return;const n=(u.$l||[]).map(a=>(a.title=this.instant(a.title),a));let o=!1;this.optionDetail={type:e||u.jG.GLOBAL,isOptionShow:o=!o,data:i||{},itemList:n}}getThreeDotdata(e){var i,n,o,a,s;if(c.l.bodyOverflowAuto(),this.optionDetail=e||{},this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.data,this.notificationService);if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.REMOVE_FROM_MY_LIST){this.trackGoogleADsThreeDotsEvent(u.g6.REMOVE_FROM_MY_LIST);const d=this.ssoStorageService.getUserDetails(),p={contentId:null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||void 0===o?void 0:o.id,typeId:null===(s=null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.data)||void 0===s?void 0:s.type,action:!1,module:2};this.miscService.postBookmark(p,d.user_id).subscribe(_=>{var g,m;if(_)return e.data.isAddedToWatch=!1,void("success"===_.message&&(c.l.toastNotification(`${this.translate.instant("library_video_str_2")}`,(null===(m=null===(g=null==e?void 0:e.data)||void 0===g?void 0:g.data)||void 0===m?void 0:m.title)+`${this.translate.instant("msg_remove_towatchlist")}`,"TOP_RIGHT"),this.getMyShortVideoList()))})}this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.DOWNLOAD&&(this.trackGoogleADsThreeDotsEvent(u.g6.DOWNLOAD),c.l.download(null==e?void 0:e.data,this.notificationService))}onEditIconClick(){this.ischeckboxShow?(this.ischeckboxShow=!1,this.editDetail.isEditIconShow=!1,this.editDetail.isRemove=!1):this.ischeckboxShow=!0,(this.myShortListVideoList||[]).map(i=>i.checked=!1),this.editDetail.isEditIconShow=!this.editDetail.isEditIconShow;const e=(u.ZP||[]).map(i=>(i.title=this.instant(i.title),i));this.editDetail.itemList=e,this.editDetail.myMovieList=this.myShortListVideoList||[]}onEditThreeDotChange(e){if(!this.myShortListVideoList||this.myShortListVideoList.length){if(e&&"Select All"===e.name)(this.myShortListVideoList||[]).map(i=>i.checked=!0);else if(e&&"Unselect All"===e.name)(this.myShortListVideoList||[]).map(i=>i.checked=!1);else if(e&&"Remove"===e.name){const i=(this.myShortListVideoList||[]).filter(n=>n.checked);if(i&&!i.length)return void c.l.toastNotification("MY video list","Can't take Action","TOP_RIGHT","","DANGER");this.editDetail.isRemove=!0,this.removeMyVideoList2(i)}}else c.l.toastNotification("MY video list","Can't take Action","TOP_RIGHT","","DANGER")}removeMyVideoList2(e){const i=(e||[]).map(a=>a&&a.data&&a.data.id),n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,typeId:"93",action:!1,contentId:i}).subscribe(a=>{this.ischeckboxShow=!1,this.editDetail.isEditIconShow=!0,this.editDetail.isRemove=!0,this.getMyShortVideoList(),c.l.toastNotification("MY video list","Removed successfully","TOP_RIGHT")})}removeMyVideoList(e){const i=(e||[]).map(a=>a&&a.data&&a.data.id),n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,typeId:"93",action:!1,contentId:i}).subscribe(a=>{this.ischeckboxShow=!1,this.getMyShortVideoList()})}onCheckboxCheckEvent(){const e=(this.myShortListVideoList||[]).every(i=>1==i.checked);if(e){const i=(this.treeDotOption.LIBRARY_EDIT_THREE_DOT||[]).findIndex(n=>"Select All"===n.name);this.treeDotOption.LIBRARY_EDIT_THREE_DOT[i]={icon:"icon-Remove",name:"Unselect All",title:"Unselect All"}}if(!e){const i=(this.treeDotOption.LIBRARY_EDIT_THREE_DOT||[]).findIndex(n=>"Unselect All"===n.name);this.treeDotOption.LIBRARY_EDIT_THREE_DOT[i]={icon:"icon-Discover_unselect",name:"Select All",title:"Select All"}}}makeBreadCrumList(){this.breadcrumbs=(0,M.cloneDeep)(j.E.LIBRARY.MY_SHORT_VIDEO),this.breadcrumbs.forEac
1h(e=>{e.name=e.name.replace(/DYNAMIC_NAME/g,"Short Video")}),this.breadcrumbs=[...this.breadcrumbs]}trackGoogleADsPlayPauseEvent(e,i){var n,o,a,s;let d;(null==e?void 0:e.isPlay)?(d={event:(null===(n=this.breadcrumbs[1])||void 0===n?void 0:n.name)||"N/A",action:i||"N/A",label:(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])):(d={event:(null===(a=this.breadcrumbs[1])||void 0===a?void 0:a.name)||"N/A",action:"pause",label:(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.title)||"N/A"},this.trackEvent(d,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS]))}trackGoogleADsThreeDotsEvent(e){var i;let n;n={event:(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"N/A",action:"3dot_menu_song",label:e||"N/A"},this.trackEvent(n,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackGoogleADsBackEvent(){let e;e={event:this.breadcrumb.activePage||"N/A",action:"back"},this.trackEvent(e,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}getSubcriptionType(e){var i,n,o;const a=(null===(n=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.misc)||void 0===n?void 0:n.movierights)||[];e.data.misc.rentLabel=c.l.getVideoButtonLabel(a,null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.id)}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(J.$),t.Y36(O.F0),t.Y36(B.V),t.Y36(U.T),t.Y36(V.n),t.Y36(st.Y),t.Y36(W.f),t.Y36(P.sK),t.Y36(S.Ye))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-my-short-videos"]],decls:19,vars:16,consts:[[3,"optionDetail","optionDetails",4,"ngIf"],[3,"editDetails","onTreeDotOptionChange",4,"ngIf"],[3,"footer"],["body-view",""],[1,"common-padding","position-relative","overflow-hidden","pt-15"],[1,"hide-sec",3,"isEdit","isLibrarySec","rowsPlayList","threeDotType","breadcrumbs","onTreeDotOptionChangeEvent","onShowCheckBox"],[1,"headpadd","flex1","mobile-header-sec"],[1,"clr1",3,"click"],[1,"icon-Back"],[1,"player-title","hg-albm-ttl","text-bold"],[1,"clr1"],[3,"click"],[1,"myPlaylist_player","flex2"],[1,"viewouter"],[1,"viewalltb"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"optionDetail","optionDetails"],[3,"editDetails","onTreeDotOptionChange"],[3,"title","click"],[1,"hg_item_image_wrapper","most-popular-ms-vd"],["class","rent-sign-label cursor-pointer",3,"custom-rent-sign-label",4,"ngIf"],[1,"cursor-pointer"],["alt","",1,"hg_item_image",3,"src"],[1,"mv-time","most-ply-msc-tm","video-time-duration"],[1,"threedot-desktop-menu"],["class","ms-box-overlay",4,"ngIf"],["class","form-group",4,"ngIf"],[1,"hg_item_description"],[1,"overflow-hidden"],[1,"hg_albm_name","hg-albm-ttl","fleft","max-width-150"],[1,"hg_albm_views","hg-albm-ttl","view_box1"],[1,"btn-38","threedot-mobile-menu",3,"click"],[1,"icon-Options"],[1,"rent-sign-label","cursor-pointer"],["class","custom-rent","loading","lazy","src","../../../../assets/hungama-icons/icons/movie_rent.svg",4,"ngIf"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_gold.svg","class","subscribe-content-img subscribe-logo",4,"ngIf"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_rent.svg",1,"custom-rent"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_gold.svg",1,"subscribe-content-img","subscribe-logo"],[1,"ms-box-overlay"],[1,"like-option"],["ngbDropdown","","container","body","placement","bottom-right","appClickOutside","",3,"click","onClickedOutside"],["class","icon-Options","ngbDropdownToggle","",4,"ngIf"],["class","remove-icon-add","ngbDropdownToggle","",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",1,"dropdown","tv-3-popup"],["ngbDropdownToggle","",1,"icon-Options"],["ngbDropdownToggle","",1,"remove-icon-add"],[1,"icon-Remove","f-12"],["ngbDropdownItem","",3,"click"],[1,"tv-dotp-txt"],[1,"form-group"],["type","checkbox",3,"ngModel","change","ngModelChange"],["checkboxClick",""],["for","videolangmusiclang-",3,"click"],[1,"trans"],[1,"vlangpopup","logout-popup"],[1,"poppad","poppad-reset"],[1,"closepop","cursor-pointer",3,"click"],[1,"icon-Remove"],[1,"cmlang"],[1,"cmlangsel"],[1,"d-flex","justify-content-center"],[1,"button-transparent","mr-5","w-100","cursor-pointer",3,"click"],[1,"button-blue","w-100","cursor-pointer",3,"click"]],template:function(e,i){1&e&&(t.YNc(0,qe,1,1,"app-three-dots",0),t.YNc(1,Ye,1,1,"app-library-edit-component",1),t.TgZ(2,"base-view",2),t.ynx(3,3),t.TgZ(4,"div",4)(5,"app-breadcrumbs",5),t.NdJ("onTreeDotOptionChangeEvent",function(o){return i.onThreeDotClickEvent(o)})("onShowCheckBox",function(o){return i.onShowCheckBox(o)}),t.qZA(),t.TgZ(6,"div",6)(7,"a",7),t.NdJ("click",function(){return i.onback()}),t._UZ(8,"span",8),t.qZA(),t.TgZ(9,"span",9),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"a",10)(13,"i",11),t.NdJ("click",function(){return i.onEditIconClick()}),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"ul",14),t.YNc(17,$e,22,11,"ng-container",15),t.qZA()()()(),t.BQk(),t.qZA(),t.YNc(18,je,17,6,"ng-container",16)),2&e&&(t.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),t.xp6(1),t.Q6J("ngIf",!i.editDetail.isEditIconShow&&!i.editDetail.isRemove),t.xp6(1),t.Q6J("footer",!0),t.xp6(3),t.Q6J("isEdit",!0)("isLibrarySec",!0)("rowsPlayList",i.myShortListVideoList)("threeDotType","LIBRARY_EDIT_THREE_DOT")("breadcrumbs",i.breadcrumbs),t.xp6(5),t.Oqu(t.lcZ(11,14,"library_video_str_20")),t.xp6(3),t.Tol(i.ischeckboxShow?"icon-Remove":"icon-Edit-Profile"),t.xp6(4),t.Q6J("ngForOf",i.myShortListVideoList),t.xp6(1),t.Q6J("ngIf",i.isRemoveClick))},directives:[S.O5,rt.w,pt,K.K,z.n,S.sg,Q.u,k.jt,_t._,k.iD,k.Vi,k.TH,C.Wl,C.JJ,C.On],pipes:[P.X$],styles:['@import"https://assetsun.hungama.com/css/library-form-group.css";@import"https://assetsun.hungama.com/css/view-all.css";app-my-short-videos .max-width-150{max-width:156px}app-my-short-videos .video-control{display:flex;justify-content:space-between;position:absolute;bottom:0;width:100%}
1app-my-short-videos .form-group{display:block;padding:13px 8px}app-my-short-videos .video-time-duration{position:absolute;right:0;left:10px;top:auto;bottom:10px;width:42px;border-radius:5px}@media only screen and (max-width: 1023px){.common-padding{padding:0}.viewalltb li{display:flex;width:100%!important;padding:2.5vw 2vw;margin-bottom:0!important}.viewalltb li .most-popular-ms-vd{height:83px;width:45%;margin-right:10px}.viewalltb li .ms-box-overlay{display:none}.myPlaylist_player .viewalltb .hg_item_description{width:65%}app-my-short-videos .form-group{padding:0;float:right}.mobile-header-sec{display:flex!important}.headpadd{display:flex;justify-content:space-between;-webkit-justify-content:space-between;align-items:center;padding:5.5vw 7vw;position:fixed;z-index:99;width:100%;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}.headpadd .hg-albm-ttl{font-size:16px;color:#fff;max-width:200px;overflow:hidden;text-overflow:ellipsis;width:97%;display:block;white-space:nowrap;font-weight:700;align-content:center;justify-content:center;display:flex}.headpadd .icon-Edit-Profile,.headpadd .icon-Back{font-size:18px}.myPlaylist_player.flex2{padding-top:74px}.btn-38.threedot-mobile-menu span{font-size:18px}.viewalltb li:nth-child(even){background-color:#0006}.viewouter{background-color:#0006}}\n'],encapsulation:2}),l})();function We(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-three-dots",17),t.NdJ("optionDetails",function(n){return t.CHM(e),t.oxw().getThreeDotdata(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("optionDetail",e.optionDetail)}}function Ke(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-library-edit-component",18),t.NdJ("onTreeDotOptionChange",function(n){return t.CHM(e),t.oxw().onEditThreeDotChange(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("editDetails",e.editDetail)}}function Xe(l,r){1&l&&t._UZ(0,"img",45)}function ti(l,r){1&l&&t._UZ(0,"img",46)}function ei(l,r){if(1&l&&(t.TgZ(0,"a",42),t.YNc(1,Xe,1,0,"img",43),t.YNc(2,ti,1,0,"img",44),t.qZA()),2&l){const e=t.oxw().$implicit;t.ekj("custom-rent-sign-label","Rent"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Q6J("ngIf","Rent"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.Q6J("ngIf","Subscribe"===(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel))}}function ii(l,r){if(1&l&&(t.TgZ(0,"span",61),t._uU(1),t.qZA()),2&l){const e=t.oxw(2).$implicit,i=t.oxw();t.xp6(1),t.hij(" ",i.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," ")}}const Ct=function(l){return{"background-image":l}};function ni(l,r){if(1&l&&(t.TgZ(0,"div",47)(1,"div",48)(2,"div",49)(3,"div",50)(4,"div"),t.YNc(5,ii,2,1,"span",51),t.qZA()()()(),t.TgZ(6,"div",52)(7,"div",53)(8,"a",54),t._uU(9),t.qZA(),t.TgZ(10,"div",55)(11,"span",56),t._uU(12),t.qZA(),t.TgZ(13,"a",57),t._uU(14),t.qZA()()(),t.TgZ(15,"a",58),t._UZ(16,"span",25),t.TgZ(17,"span"),t._uU(18),t.ALo(19,"translate"),t.qZA()(),t.TgZ(20,"div",59)(21,"div",59)(22,"button"),t._UZ(23,"span",60),t.TgZ(24,"span",10),t._uU(25),t.ALo(26,"translate"),t.qZA()()()()()()),2&l){const e=t.oxw().$implicit;t.s9C("title",null==e||null==e.data?null:e.data.title),t.Q6J("ngStyle",t.VKq(13,Ct,"url("+(null==e||null==e.data?null:e.data.image)+")")),t.xp6(5),t.Q6J("ngIf",null==e||null==e.data?null:e.data.duration),t.xp6(1),t.Q6J("ngStyle",t.VKq(15,Ct,"linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000),url("+(null==e||null==e.data?null:e.data.image)+")")),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.subtitle),t.xp6(2),t.Oqu(null==e||null==e.data||null==e.data.misc?null:e.data.misc.description),t.xp6(4),t.Oqu(t.lcZ(19,9,"reward_str_114")),t.xp6(7),t.hij(" ",t.lcZ(26,11,"msg_added_towatchlist"),"")}}function oi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",62)(1,"input",63,64),t.NdJ("change",function(){return t.CHM(e),t.oxw(2).onCheckboxCheckEvent()})("ngModelChange",function(n){return t.CHM(e),t.oxw().$implicit.checked=n}),t.qZA(),t.TgZ(3,"label",65),t.NdJ("click",function(){return t.CHM(e),t.MAs(2).click()}),t.qZA()()}if(2&l){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngModel",e.checked)}}function li(l,r){1&l&&t._UZ(0,"span",66)}function ai(l,r){1&l&&(t.TgZ(0,"div",67),t._UZ(1,"span",68),t.qZA())}function si(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",69),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw().$implicit;return t.oxw().onThreeDotClick(o,a)}),t.TgZ(2,"a",22),t._UZ(3,"i"),t.TgZ(4,"span",70),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(3),t.Tol(null==e?null:e.icon),t.xp6(2),t.Oqu(t.lcZ(6,4,null==e?null:e.title))}}function ri(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"li",19),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onMyTvShowBucketClick(o)}),t._uU(2),t.TgZ(3,"div",20),t.YNc(4,ei,3,4,"a",21),t.TgZ(5,"a",22),t._UZ(6,"img",23),t.qZA(),t.TgZ(7,"a",24),t._UZ(8,"span",25),t.qZA(),t.YNc(9,ni,27,17,"div",26),t.YNc(10,oi,4,1,"div",27),t.qZA(),t.TgZ(11,"div",28)(12,"div",29)(13,"div",30)(14,"div",31)(15,"a",32),t._uU(16),t.qZA(),t.TgZ(17,"div",33)(18,"a",34)(19,"button",35),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return n.stopPropagation(),s.clickThreedot(a)})("onClickedOutside",function(n){return t.CHM(e),t.oxw().onClickedOutside(n)}),t.YNc(20,li,1,0,"span",36),t.YNc(21,ai,2,0,"div",37),t.TgZ(22,"div",38),t.YNc(23,si,7,6,"ng-container",15),t.qZA()()()()(),t.TgZ(24,"div",39)(25,"a",22),t._uU(26),t.qZA()()(),t.TgZ(27,"button",40),t.NdJ("click",function(n){const a=t.CHM(e).$implicit,s=t.oxw();return n.stopPropagation(),s.OnThreeDotClick(s.threeDotType.GLOBAL,a)}),t._UZ(28,"span",41),t.qZA()()()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw();
1t.xp6(1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(1),t.hij(" ",i.getSubcriptionType(e)," "),t.xp6(2),t.Q6J("ngIf","Play"!==(null==e||null==e.data||null==e.data.misc?null:e.data.misc.rentLabel)),t.xp6(1),t.ekj("opacity5",i.ischeckboxShow),t.xp6(1),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(3),t.Q6J("ngIf",!i.ischeckboxShow),t.xp6(1),t.Q6J("ngIf",i.ischeckboxShow),t.xp6(6),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(4),t.Q6J("ngIf",!i.isVisibleRemove||i.listId!==e.data.id),t.xp6(1),t.Q6J("ngIf",i.isVisibleRemove&&i.listId===e.data.id),t.xp6(2),t.Q6J("ngForOf",i.treeDotOption.MY_TV_SHOW_THREE_DOTS),t.xp6(3),t.Oqu(null==e?null:e.data.subtitle)}}function di(l,r){if(1&l){const e=t.EpF();t.ynx(0),t._UZ(1,"div",71),t.TgZ(2,"div",72)(3,"div",73)(4,"a",74),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("remove")}),t._UZ(5,"span",75),t.qZA(),t.TgZ(6,"div",76),t._uU(7,"My Tvshow"),t.qZA(),t.TgZ(8,"p",77),t._uU(9,"Are you sure you want to remove?"),t.qZA(),t.TgZ(10,"div",78)(11,"a",79),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("remove")}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"a",80),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeClick("ok")}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()(),t.BQk()}2&l&&(t.xp6(12),t.hij(" ",t.lcZ(13,2,"popup_str_75"),""),t.xp6(3),t.Oqu(t.lcZ(16,4,"discover_str_13")))}let ci=(()=>{class l{constructor(e,i,n,o,a,s,d,p){this.libraryService=e,this.router=i,this.storageService=n,this.ssoStorageService=o,this.eventTrackingService=a,this.notificationService=s,this._location=d,this.translate=p,this.myTvShowList=[],this.ischeckboxShow=!1,this.treeDotOption=u.zl,this.isRemoveClick=!1,this.breadcrumbs=[],this.isVisibleRemove=!1,this.editDetail={isEditIconShow:!0,itemList:[],myMovieList:[],isRemove:!1},this.optionDetail={isOptionShow:!1,type:"",data:{},itemList:[]},this.threeDotType=u.jG,this.breadcrumb=this.storageService.getBreadcrumb()}ngOnInit(){this.getMyShortVideoList(),this.makeBreadCrumList()}getMyShortVideoList(){const e=this.ssoStorageService.getUserDetails();this.libraryService.getMyTvShowDetails({userId:null==e?void 0:e.user_id,module:2,typeId:"96,97,98"}).subscribe(n=>{n&&n.data&&n.data.body&&n.data.body.rows&&(this.myTvShowList=n.data.body.rows)})}onMyTvShowBucketClick(e){if(this.ischeckboxShow)return;const i=c.l.getCurrentItemConfig(e,e.data.id,null);i&&c.l.navigateToRelatedView(this.router,i)}redirectToBack(){this.router.navigate(["/library"])}onShowCheckBox(e){this.ischeckboxShow=e}clickThreedot(e){this.myTvShowList.find(i=>i.data.id===e.data.id)&&(this.isVisibleRemove=this.listId!==e.data.id||!this.isVisibleRemove,this.listId=e.data.id)}onClickedOutside(e){this.isVisibleRemove=!1}onThreeDotClickEvent(e){if(this.isVisibleRemove=!1,!this.myTvShowList||this.myTvShowList.length){if(e&&"Select All"===e.name)return this.trackGoogleADsThreeDotsEvent("Select All"),void(this.myTvShowList||[]).map(i=>i.checked=!0);if(e&&"Unselect All"===e.name)return this.trackGoogleADsThreeDotsEvent("Unselect All"),void(this.myTvShowList||[]).map(i=>i.checked=!1);if(e&&"Remove"===e.name){this.trackGoogleADsThreeDotsEvent("Remove");const i=(this.myTvShowList||[]).filter(n=>n.checked);if(i&&!i.length)return void c.l.toastNotification("MY TV SHOW","Please select Atleast one item","TOP_RIGHT","","DANGER");this.isRemoveClick=!0}}else c.l.toastNotification("MY TV SHOW","Can't take Action","TOP_RIGHT","","DANGER")}instant(e){return this.translate.instant(e)}OnThreeDotClick(e,i=null){if(c.l.bodyOverflowHiddenMobile(),this.editDetail&&!this.editDetail.isEditIconShow)return;const n=(u.lt||[]).map(a=>(a.title=this.instant(a.title),a));let o=!1;this.optionDetail={type:e||u.jG.GLOBAL,isOptionShow:o=!o,data:i||{},itemList:n}}getThreeDotdata(e){var i,n,o;if(c.l.bodyOverflowAuto(),this.optionDetail=e||{},this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.data,this.notificationService);if(this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.REMOVE_FROM_MY_LIST){const a=this.ssoStorageService.getUserDetails(),s={userId:null==a?void 0:a.user_id,module:2,action:!1,contentId:[null===(o=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||void 0===o?void 0:o.id],typeId:"96,97,98"};this.libraryService.removeMyVideoList(s).subscribe(d=>{this.getMyShortVideoList()})}this.optionDetail&&this.optionDetail.selectedTab&&this.optionDetail.selectedTab.name===u.g6.DOWNLOAD&&(this.trackGoogleADsThreeDotsEvent(u.g6.DOWNLOAD),c.l.download(null==e?void 0:e.data,this.notificationService))}onback(){this._location.back()}onEditIconClick(){this.ischeckboxShow?(this.ischeckboxShow=!1,this.editDetail.isEditIconShow=!1,this.editDetail.isRemove=!1):this.ischeckboxShow=!0,(this.myTvShowList||[]).map(i=>i.checked=!1),this.editDetail.isEditIconShow=!this.editDetail.isEditIconShow;const e=(u.ZP||[]).map(i=>(i.title=this.instant(i.title),i));this.editDetail.itemList=e,this.editDetail.myMovieList=this.myTvShowList||[]}onEditThreeDotChange(e){if(!this.myTvShowList||this.myTvShowList.length){if(e&&"Select All"===e.name)(this.myTvShowList||[]).map(i=>i.checked=!0);else if(e&&"Unselect All"===e.name)(this.myTvShowList||[]).map(i=>i.checked=!1);else if(e&&"Remove"===e.name){const i=(this.myTvShowList||[]).filter(n=>n.checked);if(i&&!i.length)return void c.l.toastNotification("MY TV SHOW","Can't take Action","TOP_RIGHT","","DANGER");this.editDetail.isRemove=!0,this.removeMyVideoList2(i)}}else c.l.toastNotification("MY TV SHOW","Can't take Action","TOP_RIGHT","","DANGER")}removeMyVideoList2(e){this.editDetail.isEditIconShow=!0,this.editDetail.isRemove=!1;const i=(e||[]).map(a=>a&&a.data&&a.data.id),n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,typeId:"96,97,98",action:!1,contentId:i}).subscribe(a=>{this.ischeckboxShow=!1,this.editDetail.isEditIconShow=!0,this.editDetail.isRemove=!0,this.getMyShortVideoList(),c.l.toastNotification("MY video list","Removed successfully","TOP_RIGHT")})}removeClick(e){if(this.isRemoveClick=!1,this.ischeckboxShow=!1,"ok"===e){const i=(this.myTvShowList||[]).filter(n=>n.checked);c.l.toastNotification("MY video list","Removed suucesfully","TOP_RIGHT"),this.removeMyVideoList(i)}}removeMyVideoList(e){const i=(e||[]).map(a=>a&&a.data&&a.data.id),n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,action:!1,contentId:i,typeId:"96,97,98"}).subscribe(a=>{this.ischeckboxShow=!1,this.getMyShortVideoList()})}onThreeDotClick(e,i){if(e.name===u.g6.SHARE)return this.trackGoogleADsThreeDotsEvent(u.g6.SHARE),void c.l.share(null==i?void 0:i.data,this.notificationService);if(e.name===u.g6.DOWNLOAD&&(this.trackGoogleADsThreeDotsEvent(u.g6.DOWNLOAD),c.l.download(null==i?void 0:i.data,this.notificationService)),e.name===u.g6.REMOVE_FROM_MY_LIST){const n=this.ssoStorageService.getUserDetails();this.libraryService.removeMyVideoList({userId:null==n?void 0:n.user_id,module:2,action:!1,contentId:[i.data.id],typeId:"96,97,98"}).subscribe(a=>{this.getMyShortVideoList()})}}onCheckboxCheckEvent(){const e=(this.myTvShowList||[]).every(i=>1==i.checked);if(e){const i=(this.treeDotOption.LIBRARY_EDIT_THREE_DOT||[]).findIndex(n=>"Select All"===n.name);this.treeDotOption.LIBRARY_EDIT_THREE_DOT[i]={icon:"icon-Remove",name:"Unselect All",title:"Unselect All"}}if(!e){const i=(this.treeDotOption.LIBRARY_EDIT_THREE_DOT||[]).findIndex(n=>"Unselect All"===n.name);this.treeDotOption.LIBRARY_EDIT_THREE_DOT[i]={icon:"icon-Discover_unselect",name:"Select All",title:"Select All"}}}makeBreadCrumList(){this.breadcrumbs=(0,M.cloneDeep)(j.E.LIBRARY.MY_TV_SHOW),this.breadcrumbs.forEac
1h(e=>{e.name=e.name.replace(/DYNAMIC_NAME/g,"Tv Shows")}),this.breadcrumbs=[...this.breadcrumbs]}trackGoogleADsThreeDotsEvent(e){var i;let n;n={event:(null===(i=this.breadcrumbs[1])||void 0===i?void 0:i.name)||"N/A",action:"3dot_menu_song",label:e||"N/A"},this.trackEvent(n,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackGoogleADsBackEvent(){let e;e={event:this.breadcrumb.activePage||"N/A",action:"back"},this.trackEvent(e,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}getSubcriptionType(e){var i,n,o;const a=(null===(n=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.misc)||void 0===n?void 0:n.movierights)||[];e.data.misc.rentLabel=c.l.getVideoButtonLabel(a,null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.id)}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(J.$),t.Y36(O.F0),t.Y36(B.V),t.Y36(U.T),t.Y36(W.f),t.Y36(V.n),t.Y36(S.Ye),t.Y36(P.sK))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-my-tv-show"]],decls:19,vars:16,consts:[[3,"optionDetail","optionDetails",4,"ngIf"],[3,"editDetails","onTreeDotOptionChange",4,"ngIf"],[3,"footer"],["body-view",""],[1,"common-padding","position-relative","overflow-hidden","pt-15"],[1,"hide-sec",3,"isEdit","isLibrarySec","rowsPlayList","threeDotType","breadcrumbs","onTreeDotOptionChangeEvent","onShowCheckBox"],[1,"headpadd","flex1","mobile-header-sec"],[1,"clr1",3,"click"],[1,"icon-Back"],[1,"player-title","hg-albm-ttl","text-bold"],[1,"clr1"],[3,"click"],[1,"myPlaylist_player","flex2"],[1,"viewouter"],[1,"viewalltb"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"optionDetail","optionDetails"],[3,"editDetails","onTreeDotOptionChange"],[1,"my-movies-list",3,"title","click"],[1,"hg_item_image_wrapper","comedy-show"],["class","rent-sign-label cursor-pointer",3,"custom-rent-sign-label",4,"ngIf"],[1,"cursor-pointer"],["alt","recomnd",1,"hg_item_image","tv-img",3,"src"],[1,"mstMscPly","cursor-pointer"],[1,"icon-play"],["class","hover-item-box mst-pplr-mscVd-bx",3,"ngStyle","title",4,"ngIf"],["class","form-group",4,"ngIf"],[1,"hg_item_description","tv-desc",2,"display","flex"],[1,"like-option","tv-contnt",2,"color","white"],[1,"desc-sec-inner"],[1,"overflow-hidden","display-flex"],[1,"hg_albm_name","hg-albm-ttl","fleft"],[1,"threedot-desktop-menu"],[1,"tv-three-dot"],["ngbDropdown","","container","body","placement","bottom-right","appClickOutside","",3,"click","onClickedOutside"],["class","icon-Options","ngbDropdownToggle","",4,"ngIf"],["class","remove-icon-add","ngbDropdownToggle","",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",1,"dropdown","tv-3-popup"],[1,"hg_albm_owner","hg-albm-ttl"],[1,"btn-38","threedot-mobile-menu",3,"click"],[1,"icon-Options"],[1,"rent-sign-label","cursor-pointer"],["class","custom-rent","loading","lazy","src","../../../../assets/hungama-icons/icons/movie_rent.svg",4,"ngIf"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_gold.svg","class","subscribe-content-img subscribe-logo",4,"ngIf"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_rent.svg",1,"custom-rent"],["loading","lazy","src","../../../../assets/hungama-icons/icons/movie_gold.svg",1,"subscribe-content-img","subscribe-logo"],[1,"hover-item-box","mst-pplr-mscVd-bx",3,"ngStyle","title"],[1,"hover-box-inner"],[1,"like-option","hg-org-watch",2,"height","100%","padding-top","0"],[1,"video-control"],["class","mv-time most-ply-msc-tm",4,"ngIf"],[1,"hover-box-inner",3,"ngStyle"],[1,"hvr-item-dsc"],[1,"clr1","cursor-pointer"],[1,"hvrble-bx-dsc"],[1,"clr2"],[1,"clr2","hg-albm-ttl","cursor-pointer"],[1,"watchMv-now","clr1","cursor-pointer"],[1,"like-option","hg-org-watch"],[1,"icon-tick","clr1"],[1,"mv-time","most-ply-msc-tm"],[1,"form-group"],["type","checkbox",3,"ngModel","change","ngModelChange"],["checkboxClick",""],["for","videolangmusiclang-",3,"click"],["ngbDropdownToggle","",1,"icon-Options"],["ngbDropdownToggle","",1,"remove-icon-add"],[1,"icon-Remove","f-12"],["ngbDropdownItem","",3,"click"],[1,"tv-dotp-txt"],[1,"trans"],[1,"vlangpopup","logout-popup"],[1,"poppad","poppad-reset"],[1,"closepop","cursor-pointer",3,"click"],[1,"icon-Remove"],[1,"cmlang"],[1,"cmlangsel"],[1,"d-flex","justify-content-center"],[1,"button-transparent","mr-5","w-100","cursor-pointer",3,"click"],[1,"button-blue","w-100","cursor-pointer",3,"click"]],template:function(e,i){1&e&&(t.YNc(0,We,1,1,"app-three-dots",0),t.YNc(1,Ke,1,1,"app-library-edit-component",1),t.TgZ(2,"base-view",2),t.ynx(3,3),t.TgZ(4,"div",4)(5,"app-breadcrumbs",5),t.NdJ("onTreeDotOptionChangeEvent",function(o){return i.onThreeDotClickEvent(o)})("onShowCheckBox",function(o){return i.onShowCheckBox(o)}),t.qZA(),t.TgZ(6,"div",6)(7,"a",7),t.NdJ("click",function(){return i.onback()}),t._UZ(8,"span",8),t.qZA(),t.TgZ(9,"span",9),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"a",10)(13,"i",11),t.NdJ("click",function(){return i.onEditIconClick()}),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"ul",14),t.YNc(17,ri,29,13,"ng-container",15),t.qZA()()()(),t.BQk(),t.qZA(),t.YNc(18,di,17,6,"ng-container",16)),2&e&&(t.Q6J("ngIf",i.optionDetail&&i.optionDetail.isOptionShow),t.xp6(1),t.Q6J("ngIf",!i.editDetail.isEditIconShow&&!i.editDetail.isRemove),t.xp6(1),t.Q6J("footer",!0),t.xp6(3),t.Q6J("isEdit",!0)("isLibrarySec",!0)("rowsPlayList",i.myTvShowList)("threeDotType","LIBRARY_EDIT_THREE_DOT")("breadcrumbs",i.breadcrumbs),t.xp6(5),t.Oqu(t.lcZ(11,14,"library_video_str_22")),t.xp6(3),t.Tol(i.ischeckboxShow?"icon-Remove":"icon-Edit-Profile"),t.xp6(4),t.Q6J("ngForOf",i.myTvShowList),t.xp6(1),t.Q6J("ngIf",i.isRemoveClick))},directives:[S.O5,rt.w,pt,K.K,z.n,S.sg,Q.u,S.PC,C.Wl,C.JJ,C.On,k.jt,_t._,k.iD,k.Vi,k.TH],pipes:[P.X$],styles:['@import"https://assetsun.hungama.com/css/library-form-group.css";@import"https://assetsun.hungama.com/css/view-all.css";app-my-tv-show .video-control{display:flex;justify-content:space-between;position:absolute;bottom:0;width:100%}
1app-my-tv-show .form-group{display:block;padding:13px 8px}app-my-tv-show .display-flex{display:flex;justify-content:space-between}.mobile-header-sec{display:none!important}.desc-sec-inner{width:100%}@media only screen and (max-width: 1023px){.common-padding{padding:0!important}.viewalltb li.my-movies-list{background-color:#0006;padding:2.5vw 2vw;display:flex;width:100%;margin:0}.comedy-show{padding:0;margin-right:10px;width:28%;height:83px}.myPlaylist_player .viewalltb .hg_item_description.tv-desc{width:68%;margin:0}.like-option.tv-contnt{padding:0;position:relative;width:100%;bottom:unset;align-items:baseline}.mstMscPly{display:none}app-my-tv-show .form-group{float:right;padding:0}.viewalltb li.my-movies-list:nth-child(odd){background-color:#181818}.myPlaylist_player.flex2{padding-top:17vw}.mobile-header-sec{display:flex!important}.headpadd{display:flex;justify-content:space-between;-webkit-justify-content:space-between;align-items:center;padding:5.5vw 7vw;position:fixed;z-index:99;width:100%;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}.headpadd .hg-albm-ttl{font-size:16px;color:#fff;max-width:200px;overflow:hidden;text-overflow:ellipsis;width:97%;display:block;white-space:nowrap;font-weight:700;align-content:center;justify-content:center;display:flex}.headpadd .icon-Edit-Profile,.headpadd .icon-Back{font-size:18px}.btn-38 span{font-size:18px!important}.viewalltb li.my-movies-list .hg_item_image.tv-img{width:90px;height:100%!important;position:relative}.desc-sec-inner{width:85%}}\n'],encapsulation:2}),l})();var ui=x(64722),gt=x(47787),pi=x(16838),_i=x(98839);let gi=(()=>{class l{constructor(e){this.ssoStorageService=e,this.createPlaylistPopupSubmit=new t.vpe}ngOnInit(){this.userDetails=this.ssoStorageService.getUserDetails()}onCreatePlayList(){c.l.bodyOverflowAuto(),this.createPlaylistPopupSubmit.emit(!0)}ngAfterViewInit(){c.l.bodyOverflowHidden()}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(U.T))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-create-playlist-popup"]],inputs:{createPlayListForm:"createPlayListForm"},outputs:{createPlaylistPopupSubmit:"createPlaylistPopupSubmit"},decls:30,vars:15,consts:[[1,"trans"],[1,"vlangpopup","create-playlist",2,"position","fixed"],[1,"poppad"],[3,"formGroup"],[1,"minimize-popup",3,"click"],[1,"minimize-popup-border"],[1,"closepop","cursor-pointer","hide-sec",3,"click"],[1,"icon-Remove"],[1,"section-title","text-center"],[1,"popup-content","mt-50"],[1,"textbox-label"],["type","text","formControlName","name","value","Viva Nation Playlist 1","maxlength","100",1,"textbox"],[1,"list-item"],[1,"list-item-content","w-auto"],[1,"list-item-right"],[1,"switch"],["type","checkbox","formControlName","public"],[1,"slider","round"],[1,"p-paybtnbox","pt-30"],[1,"button-blue","d-block","cursor-pointer",3,"click"],[1,"icon-Add-to-Queue","button-icon"]],template:function(e,i){1&e&&(t._UZ(0,"div",0),t.TgZ(1,"div",1)(2,"div",2)(3,"form",3)(4,"div",4),t.NdJ("click",function(){return i.createPlaylistPopupSubmit.emit(!1)}),t._UZ(5,"div",5),t.qZA(),t.TgZ(6,"a",6),t.NdJ("click",function(){return i.createPlaylistPopupSubmit.emit(!1)}),t._UZ(7,"span",7),t.qZA(),t.TgZ(8,"div",8),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",9)(12,"p",10),t._uU(13),t.ALo(14,"translate"),t.qZA(),t._UZ(15,"input",11),t.TgZ(16,"div",12)(17,"div",13)(18,"p"),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.TgZ(21,"div",14)(22,"label",15),t._UZ(23,"input",16)(24,"span",17),t.qZA()()(),t.TgZ(25,"div",18)(26,"a",19),t.NdJ("click",function(){return i.onCreatePlayList()}),t._UZ(27,"i",20),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()()()),2&e&&(t.xp6(3),t.Q6J("formGroup",i.createPlayListForm),t.xp6(6),t.Oqu(t.lcZ(10,7,"library_playlist_str_5")),t.xp6(4),t.Oqu(t.lcZ(14,9,"library_playlist_str_6")),t.xp6(6),t.Oqu(t.lcZ(20,11,"library_str_9")),t.xp6(7),t.ekj("btn-gold-bg",null==i.userDetails?null:i.userDetails.isGold),t.xp6(2),t.hij(" ",t.lcZ(29,13,"popup_str_56")," "))},directives:[C._Y,C.JL,C.sg,C.Fj,C.JJ,C.u,C.nD,C.Wl],pipes:[P.X$],styles:["@media only screen and (max-width: 1023px){.create-playlist[_ngcontent-%COMP%]   .section-title.text-center[_ngcontent-%COMP%]{margin:2vw 0 0;text-align:left!important}.create-playlist[_ngcontent-%COMP%]   .popup-content.mt-50[_ngcontent-%COMP%]{padding:3vw 0 0!important}.create-playlist[_ngcontent-%COMP%]   .popup-content[_ngcontent-%COMP%]   .textbox-label[_ngcontent-%COMP%]{margin-bottom:2vw;margin-top:0}.create-playlist[_ngcontent-%COMP%]   .popup-content[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{margin-top:9px!important}.create-playlist[_ngcontent-%COMP%]   .list-item[_ngcontent-%COMP%]{border-bottom:.2px solid #707070;padding:20px 0;margin:5px 0 25px}}"]}),l})();function vi(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"a",17),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().getSelectedHeaderTabData(null==o?null:o.id,o)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw();
1t.xp6(1),t.ekj("library-type-selected",e.id==(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)),t.xp6(1),t.Oqu(t.lcZ(3,3,e.title))}}function hi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"a",18),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().getSelectedSubHeaderData(o.id,o)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const e=r.$implicit,i=t.oxw();t.uIk("aria-selected",e.id==(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab["tab"+(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)])),t.xp6(1),t.hij("",t.lcZ(2,2,e.constant)," ")}}function mi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().createPlayList()}),t.ALo(1,"translate"),t.TgZ(2,"a",20),t._UZ(3,"i",21),t.qZA(),t.TgZ(4,"div",22)(5,"h3",23),t._uU(6),t.ALo(7,"translate"),t.qZA()()()}2&l&&(t.s9C("title",t.lcZ(1,2,"library_playlist_str_5")),t.xp6(6),t.hij("",t.lcZ(7,4,"library_playlist_str_5")," "))}function bi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().onFollowMorePodcast()}),t.ALo(1,"translate"),t.TgZ(2,"a",24),t._UZ(3,"img",25),t.qZA(),t.TgZ(4,"div",22)(5,"h3",23),t._uU(6),t.ALo(7,"translate"),t.qZA()()()}2&l&&(t.s9C("title",t.lcZ(1,2,"podcast_str_13")),t.xp6(6),t.Oqu(t.lcZ(7,4,"podcast_str_13")))}function fi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return n.onClickWatchList(n.favoritedSongsDetail)}),t.TgZ(1,"a",27),t._UZ(2,"i",28),t.qZA(),t.TgZ(3,"div",22)(4,"h3",23),t._uU(5),t.qZA(),t.TgZ(6,"p")(7,"a",29),t._uU(8),t.qZA()()()()}if(2&l){const e=t.oxw();t.s9C("title",null==e.favoritedSongsDetail?null:e.favoritedSongsDetail.title),t.xp6(5),t.Oqu(null==e.favoritedSongsDetail?null:e.favoritedSongsDetail.title),t.xp6(3),t.Oqu(null==e.favoritedSongsDetail?null:e.favoritedSongsDetail.sub_title)}}function yi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"span",46),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw(2).$implicit;return t.oxw(2).onFavoriteClick(o),n.stopPropagation()}),t.qZA()}}function Ti(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"span",47),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw(2).$implicit;return t.oxw(2).followUnfollow(o),n.stopPropagation()}),t.qZA()}}function xi(l,r){1&l&&t._UZ(0,"span",51)}function Di(l,r){1&l&&t._UZ(0,"i",55)}function Ci(l,r){if(1&l&&t._UZ(0,"i"),2&l){const e=t.oxw().$implicit;t.Tol(null==e?null:e.icon)}}function Si(l,r){1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij("\xa0",t.lcZ(2,1,"Favourited"),""))}function wi(l,r){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.hij("\xa0",t.lcZ(2,1,null==e?null:e.title),"")}}function ki(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",52),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw(3).$implicit;return t.oxw(2).onThreeDotClick(o,a)}),t.TgZ(2,"a",29),t.YNc(3,Di,1,0,"i",53),t.YNc(4,Ci,1,3,"i",54),t.YNc(5,Si,3,3,"span",13),t.YNc(6,wi,3,3,"span",13),t.qZA()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(3),t.Q6J("ngIf","icon-like"===e.icon),t.xp6(1),t.Q6J("ngIf","icon-like"!==e.icon),t.xp6(1),t.Q6J("ngIf","icon-like"===e.icon),t.xp6(1),t.Q6J("ngIf","icon-like"!==e.icon)}}function Ai(l,r){if(1&l&&(t.TgZ(0,"button",48),t.NdJ("click",function(i){return i.stopPropagation()}),t.YNc(1,xi,1,0,"span",49),t.TgZ(2,"div",50),t.YNc(3,ki,7,4,"ng-container",7),t.qZA()()),2&l){const e=t.oxw(2).$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",99999!==(null==e||null==e.data?null:e.data.player_type)&&34!==(null==e||null==e.data?null:e.data.type)&&110!==(null==e||null==e.data?null:e.data.player_type)&&109!==(null==e||null==e.data?null:e.data.player_type)),t.xp6(2),t.Q6J("ngForOf",i.treeDotOption.BUCKET_LAYOUT_THREE_DOTS)}}function Li(l,r){1&l&&t._UZ(0,"i",58)}function Pi(l,r){if(1&l&&t._UZ(0,"i"),2&l){const e=t.oxw().$implicit;t.Tol(null==e?null:e.icon)}}function Ei(l,r){1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij("\xa0",t.lcZ(2,1,"following"),""))}function Oi(l,r){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.hij("\xa0",t.lcZ(2,1,null==e?null:e.title),"")}}function Zi(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",52),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw(3).$implicit;return t.oxw(2).onThreeDotClick(o,a)}),t.TgZ(2,"a",29),t.YNc(3,Li,1,0,"i",57),t.YNc(4,Pi,1,3,"i",54),t.YNc(5,Ei,3,3,"span",13),t.YNc(6,Oi,3,3,"span",13),t.qZA()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(3),t.Q6J("ngIf","icon-invite"===e.icon),t.xp6(1),t.Q6J("ngIf","icon-invite"!==e.icon),t.xp6(1),t.Q6J("ngIf","icon-invite"===e.icon),t.xp6(1),t.Q6J("ngIf","icon-invite"!==e.icon)}}function Mi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"button",56),t.NdJ("click",function(n){return n.stopPropagation()})("openChange",function(n){return t.CHM(e),t.oxw(2).$implicit.dropdownOpen=n}),t._UZ(1,"span",51),t.TgZ(2,"div",50),t.YNc(3,Zi,7,4,"ng-container",7),t.qZA()()}if(2&l){const e=t.oxw(4);t.xp6(3),t.Q6J("ngForOf",e.treeDotOption.BUCKET_LAYOUT_THREE_DOTS_PODCAST)}}function Ii(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",38)(1,"a",29)(2,"button",39),t.NdJ("click",function(n){t.CHM(e);const o=t.oxw().$implicit;return t.oxw(2).onClickBucket(o),n.stopPropagation()}),t._UZ(3,"span",40),t.qZA(),t.TgZ(4,"div",41)(5,"button"),t.YNc(6,yi,
11,0,"span",42),t.YNc(7,Ti,1,0,"span",43),t.qZA(),t.YNc(8,Ai,4,2,"button",44),t.YNc(9,Mi,4,1,"button",45),t.qZA()()()}if(2&l){const e=t.oxw().$implicit;t.xp6(3),t.Gre("icon-",e.isPlay?"pause":"play",""),t.xp6(3),t.Q6J("ngIf",55555===(null==e||null==e.data?null:e.data.player_type)||19===(null==e||null==e.data?null:e.data.player_type)||1===(null==e||null==e.data?null:e.data.player_type)),t.xp6(1),t.Q6J("ngIf",109===(null==e||null==e.data?null:e.data.player_type)||110===(null==e||null==e.data?null:e.data.player_type)),t.xp6(1),t.Q6J("ngIf",109!==(null==e||null==e.data?null:e.data.player_type)||110!==(null==e||null==e.data?null:e.data.player_type)),t.xp6(1),t.Q6J("ngIf",109===(null==e||null==e.data?null:e.data.player_type)||110===(null==e||null==e.data?null:e.data.player_type))}}function Ni(l,r){if(1&l&&(t.TgZ(0,"a",29),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",null==e||null==e.data?null:e.data.subtitle," ")}}function Ri(l,r){if(1&l&&(t.TgZ(0,"a",29),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.hij("",e.data.songCount?e.data.songCount:"0"," Ep")}}function qi(l,r){if(1&l&&(t.TgZ(0,"a",59),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",(null==e||null==e.data?null:e.data.sub_title_prefix)||(null==e||null==e.data?null:e.data.subtitle)," ")}}function Yi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",31),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onClickBucket(o)}),t.TgZ(1,"div",32)(2,"img",33),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw(2).storageService.setDefaultImageWithMusicSymbol(o.data,"image")}),t.qZA(),t.YNc(3,Ii,10,7,"div",34),t.qZA(),t.TgZ(4,"div",22)(5,"h3",35),t._uU(6),t.qZA(),t.TgZ(7,"p"),t.YNc(8,Ni,2,1,"a",36),t.YNc(9,Ri,2,1,"a",36),t.YNc(10,qi,2,1,"a",37),t.qZA()()()}if(2&l){const e=r.$implicit,i=t.oxw(2);t.MGl("title","",null==e||null==e.data?null:e.data.title," "),t.xp6(2),t.ekj("default-music-icon-image",!(null!=e&&null!=e.data&&e.data.image)),t.s9C("alt",null==e||null==e.data?null:e.data.title),t.uIk("src",(null==e||null==e.data?null:e.data.image)||"https://assetsun.hungama.com/images/no_run_music.png",t.LSH),t.xp6(1),t.Q6J("ngIf",0!=(null==e||null==e.data?null:e.data.type)),t.xp6(3),t.hij(" ",null==e||null==e.data?null:e.data.title,""),t.xp6(2),t.Q6J("ngIf",1==(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)||2==(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)),t.xp6(1),t.Q6J("ngIf",3==(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)&&e.data.songCount),t.xp6(1),t.Q6J("ngIf",null==e||null==e.data?null:e.data.subtitle)}}function Ui(l,r){if(1&l&&(t.ynx(0),t.YNc(1,Yi,11,10,"div",30),t.BQk()),2&l){const e=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",e.layoutBodyData)}}const vt=function(l){return{"background-image":l}};function Fi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",61),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onClickBucket(o)}),t.TgZ(1,"div",62)(2,"img",63),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw(2).storageService.setDefaultImage(o.data,"image")}),t.qZA(),t.TgZ(3,"h3",64),t._uU(4),t.qZA(),t.TgZ(5,"p",65),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",66),t._uU(9),t.qZA()(),t._UZ(10,"div",67),t.qZA()}if(2&l){const e=r.$implicit;t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(2),t.s9C("alt",null==e||null==e.data?null:e.data.title),t.uIk("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(2),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(2),t.hij(" ",t.lcZ(7,7,"user_str_3"),""),t.xp6(3),t.hij(" ",null==e||null==e.data||null==e.data.misc?null:e.data.misc.f_fav_count," "),t.xp6(1),t.Q6J("ngStyle",t.VKq(9,vt,"url("+(null==e||null==e.data?null:e.data.image)+")"))}}function Gi(l,r){if(1&l&&(t.ynx(0),t.YNc(1,Fi,11,11,"div",60),t.BQk()),2&l){const e=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",e.layoutBodyData)}}function Hi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"a",78),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().$implicit;return t.oxw(2).onClickBucket(n)}),t._uU(1),t.qZA()}if(2&l){const e=t.oxw().$implicit;t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(1),t.Oqu(null==e||null==e.data?null:e.data.title)}}function Ji(l,r){if(1&l&&(t.TgZ(0,"div",79),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",null==e||null==e.data||null==e.data.misc?null:e.data.misc.lang," ")}}function Bi(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"li")(2,"div",69)(3,"div",70),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onClickBucket(o)}),t.TgZ(4,"a",29)(5,"button",71),t._UZ(6,"span"),t.qZA()()(),t._UZ(7,"div",72),t.TgZ(8,"a",29),t._UZ(9,"img",73),t.qZA()(),t.TgZ(10,"div",74),t.YNc(11,Hi,2,2,"a",75),t.TgZ(12,"div",76)(13,"a",29),t._uU(14),t.ALo(15,"translate"),t.qZA()(),t.YNc(16,Ji,2,1,"div",77),t.qZA()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw(2);t.xp6(3),t.ekj("isPlayed",e.played),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(3),t.Gre("icon-",e.isPlay&&(null==e||null==e.data?null:e.data.title)==(null==i.allselectedTab.selectedRadio||null==i.allselectedTab.selectedRadio.data?null:i.allselectedTab.selectedRadio.data.title)?"pause":"play",""),t.xp6(3),t.s9C("src",null==e||null==e.data?null:e.data.image,t.LSH),t.s9C("alt",null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data?null:e.data.title),t.xp6(3),t.AsE("",(null==e||null==e.data||null==e.data.misc?null:e.data.misc.fav_count)||0," ",t.lcZ(15,12,"discover_str_23")," "),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data||null==e.data.misc?null:e.data.misc.lang)}}function Qi(l,r){if(1&l&&(t.ynx(0),t.TgZ(1,"ul",68),t.YNc(2,Bi,17,14,"ng-container",7),t.qZA(),t.BQk()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngForOf",e.layoutBodyData)}}function Vi(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"img",83),t.NdJ("error",function(){t.CHM(e);const n=t.oxw(2).$implicit;return t.oxw(2).storageService.setDefaultImage(n,"image")}),t.qZA()}if(2&l){const e=t.oxw(2).$implicit;t.s9C("src",null==e?null:e.image,t.LSH)}}function $i(l,r){if(1&l&&t._UZ(0,"i"),2&l){const e=t.oxw(2).$implicit;t.Tol(null==e?null:e.icon)}}function ji(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",81),t.NdJ("click",function(){t.CHM(e);const n=t.oxw().$implicit;return t.oxw(2).onClickWatchList(n)}),t.TgZ(1,"a"),t.YNc(2,Vi,1,1,"img",82),t.YNc(3,$i,1,3,"i",54),t.qZA(),t.TgZ(4,"div",22)(5,"h3",23),t._uU(6),t.qZA(),t.TgZ(7,"p")(8,"a",29),t._uU(9),t.qZA()()()()}if(2&l){const e=t.oxw().$implicit;t.s9C("title",null==e?null:e.title),t.xp6(1),t.Gre("playlist-button ",null==e?null:e.btnClass,""),t.xp6(1),t.Q6J("ngIf",e.image),t.xp6(1),t.Q6J("ngIf",e.icon),t.xp6(3),t.Oqu(null==e?null:e.title),t.xp6(3),t.Oqu(null==e?null:e.sub_title)}}function zi(l,r){if(1&l&&(t.ynx(0),t.YNc(1,ji,10,8,"div",80),t.BQk()),2&l){const e=r.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function Wi(l,r){if(1&l&&(t.ynx(0),t._UZ(1,"div"),t.YNc(2,zi,2,1,"ng-container",7),t.BQk()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngForOf",e.watchList)}}function Ki(l,r){if(1&l&&(t.TgZ(0,"div",106),t._UZ(1,"span",107),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.Udp("width",null==e?null:e.playedDurationPer,"%")}}function Xi(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",52),t.NdJ("click",function(){const o=t.CHM(e).$implicit,a=t.oxw().$implicit;return t.oxw(2).onThreeDotClick(o,a)}),t.TgZ(2,"a",29),t._UZ(3,"i"),t.TgZ(4,"span"),t._uU(5),t.ALo(6,"translate"),t.qZA()()(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(3),t.Tol(null==e?null:e.icon),t.xp6(2),t.hij("\xa0",t.lcZ(6,4,null==e?null:e.title),"\xa0")}}function tn(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"li",87)(2,"div",88),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onClickBucket(o)}),t.TgZ(3,"a",29)(4,"img",89),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw(2).storageService.setDefaultImage(o.data,"image")}),t.qZA(),t.TgZ(5,"span",90),t._uU(6),t.qZA()(),t.TgZ(7,"a",91),t._UZ(8,"span",92),t.qZA(),t.TgZ(9,"div",93)(10,"div",94)(11,"div",95)(12,"span",96),t._uU(13),t.qZA()()()()(),t.YNc(14,Ki,2,2,"div",97),t.TgZ(15,"div",98)(16,"div",99)(17,"div",100)(18,"a",101),t._uU(19),t.qZA()(),t.TgZ(20,"div",102)(21,"a",29),t._uU(22),t.qZA()()(),t.TgZ(23,"div",103)(24,"a",104),t._UZ(25,"i",105),t.TgZ(26,"div",50),t.YNc(27,Xi,7,6,"ng-container",7),t.qZA()()()()(),t.BQk()}if(2&l){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.s9C("title",null==e||null==e.data?null:e.data.title),t.xp6(3),t.s9C("alt",null==e||null==e.data?null:e.data.title),t.uIk("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(2),t.hij(" ",i.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)," "),t.xp6(4),t.Q6J("ngStyle",t.VKq(10,vt,"linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000),url("+(null==e||null==e.data?null:e.data.image)+")")),t.xp6(3),t.Oqu(i.storageService.formatElapsedTime(null==e||null==e.data?null:e.data.duration)),t.xp6(1),t.Q6J("ngIf",e.playedDurationPer),t.xp6(5),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.subtitle),t.xp6(5),t.Q6J("ngForOf",i.treeDotOption.MY_MOVIES_THREE_DOTS)}}function en(l,r){if(1&l&&(t.ynx(0),t.TgZ(1,"div",84)(2,"div",85)(3,"ul",86),t.YNc(4,tn,28,12,"ng-container",7),t.qZA()()(),t.BQk()),2&l){const e=t.oxw();
1t.xp6(4),t.Q6J("ngForOf",e.saveVideoList)}}function nn(l,r){if(1&l&&(t.TgZ(0,"a",122),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(null==e||null==e.data?null:e.data.title)}}function on(l,r){if(1&l&&(t.TgZ(0,"span",123),t._uU(1),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(null==e||null==e.data?null:e.data.subtitle)}}function ln(l,r){if(1&l&&(t.TgZ(0,"div",124),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"date"),t.qZA()),2&l){const e=t.oxw().$implicit;t.xp6(1),t.AsE("",t.lcZ(2,2,"active_till")," - ",t.xi3(3,4,null==e?null:e.end_date,"d MMMM, y"),"")}}function an(l,r){1&l&&(t.TgZ(0,"div",125),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&l&&(t.xp6(1),t.hij("",t.lcZ(2,1,"general_setting_str_50")," "))}function sn(l,r){if(1&l){const e=t.EpF();t.ynx(0),t.TgZ(1,"li"),t.ynx(2),t.TgZ(3,"div",111),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onClickBucket(o)}),t.TgZ(4,"a",29)(5,"img",89),t.NdJ("error",function(){const o=t.CHM(e).$implicit;return t.oxw(2).storageService.setDefaultImage(o.data,"image")}),t.qZA()(),t.TgZ(6,"div",112)(7,"div",113),t._UZ(8,"div",95),t.qZA()(),t.TgZ(9,"div",114)(10,"div",113)(11,"div",115),t.YNc(12,nn,2,1,"a",116),t.TgZ(13,"div",117),t.YNc(14,on,2,1,"span",118),t.qZA()(),t._UZ(15,"div",95),t.qZA()()(),t.TgZ(16,"div",99)(17,"a",119),t._uU(18),t.qZA(),t.TgZ(19,"div",76)(20,"a",29),t._uU(21),t.qZA()(),t.YNc(22,ln,4,7,"div",120),t.YNc(23,an,3,3,"div",121),t.qZA(),t.BQk(),t.qZA(),t.BQk()}if(2&l){const e=r.$implicit;t.xp6(5),t.s9C("alt",null==e||null==e.data?null:e.data.title),t.uIk("src",null==e||null==e.data?null:e.data.image,t.LSH),t.xp6(4),t.Q6J("ngStyle",t.VKq(9,vt,"linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000),url("+(null==e||null==e.data?null:e.data.image)+")")),t.xp6(3),t.Q6J("ngIf",null==e||null==e.data?null:e.data.title),t.xp6(2),t.Q6J("ngIf",null==e||null==e.data?null:e.data.subtitle),t.xp6(4),t.Oqu(null==e||null==e.data?null:e.data.title),t.xp6(3),t.Oqu(null==e||null==e.data?null:e.data.subtitle),t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.expired)),t.xp6(1),t.Q6J("ngIf",null==e?null:e.expired)}}function rn(l,r){if(1&l&&(t.ynx(0),t.TgZ(1,"div",108)(2,"div",109)(3,"div",110)(4,"ul",86),t.YNc(5,sn,24,11,"ng-container",7),t.qZA()()()(),t.BQk()),2&l){const e=t.oxw();
1t.xp6(5),t.Q6J("ngForOf",e.rentedMovieList)}}function dn(l,r){if(1&l&&t._UZ(0,"img",132),2&l){const e=t.oxw(2);t.Tol(null==e.errorDetails?null:e.errorDetails.imageClass),t.s9C("src",null==e.errorDetails?null:e.errorDetails.image,t.LSH)}}function cn(l,r){if(1&l&&t._UZ(0,"h3",133),2&l){const e=t.oxw(2);t.Q6J("innerHtml",null==e.errorDetails?null:e.errorDetails.title,t.oJD)}}function un(l,r){if(1&l&&t._UZ(0,"p",134),2&l){const e=t.oxw(2);t.Q6J("innerHtml",null==e.errorDetails?null:e.errorDetails.sub_title,t.oJD)}}function pn(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"div",135)(1,"a",136),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return n.onExploreNow(null==n.errorDetails?null:n.errorDetails.sub_title)}),t._uU(2),t.qZA()()}if(2&l){const e=t.oxw(2);t.xp6(1),t.ekj("btn-gold-bg",null==e.userDetails?null:e.userDetails.isGold),t.xp6(1),t.hij(" ",null==e.errorDetails?null:e.errorDetails.btnName," ")}}function _n(l,r){if(1&l&&(t.TgZ(0,"div",126)(1,"div",127),t.YNc(2,dn,1,4,"img",128),t.YNc(3,cn,1,1,"h3",129),t.YNc(4,un,1,1,"p",130),t.YNc(5,pn,3,3,"div",131),t.qZA()()),2&l){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",null==e.errorDetails?null:e.errorDetails.image),t.xp6(1),t.Q6J("ngIf",null==e.errorDetails?null:e.errorDetails.title),t.xp6(1),t.Q6J("ngIf",null==e.errorDetails?null:e.errorDetails.sub_title),t.xp6(1),t.Q6J("ngIf",null==e.errorDetails?null:e.errorDetails.btnName)}}function gn(l,r){if(1&l){const e=t.EpF();t.TgZ(0,"app-create-playlist-popup",137),t.NdJ("createPlaylistPopupSubmit",function(n){return t.CHM(e),t.oxw().onCreatePlayList(n)}),t.qZA()}if(2&l){const e=t.oxw();t.Q6J("createPlayListForm",e.createPlayListForm)}}const vn=[{path:"",component:(()=>{class l{constructor(e,i,n,o,a,s,d,p,_,g,m,T,f){this.listenService=e,this.libraryService=i,this.ssoStorageService=n,this.notificationpopupService=o,this.eventTrackingService=a,this.miscService=s,this.router=d,this.storageService=p,this.translate=_,this.fb=g,this.playerService=m,this.nextinqueueService=T,this.footerCatalogService=f,this.treeDotOption=u.zl,this.allHeaderTab=ve,this.watchList=he,this.allselectedTab={headerActiveTab:0,subHeaderActiveTab:{tab0:0,tab1:0,tab2:0},selectedRadio:null},this.optionDetail={isOptionShow:!1,itemList:[]},this.saveVideoList=[],this.rentedMovieList=[],this.subType="All",this.list_constant="",this.list_title="",this.musicStreaming=!1,this.breadcrumb=""}ngOnInit(){this.getFirebaseRemoteConfig().then(()=>{"false"==this.storageService.getMusicStreamingStatus()?(this.musicStreaming=!1,this.allHeaderTab.forEach(i=>{i.subHeaders&&(i.subHeaders=i.subHeaders.filter(n=>"Playlists"!==n.title&&"Albums"!==n.title&&"Artists"!==n.title&&"Radio"!==n.title&&"Save Videos"!==n.title))})):this.musicStreaming=!0,this.getAllFavoriteRecords(),this.initPlaylistForm(),this.device_name=localStorage.getItem("DeviceType"),this.userDetails=this.ssoStorageService.getUserDetails(),this.getLibrary(),this.musicStreaming&&this.onFavoritedSongs(),this.playerService.globalPlayPause.subscribe(i=>{i&&"FROM_MINI_PLAYER"==i.type&&c.l.addPlayButtonStatusDetails(this.layoutBodyData,i)}),this.createLinkForCanonicalURL()}).catch(e=>{})}getFirebaseRemoteConfig(){return new Promise((e,i)=>{const n=(0,gt.sN)();n.settings.minimumFetchIntervalMillis=0,(0,gt.xS)(n).then(()=>{this.setDynamicMenuConfig(n),e()}).catch(o=>{i(o)})})}setDynamicMenuConfig(e){const i=(0,gt.KF)(e,b.F5.MUSIC_STREAMING_ENABLED);sessionStorage.setItem(b.F5.MUSIC_STREAMING_ENABLED,i)}initPlaylistForm(){this.createPlayListForm=this.fb.group({name:["Viva Nation Playlist1",C.kI.required],public:[!0,C.kI.required]})}getSelectedHeaderTabData(e,i){this.list_constant=i.constant,this.trackGoogleMainTabEvent(i.constant),this.allselectedTab.headerActiveTab=e,this.getLibrary()}ngAfterViewInit(){this.hideExploreSection()}hideExploreSection(){var e,i;return"All"==this.list_title||"Playlists"==this.list_title||"Albums"==this.list_title||"Podcasts"==this.list_title||"Artists"==this.list_title||"Radios"==this.list_title||"Radio"==this.list_title||0==(null===(e=this.allselectedTab)||void 0===e?void 0:e.headerActiveTab)&&0==(null===(i=this.allselectedTab)||void 0===i?void 0:i.subHeaderActiveTab.tab0)}getSelectedSubHeaderData(e,i){let n=JSON.parse(JSON.stringify(i));this.list_title=n.title,this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]=e,this.trackGoogleMainTabEvent(null==i?void 0:i.title),this.getLibrary()}getLibrary(){const e=(this.allHeaderTab||[]).find(i=>i.id===this.allselectedTab.headerActiveTab);if(!e||0!=e.id)return e&&1==e.id?(this.errorDetails={},void this.getVideoLibraryDetail(e)):e&&2==e.id?(this.errorDetails={},void this.getPurchaseDetails(e)):void(this.errorDetails={});this.getMusicTabDetails(e)}setAllLibraryDetailInUserDetail(e,i){var n,o;e&&(null==e?void 0:e.length)&&(i="All"==i?"songs":"Save Videos"==i?"save_videos":i);let a=this.ssoStorageService.getUserDetails();const d={["number_of_favorited_"+(i||"")]:i==(null==e?void 0:e.length)},_={["favourited_"+i+"_list"]:"songs"==i?0:e||[]},g={favourited_song_list_count:null===(n=this.favoritedSongsDetail)||void 0===n?void 0:n.count,favourited_song_list:null===(o=this.favoritedSongsDetail)||void 0===o?void 0:o.favSonglist};this.ssoStorageService.updateUserDetails(Object.assign(Object.assign(Object.assign(Object.assign({},a),d),_),g));let m=this.ssoStorageService.getUserDetails();this.eventTrackingService.preDefinedUserAttributes(m)}getMusicTabDetails(e){var i,n,o,a,s,d,p,_,g,m,T,f;const v=(e&&e.subHeaders||[]).find(y=>y.id===this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]);if(""!=(null==v?void 0:v.getPayload)&&null!=(null==v?void 0:v.getPayload)&&null!=(null==v?void 0:v.getPayload)&&1==(null===(i=null==v?void 0:v.getPayload)||void 0===i?void 0:i.playlist)&&1==(null===(n=null==v?void 0:v.getPayload)||void 0===n?void 0:n.favourite)&&0==(null===(o=null==v?void 0:v.getPayload)||void 0===o?void 0:o.follow)){const y={userId:null===(a=this.userDetails)||void 0===a?void 0:a.user_id,module:1,typeId:"99999,55555"};let h=[];const D=[this.libraryService.getLibraryMyMovies(y)];D.push(this.listenService.getPlaylist(null===(s=this.userDetails)||void 0===s?void 0:s.user_id
1)),(0,xt.D)(D).subscribe(E=>{if(E&&E.length){const A=E[0]||[],L=E[1]||[];return A&&A.data.body.rows&&A.data.body.rows.length&&A.data.body.rows.forEach(w=>{h.push(w)}),L&&L.data&&L.data.length&&L.data.forEach(w=>{h.push(w)}),h&&h.length&&(this.layoutBodyData=h.filter(w=>21!=w.data.type&&4!=w.data.type&&15!=w.data.type&&22!=w.data.type),(this.layoutBodyData||[]).forEach(w=>{})),void(this.errorDetails={})}this.showErrorMEssage(v)})}else if(""!=(null==v?void 0:v.getPayload)&&null!=(null==v?void 0:v.getPayload)&&null!=(null==v?void 0:v.getPayload)&&1==(null===(d=null==v?void 0:v.getPayload)||void 0===d?void 0:d.favourite)&&(null===(p=null==v?void 0:v.getPayload)||void 0===p?void 0:p.favouriteType.length)&&1==(null===(_=null==v?void 0:v.getPayload)||void 0===_?void 0:_.favouriteType.length)&&0==(null===(g=null==v?void 0:v.getPayload)||void 0===g?void 0:g.follow)&&0==(null===(m=null==v?void 0:v.getPayload)||void 0===m?void 0:m.playlist)){this.layoutBodyData=[];const y={userId:null===(T=this.userDetails)||void 0===T?void 0:T.user_id,module:1,typeId:"1"};this.libraryService.getLibraryMyMovies(y).subscribe(h=>{if(h&&h.data.body.rows&&h.data.body.rows.length)return this.setAllLibraryDetailInUserDetail(h.data.body.rows,v.title),this.layoutBodyData=h.data.body.rows.filter(D=>21!=D.data.type&&4!=D.data.type&&15!=D.data.type&&22!=D.data.type),void(this.errorDetails={});this.showErrorMEssage(v)})}else this.listenService.getlibraryDetails(null===(f=this.userDetails)||void 0===f?void 0:f.user_id,null==v?void 0:v.getPayload).subscribe(y=>{if(y&&y.rows&&y.rows.length)return this.setAllLibraryDetailInUserDetail(null==y?void 0:y.rows,v.title),this.layoutBodyData=y.rows.filter(h=>21!=h.data.type&&4!=h.data.type&&15!=h.data.type&&22!=h.data.type),(this.layoutBodyData||[]).forEach(h=>{var D;h&&h.data&&h.data&&(this.type=null===(D=null==h?void 0:h.data)||void 0===D?void 0:D.type,0===this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]?this.getMusicAllTabTypewiseSubTitle(h):1===this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]?h&&h.data&&h.data.type&&this.getMusicPlayListSubTitle(h):2===this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]?h&&h.data&&h.data.type&&(h.data.player_type=h.data.type):3===this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]&&h&&h.data&&h.data.type&&(h.data.player_type=h.data.type))}),void(this.errorDetails={});this.showErrorMEssage(v)})}setAllMusicAllTabTitleAndSubTitle(e){var i,n,o,a,s,d,p,_,g,m;let T="";99999==(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.type)?T=this.translate.instant("library_music_str_9"):0==(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.type)?T=this.translate.instant("library_music_str_7"):1==(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.type)?T=this.translate.instant("library_all_str_9"):109==(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.type)?(e.data.player_type=null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.type,T=this.translate.instant("search_str_5")):55555==(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.type)?T=this.translate.instant("library_music_str_9"):34==(null===(p=null==e?void 0:e.data)||void 0===p?void 0:p.type)&&77777==(null===(_=null==e?void 0:e.data)||void 0===_?void 0:_.type)&&(T=this.translate.instant("search_str_9")),(null===(g=e.data)||void 0===g?void 0:g.subtitle)&&(T+=" \u2022 "+(null===(m=null==e?void 0:e.data)||void 0===m?void 0:m.subtitle)),e.subtitle=T}getMusicAllTabTypewiseSubTitle(e){var i,n;const o=e.data.type;55555===o||19===o?(e.data.sub_title_prefix=this.instant("Playlist"),e.data.player_type=o):99999===o?(e.data.sub_title_prefix="",e.data.player_type=o):1===o?(e.data.sub_title_prefix=this.instant("Albums"),e.data.player_type=o):109===o?(e.data.sub_title_prefix=this.instant("Podcast"),e.data.player_type=o):0===o?(e.data.sub_title_prefix=this.instant("Artist"),e.data.imageClass="br-50"):77777===o||34===o||35===o||36===o||37===o?(e.data.sub_title_prefix=this.instant("Radio"),e.data.imageClass="br-50"):e.data.sub_title_prefix=this.instant("Song"),(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.subtitle)&&99999!=o&&(e.data.sub_title_prefix+=" \u2022 "+(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.subtitle))}getMusicPlayListSubTitle(e){e&&e.public?(e.data.sub_title_prefix=this.instant("Public"),e.data.player_type=e.data.type):(e.data.sub_title_prefix=this.instant("Private"),e.data.player_type=e.data.type),e.data.subtitle=(e.data.misc.fav_count||0)+" "+this.instant("Favorites")}createPlayList(){this.showcreatePlaylistPopup=!0;const e=(u.R_||[]).map(n=>(n.title=n.title,n));let i=!1;this.optionDetail={isOptionShow:i=!i,itemList:e},this.trackGoogleMainTabEvent("create_playlist")}onThreeDotClick(e,i){var n,o;if(e.name!==u.g6.SHARE){if(e.name===u.g6.DOWNLOAD&&c.l.download(null==i?void 0:i.data,this.notificationpopupService),e.name===u.g6.LIKE&&("Favourite"==`${this.translate.instant(e.title)}`&&this.onFavoriteClick(i),"follow"==e.title&&this.followUnfollow(i)),e.name===u.g6.REMOVE_FROM_MY_LIST){const a=this.ssoStorageService.getUserDetails(),s={contentId:null===(n=null==i?void 0:i.data)||void 0===n?void 0:n.id,typeId:null===(o=null==i?void 0:i.data)||void 0===o?void 0:o.type,action:!1,module:2};
1this.miscService.postBookmark(s,a.user_id).subscribe(d=>{var p;if(d)return i.isAddedToWatch=!1,c.l.trackAllDetailPageAddAndRemoveToPlayListEvent(e,this.eventTrackingService),void("success"===d.message&&(c.l.toastNotification(`${this.translate.instant("library_video_str_2")}`,(null===(p=null==i?void 0:i.data)||void 0===p?void 0:p.title)+` ${this.translate.instant("msg_remove_towatchlist")}`,"TOP_RIGHT"),this.getLibrary()))})}}else c.l.share(null==i?void 0:i.data,this.notificationpopupService)}getAllFavoriteRecords(){const e=this.ssoStorageService.getUserDetails();e&&e.user_id&&this.miscService.getBookmark(Z.gF.FAVORITE,e.user_id).subscribe(i=>{var n,o,a;if(i){const s=null===(a=null===(o=null===(n=null==i?void 0:i.response)||void 0===n?void 0:n.data)||void 0===o?void 0:o.body)||void 0===a?void 0:a.rows;(s||[]).find(d=>{var p,_,g;return(null===(p=null==d?void 0:d.data)||void 0===p?void 0:p.id)===(null===(g=null===(_=this.layoutBodyData)||void 0===_?void 0:_.data)||void 0===g?void 0:g.id)})&&(this.layoutBodyData.isLiked=!0),(s||[]).forEach(d=>{const p=(this.layoutBodyData||[]).find(_=>{var g,m;return(null===(g=null==_?void 0:_.data)||void 0===g?void 0:g.id)===(null===(m=null==d?void 0:d.data)||void 0===m?void 0:m.id)});p&&(p.isLiked=!0)})}})}onFavoriteClick(e){var i,n;const o=this.ssoStorageService.getUserDetails();
1if(!o||!o.user_id)return;const a={contentId:(null==e?void 0:e.id)||(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.id),typeId:(null==e?void 0:e.type)||(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.type),action:!1,module:Z.gF.FAVORITE};this.miscService.postBookmark(a,o.user_id).subscribe(s=>{var d;if(s){e.isLiked=!e.isLiked;const p=(null==e?void 0:e.title)||(null===(d=null==e?void 0:e.data)||void 0===d?void 0:d.title)||"";c.l.toastNotification(`${this.translate.instant("menu_str_10")}`,`${p} ${this.translate.instant("library_playlist_str_25")}`,"TOP_RIGHT"),this.getLibrary()}})}followUnfollow(e){var i,n;const o=this.ssoStorageService.getUserDetails();if(!o||!o.user_id)return;const s={contentId:null==e?void 0:e.data.id,typeId:"109",action:!1,module:5},d={item:e,method:[b.F5.MOENGAGE,b.F5.AMPLITUDE,b.F5.MIXPANEL],album_id:(null===(n=null===(i=this.layoutBodyData)||void 0===i?void 0:i.data)||void 0===n?void 0:n.id)||""};this.miscService.postFollow({followingId:null==e?void 0:e.data.id,follow:!1},o.user_id).subscribe(p=>{var _;if(p){e.isFollowed=!e.isFollowed;const g=(null==e?void 0:e.title)||(null===(_=null==e?void 0:e.data)||void 0===_?void 0:_.title)||"";c.l.trackAllDetailPageFavouritedEvent(d,this.eventTrackingService),setTimeout(()=>{this.getLibrary()},200),c.l.toastNotification(`${this.translate.instant("menu_str_10")}`,e.isLiked?`${g} ${this.translate.instant("toast_str_16")}`:`${g} ${this.translate.instant("library_maintab_str_12")}`,"TOP_RIGHT")}}),this.miscService.postFollowForLibrary(s,o.user_id).subscribe(p=>{})}onFavoritedSongs(){var e;const i={userId:null===(e=this.userDetails)||void 0===e?void 0:e.user_id,module:1,typeId:"21"};this.libraryService.getFavoritedSong(i).subscribe(n=>{n&&n.data&&n.data.body&&n.data.body.rows&&(this.favoritedSongsDetail={count:n.data.body.rows.length||0,title:this.instant("Favorited Songs"),favSonglist:n.data.body.rows,sub_title:(n.data.body.rows.length||0)+" "+this.instant("Songs"),route:"./library/favourite-playlist/"})})}onFollowMorePodcast(){this.router.navigate(["./library/follow-podcast"])}getVideoLibraryDetail(e){var i,n,o,a;0!==(null===(i=this.allselectedTab)||void 0===i?void 0:i.subHeaderActiveTab.tab1)?1===(null===(o=this.allselectedTab)||void 0===o?void 0:o.subHeaderActiveTab.tab1)&&this.getSaveVideos(null===(a=null==e?void 0:e.subHeaders[1])||void 0===a?void 0:a.title):this.getWatchListCount(null===(n=null==e?void 0:e.subHeaders[0])||void 0===n?void 0:n.title)}getWatchListCount(e=null){var i;this.libraryService.getWatchListCount(null===(i=this.userDetails)||void 0===i?void 0:i.user_id).subscribe(n=>{if(n&&0===n.totalCount)this.showErrorMEssage(Dt);else if(n&&n.data){this.setAllLibraryDetailInUserDetail(null==n?void 0:n.data,e);let o=0;this.watchList=[{id:0,image:"https://assetsun.hungama.com/image/video-watch.svg",title:"Movies",sub_title:"0 Movies",btnClass:"btn-favourite",route:"./library/"+N.wi.LIBRARY_MY_MOVIES+"/"},{id:1,icon:"icon-TV button-icon-1",title:"TV show",sub_title:"0 TV show",btnClass:"btn-favourite lbtn-tv-show",route:"./library/"+N.wi.LIBRARY_MY_TV_SHOW+"/"},{id:2,image:"https://assetsun.hungama.com/image/video-watch.svg",title:"Short Videos",sub_title:"0 Short Videos",btnClass:"btn-favourite lbtn-short-videos",route:"./library/"+N.wi.LIBRARY_MY_SHORT_VIDEO+"/"}],((null==n?void 0:n.data)||[]).forEach(a=>{a&&4===a.type?this.watchList[0].sub_title=a.count+" "+this.instant("Movies"):a&&93===a.type?this.watchList[2].sub_title=a.count+" "+this.instant("Short Videos"):a&&(96===a.type||97===a.type||98===a.type)&&(o+=a.count)}),o&&(this.watchList[1].sub_title=o+" "+this.instant("TV Show"))}})}onClickWatchList(e){e&&(null==e?void 0:e.route)&&(this.trackGoogleFavSongsEvent("favorited_songs",e.title),this.router.navigate([e.route]))}getSaveVideos(e=null){var i;const n={userId:null===(i=this.userDetails)||void 0===i?void 0:i.user_id,module:2,typeId:"88888,22,53"};this.libraryService.getSaveVideoDetails(n).subscribe(o=>{var a,s;if(!(o&&o.data&&o.data.body&&o.data.body.rows)||o.data.body.rows.length)return o&&o.data&&o.data.body&&o.data.body.rows?(this.setAllLibraryDetailInUserDetail(null===(s=null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.body)||void 0===s?void 0:s.rows,e),this.saveVideoList=o.data.body.rows,void this.setSeekBar()):void 0;this.showErrorMEssage(fe)})}setSeekBar(){let e;this.listenService.getPodcastPlayDuration(this.userDetails.user_id
1).subscribe(i=>{i&&i.length&&(e=i,(this.saveVideoList||[]).forEach((n,o)=>{var a,s;const d=e.find(p=>{var _,g;return(null===(_=null==p?void 0:p.data)||void 0===_?void 0:_.id)===(null===(g=null==n?void 0:n.data)||void 0===g?void 0:g.id)});d&&(null===(a=null==n?void 0:n.data)||void 0===a?void 0:a.duration)&&(n.playedDuration=d.data.duration_play,n.playedDurationPer=100*(d.data.duration_play||0)/((null===(s=null==n?void 0:n.data)||void 0===s?void 0:s.duration)||0))}))})}getPurchaseDetails(e){var i,n;0!==this.allselectedTab.subHeaderActiveTab["tab"+this.allselectedTab.headerActiveTab]?1===(null===(i=this.allselectedTab)||void 0===i?void 0:i.subHeaderActiveTab.tab2)&&this.libraryService.getPurchaseHistory(null===(n=this.userDetails)||void 0===n?void 0:n.user_id).subscribe(o=>{if(o&&o.data&&o.data.movie&&!o.data.movie.length)this.showErrorMEssage(be);else if(o&&o.data&&o.data.movie)return void(this.rentedMovieList=o.data.movie)}):this.showErrorMEssage(me)}onClickBucket(e){this.allselectedTab.selectedRadio=e;const i=c.l.getCurrentItemConfig(e,e.data.id,this.layoutBodyData);if(i.player===Z.jM.MINI_PLAYER||i.player===Z.jM.RADIO_PLAYER)return this.storageService.getLastPlayedSong(),i.item.isPlay=!i.item.isPlay,i.item.isLiked=!0,void this.playerService.updatedPlayerSource(i);i&&99999===i.type&&(i.player="MY_CREATED_PLAYLIST"),i&&c.l.navigateToRelatedView(this.router,i)}onCreatePlayList(e){var i;if(c.l.bodyOverflowAuto(),e){const n=this.createPlayListForm.getRawValue(),o={name:null==n?void 0:n.name,public:null==n?void 0:n.public,uid:null===(i=this.userDetails)||void 0===i?void 0:i.user_id};this.libraryService.postCreatedPlaylistDetail(o).subscribe(a=>{var s,d,p;if(a&&a.message&&"Playlist name already exists"==a.message)c.l.toastNotification(`${this.translate.instant("menu_str_3")}`,a.message,"TOP_RIGHT");else{if(a){this.trackCreatePlayListEvent(a.public);const _=c.l.getCurrentItemConfig(a,a.data.id,null);if(_){const g=c.l.removeUnwantedChar((null===(d=null===(s=_.item)||void 0===s?void 0:s.data)||void 0===d?void 0:d.title)||(null===(p=_.item)||void 0===p?void 0:p.title)||"")||"_";return void this.router.navigate(["./library/create-playlist",g,_.itemId])}}this.optionDetail.isOptionShow=!1}})}else this.optionDetail.isOptionShow=!1}showErrorMEssage(e){this.layoutBodyData=[],this.watchList=[],this.saveVideoList=[],this.musicStreaming||(e.getErrorPayload.sub_title="Audio stories,audiobooks and podcasts"),this.errorDetails=e.getErrorPayload}onExploreNow(e){this.trackGoogleExploreNowEvent("explore_now"),""==this.list_constant&&""==this.list_title?this.router.navigate(["/"]):(("All"==this.list_title||"Artists"==this.list_title)&&this.router.navigate(["/"]),("Albums"==this.list_title||"Playlists"==this.list_title||"Radio"==this.list_title)&&this.onSideMenuClick("music"),"Podcasts"==this.list_title&&this.router.navigate(["/podcast"]),"Videos"==this.list_constant&&this.onSideMenuClick("videos"),"Purchases"==this.list_constant&&"Rented Movies"==this.list_title&&this.onSideMenuClick("videos"))}onSideMenuClick(e){this.nextinqueueService.setClose(!1),this.storageService.setsidebarTab(e),this.setBreadcrumb(e),e?this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate(["",e])):this.router.navigate([""])}setBreadcrumb(e){this.storageService.setBreadcrumb({activePage:e,activeTab:"home"}),this.breadcrumb=e}instant(e){return this.translate.instant(e)}trackCreatePlayListEvent(e){const i={"Content Type":ui.s[99999]||"N/A","Playlist Name":this.createPlayListForm.get("name").value||"N/A","Source Name":"library",is_public:e||"N/A",Device:this.device_name};this.trackEvent("Created Playlist",i,[b.F5.MOENGAGE,b.F5.AMPLITUDE,b.F5.MIXPANEL])}trackGoogleMainTabEvent(e){let i;this.subType=e,i={event:"Library",action:e||"N/A",label:"public"},this.trackEvent(i,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackGoogleFavSongsEvent(e,i){let n;n={event:"Library",action:e||"N/A",label:i||"N/A"},this.trackEvent(n,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackGoogleExploreNowEvent(e){let i;i={event:"Library",action:e||"N/A",label:this.subType||"N/A"},this.trackEvent(i,"",[b.F5.GOOGLE_AD_MANAGER,b.F5.GOOGLEANALYTICS])}trackEvent(e,i,n){this.eventTrackingService.trackEvent(e,i,n)}createLinkForCanonicalURL(){this.footerCatalogService.createLinkForCanonicalURL()}}return l.\u0275fac=function(e){return new(e||l)(t.Y36(Tt.P),t.Y36(J.$),t.Y36(U.T),t.Y36(V.n),t.Y36(W.f),t.Y36(st.Y),t.Y36(O.F0),t.Y36(B.V),t.Y36(P.sK),t.Y36(C.qu),t.Y36(ct.l),t.Y36(pi.$),t.Y36(_i.T))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-library"]],decls:24,vars:15,consts:[[3,"footer"],["body-view",""],["id","library-filter-bar",1,"library-wrapper"],[1,"filter-list-bar"],[1,"hg-ProductNav_Wrapper"],["id","hgProductNav1",1,"hg-ProductNav"],["id","hgProductNavContents",1,"hg-ProductNav_Contents"],[4,"ngFor","ngForOf"],["id","hgProductNav",1,"hg-ProductNav","mt-20"],["class","hg-ProductNav_Link cursor-pointer",3,"click",4,"ngFor","ngForOf"],["id","adjus-padding",1,"common-padding","mt-50","position-relative","overflow-hidden"],["class","playlist-button-box create-library-btn",3,"title","click",4,"ngIf"],["class","playlist-button-box favourite-box curs
1or-pointer",3,"title","click",4,"ngIf"],[4,"ngIf"],["class","common-padding mt-50 position-relative overflow-hidden",4,"ngIf"],[3,"formGroup"],[3,"createPlayListForm","createPlaylistPopupSubmit",4,"ngIf"],[1,"library-type","cursor-pointer",3,"click"],[1,"hg-ProductNav_Link","cursor-pointer",3,"click"],[1,"playlist-button-box","create-library-btn",3,"title","click"],[1,"playlist-button","btn-create-playlist","mylab-poster-img"],[1,"icon-Watchlist","button-icon-1"],[1,"mylab-contentbox"],[1,"mylab-contentbox-title"],[1,"playlist-button","btn-create-playlist"],["src","https://assetsun.hungama.com/image/podcast.svg",1,"button-icon-2"],[1,"playlist-button-box","favourite-box","cursor-pointer",3,"title","click"],[1,"playlist-button","btn-favourite"],[1,"icon-favorited","button-icon-1"],[1,"cursor-pointer"],["class","playlist-button-box created-tabs",3,"title","click",4,"ngFor","ngForOf"],[1,"playlist-button-box","created-tabs",3,"title","click"],[1,"mylab-imgbox","hg_item_image_wrapper"],["loading","lazy",1,"mylab-poster-img","hg_item_image",3,"alt","error"],["class","ms-box-overlay hide-sec",4,"ngIf"],[1,"mylab-contentbox-title","hg_item_description","static-title","m-0",2,"text-transform","none"],["class","cursor-pointer",4,"ngIf"],["class","cursor-pointer","style","margin: 0;",4,"ngIf"],[1,"ms-box-overlay","hide-sec"],[1,"hvr-pl-icon",3,"click"],[2,"font-size","16px"],[1,"like-option"],["class","icon-favorited",3,"click",4,"ngIf"],["class","icon-Following",3,"click",4,"ngIf"],["ngbDropdown","","container","body","placement","bottom-right",3,"click",4,"ngIf"],["ngbDropdown","","container","body","placement","bottom-right",3,"click","openChange",4,"ngIf"],[1,"icon-favorited",3,"click"],[1,"icon-Following",3,"click"],["ngbDropdown","","container","body","placement","bottom-right",3,"click"],["class","icon-Options","ngbDropdownToggle","",4,"ngIf"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1",1,"dropdown"],["ngbDropdownToggle","",1,"icon-Options"],["ngbDropdownItem","",3,"click"],["class","icon-favorited",4,"ngIf"],[3,"class",4,"ngIf"],[1,"icon-favorited"],["ngbDropdown","","container","body","placement","bottom-right",3,"click","openChange"],["class","icon-following_2",4,"ngIf"],[1,"icon-following_2"],[1,"cursor-pointer",2,"margin","0"],["class","artist-box text-center",3,"title","click",4,"ngFor","ngForOf"],[1,"artist-box","text-center",3,"title","click"],[1,"artist-detail"],["loading","lazy",1,"br-50",3,"alt","error"],[1,"artist-title","hg_item_description"],[1,"artist-sub-title"],[1,"arts-followers","arts-follow-cnt","hg-albm-ttl"],[1,"blur-bg",3,"ngStyle"],[1,"viewalltb","radio-col-hei"],[1,"hg_item_image_wrapper","hg-itm-circle"],[1,"ms-box-overlay","radio-bx-ovrl",3,"title","click"],[1,"hvr-pl-icon"],[1,"radio_img_bdr"],["loading","lazy",1,"hg_item_image","radio_chnl",3,"src","alt"],[1,"hg_item_description","hg-item-cntr"],["class","hg_albm_name hg-albm-ttl",3,"title","click",4,"ngIf"],[1,"hg_albm_owner","hg-albm-ttl"],["class","hg_albm_views hg-albm-ttl",4,"ngIf"],[1,"hg_albm_name","hg-albm-ttl",3,"title","click"],[1,"hg_albm_views","hg-albm-ttl"],["class","playlist-button-box watchlist-videos",3,"title","click",4,"ngIf"],[1,"playlist-button-box","watchlist-videos",3,"title","click"],["class","button-icon-1",3,"src","error",4,"ngIf"],[1,"button-icon-1",3,"src","error"],[1,"myPlaylist_player","save-video-wrapper","flex2","pl-2"],[1,"viewouter","save-video-top"],[1,"viewalltb"],[3,"title"],[1,"hg_item_image_wrapper","most-popular-ms-vd",3,"click"],["loading","lazy",1,"hg_item_image",3,"alt","error"],[1,"mv-time","most-ply-msc-tm","video-time-duration"],[1,"mstMscPly","cursor-pointer"],[1,"icon-play"],[1,"hover-item-box","mst-pplr-mscVd-bx"],[1,"hover-box-inner",3,"ngStyle"],[1,"like-option","hg-org-watch"],[1,"mv-time","most-ply-msc-tm"],["class","watch-seakbar radius7",4,"ngIf"],[1,"lab-dcbox"],[1,"hg_item_description"],[1,"overflow-hidden","lab-dcbox-infobox"],[1,"hg_albm_name","hg-albm-ttl","fleft"],[1,"hg_albm_views","hg-albm-ttl","view_box1"],[1,"lab-dcbox-threedotbox"],["ngbDropdown","","container","body","placement","bottom-right",1,"curs
1or-pointer",2,"z-index","1 !important"],["ngbDropdownToggle","",1,"icon-Options","text-white","fright","font-16"],[1,"watch-seakbar","radius7"],[2,"width","100%"],[1,"position-relative","overflow-hidden","rented-movies"],[1,"myPlaylist_player","flex2"],[1,"viewouter"],[1,"hg_item_image_wrapper","hg-trendingMv-wrpr",3,"click"],[1,"hover-item-box","hover-item-box-1","mst-pplr-mscVd-bx","hide-sec"],[1,"hover-box-inner"],[1,"hover-item-box","trendingMv-hvr-bx","hide-sec",3,"ngStyle"],[1,"hvr-item-dsc"],["class","clr1 cursor-pointer",4,"ngIf"],[1,"hvrble-bx-dsc"],["class","clr2",4,"ngIf"],[1,"hg_albm_name","hg-albm-ttl"],["class","active-date",4,"ngIf"],["class","expire-date",4,"ngIf"],[1,"clr1","cursor-pointer"],[1,"clr2"],[1,"active-date"],[1,"expire-date"],[1,"common-padding","mt-50","position-relative","overflow-hidden"],[1,"content-box","text-center"],[3,"src","class",4,"ngIf"],["class","no-list-title mt-20",3,"innerHtml",4,"ngIf"],["class","no-list-info",3,"innerHtml",4,"ngIf"],["class","librry-btn mt-30 mb-50",4,"ngIf"],[3,"src"],[1,"no-list-title","mt-20",3,"innerHtml"],[1,"no-list-info",3,"innerHtml"],[1,"librry-btn","mt-30","mb-50"],[1,"button-blue","mr-20",3,"click"],[3,"createPlayListForm","createPlaylistPopupSubmit"]],template:function(e,i){1&e&&(t.TgZ(0,"base-view",0),t.ynx(1,1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"nav",5)(6,"div",6),t.YNc(7,vi,4,5,"ng-container",7),t.qZA()(),t.TgZ(8,"nav",8)(9,"div",6),t.YNc(10,hi,3,4,"a",9),t.qZA()()()(),t.TgZ(11,"div",10),t.YNc(12,mi,8,6,"div",11),t.YNc(13,bi,8,6,"div",11),t.YNc(14,fi,9,3,"div",12),t.YNc(15,Ui,2,1,"ng-container",13),t.YNc(16,Gi,2,1,"ng-container",13),t.YNc(17,Qi,3,1,"ng-container",13),t.YNc(18,Wi,3,1,"ng-container",13),t.YNc(19,en,5,1,"ng-container",13),t.YNc(20,rn,6,1,"ng-container",13),t.qZA(),t.YNc(21,_n,6,4,"div",14),t.TgZ(22,"form",15),t.YNc(23,gn,1,1,"app-create-playlist-popup",16),t.qZA()(),t.BQk(),t.qZA()),2&e&&(t.Q6J("footer",!0),t.xp6(7),t.Q6J("ngForOf",i.allHeaderTab),t.xp6(3),t.Q6J("ngForOf",null==i.allHeaderTab[null==i.allselectedTab?null:i.allselectedTab.headerActiveTab]?null:i.allHeaderTab[null==i.allselectedTab?null:i.allselectedTab.headerActiveTab].subHeaders),t.xp6(2),t.Q6J("ngIf",0===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&(0===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)||1===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0))&&1==i.musicStreaming),t.xp6(1),t.Q6J("ngIf",0===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&3===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)),t.xp6(1),t.Q6J("ngIf",0===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&0===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)&&i.favoritedSongsDetail&&i.favoritedSongsDetail.count>0),t.xp6(1),t.Q6J("ngIf",0===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&4!==(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)&&5!==(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)),t.xp6(1),t.Q6J("ngIf",0===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&4===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)),t.xp6(1),t.Q6J("ngIf",0===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&5===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab0)),t.xp6(1),t.Q6J("ngIf",1===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&0===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab1)),t.xp6(1),t.Q6J("ngIf",1===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&1===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab1)),t.xp6(1),t.Q6J("ngIf",2===(null==i.allselectedTab?null:i.allselectedTab.headerActiveTab)&&1===(null==i.allselectedTab?null:i.allselectedTab.subHeaderActiveTab.tab2)),t.xp6(1),t.Q6J("ngIf",!i.hideExploreSection()&&i.errorDetails),t.xp6(1),t.Q6J("formGroup",i.createPlayListForm),t.xp6(1),t.Q6J("ngIf",i.optionDetail.isOptionShow))},directives:[K.K,S.sg,S.O5,Q.u,k.jt,k.iD,k.Vi,k.TH,S.PC,C._Y,C.JL,C.sg,gi],pipes:[P.X$,S.uU],styles:['@import"https://assetsun.hungama.com/css/setwise_css/set13.css";@import"https://assetsun.hungama.com/css/setwise_css/set14.css";
1@import"https://assetsun.hungama.com/css/setwise_css/set10.css";@import"https://assetsun.hungama.com/css/view-all.css";app-library .static-title{max-width:235px}app-library .default-music-icon-image{border-radius:7px;border:solid .4px rgba(255,255,255,.47);background-color:#515050;padding:60px}app-library .br-50{border-radius:50%}app-library .m-0{margin:0!important}app-library .h-176{height:176px}app-library .filter-list-bar{position:sticky;top:70px;background:#000000db;z-index:4;padding:0 15px}@supports ((-webkit-backdrop-filter: initial) or (backdrop-filter: initial)){app-library .filter-list-bar{-webkit-backdrop-filter:blur(29px);backdrop-filter:blur(29px);-moz-backdrop-filter:blur(29px);background:#000000b3}}app-library .viewalltb{padding:0;margin:0;width:100%}app-library .viewalltb li{width:176px;float:left;margin:0 20px 20px 0;position:relative}app-library .video-time-duration{position:absolute;right:0;left:10px;top:auto;bottom:10px;width:42px}app-library .librry-btn a{display:inline-flex;justify-content:center;-webkit-justify-content:center;-moz-justify-content:center;-moz-align-items:center;align-items:center}app-library .librry-btn a i{margin-right:8px}app-library .radius7{border-radius:7px 7px 0 0!important}.trendingMv-hvr-bx{left:-8px!important}.viewouter.save-video-top{padding-top:20px}@media only screen and (max-width: 1023px){.library-wrapper .mt-50{padding:0 18px;padding-top:5vw!important}.playlist-button{width:48px!important;height:48px!important;margin-right:10px}.button-icon-1{font-size:20px!important}.mylab-contentbox{min-height:auto!important;width:83%!important}.playlist-button-box.create-library-btn,.playlist-button-box.favourite-box{width:100%;display:flex;align-items:center;margin-bottom:8vw}.playlist-button-box.created-tabs{width:100%;display:flex;margin-bottom:4vw}.playlist-button-box.created-tabs .hg_item_image_wrapper{width:48px;height:48px;padding:0;margin-right:10px}.mylab-contentbox p a{width:80%!important}.no-album-img,.no-artists-img,.no-list-img,.no-podcast-img,.no-radio-img,img.no-artist-img,.no-playlist-img{width:84px!important}.no-list-title{font-size:17px!important}.no-list-info{font-size:13px!important;line-height:1.54!important}.button-icon-2{width:26px!important;margin:0!important}.no-saved-video,.library-saved-video{width:140px!important;height:98px!important;margin-top:0!important}a.button-blue.mr-20{margin-right:0!important}a.btn-favourite.playlist-button img{width:22px!important;height:auto!important}.artist-box{width:45%!important}.watchlist-videos.playlist-button-box{display:flex;width:100%;margin-bottom:15px!important}app-library .rented-movies .hg-trendingMv-wrpr{height:38vw;width:40%;padding-bottom:0}app-library .rented-movies .viewalltb li{display:flex;width:100%;margin-bottom:0;padding:10px}app-library .rented-movies .hg_item_image_wrapper .hg_item_image{width:90px;height:auto}app-library .rented-movies .viewalltb .hg_item_description{margin-left:10px}app-library .rented-movies .viewouter{background-color:#0006}app-library .rented-movies .expire-date{border:solid 1px rgba(255,255,255,.2);background-color:#00000085;font-size:9px;font-weight:500}app-library .rented-movies .viewalltb li:nth-child(even){background-color:#544f4f33}app-library .viewalltb.radio-col-hei{display:flex;flex-wrap:wrap}app-library .viewalltb.radio-col-hei li{width:142px}app-library .library-wrapper .mt-50{padding:0 18px!important}.myPlaylist_player.flex2.save-video-wrapper{padding-top:2vw!important}.myPlaylist_player.flex2.save-video-wrapper .viewouter ul{display:flex;flex-wrap:wrap}app-library .myPlaylist_player.flex2.save-video-wrapper .viewalltb li{width:43vw!important;margin:0 13px 20px 0!important}app-library .myPlaylist_player.flex2.save-video-wrapper .viewalltb li:nth-child(even){margin-right:0!important}#adjus-padding{padding-top:10px!important}}\n'],encapsulation:2}),l})()},{path:"create-playlist/:contentName/:contentId",component:ee},{path:"favourite-playlist",component:ue},{path:"add-song/:moduleId/:typeId",component:At},{path:"follow-podcast",component:ge},{path:N.wi.LIBRARY_MY_MOVIES,component:Re},{path:N.wi.LIBRARY_MY_TV_SHOW,component:ci},{path:N.wi.LIBRARY_MY_SHORT_VIDEO,component:ze}];let hn=(()=>{class l{}return l.\u0275fac=function(e){return new(e||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[O.Bz.forChild(vn)],O.Bz]}),l})();var mn=x(74666),bn=x(55231),fn=x(5876),yn=x(14948);let Tn=(()=>{class l{}return l.\u0275fac=function(e){return new(e||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[S.ez,hn,P.aw.forChild(),mn.m,C.u5,C.UX,bn.x,ut.CT.forRoot({player:fn.xd}),ut.eT.forRoot(),yn.NgxSmoothDnDModule]]}),l})()}}]);

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.